/* Australian Tech Jobs Radar. The look of the other tools on tools.safcre.com.au (tools 7, 8 and
   10): Instrument Serif for display type and figures, Figtree for text, JetBrains Mono for labels,
   hairlines, pills, numbered sections, a fixed header that blurs once scrolled and the big fading
   footer word. The eight themes are shared with the other tools (sc-theme in local storage).
   Only data gets colour: --series for every role and --hl for the highlight. Each theme's pair
   comes from tool 7, where it was checked for colour-blind readers. app.js reads these tokens
   for the charts and the 3D radar, so every colour here is a plain hex or rgba value. */

@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(fonts/figtree.woff2) format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ---------- themes (every text colour passes 4.5:1 on its page and panel) ---------- */
:root, [data-theme='night-globe'] { --page: #07090D; --surface: #0D1118; --surface-2: #1A1E24; --ink: #ECEBE6; --ink-2: #C0C3C7; --muted: #8B93A1; --grid: #1D2531; --axis: #444C58; --border: #1D2531; --border-strong: #4F5763; --series: #4D9BFF; --series-soft: rgba(77, 155, 255, 0.16); --hl: #F2B544; --hl-soft: rgba(242, 181, 68, 0.16); --hl-ink: #ECEBE6; --hl-badge-ink: #0B0B0B; --focus: #ECEBE6; --link: #ECEBE6; --up: #3FBF3F; --down: #F55A5A; --btn-primary: #ECEBE6; --btn-primary-ink: #07090D; --dark: 1; color-scheme: dark; }
[data-theme='rust-volt'] { --page: #0A0A0A; --surface: #141414; --surface-2: #212121; --ink: #F2F2F2; --ink-2: #CACACA; --muted: #9A9A9A; --grid: #262626; --axis: #4F4F4F; --border: #262626; --border-strong: #5A5A5A; --series: #D8FF3A; --series-soft: rgba(216, 255, 58, 0.16); --hl: #E5482A; --hl-soft: rgba(229, 72, 42, 0.16); --hl-ink: #F2F2F2; --hl-badge-ink: #0B0B0B; --focus: #F2F2F2; --link: #F2F2F2; --up: #3FBF3F; --down: #F55A5A; --btn-primary: #F2F2F2; --btn-primary-ink: #0A0A0A; --dark: 1; color-scheme: dark; }
[data-theme='copper-jade'] { --page: #0B0D0C; --surface: #131715; --surface-2: #202422; --ink: #F0F0EC; --ink-2: #C9CCC8; --muted: #9A9F9B; --grid: #252B28; --axis: #4E5450; --border: #252B28; --border-strong: #5A5F5C; --series: #2ED19A; --series-soft: rgba(46, 209, 154, 0.16); --hl: #D9773A; --hl-soft: rgba(217, 119, 58, 0.16); --hl-ink: #F0F0EC; --hl-badge-ink: #0B0B0B; --focus: #F0F0EC; --link: #F0F0EC; --up: #3FBF3F; --down: #F55A5A; --btn-primary: #F0F0EC; --btn-primary-ink: #0B0D0C; --dark: 1; color-scheme: dark; }
[data-theme='scan-black'] { --page: #050605; --surface: #0A0C0A; --surface-2: #181A18; --ink: #F2F2ED; --ink-2: #CACCC6; --muted: #9A9D96; --grid: #1E2A1F; --axis: #495249; --border: #1E2A1F; --border-strong: #565E55; --series: #3AFB3B; --series-soft: rgba(58, 251, 59, 0.16); --hl: #FF4FB0; --hl-soft: rgba(255, 79, 176, 0.16); --hl-ink: #F2F2ED; --hl-badge-ink: #0B0B0B; --focus: #F2F2ED; --link: #F2F2ED; --up: #3FBF3F; --down: #F55A5A; --btn-primary: #F2F2ED; --btn-primary-ink: #050605; --dark: 1; color-scheme: dark; }
[data-theme='saffron-black'] { --page: #050505; --surface: #0B0B0A; --surface-2: #191917; --ink: #F2EFE8; --ink-2: #CBC7BF; --muted: #9C978C; --grid: #24221D; --axis: #4E4B44; --border: #24221D; --border-strong: #5A574F; --series: #B48CFF; --series-soft: rgba(180, 140, 255, 0.16); --hl: #FF9A1F; --hl-soft: rgba(255, 154, 31, 0.16); --hl-ink: #F2EFE8; --hl-badge-ink: #0B0B0B; --focus: #F2EFE8; --link: #F2EFE8; --up: #3FBF3F; --down: #F55A5A; --btn-primary: #F2EFE8; --btn-primary-ink: #050505; --dark: 1; color-scheme: dark; }
[data-theme='signal-mono'] { --page: #000000; --surface: #0A0A0A; --surface-2: #181818; --ink: #F5F5F0; --ink-2: #CCCCC9; --muted: #9A9A9A; --grid: #222222; --axis: #4C4C4C; --border: #222222; --border-strong: #585858; --series: #F5F5F0; --series-soft: rgba(245, 245, 240, 0.16); --hl: #FF5F00; --hl-soft: rgba(255, 95, 0, 0.16); --hl-ink: #F5F5F0; --hl-badge-ink: #0B0B0B; --focus: #F5F5F0; --link: #F5F5F0; --up: #3FBF3F; --down: #F55A5A; --btn-primary: #F5F5F0; --btn-primary-ink: #000000; --dark: 1; color-scheme: dark; }
[data-theme='paper'] { --page: #EEE9E4; --surface: #F6F2EE; --surface-2: #EBE8E4; --ink: #090B08; --ink-2: #2E312C; --muted: #5C6059; --grid: #D9D1BC; --axis: #ADA999; --border: #D9D1BC; --border-strong: #A19E8F; --series: #1F5FA8; --series-soft: rgba(31, 95, 168, 0.12); --hl: #B23A0B; --hl-soft: rgba(178, 58, 11, 0.12); --hl-ink: #090B08; --hl-badge-ink: #FFFFFF; --focus: #090B08; --link: #090B08; --up: #006300; --down: #B42318; --btn-primary: #090B08; --btn-primary-ink: #EEE9E4; --dark: 0; color-scheme: light; }
[data-theme='gallery'] { --page: #FAFAF7; --surface: #FFFFFF; --surface-2: #F4F4F4; --ink: #111111; --ink-2: #333331; --muted: #5D5D58; --grid: #E2E2DC; --axis: #B3B3AE; --border: #E2E2DC; --border-strong: #A6A6A1; --series: #0E7C5A; --series-soft: rgba(14, 124, 90, 0.12); --hl: #C2410C; --hl-soft: rgba(194, 65, 12, 0.12); --hl-ink: #111111; --hl-badge-ink: #FFFFFF; --focus: #111111; --link: #111111; --up: #006300; --down: #B42318; --btn-primary: #111111; --btn-primary-ink: #FAFAF7; --dark: 0; color-scheme: light; }

:root {
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --font: 'Figtree', system-ui, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --header-h: clamp(58px, 5vw, 76px);
  /* Fluid type and spacing (phones to 4K) */
  font-size: clamp(16px, 0.35vw + 14px, 22px);
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: 1rem;
  --step-1: clamp(1.1rem, 1.05rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --space-1: clamp(0.25rem, 0.2rem + 0.2vw, 0.375rem);
  --space-2: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
  --space-3: clamp(0.75rem, 0.6rem + 0.5vw, 1.125rem);
  --space-4: clamp(1rem, 0.8rem + 0.9vw, 1.75rem);
  --space-5: clamp(1.5rem, 1rem + 2vw, 3rem);
  --space-6: clamp(3rem, 2rem + 4vw, 6.5rem);
  --gutter: max(clamp(16px, 3.6vw, 72px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --radius: clamp(12px, 1vw, 18px);
  --maxw: 118rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 5rem); background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--series); color: var(--page); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--ink); }
button, select, textarea, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 0.98; margin: 0; }
.display em { font-style: italic; }
.d-hero { font-size: clamp(2.9rem, min(6.4vw, 11vh), 8rem); }
.d-l { font-size: clamp(2rem, 3.6vw, 3.9rem); line-height: 1.02; }
.eyebrow { font-family: var(--mono); font-size: clamp(0.68rem, 0.62rem + 0.2vw, 0.8rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.lede { color: var(--ink); font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.35rem); line-height: 1.5; max-width: 40ch; text-wrap: pretty; }
.as-of { color: var(--ink-2); font-size: var(--step--1); }
.as-of-label { font-weight: 600; color: var(--ink); }
.hero .as-of { display: inline-flex; flex-wrap: wrap; gap: 0.35em; align-items: baseline; border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.9rem; width: fit-content; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--page) 84%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--border); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: clamp(10px, 1.4vw, 24px); }
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.55rem); white-space: nowrap; }
.brand i { font-style: italic; }
.brand__mark { width: 1.25em; height: 1.25em; flex: none; }
.mark-ring { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.mark-sweep { stroke: var(--series); stroke-width: 2; stroke-linecap: round; }
.mark-dot { fill: var(--hl); }
.mark-dot--b { fill: var(--series); }
/* The trail every tool carries at the top left: Saffron Creations mark / All tools / this tool */
.sc-trail { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.sc-trail__home { display: inline-flex; border-radius: 5px; }
.sc-trail__home img { display: block; width: auto; height: clamp(26px, 1.55em, 34px); }
.sc-trail__sep { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.sc-trail__tools { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sc-trail__tools:hover { color: var(--ink); }
@media (max-width: 640px) { .sc-trail__tools, .sc-trail__sep--2 { display: none; } }
@media (max-width: 520px) { .hide-s { display: none; } }
@media (max-width: 47.99rem) { .hide-m { display: none; } }

/* theme menu */
.theme-menu { position: relative; }
.theme-menu__pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, 86vw); background: var(--page); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; z-index: 70; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.theme-menu__pop .eyebrow { padding: 0.5rem 0.6rem 0.3rem; }
.theme-opt { display: flex; align-items: center; gap: 0.7rem; width: 100%; border: 0; background: transparent; padding: 0.55rem 0.6rem; border-radius: 10px; cursor: pointer; text-align: left; font-size: 0.88rem; color: var(--ink); min-height: 2.5rem; }
.theme-opt:hover { background: var(--surface-2); }
.theme-opt[aria-checked='true'] { background: var(--surface-2); font-weight: 600; }
.theme-opt small { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.theme-sw { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); flex: none; }
.theme-sw i { width: 14px; height: 18px; display: block; }

/* ---------- hero with the 3D radar ---------- */
.hero { padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: calc(var(--space-6) - var(--space-3)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 56px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: clamp(1rem, 2.4vh, 1.6rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-stage { position: relative; height: clamp(340px, 66vh, 820px); min-width: 0; }
.stage-canvas { position: absolute; inset: 0 0 4.5rem; }
.stage-canvas canvas { display: block; width: 100% !important; height: 100% !important; touch-action: pan-y; }
.stage-labels { position: absolute; inset: 0 0 4.5rem; pointer-events: none; overflow: hidden; }
.stage-labels span { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; line-height: 1.25; text-align: center; will-change: transform; }
.stage-labels span b { display: block; font-weight: 400; color: var(--ink); font-size: 0.68rem; }
.stage-labels span.is-hl, .stage-labels span.is-hl b { color: var(--hl); }
.no-webgl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); font-size: 0.9rem; }
.stage-hud { position: absolute; left: 0; right: 0; bottom: 3.4rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; pointer-events: none; }
.stage-unit, .stage-when { display: flex; flex-direction: column; gap: 0.15rem; }
.stage-when { text-align: right; align-items: flex-end; }
.stage-unit b, .stage-when b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2.3rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stage-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.9rem; }
.stage-scrub { flex: 1; display: flex; align-items: center; }
.stage-scrub input { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; background: transparent; cursor: pointer; margin: 0; }
.stage-scrub input::-webkit-slider-runnable-track { height: 2px; background: var(--border-strong); }
.stage-scrub input::-moz-range-track { height: 2px; background: var(--border-strong); }
.stage-scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); margin-top: -8px; border: 3px solid var(--page); box-shadow: 0 0 0 1px var(--ink); }
.stage-scrub input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--page); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-stage { height: clamp(360px, 104vw, 560px); }
}

/* ---------- controls ---------- */
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 0.3rem 0.9rem; border-radius: 999px; cursor: pointer; font-size: var(--step--1); min-height: 2.25rem; min-width: 2.75rem; color: var(--ink-2); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--page); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em; min-height: 2.75rem; padding: 0.45rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--ink); cursor: pointer; font-size: var(--step--1); font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { border-color: var(--muted); background: var(--surface-2); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--btn-primary); color: var(--btn-primary-ink); border-color: var(--btn-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-primary) 86%, var(--page)); border-color: var(--btn-primary); }
.btn-small { min-height: 2.25rem; padding: 0.25rem 0.9rem; font-size: 0.82rem; }
.btn-icon { min-width: 2.75rem; padding: 0.4rem; }
.row-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.link-btn { border: 0; background: none; color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; padding: 0.25rem 0.35rem; min-height: 1.75rem; font-size: var(--step--1); font-weight: 600; }
.chip { border: 1px solid var(--border-strong); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 0.2rem 0.75rem; min-height: 2.25rem; min-width: 2.75rem; cursor: pointer; font-size: var(--step--1); font-family: var(--mono); letter-spacing: 0.04em; }
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.badge { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 0.35em; border-radius: 999px; background: var(--btn-primary-ink); color: var(--btn-primary); font-size: 0.8em; }
.badge:empty { display: none; }

/* ---------- filter bar (sticky under the header) ---------- */
.fbar { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--border); }
html:not(.js) .fbar { display: none; }
.fbar-inner { padding-block: var(--space-2); }
.fbar-mobile { display: none; }
.filter-panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3); }
.panel-head, .panel-done { display: none; }
.panel-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; }

.dd { position: relative; }
.dd-toggle {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 2.75rem; padding: 0.35rem 1rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--ink); cursor: pointer; font-size: var(--step--1); max-width: 22rem;
}
.dd-toggle:hover { border-color: var(--muted); }
.dd-toggle[aria-expanded="true"] { border-color: var(--ink); }
.dd-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dd-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dd-value { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
  width: max-content; min-width: 16rem; max-width: min(34rem, calc(100vw - 2 * var(--gutter)));
  max-height: min(70vh, 36rem); overflow: auto;
  background: var(--page); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); padding: var(--space-3);
}
.dd.open .dd-panel { display: block; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: var(--space-1); }
.dd-panel legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dd-actions { display: flex; gap: var(--space-2); margin-bottom: var(--space-1); }
.checks { display: grid; gap: 2px; }
.checks-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.checks-heading { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border); font-family: var(--mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.check { display: flex; gap: 0.6em; align-items: flex-start; padding: 0.35rem 0.4rem; border-radius: 8px; cursor: pointer; min-height: 2.25rem; }
.check:hover { background: var(--surface-2); }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--series); cursor: pointer; }
.check-text { display: grid; }
.check-sub { font-size: var(--step--1); color: var(--muted); }

.dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2); }
.dates-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field { display: grid; gap: 3px; font-size: var(--step--1); }
.field > span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field select, .field textarea {
  min-height: 2.75rem; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--page); color: var(--ink); padding: 0.3rem 0.7rem; font-size: var(--step--1);
}
.field textarea { width: 100%; font-family: var(--mono); font-size: 0.78rem; resize: vertical; }
.field-inline { display: inline-flex; align-items: center; gap: 0.5em; }
.presets { display: flex; gap: 4px; }
/* Desktop and tablet: one row. The labels sit beside the dates, and Copy link lives in the header. */
@media (min-width: 48rem) {
  .filter-panel { align-items: center; }
  .dates .field { display: flex; align-items: center; gap: 0.45rem; }
  .fbar .panel-actions [data-copy-link] { display: none; }
  .dd-toggle { padding-inline: 0.85rem; }
}

/* Phones: the header scrolls away and the filter bar collapses to a Filters button and a sheet */
@media (max-width: 47.99rem) {
  .site-header { position: absolute; }
  .fbar { top: 0; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--page); }
  .fbar-mobile { display: flex; align-items: center; gap: var(--space-2); }
  .fbar-summary { flex: 1; min-width: 0; font-size: var(--step--1); color: var(--ink-2); overflow-wrap: anywhere; }
  .filter-panel { display: none; }
  .filter-panel.open {
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--space-4);
    position: fixed; inset: 0; z-index: 90; background: var(--page); overflow-y: auto; overscroll-behavior: contain;
    padding: var(--space-3) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom));
    scroll-padding-block: 5rem 9rem;
  }
  .panel-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: calc(-1 * var(--space-3)); background: var(--page); padding-block: var(--space-2); z-index: 2; border-bottom: 1px solid var(--border); }
  .panel-title { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); }
  .dd-toggle { display: none; }
  .dd-panel { display: block; position: static; width: auto; max-width: none; max-height: none; overflow: visible; box-shadow: none; border: 0; padding: 0; min-width: 0; background: transparent; }
  .dd-panel legend, .dates-legend { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-family: var(--serif); font-weight: 400; font-size: var(--step-2); margin-bottom: var(--space-2); }
  .dates { display: grid; grid-template-columns: 1fr 1fr; }
  .dates .presets { grid-column: 1 / -1; }
  .dates .field select { width: 100%; }
  .check { min-height: 2.75rem; align-items: center; }
  .check input { margin: 0; width: 1.35rem; height: 1.35rem; }
  .panel-actions { margin: 0; position: sticky; bottom: calc(-1 * var(--space-4)); background: var(--page); padding-block: var(--space-3); border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; }
  .panel-done { display: inline-flex; grid-column: 1 / -1; min-height: 3rem; font-size: var(--step-0); }
  body.sheet-open { overflow: hidden; }
}
/* In an embedded iframe the sheet opens in place rather than over the page */
@media (max-width: 47.99rem) {
  .embed .filter-panel.open { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius); margin-top: var(--space-2); }
  .embed body.sheet-open, .embed.sheet-open body { overflow: visible; }
}

/* ---------- numbered sections ---------- */
.ch-idx { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem; }
.ch-idx span:first-child { font-family: var(--mono); font-size: 0.75rem; color: var(--ink); border: 1px solid var(--border); border-radius: 999px; padding: 0.15em 0.7em; }
.ch-idx span + span { flex: 1; height: 1px; background: var(--border); }

/* ---------- findings ---------- */
/* Key findings sit above the filter bar (they cover all roles and never follow the filters), in
   two compact columns, so the filters sit straight on the figures and charts they control. */
.findings { display: grid; gap: var(--space-2); padding-block: var(--space-3) var(--space-4); }
.findings-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.4rem; }
.findings-head .ch-idx { flex-basis: 100%; margin-bottom: 0.4rem; }
.d-m { font-size: clamp(1.7rem, 2.4vw, 2.8rem); line-height: 1.05; }
.summary { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-5); font-size: clamp(0.9rem, 0.6rem + 0.35vw, 1rem); line-height: 1.45; counter-reset: f; border-top: 1px solid var(--border); }
@media (min-width: 64rem) { .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.summary li { counter-increment: f; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.45rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.summary li::before { content: counter(f, decimal-leading-zero); font-family: var(--mono); font-size: 0.72rem; color: var(--muted); padding-top: 0.22rem; }
.summary-note { font-size: var(--step--1); color: var(--muted); }
.findings-about { font-size: var(--step--1); color: var(--muted); max-width: 110ch; }
.findings-about b { color: var(--ink-2); font-weight: 600; }

.selection-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); padding: var(--space-2) var(--space-3); border: 2px solid var(--hl-ink); border-radius: var(--radius); background: var(--hl-soft); font-size: var(--step--1); }
.selection-bar[hidden] { display: none; }
.sel-swatch { width: 1.6rem; height: 1rem; border-radius: 4px; border: 2px solid var(--hl-ink); background: repeating-linear-gradient(45deg, var(--hl) 0 4px, var(--hl-soft) 4px 7px); }

/* ---------- tiles ---------- */
.tiles-wrap { container-type: inline-size; container-name: tiles; }
.tiles { display: grid; gap: var(--space-3); grid-template-columns: 1fr 1fr; }
.tiles > :first-child { grid-column: 1 / -1; }
@container tiles (min-width: 40rem) {
  .tiles { grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
  .tiles > * { grid-column: span 2; }
  .tiles > :nth-child(n+4) { grid-column: span 3; }
}
@container tiles (min-width: 68rem) {
  .tiles { grid-template-columns: repeat(5, 1fr); }
  .tiles > *, .tiles > :first-child, .tiles > :nth-child(n+4) { grid-column: auto; }
}
.tile { container-type: inline-size; border-top: 1px solid var(--border-strong); padding: var(--space-3) 0 0; display: grid; gap: var(--space-1); align-content: start; position: relative; min-width: 0; }
.tile-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tile-value { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 4rem); line-height: 1.02; overflow-wrap: anywhere; font-variant-numeric: lining-nums tabular-nums; }
.tile-value.tile-role { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); line-height: 1.1; }
.tile-sub { font-size: var(--step--1); color: var(--muted); }
.tile-delta { font-family: var(--sans); font-weight: 600; font-size: var(--step-0); }
.tile-value .tile-delta { font-family: var(--serif); font-weight: 400; font-size: inherit; }
.th-sub { font-weight: 400; color: var(--muted); font-size: 0.92em; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--ink-2); }
.tile.is-hl { border-top: 3px solid var(--hl); padding-left: var(--space-2); box-shadow: inset 3px 0 0 var(--hl-ink); }
.tile.is-hl::before { content: "Highlighted"; justify-self: start; font-family: var(--mono); font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; background: var(--hl); color: var(--hl-badge-ink); padding: 0.1rem 0.45rem; border-radius: 4px; }
.spark { width: 100%; height: 2.5rem; display: block; margin-top: var(--space-1); }
.spark-range { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- sections and cards ---------- */
.section { padding-top: var(--space-6); }
.section > h2, .section-head { margin-bottom: var(--space-4); }
.section-head { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; align-items: end; }
.section-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); }
.grid-wrap { container-type: inline-size; container-name: grid4; }
.grid-4 { grid-template-columns: minmax(0, 1fr); }
@container grid4 (min-width: 56rem) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container grid4 (min-width: 112rem) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-wide { grid-column: 1 / -1; }
.card {
  container-type: inline-size; container-name: card;
  margin: 0; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(14px, 1.6vw, 28px);
  display: grid; gap: var(--space-2); align-content: start; min-width: 0;
}
.card-head { display: grid; gap: 0.3rem; }
.card-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.9rem); line-height: 1.1; }
.card-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: start; }
.card-sub { font-size: var(--step--1); color: var(--ink-2); max-width: 80ch; }
.card-note { font-size: var(--step--1); color: var(--muted); }
.card-note:empty { display: none; }
.chart { width: 100%; height: clamp(15rem, 45cqi, 32rem); min-width: 0; border-radius: 8px; position: relative; }
#chart-total { height: clamp(16rem, 34cqi, 30rem); }
.chart:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.chart.is-loading { opacity: 0.6; }
@container card (max-width: 30rem) { .card-head h3 { font-size: 1.3rem; } }

/* data views inside cards */
.data-view summary { cursor: pointer; font-size: var(--step--1); font-weight: 600; color: var(--link); padding-block: 0.3rem; width: fit-content; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.data-view[open] summary { margin-bottom: var(--space-2); }
.data-view > div { max-height: 22rem; overflow-y: auto; }
.mini-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.mini-table th, .mini-table td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--grid); vertical-align: top; overflow-wrap: break-word; }
.mini-table td.num, .mini-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mini-table thead th { position: sticky; top: 0; background: var(--page); font-family: var(--mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- main table ---------- */
.table-card { padding: 0; overflow: hidden; container-name: tablebox; }
.roles-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); table-layout: auto; }
.table-caption { caption-side: top; text-align: left; padding: var(--space-3); color: var(--ink-2); font-size: var(--step--1); }
.roles-table th, .roles-table td { padding: 0.6rem 0.65rem; border-top: 1px solid var(--grid); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.roles-table thead th { background: var(--surface); font-weight: 600; vertical-align: bottom; border-top: 0; }
.roles-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.roles-table thead th.num .sort-btn { justify-content: flex-end; text-align: right; }
.sort-btn { display: inline-flex; align-items: flex-end; gap: 0.25em; border: 0; background: none; padding: 0.15rem 0; cursor: pointer; font-weight: 600; text-align: left; font-size: inherit; width: 100%; color: var(--ink); }
.sort-btn .sort-ind { flex: none; width: 0.9em; opacity: 0.45; }
th[aria-sort] .sort-ind { opacity: 1; }
.role-btn { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 0.2em; overflow-wrap: break-word; }
.role-btn:hover { text-decoration-color: currentColor; }
.role-tag { display: inline-block; font-size: 0.75em; font-weight: 600; padding: 0 0.4em; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--ink-2); margin-left: 0.3em; white-space: nowrap; }
.roles-table tbody tr { cursor: pointer; }
.roles-table tbody tr:hover { background: var(--surface-2); }
.roles-table tbody tr.is-faded > *, .roles-table tbody tr.is-faded .role-btn { color: var(--muted); font-weight: 400; }
.roles-table tbody tr.is-faded .role-btn { text-decoration-color: transparent; }
.roles-table tbody tr.is-hl { background: var(--hl-soft); }
.roles-table tbody tr.is-hl > :first-child { box-shadow: inset 6px 0 0 var(--hl); }
.roles-table tbody tr.is-hl td, .roles-table tbody tr.is-hl th { font-weight: 700; border-top: 2px solid var(--hl-ink); border-bottom: 2px solid var(--hl-ink); }
.roles-table .hl-col { background: var(--hl-soft); font-weight: 700; box-shadow: inset 0 0 0 2px var(--hl); }
.sel-mark { display: none; }
.is-hl .sel-mark { display: inline; margin-right: 0.3em; }
.sort-select { display: none; }

/* Narrow table container: each row becomes a card. No sideways scrolling. */
@container tablebox (max-width: 56rem) {
  .roles-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .roles-table, .roles-table tbody { display: block; }
  .roles-table tbody tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 0.35rem var(--space-3); padding: var(--space-3); border-top: 1px solid var(--grid); }
  .roles-table tbody tr > * { display: grid; gap: 0; padding: 0; border: 0 !important; text-align: left !important; }
  .roles-table tbody tr > [data-label]::before { content: attr(data-label); font-size: 0.85em; font-weight: 600; color: var(--muted); }
  .roles-table tbody tr > .cell-role { grid-column: 1 / -1; font-size: var(--step-0); }
  .roles-table tbody tr > .cell-role::before { display: none; }
  .roles-table tbody tr.is-hl { box-shadow: inset 6px 0 0 var(--hl), inset 0 0 0 2px var(--hl-ink); }
  .roles-table tbody tr.is-hl > :first-child { box-shadow: none; }
  .table-caption { display: block; }
}
@media (max-width: 56rem) { .sort-select { display: inline-flex; } }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: var(--space-6); padding-top: clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--border); font-size: var(--step--1); color: var(--ink-2); overflow: hidden; }
.footer-grid { display: grid; gap: clamp(24px, 4vw, 72px); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 0.8fr); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.brand-foot { margin-bottom: 0.6rem; justify-self: start; }
.site-footer h2 { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0.4rem 0; }
.site-footer section { display: grid; gap: var(--space-2); align-content: start; }
.site-footer a { color: var(--ink); }
.sources { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-1); }
.more-tools { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.more-tools a { text-decoration: none; color: var(--ink-2); font-size: 0.92rem; }
.more-tools a:hover { color: var(--ink); }
.site-footer__base { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem 1.6rem; flex-wrap: wrap; padding-block: 1.6rem; margin-top: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--ink-2); position: relative; z-index: 1; }
.credit a { color: var(--ink); text-decoration-thickness: 1px; }
.site-footer__word { font-family: var(--serif); font-size: clamp(5rem, 24vw, 24rem); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 22%, var(--page)) 10%, color-mix(in srgb, var(--ink) 4%, var(--page)) 95%); -webkit-background-clip: text; background-clip: text; text-align: center; margin-top: 1rem; padding: 0 0.1em 0.06em; pointer-events: none; user-select: none; }
.noscript { padding: var(--space-3); }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: var(--page); padding: 0.65rem 1.1rem; border-radius: 999px; font-size: var(--step--1); font-weight: 600; z-index: 120; opacity: 0; pointer-events: none; transition: opacity 0.2s; max-width: calc(100vw - 2rem); }
.toast.show { opacity: 1; }

/* ---------- embedded in an iframe: compact, no site header, no 3D radar ---------- */
.embed .site-header, .embed .hero-stage, .embed .hero .lede, .embed .hero-actions { display: none; }
.embed .hero { padding-top: var(--space-4); padding-bottom: var(--space-3); }
.embed .hero-grid { min-height: 0; grid-template-columns: minmax(0, 1fr); }
.embed .d-hero { font-size: clamp(2rem, 5vw, 3.4rem); }
.embed .fbar { position: static; }
.embed .site-footer section[aria-labelledby="embed-title"], .embed .site-footer section[aria-labelledby="more-tools-title"], .embed .site-footer__word { display: none; }

/* charts tooltip (ECharts appends this element) */
.atjr-tip { font-family: var(--font) !important; font-size: var(--step--1) !important; line-height: 1.4; max-width: min(22rem, 80vw); white-space: normal !important; }
.atjr-tip .tip-title { font-weight: 700; margin-bottom: 0.2rem; overflow-wrap: anywhere; }
.atjr-tip .tip-row { display: flex; gap: 0.5rem; align-items: baseline; justify-content: space-between; }
.atjr-tip .tip-row b { font-variant-numeric: tabular-nums; }
.atjr-tip .tip-key { display: inline-block; width: 0.9rem; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 0.35rem; }
.atjr-tip .tip-muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .tile.is-hl, .roles-table tbody tr.is-hl { outline: 3px solid Highlight; }
}
@media print {
  .site-header, .fbar, .hero-stage, .data-view, .section-tools, .site-footer section[aria-labelledby="embed-title"], .site-footer__word { display: none !important; }
  .hero { padding-top: 0; }
  .rv, .rv-kids > * { opacity: 1 !important; transform: none !important; }
}

/* Reset to default, at the bottom of the theme menu (clears the theme saved for every tool) */
.theme-reset { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.6rem 0.45rem; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.86rem; text-align: left; cursor: pointer; min-height: 2.5rem; }
.theme-reset:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.theme-reset small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- footer: the credit under the sources (pattern1), the big word goes back to the top ---------- */
.site-footer > .wrap { padding-bottom: clamp(2rem, 4vw, 4rem); }
.footer-grid { row-gap: var(--space-4); }
.foot-credit { font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; }
@media (min-width: 1000.02px) {
  .footer-grid > section:not(:first-child) { grid-row: 1 / span 2; }
  .foot-credit { grid-column: 1; grid-row: 2; align-self: end; }
}
@media (max-width: 1000px) { .foot-credit { grid-column: 1 / -1; } }
@property --word-a { syntax: '<percentage>'; inherits: false; initial-value: 22%; }
@property --word-b { syntax: '<percentage>'; inherits: false; initial-value: 4%; }
.site-footer a.site-footer__word {
  display: block; color: transparent; text-decoration: none; cursor: pointer; pointer-events: auto;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) var(--word-a), var(--page)) 10%, color-mix(in srgb, var(--ink) var(--word-b), var(--page)) 95%);
  -webkit-background-clip: text; background-clip: text;
  transition: --word-a .45s var(--ease), --word-b .45s var(--ease), opacity 1s var(--ease), transform 1.1s var(--ease);
}
.site-footer a.site-footer__word:hover, .site-footer a.site-footer__word:focus-visible { --word-a: 44%; --word-b: 14%; }
.site-footer a.site-footer__word:focus-visible { outline-offset: -0.08em; border-radius: 0.1em; }

/* ---------- appear effects: sections fade and rise into place as they come into view ----------
   The head script adds rv-on only when motion is allowed; app.js adds .in as each part scrolls in.
   .rv moves the element itself, .rv-kids moves its children one after another. */
.rv-on .rv, .rv-on .rv-kids > * { transition: opacity .9s var(--ease), transform 1s var(--ease); }
.rv-on .rv:not(.in), .rv-on .rv-kids:not(.in) > * { opacity: 0; transform: translateY(26px); }
.rv-on .site-footer a.site-footer__word:not(.in) { transform: translateY(18%); }
.rv-on .rv-kids > :nth-child(2) { transition-delay: 70ms; }
.rv-on .rv-kids > :nth-child(3) { transition-delay: 140ms; }
.rv-on .rv-kids > :nth-child(4) { transition-delay: 210ms; }
.rv-on .rv-kids > :nth-child(5) { transition-delay: 280ms; }
.rv-on .rv-kids > :nth-child(6) { transition-delay: 350ms; }
.rv-on .rv-kids > :nth-child(7) { transition-delay: 420ms; }
.rv-on .rv-kids > :nth-child(n + 8) { transition-delay: 490ms; }
.rv-on .hero-text > .rv:nth-child(2) { transition-delay: 90ms; }
.rv-on .hero-text > .rv:nth-child(3) { transition-delay: 180ms; }
.rv-on .hero-text > .rv:nth-child(4) { transition-delay: 260ms; }
.rv-on .hero-text > .rv:nth-child(5) { transition-delay: 330ms; }
.rv-on .hero-stage.rv { transition-delay: 150ms; transition-duration: 1.3s, 1.4s; }
.rv-on .grid > .rv:nth-child(2), .rv-on .grid-4 > .rv:nth-child(2) { transition-delay: 90ms; }
.rv-on .grid-4 > .rv:nth-child(3) { transition-delay: 180ms; }
.rv-on .grid-4 > .rv:nth-child(4) { transition-delay: 270ms; }
.rv-on .section > h2.rv, .rv-on .section-head.rv { transition-delay: 80ms; }
/* the small trend line under the headline figure draws from left to right */
.rv-on .tiles .spark { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease) .45s; }
.rv-on .tiles:not(.in) .spark { clip-path: inset(0 100% 0 0); }
