/* ============================================================
   TB-500 Safe — css/style.css
   Aesthetic: vernacular-acolhedor-brasileiro
   Palette: cobalt azul #1E5FB4 / tropical verde #1F9E6E /
            canarinho amarelo #F2B705 / terracota #D9603B
   Ground: cool tropical-white #F6FBF9
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --azul:            #1E5FB4;
  --azul-50:         #E6EFF9;
  --azul-100:        #C2D9F0;
  --azul-700:        #15457F;
  --azul-900:        #0E3258;
  --verde:           #1F9E6E;
  --verde-50:        #E4F6EE;
  --verde-100:       #BDEAD5;
  --verde-700:       #157A53;
  --verde-900:       #0D4F36;
  --amarelo:         #F2B705;
  --amarelo-50:      #FEF6DC;
  --amarelo-200:     #FBE49B;
  --amarelo-700:     #B5870A;
  --terracota:       #D9603B;
  --terracota-50:    #FBE9E2;
  --terracota-700:   #A8421F;
  --primary:         #1E5FB4;
  --primary-50:      #E6EFF9;
  --primary-900:     #0E3258;
  --secondary:       #1F9E6E;
  --accent:          #F2B705;
  --bg:              #F6FBF9;
  --surface:         #FFFFFF;
  --text:            #16201C;
  --text-muted:      #52605A;
  --rule:            #DCE8E3;
  --neutral-100:     #ECF4F1;
  --neutral-200:     #DCE8E3;
  --neutral-300:     #C5D6CF;
  --neutral-500:     #6B7C76;
  --neutral-700:     #3A4641;
  --neutral-900:     #16201C;
  --max-width:       74rem;
  --article-width:   44rem;
  --px:              clamp(1.25rem, 4vw, 2.5rem);
  --font-heading:    'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:       'Mulish', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --font-mono:       'Space Mono', 'IBM Plex Mono', 'Courier New', monospace;
  --radius-btn:      9999px;
  --radius-card:     1.25rem;
  --radius-callout:  1rem;
  --radius-sm:       0.5rem;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
li + li { margin-top: 0.35rem; }
p + p { margin-top: 1rem; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-variation-settings: 'SOFT' 80, 'opsz' 30;
  line-height: 1.12;
  color: var(--text);
}
h1 {
  font-size: clamp(2.125rem, 4.2vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
p { margin-bottom: 0; }
.lede {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-muted);
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.2;
}
.micro {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.mono, code {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
/* inline code pill */
code {
  display: inline;
  background: var(--azul-50);
  border-left: 2px solid var(--azul);
  border-radius: 0.5rem;
  padding: 0.1em 0.45em;
  font-size: 0.82em;
}
strong { font-weight: 700; }
em { font-style: italic; }
small { font-size: 0.875rem; line-height: 1.55; }

/* ---------- 4. LAYOUT CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--px);
}
.container--article {
  max-width: var(--article-width);
}
.prose { max-width: var(--article-width); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { margin-top: 0.75rem; }

/* ---------- 5. SITE HEADER ---------- */
.site-header {
  background-color: var(--azul);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0;
  min-height: 72px;
  gap: 1.5rem;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  font-variation-settings: 'SOFT' 80, 'opsz' 30;
  flex-shrink: 0;
}
.sun-disc {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--amarelo);
  border-radius: 3px;
  flex-shrink: 0;
}
.sun-disc--lg {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
/* nav */
.site-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}
.site-nav a {
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  position: relative;
  transition: color 200ms ease-out;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--amarelo);
  border-radius: 9999px;
  transform: translateX(-50%);
  transition: width 200ms ease-out;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: calc(100% - 1.5rem);
}
.site-nav a[aria-current="page"] {
  color: var(--amarelo);
}
/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--bg);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 9999px;
  margin: 5px 0;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

/* ---------- 6. HEADER CURVE ---------- */
.header-curve {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}
.header-curve svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 7. HERO ---------- */
.hero {
  background-color: var(--azul);
  padding-top: 3.5rem;
  padding-bottom: 0;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 4rem;
}
.hero__eyebrow {
  color: var(--amarelo);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__eyebrow .sun-disc {
  flex-shrink: 0;
}
.hero h1 {
  color: var(--bg);
  max-width: 46rem;
  margin-bottom: 1.25rem;
}
.hero__lede {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--azul-50);
  max-width: 42rem;
  margin-bottom: 2rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.hero__image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero__image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-card);
}
.hero__caveat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--terracota-50);
  color: var(--terracota-700);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  border: 1.5px solid var(--terracota);
  margin-bottom: 1.5rem;
}
.hero__caveat-chip::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--terracota);
  border-radius: 2px;
  flex-shrink: 0;
}
.hero-curve {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}
.hero-curve svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 8. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  min-height: 48px;
  transition: box-shadow 200ms ease-out, transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--amarelo);
  color: var(--azul-900);
  border-color: var(--amarelo);
}
.btn-primary:hover {
  background: var(--amarelo-700);
  border-color: var(--amarelo-700);
  box-shadow: 0 4px 14px rgba(242,183,5,0.32);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--azul-900);
}
.btn-secondary {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
  color: var(--bg);
}
.btn-secondary--onwhite {
  color: var(--azul);
  border-color: var(--azul);
}
.btn-secondary--onwhite:hover {
  color: var(--verde);
  border-color: var(--verde);
  background: transparent;
}
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--azul);
  padding-inline: 0.25rem;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--amarelo);
  border-radius: 9999px;
  transform: translateX(-50%);
  transition: width 200ms ease-out;
}
.btn-ghost:hover::after { width: 100%; }

/* ---------- 9. CARDS ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(22,32,28,0.05);
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(30,95,180,0.12);
  transform: translateY(-2px);
}
.card--finding {
  background: var(--verde-50);
}
.card--caveat {
  background: var(--terracota-50);
  border-top: 3px solid var(--terracota);
}
.card--welcome {
  background: var(--azul);
  color: var(--bg);
}
.card--welcome h3,
.card--welcome h4 { color: var(--amarelo); }
.card--welcome p { color: var(--azul-50); }
.card__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--verde-700);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.card__eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--verde);
  flex-shrink: 0;
}
.card--caveat .card__eyebrow {
  color: var(--terracota-700);
}
.card--caveat .card__eyebrow::before {
  background: var(--terracota);
}
.card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  font-variation-settings: 'SOFT' 80, 'opsz' 30;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* ---------- 10. CALLOUTS ---------- */
.callout {
  border-left: 3px solid var(--azul);
  border-radius: 0 var(--radius-callout) var(--radius-callout) 0;
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.callout::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--azul);
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.callout--caveat {
  border-left-color: var(--terracota);
  background: var(--terracota-50);
}
.callout--caveat::before { background: var(--terracota); }
.callout--finding {
  border-left-color: var(--verde);
  background: var(--verde-50);
}
.callout--finding::before { background: var(--verde); }
.callout__eyebrow {
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--azul-700);
  margin-bottom: 0.35rem;
  display: block;
}
.callout--caveat .callout__eyebrow { color: var(--terracota-700); }
.callout--finding .callout__eyebrow { color: var(--verde-700); }

/* ---------- 11. EVIDENCE CHIPS ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  line-height: 1;
}
.chip--verde { background: var(--verde-50); color: var(--verde-700); }
.chip--azul { background: var(--azul-50); color: var(--azul-700); }
.chip--amarelo { background: var(--amarelo-50); color: var(--amarelo-700); }
.chip--terracota { background: var(--terracota-50); color: var(--terracota-700); }

/* ---------- 12. PULL QUOTE ---------- */
.pull-quote {
  border-left: 3px solid var(--verde);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.25rem 1.5rem;
  margin-block: 2rem;
  position: relative;
}
.pull-quote__mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--amarelo);
  display: block;
  margin-bottom: 0.5rem;
  font-variation-settings: 'SOFT' 80, 'opsz' 30;
}
.pull-quote__text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
  font-variation-settings: 'SOFT' 80, 'opsz' 30;
}
.pull-quote__attr {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--azul);
  margin-top: 0.75rem;
}

/* ---------- 13. SECTION MARKERS ---------- */
.section-marker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  margin-top: 3rem;
}
.section-marker__arc {
  flex-shrink: 0;
}
.section-marker__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--verde-700);
}
.section-marker--azul .section-marker__label { color: var(--azul-700); }

/* ---------- 14. INTERSTITIAL CURVE BANDS ---------- */
.band {
  position: relative;
  margin-block: 0;
}
.band--verde {
  background: var(--verde);
  color: var(--bg);
}
.band--amarelo {
  background: var(--amarelo-50);
  color: var(--text);
}
.band__inner {
  padding-block: 4rem;
}
.band-curve-top,
.band-curve-bottom {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.band-curve-top svg,
.band-curve-bottom svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 15. MAIN CONTENT SECTIONS ---------- */
.page-main {
  padding-block: 3rem 4rem;
}
.page-main .container > * + * { margin-top: 1.25rem; }
section { margin-top: 0; }
section + section { margin-top: 2.5rem; }
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block: 2.5rem;
}
.section-divider__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-divider__dot {
  width: 10px;
  height: 10px;
  background: var(--amarelo);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------- 16. FIGURES ---------- */
.figure-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  border: 1px solid var(--rule);
  margin-block: 2rem;
}
.figure-card__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--verde-700);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.figure-card__label .sun-disc {
  margin-left: auto;
}
.figure-card img {
  border-radius: 0.75rem;
  width: 100%;
  height: auto;
}
.figure-card figcaption {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ---------- 17. TABLES ---------- */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--rule);
  margin-block: 1.5rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  border-top: 2.5px solid var(--azul);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
}
.data-table th {
  background: var(--surface);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--azul-700);
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td.num {
  font-family: var(--font-mono);
  text-align: right;
}

/* ---------- 18. INLINE CITATION SUPERSCRIPT ---------- */
sup a {
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--amarelo-700);
  text-decoration: none;
  padding: 0.05em 0.2em;
  border-radius: 0.25rem;
  transition: color 200ms ease-out, background 200ms ease-out;
}
sup a:hover {
  color: var(--azul);
  background: var(--azul-50);
  text-decoration: none;
}

/* ---------- 19. REFERENCES LIST ---------- */
.references-list {
  list-style: none;
  padding: 0;
  counter-reset: ref-counter;
}
.references-list li {
  counter-increment: ref-counter;
  padding: 1rem 0 1rem 2.75rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.references-list li:last-child { border-bottom: none; }
.references-list li::before {
  content: counter(ref-counter);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--azul-700);
  background: var(--azul-50);
  border-radius: 0.25rem;
  width: 1.875rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.references-list a {
  color: var(--verde-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.references-list a:hover { color: var(--azul); }
.ref-doi {
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--amarelo-700);
  display: block;
  margin-top: 0.2rem;
}

/* ---------- 20. FAQ ACCORDION ---------- */
.faq-list { list-style: none; padding: 0; }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  font-variation-settings: 'SOFT' 80, 'opsz' 30;
  transition: color 200ms ease-out;
}
.faq-question:hover { color: var(--azul); }
.faq-question__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--azul-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease-out, background 200ms ease-out;
  margin-top: 0.1rem;
}
.faq-question[aria-expanded="true"] .faq-question__icon {
  transform: rotate(45deg);
  background: var(--azul);
  color: white;
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease-out;
}
.faq-answer.open { max-height: 800px; }
.faq-answer__inner {
  padding-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.faq-answer__inner > * + * { margin-top: 0.75rem; }

/* ---------- 21. CONTACT FORM ---------- */
.contact-form { max-width: 34rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--neutral-200);
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(30,95,180,0.12);
}
.form-group textarea { min-height: 8rem; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231E5FB4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ---------- 22. FOOTER ---------- */
.site-footer {
  background-color: var(--azul);
  color: var(--bg);
  padding-bottom: 2rem;
}
.footer-curve-top {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px;
}
.footer-curve-top svg {
  width: 100%;
  display: block;
}
.footer-disclaimer-row {
  padding-block: 1.75rem;
  border-bottom: 1px solid rgba(242,183,5,0.3);
  margin-bottom: 1.75rem;
}
.footer-disclaimer {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--bg);
  font-variation-settings: 'SOFT' 80, 'opsz' 30;
  max-width: 60rem;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.footer-col__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amarelo);
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li + li { margin-top: 0.5rem; }
.footer-col a {
  color: var(--bg);
  font-size: 0.9375rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 200ms ease-out, color 200ms ease-out;
}
.footer-col a:hover { opacity: 1; color: var(--amarelo); text-decoration: none; }
.footer-colophon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246,251,249,0.15);
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 0.8125rem;
  color: var(--azul-50);
  opacity: 0.75;
}

/* ---------- 23. PAGE HERO (non-index) ---------- */
.page-hero {
  background: var(--azul);
  padding-block: 3rem 0;
}
.page-hero__inner {
  padding-bottom: 3.5rem;
}
.page-hero .eyebrow { color: var(--amarelo); margin-bottom: 0.75rem; }
.page-hero h1 { color: var(--bg); max-width: 44rem; margin-bottom: 0.75rem; }
.page-hero .lede { color: var(--azul-50); max-width: 40rem; }

/* ---------- 24. BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--azul-50);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--azul-50); text-decoration: none; opacity: 0.75; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb__sep { opacity: 0.5; }
.breadcrumb__current { opacity: 0.9; }

/* ---------- 25. 404 PAGE ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: 5rem;
  gap: 1.5rem;
}
.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--azul-50);
  line-height: 1;
  font-variation-settings: 'SOFT' 80, 'opsz' 30;
}
.error-page h1 { color: var(--text); font-size: clamp(1.5rem, 3vw, 2.25rem); }

/* ---------- 26. TIPPY THEME OVERRIDES ---------- */
.tippy-box[data-theme~='tb500-cite'] {
  background: var(--surface);
  color: var(--text);
  border-radius: 0.875rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--azul);
  box-shadow: 0 8px 24px rgba(30,95,180,0.12);
  font-family: var(--font-body);
  font-size: 0.875rem;
  max-width: 320px;
  padding: 0.25rem;
}
.tippy-box[data-theme~='tb500-cite'] .tippy-content {
  padding: 0.875rem 1rem;
}
.tippy-box[data-theme~='tb500-cite'] .cite-tooltip__text {
  line-height: 1.55;
  margin-bottom: 0.4rem;
}
.tippy-box[data-theme~='tb500-cite'] .cite-tooltip__doi {
  font-family: var(--font-mono);
  font-size: 0.75em;
  color: var(--amarelo-700);
  display: block;
}
.tippy-box[data-theme~='tb500-cite'] .cite-tooltip__sun {
  width: 8px;
  height: 8px;
  background: var(--amarelo);
  border-radius: 2px;
  display: inline-block;
  margin-left: 0.4rem;
}
.tippy-box[data-theme~='tb500-cite'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: var(--surface);
}
.tippy-box[data-theme~='tb500-cite'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: var(--surface);
}

/* ---------- 27. FOCUS STATES ---------- */
:focus-visible {
  outline: 2.5px solid var(--azul);
  outline-offset: 2px;
  border-radius: 2px;
}
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amarelo);
}

/* ---------- 28. UTILITY ---------- */

/* Layout helpers used in place of inline style */
.mt-auto { margin-top: auto; }
.max-w-article { max-width: var(--article-width); }
.max-w-site { max-width: var(--max-width); }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 1.75rem; }
.mt-xl { margin-top: 2rem; }
.mt-2xl { margin-top: 2.5rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.75rem; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.section-marker__label.section-marker--caveat { color: var(--terracota-700); }
.card--welcome-link { color: var(--amarelo); }
/* lede-constrained */
.lede--centered { max-width: 32rem; text-align: center; }
/* chip margin fix */
.chip + * { margin-top: 1rem; }
.chip { margin-top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* ---------- 29. RESPONSIVE ---------- */
@media (min-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 58% 42%;
  }
  .hero__image img { max-width: 100%; }
  .footer-columns { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--azul-900);
    padding: 1rem var(--px) 1.5rem;
    z-index: 99;
  }
  .site-header { position: relative; }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 1.0625rem;
  }
  .site-nav a::after { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { display: none; }
  h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
}
