/* =============================================================================
   styles.css — In-State Tuition Date.com
   Red Goggles house style · academic-navy accent · editorial-calm
   Source Serif 4 (display/editorial) + Source Sans 3 (UI)
   NOTE: the small critical block in index.html <head> mirrors the :root +
   header + hero rules here. Keep both in sync (see docs/build.md).
   ============================================================================= */

:root {
  /* surfaces */
  --paper: #f6f8f7;
  --card: #ffffff;
  --card-2: #fbfcfc;

  /* ink */
  --ink: #1b2127;
  --ink-soft: #515b65;
  --ink-faint: #8a939b;

  /* lines */
  --line: #e5e9e9;
  --line-strong: #d4dadb;

  /* accent — academic navy (preview-swappable via [data-accent]) */
  --accent: #2c4f7c;
  --accent-deep: #1f3a5c;
  --accent-tint: #ebf1f7;
  --accent-tint-2: #dde7f1;

  /* verdict — fixed green/red, kept distinct from the accent */
  --good: #1d754e;
  --good-tint: #e7f2eb;
  --good-line: #b9ddc7;
  --bad: #b14a3c;
  --bad-tint: #f7ece9;
  --bad-line: #e6c5bd;

  /* warm flag for sample/verify notices */
  --flag: #8a6d2f;
  --flag-tint: #f6efdd;
  --flag-line: #e6d6a8;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(27, 33, 39, .04), 0 1px 3px rgba(27, 33, 39, .05);
  --shadow-md: 0 2px 8px rgba(27, 33, 39, .06), 0 8px 24px rgba(27, 33, 39, .06);

  --maxw: 1140px;
  --gutter: clamp(18px, 4vw, 40px);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* preview accent swaps (the small swatch row) */
[data-accent="green"] { --accent: #1f6f54; --accent-deep: #16513d; --accent-tint: #e8f2ee; --accent-tint-2: #d4e7df; }
[data-accent="teal"]  { --accent: #1d6f73; --accent-deep: #154e51; --accent-tint: #e6f1f1; --accent-tint-2: #cfe6e6; }
[data-accent="clay"]  { --accent: #b0532c; --accent-deep: #863d1f; --accent-tint: #f7ece5; --accent-tint-2: #efd9cb; }
[data-accent="navy"]  { --accent: #2c4f7c; --accent-deep: #1f3a5c; --accent-tint: #ebf1f7; --accent-tint-2: #dde7f1; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 2px; }
strong { font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

/* ----------------------------------- header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 247, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand__mark { width: 30px; height: 30px; flex: none; display: block; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__tld { color: var(--accent); font-weight: 600; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.site-nav a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent-tint-2); }
.site-nav__cta {
  color: var(--accent) !important; font-weight: 600;
}
@media (max-width: 720px) { .site-nav .nav-hide { display: none; } }

/* ----------------------------------- hero --------------------------------- */
.hero { padding: clamp(34px, 6vw, 64px) 0 clamp(26px, 4vw, 40px); }
.hero__grid {
  display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero__eyebrow { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 24px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  font-family: var(--sans); font-size: .82rem; color: var(--ink-soft);
}
.meta-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; background: var(--card); border: 1px solid var(--line);
  border-radius: 100px; white-space: nowrap;
}
.meta-chip svg { width: 13px; height: 13px; color: var(--accent); }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__art { order: -1; }
  .hero__sub { max-width: none; }
}

/* hero clock→date visual */
.heroclock {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 28px);
}
.heroclock__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.heroclock__node .lbl {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 5px;
}
.heroclock__node .date { font-family: var(--serif); font-size: 1.04rem; font-weight: 600; }
.heroclock__node--out .date { color: var(--accent); }
.heroclock__node--out { text-align: right; }

.heroclock__track { position: relative; margin: 22px 2px 6px; height: 46px; }
.heroclock__line {
  position: absolute; top: 21px; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.heroclock__sweep {
  position: absolute; top: 21px; left: 0; height: 2px; width: 100%;
  background: var(--accent);
  transform-origin: left center;
}
.heroclock__ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.heroclock__ticks i { width: 1px; height: 9px; margin-top: 17px; background: var(--line-strong); }
.heroclock__ticks i:first-child, .heroclock__ticks i:last-child { background: var(--accent); height: 13px; margin-top: 15px; }
.heroclock__cap {
  position: absolute; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--accent); background: var(--card);
}
.heroclock__cap--start { left: -2px; }
.heroclock__cap--end { right: -2px; background: var(--accent); }
.heroclock__span {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .68rem; color: var(--ink-faint);
  letter-spacing: .02em; white-space: nowrap;
}
.heroclock__foot {
  margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.heroclock__clockend { font-size: .78rem; color: var(--ink-soft); }
.heroclock__clockend b { color: var(--ink); font-weight: 600; }

/* the restrained verdict stamp (shared by hero + results) */
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 100px;
  font-family: var(--sans); font-size: .84rem; font-weight: 600;
  border: 1px solid; white-space: nowrap;
}
.stamp--good { color: var(--good); background: var(--good-tint); border-color: var(--good-line); }
.stamp--bad { color: var(--bad); background: var(--bad-tint); border-color: var(--bad-line); }
.stamp__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stamp__margin { font-family: var(--mono); font-size: .8rem; font-weight: 500; opacity: .9; }

/* ------------------------------- ad slots --------------------------------- */
/* LIVE behavior (docs/ad_slots.md → "Unfilled slot behavior"): each slot reserves
   its dimensions in CSS so there's no Cumulative Layout Shift, but renders NOTHING
   visible until AdSense actually fills it. The "Advertisement" label appears only
   on a real fill (gated by the data-ad-status="filled" attribute Google sets). */
.ad-slot { display: block; margin-inline: auto; text-align: center; }
.ad-slot__label {
  display: none;
  font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 4px;
}
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot__label { display: block; }
.ad-slot ins[data-ad-status="unfilled"] { display: none !important; }
.ad-slot--top { min-height: 90px; max-width: 728px; margin-block: 8px 0; }
.ad-slot--pre { min-height: 250px; width: 300px; max-width: 100%; margin-block: 8px; }
.ad-slot--mid { min-height: 90px; max-width: 728px; margin-block: 8px; }
.ad-slot--sidebar { min-height: 600px; width: 300px; }
.ad-slot--sticky { min-height: 50px; width: 320px; max-width: 100%; }
@media (max-width: 880px) {
  .ad-slot--top { min-height: 100px; max-width: 320px; }
  .ad-slot--mid { min-height: 250px; max-width: 300px; }
}

/* mobile sticky anchor */
.ad-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  height: 56px; background: var(--card); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -2px 12px rgba(27,33,39,.07);
}
.ad-sticky .ad-slot { border: none; background: none; min-height: 50px; width: 320px; max-width: 100%; }
.ad-sticky__close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--card-2); color: var(--ink-soft); cursor: pointer; font-size: 15px; line-height: 1;
}
@media (max-width: 880px) { .ad-sticky.is-on { display: flex; } body.has-sticky { padding-bottom: 56px; } }

/* --------------------------- calculator + result -------------------------- */
.calc-section { padding: clamp(12px, 3vw, 28px) 0 clamp(30px, 5vw, 56px); scroll-margin-top: 80px; }
.calc-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(22px, 3vw, 40px); align-items: start; }
.calc-main { min-width: 0; }
@media (max-width: 980px) { .calc-layout { grid-template-columns: 1fr; } .calc-sidebar { display: none; } }

.section-head { margin-bottom: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-head p { color: var(--ink-soft); margin-top: 8px; max-width: 60ch; }

.calc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.calc-card__head {
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  background: var(--card-2);
}
.calc-card__head .kicker { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.calc-card__head .step { margin-left: auto; font-size: .8rem; color: var(--ink-faint); font-family: var(--mono); }
.calc-body { padding: 22px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.field label svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.field .hint { font-size: .75rem; color: var(--ink-faint); font-weight: 400; }
.field input, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card); width: 100%; appearance: none;
  transition: border-color .12s, box-shadow .12s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23515b65' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.field--optional .opt-tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--paper); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 100px;
}

/* result card */
.result {
  margin-top: 22px; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.result__hero {
  padding: clamp(22px, 3vw, 30px); display: grid; grid-template-columns: 1fr auto; gap: 20px;
  align-items: center; border-bottom: 1px solid var(--line);
}
@media (max-width: 620px) { .result__hero { grid-template-columns: 1fr; } }
.result__date-lbl { font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.result__date {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; color: var(--ink);
}
.result__date .yr { color: var(--accent); }
.result__caption { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); max-width: 46ch; }
.result__verdict { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
@media (max-width: 620px) { .result__verdict { align-items: flex-start; text-align: left; } }
.result__verdict .big {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
}
.result__verdict .big.good { color: var(--good); }
.result__verdict .big.bad { color: var(--bad); }
.result__verdict .term { font-size: .85rem; color: var(--ink-soft); }

.result__rows { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .result__rows { grid-template-columns: 1fr; } }
.result__row { padding: 18px 22px; border-top: 1px solid var(--line); }
.result__row:nth-child(odd) { border-right: 1px solid var(--line); }
@media (max-width: 620px) { .result__row:nth-child(odd) { border-right: none; } }
.result__row .k {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 7px; display: flex; align-items: center; gap: 7px;
}
.result__row .k svg { width: 13px; height: 13px; color: var(--accent); }
.result__row .v { font-size: .96rem; color: var(--ink); }
.result__row .v b { font-weight: 600; }
.result__row .v .mono { font-family: var(--mono); font-size: .9rem; }

/* provenance / sample-data + disclaimer */
.provenance {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 14px 22px; border-top: 1px solid var(--line); background: var(--card-2);
  font-size: .82rem; color: var(--ink-soft);
}
.verify-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px;
  background: var(--flag-tint); border: 1px solid var(--flag-line); color: var(--flag);
  border-radius: 100px; font-weight: 600; font-size: .76rem;
}
.verify-chip svg { width: 12px; height: 12px; }
.provenance a { font-weight: 600; }
.source-link { color: var(--ink-faint); cursor: help; border-bottom: 1px dotted var(--ink-faint); text-decoration: none; }

.disclaimer {
  padding: 16px 22px; border-top: 1px solid var(--line);
  font-size: .82rem; line-height: 1.55; color: var(--ink-soft); background: var(--card);
}
.disclaimer b { color: var(--ink); }

/* empty / prompt state */
.result--empty { display: flex; align-items: center; gap: 14px; padding: 26px 22px; color: var(--ink-soft); }
.result--empty .ico { width: 36px; height: 36px; color: var(--accent); flex: none; }

/* ------------------------------- explainer -------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 0 0 14px; scroll-margin-top: 80px; }
.prose h3 { font-size: 1.18rem; margin: 28px 0 8px; }
.prose p { color: var(--ink); font-size: 1.04rem; }
.prose .lead { font-size: 1.16rem; color: var(--ink-soft); }
.explainer { padding: clamp(20px, 4vw, 40px) 0; }
.explainer + .explainer { border-top: 1px solid var(--line); }

.clockend-table { width: 100%; border-collapse: collapse; margin: 18px 0 6px; font-size: .95rem; }
.clockend-table th, .clockend-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.clockend-table th { font-family: var(--sans); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.clockend-table td:first-child { font-weight: 600; white-space: nowrap; color: var(--accent); }

.callout {
  border-left: 3px solid var(--accent); background: var(--accent-tint);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0;
  font-size: .96rem; color: var(--ink);
}
.callout--warn { border-left-color: var(--flag); background: var(--flag-tint); }
.callout b { font-weight: 600; }

/* FAQ */
.faq { padding: clamp(20px, 4vw, 40px) 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px; padding: 18px 2px;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.faq__q:hover { color: var(--accent); }
.faq__q .chev { margin-left: auto; flex: none; transition: transform .2s; color: var(--ink-faint); }
.faq__item.is-open .faq__q .chev { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a p { padding: 0 2px 18px; color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* --------------------------------- footer --------------------------------- */
.site-footer { background: var(--ink); color: #c4ccd2; margin-top: clamp(30px, 5vw, 56px); }
.site-footer a { color: #d8dee3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  padding: clamp(34px, 5vw, 52px) 0 30px;
}
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr; gap: 28px; } }
.footer__brand .badge {
  width: 34px; height: 34px; border-radius: 8px; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.1rem;
}
.footer__brand .name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: #fff; margin: 12px 0 8px; }
.footer__brand .name .tld { color: #8fb0d8; }
.footer__brand .tag { font-size: .9rem; color: #9aa4ab; max-width: 30ch; }
.footer__col h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #8a949b; margin: 4px 0 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .94rem; }
.footer__divider { border: none; border-top: 1px solid #2c343b; margin: 0; }
.footer__legal { padding: 22px 0; font-size: .82rem; line-height: 1.6; color: #8c969d; max-width: 95ch; }
.footer__legal b { color: #c4ccd2; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 0 30px; font-size: .85rem; color: #8c969d;
}
@media (max-width: 600px) { .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; } }
.footer__bottom button {
  background: none; border: none; color: #d8dee3; cursor: pointer; font: inherit;
  text-decoration: underline; text-underline-offset: 2px; padding: 0;
}

/* preview accent switcher (design tool — not part of production page) */
.accent-preview {
  position: fixed; left: 14px; bottom: 14px; z-index: 70;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 7px 12px 7px 13px; box-shadow: var(--shadow-md); font-size: .72rem; color: var(--ink-soft);
}
.accent-preview .lbl { font-weight: 600; letter-spacing: .02em; }
.accent-preview .swatches { display: flex; gap: 6px; }
.accent-preview button {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0;
}
.accent-preview button.is-active { box-shadow: 0 0 0 2px var(--ink); }
.accent-preview .x { margin-left: 2px; background: none; border: none; box-shadow: none; color: var(--ink-faint); cursor: pointer; font-size: 15px; width: auto; }
@media (max-width: 880px) { .accent-preview { bottom: 70px; } }

/* utility */
.divider-rule { border: none; border-top: 1px solid var(--line); margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ------------------------------ privacy modal ----------------------------- */
/* Modal (not a route), accessible: role=dialog + aria-modal, focus trap, ESC and
   click-outside close, focus returns to the trigger (see docs/privacy.md). */
.pm-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20, 26, 31, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 5vh, 60px) var(--gutter);
  overflow-y: auto;
}
.pm {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(20, 26, 31, .3);
  width: 100%; max-width: 640px; margin: auto;
  display: flex; flex-direction: column; max-height: calc(100vh - 32px);
}
.pm__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; border-bottom: 1px solid var(--line); flex: none;
}
.pm__head h2 { font-size: 1.15rem; }
.pm__close {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--card-2);
  color: var(--ink-soft); font-size: 18px; line-height: 1; cursor: pointer;
}
.pm__close:hover { color: var(--ink); }
.pm__body { padding: 20px 24px; overflow-y: auto; }
.pm__body h3 { font-size: 1rem; margin: 20px 0 6px; }
.pm__body p, .pm__body li { font-size: .92rem; color: var(--ink-soft); }
.pm__body ul { margin: 0 0 1em; padding-left: 20px; }
.pm__body li { margin-bottom: 6px; }
.pm__lead { font-size: 1rem; color: var(--ink); }
.pm__updated { font-size: .8rem; color: var(--ink-faint); margin-top: 18px; }
.pm__manage {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent-tint-2);
  padding: 8px 14px; border-radius: var(--radius);
}
.pm__manage:hover { background: var(--accent-tint-2); }
.pm__foot {
  padding: 16px 24px; border-top: 1px solid var(--line); flex: none;
  display: flex; justify-content: flex-end;
}
.pm__done {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: none;
  padding: 9px 20px; border-radius: 100px;
}
.pm__done:hover { background: var(--accent-deep); }

/* ----------------------- CookieConsent v3 — site theme -------------------- */
/* Theme the vendored library to the palette (docs/consent.md → "Theme v3's own
   CSS to match the design"). We never replace the library; we only re-skin it. */
#cc-main {
  --cc-font-family: var(--sans);
  --cc-link-color: var(--accent);
  --cc-btn-primary-bg: var(--accent);
  --cc-btn-primary-border-color: var(--accent);
  --cc-btn-primary-hover-bg: var(--accent-deep);
  --cc-btn-primary-hover-border-color: var(--accent-deep);
  --cc-toggle-on-bg: var(--accent);
  --cc-toggle-on-knob-bg: #fff;
  --cc-modal-border-radius: var(--radius-lg);
  --cc-btn-border-radius: 100px;
  --cc-cookie-category-block-bg: var(--card-2);
}
