/* Climate 2100 sub-pages (sector pages, 3 Nov 2026). Same look as the home page (index.html v1.2):
   colours, panels, header, menu, Light/Dark switch, buttons and footer copied from it. Keep the two in step. */
:root {
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --brand: #00B050; --dg: #2F7A4A; --mg: #398655; --lg: #3DBE6B; --blue: #5BC0EB; --ink: #121A16;
  --radius: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121A16;
  --still: url("contours-dark.webp");
  --panel: rgba(18, 26, 22, 0.82);
  --panel-strong: rgba(22, 32, 27, 0.94);
  --border: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.14);
  --fg: #FFFFFF;
  --muted: #FFFFFF;
  --faint: rgba(255, 255, 255, 0.62);   /* photo credits only */
  --label: #3DBE6B;
  --accent: #3DBE6B;
  --link: #5BC0EB;
  --btn-bg: #3DBE6B; --btn-fg: #121A16; --btn-hover: #5BC0EB;
  --tint: rgba(255, 255, 255, 0.045);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --field-bg: rgba(0, 0, 0, 0.25); --field-border: rgba(255, 255, 255, 0.28);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --still: url("contours-light.webp");
  --panel: rgba(255, 255, 255, 0.93);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --border: #D6E0DB;
  --line: #D6E0DB;
  --fg: #121A16;
  --muted: #121A16;
  --faint: #5C6762;   /* photo credits only */
  --label: #2F7A4A;
  --accent: #2F7A4A;
  --link: #2F7A4A;
  --btn-bg: #2F7A4A; --btn-fg: #FFFFFF; --btn-hover: #121A16;
  --tint: #F3F8F5;
  --shadow: 0 10px 34px rgba(18, 26, 22, 0.08);
  --field-bg: #FFFFFF; --field-border: #A9BAB2;
}
:root[data-theme="dark"] .on-light, :root[data-theme="light"] .on-dark { display: none !important; }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; padding-inline: 16px;
  background: var(--bg) var(--still) center / cover fixed no-repeat;
  color: var(--fg);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  transition: background-color .4s, color .4s;
}
.wrap { max-width: 72rem; margin-inline: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.005em; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
.label { font-family: var(--mono); font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }
.tm { font-size: 0.42em; vertical-align: super; letter-spacing: 0; font-weight: 600; }

/* Panels: the text always sits on one of these, so the moving contours show only around them */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px); margin-block: 18px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background-color .4s, border-color .4s; }
.gap { height: clamp(10px, 3vw, 36px); }

/* Header */
header.top { position: sticky; top: 10px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; justify-content: space-between; margin-top: 10px; padding: 12px 18px; border-radius: var(--radius); background: var(--panel-strong); border: 1px solid var(--border); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mark { display: block; line-height: 0; }
.mark img { height: 44px; width: auto; }
.navrow { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; justify-content: flex-end; }
nav.main { display: flex; gap: 18px; font-family: var(--mono); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.06em; }
nav.main a { color: var(--muted); text-decoration: none; padding-block: 4px; white-space: nowrap; }
nav.main a:hover { color: var(--fg); }
nav.main a[aria-current="page"] { color: var(--fg); text-decoration: underline 2px var(--brand); text-underline-offset: 7px; }
/* Green dot between menu words (1 Nov 2026) */
nav.main a + a::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); vertical-align: middle; position: relative; top: -1px; margin-right: 12px; }

/* Light / Dark switch */
.theme-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--tint); }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font: 500 0.84rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.theme-switch button svg { width: 15px; height: 15px; }
.theme-switch button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
@media (max-width: 52rem) {
  header.top { position: static; }
  .navrow { width: 100%; justify-content: space-between; }
  nav.main { order: 2; width: 100%; overflow-x: auto; gap: 16px; padding-bottom: 4px; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 11px 22px; border-radius: 6px; background: var(--btn-bg); color: var(--btn-fg); border: 0; cursor: pointer; transition: background-color .2s; }
.btn:hover { background: var(--btn-hover); }
:root[data-theme="light"] .btn:hover { color: #fff; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
:root:not(.launched) .live, :root.launched .pre { display: none !important; }
.status { font-family: var(--mono); font-size: 0.84rem; color: var(--label); }
.hero h1 em { font-style: normal; color: var(--accent); }
footer.foot { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; margin-block: 18px 28px; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: #121A16; color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 0.84rem; }
footer.foot img { height: 78px; width: auto; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; text-transform: uppercase; letter-spacing: 0.06em; }
footer.foot a { color: #FFFFFF; text-decoration: none; }
footer.foot a:hover { color: #3DBE6B; }
footer.foot .meta { display: grid; gap: 10px; justify-items: end; text-align: right; }
footer.foot .tag { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.03em; color: #3DBE6B; text-transform: none; }
@media (max-width: 46rem) { footer.foot { grid-template-columns: 1fr; } footer.foot .meta { justify-items: start; text-align: left; } }

/* ---------- Sector pages ---------- */
main { display: block; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; padding: 8px 14px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font: 500 0.84rem/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--accent); }
.panel h1 em, .panel h2 em { font-style: normal; color: var(--accent); }
.panel > h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 20px; }
.shero { display: grid; gap: clamp(22px, 3vw, 30px); }
.shero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; }
.shero .text { display: grid; gap: 16px; min-width: 0; }
.sub { font: 600 clamp(1.3rem, 2.6vw, 1.7rem)/1.25 var(--display); }
.hero-img { margin: 0; display: grid; gap: 6px; }
.hero-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; display: block; }
.hero-img figcaption, .ainote { font: 400 0.84rem/1.4 var(--body); color: var(--faint); }
.ainote { text-align: center; margin: 4px 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--panel); width: fit-content; margin-inline: auto; }
.risks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.risk { background: var(--tint); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.risk .k { display: flex; align-items: center; gap: 9px; }
.risk h3 { font-size: 1.45rem; }
.risk .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.risk.flood .dot { background: var(--blue); }
.checks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; }
.checks .ctext { display: grid; gap: 14px; min-width: 0; }
.checks h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.checks ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.checks .side { width: 100%; max-width: 440px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; justify-self: center; display: block; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--tint); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font: 700 1.3rem/1.2 var(--display); list-style-position: outside; }
.faq details[open] summary { margin-bottom: 8px; }
.others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.others a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 500; }
.others a:hover { border-color: var(--accent); color: var(--accent); }
footer.foot nav.sec { font-size: 0.84rem; }
/* Hub */
.hub { display: grid; gap: 16px; }
.hub h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 18px 8px; }
.card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--fg); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card .body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.card h2 { font-size: 1.5rem; }
.card .go { font: 500 0.84rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .checks { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid, .risks { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
