/* ==========================================================================
   hotelsinghana.com — "The Ghana Hotel Price Tracker" design system
   Theme: OCEAN BEACH (theme-spec-ocean.md, Dec 6, 2026 — replaces the
   rejected earthy + gold theme; Ro's firm direction: "modern, Ghana,
   ocean beach"). Deep sea blue #073B52 brand surfaces, ocean teal #0A6B6A
   as the single action colour, warm sand #FBF8F1 page, white cards, palm
   green #14663C for cheap/good signals, sunshine gold #F2B705 as
   punctuation only, surge #A33B1F for expensive signals. All text/
   background pairs pass WCAG AA (ratios in theme-spec-ocean.md §1b).
   Typography: Fraunces display + Inter body/UI, self-hosted woff2
   (builder/static/fonts/, no Google Fonts runtime dependency).
   No raster images in CSS; page photos are Wikimedia Commons images
   wired in templates.py (see image-manifest.json). Mobile-first:
   <=480px small phones / 481-720px phones / 721-1080px tablets /
   1081px+ desktop. No gaps: every width is covered by exactly one
   range. No horizontal overflow.
   ========================================================================== */

:root {
  /* palette — Ocean Beach (theme-spec-ocean.md §1a). */
  --sea:        #073B52;   /* brand dark: header, H1/H2, stat values, table heads */
  --sea-deep:   #052A3C;   /* footer, newsletter band, verdict */
  --teal:       #0A6B6A;   /* single action colour: buttons, links on light, eyebrows */
  --teal-dark:  #075E5C;   /* button hover / link hover */
  --teal-link:  #0A5E63;   /* body link colour (passes AA at small sizes) */
  --turq:       #0EA5A0;   /* DECORATION ONLY — never text, never a button fill */
  --aqua:       #E3F4F3;   /* pale aqua tint panels */
  --aqua-soft:  #EAF6F5;   /* hero gradient end / widget backgrounds */
  --page:       #FBF8F1;   /* warm sand page background (background only, never a card) */
  --paper:      #FFFFFF;   /* card / table / stat-card surfaces */
  --panel:      #F3EDDF;   /* deeper warm-sand panels: trust strip, tracker promo, zebra rows */
  --panel-2:    #EAE1CB;   /* table row hover */
  --line:       #DCE4E3;   /* card / table / input borders (cool sea-grey) */
  --line-strong:#B9C9C7;   /* input borders, dividers that must read */
  --ink:        #16242B;   /* body text, headings on light */
  --ink-2:      #22333C;   /* lede / intro text */
  --muted:      #4B5B64;   /* secondary text, bylines, stat labels, table notes */
  --faint:      #5F6F78;   /* tertiary text only (captions, meta) — never body copy */
  --palm:       #14663C;   /* palm green — cheap/good signals ONLY */
  --palm-bg:    #E2F2E8;   /* pale palm tint behind cheap/good cells */
  --gold:       #F2B705;   /* sunshine gold — punctuation only (header border, H1 rule, logo) */
  --gold-soft:  #FDF3D0;   /* pale gold tint: disclosure strip, tag pills */
  --gold-text-dark: #7A5200; /* gold-dark text on LIGHT grounds only */
  --surge:      #A33B1F;   /* surge / most-expensive signals ONLY */
  --surge-bg:   #FBEFEA;   /* pale surge tint behind expensive cells */
  --warn:       #7A5200;   /* warning text on --warn-bg (6.43:1) */
  --warn-bg:    #FDF6E8;   /* warning callout background */
  --warn-line:  #F0D9A8;   /* warning callout border */
  --danger:     #9E2B25;   /* error text / danger callout accent */
  --danger-bg:  #FBEFEA;   /* danger callout background */
  --danger-line:#EFC9B8;   /* danger callout border */
  --nav-text:   #E6F2F3;   /* nav links on the deep-sea header (10.45:1) */
  --footer-text:#D7E8EA;   /* footer body text on --sea-deep (11.85:1) */
  --footer-link:#FFD34D;   /* footer links on --sea-deep ONLY (10.46:1) */
  --tagline:    #BFE3E6;   /* logo tagline on dark grounds */

  /* shape + depth */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(7, 59, 82, 0.07);
  --shadow-md: 0 8px 22px rgba(7, 59, 82, 0.12);

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", monospace;
}

/* --- self-hosted fonts (Fontsource woff2; no Google Fonts dependency) --- */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-800-normal.woff2") format("woff2");
}

 --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
.ic { width: 1.12em; height: 1.12em; flex: 0 0 auto; vertical-align: -0.16em; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
  overflow-x: clip;
}
body { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.66;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
iframe, video, embed, object { max-width: 100%; }
a, p, li, td, h1, h2, h3, h4 { overflow-wrap: break-word; }
pre { overflow-x: auto; white-space: pre-wrap; max-width: 100%; overflow-wrap: break-word; }
code { overflow-wrap: break-word; }
svg[aria-hidden="true"] { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
a { color: var(--teal-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--sea-deep); color: #fff; font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --- type --------------------------------------------------------------- */
h1, h2 {
  line-height: 1.25; color: var(--sea); margin: 0 0 0.5em;
  font-family: var(--font-display);
}
h3, h4 {
  line-height: 1.25; color: var(--ink); margin: 0 0 0.5em;
  font-family: var(--font-body); font-weight: 700;
}
h1 { font-size: 2rem; letter-spacing: -0.01em; line-height: 1.15; }
h2 { font-size: 1.5rem; margin-top: 1.8em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; font-family: var(--font-body); font-weight: 700; }
h4 { font-size: 1rem; margin-top: 1.2em; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.12rem; color: var(--ink-2); }
.small { font-size: 0.88rem; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 0.6em;
}
.byline, .reviewed {
  font-size: 0.88rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.4em; flex-wrap: wrap;
}
.byline { margin: 0.2em 0 1.2em; }
.reviewed { margin: 2em 0 0; padding-top: 1em; border-top: 1px solid var(--line); }
main { padding-top: 1.2rem; padding-bottom: 3rem; }
article > h1 { margin-top: 0.2em; }
/* editorial gold rule under page titles (not in the hero, which has its own) */
article > h1::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--gold); border-radius: 2px; margin-top: 0.55em;
}

/* --- header ------------------------------------------------------------- */
.site-header {
  background: var(--sea);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px;
}
.brand {
  color: #fff; text-decoration: none; font-weight: 800;
  font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.2;
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  min-height: 44px;
}
.brand:hover { color: #FFFFFF; }
/* Original "Roof + Price Tag" logo lockups (branding-spec.md). Intrinsic
   290:48 aspect ratio; height only in CSS, width follows. */
.site-logo { height: 40px; width: auto; display: block; flex: 0 0 auto; }
.footer-logo { height: 40px; width: auto; display: block; }
.site-header nav { margin-left: auto; }
.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2px; flex-wrap: wrap;
}
.site-header nav a {
  color: var(--nav-text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 10px 12px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-header nav a:hover { color: #fff; background: rgba(255,255,255,0.10); }
.site-header nav li.active a { color: #fff; background: rgba(255,255,255,0.16); box-shadow: inset 0 -3px 0 var(--gold); }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; border-radius: var(--radius-sm);
  min-width: 44px; min-height: 44px; padding: 8px; cursor: pointer;
}
.nav-toggle .ic { width: 22px; height: 22px; }

/* --- breadcrumb --------------------------------------------------------- */
.breadcrumb { padding: 12px 22px 0; }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  font-size: 0.88rem; color: var(--muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--faint); }
.breadcrumb a { color: var(--teal-link); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --- hero (homepage): LIGHT — sand→aqua wash, turquoise top edge ------- */
.hero {
  background: linear-gradient(180deg, #FDFBF6 0%, #EAF6F5 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--turq);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  margin: 0.4rem 0 1.5rem;
  box-shadow: var(--shadow-md);
}
.hero h1 { color: var(--sea); margin-top: 0; }
.hero h1::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--gold); border-radius: 2px; margin-top: 0.55em;
}
.hero .lede { color: var(--ink-2); }
.hero .byline { color: var(--muted); }
.hero .byline .ic { color: var(--teal); }
.hero .btn { margin-top: 0.4rem; }
.hero-stats { margin: 1.4rem 0 0; }
/* Hero stats use the plain .stat rules — no translucent overrides. */

/* --- trust strip (HotelsVetted pattern; claims verified in site data) --- */
.trust-strip {
  list-style: none; margin: 0 0 1.8rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 14px 18px;
}
.trust-strip li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 600; color: var(--ink-2);
  margin: 0;
}
.trust-strip .ic { color: var(--palm); width: 1.25em; height: 1.25em; }

/* --- buttons / links ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff; font-weight: 800;
  font-size: 1rem; text-decoration: none;
  padding: 12px 20px; min-height: 44px;
  border-radius: var(--radius); border: 0; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary {
  background: var(--sea); color: #fff;
}
.btn-secondary:hover { background: var(--sea-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--teal-link);
  border: 1px solid var(--teal-link);
}
.btn-ghost:hover { background: var(--aqua); color: var(--teal-dark); }

/* --- layout: content + sidebar ------------------------------------------ */
.layout { display: block; }
.layout-sidebar { margin-top: 1.5rem; }

/* --- tracker promo card (opens every sidebar: visible tracker entry) ---- */
.tracker-promo {
  border: 1px solid var(--line); border-top: 4px solid var(--turq);
  border-radius: var(--radius); background: var(--panel);
  padding: 18px 20px; margin-bottom: 1.5rem;
}
.tracker-promo h3 { margin: 0 0 0.4em; display: flex; align-items: center; gap: 8px; }
.tracker-promo h3 .ic { color: var(--palm); }
.tracker-promo p { margin-bottom: 0.8em; }
.tracker-promo p:last-child { margin-bottom: 0; }

/* --- cards / grids ------------------------------------------------------ */
.card-grid {
  display: grid; gap: 16px; margin: 1.2rem 0;
  grid-template-columns: 1fr;
}
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--teal-link); }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink);
  background: var(--gold-soft); border-radius: 4px; padding: 3px 8px;
  margin-bottom: 8px;
}
.stat-grid {
  display: grid; gap: 12px; margin: 1.2rem 0;
  grid-template-columns: repeat(2, 1fr);
}
.stat {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 16px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .stat-value { font-size: 1.5rem; font-weight: 800; color: var(--sea); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
/* colour-coded price signals (Hopper/KAYAK pattern): palm = cheapest, surge = most expensive */
.stat.cheap .stat-value { color: var(--palm); }
.stat.pricey .stat-value { color: var(--surge); }

/* --- price bands (Budget Your Trip pattern; for content use) ------------ */
.price-band-value {
  font-size: 1.9rem; font-weight: 800; color: var(--palm);
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.price-band-value small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* --- verdict (Hopper-style plain-language verdict line) ----------------- */
.verdict {
  background: var(--sea-deep); color: #fff;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 1.2rem 0;
}
.verdict strong { color: var(--gold); }
.verdict p:last-child { margin-bottom: 0; }

/* --- Detty banner (seasonal urgency: red = expensive/urgent only) ------ */
.detty-banner {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-left: 5px solid var(--surge);
  border-radius: var(--radius); padding: 18px 20px; margin: 1.5rem 0;
}
.detty-banner h2, .detty-banner h3 { margin-top: 0; color: var(--surge); }
.detty-banner p:last-child { margin-bottom: 0; }

/* --- callouts ----------------------------------------------------------- */
.callout {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-left-width: 4px;
  border-left-color: var(--teal);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 1.2rem 0;
  background: var(--panel);
}
.callout > svg { margin-top: 3px; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: var(--warn); }
.callout.info { background: var(--aqua); border-color: var(--line); border-left-color: var(--palm); }
.callout.ok { background: var(--palm-bg); border-color: var(--line); border-left-color: var(--palm); }
.callout.danger { background: var(--danger-bg); border-color: var(--danger-line); border-left-color: var(--danger); }

/* --- tables ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-scroll table { margin: 0; border: 0; }
table.dtable {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  background: var(--paper);
}
.dtable caption { text-align: left; font-weight: 700; padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.dtable th, .dtable td {
  padding: 10px 12px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); min-width: 64px;
}
.dtable thead th {
  background: var(--sea); color: #fff; font-weight: 700;
  position: sticky; top: 0; white-space: nowrap;
}
.dtable tbody tr:nth-child(even) { background: var(--panel); }
.dtable tbody tr:hover { background: var(--panel-2); }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .best { font-weight: 800; color: var(--palm); }
.dtable .surge { font-weight: 800; color: var(--danger); }
/* tracker min/max cells, computed at build time from the row's own figures */
.dtable td.price-low { background: var(--palm-bg); color: var(--palm); font-weight: 800; }
.dtable td.price-high { background: var(--surge-bg); color: var(--surge); font-weight: 800; }
/* quick-pick tables (akwaabaghana pattern): first column is the decision */
table.quick-pick td:first-child { font-weight: 700; color: var(--ink); }
.table-note { font-size: 0.88rem; color: var(--muted); margin-top: -0.6rem; }

/* --- guest-score chip (Booking review-chip pattern) --------------------- */
.score-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--palm); color: #fff; font-weight: 800;
  border-radius: 999px; padding: 2px 10px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.score-chip .ic { width: 0.95em; height: 0.95em; }

/* --- hotel table filter/sort controls ----------------------------------- */
.table-tools {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 1.2rem 0 0.4rem;
}
.table-tools label { font-weight: 600; font-size: 0.95rem; }
.table-tools select, .table-tools input[type="search"] {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 44px; background: var(--paper);
  max-width: 100%;
}
.table-tools select { min-width: 180px; }
.table-tools input[type="search"] { flex: 1 1 200px; }
.table-tools select:focus, .table-tools input[type="search"]:focus {
  border-color: var(--teal); outline: 3px solid var(--teal); outline-offset: 1px;
}
.dtable th button.sort-btn {
  all: unset; cursor: pointer; color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
}
.dtable th button.sort-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.dtable th[aria-sort="ascending"] .sort-btn::after { content: " ▲"; font-size: 0.7em; }
.dtable th[aria-sort="descending"] .sort-btn::after { content: " ▼"; font-size: 0.7em; }

/* --- FAQ ---------------------------------------------------------------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 10px; background: var(--paper);
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 16px; min-height: 44px;
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--teal); font-size: 1.2em; line-height: 1; }
.faq details[open ] summary::before { content: "−"; }
.faq details > div { padding: 0 16px 16px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --- lists -------------------------------------------------------------- */
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
ul.sitelist { list-style: none; padding-left: 0; columns: 1; }
ul.sitelist li { margin-bottom: 6px; }
ul.link-list { list-style: none; padding-left: 0; }
ul.link-list li { margin-bottom: 10px; }
ul.link-list a { font-weight: 600; }

/* --- disclosure strip (affiliate links on the page) --------------------- */
.disclosure-strip {
  background: var(--gold-soft); border: 1px solid var(--warn-line);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 0.92rem; margin: 1.2rem 0;
}
.disclosure-strip p:last-child { margin-bottom: 0; }

/* --- newsletter band (mailto only; HotelsVetted return-hook pattern) ---- */
.newsletter-band {
  background: var(--sea-deep); color: #fff;
  padding: 2rem 0; margin-top: 2rem;
  border-top: 3px solid var(--gold);
}
.newsletter-band h2 {
  color: #fff; font-size: 1.5rem; margin: 0 0 0.4em;
}
.newsletter-band p { color: var(--footer-text); max-width: 640px; }
.newsletter-band p:last-child { margin-bottom: 0; }
.newsletter-band .btn { margin-top: 0.6rem; }

/* --- footer ------------------------------------------------------------- */
.site-footer {
  background: var(--sea-deep); color: var(--footer-text);
  padding: 2.5rem 0 2rem;
}
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-tag { font-size: 0.95rem; }
.footer-col h2 { color: #fff; font-size: 1rem; margin: 0 0 0.6em; font-family: var(--font-body); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { text-decoration: none; display: inline-flex; align-items: center; padding: 4px 0; min-height: 44px; }
.footer-note { font-size: 0.88rem; }
.footer-note p { margin-bottom: 0.8em; }
.footer-copy { color: #9FBEC7; }  /* 7.60:1 on --sea-deep, AA — verified Dec 6, 2026 */

/* --- scroll to top ------------------------------------------------------ */
.scroll-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--sea); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-md);
  display: none; align-items: center; justify-content: center;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--sea-deep); }
.scroll-top .ic { width: 22px; height: 22px; }

/* --- 404 ---------------------------------------------------------------- */
.page-404 { text-align: center; padding: 3rem 0; }
.page-404 h1 { font-size: 2.4rem; }

/* --- responsive --------------------------------------------------------- */
@media (min-width: 481px) {
  h1 { font-size: 2.3rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  ul.sitelist { columns: 2; }
  .hero { padding: 36px 32px 28px; }
}

@media (max-width: 720px) {
  .site-logo { height: 36px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--sea); flex-direction: column; gap: 0;
    padding: 8px 22px 14px; border-top: 1px solid rgba(255,255,255,0.18);
  }
  .site-header nav.open ul { display: flex; }
  .site-header nav a { display: flex; width: 100%; }
  .header-inner { position: relative; }
  .trust-strip { flex-direction: column; gap: 8px; }
}

@media (min-width: 721px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
  .layout-sidebar { position: sticky; top: 84px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; }
}

@media (min-width: 1081px) {
  body { font-size: 17.5px; }
  .wrap { max-width: 1060px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* --- page photos (Wikimedia Commons, license-verified; image-manifest.json) --- */
.page-photo { margin: 0 0 1.5rem; }
.page-photo img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.page-photo figcaption {
  font-size: 0.85rem; color: var(--faint); margin-top: 0.5rem; line-height: 1.5;
}
.page-photo figcaption a { color: var(--teal-link); }
.hero .page-photo { margin: 1.4rem 0 0; }

/* --- Interactive widgets (budget estimator + currency converter) --- */
.hsg-widget { background: var(--aqua-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; margin: 2rem 0; }
.hsg-w-title { margin-top: 0; }
.hsg-w-sub { color: var(--muted); }
.hsg-w-form p { margin: 0.6rem 0; }
.hsg-w-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.hsg-w-form input[type="number"], .hsg-w-form select {
  width: 100%; max-width: 22rem; padding: 0.45rem 0.6rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; background: var(--paper); color: var(--ink); }
.hsg-w-form input[type="checkbox"] { width: auto; accent-color: var(--palm); }
.hsg-w-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1.5rem; }
.hsg-w-fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.25rem 1rem 0.75rem; margin: 1rem 0; }
.hsg-w-fieldset legend { font-weight: 600; padding: 0 0.4rem; }
.hsg-w-fieldset small, .hsg-w-form small { display: block; color: var(--muted); font-weight: 400; }
.hsg-w-results { margin: 1rem 0; }
.hsg-w-answer { font-size: 1.25rem; }
.hsg-w-table { width: 100%; border-collapse: collapse; }
.hsg-w-table th, .hsg-w-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }
.hsg-w-table tfoot th, .hsg-w-table tfoot td { font-weight: 700; background: var(--panel-2); }
.hsg-w-src, .hsg-w-note { color: var(--muted); font-size: 0.875rem; }
