/* ==========================================================================
   Green Iron Map — Superpower Institute design tokens
   Greyscale + accent + radius + status tokens reused verbatim from the Open
   Gas map so the two products share one visual system. Layer colours below
   are new — one CSS custom property per layer, so this stylesheet and the
   JS LAYER_DEFS below can never drift out of sync (each layer's JS config
   references var(--layer-name) rather than restating a hex value).
   ========================================================================== */
:root{
  /* Nov 2026: every colour below is a design-system primitive (website-charts
     design-system/tokens/primitives.ts: blue, amber, neutral, green, pink).
     Data colours start from the print report maps (report-maps/style.json)
     so the web map and the report read alike. Each line notes the old value. */
  --white:#FFFFFF; --lwg:#fafafa; /* DS neutral-50 — was #FAF9F6 */ --wg:#f5f5f5; /* DS neutral-100 — was #F1F0ED */ --mwg:#d4d4d4; /* DS neutral-300 — was #C6C6C6 */ --mg:#737373; /* DS neutral-500 — was #6A6A6A */ --dg:#262626; /* DS neutral-800 — was #353535 */ --black:#000000;
  --orange:#5551ff; /* DS blue-500 — was #E87809 */ --orange-dark:#2f1be6; /* DS blue-700 — was #B46813 */
  --r-sm:2px; --r-md:4px; --r-lg:6px; --r-xl:10px; --r-full:999px;
  --success:#89cca3; /* DS green-300 — was #70D26E */ --success-text:#25764d; /* DS green-600 — was #2E8F45 */ --error:#fd6c72; /* DS pink-400 — was #FA6060 */ --error-text:#e22027; /* DS pink-600 — was #D14343 */
  --amber-text:#92400e; /* DS amber-800 — was #9A6A00 */ --amber-bg:#fef3c7; /* DS amber-100 — was #FFF4D6 */

  /* Per-layer marker/legend colours. One hue family per layer, spaced across
     the wheel and checked pairwise against every other colour on this page
     (including --orange, the UI accent) before being committed — see
     PROJECT_NOTES for the numbers. Hematite deliberately sits near the UI
     orange because "rust-red ore" is worth the mnemonic; nothing else does. */
  --hematite:#b45309; /* DS amber-700 — was #A93E2D; iron ore — hematite (most Pilbara ore; mostly not DR-suitable) */
  --magnetite:#262626; /* DS neutral-800 — was neutral-600 #525252 (Nov 2026, option D: stands out in clusters); iron ore — magnetite (DR-suitable when concentrated) */
  /* Deposits a lighter shade of the same ore colours (Nov 2026, Scott), so a
     resource in the ground never reads as a mine on top of it. */
  --research:#2f1be6; /* DS blue-700 — research and training sites (Nov 2026) */
  --deposit-hematite:#f59e0b; /* DS amber-500 — hematite (and channel iron) deposits */
  --deposit-magnetite:#a3a3a3; /* DS neutral-400 — magnetite deposits */
  --deposit-magnetite-edge:#262626; /* DS neutral-800 — magnetite deposits keep an ink edge so overlapping circles stay separate (option D) */
  --plants:#be171d; /* DS pink-700 — was #7849A2; steel & iron plants (legacy placeholder layer) */
  --greeniron:#57b07d; /* DS green-400 — was #57B07D; DS Green-400 — green iron / green steel projects */
  --renewables:#338d5d; /* DS green-500 — was #327B41; renewable energy — the one layer where "green" is honest */
  /* Power stations by fuel (Nov 2026, Open Electricity layer). */
  --power-wind:#338d5d; /* DS green-500 */ --power-solar:#fbbf24; /* DS amber-400 */
  --power-battery:#5551ff; /* DS blue-500 */ --power-bio:#89cca3; /* DS green-300 */
  --power-gas:#fd6c72; /* DS pink-400 */ --power-coal:#9d171c; /* DS pink-800 */
  --hydrogen:#1e5e3f; /* DS green-700 — was #278683; hydrogen projects */
  --ports:#171717; /* DS neutral-900 — was #A88E24; ports */
  --transport:#525252; /* DS neutral-600 — was #9B3B78; rail corridors (still placeholder) */
  --transmission:#ffb0b3; /* DS pink-300 — was #6A6A6A; transmission layer's own flat fallback colour — real per-voltage colours (TRANSMISSION_VOLTAGE_COLORS) override this per line; only used if a line somehow has no kv */
  /* Mock/illustrative-data honesty tokens, copied verbatim from the TSI
     chart design system (claude_tsi-chart-design-system.md, extracted from
     wa-green-iron-charts.html) — --mock is Amber-700, dedicated entirely to
     flagging non-real/derived data, never reused for anything else. Applied
     1 Sep 2026 to the cost-breakdown chart's category bands, which are
     derived from real capital-cost proportions rather than being a directly
     sourced figure themselves (only each bar's TOTAL is directly sourced —
     see COST_STACK's own comment for the full derivation). */
  --mock:#b45309; --mock-wash:rgba(245,158,11,0.12);
  /* Enabling-infrastructure type palette (Sep 2026 symbology, channel one:
     hue names the KIND of infrastructure and never varies with status).
     Five reuse the hue of the layer the infrastructure belongs to so a
     scenario corridor matches its parent layer; two are new because the
     palette had no token for them. Transmission gets its own steel rather
     than the old flat --mg grey, which is now what "unclassified" means. */
  --infra-transmission:#fd6c72; /* DS pink-400 — was #46617A */
  --infra-pipeline:#b0b6ff; /* DS blue-300 — was #8A5A2B; NEW — 2 features, no token existed */
  --infra-rail:#525252; /* DS neutral-600 — was #9B3B78; = --transport; private (miner-owned) rail */
  --infra-rail-open:#a3a3a3; /* DS neutral-400 — was #D49BC2; open-access rail: same hue, lighter, so both still read as rail */
  --infra-rail-unknown:#d4d4d4; /* DS neutral-300 — was #B9A3B1; rail with no published owner */
  --rail-bhp:#d97706; /* DS amber-600 — BHP rail; owner colours follow report-maps/style.json railOwners */
  --rail-rio:#e22027; /* DS pink-600 — Rio Tinto rail */
  --rail-fortescue:#25764d; /* DS green-600 — Fortescue rail */
  --rail-royhill:#3e2dfa; /* DS blue-600 — Roy Hill rail (not in GA's data yet; kept so it colours if added) */
  --road-minor:#d4d4d4; /* DS neutral-300 — numbered main roads, under the highways */
  --infra-road:#a3a3a3; /* DS neutral-400 — was #8A8A85; NEW — split out from rail */
  --infra-port:#171717; /* DS neutral-900 — was #A88E24; = --ports */
  --infra-hydrogen:#1e5e3f; /* DS green-700 — was #278683; = --hydrogen */
  --infra-renewables:#338d5d; /* DS green-500 — was #327B41; = --renewables */
  --geology:#92400e; /* DS amber-800 — was #667642; geological provinces */
  --transport-tint:#f59e0b; /* DS amber-500: "transport" in story frames that colour-code the needs (Nov 2026) */
  --water:#3e2dfa; /* DS blue-600 — was #3083A6; water availability — the DATA layer, not the sea */
  /* Basemap ocean, taken from the TSI website's own blue ramp rather than a
     generic cartographic blue — blue-200 for the sea, blue-300 a step deeper
     for rivers so they read as lines against it. Positron ships
     rgb(194,200,202) here, near-neutral grey that reads as more land.

     Two collisions checked before committing: --water above (#3083A6) is the
     water-availability DATA layer and stays clearly distinct from the sea it
     sits beside, and --sw-combined (#5551FF) is blue-500 from the same ramp,
     three steps deeper, so the South West region never reads as ocean. */
  /* The two electricity networks. The SWIS/NWIS divide is this map's
     organising idea — which side of it a project sits on drives its energy
     cost — so it earns strong colour rather than a shade of grey.

     Both are new hues, checked against every other token here: pink sits
     clear of --transport (#9B3B78, rail) and --pilbara-hl (#F53E45, red),
     and violet clear of --plants (#7849A2, mauve) and --sw-combined
     (#5551FF, indigo). Worth noting the wheel is now very full — 13 data
     hues plus the UI accent — and the next addition should probably
     retire something rather than squeeze in. */
  /* Strategic Industrial Areas. Two steps of one hue rather than a new
     colour each: the core and its buffer are the same kind of thing at
     different intensities, and the wheel had no room for two more. */
  --infra-sia-core:#525252; /* DS neutral-600 — was #6E5A8C */
  --infra-sia:#d4d4d4; /* DS neutral-300 — was #B9AECB */
  --panel-w:44rem;   /* see the .panel rule */
  --swis:#ffb0b3; /* DS pink-300 — was #E0699B */
  --nwis:#ffb0b3; /* DS pink-300 — was #8F6FD8 */
  /* Layers added 19 Nov 2026: Native Title outcomes, State Development Areas,
     shared builds by year. All design-system ramp steps. */
  --nt-exclusive:#d97706; /* DS amber-600 */ --nt-nonexclusive:#fcd34d; /* DS amber-300 */
  --nt-none:#a3a3a3; /* DS neutral-400 */ --nt-extinguished:#e5e5e5; /* DS neutral-200 */
  --sda:#2716c0; /* DS blue-800 */
  --history-rail:#22149e; /* DS blue-900 */ --history-pipeline:#25764d; /* DS green-600 */
  --ocean:#e7e9ff; /* DS blue-100 — was #D3D8FF; site blue-200 */
  --ocean-waterway:#d3d8ff; /* DS blue-200 — was #B0B6FF; site blue-300 */
  /* Deliberately desaturated rather than another saturated hue — the wheel
     is crowded (10 data hues + the UI orange), and this layer is reference
     geography (admin boundaries), not a thing being counted, so it should
     read as backdrop/context rather than compete visually with the other
     nine. Hue sits near --water's but ~40pts lower saturation keeps them
     from being confused at a glance. */
  --waregions:#737373; /* DS neutral-500 — was #5C6B78; WA regional development boundaries — Pilbara/Mid West/South West (highlighted) */
  --waregions-grey:#d4d4d4; /* DS neutral-300 — was #C9C9C4; the other 6 WA regions — real boundaries, just not this map's focus */
  /* Region FILL, split from --waregions (which stays the outline, label and
     panel-key colour). The slate fill at 0.35 read as a mid-grey mass that
     competed with the ore bubbles and infrastructure drawn on top of it —
     the regions are the ground, not the subject. Site neutral-100, at high
     opacity because the colour is already light. */
  --waregions-fill:#f5f5f5; /* DS neutral-100 — was #F5F5F5 */
  /* Deliberately the most saturated colour on the page (TSI's own brand
     accent), not another muted data hue — this layer isn't a dataset in the
     same sense as the others, it's a constructed report annotation (see
     LAYER_DEFS['sw_combined']), and it should read as an overlay/highlight
     rather than compete for attention as "just another layer". Ported from
     the original green-iron-map, 31 Aug 2026. */
  --sw-combined:#f53e45; /* DS pink-500 — was #5551FF blue-500; regions follow the report maps (Pilbara amber, Mid West blue, South West pink) */ /* "South West" as used in the report — Perth + Peel + South West merged */
  /* Region-profile highlight colours (1 Sep 2026) — three distinct hues from
     the TSI palette (claude/tsi-chart-design-system.md) so Pilbara, Mid West
     and South West (report) read as three separate regions on the map at a
     glance, not three shades of the same colour. South West reuses
     --sw-combined above rather than a fourth new var, since it's the same
     layer/colour already defined. */
  --pilbara-hl:#f59e0b; /* DS amber-500 — was #F53E45 pink-500 */
  --midwest-hl:#3e2dfa; /* DS blue-600 — was #F59E0B amber-500 */
}

*{box-sizing:border-box;}
html{font-size:62.5%;} /* 1rem = 10px baseline; component sizes below are in rem off that */
body{margin:0;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.4rem;line-height:2rem;color:var(--dg);background:var(--lwg);}
#map{position:absolute;inset:0;}
/* Was DM Mono. TSI's system has no monospace face, so figures now use
   Soehne with tabular numerals — which is what the mono was really
   buying: digits that line up in a column. */
.mono{font-variant-numeric:tabular-nums;}
.label-sc{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;text-transform:uppercase;letter-spacing:.05em;}

/* ---------- global error banner ---------- */
.error-banner{
  position:absolute;top:0;left:0;right:0;z-index:1000;
  background:var(--error);color:#fff;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.4rem;line-height:2rem;
  padding:.8rem 1.6rem;box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.error-banner button{
  float:right;background:none;border:none;color:#fff;font-size:1.4rem;cursor:pointer;line-height:1;
}

/* ---------- floating panel ---------- */
/* Panel width lives in --panel-w and nowhere else. Everything that has to
   clear the panel derives from it: the close button's offset, and
   FIT_PADDING's left gutter, which is read from this token at runtime so a
   change here cannot leave far-west features rendering behind the panel. */
.panel{
  position:absolute;top:2rem;left:2rem;bottom:2rem;width:var(--panel-w);
  background:var(--white);border-radius:var(--r-xl);
  box-shadow:0 4px 24px rgba(0,0,0,.18);
  display:flex;flex-direction:column;
  z-index:10;
  overflow:hidden; /* clip children to the rounded corners; scrolling happens inside .panel-body only */
}
.panel-head{flex:0 0 auto;padding:1.8rem 2rem 0;border-bottom:1px solid var(--wg);}
.panel-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:1.6rem 2rem;}
.panel-foot{flex:0 0 auto;padding:1rem 2rem;border-top:1px solid var(--wg);background:var(--lwg);}

/* ---------- region profile (full-panel overlay, 1 Sep 2026) ----------
   Sits inside .panel (which is already position:absolute + overflow:hidden)
   as a second, parallel "mode" to the ordinary tab/panel system rather than
   trying to fit a fixed multi-field breakdown into the per-layer tab shape.
   [hidden] beats the .mtabs/.panel-body/.panel-foot stack simply by being
   later in source order + position:absolute + a solid background — no
   z-index war needed since nothing above it needs to show through. */
.region-profile{
  position:absolute;inset:0;background:var(--white);
  display:flex;flex-direction:column;
}
.region-profile[hidden]{display:none;}
.rp-head{flex:0 0 auto;padding:1.6rem 2rem 0;}
.rp-back{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);
  background:none;border:none;cursor:pointer;padding:0 0 .2rem;
}
.rp-back:hover{color:var(--dg);}
/* Mirrors .mtabs/.mtabs button (the ordinary layer tab bar) so switching
   between region profiles feels like the same control, not a new widget —
   the one difference is the active underline colour is set per-tab in JS
   (each region's own highlight colour) instead of one fixed accent colour. */
.rp-tabs{display:flex;gap:.2rem;margin-top:.6rem;overflow-x:auto;scrollbar-width:none;}
.rp-tabs::-webkit-scrollbar{display:none;}
.rp-tab{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;white-space:nowrap;
  border:none;background:none;color:var(--mg);padding:.7rem .9rem;cursor:pointer;
  border-bottom:2px solid transparent;
}
.rp-tab.active{color:var(--dg);}
/* No rule under the title — the swatch and the region name already read as
   a heading, and a keyline there cut the name off from the paragraph it
   introduces. Tightened the bottom padding to close the gap it left. */
.rp-titlewrap{display:flex;align-items:center;gap:.9rem;padding:1rem 0 .7rem;}
.rp-pattern-btn{margin-left:auto;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-full);padding:.4rem .9rem;cursor:pointer;white-space:nowrap;}
.rp-pattern-btn:hover{color:var(--dg);border-color:var(--mwg);}

/* ---------- Split pattern (Characteristics | Modelling) — 1 Sep 2026 ----------
   An alternate to the flat V1 body: a persistent hero (rendered once per
   region switch, untouched by sub-tab clicks — see renderProfileSplit() vs
   renderSubtabBody()) then a second-level Characteristics|Modelling tab
   pair reusing .rp-tab's own visual style so it reads as one nav idiom,
   not a new one. */
.rp-subtabs{display:flex;gap:.2rem;margin:0 0 1.6rem;border-bottom:1px solid var(--wg);}
/* Nested one level deeper than .rp-subtabs (Modelling's own Summary|Cost
   breakdown|Sites&pathway split, "Option 3" — 2 Sep 2026) — slightly
   smaller text than the parent tabs so the hierarchy reads at a glance,
   same underline-on-active convention otherwise. */
.rp-modelling-subtabs{display:flex;gap:.2rem;margin:1.6rem 0 1.4rem;border-bottom:1px solid var(--wg);}
.rp-modelling-subtab{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:500;font-size:1.2rem;line-height:1.6rem;color:var(--mg);background:none;border:none;border-bottom:2px solid transparent;padding:.55rem .9rem;cursor:pointer;}
.rp-modelling-subtab.active{color:var(--dg);}
.rp-modelling-subtab:hover:not(.active){color:var(--dg);}
.rp-empty-state{background:var(--amber-bg);border-radius:var(--r-lg);padding:1.3rem 1.5rem;}
.rp-empty-state-title{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:1.2rem;line-height:1.6rem;color:var(--amber-text);margin-bottom:.6rem;}
.rp-empty-state-body{font-size:1.2rem;line-height:1.5;color:var(--dg);}
.rp-scenario-selector{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1rem 1.2rem;margin-bottom:1.6rem;}
.rp-scenario-label{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.7rem;}
.rp-scenario-oretypes{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.9rem;}
.rp-scenario-ore-btn{
  text-align:left;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--dg);
  background:var(--white);border:1.5px solid var(--wg);border-radius:var(--r-md);padding:.6rem .9rem;cursor:pointer;
}
.rp-scenario-ore-btn.active{border-color:var(--_c,var(--dg));font-weight:700;background:var(--_c-wash,var(--white));}
.rp-scenario-tech-toggle{display:flex;background:var(--wg);border-radius:var(--r-full);padding:.2rem;width:fit-content;}
.rp-scenario-tech-btn{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;border:none;background:none;color:var(--mg);padding:.4rem .9rem;border-radius:var(--r-full);cursor:pointer;}
.rp-scenario-tech-btn.active{background:var(--white);color:var(--dg);box-shadow:0 1px 3px rgba(0,0,0,.12);}
.rp-modelling-footnote{font-size:1.2rem;line-height:1.6rem;color:var(--mg);font-style:italic;background:var(--lwg);border-radius:var(--r-md);padding:1rem 1.2rem;margin-top:.4rem;}

/* ---------- Production pathway diagram (1 Sep 2026) ----------
   Per-scenario ore→steel pathway, adapted from V05 ("Ore to steel: the
   pathways on one diagram") in wa-green-iron-charts.html — same node
   shapes/colours/legend, redrawn vertically (V05 is a wide 1060px 3-row
   horizontal diagram; this panel is ~350px, so a single scenario's row
   stacks top-to-bottom instead of running left-to-right). See
   pathwaySvgHTML() for the exact palette tokens carried over. */
.rp-pathway-card{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.2rem 1.3rem;margin-top:1.6rem;}
.rp-pathway-label{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem;}
.rp-pathway-note{font-size:1.2rem;color:var(--mg);margin-top:1rem;line-height:1.4;}
.rp-pathway-source{font-size:1.2rem;line-height:1.6rem;color:var(--mwg);font-style:italic;margin-top:.5rem;}

/* ---------- Scenario mini-table (1 Sep 2026) ----------
   Ore/Energy/Production/Port at a glance, per scenario — the same
   plant/renewable/ore/port facts already plotted on the map (see
   PILBARA_SITES/MIDWEST_BASE_SITES/MIDWEST_ORE_SITES), just tabulated.
   Not every row has every attribute (Energy has no % or Pathway) — cells
   that don't apply show an em dash rather than being omitted, so the
   table stays a genuine rectangular table, not a ragged list. */
.rp-scenario-table-card{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.2rem 1.3rem;margin-top:1.6rem;}
.rp-scenario-table{width:100%;border-collapse:collapse;font-size:1.2rem;line-height:1.6rem;}
.rp-scenario-table th{text-align:left;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.03em;padding:0 .6rem .5rem 0;border-bottom:1px solid var(--wg);}
.rp-scenario-table td{padding:.55rem .6rem .55rem 0;border-bottom:1px solid var(--wg);vertical-align:top;color:var(--dg);}
.rp-scenario-table tr:last-child td{border-bottom:none;}
.rp-scenario-table td.rp-st-cat{display:flex;align-items:center;gap:.4rem;font-weight:500;white-space:nowrap;}
.rp-scenario-table td.rp-st-dash{color:var(--mwg);}
.rp-st-status{display:inline-block;font-size:1.2rem;line-height:1.6rem;font-weight:500;padding:.15rem .5rem;border-radius:var(--r-full);white-space:nowrap;margin-bottom:.25rem;}
.rp-st-status.operating{background:#f0f9f3;color:#25764d;}
.rp-st-status.proposed{background:var(--amber-bg);color:var(--amber-text);}

/* ---------- Mid West 3-scenario comparison bars (1 Sep 2026) ----------
   Sits directly below the ore-type/tech selector, above the per-scenario
   category-breakdown chart — "all three scenarios together" for at-a-glance
   comparison, then the detailed hatched breakdown underneath is "further
   info" for whichever one is currently selected. These bars show each
   scenario's TOTAL LCOI, which is directly sourced (Digging Deeper Tables
   1–3) — no hatch pattern here, unlike the category-breakdown chart below
   it, since there's nothing derived/illustrative about a bar showing one
   real sourced number. */
.rp-scenario-compare{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.2rem 1.3rem 1rem;margin-bottom:1.6rem;}
.rp-scenario-compare-label{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;margin-bottom:1rem;}
.rp-compare-bars{display:flex;align-items:flex-end;gap:1.4rem;height:11rem;}
.rp-compare-bar-col{flex:1;display:flex;flex-direction:column;align-items:center;cursor:pointer;height:100%;justify-content:flex-end;}
.rp-compare-bar{width:100%;max-width:4.2rem;border-radius:4px 4px 0 0;transition:opacity .15s;}
.rp-compare-bar-value{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:1.2rem;line-height:1.6rem;color:var(--dg);margin-bottom:.3rem;}
.rp-compare-bar-label{font-size:1.2rem;color:var(--mg);text-align:center;margin-top:.5rem;line-height:1.25;}
.rp-compare-bar-col.active .rp-compare-bar-label{color:var(--dg);font-weight:700;}
.rp-swatch{width:1.5rem;height:1.5rem;border-radius:var(--r-sm);flex:0 0 auto;border:1px solid rgba(0,0,0,.15);}
.rp-titletext{display:flex;flex-direction:column;}
.rp-eyebrow{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;}
.rp-title{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:2rem;line-height:2.4rem;font-weight:700;margin:0;color:var(--dg);}
.rp-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:1.4rem 2rem 2rem;}

/* ---------- custom scrollbar (Sep 2026) ----------
   The native bar came and went with content length, and because it is
   in-flow that changed the panel's content width — expanding one section
   re-wrapped every paragraph above it, so the whole panel shifted while you
   read. scrollbar-gutter:stable reserves the track whether it is needed or
   not, which fixes the reflow; the slim styled thumb is what stops that
   reserved strip reading as a stray margin.

   Applied to both scrolling surfaces (the region panel and the layers
   popover) so they behave identically. Firefox takes the two scrollbar-*
   properties; WebKit and Blink take the pseudo-elements. */
.rp-body, .mappanel{
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:var(--mwg) transparent;
}
.rp-body::-webkit-scrollbar,
.mappanel::-webkit-scrollbar{width:10px;}
.rp-body::-webkit-scrollbar-track,
.mappanel::-webkit-scrollbar-track{background:transparent;}
.rp-body::-webkit-scrollbar-thumb,
.mappanel::-webkit-scrollbar-thumb{
  background:var(--mwg);
  border-radius:var(--r-full);
  /* A transparent border plus content-box clipping insets the thumb inside
     the 10px gutter, so it reads as a slim pill rather than filling the
     track edge to edge. */
  border:3px solid transparent;
  background-clip:content-box;
}
.rp-body::-webkit-scrollbar-thumb:hover,
.mappanel::-webkit-scrollbar-thumb:hover{
  background:var(--mg);
  background-clip:content-box;
}
/* Nothing to grab at the ends. */
.rp-body::-webkit-scrollbar-button,
.mappanel::-webkit-scrollbar-button{display:none;}

/* ---------- region profile V1 body — hero / stat row / timeline / grid ----------
   Replaces the old flat .rp-field list (1 Sep 2026) with a hierarchy pass:
   hero statement, headline stat cards, a shared timeline, then a 2-col
   characteristics grid. See PROJECT_NOTES.md "Region profile hierarchy pass"
   for the full rationale (each field's visual treatment was chosen to match
   what kind of fact it is — stat, badge, timeline position, or tag list —
   rather than every field getting the same label+paragraph treatment). */
.rp-hero{border-left:4px solid var(--accent,#999);border-radius:0 var(--r-md) var(--r-md) 0;padding:1.3rem 1.6rem;margin:0 0 1.8rem;}
.rp-hero-label{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem;}
.rp-hero-text{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.6rem;font-weight:500;line-height:1.35;color:var(--dg);}
.rp-statrow{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.8rem;}
.rp-stat{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.2rem 1.3rem;cursor:pointer;transition:box-shadow .15s, transform .15s;}
.rp-stat:hover{box-shadow:0 2px 10px rgba(0,0,0,.08);transform:translateY(-1px);}
.rp-stat-label{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.5rem;display:flex;justify-content:space-between;align-items:center;}
.rp-stat-num{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.6rem;font-weight:700;color:var(--dg);line-height:1.15;margin-bottom:.4rem;}
.rp-badge{display:inline-block;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;padding:.25rem .7rem;border-radius:var(--r-full);}
.rp-badge.good{background:#f0f9f3;color:#25764d;}
.rp-badge.bad{background:#fef2f2;color:#e22027;}
.rp-badge.neutral{background:var(--wg);color:var(--mg);}
.rp-badge.na{background:var(--amber-bg);color:var(--amber-text);}
.rp-factorbar{margin-top:.7rem;}
.rp-factorbar-track{height:.6rem;background:var(--wg);border-radius:var(--r-full);position:relative;overflow:hidden;}
.rp-factorbar-fill{height:100%;border-radius:var(--r-full);}
.rp-factorbar-labels{display:flex;justify-content:space-between;font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.3rem;}
.rp-timeline-card{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.2rem 1.3rem 1.4rem;margin-bottom:1.8rem;cursor:pointer;transition:box-shadow .15s, transform .15s;}
.rp-timeline-card:hover{box-shadow:0 2px 10px rgba(0,0,0,.08);transform:translateY(-1px);}
.rp-timeline-track{position:relative;height:2.6rem;margin-top:1rem;}
.rp-timeline-line{position:absolute;top:1.3rem;left:0;right:0;height:2px;background:var(--wg);}
.rp-timeline-tick{position:absolute;top:.8rem;width:2px;height:1rem;background:var(--mwg);}
.rp-timeline-ticklabel{position:absolute;top:2.1rem;font-size:1.2rem;line-height:1.6rem;color:var(--mg);white-space:nowrap;}
.rp-timeline-marker{position:absolute;top:.4rem;height:1.8rem;border-radius:var(--r-full);display:flex;align-items:center;padding:0 .8rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:#fff;white-space:nowrap;}
.rp-timeline-full{position:relative;height:9rem;margin:1rem 0 1.8rem;}
.rp-sectionlabel{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;margin:0 0 .8rem;}
.rp-detailgrid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.rp-card{background:var(--white);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.1rem 1.2rem;cursor:pointer;transition:box-shadow .15s, transform .15s, border-color .15s;}
.rp-card:hover{box-shadow:0 2px 10px rgba(0,0,0,.08);transform:translateY(-1px);border-color:var(--mwg);}
.rp-card-label{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.5rem;display:flex;justify-content:space-between;align-items:center;}
.rp-card-body{font-size:1.2rem;line-height:1.45;color:var(--dg);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.rp-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.2rem;}
.rp-tag{font-size:1.2rem;line-height:1.6rem;font-weight:500;background:var(--wg);color:var(--dg);padding:.3rem .7rem;border-radius:var(--r-full);}
.rp-card.callout{background:var(--lwg);}
.icon-label{display:flex;align-items:center;gap:.5rem;}
.lucide-icon{display:inline-block;vertical-align:-3px;flex:0 0 auto;}

/* ---- field detail view (drill-down within .rp-body; tabs switch region, not field) ---- */
.detail-view{padding-top:.2rem;}
.detail-compare-title{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;margin:0 0 .8rem;}
.compare-value{font-size:1.2rem;line-height:1.45;color:var(--dg);}
.detail-source{font-size:1.2rem;line-height:1.6rem;color:var(--mg);font-style:italic;margin-top:1.6rem;padding-top:1.2rem;border-top:1px solid var(--wg);}
.full-intro{font-size:1.2rem;line-height:1.6;margin-bottom:1.3rem;}
.full-sublabel{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:1.2rem;line-height:1.6rem;margin-bottom:.7rem;}
.full-bullets{margin:0 0 0;padding-left:1.7rem;}
.full-bullets li{font-size:1.2rem;line-height:1.5;margin-bottom:.7rem;}
.full-bullets li:last-child{margin-bottom:0;}

/* ---- cost breakdown stacked-bar chart (Cost position detail view) ---- */
.cost-chart-card{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.2rem 1.3rem;margin-bottom:1.6rem;}
.cost-chart-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;}
.cost-chart-title{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:500;font-size:1.2rem;line-height:1.6rem;color:var(--dg);}
.tech-toggle{display:flex;background:var(--wg);border-radius:var(--r-full);padding:.2rem;}
.tech-btn{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;border:none;background:none;color:var(--mg);padding:.4rem .8rem;border-radius:var(--r-full);cursor:pointer;}
.tech-btn.active{background:var(--white);color:var(--dg);box-shadow:0 1px 3px rgba(0,0,0,.12);}
.cost-chart-body{display:flex;align-items:flex-end;gap:1.2rem;}
.cost-chart-total{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.4rem;line-height:2rem;font-weight:700;color:var(--dg);}
.cost-chart-total-label{font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;}
.cost-legend{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin-top:1.1rem;}
.cost-legend-item{display:flex;align-items:center;gap:.4rem;font-size:1.2rem;line-height:1.6rem;color:var(--dg);}
/* Dashed border (not solid) is the design system's own "this series is
   mock/derived" swatch convention — every band here qualifies, since the
   category-level split (not the bar's total) is derived, not sourced. */
.cost-legend-swatch{width:.8rem;height:.8rem;border-radius:2px;flex:0 0 auto;border:1.5px dashed rgba(0,0,0,.45);background-clip:padding-box;}
.cost-legend-mocktag{font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mock);letter-spacing:.02em;}
/* ---------- Map cover — standalone landing overlay, shown first ----------
   A third full-panel overlay alongside the ordinary tab/panel stack and
   .region-profile: position:absolute;inset:0, NOT hidden by default (unlike
   .region-profile), so it's the first thing seen the moment .panel is
   revealed via #panel-show-btn — before any layer tab, before Ore. Dismissed
   once (via "Explore all layers →" or its own ✕) to reveal the ordinary
   tabs underneath; not a persistent nav destination you toggle back to,
   same mental model as a book cover rather than a home tab. */
/* .map-cover / .mc-head / .mc-body / .mc-explore removed with the cover.
   NB the .mc-top / .mc-title / .mc-readout rules further down are the
   mini-chart family, a different thing that shares the prefix. */
/* .chart-mocknote styling, copied exactly from the TSI chart design system
   (font-size 10px/600 weight, --mock colour on --mock-wash background,
   3px/8px padding, 4px radius) — replaces the old plain italic-grey note. */
.cost-chart-note{display:inline-block;margin-top:.9rem;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mock);background:var(--mock-wash);padding:.3rem .8rem;border-radius:4px;}

/* ---------- "WA Regions" cover cards — teaser + 3 region cards ----------
   Shared building blocks for the map cover: a shared timeline teaser, then
   Pilbara/Mid West/South West as their own cards with metadata chips. */
.wal-teaser{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.2rem 1.3rem 1.4rem;margin-bottom:1.6rem;}
.wal-teaser-label{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.3rem;}
.wal-teaser-sub{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-bottom:.4rem;}
/* Region characteristic cards on the WA tab (Nov 2026, after the roadmap's
   chapter 3 overview figure). One per region; the card opens its tab. */
/* Company view (Nov 2026): "Who's who in the Pilbara" chips. */
.ow-section{margin-bottom:1.4rem;}
.ow-title{font-size:1.3rem;line-height:2rem;font-weight:600;color:var(--dg);margin-bottom:.2rem;}
.ow-sub{font-size:1.15rem;line-height:1.6rem;color:var(--mg);margin-bottom:.8rem;}
.ow-chips{display:flex;flex-wrap:wrap;gap:.6rem;}
.ow-chip{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem 1.2rem;border:1px solid var(--wg);border-radius:var(--r-full);background:var(--white);font:inherit;font-size:1.3rem;font-weight:500;color:var(--dg);cursor:pointer;}
.ow-chip i{width:1rem;height:1rem;border-radius:50%;background:var(--oc);flex:none;}
.ow-chip:hover{border-color:var(--oc);}
.ow-chip.is-on{background:var(--oc);border-color:var(--oc);color:#fff;}
.ow-chip.is-on i{background:#fff;}
.ow-chip:focus-visible{outline:2px solid var(--oc);outline-offset:2px;}
/* everything the company does not own steps back */
.gi-marker-root.is-owner-muted{opacity:.14 !important;}
.ow-card .rp-row{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0;border-bottom:1px solid var(--wg);font-size:1.25rem;line-height:1.7rem;}
.ow-share{padding:.8rem 0 .9rem;border-bottom:1px solid var(--wg);}
.ow-share-head{display:flex;justify-content:space-between;align-items:baseline;font-size:1.25rem;line-height:1.7rem;color:var(--mg);}
.ow-share-head b{font-size:1.6rem;color:var(--dg);font-weight:600;}
.ow-share-bar{height:.8rem;border-radius:var(--r-full);background:var(--wg);overflow:hidden;margin-top:.5rem;}
.ow-share-bar span{display:block;height:100%;border-radius:var(--r-full);}
.ow-share-foot{margin-top:.4rem;font-size:1.1rem;line-height:1.5rem;color:var(--mg);}
.ow-card h3{margin:0 0 .2rem;font-size:1.7rem;line-height:2.2rem;}
.ow-card .ow-k{color:var(--mg);}
.ow-card ul{margin:.3rem 0 0;padding-left:1.6rem;}
.ow-card .ow-note{margin-top:.8rem;font-size:1.1rem;line-height:1.5rem;color:var(--mg);font-style:italic;}
.ow-card .ow-clear{margin-top:1rem;border:1px solid var(--mwg);background:var(--white);border-radius:var(--r-full);padding:.5rem 1.2rem;font:inherit;font-size:1.2rem;font-weight:500;cursor:pointer;color:var(--dg);}
.ow-card .ow-clear:hover{border-color:var(--dg);}
.rc-section{margin-bottom:1.4rem;}
.rc-title{font-size:1.3rem;line-height:2rem;font-weight:600;color:var(--dg);margin-bottom:.6rem;}
.rc-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;}
.rc-tile{display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:1rem .6rem .9rem;background:var(--white);border:1px solid var(--wg);border-radius:var(--r-md, 6px);font:inherit;color:inherit;cursor:pointer;}
.rc-tile:hover{border-color:var(--rc);box-shadow:0 1px 6px rgba(0,0,0,.08);}
.rc-tile:focus-visible{outline:2px solid var(--rc);outline-offset:2px;}
.rc-tile-name{font-size:1.3rem;line-height:1.7rem;font-weight:600;color:var(--dg);}
.rc-tile:hover .rc-tile-name{color:var(--rc);}
.rc-cards{display:flex;flex-direction:column;gap:.8rem;margin-bottom:1.4rem;}
.rc-card{display:block;width:100%;text-align:left;font:inherit;color:inherit;background:var(--white);border:1px solid var(--wg);border-left:4px solid var(--rc);border-radius:var(--r-md, 6px);padding:1.2rem 1.2rem 1rem;cursor:pointer;}
.rc-card:hover{border-color:var(--rc);box-shadow:0 1px 6px rgba(0,0,0,.08);}
.rc-card:focus-visible{outline:2px solid var(--rc);outline-offset:2px;}
.rc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;}
.rc-name{margin:0;font-size:1.7rem;line-height:2rem;font-weight:700;color:var(--dg);}
.rc-blurb{margin:.4rem 0 0;font-size:1.2rem;line-height:1.7rem;color:var(--dg);}
.rc-loc{flex:none;display:block;}
.rc-rows{display:grid;grid-template-columns:1fr 1fr;gap:.8rem 1.2rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--wg);}
.rc-row.is-wide{grid-column:1 / -1;}
.rc-k{display:flex;align-items:center;gap:.4rem;font-size:1.1rem;line-height:1.5rem;font-weight:600;color:var(--dg);}
.rc-k svg{flex:none;}
.rc-v{margin-top:.2rem;font-size:1.15rem;line-height:1.55rem;color:var(--dg);}
.rc-res{display:grid;grid-template-columns:auto auto 1fr;gap:.1rem .6rem;align-items:center;}
.rc-res b{font-weight:600;}
.rc-res svg{justify-self:end;}
.rc-go{display:flex;align-items:center;gap:.3rem;margin-top:1rem;font-size:1.2rem;font-weight:600;color:var(--rc);}
/* The same locator heads each region's own tab. */
.rp-titlewrap .rc-loc{margin-left:auto;}
.wal-card{display:flex;align-items:flex-start;gap:1rem;padding:1.1rem 0;border-top:1px solid var(--wg);cursor:pointer;}
.wal-card:first-of-type{border-top:none;}
.wal-card:hover .wal-name{text-decoration:underline;}
.wal-swatch{width:1.3rem;height:1.3rem;border-radius:var(--r-sm);flex:0 0 auto;margin-top:.3rem;}
.wal-name{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:1.2rem;line-height:1.6rem;color:var(--dg);}
.wal-role{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.15rem;}
.wal-chev{margin-left:auto;color:var(--mwg);flex:0 0 auto;margin-top:.4rem;}
.wal-meta{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.7rem;}
.wal-chip{display:inline-flex;align-items:center;gap:.35rem;font-size:1.2rem;line-height:1.6rem;font-weight:500;padding:.3rem .65rem;border-radius:var(--r-full);background:var(--wg);color:var(--dg);}
.wal-chip.good{background:#f0f9f3;color:#25764d;}
.wal-chip.bad{background:#fef2f2;color:#e22027;}
.wal-chip.na{background:var(--amber-bg);color:var(--amber-text);}
.wal-other-label{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;margin:1.8rem 0 .4rem;}

.panel.hidden{display:none;}
/* Absolute, not in-flow: its old home was the panel head, which no longer
   exists, and .region-profile is inset:0 so anything below it is unreachable. */
/* Sits just off the panel's right edge, as a circle on the map. Left, not
   right: derived from --panel-w and the 2rem offset rather than guessed, so
   it follows the panel. It is a sibling of .panel because .panel clips its
   children. */
.panel-hide-btn{
  position:absolute;top:2rem;left:calc(2rem + var(--panel-w) + 1rem);z-index:11;
  display:flex;align-items:center;justify-content:center;
  width:3.2rem;height:3.2rem;border-radius:var(--r-full);
  border:1px solid var(--wg);background:var(--white);
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  /* Ink, and a drawn X at the pill plus's weight (Nov 2026): the \2715
     glyph in mid grey read too light beside the other controls. */
  color:var(--dg);cursor:pointer;font-size:1.4rem;line-height:1;padding:0;
  transition:color .12s ease, border-color .12s ease;
}
.panel-hide-btn:hover{color:var(--dg);border-color:var(--mwg);}
/* Goes with the panel when it is hidden — the "Open Panel" pill replaces both. */
.panel.hidden ~ .panel-hide-btn{display:none;}
/* Only rendered when .panel carries .hidden (sibling combinator) — otherwise
   this and the real panel-hide-btn above would both be visible at once. */
.panel-show-btn{
  display:none;position:absolute;top:2rem;left:2rem;z-index:10;
  align-items:center;gap:.5rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  /* text-sm / font-medium: 14px at 500, matching Tailwind's scale on the
     host site. 1.4rem because this file's root is 62.5% (1rem = 10px). */
  font-size:1.4rem;line-height:2rem;font-weight:500;background:var(--white);color:var(--dg);
  border:1px solid var(--mwg);border-radius:var(--r-full);padding:.7rem 1.3rem;
  cursor:pointer;box-shadow:0 4px 24px rgba(0,0,0,.18);
}
.panel.hidden ~ .panel-show-btn{display:flex;}
.panel-show-btn:hover{border-color:var(--dg);}

.wordmark-row{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;padding-bottom:1.4rem;}
.wordmark{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:1.8rem;line-height:2.8rem;color:var(--dg);white-space:nowrap;}
.wordmark .diamond{color:var(--orange);}
.region-select{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;
  border:1px solid var(--mwg);border-radius:var(--r-md);padding:.5rem .8rem;
  background:var(--white);color:var(--dg);cursor:pointer;
}

.rangebar{display:flex;gap:.4rem;padding-bottom:1.2rem;flex-wrap:wrap;}
.rangebar button{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;
  border:1px solid var(--mwg);background:var(--white);color:var(--mg);
  border-radius:var(--r-full);padding:.45rem 1.1rem;cursor:pointer;
}
.rangebar button.live-dot::before{content:'●';color:var(--mwg);margin-right:.4rem;font-size:.9em;}
.rangebar button.active{background:var(--dg);border-color:var(--dg);color:var(--white);}
.rangebar button.active.live-dot::before{color:var(--success);}
.rangebar button:disabled{opacity:.45;cursor:not-allowed;}
.rangebar button:not(:disabled):hover{border-color:var(--dg);color:var(--dg);}

.mtabs{display:flex;gap:.2rem;overflow-x:auto;padding-bottom:1.2rem;scrollbar-width:none;}
.mtabs::-webkit-scrollbar{display:none;}
.mtabs button{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;white-space:nowrap;
  border:none;background:none;color:var(--mg);padding:.7rem .9rem;cursor:pointer;
  border-bottom:2px solid transparent;
}
.mtabs button.active{color:var(--dg);border-bottom-color:var(--orange);}

.mtab-panel{display:none;}
.mtab-panel.active{display:block;}

.tab-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1rem;}
.tab-head h2{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.6rem;line-height:2.4rem;margin:0;color:var(--dg);}
.hidden-hint{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;
  color:var(--amber-text);background:var(--amber-bg);border-radius:var(--r-sm);
  padding:.25rem .6rem;white-space:nowrap;
}

.view-pillwrap{margin-bottom:1.2rem;}
.view-pillbar{display:flex;gap:.3rem;margin-bottom:.4rem;}
.view-pillbar button{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;
  border:1px solid var(--mwg);background:var(--white);color:var(--mg);
  border-radius:var(--r-full);padding:.35rem .9rem;cursor:pointer;
}
.view-pillbar button.active{background:var(--wg);border-color:var(--dg);color:var(--dg);}
.view-caption{display:block;font-size:1.2rem;line-height:1.6rem;color:var(--mg);font-style:italic;}
.view-caption:empty{display:none;}

/* ---------- mini chart ---------- */
.minichart{border:1px solid var(--wg);border-radius:var(--r-lg);padding:1rem 1.2rem;margin-bottom:1.4rem;}
.mc-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.6rem;}
.mc-title{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--dg);}
.mc-readout{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;color:var(--dg);}
.mc-svg{width:100%;height:5.4rem;display:block;cursor:crosshair;}
.mc-foot{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.5rem;}
.mc-foot .mock-flag{color:var(--amber-text);font-weight:500;}

/* ---------- stat tiles ---------- */
.mstats{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin-bottom:1.4rem;}
.stat-tile{background:var(--lwg);border-radius:var(--r-md);padding:.9rem 1rem;}
.stat-tile .st-label{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.4rem;line-height:2rem;font-weight:400;color:var(--mg);}
.stat-tile .st-value{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:2rem;line-height:2.4rem;font-weight:500;color:var(--dg);margin-top:.2rem;}
/* Secondary figure under the headline number — text-sm, so the tile reads as
   one number with a qualifier rather than two competing numbers. */
.stat-tile .st-sub{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.1rem;}
/* Colour key in the label row, same hairline-on-white dot as everywhere else. */
.stat-tile .st-label{display:flex;align-items:center;gap:.5rem;}
.stat-tile .st-dot{
  width:1rem;height:1rem;border-radius:50%;flex:0 0 auto;
  box-shadow:0 0 0 .05rem var(--black);
}
/* Split down the middle. overflow:hidden clips the two halves back to the
   circle; the keyline is a box-shadow so it sits outside the clip. */
.stat-tile .st-dot.is-split{
  background:none;position:relative;overflow:hidden;
}
.stat-tile .st-dot.is-split::before,
.stat-tile .st-dot.is-split::after{
  content:'';position:absolute;top:0;bottom:0;width:50%;
}
.stat-tile .st-dot.is-split::before{left:0;background:var(--a);}
.stat-tile .st-dot.is-split::after{right:0;background:var(--b);}
.stat-tile .st-note{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.2rem;}

/* ---------- legend ---------- */
.legend{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.4rem;font-size:1.2rem;line-height:1.6rem;}
.legend-row{display:flex;align-items:center;gap:.7rem;}
.legend-swatch{width:1.1rem;height:1.1rem;border-radius:50%;flex:0 0 auto;border:1px solid rgba(0,0,0,.15);}
.legend-swatch.square{border-radius:var(--r-sm);}
.legend-swatch.line{width:1.6rem;height:.3rem;border-radius:var(--r-sm);border:none;}
.legend-row .lr-note{color:var(--mg);font-size:1.2rem;line-height:1.6rem;}

/* ---------- facility list ---------- */
.fac-search{
  width:100%;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;
  border:1px solid var(--mwg);border-radius:var(--r-md);padding:.6rem .9rem;margin-bottom:.8rem;
}
.fac-list{display:flex;flex-direction:column;}
.fac-row{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.8rem .2rem;border-bottom:1px solid var(--wg);cursor:pointer;
}
.fac-row:hover{background:var(--lwg);}
.fac-row:last-child{border-bottom:none;}
.fac-row.unplotted{cursor:default;opacity:.7;}
.fac-row.unplotted:hover{background:none;}
.fac-name{font-size:1.2rem;line-height:1.6rem;color:var(--dg);}
.fac-name .fac-sub{display:block;font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.1rem;}
.fac-metric{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;color:var(--dg);white-space:nowrap;text-align:right;}
.fac-metric .fac-badge{
  display:inline-block;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;
  border-radius:var(--r-sm);padding:.15rem .5rem;margin-left:.5rem;vertical-align:middle;
}
.badge-operating{background:#daf1e0;color:var(--success-text);}
.badge-committed{background:#e7e9ff;color:#2f1be6;}
.badge-proposed{background:var(--amber-bg);color:var(--amber-text);}
.badge-cancelled{background:#ffe1e2;color:var(--error-text);}
.badge-care{background:#f5f5f5;color:#525252;}
.badge-unplotted{background:var(--wg);color:var(--mg);}
.fac-empty{color:var(--mg);font-style:italic;padding:1rem .2rem;}

/* ---------- panel foot ---------- */
.panel-foot{font-size:1.2rem;line-height:1.6rem;color:var(--mg);}
.panel-foot .credits{margin-bottom:.3rem;}
.panel-foot .debug-line{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;color:var(--mwg);}

/* ---------- whole-of-WA overview (landing) ---------- */
/* Counts are computed from ORE_DATA at render time rather than written in,
   so they cannot drift from the loaded register. */
.wa-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem;margin:0 0 1.6rem;}
.wa-stat{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-md);padding:.9rem 1rem;}
.wa-stat-n{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:2rem;line-height:1;color:var(--dg);font-variant-numeric:tabular-nums;}
.wa-stat-l{font-size:1.2rem;color:var(--mg);margin-top:.35rem;line-height:1.35;}
.wa-stat-sub{font-size:1.2rem;color:var(--mwg);margin-top:.3rem;line-height:1.4;}
.wa-source{font-size:1.2rem;color:var(--mwg);margin:-.9rem 0 1.6rem;line-height:1.45;}

/* Route group headings — the overview offers three ways on, and they should
   read as three, not as one long list. */
.rp-route-head{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:500;font-size:1.2rem;line-height:1.6rem;
  letter-spacing:.09em;text-transform:uppercase;color:var(--mg);
  margin:1.9rem 0 .9rem;
}

/* Narrative entry cards */
.nar-card{
  display:flex;align-items:flex-start;gap:.9rem;width:100%;text-align:left;
  background:var(--white);border:1px solid var(--wg);border-radius:var(--r-lg);
  padding:1.05rem 1.1rem;cursor:pointer;font:inherit;margin-bottom:.7rem;
  transition:border-color .12s;
}
.nar-card:hover{border-color:var(--dg);}
.nar-ico{
  flex:0 0 auto;width:3rem;height:3rem;border-radius:var(--r-md);
  display:flex;align-items:center;justify-content:center;
  background:var(--wg);color:var(--dg);
}
.nar-body{flex:1 1 auto;min-width:0;}
.nar-name{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:1.2rem;line-height:1.6rem;color:var(--dg);}
.nar-sub{font-size:1.2rem;color:var(--mg);margin-top:.25rem;line-height:1.4;}
.nar-chev{flex:0 0 auto;color:var(--mwg);align-self:center;}
.nar-soon{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;letter-spacing:.05em;text-transform:uppercase;
  color:var(--amber-text);background:var(--amber-bg);border-radius:var(--r-sm);
  padding:.1em .45em;margin-left:.5rem;vertical-align:.12em;
}

/* Narrative stub view */
.nar-stub{padding:1.6rem 0 0;}
.nar-stub-note{
  background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);
  padding:1.2rem 1.3rem;font-size:1.2rem;line-height:1.55;color:var(--mg);margin-top:1.2rem;
}

/* ---------- unified map control bar (bottom-right) ----------
   One control instead of three. Layers used to live in a card pinned
   top-right, the basemap switch in its own pill above the scale bar, and
   zoom in MapLibre's default NavigationControl top-right — three separate
   affordances in two corners for what is really one question ("what am I
   looking at?"). They are now a single bar bottom-right with one popover,
   following the pattern already in use on Open Methane's map so the two
   products feel like siblings.
   ------------------------------------------------------------------- */
/* Top-right tools. Same visual language as the bottom-right bar — one
   button family, two corners — so the map reads as having one control
   system rather than a scattering of widgets. */
/* Two classes, so it beats .mapbar-group's display:flex further down. */
.mapbar-group.story-close-group{display:none;}
body.is-immersive .mapbar-group.story-close-group{display:flex;}
.mapbar-group.story-close-group{background:none;box-shadow:none;overflow:visible;border-radius:0;}
/* Same pill as the folded panel's "The Pilbara +" (.panel-show-btn). */
.mapbar-btn.story-close{
  width:auto;height:auto;gap:.5rem;white-space:nowrap;
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-size:1.4rem;line-height:2rem;font-weight:500;background:var(--white);color:var(--dg);
  border:1px solid var(--mwg);border-radius:var(--r-full);padding:.7rem 1.3rem;
  box-shadow:0 4px 24px rgba(0,0,0,.18);
}
.mapbar-btn.story-close:hover{background:var(--white);border-color:var(--dg);}
.maptools{
  position:absolute;top:1rem;right:1rem;z-index:6;
  display:flex;align-items:center;gap:.6rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
}
/* Pinned detail card. Bottom-right above the map bar, so it takes a corner
   the map already gives to chrome rather than covering data. Capped in
   height and scrolls internally — Fremantle lists twenty-one commodities and
   the card must not grow into the map. */
@keyframes pincard-in{
  from{opacity:0;transform:translateY(.8rem) scale(.985);}
  to{opacity:1;transform:none;}
}
.pincard{
  position:absolute;bottom:5.4rem;right:1rem;z-index:7;
  /* Below #mappanel (9): both open into the bottom-right corner, and the
     layers panel is the thing you deliberately opened, so it wins. */
  width:30rem;max-height:min(46rem, calc(100% - 9rem));
  display:flex;flex-direction:column;
  background:var(--white);border:1px solid var(--wg);border-radius:var(--r-lg);
  box-shadow:0 4px 18px rgba(0,0,0,.16);
}
/* display:flex above outranks the UA's [hidden]{display:none}, so without
   this the card stays painted after hidePinCard() — the close button set
   the attribute but nothing disappeared. Same fix as .mappanel[hidden]. */
.pincard[hidden]{display:none;}
.pincard.is-in{animation:pincard-in .18s cubic-bezier(.2,.7,.3,1) both;}
/* Respect a reader who has asked for less movement — the card still appears,
   it just does not travel. */
@media (prefers-reduced-motion: reduce){
  .pincard.is-in{animation:none;}
}
.pincard-body{overflow-y:auto;padding:1.2rem 1.4rem 1.4rem;scrollbar-width:thin;}
.pincard-close{
  position:absolute;top:.6rem;right:.6rem;z-index:1;
  display:flex;align-items:center;justify-content:center;
  width:2.4rem;height:2.4rem;border-radius:var(--r-full);
  border:none;background:none;color:var(--mg);cursor:pointer;font-size:1.2rem;line-height:1;
}
.pincard-close:hover{background:var(--lwg);color:var(--dg);}
/* The popup's own markup is reused verbatim inside the card, so a layer's
   popupFields render identically in both — only the container changed. */
/* Headline matches the panel's .grid-net-name (text-sm / medium), so a port
   is titled the same in the card as in the Ports section. Rows keep the
   popup's own compact styling. */
.pincard .popup-title{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-size:1.4rem;line-height:2rem;font-weight:500;color:var(--dg);
  margin:0 2.4rem .6rem 0;gap:.7rem;
}
.pincard .popup-ico{width:1.8rem;height:1.8rem;}
.pincard .popup-ico svg{width:11px;height:11px;}

.mapbar{
  position:absolute;bottom:1rem;right:1rem;z-index:6;
  display:flex;align-items:center;gap:.6rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
}
.mapbar-group{
  display:flex;align-items:center;background:var(--white);
  border-radius:var(--r-lg);box-shadow:0 2px 12px rgba(0,0,0,.18);overflow:hidden;
}
.mapbar-btn{
  display:flex;align-items:center;justify-content:center;
  width:3.2rem;height:3.2rem;border:none;background:none;cursor:pointer;color:var(--dg);
}
.mapbar-btn:hover{background:var(--lwg);}
.mapbar-btn.active{background:var(--dg);color:var(--white);}
.mapbar-btn + .mapbar-btn{border-left:1px solid var(--wg);}
.mapbar-btn[disabled]{opacity:.35;cursor:default;}
.mapbar-btn svg{pointer-events:none;}

/* On-map key (Nov 2026): one row of shapes along the bottom, left of the map
   controls. Shape = what kind of thing, only for layers that are on; colour
   detail stays in the layer cards. Scrolls sideways on narrow screens rather
   than wrapping. Stays up while the layers popover is open, so switching a
   layer on shows its key item straight away; hidden in explainers. */
.mapkey{
  position:absolute;bottom:1rem;right:11.6rem;z-index:6;max-width:calc(100% - 13rem);
  display:flex;align-items:center;gap:1.4rem;height:3.2rem;padding:0 1.2rem;
  background:var(--white);border-radius:var(--r-lg);box-shadow:0 2px 12px rgba(0,0,0,.18);
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;color:var(--dg);
  font-size:1.2rem;white-space:nowrap;overflow-x:auto;scrollbar-width:none;
}
.mapkey::-webkit-scrollbar{display:none;}
.mapkey[hidden], .mapkey:empty, body.is-immersive .mapkey{display:none;}
.sheet-handle{display:none;}
/* ---------- phones (Nov 2026 mobile pass) ----------
   Below 1024px (phones and portrait tablets) the 44rem panel cannot sit
   beside the map, so it takes one of three trial layouts, on <body data-mpanel>:
     split  the map on top, the panel docked under it (always open);
     fold   the map first; the region pill opens the panel full-frame, with
            its X inside the top-right corner;
     sheet  a bottom sheet that peeks (tabs and title) and expands on tap.
   The phone-layout picker that switches them is temporary, for review. */
@media (max-width:1023px){
  :root{--sheet-peek:13.2rem;--sheet-open:78%;--split-h:50%;}
  .panel{left:.8rem;right:.8rem;width:auto;}
  /* fold: full-frame overlay, X inside its corner */
  body[data-mpanel="fold"] .panel{top:.8rem;bottom:.8rem;}
  body[data-mpanel="fold"] .panel-hide-btn{top:1.6rem;left:auto;right:1.6rem;box-shadow:none;}
  /* split: docked under the map, square top edge, no X */
  body[data-mpanel="split"] .panel{top:auto;left:0;right:0;bottom:0;height:var(--split-h);border-radius:var(--r-xl) var(--r-xl) 0 0;}
  body[data-mpanel="split"] .panel-hide-btn,
  body[data-mpanel="split"] .panel-show-btn{display:none !important;}
  body[data-mpanel="split"] .mapbar,
  body[data-mpanel="split"] .mapkey{bottom:calc(var(--split-h) + 1rem);}
  /* sheet: peek height, expands on tap of its handle */
  body[data-mpanel="sheet"] .panel{top:auto;left:0;right:0;bottom:0;height:var(--sheet-peek);border-radius:var(--r-xl) var(--r-xl) 0 0;transition:height .25s ease;}
  body[data-mpanel="sheet"] .panel.is-sheet-open{height:var(--sheet-open);}
  body[data-mpanel="sheet"] .panel-hide-btn,
  body[data-mpanel="sheet"] .panel-show-btn{display:none !important;}
  body[data-mpanel="sheet"] .mapbar,
  body[data-mpanel="sheet"] .mapkey{bottom:calc(var(--sheet-peek) + 1rem);}
  body[data-mpanel="sheet"] .sheet-handle{display:flex;justify-content:center;align-items:center;width:100%;height:2.4rem;border:none;background:none;cursor:pointer;flex:none;padding:0;}
  body[data-mpanel="sheet"] .sheet-handle span{width:4rem;height:.4rem;border-radius:var(--r-full);background:var(--mwg);}
  /* the profile fills the panel absolutely; in the sheet it starts under the handle */
  body[data-mpanel="sheet"] .panel .region-profile{top:2.4rem;}
  /* fold: keep the last region tab clear of the X */
  body[data-mpanel="fold"] .rp-tabs-regions{padding-right:4rem;}
  /* stat tiles: two narrow columns, so the figures step down a size */
  .stat-tile .st-value{font-size:1.9rem;line-height:2.4rem;}
  /* the key and the map buttons share one row: the key gives way */
  .mapkey{left:1rem;right:auto;max-width:calc(100% - 13rem);}
  /* story counter on one line */
  .pwx-now-count{white-space:nowrap;}
}
.mtrial{display:none;}
@media (max-width:1023px){
  .mtrial{display:flex;position:absolute;top:5.2rem;right:1rem;z-index:12;gap:.2rem;padding:.3rem;background:var(--dg);border-radius:var(--r-full);font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;box-shadow:0 2px 8px rgba(0,0,0,.25);}
  .mtrial button{border:none;background:none;color:#fff;font:inherit;font-size:1.15rem;font-weight:500;padding:.4rem .9rem;border-radius:var(--r-full);cursor:pointer;}
  .mtrial button.is-on{background:#fff;color:var(--dg);}
  body.is-immersive .mtrial{display:none;}
  .mtrial{flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 2rem);}
  .mtrial-sep{width:1px;align-self:stretch;background:rgba(255,255,255,.3);margin:0 .2rem;}
  /* trial: smaller markers (the zoom is on the marker's contents, so the
     map's own positioning transform on the root is untouched) */
  body[data-mmarks="75"] .gi-marker-root > *{zoom:.75;}
}
/* Tablet and narrow desktop: the key starts right of the open panel rather
   than running in under it. */
@media (min-width:1024px){
  body:not(.panel-folded):not(.is-immersive) .mapkey{max-width:calc(100% - 11.6rem - 2rem - var(--panel-w) - 1.6rem);}
}
.mapkey-item{display:flex;align-items:center;gap:.5rem;flex:none;}
/* Hide / show (Nov 2026): an X closes the key to a small "Key" pill. */
.mapkey-hide,.mapkey-show{display:flex;align-items:center;gap:.5rem;flex:none;border:none;background:none;font:inherit;color:var(--dg);cursor:pointer;padding:.4rem;border-radius:var(--r-full);}
.mapkey-hide:hover,.mapkey-show:hover{background:var(--lwg);}
.mapkey-show{padding:.4rem .6rem;font-weight:500;}
.mapkey.is-folded{padding:0 .6rem;}
.mapkey-item svg{flex:none;display:block;}
.mapkey-sizes{display:flex;align-items:center;gap:.6rem;}
.mapkey-size{display:flex;align-items:center;gap:.3rem;}
.mapkey-size svg{width:auto;}

/* The popover. Anchored to the bar's bottom-right corner and grows up and
   to the left, so it never runs off the edge of a narrow embed. */
.mappanel{
  position:absolute;bottom:5rem;right:1rem;z-index:9;width:min(33rem, calc(100vw - 2rem));
  background:var(--white);border-radius:var(--r-xl);box-shadow:0 6px 28px rgba(0,0,0,.22);
  /* Top padding lives on the sticky head, so nothing scrolls past above it. */
  padding:0 1.5rem 1.5rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  /* Height locks at the bottom of the Map styles grid — set inline by
     sizeMapPanel() from the rendered layout — so layers and styles show in
     full and only the key below them scrolls. This is the fallback cap. */
  max-height:calc(100vh - 6.5rem);overflow-y:auto;
}
.mappanel[hidden]{display:none;}
.mp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;}
/* The first head stays put while the rest scrolls, so Close is always in
   reach. Opaque, so cards slide under it rather than through it. */
.mappanel > .mp-head:first-child{
  position:sticky;top:0;z-index:2;background:var(--white);
  padding:1.4rem 0 .6rem;margin-bottom:.6rem;
}
.mp-label{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:500;font-size:1.2rem;line-height:1.6rem;
  letter-spacing:.09em;text-transform:uppercase;color:var(--mg);
}
/* Same control as the location card's close (.pincard-close): glyph, size,
   round hit area and hover, so the map has one way to dismiss things. */
.mp-close{
  display:flex;align-items:center;justify-content:center;
  width:2.4rem;height:2.4rem;border-radius:var(--r-full);margin-right:-.6rem;
  border:none;background:none;color:var(--mg);cursor:pointer;font-size:1.2rem;line-height:1;
}
.mp-close:hover{background:var(--lwg);color:var(--dg);}
.mp-bulk{display:flex;gap:.5rem;margin:-.4rem 0 1rem;}
.mp-bulk button{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);
  background:none;border:1px solid var(--mwg);border-radius:var(--r-sm);padding:.25rem .7rem;cursor:pointer;
}
.mp-bulk button:hover{border-color:var(--dg);color:var(--dg);}
/* Three across, not four. Eight layers over three rows reads more calmly
   than two rows of four, and it puts the layer cards on the same tracks as
   the three map-style cards below — so the two grids line up instead of
   being two different rhythms in one popover. */
.mp-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:.9rem;}
@media (max-width:520px){ .mp-grid{grid-template-columns:repeat(2, 1fr);} }
/* No max-width any more: the styles row shares the layer grid's tracks. */
.mp-grid.styles{grid-template-columns:repeat(3, 1fr);}
.mp-subhead{margin:1.6rem 0 1rem;}

/* A card, not a checkbox row. The swatch block is the layer's own colour —
   the same token its geometry is drawn with — so the card doubles as the
   legend rather than needing a separate key. */
.mp-card{
  display:flex;flex-direction:column;align-items:stretch;gap:.55rem;
  background:none;border:none;padding:0;cursor:pointer;text-align:center;font:inherit;
}
.mp-thumb{
  height:5.4rem;border-radius:var(--r-md);border:2px solid transparent;
  box-shadow:0 0 0 1px var(--wg) inset;overflow:hidden;position:relative;
  background:var(--lwg);transition:border-color .12s, box-shadow .12s;
}
.mp-card:hover .mp-thumb{box-shadow:0 0 0 1px var(--mwg) inset;}
/* Chosen: one step down the grey ramp, matching the panel blocks — a preview
   shows the same geometry on the map but leaves this border alone. */
.mp-card[aria-pressed="true"] .mp-thumb{border-color:var(--mwg);}
/* Previewing: the swatch comes up to full strength like a chosen layer, but
   the border stays neutral, so the card never claims a choice was made. */
.mp-card.is-previewing .mp-swatch{opacity:1;}
.mp-card.is-previewing .mp-thumb{box-shadow:0 0 0 1px var(--mg) inset;}
.mp-swatch{position:absolute;inset:0;opacity:.5;}
.mp-card[aria-pressed="true"] .mp-swatch{opacity:1;}
.mp-swatch.split::before,.mp-swatch.split::after{content:'';position:absolute;top:0;bottom:0;width:50%;}
.mp-swatch.split::before{left:0;background:var(--hematite);}
.mp-swatch.split::after{right:0;background:var(--magnetite);}
.mp-swatch.split.is-deposit::before{background:var(--deposit-hematite);}
.mp-swatch.split.is-deposit::after{background:var(--deposit-magnetite);}
/* Line-type layers read as a stroke across the tile, not a solid block, so
   the card says what KIND of geometry the layer draws, not just its hue. */
.mp-swatch.line{background:none !important;opacity:1;}
.mp-swatch.line::after{
  content:'';position:absolute;left:12%;right:12%;top:50%;height:.28rem;transform:translateY(-50%);
  background:currentColor;border-radius:var(--r-full);
}
/* A layer can be switched ON and still draw nothing, because its source is
   scale-gated (the GA 1:1M geology returns blank tiles above ~1:1.5M). Left
   to itself that reads as a broken layer, so the card says so: the swatch
   drops back to its unchosen strength and the name is replaced by the zoom
   it needs. Nothing here changes what is on the map — only what the card
   admits about it. */
.mp-card.is-zoomgated .mp-swatch{opacity:.35;}
.mp-card.is-zoomgated .mp-thumb{border-style:dashed;}
.mp-zoomhint{font-size:1.05rem;line-height:1.25;color:var(--mg);font-style:italic;}
.mp-name{font-size:1.2rem;line-height:1.25;color:var(--mg);}
.mp-card[aria-pressed="true"] .mp-name{color:var(--dg);font-weight:500;}
.mp-thumb.style-light{background:linear-gradient(160deg,#F6F5F2 0%,#E8E6E1 100%);}
.mp-thumb.style-dark{background:linear-gradient(160deg,#2B2C30 0%,#111214 100%);}
.mp-thumb.style-satellite{background:linear-gradient(160deg,#5C6B45 0%,#8A7A55 55%,#3F4A34 100%);}

/* Infrastructure key — reference for the three symbology channels. Folded
   into this popover rather than given its own floating box, since the whole
   point of the control bar was to stop the map growing corners. */
.mp-key{margin-top:1.6rem;border-top:1px solid var(--wg);padding-top:1.1rem;}
.mp-key summary{
  display:flex;align-items:center;gap:.5rem;cursor:pointer;list-style:none;
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:500;font-size:1.2rem;line-height:1.6rem;
  letter-spacing:.09em;text-transform:uppercase;color:var(--mg);
}
.mp-key summary::-webkit-details-marker{display:none;}
.mp-key summary::after{content:'+';margin-left:auto;font-size:1.4rem;line-height:2rem;color:var(--mwg);}
.mp-key[open] summary::after{content:'\2013';}
.mp-key-group{margin-top:1.1rem;}
.mp-key-q{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-bottom:.5rem;
}
.mp-key-q b{color:var(--dg);font-weight:500;}
.mp-key-rows{display:grid;grid-template-columns:1fr 1fr;gap:.3rem 1rem;}
@media (max-width:520px){ .mp-key-rows{grid-template-columns:1fr;} }
.mp-key-row{display:flex;align-items:center;gap:.6rem;font-size:1.2rem;line-height:1.6rem;color:var(--dg);}
.mp-key-row svg{flex:0 0 auto;}

/* Toggle switch retained — the region-profile panel still uses it. */
.switch{position:relative;display:inline-block;width:3.2rem;height:1.8rem;flex:0 0 auto;}
.switch input{opacity:0;width:0;height:0;}
.switch .slider{position:absolute;inset:0;background:var(--mwg);border-radius:var(--r-full);cursor:pointer;transition:.15s;}
.switch .slider::before{content:'';position:absolute;width:1.4rem;height:1.4rem;left:.2rem;top:.2rem;background:var(--white);border-radius:50%;transition:.15s;}
.switch input:checked + .slider{background:var(--success-text);}
.switch input:checked + .slider::before{transform:translateX(1.4rem);}

/* ---------- markers ---------- */
/* Indicative-area / band label (Sep 2026).
   An area has no coordinate to pin, so it gets a centred disc rather than a
   marker — a teardrop inside an approximate zone would assert a precise
   location the data does not have. The label follows the basemap's own
   convention for areas (letterspaced, no box) and takes the zone's own hue,
   so shape and name read as one object.

   pointer-events:none throughout, deliberately: the GL zone fill underneath
   already carries the click handler and popup, so letting clicks pass
   straight through means there is only ever one of them. */
.gi-zone{
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
  pointer-events:none;user-select:none;
}
.gi-zone-disc{
  width:2.8rem;height:2.8rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--white);border:2px solid var(--white);
  box-shadow:0 1px 4px rgba(0,0,0,.3);
}
.gi-zone-label{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;
  /* Halo rather than a plate — a zone often sits over busy basemap, and a
     filled label box would add a second rectangle to an area that is
     already a shape. */
  text-shadow:0 0 3px var(--white), 0 0 3px var(--white), 0 0 6px var(--white);
}

/* Scenario / enabling-infrastructure pin (Sep 2026).
   Replaces a 6.4rem icon-in-a-circle. Two reasons beyond taste: a 64px disc
   centred on a coordinate is ambiguous about which pixel it means, and four
   Oakajee sites sit within ~2km of each other, so at scenario zoom the discs
   overlapped badly. A pin's tip marks the point exactly, and halving the
   size roughly quarters the area competing for the same space.

   Built as the classic rotated-square teardrop rather than an SVG path so
   the existing icon() helper can still be dropped straight inside. The
   square's un-rounded bottom-left corner becomes the tip once rotated -45deg,
   which is why the marker is anchored 'bottom' in plotSitesData. */
.gi-pin{
  width:3.2rem;height:3.2rem;
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  /* 1.5px (Nov 2026, Scott: lighter than 2px); the dashed not-built
     outline stays 2px so its dashes still read. */
  border:1.5px solid var(--white);
  box-shadow:0 2px 6px rgba(0,0,0,.35);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}
/* Counter-rotate the glyph so it sits upright in a rotated container. */
.gi-pin > *{transform:rotate(45deg);display:flex;}
.gi-pin:hover{filter:brightness(1.12);}
/* Proposed: dashed edge, hollow centre. Reads as "planned" at a glance
   without needing a second colour on an already-full wheel. */
.gi-pin.is-proposed{border-style:dashed;border-width:2px;}
/* Town-level position (register names a town, not a site): round, not
   pointed, with a dotted ring — "somewhere around here". */
/* (Nov 2026) Town-only keeps the teardrop, drawn hollow, so it reads as the
   same kind of thing with an uncertain position; the halo carries the doubt. */
/* Shape = kind of thing (Nov 2026): a pin is a specific site (projects and
   ports); a square badge with the building icon is an industrial area (SIA),
   whose name sits on the estate itself at city zoom. */
/* Research and training: a round badge, so it reads as neither a site pin
   nor an industrial area (Nov 2026). */
.gi-pin.is-round{border-radius:50%;transform:none;width:2.8rem;height:2.8rem;}
.gi-pin.is-round > *{transform:none;}
.gi-pin.is-square{border-radius:4px;transform:none;width:2.4rem;height:2.4rem;}
.gi-pin.is-square > *{transform:none;}
.gi-pin-wrap.is-square .gi-pin-label{top:1.2rem;}
/* Pin-sized (Nov 2026): a 2.8rem square has about the area of the 3.2rem
   pin head, so the two read as the same weight. */
.gi-pin.is-area{border-radius:5px;transform:none;width:2.8rem;height:2.8rem;}
.gi-pin.is-area > *{transform:none;}
.gi-pin-wrap.is-area .gi-pin-label{top:1.4rem;}
/* SIA chip and area answer each other (Nov 2026): hovering either lights both. */
.gi-marker-root.is-area-hover .gi-pin-label{display:block;font-weight:500;}
.gi-marker-root.is-area-hover .gi-pin.is-area{transform:scale(1.25);}
/* From city zoom the estate's name sits on the area itself (sia-label), so
   the chip and its label step aside rather than cover the zones. */
.sia-on-area .gi-marker-root.is-sia-chip{display:none !important;}
.gi-marker-root.xp-only-hidden{display:none !important;}
.gi-pin-wrap.is-approx::before{
  content:'';position:absolute;left:50%;top:1.6rem;width:5.6rem;height:5.6rem;
  margin:-2.8rem 0 0 -2.8rem;border-radius:50%;
  border:1.5px dotted var(--mg);opacity:.8;pointer-events:none;
}
/* Bubbles follow the pins: hollow with a dashed edge until it is operating.
   A proposed deposit still gets its type colour, so you can see WHAT it is
   without being told it exists. */
.gi-bubble.gi-flat:not(.gi-unbuilt){border:none;box-shadow:0 0 0 1px #fff;}
.gi-bubble.gi-flat:not(.gi-unbuilt):hover{box-shadow:0 0 0 1px #fff,0 1px 4px rgba(0,0,0,.35);}
.gi-bubble.gi-unbuilt{border-style:dashed !important;border-width:2px !important;background:transparent !important;}
/* What exists sits above what is planned. A picked pin still beats both. */
/* A hovered pin comes to the front, so its label is never printed behind a
   neighbour — at Port Hedland the pins overlap and the labels were being
   covered by whichever pin happened to be drawn later. */
.gi-marker-root:hover{z-index:8;}
.gi-marker-root.is-built-pin{z-index:3;}
.gi-marker-root.is-proposed-pin{z-index:1;}
/* Two ports share a coordinate in GA's data (Herb Elliott / Port Hedland),
   so a pin occasionally stands for more than one record. */
.gi-pin-wrap{position:relative;display:block;}
/* Story pin treatment (explainerPinStyle, 19 Nov 2026). */
body[data-xppinbig] .gi-marker-root > .gi-pin-wrap{zoom:var(--xp-pin-scale, 1);}
body[data-xppinbig] .gi-marker-root.is-stacked .gi-pin-wrap::after{display:none;}
body[data-xppindrop] .gi-marker-root > .gi-pin-wrap{animation:xp-pin-drop .55s cubic-bezier(.25,1.5,.45,1) var(--xp-drop-delay, 0ms) both;}
@keyframes xp-pin-drop{0%{opacity:0;transform:translateY(-3.2rem);}60%{opacity:1;}100%{opacity:1;transform:none;}}
@media (prefers-reduced-motion: reduce){ body[data-xppindrop] .gi-marker-root > .gi-pin-wrap{animation:none;} }
/* Deposits grow out of the ground (20 Nov 2026, Scott: "growing, not
   dropping in, as they are in the ground"): hidden while the camera flies,
   then each swells up at its own moment once it lands. See explainerGrow(). */
/* bubbleEdge: deposits drawn with a black edge, to match the ore boxes in
   the iron flow beside them (20 Nov 2026, Scott). Inline styles set the
   usual white edge, hence !important. */
body[data-xpbubbleedge] .gi-marker-root > .gi-bubble{border:1.5px solid #000 !important;box-shadow:none !important;}
body[data-xpgrowwait] .gi-marker-root > .gi-bubble,
body[data-xpgrowwait] .gi-marker-root > .gi-bubble-label{opacity:0;}
body[data-xpgrow] .gi-marker-root > .gi-bubble{animation:xp-grow .9s cubic-bezier(.2,1.25,.4,1) var(--xp-grow-delay, 0ms) both;}
body[data-xpgrow] .gi-marker-root > .gi-bubble-label{animation:xp-fade .4s calc(var(--xp-grow-delay, 0ms) + .5s) both;}
@keyframes xp-grow{0%{opacity:0;transform:scale(0);}35%{opacity:1;}100%{opacity:1;transform:scale(1);}}
@keyframes xp-fade{from{opacity:0;}to{opacity:1;}}
@media (prefers-reduced-motion: reduce){ body[data-xpgrow] .gi-marker-root > .gi-bubble, body[data-xpgrow] .gi-marker-root > .gi-bubble-label{animation:none;} }
/* Offset pins draw a short leader down to the point they belong to, so the
   stack reads as one location rather than several. */
.gi-marker-root.is-stacked .gi-pin-wrap::after{
  content:'';position:absolute;left:50%;top:100%;
  width:1px;height:30px;margin-left:-.5px;
  background:var(--mg);opacity:.45;
}
/* Pin label. Hidden until the map is zoomed in far enough for the names not
   to collide — at state scale 18 labels on a coastline is a grey smear.
   Vertically centred on the pin's BODY, not its tip: the wrap is anchored
   bottom, so 50% of the wrap would sit at the point rather than beside the
   circle. */
.gi-pin-label{
  position:absolute;left:calc(100% + .5rem);top:1.6rem;transform:translateY(-50%);
  display:none;white-space:nowrap;pointer-events:none;
  font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--black);
  /* White halo around black text rather than a filled pill — a pill punches a
     rectangle out of the map behind it, and with 18 of them that reads as
     clutter. Eight offset shadows, not -webkit-text-stroke: a centred stroke
     eats into the letterform and thins Soehne noticeably at 12px, where a
     halo sits entirely outside it. Same trick as the GL layers' text-halo. */
  text-shadow:
    -1px -1px 0 #fff,  1px -1px 0 #fff,
    -1px  1px 0 #fff,  1px  1px 0 #fff,
    -1px  0   0 #fff,  1px  0   0 #fff,
     0   -1px 0 #fff,  0    1px 0 #fff;
}
.pins-labelled .gi-pin-label{display:block;}
/* A chosen or hovered pin keeps its label whatever the zoom — you asked for
   that one by name, so it should say its name. */
.gi-marker-root.is-picked .gi-pin-label,
.gi-marker-root:hover .gi-pin-label{display:block;z-index:2;}
.gi-marker-root.is-muted .gi-pin-label{display:none;}
.gi-pin-count{
  position:absolute;top:-.4rem;right:-.4rem;z-index:1;
  min-width:1.6rem;height:1.6rem;padding:0 .3rem;border-radius:var(--r-full);
  background:var(--black);color:#fff;border:1.5px solid var(--white);
  font-size:1rem;line-height:1.3rem;font-weight:500;
  display:flex;align-items:center;justify-content:center;
}


/* Chip (Values) view — fixed-size readable number, doesn't resize with zoom. */
.gi-chip{
  display:flex;align-items:center;justify-content:center;
  min-width:2.6rem;height:2.6rem;padding:0 .6rem;border-radius:var(--r-full);
  color:#fff;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;
  border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.35);cursor:pointer;
  white-space:nowrap;
}
/* Bubble (Bubbles) view — area scales with sqrt(value), resizes with zoom via a scale factor. */
.gi-tri{cursor:pointer;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.25));}
.gi-tri:hover{filter:drop-shadow(0 1px 3px rgba(0,0,0,.45));}
.gi-bubble{
  border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:pointer;
}
.gi-bubble-label{
  position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:.3rem;
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;color:var(--dg);
  background:rgba(255,255,255,.85);padding:0 .3rem;border-radius:var(--r-sm);white-space:nowrap;
  pointer-events:none;
}
.gi-nodata{opacity:.5;border-style:dashed;}
/* No-data marker in Values view: a small solid dot, not a wide "n/a" pill —
   see the comment at its call site for why. Still fully opaque/clickable;
   the "not published" wording lives in the hover tip and click popup. */
.gi-dot{
  width:1.1rem;height:1.1rem;border-radius:50%;
  border:1.5px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.3);cursor:pointer;
}

/* ---------- popups ---------- */
/* Over every pin (a hovered pin is 8) and the story's words and charts (5),
   so no bubble covers its own tip; under the panels and bars (10 up). */
.maplibregl-popup.hover-tip{z-index:9;pointer-events:none;}
.maplibregl-popup.hover-tip .maplibregl-popup-content{pointer-events:none;}
.hover-tip .hover-who{color:var(--mg);font-weight:400;}
.hover-tip .maplibregl-popup-content{
  padding:.5rem .8rem;border-radius:var(--r-sm);font-size:1.2rem;line-height:1.6rem;box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.maplibregl-popup-content{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;border-radius:var(--r-md);padding:1.2rem 1.4rem;
}
.popup-title{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:1.4rem;line-height:2rem;color:var(--dg);margin-bottom:.6rem;}
/* Marker glyph in front of a popup/card title — a round chip in the layer
   colour, the same glyph and hue as the pin that was clicked. */
/* The title becomes a flex row so the chip centres on the text's line box
   rather than hanging off the baseline. Text stays a plain node, so
   long names still wrap under themselves. */
.popup-title:has(.popup-ico){display:flex;align-items:center;gap:.6rem;}
.popup-ico{
  display:inline-flex;align-items:center;justify-content:center;
  width:2rem;height:2rem;border-radius:var(--r-full);
  color:#fff;flex:0 0 auto;
}
.popup-multi .popup-ico{width:1.6rem;height:1.6rem;}
.popup-multi .popup-ico svg{width:11px;height:11px;}
.popup-sub{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin:-.4rem 0 .6rem;}
.popup-row{display:flex;justify-content:space-between;gap:1rem;padding:.25rem 0;font-size:1.2rem;line-height:1.6rem;border-bottom:1px solid var(--wg);}
.popup-row:last-of-type{border-bottom:none;}
.pk{color:var(--mg);}
.pv{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;color:var(--dg);text-align:right;}
.popup-source{margin-top:.7rem;font-size:1.2rem;line-height:1.6rem;color:var(--mg);font-style:italic;}
.popup-multi{margin-top:.9rem;padding-top:.9rem;border-top:1px dashed var(--mwg);}
.popup-multi .popup-title{font-size:1.2rem;line-height:1.6rem;}

/* ---------------------------------------------------------------------
   LHS panel v3 (2 Sep 2026) — genuinely new classes only. Everything
   else the prototype uses (.rp-tabs/.rp-tab, .rp-badge, .rp-tags/.rp-tag,
   .fac-list/.fac-row/.fac-name/.fac-badge/.badge-*, .wal-card and
   friends, .mstats/.stat-tile, .lucide-icon, .rp-scenario-tech-toggle,
   .rp-back) is already defined above from the old panel and other tabs —
   same design system, reused rather than redeclared. Scoped under
   .rpv3 so none of this can leak onto any other part of the app. --------
--------------------------------------------------------------------- */
.rpv3 .section{padding:1rem 0;border-top:1px solid var(--wg);position:relative;}
.rpv3 .section:first-of-type{border-top:none;padding-top:0;}
/* The snapshot tiles sit under the intro with no rule between them; the
   gap above comes from the intro's own margin, the gap below from .mstats. */
.rpv3 .section-snapshot{border-top:none;padding-top:0;}
/* Region intro: three lines, with Read more sitting at the end of the third
   line over a short fade. Expanded, the same control flows after the text
   as Read less. rpv3Bind() hides it when the clamp cuts nothing. */
.rpv3 .rp-desc{position:relative;font-size:1.4rem;line-height:1.55;color:var(--dg);margin-bottom:1.4rem;}
.rpv3 .rp-desc.is-clamped{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.rpv3 .rp-readmore{
  display:inline;padding:0;margin:0 0 0 .35em;border:none;background:none;cursor:pointer;
  font:inherit;font-size:1.4rem;line-height:1.55;color:var(--mg);text-decoration:underline;text-underline-offset:.2em;
}
.rpv3 .rp-readmore:hover{color:var(--dg);}
.rpv3 .rp-desc.is-clamped .rp-readmore{
  position:absolute;right:0;bottom:0;margin:0;padding-left:4rem;
  background:linear-gradient(90deg, rgba(255,255,255,0), var(--white) 45%);
}
.rpv3 .rp-readmore[hidden]{display:none;}
.rpv3 .section-head{display:flex;align-items:center;gap:.7rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.6rem;line-height:2.4rem;font-weight:500;color:var(--dg);margin:0 0 1rem;}
/* Collapsible sections (Sep 2026). A region profile is a long read and most
   visits want one part of it, so sections start closed and the reader opens
   what they came for. <details> rather than a JS accordion: keyboard support
   and find-in-page come free. */
.rpv3 details.section > summary.section-head{
  cursor:pointer;list-style:none;margin:0;
  /* Below the region tabs, whose height is measured after each render —
     two sticky layers, so the section header cannot hide behind the tabs. */
  position:sticky;top:calc(var(--rp-tabs-h, 0px) - 1.4rem);z-index:2;
  background:var(--white);
  padding:1rem 2rem .6rem;margin:-1rem -2rem 0;
}
/* Only while the section is open — a closed header has nothing to pin, and
   nine sticky headers stacking up as you scroll is worse than none. */
.rpv3 details.section:not([open]) > summary.section-head{
  position:static;padding:0;margin:0;
}
/* A hairline that only shows once the header is actually stuck, so it reads
   as a divider from the scrolled content rather than a permanent rule. */
.rpv3 details.section[open] > summary.section-head::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:1px;
  background:var(--wg);opacity:0;transition:opacity .12s ease;
}
.rpv3 details.section[open].is-stuck > summary.section-head::after{opacity:1;}
.rpv3 details.section > summary.section-head::-webkit-details-marker{display:none;}
.rpv3 details.section[open] > summary.section-head{margin-bottom:1rem;}
/* Chevron matched to the news/work filter groups (Filter/FilterGroup.vue):
   a round ghost target that picks up a black/5 pill on hover, chevron down
   when closed and up when open, and a label that DARKENS rather than taking
   the accent — the orange there was inventing a hover colour the rest of the
   site does not use. 180deg on a down-chevron is an up-chevron, so one icon
   covers both states. */
.rpv3 .section-caret{
  margin-left:auto;margin-right:-.6rem;
  width:3.2rem;height:3.2rem;flex:0 0 auto;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--mg);
  transition:transform .15s ease, background-color .12s ease;
}
.rpv3 details.section[open] .section-caret{transform:rotate(180deg);}
.rpv3 details.section > summary.section-head{color:var(--dg);transition:color .12s ease;}
.rpv3 details.section > summary.section-head:hover{color:var(--black);}
.rpv3 details.section > summary.section-head:hover .section-caret{background:rgba(0,0,0,.05);}
.rpv3 details.section > summary.section-head:active .section-caret{background:rgba(0,0,0,.05);}
.rpv3 details.section > summary.section-head:focus-visible{outline:2px solid var(--dg);outline-offset:3px;border-radius:var(--r-sm);}
/* Keyline under the region tab row, so the three regions read as a fixed
   switcher rather than floating above the content. */
.rpv3 .rp-tabs.rp-tabs-regions{
  border-bottom:1px solid var(--wg);margin-bottom:1.4rem;
  position:sticky;top:-1.4rem;z-index:4;background:var(--white);
  /* Bleed to the panel edges — .rp-body pads 2rem, and without this the
     scrolled content shows through the gutter beside the tabs. */
  margin-left:-2rem;margin-right:-2rem;padding:1.4rem 2rem 0;
  margin-top:-1.4rem;
}
/* Divides the two halves of a combined section — quieter than a section
   break, since both halves are answering the same question. */
.rpv3 .section-split{border-top:1px solid var(--wg);margin:1.4rem 0;}

/* Grid networks. Hovering one lifts it on the map and pushes the other
   back — the first of the panel↔map links, so the pattern is worth getting
   right: the row is the control, the dot is the shared key between the two
   surfaces, and nothing moves on hover except emphasis. */
.rpv3 .grid-net{
  display:block;width:100%;text-align:left;background:none;border:none;font:inherit;
  padding:1rem 1.1rem;margin:0 0 .8rem;border-radius:var(--r-lg);
  border:1px solid var(--wg);cursor:default;
  transition:border-color .12s ease, background-color .12s ease;
}
.rpv3 .grid-net:hover{background:var(--lwg);}
/* A block that drives a layer is a switch, so it says so. */
.rpv3 .grid-net[data-infra]{cursor:pointer;}
/* On: one step down the grey ramp from idle. Hover no longer touches the
   border, so this is the only thing that moves it. */
.rpv3 .grid-net.is-on{border-color:var(--mwg);}
/* Previewing: visible on the map, but not chosen — a dashed edge says the
   state is temporary and goes away when the cursor does. */
.rpv3 .grid-net.is-previewing{border-color:var(--mg);border-style:dashed;}
.rpv3 .grid-net-head{display:flex;align-items:center;gap:.7rem;}
.rpv3 .grid-net-dot{
  width:1.2rem;height:1.2rem;border-radius:50%;flex:0 0 auto;
  /* 0.5px black keyline sitting outside the fill (1rem = 10px here, so
     .05rem). Replaces a soft 3px halo — now the fills are lighter, a
     hairline defines the circle where the halo only blurred it. */
  box-shadow:0 0 0 .05rem var(--black);
}
/* text-sm / font-medium — a sub-heading inside a section, so it sits
   below the section head (text-base / bold) rather than above it. */
.rpv3 .grid-net-name{font-size:1.4rem;line-height:2rem;font-weight:500;color:var(--dg);}
.rpv3 .grid-net-full{
  font-size:1.2rem;line-height:1.6rem;color:var(--mg);
  /* Pushed to the end of the title row: the acronym is the label and the
     expansion is the gloss, so they belong on one line rather than stacked
     as if the second were a subtitle of equal weight. */
  margin-left:auto;text-align:right;
}
.rpv3 .grid-net-note{font-size:1.4rem;line-height:2rem;color:var(--dg);margin-top:.7rem;}
/* Named members of a block. Hairline-separated rather than boxed — they are
   part of the block, not five more blocks. Same left-label / right-gloss
   rhythm as the block's own head row, one step down the type scale. */
/* Group heading inside a block — small, quiet, and carrying its own hint so
   the reader knows which of the two lists is wired to the map. */
/* Segmented control inside a block. Same pill language as the scenario
   toggles elsewhere in this panel, one step smaller. */
.rpv3 .grid-net-tabs{display:flex;align-items:center;gap:.3rem;margin-top:1.2rem;}
.rpv3 .grid-net-tab{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-size:1.2rem;line-height:1.6rem;font-weight:500;
  border:none;background:none;color:var(--mg);
  padding:.3rem .8rem;border-radius:var(--r-full);cursor:pointer;
  transition:background-color .12s ease, color .12s ease;
}
.rpv3 .grid-net-tab:hover{background:var(--wg);}
.rpv3 .grid-net-tab.is-active{background:var(--wg);color:var(--dg);}
.rpv3 .grid-net-tabhint{margin-left:auto;font-size:1.2rem;line-height:1.6rem;color:var(--mwg);}
.rpv3 .grid-net-tabs + .grid-net-list{margin-top:.5rem;}
.rpv3 .grid-net-grouplabel{
  display:flex;align-items:baseline;gap:.6rem;
  font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);
  margin-top:1.2rem;
}
.rpv3 .grid-net-grouphint{margin-left:auto;font-weight:400;color:var(--mwg);}
.rpv3 .grid-net-grouplabel + .grid-net-list{margin-top:.3rem;}
.rpv3 .grid-net-list{list-style:none;margin:.9rem 0 0;padding:0;border-top:1px solid var(--wg);}
.rpv3 .grid-net-item{
  display:flex;align-items:baseline;gap:.7rem;
  padding:.55rem 0;border-bottom:1px solid var(--wg);
  transition:background-color .12s ease;
}
.rpv3 .grid-net-item:not(.is-inert){cursor:pointer;margin:0 -.5rem;padding-left:.5rem;padding-right:.5rem;}
.rpv3 .grid-net-item:not(.is-inert):hover{background:var(--lwg);}
/* The chosen estate. Just a wash — the row already sits between hairlines,
   so a rule and a radius on top of that was three treatments for one state. */
.rpv3 .grid-net-item.is-selected{background:var(--lwg);}
.rpv3 .grid-net-item-name{font-size:1.4rem;line-height:2rem;font-weight:500;color:var(--dg);}
.rpv3 .grid-net-item-sub{
  font-size:1.2rem;line-height:1.6rem;color:var(--mg);
  margin-left:auto;text-align:right;
  /* Fremantle lists 21 commodities. Cap the label so the value keeps most of
     the row, and let it wrap rather than run off the edge. */
  max-width:70%;
}
/* A block with nothing behind it on the map gets no hover affordance — an
   inviting row that does nothing when you hover it reads as a bug, and
   three of the five infrastructure types have no geometry loaded yet. */
.rpv3 .grid-net.is-inert{cursor:default;}
.rpv3 .grid-net.is-inert:hover{border-color:var(--wg);background:none;}
/* Hollow key. Strategic Industrial Areas are places, not networks, and the
   colour wheel is already carrying 13 data hues — so rather than squeeze in
   a 14th, SIAs take the same white-dot-with-black-keyline the WA Government
   SIA maps use, which is what a reader coming from those documents expects. */
.rpv3 .grid-net-dot.is-hollow{background:#fff;}
/* ---- pathway explainer: cover ---- */
/* Reads as a title card, not as stop zero. Vertically centred in the panel
   and set a step up from the stops, so arriving feels like the start of
   something rather than the middle of it. */
.rpv3 .pw-cover{
  display:flex;flex-direction:column;align-items:flex-start;
  min-height:34rem;justify-content:center;padding:1.2rem 0;
}
.rpv3 .pw-cover-eyebrow{
  font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);
  margin-bottom:1.2rem;
}
/* text-2xl / bold — one step above the panel title, since this is the only
   thing on screen. */
.rpv3 .pw-cover-title{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-size:2.4rem;line-height:3.2rem;font-weight:700;color:var(--dg);margin:0 0 1.2rem;
}
.rpv3 .pw-cover-lede{font-size:1.6rem;line-height:2.4rem;color:var(--dg);margin:0 0 1rem;}
.rpv3 .pw-cover-body{font-size:1.4rem;line-height:2rem;color:var(--mg);margin:0 0 2rem;}
.rpv3 .pw-start{align-self:flex-start;padding:.9rem 1.6rem;}
.rpv3 .pw-cover-meta{font-size:1.2rem;line-height:1.6rem;color:var(--mwg);margin-top:1.2rem;}

/* ---- pathway explainer panel ---- */
/* Phase rail. Phases are labelled and their stops are dots, so the reader can
   see the shape of the argument before reading any of it. The dot and
   progress bar styles are shared with the immersive rail, further down. */
.rpv3 .pw-rail{
  display:flex;gap:1.2rem;align-items:flex-end;
  overflow-x:auto;scrollbar-width:none;
  margin:.4rem -2rem 1.6rem;padding:0 2rem .8rem;
  border-bottom:1px solid var(--wg);
}
.rpv3 .pw-rail::-webkit-scrollbar{display:none;}
.rpv3 .pw-phase{flex:0 0 auto;}
.rpv3 .pw-phase-name{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-bottom:.4rem;white-space:nowrap;}
.rpv3 .pw-phase-dots{display:flex;gap:.2rem;align-items:center;height:2.4rem;}
/* Stop body. text-sm normal, same as every other body copy in this panel. */
.rpv3 .pw-count{margin-left:auto;color:var(--mwg);}
.rpv3 .rp-eyebrow{display:flex;align-items:baseline;}
.rpv3 .pw-prose{font-size:1.4rem;line-height:2rem;color:var(--dg);margin:0 0 1rem;}
.rpv3 .pw-prose:last-child{margin-bottom:0;}
/* Back / Next. Pinned to the foot of the stop rather than floating, so the
   reader always finishes a stop next to the way onward. */
.rpv3 .pw-nav{display:flex;gap:.6rem;margin-top:1.8rem;padding-top:1.4rem;border-top:1px solid var(--wg);}
.rpv3 .pw-btn{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:1.4rem;line-height:2rem;font-weight:500;
  padding:.6rem 1.2rem;border-radius:var(--r-md);
  border:1px solid var(--wg);background:var(--white);color:var(--dg);cursor:pointer;
}
.rpv3 .pw-btn:hover:not(:disabled){border-color:var(--mwg);}
.rpv3 .pw-btn.is-primary{background:var(--dg);border-color:var(--dg);color:var(--white);}
/* Next is primary only once the stop has finished, so it holds its place
   by itself rather than by being primary. */
.rpv3 .pw-btn[data-pw-next],
.rpv3 .pw-start{margin-left:auto;}
.rpv3 .pw-btn:disabled{opacity:.4;cursor:default;}

/* Pathway annotation card. Sits above the pins it labels, points at nothing
   with a tail — the offset is small enough that the association is obvious
   and a tail would just add clutter at three cards a stop. */
.pw-anno{
  max-width:22rem;pointer-events:none;
  background:var(--white);border:1px solid var(--wg);border-radius:var(--r-lg);
  box-shadow:0 2px 10px rgba(0,0,0,.14);
  padding:.7rem .9rem;
}
.pw-anno-title{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-size:1.4rem;line-height:2rem;font-weight:500;color:var(--dg);
}
.pw-anno-body{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.1rem;}
/* Dark label (trial, 19 Nov 2026): black box, white text, the insight only. */
.pw-anno.is-dark{background:var(--black);border-color:var(--black);padding:.5rem .8rem;}
.pw-anno-insight{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-size:1.3rem;line-height:1.8rem;font-weight:500;color:var(--white);
}
/* With terrain on, MapLibre fades any marker it judges to be behind a hill,
   and on a tilted stop it misjudges coastal points: Boodarie's card and both
   South West cards rendered at a fifth of their opacity. A card or a figure
   placed by a stop is meant to be read, so it never fades. */
.pw-anno, .xp-label{opacity:1 !important;}
/* Callout: a zero-size marker at the point; the card and arrow hang off it. */
.pw-callout{width:0;height:0;position:relative;pointer-events:none;opacity:1 !important;}
.pw-callout-line{position:absolute;left:0;top:0;overflow:visible;}
.pw-callout-line line, .pw-callout-line polyline{fill:none;stroke:var(--dg);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.pw-callout-card{position:absolute;transform:translate(-50%,-50%);white-space:normal;width:max-content;max-width:20rem;}
/* A stop's own key, bottom right above the story rail. */
.xp-key{
  position:fixed;right:1.6rem;bottom:calc(var(--pwx-rail-h, 7.2rem) + 2.4rem);z-index:30;
  display:flex;flex-direction:column;gap:.45rem;max-width:26rem;
  background:var(--white);border:1px solid var(--wg);border-radius:var(--r-lg);
  box-shadow:0 2px 10px rgba(0,0,0,.12);padding:.8rem 1rem;
  font-size:1.2rem;line-height:1.6rem;color:var(--dg);
}
.xp-key[hidden], body:not(.is-immersive) .xp-key{display:none;}
.xp-key-row{display:flex;align-items:center;gap:.7rem;}
.xp-key-row svg{flex:0 0 auto;}

/* ---- immersive explainer (concept, Sep 2026) ----
   The explainer leaves the left panel and takes the whole frame: a title
   card set large over the map, then each stop's story at the left with the
   stop navigation pinned to a rail along the bottom. The panel and the zoom
   buttons go — the explainer drives the camera — but the layers button stays
   for exploring. See PATHWAY_IMMERSIVE to switch back to the panel version. */
:root{
  --pwx-accent:#5551FF;   /* TSI brand accent — was the same as --sw-combined until Nov 2026; used here as UI, not data */
  --pwx-rail-h:7.2rem;
}
body.is-immersive .panel,
body.is-immersive .panel-hide-btn,
body.is-immersive .panel-show-btn{display:none !important;}
body.is-immersive .mapbar-group:has(#mapbar-zoom-in){display:none;}

.pwx{position:absolute;inset:0;z-index:5;pointer-events:none;}
.pwx[hidden]{display:none;}
/* Readability over whatever the map shows beneath the text. Light by default,
   dark over the Dark and satellite basemaps — see data-mapstyle in applyMapStyle(). */
.pwx-scrim{
  position:absolute;top:0;bottom:0;left:0;width:var(--pwx-scrim-w, 60%);
  background:linear-gradient(90deg, rgba(250,249,246,.95) 0%, rgba(250,249,246,.88) 52%, rgba(250,249,246,0) 100%);
}
.pwx-hero,.pwx-story,.pwx-rail{pointer-events:auto;}

.pwx-hero{position:absolute;left:4.8rem;top:clamp(3rem, 8vh, 8rem);width:min(62rem, 46vw);}
.pwx-eyebrow{font-size:1.4rem;line-height:2rem;font-weight:500;color:var(--pwx-accent);margin:0 0 2rem;}
.pwx-title{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-weight:700;font-size:clamp(3.2rem, 4.2vw, 8rem);line-height:1.04;letter-spacing:-.02em;
  color:var(--black);margin:0 0 2.4rem;
}
.pwx-lede{font-size:clamp(1.5rem, 1.15vw, 1.9rem);line-height:1.5;color:var(--dg);margin:0 0 3.2rem;max-width:56rem;}
.pwx-start{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-size:1.5rem;line-height:2rem;font-weight:500;color:var(--black);
  background:var(--white);border:none;border-radius:var(--r-md);padding:1.3rem 3.2rem;cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,.12);transition:box-shadow .15s ease, transform .15s ease;
}
.pwx-start:hover{box-shadow:0 6px 20px rgba(0,0,0,.18);transform:translateY(-1px);}

/* Video cover (19 Nov 2026, Scott's Figma): a centred card on blue-100 at
   95% over the whole frame, the map's networks faint behind it, sized off the 1440px slide (title 60px, lede 24px
   Newsreader, icon 182px, black button). */
.pwx-cover-card{position:absolute;inset:0;background:rgba(231,233,255,.95); /* blue-100 #E7E9FF */pointer-events:auto;display:flex;align-items:center;justify-content:center;padding:3.2rem;overflow:auto;}
.pwx .pwx-hero.is-centred{position:static;width:min(62.8rem, 100%);display:flex;flex-direction:column;align-items:center;gap:2.4rem;text-align:center;}
.pwx-hero.is-centred .pwx-cover-icon{display:block;width:clamp(10rem, 12.6vw, 18.2rem);height:auto;}
.pwx-hero.is-centred .pwx-title{font-weight:600;font-size:clamp(3.2rem, 4.17vw, 6rem);line-height:1;letter-spacing:0;margin:0;color:#000;}
.pwx-hero.is-centred .pwx-lede{font-family:'Newsreader',Georgia,serif;font-size:clamp(1.7rem, 1.67vw, 2.4rem);line-height:1.333;color:#000;margin:0;max-width:none;}
.pwx-hero.is-centred .pwx-start{background:#000;color:#fff;font-size:1.4rem;line-height:2rem;font-weight:500;letter-spacing:.028rem;min-width:14.5rem;padding:1.2rem 1.6rem;border-radius:var(--r-md);box-shadow:none;}
.pwx-hero.is-centred .pwx-start:hover{background:#262626;box-shadow:none;}
/* One-line frames (v6): the sentence is the headline; a side note, when
   there is one, sits under a rule in the serif. */
.pwx-story.is-line{width:min(52rem, 40vw);scrollbar-width:none;}
body[data-xpinklight] .pwx-line,body[data-xpinklight] .pwx-subline,body[data-xpinklight] .pwx-aside,body[data-xpinklight] .pwx-story-eyebrow{color:var(--white);text-shadow:0 1px 14px rgba(0,0,0,.45);}
body[data-xpinklight] .pwx-subline,body[data-xpinklight] .pwx-aside{border-top-color:rgba(255,255,255,.7);}
body[data-xpnozonelabels] .gi-zone-label{display:none;}
body[data-xphidemuted] .gi-marker-root.is-muted{display:none;}
body[data-xpnopinlabels] .gi-pin-label{display:none !important;}
body[data-xpnozones] .gi-zone{display:none !important;}
.pw-anno.is-nowrap{white-space:nowrap;max-width:none !important;width:max-content;}
/* A place label on a pin (pin:true): no dot of its own (27 Nov 2026). */
.xp-place.is-pin .xp-place-t{margin:0;}
/* v8 (20 Nov 2026, Scott): every sentence in one size, no rule between. */
body[data-xpeven] .pwx-line,body[data-xpeven] .pwx-subline{font-size:clamp(2.2rem, 2.1vw, 3.2rem);line-height:1.15;letter-spacing:-.01em;}
body[data-xpeven] .pwx-subline{border-top:none;padding-top:0;margin-top:1.6rem;}
/* A light black shade behind the words, over busy imagery. */
body[data-xpshade] .pwx-story.is-line{background:rgba(0,0,0,.45);padding:2.4rem 2.8rem;border-radius:var(--r-md);box-sizing:border-box;}
body[data-xpshade="light"] .pwx-story.is-line{background:rgba(255,255,255,.94);}
/* fade: black over the left of the frame, fading out to the right (Scott). */
body[data-xpshade="fade"] .pwx-story.is-line{background:none;padding:0;}
body[data-xpshade="fade"] .pwx::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.3) 48%, rgba(0,0,0,0) 62%);animation:xp-fade-in .6s ease both;}
@keyframes xp-fade-in{from{opacity:0;}to{opacity:1;}}
/* A list inside a step, in the step's type (v8 Mid West). */
.pwx-bullets{list-style:disc;margin:1.2rem 0 0;padding-left:2.6rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:600;font-size:clamp(2.2rem, 2.1vw, 3.2rem);line-height:1.2;color:var(--black);}
.pwx-bullets li{margin:.2rem 0;}
/* The speaker's photo on a quote card; the PNG is cut out, so it sits on a
   solid disc. */
.pwx-card-stop-photo{width:9.6rem;height:9.6rem;border-radius:50%;background:#e7e9ff;object-fit:cover;display:block;}
/* A quote on a title card: the words are the title, the speaker under. */
.pwx-card-stop-cite{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:500;font-size:1.5rem;line-height:1.4;color:#000;margin:0;}
.pwx-card-stop.is-dark .pwx-card-stop-cite{color:#d4d4d4;}
/* A second cite line sits tight under the name (27 Nov 2026). */
.pwx-card-stop-cite.is-2{font-weight:400;margin-top:-.2rem;}
/* The name above a second cite line is white on a dark card (27 Nov 2026). */
.pwx-card-stop.is-dark .pwx-card-stop-cite:has(+ .pwx-card-stop-cite.is-2){color:#fff;}
/* A card whose second sentence is in the big type gets a wider column. */
.pwx-card-stop.is-even .pwx-card-stop-inner{width:min(96rem, 92%);}
/* Quote cards as wide as the other big-type cards (27 Nov 2026). */
.pwx-card-stop.is-quote .pwx-card-stop-inner{width:min(96rem, 92%);}
/* even:true (27 Nov 2026 review): the body in the title's size, so the second
   sentence does not read as less important. */
.pwx-card-stop.is-even.is-even .pwx-card-stop-body{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:600;font-size:clamp(2.8rem, 3.4vw, 4.8rem);line-height:1.08;max-width:none;}
.pwx-card-stop.is-quote .pwx-card-stop-title{font-size:clamp(3rem, 3.6vw, 5.2rem);max-width:96rem;}   /* as wide as the other big-type cards (27 Nov 2026; was 64rem) */
body[data-xpannowait] .pw-callout{opacity:0;}
.pw-callout{transition:opacity .4s ease;}
body[data-xptrismall] .gi-tri svg{transform:scale(.6);}
body[data-xpdepink] .gi-bubble{background:var(--xp-dep-ink) !important;}
.pwx-story.is-line::-webkit-scrollbar{display:none;}
.pwx-line{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:600;font-size:clamp(2.6rem, 2.7vw, 4.2rem);line-height:1.1;letter-spacing:-.01em;color:var(--black);margin:.8rem 0 0;}
.pwx-line.is-long{font-size:clamp(2.2rem, 2.1vw, 3.2rem);line-height:1.15;}
.pwx-subline{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:600;font-size:clamp(1.8rem, 1.6vw, 2.4rem);line-height:1.25;color:var(--black);margin:3.2rem 0 0;padding-top:1.8rem;border-top:1px solid rgba(0,0,0,.6);}
/* Grid on/off switch, pinned to the plant (20 Nov 2026, Scott's concept). */
.xp-switch{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;background:#fff;border:1.5px solid #000;border-radius:1.2rem;padding:1rem 1.4rem 1.1rem;box-shadow:0 .4rem 1.6rem rgba(0,0,0,.12);cursor:pointer;user-select:none;min-width:21rem;}
.xp-switch-row{display:flex;align-items:center;gap:1rem;}
.xp-switch-name{font-size:1.5rem;font-weight:600;color:#000;flex:1 1 auto;white-space:nowrap;}
.xp-switch-track{position:relative;flex:0 0 auto;width:5.2rem;height:2.8rem;border-radius:1.4rem;background:#a3a3a3;transition:background .45s ease;border:0;padding:0;cursor:pointer;}
.xp-switch-knob{position:absolute;top:.3rem;left:.3rem;width:2.2rem;height:2.2rem;border-radius:50%;background:#fff;box-shadow:0 .1rem .3rem rgba(0,0,0,.3);transition:transform .45s cubic-bezier(.3,1.4,.5,1);}
.xp-switch.is-on .xp-switch-track{background:var(--infra-transmission);}
.xp-switch.is-on .xp-switch-knob{transform:translateX(2.4rem);}
.xp-switch-state{font-size:1.3rem;font-weight:600;width:2.6rem;color:#525252;}
.xp-switch-cost{margin-top:.7rem;padding-top:.7rem;border-top:1px solid #e5e5e5;font-size:1.3rem;color:#525252;white-space:nowrap;}
.xp-switch-cost b{display:block;font-size:2.4rem;line-height:1.1;font-weight:700;color:#000;font-variant-numeric:tabular-nums;}
@media (prefers-reduced-motion: reduce){.xp-switch-track,.xp-switch-knob{transition:none;}}
.xp-place{display:flex;align-items:center;gap:.6rem;pointer-events:none;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;}
.xp-place.is-left{flex-direction:row-reverse;}
.xp-place-dot{flex:0 0 auto;width:1.2rem;height:1.2rem;border-radius:50%;background:#fff;border:2px solid #000;}
.xp-place-t{font-size:1.4rem;line-height:1.2;font-weight:600;color:var(--black);background:rgba(255,255,255,.85);padding:.1rem .4rem;border-radius:var(--r-sm);white-space:nowrap;}
.pwx-em{font-weight:800;}
.pwx-kicker{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:500;font-size:1.5rem;line-height:1.4;color:var(--dg);margin:0 0 1.2rem;}
.pwx-lead{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:600;font-size:clamp(2rem, 1.9vw, 2.8rem);line-height:1.2;color:var(--black);margin:.8rem 0 0;}
.pwx-line.has-lead{margin-top:.2rem;}
/* The iron flow (20 Nov 2026): ore to green iron. Always two columns, so the
   DR route can slide from the left column to the right when the hematite
   route arrives beside it. Every box is one height. */
.xp-flow{display:grid;grid-template-columns:1fr 1fr;column-gap:1.2rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;margin-top:2.4rem;}
.xp-flow-box{box-sizing:border-box;height:7.6rem;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #a3a3a3;background:#fff;border-radius:.8rem;padding:.8rem 1.2rem;text-align:center;}
.xp-flow-box b{display:block;font-size:1.5rem;line-height:1.3;font-weight:600;color:var(--black);}
.xp-flow-box span{display:block;font-size:1.25rem;line-height:1.35;color:#737373;margin-top:.2rem;}
.xp-flow-box .xp-flow-note{font-style:normal;font-size:1.15rem;line-height:1.3;font-weight:500;color:#1e5e3f;margin-top:.3rem;}
/* Ore boxes take the map's deposit colours, with the same black edge. */
.xp-flow-box.is-mag{background:#a3a3a3;border:1.5px solid #000;}
.xp-flow-box.is-hem{background:#f59e0b;border:1.5px solid #000;}
.xp-flow-box.is-mag b,.xp-flow-box.is-hem b{color:#fff;}
.xp-flow-box.is-mag span,.xp-flow-box.is-hem span{color:#fff;}
.xp-flow-box.is-iron{background:#dcefe3;border-color:#25764d;}
/* The extra step, in black so it reads as the cost of hematite. */
.xp-flow-box.is-extra{background:#000;border-color:#000;}
.xp-flow-box.is-extra b{color:#fff;}
.xp-flow-box.is-extra span{color:#d4d4d4;}
/* steel:true (Catherine, 26 Nov 2026): the route runs on to the electric arc
   furnace and green steel, so every box and arrow is a little shorter. */
.xp-flow-box.is-eaf{background:#fff;border:1.5px solid #404040;}
.xp-flow-box.is-steel{background:#25764d;border-color:#25764d;}
.xp-flow-box.is-steel b{color:#fff;}
.xp-flow.is-steel{margin-top:1.2rem;}
.xp-flow.is-steel .xp-flow-box{height:auto;min-height:4rem;padding:.4rem 1rem;}
.xp-flow.is-steel .xp-flow-box .xp-flow-note{display:none;}
.xp-flow.is-steel .xp-flow-arrow{height:1.2rem;}
.xp-flow.is-steel .xp-flow-arrow::before{top:.1rem;bottom:.3rem;}
.xp-flow.is-steel .xp-flow-arrow::after{bottom:.1rem;}
.pwx-aside:has(+ .xp-flow.is-steel){margin-top:1.4rem;padding-top:1rem;}
.xp-flow.is-steel .xp-flow-arrow.is-long{height:auto;}
.xp-flow-arrow{position:relative;height:2.6rem;}
.xp-flow-arrow::before{content:'';position:absolute;left:50%;top:.3rem;bottom:.5rem;border-left:1.5px solid #404040;}
.xp-flow-arrow::after{content:'';position:absolute;left:50%;bottom:.3rem;width:.7rem;height:.7rem;border-right:1.5px solid #404040;border-bottom:1.5px solid #404040;transform:translateX(-50%) rotate(45deg);margin-left:.05rem;}
.xp-flow-arrow.is-long{height:auto;}
.xp-flow-arrow em{position:absolute;left:calc(50% + .8rem);top:50%;transform:translateY(-50%);font-style:normal;font-size:1.2rem;line-height:1.3;color:#737373;}
/* The build: DR slides right, the shared step widens under both, then the
   hematite route fades in and the smelter lands last. */
.xp-flow .is-slide{animation:xp-flow-slide .8s cubic-bezier(.6,0,.2,1) both;}
.xp-flow .is-widen{justify-self:start;animation:xp-flow-widen .8s cubic-bezier(.6,0,.2,1) both;}
.xp-flow .is-new{animation:pwx-in .45s .75s cubic-bezier(.2,.7,.3,1) both;}
.xp-flow .is-new-late{animation:pwx-in .45s 1.75s cubic-bezier(.2,.7,.3,1) both;}
.xp-flow .is-pop{animation:xp-flow-pop .7s 1.15s cubic-bezier(.2,1.6,.4,1) both;}
@keyframes xp-flow-slide{from{transform:translateX(calc(-100% - 1.2rem));}to{transform:none;}}
@keyframes xp-flow-widen{from{width:calc(50% - .6rem);}to{width:100%;}}
@keyframes xp-flow-pop{0%{opacity:0;transform:scale(.4);}60%{opacity:1;}100%{opacity:1;transform:scale(1);}}
@media (prefers-reduced-motion: reduce){ .xp-flow .is-slide,.xp-flow .is-widen,.xp-flow .is-new,.xp-flow .is-new-late,.xp-flow .is-pop{animation:none;} }
.pwx-aside{font-family:'Newsreader',Georgia,serif;font-size:1.7rem;line-height:1.45;color:var(--dg);margin:2.4rem 0 0;padding-top:1.6rem;border-top:1px solid rgba(0,0,0,.15);max-width:40rem;}
/* Title screens inside a story (v5): the cover's blue over the map, above
   the step rail. */
.pwx-card-stop{position:absolute;left:0;right:0;top:0;bottom:var(--pwx-rail-h);background:rgba(231,233,255,.9);pointer-events:auto;display:flex;align-items:center;justify-content:center;padding:3.2rem;overflow:auto;animation:pwx-in .45s cubic-bezier(.2,.7,.3,1) both;}
.pwx-card-stop-inner{width:min(72rem, 100%);display:flex;flex-direction:column;align-items:center;gap:2rem;text-align:center;}
.pwx-card-stop-title{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:600;font-size:clamp(2.8rem, 3.4vw, 4.8rem);line-height:1.08;color:#000;margin:0;}
.pwx-card-stop-body{font-family:'Newsreader',Georgia,serif;font-size:clamp(1.7rem, 1.5vw, 2.2rem);line-height:1.4;color:#000;margin:0;max-width:60rem;}
.pwx-card-stop-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem;margin-top:1.2rem;}
.pwx-card-btn{font:500 1.4rem/2rem 'Soehne',system-ui,sans-serif;letter-spacing:.028rem;border-radius:var(--r-md);padding:1.2rem 1.6rem;cursor:pointer;background:#fff;color:#000;border:1px solid #000;}
.pwx-card-btn.is-primary{background:#000;color:#fff;}
.pwx-card-btn:hover{background:#f5f5f5;}
.pwx-card-btn.is-primary:hover{background:#262626;}
@media (prefers-reduced-motion: reduce){ .pwx-card-stop{animation:none;} }
/* A lighter veil, so the map behind a title card reads (19 Nov 2026). */
.pwx-card-stop.is-clear{background:transparent;}
/* dark: the map from the step before, darkened, white type (20 Nov 2026, Scott) */
.pwx-card-stop.is-dark{background:rgba(0,0,0,.72);}
.pwx-card-stop.is-dark .pwx-card-stop-title{color:var(--white);}
.pwx-card-stop.is-dark .pwx-card-stop-body,.pwx-card-stop.is-sans .pwx-card-stop-body{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:600;font-size:clamp(1.8rem, 1.6vw, 2.4rem);line-height:1.3;}
.pwx-card-stop.is-dark .pwx-card-stop-body{color:var(--white);}
/* Text and chart top left over the map (Scott's Figma, 19 Nov 2026). */
.pwx-card-stop.is-left{align-items:flex-start;justify-content:flex-start;padding:clamp(4rem, 7vh, 9rem) 0 0 clamp(3.2rem, 5vw, 9.6rem);}
.pwx-card-stop.is-left .pwx-card-stop-inner{align-items:flex-start;text-align:left;width:min(64rem, 42vw);gap:3.2rem;}
.pwx-card-stop.is-left .pwx-card-stop-title{font-size:clamp(3rem, 2.9vw, 5.2rem);}
.pwx-card-stop.is-left .xp-chart{width:100%;}
/* The map's own controls sit above the overlay and are not needed here. */
body.pwx-card-cover #mapbar{visibility:hidden;}
@keyframes pwx-in{from{opacity:0;transform:translateY(.8rem);}to{opacity:1;transform:none;}}
.pwx-story{
  position:absolute;left:4.8rem;top:clamp(3rem, 6vh, 6rem);width:min(46rem, 38vw);
  max-height:calc(100% - var(--pwx-rail-h) - 7rem);overflow-y:auto;scrollbar-width:thin;
  animation:pwx-in .35s cubic-bezier(.2,.7,.3,1) both;
}
.pwx-hero{animation:pwx-in .45s cubic-bezier(.2,.7,.3,1) both;}
@media (prefers-reduced-motion: reduce){ .pwx-story,.pwx-hero{animation:none;} }
.pwx-story-eyebrow{font-size:1.3rem;line-height:2rem;font-weight:500;color:var(--pwx-accent);}
/* Hidden on every story for now (19 Nov 2026, Scott: "kill the blue label on
   everything"). Delete this rule to bring the section names back. */
.pwx-story-eyebrow{display:none;}
.pwx-story-title{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-weight:700;font-size:clamp(2.6rem, 2.5vw, 4.2rem);line-height:1.1;letter-spacing:-.015em;
  color:var(--black);margin:.6rem 0 1.8rem;
}
.pwx-prose{font-size:1.6rem;line-height:2.5rem;color:var(--dg);margin:0 0 1.2rem;}
.pwx-prose:last-child{margin-bottom:0;}

/* The rail. Stops right of it are the layers button, so it ends short of it. */
.pwx-rail{
  position:absolute;left:1.6rem;right:5.4rem;bottom:1rem;height:var(--pwx-rail-h);
  display:flex;align-items:center;gap:2rem;padding:0 1.2rem 0 .8rem;
  background:var(--white);border-radius:var(--r-xl);box-shadow:0 4px 24px rgba(0,0,0,.16);
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
}
.pwx-exit{
  flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  width:3.2rem;height:3.2rem;border-radius:var(--r-full);border:none;background:none;
  color:var(--mg);cursor:pointer;font-size:1.3rem;line-height:1;
}
.pwx-exit:hover{background:var(--lwg);color:var(--dg);}
.pwx-phases{display:flex;gap:2.4rem;align-items:flex-end;flex:0 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none;}
.pwx-phases::-webkit-scrollbar{display:none;}
.pwx-phase{flex:0 0 auto;}
.pwx-phase-name{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-bottom:.5rem;white-space:nowrap;}
.pwx-dots{display:flex;gap:.2rem;align-items:center;height:2.8rem;}
/* Stops are plain dots, filled once passed. The stop on screen is a bar in
   segments, one for its opening and one per beat, that fills as they play —
   numbered dots said where the reader was, but not that the map was still
   building, and readers pressed Next halfway through a stop. See
   explainerProgress(). Shared with the panel rail's .pw-dot. */
.pwx-dot,
.rpv3 .pw-dot{
  font-family:inherit;display:flex;align-items:center;justify-content:center;
  min-width:1.8rem;height:100%;padding:0;border:none;background:none;cursor:pointer;
}
.pwx-dot::before,
.rpv3 .pw-dot::before{
  content:'';box-sizing:border-box;width:.9rem;height:.9rem;border-radius:var(--r-full);
  border:1.5px solid var(--mwg);background:var(--white);
  transition:border-color .12s ease, background-color .12s ease;
}
.pwx-dot.is-seen::before,
.rpv3 .pw-dot.is-seen::before{background:var(--mwg);}
.pwx-dot:hover::before,
.rpv3 .pw-dot:hover::before{border-color:var(--dg);}
.pwx-dot.is-active,
.rpv3 .pw-dot.is-active{padding:0 .4rem;}
.pwx-dot.is-active::before,
.rpv3 .pw-dot.is-active::before{display:none;}
.xp-prog{display:flex;gap:2px;width:var(--xp-prog-w, 2.4rem);height:.8rem;}
.xp-prog-seg{flex:1 1 0;min-width:0;background:var(--wg);overflow:hidden;transition:background-color .12s ease;}
.xp-prog-seg:first-child{border-radius:var(--r-full) 0 0 var(--r-full);}
.xp-prog-seg:last-child{border-radius:0 var(--r-full) var(--r-full) 0;}
.xp-prog-seg:only-child{border-radius:var(--r-full);}
.pwx-dot:hover .xp-prog-seg,
.rpv3 .pw-dot:hover .xp-prog-seg{background:var(--mwg);}
.xp-prog-fill{display:block;height:100%;background:var(--pwx-accent);transform-origin:left center;transform:scaleX(0);}
.xp-prog-fill.is-full{transform:none;}
/* Duration and delay are set inline from the stop's beat times, the delay
   negative when the rail is redrawn part-way through. */
.xp-prog-fill.is-running{animation-name:xp-prog-fill;animation-timing-function:linear;animation-fill-mode:both;}
@keyframes xp-prog-fill{from{transform:scaleX(0);}to{transform:none;}}
/* Reduced motion: each segment fills at once as its beat lands. */
@media (prefers-reduced-motion: reduce){ .xp-prog-fill.is-running{animation-timing-function:steps(1, jump-start);} }
.pwx-now{flex:1 1 auto;min-width:0;padding-left:2rem;border-left:1px solid var(--wg);}
.pwx-now-title{font-size:1.4rem;line-height:2rem;font-weight:500;color:var(--dg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pwx-now-story{font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pwx-now-beat{font-size:1.2rem;line-height:1.6rem;color:var(--pwx-accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pwx-now-beat.is-done{color:var(--mwg);}
.pwx-now-beat:empty,
.pwx-now-bar,
.pwx-now-count{display:none;}
/* The nudge when Next becomes the thing to press. Two small moves toward
   the next stop, once, and not at all under reduced motion. */
@keyframes pwx-nudge{0%,100%{transform:none;}50%{transform:translateX(.3rem);}}
.pwx-btn.is-ready,
.rpv3 .pw-btn.is-ready{animation:pwx-nudge .45s ease-in-out 2;}
@media (prefers-reduced-motion: reduce){ .pwx-btn.is-ready, .rpv3 .pw-btn.is-ready{animation:none;} }
.pwx-nav{flex:0 0 auto;display:flex;gap:.6rem;}
.pwx-btn{
  font-family:inherit;display:inline-flex;align-items:center;gap:.4rem;
  font-size:1.4rem;line-height:2rem;font-weight:500;
  padding:.8rem 1.4rem;border-radius:var(--r-md);
  border:1px solid var(--wg);background:var(--white);color:var(--dg);cursor:pointer;
}
.pwx-btn:hover:not(:disabled){border-color:var(--mwg);}
.pwx-btn.is-primary{background:var(--dg);border-color:var(--dg);color:var(--white);}
.pwx-btn:disabled{opacity:.4;cursor:default;}

/* Everything that lives in the bottom corners moves above the rail. */
body.pwx-on-stop .maplibregl-ctrl-bottom-left{bottom:calc(var(--pwx-rail-h) + 1.4rem);}
body.pwx-on-stop .pincard{bottom:calc(var(--pwx-rail-h) + 2.2rem);}
body.pwx-on-stop .mappanel{bottom:calc(var(--pwx-rail-h) + 2.2rem);}

body[data-mapstyle="dark"] .pwx-scrim,
body[data-mapstyle="satellite"] .pwx-scrim{
  background:linear-gradient(90deg, rgba(14,15,17,.9) 0%, rgba(14,15,17,.78) 52%, rgba(14,15,17,0) 100%);
}
body[data-mapstyle="dark"] .pwx-title, body[data-mapstyle="satellite"] .pwx-title,
body[data-mapstyle="dark"] .pwx-story-title, body[data-mapstyle="satellite"] .pwx-story-title{color:var(--white);}
body[data-mapstyle="dark"] .pwx-lede, body[data-mapstyle="satellite"] .pwx-lede,
body[data-mapstyle="dark"] .pwx-prose, body[data-mapstyle="satellite"] .pwx-prose{color:rgba(255,255,255,.86);}
body[data-mapstyle="dark"] .pwx-eyebrow, body[data-mapstyle="satellite"] .pwx-eyebrow,
body[data-mapstyle="dark"] .pwx-story-eyebrow, body[data-mapstyle="satellite"] .pwx-story-eyebrow{color:#b0b6ff;}

/* Narrow frames: the text stacks over the top of the map instead of beside it. */
@media (max-width:760px){
  .pwx-hero,.pwx-story{left:1.6rem;right:1.6rem;width:auto;}
  .pwx-scrim{width:100% !important;
    background:linear-gradient(180deg, rgba(250,249,246,.95) 0%, rgba(250,249,246,.88) 45%, rgba(250,249,246,0) 75%);}
  .pwx-story{max-height:45%;}
  /* The lean round always puts one focal element under two short paragraphs,
     and at 45% a chart or a video poster is clipped and the column scrolls.
     The long takes keep 45%: they are three paragraphs of text and nothing
     else, so the extra height would only take map away for no gain. */
  body[data-xplean="1"] .pwx-story{max-height:62%;}
  /* No room for five phases of dots beside Back and Next — measured at 390px
     they need 328px and get 84, so four phases hid behind a swipe with no
     scrollbar to say so. A plain count is honest about where the reader is. */
  .pwx-phases{display:none;}
  .pwx-now{flex:1 1 auto;padding-left:0;border-left:none;}
  .pwx-now-title{display:none;}
  .pwx-now-of{display:none;}
  .pwx-now-count{display:block;font-size:1.4rem;line-height:2rem;color:var(--mg);}
  /* While a stop plays, its bar and the part playing stand in for the count,
     which comes back when the stop has finished. */
  .pwx-now.is-playing .pwx-now-count{display:none;}
  .pwx-now:not(.is-playing) .pwx-now-beat{display:none;}
  .pwx-now.is-playing .pwx-now-bar{display:block;margin-bottom:.5rem;}
  .pwx-now-bar .xp-prog{width:100%;max-width:14rem;}
  .pwx-rail{left:.8rem;right:5rem;gap:1.2rem;}
}

/* ---- explainer extensions (modelling explainer, Sep 2026) ----
   Story-column charts, figures pinned to the map, pulses and the
   reduced-motion flow arrows. Explainer-only: nothing here is reachable from
   the browse view. */
.xp-chart{margin-top:1.8rem;padding-top:1.4rem;border-top:1px solid var(--wg);color:var(--dg);}
.xp-chart-title{font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--dg);margin-bottom:.9rem;}
.xp-chart-note{font-size:1.1rem;line-height:1.5rem;color:var(--mg);margin-top:.8rem;}
.xp-chart svg{display:block;max-width:100%;height:auto;}
.xp-share{display:flex;flex-direction:column;gap:1.2rem;}
.xp-share-name{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-bottom:.4rem;}
.xp-share-bar{display:flex;height:2.8rem;border-radius:.3rem;overflow:hidden;}
.xp-share-seg{display:flex;align-items:center;padding:0 .8rem;font-size:1.2rem;font-weight:500;white-space:nowrap;overflow:hidden;}
.xp-share-legend{font-size:1.1rem;line-height:1.5rem;color:var(--mg);margin-top:.4rem;}
.xp-share-bar.is-big{height:4rem;}
.xp-share-seg.is-wa{background:var(--black);padding:.4rem;}
.xp-share-inner{height:100%;background:var(--pilbara-hl);border-radius:.2rem;display:flex;align-items:center;padding:0 .8rem;color:var(--dg);}
.xp-share-seg.is-rest{background:var(--wg);color:var(--mg);}
.xp-share-scale{display:flex;font-size:1.2rem;font-weight:500;color:var(--dg);margin-top:.4rem;}
.xp-stack-above{position:relative;height:2.4rem;}
.xp-stack-above span{position:absolute;left:50%;bottom:.4rem;white-space:nowrap;transform:translateX(-50%);font-size:1.3rem;font-weight:500;color:var(--dg);}
.xp-stack-above span::after{content:'';position:absolute;left:50%;top:100%;width:1px;height:.6rem;background:var(--dg);}
.xp-stack-bar{display:flex;height:4rem;}
.xp-stack-seg{display:flex;align-items:center;padding:0 1rem;font-size:1.3rem;font-weight:500;white-space:nowrap;overflow:hidden;}
.xp-stack-seg.is-pil{background:var(--pilbara-hl);color:var(--dg);}
/* One outline round the bar and single dividers between parts, so no
   edge doubles up; corners slightly rounded (19 Nov 2026, Scott). */
.xp-stack-bar{border:1.5px solid #000;border-radius:.6rem;overflow:hidden;}
.xp-stack-seg{box-sizing:border-box;}
.xp-stack-seg + .xp-stack-seg{border-left:1.5px solid #000;}
.xp-stack-seg.is-wa{background:#e5e5e5;padding:0;}   /* WA's grey on the map (19 Nov 2026) */
.xp-stack-seg.is-world{background:#f2f4ff;color:var(--dg);}   /* DS blue-50, like the other countries */
.pwx-card-stop .xp-stack-bar{height:5.6rem;}
.pwx-card-stop .xp-stack-seg, .pwx-card-stop .xp-stack-above span{font-size:1.6rem;}
/* A chart on a title card (19 Nov 2026): wider, left-aligned inside the
   centred card, and with more room for the bar. */
.pwx-card-stop .xp-chart{width:min(64rem, 100%);text-align:left;border-top:none;margin-top:.8rem;padding-top:0;}
.pwx-card-stop .xp-chart-title{font-size:1.5rem;line-height:2rem;}
.pwx-card-stop .xp-share-bar.is-big{height:5.6rem;}
.pwx-card-stop .xp-share-seg, .pwx-card-stop .xp-share-scale{font-size:1.5rem;}
.pwx-card-stop .xp-share-legend, .pwx-card-stop .xp-share-name{font-size:1.4rem;line-height:2rem;}
.xp-lcoi{display:flex;flex-direction:column;gap:.5rem;}
.xp-lcoi-row{display:grid;grid-template-columns:minmax(0,16.5rem) 1fr 6.4rem;align-items:center;gap:.8rem;font-size:1.2rem;line-height:1.6rem;color:var(--dg);}
.xp-lcoi-row > div:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.xp-lcoi-row.is-dim{opacity:.4;}
.xp-lcoi-track{height:.8rem;border-radius:999px;background:var(--wg);overflow:hidden;}
.xp-lcoi-fill{height:100%;border-radius:999px;}
.xp-lcoi-val{text-align:right;font-weight:500;white-space:nowrap;}
.xp-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;}
.xp-tiles.cmp{grid-template-columns:7.2rem repeat(4,minmax(0,1fr));}
.xp-tile{background:var(--white);border:1px solid var(--wg);border-radius:var(--r-md);padding:.5rem .7rem;min-width:0;}
.xp-tile-k{font-size:1.1rem;line-height:1.4rem;color:var(--mg);}
.xp-tile-v{font-size:1.3rem;line-height:1.8rem;font-weight:500;color:var(--dg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.xp-rowlabel{font-size:1.2rem;line-height:1.6rem;color:var(--mg);align-self:center;}
.xp-steps{display:flex;flex-direction:column;gap:.35rem;}
.xp-steps-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.2rem;}
.xp-steps-head{font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--dg);margin-bottom:.4rem;}
.xp-step{border-radius:6px;padding:.4rem .7rem;font-size:1.2rem;line-height:1.6rem;}
.xp-step b{font-weight:500;}
.xp-step span{display:block;opacity:.8;}
.xp-capex{display:flex;flex-direction:column;gap:1rem;}
.xp-capex-head{display:flex;justify-content:space-between;gap:1rem;font-size:1.2rem;line-height:1.6rem;color:var(--dg);margin-bottom:.3rem;}
.xp-capex-bar{display:flex;height:1.8rem;border-radius:4px;overflow:hidden;background:var(--wg);}
.xp-capex-seg{height:100%;}
.xp-dd18{display:grid;gap:.5rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;}
.xp-dd18-tech{font-size:1.2rem;font-weight:600;color:var(--black);margin-top:.6rem;}
.xp-dd18-row{display:grid;grid-template-columns:13rem 1fr;align-items:center;gap:.8rem;}
.xp-dd18-name{font-size:1.2rem;line-height:1.3;color:var(--dg);}
.xp-dd18-track{display:flex;align-items:center;height:2rem;}
.xp-dd18-seg{height:100%;background:#a3a3a3;}
.xp-dd18-seg:first-child{border-radius:.3rem 0 0 .3rem;}
.xp-dd18-seg:only-of-type{border-radius:.3rem;}
.xp-dd18-seg.is-extra{background:#000;border-radius:0 .3rem .3rem 0;}
.xp-dd18-track span{font-size:1.2rem;color:var(--dg);margin-left:.6rem;white-space:nowrap;}
.xp-dd18-track span b{color:#000;}
.xp-gridcost{gap:.9rem;}
.xp-gridcost .xp-dd18-row{grid-template-columns:15rem 1fr;transition:opacity .5s ease;}
.xp-gridcost .xp-dd18-name{font-size:1.4rem;font-weight:600;color:#000;}
.xp-gridcost .xp-dd18-track{height:3rem;}
.xp-gridcost .xp-dd18-track span{font-size:1.4rem;}
.xp-gridcost.is-on .is-grid .xp-dd18-seg{background:var(--infra-transmission);}
.xp-gridcost.is-on .is-offgrid{opacity:.35;}
.xp-gridcost.is-off .is-grid{opacity:.35;}
.xp-gridcost.is-off .xp-dd18-seg.is-extra{animation:xp-extra-in .7s .5s cubic-bezier(.3,1.4,.5,1) both;transform-origin:left center;}
@keyframes xp-extra-in{from{transform:scaleX(0);}to{transform:scaleX(1);}}
.xp-picture{margin:0;}
.xp-lanes{display:block;width:100%;height:auto;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;overflow:visible;}
.xp-lanes-rule{stroke:#d4d4d4;stroke-width:1;}
.xp-lanes-cut{stroke:#fff;stroke-width:2;}
.xp-lanes-stage{font-size:24px;font-weight:600;fill:#000;}
.xp-lanes-date{font-size:13px;fill:#525252;}
.xp-lanes-leadt{font-size:12px;font-weight:600;fill:#fff;}
.xp-lanes-name{font-size:20px;font-weight:600;fill:#000;}
.xp-lanes-role{fill:#000;}
.xp-lanes-rolet{font-size:12px;font-weight:600;fill:#fff;}
.xp-lanes-region{transition:opacity .6s ease;}
.xp-lanes-region.is-ghost{opacity:.25;}
.xp-lane path,.xp-lane-ghost{fill:var(--lane);stroke:#fff;stroke-width:3;stroke-linejoin:round;}
.xp-lane-ghost{fill-opacity:.13;}
.xp-lane{transition:opacity .4s ease;}
.xp-lane.is-off{opacity:0;}
.pwx-card-stop-title.is-swap{animation:xp-title-swap .55s ease both;}
@keyframes xp-title-swap{from{opacity:0;transform:translateY(.6rem);}to{opacity:1;transform:none;}}
.xp-lanes-in{font-size:14.5px;font-weight:600;fill:#fff;transition:opacity .6s ease;}
.xp-lane.is-new{animation:xp-lane-in 1.6s .3s cubic-bezier(.45,0,.2,1) both;}
@keyframes xp-lane-in{from{clip-path:inset(0 100% 0 0);}to{clip-path:inset(0 0 0 0);}}
.xp-lanes-gutter{font-size:12px;fill:#737373;}
.xp-lanes-dem{font-size:14px;font-weight:600;fill:#000;}
.xp-lanes-dsub{font-size:12px;fill:#525252;}
.pwx-card-stop.is-wide .pwx-card-stop-inner{width:min(118rem, 94%);max-width:none;}
.pwx-card-stop.is-wide .pwx-card-stop-title{font-size:clamp(2.4rem, 2.2vw, 3.4rem);line-height:1.15;}
.pwx-card-stop.is-wide .xp-chart{margin-top:2.4rem;width:100%;}
/* ---- How to make green iron (20 Nov 2026): value chain, emissions, cutaway ---- */
.xp-vc{position:relative;padding:4.2rem 0 1.2rem;}
.xp-vc-band{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;border-radius:.8rem;overflow:hidden;}
.xp-vc-wa{width:50%;background:#dcefe3;position:relative;}
.xp-vc-os{flex:1;background:#ededed;position:relative;}
.xp-vc-wa span,.xp-vc-os span{position:absolute;top:1.2rem;left:1.4rem;font-size:1.3rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;}
.xp-vc-wa span{color:#338d5d;}
.xp-vc-os span{color:#737373;}
.xp-vc-steps{position:relative;display:grid;grid-template-columns:repeat(4, 1fr);gap:2rem;padding:0 1.4rem;}
.xp-vc-box{position:relative;background:#fff;border:2px solid #000;border-radius:.6rem;padding:1.2rem 1.2rem 1.4rem;min-height:9.6rem;text-align:left;}
.xp-vc-box b{display:block;font-size:1.6rem;line-height:1.25;color:#000;}
.xp-vc-box span{display:block;font-size:1.35rem;line-height:1.35;color:#525252;margin-top:.4rem;}
.xp-vc-swap{display:grid;}
.xp-vc-swap > *{grid-area:1 / 1;}
.xp-vc-new{opacity:0;}
.xp-vc-box.is-key{border-color:#000;}
.xp-vc-ship{position:absolute;top:4.2rem;bottom:1.2rem;left:50%;width:0;border-left:2px dashed #000;}
.xp-vc-ship i{position:absolute;bottom:-.2rem;left:0;transform:translate(-50%, 100%);display:flex;flex-direction:column;align-items:center;font-style:normal;font-size:1.2rem;font-weight:600;color:#000;white-space:nowrap;padding-top:.4rem;}
.xp-vc-ship svg{width:3.4rem;height:auto;}
.xp-vc{margin-bottom:4.6rem;}
.xp-vc.is-move .xp-vc-wa{animation:xp-vc-wa 1.6s cubic-bezier(.6,0,.2,1) 1.4s both;}
.xp-vc.is-move .xp-vc-ship{animation:xp-vc-ship 1.6s cubic-bezier(.6,0,.2,1) 1.4s both;}
.xp-vc.is-move .xp-vc-old{animation:xp-vc-out .5s ease 1.9s both;}
.xp-vc.is-move .xp-vc-new{animation:xp-vc-in .6s ease 2.3s both;}
.xp-vc.is-move .is-key{animation:xp-vc-key .6s ease 2.3s both;}
@keyframes xp-vc-wa{from{width:50%;}to{width:calc(75% + .5rem);}}
@keyframes xp-vc-ship{from{left:50%;}to{left:calc(75% + .5rem);}}
@keyframes xp-vc-out{to{opacity:0;}}
@keyframes xp-vc-in{to{opacity:1;}}
@keyframes xp-vc-key{to{background:#e3f3e9;}}
.pwx-card-stop.is-dark .xp-vc-wa{background:#24442f;}
.pwx-card-stop.is-dark .xp-vc-os{background:#2b2b2b;}
.pwx-card-stop.is-dark .xp-vc-wa span{color:#89cca3;}
.pwx-card-stop.is-dark .xp-vc-os span{color:#d4d4d4;}
.pwx-card-stop.is-dark .xp-vc-ship{border-left-color:#fff;}
.pwx-card-stop.is-dark .xp-vc-ship i{color:#fff;}
.pwx-card-stop.is-dark .xp-vc-ship svg path{stroke:#fff;}
@media (max-width: 760px){ .xp-vc-steps{grid-template-columns:1fr 1fr;} .xp-vc.is-move .xp-vc-wa,.xp-vc.is-move .xp-vc-ship{animation:none;} .xp-vc-ship{display:none;} }
@media (prefers-reduced-motion: reduce){
  .xp-vc.is-move .xp-vc-wa{animation:none;width:calc(75% + .5rem);}
  .xp-vc.is-move .xp-vc-ship{animation:none;left:calc(75% + .5rem);}
  .xp-vc.is-move .xp-vc-old{animation:none;opacity:0;}
  .xp-vc.is-move .xp-vc-new{animation:none;opacity:1;}
}
.xp-em-rows{display:flex;flex-direction:column;gap:1rem;}
.xp-em-row{display:grid;grid-template-columns:1fr;gap:.3rem;}
.xp-em-name{font-size:1.25rem;line-height:1.5rem;color:#262626;}
.xp-em-track{display:flex;align-items:center;gap:.8rem;}
.xp-em-fill{height:2.2rem;border-radius:.2rem;transform-origin:left center;animation:xp-em-grow .9s cubic-bezier(.2,.7,.3,1) both;}
.xp-em-row:nth-child(2) .xp-em-fill{animation-delay:.15s;}
.xp-em-row:nth-child(3) .xp-em-fill{animation-delay:.3s;}
.xp-em-val{font-size:1.4rem;font-weight:600;color:#000;white-space:nowrap;}
@keyframes xp-em-grow{from{transform:scaleX(0);}to{transform:scaleX(1);}}
@media (prefers-reduced-motion: reduce){ .xp-em-fill{animation:none;} }
.xp-cut svg{display:block;width:100%;height:auto;max-height:46vh;margin:0 auto;overflow:visible;}
.xp-cut text{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;fill:#000;}
.xp-cut .t-name{font-size:19px;font-weight:600;}
.xp-cut .t-sub{font-size:15px;fill:#525252;}
.xp-cut [data-part]{transition:opacity .5s ease;}
.xp-cut.is-power [data-part]:not([data-part="power"]),
.xp-cut.is-furnace [data-part]:not([data-part="furnace"]),
.xp-cut.is-hbi [data-part]:not([data-part="hbi"]){opacity:.22;}
.xp-cut .pellet{transform-box:fill-box;animation:xp-cut-fall 6s linear infinite;}
.xp-cut .bubble{transform-box:fill-box;animation:xp-cut-rise 3.2s linear infinite;}
.xp-cut .vapour{transform-box:fill-box;animation:xp-cut-puff 2.8s ease-out infinite;}
.xp-cut .drop{transform-box:fill-box;animation:xp-cut-drop 1.8s ease-in infinite;}
.xp-cut .spark{animation:xp-cut-dash 1s linear infinite;}
.xp-cut .h2flow{animation:xp-cut-dash 1.2s linear infinite;}
.xp-cut .ironflow{animation:xp-cut-dash 1.4s linear infinite;}
@keyframes xp-cut-fall{0%{transform:translateY(0);fill:#737373;opacity:0;}8%{opacity:1;}55%{fill:#737373;}85%{fill:#57b07d;opacity:1;}100%{transform:translateY(212px);fill:#57b07d;opacity:0;}}
@keyframes xp-cut-rise{0%{transform:translateY(0);opacity:0;}12%{opacity:1;}85%{opacity:1;}100%{transform:translateY(-200px);opacity:0;}}
@keyframes xp-cut-puff{0%{transform:translate(0,0) scale(.6);opacity:0;}20%{opacity:.9;}100%{transform:translate(70px,-26px) scale(1.4);opacity:0;}}
@keyframes xp-cut-drop{0%{transform:translateY(-18px);opacity:0;}30%{opacity:1;}100%{transform:translateY(16px);opacity:0;}}
@keyframes xp-cut-dash{to{stroke-dashoffset:-24;}}
@media (prefers-reduced-motion: reduce){ .xp-cut .pellet,.xp-cut .bubble,.xp-cut .vapour,.xp-cut .drop,.xp-cut .spark,.xp-cut .h2flow,.xp-cut .ironflow{animation:none;} }
.xp-lad svg{display:block;width:100%;height:auto;overflow:visible;}
.xp-lad text{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;fill:#262626;font-size:13px;}
.xp-lad .t-row{font-size:14px;font-weight:600;fill:#000;}
.xp-lad .t-band{font-size:12.5px;font-weight:600;fill:#338d5d;}
.xp-lad .grow{transform-box:fill-box;transform-origin:left center;animation:xp-lad-grow 1.1s cubic-bezier(.2,.7,.3,1) .35s both;}
.xp-lad .late{animation:xp-lad-in .5s ease 1.3s both;}
@keyframes xp-lad-grow{from{transform:scaleX(0);}to{transform:scaleX(1);}}
@keyframes xp-lad-in{from{opacity:0;}to{opacity:1;}}
@media (prefers-reduced-motion: reduce){ .xp-lad .grow,.xp-lad .late{animation:none;} }
.xp-hr{display:grid;grid-template-columns:minmax(14rem, 20rem) 1fr;align-items:center;text-align:left;}
.xp-hr-src{position:relative;background:#f59e0b;border:2px solid #000;border-radius:.6rem;padding:1.4rem;}
.xp-hr-src b{display:block;font-size:1.7rem;line-height:1.2;color:#000;}
.xp-hr-src span{display:block;font-size:1.3rem;line-height:1.35;color:#000;margin-top:.4rem;}
.xp-hr-src::after{content:'';position:absolute;right:-2.6rem;top:50%;width:2.6rem;border-top:2px solid #000;}
.xp-hr-routes{position:relative;margin-left:2.6rem;padding-left:2.6rem;display:flex;flex-direction:column;gap:1rem;}
.xp-hr-routes::before{content:'';position:absolute;left:0;top:3.2rem;bottom:3.2rem;border-left:2px solid #000;}
.xp-hr-route{position:relative;display:grid;grid-template-columns:1fr auto;gap:.4rem 1.4rem;align-items:start;background:#fff;border:2px solid #000;border-radius:.6rem;padding:1.1rem 1.3rem;animation:xp-hr-in .5s ease both;}
.xp-hr-route::before{content:'';position:absolute;left:-2.8rem;top:50%;width:2.6rem;border-top:2px solid #000;}
.xp-hr-route:nth-child(2){animation-delay:.15s;}
.xp-hr-route:nth-child(3){animation-delay:.3s;}
.xp-hr-route:nth-child(4){animation-delay:.45s;}
.xp-hr-route b{font-size:1.55rem;line-height:1.25;color:#000;}
.xp-hr-route p{grid-column:1 / -1;margin:0;font-size:1.3rem;line-height:1.4;color:#404040;}
.xp-hr-chip{font-size:1.15rem;font-weight:600;line-height:1;padding:.5rem .8rem;border-radius:99rem;white-space:nowrap;}
.xp-hr-chip.is-now{background:#dcefe3;color:#1e5e3f;}
.xp-hr-chip.is-later{background:#fef3c7;color:#92400e;}
.xp-hr-chip.is-study{background:#e5e5e5;color:#262626;}
@keyframes xp-hr-in{from{opacity:0;transform:translateX(-.8rem);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion: reduce){ .xp-hr-route{animation:none;} }
@media (max-width: 760px){ .xp-hr{grid-template-columns:1fr;} .xp-hr-src::after,.xp-hr-routes::before,.xp-hr-route::before{display:none;} .xp-hr-routes{margin:1.2rem 0 0;padding:0;} }
@media (prefers-reduced-motion: reduce){.xp-lane.is-new{animation:none;}}
.xp-picture img{display:block;width:100%;height:auto;border-radius:var(--r-sm);}
.xp-picture figcaption{margin-top:.6rem;font-size:1.2rem;color:var(--dg);}
.xp-picture figcaption span{color:#737373;}
@media (prefers-reduced-motion: reduce){.xp-gridcost.is-off .xp-dd18-seg.is-extra{animation:none;}}
.xp-legend{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin-top:.8rem;font-size:1.1rem;line-height:1.4rem;color:var(--mg);}
.xp-legend i{display:inline-block;width:.9rem;height:.9rem;border-radius:2px;margin-right:.4rem;vertical-align:-.1rem;}
/* Pathways charts. The phase grid keeps every cell filled in every mode —
   dimmed, never emptied — because an empty cell would read as a region
   waiting its turn, which is the misreading these explainers exist to stop. */
.xp-pg{display:grid;grid-template-columns:7.2rem repeat(3,minmax(0,1fr));gap:.4rem;}
.xp-pg-head{font-size:1.1rem;line-height:1.4rem;color:var(--mg);padding:0 .1rem .2rem;transition:opacity .3s;}
.xp-pg-head b{display:block;font-weight:500;color:var(--dg);}
.xp-pg-head.is-dim{opacity:.45;}
.xp-pg-region{display:flex;align-items:center;gap:.5rem;font-size:1.2rem;line-height:1.5rem;font-weight:500;color:var(--dg);}
.xp-pg-region i{flex:none;width:.9rem;height:.9rem;border-radius:2px;background:var(--c);}
.xp-pg-cell{background:color-mix(in srgb,var(--c) 9%,var(--white));border-left:3px solid var(--c);border-radius:4px;
  padding:.45rem .6rem;font-size:1.15rem;line-height:1.5rem;color:var(--dg);transition:opacity .3s,background-color .3s,box-shadow .3s;}
.xp-pg-cell.is-dim{opacity:.4;}
.xp-pg-cell.is-on{background:color-mix(in srgb,var(--c) 22%,var(--white));box-shadow:inset 0 0 0 1.5px var(--c);font-weight:500;}
.xp-deps{display:flex;flex-direction:column;gap:.45rem;}
.xp-dep{display:grid;grid-template-columns:9.6rem 1fr;gap:.8rem;align-items:baseline;padding:.45rem 0;border-bottom:1px solid var(--wg);
  font-size:1.2rem;line-height:1.6rem;color:var(--dg);transition:opacity .3s;}
.xp-dep:last-child{border-bottom:0;}
.xp-dep b{font-weight:500;}
.xp-dep.is-dim{opacity:.4;}
.xp-dep-why{display:block;font-size:1.1rem;line-height:1.5rem;color:var(--mg);}
.xp-mkt{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;}
.xp-mkt-lane{border:1px solid var(--wg);border-radius:var(--r-md);padding:.6rem .8rem;background:var(--white);}
.xp-mkt-when{font-size:1.1rem;line-height:1.4rem;color:var(--mg);}
.xp-mkt-name{font-size:1.3rem;line-height:1.8rem;font-weight:500;color:var(--dg);margin:.1rem 0 .3rem;}
.xp-mkt-who{font-size:1.2rem;line-height:1.6rem;color:var(--dg);}
.xp-mkt-why{font-size:1.1rem;line-height:1.5rem;color:var(--mg);margin-top:.3rem;}
.xp-mkt-when{display:flex;align-items:center;gap:.5rem;}
.xp-mkt-swatch{flex:none;}
/* Market names at the end of each trade arc: a dot, with the name above it,
   or beside it where neighbours would collide. */
.xp-trade-label{position:relative;width:.8rem;height:.8rem;border-radius:50%;background:var(--greeniron);border:1.5px solid var(--white);pointer-events:none;}
.xp-trade-label span{position:absolute;left:50%;bottom:140%;transform:translateX(-50%);white-space:nowrap;
  font-size:1.2rem;line-height:1.4rem;font-weight:500;color:var(--dg);text-shadow:0 0 2px #fff,0 0 4px #fff,0 0 7px #fff;}
.xp-trade-label.is-ore{background:#d97706;}
.xp-trade-label.is-left span{left:auto;right:160%;bottom:auto;top:50%;transform:translateY(-50%);}
.xp-trade-label.is-right span{left:160%;bottom:auto;top:50%;transform:translateY(-50%);}
body[data-mapstyle="dark"] .xp-pg-head b, body[data-mapstyle="satellite"] .xp-pg-head b,
body[data-mapstyle="dark"] .xp-pg-region, body[data-mapstyle="satellite"] .xp-pg-region,
body[data-mapstyle="dark"] .xp-dep, body[data-mapstyle="satellite"] .xp-dep,
body[data-mapstyle="dark"] .xp-mkt-name, body[data-mapstyle="satellite"] .xp-mkt-name,
body[data-mapstyle="dark"] .xp-mkt-who, body[data-mapstyle="satellite"] .xp-mkt-who{color:#fff;}
body[data-mapstyle="dark"] .xp-pg-head, body[data-mapstyle="satellite"] .xp-pg-head,
body[data-mapstyle="dark"] .xp-mkt-when, body[data-mapstyle="satellite"] .xp-mkt-when,
body[data-mapstyle="dark"] .xp-mkt-why, body[data-mapstyle="satellite"] .xp-mkt-why{color:rgba(255,255,255,.78);}
body[data-mapstyle="dark"] .xp-pg-cell, body[data-mapstyle="satellite"] .xp-pg-cell{color:#fff;background:color-mix(in srgb,var(--c) 20%,transparent);}
body[data-mapstyle="dark"] .xp-pg-cell.is-on, body[data-mapstyle="satellite"] .xp-pg-cell.is-on{background:color-mix(in srgb,var(--c) 38%,transparent);}
body[data-mapstyle="dark"] .xp-dep, body[data-mapstyle="satellite"] .xp-dep{border-bottom-color:rgba(255,255,255,.18);}
body[data-mapstyle="dark"] .xp-mkt-lane, body[data-mapstyle="satellite"] .xp-mkt-lane{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18);}
@media (max-width:760px){ .xp-pg{grid-template-columns:5.6rem repeat(3,minmax(0,1fr));} .xp-mkt{grid-template-columns:1fr;} }
body[data-mapstyle="dark"] .xp-chart, body[data-mapstyle="satellite"] .xp-chart{border-top-color:rgba(255,255,255,.18);color:#fff;}
body[data-mapstyle="dark"] .xp-chart-title, body[data-mapstyle="satellite"] .xp-chart-title,
body[data-mapstyle="dark"] .xp-lcoi-row, body[data-mapstyle="satellite"] .xp-lcoi-row,
body[data-mapstyle="dark"] .xp-steps-head, body[data-mapstyle="satellite"] .xp-steps-head,
body[data-mapstyle="dark"] .xp-capex-head, body[data-mapstyle="satellite"] .xp-capex-head{color:#fff;}
body[data-mapstyle="dark"] .xp-chart-note, body[data-mapstyle="satellite"] .xp-chart-note,
body[data-mapstyle="dark"] .xp-legend, body[data-mapstyle="satellite"] .xp-legend,
body[data-mapstyle="dark"] .xp-rowlabel, body[data-mapstyle="satellite"] .xp-rowlabel{color:rgba(255,255,255,.78);}

/* A figure pinned to the map. Type, not a card: two or three of these share
   a frame without covering the data under them. */
.xp-label{pointer-events:none;text-align:center;white-space:nowrap;
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  text-shadow:0 0 2px #fff,0 0 4px #fff,0 0 8px #fff;}
.xp-label-v{font-size:1.7rem;line-height:2rem;font-weight:700;color:var(--black);letter-spacing:-.01em;}
.xp-label-s{font-size:1.1rem;line-height:1.4rem;color:var(--dg);}
body[data-mapstyle="dark"] .xp-label, body[data-mapstyle="satellite"] .xp-label{text-shadow:0 0 2px #000,0 0 5px rgba(0,0,0,.9),0 0 10px rgba(0,0,0,.6);}
body[data-mapstyle="dark"] .xp-label-v, body[data-mapstyle="satellite"] .xp-label-v{color:#fff;}
body[data-mapstyle="dark"] .xp-label-s, body[data-mapstyle="satellite"] .xp-label-s{color:rgba(255,255,255,.88);}

/* A system pin: one enabling system, pinned to a place where it bites, with
   its name and what it waits on beside it. Dark and all alike, so it never
   reads as one of the data layers' categories. Anchored 'bottom', like .gi-pin.
   No position on .xp-sys itself: MapLibre owns the marker root's, and setting
   it put every pin in flow, each one pin-height lower than the last. */
.xp-sys{width:2.8rem;height:2.8rem;pointer-events:none;}
.xp-sys-pin{box-sizing:border-box;width:2.8rem;height:2.8rem;border-radius:50% 50% 50% 0;transform:rotate(-45deg);
  background:var(--dg);border:2px solid var(--white);box-shadow:0 2px 6px rgba(0,0,0,.35);
  display:flex;align-items:center;justify-content:center;color:var(--white);}
.xp-sys-pin > *{transform:rotate(45deg);display:flex;}
.xp-sys-label{position:absolute;top:50%;left:calc(100% + .6rem);transform:translateY(-50%);white-space:nowrap;
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  text-shadow:0 0 2px #fff,0 0 4px #fff,0 0 8px #fff;}
.xp-sys.is-left .xp-sys-label{left:auto;right:calc(100% + .6rem);text-align:right;}
.xp-sys.is-top .xp-sys-label{top:auto;bottom:calc(100% + .8rem);left:50%;transform:translateX(-50%);text-align:center;}
.xp-sys.is-bottom .xp-sys-label{top:calc(100% + 1rem);left:50%;transform:translateX(-50%);text-align:center;}
.xp-sys-t{font-size:1.4rem;line-height:1.7rem;font-weight:700;color:var(--black);letter-spacing:-.005em;}
.xp-sys-s{font-size:1.15rem;line-height:1.4rem;color:var(--dg);}
/* A phone has no room for six two-line labels across the state: names only. */
@media (max-width:760px){ .xp-sys-s{display:none;} .xp-sys-t{font-size:1.2rem;line-height:1.5rem;} }
body[data-mapstyle="dark"] .xp-sys-label, body[data-mapstyle="satellite"] .xp-sys-label{text-shadow:0 0 2px #000,0 0 5px rgba(0,0,0,.9),0 0 10px rgba(0,0,0,.6);}
body[data-mapstyle="dark"] .xp-sys-t, body[data-mapstyle="satellite"] .xp-sys-t{color:#fff;}
body[data-mapstyle="dark"] .xp-sys-s, body[data-mapstyle="satellite"] .xp-sys-s{color:rgba(255,255,255,.88);}

/* Pulse. The ring lives on an inner span: MapLibre owns the marker root's
   positioning, so nothing here may set position on .xp-pulse itself. */
.xp-pulse{width:1.8rem;height:1.8rem;pointer-events:none;}
.xp-pulse-ring{position:absolute;inset:0;border-radius:50%;border:2px solid var(--pwx-accent);}
.xp-pulse-ring.is-wave{animation:xp-pulse 2.4s cubic-bezier(.2,.6,.3,1) infinite;}
@keyframes xp-pulse{from{transform:scale(1);opacity:.9;}to{transform:scale(3.2);opacity:0;}}
@media (prefers-reduced-motion: reduce){ .xp-pulse-ring.is-wave{animation:none;opacity:0;} }

/* Direction arrow for a flow, drawn instead of moving particles when the
   reader has asked for reduced motion. */
.xp-arrow{width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;
  border-bottom:12px solid currentColor;pointer-events:none;filter:drop-shadow(0 0 1.5px #fff);}

body.xp-text-hidden .pwx-story, body.xp-text-hidden .pwx-scrim{display:none;}

/* ---- media drafts (explainer media brief, Sep 2026) ----
   A piece to camera or a drawn diagram in a stop. Nothing is filmed yet, so
   a video is its poster, and playing it previews the script as captions. */
.xp-media{margin:1.8rem 0 0;padding-top:1.4rem;border-top:1px solid var(--wg);color:var(--dg);}
.xp-media-title{font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--dg);margin-bottom:.9rem;}
.xp-media-note{font-size:1.1rem;line-height:1.5rem;color:var(--mg);margin-top:.8rem;}
.xp-draft{display:inline-block;margin-left:.6rem;padding:0 .5rem;border-radius:3px;background:#fef3c7;color:#78350f;
  font-size:1rem;line-height:1.6rem;font-weight:500;vertical-align:.1rem;}
.xp-diagram svg{display:block;max-width:100%;height:auto;}
.xp-dg-step{display:flex;align-items:center;gap:.6rem;font-size:1.15rem;line-height:1.5rem;margin:.9rem 0 .3rem;}
.xp-dg-step:first-child{margin-top:0;}
.xp-dg-step b{flex:none;display:inline-flex;align-items:center;justify-content:center;width:1.7rem;height:1.7rem;
  border:1px solid currentColor;border-radius:50%;font-size:1rem;font-weight:500;}
.xp-dg-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem;margin-top:.6rem;font-size:1.15rem;line-height:1.5rem;}
.xp-dg-cols b{font-weight:500;}
.xp-legend i.xp-sw-hatch{background:repeating-linear-gradient(45deg, currentColor 0 1.2px, transparent 1.2px 3.5px);opacity:.6;}
.xp-legend i.xp-sw-line{height:0;width:1.4rem;border-radius:0;border-top:2px dashed currentColor;vertical-align:.3rem;}

.xp-video{position:relative;aspect-ratio:16/9;border-radius:var(--r-md);overflow:hidden;color:#fff;
  background:radial-gradient(120% 100% at 75% 30%, #3b3c46 0%, #1b1c21 70%);}
.xp-video svg{display:block;}
.xp-video .xp-video-sil{position:absolute;right:4%;bottom:0;height:88%;width:auto;opacity:.13;pointer-events:none;}
.xp-video-tag{position:absolute;left:1.4rem;top:1.2rem;font-size:1.05rem;line-height:1.4rem;color:rgba(255,255,255,.72);}
.xp-video-q{position:absolute;left:1.4rem;right:30%;top:3.2rem;font-size:clamp(1.5rem, 1.35vw, 2rem);line-height:1.2;font-weight:700;letter-spacing:-.01em;}
.xp-video-who{position:absolute;left:1.4rem;right:11rem;bottom:1.2rem;font-size:1.1rem;line-height:1.4rem;color:rgba(255,255,255,.78);}
.xp-video-who b{display:block;font-size:1.3rem;line-height:1.7rem;font-weight:500;color:#fff;}
.xp-video-play{position:absolute;right:1.2rem;bottom:1.2rem;display:inline-flex;align-items:center;gap:.6rem;
  padding:.5rem 1.2rem .5rem 1rem;border:none;border-radius:999px;background:#fff;color:var(--black);cursor:pointer;
  font-family:inherit;font-size:1.25rem;line-height:1.8rem;font-weight:500;font-variant-numeric:tabular-nums;}
.xp-video-play:hover{background:var(--wg);}
.xp-video-play svg, .xp-video-ctl svg{width:1.3rem;height:1.3rem;}
.xp-video-stage{position:absolute;inset:0;display:flex;flex-direction:column;padding:1.1rem 1.2rem 1rem;}
.xp-video-lower{font-size:1.1rem;line-height:1.4rem;color:rgba(255,255,255,.72);}
.xp-video-lower b{font-weight:500;color:#fff;}
.xp-video-cap{margin:auto auto 1rem;max-width:94%;text-align:center;font-size:clamp(1.45rem, 1.25vw, 1.8rem);line-height:1.35;
  font-weight:500;background:rgba(0,0,0,.72);padding:.3rem .8rem;border-radius:3px;}
.xp-video-cap:empty{visibility:hidden;}
.xp-video-bar{display:flex;align-items:center;gap:.8rem;}
.xp-video-ctl{flex:none;display:flex;align-items:center;justify-content:center;width:2.8rem;height:2.8rem;padding:0;
  border:none;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;}
.xp-video-ctl:hover{background:rgba(255,255,255,.28);}
.xp-video-track{flex:1 1 auto;height:.4rem;border-radius:999px;background:rgba(255,255,255,.22);overflow:hidden;}
.xp-video-fill{height:100%;width:0;background:#fff;}
.xp-video-time{flex:none;font-size:1.1rem;line-height:1.4rem;font-variant-numeric:tabular-nums;color:rgba(255,255,255,.8);}

/* An archive photograph that has not been sourced or cleared. Same frame as
   a video's poster so the column reads consistently, in a flat neutral so it
   is plainly a placeholder and never mistaken for the picture itself. */
.xp-archive{position:relative;aspect-ratio:4/3;max-height:22rem;border-radius:var(--r-md);overflow:hidden;
  display:flex;flex-direction:column;justify-content:flex-end;padding:1.3rem 1.4rem;
  background:var(--wg);color:var(--dg);border:1px dashed var(--mwg);}
.xp-archive-mark{position:absolute;right:1.3rem;top:1.2rem;width:4.4rem;height:auto;opacity:.5;}
.xp-archive-tag{font-size:1.05rem;line-height:1.4rem;color:var(--mg);margin-bottom:.3rem;}
.xp-archive-cap{font-size:clamp(1.4rem, 1.2vw, 1.7rem);line-height:1.3;font-weight:500;max-width:32rem;}
body[data-mapstyle="dark"] .xp-archive, body[data-mapstyle="satellite"] .xp-archive{
  background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.35);}
body[data-mapstyle="dark"] .xp-archive-tag, body[data-mapstyle="satellite"] .xp-archive-tag{color:rgba(255,255,255,.75);}

/* An inset diagram: small, over the map's bottom right and above the rail,
   for a stop whose map still has to be readable. */
.xp-inset{position:absolute;right:1rem;bottom:calc(var(--pwx-rail-h) + 2.2rem);width:min(32rem, 32vw);pointer-events:auto;
  background:var(--white);color:var(--dg);border-radius:var(--r-xl);box-shadow:0 4px 24px rgba(0,0,0,.16);padding:1.2rem 1.4rem 1.1rem;
  animation:pwx-in .35s cubic-bezier(.2,.7,.3,1) both;}
.xp-inset .xp-media{margin:0;padding:0;border:0;}
.xp-media-fallback{display:none;}
@media (prefers-reduced-motion: reduce){ .xp-inset{animation:none;} }
@media (max-width:760px){
  /* No room over the map, so an inset diagram joins the column. */
  .xp-inset{display:none;}
  .xp-media-fallback{display:block;}
  .xp-dg-cols{grid-template-columns:1fr;}
}
/* The brief: on a phone the poster stays in the column and the video plays
   full-frame over the map. Mounted on the body; see xpPlayVideo(). */
.xp-video.is-overlay{position:fixed;inset:0;z-index:40;aspect-ratio:auto;border-radius:0;}
.xp-video.is-overlay .xp-video-stage{padding:1.6rem;}
.xp-video.is-overlay .xp-video-cap{font-size:2rem;}
body[data-mapstyle="dark"] .xp-media, body[data-mapstyle="satellite"] .xp-media{border-top-color:rgba(255,255,255,.18);color:#fff;}
body[data-mapstyle="dark"] .xp-media-title, body[data-mapstyle="satellite"] .xp-media-title{color:#fff;}
body[data-mapstyle="dark"] .xp-media-note, body[data-mapstyle="satellite"] .xp-media-note{color:rgba(255,255,255,.78);}
body[data-mapstyle="dark"] .xp-inset, body[data-mapstyle="satellite"] .xp-inset{background:#1d1e22;color:#fff;}

/* Markers fade rather than vanish when another infrastructure type is
   hovered — same "nothing moves except emphasis" rule as the grid lines. */
.gi-marker-root{transition:opacity .12s ease;}
.gi-marker-root.is-muted{opacity:.22;}
/* The one record a panel row is pointing at. Scaled rather than recoloured:
   colour already means type on this map, so borrowing it for selection would
   collide with the symbology. */
.gi-marker-root.is-picked{transform:scale(1.35);z-index:5;}

/* The back link is icon + label now, not a text arrow. */
.rpv3 .rp-back{display:inline-flex;align-items:center;gap:.35rem;}
.rpv3 .section-body{font-size:1.4rem;line-height:2rem;font-weight:400;color:var(--dg);}
/* Register index. Denser than a card by design: name and proponent left,
   production and status right, one row per project. */
/* Index headline. text-sm / medium — a sub-heading inside a section, so it
   sits below the section head (text-base) rather than competing with it. */
.rpv3 .mine-head{display:flex;align-items:baseline;gap:.8rem;margin-bottom:1.2rem;}
.rpv3 .mine-head-title{font-size:1.4rem;line-height:2rem;font-weight:500;color:var(--dg);}
.rpv3 .mine-head .fac-key{margin-left:auto;}
.rpv3 .fac-key{display:inline-flex;align-items:center;gap:.4rem;margin-left:.6rem;}
/* Status filter pills — one line, scrolling sideways when there are more
   than fit. Matches the region tabs above, which scroll the same way. */
.rpv3 .mine-tabs{
  flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
  margin:.2rem -2rem .6rem;padding:0 2rem;
}
.rpv3 .mine-tabs::-webkit-scrollbar{display:none;}
.rpv3 .mine-tabs .grid-net-tab{
  display:inline-flex;align-items:baseline;gap:.35rem;
  flex:0 0 auto;white-space:nowrap;
}
.rpv3 .mine-tab-n{font-size:1rem;line-height:1.4rem;color:var(--mwg);}
.rpv3 .grid-net-tab.is-active .mine-tab-n{color:var(--mg);}
.rpv3 .fac-key .mine-dot{margin-left:.4rem;}
.rpv3 .mine-index{border-top:1px solid var(--wg);}
.rpv3 .mine-row{
  display:flex;align-items:baseline;gap:.8rem;
  padding:.7rem 0;border-bottom:1px solid var(--wg);cursor:pointer;
  transition:background-color .12s ease;
}
.rpv3 .mine-row:hover{background:var(--lwg);}
.rpv3 .mine-row .fac-name{font-size:1.4rem;line-height:2rem;font-weight:500;flex:1 1 auto;min-width:0;}
/* Ore-type key. Same hairline-on-white treatment as the section dots, one
   step smaller, and nudged down to sit on the name's baseline. */
.rpv3 .mine-dot{
  width:1rem;height:1rem;border-radius:50%;flex:0 0 auto;
  align-self:center;margin-top:.1rem;
  box-shadow:0 0 0 .05rem var(--black);
}
.rpv3 .mine-row .fac-name .fac-sub{font-weight:400;font-size:1.2rem;line-height:1.6rem;}
.rpv3 .mine-row .fac-metric{flex:0 0 auto;text-align:right;}
.rpv3 .fac-nofigure{color:var(--mwg);}
/* Unplotted rows cannot be gone to, so they stop pretending to be clickable. */
.rpv3 .mine-row.unplotted{cursor:default;}
.rpv3 .mine-row.unplotted:hover{background:none;}
.rpv3 .section-note{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.4rem;}
.rpv3 .landing-intro{font-size:1.2rem;line-height:1.6;color:var(--dg);margin-bottom:1.6rem;}

.rpv3 .keyline-stats{display:flex;}
.rpv3 .keyline-stat{flex:1;padding:0 1.4rem;border-left:1px solid var(--wg);}
.rpv3 .keyline-stat:first-child{border-left:none;padding-left:0;}
.rpv3 .keyline-stat-label{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-bottom:.4rem;}
.rpv3 .keyline-stat-value{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.4rem;line-height:2rem;font-weight:700;color:var(--dg);}

.rpv3 .scenario-cardgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-bottom:1.8rem;}
.rpv3 .scenario-cardgrid.single{grid-template-columns:1fr;}
.rpv3 .scenario-card{text-align:left;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;font-weight:500;color:var(--dg);background:var(--white);border:1.5px solid var(--wg);border-radius:var(--r-md);padding:1rem .95rem;cursor:pointer;line-height:1.35;}
.rpv3 .scenario-card .sc-cost{display:block;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);margin-top:.5rem;}
.rpv3 .scenario-card.active{border-color:var(--_c,var(--dg));background:var(--_c-wash,var(--white));}
.rpv3 .scenario-card.active .sc-cost{color:var(--dg);}

.rpv3 .costbreak-row{display:flex;gap:2.8rem;align-items:flex-end;margin-bottom:1.2rem;}
.rpv3 .costbreak-col{display:flex;flex-direction:column;align-items:center;}
.rpv3 .costbreak-total{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:1.2rem;line-height:1.6rem;color:var(--dg);margin-top:.7rem;}
.rpv3 .costbreak-label{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.15rem;}

.rpv3 .lcoi-card{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.2rem 1.3rem;margin-bottom:1.6rem;}
.rpv3 .lcoi-compare-list{display:flex;flex-direction:column;gap:.65rem;}
.rpv3 .lcoi-row{display:grid;grid-template-columns:12.5rem 1fr 5.6rem;align-items:center;gap:.6rem;}
.rpv3 .lcoi-label{font-size:1.2rem;line-height:1.6rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rpv3 .lcoi-track{background:var(--wg);border-radius:999px;height:.8rem;overflow:hidden;}
.rpv3 .lcoi-fill{height:100%;border-radius:999px;}
.rpv3 .lcoi-value{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;text-align:right;white-space:nowrap;}
.rpv3 .lcoi-foot{font-size:1.2rem;color:var(--mg);margin-top:.8rem;line-height:1.4;}

/* ---------------------------------------------------------------------
   Guided tours (3 Sep 2026, reworked same day) — launcher pill + menu
   (top-right, mirrors panel-show-btn's top-left placement) stay outside
   the panel as the entry point. The actual storytelling (.tour-mode
   below) now renders INSIDE #rpv3-root via renderTourStep(), replacing
   the panel's normal content rather than floating a small card over it —
   large narration, only the current step's curated snippet, and a
   sticky footer so Back/Next stay reachable without scrolling.
--------------------------------------------------------------------- */
.tour-launcher-btn{
  position:fixed;top:2rem;right:2rem;z-index:20;
  display:flex;align-items:center;gap:.5rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  font-size:1.2rem;line-height:1.6rem;font-weight:500;background:var(--white);color:var(--dg);
  border:1px solid var(--mwg);border-radius:var(--r-full);padding:.7rem 1.3rem;
  cursor:pointer;box-shadow:0 4px 24px rgba(0,0,0,.18);
}
.tour-launcher-btn:hover{border-color:var(--dg);}
.tour-menu{
  position:fixed;top:5.4rem;right:2rem;z-index:20;
  background:var(--white);border:1px solid var(--mwg);border-radius:var(--r-lg);
  box-shadow:0 4px 24px rgba(0,0,0,.18);padding:.5rem;display:flex;flex-direction:column;gap:.2rem;min-width:23rem;
}
.tour-menu.hidden{display:none;}
.tour-menu button{
  text-align:left;background:none;border:none;padding:.85rem 1rem;border-radius:var(--r-md);
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--dg);cursor:pointer;
}
.tour-menu button:hover{background:var(--lwg);}

.tour-mode{display:flex;flex-direction:column;min-height:100%;}
.tour-mode-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.4rem;}
.tour-mode-heading{text-align:right;}
.tour-mode-eyebrow{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.2rem;line-height:1.6rem;font-weight:500;color:var(--mg);text-transform:uppercase;letter-spacing:.04em;}
.tour-mode-stepcount{font-size:1.2rem;line-height:1.6rem;color:var(--mg);margin-top:.1rem;}
.tour-mode-narration{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.4rem;font-weight:500;line-height:1.45;
  color:var(--dg);margin-bottom:1.8rem;
}
.tour-mode-content{flex:1 1 auto;margin-bottom:1.6rem;}
.tour-mode-content .section{padding:0 0 1.2rem;border-top:none;}
.tour-mode-cta-row{display:flex;gap:.8rem;margin-top:.4rem;}
.tour-mode-callout{background:var(--lwg);border:1px solid var(--wg);border-radius:var(--r-lg);padding:1.2rem 1.3rem;font-size:1.2rem;line-height:1.5;color:var(--dg);}
.tour-mode-foot{
  position:sticky;bottom:0;background:var(--white);margin:auto -2rem -2rem;padding:1.2rem 2rem 1.6rem;
  border-top:1px solid var(--wg);display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
.tour-nav-dots{display:flex;gap:.4rem;}
.tour-nav-dot{width:.6rem;height:.6rem;border-radius:50%;background:var(--wg);}
.tour-nav-dot.active{background:var(--dg);}
.tour-nav-btns{display:flex;gap:.6rem;}
.tour-nav-btn{
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:500;font-size:1.2rem;line-height:1.6rem;padding:.65rem 1.3rem;
  border-radius:var(--r-full);cursor:pointer;border:1px solid var(--mwg);background:var(--white);color:var(--dg);
}
.tour-nav-btn.primary{background:var(--dg);color:var(--white);border-color:var(--dg);}
.tour-nav-btn:disabled{opacity:.35;cursor:default;}

/* Landing-view tour launch buttons (rpv3LandingHTML) */
.tour-launch-row{display:flex;gap:.8rem;margin:0 0 1.8rem;}
.tour-launch-btn{
  flex:1;text-align:left;background:var(--lwg);border:1.5px solid var(--wg);border-radius:var(--r-lg);
  padding:1.1rem 1.2rem;cursor:pointer;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
}
.tour-launch-btn:hover{border-color:var(--dg);}
.tour-launch-btn .tlb-title{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:700;font-size:1.2rem;line-height:1.6rem;color:var(--dg);display:flex;align-items:center;gap:.5rem;}
.tour-launch-btn .tlb-sub{font-size:1.2rem;color:var(--mg);margin-top:.3rem;line-height:1.4;}

/* Phone preview (set by the hosting page through window.__gim.setPreview, see
   embed-api.js): only the map shows; its panel, key, bars and cards stay
   hidden until the reader opens it. */
body.tsi-preview :is(.maptools,.mapbar,.mtrial,.mapkey,.mappanel,.panel,.pwx,.pincard,.panel-hide-btn,.panel-show-btn,.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right){display:none!important}

/* PHONE MOCK (26 Nov 2026, not reviewed): text-and-chart stops ("is-left")
   become a full-width band at the top, the map frames its subject in the
   space below (pathwayPadding), and a stop's key folds into a "Key" pill. */
@media (max-width:760px){
  .pwx-card-stop.is-left{
    bottom:auto;max-height:calc(100% - var(--pwx-rail-h) - 18rem);
    padding:1.6rem 1.6rem 2.8rem;
    background:linear-gradient(180deg, rgba(244,245,255,.97) 0, rgba(244,245,255,.97) calc(100% - 2.4rem), rgba(244,245,255,0) 100%);
  }
  .pwx-card-stop.is-left .pwx-card-stop-inner{width:100%;gap:1.2rem;}
  .pwx-card-stop.is-left .pwx-card-stop-title{font-size:2.2rem;line-height:1.18;}
  .pwx-card-stop.is-left .pwx-card-stop-body{font-size:1.6rem;}
  .pwx-card-stop.is-left .xp-chart{margin-top:.4rem;}
  .pwx-card-stop .xp-share-bar.is-big{height:4rem;}
  .pwx-card-stop .xp-share-seg, .pwx-card-stop .xp-share-scale{font-size:1.3rem;}

  /* The one-line stops (evenType): the same band. */
  .pwx-story.is-line, body[data-xpshade] .pwx-story.is-line{
    left:0;right:0;top:0;width:auto;max-height:58%;box-sizing:border-box;border-radius:0;
    padding:1.6rem 1.6rem 2.8rem;
    background:linear-gradient(180deg, rgba(244,245,255,.97) 0, rgba(244,245,255,.97) calc(100% - 2.4rem), rgba(244,245,255,0) 100%);
  }
  body[data-xpeven] .pwx-line, body[data-xpeven] .pwx-subline, .pwx-line, .pwx-line.is-long{font-size:2.2rem;line-height:1.18;}
  .pwx-subline{font-size:1.8rem;margin-top:1.2rem;}
  body[data-xpeven] .pwx-subline{margin-top:1rem;}
  .pwx-story.is-line .xp-chart{margin-top:1.2rem;}
  body:has(.pwx-story.is-line) .pwx-scrim{display:none;}
  body[data-xpinklight] .pwx-story.is-line{background:linear-gradient(180deg, rgba(20,20,24,.88) 0, rgba(20,20,24,.88) calc(100% - 2.4rem), rgba(20,20,24,0) 100%);}
  /* Phone review, 27 Nov (Scott): a lighter shade behind white words on satellite. */
  body[data-xpinklight] .pwx-story.is-line{background:linear-gradient(180deg, rgba(20,20,24,.6) 0, rgba(20,20,24,.6) calc(100% - 2.4rem), rgba(20,20,24,0) 100%);}
  /* Over open sea the light band goes (xpOceanCheck). */
  body[data-xpocean] .pwx-story.is-line{background:none;}
  /* No desktop side fade under the top band. */
  body[data-xpshade="fade"] .pwx::before{display:none;}
  /* Full-frame cards run behind the rail to the bottom edge. */
  .pwx-card-stop:not(.is-left){bottom:0;}
  /* Smaller pins and mines in a story. */
  body.is-immersive .gi-marker-root > *{zoom:.7;}
  /* In a story the map does not open popups on a tap. */
  body.is-immersive .maplibregl-canvas, body.is-immersive .gi-marker-root{pointer-events:none;}

  .xp-key{right:1rem;bottom:calc(var(--pwx-rail-h, 7.2rem) + 1.2rem);padding:.6rem 1.2rem;border-radius:99rem;max-width:calc(100% - 2rem);}
  .xp-key::before{content:'Key';font-weight:500;}
  .xp-key .xp-key-row{display:none;}
  .xp-key:hover, .xp-key:focus-within{border-radius:var(--r-lg);padding:.8rem 1rem;}
  .xp-key:hover::before, .xp-key:focus-within::before{display:none;}
  .xp-key:hover .xp-key-row, .xp-key:focus-within .xp-key-row{display:flex;}
}

/* Phone QA fixes (27 Nov 2026). */
@media (max-width:760px){
  /* The top band starts below "Close story" (it ends 4.6rem down), so the
     button no longer sits on the first line of the headline. */
  .pwx-card-stop.is-left, .pwx-story.is-line, body[data-xpshade] .pwx-story.is-line{padding-top:5.6rem;}
  /* A band holding a diagram or a video may take more of the frame, so the
     last box of a flow and a video's credit line are not cut off. */
  .pwx-card-stop.is-left:has(.xp-flow, .xp-libflow, .xp-yt, .xp-video){max-height:calc(100% - var(--pwx-rail-h) - 6rem);}
  body[data-xplean] .pwx-story.is-line:has(.xp-flow, .xp-libflow, .xp-yt, .xp-video){max-height:74%;}
  /* ...and the hematite/magnetite flow is drawn tighter, to leave map. */
  .xp-flow.is-steel{margin-top:.8rem;column-gap:.8rem;}
  .xp-flow.is-steel .xp-flow-box{min-height:3.2rem;padding:.3rem .8rem;}
  .xp-flow.is-steel .xp-flow-box b{font-size:1.3rem;line-height:1.2;}
  .xp-flow.is-steel .xp-flow-arrow{height:.9rem;}
  /* The three-lanes diagram is too small to read at phone width: it keeps a
     readable width and scrolls sideways inside its card. */
  .pwx-card-stop:has(.xp-lanes){align-items:flex-start;padding:5.6rem 1.6rem 1.6rem;}
  .pwx-card-stop:has(.xp-lanes) .pwx-card-stop-inner{width:100%;min-width:0;}
  .pwx-card-stop:has(.xp-lanes) .xp-chart{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .xp-lanes{min-width:64rem;}
  /* A pinned note may wrap rather than run off the right edge. */
  .pw-anno.is-nowrap{white-space:normal;width:auto;max-width:min(18rem, 46vw) !important;}
}

/* The chart library's pathway diagram (27 Nov 2026): its tokens, from
   website-charts design-system/tokens/diagram.ts. */
.xp-libflow{display:block;width:100%;height:auto;margin-top:1.6rem;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;}
.xp-libflow rect{rx:8;}
.xp-libflow .box-input{fill:#e5e5e5;}
.xp-libflow .box-process{fill:#fff;stroke:#a3a3a3;stroke-width:1;}
.xp-libflow .box-output{fill:#daf1e0;stroke:#89cca3;stroke-width:1;}
.xp-libflow .box-group{fill:#fff;stroke:#89cca3;stroke-width:1;stroke-dasharray:1 3;stroke-linecap:round;}
.xp-libflow text{text-anchor:middle;dominant-baseline:central;}
.xp-libflow .name{font-size:14px;font-weight:500;fill:#0a0a0a;}
.xp-libflow .name-output{font-size:14px;font-weight:500;fill:#0b2318;}
.xp-libflow .desc,.xp-libflow .name-group{font-size:12px;font-weight:400;fill:#737373;}
.xp-libflow .label{font-size:12px;font-weight:400;fill:#404040;text-anchor:start;}
.xp-libflow .label[text-anchor="end"]{text-anchor:end;}
.xp-libflow .arrow{fill:none;stroke:#262626;stroke-width:1;marker-end:url(#xp-lf-head);}
.xp-libflow .arrow.both{marker-start:url(#xp-lf-head);}
.xp-libflow .xp-lf-g.is-later{opacity:.0;}
.xp-libflow .xp-lf-g.is-in{animation:pwx-in .5s .3s cubic-bezier(.2,.7,.3,1) both;}
.xp-libflow .xp-lf-g.is-in.is-late{animation-delay:1s;}
@media (prefers-reduced-motion: reduce){ .xp-libflow .xp-lf-g.is-in{animation:none;} }
/* A YouTube clip as a moving picture (27 Nov 2026). */
.xp-yt-frame{border-radius:.6rem;overflow:hidden;background:#000;}
.xp-yt-frame iframe{display:block;width:100%;aspect-ratio:16/9;border:0;}
.xp-yt figcaption a{color:inherit;text-decoration:underline;}
.pwx-bullets.is-num{list-style:decimal;}
/* ironFlow tips:true (27 Nov 2026): box titles only, the detail on hover or
   focus, in a dark bubble under the box. */
.xp-flow-box.has-tip{position:relative;cursor:help;}
.xp-flow-box.has-tip b{text-decoration:underline dotted rgba(0,0,0,.35);text-underline-offset:.3rem;}
.xp-flow-box.is-mag.has-tip b,.xp-flow-box.is-hem.has-tip b,.xp-flow-box.is-extra.has-tip b,.xp-flow-box.is-steel.has-tip b{text-decoration-color:rgba(255,255,255,.6);}
.xp-flow-box.has-tip::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + .6rem);transform:translateX(-50%);z-index:5;
  width:max-content;max-width:24rem;padding:.6rem .9rem;border-radius:.6rem;background:#171717;color:#fff;
  font-size:1.25rem;line-height:1.4;font-weight:400;text-align:left;white-space:normal;
  opacity:0;visibility:hidden;transition:opacity .15s ease;pointer-events:none;}
.xp-flow-box.has-tip:hover::after,.xp-flow-box.has-tip:focus-visible::after{opacity:1;visibility:visible;}
/* gridCost simple (27 Nov 2026): name | bar | value, both bars on one scale. */
.xp-gridcost.is-simple .xp-dd18-row{grid-template-columns:11rem 1fr;}
/* The bars share the width less room for the longest value, so a value
   follows its bar's end and never squeezes it. */
.xp-gc-bars{display:flex;align-items:center;height:3rem;width:calc(100% - 12rem);}
.xp-gridcost.is-simple .xp-dd18-seg{flex-shrink:0;}
.xp-gridcost.is-simple .xp-gc-val{flex:none;margin-left:.6rem;font-size:1.4rem;color:var(--dg);white-space:nowrap;}
.xp-gc-bars .xp-dd18-seg{height:100%;}
.xp-gridcost.is-simple .xp-gc-val b{color:#000;}
.xp-gridcost.is-simple:not(.is-gap) .xp-gap-note{display:none;}
.xp-gridcost.is-simple:not(.is-gap) .xp-dd18-seg.is-extra{background:#a3a3a3;}
.xp-flow > div:has(.has-tip:hover), .xp-flow > div:has(.has-tip:focus-visible){position:relative;z-index:20;}
.xp-flow-box.has-tip:hover, .xp-flow-box.has-tip:focus-visible{z-index:20;}

/* ---- 28 Nov 2026 review (Scott), Three regions 27 Nov ---- */
/* Cover: the title and intro run wider. */
.pwx .pwx-hero.is-centred{width:min(96rem, 100%);}
/* One size for every sentence on a step: the small lead-in (kicker) and the
   line carried over from the step before (lead) now match the main line,
   with the same paragraph gap as between line and subline. */
.pwx-story .pwx-kicker, .pwx-story .pwx-lead{font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-weight:600;font-size:clamp(2.2rem, 2.1vw, 3.2rem);line-height:1.15;letter-spacing:-.01em;color:var(--black);margin:0;}
.pwx-story .pwx-kicker + .pwx-line, .pwx-story .pwx-line.has-lead{margin-top:1.6rem;}
/* Numbered points: room for the numbers, which hung outside the column. */
.pwx-bullets.is-num{padding-left:1.4em;}
@media (max-width:760px){ .pwx-story .pwx-kicker, .pwx-story .pwx-lead{font-size:2.2rem;line-height:1.18;} .pwx-story .pwx-kicker + .pwx-line, .pwx-story .pwx-line.has-lead{margin-top:1rem;} }
/* Flow diagram (steps 8–9): the hematite column waits invisibly until it comes in. */
.xp-flow .is-ghost{visibility:hidden;}
/* Taller boxes on desktop. */
@media (min-width:761px){
  .xp-flow.is-steel .xp-flow-box{min-height:4.4rem;}
  .xp-flow.is-steel .xp-flow-box b{font-size:1.5rem;}
}
@media (min-width:761px) and (min-height:860px){
  .xp-flow.is-steel .xp-flow-box{min-height:5.4rem;}
  .xp-flow.is-steel .xp-flow-box b{font-size:1.6rem;}
}
/* The tip follows the cursor (xpFlowTip in explainers-c.js), up and to the
   right of it. The CSS bubble stays for keyboard focus only. */
.xp-flow-box.has-tip:hover::after{opacity:0;visibility:hidden;}
.xp-flow-tip{position:fixed;z-index:60;pointer-events:none;width:max-content;max-width:24rem;padding:.6rem .9rem;border-radius:.6rem;background:#171717;color:#fff;
  font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:1.25rem;line-height:1.4;font-weight:400;
  transform:translate(1.2rem, calc(-100% - 1.2rem));opacity:0;transition:opacity .12s ease;}
.xp-flow-tip.is-on{opacity:1;}
/* Cost bars (steps 12–13): a thin black keyline round each bar, a vertical
   axis where the bars start, and taller bars. */
.xp-gridcost.has-axis{position:relative;}
.xp-gridcost.has-axis .xp-gc-bars{height:4rem;}
.xp-gc-bar{display:flex;height:100%;flex-shrink:0;box-sizing:border-box;border:1px solid #000;border-left:0;}
.xp-gc-bar .xp-dd18-seg{height:100%;border-radius:0;}
.xp-gridcost.has-axis::before{content:'';position:absolute;top:-.6rem;bottom:-.6rem;left:calc(11rem + .8rem);border-left:1px solid #000;}
/* Short frames (a laptop with the site header above): the flow is drawn
   tighter so it fits above the story bar without scrolling. */
@media (min-width:761px) and (max-height:760px){
  .xp-flow.is-steel{margin-top:.8rem;}
  .xp-flow.is-steel .xp-flow-box{min-height:3.2rem;padding:.2rem .8rem;}
  .xp-flow.is-steel .xp-flow-box b{font-size:1.35rem;line-height:1.2;}
  .xp-flow.is-steel .xp-flow-arrow{height:1rem;}
}
/* The video plays as a moving picture: no clicks or hover reach YouTube. */
.xp-yt-frame iframe{pointer-events:none;}
/* Lanes, library version (steps 25–27): the figure keeps its proportions and
   fits the card's height, so it never scrolls. */
.xp-traj{display:block;width:100%;height:auto;max-height:calc(100vh - 26rem);margin:0 auto;font-family:'Soehne',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;}
.pwx-card-stop .xp-chart:has(.xp-traj){width:min(110rem, 100%);text-align:center;}
@media (max-width:760px){
  .pwx-card-stop:has(.xp-traj){align-items:flex-start;padding:5.6rem 1.6rem 1.6rem;}
  .pwx-card-stop:has(.xp-traj) .pwx-card-stop-inner{width:100%;min-width:0;}
  .pwx-card-stop:has(.xp-traj) .xp-chart{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .xp-traj{min-width:60rem;max-height:none;}
}
@media (max-width:760px){ .xp-gridcost.has-axis .xp-gc-bars{height:3rem;} }
/* "magnetite resources" in the dots' grey gets the dots' black outline (28 Nov). */
.pwx-story span[style*="--deposit-magnetite"]{-webkit-text-stroke:1px #000;paint-order:normal;}   /* centred on the letter edge */
/* Step 8's flow builds from the top, one row after another. */
.xp-flow.is-cascade > div{animation:pwx-in .45s calc(var(--r, 1) * .14s) cubic-bezier(.2,.7,.3,1) both;}
@media (prefers-reduced-motion: reduce){ .xp-flow.is-cascade > div{animation:none;} }
/* Step 9: the smelter's rows open from nothing, so the space between direct
   reduction and DRI (and the arrow down it) grows rather than jumps. */
.xp-flow.is-hold .xp-grow{overflow:hidden;animation:xp-grow .7s .15s cubic-bezier(.3,.7,.3,1) both;}
@keyframes xp-grow{from{max-height:0;}to{max-height:12rem;}}
@media (prefers-reduced-motion: reduce){ .xp-flow.is-hold .xp-grow{animation:none;} }
/* Numbered points stay on one line each on desktop; the column widens to fit (28 Nov). */
@media (min-width:761px){
  .pwx-bullets.is-num li{white-space:nowrap;}
  .pwx-story.is-line:has(.pwx-bullets.is-num){width:max-content;max-width:calc(100% - 9.6rem);}
}
/* Phones: the story's words in the site's Text-xl-Bold — 20px, 24px leading,
   weight 700 (28 Nov 2026, Scott). */
@media (max-width:760px){
  body .pwx-line, body .pwx-line.is-long, body .pwx-subline,
  body[data-xpeven] .pwx-line, body[data-xpeven] .pwx-subline,
  body .pwx-story .pwx-kicker, body .pwx-story .pwx-lead,
  body .pwx-bullets, body .pwx-card-stop.is-left .pwx-card-stop-title{font-size:2rem;line-height:2.4rem;font-weight:700;letter-spacing:0;}
}
/* Desktop: on a step with a lead-in (the line carried over, or a kicker),
   every sentence takes the long-line size, so none reads as smaller. */
@media (min-width:761px){
  .pwx-story:has(.pwx-lead, .pwx-kicker) :is(.pwx-lead, .pwx-kicker, .pwx-line, .pwx-subline){font-size:clamp(2.2rem, 2.1vw, 3.2rem);line-height:1.15;font-weight:600;color:var(--black);}
  .pwx-story:has(.pwx-lead, .pwx-kicker) .pwx-subline{border-top:none;padding-top:0;margin-top:1.6rem;}
}
/* Cost bars: step 12 shows only the with-grid bar; step 13's bar fades in. */
.xp-gridcost .xp-dd18-row.is-waiting{visibility:hidden;}
.xp-gridcost .xp-dd18-row.is-arrive{animation:pwx-in .5s .2s cubic-bezier(.2,.7,.3,1) both;}
@media (prefers-reduced-motion: reduce){ .xp-gridcost .xp-dd18-row.is-arrive{animation:none;} }

/* ---- 28 Nov 2026, phone review (Scott) ---- */
@media (max-width:760px){
  /* Steps 8–9: the words and the flow diagram take the whole screen down to
     the story bar; no map underneath. */
  body .pwx-story.is-line:has(.xp-flow.is-hold){
    max-height:none;bottom:calc(var(--pwx-rail-h, 7.2rem) + 1.6rem);overflow:auto;
    background:rgb(244,245,255);
  }
  /* Steps 12–13: no grid switch card on the map; the bars carry the numbers. */
  .xp-switch{display:none !important;}
  /* White-on-black cards: one step down the type scale, to text-2xl (24px). */
  .pwx-card-stop.is-dark .pwx-card-stop-title,
  .pwx-card-stop.is-dark.is-even.is-even .pwx-card-stop-body{font-size:2.4rem;line-height:3rem;}
}
/* Phones: the 610px diagram fits the width, so no sideways scroll. */
@media (max-width:760px){
  .xp-traj.is-610{min-width:0;width:100%;max-height:none;}
  .pwx-card-stop:has(.xp-traj.is-610) .xp-chart{overflow:visible;}
}
@media (max-width:760px){
  /* With the whole screen, the flow can use bigger boxes again. */
  .pwx-story.is-line:has(.xp-flow.is-hold) .xp-flow.is-steel{margin-top:2rem;}
  .pwx-story.is-line:has(.xp-flow.is-hold) .xp-flow.is-steel .xp-flow-box{min-height:4.8rem;padding:.4rem .8rem;}
  .pwx-story.is-line:has(.xp-flow.is-hold) .xp-flow.is-steel .xp-flow-box b{font-size:1.5rem;line-height:1.25;}
  .pwx-story.is-line:has(.xp-flow.is-hold) .xp-flow.is-steel .xp-flow-arrow{height:1.6rem;}
}
/* Phones: China, South Korea and Japan sit close together, so South Korea's
   name goes on a line of its own above the other two (28 Nov 2026). */
@media (max-width:760px){ .xp-trade-label[data-trade="ore-korea"] > span{display:inline-block;transform:translateY(-1.8rem);} }
