/* ─── NYC Pothole Forecast · Executive Slideshow & Analytics Design System ──
   Conforms strictly to style_guide.md.
   Primary fonts: Mark Pro, system fallbacks; Monospace: Fira Code.
   Color palette: Red (#c20029), Turquoise (#1ba39c), Yellow (#ffad00), Black-tint neutrals.
*/

:root {
  /* Primary Brand - Institutional Red & White */
  --red: #c20029;
  --white: #ffffff;
  --ink: #040505;

  /* Secondary Colors - Preserving Turquoise for Charts/Data */
  --pale-red: #f9f9f9;
  --bright-red: #c20029;
  --dark-red: #800000;
  --pale-turquoise: #eefaff;
  --turquoise: #1ba39c;
  --dark-turquoise: #007873;
  --pale-yellow: #fcfcfc;
  --yellow: #b38f00;
  --dark-yellow: #806600;
  --pale-azure: #f0f4f8;
  --chart-teal: #4dc0c0;

  /* Extended Palette - Neutralized */
  --cobalt: #00226b;
  --azure: #003399;
  --bright-green: #2d5a27;
  --raspberry: #700040;
  --fuchsia: #800060;
  --dark-purple: #201050;

  /* Neutrals (Corporate Scale) */
  --ink-4: #fcfcfc;
  --ink-8: #eeeeee;
  --ink-18: #cccccc;
  --ink-30: #b3b4b4;
  --ink-42: #979797;
  --ink-58: #6c6c6c;
  --ink-67: #545454;
  --ink-77: #3a3a3a;
  --ink-87: #232323;
  --paper: #ffffff;

  /* Typography - Corporate Sans */
  --font-display: "Univers LT Std", Arial, sans-serif;
  --font-body: "Univers LT Std", Arial, sans-serif;
  --font-mono: "Fira Code", monospace;

  /* Spacing & Layout - Sharp & Flat */
  --maxw: 1400px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0px;
  --radius-sm: 0px;
  --radius-lg: 0px;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --focus-ring: 0 0 0 2px var(--red);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink-87);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Accessibility ─────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; outline: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

a {
  color: var(--dark-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--bright-red); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--ink-4);
  border: 1px solid var(--ink-8);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ─── Header & Top Navigation ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--ink-8);
  z-index: 100;
  height: 60px;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 400;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--red);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 400;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: default;
  transition: color 0.15s ease;
  user-select: none;
}

.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--dark-red);
  border-bottom: 1.5px solid var(--dark-red);
  transform: rotate(45deg);
  margin-top: -3px;
}

.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--red);
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
  border-color: var(--red);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--ink-8);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0;
  min-width: 160px;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  border-radius: 0;
}

.btn-mode-toggle,
.btn-fullscreen {
  background: transparent;
  border: 1px solid var(--ink-18);
  color: var(--ink-58);
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.btn-mode-toggle:hover,
.btn-fullscreen:hover {
  background: var(--ink-4);
  color: var(--ink);
  border-color: var(--ink-30);
}

/* ─── Slides / Sections ──────────────────────────────────────────────────── */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


.slide:last-of-type {
  border-bottom: none;
}

.slide-header {
  margin-bottom: 2rem;
}

.slide-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  background: var(--pale-red);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.35rem); margin-bottom: 0.85rem; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.35rem; }

.lead {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--ink-67);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.lead + .lead {
  margin-top: 0.25rem;
}

/* ─── Hero Slide / Executive Landing ─────────────────────────────────────── */

.slide-hero {
  padding: 2rem 0;
  text-align: center;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-content {
  max-width: 54rem;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  background: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--pale-red);
}

.hero-claim {
  font-size: clamp(1.0rem, 2vw, 1.2rem);
  color: var(--ink-77);
  line-height: 1.5;
  margin: 0 auto 2.5rem;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
  text-align: left;
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.metric-card:hover {
  border-color: var(--red);
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ink-18);
}

.metric-card.accent-red::before { background: var(--red); }
.metric-card.accent-turquoise::before { background: var(--turquoise); }
.metric-card.accent-yellow::before { background: var(--yellow); }
.metric-card.accent-azure::before { background: var(--azure); }

.metric-value {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.metric-card.accent-red .metric-value { color: var(--red); }
.metric-card.accent-turquoise .metric-value { color: var(--dark-turquoise); }
.metric-card.accent-yellow .metric-value { color: var(--dark-yellow); }
.metric-card.accent-azure .metric-value { color: var(--cobalt); }

.metric-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-67);
  margin-bottom: 0.35rem;
}

.metric-desc {
  font-size: 0.84rem;
  color: var(--ink-58);
  line-height: 1.4;
  margin: 0;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(194, 0, 41, 0.3);
}
.btn-primary:hover {
  background: var(--dark-red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(194, 0, 41, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--ink-4);
  color: var(--ink-87);
  border: 1px solid var(--ink-18);
}
.btn-secondary:hover {
  background: var(--ink-8);
  color: var(--ink);
  border-color: var(--ink-30);
}

.btn-outline {
  background: transparent;
  color: var(--dark-turquoise);
  border: 1.5px solid var(--turquoise);
}
.btn-outline:hover {
  background: var(--pale-turquoise);
  color: var(--dark-turquoise);
}

/* ─── Business Action Grids & Roadmap Cards ──────────────────────────────── */

.decision-box {
  background: var(--white);
  border: 1px solid var(--ink-18);
  border-left: 4px solid var(--red);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  box-shadow: none;
  position: relative;
}

.decision-box h4 {
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.decision-box p {
  margin: 0;
  color: var(--ink-87);
  font-size: 0.96rem;
  line-height: 1.55;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 1.25rem auto 2rem;
  max-width: 54rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  text-align: left;
}
.hero-bullets li {
  background: var(--white);
  border: 1px solid var(--ink-8);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.86rem;
  color: var(--ink-77);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.hero-bullets li strong {
  color: var(--ink);
  white-space: nowrap;
}

.snappy-bullets {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.snappy-bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-77);
  line-height: 1.5;
}
.snappy-bullets li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--red);
  font-size: 1.1rem;
  line-height: 1;
}
.mape-callout {
  background: var(--pale-turquoise);
  border: 1px solid var(--turquoise);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  color: var(--ink-87);
}
.mape-callout strong {
  color: var(--dark-turquoise);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.roadmap-card {
  background: var(--white);
  border: 1px solid var(--ink-8);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.roadmap-phase {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 0.9rem;
}

.phase-1 { background: var(--pale-turquoise); color: var(--dark-turquoise); }
.phase-2 { background: var(--pale-yellow); color: var(--dark-yellow); }
.phase-3 { background: var(--pale-red); color: var(--dark-red); }

.roadmap-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-67);
}

.roadmap-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

.roadmap-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-42);
  font-weight: 400;
}

.phase-3 .roadmap-list li::before { color: var(--red); }

/* ─── Executive Summary Insight Bullets ─────────────────────────────────── */

.executive-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.executive-insights-grid.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .executive-insights-grid.grid-2x2 {
    grid-template-columns: 1fr;
  }
}
.exec-card {
  background: var(--white);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.exec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ink-18);
}

.exec-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.exec-card:hover::before {
  background: var(--red);
}

.exec-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.exec-icon {
  display: none !important;
}

.exec-icon-red { background: #fdf2f2; color: var(--red); border: 1px solid rgba(194, 0, 41, 0.2); }
.exec-icon-turquoise { background: #eefaff; color: var(--dark-turquoise); border: 1px solid rgba(27, 163, 156, 0.25); }
.exec-icon-yellow { background: #fffcf0; color: var(--dark-yellow); border: 1px solid rgba(179, 143, 0, 0.25); }
.exec-icon-azure { background: #f0f4f8; color: var(--cobalt); border: 1px solid rgba(0, 34, 107, 0.2); }

.exec-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.exec-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-67);
  line-height: 1.5;
}
/* ─── Splits & Content Layouts ───────────────────────────────────────────── */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin: 1.75rem 0;
}

.split-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 1.75rem 0;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--ink-8);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.info-card h4 {
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card p {
  font-size: 0.88rem;
  color: var(--ink-67);
  line-height: 1.45;
  margin: 0;
}

/* ─── Interactive SVG Chart Styles ───────────────────────────────────────── */

.chart-container {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-8);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem 0.85rem;
  box-shadow: var(--shadow-sm);
  margin: 0.85rem 0 1.25rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  padding: 0 0.25rem;
  flex-wrap: nowrap;
  gap: 1rem;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.series-actual {
  stroke: var(--ink);
  stroke-width: 1.5px;
}

.interactive-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  user-select: none;
  overflow: visible;
}

.chart-hover-backdrop {
  cursor: crosshair;
}

/* Grid & Axis */
.grid-line {
  stroke: var(--ink-8);
  stroke-width: 1px;
}

.axis-mark {
  stroke: var(--ink-18);
  stroke-width: 1px;
}

.axis-tick {
  fill: var(--ink-58);
  font-size: 11px;
  font-weight: 400;
  stroke: none;
}

.axis-title {
  fill: var(--ink-67);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  stroke: none;
}

.chart-line.series-forecast,
.chart-line.series-pred {
  stroke-width: 2px;
  stroke: var(--turquoise);
}
.bar-positive,
.bar-negative,
.bar-highlight {
  fill: var(--turquoise);
  transition: opacity 0.15s ease;
}
.chart-line.series-alt { stroke: var(--ink-42); stroke-width: 1.5px; }
.bar-group:hover .bar-positive,
.bar-group:hover .bar-negative,
.bar-group:hover .bar-highlight {
  fill: var(--turquoise);
  opacity: 0.85;
}

.chart-line.series-benchmark {
  stroke: var(--ink-58);
  stroke-width: 1.5px;
  stroke-dasharray: 4 4;
}

.chart-band {
  fill: rgba(27, 163, 156, 0.12);
  stroke: none;
}

.chart-point.series-actual { fill: var(--ink); stroke: none; r: 3px; }
.chart-point.series-forecast,
.chart-point.series-pred { fill: var(--turquoise); stroke: none; r: 3px; }
.chart-point.series-alt { fill: var(--ink-42); stroke: none; r: 3px; }
.chart-point.series-benchmark { fill: var(--ink-58); stroke: none; r: 3px; }

.chart-point {
  opacity: 0;
}
.event-line {
  stroke: var(--dark-yellow);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.event-badge-bg {
  fill: var(--pale-yellow);
  stroke: var(--yellow);
  stroke-width: 1;
}

.event-badge-txt {
  fill: var(--dark-yellow);
  font-size: 10px;
  font-weight: 400;
}

/* Interactive Hover Elements */
.hover-crosshair {
  stroke: var(--ink-30);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.hover-dot {
  stroke: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hover-dot.series-actual { fill: #040505; }
.hover-dot.series-forecast,
.hover-dot.series-pred { fill: #4dc0c0; }
.hover-dot.series-alt { fill: #bf8200; }
.hover-dot.series-benchmark { fill: #bf8200; }

.bar-value-label {
  fill: var(--ink-67);
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 400;
}

.bar-value-label.is-highlight {
  fill: var(--red);
  font-weight: 800;
}

/* Interactive Legend Chips */
.chart-legend-interactive {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.legend-chip {
  background: var(--ink-4);
  border: 1px solid var(--ink-18);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-77);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.legend-chip:hover {
  background: var(--ink-8);
}

.legend-chip.is-muted {
  opacity: 0.45;
  text-decoration: line-through;
}

.legend-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-chip.series-actual .legend-indicator { background: var(--ink); }
.legend-chip.series-forecast .legend-indicator,
.legend-chip.series-pred .legend-indicator { background: var(--chart-teal); }
.legend-chip.series-alt .legend-indicator { background: var(--dark-yellow); }
.legend-chip.series-benchmark .legend-indicator { background: var(--dark-yellow); }

.legend-band {
  display: inline-block;
  width: 14px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--ink-18);
  margin-right: 0.15rem;
}
/* ─── Rich Floating Tooltip ──────────────────────────────────────────────── */

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--white);
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-width: 280px;
  border: 1px solid var(--ink-8);
}

.tip-header {
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--ink-8);
  padding-bottom: 0.35rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.tip-body { display: flex; flex-direction: column; gap: 0.35rem; }

.tip-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.tip-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.tip-legend-dot.series-actual { background: var(--ink); }
.tip-legend-dot.series-forecast,
.tip-legend-dot.series-pred { background: var(--chart-teal); }
.tip-legend-dot.series-alt { background: var(--dark-yellow); }
.tip-legend-dot.series-benchmark { background: var(--dark-yellow); }

.tip-label { color: var(--ink-67); flex-grow: 1; }
.tip-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}

.tip-ci {
  font-size: 0.74rem;
  color: var(--ink-58);
  padding-left: 1rem;
  font-family: var(--font-mono);
}

.tip-note {
  font-size: 0.75rem;
  color: var(--ink-58);
  margin-top: 0.35rem;
  border-top: 1px dashed var(--ink-18);
  padding-top: 0.35rem;
}

/* ─── Interactive Tables & Enhancements ──────────────────────────────────── */

.table-container {
  margin: 1.75rem 0;
  background: var(--white);
  border: 1px solid var(--ink-8);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--ink-4);
  border-bottom: 1px solid var(--ink-8);
}

.btn-table-action {
  background: var(--white);
  border: 1px solid var(--ink-18);
  color: var(--ink-77);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: var(--ink-8);
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ink-8);
  text-align: right;
  white-space: nowrap;
}

.data-table th:first-child, .data-table td:first-child {
  text-align: left;
}

.data-table thead th {
  background: var(--ink-4);
  color: var(--ink-77);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
}

.data-table thead th.sortable-header {
  cursor: pointer;
}

.data-table thead th.sortable-header:hover {
  background: var(--ink-8);
  color: var(--ink);
}

.data-table thead th.is-sorted {
  color: var(--red);
  background: var(--pale-red);
}

.sort-indicator {
  margin-left: 0.35rem;
  font-size: 0.85em;
  color: var(--ink-42);
}

.data-table thead th.is-sorted .sort-indicator {
  color: var(--red);
  font-weight: bold;
}

.data-table tbody tr {
  transition: background 0.12s ease;
}

.data-table tbody tr:hover {
  background: var(--ink-4);
}

.data-table tr.winner-row {
  background: rgba(194, 0, 41, 0.04);
  font-weight: 600;
}

.data-table tr.winner-row td:first-child {
  color: var(--red);
}

.tag-winner {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-delta-pos { color: var(--red); font-weight: 600; }
.tag-delta-neg { color: var(--dark-turquoise); font-weight: 600; }

/* ─── Presentation Slideshow Bar (Deck Mode) ────────────────────────────── */

.deck-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #3a3a3a;
  color: #ffffff;
  padding: 0 1.5rem;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 1000;
  border: none;
}

.deck-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  transition: all 0.15s ease;
}

.deck-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.deck-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.deck-counter {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  min-width: 80px;
  text-align: center;
}

.deck-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.deck-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
}
/* ─── URL Access Key Gate Overlay ────────────────────────────────────────── */

.gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 5, 5, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gate-card {
  background: var(--white);
  border: 1px solid var(--ink-18);
  padding: 2.5rem 2.25rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.gate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.gate-card-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.35rem 0 0.5rem;
}

.gate-card-header p {
  font-size: 0.9rem;
  color: var(--ink-67);
  margin: 0;
  line-height: 1.5;
}

body.is-locked main,
body.is-locked header,
body.is-locked .deck-controls {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.deck-dot.is-active {
  background: #ffffff;
  width: 18px;
  border-radius: 3px;
}

.deck-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.6);
}

/* ─── Slideshow Presentation Mode Active States ──────────────────────────── */

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

.slide {
  scroll-snap-align: start;
  scroll-margin-top: 60px;
  min-height: calc(100vh - 60px);
  padding-top: 2rem;
  padding-bottom: 70px;
  box-sizing: border-box;
}
/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--ink-8);
  color: var(--ink-42);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

/* ─── Responsive (print only) ────────────────────────────────────────────── */

/* ─── Print Stylesheet ──────────────────────────────────────────────────── */

@media print {
  .site-header, .deck-controls, .table-actions, .chart-legend-interactive {
    display: none !important;
  }
  .slide {
    page-break-after: always;
    min-height: auto;
    padding: 2rem 0;
  }
  body {
    color: #000;
    background: #fff;
  }
  .metric-card, .info-card, .chart-container, .table-container {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}


/* ─── Model Selection Heatmaps (Slide 6) ─────────────────────────────────── */

/* ─── Executive Model Selection Heatmaps (Slide 6) ──────────────────────── */

.heatmap-dashboard {
  background: var(--white);
  border: 1px solid var(--ink-8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.heatmap-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ink-8);
}

.heatmap-nav-pills {
  display: inline-flex;
  background: var(--ink-4);
  border: 1px solid var(--ink-8);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.heatmap-pill-btn {
  background: transparent;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-67);
  cursor: pointer;
  transition: all 0.15s ease;
}

.heatmap-pill-btn:hover {
  color: var(--ink);
}

.heatmap-pill-btn.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.heatmap-global-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.72rem;
  color: var(--ink-58);
}

.legend-chip-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid transparent;
}
/* Strip Sections for Heatmap Dashboard */
.heatmap-body-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hm-strip-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  background: var(--ink-4);
  border: 1px solid var(--ink-8);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hm-strip-section:hover {
  border-color: var(--ink-18);
  background: var(--white);
}

.hm-strip-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hm-strip-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hm-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hm-strip-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-87);
}

.hm-strip-desc {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-58);
  line-height: 1.35;
}

/* Strip Matrix Table */
.hm-strip-matrix-wrap {
  overflow-x: auto;
}

.hm-strip-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
  font-size: 0.82rem;
}

.hm-strip-corner {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ink-42);
  text-align: left;
  padding: 0.25rem 0.5rem;
  font-weight: 700;
  min-width: 65px;
}

.hm-strip-th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-67);
  text-align: center;
  padding: 0.25rem 0.35rem;
  font-weight: 700;
}

.hm-strip-row-hdr {
  font-size: 0.8rem;
  color: var(--ink-87);
  text-align: left;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
  font-weight: 700;
  background: var(--ink-4);
  border-radius: 4px;
  border: 1px solid var(--ink-8);
}

.hm-strip-cell {
  position: relative;
  text-align: center;
  padding: 0.4rem 0.3rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  font-family: var(--font-mono);
  font-weight: 700;
  min-width: 55px;
  vertical-align: middle;
}

.hm-strip-cell:hover,
.hm-strip-cell:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  outline: none;
  z-index: 5;
  border-color: currentColor !important;
}

.hm-strip-cell.is-winner-highlight {
  outline: 2px solid var(--red);
  outline-offset: -1px;
}

.hm-strip-val {
  display: block;
  font-size: 0.88rem;
  line-height: 1.1;
}

.hm-strip-tag {
  display: block;
  font-size: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  margin: 2px auto 0 auto;
  width: fit-content;
  line-height: 1;
  text-transform: uppercase;
}

.tag-winner {
  background: var(--red);
  color: var(--white);
}

.tag-best {
  background: var(--turquoise);
  color: var(--white);
}


/* ─── Heatmap Mini-Table Grid (4 config cards side-by-side) ────────────── */

.hm-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.hm-mini-card {
  background: var(--white);
  border: 1px solid var(--ink-8);
  border-radius: var(--radius);
  overflow: hidden;
}

.hm-mini-card.hm-mini-winner {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.hm-mini-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: var(--ink-4);
  border-bottom: 1px solid var(--ink-8);
}

.hm-mini-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 4px;
  background: var(--ink-18);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.hm-mini-card.hm-mini-winner .hm-mini-label {
  background: var(--red);
  color: #fff;
}

.hm-mini-desc {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-67);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 0.72rem;
}

.hm-mini-th {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-42);
  padding: 0.3rem 0.2rem 0.15rem;
  text-align: center;
  font-weight: 600;
}

.hm-mini-th:first-child {
  text-align: left;
  padding-left: 0.5rem;
}

.hm-mini-strat {
  font-size: 0.68rem;
  color: var(--ink-87);
  text-align: left;
  padding: 0.3rem 0.2rem 0.3rem 0.5rem;
  font-weight: 500;
  white-space: nowrap;
}

.hm-mini-strat.is-winner-highlight {
  color: var(--red);
  font-weight: 700;
}

.hm-mini-table .hm-strip-cell {
  padding: 0.25rem 0.15rem;
}

.hm-mini-table .hm-strip-val {
  font-size: 0.72rem;
}

.hm-mini-table .hm-strip-tag {
  font-size: 0.5rem;
}
