/* ==========================================================================
   Newborn Coverage Clock — styles.css
   Red Goggles portfolio house style. Calm, editorial, calculator-first.
   Type: Source Serif 4 (display) + Source Sans 3 (UI/body).
   Accents: teal (calm/brand/.com) + clay-amber (the day-31 cliff warning).
   ========================================================================== */

:root {
  /* surfaces */
  --paper: #f6f8f7;
  --card: #ffffff;
  --card-sunken: #f3f6f5;
  --line: #e3e9e6;
  --line-strong: #cdd7d2;

  /* ink */
  --ink: #16221e;
  --ink-soft: #4d5a54;
  --ink-faint: #7a857f;

  /* teal accent — brand, .com, calm/positive */
  --accent: #157f6e;
  --accent-700: #0e6356;
  --accent-800: #0a4f45;
  --accent-100: #d3e9e4;
  --accent-50: #e9f3f0;

  /* clay-amber — the cliff / warning */
  --warn: #b25018;
  --warn-700: #8c3d10;
  --warn-100: #f4ddca;
  --warn-50: #faeee3;

  /* radii + shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-card: 0 1px 2px rgba(16,40,34,.04), 0 8px 28px rgba(16,40,34,.07);
  --shadow-soft: 0 1px 2px rgba(16,40,34,.05), 0 2px 10px rgba(16,40,34,.04);

  --maxw: 1200px;
  --content: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-700); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }
strong { font-weight: 600; }

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

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 28px; height: 28px; border-radius: 7px; display: block; flex: none; }
.brand__name { font-family: "Source Serif 4", serif; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand__tld { color: var(--accent); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--accent-700); }
.site-nav__updated { color: var(--ink-faint); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.site-nav__updated::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-50); }
@media (max-width: 720px) { .site-nav .nav-link, .site-nav__updated { display: none; } }

/* ------------------------------------------------------------------- hero */
.hero { padding: 38px 0 6px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-700); background: var(--accent-50);
  border: 1px solid var(--accent-100); padding: 5px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 18px 0 0; max-width: none; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.hero__sub { font-size: clamp(16.5px, 2.2vw, 19px); color: var(--ink-soft); margin: 32px 0 0; max-width: 52ch; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 36px;
  font-size: 13px; color: var(--ink-faint);
}
.hero__meta .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-soft);
}
.hero__meta .pill svg { width: 14px; height: 14px; color: var(--accent); }

/* --------------------------------------------------------------- ad slots */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 26px auto; width: 100%;
  background: transparent;
}
.ad-slot__label {
  display: none;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px;
}
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot__label,
.ad-slot.is-demo .ad-slot__label { display: block; }
.ad-slot ins[data-ad-status="unfilled"] { display: none; }
/* reserved dimensions to prevent CLS */
.ad-slot--top { min-height: 90px; }
.ad-slot--pre-result { min-height: 250px; }
.ad-slot--mid { min-height: 90px; }
.ad-slot--pre-faq { min-height: 90px; }
@media (max-width: 720px) {
  .ad-slot--top { min-height: 100px; }
  .ad-slot--mid, .ad-slot--pre-faq { min-height: 250px; }
}
/* demo placeholder fill (design preview only — real slots render nothing until filled) */
.ad-demo {
  width: 100%; max-width: 728px; min-height: inherit;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--line) 55%, transparent) 11px 12px),
    var(--card-sunken);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 12.5px; letter-spacing: .04em;
}
.ad-slot--pre-result .ad-demo { max-width: 300px; min-height: 250px; }
.ad-demo span { font-family: "Source Code Pro", ui-monospace, monospace; }

/* --------------------------------------------------------- calculator app */
.calc-lead { margin: 6px 0 14px; }
.calc-lead h2 { font-size: clamp(21px, 3vw, 27px); }
.calc-lead p { color: var(--ink-soft); font-size: 15.5px; margin: 7px 0 0; max-width: 60ch; }
.calc { margin-top: 8px; }
.calc__card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.calc__inputs { padding: clamp(20px, 3.5vw, 32px); }
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink); margin-bottom: 9px;
}
.field__hint { font-weight: 400; color: var(--ink-faint); }

/* date input */
.date-input {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 320px;
  background: var(--card); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); padding: 0 14px; height: 52px;
  transition: border-color .15s, box-shadow .15s;
}
.date-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.date-input svg { width: 19px; height: 19px; color: var(--ink-faint); flex: none; }
.date-input input {
  border: 0; outline: 0; background: transparent; width: 100%; height: 100%;
  font-family: inherit; font-size: 17px; color: var(--ink); font-weight: 500;
}
.date-input input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }

/* due-date toggle */
.toggle-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.toggle {
  position: relative; width: 40px; height: 23px; border-radius: 999px;
  background: var(--line-strong); border: 0; cursor: pointer; flex: none; transition: background .18s;
}
.toggle::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .18s;
}
.toggle[aria-pressed="true"] { background: var(--accent); }
.toggle[aria-pressed="true"]::after { transform: translateX(17px); }
.toggle-row label { font-size: 14.5px; color: var(--ink-soft); cursor: pointer; }

/* plan segmented selector */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-opt {
  text-align: left; cursor: pointer; position: relative;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 14px 14px 13px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.plan-opt:hover { border-color: var(--line-strong); }
.plan-opt[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-50);
  box-shadow: 0 0 0 3px var(--accent-50);
}
.plan-opt__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-opt__name { font-weight: 600; font-size: 15px; color: var(--ink); }
.plan-opt__win {
  font-size: 12px; font-weight: 600; color: var(--ink-faint);
  font-family: "Source Code Pro", monospace; letter-spacing: .02em;
}
.plan-opt[aria-pressed="true"] .plan-opt__win { color: var(--accent-700); }
.plan-opt__desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; line-height: 1.4; }
.plan-opt__check {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; flex: none;
}
.plan-opt[aria-pressed="true"] .plan-opt__check { border-color: var(--accent); background: var(--accent); }
.plan-opt__check svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.plan-opt[aria-pressed="true"] .plan-opt__check svg { opacity: 1; }

/* state select */
.select-wrap { position: relative; max-width: 320px; }
.select-wrap select {
  appearance: none; width: 100%; height: 52px; padding: 0 40px 0 14px;
  background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  font-family: inherit; font-size: 16px; color: var(--ink); cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.select-wrap select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}

/* ---------------------------------------------------------------- results */
.result {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(140% 100% at 50% 0%, color-mix(in srgb, var(--accent-50) 60%, transparent), transparent 60%),
    var(--card);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3.5vw, 36px);
}
.result--cliff {
  background:
    radial-gradient(140% 100% at 50% 0%, color-mix(in srgb, var(--warn-50) 75%, transparent), transparent 62%),
    var(--card);
}
.result--calm { background: var(--card); }

.result__kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-700);
}
.result--cliff .result__kicker { color: var(--warn-700); }

.deadline {
  display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 34px);
  align-items: center; margin-top: 14px;
}
@media (min-width: 620px) { .deadline { grid-template-columns: auto 1fr; } }

/* countdown ring */
.ring { position: relative; width: 168px; height: 168px; margin: 0 auto; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--accent-100); stroke-width: 11; }
.ring__bar { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.result--cliff .ring__track { stroke: var(--warn-100); }
.result--cliff .ring__bar { stroke: var(--warn); }
.ring__center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.ring__num {
  font-family: "Source Serif 4", serif; font-weight: 600;
  font-size: 52px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.ring__unit { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }

.deadline__body { min-width: 0; }
.deadline__lead { font-size: 15px; color: var(--ink-soft); margin: 0 0 4px; }
.deadline__date {
  font-family: "Source Serif 4", serif; font-weight: 600;
  font-size: clamp(26px, 4.4vw, 38px); line-height: 1.08; color: var(--ink);
  letter-spacing: -0.015em;
}
.result--cliff .deadline__date { color: var(--warn-700); }

/* hh:mm:ss strip */
.clockstrip { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.clockstrip__cell {
  background: var(--card-sunken); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 4px; min-width: 58px; text-align: center;
}
.clockstrip__n {
  font-family: "Source Code Pro", ui-monospace, monospace; font-size: 22px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.clockstrip__l { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }

/* callouts under the deadline */
.notes { margin-top: 22px; display: grid; gap: 10px; }
.note {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--r-md); padding: 14px 16px; font-size: 14.5px; line-height: 1.5;
  border: 1px solid var(--line); background: var(--card-sunken); color: var(--ink-soft);
}
.note__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.note__icon svg { width: 13px; height: 13px; }
.note strong { color: var(--ink); }
.note--good { background: var(--accent-50); border-color: var(--accent-100); }
.note--good .note__icon { background: var(--accent); color: #fff; }
.note--good strong { color: var(--accent-800); }
.note--warn { background: var(--warn-50); border-color: var(--warn-100); }
.note--warn .note__icon { background: var(--warn); color: #fff; }
.note--warn strong { color: var(--warn-700); }
.note--act .note__icon { background: var(--ink); color: #fff; }

/* cliff banner */
.cliff-banner {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--warn-50); border: 1px solid var(--warn-100);
  border-left: 4px solid var(--warn); border-radius: var(--r-md);
  padding: 15px 17px; margin-top: 4px;
}
.cliff-banner__icon { flex: none; width: 24px; height: 24px; color: var(--warn); margin-top: 1px; }
.cliff-banner h3 { font-size: 16px; color: var(--warn-700); margin-bottom: 3px; }
.cliff-banner p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* reassurance (medicaid) hero */
.reassure { text-align: left; }
.reassure__badge {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 8px 16px 8px 12px; font-weight: 600; font-size: 15px;
}
.reassure__badge svg { width: 18px; height: 18px; }
.reassure h2 { font-size: clamp(24px, 4vw, 33px); margin: 16px 0 0; }
.reassure p { font-size: 16px; color: var(--ink-soft); margin-top: 10px; max-width: 56ch; }

/* empty / prompt state */
.result-empty { text-align: center; padding: 8px 0 4px; color: var(--ink-faint); }
.result-empty svg { width: 30px; height: 30px; color: var(--accent); opacity: .8; }
.result-empty p { margin: 10px 0 0; font-size: 15px; }

/* fine print under result */
.result__fine {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-faint); line-height: 1.55;
}
.result__fine a { color: var(--accent-700); }

/* --------------------------------------------------------------- sections */
.section { padding: 18px 0; }
.lower { display: block; }
@media (min-width: 1080px) {
  .lower { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; }
}
.aside { display: none; }
@media (min-width: 1080px) {
  .aside { display: block; position: sticky; top: 80px; }
}
.aside .ad-slot--sidebar { min-height: 600px; margin: 0; }
.aside .ad-demo { max-width: 300px; min-height: 600px; }

.prose h2 { font-size: clamp(24px, 3.4vw, 31px); margin-top: 14px; }
.prose h2 + p { margin-top: 12px; }
.prose h3 { font-size: 20px; margin-top: 30px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16.5px; }
.prose p { max-width: 68ch; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.section-eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 8px;
}

/* window comparison cards */
.windows { display: grid; gap: 14px; margin: 22px 0 8px; }
@media (min-width: 640px) { .windows { grid-template-columns: repeat(3, 1fr); } }
.wcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-soft); }
.wcard__tag { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); }
.wcard__num { font-family: "Source Serif 4", serif; font-size: 40px; font-weight: 600; color: var(--accent-700); line-height: 1; margin: 8px 0 2px; }
.wcard--warn .wcard__num { color: var(--warn-700); }
.wcard__unit { font-size: 13px; color: var(--ink-faint); }
.wcard__desc { font-size: 14px; color: var(--ink-soft); margin-top: 12px; line-height: 1.5; }

/* ------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-family: "Source Serif 4", serif; font-size: 18.5px; font-weight: 600; color: var(--ink);
}
.faq__q:hover { color: var(--accent-700); }
.faq__icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after { content:""; position:absolute; background: var(--accent); border-radius: 2px; transition: transform .2s, opacity .2s; }
.faq__icon::before { top: 10px; left: 3px; right: 3px; height: 2.5px; }
.faq__icon::after { left: 10px; top: 3px; bottom: 3px; width: 2.5px; }
.faq__item[data-open="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .26s ease; }
.faq__a-inner { padding: 0 4px 22px; color: var(--ink-soft); font-size: 16px; max-width: 70ch; }
.faq__a-inner p { margin: 0 0 .7em; }
.faq__a-inner p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 50%, #fff); }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 44px 0 8px; }
@media (min-width: 760px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.footer-brand__mark { display: flex; align-items: center; gap: 10px; }
.footer-brand__mark img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand__name { font-family: "Source Serif 4", serif; font-weight: 600; font-size: 19px; }
.footer-tag { color: var(--ink-soft); font-size: 14.5px; margin-top: 12px; max-width: 34ch; }
.footer-col h4 { font-family: "Source Sans 3", sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: var(--accent-700); }
.footer-col .ext::after { content: "↗"; font-size: 11px; margin-left: 4px; color: var(--ink-faint); }
.footer-divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0 22px; }
.footer-legal { font-size: 13px; color: var(--ink-faint); line-height: 1.6; max-width: 92ch; }
.footer-legal strong { color: var(--ink-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 20px 0 40px; }
.footer-bottom__copy { font-size: 13px; color: var(--ink-faint); }
.footer-bottom__links { display: flex; gap: 18px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink-soft); }
.linkbtn:hover { color: var(--accent-700); }

/* ------------------------------------------------------- mobile sticky ad */
.mobile-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  min-height: 50px; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(16,40,34,.06); padding: 0 44px;
}
.mobile-sticky .ad-slot__label { position: absolute; left: 12px; top: 4px; margin: 0; }
.mobile-sticky__close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--ink-soft);
}
.mobile-sticky__close svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .mobile-sticky.is-on { display: flex; } }

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

/* ---------------------------------------------------------- privacy modal */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(16,34,28,.5);
  backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-scrim.is-open { display: flex; }
.modal {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: 0 10px 40px rgba(16,40,34,.22), 0 2px 8px rgba(16,40,34,.12);
  width: min(640px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column; overflow: hidden;
}
.modal__head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 19px; }
.modal__head .brand__tld { color: var(--accent); }
.modal__close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card-sunken); cursor: pointer; font-size: 18px; color: var(--ink-soft); display: grid; place-items: center;
}
.modal__close:hover { background: var(--paper); }
.modal__body { overflow-y: auto; padding: 22px 24px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.modal__body .tl-dr { background: var(--accent-50); border: 1px solid var(--accent-100); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px; color: var(--ink); }
.modal__body h3 { font-family: "Source Serif 4", serif; font-size: 16px; margin: 20px 0 7px; color: var(--ink); }
.modal__body p { margin: 8px 0; text-wrap: pretty; }
.modal__body ul { padding-left: 19px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.modal__body strong { color: var(--ink); }
.modal__foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn {
  font: inherit; font-size: 15px; font-weight: 600; padding: 10px 20px; border-radius: var(--r-md);
  border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer;
}
.btn:hover { background: var(--accent-700); border-color: var(--accent-700); }

/* ------------------------------------------- CookieConsent v3 theme (teal) */
/* Library CSS is vendored; these variables theme it to the site palette
   (per docs/consent.md — theme v3, never replace it). */
#cc-main {
  --cc-font-family: "Source Sans 3", system-ui, sans-serif;
  --cc-bg: var(--card);
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--ink-soft);
  --cc-btn-primary-bg: var(--accent);
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-hover-bg: var(--accent-700);
  --cc-btn-secondary-bg: var(--card-sunken);
  --cc-btn-secondary-color: var(--ink);
  --cc-btn-secondary-hover-bg: var(--line);
  --cc-separator-border-color: var(--line);
  --cc-toggle-on-bg: var(--accent);
  --cc-toggle-readonly-bg: var(--line-strong);
  --cc-cookie-category-block-bg: var(--card-sunken);
  --cc-cookie-category-block-bg-hover: var(--accent-50);
  --cc-link-color: var(--accent-700);
}

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