/* ==========================================================================
   costofquitting.com — Red Goggles portfolio house style
   Pine-green accent on cool paper. Source Serif 4 display, IBM Plex UI/mono.
   ========================================================================== */

:root {
  /* paper + ink */
  --paper:      #f6f8f7;
  --paper-2:    #eef2f0;
  --card:       #ffffff;
  --ink:        #16201d;
  --ink-2:      #3c4844;
  --ink-soft:   #66726d;
  --ink-faint:  #8b958f;
  --line:       #dde4e1;
  --line-2:     #e8edea;

  /* accent (pine green) */
  --accent:      #1f6f5c;
  --accent-deep: #195a4a;
  --accent-tint: #e9f2ee;
  --accent-wash: #f1f7f4;

  /* warm signal — used ONLY for the "what you'd lose" / warning figure */
  --clay:        #b35a3c;
  --clay-tint:   #f7ece7;

  /* radii + shadow */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --shadow-card: 0 1px 2px rgba(20,32,29,.04), 0 6px 20px -8px rgba(20,32,29,.12);
  --shadow-soft: 0 1px 2px rgba(20,32,29,.03), 0 2px 8px -4px rgba(20,32,29,.08);

  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1180px;
}

* { 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;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.tnum { font-variant-numeric: tabular-nums; }

/* eyebrow / mono label */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
}

/* layout helpers */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.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;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246,248,247,.86);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: block;
}
.brand__name {
  font-family: var(--serif); font-weight: 600; font-size: 19px;
  color: var(--ink); letter-spacing: -.01em; white-space: nowrap;
}
.brand__tld { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
}
.site-nav a:hover { color: var(--accent-deep); text-decoration: none; }
.site-nav .nav-tag {
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}
@media (max-width: 720px) {
  .site-nav a:not(.nav-tag) { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 56px 0 40px; }
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.hero__eyebrow { margin-bottom: 18px; 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(34px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: -.018em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero__sub {
  margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--ink-2);
  max-width: 33em;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__meta {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.meta-chip {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; display: inline-flex; gap: 7px; align-items: center;
}
.meta-chip .tick { color: var(--accent); font-weight: 700; }

/* hero reveal visual */
.reveal {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 26px 26px 22px; position: relative;
}
.reveal__cap {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px;
  display: flex; justify-content: space-between;
}
.reveal__row { display: flex; align-items: center; gap: 16px; }
.reveal__node { flex: 1; }
.reveal__label { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.reveal__big {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1;
  margin-top: 6px;
}
.reveal__assumed .reveal__big { font-size: 34px; color: var(--ink-faint); position: relative; width: max-content; }
.reveal__assumed .reveal__big::after {
  content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2px;
  background: var(--clay); transform: rotate(-7deg);
}
.reveal__real .reveal__big { font-size: 50px; color: var(--accent); }
.reveal__arrow {
  flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--ink-faint);
}
.reveal__arrow svg { width: 46px; height: 14px; }
.reveal__arrow .stepnote { font-family: var(--mono); font-size: 9.5px; line-height: 1.25; text-align: center; color: var(--ink-faint); }
.reveal__chain {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 9px;
}
.reveal__step { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; }
.reveal__step .k { color: var(--ink-soft); }
.reveal__step .v { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.reveal__step .v.neg { color: var(--accent-deep); }

@media (max-width: 900px) {
  .hero { padding: 40px 0 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .reveal { max-width: 460px; }
}

/* ==========================================================================
   Main two-column body (content + sticky ad rail)
   ========================================================================== */
.body-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px;
  align-items: start; padding: 8px 0 60px;
}
.rail { position: sticky; top: 90px; }
@media (max-width: 1040px) {
  .body-grid { grid-template-columns: 1fr; }
  .rail { display: none; }
}

/* ==========================================================================
   Ad slots — reserve each slot's dimensions in CSS for CLS stability, but
   render nothing visible until an AdSense unit actually fills (docs/ad_slots.md).
   Pre-approval / no fill = reserved empty space; no debug boxes on the live site.
   ========================================================================== */
.ad-slot { display: block; width: 100%; margin: 0 auto; }
.ad-slot--top    { min-height: 90px;  max-width: 728px; margin-block: 8px 0; }
.ad-slot--mid    { min-height: 90px;  max-width: 728px; margin-block: 40px; }
.ad-slot--prefaq { min-height: 90px;  max-width: 728px; margin-block: 36px; }
.ad-slot--rail   { min-height: 600px; width: 300px; }
.ad-slot--result { min-height: 250px; max-width: 336px; margin: 22px auto; }
/* Once a real <ins> is added post-approval, AdSense sets data-ad-status;
   hide the unfilled state so an empty unit never shows a blank box. */
.ad-slot ins.adsbygoogle { display: block; }
.ad-slot ins[data-ad-status="unfilled"] { display: none; }
@media (max-width: 560px) {
  .ad-slot--top, .ad-slot--mid, .ad-slot--prefaq { min-height: 100px; max-width: 320px; }
}

/* mobile sticky anchor */
.mobile-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  height: 56px; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px -8px rgba(20,32,29,.2);
}
.mobile-sticky .ad-slot--anchor {
  min-height: 50px; width: 320px; border: none; background: none;
}
.mobile-sticky__close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft); font-size: 15px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
/* Reveal the sticky bar only once a real AdSense unit fills — never as empty
   chrome (docs/ad_slots.md). No <ins> yet (AdSense pending), so it stays
   hidden; it appears automatically when a filled unit is added post-approval. */
@media (max-width: 1040px) {
  .mobile-sticky:has(ins.adsbygoogle[data-ad-status="filled"]) { display: flex; }
  body:has(.mobile-sticky ins.adsbygoogle[data-ad-status="filled"]):not(.sticky-dismissed) { padding-bottom: 56px; }
  body.sticky-dismissed .mobile-sticky { display: none; }
}

/* ==========================================================================
   Calculator
   ========================================================================== */
.calc {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.calc__head { padding: 26px 30px 0; }
.calc__head h2 { font-size: 27px; letter-spacing: -.01em; }
.calc__head p { color: var(--ink-soft); font-size: 15px; margin-top: 7px; }
.calc__body { padding: 24px 30px 28px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 7px;
}
.field__hint { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); font-weight: 400; }
.field__sub { font-size: 12px; color: var(--ink-faint); margin-top: -1px; }

.input {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 13px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); background: var(--card); }
.input.tnum { font-variant-numeric: tabular-nums; }

.input-money { position: relative; }
.input-money .sym {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft); font-size: 16px; pointer-events: none;
}
.input-money .input { padding-left: 26px; }

.input-pct { position: relative; }
.input-pct .sym {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft); font-size: 16px; pointer-events: none;
}

select.input { appearance: none; 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='%2366726d' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

/* segmented control */
.segmented { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.segmented button {
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: none; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer;
  transition: background .15s, color .15s; white-space: nowrap;
}
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--accent-deep); box-shadow: var(--shadow-soft); font-weight: 600; }

/* proration reveal */
.proration-extra { display: none; grid-column: 1 / -1; }
.proration-extra.show { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.proration-bar {
  grid-column: 1 / -1; margin-top: 2px; height: 8px; border-radius: 999px;
  background: var(--paper-2); overflow: hidden; display: flex;
}
.proration-bar .served { background: var(--accent); }
.proration-bar .owed { background: var(--clay); opacity: .85; }
.proration-legend { grid-column: 1/-1; display: flex; gap: 18px; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: -8px; }
.proration-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.proration-legend .served i { background: var(--accent); }
.proration-legend .owed i { background: var(--clay); opacity: .85; }

@media (max-width: 560px) {
  .field-grid, .proration-extra.show { grid-template-columns: 1fr; }
  .calc__head, .calc__body { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   Result
   ========================================================================== */
.result {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden;
}
.result__hero { padding: 30px 30px 26px; background: linear-gradient(180deg, var(--accent-wash), var(--card)); border-bottom: 1px solid var(--line-2); }
.result__hero .eyebrow { margin-bottom: 10px; }
.result__big {
  font-family: var(--serif); font-weight: 600; color: var(--accent);
  font-size: clamp(52px, 8vw, 76px); line-height: .98; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.result__compare { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.result__compare .strike { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--clay); }
.result__compare strong { color: var(--ink); font-weight: 600; }
.result__rule {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 11px; font-size: 13.5px; color: var(--ink-2);
}
.result__rule .pill {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px; font-weight: 500;
}
.result__rule .pill--cross { background: var(--clay); }

/* chain */
.chain { padding: 8px 30px 4px; }
.chain__row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
}
.chain__row:last-child { border-bottom: none; }
.chain__num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--accent-tint); color: var(--accent-deep);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.chain__row.is-loss .chain__num { background: var(--clay-tint); color: var(--clay); }
.chain__row.is-total .chain__num { background: var(--accent); color: #fff; }
.chain__k { font-size: 14.5px; }
.chain__k b { font-weight: 600; color: var(--ink); display: block; }
.chain__k span { color: var(--ink-soft); font-size: 13px; display: block; margin-top: 3px; line-height: 1.45; }
.chain__v {
  font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;
}
.chain__v.neg { color: var(--accent-deep); }
.chain__v.loss { color: var(--clay); }
.chain__row.is-total .chain__v { color: var(--accent-deep); font-size: 24px; }
.chip-check {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px;
}
.chip-check.ok { background: var(--accent-tint); color: var(--accent-deep); }
.chip-check.no { background: var(--clay-tint); color: var(--clay); }

/* loss callout */
.loss-callout {
  margin: 6px 30px 26px; background: var(--clay-tint); border: 1px solid #ecd9cf;
  border-radius: var(--r); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start;
}
.loss-callout__fig { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--clay); font-variant-numeric: tabular-nums; line-height: 1; }
.loss-callout__txt { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.loss-callout__txt b { color: var(--clay); font-weight: 600; }

.result__foot { padding: 0 30px 26px; }
.next-step {
  border-left: 3px solid var(--accent); background: var(--accent-wash);
  padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14.5px; color: var(--ink-2);
}
.next-step b { color: var(--ink); }
.disclaimer-mini {
  margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.55;
}

@media (max-width: 560px) {
  .chain, .result__hero, .result__foot { padding-left: 20px; padding-right: 20px; }
  .loss-callout { margin-left: 20px; margin-right: 20px; }
}

/* ==========================================================================
   Section heading + explainer
   ========================================================================== */
.section { padding-top: 18px; }
.section__head { margin-bottom: 22px; }
.section__head .eyebrow { margin-bottom: 12px; }
.section__head h2 { font-size: clamp(26px, 3vw, 33px); letter-spacing: -.015em; line-height: 1.12; }
.section__head p { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 42em; }

.explainer { display: flex; flex-direction: column; gap: 26px; }
.ex-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 26px; box-shadow: var(--shadow-soft);
}
.ex-card h3 { font-size: 21px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.ex-card h3 .idx { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.ex-card p { margin-top: 11px; color: var(--ink-2); font-size: 15.5px; line-height: 1.62; }
.ex-card p + p { margin-top: 10px; }
.ex-card .tip {
  margin-top: 14px; font-size: 13.5px; color: var(--ink-soft);
  border-top: 1px dashed var(--line); padding-top: 12px;
}
.ex-card .tip b { color: var(--accent-deep); font-weight: 600; }

.two-rule { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.rule-box { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; background: var(--paper); }
.rule-box .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.rule-box.same .tag { color: var(--accent-deep); }
.rule-box.cross .tag { color: var(--clay); }
.rule-box h4 { font-size: 16px; margin-top: 8px; }
.rule-box p { font-size: 13.5px; color: var(--ink-soft); margin-top: 7px; line-height: 1.5; }
@media (max-width: 560px) { .two-rule { grid-template-columns: 1fr; } }

/* state flag */
.state-flag {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ink-faint);
  border-radius: var(--r-sm); padding: 18px 22px; margin-top: 26px; display: flex; gap: 16px;
}
.state-flag__icn { font-family: var(--mono); color: var(--ink-soft); font-size: 13px; font-weight: 600; flex: none; padding-top: 1px; }
.state-flag h4 { font-size: 16px; }
.state-flag p { font-size: 14px; color: var(--ink-2); margin-top: 7px; line-height: 1.55; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: flex; flex-direction: column; }
.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;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 4px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink);
}
.faq-q .ico { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .ico::before, .faq-q .ico::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  left: 50%; top: 50%; transition: transform .2s;
}
.faq-q .ico::before { width: 13px; height: 2px; transform: translate(-50%,-50%); }
.faq-q .ico::after  { width: 2px; height: 13px; transform: translate(-50%,-50%); }
.faq-item.open .faq-q .ico::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a__inner { padding: 0 4px 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.62; max-width: 46em; }
.faq-a__inner p + p { margin-top: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #c9d2ce; margin-top: 40px; }
.site-footer a { color: #e4eae7; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 52px 0 36px;
}
.footer-brand__mark { width: 30px; height: 30px; border-radius: 8px; display: block; margin-bottom: 14px; }
.footer-brand__name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; }
.footer-brand__name .brand__tld { color: #6fcab1; }
.footer-brand p { margin-top: 12px; font-size: 14px; color: #9fada8; max-width: 30em; line-height: 1.55; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7e8c87; font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; }
.footer-col .ext::after { content: " ↗"; color: #6fcab1; font-size: 11px; }
.footer-divider { border: none; border-top: 1px solid #2a3531; margin: 0; }
.footer-legal { padding: 26px 0 14px; font-size: 12.5px; color: #8b9893; line-height: 1.6; max-width: 80ch; }
.footer-legal b { color: #d6ddd9; font-weight: 600; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 6px 0 40px; font-size: 12.5px; color: #8b9893; flex-wrap: wrap;
}
.footer-bottom__privacy {
  background: none; border: 1px solid #2f3b37; color: #d6ddd9; font-family: var(--sans);
  font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.footer-bottom__privacy:hover { border-color: #46544f; color: #fff; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Misc
   ========================================================================== */
.disclaimer-banner {
  font-size: 13px; color: var(--ink-soft); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 18px;
  display: flex; gap: 11px; align-items: flex-start; margin-top: 26px;
}
.disclaimer-banner .b { font-family: var(--mono); font-size: 11px; color: var(--accent-deep); font-weight: 600; letter-spacing: .04em; flex: none; padding-top: 2px; }

/* ==========================================================================
   Privacy modal (code-owned, docs/privacy.md)
   ========================================================================== */
.pm-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(20,32,29,.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.pm-overlay[hidden] { display: none; }
.pm {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: 0 20px 60px -20px rgba(20,32,29,.5);
  max-width: 640px; width: 100%; max-height: calc(100vh - 80px);
  display: flex; flex-direction: column; overflow: hidden;
}
.pm__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; border-bottom: 1px solid var(--line); flex: none;
}
.pm__title { font-size: 20px; }
.pm__close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-soft); font-size: 20px; line-height: 1;
  cursor: pointer; flex: none;
}
.pm__close:hover { color: var(--ink); border-color: var(--ink-faint); }
.pm__body {
  padding: 22px 26px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.6;
}
.pm__body h3 { font-size: 16px; margin-top: 22px; margin-bottom: 6px; color: var(--ink); }
.pm__body p { margin-top: 10px; }
.pm__body ul { margin: 8px 0 0; padding-left: 20px; }
.pm__body li { margin-top: 7px; }
.pm__body b { color: var(--ink); font-weight: 600; }
.pm__lead {
  background: var(--accent-wash); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 14px 16px; margin-top: 0;
}
.pm__updated { margin-top: 22px; font-size: 12.5px; color: var(--ink-faint); }
.pm__manage {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  background: var(--accent); color: #fff; border: none; border-radius: var(--r-sm);
  padding: 9px 16px; cursor: pointer;
}
.pm__manage:hover { background: var(--accent-deep); }
.pm__foot { padding: 16px 26px; border-top: 1px solid var(--line); flex: none; text-align: right; }
.pm__close-btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 20px; cursor: pointer;
}
.pm__close-btn:hover { border-color: var(--ink-faint); }
body.pm-open { overflow: hidden; }
@media (max-width: 560px) {
  .pm-overlay { padding: 0; }
  .pm { max-height: 100vh; border-radius: 0; }
}

/* ==========================================================================
   CookieConsent v3 — themed to the site palette (docs/consent.md). The
   library renders the banner + preferences modal; we only restyle its vars.
   ========================================================================== */
#cc-main {
  --cc-font-family: var(--sans);
  --cc-bg: var(--card);
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--ink-soft);
  --cc-link-color: var(--accent-deep);
  --cc-overlay-bg: rgba(20,32,29,.55);
  --cc-z-index: 90;
  --cc-modal-border-radius: var(--r-lg);
  --cc-btn-border-radius: var(--r-sm);
  --cc-separator-border-color: var(--line);

  --cc-btn-primary-bg: var(--accent);
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: var(--accent);
  --cc-btn-primary-hover-bg: var(--accent-deep);
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-primary-hover-border-color: var(--accent-deep);

  --cc-btn-secondary-bg: var(--paper-2);
  --cc-btn-secondary-color: var(--ink);
  --cc-btn-secondary-border-color: var(--line);
  --cc-btn-secondary-hover-bg: var(--line-2);
  --cc-btn-secondary-hover-color: var(--ink);
  --cc-btn-secondary-hover-border-color: var(--line);

  --cc-toggle-on-bg: var(--accent);
  --cc-toggle-off-bg: var(--ink-faint);
  --cc-toggle-readonly-bg: var(--line);

  --cc-cookie-category-block-bg: var(--paper);
  --cc-cookie-category-block-border: var(--line);
  --cc-cookie-category-block-hover-bg: var(--paper-2);
  --cc-cookie-category-block-hover-border: var(--line);
}
