/*
 * Planet2Place design system (founder 25 Nov 2026 18:43, design-system migration). Loaded LAST on every page by
 * scripts/design/apply-chrome.mjs, so its tokens are the ones every page reads.
 *
 * Palette (founder unified dark palette): canvas #05080E, secondary #081321, panels #101D2B, illuminated teal #00CED1,
 * text #F1F5F9, supporting text #AABFCE.
 * Typography (approved 18:43): Manrope for headings, navigation, buttons and measurements; IBM Plex Sans for body text,
 * calculators, charts, popups and drawers; Source Serif 4 only for editorial story headings (pages marked
 * body[data-p2p-story]). All three are self-hosted WOFF2 subsets under the SIL Open Font License (licences beside them in /assets/fonts/); the
 * IBM Plex Sans subset is served under the name "P2P Body Sans" because "Plex" is a Reserved Font Name.
 * Legacy tokens (--ds-*, --p2-*, --font-*, --sans, --serif) are re-pointed here, so existing components follow without
 * per-page edits; light surfaces that are literal colours are turned dark by the page-group rules at the end.
 */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "P2P Body Sans"; src: url("/assets/fonts/p2p-body-sans-latin-wdth-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-stretch: 85% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  /* palette */
  --p2p-canvas: #05080E; --p2p-canvas-2: #0A0D12; --p2p-panel: #13171D; --p2p-panel-2: #1A1F27; --p2p-teal: #00CED1; --p2p-teal-soft: #7fe6e8;
  /* founder 28 Nov 2026 (Release 22.2, item 12): decorative navy is retired for the near-black of the Earth & Space page. The former
     navy values stay declared only for the sheets that still draw them literally until their own lanes move them (Studio, R22.3;
     Future Earth; the outlook and correlation sheets): they are not for new work. */
  --p2p-legacy-navy-2: #081321; --p2p-legacy-navy-panel: #101D2B; --p2p-legacy-navy-panel-2: #16263A;
  --p2p-legacy-surface-1: #0B1622; --p2p-legacy-surface-2: #0E1B29; --p2p-legacy-surface-3: #13243A;
  --p2p-text: #F1F5F9; --p2p-support: #AABFCE; --p2p-line: rgba(170, 191, 206, .18); --p2p-line-strong: rgba(170, 191, 206, .34);
  --p2p-gold: #F5D76E; --p2p-warn: #F4C463; --p2p-danger: #FF8A80;
  /* typography */
  --p2p-font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --p2p-font-body: "P2P Body Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --p2p-font-story: "Source Serif 4", Georgia, "Times New Roman", serif;
  --p2p-fs-xs: .8125rem; --p2p-fs-s: .9375rem; --p2p-fs-m: 1rem; --p2p-fs-l: 1.125rem;
  --p2p-fs-xl: clamp(1.25rem, 1.05rem + .8vw, 1.5rem); --p2p-fs-2xl: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem);
  --p2p-fs-3xl: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); --p2p-fs-4xl: clamp(2.3rem, 1.4rem + 3.6vw, 4rem);
  --p2p-lh-tight: 1.15; --p2p-lh-head: 1.25; --p2p-lh-body: 1.55; --p2p-lh-ui: 1.35;
  /* legacy font tokens follow */
  --ds-serif: var(--p2p-font-head); --ds-sans: var(--p2p-font-body); --p2-serif: var(--p2p-font-head); --p2-sans: var(--p2p-font-body);
  --font-display: var(--p2p-font-head); --font-body: var(--p2p-font-body); --sans: var(--p2p-font-body); --serif: var(--p2p-font-head); --font-data: var(--p2p-font-head);
  /* legacy palette tokens follow: grounds and cards dark, inks light */
  --ds-ground: var(--p2p-canvas); --ds-card: var(--p2p-panel); --ds-cloud: var(--p2p-canvas-2); --ds-line: var(--p2p-line); --ds-muted: var(--p2p-support);
  --ds-navy: var(--p2p-text); --ds-storm: var(--p2p-teal-soft); --ds-teal: var(--p2p-teal); --ds-teal-ink: var(--p2p-teal-soft); --ds-pale: #A9DAE7;
  --ds-shadow: 0 1px 0 rgba(0, 206, 209, .06) inset, 0 10px 28px -18px rgba(0, 0, 0, .8); --ds-shadow-lift: 0 0 0 1px rgba(0, 206, 209, .3), 0 14px 36px -18px rgba(0, 206, 209, .35);
  --p2-paper: var(--p2p-canvas-2); --p2-paper-teal: var(--p2p-canvas-2); --p2-white: var(--p2p-panel); --p2-mist: var(--p2p-canvas-2); --p2-ink-text: var(--p2p-text); --p2-ink-muted: var(--p2p-support);
  --p2-line-light: var(--p2p-line); --p2-teal-ink: var(--p2p-teal-soft); --p2-storm: var(--p2p-teal-soft); --p2-gold-ink: var(--p2p-gold); --p2-neutral: var(--p2p-panel);
  --p2-navy: var(--p2p-canvas-2); --p2-ink: var(--p2p-canvas); --p2-deep: var(--p2p-panel); --p2-teal: var(--p2p-teal); --p2-text: var(--p2p-text); --p2-muted: var(--p2p-support);
  --p2-char-ink: var(--p2p-canvas); --p2-char: var(--p2p-canvas-2); --p2-char-panel: var(--p2p-panel); --p2-char-raise: var(--p2p-panel-2); --p2-char-text: var(--p2p-text); --p2-char-muted: var(--p2p-support);
  color-scheme: dark;
}
/* every themed page reads the one palette */
/* the ici-foundation light tokens (paper, surface, wash, ink, action, rule …) re-pointed to the dark palette, so every page
   built on them turns dark without per-page edits (design migration, founder 25 Nov 2026 22:13); fills drawn with --action and
   --ink are mapped to dark teal and navy by the generated dark map, so white text on them keeps its contrast */
:root { --paper: var(--p2p-canvas-2); --surface: var(--p2p-panel); --wash: var(--p2p-canvas-2); --ink: var(--p2p-text); --body: var(--p2p-text); --muted: var(--p2p-support);
  --action: var(--p2p-teal-soft); --action-deep: var(--p2p-teal); --rule: var(--p2p-line); --rule-strong: var(--p2p-line-strong); --tint-teal: var(--p2p-canvas-2); --tint-sand: var(--p2p-panel-2);
  --attention: var(--p2p-warn); --attention-bg: rgba(244, 196, 99, .10); --ember-ink: #F5B26B; --ember-wash: rgba(253, 133, 22, .10); --logo-slate-text: var(--p2p-support);
  --ev-documented: #7EE0A1; --ev-stated: var(--p2p-gold); --ev-none: var(--p2p-support); }
body[data-p2-theme] { --t-bg: var(--p2p-canvas); --t-surface: var(--p2p-panel); --t-surface-2: var(--p2p-canvas-2); --t-text: var(--p2p-text); --t-muted: var(--p2p-support);
  --t-line: var(--p2p-line); --t-link: var(--p2p-teal-soft); --t-accent: var(--p2p-teal); --t-on-accent: var(--p2p-canvas); --t-eyebrow: var(--p2p-teal); --t-focus: var(--p2p-gold); }

/* ---------- base ---------- */
html { background: var(--p2p-canvas); }
body { background: var(--p2p-canvas); color: var(--p2p-text); font-family: var(--p2p-font-body); line-height: var(--p2p-lh-body); -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, h4, h5, h6) { font-family: var(--p2p-font-head); letter-spacing: -.01em; line-height: var(--p2p-lh-head); color: var(--p2p-text); font-optical-sizing: auto; }
:where(h1) { font-weight: 700; } :where(h2) { font-weight: 700; } :where(h3, h4) { font-weight: 650; }
:where(button, .ds-btn, [class*="btn"], nav, .ds-nav, .ds-header, .ds-menu, label.ds-chip) { font-family: var(--p2p-font-head); }
:where(input, select, textarea) { font-family: var(--p2p-font-body); }
:where(p, li, dd, td, th, figcaption, blockquote) { font-family: inherit; }
main :where(a:not([class])) { color: var(--p2p-teal-soft); text-underline-offset: 2px; }
/* measurements: Manrope with tabular figures so columns of numbers line up */
:where(td, dd, output, input[type="number"], svg text, .num, .tabular, [data-num], [class*="-num"], [class*="-value"], [class*="-reading"], [class*="stat"] b, .st-figs b) { font-variant-numeric: tabular-nums; }
:where(.num, .tabular, [data-num], [class*="-num"], [class*="-value"], .st-figs b, .eo-n) { font-family: var(--p2p-font-head); }
/* editorial story headings only */
body[data-p2p-story] main :is(h1, h2) { font-family: var(--p2p-font-story); font-weight: 600; letter-spacing: -.005em; }
/* scientific interfaces, popups and drawers: calm sans headings at a smaller size (no oversized serif) */
:is(dialog, [role="dialog"], .ad-sheet, .ah, .eo-dlg, .st-panel, aside[class*="drawer"], [class*="-drawer"], [class*="-popup"], [class*="-sheet"]) :is(h1, h2, h3) { font-family: var(--p2p-font-head); }
:is(dialog, [role="dialog"], [class*="-drawer"], [class*="-popup"]) h2 { font-size: var(--p2p-fs-xl); }
:is(dialog, [role="dialog"], [class*="-drawer"], [class*="-popup"]) :is(p, li, dd, td) { font-family: var(--p2p-font-body); }
:focus-visible { outline-color: var(--p2p-gold); }
::selection { background: rgba(0, 206, 209, .35); color: var(--p2p-text); }

/* ---------- light surfaces → the dark palette (route inventory 25 Nov 2026; scripts/visual/design-probe.mjs lists any left) ----------
   Section grounds take the secondary canvas, cards and forms the panel colour. !important is used only on background here,
   because each page's own stylesheet sets these surfaces with higher-specificity selectors. Data images, maps and charts that
   are drawn for a light ground are not touched. */
html body main :is(.pg-white, .pg-light, .pg-close, .pa-section-white, .pa-section, .ds-page-hero, .pb-hero, .band.hero-field, .hero-field, .band-tight.tp-about,
  .tp-about, .rs-light, .ici-section, .ici-plain, .ici-sky, .pb-section, .pb-section-white, .pb-close, .pt-hero, .pt-section, .pt-commit, .pt-close, .ds-band,
  .fo-hero, .fo-section, .fo-tinted, .p2s-light, .hx-sec, .hx-hist, .gap-index, .aw, .guide-section, .band, .band-tight, .ds-section, .pa-band, section.tp-hero, .field-tint) {
  background: var(--p2p-canvas-2) !important; background-image: none !important; color: var(--p2p-text); }
html body main :is(.atl-card, .atl-stage, .ba-cta-inner, .cx-quote, .em-map, .bw-detail, .co-card, .eq-lookup, .lookup-form, .capture-card, .ici-toc, .pa-toc, .hea-reg,
  .pg-kq-card, .pt-status-panel, .pt-direction, .pt-pos-grid, .rr-results, .hx-map, .tp-where, .tool-workspace, .panel, .readiness-controls, .legal-body, .fo-narrow,
  .pg-card, .pa-card, .ds-card, .pb-card, .pt-card, .ici-card, .co-wide, .br-card, .ax-panel, .eq-filters, .lbc-panel, .pb-filterbar, .card, .resource, li.resource, .pg-panel) {
  background: var(--p2p-panel) !important; background-image: none !important; color: var(--p2p-text); border-color: var(--p2p-line); }
html body main .guide-section.is-safety { background: linear-gradient(180deg, rgba(244, 196, 99, .10), rgba(244, 196, 99, .03)), var(--p2p-canvas-2) !important; border-left: 3px solid var(--p2p-warn); }

/* Earth Almanac workspace tokens (the panel is dark; its own light-ground tokens are re-pointed) */
html body main .aw { --aw-ink: var(--p2p-text); --aw-mute: var(--p2p-support); --aw-teal: var(--p2p-teal-soft); --aw-line: var(--p2p-line-strong); }

/* popups, sheets and drawers: Manrope headings at a modest size, never the editorial serif (design migration, 25 Nov 2026 22:13) */
html body :is(dialog, [role="dialog"], .maplibregl-popup-content, .la-sheet, [class*="-popup"], [class*="-drawer"], [class*="-sheet"], .st-detail) :is(h1, h2) { font-family: var(--p2p-font-head); font-size: var(--p2p-fs-xl); line-height: var(--p2p-lh-head); font-weight: 700; letter-spacing: -.005em; }
html body :is(dialog, [role="dialog"], .maplibregl-popup-content, .la-sheet, [class*="-popup"], [class*="-drawer"], [class*="-sheet"], .st-detail) :is(h3, h4) { font-family: var(--p2p-font-head); font-size: var(--p2p-fs-l); line-height: var(--p2p-lh-head); font-weight: 700; }

/* Built World and Space Almanac (contrast audit, 25 Nov 2026): page tokens and filled controls on the dark palette */
html body main.bw-page { --bw-navy: #F1F5F9; --bw-ink: #F1F5F9; --bw-paper: var(--p2p-canvas); }
html body main.bw-page :is(.bw-hero, .bw-link) { background-color: #16263A; }
html body .sx-level button[aria-pressed="true"], html body .sx-time .sx-main { color: #05080E !important; }
html body main#main.es-page .sa-btn.sa-btn-main:not(.x) { background: var(--p2p-teal) !important; border-color: var(--p2p-teal) !important; color: #05080E !important; }

/* ---------- buttons on the dark palette (the legacy primary read the old navy ink token) ---------- */
html body :is(.ds-btn-primary, .btn-primary.btn-primary.btn-primary, .pg-btn-primary, .ds-btn.ds-btn-primary) { background: var(--p2p-teal); border-color: var(--p2p-teal); color: var(--p2p-canvas); }
html body :is(.ds-btn-primary, .btn-primary.btn-primary.btn-primary, .pg-btn-primary):hover { background: #33dadd; border-color: #33dadd; color: var(--p2p-canvas); }
html body :is(.ds-btn-ghost, .ds-btn-light, .pg-btn-light, .btn-secondary) { background: transparent; color: var(--p2p-text); border-color: var(--p2p-line-strong); }
html body :is(.ds-btn-ghost, .ds-btn-light, .pg-btn-light, .btn-secondary):hover { background: rgba(0, 206, 209, .10); border-color: var(--p2p-teal); color: var(--p2p-text); }
html body main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select, textarea) { background: var(--p2p-canvas-2); color: var(--p2p-text); border-color: rgba(170, 191, 206, .45); }
html body main :is(input, textarea)::placeholder { color: #8fa6b6; }

/* compact footer (founder 25 Nov 2026 20:44: the footer was oversized): smaller type, tighter rows, a smaller logo */
html body .ds-footer .ds-footer-top { padding-block: 1.75rem 1.1rem; gap: 1.25rem 2rem; }
html body .ds-footer .ds-footer-cols { gap: 1rem 1.5rem; }
html body .ds-footer :is(.ds-footer-cols a, .ds-footer-cols li) { font-size: .84rem; line-height: 1.35; }
html body .ds-footer .ds-footer-cols li { margin: 0 0 .2rem; }
html body .ds-footer .ds-footer-cols a { display: inline-block; padding-block: .2rem; }
html body .ds-footer .ds-footer-brand img { max-width: 9.5rem; height: auto; }
html body .ds-footer .ds-footer-base { padding-block: .9rem 1.1rem; font-size: .78rem; }

/* ---------- universal place picker (place-picker.js, founder 25 Nov 2026 22:13) ----------
   Three compact fields side by side on wide screens, stacked on a phone. Lists are bounded (max-height set from the space
   left in the viewport by the script), scroll inside themselves, and open upward when there is more room above. */
:is(#main, html) .pp { display: grid; gap: .55rem; color: var(--p2p-text); font-family: var(--p2p-font-body); }
:is(#main, html) .pp .pp-legend { margin: 0; font: 700 .78rem/1.3 var(--p2p-font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--p2p-teal-soft); }
:is(#main, html) .pp .pp-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: .6rem; align-items: end; }
@media (max-width: 52rem) { :is(#main, html) .pp .pp-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } :is(#main, html) .pp .pp-fields > .pp-field:last-child { grid-column: 1 / -1; }  }
@media (max-width: 34rem) { :is(#main, html) .pp .pp-fields { grid-template-columns: minmax(0, 1fr); }  }
:is(#main, html) .pp-compact .pp-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } :is(#main, html) .pp-compact .pp-fields > .pp-field:last-child { grid-column: 1 / -1; }
@media (max-width: 34rem) { :is(#main, html) .pp-compact .pp-fields { grid-template-columns: minmax(0, 1fr); }  }
:is(#main, html) .pp .pp-field { display: grid; gap: .25rem; min-width: 0; }
:is(#main, html) .pp .pp-field[hidden] { display: none; }
:is(#main, html) .pp .pp-label { font: 600 .8rem/1.3 var(--p2p-font-head); color: var(--p2p-support); }
:is(#main, html) .pp .pp-off .pp-label { color: #8fa6b6; }
:is(#main, html) .pp .pp-combo { position: relative; display: flex; align-items: stretch; min-width: 0; }
:is(#main, html) .pp .pp-input { flex: 1 1 auto; min-width: 0; min-height: 2.75rem; padding: 0 2.3rem 0 .8rem; border-radius: .6rem; border: 1px solid rgba(170, 191, 206, .45); background: var(--p2p-canvas-2); color: var(--p2p-text); font: 500 .95rem/1.2 var(--p2p-font-body); }
:is(#main, html) .pp .pp-input:focus { outline: 2px solid var(--p2p-teal); outline-offset: 1px; border-color: var(--p2p-teal); }
:is(#main, html) .pp .pp-input:disabled { opacity: .55; cursor: not-allowed; }
:is(#main, html) .pp .pp-caret { position: absolute; right: .3rem; top: 50%; width: 2rem; height: 2rem; margin-top: -1rem; border: 0; border-radius: .4rem; background: transparent; cursor: pointer; }
:is(#main, html) .pp .pp-caret::before { content: ""; position: absolute; left: 50%; top: 50%; width: .45rem; height: .45rem; margin: -.32rem 0 0 -.22rem; border-right: 2px solid var(--p2p-support); border-bottom: 2px solid var(--p2p-support); transform: rotate(45deg); }
:is(#main, html) .pp .pp-combo:has(.pp-go) .pp-caret { display: none; }
:is(#main, html) .pp .pp-combo:has(.pp-go) .pp-input { padding-right: .8rem; border-radius: .6rem 0 0 .6rem; }
:is(#main, html) .pp .pp-go { flex: 0 0 auto; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--p2p-teal); border-radius: 0 .6rem .6rem 0; background: var(--p2p-teal); color: var(--p2p-canvas); font: 700 .9rem/1 var(--p2p-font-head); cursor: pointer; }
:is(#main, html) .pp .pp-go:hover { background: #33dadd; } :is(#main, html) .pp .pp-go:disabled { opacity: .5; cursor: not-allowed; }
:is(#main, html) .pp .pp-list { position: absolute; left: 0; right: 0; top: calc(100% + .3rem); z-index: 60; margin: 0; padding: .3rem; list-style: none; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: .4rem;
  max-height: 22rem; border-radius: .7rem; border: 1px solid var(--p2p-line-strong); background: #0c1826; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); scrollbar-width: thin; scrollbar-color: #3b5368 transparent; }
:is(#main, html) .pp .pp-list.pp-up { top: auto; bottom: calc(100% + .3rem); }
:is(#main, html) .pp .pp-list[hidden] { display: none; }
:is(#main, html) .pp .pp-h { position: sticky; top: -.3rem; z-index: 1; margin: 0 -.3rem; padding: .45rem .9rem .3rem; background: #0c1826; font: 700 .72rem/1.2 var(--p2p-font-head); letter-spacing: .07em; text-transform: uppercase; color: var(--p2p-teal-soft); border-bottom: 1px solid var(--p2p-line); }
:is(#main, html) .pp .pp-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .05rem .5rem; padding: .5rem .6rem; border-radius: .45rem; cursor: pointer; color: var(--p2p-text); font-size: .93rem; line-height: 1.3; }
:is(#main, html) .pp .pp-opt[aria-selected="true"] { background: rgba(0, 206, 209, .16); outline: 1px solid rgba(0, 206, 209, .5); }
:is(#main, html) .pp .pp-opt-t { font-weight: 600; grid-column: 1; } :is(#main, html) .pp .pp-opt .pp-badge { grid-column: 2; grid-row: 1; } :is(#main, html) .pp .pp-opt-s { grid-column: 1; font-size: .8rem; color: var(--p2p-support); }
:is(#main, html) .pp .pp-empty { padding: .7rem .6rem; color: var(--p2p-support); font-size: .9rem; }
/* ---- sitewide place selector, summary state and combined scope (founder, 26 Nov 2026: ONE component everywhere; spec in
   docs/design/PLACE_SELECTOR.md; L1 design, L7 builds the mode in place-picker.js). Drought Explorer container language:
   thin rules, no inner boxes, teal only on Find and focus. ---- */
:is(#main, html) .pp { max-width: 44rem; }
:is(#main, html) .pp .pp-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; min-height: 2.75rem; padding: .35rem 0; border-bottom: 1px solid var(--p2p-line); }
:is(#main, html) .pp .pp-summary[hidden] { display: none; }
:is(#main, html) .pp .pp-summary-icon { width: 1.1rem; height: 1.1rem; flex: none; color: var(--p2p-teal-soft); }
:is(#main, html) .pp .pp-summary-place { font: 600 1rem/1.35 var(--p2p-font-head); color: var(--p2p-text); }
:is(#main, html) .pp .pp-summary-area { font-size: .88rem; color: var(--p2p-support); }
:is(#main, html) .pp .pp-summary-area::before { content: "\00B7"; margin-right: .6rem; color: var(--p2p-muted); }
:is(#main, html) .pp .pp-change { margin-left: auto; min-height: 2.25rem; padding: 0 .9rem; border-radius: var(--p2p-r-pill); border: 1px solid var(--p2p-line-strong); background: transparent; color: var(--p2p-text); font: 600 .85rem/1 var(--p2p-font-head); cursor: pointer; }
:is(#main, html) .pp .pp-change:hover { border-color: var(--p2p-teal); } :is(#main, html) .pp .pp-change:focus-visible { outline: 2px solid var(--p2p-teal); outline-offset: 2px; }
:is(#main, html) .pp.pp--summary .pp-fields, :is(#main, html) .pp.pp--summary .pp-legend, :is(#main, html) .pp.pp--summary .pp-chosen { display: none; }
/* combined country and province: one control reading "Canada · Alberta" until the visitor changes it */
:is(#main, html) .pp .pp-scope { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 2.75rem; padding: 0 .8rem; border-radius: var(--p2p-r-s); border: 1px solid rgba(170, 191, 206, .45); background: var(--p2p-canvas-2); color: var(--p2p-text); font: 500 .95rem/1.2 var(--p2p-font-body); text-align: left; cursor: pointer; }
:is(#main, html) .pp .pp-scope[hidden] { display: none; }
/* Mobile design standard, place selector (built by L7, 27 Nov 2026; tokens in the mobile standard block): 16 px text in every
   box so iOS does not zoom on focus (the sitewide input rule); 48 px touch rows for the boxes, Find, Change and the scope control; choices at least 44 px tall. */
@media (max-width: 40rem), (pointer: coarse) {
  :is(#main, html) .pp .pp-input { min-height: var(--p2p-m-touch-l); }   /* its 16px text: the sitewide rule in the mobile standard */
  :is(#main, html) .pp .pp-go { min-height: var(--p2p-m-touch-l); min-width: 5.5rem; font-size: 1rem; }
  :is(#main, html) .pp .pp-change, :is(#main, html) .pp .pp-scope { min-height: var(--p2p-m-touch-l); }
  :is(#main, html) .pp .pp-opt { min-height: var(--p2p-m-touch); padding: .6rem .7rem; font-size: 1rem; }
  :is(#main, html) .pp .pp-caret { width: var(--p2p-m-touch); height: var(--p2p-m-touch); margin-top: calc(var(--p2p-m-touch) / -2); right: .15rem; }
}   /* L7: the scope control shows only once a country is known */
:is(#main, html) .pp .pp-scope::after { content: "Change"; font: 600 .8rem/1 var(--p2p-font-head); color: var(--p2p-teal-soft); }
:is(#main, html) .pp .pp-scope:focus-visible { outline: 2px solid var(--p2p-teal); outline-offset: 1px; }
:is(#main, html) .pp.pp--scoped .pp-fields { grid-template-columns: minmax(0, 1fr); }
:is(#main, html) .pp.pp--scoped .pp-fields > .pp-field:is(:nth-child(1), :nth-child(2)) { display: none; }
:is(#main, html) .pp .pp-privacy { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--p2p-muted); }
:is(#main, html) .pp .pp-privacy a { color: var(--p2p-teal-soft); }
:is(#main, html) .pp .pp-privacy button { padding: 0; border: 0; background: none; color: var(--p2p-teal-soft); font: inherit; text-decoration: underline; cursor: pointer; min-height: 24px; }
:is(#main, html) .pp .pp-go { min-width: 5.5rem; }
:is(#main, html) .p2p-stack-place { display: grid; gap: var(--p2p-s-6); max-width: 44rem; }   /* reference page only */
:is(#main, html) .pp .pp-badge { margin-left: auto; padding: .12rem .45rem; border-radius: 999px; font: 600 .7rem/1.3 var(--p2p-font-head); white-space: nowrap; }
:is(#main, html) .pp .pp-b-full { color: #7EE0A1; background: rgba(126, 224, 161, .12); } :is(#main, html) .pp .pp-b-partial { color: var(--p2p-gold); background: rgba(245, 215, 110, .12); }
:is(#main, html) .pp .pp-b-unavailable { color: #c3d2dd; background: rgba(170, 191, 206, .12); }
:is(#main, html) .pp .pp-status { margin: 0; min-height: 1.2em; font-size: .88rem; color: var(--p2p-support); }
:is(#main, html) .pp .pp-status:empty { display: none; }
:is(#main, html) .pp .pp-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0; padding: .5rem .75rem; border-radius: .6rem; background: rgba(0, 206, 209, .08); border: 1px solid rgba(0, 206, 209, .3); font-size: .92rem; }
:is(#main, html) .pp .pp-chosen[hidden] { display: none; }
:is(#main, html) .pp .pp-chosen-k { font: 700 .7rem/1 var(--p2p-font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--p2p-teal-soft); }
:is(#main, html) .pp .pp-chosen-v { font-weight: 600; } :is(#main, html) .pp .pp-chosen .pp-badge { margin-left: 0; }
:is(#main, html) .pp .pp-clear { margin-left: auto; padding: .2rem .55rem; border: 1px solid var(--p2p-line-strong); border-radius: .4rem; background: transparent; color: var(--p2p-text); font: 600 .78rem/1.2 var(--p2p-font-head); cursor: pointer; }
:is(#main, html) .pp .pp-clear:hover { border-color: var(--p2p-teal); }

/* 25 Nov 2026 (release 13 contrast audit): controls whose fill was the old navy token, which the dark palette turns pale */
html body .aw-chip[aria-pressed="true"] { background: #0b6b65 !important; border-color: #0b6b65 !important; color: #fff !important; }
html body main#main .pa-search .alm-fsarow #alm-fsago,
html body .atl-chip[aria-pressed="true"] { background: #0f6e6e !important; border-color: #0f6e6e !important; color: #fff !important; }
html body main#main .pa-search .alm-fsarow #alm-fsago:hover { background: #0b5a5a !important; border-color: #0b5a5a !important; }

/* =====================================================================================================================
 * DESIGN SYSTEM v3 (founder 26 Nov 2026 06:31 "Mandatory Design System and Editorial Standards", and the cinematic and
 * creative-direction directives A and B of the same morning). docs/design/DESIGN_SYSTEM.md is the written source of truth;
 * this block holds its tokens and the approved shared components. Every component here is shown on /preview/design-system/.
 * Pages use these classes; they do not restyle them. scripts/design/design-lint.mjs enforces the colour and font sets.
 * ===================================================================================================================== */
:root {
  /* surfaces: near-black canvas and sections, elevated panels (B§2: slightly raised, never flat grey) */
  --p2p-surface-1: #0D1015; --p2p-surface-2: #10141A; --p2p-surface-3: #161B23;   /* near-black, not navy (founder 28 Nov 2026) */
  --p2p-elevated: linear-gradient(180deg, rgba(26, 31, 39, .72) 0%, rgba(13, 16, 21, .92) 100%);
  --p2p-edge: inset 0 1px 0 rgba(241, 245, 249, .06);
  --p2p-shadow-1: 0 1px 0 rgba(241, 245, 249, .05) inset, 0 12px 32px -20px rgba(0, 0, 0, .85);
  --p2p-shadow-2: 0 1px 0 rgba(241, 245, 249, .06) inset, 0 22px 48px -26px rgba(0, 0, 0, .9);
  --p2p-glow: 0 0 0 1px rgba(0, 206, 209, .32), 0 16px 40px -22px rgba(0, 206, 209, .38);
  --p2p-scrim: linear-gradient(90deg, rgba(5, 8, 14, .9) 0%, rgba(5, 8, 14, .62) 45%, rgba(5, 8, 14, 0) 78%);
  --p2p-scrim-bottom: linear-gradient(0deg, rgba(5, 8, 14, .92) 0%, rgba(5, 8, 14, .55) 50%, rgba(5, 8, 14, 0) 100%);
  --p2p-teal-hover: #33DADD; --p2p-teal-deep: #0F6E6E; --p2p-muted: #8FA6B6;
  /* scientific colour coding: only where it carries meaning (charts, legends, evidence labels) */
  --p2p-sci-observed: #50B8DC; --p2p-sci-modelled: #7FC8B5; --p2p-sci-estimated: #E8D27A; --p2p-sci-forecast: #F5A32B;
  --p2p-sci-projected: #E07B4F; --p2p-sci-user: #C9B8E8; --p2p-sci-good: #7EE0A1; --p2p-sci-cold: #6FA8FF; --p2p-sci-hot: #FF8A5B;
  /* APPROVED SEMANTIC PALETTE (founder, 26 Nov 2026; DESIGN_SYSTEM.md §2.1). Ink colours for a dark ground; a chip is the ink at 14 %
     over its surface with a 38 % line (--p2p-k-*-bg / -line). Official warning colours are never drawn from here: they stay the issuer's own. */
  --p2p-k-observed: #50B8DC; --p2p-k-observed-bg: rgba(80, 184, 220, .14); --p2p-k-observed-line: rgba(80, 184, 220, .38); --p2p-k-modelled: #7FC8B5; --p2p-k-modelled-bg: rgba(127, 200, 181, .14); --p2p-k-modelled-line: rgba(127, 200, 181, .38);
  --p2p-k-projected: #E07B4F; --p2p-k-projected-bg: rgba(224, 123, 79, .14); --p2p-k-projected-line: rgba(224, 123, 79, .38); --p2p-k-forecast: #F5A32B; --p2p-k-forecast-bg: rgba(245, 163, 43, .14); --p2p-k-forecast-line: rgba(245, 163, 43, .38);
  --p2p-k-research: #B79CF2; --p2p-k-research-bg: rgba(183, 156, 242, .14); --p2p-k-research-line: rgba(183, 156, 242, .38); --p2p-k-official: #E8D27A; --p2p-k-official-bg: rgba(232, 210, 122, .14); --p2p-k-official-line: rgba(232, 210, 122, .38);
  --p2p-k-interpretation: #E79BC4; --p2p-k-interpretation-bg: rgba(231, 155, 196, .14); --p2p-k-interpretation-line: rgba(231, 155, 196, .38); --p2p-k-historical: #C9B48A; --p2p-k-historical-bg: rgba(201, 180, 138, .14); --p2p-k-historical-line: rgba(201, 180, 138, .38);
  --p2p-k-statistical: #7EE0A1; --p2p-k-statistical-bg: rgba(126, 224, 161, .14); --p2p-k-statistical-line: rgba(126, 224, 161, .38); --p2p-k-neutral: #AABFCE; --p2p-k-neutral-bg: rgba(170, 191, 206, .14); --p2p-k-neutral-line: rgba(170, 191, 206, .38);
  --p2p-sev-1: #7EE0A1; --p2p-sev-1-bg: rgba(126, 224, 161, .14); --p2p-sev-1-line: rgba(126, 224, 161, .38); --p2p-sev-2: #E8D27A; --p2p-sev-2-bg: rgba(232, 210, 122, .14); --p2p-sev-2-line: rgba(232, 210, 122, .38);
  --p2p-sev-3: #F5A32B; --p2p-sev-3-bg: rgba(245, 163, 43, .14); --p2p-sev-3-line: rgba(245, 163, 43, .38); --p2p-sev-4: #FF8A6B; --p2p-sev-4-bg: rgba(255, 138, 107, .14); --p2p-sev-4-line: rgba(255, 138, 107, .38);
  --p2p-cat-1: #50B8DC; --p2p-cat-1-bg: rgba(80, 184, 220, .14); --p2p-cat-1-line: rgba(80, 184, 220, .38); --p2p-cat-2: #7EE0A1; --p2p-cat-2-bg: rgba(126, 224, 161, .14); --p2p-cat-2-line: rgba(126, 224, 161, .38);
  --p2p-cat-3: #F5C463; --p2p-cat-3-bg: rgba(245, 196, 99, .14); --p2p-cat-3-line: rgba(245, 196, 99, .38); --p2p-cat-4: #B79CF2; --p2p-cat-4-bg: rgba(183, 156, 242, .14); --p2p-cat-4-line: rgba(183, 156, 242, .38);
  --p2p-cat-5: #FF8A80; --p2p-cat-5-bg: rgba(255, 138, 128, .14); --p2p-cat-5-line: rgba(255, 138, 128, .38); --p2p-cat-6: #4FD1C5; --p2p-cat-6-bg: rgba(79, 209, 197, .14); --p2p-cat-6-line: rgba(79, 209, 197, .38);
  --p2p-cat-7: #E79BC4; --p2p-cat-7-bg: rgba(231, 155, 196, .14); --p2p-cat-7-line: rgba(231, 155, 196, .38); --p2p-cat-8: #A9B8C9; --p2p-cat-8-bg: rgba(169, 184, 201, .14); --p2p-cat-8-line: rgba(169, 184, 201, .38);
  --p2p-k-ok: #7EE0A1; --p2p-k-ok-bg: rgba(126, 224, 161, .14); --p2p-k-ok-line: rgba(126, 224, 161, .38); --p2p-k-info: #7FE6E8; --p2p-k-info-bg: rgba(127, 230, 232, .14); --p2p-k-info-line: rgba(127, 230, 232, .38);
  --p2p-k-warn: #F4C463; --p2p-k-warn-bg: rgba(244, 196, 99, .14); --p2p-k-warn-line: rgba(244, 196, 99, .38); --p2p-k-danger: #FF8A80; --p2p-k-danger-bg: rgba(255, 138, 128, .14); --p2p-k-danger-line: rgba(255, 138, 128, .38);
  --p2p-series-1: var(--p2p-cat-1); --p2p-series-2: var(--p2p-cat-3); --p2p-series-3: var(--p2p-cat-2); --p2p-series-4: var(--p2p-cat-4); --p2p-series-5: var(--p2p-cat-5); --p2p-series-6: var(--p2p-cat-6);
  /* spacing (4 px base) */
  --p2p-s-1: .25rem; --p2p-s-2: .5rem; --p2p-s-3: .75rem; --p2p-s-4: 1rem; --p2p-s-5: 1.5rem; --p2p-s-6: 2rem; --p2p-s-7: 3rem; --p2p-s-8: 4.5rem;
  --p2p-section-y: clamp(2.75rem, 2rem + 3vw, 5rem);
  /* widths: the Learn page container is the reference */
  --p2p-w-page: 72rem; --p2p-w-wide: 84rem; --p2p-w-text: 42rem; --p2p-gutter: clamp(1rem, .6rem + 2vw, 1.5rem);
  /* radii: four values only */
  --p2p-r-s: 10px; --p2p-r-m: 14px; --p2p-r-l: 20px; --p2p-r-pill: 999px;
  /* motion */
  --p2p-ease: cubic-bezier(.2, .7, .2, 1); --p2p-dur: .2s; --p2p-dur-slow: .45s;
  /* media */
  --p2p-ratio-film: 16 / 9; --p2p-ratio-wide: 21 / 9; --p2p-ratio-card: 16 / 10;
}

/* ---------- layout ---------- */
:is(#main, html) .p2p-wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--p2p-w-page) + 2 * var(--p2p-gutter)); margin-inline: auto; padding-inline: var(--p2p-gutter); }
:is(#main, html) .p2p-wrap--wide { max-width: calc(var(--p2p-w-wide) + 2 * var(--p2p-gutter)); }
:is(#main, html) .p2p-section { padding-block: var(--p2p-section-y); background: var(--p2p-canvas); color: var(--p2p-text); }
:is(#main, html) .p2p-section--navy { background: var(--p2p-canvas-2); }
:is(#main, html) .p2p-section + .p2p-section--navy, :is(#main, html) .p2p-section--navy + .p2p-section { border-top: 1px solid var(--p2p-line); }
:is(#main, html) .p2p-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
:is(#main, html) .p2p-split--flip > :first-child { order: 2; }
@media (max-width: 52rem) { :is(#main, html) .p2p-split { grid-template-columns: minmax(0, 1fr); } :is(#main, html) .p2p-split--flip > :first-child { order: 0; } }
:is(#main, html) .p2p-grid { display: grid; gap: var(--p2p-s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin: 0; padding: 0; list-style: none; }
:is(#main, html) .p2p-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } :is(#main, html) .p2p-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 64rem) { :is(#main, html) .p2p-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 52rem) { :is(#main, html) .p2p-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { :is(#main, html) .p2p-grid--3, :is(#main, html) .p2p-grid--4 { grid-template-columns: minmax(0, 1fr); } }
:is(#main, html) .p2p-measure { max-width: var(--p2p-w-text); }

/* ---------- type ---------- */
:is(#main, html) .p2p-eyebrow { margin: 0 0 var(--p2p-s-2); font: 700 var(--p2p-fs-xs)/1.3 var(--p2p-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--p2p-teal-soft); }
:is(#main, html) .p2p-display { margin: 0 0 var(--p2p-s-4); font: 700 var(--p2p-fs-4xl)/1.05 var(--p2p-font-head); letter-spacing: -.02em; color: var(--p2p-text); max-width: 18ch; }
:is(#main, html) .p2p-h1 { margin: 0 0 var(--p2p-s-4); font: 700 var(--p2p-fs-3xl)/var(--p2p-lh-tight) var(--p2p-font-head); letter-spacing: -.015em; }
:is(#main, html) .p2p-h2 { margin: 0 0 var(--p2p-s-3); font: 700 var(--p2p-fs-2xl)/var(--p2p-lh-head) var(--p2p-font-head); letter-spacing: -.01em; }
:is(#main, html) .p2p-h3 { margin: 0 0 var(--p2p-s-2); font: 650 var(--p2p-fs-l)/var(--p2p-lh-head) var(--p2p-font-head); }
:is(#main, html) .p2p-lede { margin: 0 0 var(--p2p-s-5); max-width: var(--p2p-w-text); font: 400 var(--p2p-fs-l)/1.55 var(--p2p-font-body); color: var(--p2p-support); }
:is(#main, html) .p2p-fine { font-size: var(--p2p-fs-xs); line-height: 1.45; color: var(--p2p-support); }
:is(#main, html) .p2p-editorial { font-family: var(--p2p-font-story); }

/* ---------- buttons: one teal primary, one outlined secondary, one text link ---------- */
:is(#main, html) .p2p-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: var(--p2p-r-pill); border: 1.5px solid transparent;
  font: 700 .95rem/1 var(--p2p-font-head); text-decoration: none; cursor: pointer; transition: background var(--p2p-dur), border-color var(--p2p-dur), color var(--p2p-dur); }
:is(#main, html) .p2p-btn--primary { background: var(--p2p-teal); border-color: var(--p2p-teal); color: var(--p2p-canvas); }
:is(#main, html) .p2p-btn--primary:hover { background: var(--p2p-teal-hover); border-color: var(--p2p-teal-hover); color: var(--p2p-canvas); }
:is(#main, html) .p2p-btn--secondary { background: transparent; border-color: var(--p2p-line-strong); color: var(--p2p-text); }
:is(#main, html) .iss-cta { margin: var(--p2p-s-4) 0 var(--p2p-s-2); }   /* /earth-space/iss/ → ISS Pass tool (Release 21, L8 audit) */
:is(#main, html) .p2p-btn--secondary:hover { border-color: var(--p2p-teal); background: rgba(0, 206, 209, .08); color: var(--p2p-text); }
:is(#main, html) .p2p-btn:focus-visible, :is(#main, html) .p2p-link:focus-visible { outline: 3px solid var(--p2p-gold); outline-offset: 2px; }
:is(#main, html) .p2p-btn[disabled], :is(#main, html) .p2p-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
:is(#main, html) .p2p-link { color: var(--p2p-teal-soft); font: 700 .95rem/1.3 var(--p2p-font-head); text-decoration: none; }
:is(#main, html) .p2p-link::after { content: " \2192"; } :is(#main, html) .p2p-link:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(#main, html) .p2p-actions { display: flex; flex-wrap: wrap; gap: var(--p2p-s-3); align-items: center; }

/* ---------- elevated surfaces (B§2): one base, named variants; pages never restyle them ---------- */
:is(#main, html) .p2p-surface { position: relative; border-radius: var(--p2p-r-m); background: var(--p2p-elevated), var(--p2p-surface-1); border: 1px solid var(--p2p-line); box-shadow: var(--p2p-shadow-1); color: var(--p2p-text); padding: var(--p2p-s-5); }
:is(#main, html) .p2p-surface--editorial { background: transparent; border: 0; box-shadow: none; padding: 0; border-top: 1px solid var(--p2p-line); padding-top: var(--p2p-s-4); border-radius: 0; }
:is(#main, html) .p2p-surface--finding { border-left: 2px solid var(--p2p-teal); }
:is(#main, html) .p2p-surface--tool { border-radius: var(--p2p-r-l); box-shadow: var(--p2p-shadow-2); padding: var(--p2p-s-6); }
:is(#main, html) .p2p-surface--forecast { padding: 0; overflow: hidden; }
:is(#main, html) .p2p-surface--nav { padding: var(--p2p-s-4); transition: border-color var(--p2p-dur), transform var(--p2p-dur) var(--p2p-ease), box-shadow var(--p2p-dur); }
:is(#main, html) .p2p-surface--nav:hover, :is(#main, html) .p2p-surface--nav:focus-within { border-color: rgba(0, 206, 209, .5); box-shadow: var(--p2p-glow); transform: translateY(-2px); }
:is(#main, html) .p2p-surface--workspace { border-radius: var(--p2p-r-l); padding: 0; overflow: hidden; background: var(--p2p-surface-1); box-shadow: var(--p2p-shadow-2); }
@media (prefers-reduced-motion: reduce) { :is(#main, html) .p2p-surface--nav, :is(#main, html) .p2p-surface--nav:hover { transition: none; transform: none; } }

/* ---------- page hero (cinematic: one image or film, a scrim from the text side, eyebrow, h1, one lede, at most two actions) ---------- */
:is(#main, html) .p2p-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: min(78vh, 44rem); background: var(--p2p-canvas); color: var(--p2p-text); }
:is(#main, html) .p2p-hero--compact { min-height: min(56vh, 30rem); }
:is(#main, html) .p2p-hero__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
:is(#main, html) .p2p-hero__media :is(img, video) { width: 100%; height: 100%; object-fit: cover; display: block; }
:is(#main, html) .p2p-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--p2p-scrim), linear-gradient(0deg, rgba(5, 8, 14, .85) 0%, rgba(5, 8, 14, 0) 40%); }
:is(#main, html) .p2p-hero__in { box-sizing: border-box; width: 100%; max-width: calc(var(--p2p-w-page) + 2 * var(--p2p-gutter)); margin-inline: auto; padding: var(--p2p-s-8) var(--p2p-gutter) var(--p2p-s-7); }
:is(#main, html) .p2p-hero__in > * { max-width: 40rem; }
:is(#main, html) .p2p-hero__credit { position: absolute; right: var(--p2p-gutter); bottom: var(--p2p-s-3); margin: 0; max-width: 28rem; text-align: right; font-size: .72rem; line-height: 1.35; color: rgba(241, 245, 249, .72); }
@media (max-width: 47.5rem) { :is(#main, html) .p2p-hero::before { background: var(--p2p-scrim-bottom); } :is(#main, html) .p2p-hero__credit { position: static; text-align: left; padding: 0 var(--p2p-gutter) var(--p2p-s-3); } }

/* ---------- scientific content card (Learn "Questions worth exploring" is the reference) ---------- */
:is(#main, html) .p2p-card { display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: var(--p2p-r-m); overflow: hidden; background: var(--p2p-surface-1); border: 1px solid var(--p2p-line); box-shadow: var(--p2p-shadow-1); color: var(--p2p-text); text-decoration: none;
  transition: border-color var(--p2p-dur), transform var(--p2p-dur) var(--p2p-ease); }
:is(#main, html) a.p2p-card:hover, :is(#main, html) .p2p-card:focus-within { border-color: rgba(0, 206, 209, .5); transform: translateY(-2px); }
:is(#main, html) .p2p-card__media { margin: 0; position: relative; } :is(#main, html) .p2p-card__media img { display: block; width: 100%; aspect-ratio: var(--p2p-ratio-card); object-fit: cover; }
:is(#main, html) .p2p-card__body { display: grid; gap: var(--p2p-s-2); align-content: start; padding: var(--p2p-s-4) var(--p2p-s-4) var(--p2p-s-5); }
:is(#main, html) .p2p-card__kicker { margin: 0; font: 700 .7rem/1.3 var(--p2p-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--p2p-teal-soft); }
:is(#main, html) .p2p-card__title { margin: 0; font: 700 1.05rem/1.3 var(--p2p-font-head); color: var(--p2p-text); }
:is(#main, html) .p2p-card__text { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--p2p-support); }
@media (prefers-reduced-motion: reduce) { :is(#main, html) .p2p-card, :is(#main, html) a.p2p-card:hover { transition: none; transform: none; } }

/* ---------- statistic (a figure, its unit, what it measures and its source; no box needed) ---------- */
:is(#main, html) .p2p-stat { display: grid; gap: var(--p2p-s-1); padding-top: var(--p2p-s-3); border-top: 2px solid var(--p2p-teal); }
:is(#main, html) .p2p-stat__value { margin: 0; font: 700 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--p2p-font-head); font-variant-numeric: tabular-nums; color: var(--p2p-text); letter-spacing: -.02em; }
:is(#main, html) .p2p-stat__unit { font-size: .45em; font-weight: 600; color: var(--p2p-teal-soft); margin-left: .15em; }
:is(#main, html) .p2p-stat__label { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--p2p-support); }
:is(#main, html) .p2p-stat__source { margin: 0; font-size: .75rem; color: var(--p2p-muted); }

/* ---------- forecast carousel (scroll-snap track, arrow buttons, cards from .p2p-card) ---------- */
:is(#main, html) .p2p-carousel { position: relative; }
:is(#main, html) .p2p-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--p2p-s-4)) / 3); gap: var(--p2p-s-4); margin: 0; padding: var(--p2p-s-1) 0 var(--p2p-s-3); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #3B5368 transparent; }
:is(#main, html) .p2p-carousel__track > * { scroll-snap-align: start; min-width: 0; }
@media (max-width: 64rem) { :is(#main, html) .p2p-carousel__track { grid-auto-columns: calc((100% - var(--p2p-s-4)) / 2); } }
@media (max-width: 40rem) { :is(#main, html) .p2p-carousel__track { grid-auto-columns: 86%; } }
:is(#main, html) .p2p-carousel__nav { display: flex; gap: var(--p2p-s-2); justify-content: flex-end; }
:is(#main, html) .p2p-carousel__arrow { width: 2.75rem; height: 2.75rem; border-radius: var(--p2p-r-pill); border: 1.5px solid var(--p2p-line-strong); background: transparent; color: var(--p2p-text); cursor: pointer; font: 700 1rem/1 var(--p2p-font-head); }
:is(#main, html) .p2p-carousel__arrow:hover { border-color: var(--p2p-teal); }

/* ---------- application launcher (Intelligence Studio is the reference) ---------- */
:is(#main, html) .p2p-launcher { display: grid; gap: var(--p2p-s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.25rem), 1fr)); margin: 0; padding: 0; list-style: none; }
:is(#main, html) .p2p-app { --cat: var(--p2p-teal); display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--p2p-s-3); align-items: center; height: 100%; box-sizing: border-box; padding: .65rem .75rem; border-radius: var(--p2p-r-s);
  background: var(--p2p-elevated), var(--p2p-surface-1); border: 1px solid var(--p2p-line); box-shadow: var(--p2p-shadow-1); color: var(--p2p-text); text-decoration: none;
  transition: border-color var(--p2p-dur), transform var(--p2p-dur) var(--p2p-ease), box-shadow var(--p2p-dur); }
:is(#main, html) .p2p-app:hover, :is(#main, html) .p2p-app:focus-visible { border-color: var(--cat); transform: translateY(-2px); box-shadow: var(--p2p-shadow-1), 0 0 22px -8px var(--cat); }
:is(#main, html) .p2p-app__icon { box-sizing: border-box; width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: var(--p2p-r-s); color: var(--cat); background: rgba(0, 206, 209, .1); box-shadow: 0 0 0 1px rgba(0, 206, 209, .25) inset; }
:is(#main, html) .p2p-app__name { display: block; font: 650 .93rem/1.25 var(--p2p-font-head); } :is(#main, html) .p2p-app__desc { display: block; font-size: .78rem; line-height: 1.35; color: var(--p2p-support); }
@media (prefers-reduced-motion: reduce) { :is(#main, html) .p2p-app, :is(#main, html) .p2p-app:hover { transition: none; transform: none; } }

/* ---------- interactive workspace (map or calculator with a control rail) ---------- */
:is(#main, html) .p2p-workspace { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); min-height: 28rem; }
:is(#main, html) .p2p-workspace__rail { display: grid; align-content: start; gap: var(--p2p-s-4); padding: var(--p2p-s-5); border-right: 1px solid var(--p2p-line); background: var(--p2p-canvas-2); }
:is(#main, html) .p2p-workspace__stage { position: relative; min-width: 0; background: var(--p2p-canvas); }
@media (max-width: 52rem) { :is(#main, html) .p2p-workspace { grid-template-columns: minmax(0, 1fr); } :is(#main, html) .p2p-workspace__rail { border-right: 0; border-bottom: 1px solid var(--p2p-line); } }
/* Studio tool frame (Drought D2, founder review 27 Nov 2026): the Drought Explorer container adopted as the reference for every
   interactive tool. A near-black frame with a thin accent border and a faint glow in the tool's colour (--tool-accent, a palette
   token), a header (icon, kicker, title, one action), optional steps, then the workspace rail and stage. Steps are optional and
   numbering is optional (.p2p-steps--plain): use them only when the order matters. */
:is(#main, html) .p2p-tool { --tool-accent: var(--p2p-teal); overflow: hidden; border-radius: var(--p2p-r-l); background: var(--p2p-canvas-2); border: 1px solid color-mix(in srgb, var(--tool-accent) 40%, transparent); box-shadow: var(--p2p-shadow-2), 0 0 40px -18px var(--tool-accent); }
:is(#main, html) .p2p-tool__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--p2p-s-3); align-items: center; padding: var(--p2p-s-3) var(--p2p-s-4); background: linear-gradient(180deg, color-mix(in srgb, var(--tool-accent) 12%, var(--p2p-canvas)), var(--p2p-canvas)); border-bottom: 1px solid var(--p2p-line); }
:is(#main, html) .p2p-tool__icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--p2p-r-m); background: color-mix(in srgb, var(--tool-accent) 16%, var(--p2p-canvas-2)); box-shadow: 0 0 16px -6px var(--tool-accent); color: var(--tool-accent); }
:is(#main, html) .p2p-tool__kicker { margin: 0; font: 700 var(--p2p-fs-xs)/1.2 var(--p2p-font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--tool-accent); }
:is(#main, html) .p2p-tool__title { margin: .1rem 0 0; font: 700 var(--p2p-fs-l)/1.2 var(--p2p-font-head); color: var(--p2p-text); }
:is(#main, html) .p2p-steps { max-width: none; display: flex; gap: var(--p2p-s-1); margin: 0; padding: var(--p2p-s-2) var(--p2p-s-4); list-style: none; overflow-x: auto; background: var(--p2p-canvas); border-bottom: 1px solid var(--p2p-line); counter-reset: p2p-step; }
:is(#main, html) .p2p-steps li { flex: none; display: inline-flex; align-items: center; gap: var(--p2p-s-2); min-height: 2.25rem; margin: 0; padding: 0 var(--p2p-s-3) 0 var(--p2p-s-1); border-radius: var(--p2p-r-pill); border: 1px solid transparent; font: 600 var(--p2p-fs-s) var(--p2p-font-head); color: var(--p2p-support); counter-increment: p2p-step; }
:is(#main, html) .p2p-steps li::before { content: counter(p2p-step); display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid var(--p2p-line-strong); font-size: var(--p2p-fs-xs); }
:is(#main, html) .p2p-steps--plain li::before { content: none; display: none; }
:is(#main, html) .p2p-steps--plain li { padding-inline: var(--p2p-s-3); }
:is(#main, html) .p2p-steps [aria-current=step] { color: var(--p2p-text); border-color: var(--p2p-k-info-line); background: var(--p2p-k-info-bg); }
:is(#main, html) .p2p-steps [aria-current=step]::before { background: var(--p2p-teal); border-color: var(--p2p-teal); color: var(--p2p-canvas); }
:is(#main, html) .p2p-tool .p2p-workspace { min-height: 20rem; }
:is(#main, html) .p2p-tool__icon svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 34rem) { :is(#main, html) .p2p-tool__head { grid-template-columns: auto minmax(0, 1fr); } :is(#main, html) .p2p-tool__head > :nth-child(3) { grid-column: 1 / -1; justify-self: start; } }
:is(#main, html) .p2p-tool__add { width: 100%; min-height: 2.4rem; border-radius: var(--p2p-r-m); border: 1px dashed color-mix(in srgb, var(--p2p-teal) 55%, transparent); background: transparent; color: var(--p2p-text); font: 600 var(--p2p-fs-s) var(--p2p-font-head); cursor: pointer; }

/* ---------- segmented control (filters and layer switches; replaces decorative pills) ---------- */
:is(#main, html) .p2p-segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--p2p-r-pill); background: var(--p2p-canvas-2); border: 1px solid var(--p2p-line); }
:is(#main, html) .p2p-segmented button { min-height: 2.25rem; padding: 0 .9rem; border: 0; border-radius: var(--p2p-r-pill); background: transparent; color: var(--p2p-support); font: 600 .85rem/1 var(--p2p-font-head); cursor: pointer; }
:is(#main, html) .p2p-segmented button[aria-pressed="true"], :is(#main, html) .p2p-segmented button[aria-selected="true"] { background: var(--p2p-surface-3); color: var(--p2p-text); box-shadow: inset 0 0 0 1px rgba(0, 206, 209, .45); }

/* ---------- chart (figure, plot, legend, source line) ---------- */
:is(#main, html) .p2p-chart { margin: 0; display: grid; gap: var(--p2p-s-3); }
:is(#main, html) .p2p-chart__plot { position: relative; min-height: 12rem; } :is(#main, html) .p2p-chart__plot svg { display: block; width: 100%; height: auto; }
:is(#main, html) .p2p-chart svg text { font-family: var(--p2p-font-body); fill: var(--p2p-support); font-size: 12px; }
:is(#main, html) .p2p-legend { display: flex; flex-wrap: wrap; gap: var(--p2p-s-2) var(--p2p-s-4); margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--p2p-support); }
:is(#main, html) .p2p-legend__key { display: inline-block; width: .8rem; height: .8rem; margin-right: .4rem; border-radius: 2px; vertical-align: -.1em; background: var(--key, var(--p2p-sci-observed)); }
:is(#main, html) .p2p-chart figcaption { font-size: .78rem; line-height: 1.45; color: var(--p2p-muted); }

/* ---------- methodology disclosure (native details; never CSS-hidden content) ---------- */
:is(#main, html) .p2p-disclosure { border-top: 1px solid var(--p2p-line); border-bottom: 1px solid var(--p2p-line); }
:is(#main, html) .p2p-disclosure + .p2p-disclosure { border-top: 0; }
:is(#main, html) .p2p-disclosure > summary { display: flex; align-items: center; gap: var(--p2p-s-3); min-height: 3rem; cursor: pointer; list-style: none; font: 650 .95rem/1.3 var(--p2p-font-head); color: var(--p2p-text); }
:is(#main, html) .p2p-disclosure > summary::-webkit-details-marker { display: none; }
:is(#main, html) .p2p-disclosure > summary::before { content: ""; width: .45rem; height: .45rem; border-right: 2px solid var(--p2p-teal-soft); border-bottom: 2px solid var(--p2p-teal-soft); transform: rotate(-45deg); transition: transform var(--p2p-dur); flex: none; }
:is(#main, html) .p2p-disclosure[open] > summary::before { transform: rotate(45deg); }
:is(#main, html) .p2p-disclosure > :not(summary) { max-width: var(--p2p-w-text); color: var(--p2p-support); }
:is(#main, html) .p2p-disclosure > :last-child:not(summary) { margin-bottom: var(--p2p-s-4); }

/* ---------- call to action (one line, one primary action; never stacked with a second CTA) ---------- */
:is(#main, html) .p2p-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--p2p-s-4); padding-block: var(--p2p-s-6); border-top: 1px solid var(--p2p-line); }
:is(#main, html) .p2p-cta__text { margin: 0; max-width: var(--p2p-w-text); font: 650 var(--p2p-fs-xl)/1.3 var(--p2p-font-head); }

/* ---------- loading, empty and error states ---------- */
:is(#main, html) .p2p-state { display: grid; justify-items: start; gap: var(--p2p-s-2); padding: var(--p2p-s-5); border-radius: var(--p2p-r-m); border: 1px dashed var(--p2p-line-strong); color: var(--p2p-support); font-size: .92rem; }
:is(#main, html) .p2p-state__title { margin: 0; font: 650 1rem/1.3 var(--p2p-font-head); color: var(--p2p-text); }
:is(#main, html) .p2p-state--error { border-style: solid; border-color: rgba(255, 138, 128, .5); } :is(#main, html) .p2p-state--error .p2p-state__title { color: var(--p2p-danger); }
:is(#main, html) .p2p-state--loading .p2p-state__title::before { content: ""; display: inline-block; width: .9rem; height: .9rem; margin-right: .5rem; vertical-align: -.1em; border-radius: 50%; border: 2px solid var(--p2p-line-strong); border-top-color: var(--p2p-teal); animation: p2p-spin 1s linear infinite; }
@keyframes p2p-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { :is(#main, html) .p2p-state--loading .p2p-state__title::before { animation: none; } }

/* ---------- evidence label (text, never colour alone) ---------- */
:is(#main, html) .p2p-label { display: inline-block; font: 700 .68rem/1.3 var(--p2p-font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--p2p-support); }
:is(#main, html) .p2p-label[data-kind="observed"] { color: var(--p2p-sci-observed); } :is(#main, html) .p2p-label[data-kind="forecast"] { color: var(--p2p-sci-forecast); }
:is(#main, html) .p2p-label[data-kind="simulation"], :is(#main, html) .p2p-label[data-kind="modelled"] { color: var(--p2p-sci-modelled); } :is(#main, html) .p2p-label[data-kind="projection"] { color: var(--p2p-sci-projected); }
:is(#main, html) .p2p-label[data-kind="historical"] { color: var(--p2p-gold); }

/* ---------- cinematic media player (A§8): film frame, poster, one set of controls, kind label, credit, transcript ---------- */
:is(#main, html) .p2p-film { position: relative; margin: 0; display: grid; gap: var(--p2p-s-2); color: var(--p2p-text); }
:is(#main, html) .p2p-film__frame { position: relative; overflow: hidden; border-radius: var(--p2p-r-m); background: #000; aspect-ratio: var(--p2p-ratio-film); }
:is(#main, html) .p2p-film--wide .p2p-film__frame { aspect-ratio: var(--p2p-ratio-wide); }
:is(#main, html) .p2p-film--bleed .p2p-film__frame { border-radius: 0; }
:is(#main, html) .p2p-film__frame :is(video, img) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
:is(#main, html) .p2p-film__kind { position: absolute; left: var(--p2p-s-3); top: var(--p2p-s-3); z-index: 2; padding: .2rem .5rem; border-radius: 6px; background: rgba(5, 8, 14, .72); font: 700 .66rem/1.3 var(--p2p-font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--p2p-text); }
:is(#main, html) .p2p-film__play { position: absolute; left: var(--p2p-s-3); bottom: var(--p2p-s-3); z-index: 2; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 1rem 0 .8rem; border: 1px solid rgba(241, 245, 249, .4);
  border-radius: var(--p2p-r-pill); background: rgba(5, 8, 14, .66); color: var(--p2p-text); font: 700 .85rem/1 var(--p2p-font-head); cursor: pointer; backdrop-filter: blur(6px); }
:is(#main, html) .p2p-film__play:hover { border-color: var(--p2p-teal); } :is(#main, html) .p2p-film__play:focus-visible { outline: 3px solid var(--p2p-gold); outline-offset: 2px; }
:is(#main, html) .p2p-film__play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: .4rem 0 .4rem .65rem; border-color: transparent transparent transparent currentColor; }
:is(#main, html) .p2p-film.is-playing .p2p-film__play::before { width: .6rem; height: .75rem; border: 0; border-left: .2rem solid currentColor; border-right: .2rem solid currentColor; box-sizing: border-box; }
/* founder 27 Nov 2026 (R22 draft review): one quiet caption line, aligned to the content column. The kind is a small-caps tag, the
   credit and Source are inline, and "About this film" sits at the end of the same line; opened, the description drops below it. */
:is(#main, html) .p2p-film__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; margin: 0; text-align: left;
  font: 400 .76rem/1.5 var(--p2p-font-body); color: var(--p2p-support); }
:is(#main, html) .p2p-film__credit { min-width: 0; }
:is(#main, html) .p2p-film__caption b { color: var(--p2p-text); font-weight: 600; }
:is(#main, html) .p2p-film__class { margin-right: .35rem; font: 600 .8rem/1 var(--p2p-font-body); font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--p2p-text); }
:is(#main, html) .p2p-film__transcript { flex: 0 0 auto; margin: 0; padding: 0; border: 0; background: none; }
:is(#main, html) .p2p-film__transcript[open] { flex-basis: 100%; }
:is(#main, html) .p2p-film__transcript > summary { display: inline-flex; align-items: center; gap: .3rem; min-height: 1.5rem; cursor: pointer; list-style: none;
  font: 500 .76rem/1.5 var(--p2p-font-body); color: var(--p2p-teal-soft); }
:is(#main, html) .p2p-film__transcript > summary::-webkit-details-marker { display: none; }
:is(#main, html) .p2p-film__transcript > summary::before { content: ""; width: 0; height: 0; border-style: solid; border-width: .26rem 0 .26rem .38rem; border-color: transparent transparent transparent currentColor; transition: transform .15s; }
:is(#main, html) .p2p-film__transcript[open] > summary::before { transform: rotate(90deg); }
:is(#main, html) .p2p-film__transcript > summary:focus-visible { outline: 3px solid var(--p2p-gold); outline-offset: 2px; }
:is(#main, html) .p2p-film__transcript p { margin: .3rem 0 0; font-size: .82rem; color: var(--p2p-support); max-width: var(--p2p-w-text); }

/* ---------- film library (Learn) ---------- */
:is(#main, html) .p2p-films { display: grid; gap: var(--p2p-s-6) var(--p2p-s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); margin: 0; padding: 0; list-style: none; }
:is(#main, html) .p2p-films .p2p-film__title { margin: var(--p2p-s-2) 0 0; font: 700 1.05rem/1.3 var(--p2p-font-head); }
/* ---------- discovery gateways (founder design concepts item 1): question-led, open photographic layout, no boxes ---------- */
:is(#main, html) .p2p-gateways-sec { padding-block: var(--p2p-s-7); }
:is(#main, html) .p2p-gateways-sec .lx-num { color: var(--p2p-teal-soft) !important; }
:is(#main, html) .p2p-gateways { list-style: none; margin: var(--p2p-s-5) 0 0; padding: 0; max-width: none; display: grid; gap: var(--p2p-s-7) var(--p2p-s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
:is(#main, html) .p2p-gateways > li { margin: 0; max-width: none; }
:is(#main, html) .p2p-gateway > a { display: grid; gap: var(--p2p-s-2); color: inherit; text-decoration: none; }
:is(#main, html) .p2p-gateway__fig { margin: 0 0 var(--p2p-s-2); display: grid; gap: var(--p2p-s-1); }
:is(#main, html) .p2p-gateway__fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--p2p-r-m); transition: filter .2s ease; }
:is(#main, html) .p2p-gateway__credit { font-size: .72rem; color: var(--p2p-muted); }
:is(#main, html) .p2p-gateway__q { margin: 0; font: 600 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--p2p-font-head); letter-spacing: -.01em; color: var(--p2p-text); }
:is(#main, html) .p2p-gateway__line { margin: 0; max-width: 34rem; color: var(--p2p-support); }
:is(#main, html) .p2p-gateway__go { font: 600 .92rem/1.4 var(--p2p-font-head); color: var(--p2p-teal-soft); }
:is(#main, html) .p2p-gateway__go::after { content: " \2192"; }
:is(#main, html) .p2p-gateway > a:hover img, :is(#main, html) .p2p-gateway > a:focus-visible img { filter: brightness(1.12); }
:is(#main, html) .p2p-gateway > a:hover .p2p-gateway__q, :is(#main, html) .p2p-gateway > a:focus-visible .p2p-gateway__q { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:is(#main, html) .p2p-gateway > a:focus-visible { outline: 2px solid var(--p2p-teal); outline-offset: 6px; border-radius: var(--p2p-r-m); }
@media (prefers-reduced-motion: reduce) { :is(#main, html) .p2p-gateway__fig img { transition: none; } }
/* ---------- compact Planetary Observer preview (homepage, Release 21; markup from scripts/design/build-observer.mjs): open rows, no boxes ---------- */
:is(#main, html) .obs-prev { box-sizing: border-box; width: 100%; max-width: calc(var(--p2p-w-page) + 2 * var(--p2p-gutter)); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--p2p-gutter); position: relative; z-index: 1; }
:is(#main, html) .obs-prev-k { margin: 0 0 var(--p2p-s-2); font: 700 .74rem/1.2 var(--p2p-font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--p2p-teal-soft); }
:is(#main, html) .obs-prev h2 { margin: 0 0 var(--p2p-s-5); font: 600 clamp(1.7rem, 3vw, 2.5rem)/1.12 var(--p2p-font-head); letter-spacing: -.015em; color: var(--p2p-text); max-width: 40rem; }
:is(#main, html) .obs-prev-list { list-style: none; margin: 0; padding: 0; max-width: none; border-top: 1px solid var(--p2p-line); }
:is(#main, html) .obs-prev-list > li { margin: 0; max-width: none; border-bottom: 1px solid var(--p2p-line); }
:is(#main, html) .obs-prev-list a { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr) auto; gap: var(--p2p-s-2) var(--p2p-s-5); align-items: baseline; padding: .85rem 0; color: var(--p2p-support); text-decoration: none; min-height: 24px; }
:is(#main, html) .obs-prev-list a > span { font: 600 1rem/1.35 var(--p2p-font-head); color: var(--p2p-text); }
:is(#main, html) .obs-prev-list a::after { content: "\2192"; color: var(--p2p-teal-soft); }
:is(#main, html) .obs-prev-list a:hover > span, :is(#main, html) .obs-prev-list a:focus-visible > span { color: var(--p2p-teal-soft); }
:is(#main, html) .obs-prev-go { display: inline-block; margin-top: var(--p2p-s-5); font: 600 1rem/1.4 var(--p2p-font-head); color: var(--p2p-teal-soft); text-decoration: none; }
:is(#main, html) .obs-prev-go::after { content: " \2192"; }
:is(#main, html) .obs-prev-go:hover, :is(#main, html) .obs-prev-go:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 47.99rem) { :is(#main, html) .obs-prev-list a { grid-template-columns: minmax(0, 1fr) auto; } :is(#main, html) .obs-prev-list a > span { grid-column: 1; } }
/* ---------- cinematic chapter (directive A, 26 Nov 2026): one concept, one line, one link, then the film; no card, no box ---------- */
:is(#main, html) .p2p-chapter { padding-block: clamp(1.5rem, 4.5vw, 3.5rem); background: transparent; }
:is(#main, html) .p2p-chapter > .p2p-wrap { display: grid; gap: clamp(1rem, 3vw, 3rem); align-items: center; }
@media (min-width: 64rem) { :is(#main, html) .p2p-chapter > .p2p-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  :is(#main, html) .p2p-chapter--flip > .p2p-wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } :is(#main, html) .p2p-chapter--flip > .p2p-wrap > .p2p-chapter__text { order: 2; } }
:is(#main, html) .p2p-chapter__text { display: grid; gap: var(--p2p-s-3); max-width: 40rem; }
:is(#main, html) .p2p-chapter__h { margin: 0; font: 600 clamp(1.9rem, 3.4vw, 3rem)/1.08 var(--p2p-font-head); letter-spacing: -.02em; color: var(--p2p-text); }
:is(#main, html) .p2p-chapter__line { margin: 0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: var(--p2p-support); max-width: 36rem; }
:is(#main, html) .p2p-chapter__line + .p2p-chapter__line { margin-top: .85rem; }   /* chapters may carry two short paragraphs (founder 26 Nov 2026) */
:is(#main, html) .p2p-chapter__go { justify-self: start; font: 600 1rem/1.4 var(--p2p-font-head); color: var(--p2p-teal-soft); text-decoration: none; min-height: 24px; }
:is(#main, html) .p2p-chapter__go::after { content: " \2192"; }
:is(#main, html) .p2p-chapter__go:hover, :is(#main, html) .p2p-chapter__go:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
:is(#main, html) .p2p-chapter .p2p-film--wide .p2p-film__frame { aspect-ratio: var(--p2p-ratio-film); }   /* beside the text the 16:9 frame reads best; 21:9 stays for full-bleed bands */
:is(#main, html) .p2p-film-band { box-sizing: border-box; width: 100%; max-width: calc(var(--p2p-w-page) + 2 * var(--p2p-gutter)); margin: var(--p2p-s-6) auto; padding-inline: var(--p2p-gutter); }
:is(#main, html) .p2p-film-band--inline { max-width: none; padding-inline: 0; }
:is(#main, html) .p2p-film-lib { padding-block: var(--p2p-s-7, 3rem); }
:is(#main, html) .p2p-film-lib__lede { margin: 0 0 var(--p2p-s-5); max-width: var(--p2p-w-text); color: var(--p2p-support); }
:is(#main, html) .p2p-film__caption a { color: var(--p2p-teal-soft); }
:is(#main, html) .p2p-film-lib .lx-num { color: var(--p2p-teal-soft) !important; }

/* ---------- media credit (Release 22.1; founder 27 Nov 2026, "Attribution presentation"): one small muted line at the foot of the
   media (kind, the credits a licence requires, "Image credits"), and a compact dark popover with provenance, full credits, licences
   and modification statements (/assets/js/p2p-credit.js: Escape, close button or a click outside closes it; focus returns). ---------- */
:is(#main, html) .p2p-credit-host { position: relative; }
:is(#main, html) .p2p-credit { margin: var(--p2p-s-2) 0 0; font: 400 .78rem/1.5 var(--p2p-font-body); color: var(--p2p-support); text-align: left; }
:is(#main, html) .p2p-credit a { color: var(--p2p-text); text-decoration: underline; text-decoration-color: var(--p2p-line-strong); text-underline-offset: 2px; }
:is(#main, html) .p2p-credit a:hover { text-decoration-color: currentColor; }
:is(#main, html) .p2p-credit button[aria-haspopup="dialog"] { display: inline; min-height: 24px; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--p2p-teal-soft); text-decoration: underline; text-decoration-color: rgba(127, 230, 232, .45); text-underline-offset: 2px; cursor: pointer; }
:is(#main, html) .p2p-credit button[aria-haspopup="dialog"]:hover { text-decoration-color: currentColor; }
:is(#main, html) .p2p-credit :is(a, button):focus-visible { outline: 3px solid var(--p2p-gold); outline-offset: 2px; border-radius: 2px; }
/* on the media itself: bottom right, on a dark scrim so the line reads at 4.5:1 over any part of the image */
:is(#main, html) .p2p-credit--on-media { position: absolute; z-index: 3; right: var(--p2p-s-3); bottom: var(--p2p-s-3); max-width: calc(100% - 2 * var(--p2p-s-3)); margin: 0; padding: .25rem .6rem; border-radius: 6px; background: rgba(5, 8, 14, .8); color: var(--p2p-text); text-align: right; }
:is(#main, html) .p2p-credit__pop { position: absolute; z-index: 30; right: var(--p2p-s-3); bottom: 3rem; box-sizing: border-box; width: min(27rem, calc(100% - 2 * var(--p2p-s-3))); max-height: min(30rem, 70vh); overflow: auto; overscroll-behavior: contain;
  padding: var(--p2p-s-3) var(--p2p-s-4) var(--p2p-s-4); border: 1px solid var(--p2p-line-strong); border-radius: var(--p2p-r-s); background: var(--p2p-panel); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9);
  font: 400 .84rem/1.5 var(--p2p-font-body); color: var(--p2p-text); text-align: left; }
:is(#main, html) .p2p-credit__pop[hidden] { display: none; }
:is(#main, html) .p2p-credit__pop:focus { outline: none; } :is(#main, html) .p2p-credit__pop:focus-visible { outline: 3px solid var(--p2p-gold); outline-offset: 2px; }
:is(#main, html) .p2p-credit__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--p2p-s-3); margin: 0 0 var(--p2p-s-2); }
:is(#main, html) .p2p-credit__pop h2 { margin: 0; font: 700 .95rem/1.3 var(--p2p-font-head); letter-spacing: 0; color: var(--p2p-text); }
:is(#main, html) .p2p-credit__close { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; margin: 0 calc(-1 * var(--p2p-s-2)) 0 0; padding: 0; border: 0; border-radius: 6px; background: none; font: 400 1.3rem/1 var(--p2p-font-head); color: var(--p2p-support); cursor: pointer; }
:is(#main, html) .p2p-credit__close:hover { color: var(--p2p-text); background: rgba(170, 191, 206, .12); }
:is(#main, html) .p2p-credit__close:focus-visible { outline: 3px solid var(--p2p-gold); outline-offset: 1px; }
:is(#main, html) .p2p-credit__pop :is(p, ul) { margin: 0 0 var(--p2p-s-2); max-width: none; color: var(--p2p-support); font-size: .84rem; }
:is(#main, html) .p2p-credit__pop ul { padding-left: 1.1rem; } :is(#main, html) .p2p-credit__pop li { margin: 0 0 .3rem; max-width: none; font-size: .84rem; line-height: 1.5; color: var(--p2p-support); }
:is(#main, html) .p2p-credit__pop > :last-child { margin-bottom: 0; }
:is(#main, html) .p2p-credit__pop a { display: inline; color: var(--p2p-teal-soft); }
@media (max-width: 47.99rem) {
  :is(#main, html) .p2p-credit { font-size: .75rem; }
  /* on phones the line leaves the image and sits just below it, so it never covers the picture */
  :is(#main, html) .p2p-credit--on-media { position: static; max-width: none; padding: var(--p2p-s-2) var(--p2p-m-gutter, 1rem) 0; border-radius: 0; background: none; color: var(--p2p-support); text-align: left; }
  /* on phones the popover is a small sheet above the bottom of the screen */
  :is(#main, html) .p2p-credit__pop { position: fixed; left: var(--p2p-m-gutter, 1rem); right: var(--p2p-m-gutter, 1rem); bottom: var(--p2p-m-gutter, 1rem); width: auto; max-height: 70vh; }
}

/* ---------- CSP-safe helpers (the CSP blocks style attributes; these replace the ones scripts used to write) ---------- */
.p2p-mt-3 { margin-top: var(--p2p-s-3); } .p2p-mt-4 { margin-top: var(--p2p-s-4); } .p2p-mt-5 { margin-top: 1.25rem; }
.p2p-mb-2 { margin-bottom: var(--p2p-s-2); } .p2p-mb-4 { margin-bottom: var(--p2p-s-4); } .p2p-ink { color: var(--p2p-text); }
figure.fe-mapwrap { margin: 0; }
/* the Check a Building ring reveal: 45 ms apart, capped at 900 ms (ring.js) */
.ring-d-1 { transition-delay: 45ms; } .ring-d-2 { transition-delay: 90ms; } .ring-d-3 { transition-delay: 135ms; } .ring-d-4 { transition-delay: 180ms; } .ring-d-5 { transition-delay: 225ms; }
.ring-d-6 { transition-delay: 270ms; } .ring-d-7 { transition-delay: 315ms; } .ring-d-8 { transition-delay: 360ms; } .ring-d-9 { transition-delay: 405ms; } .ring-d-10 { transition-delay: 450ms; }
.ring-d-11 { transition-delay: 495ms; } .ring-d-12 { transition-delay: 540ms; } .ring-d-13 { transition-delay: 585ms; } .ring-d-14 { transition-delay: 630ms; } .ring-d-15 { transition-delay: 675ms; }
.ring-d-16 { transition-delay: 720ms; } .ring-d-17 { transition-delay: 765ms; } .ring-d-18 { transition-delay: 810ms; } .ring-d-19 { transition-delay: 855ms; } .ring-d-20 { transition-delay: 900ms; }
/* form progress bar width in 5% steps (lib/forms/formKit.js) */
.f-progress-bar > .f-pct-0 { width: 0; } .f-progress-bar > .f-pct-5 { width: 5%; } .f-progress-bar > .f-pct-10 { width: 10%; } .f-progress-bar > .f-pct-15 { width: 15%; } .f-progress-bar > .f-pct-20 { width: 20%; }
.f-progress-bar > .f-pct-25 { width: 25%; } .f-progress-bar > .f-pct-30 { width: 30%; } .f-progress-bar > .f-pct-35 { width: 35%; } .f-progress-bar > .f-pct-40 { width: 40%; } .f-progress-bar > .f-pct-45 { width: 45%; }
.f-progress-bar > .f-pct-50 { width: 50%; } .f-progress-bar > .f-pct-55 { width: 55%; } .f-progress-bar > .f-pct-60 { width: 60%; } .f-progress-bar > .f-pct-65 { width: 65%; } .f-progress-bar > .f-pct-70 { width: 70%; }
.f-progress-bar > .f-pct-75 { width: 75%; } .f-progress-bar > .f-pct-80 { width: 80%; } .f-progress-bar > .f-pct-85 { width: 85%; } .f-progress-bar > .f-pct-90 { width: 90%; } .f-progress-bar > .f-pct-95 { width: 95%; }
.f-progress-bar > .f-pct-100 { width: 100%; }

/* ---------- legacy button classes → the two approved buttons (design system v3) ----------
   Older pages carry ds-btn / btn / lx- / pg- / p2- button classes. They keep their markup, but every one of them now draws
   exactly as .p2p-btn--primary (teal fill) or .p2p-btn--secondary (outlined). !important is needed because the generated
   dark map (loaded just before this file) fills ghost buttons with !important. The homepage hero paths (.hx-path) are
   navigation cards, not buttons, and are left alone. design-lint lists these classes as approved (APPROVED_BUTTONS). */
html body :is(.ds-btn, .btn, .p2-btn):not(.hx-path) { border-radius: var(--p2p-r-pill); font-family: var(--p2p-font-head); font-weight: 700; }
html body :is(.ds-btn-primary, .btn-primary, .pg-btn-primary, .lx-primary, .p2-btn):not(.hx-path):not([disabled]):not([aria-disabled="true"]) {
  background: var(--p2p-teal) !important; border: 1.5px solid var(--p2p-teal) !important; color: var(--p2p-canvas) !important; }
html body :is(.ds-btn-primary, .btn-primary, .pg-btn-primary, .lx-primary, .p2-btn):not(.hx-path):not([disabled]):not([aria-disabled="true"]):hover {
  background: var(--p2p-teal-hover) !important; border-color: var(--p2p-teal-hover) !important; color: var(--p2p-canvas) !important; }
html body :is(.ds-btn-ghost, .ds-btn-light, .pg-btn-light, .pg-btn-ghost, .btn-secondary, .btn-tertiary, .lx-ghost):not(.hx-path) {
  background: transparent !important; border: 1.5px solid var(--p2p-line-strong) !important; color: var(--p2p-text) !important; }
html body :is(.ds-btn-ghost, .ds-btn-light, .pg-btn-light, .pg-btn-ghost, .btn-secondary, .btn-tertiary, .lx-ghost):not(.hx-path):hover {
  background: rgba(0, 206, 209, .08) !important; border-color: var(--p2p-teal) !important; color: var(--p2p-text) !important; }
/* one larger size, for a page's single main action */
html body :is(.p2p-btn--large, .ds-btn-lg, .btn-large) { min-height: 3.25rem; padding-inline: 1.6rem; font-size: 1rem; }

/* =====================================================================================================================
 * HOMEPAGE AND SHARED IDENTITY POLISH (lead, 26 Nov 2026 15:01, for the founder's presentation). Polish, not rebuild: the
 * approved Earth and Moon hero, its headline, copy and four calls to action are untouched (no .hx-hero rule below).
 * ===================================================================================================================== */
/* one refined, accessible focus ring everywhere (replaces the thick gold ring): 2 px soft teal, offset, high contrast on the dark palette */
html body :focus-visible { outline: 2px solid var(--p2p-teal-soft) !important; outline-offset: 3px !important; }
html body :focus:not(:focus-visible) { outline: none; }

/* necessary panels: one elevated surface (faint top-lit gradient, fine border, inner top edge, soft shadow) instead of flat grey boxes */
/* Release 21: .ob-panel left this rule (the homepage no longer carries the Observer; /observer/ styles its own panels, L3) */
html body main#main :is(.hm-alerts-inner, .p2-rgate, .p2-rbar) {
  background: var(--p2p-elevated), var(--p2p-surface-1) !important; border: 1px solid var(--p2p-line) !important; box-shadow: var(--p2p-shadow-1) !important; }
html body main#main .hm-alerts-inner { border-radius: var(--p2p-r-l) !important; }
html body main#main :is(.p2-rgate, .p2-rbar) { border-radius: var(--p2p-r-m) !important; }
html body main#main .fp .fp-photo { box-shadow: 0 24px 60px rgba(0, 0, 0, .55) !important; border-color: rgba(241, 245, 249, .10) !important; transition: border-color .2s; }
html body main#main .fp-card:hover .fp-photo { border-color: rgba(0, 206, 209, .35) !important; }
/* founder 26 Nov 08:22 MT: the gateways, the Story line and the organizations section are open compositions, not boxes */
html body main#main :is(.fp-card, .fp-story, .hm-orgs-inner) { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
html body main#main .fp-story { border-top: 1px solid var(--p2p-line) !important; padding-inline: 0 !important; }
/* statistics are an open layout on the page ground (founder 27 Nov 2026, R22 draft review): no panel, no cell boxes, no dividers */
html body main#main .why-stats { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
html body main#main .why-stats .why-stat { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
/* evidence and status labels are words, not outlined boxes or pills */
html body main#main :is(.ob-lab, .hm-badge, .p2-status) { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
html body main#main .hm-badge { font: 700 var(--p2p-fs-xs)/1.3 var(--p2p-font-head) !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--p2p-teal-soft) !important; margin: 0 0 var(--p2p-s-2) !important; }
html body main#main .p2-status { font: 700 .7rem/1.3 var(--p2p-font-head) !important; letter-spacing: .1em !important; color: var(--p2p-support) !important; }
html body main#main .p2-status.is-live { color: var(--p2p-sci-good) !important; }
/* Observer drawers: quiet disclosure rows with a fine rule, not a stack of outlined pills */
html body main#main .ob .ob-dr > summary { display: flex !important; width: 100%; box-sizing: border-box; min-height: 2.75rem; padding: 0 .25rem !important; border: 0 !important; border-bottom: 1px solid var(--p2p-line) !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--p2p-text) !important; font: 650 .92rem/1.3 var(--p2p-font-head) !important; }
html body main#main .ob .ob-dr > summary:hover { color: var(--p2p-teal-soft) !important; }
html body main#main .ob .ob-dr[open] > summary { color: var(--p2p-teal-soft) !important; }
html body main#main .ob .ob-dr > summary :is(.ob-rs, .ob-n) { white-space: normal; }
/* sections share one container edge and one rhythm; no washed-out grey grounds behind homepage sections */
html body main#main :is(.p2-sec, .fp, .wo-home, .tk) { background-color: var(--p2p-canvas) !important; }
html body main#main :is(.hm-why, .hm-alerts, .hm-orgs) { background: var(--p2p-canvas-2) !important; }

/* site-wide chrome: footer on the deep-navy ground with the transparent horizontal logo; header hairline */
html body .ds-footer { background: var(--p2p-canvas-2) !important; border-top: 1px solid var(--p2p-line) !important; }
html body .ds-footer .ds-footer-brand img { width: 11.5rem; max-width: 11.5rem; height: auto; }
html body .ds-header { border-bottom: 1px solid var(--p2p-line); }
html body .ds-footer :is(.ds-footer-cols a, .ds-footer-base a):hover { color: var(--p2p-teal-soft); }

/* phones: designed, not squeezed: section rhythm, full-width actions, readable fine print */
@media (max-width: 47.5rem) {
  html body main#main :is(.p2-sec, .fp, .wo-home, .hm-why, .hm-alerts, .hm-orgs) { padding-block: 2.25rem !important; }
  html body main#main .hm-alerts-inner { padding: 1.25rem !important; }
  html body main#main :is(.fp-card, .hm-orgs-inner) { padding: 0 !important; }
  html body main#main :is(.hm-alerts-inner, .hm-orgs-inner) .p2-btn, html body main#main .why-foot .p2-btn { width: 100%; justify-content: center; box-sizing: border-box; }
  html body main#main .why-stats .why-stat + .why-stat { border-left: 0 !important; }
  html body .ds-footer .ds-footer-brand img { width: 10rem; }
}
html body main#main .ob .ob-dr > summary { flex-wrap: wrap; white-space: normal; row-gap: .15rem; }
html body main#main .ob summary .ob-rs, html body main#main .ob details[open] > summary .ob-rs { background: transparent !important; padding: 0 !important; color: var(--p2p-warn) !important; white-space: normal; }
@media (max-width: 47.5rem) {
  html body main#main .ob .ob-dr { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  html body main#main .ob .ob-dr > summary { max-width: 100%; }
  html body main#main .ob summary .ob-rs { flex: 1 1 100%; margin-left: 1.55rem !important; }
}

/* Weather outlook on the homepage: with only two official outlooks, the heading sits beside the two cards instead of leaving the
   right half of a four-column track empty (same card size; three or more cards keep the full-width carousel) */
@media (min-width: 64rem) {
  html body main#main .wo-home:not(.wo-home--carousel):has(.wo-track > li:nth-child(2):last-child) .ds-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; align-items: center; }
  html body main#main .wo-home:not(.wo-home--carousel):has(.wo-track > li:nth-child(2):last-child) .wo-track { grid-auto-columns: calc((100% - 1rem) / 2); }
  html body main#main .wo-home:not(.wo-home--carousel):has(.wo-track > li:nth-child(2):last-child) .wo-foot { grid-column: 1 / -1; }
}
/* Observer map presets: leave room for the Expand button on phones */
@media (max-width: 47.5rem) { html body main#main .ob .ob-map .ob-views { padding-right: 3rem; } }
/* official-alerts strip: region and "All alerts" on one line, no tall empty band when coverage is unavailable */
@media (min-width: 64rem) {
  html body main#main .tk-side .tk-meta { flex-direction: row; align-items: center; gap: .75rem; }
  html body main#main .tk-stage { min-height: 3.5rem; }
}
@media (min-width: 64rem) { html body main#main .tk-side { display: flex; align-items: center; gap: .75rem; } }
/* legend keys by meaning (CSP-safe: no inline colour) */
.p2p-key-observed { --key: var(--p2p-sci-observed); } .p2p-key-forecast { --key: var(--p2p-sci-forecast); } .p2p-key-modelled { --key: var(--p2p-sci-modelled); }
.p2p-key-projected { --key: var(--p2p-sci-projected); } .p2p-key-estimated { --key: var(--p2p-sci-estimated); }
/* lists used as component grids are never held to the legacy reading measure */
:is(#main, html) :is(.p2p-grid, .p2p-launcher, .p2p-carousel__track, .p2p-legend, .p2p-films) { max-width: none; }
:is(#main, html) :is(.p2p-grid, .p2p-launcher, .p2p-carousel__track, .p2p-films) > li { margin: 0; max-width: none; }

/* ---------- QA round (lead, 26 Nov 2026 afternoon): shared fixes ---------- */
/* menu toggle: a single refined focus ring (the hover fill and the legacy ember outline doubled it on phones) */
html body .ds-header .ds-menu-toggle:focus-visible { outline: 2px solid var(--p2p-teal-soft) !important; outline-offset: 2px !important; box-shadow: none !important; }
/* the legacy orange rule under every section heading is gone site-wide (the Learn treatment: no rule) */
html body main.ici-main section h2::after, html body main.doc-page section h2::after { content: none !important; display: none !important; }
/* section labels and kickers use the Learn treatment (soft teal), not amber */
html body main :is(.pg-eyebrow, .pg-kicker, .pg-fol-n, .hero-eyebrow, .eyebrow) { color: var(--p2p-teal-soft) !important; }
/* the /method/ status grid uses the page width, not the reading measure */
html body main .mth-status { max-width: none !important; }
/* tap targets on phones: stand-alone links in lists and link rows are at least 24 px tall (WCAG 2.2 2.5.8) */
@media (max-width: 26.875rem) {
  /* text links only: card links (a class, or block content such as a picture, heading or paragraph) keep their own layout (lead, 26 Nov 2026) */
  html body main :is(li, dd) > a:only-child:not([class]):not(:has(> :is(div, figure, picture, img, svg, h2, h3, h4, p, ul, ol, dl))), html body main :is(.wo-all, .lv-research a, .st-note a) { display: inline-flex; align-items: center; min-height: 1.5rem; padding-block: .125rem; }
}

/* Earth Almanac (DI-13): the page hero faded from white to black (a literal #fff gradient start), washing out the title, lede and
   eyebrow; it now sits on the deep-navy ground like every other page hero */
html body main#main .atl-hero { background: var(--p2p-canvas-2) !important; background-image: none !important; border-bottom-color: var(--p2p-line) !important; }
html body main#main .atl-hero .pa-eyebrow { color: var(--p2p-teal-soft) !important; }
/* DI-15: counters, identifiers and data codes in IBM Plex Sans with tabular figures, not a monospace face */
html body main :is(.fs-count, .request-progress-number, code) { font-family: var(--p2p-font-body) !important; font-variant-numeric: tabular-nums; }
html body main code { font-size: .92em; color: var(--p2p-text); background: rgba(170, 191, 206, .1); padding: 0 .25em; border-radius: 4px; }
/* Learn film library: a quiet heading, films breathe on the canvas (no cards around them) */
html body main .lv-films { background: var(--p2p-canvas); border-top: 1px solid var(--p2p-line); }
html body main .lv-films .ln-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.2rem; }
html body main .lv-films h2 { margin: .2rem 0 .5rem; color: var(--p2p-text); }
html body main .lv-films .lv-films-x { margin: 0 0 var(--p2p-s-6); color: var(--p2p-support); max-width: var(--p2p-w-text); }
html body main .lv-films .lx-num { color: var(--p2p-teal-soft) !important; }
:is(#main, html) .p2p-films .p2p-film__series { margin: var(--p2p-s-2) 0 0; }
:is(#main, html) .p2p-films .p2p-film__title { margin: 0; }
/* Space Almanac: the solar-storm chapter opens its science with a real eruption (See it), at the chapter's width */
html body main .ch-vis .ch-film { margin: var(--p2p-s-5) 0 0; text-align: left; }
html body main .ch-vis .ch-film .p2p-film__caption { text-align: left; margin-top: 0; }
/* film library on phones: one swipeable row (the carousel pattern) instead of a long stack */
@media (max-width: 40rem) {
  :is(#main, html) .p2p-films { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; gap: var(--p2p-s-4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--p2p-s-3); scrollbar-width: thin; scrollbar-color: #3B5368 transparent; }
  :is(#main, html) .p2p-films > li { scroll-snap-align: start; min-width: 0; }
}
/* Earth Almanac chapters: the film sits under the lede, inside the copy column (See it, then Understand it) */
html body main .eg-copy .eg-film { margin: var(--p2p-s-4) 0 var(--p2p-s-5); }
/* DI-26 (Learn): the Library and Research sections share the page's content edge, and Research sits on the canvas, not a grey panel tone */
html body main :is(.lv-lib, .lv-research, .lv-films) .ln-wrap { max-width: calc(72rem + 2.4rem) !important; }
html body main .lv-research { background: var(--p2p-canvas-2) !important; }

/* ---------- semantic chips, swatches and status surfaces (approved palette; DI-DM-03, DI-DM-04, DI-DM-05) ---------- */
:is(#main, html) .p2p-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: var(--p2p-r-pill); border: 1px solid var(--chip-line, var(--p2p-line-strong)); background: var(--chip-bg, transparent); color: var(--chip, var(--p2p-support)); font: 650 .72rem/1.35 var(--p2p-font-head); letter-spacing: .02em; white-space: nowrap; }
:is(#main, html) .p2p-chip[data-kind="observed"] { --chip: var(--p2p-k-observed); --chip-bg: var(--p2p-k-observed-bg); --chip-line: var(--p2p-k-observed-line); }
:is(#main, html) .p2p-chip[data-kind="modelled"] { --chip: var(--p2p-k-modelled); --chip-bg: var(--p2p-k-modelled-bg); --chip-line: var(--p2p-k-modelled-line); }
:is(#main, html) .p2p-chip[data-kind="projected"] { --chip: var(--p2p-k-projected); --chip-bg: var(--p2p-k-projected-bg); --chip-line: var(--p2p-k-projected-line); }
:is(#main, html) .p2p-chip[data-kind="forecast"] { --chip: var(--p2p-k-forecast); --chip-bg: var(--p2p-k-forecast-bg); --chip-line: var(--p2p-k-forecast-line); }
:is(#main, html) .p2p-chip[data-kind="research"] { --chip: var(--p2p-k-research); --chip-bg: var(--p2p-k-research-bg); --chip-line: var(--p2p-k-research-line); }
:is(#main, html) .p2p-chip[data-kind="official"] { --chip: var(--p2p-k-official); --chip-bg: var(--p2p-k-official-bg); --chip-line: var(--p2p-k-official-line); }
:is(#main, html) .p2p-chip[data-kind="interpretation"] { --chip: var(--p2p-k-interpretation); --chip-bg: var(--p2p-k-interpretation-bg); --chip-line: var(--p2p-k-interpretation-line); }
:is(#main, html) .p2p-chip[data-kind="historical"] { --chip: var(--p2p-k-historical); --chip-bg: var(--p2p-k-historical-bg); --chip-line: var(--p2p-k-historical-line); }
:is(#main, html) .p2p-chip[data-kind="statistical"] { --chip: var(--p2p-k-statistical); --chip-bg: var(--p2p-k-statistical-bg); --chip-line: var(--p2p-k-statistical-line); }
:is(#main, html) .p2p-chip[data-kind="neutral"] { --chip: var(--p2p-k-neutral); --chip-bg: var(--p2p-k-neutral-bg); --chip-line: var(--p2p-k-neutral-line); }
:is(#main, html) .p2p-chip[data-kind="ok"] { --chip: var(--p2p-k-ok); --chip-bg: var(--p2p-k-ok-bg); --chip-line: var(--p2p-k-ok-line); }
:is(#main, html) .p2p-chip[data-kind="info"] { --chip: var(--p2p-k-info); --chip-bg: var(--p2p-k-info-bg); --chip-line: var(--p2p-k-info-line); }
:is(#main, html) .p2p-chip[data-kind="warn"] { --chip: var(--p2p-k-warn); --chip-bg: var(--p2p-k-warn-bg); --chip-line: var(--p2p-k-warn-line); }
:is(#main, html) .p2p-chip[data-kind="danger"] { --chip: var(--p2p-k-danger); --chip-bg: var(--p2p-k-danger-bg); --chip-line: var(--p2p-k-danger-line); }
:is(#main, html) .p2p-chip[data-sev="1"] { --chip: var(--p2p-sev-1); --chip-bg: var(--p2p-sev-1-bg); --chip-line: var(--p2p-sev-1-line); }
:is(#main, html) .p2p-chip[data-sev="2"] { --chip: var(--p2p-sev-2); --chip-bg: var(--p2p-sev-2-bg); --chip-line: var(--p2p-sev-2-line); }
:is(#main, html) .p2p-chip[data-sev="3"] { --chip: var(--p2p-sev-3); --chip-bg: var(--p2p-sev-3-bg); --chip-line: var(--p2p-sev-3-line); }
:is(#main, html) .p2p-chip[data-sev="4"] { --chip: var(--p2p-sev-4); --chip-bg: var(--p2p-sev-4-bg); --chip-line: var(--p2p-sev-4-line); }
:is(#main, html) .p2p-swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: -.1em; background: var(--swatch, var(--p2p-cat-1)); }
:is(#main, html) .p2p-swatch[data-cat="1"] { --swatch: var(--p2p-cat-1); }
:is(#main, html) .p2p-swatch[data-cat="2"] { --swatch: var(--p2p-cat-2); }
:is(#main, html) .p2p-swatch[data-cat="3"] { --swatch: var(--p2p-cat-3); }
:is(#main, html) .p2p-swatch[data-cat="4"] { --swatch: var(--p2p-cat-4); }
:is(#main, html) .p2p-swatch[data-cat="5"] { --swatch: var(--p2p-cat-5); }
:is(#main, html) .p2p-swatch[data-cat="6"] { --swatch: var(--p2p-cat-6); }
:is(#main, html) .p2p-swatch[data-cat="7"] { --swatch: var(--p2p-cat-7); }
:is(#main, html) .p2p-swatch[data-cat="8"] { --swatch: var(--p2p-cat-8); }
:is(#main, html) .p2p-surface--error { background: var(--p2p-k-danger-bg), var(--p2p-surface-1); border: 1px solid var(--p2p-k-danger-line); color: var(--p2p-text); border-radius: var(--p2p-r-m); }
:is(#main, html) .p2p-surface--notice { background: var(--p2p-k-info-bg), var(--p2p-surface-1); border: 1px solid var(--p2p-k-info-line); color: var(--p2p-text); border-radius: var(--p2p-r-m); }
/* DI-DM-04: light error and notice panels drawn with non-text tokens become the approved dark error/notice surfaces */
html body main#main .field-error { background: var(--p2p-k-danger-bg), var(--p2p-surface-1) !important; border-color: var(--p2p-k-danger-line) !important; color: var(--p2p-text) !important; }
html body main#main .notice-authority { background: var(--p2p-k-info-bg), var(--p2p-surface-1) !important; border-color: var(--p2p-k-info-line) !important; color: var(--p2p-text) !important; }
/* selected controls: dark ink on the teal accent, never light ink on amber or pale blue (DI-DM-05). The pages' own selected states
   that the dark map turned into light-on-amber are pointed at the approved selected look here (source-level fix, one place). */
html body main#main .ba-cat:has(input:checked), html body main#main .pv2-chip[aria-pressed="true"] { background: var(--p2p-teal) !important; border-color: var(--p2p-teal) !important; color: var(--p2p-canvas) !important; }
:is(#main, html) .p2p-selected { background: var(--p2p-teal) !important; border-color: var(--p2p-teal) !important; color: var(--p2p-canvas) !important; }

/* ---------- Mobile design standard (founder directive 27 Nov 2026, night; docs/design/MOBILE_DESIGN_STANDARD.md) ----------
   Phones are designed first, as their own layout; desktop is unchanged (every rule here sits below 48rem or is a utility
   that is inert on desktop). Tokens: one gutter, one section rhythm, fluid type that never drops body text below 16px. */
:root { --p2p-m-gutter: 1rem; --p2p-m-section-y: clamp(1.75rem, 6vw, 2.5rem); --p2p-m-gap: .75rem; --p2p-m-touch: 2.75rem; --p2p-m-touch-l: 3rem;
  --p2p-m-fs-display: clamp(2rem, 8.5vw, 2.5rem); --p2p-m-fs-h2: clamp(1.375rem, 5.6vw, 1.625rem); --p2p-m-fs-h3: 1.125rem;
  --p2p-m-fs-body: 1rem; --p2p-m-fs-lede: 1.0625rem; --p2p-m-lh-body: 1.5; --p2p-m-measure: 34rem; }
/* show-on-one-layout utilities: content stays in the DOM on both layouts */
.p2p-m-only { display: none !important; }
@media (max-width: 47.99rem) { .p2p-m-only { display: revert !important; } .p2p-d-only { display: none !important; } }
/* level-4 detail that is open on desktop and folded on phones (p2p-mobile.js closes it on narrow screens; no script = open) */
.p2p-mfold > summary { display: none; }
@media (max-width: 47.99rem) {
  .p2p-mfold > summary { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--p2p-m-touch); cursor: pointer; list-style: none;
    font: 650 .95rem/1.3 var(--p2p-font-head); color: var(--p2p-teal-soft); }
  .p2p-mfold > summary::-webkit-details-marker { display: none; }
  .p2p-mfold > summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .p2p-mfold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
  .p2p-mfold__less, .p2p-mfold[open] > summary .p2p-mfold__more { display: none; } .p2p-mfold[open] > summary .p2p-mfold__less { display: inline; }
}
/* compact pills: a single scrollable row of controls, never decoration */
@media (max-width: 47.99rem) {
  :is(#main, html) .p2p-pills { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .25rem; margin-inline: calc(-1 * var(--p2p-m-gutter)); padding-inline: var(--p2p-m-gutter); scrollbar-width: none; }
  :is(#main, html) .p2p-pills > * { flex: 0 0 auto; scroll-snap-align: start; min-height: var(--p2p-m-touch); }
  :is(#main, html) .p2p-btn, :is(#main, html) .p2p-link { min-height: var(--p2p-m-touch); }
}
/* L8 mobile audit, 27 Nov 2026: inputs below 16px make iOS zoom on focus (65 routes); links in the menu and footer are 25px
   tall. Sitewide on phones and touch screens: form text at 16px (this one rule replaces L7's per-component font sizes), and the
   header, menu and footer links reach the 44px touch target. */
@media (max-width: 47.99rem), (pointer: coarse) {
  html body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { font-size: max(16px, 1em) !important; }
}
@media (max-width: 47.99rem) {
  html body .ds-header :is(a, button), html body .ds-menu a, html body .ds-footer a { min-height: var(--p2p-m-touch); display: inline-flex; align-items: center; }
  html body .ds-footer li { margin: 0; }
}

/* ---------- Mobile design standard: shared interaction components (built by L7, 27 Nov 2026; tokens above) ----------
   ui/disclosure.js: accordions and "more" panels (content stays in the DOM). ui/map-shell.js: map controls, legend and layers as
   disclosures, bottom sheet, full screen, explicit explore mode so a map never traps page scrolling. Touch targets 44-48 px. */
:is(#main, html) .p2p-disc-btn { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-height: var(--p2p-m-touch); padding: .5rem 0; border: 0; border-bottom: 1px solid var(--p2p-line); background: none; color: var(--p2p-text); font: 600 1rem/1.3 var(--p2p-font-head); text-align: left; cursor: pointer; }
:is(#main, html) .p2p-disc-btn::after { content: "+"; flex: none; font-weight: 500; color: var(--p2p-teal-soft); }
:is(#main, html) .p2p-disc-btn[aria-expanded="true"]::after { content: "\2212"; }
:is(#main, html) .p2p-disc-btn:focus-visible { outline: 2px solid var(--p2p-teal); outline-offset: 2px; }
:is(#main, html) .p2p-disc-anim { animation: p2p-disc-in .18s ease-out; }
@keyframes p2p-disc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { :is(#main, html) .p2p-disc-anim { animation: none; } }

:is(#main, html) .ms { position: relative; }
:is(#main, html) .ms-bar { position: absolute; top: .5rem; right: .5rem; z-index: 5; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; max-width: calc(100% - 1rem); }
@media (max-width: 30rem) { :is(#main, html) .ms-bar { flex-wrap: nowrap; gap: .3rem; } :is(#main, html) .ms-btn { padding: 0 .7rem; font-size: .85rem; } }
:is(#main, html) .ms-btn { min-height: var(--p2p-m-touch); padding: 0 .9rem; border-radius: var(--p2p-r-pill, 999px); border: 1px solid var(--p2p-line-strong); background: var(--p2p-canvas-2); color: var(--p2p-text); font: 600 .9rem/1 var(--p2p-font-head); cursor: pointer; }
:is(#main, html) .ms-btn:focus-visible { outline: 2px solid var(--p2p-teal); outline-offset: 2px; }
:is(#main, html) .ms-btn[aria-pressed="true"] { border-color: var(--p2p-teal); }
:is(#main, html) .ms-btn[hidden], :is(#main, html) .ms-sheet[hidden] { display: none; }
:is(#main, html) .ms-status { position: absolute; left: .5rem; bottom: .5rem; z-index: 5; max-width: calc(100% - 1rem); margin: 0; padding: .35rem .6rem; border-radius: .5rem; background: var(--p2p-canvas-2); color: var(--p2p-text); font-size: .85rem; line-height: 1.35; }
:is(#main, html) .ms-status:empty { display: none; }
:is(#main, html) .ms--busy::after { content: ""; position: absolute; inset: 0; background: var(--p2p-canvas); opacity: .35; pointer-events: none; }
:is(#main, html) .ms--off { min-height: 8rem; }
:is(#main, html) .ms-extras { display: grid; gap: .25rem; margin-top: .5rem; }
:is(#main, html) .ms-extras .ms-disc { display: flex; justify-content: space-between; width: 100%; min-height: var(--p2p-m-touch); padding: .4rem 0; border: 0; border-bottom: 1px solid var(--p2p-line); background: none; color: var(--p2p-text); font: 600 .95rem/1.2 var(--p2p-font-head); cursor: pointer; }
:is(#main, html) .ms-extras .ms-disc::after { content: "+"; color: var(--p2p-teal-soft); }
:is(#main, html) .ms-extras .ms-disc[aria-expanded="true"]::after { content: "\2212"; }
:is(#main, html) .ms-panel { padding: .5rem 0 .75rem; }
:is(#main, html) .ms-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; max-height: 60%; overflow: auto; padding: .75rem 1rem 1rem; border-radius: 1rem 1rem 0 0; border-top: 1px solid var(--p2p-line-strong); background: var(--p2p-canvas-2); box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }
:is(#main, html) .ms-sheet-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
:is(#main, html) .ms-sheet-h { margin: 0; font: 600 1.05rem/1.3 var(--p2p-font-head); }
@media (min-width: 64rem) { :is(#main, html) .ms-sheet { left: auto; top: 3.75rem; bottom: .5rem; width: 22rem; max-height: none; border-radius: .75rem; border: 1px solid var(--p2p-line-strong); } }
:is(#main, html) .ms.ms--full { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100dvh; margin: 0; border-radius: 0; background: var(--p2p-canvas); }
html.ms-lock, html.ms-lock body { overflow: hidden; }
/* the page scrolls past a map until the visitor explores it; then the map takes every touch */
:is(#main, html) .ms:not(.ms--active) :is(canvas, .maplibregl-canvas-container, .leaflet-container) { touch-action: pan-x pan-y; }
:is(#main, html) .ms.ms--active :is(canvas, .maplibregl-canvas-container, .leaflet-container) { touch-action: none; }
/* preview page only */
:is(#main, html) .mc-page { padding-block: 1.5rem 3rem; }
:is(#main, html) .mc-map { margin-top: .75rem; border: 1px solid var(--p2p-line); border-radius: var(--p2p-r-m); overflow: hidden; }
:is(#main, html) .mc-canvas { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; } :is(#main, html) .mc-map.ms--compact .mc-canvas { height: 100%; object-fit: cover; }
:is(#main, html) .mc-pad { height: 60vh; }
/* the "Change place" chip on phones (place-picker.js floatingChange) */
.pp-float { position: fixed; right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 900; max-width: calc(100vw - 1.5rem); min-height: var(--p2p-m-touch); padding: 0 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: var(--p2p-r-pill, 999px); border: 1px solid var(--p2p-teal); background: var(--p2p-canvas-2); color: var(--p2p-text); font: 600 .95rem/1 var(--p2p-font-head); cursor: pointer; }
.pp-float[hidden] { display: none; }
.pp-float:focus-visible { outline: 2px solid var(--p2p-teal); outline-offset: 2px; }
/* compact map pattern (L8 audit: Almanac and Forecast maps took about 70% of a 390 px screen): on phones a map is at most about 45% of
   the screen, the page keeps scrolling past it, and Full screen opens the whole map */
@media (max-width: 40rem) {
  :is(#main, html) .ms.ms--compact:not(.ms--full) { height: min(45svh, 24rem); max-height: min(45svh, 24rem); }
  :is(#main, html) .ms.ms--compact:not(.ms--full) > :is(.maplibregl-map, .leaflet-container, canvas, svg) { height: 100%; }
}
/* map shell controls in a row under the map (maps with their own panels on top, such as the Almanac atlas) */
:is(#main, html) .ms-below { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem max(1rem, env(safe-area-inset-left)); }
:is(#main, html) .ms-below .ms-bar { position: static; max-width: none; justify-content: flex-start; }
:is(#main, html) .ms-below .ms-status { position: static; max-width: none; background: none; padding: 0; color: var(--p2p-support); }
:is(#main, html) .ms.ms--full .ms-below { position: absolute; left: .5rem; bottom: max(.5rem, env(safe-area-inset-bottom)); z-index: 20; padding: 0; }
/* the Almanac atlas on phones: a compact view on the page (about 55% of the screen); Full screen opens the immersive atlas */
@media (max-width: 40rem) { main#main #la.ms.ms--compact:not(.ms--full) { height: min(55svh, 32rem); min-height: 22rem; max-height: none; } }
main#main #la.ms.ms--full { height: 100dvh; }


/* ---------- Header (founder 28 Nov 2026, Release 22.2, item 11; "Development, Design and Deployment Direction" §6) ----------
   The navy header gives way to the Earth & Space ground: near-black, the approved horizontal logo (transparent PNG), white
   type, neutral dividers, a restrained teal hover and current-page mark, and the teal "Check a building" as the one primary
   action. Never a solid teal header. Links, menus, mobile behaviour and focus rings are unchanged (partials/header.html). */
html body .ds-header:has(.ds-brand-p2p) { background: rgba(5, 8, 14, .96) !important; border-bottom: 1px solid rgba(241, 245, 249, .08); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
html body .ds-header:has(.ds-brand-p2p) .ds-nav a, html body .ds-header:has(.ds-brand-p2p) .ds-nav-dd-btn { color: var(--p2p-text); background: transparent; box-shadow: none; }
html body .ds-header:has(.ds-brand-p2p) .ds-nav a:hover, html body .ds-header:has(.ds-brand-p2p) .ds-nav-dd-btn:hover { color: var(--p2p-teal-soft); background: transparent; }
html body .ds-header:has(.ds-brand-p2p) .ds-nav a[aria-current="page"] { color: var(--p2p-text); background: transparent; box-shadow: inset 0 -2px 0 var(--p2p-teal); }
html body .ds-header:has(.ds-brand-p2p) .ds-nav .ds-nav-tag { background: transparent !important; border: 1px solid rgba(0, 206, 209, .4); color: var(--p2p-teal-soft); }
html body .ds-header:has(.ds-brand-p2p) .ds-menu-toggle { background: transparent !important; border-color: rgba(241, 245, 249, .2) !important; color: var(--p2p-text); }
html body .ds-header:has(.ds-brand-p2p) .ds-menu-toggle:hover { background: rgba(241, 245, 249, .06) !important; border-color: rgba(241, 245, 249, .36) !important; }
html body .ds-header:has(.ds-brand-p2p) .ds-cta { background: var(--p2p-teal) !important; border-color: var(--p2p-teal) !important; color: var(--p2p-canvas) !important; }
html body .ds-header:has(.ds-brand-p2p) .ds-cta:hover { background: var(--p2p-teal-hover) !important; border-color: var(--p2p-teal-hover) !important; }
html body .ds-header:has(.ds-brand-p2p) .ds-cta:focus-visible { background: var(--p2p-teal) !important; border-color: var(--p2p-teal) !important; }
@media (min-width: 64rem) { html body .ds-header:has(.ds-brand-p2p) .ds-header-actions { padding-left: var(--p2p-s-4); border-left: 1px solid rgba(241, 245, 249, .12); } }
html body .ds-menu { background: #05080E !important; border-top: 1px solid rgba(241, 245, 249, .08); }
html body .ds-menu .ds-tag { background: transparent !important; border: 1px solid rgba(0, 206, 209, .4); color: var(--p2p-teal-soft); }
html body .ds-menu a.ds-dest { background: transparent; border-color: rgba(241, 245, 249, .1); }
html body .ds-menu a.ds-dest:hover, html body .ds-menu a.ds-dest:focus-visible { background: rgba(0, 206, 209, .06); border-color: var(--p2p-teal); }
html body .ds-menu a.ds-dest-primary { background: rgba(0, 206, 209, .08); border-color: rgba(0, 206, 209, .45); }
