/* =========================================================================
   CalcThat — shared site stylesheet
   Eco-minimal design system: soft off-white background, one confident green,
   generous whitespace, rounded cards. Mobile-first, with a true desktop
   breakpoint at 900px (not just a stretched phone layout).
   ========================================================================= */

/* ---------------------------------------------------------------------
   PALETTE REVERT REFERENCE (Moss & Clay rebrand, 2026-09-11)
   The tokens below replaced the original emerald/mint palette, which read
   too close to competitor greencalculus.com. Token NAMES are unchanged —
   every rule below still just works. To revert to the old look, restore
   these exact old values (and drop --clay/--clay-bg, and re-point
   .tier--primary / .inline-cta .ic-btn / .btn-primary / .nav-cta back to
   the green-* tokens — see the inline comments at each of those rules):
     --green-900:#173a2a;  --green-700:#1e7a4f;  --green-600:#249160;
     --green-500:#2fa970;  --green-200:#cfe9d9;  --green-100:#e7f4ec;
     --bg:#f6faf7;  --page-bg:#eef4f0;  --card:#ffffff;  --text:#17241d;
     --muted:#5c6f65;  --line:#e1ece4;
   --------------------------------------------------------------------- */
:root{
  --green-900:#2f3a22;
  --green-700:#4f6b2c;
  --green-600:#6b8a3f;
  --green-500:#86a25a;
  --green-200:#d7dfc0;
  --green-100:#eef1e2;
  --bg:#faf7f0;
  --page-bg:#f5f1e6;
  --card:#fffdf7;
  --text:#2a2620;
  --muted:#736b5c; /* was #7a7263 (4.2:1 on --page-bg); 4.67:1 min, 2026-09-26 */
  --line:#e3ddc9;
  --amber:#c98a2b;
  --amber-bg:#fff4e2;
  /* Clay/terracotta accent — reserved for CTA buttons and the "Primary" trust
     badge, so actions read distinct from the moss brand colour used for
     headings/nav/selection states. --clay is the Owner-approved exact hex;
     --clay-deep is a darkened variant this pass introduces so every
     text-bearing use (button labels, the tier badge) clears WCAG AA 4.5:1 —
     the pure --clay (#c1592f) measures only ~4.43:1 against both white text
     and white backgrounds, a hair under the 4.5:1 floor. See the README
     2026-09-11 entry for the exact contrast numbers. */
  --clay:#c1592f;
  --clay-bg:#fbe6da;
  --clay-deep:#9c4423;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --shadow:0 1px 2px rgba(23,58,42,.06), 0 8px 24px -12px rgba(23,58,42,.18);
  --maxw:1180px;
  --maxw-article:760px;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html{scroll-behavior:smooth;}
body{
  margin:0; padding:0; background:var(--page-bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:var(--green-700); text-decoration:none;}
a:hover{text-decoration:underline;}
/* In-content prose links: darker green + permanent underline so they are never
   distinguished by colour alone (WCAG 2.2 AA 1.4.1) and clear AA text contrast
   on the page background and on white cards. Scoped to article / methodology /
   legal body copy — nav, buttons, cards, breadcrumb and footer keep their own
   treatments. */
.article p a, .article li a, .article blockquote a,
.content-wrap > p a, .content-wrap > ul li a, .content-wrap td a{
  color:#1a6b45; text-decoration:underline; text-underline-offset:2px;
}
h1,h2,h3,h4{color:var(--green-900); line-height:1.25; margin:0 0 .5em 0;}
p{margin:0 0 1em 0;}
.visually-hidden{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap;}
svg.icon{width:20px; height:20px; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; display:block;}

/* Skip link */
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--green-700); color:#fff;
  padding:10px 16px; border-radius:0 0 8px 0; z-index:200;
}
.skip-link:focus{ left:0; }

/* ---------- Cookie / consent notice ---------- */

/* ---------- Header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50; background:rgba(246,250,247,.92); backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:var(--maxw); margin:0 auto; padding:12px 18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{ display:flex; align-items:center; gap:9px; font-weight:800; font-size:17px; color:var(--green-900); }
.brand .brand-badge{
  width:34px; height:34px; border-radius:10px; background:var(--green-600); display:flex; align-items:center; justify-content:center; flex:none;
}
.brand .brand-badge svg{ width:19px; height:19px; stroke:#fff; }
.main-nav{ display:none; }
.main-nav ul{ list-style:none; display:flex; align-items:center; gap:22px; margin:0; padding:0; }
.main-nav a{ color:var(--text); font-weight:600; font-size:14.5px; padding:6px 0; border-bottom:2px solid transparent; }
/* Top-level links and the dropdown buttons share one box model so their labels sit on one line. */
.main-nav > ul > li{ display:flex; }
.main-nav > ul > li > a{ display:inline-flex; align-items:center; line-height:22px; }
.main-nav a:hover, .main-nav a.active{ color:var(--green-700); border-bottom-color:var(--green-600); text-decoration:none; }
/* Moss & Clay rebrand (2026-09-11): nav CTA moved off the moss brand colour
   to clay (action colour), --clay-deep for AA (see .btn-primary note below).
   Old: background:var(--green-600). */
.nav-cta{
  display:none; background:var(--clay-deep); color:#fff !important; padding:10px 18px; border-radius:99px;
  font-weight:700; font-size:14px; white-space:nowrap;
}
.nav-toggle{
  width:44px; height:44px; border-radius:10px; border:1px solid var(--line); background:var(--card);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.mobile-nav{
  display:none; flex-direction:column; gap:2px; max-width:var(--maxw); margin:0 auto; padding:6px 18px 16px 18px;
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{
  padding:12px 10px; border-radius:10px; color:var(--text); font-weight:600; font-size:15px;
}
.mobile-nav a.active{ background:var(--green-100); color:var(--green-700); }
.mobile-nav .nav-cta{ display:block; text-align:center; margin-top:8px; }

/* Top-nav rebuild (2026-09-12): Company + Social are click-to-open dropdowns on
   desktop (never hover — hover dropdowns are an accessibility/mobile-parity
   miss), and expanded/accordion sections on mobile (see .mobile-nav-heading
   below) instead of being collapsed there too. */
.nav-dropdown{ position:relative; list-style:none; }
.nav-dropdown-btn{
  background:none; border:none; padding:6px 0; margin:0; font-family:inherit;
  color:var(--text); font-weight:600; font-size:14.5px; line-height:22px; cursor:pointer;
  border-bottom:2px solid transparent; display:inline-flex; align-items:center; gap:5px;
}
.nav-dropdown-btn::after{
  content:""; width:6px; height:6px; border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px); flex:none;
}
.nav-dropdown-btn:hover, .nav-dropdown-btn.active, .nav-dropdown.open .nav-dropdown-btn{
  color:var(--green-700); border-bottom-color:var(--green-600);
}
/* Specificity note: .nav-dropdown-menu is a <ul> nested inside .main-nav's own
   <ul>, so the existing ".main-nav ul{ display:flex; ... }" rule (element+class,
   higher specificity than a single class) would otherwise win and force it
   visible. Both rules below are qualified with .main-nav to outrank it. */
.main-nav .nav-dropdown-menu{
  display:none; position:absolute; top:100%; left:0; margin-top:10px; min-width:210px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md);
  box-shadow:var(--shadow); padding:8px; list-style:none; z-index:60;
}
.main-nav .nav-dropdown.open .nav-dropdown-menu{ display:block; }
.nav-dropdown-menu li{ margin:0; }
.nav-dropdown-menu a, .nav-dropdown-link-btn{
  display:block; width:100%; padding:8px 10px; border-radius:8px; color:var(--text);
  font-weight:600; font-size:14px; font-family:inherit; background:none; border:none;
  text-align:left; cursor:pointer;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active, .nav-dropdown-link-btn:hover{
  background:var(--green-100); color:var(--green-700); text-decoration:none;
}
/* Mobile nav: Company/Social render as expanded sections (a small caps label +
   their items directly in the flat list), not a second collapsed level. */
.mobile-nav-heading{
  padding:16px 10px 4px 10px; font-size:11.5px; font-weight:800; text-transform:uppercase;
  letter-spacing:.5px; color:var(--muted);
}
.mobile-nav-link-btn{
  display:block; width:100%; text-align:left; background:none; border:none; font-family:inherit;
  padding:12px 10px; border-radius:10px; color:var(--text); font-weight:600; font-size:15px; cursor:pointer;
}
.mobile-nav-link-btn:hover{ background:var(--green-100); color:var(--green-700); }

@media (min-width:860px){
  .main-nav{ display:block; }
  .nav-cta{ display:inline-block; }
  .nav-toggle{ display:none; }
  .mobile-nav{ display:none !important; }
}

/* ---------- Layout shell ---------- */
.page-wrap{ max-width:var(--maxw); margin:0 auto; padding:0 18px; }
.content-wrap{ max-width:var(--maxw-article); margin:0 auto; padding:0 18px; }
main{ display:block; }

/* Breadcrumb */
.breadcrumb{ font-size:12.5px; color:var(--muted); margin:18px auto 0 auto; }
.breadcrumb a{ color:var(--muted); display:inline-block; padding-block:5px; } /* >= 24 px tap height (WCAG 2.5.8) */
.breadcrumb a:hover{ color:var(--green-700); }
/* The one site date (2026-10-06): newest changelog entry, top right of the content area on every page but 404. */
.page-stamp-wrap{ display:flex; justify-content:flex-end; }
.page-stamp{ margin:6px 0 0 0; font-size:12.75px; line-height:26px; color:var(--muted); text-align:right; } /* one 26 px line on every page, link or not */
.page-stamp a{ color:var(--muted); display:inline-block; line-height:26px; text-decoration:underline; text-underline-offset:2px; } /* 26 px tap height (WCAG 2.5.8) */
.page-stamp a:hover{ color:var(--green-700); }
.page-stamp-wrap + .page-wrap > .breadcrumb{ margin-top:0; }
.page-stamp-wrap + .hub > .hub-hero{ padding-top:4px; }

/* ---------- Ad slots ---------- */
.ad-slot{ margin:26px auto; }
.ad-slot__label{
  display:block; text-align:center; font-size:10.5px; letter-spacing:.6px; text-transform:uppercase;
  color:var(--muted); margin-bottom:6px; font-weight:700;
}
.ad-slot__box{
  border:1.5px dashed #c3d6ca; border-radius:var(--radius-sm); background:#f1f7f3;
  color:#93a89b; font-size:12.5px; text-align:center; padding:18px 12px;
  min-height:0; display:flex; align-items:center; justify-content:center; /* REVIEW-WINDOW ONLY — restore min-height to 90px after AdSense approval */
}
.ad-slot--leaderboard .ad-slot__box{ min-height:0; max-width:728px; margin:0 auto; } /* REVIEW-WINDOW ONLY (non-article only) — restore min-height to 90px. Article leaderboard is space-reserved by the .ad-reserve wrapper below (CLS fix). */
.ad-slot--rectangle .ad-slot__box{ min-height:0; max-width:336px; margin:0 auto; } /* REVIEW-WINDOW ONLY — the LAST variant still pending the post-approval revert: restore min-height to 250px after AdSense approval */
.ad-slot--in-article .ad-slot__box{ min-height:0; } /* superseded by the .ad-reserve wrapper rule below (CLS fix) — in-article is only used on articles */
.ad-slot--sidebar{ position:sticky; top:90px; }
/* Ad unit: surface colour while loading; collapse a unit AdSense has reported
   unfilled (responsive units otherwise leave a ~280px blank iframe that never
   collapses). NEVER display:none: a display:none / zero-width <ins> makes
   AdSense's page scan throw "adsbygoogle.push() error: No slot size for
   availableWidth=0". The <ins> keeps its width; only its height + the box
   chrome collapse. Only matches data-ad-status="unfilled" — filled/loading
   units untouched. .ad-slot-scoped, so the page-level auto-ad <ins> (a <body>
   child) is not matched. */
.ad-slot__box ins.adsbygoogle{ width:100%; background:#f1f7f3; }
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"]{ height:0 !important; min-height:0 !important; overflow:hidden !important; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]){ margin-block:0; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) .ad-slot__box{ padding:0; border-width:0; background:none; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) .ad-slot__label{ display:none; }

/* --- Article leaderboard + in-article: RESERVE space with a wrapper whose
   height comes from an ::before pseudo, so the article body below never shifts.
   --------------------------------------------------------------------------------
   Core Web Vitals CLS fix. On the 15 .article pages the responsive `auto` unit
   sits in the flowing body. AdSense auto-sizes the <ins>, then — account in
   review, never fills — collapses it ~2-5s later AND stamps
   style="height:auto!important;min-height:0!important;max-height:none!important"
   on EVERY ancestor of the <ins> as it walks up the DOM — the <div class="ad-slot">,
   its <div class="ad-slot__box">, AND a plain wrapper <div> around them (verified:
   a bare wrapper div gets the same stamp). Any `height` we set on a real ancestor
   element is therefore defeated. The one thing the ancestor-walk cannot see or
   collapse is a pseudo-element: `.ad-reserve::before` is real in-flow content that
   holds the box open at 100px / 250px no matter what AdSense stamps on
   `.ad-reserve` itself. The <div class="ad-slot"> is then positioned absolutely
   over that reserved area.
   Wrapper injected into the 15 learn/*.html by apply-site-integrations.mjs step 8.
   Homepage / Learn hub / methodology leaderboard slots (CLS 0.00, not
   .article-scoped, not wrapped) are untouched.
   REVERT AFTER ADSENSE APPROVAL: delete this block AND unwrap the .ad-reserve
   divs in the 15 learn/*.html (a real taller ad would be clipped). Then restore
   the base `.ad-slot__box` min-heights (leaderboard 90, in-article 120,
   rectangle 250). */
.ad-reserve{ position:relative; overflow:hidden; margin:26px auto; }
.ad-reserve::before{ content:""; display:block; }
.ad-reserve--leaderboard::before{ height:100px; }
.ad-reserve--in-article::before{ height:250px; }
.article .ad-reserve .ad-slot{ position:absolute; inset:0; margin:0; display:flex; flex-direction:column; justify-content:center; overflow:hidden; }
.article .ad-reserve .ad-slot__box{ align-self:stretch; margin:0; max-width:none; width:100%; }
/* keep the styled placeholder box + label at reserved height even when AdSense
   reports the unit unfilled (overrides the global collapse rules above) */
.article .ad-reserve .ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) .ad-slot__box{ padding:18px 12px; border-width:1.5px; background:#f1f7f3; }
.article .ad-reserve .ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) .ad-slot__label{ display:block; }

/* ---------- Hero / generic page header ---------- */
.page-hero{ padding:34px 0 8px 0; text-align:center; }
.page-hero .eyebrow{ color:var(--green-700); font-weight:800; font-size:12.5px; letter-spacing:.5px; text-transform:uppercase; }
.page-hero h1{ font-size:28px; margin-top:8px; }
.page-hero p.lede{ color:var(--muted); font-size:15.5px; max-width:640px; margin:10px auto 0 auto; }
/* Methodology's "Last updated" (2026-09-12): paired with the eyebrow on one row instead of
   stacking as a third line of body text under the lede. */
@media (min-width:860px){ .page-hero h1{ font-size:36px; } }

/* ---------- Cards / grids ---------- */
.card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:20px; }
.grid-2{ display:grid; grid-template-columns:1fr; gap:16px; }
.grid-3{ display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:700px){ .grid-2{ grid-template-columns:1fr 1fr; } .grid-3{ grid-template-columns:1fr 1fr; } }
@media (min-width:980px){ .grid-3{ grid-template-columns:1fr 1fr 1fr; } }

.topic-card{
  display:block; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:18px; box-shadow:var(--shadow); color:var(--text);
}
.topic-card:hover{ text-decoration:none; border-color:var(--green-500); }
.topic-card .tag{ display:inline-block; font-size:11px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; color:var(--green-700); background:var(--green-100); padding:3px 9px; border-radius:99px; margin-bottom:10px; }
.topic-card h3{ font-size:16.5px; margin-bottom:6px; }
.topic-card p{ font-size:13.5px; color:var(--muted); margin-bottom:0; }

/* ---------- Article typography ---------- */
.article{ padding:8px 0 10px 0; }
.article-meta{ color:var(--muted); font-size:12.5px; margin-bottom:6px; }
.article h1{ font-size:27px; }
.article .dek{ font-size:16px; color:var(--muted); margin-bottom:8px; }
.article h2{ font-size:20px; margin-top:1.6em; }
.article h3{ font-size:16.5px; margin-top:1.3em; }
.article p, .article li{ font-size:15.5px; color:#263a2f; }
.article ul, .article ol{ padding-left:1.25em; margin:0 0 1em 0; }
.article li{ margin-bottom:.4em; }
.article blockquote{
  margin:1.4em 0; padding:14px 18px; background:var(--green-100); border-left:4px solid var(--green-600);
  border-radius:0 12px 12px 0; color:var(--green-900); font-size:15px;
}
.article table{ width:100%; border-collapse:collapse; margin:1.2em 0; font-size:14px; }
.article th, .article td{ text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); }
.article th{ color:var(--green-900); font-size:12.5px; text-transform:uppercase; letter-spacing:.3px; }
.content-wrap table{ width:100%; table-layout:fixed; border-collapse:collapse; margin:1.2em 0; font-size:13px; }
.content-wrap th, .content-wrap td{ text-align:left; padding:7px 8px; border-bottom:1px solid var(--line); word-wrap:break-word; overflow-wrap:break-word; }
.content-wrap th{ color:var(--green-900); font-size:11.5px; text-transform:uppercase; letter-spacing:.3px; }
.content-wrap th:nth-child(1), .content-wrap td:nth-child(1){ width:24%; }
.content-wrap th:nth-child(2), .content-wrap td:nth-child(2){ width:17%; }
.content-wrap th:nth-child(3), .content-wrap td:nth-child(3){ width:13%; }
.content-wrap th:nth-child(4), .content-wrap td:nth-child(4){ width:46%; }
/* Honesty-tier badge in the methodology tables (moved off inline styles when the
   tables became generated from data/factors.json — build-data.mjs writes the class).
   All three tiers now share the same pill treatment (2026-09-12: "Secondary" used to
   render as unstyled text — build-data.mjs's basisCell() now emits a tier--secondary
   span for it too, same as Primary/Assumed). */
.tier{ display:inline-block; font-size:10.5px; font-weight:800; padding:2px 8px; border-radius:99px; }
/* Confidence traffic-light (2026-09-12, Owner-directed): green = highest confidence
   (Primary), orange = middle (Secondary), dark red/clay = lowest (Assumed) — reassigns
   the three pill colors introduced in the 2026-09-11 Moss & Clay pass without changing
   any of their hex values, so the AA contrast ratios already verified below still hold. */
.tier--primary{ background:var(--green-100); color:var(--green-700); }
.tier--secondary{ background:#fff4e2; color:#7a5518; }
/* #7a5518 on #fff4e2 = 6.1:1, passes AA — same pair the 2026-09-11 pass verified for
   what was then .tier--assumed; unchanged, just reassigned to .tier--secondary. */
.tier--assumed{ background:var(--clay-bg); color:var(--clay-deep); }
/* --clay-deep (#9c4423) on --clay-bg (#fbe6da) = 5.34:1, passes AA — same pair the
   2026-09-11 pass verified for what was then .tier--primary; unchanged, just reassigned. */
@media (max-width:520px){
  .content-wrap th:nth-child(1), .content-wrap td:nth-child(1){ width:26%; }
  .content-wrap th:nth-child(2), .content-wrap td:nth-child(2){ width:18%; }
  .content-wrap th:nth-child(3), .content-wrap td:nth-child(3){ width:20%; }
  .content-wrap th:nth-child(4), .content-wrap td:nth-child(4){ width:36%; }
  .content-wrap td .tier{ display:block; width:max-content; }
}
.sources-box{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:16px 18px; margin-top:2em; }
.sources-box h2{ font-size:15px; margin-top:0; }
.sources-box ol{ padding-left:1.1em; margin:0; }
.sources-box li{ font-size:13.5px; margin-bottom:.5em; word-break:break-word; }

/* Inline calculator CTA used inside articles */
.inline-cta{
  display:flex; align-items:center; gap:14px; background:var(--green-900); color:#fff;
  border-radius:var(--radius-lg); padding:20px; margin:1.8em 0;
}
.inline-cta .ic-icon{ width:46px; height:46px; border-radius:12px; background:var(--green-600); flex:none; display:flex; align-items:center; justify-content:center; }
.inline-cta .ic-icon svg{ stroke:#fff; }
.inline-cta .ic-title{ color:#fff; font-size:15.5px; font-weight:700; line-height:1.25; margin:0 0 2px 0; } /* was <h4> — a promo-card title, not a document-outline heading (WCAG 2.2 AA 1.3.1) */
.inline-cta p{ color:#bcd6c6; font-size:13px; margin:0; }
/* Moss & Clay rebrand (2026-09-11): was var(--green-800,#155232) — that
   variable was never defined anywhere, so this button always rendered the
   hardcoded fallback. Retargeted to the clay accent (this is exactly the CTA
   class clay is for); --clay-deep, not --clay, so the 13.5px/800 label clears
   AA on white (--clay alone is ~4.43:1, --clay-deep is 6.43:1). */
.inline-cta .ic-btn{ margin-left:auto; flex:none; background:#fff; color:var(--clay-deep); font-weight:800; font-size:13.5px; padding:10px 16px; border-radius:99px; }
.inline-cta .ic-btn:hover{ text-decoration:none; opacity:.92; }
@media (max-width:560px){ .inline-cta{ flex-wrap:wrap; } .inline-cta .ic-btn{ margin-left:0; width:100%; text-align:center; } }

/* Related / explore-more block */
.explore-more{ margin:3em auto 1em auto; }
.explore-more h2{ font-size:18px; }

/* ---------- Disclaimer strip ---------- */
.disclaimer-strip{
  background:var(--amber-bg); border:1px solid #f0dcb4; color:#7a5518; border-radius:var(--radius-md);
  padding:14px 16px; font-size:12.5px; line-height:1.55; margin:22px auto;
}
.disclaimer-strip strong{ color:#5c3f10; }
.disclaimer-strip > a{ text-decoration:underline; text-underline-offset:2px; } /* not colour alone (link-in-text-block) */

/* ---------- Footer ---------- */
.site-footer{ background:#102117; color:#c7d8cd; margin-top:50px; }
/* Every footer link on #102117 — incl. the brand email + disclaimer links that
   otherwise fall through to the --green-700 default (3.15:1, fails AA). #c7d8cd
   is ~11:1. .footer-col a (below) keeps this same value explicitly. */
.site-footer a{ color:#c7d8cd; }
.site-footer a:hover{ color:#fff; }
.footer-inner{ max-width:var(--maxw); margin:0 auto; padding:44px 18px 26px 18px; }
/* Footer rebuild (2026-09-12, +FAQ column same day) mirrors the top-nav's 7
   sections (Calculator, Methodology, Learn, FAQ, Changelog, Company, Social)
   plus the unnamed brand column = 8 tracks at full width. Old 5-track rule
   (1 brand + Calculator/Learn/Company/Social) was `1.4fr 1fr 1fr 1fr 1fr` at a
   single >=700px breakpoint — replaced with literal equal-width columns (the
   brand column's old 1.4fr special-case is dropped) staged across the site's
   own 375/701/768/1000/1280px QA checkpoints so columns never get cramped as
   the count grew, first 5->7 then 7->8 (FAQ).
   2026-10-11 menu standard (playbook 5.4): brand + Tools, Data & guides, How we work, About, Legal, Social
   = 7 tracks from 1000 px; the 1280 px 8-track rule is gone. */
.footer-grid{ display:grid; grid-template-columns:1fr; gap:28px; }
@media (min-width:700px){ .footer-grid{ grid-template-columns:repeat(4, 1fr); } }
@media (min-width:768px){ .footer-grid{ grid-template-columns:repeat(5, 1fr); } }
@media (min-width:1000px){ .footer-grid{ grid-template-columns:repeat(7, 1fr); } }
/* 2026-10-23 footer regroup (8 link columns): brand on its own row, then 4 columns x 2 rows from 700 px (single column
   on phones); replaces the 5/7-column rules above, which left Social alone on a second row. */
@media (min-width:700px){ .footer-grid{ grid-template-columns:repeat(4, 1fr); } .footer-grid > div:first-child{ grid-column:1 / -1; } }
.footer-brand{ display:flex; align-items:center; gap:9px; font-weight:800; color:#fff; font-size:16px; margin-bottom:10px; }
.footer-brand .brand-badge{ width:30px; height:30px; border-radius:9px; background:var(--green-600); display:flex; align-items:center; justify-content:center; }
.footer-brand .brand-badge svg{ width:17px; height:17px; stroke:#fff; }
.site-footer p{ font-size:13px; color:#9fb5a9; }
/* Footer column titles: <h2> in markup (the footer is its own landmark, so a
   second-level heading under the page <h1> is correct and skips no level —
   <h5> after the content <h2>s failed WCAG 2.2 AA 1.3.1). Styled down to a
   small label here. */
.footer-col h2{ color:#fff; font-size:12.5px; text-transform:uppercase; letter-spacing:.5px; margin:0 0 12px 0; line-height:1.25; }
/* Calculator + Methodology column titles are themselves links (2026-09-12
   footer rebuild) — keep them looking exactly like a plain heading, not a
   footer link, aside from an underline affordance on hover. */
.footer-col h2 a{ color:inherit; font-size:inherit; font-weight:inherit; text-transform:inherit; letter-spacing:inherit; }
.footer-col h2 a:hover{ text-decoration:underline; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:9px; }
.footer-col a{ color:#c7d8cd; font-size:13.5px; }
.footer-col a:hover{ color:#fff; }
.footer-link-btn{
  color:#c7d8cd; font-size:13.5px; background:none; border:none; padding:0; margin:0;
  font-family:inherit; cursor:pointer; text-align:left; text-decoration:underline; text-underline-offset:2px;
}
.footer-link-btn:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); margin-top:30px; padding-top:20px; display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center; }
.footer-bottom small{ color:#7f9686; font-size:12px; }
.footer-disclaimer{ font-size:12px; color:#8fa89a; line-height:1.6; max-width:900px; margin-top:32px; } /* air below the social icons (Owner 2026-10-31) */
.footer-disclaimer strong{ color:#c7d8cd; }
/* In-sentence legal links: underline so they aren't set off from the #8fa89a
   surrounding text by colour alone (WCAG 1.4.1) — colour diff is only ~1.7:1.
   #c7d8cd on the #102117 footer is 11.3:1, clears AA for the link text itself. */
.footer-disclaimer a{ color:#c7d8cd; text-decoration:underline; text-underline-offset:2px; }

/* ---------- Buttons (shared with calculator) ---------- */
/* Moss & Clay rebrand (2026-09-11): the site's main action button (calculator
   "Next"/primary CTAs) moved from the moss brand green to the clay accent, so
   "brand colour" and "action colour" read as two different things.
   --clay-deep, not the pure --clay token — --clay (#c1592f) measures only
   ~4.43:1 for white button text (needs 4.5:1 at this 15.5px/700 size);
   --clay-deep (#9c4423) measures 6.43:1. Old: background:var(--green-600);
   box-shadow rgba(36,145,96,.5); hover background:var(--green-700). */
.btn-primary{
  display:inline-block; padding:14px 22px; border:none; border-radius:var(--radius-md);
  background:var(--clay-deep); color:#fff !important; font-size:15.5px; font-weight:700;
  box-shadow:0 10px 20px -8px rgba(156,68,35,.5); cursor:pointer; text-align:center;
}
.btn-primary:hover{ filter:brightness(1.08); text-decoration:none; }
.btn-secondary{
  display:inline-block; padding:12px 20px; border-radius:var(--radius-md);
  background:var(--card); color:var(--green-700) !important; font-weight:700; font-size:14.5px;
  border:1.5px solid var(--green-200); cursor:pointer; text-align:center;
}
.btn-secondary:hover{ text-decoration:none; border-color:var(--green-600); }

/* ---------- Simple content page (legal etc.) ---------- */
.legal h2{ font-size:19px; margin-top:1.6em; }
.legal p, .legal li{ font-size:15px; color:#263a2f; }
.legal ul{ padding-left:1.2em; }
.legal .effective{ color:var(--muted); font-size:13px; }

/* ---------- 404 ---------- */
.error-hero{ text-align:center; padding:70px 18px; }
.error-hero .code{ font-size:80px; font-weight:800; color:var(--green-200); }

/* Utility */
.mt-0{ margin-top:0; }
.center{ text-align:center; }

/* ---------- Hub (homepage, 2026-10-04 tool-hub restructure; no ads) ---------- */
.hub{ padding-bottom:20px; }
.hub-hero{ padding:28px 0 6px 0; }
.hub-hero h1{ font-size:28px; margin:0 0 10px 0; }
.hub-hero .lede{ color:var(--text); font-size:16px; max-width:720px; margin:0; }
@media (min-width:860px){ .hub-hero h1{ font-size:38px; } }
.hub-buttons{ display:grid; grid-template-columns:1fr; gap:12px; margin:20px 0 18px 0; }
@media (min-width:700px){ .hub-buttons{ grid-template-columns:1fr 1fr; } }
.hub-btn{ display:flex; align-items:center; gap:14px; min-height:76px; padding:16px 18px; border-radius:var(--radius-lg);
  background:var(--clay-deep); color:#fff; box-shadow:0 10px 20px -10px rgba(156,68,35,.55); }
.hub-btn:hover{ text-decoration:none; filter:brightness(1.07); }
.hub-btn > svg.icon{ width:26px; height:26px; flex:none; }
.hub-btn span{ flex:1; display:flex; flex-direction:column; gap:3px; }
.hub-btn b{ font-size:17px; }
.hub-btn small{ font-size:12.5px; color:#fbe6da; line-height:1.4; }
.hub-btn .chev{ flex:none; }
.hub-region{ padding:4px 6px 12px 6px; }
.hub-h2{ font-size:20px; margin:26px 0 12px 0; }
.hub-cards{ display:grid; grid-template-columns:1fr; gap:14px; }
.hub-card--feature{ border:2px solid var(--green-700); background:var(--green-100); }
.hub-card--feature h3{ font-size:18px; }
.hub-card--feature p{ color:var(--text); font-size:14px; }
.hub-trust a, .hub-links a{ color:#1a6b45; text-decoration:underline; text-underline-offset:2px; }
.hub-trust h2{ font-size:18px; margin-top:0; }
.hub-trust ul, .hub-links{ margin:0; padding-left:1.2em; }
.hub-trust li, .hub-links li{ font-size:14.5px; margin-bottom:.55em; }
.nav-cta{ display:none !important; }
@media (min-width:1180px){ .site-header .nav-cta{ display:inline-block !important; } }
.mobile-nav .nav-cta{ display:block !important; }
/* ---- R3 (2026-10-05): methodology rows with no outside source, test tables, multiplex outside articles ---- */
.row-note{ display:inline-block; font-weight:700; color:var(--green-900); margin-right:4px; }
.test-summary{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:12px 14px; }
.test-table th[scope="row"]{ font-weight:600; }
.ad-reserve .ad-slot{ position:absolute; inset:0; margin:0; display:flex; flex-direction:column; justify-content:center; overflow:hidden; }
.ad-reserve .ad-slot__box{ align-self:stretch; margin:0; max-width:none; width:100%; }
.test-table th[scope="row"]{ text-transform:none; letter-spacing:0; font-size:13.5px; }

/* R3b (2026-10-05): 44 px tap targets for the desktop nav, its dropdown items and the footer links/cookie button
   (studio standard; QA m10 measured 36 px and 18 px). The visual size of the text does not change. */
.main-nav a, .nav-dropdown-btn{ display:inline-flex; align-items:center; min-height:44px; box-sizing:border-box; }
.nav-dropdown-menu a, .nav-dropdown-link-btn{ display:flex; align-items:center; min-height:44px; }
.footer-col li{ margin-bottom:0; }
.footer-col li > a, .footer-link-btn{ display:inline-flex; align-items:center; min-height:44px; }
/* R3c (2026-10-05): QA n2 - the three standalone footer links (the <p> right under a column h2) and the desktop
   header CTA (was 42 px at 1280) reach 44 px. Display rules for .nav-cta stay as above (line-height only). */
.site-header .nav-cta{ line-height:24px; }
/* 2026-10-11 menu standard: Contact closes the mobile menu as its own item, set apart from the About section. */
.mobile-nav .mobile-nav-contact{ margin-top:12px; }
/* The header is sticky, so an open mobile menu taller than the screen hid its last items (About, Contact, the CTA).
   It scrolls inside itself instead (2026-10-11, found in the menu-standard check; the old menu had the same bug). */
.mobile-nav.open{ max-height:calc(100vh - 68px); max-height:calc(100dvh - 68px); overflow-y:auto; overscroll-behavior:contain; }
/* 2026-10-16 (test-web m2): anchor and result targets land below the sticky header (about 68 px) instead of behind it. */
main [id], .mini-result{ scroll-margin-top:80px; }
/* Latest guides (content plan §9, Owner-approved mockups 2026-10-16) */
.latest-guides{ margin:8px 0 28px; }
.latest-guides .lg-list{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.lg-card{ position:relative; display:grid; grid-template-columns:120px 1fr; gap:12px; align-items:start; min-height:76px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:8px; }
.lg-card img{ width:120px; height:68px; object-fit:cover; border-radius:8px; display:block; background:var(--green-100); }
.lg-card h3{ font-size:15px; line-height:1.3; margin:0 0 4px; color:var(--green-900); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lg-card h3 a{ color:inherit; text-decoration:none; }
.lg-card h3 a::after{ content:""; position:absolute; inset:0; border-radius:inherit; }
.lg-card h3 a:focus-visible{ outline:none; } .lg-card:has(a:focus-visible){ outline:2px solid var(--green-700); outline-offset:2px; }
.lg-card:hover{ border-color:var(--green-600); }
.lg-card p{ font-size:13.5px; line-height:1.4; margin:0; color:var(--text); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lg-card .lg-tag{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--green-700); margin-bottom:2px; }
.lg-more{ margin:12px 0 0; font-size:14.5px; } .lg-more a{ color:var(--green-700); text-decoration:underline; font-weight:700; display:inline-flex; min-height:44px; align-items:center; }
@media (min-width:600px){ .latest-guides .lg-list{ grid-template-columns:1fr 1fr; gap:16px; }
  .lg-card{ grid-template-columns:1fr; padding:0 0 14px; overflow:hidden; }
  .lg-card img{ width:100%; height:auto; aspect-ratio:16/9; border-radius:0; }
  .lg-card > div{ padding:0 14px; } .lg-card h3{ font-size:16.5px; } .lg-card p{ font-size:14px; } }
@media (min-width:1000px){ .latest-guides .lg-list{ grid-template-columns:repeat(3, 1fr); } .latest-guides--home .lg-list{ grid-template-columns:repeat(4, 1fr); } }
/* Q&A hub /questions/ (round 3, 2026-10-16) + the "Quick answers" and "Comments" jump links */
.qa-hub h1{ margin-top:.4em; }
.qa-start{ font-size:15px; }
.qa-jump ul{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:12px 0 4px; }
.qa-jump li{ margin:0; }
.article .qa-jump a{ display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:var(--card); font-size:14px; font-weight:600; text-decoration:none; }
.article .qa-jump a:hover{ border-color:var(--green-600); }
.qa-hub .qq{ margin-top:1.6rem; padding:16px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--card); }
.qa-hub .qq h2{ margin-top:0; }
.qa-group{ margin-top:2.2rem; }
.qa-lede{ color:var(--muted); }
.qa{ border-top:1px solid var(--line); padding-top:.4rem; margin-top:1.2rem; }
.qa-head{ display:flex; align-items:flex-start; gap:4px; margin-top:.8em; }
.qa-head h3{ margin:0; padding-top:10px; }
.article .qa-copy{ display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:44px; min-height:44px; color:var(--muted); text-decoration:none; font-weight:400; font-size:1.1rem; }
.article .qa-copy:hover, .article .qa-copy:focus-visible{ color:var(--green-700); }
.article p.qa-kind{ font-size:13px; color:var(--muted); margin-top:-.2em; }
.article p.qa-sample{ font-size:14px; padding:8px 12px; border-left:3px solid #c98a2b; background:#fbf3e3; }
.qa-asof, .article p.qa-sources{ font-size:13.5px; }
.qa :target, .qa:target{ scroll-margin-top:80px; }
.qa-group h2[id], .qa[id], #ask{ scroll-margin-top:80px; }
.qa-footnote{ margin-top:2.4rem; }
.qa-status:empty{ display:none; }
.qa-status{ position:fixed; left:50%; bottom:16px; transform:translateX(-50%); z-index:50; margin:0; padding:10px 16px; border-radius:var(--radius-sm); background:var(--green-900); color:#fff !important; font-size:14px; max-width:calc(100vw - 32px); }
.article p.qa-quick, .article p.comments-jump{ font-size:14.5px; margin:.6em 0; }
.article p.comments-jump a{ display:inline-flex; align-items:center; min-height:44px; }
.faq-qa-line{ font-weight:600; }
.mobile-nav .mobile-nav-qa{ font-weight:700; }
/* project-qa chrome (2026-10-21): /tools/ calculators page, Calculators/Topics/Q&A/Guides/Data/About menu, breadcrumbs */
.mobile-nav .mobile-nav-top{ font-weight:700; }
/* 2026-10-23: phone menu rows were 47.25 px; Sites phone-first wants >= 48 px tap targets. */
.mobile-nav a{ min-height:48px; box-sizing:border-box; }
.breadcrumb{ font-size:16px; line-height:1.5; }
.breadcrumb a{ padding-block:10px; } /* 44 px tap height with the 16 px text */
.breadcrumb [aria-current]{ color:var(--text); }
.tools-hub .tool-group h3{ font-size:17px; margin:18px 0 10px; }
.topic-card .hub-card-title{ display:block; font-size:17px; font-weight:700; color:var(--green-900); line-height:1.25; margin-bottom:6px; }
.tools-hub .hub-card p{ font-size:16px; }
.which-table{ width:100%; border-collapse:collapse; font-size:16px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-sm); }
.which-table th, .which-table td{ text-align:left; vertical-align:top; padding:10px 12px; border-top:1px solid var(--line); }
.which-table thead th{ border-top:0; color:var(--muted); font-size:16px; font-weight:600; }
.which-table td:last-child{ width:38%; }
.which-table td a{ color:var(--green-700); font-weight:700; text-decoration:underline; display:inline-block; padding-block:4px; }
.tools-hub .hub-about ul li, .tools-hub .hub-about p{ font-size:16px; }
/* phone-first pass (2026-10-21, project-qa only): text >= 16 px, standalone tap targets >= 48 px (Owner rule; Lighthouse pass on
   home, /tools/, /questions/, a cluster page and a tool). In-sentence links are exempt. */
.skip-link{ min-height:48px; display:inline-flex; align-items:center; }
.brand{ min-height:48px; }
.nav-toggle{ width:48px; height:48px; }
.page-stamp{ font-size:16px; line-height:1.6; }
.page-stamp a{ line-height:1.6; }
.breadcrumb a{ padding-block:12px; }
.topic-card .tag, .lg-card .lg-tag{ font-size:16px; letter-spacing:0; text-transform:none; }
.site-footer p, .footer-col a, .footer-link-btn, .footer-bottom small, .footer-disclaimer{ font-size:16px; }
.footer-col h2{ font-size:16px; }
.footer-col li > a, .footer-link-btn, .site-footer p > a:only-child{ display:inline-flex; align-items:center; min-height:48px; }
/* wrapped footer links (700-1023 px: 2-3 lines in a narrow column) get air between items; rows stay >=48px (test-web S1, 2026-10-23) */
.footer-col li > a{ padding:6px 0; line-height:1.35; }
.article p.qa-quick{ font-size:16px; }
.article p.qa-quick a, .article p.comments-jump a{ display:inline-flex; align-items:center; min-height:48px; }
.which-table td a{ display:inline-flex; align-items:center; min-height:48px; padding-block:0; }
.article p, .article li, .page-hero p.lede, .topic-card p, .sources-box li, .btn-primary{ font-size:16px; }
.sources-box h2{ font-size:17px; }
.hub-btn small{ font-size:16px; }
.lg-card h3, .lg-card p{ font-size:16px; } /* the card is one stretched link (min-height 76 px) */
.article .qc p, .qc .qc-hint, .qc .qc-note{ font-size:16px; }
.qc .qc-form textarea, .qc .qc-form input[type=text], .qc .qc-form input[type=email], .qc .qc-submit{ min-height:48px; }
.qc .qc-check{ grid-template-columns:48px 1fr; }
.qc .qc-check input{ width:28px; height:28px; }
/* the shared comment/question form (its own block follows, so these rules carry the .qc prefix above) */

/* ---------- Mission core (2026-10-22): /mission.html reading page, the tagline line, footer tagline ----------
   Phone first: text >= 16 px, the CTA >= 48 px. One calm reading column; the mission + vision sit in a ledger-ruled
   "stamp" (the brief's source-stamp motif) after the essay. Light mode only. */
.mission{ max-width:680px; margin:0 auto; padding:8px 0 24px; }
.mission-tagline, .hero-tagline{ display:flex; align-items:center; gap:10px; margin:0 0 10px; font-size:16px; font-weight:600; color:var(--clay-deep); line-height:1.4; }
.mission-tagline::before, .hero-tagline::before{ content:""; flex:none; width:28px; height:2px; background:var(--clay); }
.mission-head{ padding:18px 0 6px; }
.mission h1{ font-size:34px; line-height:1.1; letter-spacing:-.01em; color:var(--green-900); margin:0; text-wrap:balance; }
@media (min-width:860px){ .mission h1{ font-size:46px; } .mission-head{ padding-top:34px; } }
.mission-body{ margin-top:22px; }
.mission-body p{ font-size:18px; line-height:1.7; color:var(--text); margin:0 0 1.05em; max-width:65ch; }
.mission-body p:first-child{ font-size:20px; line-height:1.6; color:var(--green-900); }
.mission-body a{ color:var(--green-700); text-decoration:underline; text-underline-offset:3px; }
.mission-body p.mission-close{ margin-top:1.5em; padding-top:1.1em; border-top:1px solid var(--line); font-weight:600; color:var(--green-900); }
.mission-stamp{ display:grid; grid-template-columns:1fr; margin:34px 0 0; border-top:3px double var(--green-700); border-bottom:3px double var(--green-700); background:var(--card); }
.ms-item{ padding:18px 16px; }
.ms-item + .ms-item{ border-top:1px dashed var(--line); }
.ms-item h2{ margin:0 0 6px; font-size:16px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--clay-deep); }
.ms-item p{ margin:0; font-size:18px; line-height:1.55; color:var(--green-900); }
@media (min-width:760px){
  .mission-stamp{ grid-template-columns:1fr 1fr; }
  .ms-item{ padding:22px 24px; }
  .ms-item + .ms-item{ border-top:0; border-left:1px dashed var(--line); padding-left:24px; }
}
.mission-cta{ margin:28px 0 0; }
.mission-cta .hub-btn{ display:inline-flex; min-height:56px; max-width:440px; width:100%; }
/* Site photos (2026-10-23; data/qa-photos.json site[]): caption + credit line, Mission figures, /tools/ card photos. */
.home-hero-photo figcaption, .mission-photo figcaption{ font-size:16px; color:var(--text); margin-top:8px; line-height:1.45; }
.home-hero-photo .qa-credit, .mission-photo .qa-credit, .photo-credits .qa-credit{ display:block; color:var(--muted); margin-top:2px; }
.home-hero-photo .qa-credit a, .mission-photo .qa-credit a, .photo-credits .qa-credit a{ color:var(--muted); }
.mission-photo{ margin:1.6em 0 1.9em; }
.mission-photo img{ display:block; width:100%; height:auto; border-radius:var(--radius-md); background:var(--green-100); }
@media (max-width:715px){ .mission-photo{ margin-left:-18px; margin-right:-18px; } .mission-photo img{ border-radius:0; } .mission-photo figcaption{ padding:0 18px; } }
/* In-article photos (2026-10-23; site[] slots with h: calculator pages, guides, About). Lazy, caption + credit line. */
.site-photo{ margin:1.4em 0 1.7em; }
.site-photo img{ display:block; width:100%; height:auto; border-radius:var(--radius-md); background:var(--green-100); }
.site-photo figcaption{ font-size:16px; color:var(--text); margin-top:8px; line-height:1.45; }
.site-photo .qa-credit{ display:block; color:var(--muted); margin-top:2px; font-size:14px; }
.site-photo .qa-credit a{ color:var(--muted); }
.site-photo--narrow{ max-width:420px; }
.site-photo-pair{ display:grid; grid-template-columns:1fr; gap:0 18px; margin:1.4em 0 1.7em; }
.site-photo-pair .site-photo{ margin:0 0 1.2em; }
@media (min-width:600px){ .site-photo-pair{ grid-template-columns:1fr 1fr; } .site-photo-pair .site-photo{ margin:0; } }
.hub-card-photo{ display:block; margin:-18px -18px 14px; aspect-ratio:3 / 2; overflow:hidden; border-radius:calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; background:var(--green-100); }
.hub-card-photo img{ display:block; width:100%; height:100%; object-fit:cover; }
.photo-credits li{ font-size:16px; margin-bottom:10px; }
.site-footer p.footer-tagline{ margin:0 0 10px; color:#e3ddc9; font-style:italic; }
/* Social footer column = icon links (Owner 2026-10-31): 48x48 targets in a row, glyph = footer link colour (currentColor);
   -12px pulls the first glyph onto the column text edge. Width/height attributes on the svg keep the box stable before CSS. */
.footer-col .footer-social{ display:flex; flex-wrap:wrap; gap:4px; margin-left:-12px; }
.footer-col .footer-social li > a{ justify-content:center; width:48px; height:48px; min-height:48px; padding:0; border-radius:10px; color:#c7d8cd; }
.footer-col .footer-social li > a:hover{ color:#fff; background:rgba(255,255,255,.08); }
.footer-col .footer-social li > a:focus-visible{ color:#fff; outline:2px solid #fff; outline-offset:2px; }
.footer-social svg{ width:24px; height:24px; fill:currentColor; }
/* Phase 1 fix 19 (2026-11-16): a wide data table scrolls inside its wrapper, never the page (guides load style.css only). */
.table-wrap{ overflow-x:auto; }
/* QHS-COMMENTS:start (tools/qhs-comments/client/qhs-comments.css, generated by build-data.mjs) */
/* QHS comments: append to the site stylesheet. Uses the site's tokens when they exist (CalcThat names
   shown), with fallbacks. Every control >= 44 px; inputs 16 px (no iOS zoom). */
.qc, .qc-list { margin: 2.5rem 0 0; }
.qc-list .qc-items { list-style: none; margin: 0; padding: 0; }
.qc-item { border-top: 1px solid var(--line, #d9ddd6); padding: 1rem 0; }
.qc-author { font-weight: 600; margin: 0 0 .25rem; }
.qc-text p { margin: 0 0 .6rem; overflow-wrap: anywhere; }
.qc-reply { margin: .5rem 0 0 1rem; padding: .75rem 1rem; border-left: 3px solid var(--green-600, #2f6b3f); background: var(--card, #f6f7f4); }
.qc-form { display: grid; gap: 1rem; max-width: 40rem; }
.qc-field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.qc-hint, .qc-note { font-weight: 400; color: var(--muted, #5b6157); font-size: .9rem; }
.qc-note { margin: .3rem 0 0; }
.qc-form textarea, .qc-form input[type=text], .qc-form input[type=email] {
  width: 100%; box-sizing: border-box; min-height: 44px; font: inherit; font-size: 16px; padding: .6rem .7rem;
  border: 1px solid var(--qc-field-border, var(--muted, #6b7066)); border-radius: var(--radius-sm, 6px); background: #fff; color: var(--text, #1c1f1a);
}
.qc-form [aria-invalid=true] { border-color: #b3261e; outline: 2px solid #b3261e; }
.qc-check { display: grid; grid-template-columns: 44px 1fr; align-items: start; }
.qc-check input { width: 24px; height: 24px; margin: 10px; }
.qc-check label { font-weight: 400; padding-top: .55rem; }
.qc-check .qc-note { grid-column: 2; }
.qc-submit { min-height: 44px; min-width: 44px; padding: .6rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
  border: 0; border-radius: var(--radius-sm, 6px); background: var(--green-700, #24543a); color: #fff; justify-self: start; }
.qc-submit:disabled { opacity: .6; cursor: progress; }
.qc-form :focus-visible, .qc-errors:focus, .qc-sent:focus { outline: 3px solid var(--green-500, #3c8a55); outline-offset: 2px; }
.qc-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qc-sent { display: none; padding: 1rem; margin-bottom: 1rem; border-radius: var(--radius-md, 8px); background: var(--green-100, #e7f2ea); }
.qc-sent.is-shown { display: block; }
.qc-errors { padding: 1rem; margin-bottom: 1rem; border: 2px solid #b3261e; border-radius: var(--radius-md, 8px); }
.qc-errors h3 { margin: 0 0 .5rem; font-size: 1rem; }
.qc .qc-errors a { color: #b3261e; line-height: 1.6; }
@media (prefers-color-scheme: dark) {
  .qc-form textarea, .qc-form input[type=text], .qc-form input[type=email] { background: var(--card, #1d211c); }
}
/* QHS-COMMENTS:end */
