:root {
  color-scheme: light;
  --paper: #f4f3ee;
  --paper-deep: #e9e8df;
  --ink: #17241e;
  --muted: #626a63;
  --line: #d4d6ca;
  --forest: #174736;
  --forest-dark: #103629;
  --lime: #dcff59;
  --orange: #ee7952;
  --blue: #809ddb;
  --purple: #9b82c6;
  --white: #fffef9;
  --shadow: 0 12px 34px rgba(26, 45, 34, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--forest); }
a:hover { color: #0b2f22; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, circle:focus-visible {
  outline: 3px solid #5272c8;
  outline-offset: 3px;
}
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: var(--lime); color: var(--ink); border-radius: .7rem; }
.skip-link:focus { top: 1rem; }
.loading { padding: 5rem 1rem; text-align: center; color: var(--muted); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244,243,238,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(212,214,202,.8); }
.header-inner { width: min(1240px, calc(100% - 40px)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.045em; font-size: 1.05rem; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; border-radius: 11px; display: grid; place-items: center; background: var(--forest); color: var(--lime); font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { padding: .65rem .78rem; text-decoration: none; color: #4c564f; font-weight: 650; font-size: .87rem; white-space: nowrap; border-radius: 999px; }
.nav-links a:hover { background: #e9eadf; color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--forest); color: var(--white); }
.nav-count { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; margin-left: .3rem; padding: 0 .25rem; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .7rem; }
.nav-count[hidden] { display: none; }
.site-main { min-height: calc(100vh - 170px); }
.container { width: min(1160px, calc(100% - 40px)); margin: auto; }
.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); }
.footer-inner { width: min(1160px, calc(100% - 40px)); margin: auto; padding: 1.5rem 0 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .82rem; }
.footer-inner a { font-weight: 700; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, .serif { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.9rem); line-height: .98; margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.06; margin-bottom: .7rem; }
h3 { letter-spacing: -.025em; }
.eyebrow { color: #42624f; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 800; margin-bottom: .85rem; }
.lede { color: #58635b; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.65; max-width: 670px; }
.page-intro { padding: 4.4rem 0 2rem; }
.page-intro h1 { font-size: clamp(2.65rem, 6vw, 4.8rem); max-width: 850px; }
.page-intro .lede { max-width: 760px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.2rem; }
.section-head p { max-width: 580px; color: var(--muted); line-height: 1.55; margin-bottom: .1rem; }
.section { padding: 2.1rem 0; }
.small-note { color: var(--muted); font-size: .83rem; line-height: 1.55; }
.muted { color: var(--muted); }

.hero { overflow: hidden; position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; min-height: 490px; margin-top: 2rem; padding: clamp(2rem, 5vw, 4.8rem); border-radius: 30px; color: var(--white); background: var(--forest); }
.hero:before { content: ""; position: absolute; width: 650px; height: 650px; border: 1px solid rgba(220,255,89,.16); border-radius: 50%; right: -155px; top: -185px; }
.hero:after { content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid rgba(220,255,89,.13); border-radius: 50%; right: -65px; top: -100px; }
.hero-copy, .hero-art { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { max-width: 680px; }
.hero .lede { color: #d5e1d7; max-width: 610px; }
.hero .button-row { margin-top: 1.8rem; }
.hero .button-quiet { color: white; border-color: rgba(255,255,255,.42); }
.hero .button-quiet:hover { background: rgba(255,255,255,.1); color: white; }
.hero-art { min-height: 300px; display: grid; place-items: center; }
.orbit { position: absolute; width: min(34vw, 360px); aspect-ratio: 1; border: 1px solid rgba(220,255,89,.35); border-radius: 50%; transform: rotate(-28deg) scaleY(.55); }
.orbit:before, .orbit:after { content: ""; position: absolute; inset: 22%; border: 1px solid rgba(220,255,89,.25); border-radius: 50%; }
.orbit:after { inset: 42%; border-color: rgba(220,255,89,.35); }
.hero-ball { width: clamp(170px, 22vw, 255px); aspect-ratio: 1; border-radius: 50%; background: var(--lime); color: var(--forest); position: relative; box-shadow: inset -23px -18px 0 rgba(35,83,38,.13), 0 24px 48px rgba(0,0,0,.22); display: grid; place-items: center; transform: rotate(-14deg); }
.hero-ball:before, .hero-ball:after { content: ""; position: absolute; inset: 13% 30%; border: 3px solid var(--forest); border-radius: 50%; transform: rotate(36deg); opacity: .9; }
.hero-ball:after { transform: rotate(-36deg); }
.hero-ball span { position: absolute; z-index: 1; bottom: 24%; right: 13%; padding: .12rem .22rem; border-radius: 4px; background: var(--lime); font-size: .65rem; font-weight: 900; letter-spacing: .14em; transform: rotate(18deg); }
.hero-sticker { position: absolute; right: 2%; bottom: 8%; z-index: 2; padding: .8rem 1rem; border-radius: 13px; background: var(--orange); color: #251e18; font-size: .76rem; line-height: 1.25; font-weight: 800; transform: rotate(5deg); box-shadow: var(--shadow); }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 45px; padding: .7rem 1.05rem; border: 1px solid transparent; border-radius: 999px; background: var(--forest); color: white; font-weight: 750; text-decoration: none; font-size: .91rem; }
.button:hover { color: white; background: var(--forest-dark); }
.button-light { background: var(--lime); color: var(--ink); }
.button-light:hover { background: #d1f44d; color: var(--ink); }
.button-quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.button-quiet:hover { background: var(--paper-deep); color: var(--ink); }
.button-small { min-height: 36px; padding: .5rem .75rem; font-size: .8rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin: 1.2rem 0 2rem; }
.stat-card { padding: 1.2rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.stat-card strong { display: block; font-family: Georgia, serif; font-size: 2.15rem; letter-spacing: -.06em; line-height: 1; margin-bottom: .55rem; }
.stat-card span { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.stat-card.accent { background: var(--lime); border-color: var(--lime); }
.stat-card.dark { background: var(--forest); border-color: var(--forest); color: white; }
.stat-card.dark span { color: #d5e1d7; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { min-height: 225px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem; border: 1px solid var(--line); border-radius: 19px; background: var(--white); text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--paper-deep); font-size: 1.4rem; }
.feature-card h3 { margin: 1.3rem 0 .45rem; font-size: 1.1rem; }
.feature-card p { margin-bottom: 0; color: var(--muted); line-height: 1.55; font-size: .9rem; }
.feature-arrow { align-self: end; margin-top: .9rem; font-size: 1.2rem; color: var(--forest); }
.story-band { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 2rem; margin: 2.5rem 0; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 23px; background: #e7e8de; }
.story-band p { color: var(--muted); line-height: 1.6; margin-bottom: .6rem; }
.story-list { display: grid; gap: .7rem; }
.story-item { display: flex; gap: .85rem; align-items: start; padding: .9rem; border-radius: 13px; background: rgba(255,254,249,.76); }
.story-number { flex: 0 0 2rem; color: var(--forest); font-family: Georgia, serif; font-size: 1.25rem; }
.story-item strong { display: block; margin-bottom: .18rem; }
.story-item span { color: var(--muted); line-height: 1.45; font-size: .84rem; }

.panel { padding: 1.3rem; border: 1px solid var(--line); border-radius: 19px; background: var(--white); box-shadow: 0 4px 18px rgba(26,45,34,.035); }
.panel + .panel { margin-top: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2, .panel-head h3 { margin-bottom: .35rem; }
.panel-head p { color: var(--muted); margin-bottom: 0; font-size: .87rem; line-height: 1.5; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .34rem .65rem; font-size: .72rem; font-weight: 800; line-height: 1.25; background: #e8e9e2; color: #39463d; }
.badge.status-checked { background: #dceee2; color: #205639; }
.badge.status-corrected { background: #dfe7f8; color: #284776; }
.badge.status-variant { background: #f4e9c9; color: #6b4c12; }
.badge.status-needs { background: #f7ddd2; color: #81432e; }
.badge.status-nonball { background: #e5dff0; color: #4e3a70; }
.badge.status-other { background: #e2e4e0; color: #4c544e; }
.badge.impact-3 { background: #f7ddd2; color: #84442e; }
.badge.impact-2 { background: #f4e9c9; color: #6b4c12; }
.badge.impact-1 { background: #dceee2; color: #205639; }

.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; padding: 1rem; margin-bottom: 1rem; background: #ebece4; border-radius: 16px; }
.field { display: grid; gap: .38rem; min-width: 145px; }
.field.grow { flex: 1 1 250px; }
.field label { color: #4d5a50; font-size: .75rem; font-weight: 800; }
.field input, .field select { width: 100%; min-height: 42px; padding: .58rem .75rem; border: 1px solid #c6cabf; border-radius: 10px; background: var(--white); color: var(--ink); }
.checkbox-field { display: flex; align-items: center; gap: .55rem; min-height: 42px; color: #455249; font-size: .83rem; font-weight: 650; }
.checkbox-field input { width: 1.1rem; height: 1.1rem; accent-color: var(--forest); }
.toolbar-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .55rem; align-items: end; }
.results-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .2rem .1rem .65rem; color: var(--muted); font-size: .82rem; }
.results-line strong { color: var(--ink); }
.table-shell { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: .72rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid #e7e8e1; }
th { position: sticky; top: 0; z-index: 3; background: #e9ece3; color: #35483b; font-size: .73rem; line-height: 1.35; letter-spacing: .015em; }
td { color: #303b33; font-size: .8rem; line-height: 1.45; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background-color: #f8f9f3; }
.raw-table { min-width: 3100px; table-layout: fixed; }
.raw-table th, .raw-table td { min-width: 130px; max-width: 255px; overflow-wrap: anywhere; }
.raw-table th:nth-child(1), .raw-table td:nth-child(1) { position: sticky; left: 0; z-index: 2; width: 54px; min-width: 54px; max-width: 54px; text-align: center; background: var(--white); }
.raw-table th:nth-child(1) { z-index: 5; background: #e9ece3; }
.raw-table th:nth-child(2), .raw-table td:nth-child(2) { position: sticky; left: 54px; z-index: 2; width: 190px; min-width: 190px; max-width: 190px; }
.raw-table td:nth-child(2) { background: var(--white); font-weight: 750; }
.raw-table th:nth-child(2) { z-index: 5; background: #e9ece3; }
.raw-table th:nth-child(3), .raw-table td:nth-child(3) { position: sticky; left: 244px; z-index: 2; width: 215px; min-width: 215px; max-width: 215px; }
.raw-table td:nth-child(3) { background: var(--white); }
.raw-table th:nth-child(3) { z-index: 5; background: #e9ece3; }
.raw-table th:nth-last-child(1), .raw-table td:nth-last-child(1) { min-width: 100px; }
.raw-table .cell-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-pick { width: 1rem; height: 1rem; accent-color: var(--forest); }
.row-actions { display: flex; gap: .4rem; align-items: start; }
.text-button { border: 0; padding: .2rem 0; background: transparent; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; font-weight: 750; font-size: .78rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; }
.pagination-controls { display: flex; align-items: center; gap: .55rem; }
.pagination button { min-height: 36px; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); }
.pagination button:disabled { opacity: .45; cursor: default; }
.compare-callout { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0 0; padding: .95rem 1.1rem; border-radius: 14px; background: var(--forest); color: white; }
.compare-callout span { color: #d5e1d7; font-size: .85rem; }
.compare-callout a { flex: 0 0 auto; color: var(--lime); font-weight: 800; text-decoration: none; }

.chart-panel { margin-top: 1.2rem; }
.chart-frame { width: 100%; overflow-x: auto; }
.scatter { display: block; width: 100%; min-width: 700px; height: auto; }
.scatter .grid-line { stroke: #e4e7df; stroke-width: 1; }
.scatter .axis-line { stroke: #8c968b; stroke-width: 1.3; }
.scatter text { fill: #59655d; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 11px; }
.scatter .axis-title { fill: #2c3e32; font-size: 12px; font-weight: 750; }
.scatter circle { stroke: var(--white); stroke-width: 1.5; cursor: pointer; }
.scatter circle:hover, .scatter circle:focus { stroke: var(--ink); stroke-width: 2.5; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; padding: .4rem 0 .2rem; }
.legend-item { display: inline-flex; align-items: center; gap: .42rem; color: #526056; font-size: .77rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.chart-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; align-items: start; }
.explore-section { scroll-margin-top: 110px; }
.viz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.explore-viewer { display: grid; grid-template-columns: minmax(170px, 205px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.explore-view-tabs { position: sticky; top: 118px; display: grid; gap: .9rem; padding: .9rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 4px 18px rgba(26,45,34,.035); }
.explore-view-group { display: grid; gap: .28rem; }
.explore-view-group .eyebrow { margin: .2rem .55rem .12rem; font-size: .62rem; }
.explore-view-tab { width: 100%; min-height: 40px; padding: .55rem .65rem; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #526056; text-align: left; font-size: .78rem; font-weight: 730; line-height: 1.35; cursor: pointer; }
.explore-view-tab:hover, .explore-view-tab:focus-visible { border-color: #d5ded3; background: #f5f6f0; color: var(--ink); outline: none; }
.explore-view-tab[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: white; box-shadow: 0 3px 10px rgba(34,76,55,.15); }
.viz-card { min-width: 0; padding: 1.15rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 4px 18px rgba(26,45,34,.035); }
.viz-card-head { min-height: 78px; display: flex; justify-content: space-between; align-items: start; gap: .7rem; margin-bottom: .55rem; }
.viz-card-head h3 { margin: 0 0 .3rem; font-size: 1rem; }
.viz-card-head p { max-width: 340px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.active-chart-card { min-width: 0; padding: clamp(.9rem, 2vw, 1.35rem); }
.active-chart-head { min-height: 0; align-items: start; margin-bottom: .75rem; }
.active-view-meta { min-width: 0; opacity: 1; transition: opacity 180ms ease; }
.active-view-meta.is-changing { opacity: .18; }
.active-view-meta .eyebrow { margin-bottom: .3rem; font-size: .63rem; }
.active-view-meta h3 { margin: 0 0 .38rem; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.active-view-meta p { max-width: 580px; }
.active-view-meta .viz-note { margin-top: .3rem; font-size: .73rem; }
.active-chart-actions { align-items: end; flex-wrap: wrap; }
.active-chart-actions .hist-toggle { justify-content: end; margin: 0 .25rem 0 0; white-space: nowrap; }
.active-chart-frame { min-height: 470px; }
.chart-body { opacity: 1; transition: opacity 280ms ease; }
.chart-body-exit { pointer-events: none; }
.moving-point { cursor: pointer; }
.moving-point:hover .plot-point-shape, .moving-point:focus .plot-point-shape { stroke: var(--ink); stroke-width: 2.7; }
.moving-point:focus { outline: none; }
.hist-reference-line { pointer-events: none; opacity: .8; }
.hist-bar { transition: opacity 160ms ease; }
[hidden] { display: none !important; }
.viz-actions { display: flex; flex: 0 0 auto; gap: .3rem; }
.viz-actions .button { min-height: 31px; padding: .34rem .55rem; font-size: .7rem; }
.viz-frame { width: 100%; overflow-x: auto; }
.explore-chart { display: block; width: 100%; min-width: 550px; height: auto; overflow: visible; }
.explore-chart text { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.chart-grid-line { stroke: #e4e7df; stroke-width: 1; }
.chart-axis-line { stroke: #8c968b; stroke-width: 1.2; }
.chart-tick, .chart-note, .legend-text, .heat-header, .heat-row-label, .matrix-header, .bar-label { fill: #59655d; font-size: 10.5px; }
.chart-axis-title { fill: #2c3e32; font-size: 11.5px; font-weight: 750; }
.plot-point { cursor: pointer; }
.plot-point:hover, .plot-point:focus { stroke: var(--ink); stroke-width: 2.6; outline: none; }
.scatter-tooltip { position: fixed; z-index: 80; width: min(340px, calc(100vw - 20px)); max-height: min(390px, 58vh); overflow: auto; padding: .85rem .95rem; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(23,36,30,.97); color: #f7f7ef; box-shadow: 0 12px 32px rgba(7,20,12,.28); pointer-events: none; }
.scatter-tooltip[hidden] { display: none; }
.scatter-tooltip > strong { display: block; margin-bottom: .55rem; color: var(--lime); font-size: .88rem; line-height: 1.35; }
.scatter-tooltip dl { display: grid; grid-template-columns: 112px 1fr; gap: .28rem .55rem; margin: 0; }
.scatter-tooltip dl div { display: contents; }
.scatter-tooltip dt, .scatter-tooltip dd { margin: 0; font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; }
.scatter-tooltip dt { color: #c9d4ca; }
.scatter-tooltip dd { color: #fffef9; }
.outlier-label { font-size: 9px; font-weight: 800; paint-order: stroke; stroke: var(--white); stroke-width: 3px; stroke-linejoin: round; }
.heat-header, .matrix-header { font-weight: 750; }
.heat-row-label { font-weight: 750; }
.heat-cell-text, .matrix-cell-text, .bar-value { fill: var(--ink); font-size: 11.5px; font-weight: 800; }
.reference-label { font-size: 9px; font-weight: 800; paint-order: stroke; stroke: var(--white); stroke-width: 3px; stroke-linejoin: round; }
.hist-bar { stroke: var(--white); stroke-width: .5; }
.empty-chart { fill: var(--muted); font-size: 14px; }
.family-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.25rem 0 .65rem; }
.family-chip { display: inline-flex; align-items: center; gap: .42rem; min-height: 34px; padding: .42rem .68rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: #47554b; font-size: .74rem; font-weight: 750; }
.family-chip[aria-pressed="false"] { opacity: .52; text-decoration: line-through; }
.family-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--family-color); }
.viz-note { min-height: 0; margin: .1rem 0 .3rem; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.hist-toggle { justify-content: end; margin: -.2rem 0 .2rem; font-size: .74rem; }
.viz-card .checkbox-field { font-size: .74rem; }
.viz-card .viz-frame { margin-top: .1rem; }
.viz-card .small-note { margin-top: .35rem; }
.chart-export-note { font-size: 10px; }
.explore-controls { margin-bottom: .5rem; }
.explore-controls .panel-head { align-items: center; }
.explore-controls .panel-head h2 { font-size: 1.8rem; }
.explore-controls .toolbar { margin-bottom: .7rem; }
.explore-controls .results-line { padding-bottom: .2rem; }
.explore-jump { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; width: fit-content; max-width: 100%; margin: 0 auto 1rem; padding: .45rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,254,249,.95); box-shadow: 0 5px 20px rgba(26,45,34,.07); }
.explore-jump span { padding: 0 .45rem; color: var(--muted); font-size: .73rem; font-weight: 750; }
.explore-jump a { padding: .48rem .72rem; border-radius: 999px; text-decoration: none; font-size: .75rem; font-weight: 750; }
.explore-jump a:hover, .explore-jump a:focus-visible { background: var(--forest); color: white; }
.viz-card:focus-within { border-color: #aab8a8; }
.section .stat-strip { margin-top: .8rem; }
.bar-list { display: grid; gap: .85rem; }
.bar-row { display: grid; grid-template-columns: minmax(115px, 190px) 1fr 42px; gap: .65rem; align-items: center; font-size: .78rem; }
.bar-track { height: 11px; border-radius: 99px; overflow: hidden; background: #e7e9e1; }
.bar-fill { height: 100%; min-width: 2px; border-radius: inherit; background: var(--forest); }
.bar-fill.orange { background: var(--orange); }
.bar-fill.blue { background: var(--blue); }
.bar-fill.purple { background: var(--purple); }
.bar-count { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.outlier-list { display: grid; gap: .6rem; }
.outlier-button { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: transparent; text-align: left; color: var(--ink); }
.outlier-button:hover { background: #f4f5ed; }
.outlier-button strong { font-size: .86rem; }
.outlier-button span { color: var(--muted); font-size: .78rem; }
.outlier-button .badge { grid-column: 1 / -1; justify-self: start; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.stat-strip > div { padding: .95rem; border-radius: 13px; background: #f0f1e9; }
.stat-strip strong { display: block; font-family: Georgia, serif; font-size: 1.65rem; letter-spacing: -.04em; }
.stat-strip span { color: var(--muted); font-size: .76rem; }

.factor-categories { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 1rem; }
.chip { display: inline-flex; gap: .35rem; align-items: center; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: #47554b; background: var(--white); text-decoration: none; font-size: .75rem; font-weight: 750; }
.chip:hover, .chip.active { background: var(--forest); border-color: var(--forest); color: white; }
.impact-meter { display: inline-flex; gap: 3px; align-items: center; }
.impact-meter i { display: block; width: 18px; height: 6px; border-radius: 5px; background: #e1e3dc; }
.impact-meter i.on { background: var(--forest); }
.factor-table { min-width: 900px; }
.factor-table th:nth-child(1) { min-width: 150px; }
.factor-table th:nth-child(2) { min-width: 210px; }
.factor-table th:nth-child(3) { min-width: 360px; }
.factor-table th:nth-child(4) { min-width: 135px; }
.factor-table th:nth-child(5) { min-width: 380px; }

.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .85rem; }
.compare-card { position: relative; padding: 1.15rem; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.compare-card h3 { font-size: 1rem; margin-bottom: .3rem; padding-right: 1.5rem; }
.compare-card .ball-name { color: var(--muted); font-size: .8rem; min-height: 1.2rem; }
.remove-pick { position: absolute; top: .75rem; right: .75rem; border: 0; background: transparent; color: var(--muted); font-size: 1.15rem; }
.compare-metric { margin-top: 1.1rem; }
.compare-metric-head { display: flex; justify-content: space-between; gap: .6rem; margin-bottom: .35rem; font-size: .78rem; }
.compare-metric-head span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
.compare-track { height: 16px; background: #e9ebe3; border-radius: 99px; overflow: hidden; }
.compare-fill { height: 100%; border-radius: inherit; background: var(--forest); }
.compare-fill.mass { background: var(--orange); }
.compare-card .badge { margin-top: .9rem; }
.empty-state { padding: 2rem; border: 1px dashed #b7beb2; border-radius: 17px; text-align: center; background: rgba(255,254,249,.55); }
.empty-state p { color: var(--muted); max-width: 480px; margin: .5rem auto 1rem; line-height: 1.55; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.method-card { padding: 1.3rem; border-radius: 17px; background: var(--white); border: 1px solid var(--line); }
.method-card h3 { margin-bottom: .55rem; }
.method-card p, .method-card li { color: var(--muted); line-height: 1.6; font-size: .9rem; }
.method-card ul { margin: .7rem 0 0; padding-left: 1.1rem; }
.status-legend { display: grid; gap: .65rem; }
.status-definition { display: grid; grid-template-columns: minmax(190px, .8fr) 1.2fr; gap: 1rem; align-items: start; padding: .75rem 0; border-bottom: 1px solid #e7e8e1; }
.status-definition:last-child { border-bottom: 0; }
.status-definition p { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: .1rem 0 0; }
.definition-list { margin: 0; }
.definition-list div { display: grid; grid-template-columns: 195px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #e7e8e1; }
.definition-list div:last-child { border: 0; }
.definition-list dt { color: var(--forest); font-weight: 800; font-size: .84rem; }
.definition-list dd { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.source-list { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.65; font-size: .85rem; }

dialog { width: min(780px, calc(100% - 28px)); max-height: min(88vh, 850px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 80px rgba(10,30,18,.28); }
dialog::backdrop { background: rgba(12,26,18,.56); backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.dialog-head h2 { margin: .1rem 0 0; font-size: 1.7rem; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.25rem; }
.dialog-body { overflow: auto; max-height: calc(88vh - 70px); padding: 1.25rem; }
.dialog-section { margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.dialog-section h3 { margin-bottom: .65rem; }
.dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; }
.dialog-field { overflow-wrap: anywhere; }
.dialog-field strong { display: block; color: #4e5b51; font-size: .71rem; line-height: 1.35; margin-bottom: .2rem; }
.dialog-field span { font-size: .83rem; line-height: 1.45; }
.evidence-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.evidence-links a { padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-size: .76rem; overflow-wrap: anywhere; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }

@media (max-width: 900px) {
  .header-inner { align-items: start; flex-direction: column; gap: .5rem; padding: .85rem 0 .5rem; }
  .nav-links { width: 100%; }
  .nav-links a { padding: .55rem .7rem; }
  .hero { grid-template-columns: 1fr .65fr; min-height: 430px; }
  .hero-art { min-height: 230px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .viz-grid { grid-template-columns: 1fr; }
  .explore-viewer { grid-template-columns: minmax(150px, 175px) minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .header-inner, .container, .footer-inner { width: min(100% - 28px, 1160px); }
  .hero { display: block; min-height: 0; padding: 2rem 1.35rem 1.4rem; border-radius: 22px; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.3rem); }
  .hero-art { position: absolute; right: -85px; top: 105px; width: 210px; min-height: 210px; opacity: .5; }
  .hero-ball { width: 160px; }
  .orbit { width: 240px; }
  .hero-sticker { right: 1%; bottom: 0; }
  .hero-copy { max-width: 90%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 185px; }
  .story-band { grid-template-columns: 1fr; }
  .page-intro { padding: 3rem 0 1.5rem; }
  .section-head { display: block; }
  .section-head p { margin-top: .6rem; }
  .toolbar { align-items: stretch; }
  .field { flex: 1 1 130px; }
  .field.grow { flex-basis: 100%; }
  .toolbar-actions { width: 100%; margin-left: 0; }
  .toolbar-actions .button { flex: 1; }
  .stat-strip { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .status-definition { grid-template-columns: 1fr; gap: .35rem; }
  .definition-list div { grid-template-columns: 1fr; gap: .3rem; }
  .footer-inner { align-items: start; flex-direction: column; }
  .compare-callout { align-items: start; flex-direction: column; }
  .dialog-fields { grid-template-columns: 1fr; }
  .pagination { align-items: start; flex-direction: column; }
  .viz-card { padding: .9rem; }
  .viz-card-head { min-height: 0; flex-direction: column; }
  .viz-actions { align-self: end; }
  .explore-chart { min-width: 540px; }
  .explore-viewer { grid-template-columns: 1fr; }
  .explore-view-tabs { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
  .explore-view-tab { min-height: 42px; font-size: .72rem; }
  .active-chart-head { flex-direction: row; }
  .active-chart-actions { align-self: start; }
  .active-chart-actions .hist-toggle { white-space: normal; }
  .active-chart-frame { min-height: 350px; }
  .scatter-tooltip dl { grid-template-columns: 96px 1fr; }
  .explore-controls .panel-head { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
