/* Homepage uplift (12 Nov 2026 candidate). Loaded on the homepage only (scripts/design/apply-chrome.mjs).
   Concept A (.hx): Living Earth hero. Concept B (.hb): question-led civic layout. Shared pieces use .hx-*. */

/* ---------- shared ---------- */
.hx-section { padding-block: var(--ds-section); }
.hx-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.hx-head h2 { font-size: var(--ds-t-2xl); line-height: 1.12; margin: 0.35rem 0 0.75rem; }
.hx-head p { color: var(--ds-muted); font-size: var(--ds-t-m); line-height: 1.6; margin: 0; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; font-size: var(--ds-t-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ds-teal-ink); }
.hx-dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: 0 0 auto; }
.hx-dot.is-live { background: var(--ds-teal); box-shadow: 0 0 0 3px rgba(18, 127, 131, 0.18); }
.hx-dot.is-soon { background: var(--ds-amber); box-shadow: 0 0 0 3px rgba(245, 163, 43, 0.2); }
.hx-dot.is-dev { background: var(--ds-stone); box-shadow: 0 0 0 3px rgba(181, 173, 162, 0.25); }
.hx-fine { font-size: var(--ds-t-xs); color: var(--ds-muted); line-height: 1.55; max-width: 52rem; }
.hx-kicker { margin: 0 0 1rem; font-size: var(--ds-t-s); font-weight: 600; letter-spacing: 0.02em; }

/* the search (both concepts) */
.hx-search { margin-top: 1.75rem; max-width: 40rem; }
.hx-search label { display: block; font-weight: 700; font-size: var(--ds-t-s); margin-bottom: 0.5rem; }
.hx-search-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.hx-search-field { flex: 1 1 16rem; display: flex; align-items: center; gap: 0.6rem; min-height: 3.4rem; padding: 0 1rem;
  background: #fff; border: 1.5px solid var(--ds-line); border-radius: 999px; box-shadow: var(--ds-shadow); }
.hx-search-field:focus-within { border-color: var(--ds-storm); outline: 3px solid rgba(80, 184, 220, 0.45); outline-offset: 1px; }
.hx-search-field svg { width: 1.25rem; height: 1.25rem; color: var(--ds-muted); flex: 0 0 auto; }
.hx-search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--ds-t-m); color: var(--ds-navy); padding: 0.75rem 0; }
.hx-search-field input:focus { outline: none; }
.hx-go { min-height: 3.4rem; padding-inline: 1.5rem; }
.hx-help { margin: 0.6rem 0 0; font-size: var(--ds-t-xs); line-height: 1.5; color: var(--ds-muted); }
.hx-help.is-error { color: #A3361B; font-weight: 600; }
@media (max-width: 30rem) { .hx-go { flex: 1 1 100%; justify-content: center; } }

/* what you can do (cards) */
.hx-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.hx-card { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.9rem; row-gap: 0.3rem; height: 100%; padding: 1.25rem 1.35rem;
  background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r-m); color: var(--ds-navy); text-decoration: none;
  box-shadow: var(--ds-shadow); transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease; }
.hx-card:hover { box-shadow: var(--ds-shadow-lift); border-color: #c4d3dd; transform: translateY(-1px); }
.hx-card:focus-visible { outline: 3px solid var(--ds-sky); outline-offset: 2px; }
.hx-card svg { grid-row: span 2; width: 2.6rem; height: 2.6rem; padding: 0.5rem; border-radius: 12px; background: #E6F3F7; color: var(--ds-storm); }
.hx-card b { font-size: var(--ds-t-m); line-height: 1.3; }
.hx-card span { font-size: var(--ds-t-s); line-height: 1.55; color: var(--ds-muted); }

.hx-next { margin-top: 1.5rem; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  padding: 1.25rem; border: 1px dashed #c9d5de; border-radius: var(--ds-r-m); background: rgba(255, 255, 255, 0.6); }
.hx-next h3 { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.5rem; margin: 0; font-family: var(--ds-sans); font-size: var(--ds-t-s);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8A4B00; }
.hx-next-item { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.25rem 0.25rem; color: var(--ds-navy); text-decoration: none; }
.hx-next-item b { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.hx-next-item span:not(.ds-stage):not(.hx-stage-dev) { font-size: var(--ds-t-s); color: var(--ds-muted); line-height: 1.5; }
.hx-next-item:hover b { text-decoration: underline; }
.hx-next-item .ds-stage, .hx-stage-dev { display: inline-block; font-size: var(--ds-t-xs); font-weight: 600; border-radius: 999px; padding: 0.1rem 0.55rem; }
.hx-next-item .ds-stage { color: #8A4B00; background: #FFF1DC; }
.hx-stage-dev { color: #4A4239; background: #EEEAE4; }

/* audiences */
.hx-routes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.hx-route { padding: 1.5rem; background: #fff; border-radius: var(--ds-r-l); border: 1px solid var(--ds-line); box-shadow: var(--ds-shadow); }
.hx-route > svg { width: 2.4rem; height: 2.4rem; color: var(--ds-teal); }
.hx-route h3 { font-family: var(--ds-serif); font-size: var(--ds-t-l); line-height: 1.25; margin: 0.6rem 0 0.5rem; }
.hx-route p { margin: 0; color: var(--ds-muted); line-height: 1.6; }
.hx-route .hx-route-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.hx-route-links a { font-weight: 600; color: var(--ds-storm); }

/* closing band */
.hx-close { background: var(--ds-navy); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.hx-close-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.hx-close h2 { color: #fff; font-size: var(--ds-t-2xl); margin: 0 0 0.6rem; }
.hx-close p { margin: 0; max-width: 42rem; color: #D5E3EC; line-height: 1.6; }
.hx-close-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hx-btn-outline-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); background: transparent; }
.hx-btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- Concept A: Living Earth hero ---------- */
.hx-hero { position: relative; isolation: isolate; color: #fff; min-height: min(46rem, 92vh); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: #061e2e; }
.hx-hero-img { position: absolute; inset: 0; z-index: -2; }
.hx-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 30, 46, 0.94) 0%, rgba(6, 30, 46, 0.86) 34%, rgba(6, 30, 46, 0.45) 62%, rgba(6, 30, 46, 0.12) 100%),
              linear-gradient(0deg, rgba(6, 30, 46, 0.55) 0%, rgba(6, 30, 46, 0) 30%); }
.hx-hero-inner { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 8vw, 6rem); }
.hx-hero .hx-kicker { color: var(--ds-pale); }
.hx-hero h1 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.05; max-width: 18ch; margin: 0; text-wrap: balance; }
.hx-lede { margin: 1.25rem 0 0; max-width: 36rem; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; color: #E3EEF4; }
.hx-hero .hx-search label { color: #fff; }
.hx-hero .hx-help { color: #B9CDD9; max-width: 38rem; }
.hx-hero .hx-help a { color: #fff; }
.hx-hero .hx-help.is-error { color: #FFD2C2; }
.hx-hero .hx-go { background: rgba(255,255,255,0.92); color: var(--ds-navy); }   /* 19 Nov 2026: the area lookup is secondary to the three paths */
.hx-hero .hx-go:hover { background: #fff; color: var(--ds-navy); }
.hx-alt { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; font-weight: 600; }
.hx-alt a { color: #fff; text-underline-offset: 3px; }
.hx-alt span { color: rgba(255, 255, 255, 0.5); }
.hx-credit { position: absolute; right: var(--ds-gutter); bottom: 0.75rem; margin: 0; max-width: min(34rem, 60vw); text-align: right;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
@media (max-width: 47.99rem) {
  .hx-hero { min-height: 0; }
  .hx-hero::before { background: linear-gradient(180deg, rgba(6, 30, 46, 0.15) 0%, rgba(6, 30, 46, 0.55) 12rem, rgba(6, 30, 46, 0.93) 20rem, rgba(6, 30, 46, 0.97) 100%); }
  .hx-hero-inner { padding-top: 11rem; }
  .hx-hero-img img { object-position: 45% 0%; height: 26rem; }
  .hx-hero-img img { object-position: 30% 50%; }
  main#main .hx-hero-inner { padding-bottom: 4.5rem; }
  .hx-credit { left: var(--ds-gutter); text-align: left; }
}

.hx-earth { background: #0b3147; color: #fff; }
.hx-earth .hx-head h2 { color: #fff; }
.hx-earth .hx-head p { color: #D5E3EC; }
.hx-earth .hx-eyebrow { color: var(--ds-pale); }
.hx-earth .hx-fine { color: #B9CDD9; margin: 1rem 0 1.5rem; }
.hx-shots { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.hx-shot { margin: 0; position: relative; border-radius: var(--ds-r-m); overflow: hidden; background: #123d55; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.hx-shot-wide { grid-row: span 2; }
.hx-shot img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1600 / 839; }
.hx-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1rem 0.7rem; font-size: var(--ds-t-xs); font-weight: 600;
  background: linear-gradient(0deg, rgba(6, 30, 46, 0.85), rgba(6, 30, 46, 0)); color: #fff; }
@media (max-width: 47.99rem) { .hx-shots { grid-template-columns: 1fr; } .hx-shot-wide { grid-row: auto; } }

/* ---------- Concept B: civic, question-led ---------- */
.hb-hero { background: linear-gradient(180deg, #fff 0%, var(--ds-ground) 100%); border-bottom: 1px solid var(--ds-line); }
.hb-hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem); }
.hb-kicker { color: var(--ds-teal-ink); }
.hb-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.06; margin: 0; text-wrap: balance; }
.hb-lede { margin: 1.1rem 0 0; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; color: #2E4757; max-width: 34rem; }
.hb-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hb-facts li { font-weight: 600; color: var(--ds-teal-ink); background: #E3F2F1; border-radius: 999px; padding: 0.25rem 0.8rem; }
.hb-hero-figure { margin: 0; position: relative; }
.hb-hero-figure > picture img { display: block; width: 100%; height: auto; border-radius: var(--ds-r-l); box-shadow: var(--ds-shadow-lift); aspect-ratio: 5 / 4; object-fit: cover; object-position: 55% 50%; }
.hb-hero-figure figcaption { margin-top: 0.75rem; font-size: var(--ds-t-xs); color: var(--ds-muted); }
.hb-reading { position: absolute; left: -1.5rem; bottom: 3.5rem; width: min(17rem, 62%); padding: 1rem 1.1rem; background: #fff;
  border-radius: var(--ds-r-m); box-shadow: var(--ds-shadow-lift); border: 1px solid var(--ds-line); }
.hb-reading-h { margin: 0 0 0.5rem; font-weight: 700; font-size: var(--ds-t-s); }
.hb-reading dl { margin: 0; display: grid; gap: 0.35rem; }
.hb-reading dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--ds-t-xs); border-bottom: 1px solid var(--ds-cloud); padding-bottom: 0.3rem; }
.hb-reading dt { color: var(--ds-muted); }
.hb-reading dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.hb-reading-src { margin: 0.55rem 0 0; font-size: 0.72rem; line-height: 1.45; color: var(--ds-muted); }
@media (max-width: 55.99rem) {
  .hb-hero-grid { grid-template-columns: 1fr; }
  .hb-reading { position: static; width: auto; margin-top: -2rem; margin-inline: 1rem; }
}

.hb-white { background: #fff; }
.hb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); counter-reset: none; }
.hb-steps li { position: relative; padding: 1.5rem 1.4rem 1.4rem; border-radius: var(--ds-r-l); background: var(--ds-ground); border: 1px solid var(--ds-line); }
.hb-n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ds-navy); color: #fff; font-weight: 700; }
.hb-steps h3 { font-family: var(--ds-serif); font-size: var(--ds-t-l); line-height: 1.25; margin: 0.8rem 0 0.5rem; }
.hb-steps p { margin: 0 0 0.9rem; color: var(--ds-muted); line-height: 1.6; }
.hb-steps a { font-weight: 600; color: var(--ds-storm); }

.hb-earth { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
.hb-earth h2 { font-size: var(--ds-t-2xl); line-height: 1.12; margin: 0.35rem 0 0.75rem; }
.hb-earth p { color: var(--ds-muted); line-height: 1.6; }
.hb-earth-shots { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.hb-earth-shots figure { margin: 0; }
.hb-earth-shots img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ds-r-m); box-shadow: var(--ds-shadow); }
.hb-earth-shots figcaption { margin-top: 0.4rem; font-size: var(--ds-t-xs); font-weight: 600; color: var(--ds-muted); }
@media (max-width: 55.99rem) { .hb-earth { grid-template-columns: 1fr; } }

.hb-status { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.hb-col { padding: 1.4rem 1.5rem; border-radius: var(--ds-r-l); border: 1px solid var(--ds-line); background: var(--ds-ground); }
.hb-col h3 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.6rem; font-family: var(--ds-sans); font-size: var(--ds-t-s); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; }
.hb-col h3 + ul + h3 { margin-top: 1.4rem; }
.hb-col ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; line-height: 1.55; }
.hb-col a { color: var(--ds-storm); font-weight: 600; }

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

/* lists and paragraphs in these layouts are layout containers, not prose: no reading-measure cap */
main#main :is(.hx-grid, .hb-steps, .hb-status ul, .hb-facts, .hx-alt, .hx-route-links, .hx-head p, .hx-close p) { max-width: none; }
main#main .hx-head p { max-width: 46rem; } main#main .hx-close p { max-width: 42rem; }
.hx-hero .hx-lede { max-width: 36rem; }

main#main .hx-lede { margin-top: 1.1rem; } main#main .hx-kicker { margin-bottom: 0.9rem; }
/* Balance pass (founder, 12 Nov 2026): buildings and infrastructure lead beside the environment; three connected areas */
.hx-reassure { margin: 0.9rem 0 0; font-weight: 600; color: #fff; }
.hx-pillars { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; max-width: 62rem; }
.hx-pillar { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem; border-radius: var(--ds-r-l); background: rgba(6, 30, 46, 0.78); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); }
.hx-pillar picture { flex: 0 0 auto; }
.hx-pillar img { display: block; width: 6.5rem; height: 4.6rem; object-fit: cover; border-radius: calc(var(--ds-r-l) - 0.25rem); }
.hx-pillar strong { display: block; color: #fff; font-size: 1rem; line-height: 1.25; }
.hx-pillar span { display: block; margin-top: 0.2rem; color: #C9DAE4; font-size: var(--ds-t-s); line-height: 1.4; }
main#main .hx-pillars { max-width: 62rem; }
.hx-hero h1 { max-width: 22ch; }
.hb-status { grid-template-columns: 1fr; }
.hb-areas { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.hb-area { padding: 1.4rem 1.5rem; border-radius: var(--ds-r-l); border: 1px solid var(--ds-line); background: #fff; }
.hb-area h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1.2rem; }
.hb-area h3 svg { width: 1.6rem; height: 1.6rem; flex: 0 0 auto; color: var(--ds-teal); }
.hb-area > p { margin: 0.5rem 0 0; }
.hb-area .hb-avail { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: var(--ds-t-s); font-weight: 700; }
.hb-area ul { margin: 0.5rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; line-height: 1.55; }
.hb-area a { color: var(--ds-storm); font-weight: 600; }
.hb-next { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.hb-next h3 + ul + h3 { margin-top: 0; }
/* desktop: the hero fits the first screen with the three areas at its foot */
@media (min-width: 48rem) {
  .hx-hero { min-height: 0; justify-content: flex-start; }
  main#main .hx-hero-inner { padding-block: clamp(2rem, 4vw, 3rem) 0; }
  .hx-hero h1 { font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.5rem); max-width: 24ch; }
  .hx-hero .hx-lede { max-width: 40rem; font-size: 1.12rem; }
  main#main .hx-hero .hx-help { font-size: 0.85rem; line-height: 1.45; max-width: 42rem; }
  main#main .hx-hero { padding-top: 0; }
  main#main .hx-hero h1 { max-width: 26ch; }
  .hx-hero .hx-alt { margin-top: 0.8rem; }
  .hx-pillars-wrap { padding-block: 1.5rem 3.2rem; }
  .hx-pillars { margin: 0; }
}
@media (max-width: 47.99rem) {
  .hx-hero { justify-content: flex-start; }
  .hx-hero::before { display: none; }
  .hx-hero-img { position: relative; inset: auto; z-index: 0; order: -4; }
  .hx-hero-img img { height: 12rem; object-position: 55% 50%; }
  main#main .hx-hero { padding-top: 0; }
  main#main .hx-hero .hx-credit { font-size: 0.72rem; line-height: 1.35; }
  .hx-hero .hx-credit { order: -3; position: static; max-width: none; margin: 0; padding: 0.35rem var(--ds-gutter) 0; text-align: left; font-size: 0.7rem; color: #9FB6C4; }
  .hx-pillars-wrap { order: -2; padding-top: 0.9rem; }
  .hx-pillars { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .hx-pillar { flex-direction: column; align-items: stretch; gap: 0.4rem; padding: 0.35rem; background: rgba(255, 255, 255, 0.07); backdrop-filter: none; }
  .hx-pillar img { width: 100%; height: 3.6rem; }
  .hx-pillar strong { font-size: 0.8rem; padding: 0 0.15rem 0.2rem; }
  .hx-pillar span { display: none; }
  main#main .hx-hero-inner { padding-top: 1.3rem; padding-bottom: 3rem; }
}
main#main .hb-area h3 { font-size: 1.15rem; }
main#main .hb-steps h3 { max-width: none; }
.hb-steps li a + a { margin-left: 0.9rem; }
/* V2 refinements (founder, 12 Nov 2026, 21:40): the three areas are links to working pages; a shorter map on phones */
a.hx-pillar { text-decoration: none; color: inherit; transition: border-color 0.15s, background 0.15s; }
a.hx-pillar:hover, a.hx-pillar:focus-visible { border-color: rgba(255, 255, 255, 0.55); background: rgba(6, 30, 46, 0.9); }
a.hx-pillar:focus-visible { outline: 3px solid var(--ds-amber); outline-offset: 2px; }
.hx-pillar-go { display: inline-flex !important; align-items: center; gap: 0.3rem; margin-top: 0.35rem !important; color: var(--ds-amber) !important; font-weight: 600; font-size: 0.82rem !important; }
.hx-pillar-go svg { width: 0.9rem; height: 0.9rem; }
.hx-pillars > li { display: flex; }
.hx-pillars > li > a { flex: 1 1 auto; }
@media (max-width: 47.99rem) {
  .hx-hero-img img { height: 8.5rem; }
  .hx-pillars-wrap { padding-top: 0.6rem; }
  .hx-pillar img { height: 2.8rem; }
  .hx-pillar-go { display: none !important; }
  main#main .hx-hero-inner { padding-top: 1rem; }
  main#main .hx-hero .hx-kicker { margin-bottom: 0.5rem; }
}
@media (max-width: 47.99rem) {
  main#main .hx-hero .hx-kicker { font-size: 0.82rem; }
  main#main .hx-hero .hx-lede { font-size: 1rem; line-height: 1.5; margin-top: 0.7rem; }
  .hx-hero .hx-search { margin-top: 1rem; }
}

/* ---- Homepage Earth hero (release candidate, 13 Nov 2026): Blue Marble Earth on the right, navy text area on the left ---- */
main#main .he { position: relative; isolation: isolate; background: #061a33; color: #fff; min-height: min(44rem, 88vh); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.he .he-earth { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.he .he-earth img { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 118%; width: auto; max-width: none; filter: brightness(0.86) saturate(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
.he .he-earth canvas { position: absolute; left: 0; top: 0; -webkit-mask-image: linear-gradient(90deg, transparent 36%, #000 56%); mask-image: linear-gradient(90deg, transparent 36%, #000 56%); }
.he::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 26, 51, 0.97) 0%, rgba(6, 26, 51, 0.9) 30%, rgba(6, 26, 51, 0.35) 48%, rgba(6, 26, 51, 0) 60%); }
main#main .he .hx-hero-inner { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); }
main#main .he h1 { color: #fff; max-width: 15ch; font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.9rem); line-height: 1.05; margin: 0; text-wrap: balance; }
main#main .he .hx-lede { color: #d8e6ef; max-width: 31rem; margin-top: 1.3rem; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem); }
main#main .he .hx-search { margin-top: 2rem; max-width: 36rem; }
main#main .he .hx-search label { color: #fff; }
main#main .he .hx-help { color: #ffd2c2; margin: 0.4rem 0 0; min-height: 0; }
main#main .he .hx-help:empty { display: none; }
main#main .he .hx-go { background: rgba(255,255,255,0.92); color: var(--ds-navy); }
main#main .he .hx-go:hover { background: #fff; color: var(--ds-navy); }
.he .he-privacy { margin-top: 0.6rem; font-size: 0.85rem; color: #b9cdd9; max-width: 36rem; }
.he .he-privacy summary { cursor: pointer; color: #d8e6ef; }
.he .he-privacy p { margin: 0.4rem 0 0; line-height: 1.45; }
.he .he-privacy a { color: #fff; }
main#main .he .hx-reassure { color: #d8e6ef; margin-top: 0.9rem; font-size: 0.95rem; }
main#main .he .hx-reassure a { color: #fff; font-weight: 600; }
.he .he-meta { position: absolute; right: var(--ds-gutter); bottom: 0.7rem; left: 50%; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
main#main .he .he-credit { margin: 0; text-align: right; font-size: 0.74rem; line-height: 1.4; color: #b7cddb; max-width: 34rem; }
.he .he-motion { font: inherit; font-size: 0.8rem; color: #fff; background: rgba(6, 26, 51, 0.6); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; }
.he .he-motion:focus-visible { outline: 2px solid var(--ds-amber); outline-offset: 2px; }
@media (max-width: 63.99rem) { main#main .he h1 { max-width: 16ch; } }
@media (max-width: 47.99rem) {
  main#main .he { min-height: 0; justify-content: flex-start; }
  .he .he-earth { bottom: auto; height: 13rem; }
  .he .he-earth img { height: 100%; width: 100%; object-fit: cover; object-position: 58% 52%; right: auto; left: 0; top: 0; transform: none; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .he::before { display: none; }
  main#main .he .hx-hero-inner { padding-top: 11rem; padding-bottom: 1.6rem; }
  main#main .he h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 2.5rem); }
  .he .he-meta { position: static; align-items: flex-start; padding: 0 var(--ds-gutter) 1rem; }
  main#main .he .he-credit { text-align: left; font-size: 0.72rem; }
}

/* ---------- homepage marketing redesign (13 Nov 2026): the story below the Earth hero ---------- */
.hm-head { max-width: 44rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.hm-head h2 { font-size: var(--ds-t-2xl); line-height: 1.1; margin: 0.4rem 0 0.7rem; }
.hm-head p { font-size: var(--ds-t-m); line-height: 1.6; margin: 0; color: var(--ds-muted); }
.hm-head-light h2 { color: #fff; } .hm-head-light p { color: #D5E3EC; }
.hm-eyebrow { margin: 0; font-size: var(--ds-t-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ds-amber); }
.hm-eyebrow-dark { color: var(--ds-teal-ink); }
.hm-fine { font-size: var(--ds-t-xs); color: #B9CDD9; margin: 0.9rem 0 0; }
.hm-fine-dark { color: var(--ds-muted); }
main#main .hm-head p, main#main .hm-orgs p { max-width: 44rem; }

/* 1. every place has a weather story: continues the night-blue of the Earth hero */
.hm-story { background: linear-gradient(180deg, #04122b 0%, #092A40 100%); color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hm-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.hm-tabs[hidden] { display: none; }
.hm-tabs button { font: inherit; font-weight: 600; font-size: var(--ds-t-s); color: #D5E3EC; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 0.55rem 1.1rem; cursor: pointer; min-height: 2.75rem; }
.hm-tabs button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hm-tabs button[aria-selected="true"] { background: var(--ds-amber); border-color: var(--ds-amber); color: var(--ds-navy); }
.hm-tabs button:focus-visible { outline: 3px solid var(--ds-sky); outline-offset: 2px; }
.hm-places:not(.is-tabs) .hm-panel + .hm-panel { margin-top: 2rem; }
.hm-panel h3 { font-family: var(--ds-serif); font-size: var(--ds-t-xl); color: #fff; margin: 0 0 1rem; }
.hm-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.hm-figs > div { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.35rem; padding: 1.25rem 1.25rem 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; }
.hm-figs > div::before { content: ""; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--ds-sky); }
.hm-figs > .is-heat::before { background: var(--ds-amber); }
.hm-figs > .is-snow::before { background: #E8F4FA; }
.hm-figs dd { margin: 0; font-family: var(--ds-serif); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hm-figs dt { font-size: var(--ds-t-s); line-height: 1.4; color: #D5E3EC; }
.hm-src { margin: 0.9rem 0 0; font-size: var(--ds-t-xs); line-height: 1.5; color: #9FB8C8; max-width: 48rem; }
.hm-story-foot { margin-top: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.hm-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; color: #B9CDD9; font-size: var(--ds-t-s); }
.hm-stats b { display: block; font-family: var(--ds-serif); font-size: var(--ds-t-xl); color: #fff; font-weight: 600; }

/* 2. Living Earth: a full-width map preview */
.hm-earth { background: #0b3147; color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hm-earth-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hm-earth-inner > .hm-fine { grid-column: 2; margin-top: -0.75rem; }
.hm-earth .hm-head { margin: 0; } .hm-earth .hm-head .ds-btn { margin-top: 1.5rem; }
.hm-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hm-shot { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: #082436; }
.hm-shot-main { grid-column: 1 / -1; }
.hm-shot img { display: block; width: 100%; height: auto; }
.hm-shot figcaption { position: absolute; left: 0.6rem; bottom: 0.6rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: var(--ds-t-xs);
  background: rgba(4, 18, 43, 0.78); color: #fff; }

/* 3. weather and buildings */
.hm-build { background: var(--ds-ground); padding-block: clamp(3rem, 7vw, 5.5rem); }
.hm-conds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.hm-conds li { display: flex; flex-direction: column; gap: 0.2rem; }
.hm-conds picture { display: block; border-radius: 12px; overflow: hidden; margin-bottom: 0.5rem; aspect-ratio: 4 / 3; }
.hm-conds img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-conds b { font-size: var(--ds-t-s); color: var(--ds-navy); }
.hm-conds span { font-size: var(--ds-t-xs); line-height: 1.45; color: var(--ds-muted); }
.hm-tools { margin-top: clamp(1.75rem, 4vw, 2.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.hm-tools a { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 0.75rem; align-items: start; padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--ds-navy); color: #fff; text-decoration: none; transition: background 0.15s ease; }
.hm-tools a:hover { background: var(--ds-storm); }
.hm-tools a:focus-visible { outline: 3px solid var(--ds-sky); outline-offset: 2px; }
.hm-tools svg { grid-row: span 2; width: 2.25rem; height: 2.25rem; color: var(--ds-amber); }
.hm-tools b { font-size: var(--ds-t-s); }
.hm-tools span { font-size: var(--ds-t-xs); line-height: 1.4; color: #C7D8E3; }

/* 4. Building Alerts: sun-gold band */
.hm-alerts { background: #FFF1D6; border-block: 1px solid #F3D9A6; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.hm-alerts-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: center; }
.hm-alerts-icon { width: 3.5rem; height: 3.5rem; padding: 0.75rem; border-radius: 50%; background: var(--ds-amber); color: var(--ds-navy); }
.hm-alerts h2 { font-size: var(--ds-t-xl); line-height: 1.2; margin: 0.35rem 0 0.5rem; }
.hm-alerts p { margin: 0; color: #4A3A1C; line-height: 1.55; max-width: 46rem; }
.hm-badge { display: inline-block; font-size: var(--ds-t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #7A4A00; background: #FFE2A8; border-radius: 999px; padding: 0.15rem 0.65rem; }
.hm-btn-navy { background: var(--ds-navy); color: #fff; border-color: var(--ds-navy); white-space: nowrap; }
.hm-btn-navy:hover { background: var(--ds-storm); color: #fff; }

/* 5. organizations */
.hm-orgs { background: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hm-orgs-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hm-orgs-photo { border-radius: 18px; overflow: hidden; }
.hm-orgs-photo img { display: block; width: 100%; height: auto; }
.hm-orgs h2 { font-size: var(--ds-t-2xl); line-height: 1.12; margin: 0.4rem 0 0.75rem; }
.hm-orgs p { line-height: 1.6; color: var(--ds-muted); margin: 0 0 1rem; }
.hm-orgs-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.hm-orgs-links a:not(.ds-btn) { font-weight: 600; color: var(--ds-storm); }
.hm-small { font-size: var(--ds-t-xs); }

/* 6. trust */
.hm-trust { background: var(--ds-ground); border-top: 1px solid var(--ds-line); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.hm-trust-h { font-size: var(--ds-t-xl); margin: 0 0 1.25rem; }
.hm-trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.hm-trust-list li { position: relative; padding-left: 2.6rem; line-height: 1.5; color: var(--ds-muted); font-size: var(--ds-t-s); }
.hm-trust-list b { display: block; color: var(--ds-navy); font-size: var(--ds-t-m); }
.hm-trust-list svg { position: absolute; left: 0; top: 0.1rem; width: 1.9rem; height: 1.9rem; color: var(--ds-teal); }
.hm-agencies { margin: 1.5rem 0 0; font-size: var(--ds-t-xs); color: var(--ds-muted); line-height: 1.55; max-width: 60rem; }

@media (max-width: 63.99rem) {
  .hm-earth-inner, .hm-orgs-inner { grid-template-columns: 1fr; }
  .hm-earth-inner > .hm-fine { grid-column: 1; margin-top: 0; }
  .hm-conds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-alerts-inner { grid-template-columns: auto minmax(0, 1fr); }
  .hm-alerts-inner > .ds-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 39.99rem) {
  .hm-figs { grid-template-columns: 1fr; gap: 0.6rem; }
  .hm-figs > div { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 1rem; padding: 0.9rem 1rem 0.9rem 1.2rem; }
  .hm-figs dd { min-width: 5.5rem; font-size: 2.2rem; }
  .hm-conds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tools, .hm-trust-list { grid-template-columns: 1fr; }
  .hm-alerts-inner { grid-template-columns: 1fr; }
  .hm-alerts-icon { width: 3rem; height: 3rem; }
  .hm-stats { gap: 0.75rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .hm-tools a { transition: none; } }
main#main :is(.hm-conds, .hm-trust-list, .hm-stats, .hm-figs, .hm-tools, .hm-tabs) { max-width: none; }
main#main .hm-figs dd { margin: 0; font-family: var(--ds-serif); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; color: #fff; font-weight: 600; }
main#main .hm-figs dt { color: #D5E3EC; font-weight: 500; }
.hm-story-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.hm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: end; }
@media (max-width: 47.99rem) { .hm-story-foot { grid-template-columns: 1fr; } .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; } }
@media (max-width: 39.99rem) { main#main .hm-figs dd { min-width: 5.5rem; font-size: 2.2rem; } }
/* geographic balance (13 Nov 2026): six places side by side, north to south, none selected by default */
.hm-places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
main#main .hm-places { max-width: none; }
.hm-place { padding: 1.1rem 1.15rem 1rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; }
.hm-place h3 { font-family: var(--ds-serif); font-size: var(--ds-t-l); color: #fff; margin: 0 0 0.75rem; }
.hm-place h3 span { display: block; font-family: var(--ds-sans); font-size: var(--ds-t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #9FB8C8; margin-top: 0.2rem; }
.hm-place .hm-figs { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.hm-place .hm-figs > div { background: transparent; border: 0; padding: 0.2rem 0 0.2rem 0.85rem; }
.hm-place .hm-figs > div::before { top: 0.25rem; bottom: 0.25rem; }
main#main .hm-place .hm-figs dd { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); }
main#main .hm-place .hm-figs dt { font-size: var(--ds-t-xs); line-height: 1.35; }
.hm-place .hm-src { margin-top: 0.75rem; }
.hm-src-all { margin-top: 1rem; }
@media (max-width: 63.99rem) { .hm-places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 39.99rem) {
  .hm-places { grid-template-columns: 1fr; }
  .hm-place .hm-figs { grid-template-columns: 1fr 1fr; }
  .hm-place .hm-figs > div { flex-direction: column-reverse; align-items: flex-start; gap: 0.25rem; padding: 0.2rem 0 0.2rem 0.85rem; }
  main#main .hm-place .hm-figs dd { min-width: 0; font-size: 2rem; }
}

/* homepage place cards (14 Nov 2026): what the evidence can mean for buildings, and where to look next */
.hm-insight { margin: 0.8rem 0 0; padding: 0.7rem 0.85rem; border-left: 3px solid var(--ds-amber); background: rgba(255, 255, 255, 0.05); border-radius: 0 10px 10px 0;
  font-size: var(--ds-t-s); line-height: 1.55; color: #DCE8F0; max-width: 44rem; }
.hm-insight + .hm-insight { margin-top: 0.5rem; border-left-color: var(--ds-sky); }
.hm-place-go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.85rem; font-weight: 600; font-size: var(--ds-t-s); color: #9ED8EC; text-underline-offset: 3px; }
.hm-place-go::after { content: "→"; }
.hm-place-go:hover { color: #fff; }
.hm-insight b { display: block; font-weight: 600; color: #fff; }
.hm-insight small { display: block; margin-top: 0.3rem; font-size: var(--ds-t-xs); color: #9FB8C8; line-height: 1.45; }

/* weather-story carousel (17 Nov 2026). Without home-story.js the six places stay a grid of cards, each with its image on
   top. With it, one place shows at a time. All slides share one grid cell, so the height never jumps (no layout shift). */
.hm-place-img { position: relative; margin: -1.1rem -1.15rem 1rem; border-radius: 14px 14px 0 0; overflow: hidden; aspect-ratio: 16 / 10; background: #04122b; }
.hm-place-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--ds-amber);
  box-shadow: 0 0 0 2px rgba(4, 18, 43, 0.7), 0 0 0 9px rgba(245, 163, 43, 0.22); }
main#main .hm-credit { margin-top: 0.35rem; }

.hm-car { margin-top: 0.25rem; }
.hm-car-bar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.hm-car-picks { position: relative; display: flex; flex-wrap: wrap; gap: 0.45rem; flex: 1 1 auto; min-width: 0; }
.hm-car button { font: inherit; font-weight: 600; font-size: var(--ds-t-s); color: #D5E3EC; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; min-height: 2.75rem; padding: 0.45rem 1rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.hm-car button:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.hm-car button:focus-visible { outline: 3px solid var(--ds-sky); outline-offset: 2px; }
.hm-car .hm-car-pick[aria-current="true"] { background: var(--ds-amber); border-color: var(--ds-amber); color: var(--ds-navy); }
.hm-car .hm-car-prev, .hm-car .hm-car-next { width: 2.75rem; padding: 0; font-size: 1.5rem; line-height: 1; flex: none; }
.hm-car .hm-car-pause { flex: none; min-width: 4.75rem; }
.hm-car .hm-car-pause::before { content: "❚❚"; font-size: 0.7em; letter-spacing: -0.1em; margin-right: 0.45rem; }
.hm-car .hm-car-pause[aria-pressed="true"]::before { content: "▶"; letter-spacing: 0; }

.is-carousel .hm-places { display: grid; grid-template-columns: minmax(0, 1fr); }
.is-carousel .hm-place { --hm-pad: clamp(1rem, 2vw, 1.4rem); --hm-img: 52%; position: relative; grid-area: 1 / 1; padding: var(--hm-pad) var(--hm-pad) var(--hm-pad) calc(var(--hm-img) + 2 * var(--hm-pad));
  min-height: 26rem; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.is-carousel .hm-place.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s ease; }
.is-carousel .hm-place > .hm-place-img { position: absolute; left: var(--hm-pad); top: var(--hm-pad); bottom: var(--hm-pad); width: var(--hm-img); margin: 0; border-radius: 10px; aspect-ratio: auto; }
.is-carousel .hm-place h3 { font-size: var(--ds-t-xl); }
.is-carousel .hm-place.is-on .hm-place-img img { animation: hm-car-drift 9s ease-out both; }
.is-carousel.is-rotating .hm-place.is-on .hm-place-img img { animation-play-state: running; }
.is-carousel:not(.is-rotating) .hm-place .hm-place-img img { animation: none; }
@keyframes hm-car-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .is-carousel .hm-place, .is-carousel .hm-place.is-on, .hm-car button { transition: none; }
  .is-carousel .hm-place .hm-place-img img { animation: none; }
}
@media (max-width: 47.99rem) {
  .is-carousel .hm-place { padding: var(--hm-pad); min-height: 0; }
  .is-carousel .hm-place > .hm-place-img { position: relative; left: auto; top: auto; bottom: auto; width: auto; aspect-ratio: 16 / 10; margin: 0 0 1rem; }
  .hm-car-bar { flex-wrap: wrap; }
  .hm-car-picks { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
  .hm-car-picks::-webkit-scrollbar { display: none; }
  .hm-car-picks button { flex: none; }
  .hm-car .hm-car-pause { margin-right: auto; }
}
/* Homepage H2 (19 Nov 2026): the two flagship Almanacs side by side, real screenshots */
.hm-flag { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.4rem; }
.hm-flag-card { display: grid; grid-template-rows: auto 1fr; border-radius: 1rem; overflow: hidden; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff; text-decoration: none; transition: transform .15s, border-color .15s; }
.hm-flag-card figure { margin: 0; aspect-ratio: 16 / 9.4; overflow: hidden; background: #050b18; }
.hm-flag-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-flag-space img { object-position: 50% 45%; }
.hm-flag-t { display: grid; gap: 0.35rem; padding: 1rem 1.1rem 1.2rem; }
.hm-flag-t strong { font: 600 1.25rem/1.2 var(--ds-serif); }
.hm-flag-t span { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.86); }
.hm-flag-t em { font-style: normal; font-weight: 600; color: #F5C463; }
.hm-flag-card:hover, .hm-flag-card:focus-visible { transform: translateY(-2px); border-color: rgba(245,196,99,0.7); }
@media (max-width: 55.99rem) { .hm-flag { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hm-flag-card { transition: none; } .hm-flag-card:hover { transform: none; } }
/* Homepage completion (19 Nov 2026): Check a building feature, Resilience framing, research band */
.hm-check { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: #fff; }
.hm-check-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hm-check-fig { position: relative; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(9,42,64,.5); }
.hm-check-fig img { display: block; width: 100%; height: auto; }
.hm-check-fig figcaption { position: absolute; left: .7rem; bottom: .6rem; padding: .12rem .5rem; border-radius: 999px; background: rgba(5,22,36,.72); color: #f6f3ec; font: 600 .7rem/1.4 var(--ds-sans); }
.hm-check-copy h2 { margin: .3rem 0 .7rem; font: 600 clamp(1.7rem, 3.2vw, 2.4rem)/1.12 var(--ds-serif, Georgia, serif); color: var(--ds-navy); }
.hm-check-copy > p { color: #33434f; line-height: 1.6; }
.hm-check-cta { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-top: 1.2rem; }
.hm-link { font-weight: 650; color: var(--ds-teal-ink, #0b5f6e); }
.hm-link::after { content: " \2192"; }
.hm-research { padding: clamp(2.5rem, 6vw, 4rem) 0; background: linear-gradient(160deg, #071f30 0%, #0d3550 100%); color: #f6f3ec; }
.hm-rfigs { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.hm-rfigs a { display: grid; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #f6f3ec; text-decoration: none; transition: background .15s; }
.hm-rfigs a:hover, .hm-rfigs a:focus-visible { background: rgba(255,255,255,.13); }
.hm-rfigs b { font: 700 2rem/1.05 var(--ds-sans); color: #f4c463; }
.hm-rfigs span { line-height: 1.45; }
.hm-rfigs em { font-style: normal; font-size: .8rem; opacity: .75; }
.hm-research-more { margin: 1.2rem 0 0; }
.hm-link-light { color: #fff; }
@media (max-width: 760px) { .hm-check-in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hm-rfigs a { transition: none; } }
@media (min-width: 64rem) { .hm-rfigs { grid-template-columns: repeat(3, 1fr); } }
.hm-check-go { background: var(--ds-navy, #092a40); color: #fff; } .hm-check-go:hover, .hm-check-go:focus-visible { background: #0d3a57; color: #fff; }
/* Discovery strip under the hero (19 Nov 2026) */
.hd { background: #071f30; color: #f6f3ec; padding: 1.1rem 0 1.3rem; border-top: 1px solid rgba(255,255,255,.08); }
.hd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .7rem; }
.hd h2 { margin: 0; font: 600 1.15rem/1.2 var(--ds-serif, Georgia, serif); color: #fff; }
.hd-ctrls { display: flex; align-items: center; gap: .4rem; }
.hd-ctrls button { min-width: 2.6rem; min-height: 2.4rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; font: 600 .85rem var(--ds-sans); cursor: pointer; padding: 0 .8rem; }
.hd-ctrls button:hover, .hd-ctrls button:focus-visible { background: rgba(255,255,255,.16); }
.hd-ctrls .hd-mine { border-color: #f4c463; color: #f4c463; }
.hd-count { min-width: 3.4rem; text-align: center; font: 600 .8rem var(--ds-sans); opacity: .75; }
.hd-stage { min-height: 9rem; }
.hd-when { margin: 0; font-size: .92rem; line-height: 1.4; color: rgba(255,255,255,.86); }
.hd-slide { display: grid; gap: .45rem; padding: 1rem 1.2rem; border-radius: 16px; background: linear-gradient(120deg, rgba(31,111,105,.35) 0%, rgba(9,42,64,.6) 60%); border: 1px solid rgba(255,255,255,.1); }
.hd-space { background: linear-gradient(120deg, rgba(64,74,150,.45) 0%, rgba(9,42,64,.6) 60%); }
.hd-infrastructure { background: linear-gradient(120deg, rgba(168,115,15,.35) 0%, rgba(9,42,64,.6) 60%); }
.hd-top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.hd-cat { padding: .1rem .55rem; border-radius: 999px; background: #f4c463; color: #092a40; font: 700 .7rem/1.5 var(--ds-sans); text-transform: uppercase; letter-spacing: .05em; }
.hd-space .hd-cat { background: #a9b7ff; } .hd-earth .hd-cat { background: #8fd8cf; }
.hd-place { font: 600 .88rem var(--ds-sans); opacity: .9; }
.hd .hd-h { margin: 0; font: 600 clamp(1.15rem, 2.2vw, 1.5rem)/1.25 var(--ds-serif, Georgia, serif); color: #fff; }
.hd-why { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem 1.2rem; }
.hd-why dt { font: 700 .68rem/1.3 var(--ds-sans); text-transform: uppercase; letter-spacing: .05em; color: #f4c463; }
.hd-why dd { margin: .1rem 0 0; font-size: .9rem; line-height: 1.4; }
.hd-ph { margin: .2rem 0 0; font: 600 .74rem/1.3 var(--ds-sans); opacity: .85; }
.hd-acts { margin: .1rem 0 0; padding-left: 1.05rem; } .hd-acts li { margin: 0 0 .25rem; } .hd-acts a, .hd-why dd a { color: #f4c463; }
.hd-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; margin: .2rem 0 0; }
.hd-src { font-size: .74rem; opacity: .7; }
.hd-go { color: #f4c463; font-weight: 700; } .hd-go::after { content: " \2192"; }
.hd-mybox { display: grid; gap: .3rem; margin: 0 0 .7rem; max-width: 26rem; font-size: .85rem; position: relative; }
.hd-mybox input { padding: .5rem .8rem; border-radius: 10px; border: 0; font: 500 .95rem var(--ds-sans); }
.hd-results { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 10px; overflow: hidden; }
.hd-results:empty { display: none; }
.hd-results button { width: 100%; text-align: left; padding: .45rem .8rem; border: 0; background: #fff; color: #092a40; cursor: pointer; font: 500 .88rem var(--ds-sans); }
.hd-results button:hover, .hd-results button:focus-visible { background: #eef4f4; }
.hd-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hd-in-r { animation: hd-r .45s ease; } .hd-in-l { animation: hd-l .45s ease; }
@keyframes hd-r { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes hd-l { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .hd-why { grid-template-columns: 1fr; } .hd-stage { min-height: 19rem; } .hd-why div:nth-child(2) { display: none; } }
/* compact card (founder 21 Nov 11:20): bounded height whatever the record holds; the full record opens in the dialog */
.hd-why dd { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hd-open { font: 700 .88rem/1 var(--ds-sans); color: #0b1d2a; background: #f4c463; border: 0; border-radius: 999px; padding: .55rem .95rem; cursor: pointer; }
.hd-open:hover { background: #ffd77f; } .hd-open:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hd-pause { white-space: nowrap; }
.hdd-quote { margin: .35rem 0 0; padding: .5rem .75rem; border-left: 3px solid #1f6f69; background: #f2f7f6; border-radius: 6px; white-space: pre-line; }
.hd-links { display: inline-flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
/* detail dialog: an ICI alert, styled like the Building Alerts email (white document, coloured header band) */
.hdd { width: min(44rem, calc(100vw - 2rem)); max-height: min(88vh, 60rem); padding: 0; border: 0; border-radius: 18px; background: #fff; color: #10212c; box-shadow: 0 24px 80px rgba(0,0,0,.45); overflow: hidden; }
.hdd[open] { display: flex; flex-direction: column; }
.hdd::backdrop { background: rgba(4,14,22,.72); }
.hdd-head { position: relative; padding: 1.2rem 1.4rem 1rem; background: #0b2a3c; color: #f6f3ec; }
.hdd-head .hd-top { margin: 0 0 .35rem; }
.hdd .hdd-title { margin: 0; padding-right: 5rem; color: #f6f3ec; font: 700 1.35rem/1.25 var(--ds-serif, Georgia, serif); }
.hdd-sub { margin: .3rem 0 0; opacity: .85; font-size: .95rem; }
.hdd-close { position: absolute; top: .9rem; right: .9rem; font: 600 .85rem/1 var(--ds-sans); color: #f6f3ec; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .5rem .85rem; cursor: pointer; }
.hdd-close:focus-visible { outline: 3px solid #f4c463; outline-offset: 2px; }
.hdd-body { overflow-y: auto; padding: 1rem 1.4rem 1.4rem; overscroll-behavior: contain; }
.hdd-official { margin: 0 0 1rem; padding: .85rem 1rem; border-left: 5px solid #b3261e; background: #fdecea; border-radius: 8px; }
.hdd-official h3 { margin: 0 0 .3rem; font: 700 .95rem/1.3 var(--ds-sans); color: #8c1d18; } .hdd-official p { margin: 0; }
.hdd-sec { padding: .7rem 0; border-top: 1px solid #e3e8eb; } .hdd-sec:first-of-type { border-top: 0; }
.hdd-sec h3 { margin: 0 0 .3rem; font: 700 .8rem/1.3 var(--ds-sans); text-transform: uppercase; letter-spacing: .05em; color: #1f6f69; }
.hdd-sec h4 { margin: .55rem 0 .15rem; font: 700 .88rem/1.3 var(--ds-sans); color: #10212c; }
.hdd-sec p, .hdd-sec li { font-size: .95rem; line-height: 1.5; } .hdd-sec p { margin: 0; } .hdd-sec ul { margin: .15rem 0 0; padding-left: 1.15rem; } .hdd-sec li { margin: 0 0 .3rem; }
.hdd a { color: #0b5f8a; } .hdd-note { color: #5a6872; font-size: .85rem; }
.hdd-fine { margin: .9rem 0 0; font-size: .8rem; color: #5a6872; }
.hdd-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 1rem 0 0; } .hdd-links .hd-go { color: #0b5f8a; } .hdd-links .hd-off { color: #0b5f8a; }
@media (max-width: 600px) { .hdd { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; } .hdd-title { font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .hd-in-r, .hd-in-l { animation: none; } }
.hm-themes { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.1rem; }
.hm-themes a { display: grid; gap: .45rem; height: 100%; padding: 0 0 1.1rem; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #f6f3ec; text-decoration: none; transition: transform .2s, background .2s; }
.hm-themes a:hover, .hm-themes a:focus-visible { transform: translateY(-3px); background: rgba(255,255,255,.1); }
.hm-themes figure { position: relative; margin: 0; } .hm-themes img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hm-themes figcaption { position: absolute; left: .6rem; bottom: .5rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(5,22,36,.72); font: 600 .68rem/1.4 var(--ds-sans); }
.hm-themes b { padding: 0 1.1rem; font: 600 1.2rem/1.25 var(--ds-serif, Georgia, serif); color: #fff; }
.hm-themes span { padding: 0 1.1rem; font-size: .95rem; line-height: 1.5; opacity: .9; }
.hm-themes em { padding: 0 1.1rem; font-style: normal; font-weight: 700; color: #f4c463; } .hm-themes em::after { content: " \2192"; }
@media (prefers-reduced-motion: reduce) { .hm-themes a { transition: none; } .hm-themes a:hover { transform: none; } }
.hm-research .hm-themes { max-width: none; width: 100%; } @media (min-width: 64rem) { .hm-research .hm-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Around Our World: current findings (19 Nov 2026 20:12) */
.hd-status { margin: -.3rem 0 .6rem; font-size: .78rem; opacity: .75; }
.hd-status:empty { display: none; }
.hd-lab { padding: .1rem .5rem; border-radius: 4px; font: 800 .66rem/1.5 var(--ds-sans); letter-spacing: .08em; border: 1px solid currentColor; }
.hd-lab-live { color: #ff9b8a; } .hd-lab-forecast { color: #f4c463; } .hd-lab-observed { color: #8fd8cf; } .hd-lab-recent { color: #c9d3d9; }
.hd-lab-historical, .hd-lab-calculated { color: #a9b7ff; }
.hd-f { background: linear-gradient(120deg, rgba(139,29,44,.35) 0%, rgba(9,42,64,.65) 60%); }
.hd-l-observed { background: linear-gradient(120deg, rgba(31,111,105,.4) 0%, rgba(9,42,64,.65) 60%); }
.hd-l-forecast { background: linear-gradient(120deg, rgba(168,115,15,.35) 0%, rgba(9,42,64,.65) 60%); }
.hd-f .hd-cat { background: #fff; }
.hd-f .hd-why { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hd-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.hd-off { color: #fff; font-size: .85rem; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1000px) { .hd-f .hd-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hd-f .hd-why { grid-template-columns: 1fr; } .hd-f .hd-why div:nth-child(2) { display: none; } }

/* founder 21 Nov 12:20: compact card (place, hazard, timing, source); the mobile stage no longer reserves room for guidance rows */
@media (max-width: 760px) { .hd-stage { min-height: 11rem; } }
/* 21 Nov 2026: ordering note and high-severity priority tag */
.hd-order { margin: -.2rem 0 .4rem; font-size: .76rem; opacity: .7; }
.hd-prio { font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: .1rem .45rem; border-radius: 999px; border: 1px solid rgba(239,138,91,.7); color: #ef8a5b; }
