/* ============================================================================
   PECTAA Exam Guide — main.css
   Bright, high-contrast content layout (white + blue links + orange CTAs).
   Plain CSS, mobile-first, no build step. No shared visual language with pkdomain.
   ============================================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --bg-sink: #edf2fa;
  --ink: #16202b;
  --ink-soft: #48566a;
  --ink-mute: #78889c;

  --brand: #1763e4;        /* primary blue — links, brand, highlights */
  --brand-deep: #0b3aa8;   /* hero band, deep accents */
  --brand-tint: #e7f0fe;

  --cta: #e8710a;          /* orange — primary buttons and calls to action */
  --cta-hover: #cf6207;
  --cta-tint: #fdecd9;

  --ok: #1a8a45;           /* green — success / "result available" */
  --ok-tint: #e4f4ea;

  --warn-tint: #fef2e0;    /* pale amber — used only for the disclaimer callout */

  --line: #e3e9f1;
  --line-strong: #d2dbe8;
  --danger: #c5322a;
  --ring: rgba(23, 99, 228, .42);

  --r-xs: 4px;
  --r: 8px;
  --r-lg: 14px;

  --shadow-hair: 0 1px 2px rgba(22, 32, 43, .06);
  --shadow-lift: 0 14px 36px -16px rgba(22, 32, 43, .26);

  --wrap: 1120px;
  --wrap-wide: 1240px;
  --wrap-text: 720px;
  --pad: clamp(18px, 5vw, 40px);

  --f-head: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --t: 160ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(1.95rem, 1.4rem + 2.7vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.05rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1rem; }
a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
strong { font-weight: 600; color: var(--ink); }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin: .3rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: var(--r-xs); }

.skip {
  position: absolute; left: 14px; top: -56px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r);
  transition: top var(--t) ease;
}
.skip:focus { top: 14px; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--wide { max-width: var(--wrap-wide); }
.wrap--text { max-width: var(--wrap-text); }

.section { padding-block: clamp(44px, 8vw, 84px); }
.section--sink { background: var(--bg-alt); }
.section--tight { padding-block: clamp(26px, 5vw, 42px); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--cta); }

.headline { max-width: 44ch; margin-bottom: 34px; }
.headline p { color: var(--ink-soft); font-size: 1.07rem; margin: 0; }
.headline--center { margin-inline: auto; text-align: center; }
.headline--center .kicker::before { display: none; }

.prose { max-width: 66ch; }
.prose p { color: var(--ink-soft); }
.prose > :last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cta); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 11px 20px;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem; line-height: 1;
  color: var(--fg); background: var(--bg);
  border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; text-decoration: none;
  transition: background var(--t) ease, border-color var(--t) ease, transform var(--t) ease, box-shadow var(--t) ease;
}
.btn:hover { background: var(--cta-hover); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn--lg { min-height: 52px; padding: 15px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--brand { --bg: var(--brand); }
.btn--brand:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.btn--outline {
  --bg: transparent; --fg: var(--brand);
  border-color: var(--line-strong);
}
.btn--outline:hover { background: var(--brand-tint); }
.btn--ghost-light {
  --bg: rgba(255,255,255,.1); --fg: #fff;
  border-color: rgba(255,255,255,.34);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.2); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }

.arrowlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--brand) 32%, transparent);
  padding-bottom: 1px;
}
.arrowlink svg { width: 15px; height: 15px; transition: transform var(--t) ease; }
.arrowlink:hover { text-decoration: none; border-bottom-color: currentColor; }
.arrowlink:hover svg { transform: translateX(3px); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 500;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft);
}
.chip svg { width: 13px; height: 13px; color: var(--ok); }
.chip--ondark { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #eef3fc; }
.chip--ondark svg { color: #8fe0ac; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.masthead.is-stuck { box-shadow: var(--shadow-hair); }
.masthead__in { display: flex; align-items: center; gap: 20px; min-height: 64px; }

.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; text-decoration: none; flex-shrink: 0; line-height: 1.05; }
.brand:hover { text-decoration: none; }
.brand__name {
  font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
  color: var(--ink);
}
.brand__dot { color: var(--cta); }
.brand__label {
  font-size: .62rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-mute); white-space: nowrap;
}

.mainnav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mainnav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav__link {
  display: inline-flex; padding: 8px 12px; border-radius: var(--r);
  font-weight: 600; font-size: .92rem; color: var(--ink-soft); text-decoration: none;
  white-space: nowrap; transition: color var(--t) ease, background var(--t) ease;
}
.mainnav__link:hover, .mainnav__link[aria-current="page"] {
  color: var(--brand); background: var(--brand-tint); text-decoration: none;
}

.hsearch { position: relative; flex-shrink: 0; }
.hsearch input {
  width: 200px; height: 40px; padding: 0 14px 0 38px;
  font-family: var(--f-body); font-size: .9rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r);
}
.hsearch input::placeholder { color: var(--ink-mute); }
.hsearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-mute); }

.navtoggle {
  display: none; width: 44px; height: 44px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r);
  color: var(--ink); cursor: pointer;
}
.navtoggle svg { width: 20px; height: 20px; }

@media (max-width: 1120px) {
  .mainnav__list, .masthead .hsearch { display: none; }
  .navtoggle { display: inline-flex; }
  .masthead.is-open .mainnav {
    position: absolute; inset: 100% 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: 12px var(--pad) 20px;
  }
  .masthead.is-open .mainnav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .masthead.is-open .mainnav__link { padding: 12px; font-size: 1rem; }
  .masthead.is-open .mainnav .hsearch { display: block; margin-top: 12px; }
  .masthead.is-open .mainnav .hsearch input { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #1a5fe0, var(--brand-deep) 66%);
  color: #eaf1fe;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 320px at 90% 4%, rgba(232, 113, 10, .22), transparent 68%);
  pointer-events: none;
}
.hero__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 58px);
  align-items: center; padding-block: clamp(38px, 6vw, 66px);
}
.hero .kicker { color: #ffc588; }
.hero .kicker::before { background: #ffc588; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero__sub { color: #cbdcf8; font-size: 1.1rem; max-width: 34ch; margin-bottom: 22px; }
.hero__boards { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }

.hero__art { position: relative; }
.hero__art .panel {
  background: #eef3fc; border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--shadow-lift);
}
.hero__art svg { width: 100%; height: auto; }

@media (max-width: 920px) {
  .hero__in { grid-template-columns: 1fr; gap: 30px; }
  .hero__art { max-width: 300px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero__art { display: none; }
}

/* ---------- Lookup search (hero) ---------- */
.lookup {
  background: var(--bg); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lift);
  padding: 8px 8px 14px;
}
.lookup__tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.lookup__tab {
  flex: 1; padding: 12px 8px; background: transparent; border: 0;
  font-family: var(--f-head); font-weight: 700; font-size: .86rem; color: var(--ink-mute);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t) ease, border-color var(--t) ease;
}
.lookup__tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.lookup__panel { padding: 16px 10px 4px; }
.lookup__panel[hidden] { display: none; }
.lookup__row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; }
.lookup__row--split { grid-template-columns: 1fr 1fr; }
.lookup__row--split .btn { width: 100%; }
.lookup__row select, .lookup__row input {
  height: 46px; padding: 0 12px; font-family: var(--f-body); font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r);
}
.lookup__row input { font-family: var(--f-mono); letter-spacing: .02em; }
.lookup__hint { margin: 10px 2px 0; font-size: .8rem; color: var(--ink-mute); }
@media (max-width: 560px) {
  .lookup__row { grid-template-columns: 1fr; }
  .lookup__row .btn { width: 100%; }
}

/* ---------- Ad slot ---------- */
.ad {
  text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--r);
  background: var(--bg-alt); padding: 12px;
}
.ad__tag {
  display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.ad__fill {
  display: grid; place-items: center; width: 100%; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-xs);
  color: var(--ink-mute); font-size: .8rem;
}
.ad--leaderboard .ad__fill { min-height: 90px; max-width: 728px; margin-inline: auto; }
.ad--rect .ad__fill { min-height: 250px; }

/* ---------- Tool cards ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tool {
  position: relative; display: block; padding: 22px 20px 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; overflow: hidden;
  transition: border-color var(--t) ease, box-shadow var(--t) ease, transform var(--t) ease;
}
.tool::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); transform: scaleY(0); transform-origin: top;
  transition: transform var(--t) ease;
}
.tool:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.tool:hover::before { transform: scaleY(1); }
.tool__n { display: block; font-family: var(--f-head); font-size: 1rem; color: var(--cta); font-weight: 800; }
.tool__ico { display: block; margin: 6px 0 12px; color: var(--brand); }
.tool__ico svg { width: 26px; height: 26px; }
.tool__name { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-bottom: 3px; }
.tool__desc { display: block; font-size: .88rem; color: var(--ink-mute); }

/* ---------- Split (prose + illustration) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 56px); align-items: center; }
.split--flip .split__art { order: -1; }
@media (max-width: 840px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__art { order: 0; }
}
.split__art svg { width: 100%; height: auto; border-radius: var(--r-lg); }

/* ---------- Comparison table (Grade 5 vs 8) ---------- */
.compare {
  display: grid; grid-template-columns: 1fr 132px 1fr;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg);
}
.compare__head { padding: 20px; text-align: center; background: var(--brand-tint); }
.compare__head h3 { margin: 0; }
.compare__head--mid { background: var(--bg-sink); }
.compare__cell {
  padding: 15px 18px; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-soft);
}
.compare__cell--label {
  text-align: center; font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute);
  background: var(--bg-sink);
  display: flex; align-items: center; justify-content: center;
}
.compare__cell strong { display: block; }
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .compare__head--mid { display: none; }
  .compare__cell--label {
    justify-content: flex-start; background: transparent; border-top: 1px solid var(--line-strong);
    padding-bottom: 2px; color: var(--cta);
  }
  .compare__cell { border-top: 0; padding-top: 4px; padding-bottom: 14px; }
}

/* ---------- Steps (numbered vertical) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 26px 60px; margin: 0; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; color: #fff;
  background: var(--brand); border-radius: 50%;
}
.steps li::after {
  content: ""; position: absolute; left: 20px; top: 42px; bottom: 0; width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 4px; font-size: 1.1rem; }
.steps p { margin: 0; font-size: .95rem; }

/* ---------- Timeline (exam cycle) ---------- */
.cycle { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.cycle li { position: relative; margin: 0; padding: 2px 0 22px 28px; }
.cycle li:last-child { padding-bottom: 0; }
.cycle li::before {
  content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--brand);
}
.cycle li[data-done]::before { background: var(--brand); }
.cycle__label { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.cycle__note { font-size: .9rem; color: var(--ink-mute); }

/* ---------- Stat band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--brand-tint); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
}
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 26px 18px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(11, 58, 168, .12); }
@media (max-width: 680px) {
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(11, 58, 168, .12); }
}
.stat__n { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.55rem); color: var(--brand-deep); line-height: 1; }
.stat__l { margin-top: 8px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Results hub (8th / 5th by board) ---------- */
.reshub { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 780px) { .reshub { grid-template-columns: 1fr; } }
.reshub__group {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 22px 12px;
}
.reshub__title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-size: 1.15rem;
}
.reshub__title svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
.reshub__badge {
  margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ok); background: var(--ok-tint);
  padding: 3px 8px; border-radius: 999px;
}
.reslist { list-style: none; margin: 0; padding: 0; }
.reslist li { margin: 0; border-top: 1px solid var(--line); }
.reslist li:first-child { border-top: 0; }
.reslist a {
  display: flex; align-items: center; gap: 10px; padding: 11px 4px;
  font-size: .93rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color var(--t) ease, padding var(--t) ease;
}
.reslist a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-strong); flex-shrink: 0; transition: background var(--t) ease;
}
.reslist a:hover { color: var(--brand); text-decoration: none; padding-left: 10px; }
.reslist a:hover::before { background: var(--brand); }

/* ---------- Magazine block (guides + rail) ---------- */
.mag { display: grid; grid-template-columns: 1fr 312px; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (max-width: 940px) { .mag { grid-template-columns: 1fr; } }

.posts { display: grid; gap: 18px; }
.post {
  display: grid; grid-template-columns: 128px 1fr; gap: 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none;
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
.post:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.post__thumb { background: var(--bg-sink); }
.post__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 16px 18px 16px 0; }
.post__meta { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cta); margin-bottom: 5px; }
.post__body h3 { font-size: 1.06rem; margin: 0 0 5px; color: var(--ink); }
.post__body p { margin: 0; font-size: .9rem; color: var(--ink-mute); }
@media (max-width: 460px) { .post { grid-template-columns: 1fr; } .post__thumb { aspect-ratio: 16/7; } .post__body { padding: 0 16px 16px; } }
.posts--search .post { grid-template-columns: 1fr; }
.posts--search .post__body { padding: 15px 18px; }

.rail { position: sticky; top: 84px; display: grid; gap: 20px; }
.rail__card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.rail__card h4 { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 700; }
.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__list li { margin: 0; border-top: 1px solid var(--line); }
.rail__list li:first-child { border-top: 0; }
.rail__list a { display: block; padding: 10px 0; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.rail__list a:hover { color: var(--brand); text-decoration: none; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--wrap-text); margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 4px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--f-head); font-weight: 700; font-size: 1.06rem; color: var(--ink);
}
.faq__q:hover { color: var(--brand); }
.faq__q svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--brand); transition: transform var(--t) ease; }
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--t) ease; }
.faq__a > div { padding: 0 4px 20px; font-size: .96rem; color: var(--ink-soft); }
.faq__item.is-open .faq__a { max-height: 460px; }

/* ---------- Callout ---------- */
.callout {
  display: flex; gap: 14px; padding: 20px 22px;
  background: var(--warn-tint); border: 1px solid #f2d9b6; border-radius: var(--r-lg);
}
.callout svg { width: 22px; height: 22px; color: var(--cta); flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0; font-size: .92rem; color: #74521f; }
.callout strong { color: #5a3f15; }

/* ---------- CTA band ---------- */
.ctaband {
  background: linear-gradient(165deg, #1a5fe0, var(--brand-deep));
  color: #eaf1fe; border-radius: var(--r-lg);
  padding: clamp(30px, 5vw, 54px); text-align: center;
}
.ctaband h2 { color: #fff; }
.ctaband p { color: #cbdcf8; max-width: 46ch; margin-inline: auto; }
.ctaband__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 50px 28px; font-size: .92rem; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }
.foot h4 { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--brand); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--brand); }
.foot__about { color: var(--ink-mute); max-width: 34ch; margin: 12px 0 14px; }
.foot__news { display: flex; gap: 8px; margin-top: 10px; }
.foot__news input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); font-family: var(--f-body); font-size: .88rem; }
.foot__social { display: flex; gap: 10px; margin-top: 14px; }
.foot__social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-soft); background: var(--bg); }
.foot__social a:hover { border-color: var(--brand); color: var(--brand); }
.foot__social svg { width: 18px; height: 18px; }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: .82rem; color: var(--ink-mute); }
.foot__bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot__bottom a { color: var(--ink-mute); }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 540px; margin-inline: auto;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: .86rem; color: var(--ink-soft);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 220px; }
.cookie .btn { min-height: 38px; padding: 9px 15px; font-size: .84rem; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--brand-deep); color: #fff; border: 0; border-radius: 50%;
  cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity var(--t) ease, transform var(--t) ease;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 19px; height: 19px; }

/* ---------- Reveal (only hides when JS is confirmed) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .36s cubic-bezier(.2,.6,.2,1), transform .36s cubic-bezier(.2,.6,.2,1); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   INNER PAGE COMPONENTS
   ============================================================================ */

/* ---------- Breadcrumb ---------- */
.crumbs { border-bottom: 1px solid var(--line); background: var(--bg); }
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; padding: 12px 0; font-size: .85rem;
}
.crumbs li { display: flex; align-items: center; gap: 8px; margin: 0; }
.crumbs li + li::before { content: "›"; color: var(--line-strong); }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Page header ---------- */
.pagehead { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: clamp(26px, 5vw, 44px); }
.pagehead h1 { margin: 12px 0 12px; max-width: 20ch; }
.pagehead .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.pagehead__meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: .84rem; color: var(--ink-mute); }
.pagehead__meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--wait { background: var(--cta-tint); color: #8a4c10; }
.status--live { background: var(--ok-tint); color: #12692f; }

/* ---------- Article layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 312px; gap: clamp(30px, 4vw, 52px); align-items: start; padding-block: clamp(36px, 6vw, 64px); }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } .layout .rail { display: none; } }
.article { max-width: 760px; }
.article > h2 { margin-top: 2.4rem; }
.article > h2:first-child, .article > *:first-child { margin-top: 0; }
.article h3 { margin-top: 1.6rem; }

/* ---------- Segmented toggle ---------- */
.seg { display: inline-flex; padding: 4px; background: var(--bg-sink); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 22px; }
.seg button {
  padding: 9px 22px; border: 0; background: transparent; border-radius: 999px;
  font-family: var(--f-head); font-weight: 700; font-size: .92rem; color: var(--ink-mute);
  cursor: pointer; transition: background var(--t) ease, color var(--t) ease;
}
.seg button[aria-selected="true"] { background: var(--bg); color: var(--brand); box-shadow: var(--shadow-hair); }
.seg-panel[hidden] { display: none; }

/* ---------- Data table ---------- */
.dtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.dtable { width: 100%; border-collapse: collapse; }
.dtable caption { text-align: left; padding: 14px 16px; font-size: .85rem; color: var(--ink-mute); border-bottom: 1px solid var(--line); }
.dtable th, .dtable td { padding: 13px 16px; text-align: left; font-size: .92rem; border-top: 1px solid var(--line); }
.dtable thead th { background: var(--brand-tint); color: var(--ink); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.dtable tbody tr:nth-child(even) td { background: var(--bg-alt); }
.dtable td.paper { font-weight: 600; color: var(--ink); }
.dtable .tba { color: var(--ink-mute); font-style: italic; }
@media (max-width: 620px) {
  .dtable-wrap { overflow: visible; border: 0; border-radius: 0; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; }
  .dtable thead, .dtable caption { display: none; }
  .dtable tr { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; padding: 4px 0; }
  .dtable td { border: 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .dtable tr td:first-child { border-top: 0; }
  .dtable td::before { content: attr(data-label); font-weight: 700; color: var(--ink-mute); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .dtable tbody tr:nth-child(even) td { background: transparent; }
}

/* ---------- Info box ---------- */
.infobox { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r); background: var(--bg); padding: 18px 20px; margin: 22px 0; }
.infobox h3 { margin: 0 0 8px; font-size: 1rem; }
.infobox p:last-child { margin-bottom: 0; }
.infobox--wait { border-left-color: var(--cta); background: var(--cta-tint); }
.infobox--wait h3, .infobox--wait p { color: #74521f; }
.infobox--wait strong { color: #5a3f15; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; margin: 0; font-size: .96rem; }
.checklist svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--ok); margin-top: 2px; }
.checklist b { color: var(--ink); font-weight: 600; }

/* ---------- Related cards ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.relcard { display: block; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color var(--t) ease, box-shadow var(--t) ease; }
.relcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); text-decoration: none; }
.relcard svg { width: 22px; height: 22px; color: var(--brand); margin-bottom: 8px; }
.relcard b { display: block; font-family: var(--f-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }
.relcard span { font-size: .85rem; color: var(--ink-mute); }

/* ---------- Contact form ---------- */
.cform { display: grid; gap: 16px; max-width: 480px; margin-top: 20px; }
.cform label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.cform__opt { font-weight: 400; color: var(--ink-mute); }
.cform input, .cform textarea {
  font: inherit; font-weight: 400; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--bg); color: var(--ink); width: 100%; resize: vertical;
}
.cform input:focus, .cform textarea:focus { border-color: var(--brand); }
.cform .btn { justify-self: start; }
.cform__note { font-size: .82rem; color: var(--ink-mute); margin: 0; font-weight: 400; }

/* ---------- Article prose lists ---------- */
.article ul { padding-left: 1.15rem; }
.article ul li, .article ol:not(.steps):not(.cycle) li { margin: .4rem 0; color: var(--ink-soft); }

/* ---------- Utilities ---------- */
.mt { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.vh { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
