/* The one control the kit has no part for: the scenario slider. Drawn in the kit's
   own tokens (navy track, white thumb ringed in navy, the kit's focus ring). */
.kit-range { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; background: transparent; cursor: pointer; margin: 0; }
.kit-range::-webkit-slider-runnable-track { height: 7px; border-radius: 3px; background: var(--color-navy-200); }
.kit-range::-moz-range-track { height: 7px; border-radius: 3px; background: var(--color-navy-200); }
.kit-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -6.5px; border-radius: 50%; background: #fff; border: 2px solid var(--color-navy-900); box-shadow: 0 2px 8px var(--navy-glass-shadow); }
.kit-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--color-navy-900); }
.kit-range:focus-visible { outline: none; }
.kit-range:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring); }

/* Positive palette (more green and blue, less gray). Navy stays the frame;
   data marks carry sky, teal and leaf green. Good news reads green; caution keeps the kit's rust. */
:root {
  --hue-sky: #1a86c7;
  --hue-sky-soft: #8cc8ec;
  --hue-teal: #12907f;
  --hue-green: #2f9e5b;
  --hue-leaf: #8fd0a6;
  --hue-mist: #d8ecf7;
  --hue-mint: #def3e6;
  --delta-good: #1f7f45;
}
.kit-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--hue-mist), var(--hue-mint)); }
.kit-range::-moz-range-track { background: linear-gradient(90deg, var(--hue-mist), var(--hue-mint)); }
.kit-range::-webkit-slider-thumb { border-color: var(--hue-sky); }

/* The tempo cycle, ported whole from the kit signature:
   the band's italic turn waves navy-lavender to a cream peak (12s); the headline figure tile carries the comet ring (6s). */
:root { --color-tempo-ink: #2a3560; --color-tempo-deep: #5a6aaa; --color-tempo-mid: #8a8ec8; --color-tempo-light: #a0b8dc; --color-tempo-air: #c6d6ee; }
@keyframes sunset-wave { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@property --gradient-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes border-spin { to { --gradient-angle: 360deg; } }
.text-cycle-tempo {
  background: linear-gradient(90deg, #a0b8dc 0%, #b4c6e2 15%, #c6d6ee 28%, #d6c9b2 40%, #f3e9d6 50%, #d6c9b2 60%, #c6d6ee 72%, #b4c6e2 85%, #a0b8dc 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: sunset-wave 12s linear infinite;
}
.tempo-ring { position: relative; }
.tempo-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--gradient-angle), rgba(255, 255, 255, 0.2) 0%, var(--color-tempo-ink) 10%, var(--color-tempo-deep) 19%, var(--color-tempo-mid) 28%, var(--color-tempo-light) 37%, var(--color-tempo-air) 44%, rgba(255, 255, 255, 0.2) 54%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .text-cycle-tempo { animation: none !important; background-position: 30% 50%; }
  .tempo-ring::before { animation: none !important; --gradient-angle: 120deg; }
}

/* Kit v5 vibe: liquid glass over the district's photo, v5's chart palette, light numerals.
   Ported from the Kit v5 tokens: the frost material, blur, edge, shadow and radii, and the chart colours.
   The App Kit v1 structure stays; only the ground, the panels and the colours change. */
:root {
  --k-frost: rgba(255, 255, 255, 0.58);
  --k-frost-edge: rgba(255, 255, 255, 0.6);
  --k-frost-solid: rgba(250, 250, 252, 0.95);
  --k-blur: blur(34px) saturate(1.9);
  --k-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -22px rgba(0, 0, 0, 0.28);
  --k-r-tile: 22px;
  /* v5 chart palette, mapped onto the explorer's hue names */
  --hue-sky: #4f8df5;
  --hue-sky-soft: #a9c6fa;
  --hue-teal: #b07cf0;
  --hue-green: #2fae7d;
  --hue-leaf: #8fdcbc;
  --hue-amber: #f2a93b;
  --hue-coral: #ef6b5b;
  --hue-mist: #dbe8fd;
  --hue-mint: #d7f3e6;
  --delta-bad: #d9533f;
}
/* the ground: a daylight district photo, blurred and washed bright, behind the work area */
#work { position: relative; isolation: isolate; overflow: clip; }
#work::before { content: ""; position: absolute; inset: 0; overflow: hidden; z-index: -2; background: url("kit/scenes/northlake-aerial.webp") center / cover no-repeat; filter: blur(30px) saturate(1.3) brightness(1.06); transform: scale(1.12); }
#work::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 0%, rgba(214, 233, 255, 0.55), transparent 60%), radial-gradient(110% 80% at 0% 100%, rgba(212, 243, 226, 0.55), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(246, 249, 252, 0.62)); }
/* the panels: v5 frost */
#work .card-chart, #work .card-glass, #work .card {
  background: var(--k-frost); border: 1px solid var(--k-frost-edge); box-shadow: var(--k-glass-shadow);
  backdrop-filter: var(--k-blur); -webkit-backdrop-filter: var(--k-blur); border-radius: var(--k-r-tile);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { #work .card-chart, #work .card-glass, #work .card { background: var(--k-frost-solid); } }
/* hairlines inside frost read as light, not grey */
#work .card-chart .border-navy-100 { border-color: rgba(17, 19, 22, 0.08); }
/* v5 numerals: light weight, larger, ink */
#work .kpi-figure { font-weight: 300; letter-spacing: -0.03em; font-size: clamp(2.25rem, 3.2vw, 3rem); }
#work .kpi-figure[data-flag="true"] { color: var(--hue-coral) !important; }
/* pills: white on frost, the chosen one dark (v5 controls) */
#work .chip { border-radius: 999px; }
@media print { #work::before, #work::after { display: none; } #work .card-chart, #work .card-glass, #work .card { background: #fff; backdrop-filter: none; box-shadow: none; } }

/* Hover: the frost clears toward white and lifts a touch. Quick in, slow out (~280ms exit). */
#work .card-chart, #work .card-glass, #work .card {
  transition: background-color 420ms ease, box-shadow 420ms ease, transform 420ms ease, border-color 420ms ease;
}
@media (hover: hover) and (pointer: fine) {
  #work .card-chart:hover, #work .card-glass:hover, #work .card:hover {
    background: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 48px -24px rgba(0, 0, 0, 0.32);
    transition-duration: 180ms;
  }
  #work .card-glass:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { #work .card-chart, #work .card-glass, #work .card { transition: none; } #work .card-glass:hover { transform: none; } }

/* Lists (the white toolbar slab looked rough): the toolbar and its rows are one frost sheet,
   the toolbar a lighter frost of the same sheet so it still reads when it sticks over scrolled rows. */
#work .review-sheet {
  background: var(--k-frost); border: 1px solid var(--k-frost-edge); box-shadow: var(--k-glass-shadow);
  backdrop-filter: var(--k-blur); -webkit-backdrop-filter: var(--k-blur); border-radius: var(--k-r-tile);
  padding: 0 20px 10px;
}
#work .review-sheet [data-testid="review-toolbar"] {
  margin: 0 -20px; padding: 6px 20px 0; border-radius: var(--k-r-tile) var(--k-r-tile) 0 0;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: var(--k-blur); -webkit-backdrop-filter: var(--k-blur);
  border-bottom: 1px solid rgba(17, 19, 22, 0.08);
}
#work .review-sheet .border-navy-100 { border-color: rgba(17, 19, 22, 0.08); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { #work .review-sheet, #work .review-sheet [data-testid="review-toolbar"] { background: var(--k-frost-solid); } }

/* The sticky page header ("should be more like glass"): v5 bar frost, never a white slab. */
header.sticky.top-0.z-30 {
  background: rgba(255, 255, 255, 0.42) !important;
  backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 -1px 0 rgba(17, 19, 22, 0.05);
}

/* ---------------------------------------------------------------- the Presentation
   The cabinet deck in the explorer's own register: the sidebar and header tuck away, #work fills the
   screen over the same blurred district ground, and each slide is v5 frost panels with generous air. */
body.presenting { overflow: hidden; }
body.presenting [data-testid="sidebar"], body.presenting [data-testid="workspace"] > header, body.presenting [data-testid="mobile-nav"] { display: none !important; }
body.presenting [data-testid="workspace"] { overflow: hidden !important; }
body.presenting #work { padding: 0 !important; height: 100dvh; min-height: 100dvh; flex: none; }
.present { position: relative; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: var(--color-navy-900); }
.present-rail, .present-foot { position: relative; z-index: 6; display: flex; align-items: center; gap: 14px; padding: 16px clamp(18px, 3.6vw, 56px); }
.present-rail { justify-content: space-between; }
.present-mark { display: flex; align-items: center; gap: 12px; min-width: 0; font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-navy-700); }
.present-mark img { height: 30px; width: auto; background: #fff; padding: 4px 7px; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.present-mark span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.present-actions { display: flex; gap: 8px; flex-shrink: 0; }
.p-ctl { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--k-frost-edge); background: var(--k-frost); backdrop-filter: var(--k-blur); -webkit-backdrop-filter: var(--k-blur); color: var(--color-navy-800); font-size: var(--type-secondary); cursor: pointer; transition: background-color 420ms ease; }
.p-ctl:hover { background: rgba(255, 255, 255, 0.92); transition-duration: 180ms; }
.p-ctl:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.p-ctl-round { width: 40px; padding: 0; justify-content: center; }
.present-foot { justify-content: center; }
.p-dots { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; }
.p-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(7, 37, 59, 0.22); cursor: pointer; transition: width 320ms cubic-bezier(.2, .8, .2, 1), background-color 320ms ease; }
.p-dot:hover { background: rgba(7, 37, 59, 0.45); }
.p-dot.is-on { width: 26px; background: var(--hue-sky); }
.p-count { min-width: 4.5em; text-align: center; font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 600; letter-spacing: 0.14em; color: var(--color-navy-700); font-variant-numeric: tabular-nums; }
.present[data-photo] .present-mark, .present[data-photo] .p-count { color: rgba(255, 255, 255, 0.86); }
.present[data-photo] .p-dot { background: rgba(255, 255, 255, 0.4); }
.present[data-photo] .p-dot.is-on { background: #fff; }

.present-stage { position: relative; min-height: 0; outline: none; }
.pslide { position: absolute; inset: 0; display: none; overflow-y: auto; overscroll-behavior: contain; padding: clamp(8px, 1.6vh, 20px) clamp(18px, 3.6vw, 56px) clamp(12px, 2vh, 24px); }
.pslide.is-on { display: flex; flex-direction: column; }
.pslide-inner { width: 100%; max-width: 1440px; margin: auto; }
.pslide--photo { position: fixed; inset: 0; padding: 96px clamp(24px, 5vw, 88px) 88px; z-index: 0; }
.p-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-photo-wash { position: absolute; inset: 0; }
.p-wash-left { background: linear-gradient(90deg, rgba(7, 37, 59, 0.94) 0%, rgba(7, 37, 59, 0.84) 34%, rgba(7, 37, 59, 0.35) 54%, rgba(7, 37, 59, 0) 68%); }
.p-wash-right { background: linear-gradient(270deg, rgba(7, 37, 59, 0.94) 0%, rgba(7, 37, 59, 0.84) 34%, rgba(7, 37, 59, 0.35) 54%, rgba(7, 37, 59, 0) 68%); }
.pslide--photo .pslide-inner { position: relative; z-index: 1; margin: auto 0; max-width: none; }
.p-side-right { display: flex; justify-content: flex-end; }
.p-photo-copy { max-width: min(36rem, 46vw); color: #fff; }
.p-eyebrow-light { color: rgba(255, 255, 255, 0.72) !important; }
.p-cover-title { margin-top: 18px; font-weight: 300; font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: 1.06; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.p-cover-title .turn { display: block; margin-top: 10px; font-size: 0.82em; line-height: 1.15; }
.p-cover-lede { margin-top: 22px; font-weight: 300; font-size: clamp(1.05rem, 1.4vw, 1.35rem); line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 32rem; }
.p-chip { margin-top: 28px; }
.p-photo-source { margin-top: 18px; font-size: var(--type-meta); color: rgba(255, 255, 255, 0.62); }
.p-close-cta { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: var(--type-body); cursor: pointer; transition: background-color 420ms ease; }
.p-close-cta:hover { background: rgba(255, 255, 255, 0.26); transition-duration: 180ms; }

/* the type: one kicker, one light headline with the tempo turn, one lede */
.p-eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-navy-600); }
.p-type { font-weight: 500; letter-spacing: 0.16em; color: var(--hue-sky); }
.p-headline { margin-top: 12px; max-width: 30ch; font-weight: 300; font-size: clamp(1.9rem, 3.2vw, 3.15rem); line-height: 1.1; letter-spacing: -0.018em; color: var(--color-navy-900); text-wrap: balance; }
.p-turn {
  background: linear-gradient(90deg, #2a3560 0%, #3d4a86 18%, #5a6aaa 34%, #7f7fc4 50%, #5a6aaa 66%, #3d4a86 82%, #2a3560 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: sunset-wave 12s linear infinite;
}
.p-lede { margin-top: 14px; max-width: 62ch; font-weight: 300; font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.55; color: var(--color-navy-700); }
@media (prefers-reduced-motion: reduce) { .p-turn { animation: none !important; background-position: 30% 50%; } }

/* the panels and their pieces */
.p-grid { display: grid; gap: clamp(14px, 1.4vw, 22px); margin-top: clamp(18px, 3vh, 34px); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 1024px) {
  .p-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p-grid.wide-left { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}
#work .p-panel { padding: clamp(20px, 2.2vw, 34px); min-width: 0; }
.p-list { margin-top: clamp(18px, 3vh, 34px); }
.p-grid .p-list { margin-top: 0; }
.p-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.p-panel-title { font-family: var(--font-heading); font-size: var(--type-body); font-weight: 600; color: var(--color-navy-900); margin-bottom: 14px; }
.p-panel-head .p-panel-title { margin-bottom: 0; }
.p-panel-count { font-size: var(--type-meta); color: var(--color-navy-600); }
.p-type-in { display: block; margin-bottom: 8px; font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-navy-600); }
.p-figure { font-family: var(--font-heading); font-weight: 300; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--color-navy-900); line-height: 0.95; }
.p-figure-hero { display: block; font-size: clamp(5rem, 11vw, 10rem); }
.p-figure-big { display: block; margin-top: 6px; font-size: clamp(3rem, 5vw, 4.6rem); }
.p-figure-meta { display: block; font-size: clamp(1.8rem, 2.4vw, 2.5rem); }
.p-figure-stat { display: block; font-size: clamp(2.2rem, 3.2vw, 3.2rem); }
.p-hero-caption { margin-top: 10px; font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.25; color: var(--color-navy-900); }
.p-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin-top: clamp(20px, 3vh, 32px); border-top: 1px solid rgba(17, 19, 22, 0.08); }
.p-rail-cell { padding: 16px 18px 4px; border-left: 1px solid rgba(17, 19, 22, 0.08); }
.p-rail-cell:first-child { padding-left: 0; border-left: 0; }
.p-rail-label { display: block; margin-top: 8px; font-size: var(--type-meta); line-height: 1.4; color: var(--color-navy-700); }
.p-stats { display: flex; flex-direction: column; gap: 0; }
.p-stat { padding: 16px 0; border-top: 1px solid rgba(17, 19, 22, 0.08); }
.p-stat:first-child { border-top: 0; padding-top: 0; }
.p-outs { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); }
.p-outs .p-stat:first-child { border-top: 1px solid rgba(17, 19, 22, 0.08); padding-top: 16px; }
.p-read { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(17, 19, 22, 0.08); font-size: var(--type-secondary); line-height: 1.6; color: var(--color-navy-700); }
.p-read b { display: block; margin-bottom: 4px; font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-navy-600); }
.p-note { margin-top: 14px; font-size: var(--type-meta); line-height: 1.5; color: var(--color-navy-600); }
.p-source { margin-top: 16px; font-size: var(--type-meta); line-height: 1.5; color: var(--color-navy-600); }
.p-hero .p-source { margin-top: 18px; }

/* Review-style hairline rows */
.p-rows { list-style: none; margin: 0; padding: 0; }
.p-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: baseline; gap: 6px 24px; padding: 18px 10px; margin: 0 -10px; border-top: 1px solid rgba(17, 19, 22, 0.08); border-radius: 10px; transition: background-color 420ms ease, opacity 200ms ease; }
.p-row:first-child { border-top: 0; }
.p-row-go { cursor: pointer; }
.p-row-go:hover, .p-row-go:focus-visible { background: rgba(255, 255, 255, 0.6); transition-duration: 180ms; outline: none; }
.p-row-index { font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 600; letter-spacing: 0.14em; color: var(--hue-sky); }
.p-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; grid-column: 2; }
.p-row:not(:has(.p-row-index)) .p-row-main { grid-column: 1 / 3; }
.p-row-step { font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hue-sky); }
.p-row-title { font-size: clamp(1.05rem, 1.3vw, 1.3rem); font-weight: 400; color: var(--color-navy-900); }
.p-row-note { font-size: var(--type-secondary); line-height: 1.55; color: var(--color-navy-700); max-width: 70ch; }
.p-row-amount { font-family: var(--font-heading); font-weight: 300; font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -0.02em; color: var(--color-navy-900); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-row-when { min-width: 7.5rem; text-align: right; font-size: var(--type-meta); color: var(--color-navy-600); }
.p-fig-strong { font-weight: 700; color: var(--color-navy-900); }
.p-fig { border-radius: 4px; transition: background-color 180ms ease; cursor: default; }
@media (hover: hover) and (pointer: fine) { .p-fig:hover { background: rgba(79, 141, 245, 0.12); } }

/* the year ahead */
.p-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 18px; position: relative; }
.p-timeline::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: rgba(17, 19, 22, 0.14); }
.p-stop { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 8px 6px 0; border-radius: 10px; transition: background-color 420ms ease, opacity 200ms ease; }
.p-stop-dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 999px; background: #fff; border: 2px solid var(--hue-sky-soft); }
.p-stop.is-now .p-stop-dot { background: var(--hue-sky); border-color: var(--hue-sky); }
.p-stop.is-focus .p-stop-dot { background: var(--hue-teal); border-color: var(--hue-teal); box-shadow: 0 0 0 5px rgba(176, 124, 240, 0.18); }
.p-stop-when { font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hue-sky); }
.p-stop.is-focus .p-stop-when { color: var(--hue-teal); }
.p-stop-what { font-size: clamp(1.05rem, 1.25vw, 1.25rem); color: var(--color-navy-900); }
.p-stop-note { font-size: var(--type-secondary); line-height: 1.55; color: var(--color-navy-700); }

/* the divider */
.pslide--divider .pslide-inner { max-width: 60rem; }
#work .p-divider { padding: clamp(32px, 5vw, 72px); }
.p-divider-rule { width: 56px; height: 2px; margin: 22px 0; background: var(--hue-sky); border-radius: 2px; }
.p-divider-title { font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--color-navy-900); }

/* the presenter: 1 to 9 hold one mark, the rest stand back */
.present.is-marking [data-pmark]:not(.is-mark) { opacity: 0.42; }
.present .is-mark { background: rgba(79, 141, 245, 0.1); }
.present .p-rail-cell.is-mark, .present .p-stat.is-mark { background: transparent; }
.present .is-mark .p-figure, .present .is-mark .p-row-amount, .present .is-mark .p-stop-what { color: var(--hue-sky); }
.p-tip { position: fixed; z-index: 70; pointer-events: none; opacity: 0; transition: opacity 280ms ease-in-out; }
.p-tip.is-on { opacity: 1; transition-duration: 150ms; }

/* the slide index */
.p-index { list-style: none; margin: 0; padding: 0; }
.p-index-row { display: flex; width: 100%; align-items: baseline; gap: 18px; padding: 14px 10px; border-top: 1px solid var(--color-navy-100); text-align: left; cursor: pointer; border-radius: 3px; }
.p-index-row.is-on .p-index-title { font-weight: 700; }
.p-index-n { font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 600; letter-spacing: 0.14em; color: var(--hue-sky); }
.p-index-title { font-size: var(--type-body); color: var(--color-navy-900); }

/* a phone: the slide stacks and scrolls inside itself; a sideways swipe turns it */
@media (max-width: 767px) {
  .present-rail, .present-foot { padding: 12px 16px; }
  .present-mark span, .p-ctl-word { display: none; }
  .p-ctl { padding: 0 11px; }
  .p-dots { gap: 5px; }
  .p-dot { width: 6px; height: 6px; }
  .p-dot.is-on { width: 18px; }
  .pslide { padding: 6px 16px 18px; }
  .pslide-inner { margin: 0 auto; }
  .pslide--photo { padding: 80px 22px 76px; }
  .p-wash-left, .p-wash-right { background: linear-gradient(0deg, rgba(7, 37, 59, 0.95) 0%, rgba(7, 37, 59, 0.86) 52%, rgba(7, 37, 59, 0.3) 78%, rgba(7, 37, 59, 0.12) 100%); }
  .pslide--photo .pslide-inner { margin: auto 0 0; }
  .p-side-right { justify-content: flex-start; }
  .p-photo-copy { max-width: none; }
  .p-row { grid-template-columns: minmax(0, 1fr) auto; }
  .p-row-index { grid-column: 1 / -1; }
  .p-row-main, .p-row:not(:has(.p-row-index)) .p-row-main { grid-column: 1 / -1; }
  .p-row-amount { text-align: left; }
  .p-row-when { min-width: 0; }
  .p-timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .p-timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .p-stop { padding: 0 0 22px 30px; }
  .p-rail-cell { padding: 14px 0 4px; border-left: 0; border-top: 1px solid rgba(17, 19, 22, 0.08); }
  .p-rail-cell:first-child { border-top: 0; }
  .p-rail { grid-template-columns: minmax(0, 1fr); }
}

/* Header: more opaque frost and the hide-on-scroll-down motion (header-auto.js). */
header.sticky.top-0.z-30 {
  background: rgba(255, 255, 255, 0.8) !important;
  transition: transform 380ms cubic-bezier(.2, .8, .2, 1), background-color 300ms ease !important;
  will-change: transform;
}
header.sticky.top-0.z-30[data-hidden="1"] { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { header.sticky.top-0.z-30 { transition: none !important; } }
/* Present mode's chrome wears the same bar frost as the page header. */
.present-rail, .present-foot { background: rgba(255, 255, 255, 0.42); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); }
.present-rail { border-bottom: 1px solid rgba(255, 255, 255, 0.55); box-shadow: inset 0 -1px 0 rgba(17, 19, 22, 0.05); }
.present-foot { border-top: 1px solid rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 rgba(17, 19, 22, 0.05); }
.present[data-photo] .present-rail, .present[data-photo] .present-foot { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; }
.present-rail .p-ctl, .present-foot .p-ctl { background: rgba(255, 255, 255, 0.55); }
/* the presentation, second pass: the three moves as three panels, quiet hooks for the chart and control panels */
@media (min-width: 1024px) { .p-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#work .p-move { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.p-move-figure { margin-top: 10px; }
.p-move-title { margin-top: 6px; font-size: clamp(1.1rem, 1.35vw, 1.35rem); color: var(--color-navy-900); }
.p-move-go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--type-meta); color: var(--hue-sky); }
.p-chart, .p-control { display: flex; flex-direction: column; }
.p-side-left { display: block; }
.p-eyebrow > span:first-child { white-space: nowrap; }
@media (max-width: 767px) { .p-eyebrow > span:first-child { white-space: normal; } .p-close-cta { height: auto; min-height: 46px; padding: 10px 18px; text-align: left; } }

/* Desktop: no header bar; Search lives at the top of the sidebar. Phones keep the bar. */
@media (min-width: 768px) { header.sticky.top-0.z-30 { display: none !important; } }
.side-search {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 9px 12px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78); font: inherit; font-size: 0.95rem; text-align: left; cursor: pointer;
  transition: background-color 420ms ease, border-color 420ms ease, color 420ms ease;
}
.side-search:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.24); color: #fff; transition-duration: 160ms; }
.side-search:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.side-search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.side-search span { flex: 1; }
.side-search kbd { font: 500 0.72rem/1 ui-monospace, Menlo, monospace; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); }
@media (max-width: 767px) { .side-search { display: none; } }

/* Classroom impact: the four tiers as one proportional strip, v5 palette by meaning */
.tier-strip { display: flex; gap: 3px; height: 46px; border-radius: 14px; overflow: hidden; }
.tier-seg { min-width: 6px; border: 0; padding: 0; cursor: pointer; transition: opacity 420ms ease, filter 420ms ease; }
.tier-strip:hover .tier-seg:not(:hover) { opacity: 0.55; transition-duration: 180ms; }
.tier-seg[aria-pressed="true"] { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.92); }
.tier-seg:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--color-navy-900); }
.tier-legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 6px 18px; }
.tier-key { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; width: 100%; padding: 10px; margin: 0 -10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; transition: background-color 420ms ease; }
.tier-key:hover, .tier-key.is-on { background: rgba(255, 255, 255, 0.6); transition-duration: 180ms; }
.tier-swatch { width: 11px; height: 11px; border-radius: 4px; align-self: center; }
.tier-name { font-size: var(--type-secondary); color: var(--color-navy-800); }
.tier-val { font-family: var(--font-heading); font-weight: 300; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--color-navy-900); font-variant-numeric: tabular-nums; }
.tier-share { grid-column: 2 / 4; font-size: var(--type-meta); color: var(--color-navy-600); }
.impact-notes { list-style: none; margin: 0; padding: 0; }
.impact-notes li { padding: 12px 0; border-top: 1px solid rgba(17, 19, 22, 0.08); font-size: var(--type-secondary); line-height: 1.6; color: var(--color-navy-700); }
.impact-notes li:first-child { border-top: 0; padding-top: 0; }
.tier { display: block; }
.tier-legend { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

/* ---------------------------------------------------------------- the sign-in gate
   The page band at full height, as the kit's sign-in cover stands: the words bottom-left on the district photo,
   the district mark on its white plate, and the Google button on night glass. */
.gate { min-height: 100dvh; background: var(--color-navy-900); }
.gate > div { margin: 0; }
.gate [data-testid="page-band"] { min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; }
.gate .band-copy { width: 100%; max-width: 40rem; }
.gate-mark { display: inline-flex; align-items: center; margin-bottom: 1.5rem; padding: 6px 8px; border-radius: 3px; background: #fff; }
.gate-mark img { display: block; height: 2rem; width: auto; }
.gate-card { margin-top: 2rem; max-width: 28rem; padding: 1.25rem; border-radius: 3px; }
.gate-kicker { margin: 0 0 0.75rem; font-family: var(--font-heading); font-size: var(--text-kicker); font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-quiet); }
.gate-gsi { min-height: 44px; }
.gate-gsi[hidden], .gate-line[hidden], .gate-retry[hidden] { display: none; }
.gate-line { margin: 0.75rem 0 0; font-size: var(--text-secondary); line-height: 1.5; color: #fff; }
.gate-line[role="alert"] { padding: 0.75rem 1rem; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 3px; background: rgba(255, 255, 255, 0.05); }
.gate-retry { margin-top: 0.75rem; cursor: pointer; border: 0; border-radius: 3px; background: #fff; padding: 0.75rem 1.25rem; font-family: var(--font-heading); font-size: var(--text-kicker); font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-navy-900); }
.gate-retry:hover { background: rgba(255, 255, 255, 0.9); }
