/**
 * Guia — article design system (static pages under /guia/<slug>/).
 *
 * These pages are full static HTML generated by scripts/build-guia.mjs — they
 * never load the React bundle, so the SPA theme (src/theme/tokens.ts) is
 * mirrored here as CSS custom properties. Keep the values in sync with
 * tokens.ts (same rule as src/styles/print.css: hardcoded, documented copies).
 *
 * Component library (the classes the article generator is allowed to use) is
 * documented in .claude/skills/artigo-guia/references/componentes.md.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  /* palette — tokens.ts */
  --navy: #0d2440;
  --navy-2: #13314f;
  --navy-3: #1b3f66;
  --navy-grad-end: #16395c;
  --gold: #c9a24b;
  --gold-dark: #b08a2e;
  --gold-soft: #e8d9b0;
  --gold-bg: #f7f0dd;
  --gold-hi: #d8b25e; /* realce do selo do g-plate (só do guia; não existe em tokens.ts) */
  --paper: #faf7f1;
  --paper-2: #f2ede2;
  --card: #ffffff;
  --paper-warm: #fdfcf8;
  --ink: #22303f;
  --ink-soft: #5b6b7c;
  --ink-faint: #8b98a7;
  --line: #e4ddcd;
  --line-soft: #eee8da;
  --ok: #2e7d5b;
  --ok-bg: #e6f2ec;
  --warn: #b3701f;
  --warn-bg: #fdf1de;
  --warn-border: #ecd9b6;
  --danger: #b3402e;
  --danger-bg: #fbe9e5;
  --info-bg: #e8eef5;

  /* type — system stacks only (tokens.ts: 100% local constraint) */
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia,
    'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto,
    'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;

  /* shape / elevation — tokens.ts */
  --radius-sm: 9px;
  --radius-md: 11px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(13, 36, 64, 0.05), 0 3px 10px rgba(13, 36, 64, 0.06);
  --shadow-md: 0 1px 2px rgba(13, 36, 64, 0.06), 0 8px 28px rgba(13, 36, 64, 0.09);

  --measure: 720px; /* prose column */
  --wide: 1060px; /* page container (funnel Wrap) */
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7; /* long-form reading: slightly above app body 1.55 */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

a {
  color: var(--navy-3);
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  transition: color 120ms ease;
}

a:hover {
  color: var(--gold-dark);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--gold-soft);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

/* ------------------------------------------------------- reading progress */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width 80ms linear;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__row {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.stamp {
  display: inline-block;
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

.topbar__tag {
  font-size: 12px;
  color: var(--ink-soft);
}

.topbar__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar__nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.topbar__nav a:hover {
  color: var(--navy);
}

.topbar__enter {
  color: var(--navy) !important;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: border-color 120ms ease;
}

.topbar__enter:hover {
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .topbar__tag {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar__nav a:not(.topbar__enter):not(.topbar__nav-keep) {
    display: none;
  }
}

/* ------------------------------------------------------------ article head */

.artigo {
  padding-bottom: 40px;
}

.artigo__head {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 22px 8px;
  text-align: left;
}

.crumbs {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 22px;
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.crumbs a:hover {
  color: var(--navy);
}

.crumbs span[aria-hidden] {
  margin: 0 6px;
  color: var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-bg);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 0 0 18px;
}

.artigo__head h1 {
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
}

.artigo__head h1 em {
  font-style: normal;
  color: var(--gold-dark);
  position: relative;
}

.dek {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  margin: 0;
}

.byline b {
  color: var(--ink-soft);
  font-weight: 600;
}

.byline .dot {
  color: var(--line);
}

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: 880px;
  margin: 34px auto 0;
  padding: 0 22px;
}

.hero img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}

.hero figcaption {
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 10px;
}

/* ---------------------------------------------------------------- layout */

.artigo__layout {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px 22px 0;
  display: grid;
  grid-template-columns: 220px minmax(0, var(--measure));
  gap: 56px;
  justify-content: center;
}

.artigo__body {
  min-width: 0;
  font-size: 17px;
}

@media (max-width: 960px) {
  .artigo__layout {
    grid-template-columns: minmax(0, var(--measure));
  }

  .toc {
    display: none;
  }
}

/* --------------------------------------------------------------------- toc */

.toc {
  position: sticky;
  top: 84px;
  align-self: start;
  font-size: 13px;
}

.toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line-soft);
}

.toc li a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -2px;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.toc li a:hover {
  color: var(--navy);
}

.toc li a.is-active {
  color: var(--navy);
  font-weight: 600;
  border-left-color: var(--gold);
}

/* ------------------------------------------------------------------- prose */

.artigo__body h2 {
  font-size: 27px;
  margin: 52px 0 16px;
  scroll-margin-top: 84px;
}

.artigo__body h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-bottom: 14px;
}

.artigo__body h3 {
  font-size: 20px;
  margin: 36px 0 10px;
  scroll-margin-top: 84px;
}

.artigo__body p {
  margin: 0 0 20px;
}

.artigo__body ul,
.artigo__body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.artigo__body li {
  margin-bottom: 8px;
}

.artigo__body li::marker {
  color: var(--gold-dark);
}

.artigo__body strong {
  color: var(--navy);
}

.artigo__body hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 40px 0;
}

.artigo__body blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold-soft);
  color: var(--ink-soft);
  font-style: italic;
}

.artigo__body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ---------------------------------------------------------------- g-termo
   "Tradução" box — turns one piece of jargon into plain language. */

.g-traducao {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  margin: 0 0 20px;
  font-size: 15px;
}

.g-traducao dt {
  grid-column: 1;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding-top: 2px;
  white-space: nowrap;
}

.g-traducao dd {
  grid-column: 2;
  margin: 0;
  color: var(--ink-soft);
}

.g-traducao__label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 2px;
}

/* long terms squeeze the definition column on phones — stack instead */
@media (max-width: 560px) {
  .g-traducao {
    grid-template-columns: 1fr;
  }

  .g-traducao dt,
  .g-traducao dd {
    grid-column: 1;
    white-space: normal;
  }

  .g-traducao dd + dt {
    margin-top: 10px;
  }
}

/* --------------------------------------------------------------- g-callout */

.g-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin: 26px 0;
  font-size: 15.5px;
}

.g-callout__icon {
  font-size: 20px;
  line-height: 1.4;
}

.g-callout__body {
  min-width: 0;
}

.g-callout__body p:last-child {
  margin-bottom: 0;
}

.g-callout__title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.g-callout--fato {
  border-left: 4px solid var(--navy-3);
}

.g-callout--fato .g-callout__title {
  color: var(--navy-3);
}

.g-callout--atencao {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  border-left: 4px solid var(--warn);
}

.g-callout--atencao .g-callout__title {
  color: var(--warn);
}

.g-callout--armadilha {
  background: var(--danger-bg);
  border-color: #efcfc8;
  border-left: 4px solid var(--danger);
}

.g-callout--armadilha .g-callout__title {
  color: var(--danger);
}

.g-callout--pedagio {
  background: var(--ok-bg);
  border-color: #cfe4da;
  border-left: 4px solid var(--ok);
}

.g-callout--pedagio .g-callout__title {
  color: var(--ok);
}

.g-callout--dica {
  background: var(--gold-bg);
  border-color: var(--gold-soft);
  border-left: 4px solid var(--gold);
}

.g-callout--dica .g-callout__title {
  color: var(--gold-dark);
}

/* --------------------------------------------------------------- g-compare
   "Duas verdades" — o que a lei diz × como funciona na prática. */

.g-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.g-compare__col {
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.65;
}

.g-compare__col p:last-child {
  margin-bottom: 0;
}

.g-compare__col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.g-compare__col--lei {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-grad-end) 100%);
  color: #e8eef5;
}

.g-compare__col--lei h4 {
  color: var(--gold-soft);
}

.g-compare__col--lei strong {
  color: #fff;
}

.g-compare__col--lei a {
  color: var(--gold-soft);
}

.g-compare__col--pratica {
  background: var(--card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.g-compare__col--pratica h4 {
  color: var(--gold-dark);
}

@media (max-width: 640px) {
  .g-compare {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------- g-steps */

.g-steps {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  counter-reset: passo;
}

.g-steps > li {
  position: relative;
  counter-increment: passo;
  padding: 0 0 26px 56px;
  margin: 0;
}

.g-steps > li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--gold-bg);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-dark);
}

.g-steps > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17.5px;
  top: 40px;
  bottom: 4px;
  width: 1.5px;
  background: var(--line);
}

.g-steps > li > b:first-child,
.g-steps > li > strong:first-child {
  display: block;
  font-size: 16.5px;
  color: var(--navy);
  margin-bottom: 4px;
}

.g-steps > li p {
  margin: 0 0 8px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- g-timeline */

.g-timeline {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.g-timeline > li {
  position: relative;
  padding: 0 0 24px 26px;
}

.g-timeline > li::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--gold);
}

.g-timeline__when {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.g-timeline > li p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.g-timeline > li > b,
.g-timeline > li > strong {
  color: var(--navy);
}

/* ---------------------------------------------------------------- g-figure */

.g-figure {
  margin: 32px 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.g-figure img {
  border-radius: var(--radius-md);
  width: 100%;
}

.g-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 12px 8px 2px;
  text-align: center;
}

/* breakout só quando há espaço real: abaixo de 1108px a coluna fica flush ao
   viewport (961–1135px) ou o gutter não comporta o bleed; 48px ≤ gap de 56px,
   então nunca invade o trilho do TOC */
@media (min-width: 1108px) {
  .g-figure--wide {
    margin-left: -48px;
    margin-right: -48px;
  }
}

/* ------------------------------------------------------------------ g-tabs */

.g-tabs {
  margin: 28px 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.g-tabs__list {
  display: flex;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-warm);
  overflow-x: auto;
}

.g-tabs__tab {
  appearance: none;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease;
}

.g-tabs__tab:hover {
  color: var(--navy);
}

.g-tabs__tab[aria-selected='true'] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.g-tabs__panel {
  padding: 20px 22px;
  font-size: 15.5px;
}

.g-tabs__panel > p:last-child {
  margin-bottom: 0;
}

.g-tabs__panel[hidden] {
  display: none;
}

/* sem JS: painéis empilham com o título do tab como legenda */
.no-js .g-tabs__panel[hidden] {
  display: block;
}

/* ----------------------------------------------------------------- g-check
   Mini autodiagnóstico: pergunta + opções; cada opção revela uma resposta. */

.g-check {
  margin: 28px 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-grad-end) 100%);
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  color: #e8eef5;
  box-shadow: var(--shadow-md);
}

.g-check__q {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
}

.g-check__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 4px;
}

.g-check__opt {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #e8eef5;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.g-check__opt:hover {
  border-color: var(--gold);
}

.g-check__opt[aria-pressed='true'] {
  background: rgba(201, 162, 75, 0.16);
  border-color: var(--gold);
  color: #fff;
}

.g-check__answer {
  font-size: 15px;
  line-height: 1.65;
  color: #cdd9e6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 14px;
}

.g-check__answer strong,
.g-check__answer b {
  color: var(--gold-soft);
}

.g-check__answer[hidden] {
  display: none;
}

/* sem JS: todas as respostas visíveis, rotuladas pela opção */
.no-js .g-check__answer[hidden] {
  display: block;
}

.g-check__answer .g-check__which {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

/* ---------------------------------------------------------------- g-numero */

.g-numeros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.g-numero {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  text-align: center;
}

.g-numero__valor {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.g-numero__valor em {
  font-style: normal;
  color: var(--gold-dark);
}

.g-numero__rotulo {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ------------------------------------------------------ g-plate / g-band
   Momentos-assinatura: uma imagem da marca usada como SUPERFÍCIE (não
   ilustração emoldurada). Texto sempre vivo — o contraste é garantido por
   um véu de papel/navy por cima da textura guilloché, nunca pelo pixel da
   imagem. 1–2 por artigo, no pico do texto. Degrada visível sem JS. */

.g-plate {
  position: relative;
  margin: 34px auto;
  max-width: 520px;
  padding: 40px 34px 34px;
  text-align: center;
  border-radius: var(--radius-xl);
  color: var(--navy);
  background: linear-gradient(rgba(250, 247, 241, 0.8), rgba(250, 247, 241, 0.88)),
    url('/guia/img/_ui/guilloche.jpg') center / cover;
  background-color: var(--paper); /* contraste garantido mesmo se a textura falhar */
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-md);
}

/* moldura dupla de certificado */
.g-plate::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid var(--gold-soft);
  border-radius: calc(var(--radius-xl) - 6px);
  pointer-events: none;
}

.g-plate__seal {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 2px 8px rgba(176, 138, 46, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.g-plate__seal svg {
  width: 24px;
  height: 24px;
}

.g-plate__valor {
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
}

.g-plate__valor em {
  font-style: normal;
  color: var(--gold-dark);
}

.g-plate__rotulo {
  display: block;
  max-width: 40ch;
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* faixa de virada de capítulo — a respirada da peça. O breakout é opt-in por
   min-width (mesma régua do g-figure--wide): abaixo de 1108px não há gutter
   que comporte margem negativa sem scroll horizontal. */
.g-band {
  margin: 40px 0;
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--paper);
  background: linear-gradient(rgba(13, 36, 64, 0.9), rgba(13, 36, 64, 0.94)),
    url('/guia/img/_ui/guilloche.jpg') center / cover;
  background-color: var(--navy); /* contraste garantido mesmo se a textura falhar */
  box-shadow: var(--shadow-md);
}

@media (min-width: 1108px) {
  .g-band {
    margin-left: -48px;
    margin-right: -48px;
  }
}

.g-band__line {
  max-width: 22ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-soft);
  text-wrap: balance;
}

.g-band__line::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

@media (max-width: 960px) {
  .g-band {
    padding: 32px 24px;
  }
  .g-band__line {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .g-plate {
    padding: 32px 22px 28px;
  }
  .g-plate__valor {
    font-size: 36px;
  }
}

/* ----------------------------------------------------------------- g-table */

.g-table {
  margin: 28px 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.g-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}

.g-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-warm);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.g-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.g-table tr:last-child td {
  border-bottom: none;
}

.g-table td:first-child {
  font-weight: 600;
  color: var(--navy);
}

/* ------------------------------------------------------------------- g-faq */

.g-faq {
  margin: 28px 0;
}

.g-faq details {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.g-faq details + details {
  margin-top: 12px;
}

.g-faq summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}

.g-faq summary::-webkit-details-marker {
  display: none;
}

.g-faq summary::before {
  content: '›';
  font-size: 20px;
  line-height: 1;
  color: var(--gold-dark);
  transition: transform 120ms ease;
  flex: 0 0 auto;
}

.g-faq details[open] summary::before {
  transform: rotate(90deg);
}

.g-faq details > p,
.g-faq details > div {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------- g-fonte
   Citação de fonte oficial, inline após um parágrafo ou dentro de callout. */

.g-fonte {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.g-fonte::before {
  content: '§';
  color: var(--gold-dark);
  font-weight: 700;
}

.g-fonte a {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ------------------------------------------------------------------ fontes */

.fontes {
  margin: 48px 0 0;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
}

.fontes h2 {
  font-size: 19px;
  margin: 0 0 6px;
}

.fontes h2::before {
  display: none;
}

.fontes > p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.fontes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fontes li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin: 0;
}

.fontes li::before {
  content: '§';
  color: var(--gold-dark);
  font-weight: 700;
  flex: 0 0 auto;
}

.fontes li a {
  font-weight: 600;
}

.fontes li span {
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------- CTAs */

.g-cta {
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
}

.g-cta__icon {
  font-size: 24px;
}

.g-cta__body {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.g-cta__body b {
  display: block;
  color: var(--navy);
  font-size: 15.5px;
  margin-bottom: 2px;
}

.g-cta__btn {
  flex: 0 0 auto;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 18px;
  transition: border-color 120ms ease;
  white-space: nowrap;
}

.g-cta__btn:hover {
  border-color: var(--gold);
  color: var(--navy);
}

@media (max-width: 640px) {
  .g-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* final CTA — the one gold moment of the page (DESIGN §7.1) */

.cta-final {
  margin: 56px auto 0;
  max-width: var(--measure);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-grad-end) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 40px 36px;
  text-align: center;
  color: #cdd9e6;
}

.cta-final h2 {
  color: #fff;
  font-size: 26px;
  margin: 0 0 10px;
}

.cta-final h2 em {
  font-style: normal;
  color: var(--gold-soft);
}

.cta-final p {
  font-size: 15.5px;
  margin: 0 auto 22px;
  max-width: 520px;
}

.cta-final__btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 120ms ease, transform 120ms ease;
}

.cta-final__btn:hover {
  background: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-1px);
}

.cta-final__micro {
  font-size: 12.5px;
  color: #9fb2c6;
  margin: 14px 0 0;
}

/* --------------------------------------------------------------- related */

.relacionados {
  max-width: var(--wide);
  margin: 56px auto 0;
  padding: 0 22px;
}

.relacionados h2 {
  font-size: 22px;
  text-align: center;
  margin: 0 0 22px;
}

.relacionados__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

/* card de guia — usado em relacionados e no índice /guia */

.guia-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.guia-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
  color: var(--ink);
}

.guia-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.guia-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.guia-card__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.guia-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.guia-card__desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.guia-card__meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- índice /guia */

.indice__head {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 22px 12px;
  text-align: center;
}

.indice__head h1 {
  font-size: clamp(30px, 4.6vw, 42px);
  margin: 14px 0 12px;
}

.indice__head h1 em {
  font-style: normal;
  color: var(--gold-dark);
}

.indice__head p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

.indice__grid {
  max-width: var(--wide);
  margin: 36px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.indice__cluster {
  max-width: var(--wide);
  margin: 44px auto 0;
  padding: 0 22px;
}

.indice__cluster > h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

/* ---------------------------------------------------------------- footer */

.footer {
  margin-top: 72px;
  padding: 26px 22px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}

.footer b {
  color: var(--navy);
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 18px;
}

.footer__nav a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer__legal {
  max-width: 760px;
  margin: 0 auto;
}

.footer__meta {
  margin-top: 18px;
  color: var(--ink-faint);
}

.footer__meta a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.footer__meta a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ------------------------------------------------------------- animations */

.g-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.g-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* sem JS ou com movimento reduzido: tudo visível, nada anima */
.no-js .g-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .g-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .progress__bar {
    transition: none;
  }
}
