    :root {
      --paper: #f1f5f2;
      --ink: #17332d;
      --muted: #60736d;
      --panel: #ffffff;
      --line: #cad8d2;
      --teal: #11796d;
      --forest: #173f37;
      --water: #287da1;
      --hazard: #c4523d;
      --sun: #d6a52f;
      --shadow: 0 0 0 1px rgba(23, 51, 45, 0.04), 0 14px 34px rgba(23, 51, 45, 0.12);
    }
    .control-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 12px; }
    .toggle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .control-bar .sidebar-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-right: 4px; }
    .control-bar button { border-radius: 999px; padding: 8px 11px; font-size: 12px; text-align: left; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
    .control-bar button.active { border-color: transparent; color: white; }
    .pricing-viz-grid { align-items: center; margin-bottom: 32px; }
    .map-with-legend { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
    .map-with-legend .legend { position: absolute; top: 100%; left: 0; justify-content: center; width: 100%; }
    #within-group-correlations { overflow-x: auto; }
    .feature-detail-list { display: grid; grid-template-columns: minmax(135px, .8fr) 68px minmax(180px, 1.1fr) minmax(205px, 1.25fr) 68px minmax(180px, 1.1fr) minmax(205px, 1.25fr); column-gap: 12px; align-items: center; min-width: 1050px; }
    .feature-detail-header, .feature-detail-row { display: contents; }
    .feature-detail-header > div { padding: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
    .feature-detail-header .county-group { padding: 7px 8px; border-bottom: 2px solid var(--line); color: var(--ink); font-size: 12px; text-align: center; text-transform: none; }
    .feature-detail-row > div { min-width: 0; padding: 9px 0; border-top: 1px solid rgba(216,208,196,.7); font-size: 13px; }
    .feature-scale { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 6px; align-items: end; color: var(--muted); font-size: 10px; }
    .feature-scale > :first-child { grid-column: 1; grid-row: 1; }
    .feature-scale > :last-child { grid-column: 2; grid-row: 1; }
    .feature-scale > .feature-scale-bar { grid-column: 1 / -1; grid-row: 2; }
    .feature-scale-bar { position: relative; height: 10px; border-radius: 999px; border: 1px solid rgba(23,32,38,.14); background: linear-gradient(90deg, #16803c 0%, #e0b33b 50%, #b42318 100%); }
    .feature-scale-bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(23,32,38,.42); }
    .feature-scale-bar.percentile { background: linear-gradient(90deg, #e8f1f5 0%, #6fa3b8 50%, #22566b 100%); }
    .feature-scale-bar.percentile::after { display: none; }
    .feature-scale-arrow { position: absolute; top: -8px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid #172026; transform: translateX(-5px); }
    .county-count { justify-self: center; padding: 7px 14px; border: 3px solid var(--active-risk-color, var(--teal)); background: #fff; text-align: center; color: var(--ink); font-size: 17px; font-weight: 850; white-space: nowrap; }
    .risk-sequence-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 4px auto 0; }
    .risk-sequence-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 8px; }
    .risk-legend-button { position: relative; padding: 6px 9px 6px 25px; border: 1px solid var(--risk-color); border-radius: 999px; background: white; color: var(--muted); font-size: 10px; }
    .risk-legend-button::before { content: ""; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; border-radius: 2px; background: var(--risk-color); opacity: .42; transform: translateY(-50%); }
    .risk-legend-button.revealed { color: var(--ink); }
    .risk-legend-button.revealed::before { opacity: 1; }
    .risk-legend-button.active { border-color: var(--risk-color); background: var(--risk-color); color: white; box-shadow: 0 4px 11px color-mix(in srgb, var(--risk-color) 32%, transparent); }
    .risk-legend-button.active::before { background: white; opacity: 1; }
    .sequence-play-button, .feature-sequence-resume { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-width: 32px; height: 30px; padding: 0; font-size: 12px; }
    .event-count-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 16px; width: 100%; margin: 7px 0 0; }
    .event-count-row > .risk-sequence-row { width: 100%; margin: 0; }
    .event-overview { display: none; align-items: center; justify-content: center; min-height: min(54svh, 480px); }
    .event-overview.visible { display: flex; }
    .event-overview-chart { width: 100%; height: min(48svh, 430px); overflow: visible; }
    .playbook-map-wrap { position: sticky; top: 0; height: 350px; overflow: hidden; align-self: start; }
    .playbook-map-wrap .chart { height: 350px; }
    .playbook-map-controls { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 6px; }
    .playbook-map-controls button { min-width: 34px; justify-content: center; box-shadow: 0 2px 8px rgba(23,32,38,.16); }
    .hazard-icon { display: inline-flex; width: 22px; justify-content: center; margin-right: 6px; }
    .hazard-rating-grid { margin: 4px 0 10px; }
    .hazard-rating-overall { margin-bottom: 4px; border-bottom: 2px solid var(--line); }
    .hazard-rating-overall .hazard-rating-item { font-size: 14px; font-weight: 800; padding: 7px 0; border-bottom: 0; }
    .hazard-rating-specific { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px 16px; }
    .hazard-rating-item { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
    .playbook-selected-county { display: none; margin: 10px 0 2px; text-align: center; color: var(--ink); font-size: 18px; font-weight: 850; }
    .playbook-history-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; min-height: 38px; margin: 8px auto 0; padding: 10px 14px; border: 1px solid var(--line); background: #f8fbf9; color: var(--ink); font-size: 12px; font-weight: 750; }
    .playbook-history-legend:empty { display: none; }
    .playbook-history-legend-item { display: inline-flex; align-items: center; gap: 8px; }
    .playbook-history-legend-swatch { width: 24px; height: 12px; border: 1px solid rgba(23,51,45,.16); }
    .playbook-commentary { margin-top: 14px; padding: 18px 20px; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 0; background: #edf7f4; box-shadow: 0 10px 26px rgba(23,51,45,.10); font-size: 16px; line-height: 1.58; }
    .playbook-commentary.neutral { border-left-color: var(--water); background: #edf5f8; }
    .playbook-event-list { list-style: none; margin: 8px 0 0; padding: 0; overflow: visible; }
    .playbook-event-item { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 6px; align-items: center; margin-top: 5px; padding: 7px 8px; border: 1px solid rgba(23,51,45,.12); border-left-width: 4px; border-radius: 0; background: #fff; box-shadow: 0 4px 12px rgba(23,51,45,.06); font-size: 12px; }
    .playbook-summary-detail { display: block; margin: 14px -20px -18px; padding: 14px 20px; border-top: 1px solid rgba(23,51,45,.18); background: rgba(255,255,255,.42); }
    .playbook-event-item.aligned { border-color: #83b99f; border-left-color: #16804c; background: #eaf7ef; }
    .playbook-event-item.misaligned { border-color: #d99b90; border-left-color: #b83d2f; background: #fff0ed; }
    .event-expectation { display: block; margin-top: 4px; color: var(--ink); font-size: 11px; line-height: 1.35; }
    .event-expectation strong { font-weight: 850; }
    .playbook-event-item.aligned .event-expectation strong { color: #167044; }
    .playbook-event-item.misaligned .event-expectation strong { color: #b5352b; }
    .playbook-event-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: rgba(255,255,255,.72); border: 1px solid rgba(23,51,45,.12); border-radius: 50%; font-size: 13px; }
    .event-change { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; white-space: nowrap; font-weight: 850; }
    .event-change.up { color: #167044; }
    .event-change.down { color: #b5352b; }
    .event-change.flat { color: var(--muted); }
    .event-change-arrow { display: inline-block; line-height: 1; text-align: center; }
    /* ---- window frame transition ---- */
    .window-frame { transition: opacity 380ms ease, transform 380ms ease; }
    .window-frame.sliding-left { opacity: 0; transform: translateX(-32px); pointer-events: none; }
    .window-frame.sliding-right { opacity: 0; transform: translateX(32px); pointer-events: none; }
    .window-frame.sliding-in-left { animation: slideInLeft 380ms ease both; }
    .window-frame.sliding-in-right { animation: slideInRight 380ms ease both; }
    @keyframes slideInLeft { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes slideInRight { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      overflow-x: clip;
      background: var(--paper);
      color: var(--ink);
      font-family: "Rubik", sans-serif;
      font-optical-sizing: auto;
      font-weight: <weight>;
      font-style: normal;
      letter-spacing: 0;
    }
    main { width: min(1180px, calc(100vw - 28px)); margin: 0 auto; padding: 0 0 56px; overflow-x: clip; }
    .hero { position: relative; min-height: 72vh; display: flex; align-items: center; color: white; background: var(--forest); box-shadow: 0 0 0 100vmax var(--forest); clip-path: inset(0 -100vmax); border-bottom: 6px solid var(--sun); padding: 44px 0 34px; }
    .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; background: rgba(255,255,255,.22); }
    h1 { margin: 0; max-width: 1080px; font-size: clamp(44px, 7.8vw, 98px); line-height: .95; letter-spacing: 0; }
    .dek { margin: 24px 0 0; max-width: 1020px; color: #dcebe6; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.32; }
    .slide { position: relative; min-height: 96vh; padding: 64px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
    .slide.visible { opacity: 1; transform: translateY(0); }
    .slide.transition-out { opacity: 0; transform: translateX(-40px); }
    .slide.transition-in { opacity: 1; transform: translateX(0); animation: slideFade 420ms ease both; }
    @keyframes slideFade { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: translateX(0); } }
    h2 { margin: 0; max-width: 1040px; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: 0; }
    h2::before { content: ""; display: block; width: 58px; height: 5px; margin-bottom: 14px; background: var(--water); }
    #pricing-grouping h2::before, #features h2::before { background: var(--teal); }
    #events h2::before { background: var(--hazard); }
    #playbook h2::before { background: var(--sun); }
    .section-copy { color: #46545f; font-size: 17px; line-height: 1.55; margin: 14px 0 0; max-width: 900px; }
    .toolbar, .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
    button { font: inherit; font-weight: 800; font-size: 12px; border: 1px solid var(--line); background: #fff; color: #41505a; border-radius: 999px; padding: 8px 11px; cursor: pointer; }
    button.active { background: var(--ink); border-color: var(--ink); color: white; }
    button:disabled { cursor: default; opacity: .7; }
    .viz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; }
    .timeseries-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--water); border-radius: 0; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
    .panel h3, .panel p, .panel .sub, .panel .note, .panel .sources { margin-left: 0; margin-right: 0; }
    #pricing-grouping .panel, #features .panel { border-top-color: var(--teal); }
    #events .panel { border-top-color: var(--hazard); }
    #playbook .panel { border-top-color: var(--sun); }
    .panel h3 { margin: 0 0 4px; font-size: 17px; }
    .sub, .note { color: var(--muted); font-size: 13px; line-height: 1.4; margin: 0 0 8px; }
    .footnote { color: var(--muted); font-size: 11px; line-height: 1.4; margin: 6px 0 0; font-style: italic; }
    .chart { width: 100%; height: 430px; display: block; overflow: hidden; }
    .canvas-chart { position: relative; cursor: default; }
    .canvas-chart canvas, .canvas-chart > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
    .canvas-chart > svg { overflow: visible; pointer-events: none; }
    .chart.tall { height: 520px; }
    .chart.map-companion-line { height: 516px; }
    .chart.rating-risk-line { height: 671px; }
    .chart.map-companion-map { height: 430px; }
    .chart.xtall { height: 620px; }
    .chart.compressing { transform-origin: left center; animation: compressLeft 360ms ease both; }
    @keyframes compressLeft { 0% { transform: scaleX(1); } 45% { transform: scaleX(.94); } 100% { transform: scaleX(1); } }
    .axis text { fill: var(--muted); font-size: 11px; }
    .axis path, .axis line, .grid line { stroke: #d4dfda; }
    .grid path { display: none; }
    .event-line { fill: none; stroke: #172026; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .event-line { pointer-events: none; }
    .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
    .example-county { pointer-events: stroke; }
    .line.background { opacity: .18; }
    .band { opacity: .18; }
    .band.background { opacity: .05; }
    .band { pointer-events: none; }
    .county { stroke: #ffffff; stroke-width: .45; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
    .state-boundary { fill: none; stroke: #173f37; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; vector-effect: non-scaling-stroke; }
    .legend { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 12px; align-items: center; margin-top: 8px; }
    .scale-legend { width: min(100%, 320px); display: grid; grid-template-columns: 70px 1fr 70px; gap: 8px; align-items: center; }
    .scale-bar { height: 10px; border-radius: 999px; border: 1px solid rgba(23,32,38,.12); }
    .scale-legend span:last-child { text-align: right; }
    .swatch { width: 16px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
    .takeaway { width: min(860px, calc(100% - 32px)); margin: 16px auto 0; border: 1px solid #a9cfc2; border-left: 6px solid var(--teal); border-radius: 0; background: #edf7f3; padding: 24px 28px; box-shadow: 0 16px 38px rgba(23,51,45,.20), 0 2px 8px rgba(23,51,45,.12); font-size: 18px; line-height: 1.5; font-weight: 750; }
    .takeaway.segmented { padding: 0; }
    .takeaway-section { display: block; padding: 24px 28px; }
    .takeaway-section + .takeaway-section { border-top: 1px solid #b9d8ce; background: rgba(255,255,255,.34); }
    .sources { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 14px; }
    .panel > .sources { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
    .sources a { color: #205f90; }
    .info-tooltip-trigger { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; min-width: 17px; border: 1px solid currentColor; border-radius: 50%; padding: 0; background: white; color: var(--teal); font-size: 10px; font-weight: 900; line-height: 1; cursor: pointer; }
    .tooltip { position: fixed; display: none; max-width: min(300px, calc(100vw - 16px)); max-height: calc(100svh - 16px); overflow: auto; white-space: pre-line; background: #172026; color: white; padding: 9px 10px; border-radius: 0; box-shadow: 0 8px 22px rgba(23,32,38,.28); font-size: 12px; line-height: 1.35; pointer-events: none; z-index: 1000; }
    .tooltip.persistent { pointer-events: auto; }
    .tooltip a, .tooltip a:visited { color: #a8e6ff; text-decoration: underline; }
    .tooltip a:hover, .tooltip a:focus-visible { color: #ffffff; }
    #county-results { border-radius: 0 !important; box-shadow: 0 8px 20px rgba(23,51,45,.10); }
    .county-line-label { font-size: 10px; fill: var(--muted); pointer-events: none; }
    .feature-risk-row { margin: 2px auto 7px; }
    .feature-importance-chart { display: grid; gap: 4px; margin-top: 6px; align-content: start; min-height: 0; overflow-y: auto; padding-right: 4px; }
    .feature-story-grid { align-items: start; }
    .feature-line-pane { position: relative; z-index: 20; isolation: isolate; }
    .feature-line-pane.scatter-negative .feature-relationship { border-left-color: #b42318; background: #fff0ed; color: #6f2119; }
    #feature-chart-title .info-tooltip-trigger, .plot-completeness-info { margin: 0 5px; vertical-align: 2px; }
    .feature-plot-shell { position: relative; min-width: 0; isolation: isolate; }
    #feature-event-window { position: relative; z-index: 0; }
    .feature-detail-stack { position: relative; min-height: min(52svh, 480px); max-height: min(58svh, 520px); overflow: hidden; padding-right: 5px; }
    .feature-detail-heading { position: relative; z-index: 3; min-height: 25px; margin: 0 0 6px; }
    .feature-frame { position: absolute; inset: var(--feature-frame-top, 42px) 0 auto; width: 100%; height: calc(100% - var(--feature-frame-top, 42px)); opacity: 0; pointer-events: none; transition: opacity 320ms ease, transform 380ms ease; }
    .feature-frame[data-frame="1"] { display: flex; flex-direction: column; overflow: hidden; }
    #features .story-stage[data-story-state="feature-frame-1"] .feature-frame[data-frame="2"],
    #features .story-stage[data-story-state="feature-frame-1"] .feature-frame[data-frame="3"],
    #features .story-stage[data-story-state="feature-frame-2"] .feature-frame[data-frame="3"] { transform: translateY(42px); }
    #features .story-stage[data-story-state="feature-frame-2"] .feature-frame[data-frame="1"],
    #features .story-stage[data-story-state="feature-frame-3"] .feature-frame[data-frame="1"],
    #features .story-stage[data-story-state="feature-frame-3"] .feature-frame[data-frame="2"] { transform: translateY(-42px); }
    #features .story-stage[data-story-state="feature-frame-1"] .feature-frame[data-frame="1"],
    #features .story-stage[data-story-state="takeaway-feature"] .feature-frame[data-frame="1"],
    #features .story-stage[data-story-state="feature-frame-2"] .feature-frame[data-frame="2"],
    #features .story-stage[data-story-state="feature-frame-3"] .feature-frame[data-frame="3"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
    #features .story-stage[data-story-state="feature-frame-2"] .feature-detail-heading,
    #features .story-stage[data-story-state="feature-frame-3"] .feature-detail-heading { display: none; }
    #features .story-stage[data-story-state="feature-frame-2"] .feature-frame[data-frame="2"],
    #features .story-stage[data-story-state="feature-frame-3"] .feature-frame[data-frame="3"] { inset: 0; height: 100%; }
    .feature-order-controls { display: flex; gap: 6px; margin: 2px 0 6px; }
    .feature-order-controls button { flex: 1 1 0; padding: 6px 8px; font-size: 10px; }
    .feature-click-hint { margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.35; }
    .importance-group-label { margin: 5px 0 1px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
    .importance-row { display: grid; grid-template-columns: 9px minmax(164px, 1.18fr) minmax(108px, .82fr); gap: 7px; align-items: center; width: 100%; border: 1px solid transparent; border-radius: 0; padding: 3px 4px; background: transparent; color: var(--ink); text-align: left; font-size: 10px; }
    .importance-row:hover, .importance-row.active { background: #e8f4ef; color: #17332d; }
    .importance-row.active .importance-label { color: #17332d; }
    .importance-row.active { box-shadow: inset 3px 0 0 var(--teal); }
    .importance-row.active.negative-active { background: #fff0ed; box-shadow: inset 3px 0 0 #b42318; }
    .importance-strong-group { display: grid; gap: 4px; border: 2px solid #9a6b00; padding: 3px; background: rgba(184,134,11,.045); }
    .correlation-marker { width: 8px; height: 8px; border-radius: 2px; }
    .correlation-marker.positive { background: #16803c; }
    .correlation-marker.negative { background: #b42318; }
    .importance-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .importance-bar-track { position: relative; height: 10px; border: 1px solid var(--line); background: #edf2ef; overflow: hidden; }
    .importance-bar { height: 100%; background: linear-gradient(90deg, #b9ddd4, #11796d); transform-origin: left center; transition: width 360ms ease; }
    .feature-footnote-tabs { display: none; gap: 18px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 800; }
    #features .story-stage[data-story-state="feature-frame-1"] .feature-footnote-tabs { display: flex; }
    .feature-footnote-topic { display: inline-flex; align-items: center; gap: 4px; }
    .feature-relationship { min-height: 48px; margin-top: 8px; padding: 10px 12px; border-left: 4px solid var(--teal); background: #edf7f3; color: var(--ink); font-size: 12px; line-height: 1.42; }
    .feature-distribution-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: center; margin: 4px 0 8px; }
    .feature-distribution-controls button { min-width: 34px; padding: 5px 8px; font-size: 12px; }
    .feature-distribution-current { min-width: 0; color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; text-align: center; }
    .feature-distribution-controls.single-feature .feature-distribution-current { grid-column: 1 / -1; }
    .feature-distribution-title { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 24px; color: var(--ink); font-size: 12px; font-weight: 800; text-align: center; }
    .feature-distribution-plot { display: block; width: 100%; }
    .feature-distribution-chart { width: 100%; height: min(24svh, 210px); display: block; overflow: visible; }
    .feature-subgroup-takeaway { margin-top: 8px; padding: 10px 12px; border-left: 4px solid #7651a8; background: #f2eef8; font-size: 12px; line-height: 1.42; }
    .feature-subgroup-summary { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; overflow: hidden; }
    .feature-subgroup-summary-intro { margin: 0 0 2px; color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.4; }
    .feature-subgroup-summary-rows { display: grid; align-content: start; gap: 8px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 4px; }
    .feature-subgroup-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid var(--line); background: #f8fbf9; font-size: 12px; }
    .feature-peer-relation { padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 850; white-space: nowrap; }
    .feature-peer-relation.higher { background: #e8f4ef; color: #166147; }
    .feature-peer-relation.lower { background: #fff0ed; color: #9b3026; }
    .feature-peer-relation.close { background: #edf2f5; color: #50636d; }
    .feature-sequence-resume { flex: 0 0 32px; margin: 0; }
    .feature-story-copy { display: grid; margin-top: 4px; }
    .feature-story-copy p { margin: 0; padding: 22px 24px; border-left: 6px solid var(--line); background: #f6f8f6; font-size: clamp(17px, 1.7vw, 23px); line-height: 1.55; }
    .subgroup-list { display: grid; gap: 8px; margin-top: 10px; }
    .subgroup-card { border: 1px solid var(--line); padding: 18px; background: #f7faf8; }
    .subgroup-card.active { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); background: #edf7f3; }
    .subgroup-traits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
    .subgroup-trait { padding: 4px 7px; background: white; border: 1px solid var(--line); font-size: 10px; }
    .subgroup-iqr { display: grid; gap: 8px; margin-top: 12px; }
    .subgroup-iqr-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; background: white; border: 1px solid var(--line); font-size: 12px; }
    .subgroup-iqr-value { color: var(--ink); font-weight: 800; white-space: nowrap; }
    .feature-subgroup-control-stack { position: absolute; z-index: 100; left: 0; right: 5px; bottom: 0; display: none; align-items: center; justify-content: center; gap: 6px; isolation: isolate; pointer-events: auto; }
    #features .story-stage[data-story-state="feature-frame-2"] .feature-subgroup-control-stack,
    #features .story-stage[data-story-state="feature-frame-3"] .feature-subgroup-control-stack { display: flex; }
    #features .story-stage[data-story-state="feature-frame-2"] .feature-detail-stack,
    #features .story-stage[data-story-state="feature-frame-3"] .feature-detail-stack { padding-bottom: 38px; }
    #features .story-stage[data-story-state="feature-frame-2"] .feature-frame[data-frame="2"],
    #features .story-stage[data-story-state="feature-frame-3"] .feature-frame[data-frame="3"] { inset: 0 0 38px; height: auto; }
    .feature-subgroup-controls { display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px; min-width: 0; pointer-events: auto; }
    .feature-subgroup-controls.visible { display: flex; }
    .feature-subgroup-control, .feature-subgroup-control * { cursor: pointer !important; user-select: none; }
    .feature-subgroup-control { position: relative; z-index: 102; width: auto; min-height: 29px; padding: 6px 7px 6px 22px; border: 1px solid var(--subgroup-color); border-radius: 999px; background: white; color: var(--muted); text-align: left; font-size: 9px; cursor: pointer !important; pointer-events: auto; touch-action: manipulation; user-select: none; white-space: nowrap; }
    .feature-subgroup-control::before { content: ""; position: absolute; left: 8px; top: 50%; width: 9px; height: 9px; border-radius: 2px; background: var(--subgroup-color); opacity: .55; transform: translateY(-50%); cursor: pointer; pointer-events: none; }
    .feature-subgroup-control-label { display: block; pointer-events: none; user-select: none; }
    .feature-subgroup-control.active { background: var(--subgroup-color); color: white; }
    .feature-subgroup-control.active::before { background: white; opacity: 1; }
    .feature-subgroup-control:focus-visible { outline: 3px solid rgba(17,121,109,.32); outline-offset: 2px; }
    .risk-legend-info { flex: 0 0 auto; margin-left: -4px; }
    .subgroup-note { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
    #pricing-grouping .panel { position: relative; }
    .rating-line-pane { position: relative; display: flex; flex-direction: column; min-width: 0; }
    .event-horizon-number { display: inline-block; min-width: 1.2em; margin: 0 .08em; padding: 0 .18em; border: 2px solid #9a6b00; background: #f4d77c; color: #5b4300; text-align: center; }
    .event-horizon-number.changed { animation: eventHorizonPulse 720ms ease both; }
    @keyframes eventHorizonPulse { 0% { transform: scale(.72); background: #fff5c2; } 55% { transform: scale(1.2); background: #e9bb36; } 100% { transform: scale(1); background: #f4d77c; } }
    .percentile-comparison { display: grid; grid-template-columns: minmax(145px, .9fr) 1fr; gap: 10px 16px; align-items: center; }
    .percentile-comparison-row { display: contents; }
    .comparison-scale { position: relative; height: 24px; border: 1px solid var(--line); background: linear-gradient(90deg, #e8f4ed, #f0cf75, #e77662); }
    .comparison-marker { position: absolute; top: 2px; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg); border: 2px solid white; box-shadow: 0 0 0 1px rgba(23,51,45,.35); }
    .comparison-marker.second { top: 10px; border-radius: 50%; transform: translateX(-50%); }
    .comparison-values { display: flex; justify-content: space-between; gap: 12px; margin-top: 3px; color: var(--muted); font-size: 10px; }
    .playbook-frame-stack { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
    .playbook-frame { position: absolute; inset: 0; opacity: 0; transform: translateY(48px); pointer-events: none; transition: opacity 340ms ease, transform 420ms ease; }
    .playbook-search-frame { display: flex; flex-direction: column; }
    .playbook-search-shell { position: relative; z-index: 9; flex: 0 0 auto; width: min(520px, 72%); margin: 0 auto 10px; text-align: center; }
    #county-search { width: 100%; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: #fff; }
    #county-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); max-height: 200px; overflow-y: auto; background: white; text-align: left; }
    .playbook-search-map { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
    .playbook-search-map .chart { height: 100%; }
    .playbook-selected-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, .8fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px 14px; height: 100%; min-height: 0; align-items: stretch; }
    .playbook-profile-panel { display: none; min-width: 0; padding: 12px; border: 1px solid var(--line); background: #f8fbf9; overflow: hidden; }
    .playbook-profile-map-pane, .playbook-history-pane, .playbook-events-pane, .playbook-performance-pane, .playbook-commentary-pane { display: none; min-width: 0; min-height: 0; }
    .playbook-profile-map-pane { position: relative; overflow: hidden; }
    .playbook-profile-map-pane .chart { height: 100%; }
    .playbook-history-pane { flex-direction: column; }
    .playbook-history-pane .chart { flex: 1 1 auto; min-height: 0; height: 100%; }
    .playbook-events-pane, .playbook-performance-pane, .playbook-commentary-pane { overflow: hidden; }
    .playbook-events-pane { flex-direction: column; }
    .playbook-event-column { display: grid; flex: 1 1 auto; align-content: start; gap: 7px; min-height: 0; margin-top: 8px; padding-right: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
    .playbook-event-card { padding: 9px 10px; border: 1px solid var(--line); border-left: 4px solid #df7d2f; background: #fff8f1; font-size: 11px; line-height: 1.35; }
    .playbook-back-button { position: absolute; z-index: 12; left: 0; top: 0; border-radius: 0; padding: 5px 8px; font-size: 10px; line-height: 1.15; }
    .playbook-selected-frame { padding-top: 34px; }
    .playbook-subgroup-badge { margin: 10px 0; padding: 9px 10px; border-left: 4px solid var(--teal); background: #eaf5f1; font-size: 12px; line-height: 1.35; }
    #playbook-profile-details { min-width: 0; }
    .playbook-feature-summary { display: grid; gap: 6px; max-height: min(26svh, 210px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
    .playbook-feature-row { display: grid; grid-template-columns: minmax(110px, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
    .playbook-feature-insufficient { padding: 14px; border: 1px solid var(--line); background: #f5f7f5; color: var(--muted); font-size: 13px; line-height: 1.45; }
    .feature-data-unavailable { grid-column: 2 / -1; color: var(--muted); font-style: italic; }
    .playbook-commentary { height: 100%; overflow: hidden; padding: 16px; font-size: 13px; }
    .playbook-event-item { display: block; }
    .playbook-event-item summary { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 6px; align-items: center; cursor: pointer; list-style: none; }
    .playbook-event-item summary::-webkit-details-marker { display: none; }
    .playbook-event-item[open] { box-shadow: 0 9px 22px rgba(23,51,45,.13); }
    .event-period { transition: opacity 180ms ease, filter 180ms ease; }
    .event-period.event-muted { opacity: .025 !important; }
    .event-period.event-focused { opacity: .52 !important; filter: saturate(1.35); }
    #playbook .story-stage > .panel { height: calc(100svh - 88px); display: flex; flex-direction: column; overflow: hidden; }
    .story-nav { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
    .story-nav button { position: absolute; left: 50%; width: 42px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 6px; padding: 0; background: var(--forest); color: white; border: 1px solid var(--forest); box-shadow: 0 7px 20px rgba(23,51,45,.24); font-size: 24px; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity 160ms ease, transform 160ms ease; }
    .story-nav button:hover, .story-nav button:focus-visible { background: #0c2e27; outline: 2px solid white; outline-offset: -4px; }
    #story-prev { top: 8px; transform: translate(-50%, -8px); }
    #story-next { bottom: 8px; transform: translate(-50%, 8px); }
    .story-nav button.edge-visible:not(:disabled) { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
    html { scroll-snap-type: none; }
    .hero { min-height: 100svh; scroll-snap-align: start; }
    .slide { min-height: 0; height: calc(var(--story-steps, 3) * 100svh); padding: 0; border-bottom: 0; opacity: 1; transform: none; transition: none; scroll-snap-align: start; }
    .slide.visible, .slide.transition-in, .slide.transition-out { opacity: 1; transform: none; animation: none; }
    .story-stage { position: sticky; top: 0; z-index: 2; width: 100%; height: 100svh; padding: 28px 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
    .story-stage > h2 { transition: opacity 360ms ease; transform-origin: left top; }
    .story-stage > .section-copy, .story-stage > .panel, .story-stage > .sources { transition: opacity 360ms ease, transform 420ms ease, filter 360ms ease; }
    .story-stage > h2 { position: absolute; z-index: 5; left: 0; top: 50%; width: min(1040px, 100%); transform: translateY(-50%); }
    .story-stage > .section-copy { position: absolute; z-index: 4; left: 0; top: 52%; width: min(900px, 100%); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(28px); }
    .story-stage > .panel { position: relative; width: 100%; max-height: calc(100svh - 88px); margin-top: 72px !important; padding: 14px; overflow: hidden; opacity: 0; transform: translateY(42px); }
    .story-stage > .panel:has(> .sources) { padding-bottom: 78px; }
    .story-stage > .panel > .sources { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; margin: 0; padding: 10px 0 0; background: var(--panel); }
    .story-stage > .panel.inner-scroll-locked,
    .story-stage[data-story-state^="takeaway"] > .panel,
    #playbook .panel:not(.has-county-selection) { overflow-y: hidden; }
    .story-stage > .sources { position: absolute; left: 18px; right: 18px; bottom: 5px; margin: 0; opacity: 0; }
    .story-stage[data-story-state="copy"] > h2 { top: 29%; transform: translateY(-50%) scale(.82); }
    .story-stage[data-story-state="copy"] > .section-copy { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
    .story-stage[data-story-state^="card"] > h2,
    .story-stage[data-story-state^="comparison"] > h2,
    .story-stage:is([data-story-state="intro"], [data-story-state="conclusion"], [data-story-state="questions"], [data-story-state="search"]) > h2,
    .story-stage[data-story-state^="profile"] > h2,
    .story-stage[data-story-state^="history"] > h2,
    .story-stage[data-story-state^="feature-frame"] > h2,
    .story-stage[data-story-state^="takeaway"] > h2 {
      top: 20px; transform: none; font-size: clamp(20px, 2.2vw, 30px); max-width: calc(100% - 20px);
    }
    .story-stage[data-story-state^="card"] > h2::before,
    .story-stage[data-story-state^="comparison"] > h2::before,
    .story-stage:is([data-story-state="intro"], [data-story-state="conclusion"], [data-story-state="questions"], [data-story-state="search"]) > h2::before,
    .story-stage[data-story-state^="profile"] > h2::before,
    .story-stage[data-story-state^="history"] > h2::before,
    .story-stage[data-story-state^="feature-frame"] > h2::before,
    .story-stage[data-story-state^="takeaway"] > h2::before { width: 58px; height: 5px; margin-bottom: 14px; }
    .story-stage[data-story-state^="card"] > .panel,
    .story-stage[data-story-state^="comparison"] > .panel,
    .story-stage:is([data-story-state="intro"], [data-story-state="conclusion"], [data-story-state="questions"], [data-story-state="search"]) > .panel,
    .story-stage[data-story-state^="profile"] > .panel,
    .story-stage[data-story-state^="history"] > .panel,
    .story-stage[data-story-state^="feature-frame"] > .panel,
    .story-stage[data-story-state^="takeaway"] > .panel { opacity: 1; transform: translateY(0); }
    .story-stage[data-story-state^="card"] > .sources,
    .story-stage[data-story-state^="comparison"] > .sources,
    .story-stage:is([data-story-state="intro"], [data-story-state="conclusion"], [data-story-state="questions"], [data-story-state="search"]) > .sources,
    .story-stage[data-story-state^="profile"] > .sources,
    .story-stage[data-story-state^="history"] > .sources,
    .story-stage[data-story-state^="feature-frame"] > .sources { opacity: 1; }
    .story-stage .takeaway { opacity: 0; max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; transition: opacity 320ms ease, translate 380ms ease; }
    .story-stage > .panel > *:not(.takeaway) { transition: opacity 320ms ease, filter 320ms ease; }
    .story-stage[data-story-state^="takeaway"] > .panel { --takeaway-space: min(17svh, 132px); --takeaway-bottom: 8px; --takeaway-footnote-space: 0px; padding-bottom: calc(var(--takeaway-space) + var(--takeaway-footnote-space) + 12px) !important; }
    .story-stage[data-story-state^="takeaway"] > .panel:has(> .sources) { --takeaway-bottom: 52px; --takeaway-footnote-space: 44px; }
    .story-stage[data-story-state^="takeaway"] > .panel > *:not(.takeaway) { opacity: 1; filter: none; }
    .story-stage[data-story-state^="takeaway"] > .panel > .sources { bottom: 8px; }
    .story-stage[data-story-state^="takeaway"] .takeaway.story-active-takeaway,
    .story-stage .takeaway.story-outgoing-takeaway { position: absolute; z-index: 8; left: 50%; right: auto; top: auto; bottom: var(--takeaway-bottom, 8px); width: min(820px, calc(100% - 40px)); max-width: 820px; max-height: none; margin: 0; padding: 10px 14px; opacity: 1; overflow: hidden; transform: translateX(-50%); font-size: clamp(13px, 1.15vw, 17px); line-height: 1.3; box-shadow: 0 16px 38px rgba(23,51,45,.22), 0 2px 8px rgba(23,51,45,.14); }
    #features .story-stage[data-story-state="takeaway-feature"] > .panel { --takeaway-bottom: 40px; --takeaway-footnote-space: 32px; }
    #features .story-stage[data-story-state="takeaway-feature"] .feature-footnote-tabs { display: flex; position: absolute; z-index: 9; left: 14px; right: 14px; bottom: 8px; margin: 0; background: var(--panel); }
    .story-stage[data-story-state^="takeaway"] .takeaway.story-active-takeaway.segmented,
    .story-stage .takeaway.story-outgoing-takeaway.segmented { padding: 0; }
    .story-stage[data-story-state^="takeaway"] .takeaway.story-active-takeaway .takeaway-section { display: none; }
    .story-stage[data-story-state^="takeaway"] .takeaway.story-active-takeaway .takeaway-section.story-active-segment { display: block; border-top: 0; padding: 10px 14px; }
    .story-stage .takeaway.story-outgoing-takeaway .takeaway-section { display: none; }
    .story-stage .takeaway.story-outgoing-takeaway .takeaway-section.story-active-segment { display: block; border-top: 0; padding: 10px 14px; }
    .story-slide-out-up { animation: takeawayOutUp 420ms ease both; }
    .story-slide-in-up { animation: takeawayInUp 420ms ease both; }
    .story-slide-out-down { animation: takeawayOutDown 420ms ease both; }
    .story-slide-in-down { animation: takeawayInDown 420ms ease both; }
    @keyframes takeawayOutUp { to { opacity: 0; translate: 0 -70px; } }
    @keyframes takeawayInUp { from { opacity: 0; translate: 0 70px; } to { opacity: 1; translate: 0 0; } }
    @keyframes takeawayOutDown { to { opacity: 0; translate: 0 70px; } }
    @keyframes takeawayInDown { from { opacity: 0; translate: 0 -70px; } to { opacity: 1; translate: 0 0; } }
    #playbook .story-stage[data-story-state="search"] .playbook-search-frame,
    #playbook .story-stage[data-story-state="history-map"] .playbook-selected-frame,
    #playbook .story-stage[data-story-state="history-events"] .playbook-selected-frame,
    #playbook .story-stage[data-story-state="history-compare"] .playbook-selected-frame,
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-selected-frame { opacity: 1; transform: translateY(0); pointer-events: auto; }
    #playbook .story-stage[data-story-state^="history-"] .playbook-history-pane { display: flex; grid-column: 1; grid-row: 1 / 3; }
    #playbook .story-stage[data-story-state="history-map"] .playbook-profile-map-pane { display: block; grid-column: 2; grid-row: 1 / 3; }
    #playbook .story-stage[data-story-state="history-events"] .playbook-profile-panel,
    #playbook .story-stage[data-story-state="history-compare"] .playbook-profile-panel { display: flex; grid-column: 2; grid-row: 1; flex-direction: column; min-height: 0; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-profile-panel { display: flex; grid-column: 1; grid-row: 1; flex-direction: column; min-height: 0; }
    #playbook .story-stage[data-story-state="history-events"] .playbook-events-pane { display: flex; grid-column: 2; grid-row: 2; flex-direction: column; }
    #playbook .story-stage[data-story-state="history-events"] .hazard-rating-grid { display: flex; flex: 1; margin-bottom: 0; }
    #playbook .story-stage[data-story-state="history-events"] .hazard-rating-overall { display: flex; flex-direction: column; width: 100%; margin-bottom: 0; }
    #playbook .story-stage[data-story-state="history-events"] .hazard-rating-item strong { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.2; }
    #playbook .story-stage[data-story-state="history-compare"] .playbook-profile-panel { grid-row: 1 / 3; overflow-y: auto; }
    #playbook .story-stage[data-story-state="history-compare"] .playbook-performance-pane { display: none; }
    .playbook-history-comparison { display: none; margin-top: 22px; font-size: 18px; line-height: 1.6; }
    #playbook .story-stage[data-story-state="history-compare"] .playbook-history-comparison { display: block; }
    #playbook .story-stage[data-story-state="history-compare"] #playbook-performance-status { display: none; }
    #playbook .story-stage[data-story-state="history-compare"] .playbook-performance-pane > h3,
    #playbook .story-stage[data-story-state="history-compare"] .playbook-feature-summary { display: none; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-selected-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-history-pane { display: none; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-profile-panel { width: 100%; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-profile-panel .hazard-rating-grid { width: 100%; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) #playbook-performance-status { display: none; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary-pane { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; grid-column: 1; grid-row: 2; overflow: hidden; padding: 0 3px 8px; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) #playbook-warning-intro { grid-row: 1; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary { grid-row: 2; min-height: 0; height: auto; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; overflow-y: auto; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-warning-grid { min-height: 100%; align-content: stretch; align-items: stretch; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) #playbook-warning-takeaway { grid-row: 3; margin-top: 0; align-self: end; }
    #playbook .story-stage[data-story-state^="history-"] #playbook-selected-county-name { display: none !important; }
    #playbook .story-stage[data-story-state="history-compare"] .playbook-subgroup-badge { display: block !important; margin: 0; padding: 14px; font-size: 14px; }
    .playbook-performance-status { display: grid; justify-items: center; gap: 3px; margin: 6px 0; text-align: center; line-height: 1.2; }
    .playbook-performance-status strong { font-size: 17px; color: var(--teal); }
    .playbook-performance-status.compact { gap: 1px; margin: 3px 0; font-size: 10px; }
    .playbook-performance-status.compact strong { font-size: 13px; }
    .playbook-performance-takeaway { margin-top: 10px; padding: 16px 17px; border: 1px solid #a9cfc2; border-left: 5px solid var(--teal); background: #edf7f3; font-size: 15px; line-height: 1.5; box-shadow: 0 12px 28px rgba(23,51,45,.18), 0 2px 7px rgba(23,51,45,.12); }
    .playbook-warning-intro { margin: 0; font-size: 14px; line-height: 1.45; }
    .playbook-warning-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin: 0; }
    .playbook-warning-row { flex: 1 1 calc((100% - 21px) / 4); min-width: 0; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 72px; padding: clamp(10px, 2vh, 24px) clamp(10px, 1.5vw, 22px); border: 1px solid var(--line); background: white; font-size: clamp(12px, 1.1vw, 16px); line-height: 1.4; }
    .playbook-warning-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
    .playbook-feature-category-icon { display: inline-block; width: 18px; height: 18px; margin-right: 5px; vertical-align: -4px; color: var(--teal); }
    .playbook-event-definition { display: inline; }
    .playbook-event-definition .info-tooltip-trigger { margin-left: 4px; vertical-align: 1px; }
    .playbook-warning-direction { color: #9b3026; font-size: 30px; line-height: 1; font-weight: 900; }
    .playbook-warning-takeaway { margin: 0; padding: 13px 15px; border: 1px solid #a9cfc2; border-left: 5px solid var(--teal); background: #edf7f3; font-size: 14px; line-height: 1.45; box-shadow: 0 12px 28px rgba(23,51,45,.18), 0 2px 7px rgba(23,51,45,.12); }
    .story-stage .chart.rating-risk-line { height: min(48svh, 470px); }
    .story-stage .chart.map-companion-line { height: min(43svh, 405px); }
    .story-stage .chart.map-companion-map { height: min(38svh, 340px); }
    .story-stage #score-scatter { height: min(41svh, 320px) !important; }
    .story-stage[data-story-state^="takeaway"] .chart.rating-risk-line { height: min(48svh, 470px, max(190px, calc(100svh - var(--takeaway-space) - 265px))); }
    .story-stage[data-story-state^="takeaway"] .chart.map-companion-line { height: min(43svh, 405px, max(180px, calc(100svh - var(--takeaway-space) - 275px))); }
    .story-stage[data-story-state^="takeaway"] .chart.map-companion-map { height: min(38svh, 340px, max(170px, calc(100svh - var(--takeaway-space) - 300px))); }
    .story-stage[data-story-state^="takeaway"] #score-scatter { height: min(41svh, 320px, max(180px, calc(100svh - var(--takeaway-space) - 245px))) !important; }
    #features .story-stage[data-story-state^="takeaway"] .feature-detail-stack { min-height: min(52svh, 480px, max(190px, calc(100svh - var(--takeaway-space) - 260px))); max-height: min(52svh, 480px, max(190px, calc(100svh - var(--takeaway-space) - 260px))); }
    #features .feature-line-pane.scatter-active #feature-event-window { height: min(40svh, 360px); }
    #features .story-stage[data-story-state="feature-frame-2"] #feature-event-window,
    #features .story-stage[data-story-state="feature-frame-3"] #feature-event-window { height: min(47svh, 435px); }
    html.story-reduced-motion { scroll-behavior: auto; }
    .story-reduced-motion .story-stage > *, .story-reduced-motion .story-stage .takeaway { transition-duration: 1ms !important; animation-duration: 1ms !important; }
    .story-motion-toggle { position: fixed; top: env(safe-area-inset-top, 0px); right: env(safe-area-inset-right, 0px); z-index: 21; background: #eceeea; color: #35433f; font-weight: 400; border: 0; border-radius: 0 0 0 5px; padding: 4px 7px; font-size: 11px; }
    @media (max-width: 900px) {
      .viz-grid { grid-template-columns: 1fr; }
      .timeseries-grid { grid-template-columns: 1fr; }
      .hero { min-height: auto; }
      h1 { font-size: clamp(42px, 12vw, 66px); }
      .dek { font-size: 19px; line-height: 1.42; }
      .chart, .chart.tall, .chart.xtall { height: 360px; }
      .chart.map-companion-line { height: 384px; }
      .chart.rating-risk-line { height: 499px; }
      .chart.map-companion-map { height: 320px; }
      .hazard-rating-grid { grid-template-columns: 1fr; }
      .hazard-rating-specific { grid-template-columns: 1fr; }
      .playbook-event-item { grid-template-columns: 30px minmax(0,1fr); }
      .event-change { grid-column: 2; justify-content: flex-start; }
      .playbook-selected-layout { grid-template-columns: minmax(0, 1.45fr) minmax(210px, .8fr); gap: 8px; }
      .importance-row { grid-template-columns: 9px minmax(125px, 1fr) minmax(90px, 1fr); }
      .story-stage { padding: 18px 0; }
      .story-stage > .panel { margin-top: 82px !important; max-height: calc(100svh - 96px); }
      .story-stage > .panel:has(> .sources) { padding-bottom: 122px; }
      .story-stage[data-story-state^="takeaway"] .takeaway.story-active-takeaway,
      .story-stage .takeaway.story-outgoing-takeaway { width: min(760px, calc(100% - 28px)); margin: 0; font-size: 16px; }
    }
    .takeaway.question-card { background: var(--forest); color: white; border-color: var(--forest); border-left-color: var(--sun); }
    .question-card .takeaway-section { background: transparent; color: white; }
    .event-time-context { font-size: 15px; font-weight: 600; color: var(--forest); margin: 0 0 6px; }
    .event-overview-stat { font-size: 18px; margin: 12px 0; }
    .event-overview-stat strong { display: inline-block; padding: 5px 12px; color: white; background: var(--forest); font-size: 28px; border-radius: 5px; }
    #events .panel > * { transition: opacity 350ms ease; }
    #events .story-stage[data-story-state="card-before-intro"] .panel > :not(#event-time-context):not(.sources) { opacity: 0; visibility: hidden; pointer-events: none; }
    #events .event-overview-chart { height: min(40svh, 350px); }
    .feature-risk-row { width: fit-content; max-width: 100%; justify-content: flex-start; margin: -6px 0 7px; padding: 5px; background: transparent; border: 0; }
    .feature-risk-row .risk-sequence-legend { justify-content: flex-start; }
    #feature-relationship { margin-top: 18px; margin-bottom: 28px; }
    #features .feature-subgroup-control-stack { position: relative; left: auto; right: auto; bottom: auto; width: fit-content; max-width: 100%; margin: 14px auto 8px; padding: 8px; background: transparent; border: 0; z-index: 4; flex-wrap: wrap; }
    #features .feature-subgroup-controls { flex-wrap: wrap; }
    #features .feature-subgroup-control { font-size: 10px; white-space: normal; padding: 7px 10px 7px 24px; }
    .feature-distribution-controls button, .playbook-back-button { background: #eceeea; border: 1px solid #c7cec6; font-weight: 900; color: var(--forest); }
    .feature-distribution-controls button { font-size: 24px; min-width: 42px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
    .playbook-back-button { padding: 4px 12px; border-radius: 7px; font-weight: 400; text-shadow: none; }
    .playbook-back-arrow { font-weight: 900; text-shadow: .6px 0 currentColor; font-size: 17px; vertical-align: middle; }
    .playbook-factor-description { display: block; margin-top: 8px; font-size: 12px; font-weight: 400; }
    .playbook-scorecard { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; font-size: 13px; }
    .playbook-scorecard-title, .playbook-scorecard-note { flex-basis: 100%; }
    .playbook-scorecard-part { flex: 1 1 180px; padding: 9px; background: white; border: 1px solid var(--line); }
    .playbook-scorecard-part strong { display: block; margin-bottom: 5px; }
    .playbook-scorecard-symbol { align-self: center; font-weight: 900; font-size: 20px; }
    .playbook-scorecard-note { font-size: 11px; font-weight: 400; }
    .feature-distribution-controls button { text-shadow: .3px 0 currentColor; }
    #features .story-stage[data-story-state^="takeaway"] .scatter-active #feature-event-window { height: min(25svh, 220px); }
    #features .story-stage[data-story-state^="takeaway"] #feature-relationship { margin: 6px 0 18px; }
    #playbook .story-stage[data-story-state="history-compare"] .hazard-rating-item strong { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.2; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-profile-panel { display: none; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-selected-layout { grid-template-rows: minmax(0, 1fr); }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary-pane { grid-row: 1; overflow-y: auto; }
    .playbook-score-arrow { display: inline-block; font-size: 28px; font-weight: 900; margin-right: 6px; }
    .playbook-score-result { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 8px; }
    #features .panel { padding-top: 7px; }
    #features .feature-risk-row { margin: 0 0 7px; }
    #features .feature-detail-stack { height: min(49svh, 450px); min-height: 0; max-height: min(49svh, 450px); }
    #feature-chart-title, #feature-detail-title { margin-top: 0; }
    #feature-distribution-title { font-size: 17px; min-height: 0; margin-bottom: 4px; }
    #features .feature-subgroup-control { color: var(--muted); }
    #features .feature-subgroup-control.active { color: white; }
    #features .story-stage[data-story-state="takeaway-feature"] .feature-line-pane { position: static; }
    #features .story-stage[data-story-state="takeaway-feature"] #feature-relationship:not([hidden]) { position: absolute; left: 20px; width: calc(50% - 30px); box-sizing: border-box; bottom: calc(var(--takeaway-bottom, 40px) + var(--takeaway-space) + 3mm); margin: 0; }
    #playbook .story-stage[data-story-state="history-compare"] .playbook-history-comparison { display: flex; flex: 1; align-items: center; justify-content: center; text-align: center; margin: 0; }
    .playbook-warning-direction, .playbook-score-arrow { font-weight: 900; font-size: 34px; -webkit-text-stroke: 1.2px currentColor; }
    .playbook-arrow-up { color: #53d29b; }
    .playbook-arrow-down { color: #f47777; }
    .playbook-warning-direction.playbook-arrow-up { color: #11794f; }
    .playbook-warning-direction.playbook-arrow-down { color: #be302e; }
    .playbook-scorecard-part, .playbook-score-result { background: var(--forest); color: white; border: 1px solid #477366; border-radius: 5px; padding: 12px; }
    .playbook-scorecard-value { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .playbook-score-result a { color: #f4d77c; }
    .playbook-score-result > strong { display: block; margin-bottom: 8px; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary-pane { grid-template-rows: auto minmax(160px, 1fr) auto; row-gap: 16px; }
    .playbook-back-button { display: inline-flex; align-items: center; gap: 9px; }
    .playbook-back-arrow { line-height: 1; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-warning-grid { min-height: 0; align-content: start; align-items: start; }
    .playbook-warning-row { min-height: 0; padding: 8px 10px; align-self: start; gap: 8px; }
    .playbook-factor-lines { display: grid; gap: 4px; }
    .playbook-factor-line { display: flex; align-items: center; gap: 6px; }
    .playbook-warning-row > .info-button { align-self: center; }
    .playbook-warning-row .playbook-warning-direction { font-size: 24px; }
    .playbook-scorecard-part { padding: 7px 10px; }
    .playbook-scorecard-part strong { margin-bottom: 3px; }
    .playbook-scorecard-part .playbook-score-arrow { font-size: 27px; line-height: 1; }
    #features .story-stage[data-story-state="takeaway-feature"] > .panel { height: calc(100svh - 88px); }
    #features .story-stage[data-story-state="takeaway-feature"] .scatter-active #feature-event-window { height: var(--feature-scatter-height, min(40svh, 360px)); }
    .playbook-factor-line:last-child { justify-content: center; text-align: center; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary-pane { grid-template-rows: auto auto auto; align-content: start; row-gap: 12px; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary { overflow: visible; }
    .playbook-score-result { font-size: 16px; text-align: left; white-space: nowrap; overflow-x: auto; }
    .playbook-score-result > strong { display: inline; margin: 0 8px 0 0; }
    .playbook-scorecard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); }
    .playbook-scorecard-title, .playbook-score-result { grid-column: 1 / -1; min-width: 0; }
    .playbook-scorecard-title { font-size: 20px; line-height: 1.25; white-space: nowrap; }
    .playbook-scorecard-part { min-width: 0; }
    .playbook-scorecard-plus { align-self: center; font-size: 26px; font-weight: 800; color: var(--forest); }
    #t-hero-h1, #t-hero-dek { text-align: center; margin-left: auto; margin-right: auto; }
    .hero > * { width: 100%; }
    .story-stage .takeaway:not(.story-active-takeaway) { visibility: hidden; opacity: 0 !important; pointer-events: none; }
    .story-stage .takeaway.story-active-takeaway { visibility: visible; }
    .feature-subgroup-summary-row { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
    .feature-peer-percentage { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary-pane { grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(8px, 1.3vh, 16px); overflow: hidden; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary { padding: 10px; border: 1px solid #bacdc3; border-radius: 8px; background: #edf3ef; overflow-y: auto; }
    .playbook-warning-intro { font-size: clamp(17px, 1.6vw, 21px); font-weight: 800; }
    .playbook-factor-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; flex: 1; min-height: 0; }
    .playbook-factor-column { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 10px; border: 1px solid #a4cdb4; border-radius: 8px; background: #e4f2e8; }
    .playbook-factor-column.negative { background: #f9e8e7; border-color: #dfb1ae; }
    .playbook-factor-column h4 { margin: 0 0 8px; font-size: 14px; padding-bottom: 6px; border-bottom: 3px solid #11794f; }
    .playbook-factor-column.negative h4 { border-bottom-color: #be302e; }
    .playbook-factor-list { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
    .playbook-factor-list .playbook-warning-row { flex: 1 0 auto; align-self: stretch; padding: clamp(8px, 1vh, 14px); }
    .playbook-factor-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
    .playbook-factor-list .playbook-warning-row, .playbook-factor-other .playbook-warning-row { grid-template-columns: minmax(0, 1fr) auto auto; }
    .playbook-factor-position { color: var(--muted); font-size: 12px; white-space: nowrap; text-align: right; }
    .playbook-factor-other { margin-top: 10px; max-height: 25%; overflow-y: auto; flex-shrink: 0; }
    .playbook-factor-empty { color: var(--muted); font-size: 16px; flex: 1; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
    .playbook-scorecard-part, .playbook-score-result { background: #f4f5f1; color: var(--ink); border-color: #cbd5cc; }
    .playbook-scorecard-value > span:first-child { font-size: clamp(19px, 2.1vw, 30px); font-weight: 800; line-height: 1.15; }
    .playbook-scorecard .playbook-arrow-up { color: #11794f; }
    .playbook-scorecard .playbook-arrow-down { color: #be302e; }
    .playbook-score-result { white-space: normal; overflow: visible; display: flex; flex-direction: column; min-height: 105px; }
    .playbook-score-result b { font-size: clamp(21px, 2vw, 28px); }
    .score-risk-low { color: #11794f; } .score-risk-moderate { color: #976200; } .score-risk-high { color: #be302e; }
    .playbook-score-takeaway { text-align: center; margin: auto 0 0; padding-top: 14px; font-size: 15px; }
    .playbook-score-result a { display: inline-block; color: white; background: var(--forest); border-radius: 6px; padding: 5px 10px; text-decoration: none; }
    .playbook-score-result a:hover, .playbook-score-result a:focus-visible { text-decoration: underline; outline: 2px solid var(--forest); outline-offset: 3px; }
    @media (max-width: 700px) { .playbook-scorecard-value > span:first-child { font-size: 17px; } .playbook-factor-columns { gap: 8px; } }
    #playbook-warning-takeaway { background: var(--forest); color: white; border-color: var(--forest); }
    .playbook-scorecard { text-align: center; }
    .playbook-scorecard-plus { color: white; }
    .playbook-scorecard-value { justify-content: center; gap: 8px; }
    .playbook-scorecard-value > span:first-child { font-size: 16px; white-space: nowrap; min-width: 0; }
    .playbook-scorecard-value .playbook-score-arrow { flex: 0 0 auto; margin: 0; }
    .playbook-score-result { text-align: center; }
    .feature-subgroup-summary-row { gap: 3px; padding: 6px 8px; line-height: 1.25; }
    .feature-subgroup-summary-row strong, .feature-peer-percentage { margin: 0; line-height: 1.25; }
    .feature-subgroup-summary-rows { gap: 5px; }
    .feature-subgroup-summary-rows { flex: 1; grid-auto-rows: minmax(min-content, 1fr); align-content: stretch; }
    .feature-subgroup-summary-row { justify-content: space-evenly; padding: 8px 12px; font-size: clamp(15px, 1.15vw, 17px); }
    .feature-subgroup-factor-name { display: flex; align-items: center; gap: 6px; }
    .feature-peer-percentage { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .feature-peer-percentage .feature-percentage-value { font-size: clamp(26px, 2.3vw, 34px); font-weight: 800; color: var(--forest); flex-shrink: 0; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) > .panel { padding-bottom: 14px; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) > .panel > .sources { position: static; flex: 0 0 auto; margin-top: 5px; padding-top: 5px; }
    #playbook .story-stage:not(:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"])) #playbook-warning-intro { display: none; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) #playbook-warning-intro { position: absolute; top: 0; left: 190px; right: 190px; text-align: center; line-height: 1.2; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary-pane { grid-template-rows: minmax(0, 1fr) auto; padding: 0; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary { grid-row: 1; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; display: flex; flex-direction: column; overflow: hidden; }
    #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) #playbook-warning-takeaway { grid-row: 2; padding: 9px 12px; }
    .playbook-factor-column h4 { flex-shrink: 0; text-align: center; font-size: clamp(15px, 1.2vw, 18px); }
    .playbook-factor-list .playbook-warning-row { font-size: clamp(12px, 1vw, 15px); }
    .playbook-scorecard { width: 92%; margin: 0 auto; }
    .playbook-score-result { min-height: 0; padding: 7px 10px; }
    .playbook-score-takeaway { padding-top: 5px; }
    .playbook-score-result a { font-weight: 800; }
    .playbook-scorecard-value.favorable > span:first-child { color: #11794f; }
    .playbook-scorecard-value.unfavorable > span:first-child { color: #be302e; }
    #playbook .panel > .sources { margin-top: 5px; padding-top: 5px; }
    @media (max-width: 700px) { #playbook .story-stage:is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) #playbook-warning-intro { left: 160px; right: 0; font-size: 15px; } .playbook-scorecard { width: 100%; } }
    .playbook-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .section-load-status { position: absolute; top: 8px; right: 12px; z-index: 30; padding: 8px 12px; background: #fff; color: var(--forest); border: 1px solid var(--line); border-radius: 5px; }
    .page-feedback { margin-left: auto; text-align: right; }
    .page-feedback a { display: inline-block; background: #e5e5e5; color: #000; padding: 7px 12px; border-radius: 6px; font-weight: 700; text-decoration: none; }
    .page-feedback a:hover, .page-feedback a:focus-visible { text-decoration: underline; outline: 2px solid var(--teal); outline-offset: 4px; }
    .mobile-frame-controls { display: none; }
    .county-count { display: inline-flex; align-items: center; gap: 8px; }
    .series-tooltip-hit { cursor: default; }
    .axis, .grid { pointer-events: none; }
    .line.background { pointer-events: none; }
    a[href], [role="button"], select, summary { cursor: pointer; }
    .analytics-privacy { font-size: 11px; }
    .playbook-footer .analytics-privacy { margin: 0; flex-shrink: 0; }
    [hidden] { display: none !important; }
    @media (min-width: 761px) {
      main { padding-bottom: 0; }
      /* A fixed card shell keeps persistent charts and controls anchored. */
      .story-stage > .panel {
        position: absolute !important; top: 110px; bottom: 22px;
        margin-top: 0 !important; height: auto !important;
        max-height: none !important;
      }
      #pricing .panel, #pricing-grouping .panel, #events .panel {
        display: flex; flex-direction: column; min-height: 0;
      }
      #pricing .panel > h3, #pricing .panel > .sub,
      #pricing-grouping .panel > h3, #pricing-grouping .panel > .sub,
      #events .panel > h3, #events .panel > p, #event-overview-stat, #event-sequence-row { flex-shrink: 0; }
      #pricing .story-stage #score-scatter { flex: 1; height: 0 !important; min-height: 0; }
      .pricing-viz-grid, #event-detail-grid, #event-overview { flex: 1; min-height: 0; margin-bottom: 0; }
      .pricing-viz-grid { align-items: stretch; }
      .pricing-viz-grid { height: 0; }
      .pricing-viz-grid > *, #event-detail-grid > * { min-height: 0; }
      .pricing-viz-grid .map-with-legend { height: 100%; min-height: 0; overflow: hidden; }
      .rating-line-pane .risk-sequence-row { flex-shrink: 0; }
      #pricing-grouping .story-stage[data-story-state^="takeaway"] > .panel,
      #events .story-stage[data-story-state^="takeaway"] > .panel {
        padding-bottom: calc(var(--takeaway-space) + var(--takeaway-bottom) + 18px) !important;
      }
      .rating-line-pane { display: flex; flex-direction: column; min-height: 0; }
      #rating-scatter { flex: 1; height: 0 !important; min-height: 0; }
      #rating-map, #affected-map, #event-window, #events .event-overview-chart { height: 100% !important; min-height: 0; max-height: none; }
      #event-detail-grid > *, #event-window-frame { height: 100%; min-height: 0; }
      #event-overview { overflow: hidden; }
      /* Reserve one stable caption lane: rapidly crossing takeaway steps must
         not repeatedly shrink and expand the same charts. */
      #events .story-stage[data-story-state] > .panel { padding-bottom: calc(var(--event-caption-height, 90px) + 70px) !important; }
      #events .story-stage .takeaway { position: absolute; left: 50%; bottom: 52px; width: min(820px, calc(100% - 40px)); max-width: 820px; max-height: none; padding: 10px 14px; transform: translateX(-50%); font-size: clamp(13px, 1.15vw, 17px); line-height: 1.3; visibility: hidden; }
      #events .story-stage .takeaway.story-active-takeaway { visibility: visible; }
      #events #t-events-card-title { min-height: 30px; }
      #features .panel { display: flex; flex-direction: column; padding-bottom: 42px; }
      /* Frame 1's takeaway uses the already-reserved, hidden subgroup-control
         lane rather than subtracting another caption height from both plots. */
      #features .story-stage[data-story-state="takeaway-feature"] > .panel { padding-bottom: 42px !important; }
      #features .feature-risk-row { flex-shrink: 0; }
      #features .feature-story-grid { flex: 1; min-height: 0; align-items: stretch; }
      #features .feature-line-pane { display: flex; flex-direction: column; min-height: 0; }
      #features .feature-plot-shell { flex: 1; min-height: 0; height: 0 !important; }
      #features .story-stage #feature-event-window { height: 100% !important; min-height: 0; }
      #features .story-stage .feature-detail-stack { height: 100% !important; min-height: 0 !important; max-height: none !important; padding-bottom: 0; }
      #features #feature-chart-title, #features #feature-detail-title { height: var(--feature-heading-height, 24px); min-height: 0; flex-shrink: 0; margin: 0 0 2px; }
      #features .story-stage .feature-detail-title { display: block; }
      #features .story-stage .feature-frame { inset: calc(var(--feature-heading-height, 24px) + 2px) 0 0 !important; height: auto !important; }
      #features .story-stage[data-story-state="feature-frame-2"] .feature-frame[data-frame="2"] { inset: 88px 0 0 !important; }
      #features .story-stage .feature-frame[data-frame="3"] { inset: 0 !important; }
      #features .story-stage .feature-frame[data-frame="2"] { display: flex; flex-direction: column; min-height: 0; }
      #features .feature-frame[data-frame="2"] .feature-distribution-title { position: absolute; top: -88px; left: 0; right: 0; height: 20px; margin: 0; }
      #features .feature-frame[data-frame="2"] .feature-distribution-controls { position: absolute; top: -48px; left: 0; right: 0; height: 36px; margin: 0; }
      #features .feature-frame[data-frame="2"] .feature-distribution-controls button { min-height: 30px; height: 30px; }
      #features .feature-distribution-title, #features .feature-distribution-controls, #features .feature-subgroup-takeaway { flex-shrink: 0; }
      #features .feature-distribution-plot { flex: 1; min-height: 0; height: 0; }
      #features .feature-distribution-chart { height: 100%; min-height: 0; }
      #features .feature-subgroup-takeaway { min-height: clamp(100px, 16svh, 150px); align-content: center; padding: 18px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; }
      #features .story-stage #feature-relationship:not([hidden]) { position: static !important; width: auto !important; flex-shrink: 0; margin: 3mm 0 0 !important; }
      #features .feature-subgroup-control-stack { display: flex; visibility: hidden; flex: 0 0 44px; min-height: 44px; margin: 8px auto 0; }
      #features .story-stage[data-story-state="feature-frame-2"] .feature-subgroup-control-stack,
      #features .story-stage[data-story-state="feature-frame-3"] .feature-subgroup-control-stack { visibility: visible; }
      #features .feature-footnote-tabs { position: absolute; bottom: 12px; left: 14px; right: 14px; }
      .feature-importance-chart { flex: 1; align-content: start; gap: 1px; grid-auto-rows: max-content; }
      .feature-importance-chart.ordered-by-significance { grid-auto-rows: minmax(22px, max-content); }
      .feature-importance-chart .importance-row { min-height: 22px; padding-top: 0; padding-bottom: 0; }
      .feature-importance-chart .importance-group-label { min-height: 0; line-height: 1.2; margin: 14px 0 0; padding: 0; }
      .feature-importance-chart .importance-group-label:first-child { margin-top: 0; }
      .ordered-by-significance .importance-strong-group {
        grid-row: span var(--strong-count); grid-template-rows: subgrid;
        padding: 0; border: 0; box-shadow: inset 0 0 0 2px #9a6b00;
      }
      .ordered-by-significance .importance-row { min-height: 22px; align-self: stretch; }
    }
    @media (max-width: 760px) {
      main { width: 100%; padding: 0 12px; }
      .hero { min-height: 70svh; padding: 36px 4px; }
      h1 { font-size: clamp(30px, 8vw, 48px); }
      .hero .dek { font-size: 16px; }
      .mobile-story .slide { height: auto !important; min-height: 0; padding: 24px 0; scroll-margin-top: 12px; }
      .mobile-story .story-stage { position: relative; height: auto; min-height: 0; padding: 0; overflow: visible; display: block; }
      .mobile-story .story-stage > h2 { position: static !important; font-size: clamp(23px, 6vw, 30px) !important; width: auto; margin: 0 0 14px; transform: none; opacity: 1; }
      .mobile-story .story-stage > .section-copy { position: static; max-height: none; opacity: 1; visibility: visible; pointer-events: auto; margin: 0 0 16px; font-size: 15px; transform: none !important; }
      .mobile-story .story-stage > .panel { height: auto !important; min-height: 0; max-height: none !important; margin-top: 0 !important; padding: 12px !important; overflow: visible !important; opacity: 1; transform: none; }
      .mobile-story .story-stage > .panel > .sources { position: static; margin-top: 16px; padding-top: 10px; }
      .mobile-story .story-stage .takeaway { display: none; }
      .mobile-story .story-stage .takeaway.story-active-takeaway { display: block; position: static !important; width: 100%; max-width: none; max-height: none; margin: 16px 0 0; padding: 14px !important; transform: none !important; translate: none; font-size: 16px; }
      .mobile-story .viz-grid, .mobile-story .timeseries-grid, .mobile-story .playbook-selected-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 18px; }
      .mobile-story .chart { width: 100%; min-width: 0; }
      .mobile-story .chart.map-companion-line, .mobile-story #score-scatter, .mobile-story #playbook-ppsf-history { height: 310px !important; min-height: 0; max-height: none; }
      .mobile-story .chart.map-companion-map { height: 230px !important; }
      .mobile-story .risk-sequence-row, .mobile-story .risk-sequence-legend { flex-wrap: wrap; gap: 6px; width: 100%; }
      .mobile-story button { min-height: 44px; }
      .mobile-story .info-tooltip-trigger { width: 30px; height: 30px; min-width: 30px; min-height: 30px; font-size: 13px; }
      .mobile-story .risk-legend-item { min-height: 40px; }
      .mobile-story .event-count-row { grid-template-columns: 1fr; justify-items: center; }
      .mobile-story .feature-detail-stack, .mobile-story .feature-plot-shell { height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; overflow: visible; }
      .mobile-story .feature-frame { display: none !important; position: static; height: auto !important; inset: auto; transform: none !important; }
      .mobile-story [data-story-state="feature-frame-1"] .feature-frame[data-frame="1"], .mobile-story [data-story-state="takeaway-feature"] .feature-frame[data-frame="1"], .mobile-story [data-story-state="feature-frame-2"] .feature-frame[data-frame="2"], .mobile-story [data-story-state="feature-frame-3"] .feature-frame[data-frame="3"] { display: block !important; }
      .mobile-story .feature-detail-heading { position: static; }
      .mobile-story .feature-importance-chart, .mobile-story .feature-subgroup-summary-rows { overflow: visible; max-height: none; }
      .mobile-story .feature-subgroup-control-stack { position: static !important; flex-wrap: wrap; margin-top: 14px; }
      .mobile-story .feature-subgroup-controls { flex-wrap: wrap; }
      .mobile-story .feature-subgroup-control { font-size: 12px !important; flex: 1 1 44%; }
      .mobile-story #feature-relationship { position: static !important; width: auto !important; margin: 12px 0 !important; }
      .mobile-story .feature-subgroup-summary-row { min-height: 88px; }
      .mobile-story .feature-distribution-chart { height: 270px; }
      .mobile-story .playbook-frame-stack { overflow: visible; }
      .mobile-story .playbook-frame { display: none !important; position: static; transform: none; }
      .mobile-story [data-story-state="search"] .playbook-search-frame, .mobile-story [data-story-state^="history-"] .playbook-selected-frame { display: block !important; }
      .mobile-story .playbook-selected-frame { padding-top: 0; }
      .mobile-story .playbook-search-shell { width: 100%; }
      .mobile-story #county-search { font-size: 16px; }
      .mobile-story .playbook-search-map { height: 280px; }
      .mobile-story .playbook-selected-layout { display: flex; flex-direction: column; height: auto; }
      .mobile-story .playbook-history-pane { order: -1; }
      .mobile-story .playbook-back-button { position: static; margin-bottom: 14px; font-size: 13px; }
      .mobile-story .playbook-profile-map-pane { height: 230px; }
      .mobile-story .playbook-events-pane, .mobile-story .playbook-profile-panel, .mobile-story .playbook-commentary-pane { overflow: visible !important; }
      .mobile-story .playbook-event-column { max-height: none; overflow: visible; }
      .mobile-story .playbook-commentary-pane { display: none; }
      .mobile-story :is([data-story-state="history-outlook"], [data-story-state="takeaway-makeup"]) .playbook-commentary-pane { display: flex !important; flex-direction: column; gap: 16px; }
      .mobile-story #playbook-warning-intro { position: static !important; margin: 0 0 14px; text-align: center; font-size: 19px !important; }
      .mobile-story .playbook-commentary { overflow: visible !important; }
      .mobile-story .playbook-factor-columns { grid-template-columns: 1fr; }
      .mobile-story .playbook-factor-list { overflow: visible; }
      .mobile-story .playbook-factor-empty { min-height: 90px; }
      .mobile-story .playbook-warning-row { grid-template-columns: minmax(0, 1fr) auto !important; }
      .mobile-story .playbook-factor-name { grid-column: 1; }
      .mobile-story .playbook-factor-position { grid-column: 1; text-align: left; }
      .mobile-story .playbook-warning-row > .info-tooltip-trigger { grid-column: 2; grid-row: 1 / 3; }
      .mobile-story .playbook-scorecard { width: 100%; grid-template-columns: minmax(0, 1fr); }
      .mobile-story .playbook-scorecard-title { font-size: 18px !important; white-space: normal; }
      .mobile-story .playbook-scorecard-value > span:first-child { font-size: 18px !important; white-space: normal; }
      .mobile-story .playbook-scorecard-plus { line-height: 1; }
      .mobile-story .playbook-footer { flex-wrap: wrap; }
      .mobile-story .mobile-frame-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; }
      .mobile-frame-controls button { background: var(--forest); color: white; border-radius: 6px; padding: 8px 12px; font-size: 14px; }
      .mobile-frame-controls button:disabled { opacity: .45; }
      .mobile-frame-controls output { font-size: 12px; text-align: center; }
      .mobile-story .story-nav { display: none; }
      .tooltip { max-width: calc(100vw - 24px); font-size: 14px; }
      /* Mobile uses the same sticky, discrete story stages as desktop. */
      .mobile-story { overscroll-behavior-y: none; }
      .mobile-story main { padding-bottom: 0; }
      .mobile-story .hero { min-height: 100svh; }
      .mobile-story .slide { height: calc(var(--story-steps) * 100dvh) !important; padding: 0; }
      .mobile-story .story-stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
      .mobile-story .story-stage > h2 { position: absolute !important; top: 8px; left: 0; width: 100%; font-size: 20px !important; line-height: 1.15; margin: 0; transform: none; }
      .mobile-story .story-stage[data-story-state="title"] > h2 { top: 50%; font-size: 29px !important; transform: translateY(-50%); }
      .mobile-story .story-stage > .section-copy { position: absolute; top: 30%; opacity: 0; visibility: hidden; pointer-events: none; }
      .mobile-story .story-stage[data-story-state="copy"] > .section-copy { opacity: 1; visibility: visible; pointer-events: auto; }
      .mobile-story .story-stage > .panel { position: absolute !important; top: 112px; bottom: 8px; height: auto !important; padding: 8px !important; overflow: hidden !important; opacity: 1; }
      .mobile-story .story-stage[data-story-state="title"] > .panel,
      .mobile-story .story-stage[data-story-state="copy"] > .panel { opacity: 0; visibility: hidden; pointer-events: none; }
      .mobile-story .story-stage > .panel > .sources { margin-top: 6px; padding-top: 4px; font-size: 10px; }
      .mobile-story .story-stage .takeaway.story-active-takeaway { margin-top: 6px; padding: 6px !important; font-size: 12px; }
      .mobile-story .viz-grid, .mobile-story .timeseries-grid, .mobile-story .playbook-selected-layout { gap: 6px; }
      .mobile-story .chart.map-companion-line, .mobile-story #playbook-ppsf-history { height: 175px !important; }
      .mobile-story #score-scatter { height: 340px !important; }
      .mobile-story .chart.map-companion-map, .mobile-story #rating-map { height: 150px !important; }
      .mobile-story button, .mobile-story .risk-legend-item { min-height: 24px; padding: 3px 6px; font-size: 10px; }
      .mobile-story .info-tooltip-trigger { width: 18px; height: 18px; min-width: 18px; min-height: 18px; padding: 0; font-size: 10px; }
      .mobile-story .importance-row { min-height: 20px; padding: 0 3px; font-size: 9px; }
      .mobile-story .feature-importance-chart, .mobile-story .importance-strong-group { gap: 1px; }
      .mobile-story .feature-subgroup-controls { margin: 0; }
      .mobile-story .feature-subgroup-control-stack { margin-top: 5px; }
      .mobile-story .feature-click-hint { font-size: 11px; }
      .mobile-story .mobile-frame-controls { display: none; }
      .mobile-story .story-stage[data-more-content="true"]::after { content: 'Swipe up for more ↓'; position: absolute; bottom: 9px; right: 12px; z-index: 20; padding: 4px 8px; background: var(--forest); color: white; border-radius: 12px; font-size: 11px; pointer-events: none; }
      .mobile-story .story-stage[data-story-state="title"]::after, .mobile-story .story-stage[data-story-state="copy"]::after { display: none; }
      .mobile-story .risk-legend-button { padding-left: 18px; }
      .mobile-story .risk-legend-button::before { left: 5px; width: 7px; height: 7px; }
      .mobile-story .importance-strong-group { padding: 0; border: 0; box-shadow: inset 0 0 0 2px #9a6b00; }
      .mobile-story #features .panel { display: flex; flex-direction: column; gap: 5px; }
      .mobile-story #features .panel > * { flex-shrink: 0; }
      .mobile-story #features .feature-story-grid { flex: 0 0 auto; }
      .mobile-story #features .feature-footnote-tabs { position: static !important; order: 99; margin-top: 6px; padding-top: 5px; }
      .mobile-story .feature-distribution-chart { height: 105px; }
      .mobile-story .feature-distribution-current { font-size: 12px; }
      .mobile-story .feature-distribution-controls { margin: 3px 0; }
      .mobile-story .feature-subgroup-takeaway { font-size: 12px; padding: 6px 8px; margin-top: 3px; }
      .mobile-story .feature-subgroup-control { font-size: 9px !important; padding: 3px 4px 3px 17px !important; min-height: 23px; }
      .mobile-story .feature-subgroup-control::before { left: 5px; width: 7px; height: 7px; }
      /* Let overflowing content determine its full height before placing the
         footer. A shrinking flex stack otherwise paints through the footer. */
      .mobile-story .story-stage > .panel > .sources,
      .mobile-story .story-stage .feature-footnote-tabs { position: static !important; flex: 0 0 auto; }
      .mobile-story .playbook-frame-stack { flex: 0 0 auto !important; height: auto !important; min-height: 0; }
      .mobile-story .playbook-frame { height: auto !important; }
      .mobile-story .playbook-selected-layout { flex: 0 0 auto; height: auto !important; }
      .mobile-story .playbook-selected-layout > * { flex-shrink: 0; }
      .mobile-story .feature-subgroup-summary { height: auto; gap: 4px; }
      .mobile-story .feature-subgroup-summary-intro { font-size: 11px; line-height: 1.25; }
      .mobile-story .feature-subgroup-summary-rows { gap: 3px; flex: none; }
      .mobile-story .feature-subgroup-summary-row { min-height: 54px; padding: 5px 7px; font-size: 11px; gap: 3px; }
      .mobile-story .feature-peer-percentage { font-size: 10px; gap: 6px; }
      .mobile-story .feature-peer-percentage .feature-percentage-value { font-size: 21px; }
      .mobile-story #features h3 { font-size: 14px; line-height: 1.2; margin: 3px 0; }
      .mobile-story [data-story-state="feature-frame-2"] #feature-event-window,
      .mobile-story [data-story-state="feature-frame-3"] #feature-event-window { height: 150px !important; }
    }

/* Expanded Climate Playbook */
#playbook .playbook-frame[hidden] { display: none; }
#playbook .story-stage[data-story-state="intro"] .playbook-intro-frame,
#playbook .story-stage[data-story-state="conclusion"] .playbook-conclusion-frame,
#playbook .story-stage[data-story-state="questions"] .playbook-questions-frame,
#playbook .story-stage[data-story-state="takeaway-makeup"] .playbook-selected-frame { opacity: 1; transform: none; pointer-events: auto; }
.playbook-intro-frame { display: flex; flex-direction: column; justify-content: center; padding: 2%; }
.playbook-risk-equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.playbook-risk-equation article { background: #edf3ef; border: 1px solid #bacdc3; border-radius: 16px; padding: clamp(16px, 3vw, 42px); text-align: center; }
.playbook-risk-equation article b { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: white; font-size: 24px; }
.playbook-risk-equation > span { align-self: center; font-size: 32px; color: var(--forest); }
.playbook-risk-equation h3 { font-size: clamp(18px, 1.8vw, 26px); }
.playbook-risk-equation p { font-size: clamp(14px, 1.3vw, 19px); line-height: 1.6; }
.playbook-risk-equation-result { text-align: center; background: var(--forest); color: white; padding: 20px; border-radius: 12px; font-size: 25px; font-weight: 800; }
#playbook .playbook-search-frame { display: grid; grid-template-columns: 1fr 3fr; gap: 22px; }
.playbook-location { align-self: center; padding: 20px; font-size: 20px; line-height: 1.6; }
.playbook-location button, #playbook-open-questions { background: var(--forest); color: white; padding: 12px 18px; border: 0; border-radius: 8px; cursor: pointer; font-size: 15px; }
.playbook-manual-selection { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#playbook .playbook-factor-columns { margin: 0 clamp(8px, 3vw, 48px); gap: 24px; }
#playbook .playbook-factor-list .playbook-warning-row { padding: 18px; font-size: clamp(15px, 1.3vw, 19px); }
#playbook .playbook-factor-position { font-size: 14px; }
#playbook .playbook-feature-category-icon { width: 26px; height: 26px; }
#playbook .story-stage[data-story-state="history-outlook"] #playbook-warning-takeaway { display: none; }
#playbook .story-stage[data-story-state="takeaway-makeup"] .playbook-commentary-pane { padding-bottom: calc(var(--takeaway-space, 90px) + 14px); }
#playbook .story-stage[data-story-state="takeaway-makeup"] #playbook-warning-takeaway { position: absolute; left: 4%; bottom: 0; width: 92%; margin: 0; padding: 18px; font-size: 19px; }
.playbook-conclusion-frame { overflow-y: auto; padding: 2%; }
#playbook-conclusion .playbook-scorecard { width: 100%; height: 100%; gap: clamp(12px, 2vh, 28px); grid-template-rows: auto 1fr 1fr; }
#playbook-conclusion .playbook-scorecard-title { white-space: normal; font-size: clamp(20px, 2vw, 30px); }
#playbook-conclusion .playbook-scorecard-part { display: flex; flex-direction: column; justify-content: center; padding: 24px; border-radius: 16px; font-size: 20px; }
#playbook-conclusion .playbook-scorecard-value > span { font-size: clamp(22px, 2.4vw, 34px); white-space: normal; }
#playbook-conclusion .playbook-scorecard-plus { color: var(--forest); }
#playbook-conclusion .playbook-score-result { justify-content: center; padding: 24px; border-radius: 16px; }
#playbook-conclusion .playbook-score-result b { font-size: 36px; }
#playbook-conclusion .playbook-score-takeaway { margin: 0; padding-top: 20px; font-size: 20px; }
.playbook-questions-frame { overflow-y: auto; padding: 10px 3%; }
#playbook-questions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.playbook-question { background: #edf3ef; border: 1px solid #bacdc3; border-radius: 12px; padding: 18px; }
.playbook-question h4 { margin: 0; font-size: 18px; }
.playbook-question p, .playbook-question li { line-height: 1.5; }
.playbook-question ul { margin: 14px 0 0; padding-left: 22px; }
.playbook-question li + li { margin-top: 10px; }
.playbook-footer #t-page-feedback { margin-left: auto; }
@media (max-width: 760px) {
  #playbook .story-stage[data-story-state="intro"] .playbook-intro-frame,
  #playbook .story-stage[data-story-state="conclusion"] .playbook-conclusion-frame,
  #playbook .story-stage[data-story-state="questions"] .playbook-questions-frame,
  #playbook .story-stage[data-story-state="takeaway-makeup"] .playbook-selected-frame { display: block !important; }
  #playbook .playbook-search-frame { grid-template-columns: 1fr; }
  .playbook-location { padding: 0 8px 12px; font-size: 17px; }
  .playbook-risk-equation { grid-template-columns: 1fr; gap: 8px; }
  .playbook-risk-equation > span { text-align: center; }
  .playbook-risk-equation article { padding: 18px; }
  #playbook .playbook-factor-columns { margin: 0; gap: 16px; }
  #playbook .story-stage[data-story-state="takeaway-makeup"] .playbook-commentary-pane { padding-bottom: 0; }
  #playbook .story-stage[data-story-state="takeaway-makeup"] #playbook-warning-takeaway { position: static; width: 100%; }
  #playbook-conclusion .playbook-scorecard { grid-template-columns: 1fr; grid-template-rows: auto; }
  #playbook-questions-list { grid-template-columns: 1fr; }
}
#playbook .story-stage[data-story-state="takeaway-makeup"] > .panel { padding-bottom: 14px !important; }
#playbook .story-stage[data-story-state="takeaway-makeup"] #playbook-warning-takeaway { transform: none; max-width: none; text-align: center; }
