:root {
  color-scheme: light;
  --paper: #f3f6f4;
  --white: #fffefc;
  --ink: #16241f;
  --muted: #4d5f58;
  --line: #d5e0db;
  --purple: #1d4a40;
  --lilac: #b9e3cf;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
a { color: #1e5a4b; text-underline-offset: .19em; }
a:hover { color: #2b7a65; }
code { font-size: .94em; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: white; background: var(--purple); border: 1px solid transparent; border-radius: .55rem; min-height: 2.75rem; padding: .55rem .9rem; font-weight: 700; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #3d9b80; outline-offset: 4px; }
.frame { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 3; position: fixed; top: .5rem; left: .5rem; background: white; padding: .65rem; }
.mast { background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.nav a { text-decoration: none; }
.nav > div { display: flex; gap: clamp(.6rem, 2.6vw, 2rem); font-size: .9rem; font-weight: 650; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-size: 1.09rem; font-weight: 820; white-space: nowrap; }
.brand-dim { color: var(--muted); font-weight: 650; }
.brand img { border-radius: 8px; }
.banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: stretch; gap: .75rem; margin-block: 1rem; }
.star { color: #12302a; background: #d7efe3; border: 1px solid #a9d8c1; text-decoration: none; display: flex; align-items: center; gap: .8rem; padding: .65rem 1rem; border-radius: .75rem; min-height: 76px; }
.star:hover { color: #12302a; background: #c8e8d8; }
.star strong, .star small { display: block; }
.star strong { font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.24; }
.star small { color: #2d5c4f; font-size: .81rem; }
.star-icon { font-size: 1.6rem; }
.star-arrow { margin-left: auto; font-weight: 750; }
.ad { min-width: 0; display: grid; place-items: center; min-height: 76px; }
.ad #carbonads { max-width: 100%; margin: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); align-items: center; gap: clamp(1rem, 4vw, 4rem); min-height: 25rem; padding: clamp(1.4rem, 5vw, 4rem); color: var(--white); border-radius: 1.15rem; background: #12302a; }
.hero a { color: #cdbdf7; }
.kicker { margin: 0 0 .7rem; font: 700 .73rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .1em; color: #56706a; }
.hero .kicker { color: #9fd3bb; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 5.2rem); font-weight: 840; letter-spacing: -.055em; line-height: 1; }
h2 { margin: 0 0 .62rem; font-size: clamp(1.42rem, 2.6vw, 2.15rem); letter-spacing: -.032em; line-height: 1.15; }
.intro { max-width: 39ch; font-size: clamp(1rem, 1.7vw, 1.22rem); color: #dcece5; }
.search { margin-top: 1.4rem; }
.search label, .release-picker label, .target-controls label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .35rem; }
.search > div { display: flex; gap: .45rem; }
.search input { min-width: 0; flex: 1; padding: .68rem .8rem; border: 1px solid transparent; border-radius: .55rem; }
.search button { color: #12302a; background: var(--lilac); white-space: nowrap; }
.search ul { list-style: none; padding: .6rem .8rem; margin: .5rem 0 0; border-radius: .5rem; background: #1d4a40; }
.search li a { display: block; padding: .3rem .25rem; text-decoration: none; color: #e6f3ed; }
.search li small { display: block; color: #9fd3bb; font-size: .78rem; }
#search-status { font-size: .83rem; color: #b9dccb; margin-block: .35rem; }
#search-status:empty { display: none; }
.examples { display: flex; flex-wrap: wrap; gap: .65rem; font-size: .87rem; }
.coverage { border: 1px solid #2f6a5a; padding: clamp(1.1rem, 3vw, 2.1rem); border-radius: 1rem; background: #1d4a40; }
.figure { margin: 0; color: var(--lilac); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 820; line-height: 1.05; letter-spacing: -.055em; }
.figure-label { margin: .4rem 0 1.1rem; }
.coverage dl { margin: 0; }
.coverage dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .7rem; padding-block: .58rem; border-top: 1px solid #2f6a5a; }
.coverage dt { color: #b5d9c9; }
.coverage dd { margin: 0; font-weight: 650; }
.section { margin-block: 2.4rem; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .8rem; }
.section-title h2 { margin-bottom: 0; }
.cards, .directory { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: .7rem; }
.cards a, .directory a { display: block; padding: .85rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: .65rem; text-decoration: none; overflow-wrap: anywhere; }
.cards a:hover, .directory a:hover { border-color: #5aa688; }
.cards strong, .cards span, .directory small { display: block; }
.cards span, .directory small { color: var(--muted); font-size: .83rem; margin-top: .2rem; }
.engine-cards li, .engine-list li { padding: .85rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: .65rem; list-style: none; }
.engine-list { padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: .7rem; }
.engine-cards strong, .engine-list strong { display: block; margin-bottom: .2rem; }
.engine-cards span, .engine-list span { color: var(--muted); font-size: .86rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.steps li { padding: .7rem .9rem; background: var(--white); border: 1px solid var(--line); border-radius: .6rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; color: var(--muted); font-size: .84rem; }
.crumbs li { min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: #7f978f; }
.page-title { margin-block: 2rem 1.35rem; }
.page-title h1 { font-size: clamp(2rem, 5vw, 4rem); }
.page-title > p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }
.text-link { font-weight: 700; }
.package-panel { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(.85rem, 3vw, 1.7rem); }
.release-picker select, .target-controls select, .target-controls input { max-width: min(40vw, 15rem); min-height: 2.75rem; padding: .38rem .5rem; border: 1px solid #7fa597; border-radius: .4rem; background: #f6faf8; color: var(--ink); }
.table-scroll { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .57rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.quants th:first-child { min-width: 7.6rem; }
.quants small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.quants tr.fits .estimate { background: #dcf0cc; color: #204e2c; font-weight: 750; }
.quants tr.tight .estimate { background: #fbe9bf; color: #6b4c05; font-weight: 750; }
.context-note { font-weight: 500; color: var(--muted); font-size: .78rem; }
.history { background: var(--white); }
.history small { font-weight: 500; color: var(--muted); }
.history th small { display: block; }
.fine { color: var(--muted); font-size: .88rem; }
.target-check { border-block: 1px solid var(--line); padding-block: 1rem; margin-block: 1.1rem; }
.target-check h3 { margin: 0 0 .65rem; }
.target-controls { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; margin-bottom: .6rem; }
#budget-result:empty { display: none; }
.names { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 1.5rem 3rem; }
.prose { max-width: 72ch; margin-bottom: 3rem; }
.prose h2 { margin-top: 1.6rem; font-size: 1.4rem; }
.footer { border-top: 1px solid var(--line); margin-top: 2.8rem; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; padding-block: 1.5rem; font-size: .9rem; }
.analytics-panel { z-index: 2; position: fixed; bottom: .8rem; right: .8rem; width: min(24rem, calc(100% - 1.6rem)); padding: 1rem; background: var(--white); border: 1px solid #8fa89f; box-shadow: 0 8px 32px #16241f30; border-radius: .7rem; }
.analytics-panel h2 { font-size: 1.2rem; }
.analytics-panel button[value="off"] { background: white; border-color: var(--purple); color: var(--purple); }
@media (max-width: 770px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .frame { width: calc(100% - 1.15rem); }
  .nav { gap: .4rem; }
  .nav > div { font-size: .8rem; }
  .brand { gap: .3rem; font-size: .97rem; }
  .brand img { width: 29px; height: 29px; }
  .banner { grid-template-columns: 1fr; gap: .45rem; margin-block: .65rem; }
  .star { min-height: 58px; }
  .ad { min-height: 62px; }
  .hero { padding: 1.15rem .9rem; }
  .section-title { align-items: start; }
  th, td { padding: .45rem .45rem; }
  .target-controls select, .target-controls input { max-width: 100%; }
}
.recalls { list-style: none; padding: 0; display: grid; gap: .7rem; }
.recalls li { padding: .9rem 1.05rem; background: var(--white); border: 1px solid var(--line); border-radius: .65rem; }
.recalls h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.recalls p { margin: .35rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: .6rem; margin: 0 0 1.2rem; }
.stats div { padding: .7rem .9rem; background: var(--white); border: 1px solid var(--line); border-radius: .6rem; }
.stats dt { color: var(--muted); font-size: .8rem; }
.stats dd { margin: .1rem 0 0; font-size: 1.5rem; font-weight: 780; letter-spacing: -.03em; }
.bars { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .4rem; }
.bars li { display: grid; grid-template-columns: minmax(7.5rem, 14rem) minmax(0, 1fr) 3.5rem; align-items: center; gap: .6rem; font-size: .9rem; }
.bar { display: block; height: .7rem; border-radius: .35rem; background: #5aa688; }
.bar-count { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 560px) { .bars li { grid-template-columns: minmax(5.5rem, 9rem) minmax(0, 1fr) 2.8rem; font-size: .84rem; } }
.facts { padding-left: 1.2rem; }
.facts li { margin-block: .35rem; }
.stats dd.text { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.nav > div a { white-space: nowrap; }
@media (max-width: 430px) { .nav > div a[href="/methodology/"], .nav > div a[href="/metros/"] { display: none; } }
.callout { display: block; padding: 1.1rem 1.3rem; background: #d7efe3; border: 1px solid #a9d8c1; border-radius: .8rem; color: #12302a; text-decoration: none; }
.callout:hover { background: #c8e8d8; color: #12302a; }
.callout strong { display: block; font-size: 1.2rem; }
.callout span { display: block; color: #2d5c4f; margin-top: .2rem; }
.checker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .8rem; align-items: end; padding: clamp(.9rem, 3vw, 1.5rem); background: var(--white); border: 1px solid var(--line); border-radius: 1rem; }
.checker label, .compare-filter { display: grid; gap: .3rem; font-size: .85rem; font-weight: 700; }
.checker select, .checker input, .compare-filter select { min-width: 0; width: 100%; min-height: 2.75rem; padding: .4rem .55rem; border: 1px solid #7fa597; border-radius: .45rem; background: #f6faf8; color: var(--ink); font-weight: 500; }
.checker p { grid-column: 1 / -1; margin: 0; }
.checker p:empty { display: none; }
.compare-filter { max-width: 18rem; margin-bottom: .8rem; }
.result { padding: clamp(.9rem, 3vw, 1.5rem); background: var(--white); border: 1px solid var(--line); border-left: .4rem solid var(--purple); border-radius: .8rem; }
.result .stats { margin-bottom: 0; }
.stats div.reached { background: #d7efe3; border-color: #5aa688; }
tr.chosen th, tr.chosen td { background: #e3f3eb; font-weight: 700; }
.attribution { color: var(--muted); font-size: .78rem; margin-block: 0 1.2rem; }
.up { font-size: .95rem; }
.up small { color: var(--muted); }
.years .spark { width: 22%; min-width: 4rem; }
.sales td small, .history td small { display: block; color: var(--muted); font-size: .76rem; }
.sales th[scope="row"] { font-weight: 600; }
.chart { margin: 0 0 1.2rem; padding: clamp(.75rem, 2.5vw, 1.25rem); background: var(--white); border: 1px solid var(--line); border-radius: .8rem; --c-median: #1e5a4b; --c-band: #b9e3cf; --c-ew: #7f978f; --c-bar: #c5dbd1; --c-D: #257de0; --c-S: #f47230; --c-T: #00b894; --c-F: #c2185b; --c-O: #4d5f58; }
.chart figcaption { display: grid; gap: .35rem; margin-bottom: .4rem; }
.chart-title { font-size: 1.05rem; line-height: 1.3; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .9rem; color: var(--muted); font-size: .84rem; }
.legend button { min-height: 2rem; padding: 0 .3rem; margin-inline: -.3rem; color: var(--ink); background: none; font-weight: 600; }
.legend button[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.legend button[aria-pressed="false"] .key { opacity: .3; }
.key { display: inline-block; width: 1.1rem; height: .7rem; margin-right: .35rem; vertical-align: -.05rem; }
.key-median { height: 3px; vertical-align: .2rem; background: var(--c-median); }
.key-band { background: var(--c-band); }
.key-ew { height: 2px; vertical-align: .22rem; background: var(--c-ew); }
.key-step { height: 2px; vertical-align: .22rem; background: var(--ink); }
.key-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--c-D); }
.key-dot.t-S { background: var(--c-S); } .key-dot.t-T { background: var(--c-T); }
.key-dot.t-F { background: var(--c-F); border-radius: 1px; } .key-dot.t-O { background: var(--c-O); }
.key-ring { background: none; border: 2px solid var(--muted); }
.readout { min-height: 3em; margin: 0 0 .5rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
.plots { position: relative; padding-top: 1rem; touch-action: pan-y; cursor: crosshair; }
.plot { position: relative; height: clamp(11rem, 30vw, 17rem); }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot path { fill: none; vector-effect: non-scaling-stroke; }
.plot .grid { stroke: var(--line); stroke-width: 1; }
.plot .band { fill: var(--c-band); opacity: .75; }
.plot .ew { stroke: var(--c-ew); stroke-width: 1.5; }
.plot .median { stroke: var(--c-median); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.plot .partial { stroke-dasharray: 3 4; }
.plot .median-dot { stroke: var(--c-median); stroke-width: 6; stroke-linecap: round; }
.hide-band .band, .hide-ew .ew { display: none; }
.plot.volume { height: 3rem; margin-top: .5rem; }
.plot.volume path { fill: var(--c-bar); }
.plot.volume .partial { fill: var(--c-bar); opacity: .45; }
.y-tick { position: absolute; left: 0; transform: translateY(-110%); color: var(--muted); font-size: .72rem; line-height: 1; text-shadow: 0 0 3px var(--white), 0 0 3px var(--white); pointer-events: none; }
.x-axis { position: relative; height: 1.4rem; margin-top: .25rem; color: var(--muted); font-size: .75rem; }
.x-axis span { position: absolute; transform: translateX(-50%); }
.x-axis .edge { transform: none; }
.cursor { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--muted); pointer-events: none; }
.marker, .ring { position: absolute; width: .8rem; height: .8rem; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.marker { background: var(--c-median); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--ink); }
.marker.t-D { background: var(--c-D); } .marker.t-S { background: var(--c-S); } .marker.t-T { background: var(--c-T); }
.marker.t-F { background: var(--c-F); border-radius: 2px; } .marker.t-O { background: var(--c-O); }
.ring { width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink); }
.dots path { stroke-width: 7; stroke-linecap: round; opacity: .8; }
.dots .t-D { stroke: var(--c-D); } .dots .t-S { stroke: var(--c-S); } .dots .t-T { stroke: var(--c-T); }
.dots .t-F { stroke: var(--c-F); stroke-linecap: square; stroke-width: 6; } .dots .t-O { stroke: var(--c-O); }
.dots .hole { stroke: var(--white); stroke-width: 3; opacity: 1; }
.dots .t-F.hole { stroke-width: 2.5; }
.plot .median-steps { stroke: var(--ink); stroke-width: 2; }
.hide-t-D .dots .t-D, .hide-t-S .dots .t-S, .hide-t-T .dots .t-T, .hide-t-F .dots .t-F, .hide-t-O .dots .t-O { display: none; }
.chart-note { margin: .4rem 0 0; color: var(--muted); font-size: .82rem; }
.chart .share { min-height: 2.75rem; margin-left: .3rem; padding: 0 .7rem; color: var(--purple); background: none; border-color: var(--line); font-size: .82rem; }
.history tr.active > *, .history tr.house > * { background: #e3f3eb; }
.history tr.house th { font-weight: 750; }
.sales th[scope="row"] { cursor: pointer; }
@media (max-width: 560px) { .x-axis .minor { display: none; } .readout { min-height: 4.5em; } }
