/* Navigation matches https://1aeo.com/; chart colors follow the shared blog palette. */
.nav { background-color: #1e1e1e; padding: 10px 0; box-shadow: 0 2px 10px rgba(0, 255, 127, 0.2); position: sticky; top: 0; z-index: 1000; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: #00ff7f; position: absolute; top: 10px; right: 20px; cursor: pointer; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; }
.nav-links a { color: #00ff7f; text-decoration: none; margin: 0 15px; font-size: 18px; }
.nav-links a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; margin-top: 40px; }
  .nav-links.show {
    display: flex;
    justify-content: flex-start;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-toggle { display: block; }
}
:root { color-scheme: dark; --bg: #121212; --card: #191f20; --edge: #3e4b4d; --green: #00ff7f; --mint: #55dda3; --text: #e1e7e6; --muted: #bdc8c9; --cyan: #48d9ef; --gold: #f1d05d; --coral: #ff9873; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 Arial,Helvetica,sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
button,a,summary { touch-action: manipulation; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 8px; left: 12px; z-index: 1200; background: var(--bg); padding: 10px; }
.nav-links a[aria-current] { font-weight: bold; text-decoration: underline; text-underline-offset: 5px; }
main { margin: auto; padding: 34px 24px 60px; }
h1,h2,h3,p { margin-top: 0; }
h1 { color: var(--green); font-size: 26px; line-height: 1.2; margin-bottom: 9px; }
h2 { font-size: 23px; line-height: 1.25; margin-bottom: 12px; }
h3 { font-size: 17px; line-height: 1.4; }
p { color: var(--muted); }
.page-title { display: flex; justify-content: space-between; gap: 28px; align-items: center; margin: 10px 0 28px; }
.page-title p { margin: 0; font-size: 16px; }
.snapshot { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.snapshot span { font-size: 12px; color: #91a19d; }
.subnav { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--edge); margin: 0 0 26px; padding: 0 0 12px; }
.subnav a { padding: 10px 18px; border-radius: 4px; color: var(--muted); font-size: 15px; border: 1px solid transparent; }
.subnav a.active { background: #203c2b; border-color: #386b4c; color: var(--green); }
.chart-stack { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; align-items: start; }
.chart-card { background: var(--card); border: 1px solid var(--edge); border-radius: 6px; padding: 23px 23px 16px; min-width: 0; }
.family-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #9caeaa; margin-bottom: 9px; }
.chart-card h2 { margin-bottom: 8px; }
.metric-subtitle { font: 15px/1.5 Arial,Helvetica,sans-serif; color: var(--muted); margin-bottom: 12px; overflow-wrap: anywhere; }
.metric-subtitle code { font: inherit; color: #adcec1; }
.definition { font-size: 16px; line-height: 1.5; margin: 0 0 17px; min-height: 48px; }
.primary-label { font-size: 13px; color: var(--muted); margin: 4px 0 9px; }
.stat-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 15px 0; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.stat-label { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.stat-number { font-size: 34px; line-height: 1.2; letter-spacing: -.8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-number small { display: block; font-size: 12px; color: var(--muted); font-weight: normal; letter-spacing: 0; margin-top: 3px; }
.percentile { display: inline-block; border-radius: 3px; padding: 3px 6px; font-size: 11px; margin-top: 9px; line-height: 1.4; }
.percentile.neutral { background: #22342c; color: #9de2bb; }
.percentile.elevated { background: #3b3421; color: var(--gold); }
.percentile.high { background: #472d23; color: var(--coral); }
.percentile.unknown { background: #2b3131; color: var(--muted); }
.reference { padding: 12px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.reference small { flex-basis: 100%; font-size: 11px; line-height: 1.5; color: #aabbb6; }
.chart-card figure,.explorer-detail figure { margin: 7px auto 12px; }
.plot-wrap { min-height: 260px; width: 100%; }
.plot-wrap svg { display: block; font-family: Arial,Helvetica,sans-serif; overflow: visible; }
.plot-wrap text { font-size: 13px; fill: var(--muted); font-weight: normal; }
.plot-wrap .axis-unit { font-size: 13px; }
.gridline { stroke: var(--edge); stroke-width: .7; }
.legend { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: 13px; line-height: 1.5; color: var(--muted); margin: 7px 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { height: 3px; width: 14px; display: inline-block; flex-shrink: 0; }
figcaption { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 12px 0; }
.build-note { font-size: 12px; line-height: 1.65; color: #adbfba; }
.build-note>span { color: var(--mint); }
.card-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--edge); padding-top: 13px; margin-top: 15px; font-size: 13px; }
.card-actions>span { color: var(--muted); font-size: 12px; }
.no-data { display: flex; min-height: 260px; align-items: center; justify-content: center; border: 1px dashed var(--edge); color: var(--muted); padding: 22px; font-size: 16px; text-align: center; }
.explorer-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.explorer-heading h2 { margin: 0 0 8px; }
.explorer-heading p { font-size: 13px; margin: 0; }
.range-control { display: flex; border: 1px solid var(--edge); border-radius: 4px; padding: 3px; white-space: nowrap; }
.range-control button { background: none; border: 0; color: var(--muted); padding: 8px 12px; font-size: 13px; }
.range-control button.active { background: #284633; color: var(--green); border-radius: 3px; }
.explorer-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 20px; }
.family-tree { align-self: start; }
.family-tree section { padding-bottom: 14px; border-bottom: 1px solid #2b3532; margin-bottom: 14px; }
.family-tree h3 { margin: 0 0 4px; }
.family-tree h3 button { background: none; border: 0; text-align: left; padding: 5px 7px; color: var(--text); font-size: 14px; font-weight: bold; }
.family-tree h3 button.active { color: var(--mint); }
.family-tree a { display: block; padding: 7px 9px 7px 24px; border-left: 2px solid #2b3532; font-size: 12px; color: var(--muted); line-height: 1.45; }
.family-tree a.selected { border-left-color: var(--green); background: #20382a; color: var(--green); }
.explorer-detail { padding: 25px; background: var(--card); border: 1px solid var(--edge); border-radius: 5px; min-width: 0; }
.explorer-detail .stat-number { font-size: 38px; }
.explorer-detail .definition { min-height: 0; }
.query-section { margin: 25px 0; }
.query-section>div { display: flex; align-items: center; justify-content: space-between; }
.query-section h3 { font-size: 15px; margin: 18px 0 8px; }
.query-section button { background: #25402e; border: 1px solid #47644f; color: var(--mint); font-size: 12px; border-radius: 4px; padding: 6px 10px; }
pre { background: #111a15; padding: 16px; border: 1px solid #304538; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; color: #abd8bf; border-radius: 4px; }
.query-section p { font-size: 14px; }
.download-row { display: flex; flex-wrap: wrap; gap: 15px; font-size: 13px; }
.table-scroll { overflow: auto; border: 1px solid var(--edge); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th,td { padding: 13px 15px; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { font-weight: normal; color: var(--mint); background: #1d2722; }
tr:last-child td,tr:last-child th { border-bottom: 0; }
.text-page { max-width: 900px; margin: auto; }
.text-page h3 { margin-top: 28px; }
.text-page p { font-size: 16px; }
.text-page code { color: #b0d9c5; overflow-wrap: anywhere; }
.text-page td { color: var(--muted); }
.text-page table { margin: 18px 0; }
.text-page li { color: var(--muted); margin: 8px 0; }
footer { margin: auto; border-top: 1px solid var(--edge); padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; font-size: 12px; color: var(--muted); }
@media(max-width:1000px) {
  .explorer-layout { grid-template-columns: 190px minmax(0,1fr); }
  .page-title { align-items: flex-start; }
  .snapshot { white-space: normal; }
  .explorer-detail { padding: 18px; }
}
@media(max-width:600px) {
  .nav { min-height: 52px; }
  .nav-links.show a { padding: 5px 0; }
  .nav-toggle { min-width: 44px; min-height: 32px; top: 6px; }
  main { padding: 24px 14px 40px; }
  .page-title { display: block; margin-bottom: 22px; }
  .page-title h1 { font-size: 25px; }
  .page-title p { font-size: 15px; }
  .snapshot { text-align: left; margin-top: 14px; font-size: 12px; }
  .subnav { gap: 2px; padding-bottom: 10px; }
  .subnav a { padding: 8px 9px; font-size: 13px; }
  .chart-card { padding: 18px 14px 14px; }
  .chart-card h2 { font-size: 20px; }
  .definition { min-height: 0; font-size: 16px; }
  .stat-pair { gap: 12px; }
  .stat-number small { font-size: 11px; }
  .stat-label { font-size: 12px; }
  .percentile { font-size: 10px; }
  .reference small { font-size: 11px; }
  .plot-wrap text { font-size: 12px; }
  .plot-wrap .axis-unit { font-size: 12px; }
  .legend { font-size: 12px; }
  .card-actions { align-items: flex-start; }
  .explorer-heading { display: block; }
  .range-control { width: max-content; margin-top: 14px; }
  .explorer-layout { display: block; }
  .family-tree { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .family-tree section { padding-bottom: 10px; margin-bottom: 10px; }
  .family-tree h3 button { font-size: 12px; }
  .family-tree a { font-size: 11px; padding: 6px 7px; }
  .explorer-detail { padding: 18px 14px; }
  .explorer-detail .stat-number { font-size: 28px; }
  th,td { padding: 10px; font-size: 12px; }
  footer { display: block; }
  footer>a,footer>span { display: block; margin-bottom: 8px; }
}
.legend i.gap-key { height: 11px; width: 14px; background: repeating-linear-gradient(135deg,#697373 0 1px,transparent 1px 5px); border: 1px solid #697373; }
.metric-subtitle { font-size: 16px; }
.plot-wrap .source { font-size: 12px; }
@media(max-width:600px) {
  .metric-subtitle { font-size: 15px; }
  .plot-wrap .source { font-size: 11px; }
}
.stat-reference { font-size: 12px; color: var(--muted); margin-top: 8px; }
.stat-reference b { font-weight: normal; font-variant-numeric: tabular-nums; }
main { max-width: none; width: auto; padding-inline: clamp(16px,2.5vw,64px); }
footer { max-width: none; padding-inline: clamp(16px,2.5vw,64px); }
.chart-card figure,.explorer-detail figure { max-width: none; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-heading h2 { margin-bottom: 14px; }
.card-heading .family-label { margin-bottom: 8px; }
.overview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.overview-toolbar h2 { font-size: 21px; margin-bottom: 7px; }
.overview-toolbar p { font-size: 13px; max-width: 72ch; margin: 0; }
.overview-controls { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.control-group { display: flex; gap: 8px; align-items: center; }
.control-group>span { font-size: 12px; color: var(--muted); }
.card-context .definition { max-width: 78ch; }
.stat-reference b { color: var(--muted); }
.stat-peak { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-reference,.stat-peak { overflow-wrap: anywhere; }
.stat-number { transition: color .1s; }
.stat.high .stat-number { color: var(--coral); }
.stat.elevated .stat-number { color: var(--gold); }
.stat.neutral .stat-number { color: #9de2bb; }
.stat.flat .stat-number,.stat.unknown .stat-number { color: var(--muted); }
.percentile.flat { background: #29312e; color: var(--muted); }
.rank-ruler { padding: 8px 5px 0; margin-top: 4px; max-width: 440px; }
.rank-track { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(to right,#385347 0%,#385347 90%,#9a8041 90%,#9a8041 99%,#c97553 99%,#c97553 100%); }
.rank-marker { position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 50%; transform: translateX(-50%); background: currentColor; border: 2px solid #141c18; box-shadow: 0 0 0 1px currentColor; }
.rank-ruler.high { color: var(--coral); }
.rank-ruler.elevated { color: var(--gold); }
.rank-ruler.neutral { color: #9de2bb; }
.rank-ruler.unknown { color: var(--muted); }
.rank-ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.2; }
.rank-empty,.rank-note,.record-note { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
.record-note { color: var(--coral); }
.band-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; margin: 18px 0 12px; padding-top: 14px; border-top: 1px solid var(--edge); font-size: 13px; }
.band-controls label { display: flex; align-items: center; gap: 8px; }
.band-controls select { max-width: 100%; background: #19271f; color: var(--text); border: 1px solid var(--edge); border-radius: 4px; padding: 7px; font: inherit; }
.band-controls button { padding: 7px 10px; border: 1px solid var(--edge); background: #23352b; color: var(--muted); border-radius: 4px; font-size: 12px; }
.band-controls button.active { color: var(--green); border-color: #477458; }
.band-controls button:disabled { opacity: .5; cursor: default; }
.band-controls small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.legend i.band-key { height: 11px; background: #55dda330; border: 1px solid #55dda366; }
.legend i.median-key { height: 0; border-top: 2px dashed #bdc8c9; background: none; }
.query-section { max-width: 1200px; }
@media(min-width:1200px) {
  .chart-full .chart-card .card-summary { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(500px,1.15fr); gap: 40px; align-items: start; }
  .chart-card .stat-pair { padding-top: 8px; }
  .chart-card .definition { max-width: 72ch; }
  .chart-card .primary-label { margin-top: 0; }
  .explorer-detail .stat-pair,.explorer-detail>.reference { max-width: 1100px; }
}
@media(max-width:1200px) {
  .overview-toolbar { display: block; }
  .overview-controls { margin-top: 16px; }
  .card-heading { flex-wrap: wrap; gap: 0 14px; }
}
@media(max-width:600px) {
  main { padding-inline: 14px; }
  .card-heading { display: block; }
  .card-heading h2 { margin-bottom: 12px; }
  .overview-controls { gap: 12px; }
  .control-group { gap: 6px; }
  .overview-toolbar p { font-size: 12px; }
  .stat-number { font-size: 28px; }
  .rank-ruler { padding-inline: 5px; }
  .stat-peak { font-size: 11px; }
  .band-controls label { display: block; width: 100%; }
  .band-controls select { display: block; width: 100%; margin-top: 6px; }
  .explorer-detail .family-label { line-height: 1.5; }
}
h3[id] { scroll-margin-top: 80px; }
.stat-pair.stat-pair-all { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.chart-card[data-family-range="all"] .card-summary { display: block; }
.chart-card[data-family-range="all"] .card-context .definition { max-width: 110ch; }
.stat-pair-all .stat { min-width: 0; }
.long-term-stat .stat-number { color: var(--mint); }
.historical-comparison { min-width: 0; }
.historical-comparison .percentile { overflow-wrap: anywhere; }
.average-coverage,.average-dates,.relay-population { font-size: 12px; color: var(--muted); margin-top: 8px; }
.average-dates,.relay-population { margin-top: 4px; }
.relay-population { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.explorer-detail.all-time-detail .stat-pair { max-width: none; }
@media(max-width:1100px) {
  .stat-pair.stat-pair-all { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
  .long-term-stat { border-top: 1px solid var(--edge); padding-top: 16px; }
}
@media(max-width:600px) {
  .stat-pair.stat-pair-all { gap: 18px 12px; }
  .average-coverage,.average-dates,.relay-population { font-size: 11px; }
}
@media(min-width:1000px) {
  .chart-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chart-grid .stat-pair-all { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
  .chart-grid .long-term-stat { border-top: 1px solid var(--edge); padding-top: 16px; }
}
