/* Walkthrough shell. Tokens, type, strip, headers, ledger rows, footer and primary button are ported
   from the locked setup flow (defender-gold/index.html) so this reads as the same family. */
:root {
  --bg: #081321; --bg-medallion: #0d1d31;
  --ink: #f5f2eb; --ink-2: #c5cfdc; --ink-muted: #8fa1b8; --on-primary: #081321;
  --gold: #dfb256; --gold-dim: rgba(223,178,86,0.24); --gold-faint: rgba(223,178,86,0.10);
  --line: #1a2d46; --line-strong: #2c476a; --focus: #dfb256; --control-border: #4e6c91;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-display: clamp(2.05rem, 4.1vw, 3.35rem);
  --text-title: clamp(1.45rem, 2.3vw, 1.9rem);
  --text-lead: clamp(1rem, 1.25vw, 1.125rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 180ms; --dur-fade: 240ms; --dur-step: 340ms;
  --gutter: clamp(20px, 5vw, 56px); --topbar-h: 68px; --strip-h: 48px;
  --product-1: #74c3ff; --product-1-text: #85cbff; --product-1-rule: rgba(116,195,255,0.44); --product-1-tint: rgba(116,195,255,0.085);
  --product-2: #a684e8; --product-2-text: #b497ee; --product-2-rule: rgba(166,132,232,0.48); --product-2-tint: rgba(166,132,232,0.09);
  --product-3: #76e3b3; --product-3-text: #84e8bc; --product-3-rule: rgba(118,227,179,0.42); --product-3-tint: rgba(118,227,179,0.08);
  --product-4: #e48b6b; --product-4-text: #ea9a7d; --product-4-rule: rgba(228,139,107,0.46); --product-4-tint: rgba(228,139,107,0.085);
  --st-law: #5fd3a0; --st-committee: #dfb256; --st-intro: #74c3ff; --st-dead: #6b7f9a; --moved: #74c3ff;
  --map-fill-watch: #0f2238; --map-seam-watch: #2d4d73; --map-lit-fill: #163150;
  --mark: rgba(223,178,86,0.26);
}
[data-hue="1"] { --p-hue: var(--product-1); --p-text: var(--product-1-text); --p-rule: var(--product-1-rule); --p-tint: var(--product-1-tint); }
[data-hue="2"] { --p-hue: var(--product-2); --p-text: var(--product-2-text); --p-rule: var(--product-2-rule); --p-tint: var(--product-2-tint); }
[data-hue="3"] { --p-hue: var(--product-3); --p-text: var(--product-3-text); --p-rule: var(--product-3-rule); --p-tint: var(--product-3-tint); }
[data-hue="4"] { --p-hue: var(--product-4); --p-text: var(--product-4-text); --p-rule: var(--product-4-rule); --p-tint: var(--product-4-tint); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p, h1, h2, h3, ul { margin: 0; padding: 0; }
ul { list-style: none; }
svg.ic { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.field-canvas { position: fixed; inset: 0; width: 100vw; height: 100dvh; display: block; pointer-events: none; z-index: 1; }
.shell { position: relative; z-index: 10; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-h); width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; user-select: none; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.brand-sub { color: var(--ink-muted); font-weight: 500; }
.top-actions { display: inline-flex; align-items: center; gap: 6px; margin-right: -10px; }
.top-btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-muted); border-radius: 999px; transition: color var(--dur-micro) var(--ease); }
.top-btn:hover { color: var(--ink); }
.top-btn svg { width: 13px; height: 13px; }
.top-step { color: var(--ink-2); }
.top-step b { color: var(--gold); font-weight: 600; }

.stage { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-areas: "act"; align-items: center; }
.act { grid-area: act; width: 100%; padding: 20px 0 56px; }
.act.is-parked { display: none; }
.act.is-exiting { pointer-events: none; }
.act-with-strip { align-self: start; padding-top: calc(var(--strip-h) + 20px); padding-bottom: 24px; min-width: 0; }
.act-fade { opacity: 0; transform: translateY(10px); transition: opacity 1000ms var(--ease), transform 1200ms var(--ease); }
.act.is-active .act-fade { opacity: 1; transform: translateY(0); }
.act.is-exiting .act-fade { opacity: 0; transform: translateY(-8px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.act.is-exiting { opacity: 0; transition: opacity 600ms var(--ease); }

/* strip of what has been established so far */
.setup-strip { grid-area: act; align-self: start; width: 100%; height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 16; white-space: nowrap; overflow: hidden;
  transition: opacity var(--dur-fade) var(--ease); }
.setup-strip.is-parked { display: none; }
.strip-item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); animation: strip-in 240ms var(--ease) both; }
.strip-item + .strip-item::before { content: "·"; color: var(--ink-muted); margin: 0 9px 0 8px; }
.strip-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--bg); display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.strip-company-name { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.strip-tag { color: var(--p-text); }
.strip-tag + .strip-tag::before { content: ","; color: var(--ink-muted); margin-right: 6px; }
@keyframes strip-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* shared act furniture */
.wrap { max-width: 880px; min-width: 0; margin: 0 auto; width: 100%; position: relative; }
.wrap.is-wide { max-width: 1068px; }
.act-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 18px; }
.act-title { font-size: var(--text-title); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); }
.act-purpose { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.48; max-width: 62ch; }
.provenance-label { font-size: 0.8125rem; font-weight: 600; color: var(--gold); }
.act-footer { padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.next-preview { max-width: 34rem; flex: 1 1 auto; }
.next-eyebrow { margin: 0 0 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; color: var(--gold); }
.next-copy { font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; min-height: 1.5em; transition: opacity var(--dur-fade) var(--ease); }
.next-copy strong { font-weight: 600; color: var(--ink); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 999px; background: var(--ink); color: var(--on-primary);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; flex-shrink: 0; white-space: nowrap; transition: transform var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease), opacity var(--dur-fade) var(--ease); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-primary:active { background: #dcd8ce; transform: translateY(1px); }
.btn-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-micro) var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary.is-busy { opacity: 0.42; pointer-events: none; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em; color: var(--gold); margin: 0 0 14px; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-muted); }
.ours { font-size: 0.75rem; font-weight: 500; color: var(--ink-muted); }

/* stage tags (colour = stage, always with its word and icon) */
.stage-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--st); border: 1px solid color-mix(in srgb, var(--st) 42%, transparent); background: color-mix(in srgb, var(--st) 9%, transparent); }
.stage-tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage-tag[data-stage="Now law"] { --st: var(--st-law); }
.stage-tag[data-stage="In committee"] { --st: var(--st-committee); }
.stage-tag[data-stage="Introduced"], .stage-tag[data-stage="Engrossed"] { --st: var(--st-intro); }
.stage-tag[data-stage="Did not advance"] { --st: var(--st-dead); }

/* agenda overlay */
.agenda { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(8,19,33,0.86); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity var(--dur-fade) var(--ease); }
.agenda.is-open { opacity: 1; pointer-events: auto; }
.agenda-panel { width: min(560px, calc(100vw - 40px)); }
.agenda-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.agenda-row { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 6px; padding: 11px 0; border-top: 1px solid var(--line); text-align: left; font-size: 0.9375rem; color: var(--ink-2); transition: color var(--dur-micro) var(--ease); }
.agenda-row:hover { color: var(--ink); }
.agenda-row .n { font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); }
.agenda-row.is-current { color: var(--ink); }
.agenda-row.is-current .n { color: var(--gold); }
.agenda-row .here { font-size: 0.75rem; font-weight: 600; color: var(--gold); }

/* ---------- Welcome ---------- */
.welcome-wrap { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.welcome-wrap > .act-fade { display: flex; flex-direction: column; align-items: center; width: 100%; }
.constellation { position: relative; width: 196px; height: 196px; display: grid; place-items: center; margin-bottom: 24px; }
.orbit-ring { position: absolute; inset: 22px; border-radius: 50%; border: 1px dashed rgba(150,178,220,0.30); opacity: 0; transition: opacity 600ms var(--ease); }
.is-lit .orbit-ring { opacity: 1; }
.shield { width: 84px; height: 84px; position: relative; z-index: 2; }
.shield path.body { fill: #0d1d31; stroke: var(--line-strong); stroke-width: 1.5; }
.shield path.trace { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease); }
.is-lit .shield path.trace { stroke-dashoffset: 0; }
.shield path.check { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 420ms var(--ease) 900ms; }
.is-lit .shield path.check { stroke-dashoffset: 0; }
.shield-halo { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(223,178,86,0.13) 0%, rgba(223,178,86,0) 68%); opacity: 0; transition: opacity 900ms var(--ease) 500ms; }
.is-lit .shield-halo { opacity: 1; }
.orbiter { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; display: grid; place-items: center; color: var(--p-text);
  background: #0d1d31; border: 1px solid var(--p-rule); opacity: 0; transform: translate(0,0) scale(0.4); transition: opacity 420ms var(--ease), transform 760ms var(--ease); }
.orbiter svg { width: 15px; height: 15px; }
.is-lit .orbiter { opacity: 1; transform: translate(var(--ox), var(--oy)) scale(1); }
.welcome-title { font-size: var(--text-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.032em; max-width: 17ch; text-wrap: balance; }
.welcome-lead { font-size: var(--text-lead); color: var(--ink-2); margin: 18px auto 0; max-width: 52ch; line-height: 1.55; }
.found-strip { margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 14px; width: 100%; }
.found-item { display: inline-flex; align-items: center; gap: 9px; font-size: 0.875rem; font-weight: 500; color: var(--ink-muted); transition: color 360ms var(--ease); }
.found-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background-color 360ms var(--ease), transform 360ms var(--ease); }
.found-item.is-ready { color: var(--ink); }
.found-item.is-ready .found-pip { background: var(--gold); transform: scale(1.2); }
.found-item.is-ready [data-hue] { color: var(--p-text); }
.welcome-actions { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.welcome-note { font-size: 0.8125rem; color: var(--ink-muted); }

/* ---------- Positions ---------- */
.pos-grid { display: grid; grid-template-columns: 318px minmax(0, 1fr); gap: 0 76px; position: relative; border-top: 1px solid var(--line); padding-top: 16px; }
.pos-col-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; }
.pos-col-head .count { font-size: 0.75rem; font-weight: 500; color: var(--ink-muted); }
.pos-product { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--p-text); margin-bottom: 10px; }
.pos-product .well { width: 26px; height: 26px; border-radius: 7px; background: var(--p-tint); border: 1px solid var(--p-rule); display: grid; place-items: center; }
.watch-item { position: relative; padding: 11px 0 11px 14px; border-top: 1px solid var(--line); }
.watch-item::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 1px; background: var(--line-strong); transition: background-color var(--dur-fade) var(--ease); }
.watch-item.is-set::before { background: var(--gold); }
.watch-name { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.watch-state { font-size: 0.8125rem; color: var(--ink-muted); margin-top: 1px; display: flex; align-items: center; gap: 6px; min-height: 1.4em; }
.watch-state .is-pos { color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.watch-state .is-pos svg { width: 13px; height: 13px; stroke-width: 2; }
.pos-control { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease); }
.pos-control > div { overflow: hidden; }
.pos-control.is-open { grid-template-rows: 1fr; }
.seg { display: inline-flex; margin-top: 9px; border: 1px solid var(--control-border); border-radius: 7px; overflow: hidden; }
.seg span { padding: 5px 13px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); transition: background-color var(--dur-fade) var(--ease), color var(--dur-fade) var(--ease); }
.seg span + span { border-left: 1px solid var(--control-border); }
.seg span.is-on { background: var(--gold); color: var(--on-primary); font-weight: 600; }
.seg span.is-press { background: rgba(245,242,235,0.10); }
.pos-note { margin-top: 8px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); min-height: 2.9em; padding-bottom: 2px; }
.pos-note .caret, .aside-reason .caret { display: inline-block; width: 1px; height: 1em; background: var(--gold); vertical-align: -2px; margin-left: 1px; animation: blink 900ms steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.bill-row { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0 9px 12px; border-top: 1px solid var(--line);
  transition: opacity 420ms var(--ease), background-color 420ms var(--ease); }
.bill-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: transparent; transition: background-color 420ms var(--ease); }
.bill-row.is-inline::before { background: var(--st-law); }
.bill-head { font-size: 0.875rem; font-weight: 500; color: var(--ink); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-ref { font-size: 0.75rem; color: var(--ink-muted); margin-top: 1px; white-space: nowrap; }
.bill-effect { justify-self: end; min-width: 164px; display: flex; justify-content: flex-end; }
.effect-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; white-space: nowrap;
  color: var(--st-law); border: 1px solid rgba(95,211,160,0.42); background: rgba(95,211,160,0.09); opacity: 0; transform: translateX(-6px) scale(0.96); transition: opacity 300ms var(--ease), transform 420ms var(--ease); }
.effect-tag.is-in { opacity: 1; transform: none; }
.effect-tag svg { width: 12px; height: 12px; stroke-width: 2; }
.effect-none { font-size: 0.75rem; color: var(--ink-muted); opacity: 0; transition: opacity 500ms var(--ease); }
.effect-none.is-in { opacity: 0.85; }
.bill-row.is-dim .bill-head, .bill-row.is-dim .bill-ref { opacity: 0.55; transition: opacity 500ms var(--ease); }
.bill-row.is-leaving { opacity: 0; }
.bill-collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 460ms var(--ease); }
.bill-collapse.is-closed { grid-template-rows: 0fr; }
.bill-collapse > div { overflow: hidden; min-height: 0; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.threads path { fill: none; stroke: var(--gold); stroke-width: 1.25; stroke-linecap: round; opacity: 0.9; transition: opacity 700ms var(--ease); }
.threads.is-rest path { opacity: 0.22; }
.threads circle { fill: var(--gold); }
.pos-tally { display: flex; gap: 22px; align-items: baseline; padding: 11px 0 0 12px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-muted); min-height: 38px; }
.pos-tally b { font-weight: 600; color: var(--ink); margin-right: 5px; }
.pos-tally .t-in b { color: var(--st-law); }
.pos-tally > span { opacity: 0; transition: opacity 400ms var(--ease); }
.pos-tally > span.is-in { opacity: 1; }
/* passage card for the not-applicable beat */
.aside-card { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 460ms var(--ease); }
.aside-card.is-open { grid-template-rows: 1fr; }
.aside-card > div { overflow: hidden; min-height: 0; }
.aside-inner { margin: 2px 0 10px 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-medallion); }
.aside-passage { font-size: 0.8125rem; line-height: 1.55; color: var(--ink-2); }
.aside-passage mark { background: transparent; color: inherit; border-radius: 2px; transition: background-color 500ms var(--ease), color 500ms var(--ease); padding: 1px 0; }
.aside-passage mark.is-on { background: var(--mark); color: var(--ink); }
.aside-reason { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; font-size: 0.8125rem; color: var(--ink); min-height: 2.2em; }
.aside-reason .k { font-size: 0.75rem; font-weight: 600; color: var(--gold); white-space: nowrap; }
.kept { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 2px 12px; opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease), transform 480ms var(--ease); }
.kept.is-in { opacity: 1; transform: none; }
.kept-head { display: flex; align-items: center; gap: 7px; padding: 9px 0 7px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; color: var(--gold); }
.kept-head svg { width: 13px; height: 13px; }
.kept-row { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-2); line-height: 1.45; opacity: 0; transform: translateY(5px); transition: opacity 360ms var(--ease), transform 420ms var(--ease); }
.kept-row.is-in { opacity: 1; transform: none; }
.kept-row b { color: var(--ink); font-weight: 600; }
.kept-row .when { display: block; font-size: 0.75rem; color: var(--ink-muted); }
.example-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--gold); }
.example-flag svg { width: 14px; height: 14px; }

/* Surescripts' own mark at the centre of the welcome, in the setup flow's tile-and-ring treatment */
.mark-tile { position: relative; z-index: 2; width: 104px; height: 104px; display: grid; place-items: center; opacity: 0; transform: scale(0.86); transition: opacity 420ms var(--ease), transform 620ms var(--ease); }
.is-lit .mark-tile { opacity: 1; transform: none; }
.mark-tile img { width: 68px; height: 68px; border-radius: 16px; display: block; }
.mark-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark-ring rect { fill: none; stroke-width: 2; }
.mark-ring .ring-track { stroke: var(--line-strong); }
.mark-ring .ring-fill { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms var(--ease) 250ms; }
.is-lit .mark-ring .ring-fill { stroke-dashoffset: 0; }
img.strip-mark { background: none; border-radius: 5px; object-fit: cover; }

/* ?still=1 : no motion, every beat lands on its end state (used for checking renders) */
.still *, .still *::before, .still *::after { transition: none !important; animation: none !important; }

.top-btn[hidden] { display: none; }

/* the simulation label is removed from the deck at the designer's direction; this guards against it coming back */
.meaning-sim-note, .noise-header-note { display: none !important; }

/* no narration line in the footer: only the 'Up next' label and the button */
.act-footer .next-copy { display: none !important; }

/* One fixed frame for every slide: the slide fills the window's height, the footer (label and button) sits at the
   same place at the bottom on every slide, and the content is centred in the space between the title and the footer. */
.act-with-strip:not(.is-parked) { align-self: stretch; display: flex; padding-bottom: 44px; }
.act-with-strip > .wrap { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.act-with-strip > .wrap > * { flex-shrink: 0; }
.act-with-strip > .wrap > .act-footer { margin-top: auto; padding-top: 16px; }
.act-with-strip > .wrap > :nth-child(2):not(.act-footer) { margin-top: auto; }
.act-with-strip > .wrap > :first-child:not(.act-header):not(.act-footer):not(header) { margin-top: 0; }

/* slide menu: a small list that drops from the slide label in the top bar (click the label, or press A) */
.agenda { position: fixed; inset: auto; display: block; place-items: initial; background: none; backdrop-filter: none; z-index: 80; transform: translateY(-6px); transition: opacity 220ms var(--ease), transform 260ms var(--ease); }
.agenda.is-open { transform: none; }
.agenda-panel { width: 250px; padding: 6px; background: #0d1d31; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,0.45); }
.agenda-title { display: none; }
.agenda-row { grid-template-columns: 30px 1fr auto; padding: 8px 10px; border-top: 0; border-radius: 6px; font-size: 0.875rem; }
.agenda-row:hover { background: rgba(245,242,235,0.06); }
.agenda-row .here { font-size: 0; }
.agenda-row.is-current { background: rgba(223,178,86,0.10); }
.top-step { border: 1px solid var(--line-strong); padding: 6px 12px; }
.top-step:hover { border-color: var(--control-border); }
.top-step::after { content: ""; width: 6px; height: 6px; margin-left: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }

/* fifth product grouping */
:root { --product-5: #c9d06c; --product-5-text: #d5dc86; --product-5-rule: rgba(201,208,108,0.44); --product-5-tint: rgba(201,208,108,0.08); }
[data-hue="5"] { --p-hue: var(--product-5); --p-text: var(--product-5-text); --p-rule: var(--product-5-rule); --p-tint: var(--product-5-tint); }
.strip-item { font-size: 0.78rem; }

/* while a slide builds its finished state out of sight, nothing may animate (this is what flashed on arrival and on Replay) */
.walk-building, .walk-building * { transition: none !important; animation: none !important; }
