/* =========================================================================
   Portal Dúvidas — help centre
   Locked to portalduvidas.com.br. Served at /assets/theme.css.

   Two halves:
     1. the template's own chrome (header, hero, subject cards, bands, footer)
     2. the ENGINE's markup — .article*, .post-*, .toc, .faq, .result*,
        .pagination, .table-wrap. A template that skips half 2 ships a
        beautiful home and a naked article.

   Colour, font, container and radius tokens are set per-site in layout.php;
   everything below consumes them.
   ========================================================================= */

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

:root {
  --ink-2: color-mix(in srgb, var(--ink) 66%, var(--paper));
  --ink-3: color-mix(in srgb, var(--ink) 44%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 12%, var(--paper));
  --line-2: color-mix(in srgb, var(--ink) 7%, var(--paper));
  --accent-ink: color-mix(in srgb, var(--accent) 82%, #000);
  --accent-wash: color-mix(in srgb, var(--accent) 8%, var(--paper));
  --deep-2: color-mix(in srgb, var(--deep) 88%, #fff);
  --shadow-s: 0 1px 2px rgba(15, 18, 24, .05), 0 2px 8px rgba(15, 18, 24, .04);
  --shadow-m: 0 2px 4px rgba(15, 18, 24, .05), 0 12px 32px rgba(15, 18, 24, .08);
  --shadow-l: 0 24px 70px rgba(9, 12, 18, .18);
  --hdr-h: 68px;
  --sec-y: clamp(56px, 7vw, 104px);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 18px); }
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

a { color: var(--accent-ink); text-underline-offset: 3px; }

p { margin: 0; }

em.ac { font-style: normal; color: var(--accent); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Every icon in this template is a stroked 24px glyph. Setting it once here is
   what lets <use> markup stay bare everywhere else. */
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sr,
.skip {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  width: auto; height: auto; margin: 0; padding: 12px 18px;
  clip: auto; clip-path: none;
  background: var(--ink); color: #fff; border-radius: var(--radius-sm);
}

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.eyebrow--light { color: color-mix(in srgb, var(--accent-2) 88%, #fff); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 22px;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn--accent:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn--lg { padding: 17px 30px; font-size: 16px; }

/* ----------------------------------------------------------------- header */

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hdr__in { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); min-height: var(--hdr-h); }

/* On the home the header floats over the dark hero, then turns solid on scroll.
   `position: sticky` keeps it in the flow, so the hero does not need padding
   compensation and nothing jumps when the class flips. */
.is-home .hdr--onhero { background: transparent; border-bottom-color: transparent; margin-bottom: calc(var(--hdr-h) * -1); }
.is-home .hdr--onhero .brand__tx { color: #fff; }
.is-home .hdr--onhero .brand__mark { background: rgba(255, 255, 255, .12); color: #fff; }
.is-home .hdr--onhero .hdr__nav > a { color: rgba(255, 255, 255, .82); }
.is-home .hdr--onhero .hdr__nav > a:hover { color: #fff; }
.is-home .hdr--onhero .hdr__burger { color: #fff; border-color: rgba(255, 255, 255, .26); }

.hdr.is-solid,
.is-home .hdr--onhero.is-solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--line-2);
  box-shadow: var(--shadow-s);
  margin-bottom: calc(var(--hdr-h) * -1);
}
.is-home .hdr--onhero.is-solid .brand__tx { color: var(--ink); }
.is-home .hdr--onhero.is-solid .brand__mark { background: var(--accent-wash); color: var(--accent); }
.is-home .hdr--onhero.is-solid .hdr__nav > a { color: var(--ink-2); }
.is-home .hdr--onhero.is-solid .hdr__burger { color: var(--ink); border-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__img { border-radius: 8px; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-wash); color: var(--accent);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__tx {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; letter-spacing: -.03em;
  color: var(--ink);
  white-space: nowrap;
}
.brand__tx i { font-style: normal; color: var(--accent); margin-left: .26em; }

.hdr__search { flex: 1 1 auto; min-width: 0; max-width: 460px; }
.hdr__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr__nav > a {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  padding: 9px 14px; border-radius: 999px;
  transition: color .16s ease, background-color .16s ease;
}
.hdr__nav > a:hover { color: var(--ink); background: var(--surface); }
.hdr__nav-search { display: none; }

.hdr__burger {
  display: none; place-items: center;
  width: 42px; height: 42px; margin-left: 6px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
}
.hdr__burger svg { width: 21px; height: 21px; }
.hdr__burger .ic-shut { display: none; }
.hdr.is-open .hdr__burger .ic-open { display: none; }
.hdr.is-open .hdr__burger .ic-shut { display: block; }

/* ------------------------------------------------------------ search field */

.sf { display: flex; align-items: center; gap: 8px; position: relative; width: 100%; }
.sf__ic {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  color: var(--ink-3); pointer-events: none;
}
.sf__ic svg { width: 19px; height: 19px; }
.sf__in {
  width: 100%; min-width: 0;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px 13px 46px;
  appearance: none;
}
.sf__in::placeholder { color: var(--ink-3); }
.sf__in:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.sf__in::-webkit-search-cancel-button { -webkit-appearance: none; }
.sf__go {
  flex: none;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: #fff; background: var(--accent);
  border: 0; border-radius: 999px; padding: 13px 22px;
  cursor: pointer;
  transition: background-color .16s ease;
}
.sf__go:hover { background: var(--accent-ink); }

.sf--hdr .sf__in { padding-block: 10px; background: var(--surface); border-color: transparent; }
.sf--hdr .sf__in:focus { background: var(--paper); }
.sf--hdr .sf__go { display: none; }

.sf--hero { max-width: 660px; }
.sf--hero .sf__in {
  padding: 19px 20px 19px 54px;
  font-size: 17px;
  background: rgba(255, 255, 255, .97);
  border-color: transparent;
  box-shadow: var(--shadow-l);
}
.sf--hero .sf__ic { left: 20px; color: color-mix(in srgb, var(--deep) 55%, #fff); }
.sf--hero .sf__go { padding: 19px 28px; font-size: 16px; }

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--deep);
  color: #fff;
  padding-top: calc(var(--hdr-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(56px, 8vw, 100px);
}
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; opacity: .82; }
/* The generated art is dark on the left by design; this gradient guarantees the
   contrast even if the image is ever swapped for a busier one. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, var(--deep) 0%, color-mix(in srgb, var(--deep) 92%, transparent) 42%, transparent 78%),
    linear-gradient(to top, var(--deep) 2%, transparent 42%);
}
.hero__glow {
  position: absolute; z-index: -1;
  top: -22%; left: -12%; width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 66%);
  filter: blur(28px);
  pointer-events: none;
}
/* The element is BOTH .wrap and .hero__in. Narrowing it here would re-centre a
   780px box in the viewport and pull the headline out of line with the header
   and the cards below — constrain the children instead, so the container's own
   gutter still decides where the text starts. */
.hero__in { position: relative; }
.hero__in > * { max-width: 780px; }
.hero__h {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 600;
  margin: 18px 0 0;
}
.hero__h em.ac { color: var(--accent-2); }
.hero__p {
  color: rgba(255, 255, 255, .76);
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.6;
  max-width: 60ch;
  margin: 18px 0 32px;
}
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 30px; }
.hero__count { font-size: 14.5px; color: rgba(255, 255, 255, .62); }
.hero__count strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #fff; }
.hero__note { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.hero__note svg { width: 16px; height: 16px; color: var(--accent-2); flex: none; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.chips__lb { font-size: 13px; color: rgba(255, 255, 255, .45); margin-right: 4px; }
.chip {
  font-size: 13.5px; color: rgba(255, 255, 255, .82); text-decoration: none;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px; padding: 7px 14px;
  transition: background-color .16s ease, color .16s ease;
}
.chip:hover { background: rgba(255, 255, 255, .17); color: #fff; }

/* ------------------------------------------------------------- section shell */

.sec { padding-block: var(--sec-y); }
.sec--cats { background: var(--paper); }
.sec--ask { background: var(--surface); }
.sec--latest { padding-top: 0; }
.is-home .sec--latest { padding-top: var(--sec-y); }
.sec--cta { padding-top: 0; }
.sec--help { padding-block: 0 var(--sec-y); }

.sec__head { max-width: 640px; margin: 0 auto clamp(34px, 4vw, 52px); text-align: center; }
.sec__head--left { margin-inline: 0; text-align: left; }
.sec__h { font-size: clamp(26px, 3.4vw, 40px); margin-top: 14px; }
.sec__p { color: var(--ink-2); font-size: 16.5px; margin-top: 14px; }

/* -------------------------------------------------------- subject cards */

.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 16px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-m); }
.cat__ic {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 13px;
  background: var(--accent-wash); color: var(--accent);
  transition: background-color .18s ease, color .18s ease;
}
.cat__ic svg { width: 22px; height: 22px; }
.cat:hover .cat__ic { background: var(--accent); color: #fff; }
.cat__b { min-width: 0; }
.cat__t { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.cat__d { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.cat__n {
  flex: none;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  color: var(--ink-3);
  background: var(--surface);
  border-radius: 999px; padding: 4px 10px;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------ question-shape columns */

.asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ask {
  display: flex; flex-direction: column;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.ask__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ask__k { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.ask__n { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ask__d { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.ask__list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.ask__list li + li { border-top: 1px solid var(--line-2); }
.ask__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  color: var(--ink); text-decoration: none;
  font-size: 15px; line-height: 1.45;
  transition: color .16s ease;
}
.ask__list a span { flex: 1 1 auto; min-width: 0; }
.ask__list a svg { width: 15px; height: 15px; flex: none; color: var(--ink-3); transition: transform .16s ease, color .16s ease; }
.ask__list a:hover { color: var(--accent-ink); }
.ask__list a:hover svg { color: var(--accent); transform: translateX(3px); }
.ask__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 18px;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600;
  color: var(--accent-ink); text-decoration: none;
}
.ask__more svg { width: 16px; height: 16px; transition: transform .16s ease; }
.ask__more:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------- CTA band */

.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px;
  background: var(--deep);
  border-radius: var(--radius-lg);
  color: #fff;
}
.cta__copy { padding: clamp(32px, 4vw, 54px); }
.cta__h { color: #fff; font-size: clamp(24px, 2.8vw, 34px); margin: 16px 0 0; }
.cta__p { color: rgba(255, 255, 255, .74); margin: 14px 0 26px; max-width: 46ch; }
.cta__note { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .45); }
.cta__art { align-self: stretch; }
.cta__art img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* ----------------------------------------------------- article help box */

.helpbox {
  display: grid; grid-template-columns: auto 1fr minmax(260px, 380px); align-items: center; gap: 20px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
}
.helpbox__ic {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 14px; background: var(--accent-wash); color: var(--accent);
}
.helpbox__ic svg { width: 23px; height: 23px; }
.helpbox__b strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.helpbox__b p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.helpbox .sf__in { background: var(--paper); }

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

.ft { background: var(--deep); color: rgba(255, 255, 255, .66); padding-block: clamp(48px, 6vw, 76px) 32px; }
.ft__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px 28px; }
.ft__col--brand { max-width: 40ch; }
.brand--ft .brand__tx { color: #fff; }
.brand--ft .brand__mark { background: rgba(255, 255, 255, .1); color: var(--accent-2); }
.ft__about { margin-top: 16px; font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .56); }
.ft__h { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .42); margin-bottom: 14px; }
.ft__links { display: flex; flex-direction: column; gap: 10px; }
.ft__links a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 14.5px; transition: color .16s ease; }
.ft__links a:hover { color: #fff; }
.ft__base {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px; color: rgba(255, 255, 255, .48);
}
.ft__disc { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .34); max-width: 92ch; }

/* =========================================================================
   ENGINE MARKUP
   ========================================================================= */

.page { padding-block: clamp(28px, 4vw, 44px) var(--sec-y); }

/* ------------------------------------------------------------ breadcrumb */

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--ink-2); }

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

.article-hero { max-width: 780px; }
.article-hero-grid { display: grid; gap: 28px; }
.article-hero-grid:not(.solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: start; }
.article-hero-media { margin: 0; }
.article-hero-media img { width: 100%; border-radius: var(--radius); }
.article-hero-copy .eyebrow { margin-bottom: 12px; }
.article-hero h1 { font-size: clamp(28px, 3.9vw, 44px); }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-top: 16px; font-size: 13.5px; color: var(--ink-3);
}
.post-meta strong { color: var(--ink-2); font-weight: 600; }
.article-lead { margin-top: 20px; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); }

/* The body column is capped rather than fluid: with a 250px rail and nothing on
   the right, a 1fr track runs to ~890px, which is far past a comfortable
   measure. The leftover space on the right is deliberate. */
.article-shell { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(28px, 4vw, 56px); margin-top: clamp(30px, 4vw, 46px); align-items: start; }
.article-shell.solo { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
/* A sponsored rail is emitted BEFORE .article-main in the DOM (order: toc, rail,
   main), so auto-placement would drop the ad between the contents and the text.
   Place all three explicitly instead. */
.article-shell.has-rail.has-toc { grid-template-columns: 250px minmax(0, 720px) minmax(0, 280px); }
.article-shell.has-rail:not(.has-toc) { grid-template-columns: minmax(0, 720px) minmax(0, 280px); }
.article-shell.has-rail .toc { grid-column: 1; grid-row: 1; }
.article-shell.has-rail.has-toc .article-main { grid-column: 2; grid-row: 1; }
.article-shell.has-rail.has-toc .article-rail { grid-column: 3; grid-row: 1; }
.article-shell.has-rail:not(.has-toc) .article-main { grid-column: 1; grid-row: 1; }
.article-shell.has-rail:not(.has-toc) .article-rail { grid-column: 2; grid-row: 1; }
.article-rail { position: sticky; top: calc(var(--hdr-h) + 22px); }

.toc { position: sticky; top: calc(var(--hdr-h) + 22px); align-self: start; max-height: calc(100vh - var(--hdr-h) - 44px); overflow-y: auto; }
.toc-h { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a {
  display: block; padding: 7px 0 7px 14px; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.45; color: var(--ink-2); text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}
.toc li a:hover { color: var(--ink); }
.toc li a.is-on { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 500; }

.article-rail { display: grid; gap: 18px; align-content: start; }

.article-main { min-width: 0; }
.article-body { font-size: 17.5px; line-height: 1.75; color: var(--ink); }
.article-body > * { margin-bottom: 22px; }
.article-body > *:last-child { margin-bottom: 0; }
.article-body h2 { font-size: clamp(23px, 2.4vw, 29px); margin-top: 46px; margin-bottom: 16px; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.article-body h3 { font-size: clamp(19px, 1.9vw, 22px); margin-top: 34px; margin-bottom: 12px; }
.article-body h2:first-child, .article-body h3:first-child { margin-top: 0; }
.article-body p { margin-bottom: 22px; }
.article-body a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body li::marker { color: var(--accent); }
.article-body strong { font-weight: 600; }
.article-body img { border-radius: var(--radius); margin-block: 28px; }
.article-body blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink-2); font-size: 18px;
}
.article-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 36px; }

/* ------------------------------------------------- declared components */

.hc-quick {
  display: block;
  padding: 22px 24px;
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius);
  margin-bottom: 30px;
}
.hc-quick__k {
  display: block;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 8px;
}
.hc-quick__v { display: block; font-size: 18px; line-height: 1.6; color: var(--ink); }

.hc-note,
.hc-warn {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.hc-warn { background: color-mix(in srgb, #E8552B 7%, var(--paper)); border-color: color-mix(in srgb, #E8552B 24%, transparent); }
.hc-note__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--paper); color: var(--ink-2); flex: none; }
.hc-warn .hc-note__ic { color: #C23B14; }
.hc-note__ic svg { width: 17px; height: 17px; }
.hc-note__body strong { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.hc-note__body p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.hc-steps { display: grid; gap: 2px; margin-block: 26px; }
.hc-steps > div { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 16px 18px; background: var(--surface); }
.hc-steps > div:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.hc-steps > div:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.hc-steps__n {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: none;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1;
}
.hc-steps__t { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.hc-steps p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------ in-article CTA */

.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 40px; padding: 24px 26px;
  background: var(--deep); color: #fff;
  border-radius: var(--radius-lg);
}
.inline-cta-body { min-width: 0; }
.inline-cta-body strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.inline-cta-body span { display: block; margin-top: 4px; font-size: 14.5px; color: rgba(255, 255, 255, .68); }

/* ---------------------------------------------------------------- FAQ */

.faq { margin-top: 46px; }
.faq h2 { font-size: clamp(22px, 2.3vw, 28px); margin-bottom: 18px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 17px 50px 17px 20px; position: relative;
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600; line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item[open] summary { color: var(--accent-ink); }
.faq-a { padding: 0 20px 18px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.faq-a p { margin: 0; }

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

.post-links { margin-top: 46px; }
.post-links h2 { font-size: clamp(20px, 2.1vw, 25px); margin-bottom: 16px; }
.pillar-link {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 20px 22px; margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .16s ease, transform .16s ease;
}
.pillar-link:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.pl-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.pl-title { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.4; }
.pl-arrow { color: var(--ink-3); font-size: 20px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-row .chip {
  color: var(--ink-2); background: var(--surface);
  border-color: var(--line); text-decoration: none;
}
.chip-row .chip:hover { background: var(--accent-wash); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ------------------------------------------------------------- listings */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); box-shadow: var(--shadow-m); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.post-cat { font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.post-card-title { font-size: 17.5px; line-height: 1.38; font-weight: 600; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--accent-ink); }
.post-card-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.post-card-meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--ink-3); }

.section-head { margin-bottom: 26px; }
.section-head h2,
h1.display, h2.display { font-size: clamp(24px, 3vw, 34px); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: block; padding: 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }
.card-tag { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.card h3 { font-size: 18px; line-height: 1.35; }
.blk-more { margin-top: 26px; text-align: center; }

/* ------------------------------------------------------- search results */

.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 26px; }
.results-count { font-size: 14.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.results-list { display: grid; gap: 10px; max-width: 860px; }
.result {
  display: block; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.result:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.result h2 { font-size: 18px; line-height: 1.4; }
.result p { margin-top: 7px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 11px; font-size: 13px; color: var(--ink-3); }
.muted { color: var(--ink-2); }

/* ---------------------------------------------------------- pagination */

.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px;
  margin-top: 44px; font-size: 14.5px; color: var(--ink-3);
}
.pagination a {
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px;
  font-family: var(--font-display); font-weight: 500;
  transition: border-color .16s ease, background-color .16s ease;
}
.pagination a:hover { border-color: var(--ink-3); background: var(--surface); }

/* --------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; margin-block: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table-wrap th, .table-wrap td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
.table-wrap th { background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* ================================================================ mobile */

@media (max-width: 1080px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asks { grid-template-columns: minmax(0, 1fr); }
  .post-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell,
  .article-shell.has-rail { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
  .toc { position: static; max-height: none; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); }
  .toc ol { border-left: 0; columns: 2; column-gap: 24px; }
  .toc li a { padding-left: 0; border-left: 0; }
  .toc li a.is-on { border-left: 0; }
  .article-hero-grid:not(.solo) { grid-template-columns: minmax(0, 1fr); }
  .article-hero-media { max-width: 320px; }
  .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft__col--brand { grid-column: 1 / -1; max-width: none; }
  .helpbox { grid-template-columns: auto 1fr; }
  .helpbox .sf { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__art { order: -1; }
  .cta__art img { min-height: 200px; max-height: 260px; }
}

@media (max-width: 780px) {
  :root { --hdr-h: 60px; }

  .hdr__search { display: none; }

  /* Drawer. Anchored under the header rather than full-screen so the page
     behind stays visible — a help centre's menu is a detour, not a mode. */
  .hdr__nav {
    position: fixed; inset: var(--hdr-h) 0 auto 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px clamp(18px, 4vw, 32px) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    max-height: calc(100dvh - var(--hdr-h)); overflow-y: auto;
  }
  .hdr.is-open .hdr__nav { display: flex; }
  .hdr__nav > a { color: var(--ink) !important; font-size: 16.5px; padding: 13px 12px; border-radius: var(--radius-sm); }
  .hdr__nav-search { display: block; margin-top: 12px; }
  .hdr__nav-search .sf__go { display: none; }
  .hdr__nav-search .sf__in { background: var(--surface); border-color: transparent; }
  .hdr__burger { display: grid; }

  .cats, .post-grid, .card-grid { grid-template-columns: minmax(0, 1fr); }

  /* The button drops under the field: at this width a side-by-side row leaves
     the input too narrow to read what you typed. */
  .sf--hero { flex-direction: column; align-items: stretch; gap: 10px; }
  .sf--hero .sf__go { width: 100%; }
  .sf--hero .sf__ic { top: 30px; }

  .helpbox { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .helpbox__ic { display: none; }

  .inline-cta { flex-direction: column; align-items: stretch; }
  .inline-cta .btn { width: 100%; }

  .toc ol { columns: 1; }
  .ft__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ft__base { flex-direction: column; }
}

@media (max-width: 460px) {
  body { font-size: 16.5px; }
  .cat { grid-template-columns: auto 1fr; }
  .cat__n { grid-column: 2; justify-self: start; margin-top: 4px; }
  .chips__lb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .hdr, .ft, .sec--help, .inline-cta, .toc, .chips { display: none !important; }
  .article-shell { grid-template-columns: minmax(0, 1fr); }
}
