/* transit-trial site styles. Colours are tokens; dark is the default look,
   light follows the OS setting or the toggle (html[data-theme]). */
:root {
  color-scheme: dark;
  --bg: #0b0f1a; --bg2: #0f1524; --card: #141b2d; --card2: #1a2338; --line: #2a3550;
  --text: #e9edf6; --muted: #a9b4cb; --faint: #8592ad;
  --accent: #7fb2ff; --accent-ink: #0b0f1a; --star: #f5c26b;
  --s1: #338ced; --s2: #e76624; --s3: #2fc6a5;
  --good: #3ecf64; --good-bg: #12301c; --warn: #f2b53a; --warn-bg: #3a2c0c;
  --bad: #ff7a7a; --bad-bg: #3b1616; --info: #a9b4cb; --info-bg: #1f2940;
  --grid: #26304a; --shadow: 0 1px 0 rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.25);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f5f0; --bg2: #efece4; --card: #ffffff; --card2: #f3f1ea; --line: #d9d4c7;
    --text: #1a1d26; --muted: #4c5568; --faint: #646d80;
    --accent: #1e5fbf; --accent-ink: #ffffff; --star: #d98a00;
    --s1: #1f6fd0; --s2: #c9541a; --s3: #00806a;
    --good: #14752b; --good-bg: #dff3e3; --warn: #8a5a00; --warn-bg: #fbecc8;
    --bad: #b3261e; --bad-bg: #fbe1df; --info: #4c5568; --info-bg: #e9e6dd;
    --grid: #e3dfd3; --shadow: 0 1px 2px rgba(20,20,40,.06), 0 6px 18px rgba(20,20,40,.06);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f0; --bg2: #efece4; --card: #ffffff; --card2: #f3f1ea; --line: #d9d4c7;
  --text: #1a1d26; --muted: #4c5568; --faint: #646d80;
  --accent: #1e5fbf; --accent-ink: #ffffff; --star: #d98a00;
  --s1: #1f6fd0; --s2: #c9541a; --s3: #00806a;
  --good: #14752b; --good-bg: #dff3e3; --warn: #8a5a00; --warn-bg: #fbecc8;
  --bad: #b3261e; --bad-bg: #fbe1df; --info: #4c5568; --info-bg: #e9e6dd;
  --grid: #e3dfd3; --shadow: 0 1px 2px rgba(20,20,40,.06), 0 6px 18px rgba(20,20,40,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img, svg, canvas { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font: .88em var(--mono); background: var(--card2); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.small { font-size: .88rem; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }
.ic { width: 1em; height: 1em; vertical-align: -.14em; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; font: 600 1.1rem var(--serif); color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.top nav a:hover { color: var(--text); background: var(--card); }
.top nav a[aria-current] { color: var(--text); background: var(--card2); }
.themebtn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; flex: none; }
.themebtn:hover { color: var(--text); }
@media (max-width: 520px) {
  /* Three links fit beside the name on most phones; on the narrowest they drop to a second row. */
  .bar { gap: 4px; }
  .brand span { font-size: 1rem; }
  .top nav a { padding: 6px 7px; font-size: .92rem; }
}
@media (max-width: 370px) {
  .bar { flex-wrap: wrap; padding-top: 6px; }
  .top nav { order: 3; width: 100%; padding: 0 0 6px; }
  .top nav ul { margin-left: -7px; }
}

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--star) 14%, transparent), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.herogrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 56px 0 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--warn); margin-bottom: .6em; font-weight: 600; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.herodemo canvas { width: 100%; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); display: block; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font: 600 .95rem var(--sans); cursor: pointer; min-height: 44px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 860px) { .herogrid { grid-template-columns: 1fr; padding: 36px 0 28px; } }

.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat b { display: block; font: 600 2.1rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .statrow { grid-template-columns: repeat(2, 1fr); } }

.section { margin-top: 56px; }
.pagehead { padding: 44px 0 8px; }
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.two > * { min-width: 0; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .two, .cols3 { grid-template-columns: 1fr; } }
.explain h3 { margin-top: .2em; }
.explain > div { border-top: 2px solid var(--line); padding-top: 14px; }
.searchintro { margin-top: 24px; }
.searchintro h2 { margin-bottom: .6em; }
.prose p, .prose li { max-width: 70ch; }

.steps, .pipeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stepn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--star); color: #1a1408; font-weight: 700; margin-bottom: 10px; flex: none; }
.pipeline li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; position: relative; padding-bottom: 4px; }
.pipeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: -18px; width: 2px; background: var(--line); }
.pipeline h3 { margin-top: .15em; }
.pipeline .timing { color: var(--muted); margin-top: -.3em; }
.pipeline .substep .stepn { background: var(--card2); color: var(--text); border: 1px solid var(--line); font-size: .8rem; }
.stats3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 14px 0; }
.stats3 .stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; } .stats3 .stat b { display: block; font: 700 1.7rem var(--serif); } .stats3 .stat span { color: var(--muted); font-size: .92rem; }
.cols3.two-up { grid-template-columns: repeat(2, 1fr); } @media (max-width: 860px) { .cols3.two-up { grid-template-columns: 1fr; } }
.card.fixed { border-color: var(--good); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.2rem; }
.card > :last-child { margin-bottom: 0; }
.casecard { position: relative; display: flex; flex-direction: column; }
.casecard h3 { font-size: 1.3rem; margin-top: .6em; }
.casecard h3 a { color: var(--text); text-decoration: none; }
.casecard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.casecard:hover { border-color: var(--accent); }
.casecard[hidden] { display: none; }
.cardtop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kind { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.tally { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: auto; }
.tally span { display: inline-flex; gap: 4px; align-items: center; }
.t-pass .ic { color: var(--good); } .t-fail .ic { color: var(--bad); } .t-caveat .ic, .t-unmeasured .ic { color: var(--warn); }

.badge { display: inline-flex; align-items: center; gap: 5px; font: 600 .8rem var(--sans); padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.v-established.badge { background: var(--line); color: var(--text); }
.v-strong.badge, .v-survives.badge, .o-pass.badge { background: var(--good-bg); color: var(--good); }
.v-weak.badge, .v-lead.badge, .o-caveat.badge, .o-unmeasured.badge { background: var(--warn-bg); color: var(--warn); }
.v-convicted.badge, .o-fail.badge { background: var(--bad-bg); color: var(--bad); }
.o-info.badge { background: var(--info-bg); color: var(--info); }
.badge.meta { background: transparent; color: var(--muted); border-color: var(--line); }
.sources { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.sources li { display: grid; gap: 2px; } .sources .claim { color: var(--text); } .sources .src { font-size: .82rem; color: var(--muted); }
.callout { background: var(--card2); border: 1px solid var(--line); border-left: 4px solid var(--star); border-radius: 12px; padding: 20px; }
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 { font-size: 1.15rem; }
ul.plain { padding-left: 1.1em; margin: 0 0 1em; }
ul.plain li { margin-bottom: .5em; }

/* filters */
.filters { display: grid; gap: 10px; margin-bottom: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chiplabel { font-size: .85rem; color: var(--muted); min-width: 56px; }
.chip { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 500 .9rem var(--sans); cursor: pointer; min-height: 38px; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* case page */
.crumbs { font-size: .9rem; color: var(--muted); }
.aka { color: var(--muted); margin-top: -.4em; }
.codewhy { color: var(--muted); font-size: .95em; margin-top: -.4em; max-width: 72ch; }
.codewhy strong { color: var(--text); }
.catid { font-family: var(--sans); font-size: .55em; font-weight: 500; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
h3 .catid, h2 .catid { font-size: .72em; }
.statusline { display: inline-block; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); border-left: 4px solid var(--good); }
.statusline.v-lead, .statusline.v-weak { border-left-color: var(--warn); } .statusline.v-convicted { border-left-color: var(--bad); }
.caseintro { margin-top: 28px; }
.facts { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px; }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border: 0; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts .note, .facts .src, table.tests .note { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.facts .src { font-size: .78rem; color: var(--faint); overflow-wrap: anywhere; }
.vizgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.viz { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.viz figcaption h3 { margin-bottom: .2em; }
.viz figcaption p { font-size: .9rem; color: var(--muted); }
.plot { position: relative; }
.viz-sky .plot { max-width: 460px; margin-inline: auto; }
svg.chart { display: block; width: 100%; height: auto; font-family: var(--sans); touch-action: pan-y; }
.chart text { fill: var(--muted); font-size: 12.5px; }
.chart .axislabel { fill: var(--text); font-size: 12.5px; }
@media (max-width: 600px) { .chart text, .chart .axislabel { font-size: 14.5px; } }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis, .chart .tickmark { stroke: var(--faint); stroke-width: 1; }
.chart .zero { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .mark { stroke: var(--star); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .marklabel, .chart .facet { fill: var(--text); font-weight: 600; }
.chart .s1 { fill: var(--s1); stroke: var(--s1); } .chart .s2 { fill: var(--s2); stroke: var(--s2); } .chart .s3 { fill: var(--s3); stroke: var(--s3); }
.chart .pt { stroke: var(--card); stroke-width: .6; }
.chart .err { stroke-width: 1; opacity: .45; }
.chart .pt.hot { stroke: var(--text); stroke-width: 2; }
.chart .skybg { fill: var(--bg2); stroke: var(--line); }
.chart .pixgrid { stroke: var(--grid); stroke-width: 1; }
.chart .pixhi { fill: color-mix(in srgb, var(--star) 9%, transparent); stroke: color-mix(in srgb, var(--star) 55%, transparent); }
.chart .star { fill: var(--muted); stroke: var(--bg2); stroke-width: 1; }
.chart .star.target { fill: var(--star); } .chart .star.culprit { fill: var(--bad); }
.chart .ring { fill: none; stroke-width: 1.5; stroke: var(--star); } .chart .ring.culprit { stroke: var(--bad); }
.chart .starlabel { fill: var(--text); font-weight: 600; }
.chart .cen { stroke: var(--s1); stroke-width: 1.8; fill: none; }
.chart .flabel { fill: var(--text); font-size: 13px; } .chart .fnum { fill: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .ftrack { fill: var(--card2); } .chart .fbar { fill: var(--s1); }
.chart .nv-line { fill: none; stroke: var(--s1); stroke-width: 2; } .chart .nv-line2 { fill: none; stroke: var(--s2); stroke-width: 2; }
.legend { list-style: none; display: flex; gap: 6px 16px; flex-wrap: wrap; padding: 0; margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.swatch.s1 { background: var(--s1); } .swatch.s2 { background: var(--s2); } .swatch.s3 { background: var(--s3); }
.swatch.star-target { background: var(--star); } .swatch.star-culprit { background: var(--bad); } .swatch.star-neighbour { background: var(--muted); }
.swatch.dashline { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed var(--s2); }
.swatch.tiny { width: 5px; height: 5px; background: var(--faint); border-radius: 1px; }
.swatch.cross { background: none; color: var(--s1); font-weight: 700; width: auto; height: auto; line-height: 1; }
details.datatable { margin-top: 10px; font-size: .88rem; }
details.datatable .tablewrap { max-height: 420px; overflow-y: auto; }
details summary { cursor: pointer; color: var(--accent); padding: 6px 0; }
.tablewrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.data { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--card); }
table.data th, table.data td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { position: sticky; top: 0; background: var(--card2); z-index: 1; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.tests { min-width: 860px; } table.tests th[scope=row] { white-space: nowrap; }
table.matrix { min-width: 900px; } table.matrix td, table.matrix thead th { text-align: center; } table.matrix thead th { text-transform: none; letter-spacing: 0; font-size: .82rem; min-width: 84px; }
table.matrix th[scope=row] { position: sticky; left: 0; background: var(--card); white-space: nowrap; z-index: 1; }
table.matrix thead th:first-child { position: sticky; left: 0; z-index: 2; }
.cell { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-size: 1rem; }
.cell.o-pass { background: var(--good-bg); color: var(--good); } .cell.o-fail { background: var(--bad-bg); color: var(--bad); }
.cell.na { color: var(--faint); font-size: .7rem; }
.cell.o-caveat, .cell.o-unmeasured { background: var(--warn-bg); color: var(--warn); } .cell.o-info { background: var(--info-bg); color: var(--info); }
tr.superseded { color: var(--faint); } .tag { font-size: .75rem; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; white-space: nowrap; }
table.log { min-width: 820px; font-size: .84rem; }

.trial { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.trial li { overflow-wrap: break-word; }
.trial li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 12px; padding: 14px 18px; }
.trial li.o-fail { border-left-color: var(--bad); } .trial li.o-caveat, .trial li.o-unmeasured { border-left-color: var(--warn); } .trial li.o-info { border-left-color: var(--faint); }
.trialhead { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.trialhead h3 { margin: 0; }
.trial .q { color: var(--muted); font-size: .92rem; margin: .3em 0 .5em; }
.trial .impostor { color: var(--faint); }
.trial li > p:last-child { margin: 0; }
.related { list-style: none; padding: 0; display: grid; gap: 10px; }
.related li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.caseart { margin-top: 28px; }
.art { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.art img { display: block; width: 100%; height: auto; background: #060914; }
.art figcaption { font-size: .9rem; color: var(--muted); padding: 12px 16px 14px; }
.art figcaption strong { color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding: 8px 4px 2px; }
.links { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.links a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; min-height: 44px; }
.links a:hover { border-color: var(--accent); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--text); font: 600 1.1rem var(--serif); }
.pager a span { display: block; font: 400 .8rem var(--sans); color: var(--muted); }
.pager .next { text-align: right; grid-column: 2; }
.deflist { margin: 0; display: grid; gap: 12px; }
.deflist > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 600; } .deflist dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .deflist > div { grid-template-columns: 1fr; gap: 4px; } }

/* process */
.runs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.run h3 { font-size: 1.25rem; }
.run svg { margin: 8px 0 12px; }
.gateset { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 16px; margin-bottom: 10px; }
.gateset summary { font-weight: 600; color: var(--text); }
.gates { columns: 2 320px; padding-left: 1.4em; font-size: .92rem; } .gates li { break-inside: avoid; margin-bottom: 6px; }
.guide h2 { margin-top: 1.6em; } .guide h3 { margin-top: 1.2em; } .guide hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.guide table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 640px; }
.guide th, .guide td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide .tablewrap { max-height: none; margin-bottom: 1em; }
.guide li { margin-bottom: .45em; }

/* page contents */
.toc ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; counter-reset: toc; padding: 0; margin: 6px 0 0; }
.toc li { counter-increment: toc; }
.toc a { display: inline-flex; gap: 7px; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-size: .9rem; }
.toc a::before { content: counter(toc); color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { border-color: var(--accent); }
.swatch.sq { border-radius: 1px; }
.swatch.col { width: 6px; height: 14px; border-radius: 1px; } .swatch.col.short { height: 6px; align-self: flex-end; margin-bottom: 3px; }
.labctl .check { flex-wrap: nowrap; }
.swatch.okc { background: var(--good); } .swatch.noc { background: var(--bad); }
.mark { display: inline-block; width: 12px; height: 12px; box-sizing: border-box; font-weight: 700; line-height: 12px; text-align: center; }
.mark.ring { border: 2px solid var(--text); border-radius: 50%; }
.mark.diamond { border: 2px solid var(--bad); transform: rotate(45deg) scale(.82); }
.mark.plus { color: var(--s1); font-size: 17px; } .mark.x { color: var(--bad); font-size: 16px; }
.labctl input:disabled { opacity: .4; }
/* labs */
.lab { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 18px 0 26px; }
.lab > * { min-width: 0; }
.labview canvas { display: block; width: 100%; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 10px; }
.readout { font-size: .95rem; color: var(--text); margin: 4px 2px 0; min-height: 3.2em; }
.labctl { display: grid; gap: 6px; align-content: start; }
.labctl label { font-size: .92rem; font-weight: 600; margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.labctl output { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.labctl input[type=range] { width: 100%; accent-color: var(--accent); height: 32px; margin: 0; }
.labctl .check { justify-content: flex-start; font-weight: 400; align-items: center; }
.labctl .check input { width: 20px; height: 20px; accent-color: var(--accent); }
.labctl fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; margin: 6px 0 0; }
.labctl legend { font-size: .82rem; color: var(--muted); padding: 0 6px; }
.labbtns { margin-top: 10px; }
@media (max-width: 860px) { .lab { grid-template-columns: 1fr; padding: 14px; } }
.orbitlab canvas[data-orbit=wide] { cursor: grab; touch-action: pan-y; }
.orbitlab canvas[data-orbit=wide]:active { cursor: grabbing; }
.orbitlab canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.orbitlab .labbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 0; }
.orbitlab .orbitkey { flex-direction: column; gap: 6px; margin: 12px 0 4px; }
.orbitlab .orbitkey li { align-items: baseline; } .orbitlab .orbitkey .swatch { flex: none; }

.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .82rem; box-shadow: var(--shadow); max-width: 240px; line-height: 1.35; }
.tip b { display: block; }
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--bg2); padding: 32px 0 40px; }
.footgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footgrid { grid-template-columns: 1fr; gap: 8px; } }
@media print { .top, .foot, .lab, .themebtn { display: none; } body { background: #fff; color: #000; } }

a.path { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.glance .note { display: block; font-size: .85rem; color: var(--muted); }
.glance .g-when, .glance .g-n { white-space: nowrap; }
.glance .g-n .note { white-space: normal; }
.glance .g-word { display: none; }
@media (max-width: 720px) {
  /* On a phone the summary table becomes a list: one search per block, nothing to scroll sideways. */
  .tablewrap.glance { border: 0; border-radius: 0; overflow: visible; }
  .glance table, .glance tbody { display: block; background: none; }
  .glance thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .glance tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 14px 16px; margin-bottom: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
  .glance table.data th, .glance table.data td { display: block; padding: 0; border: 0; }
  .glance .g-when { order: 1; width: 100%; font-size: .82rem; color: var(--muted); }
  .glance .g-when .note { display: inline; font-size: inherit; } .glance .g-when .note::before { content: ", "; }
  .glance th[scope=row] { order: 2; width: 100%; font-size: 1.02rem; }
  .glance .g-result { order: 3; width: 100%; margin-top: 4px; }
  .glance .g-n { order: 4; margin-top: 6px; font-size: .85rem; color: var(--muted); white-space: normal; flex: 1 1 0; }
  .glance .g-n .note { display: inline; font-size: inherit; } .glance .g-n .note::before { content: " \00b7  "; }
  .glance .g-cases { order: 5; margin-top: 6px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
  .glance .g-word { display: inline; } .glance .g-none { display: none; }
}
}
.caselist li { padding: 10px 0; border-bottom: 1px solid var(--line); } .caselist li:last-child { border-bottom: 0; }
.caselist .badge { margin-right: 6px; }
h2.h3 { font-size: 1.1rem; margin-top: 0; }
.caselist { list-style: none; padding-left: 0; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door h2 { margin-top: 4px; } .door .cta { margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }
.chipselect { display: none; }
@media (max-width: 720px) {
  /* On a phone the four rows of filter buttons become four drop-downs in a 2 x 2 grid. */
  .filters { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .chips { display: block; }
  .chips .chip { display: none; }
  .chiplabel { display: block; margin-bottom: 4px; font-size: .8rem; }
  .chipselect { display: block; width: 100%; min-height: 44px; padding: 8px 32px 8px 12px; font: 500 .95rem var(--sans); color: var(--text);
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23808a9d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--line); border-radius: 10px; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
  .chipselect.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
}

/* TRICERATOPS false-positive panel (case pages) and chip (case cards) */
.tripanel { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--warn); border-radius: 14px; padding: 18px 22px; }
.tripanel.tone-good { border-left-color: var(--good); } .tripanel.tone-bad { border-left-color: var(--bad); }
.trihead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.trihead h2 { margin: 0; }
.badge.zone.tone-good { background: var(--good-bg); color: var(--good); }
.badge.zone.tone-warn { background: var(--warn-bg); color: var(--warn); }
.badge.zone.tone-bad { background: var(--bad-bg); color: var(--bad); }
.tristats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.tristats .stat { background: var(--card2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tristats .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.tristats .v { font: 700 1.9rem/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.tristats .d { font-size: .88rem; color: var(--muted); }
.tristrip { width: 100%; max-width: 560px; height: auto; display: block; margin: 8px 0 0; }
.tristrip .z-good { fill: var(--good-bg); } .tristrip .z-warn { fill: var(--warn-bg); } .tristrip .z-bad { fill: var(--bad-bg); }
.tristrip .lab { fill: var(--text); font: 600 13px var(--sans); }
.tristrip .ax, .tristrip .cut { fill: var(--muted); font: 12px var(--sans); }
.tristrip .tick { stroke: var(--faint); }
.tristrip .dot.raw { fill: none; stroke: var(--text); stroke-width: 2; }
.tristrip .dot.adj { fill: var(--accent); stroke: var(--card); stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.legend > span { white-space: nowrap; }
.legend > span:nth-last-child(-n+2) { white-space: normal; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.legend .dot.raw { border: 2px solid var(--text); } .legend .dot.adj { background: var(--accent); }
.tripanel .src { font-size: .78rem; color: var(--faint); overflow-wrap: anywhere; margin-bottom: 0; }
.trichip { display: inline-block; font: 600 .82rem var(--sans); padding: 4px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-variant-numeric: tabular-nums; }
.trichip.tone-good { background: var(--good-bg); color: var(--good); } .trichip.tone-bad { background: var(--bad-bg); color: var(--bad); }
.trichip abbr { text-decoration: none; }

.deflist.star .value { color: var(--text); display: block; }
.deflist.star .note { display: block; font-size: .85rem; margin-top: 2px; }
.deflist.star .src { display: block; font-size: .78rem; color: var(--faint); overflow-wrap: anywhere; margin-top: 2px; }
.hl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.hl h3 { margin: 12px 0 4px; font-size: 1.5rem; } .hl h3 a { color: var(--text); text-decoration: none; } .hl h3 a:hover { text-decoration: underline; }
.hl-head { color: var(--muted); font-size: 1.05rem; margin-top: 0; }
.hl-body { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px 32px; margin-top: 8px; }
.hl-body h3 { font: 700 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 6px; }
.hl-steps { list-style: none; padding: 0; margin: 0; } .hl-steps li { padding: 8px 0; border-top: 1px solid var(--line); } .hl-steps li:first-child { border-top: 0; padding-top: 0; }
.hl-steps p { margin: 4px 0 0; }
.who { display: inline-block; font: 600 .74rem var(--sans); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--text); white-space: nowrap; }
.who-amateur { background: var(--good-bg); color: var(--good); border-color: transparent; }
.who-data { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.when { font-size: .82rem; color: var(--muted); margin-left: 8px; }
@media (max-width: 760px) { .hl-body { grid-template-columns: 1fr; } .hl h3 { font-size: 1.3rem; } }
.cards + .small { margin-top: 16px; }

/* data sources page */
.ds-list { display: grid; gap: 16px; }
.ds .cardtop { justify-content: space-between; margin-bottom: 12px; }
.ds .cardtop h3 { margin: 0; font-size: 1.2rem; }
.ds .deflist > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ds .deflist ul.plain { margin: 0; }
.ds-roles { margin: 0; display: grid; gap: 10px; }
.ds-roles > div { display: grid; grid-template-columns: 175px 1fr; gap: 12px; align-items: start; }
.ds-roles dd { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 600px) { .ds-roles > div { grid-template-columns: 1fr; gap: 4px; } }
.ds-used { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.ds :target, .ds:target { scroll-margin-top: 80px; }
.ds:target { border-color: var(--accent); }

/* case numbers, follow-up note, verdict history (27 Nov 2026) */
.casenum { font: 600 .8rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); margin-right: .5rem; }
.followup { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--good)); border-radius: 8px; }
.followup h2 { font-size: 1rem; margin: 0 0 .3rem; }
.followup p, .followup ul { margin: .2rem 0; }
.followup li { overflow-wrap: anywhere; }   /* long file names in plans must wrap on phones */
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 1.2rem 0 0; }
.download .small { flex: 1 1 260px; min-width: 0; color: var(--muted); }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.history .when, .trichip .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.ainote { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 8px; }

/* case page structure: numbered sections, real pictures, transit player (27 Nov 2026) */
.casesummary { max-width: 72ch; margin-top: 8px; }
.casenav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.casenav a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-size: .9rem; }
.casenav a:hover { border-color: var(--accent); }
.casenav span, .secthead span { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 .8rem/1 var(--sans); }
.secthead { display: flex; align-items: center; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.secthead span { width: 1.5em; height: 1.5em; font-size: 1rem; }
.section > h3 { margin-top: 28px; }
.realpics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .realpics { grid-template-columns: 1fr; } }
.realpic { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.picbox { position: relative; aspect-ratio: 1; background: #060914; }
.picbox img, .picbox svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.picbox.pix img { image-rendering: pixelated; }
.picbox .mk { fill: none; stroke-width: .5; }
.picbox .mk-target { stroke: #7fdcff; stroke-width: .7; }
.picbox .mk-culprit { stroke: #ff6b6b; stroke-width: .7; }
.picbox .mk-neighbour { stroke: rgba(200,215,240,.55); }
.picbox .tesspx { fill: none; stroke: #f5c26b; stroke-width: .4; }
.picbox text { fill: #c9d2e6; font: 3px var(--sans); }
.picbox .compass line { stroke: #c9d2e6; stroke-width: .5; }
.picbox .compass text { text-anchor: middle; font-size: 3.2px; }
.realpic figcaption { font-size: .9rem; color: var(--muted); padding: 12px 16px 14px; }
.realpic figcaption strong { color: var(--text); }
.key-bad { color: var(--bad); font-weight: 600; }
.casemovie { margin-top: 16px; }
.casemovie video { display: block; width: 100%; height: auto; background: #0e1117; }
.realpics + .src, .casemovie + .src { font-size: .78rem; color: var(--faint); margin-top: 8px; overflow-wrap: anywhere; }
.seegrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.seegrid > * { min-width: 0; }
@media (max-width: 860px) { .seegrid { grid-template-columns: 1fr; } }
.seedata .vizgrid { grid-template-columns: 1fr; }
.animlab { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 8px; }
.animlab canvas { display: block; width: 100%; border-radius: 8px; }
.animlab canvas + canvas { margin-top: 8px; background: transparent; }
.animctl { display: flex; align-items: center; gap: 16px; margin: 10px 0; }
.animctl .readout { margin: 0; font: .85rem var(--mono); color: var(--muted); }
.orbitwrap { margin-top: 8px; }
#next .followup { margin-top: 0; }
#record > div { margin-top: 24px; }
.morecharts { margin-top: 16px; }
.morecharts > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.morecharts .vizgrid { margin-top: 12px; }

/* Highlights card: real pictures, case number and tier, the case's own numbers (27 Nov 2026) */
.hl2 { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; }

@media (max-width: 600px) { .hl2 { grid-template-columns: 1fr; } }
.hl-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-decoration: none; }
.hl-pics .picbox:first-child { grid-column: 1 / -1; }
.hl-pics .picbox { border-radius: 8px; overflow: hidden; }
.hl-pics .mk { stroke-width: 1.4; }
.hl-piccap { align-self: start; font-size: .78rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 600px) { .hl-pics { grid-template-columns: 1fr 1fr; } .hl-pics .picbox:first-child { grid-column: auto; } }
.hl2 h2 { margin: 10px 0 6px; }
.hl-why { margin: 0 0 12px; }
.hl-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; }
.hl-facts dt { font: 700 .7rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hl-facts dd { margin: 0; font-weight: 600; }
.hl-fpp { margin: 0; font-size: .95rem; }
.hl-fpp .k { color: var(--muted); }
.hl-next h3 { font: 700 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 6px; }
.hl2 .hl-more { grid-column: 1 / -1; margin: 0; align-self: end; justify-self: end; }

.hl-fpp .d { display: block; }
.hl-list:has(.hl2) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); }
.whymatters { max-width: 72ch; color: var(--muted); }
.whymatters strong { color: var(--text); }
.hl-fpp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; position: relative; }
.infotip { display: inline-block; }
.infotip > summary { list-style: none; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.infotip > summary::-webkit-details-marker { display: none; }
.infotip > summary:hover, .infotip[open] > summary { color: var(--accent); }
.infotip .tip { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .85rem; color: var(--muted); box-shadow: var(--shadow); }
.codename::before { content: "“"; } .codename::after { content: "”"; }
.hl-piccap > span { display: block; }
.hl-piccap > span + span { margin-top: 6px; }
.hl-piccap > span { white-space: nowrap; }

/* Learn: hub page, topic pages */
.l-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.l-steps li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; }
.l-steps h2 { margin: .5rem 0 .3rem; font-size: 1.1rem; }
.l-steps p { margin: 0 0 .6rem; font-size: .95rem; }
.l-steps p:last-child { margin: auto 0 0; }
.l-group { margin-top: 36px; }
.l-group > h2 { font-size: 1.3rem; margin-bottom: 12px; }
.l-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.l-cards a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.l-cards a:hover, .l-cards a:focus-visible { border-color: var(--accent); }
.l-cards b { color: var(--accent); font-size: 1.03rem; margin-bottom: 4px; }
.l-cards span { font-size: .93rem; color: var(--muted); }
.l-cards em { font-style: normal; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 10px; }
@media (max-width: 900px) { .l-steps, .l-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .l-steps, .l-cards { grid-template-columns: 1fr; } }
.crumbs { padding-top: 22px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--accent); }
.crumbs + .pagehead { padding-top: 8px; }
.learnnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; border-top: 1px solid var(--line); }
.learnnav a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; }
.learnnav a:hover { border-color: var(--accent); }
.learnnav b { color: var(--accent); font-weight: 600; }
.learnnav .next { text-align: right; }
@media (max-width: 600px) { .learnnav { grid-template-columns: 1fr; } .learnnav .next { text-align: left; } .learnnav > span { display: none; } }
.testcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .testcards { grid-template-columns: 1fr; } }
.testcards .card { padding: 16px 18px; scroll-margin-top: 80px; }
.testcards h3 { font-size: 1.08rem; margin: 0 0 4px; }
.testcards .tq { margin: 0 0 10px; color: var(--muted); }
.tc-dl { margin: 0 0 6px; display: grid; gap: 6px; }
.tc-dl dt { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tc-dl dd { margin: 0; }
.testcards details p { font-size: .93rem; }
.testcards .note { display: inline-block; font-size: .72rem; font-weight: 500; }
details.card.ds > summary { list-style: none; cursor: pointer; padding: 0; color: var(--text); }
details.card.ds > summary::-webkit-details-marker { display: none; }
details.card.ds > summary h3::after { content: " +"; color: var(--accent); font-weight: 400; }
details.card.ds[open] > summary h3::after { content: " −"; }
details.card.ds[open] > summary { margin-bottom: 10px; }
details.fold { margin-top: 8px; }

/* Full-list cards use the Highlights card (28 Nov 2026): the old whole-card link would cover the pictures and the ⓘ */
.hl2.casecard { display: grid; }
.hl2.casecard[hidden] { display: none; }
.hl2.casecard h3 a::after { content: none; }
.hl2 .tally { margin: 12px 0 0; font-size: .9rem; }

/* Case cards, 28 Nov 2026: code name and type across the top, pictures without captions */
.hl2 .hl-head { grid-column: 1 / -1; }
.hl2 .hl-head h3 { margin: 6px 0 0; }
.hl2 .hl-pics { grid-template-columns: 1fr; gap: 8px; }
.hl2 .hl-pics .picbox:first-child { grid-column: auto; }
@media (max-width: 600px) { .hl2 .hl-pics { grid-template-columns: 1fr 1fr; } }

/* Cases page: how "Most interesting" is worked out */
.order-rules li { margin-bottom: .5em; }
.order-table td { vertical-align: top; }

/* Predictions: "What we expect to see" table inside a case's follow-up box */
.expect { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.expect h3 { font-size: .98rem; margin: 0 0 .2rem; }
.expect > p.small { margin: 0 0 .5rem; }
.ptable { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.ptable td { overflow-wrap: anywhere; }   /* long file paths must not push a phone page sideways */
.ptable th { text-align: left; vertical-align: top; width: 8.5rem; font: 600 .78rem var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--card2); }
.ptable td { vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ptable tr:last-child th, .ptable tr:last-child td { border-bottom: 0; }
.ptable .p-when { font-weight: 600; color: var(--text); }
.ptable .p-claim { color: var(--text); }
.ptable .p-basis { display: block; margin-top: 4px; font-size: .85rem; }
.badge.ps-pending { background: var(--info-bg); color: var(--info); }
.badge.ps-due, .badge.ps-unmeasured { background: var(--warn-bg); color: var(--warn); }
.badge.ps-confirmed { background: var(--good-bg); color: var(--good); }
.badge.ps-missed { background: var(--bad-bg); color: var(--bad); }
.badge.ps-withdrawn { background: transparent; color: var(--muted); border-color: var(--line); }
@media (max-width: 520px) { .ptable th { width: 6rem; padding: 8px; } .ptable td { padding: 8px; } }

/* case page, plain-language layout (29 Nov 2026): what it is and how sure we are, at a glance,
   could it be something else, what happens next, and everything else in "Dig deeper" drawers on the same page. */
.casebar { position: fixed; top: 0; left: 0; right: 0; z-index: 12; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transform: translateY(-100%); visibility: hidden; transition: transform .2s, visibility .2s; }
.casebar.show { transform: none; visibility: visible; }
.casebar-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.casebar-name { font: 700 1.1rem var(--serif); color: var(--text); text-decoration: none; }
.casebar-links { margin-left: auto; display: flex; gap: 18px; overflow-x: auto; }
.casebar-links a { font-size: .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.casebar-links a:hover { color: var(--accent); }
@media (max-width: 640px) { .casebar-links { display: none; } }
@media (prefers-reduced-motion: reduce) { .casebar { transition: none; } }

.casehero { background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 0 40px; }
.casehero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.casehero-text { padding-top: 6px; }
.casehero .crumbs { padding-top: 18px; margin: 0 0 14px; }
.casename { margin: 4px 0 12px; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; }
.casename .codename::before, .casename .codename::after { content: none; }
.idtable { display: grid; grid-template-columns: repeat(5, auto); justify-content: start; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.idtable > div { padding: 8px 14px; border-left: 1px solid var(--line); }
.idtable > div:first-child { border-left: 0; }
.idtable dt { font: 700 .66rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.idtable dd { margin: 2px 0 0; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.idtable .catid { font-size: 1em; font-weight: 600; color: var(--text); }
.idtable small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.idtable .st { color: var(--good); }
.idtable .st.v-lead, .idtable .st.v-weak { color: var(--warn); } .idtable .st.v-convicted { color: var(--bad); }
.idtable .st small a { font-weight: 600; }
.idtable .searchcell small { white-space: normal; max-width: 30ch; } .idtable .searchcell small a { white-space: nowrap; }
.idtable .searchid { color: var(--text); text-decoration-color: var(--line); }
@media (max-width: 640px) { .idtable { grid-template-columns: 1fr 1fr; } .idtable > div:nth-child(odd) { border-left: 0; } .idtable > div:nth-child(n+3) { border-top: 1px solid var(--line); } .idtable dd { white-space: normal; } }
.casehero .codewhy { font-size: .88rem; margin: 0 0 14px; font-style: italic; color: var(--faint); }
.casehero .lede { font-size: 1.22rem; line-height: 1.45; color: var(--text); margin: 0 0 22px; max-width: 40ch; }
.ladder-q { font: 700 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ladder ol { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 0; margin: 0; }
.ladder li span { display: block; font-size: .74rem; line-height: 1.2; color: var(--faint); padding-top: 8px; border-top: 6px solid var(--line); }
.ladder li.past span { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.ladder li.on span { border-color: var(--good); color: var(--good); font-weight: 700; }
.ladder li.goal span { border-top-style: dotted; border-color: var(--faint); }
.ladder.out li.on span { border-color: var(--bad); color: var(--bad); }
.ladder.out li.goal span { opacity: .45; }
.ladder-text { font-size: .95rem; color: var(--muted); margin: 12px 0 0; max-width: 50ch; }
.casepic { margin: 0; background: #060914; border-radius: 16px; overflow: hidden; position: relative; }
.casepic .picswitch { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; margin: 12px 12px 10px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.casepic .picswitch[hidden] { display: none; }
.picswitch button { font: 500 .82rem var(--sans); color: #d5ddee; padding: 6px 12px; min-height: 32px; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.picswitch button[aria-pressed="true"] { background: #fff; color: #111; font-weight: 600; }
.picswitch button:focus-visible { outline-color: #7fdcff; }
.casepic figcaption { color: #c9d2e6; font-size: .84rem; padding: 10px 14px 12px; }
.casepic figcaption strong { color: #fff; }
.casepic .key-bad { color: #ff8a8a; }
.casepic .casemovie { margin: 0; padding: 0 12px; }
.casepic .casemovie video { border-radius: 10px; }
.casepic .casemovie figcaption { padding-left: 2px; padding-right: 2px; }
.js .casepic .picpanel:not(.on) { display: none; }
.casepic.art { background: var(--card); border: 1px solid var(--line); }
.casepic.art img { display: block; width: 100%; height: auto; background: #060914; }
.casepic.art figcaption { color: var(--muted); }
@media (max-width: 860px) { .casehero-grid { grid-template-columns: 1fr; gap: 24px; } .casehero .lede { max-width: none; } }
@media (max-width: 520px) { .ladder li span { font-size: .66rem; } }

.block { padding-top: 52px; }
.block > h2 { margin-bottom: 6px; }
.block > .intro { color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.glance-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.glance-tiles > div { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.glance-tiles dd { margin: 0; }
.glance-tiles dd:not(.note) { order: -1; font: 700 1.85rem var(--serif); line-height: 1.1; }
.glance-tiles dt { font-weight: 600; margin-top: 4px; }
.glance-tiles .note { color: var(--muted); margin-top: 4px; font-size: .84rem; }
@media (max-width: 860px) { .glance-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .glance-tiles dd:not(.note) { font-size: 1.5rem; } }

.question { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.question > summary { list-style: none; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; color: var(--text); }
.question > summary::-webkit-details-marker { display: none; }
.question[open] > summary { border-bottom: 1px solid var(--line); }
.qmark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--info-bg); color: var(--info); }
.m-pass .qmark { background: var(--good-bg); color: var(--good); }
.m-caveat .qmark { background: var(--warn-bg); color: var(--warn); }
.m-fail .qmark { background: var(--bad-bg); color: var(--bad); }
.qbody { min-width: 0; overflow-wrap: break-word; }
.qbody strong { display: block; font-size: 1.05rem; }
.qans { display: block; color: var(--muted); margin-top: 3px; font-size: .95rem; }
.qans b { color: var(--text); }
.qcount { text-align: right; color: var(--accent); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.qcount small { display: block; color: var(--faint); font-weight: 400; font-size: .78rem; }
.qcount::after { content: " ▾"; } .question[open] .qcount::after { content: " ▴"; }
.qtests { list-style: none; margin: 0; padding: 10px 18px 4px 72px; }
.qtests li { padding: 5px 0; font-size: .93rem; display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.qtests li:last-child { border: 0; }
.qmore { margin: 6px 0 14px 72px; font-size: .9rem; }
@media (max-width: 600px) { .question > summary { grid-template-columns: 36px minmax(0, 1fr); } .qcount { grid-column: 2; text-align: left; white-space: normal; } .qcount small { display: inline; margin-left: .4em; } .qtests { padding-left: 18px; } .qmore { margin-left: 18px; } }
.callout-mind { margin-top: 16px; padding: 16px 20px; border-radius: 14px; background: var(--info-bg); }
.callout-mind .k { font: 700 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.callout-mind p:last-child { margin: 6px 0 0; font-size: 1.02rem; }
.callout-mind.settled { background: var(--bad-bg); }

.timeline { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.timeline li { position: relative; padding: 22px 16px 0 0; border-top: 3px solid var(--accent); }
.timeline li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); }
.timeline li.goal { border-top-style: dotted; border-color: var(--faint); }
.timeline li.goal::before { background: var(--bg); border: 3px solid var(--faint); width: 9px; height: 9px; }
.timeline .when { display: block; margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.timeline .who { margin-top: 4px; }
.timeline p { margin: 8px 0 0; font-size: .93rem; color: var(--muted); }
@media (max-width: 600px) { .timeline { grid-template-columns: 1fr; } .timeline li { border-top: 0; border-left: 3px solid var(--accent); padding: 0 0 22px 20px; } .timeline li::before { left: -9px; top: 0; } .timeline li.goal { border-left-style: dotted; } }
.moreplan { margin-top: 22px; }
.moreplan > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.moreplan[open] > summary { margin-bottom: 12px; }
.moreplan .two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .moreplan .two { grid-template-columns: 1fr; } }

.deeper { padding-bottom: 48px; }
.deeptiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 860px) { .deeptiles { grid-template-columns: 1fr 1fr; } }
.deeptiles a { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--text); }
.deeptiles a:hover { border-color: var(--accent); }
.deeptiles a[aria-expanded="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.deeptiles b { display: block; }
.deeptiles b::after { content: " →"; color: var(--accent); }
.deeptiles a[aria-expanded="true"] b::after { content: " ↓"; }
.deeptiles span { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }
.drawer { margin-top: 16px; background: var(--card); border: 1px solid var(--accent); border-radius: 14px; padding: 18px 20px; scroll-margin-top: 64px; }
.js .drawer:not(.open) { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.drawer-head h3 { margin: 0 0 12px; font-size: 1.3rem; }
.drawer-close { font-size: .9rem; white-space: nowrap; }
.drawer h4 { font: 600 1.05rem var(--serif); margin: 22px 0 8px; }
.drawer .trial li { background: var(--bg2); }
.drawer .trialhead h4 { margin: 0; }
.drawer .facts, .drawer .tripanel { background: var(--bg2); }
.drawer > :last-child { margin-bottom: 0; }
[id] { scroll-margin-top: 64px; }

@media print {
  .casebar, .picswitch, .deeptiles, .drawer-close, .qmore { display: none !important; }
  .js .drawer, .js .casepic .picpanel { display: block !important; }
  .casehero { background: none; }
  .casehero-grid { grid-template-columns: 1fr; }
  .question, .drawer, .glance-tiles > div { break-inside: avoid; }
}
#glance .animlab, #glance .orbitwrap { margin-top: 16px; }
#glance .animlab h3, #glance .orbitwrap h3 { margin: 0 0 6px; }
.qtname small, .trialhead h4 small { display: block; font: 400 .85rem var(--sans); color: var(--muted); }

/* ---- Spot the planet (learn/spot-the-planet/) ---- */
.spot { display: grid; gap: 18px; }
.spotbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.spotprog { margin: 0; font-weight: 600; }
.spotdots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.spotdots li { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.spotdots li.now { border-color: var(--accent); }
.spotdots li.hit { background: var(--good); border-color: var(--good); }
.spotdots li.miss { background: var(--bad); border-color: var(--bad); }
.spotround { display: grid; gap: 14px; min-width: 0; }
.spothead h2 { margin-bottom: .15em; }
.spothead p { margin: 0; }
.spotviz { padding: 12px; }
.spotviz figcaption p { margin-bottom: 4px; }
.spotclues { display: grid; gap: 8px; }
.spotclues > p { margin: 0; }
.spotclue { border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.spotclue > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.spotclue[open] > summary { border-bottom: 1px solid var(--line); }
.spotclue .viz { border: 0; background: transparent; }
.spotguess { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spotguess p { margin: 0 6px 0 0; }
.spotbtn[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.spotbtn:disabled { cursor: default; }
.spotbtn:disabled:not([aria-pressed="true"]) { opacity: .55; }
.spotreveal { border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 12px; padding: 0 16px; }
.spotreveal > summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.spotreveal[open] { padding-bottom: 16px; }
.spotreveal.got { border-left-color: var(--good); }
.spotreveal.missed { border-left-color: var(--bad); }
.spotanswer:focus { outline: none; }
.spotanswer h3 { margin-top: .2em; }
.spotverdict { font-weight: 700; margin: 0; }
.spotverdict:empty { display: none; }
.spotreveal.got .spotverdict { color: var(--good); }
.spotreveal.missed .spotverdict { color: var(--bad); }
.spot-js .spotreveal:not(.shown) { display: none; }
.spot-js .spotreveal.shown > summary { display: none; }
.spot-js .spotreveal.shown { padding-top: 14px; }
.spotend .btn { margin: 4px 8px 4px 0; }
.spotfinal { font-size: 1.3rem; font-weight: 700; }
@media (max-width: 560px) {
  .spotguess p { flex-basis: 100%; }
  .spotguess .btn { flex: 1 1 40%; justify-content: center; }
  .spotviz { padding: 8px; }
  .card.spotround { padding: 14px; }
}
/* Cases page: possible planets and star systems side by side, short cards (29 Nov 2026) */
.casecols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 8px; }
@media (max-width: 800px) { .casecols { grid-template-columns: 1fr; gap: 12px; } }
.casegroup { margin: 12px 0 24px; scroll-margin-top: 80px; }
.casegroup h2 { display: flex; align-items: center; gap: .45em; font-size: 1.45rem; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 3px solid var(--star); }
.g-star-systems h2 { border-color: var(--s2); }
.casegroup h2 .n { font: 600 .9rem var(--sans); color: var(--muted); background: var(--card2); border: 1px solid var(--line); border-radius: 99px; padding: .1em .7em; }
.casegroup .gicon { width: 30px; height: 30px; flex: none; }
.caserows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.caserow { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: start; padding: 12px 14px; }
.caserow .row-pic { display: block; width: 88px; height: 88px; border-radius: 8px; overflow: hidden; }
.caserow .row-pic .mk { stroke-width: 1.4; }
.caserow .row-main { min-width: 0; }
.caserow .cardtop { gap: 8px; }
.caserow .cardtop .kind { font-size: .72rem; }
.caserow h3 { font-size: 1.1rem; margin: .3em 0 0; }
.caserow .row-why { font-size: .92rem; margin: .25em 0 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
  .caserow { grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 12px; }
  .caserow .row-pic { width: 72px; height: 72px; }
  .caserow .row-why { -webkit-line-clamp: 3; }
}
#casecount button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.filters .chips[hidden] { display: none; }   /* the Type filter: kept only so old ?kind= links work */
.spothinttext { margin: 0; padding: 10px 14px 12px; }
/* Order and Origin explained in an (i) next to their label (29 Nov 2026) */
.filters .chips { position: relative; }
.filters .chiplabel { display: inline-flex; align-items: center; gap: 2px; }
.filters .infotip .tip { right: auto; width: min(460px, calc(100vw - 32px)); max-width: none; }
.tipdefs { margin: 0; display: grid; gap: 8px; }
.tipdefs dt { font-weight: 600; color: var(--text); }
.tipdefs dd { margin: 0; }
@media (max-width: 720px) {
  .filters .chiplabel { display: flex; }
  .filters .chips[data-filter="origin"] .infotip .tip { left: auto; right: 0; }
}
/* Short cards: the catalogue id sits top right (29 Nov 2026) */
.caserow { position: relative; }
.caserow .row-id { position: absolute; top: 14px; right: 16px; font-size: .82rem; color: var(--faint); }
.caserow .row-main > :first-child { padding-right: 140px; }
@media (max-width: 600px) {
  .caserow .row-id { position: static; display: block; font-size: .78rem; }
  .caserow .row-main > :first-child { padding-right: 0; }
}
/* Short cards: interest score as a full-width bar, its number and an (i) (29 Nov 2026) */
.caserow .interest { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 600 .8rem/1 var(--sans); color: var(--muted); }
.caserow .interest .ibar { flex: 1 1 0; height: 6px; border-radius: 9px; background: var(--card2); border: 1px solid var(--line); overflow: hidden; }
.caserow .interest .ibar::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--star); }
.caserow .interest .infotip { position: relative; z-index: 2; display: inline-flex; align-items: center; }
.caserow .interest .infotip > summary { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; line-height: 0; color: var(--faint); }
.caserow .interest .infotip > summary svg { display: block; }
.caserow .interest .infotip .tip { left: auto; right: 0; width: min(300px, calc(100vw - 48px)); max-width: none; font: 400 .82rem/1.45 var(--sans); }
.caserow .interest .infotip .tip strong { color: var(--text); }
/* digits have no descenders, so their ink sits above the line box's middle: move them onto the bar's centre line */
.caserow .interest .num { position: relative; top: .16em; font-variant-numeric: tabular-nums; }
/* an open tip sits above the next card's (i) */
.caserow .interest .infotip[open] { z-index: 6; }


/* Cases page: 3D map of the cases around the Sun (static/starmap.js) */
.starmap { position: relative; margin: 16px 0 12px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(ellipse at center, var(--card2), var(--card) 70%); overflow: hidden; }
.starmap canvas { display: block; width: 100%; height: min(70vh, 620px); min-height: 360px; touch-action: none; cursor: grab; }
.starmap canvas:active { cursor: grabbing; }
.starmap canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.starmap:not(.sm-live) canvas, .starmap:not(.sm-live) .sm-tools { display: none; }
.sm-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.sm-tools .chip { min-width: 40px; min-height: 40px; padding: 6px 12px; }
.sm-legend { position: absolute; left: 12px; top: 10px; margin: 0; padding: 6px 10px; list-style: none; display: flex; flex-direction: column; gap: 4px; font: 500 .85rem var(--sans); color: var(--muted); background: color-mix(in srgb, var(--card) 80%, transparent); border-radius: 10px; pointer-events: none; }
.sm-legend li { display: flex; align-items: center; gap: 6px; }
.sm-legend .gicon { width: 18px; height: 18px; }
.sm-tip { position: absolute; margin: 0; padding: 4px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font: 500 .85rem var(--sans); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); }
.sm-card { position: absolute; left: 10px; right: 10px; bottom: 10px; max-width: 360px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sm-card p { margin: 0 0 4px; }
.sm-card .sm-name { font: 600 1.1rem var(--sans); padding-right: 36px; }
.sm-card .btn { margin-top: 8px; }
.sm-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 600px) {
  .starmap canvas { height: 72vh; min-height: 380px; }
  .sm-tools { top: auto; bottom: 10px; right: 10px; }
  .sm-card { bottom: 60px; }
  .sm-legend { font-size: .8rem; }
}
