/* =============================================================================
   Line 4C.com — styles.css
   Red Goggles portfolio house style: calm, editorial, trustworthy money tool.
   Type:  Source Serif 4 (display + the hero number) / Public Sans (UI + body)
   Color: cool paper, pine-green accent, amber "highlighter" motif
   NOTE: the above-the-fold subset of these rules is mirrored inline in
   index.html <head> as critical CSS (see build.md). Update both together.
   ========================================================================== */

/* ----- Tokens ------------------------------------------------------------- */
:root {
  --paper:        #f4f7f5;
  --paper-2:      #eef2ef;
  --card:         #ffffff;
  --ink:          #16201c;
  --ink-2:        #38463f;
  --muted:        #647067;
  --faint:        #8a958d;
  --line:         #dde4df;
  --line-2:       #e8ece9;

  --accent:       #155c46;   /* pine green */
  --accent-deep:  #0f4434;
  --accent-soft:  #e3efe8;
  --accent-tint:  #d6e7de;

  --amber:        #e9b949;   /* highlighter motif */
  --amber-soft:   #fbf0d2;
  --amber-line:   #ecc873;

  --danger:       #a23b2c;

  --maxw:         1100px;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(20,40,30,.04), 0 6px 22px rgba(20,40,30,.06);
  --shadow-lg:    0 2px 6px rgba(20,40,30,.06), 0 18px 50px rgba(20,40,30,.10);

  --font-serif:   "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0;
}
.eyebrow--muted { color: var(--faint); }

.hl { background: linear-gradient(transparent 58%, var(--amber-soft) 58%); padding: 0 .06em; }
.hl-strong { background: var(--amber); border-radius: 2px; padding: 0 .14em; }

/* ----- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: var(--font-sans); font-weight: 800; font-size: 14px; letter-spacing: -.04em;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(15,68,52,.35);
}
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand__tld { color: var(--accent); }
.site-header__nav { display: flex; align-items: center; gap: 22px; }
.site-header__nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-header__nav a:hover { color: var(--accent); }
.site-header__cta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; display: inline-flex; align-items: center; gap: 6px; background: var(--card);
}
.site-header__cta b { color: var(--accent); font-weight: 700; }
@media (max-width: 680px){ .site-header__nav a.nav-link { display: none; } }

/* ----- Hero --------------------------------------------------------------- */
.hero { padding: 46px 0 26px; }
.hero__grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 48px; align-items: center; }
.hero__eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: clamp(33px, 4.6vw, 53px); }
.hero h1 .nums { font-variant-numeric: tabular-nums; }
.hero__sub { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ink-2); margin: 18px 0 22px; max-width: 38ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 9px 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.chip svg { width: 14px; height: 14px; flex: none; color: var(--accent); }
.chip--accent { background: var(--accent-soft); border-color: var(--accent-tint); color: var(--accent-deep); }

/* hero right-rail mini W-4 visual */
.w4mini {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px 20px; position: relative;
}
.w4mini__tag {
  position: absolute; top: -11px; left: 18px; background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 5px; font-weight: 600;
}
.w4mini__head { font-family: var(--font-serif); font-size: 15px; color: var(--muted); margin: 6px 0 14px; }
.w4row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.w4row__n { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.w4row__lab { font-size: 13.5px; color: var(--ink-2); }
.w4row__box { width: 86px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); }
.w4row--target { background: linear-gradient(90deg, transparent, var(--amber-soft)); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; border-top-color: transparent; }
.w4row--target .w4row__n,
.w4row--target .w4row__lab { color: var(--accent-deep); font-weight: 600; }
.w4row--target .w4row__box {
  border: 1.5px solid var(--accent); background: #fff; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 600; color: var(--accent-deep); font-size: 16px;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 3px var(--amber-soft);
}

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

/* ----- Layout: main + sticky sidebar ------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; align-items: start; padding-bottom: 30px; }
.rail { position: sticky; top: 80px; display: grid; gap: 18px; }
@media (max-width: 980px){ .layout { grid-template-columns: 1fr; } .rail { display: none; } }

/* ----- Cards / sections --------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { margin: 0 0 26px; }
.section__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.section h2 { font-size: clamp(23px, 2.4vw, 30px); margin-bottom: 14px; }
.section h3 { font-size: 19px; margin: 26px 0 8px; }
.prose { color: var(--ink-2); font-size: 16.5px; }
.prose p { margin-bottom: 1.05em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { font-weight: 500; }

/* ----- Calculator --------------------------------------------------------- */
.calc { padding: 22px 22px 24px; }
.calc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.calc__title { font-family: var(--font-serif); font-size: 22px; font-weight: 600; white-space: nowrap; }
.calc__step { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.calc__hint { font-size: 13.5px; color: var(--muted); margin: 2px 0 18px; }

.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field__note { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.money { position: relative; }
.money__sign { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 17px; font-variant-numeric: tabular-nums; pointer-events: none; }
.input, .select {
  width: 100%; height: 50px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font-family: var(--font-sans);
  font-size: 17px; padding: 0 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.money .input { padding-left: 30px; font-variant-numeric: tabular-nums; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .two-up { grid-template-columns: 1fr; } }

/* segmented filing status */
.seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 5px; }
.seg button {
  appearance: none; border: 1px solid transparent; background: transparent; cursor: pointer;
  border-radius: 7px; padding: 9px 6px 8px; text-align: center; font-family: var(--font-sans);
  color: var(--ink-2); transition: background .14s, color .14s, box-shadow .14s;
}
.seg button .t { display: block; font-size: 14px; font-weight: 600; }
.seg button .s { display: block; font-size: 11px; color: var(--faint); margin-top: 1px; line-height: 1.25; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow); border-color: var(--line); }
.seg button[aria-pressed="true"] .s { color: var(--muted); }
@media (max-width: 560px){ .seg { grid-template-columns: 1fr; } .seg button { text-align: left; padding: 10px 12px; } }

/* frequency pills */
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  appearance: none; cursor: pointer; font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  border-radius: 999px; padding: 8px 14px; transition: all .14s;
}
.pill b { font-variant-numeric: tabular-nums; color: var(--faint); font-weight: 600; margin-left: 5px; }
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.pill[aria-pressed="true"] b { color: var(--accent); }

/* mid-year proration toggle */
.proration { margin-top: 4px; border-top: 1px dashed var(--line); padding-top: 16px; }
.switchrow { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.switchrow__txt { font-size: 13.8px; color: var(--ink-2); }
.switchrow__txt b { color: var(--ink); font-weight: 600; }
.switch { position: relative; flex: none; width: 46px; height: 27px; border-radius: 999px; background: var(--line); border: none; cursor: pointer; transition: background .16s; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .16s; }
.switch[aria-pressed="true"] { background: var(--accent); }
.switch[aria-pressed="true"]::after { transform: translateX(19px); }
.remaining { margin-top: 14px; display: none; }
.remaining.is-open { display: block; }
.remaining__row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); }
.stepper button { width: 40px; border: none; background: transparent; font-size: 20px; color: var(--accent); cursor: pointer; }
.stepper button:hover { background: var(--accent-soft); }
.stepper input { width: 54px; border: none; background: transparent; text-align: center; font-size: 17px; font-variant-numeric: tabular-nums; font-family: var(--font-sans); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.stepper input:focus { outline: none; }

/* ----- Result ------------------------------------------------------------- */
.result { padding: 4px; }
.result__card {
  background: linear-gradient(180deg, #fff, var(--accent-soft) 230%);
  border: 1.5px solid var(--accent-tint); border-radius: var(--radius); padding: 26px 26px 22px; position: relative; overflow: hidden;
}
.result__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--amber)); }
.result__lab { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.result__hero { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin: 10px 0 4px; }
.result__amount { font-family: var(--font-serif); font-weight: 600; font-size: clamp(52px, 9vw, 78px); line-height: 1; color: var(--accent-deep); font-variant-numeric: tabular-nums; letter-spacing: -.01em; padding-right: 4px; }
.result__per { font-size: 16px; color: var(--muted); }
.result__sentence { font-size: 17.5px; color: var(--ink); max-width: 46ch; }
.result__sentence b { color: var(--accent-deep); }
.result__line4c {
  margin: 18px 0 4px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--accent-tint); border-radius: var(--radius-sm); padding: 12px 14px;
}
.result__line4c .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.result__line4c .lab { font-size: 13.5px; color: var(--ink-2); }
.result__line4c .val { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: var(--accent-deep); font-variant-numeric: tabular-nums; background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: 6px; padding: 3px 12px; }

.breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; margin-top: 18px; }
.breakdown__cell { background: #fff; padding: 13px 15px; }
.breakdown__k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-family: var(--font-mono); }
.breakdown__v { font-size: 19px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; }
.breakdown__v small { font-size: 13px; color: var(--muted); font-weight: 400; }
.breakdown__cell--math { grid-column: 1 / -1; background: var(--paper); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.breakdown__math { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.breakdown__math .op { color: var(--faint); }
.breakdown__math .eq { color: var(--accent); font-weight: 600; }
@media (max-width: 460px){ .breakdown { grid-template-columns: 1fr; } }

.result__empty { padding: 30px 26px; text-align: center; color: var(--muted); }
.result__empty .big { font-family: var(--font-serif); font-size: 22px; color: var(--ink-2); margin-bottom: 6px; }

/* explainer note blocks */
.note { display: flex; gap: 12px; padding: 15px 17px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.5; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.note--privacy { background: var(--accent-soft); border: 1px solid var(--accent-tint); color: var(--accent-deep); }
.note--privacy svg { color: var(--accent); }
.note--warn { background: var(--amber-soft); border: 1px solid var(--amber-line); color: #6b4e16; }
.note--warn svg { color: #b08518; }
.note--disclaimer { background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; }
.note--disclaimer svg { color: var(--muted); }
.note b { font-weight: 600; }
.result .note { margin-top: 16px; }

/* ----- Ad slots ----------------------------------------------------------- */
/* Slots reserve their dimensions via min-height so layout stays stable (no CLS),
   but render NOTHING visible until AdSense fills the <ins> (data-ad-status=
   "filled"). The "Advertisement" label only appears on a real fill. Pre-approval
   the slot is reserved empty space, not a labeled box. See ad_slots.md →
   "Unfilled slot behavior". */
.ad-slot { display: flex; flex-direction: column; align-items: center; }
.ad-slot__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; align-self: center; display: none; }
.ad-slot .adsbygoogle { display: block; width: 100%; }
.ad-slot ins[data-ad-status="unfilled"] { display: none; }
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot__label { display: block; }

.ad-top { min-height: 90px; justify-content: center; margin: 4px 0 26px; }
.ad-top .adsbygoogle { max-width: 728px; }
.ad-inline { min-height: 90px; margin: 30px 0; }
.ad-inline .adsbygoogle { max-width: 728px; }
.ad-preresult { min-height: 250px; margin: 22px 0; }
.ad-preresult .adsbygoogle { max-width: 300px; }
.ad-side .adsbygoogle { width: 300px; height: 600px; }
@media (max-width: 760px){
  .ad-top { min-height: 100px; }
  .ad-inline { min-height: 250px; }
}

/* mobile sticky anchor */
.ad-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: color-mix(in srgb, var(--paper) 94%, #fff); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); display: none;
  align-items: center; justify-content: center; gap: 8px; box-shadow: 0 -4px 18px rgba(20,40,30,.07);
}
.ad-sticky.is-on { display: flex; }
.ad-sticky .adsbygoogle { width: 320px; height: 50px; max-width: calc(100vw - 56px); }
.ad-sticky__x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; }
@media (max-width: 760px){ .ad-side-wrap { display: none; } }

/* ----- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 18px 2px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.faq__q .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); margin-top: 2px; transition: transform .2s, background .2s; font-size: 16px; line-height: 1; }
.faq__item[open] .faq__q .ic { transform: rotate(45deg); background: var(--accent-soft); }
.faq__a { padding: 0 2px 20px; color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }
.faq__a p { margin-bottom: .7em; }
.faq__a a { font-weight: 500; }

/* cross-links */
.xlinks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 8px; }
.xlink { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.xlink:hover { border-color: var(--accent-tint); transform: translateY(-2px); box-shadow: var(--shadow); }
.xlink__dom { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); font-weight: 600; }
.xlink__desc { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
@media (max-width: 720px){ .xlinks { grid-template-columns: 1fr; } }

/* ----- Footer ------------------------------------------------------------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 30px; padding: 44px 0 30px; }
.footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 34px; }
.footer__brand .brand { margin-bottom: 12px; }
.footer__tagline { font-size: 14px; color: var(--muted); max-width: 34ch; }
.footer__h { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__list a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.footer__list a:hover { color: var(--accent); }
.footer__divider { border: none; border-top: 1px solid var(--line); margin: 30px 0 22px; }
.footer__legal { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 82ch; }
.footer__legal b { color: var(--ink-2); font-weight: 600; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.footer__copy { font-size: 13px; color: var(--faint); }
.footer__privacy { background: none; border: none; cursor: pointer; font-family: var(--font-sans); font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.footer__privacy:hover { color: var(--accent); }
@media (max-width: 720px){ .footer__cols { grid-template-columns: 1fr; gap: 26px; } .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ----- Modal (privacy) ---------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(20,32,28,.5); backdrop-filter: blur(2px); }
.modal__panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(640px, calc(100vw - 32px)); max-height: min(82vh, 760px); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal__title { font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.modal__x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--muted); font-size: 17px; display: grid; place-items: center; }
.modal__x:hover { background: var(--paper-2); color: var(--ink); }
.modal__body { overflow-y: auto; padding: 22px; color: var(--ink-2); font-size: 15px; }
.modal__body h4 { font-family: var(--font-serif); font-size: 16px; color: var(--ink); margin: 20px 0 7px; }
.modal__body h4:first-child { margin-top: 0; }
.modal__body ul { margin: 0 0 12px; padding-left: 18px; }
.modal__body li { margin-bottom: 6px; }
.modal__body .lede { background: var(--accent-soft); border: 1px solid var(--accent-tint); border-radius: var(--radius-sm); padding: 13px 15px; color: var(--accent-deep); font-size: 14.5px; }
.modal__foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal__updated { font-size: 12.5px; color: var(--faint); margin-top: 14px; }

/* ----- Buttons ------------------------------------------------------------ */
.btn { font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; border-radius: var(--radius-sm); padding: 11px 18px; cursor: pointer; border: 1px solid transparent; transition: background .14s, border-color .14s, color .14s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: var(--paper); color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--sm { padding: 8px 14px; font-size: 13.5px; }

/* Cookie consent UI is rendered + themed by CookieConsent v3 (vendored);
   see the --cc-* variable overrides inlined in index.html <head>. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce){ * { transition: none !important; } }
