/* C++ Pulse — tokens and components follow the Design canvas screens
   (Main, Standard, Feature, Paper, Mobile). Phone layout switches at 760px;
   the header collapses to icon buttons at 900px. */
:root {
  --ink: #17181c;
  --muted: #5b5e66;
  --bg: #f4f4f1;
  --surface: #ffffff;
  --line: #dddcd6;
  --band: #f6f6f3;
  --lang: #2a78d6;
  --lib: #d95926;
  --meta: #7a7872;
  --link: #1d5fb3;
  --accent: #b4451b;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --cond: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --pad: 64px;
  /* one hue per standard (the Atlas timeline) and the code-highlighting tokens */
  --s11: #57606d; --s11bg: #eceef1; --s14: #0e7569; --s14bg: #def0ed; --s17: #477024; --s17bg: #e8f0dd;
  --s20: #0062a8; --s20bg: #def0fb; --s23: #6b32c9; --s23bg: #efe9fb; --s26: #a85a00; --s26bg: #f7ecdc;
  --s29: #b91c48; --s29bg: #fae5ec;
  --ck: #cf222e; --ct: #953800; --cs: #0a3069; --cn: #0550ae; --cc: #6e7781; --cf: #8250df; --cm: #116329;
}
@media (max-width: 1100px) { :root { --pad: 32px; } }
@media (max-width: 760px) { :root { --pad: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg); }
main { flex: 1; min-width: 0; }
h1, h2, h3, p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--link); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.loading, .empty { padding-block: 48px; color: var(--muted); }
.only-phone { display: none; }

/* ── header ── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 12px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; margin: 0; }
.search label { font-size: 13px; color: var(--muted); }
.search input { width: clamp(180px, 22vw, 300px); height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 14px; }
.bar-btns { display: none; }
.bar-btns button { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1100px) { .search label { display: none; } .site-nav { gap: 18px; } .bar { gap: 20px; } }
@media (max-width: 900px) {
  .bar { height: auto; min-height: 56px; flex-wrap: wrap; gap: 0; padding-right: calc(var(--pad) - 8px); }
  .brand { font-size: 20px; }
  .bar-btns { display: flex; }
  .site-nav, .search { display: none; flex-basis: 100%; order: 3; }
  .site-header.nav-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .site-header.nav-open .site-nav a { min-height: 44px; display: flex; align-items: center; border-bottom: 0; border-top: 1px solid var(--line); padding: 0 2px; }
  .site-header.search-open .search { display: flex; padding-bottom: 12px; }
  .search input { width: 100%; flex: 1; }
}

/* ── shared bits ── */
.dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--meta); }
.dot.lang { background: var(--lang); }
.dot.lib { background: var(--lib); }
.dot.meta { background: var(--meta); }
.dot.hub { background: var(--ink); }
.dot.lg { width: 12px; height: 12px; }
.cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.mono { font-family: var(--mono); }
.h2 { font-family: var(--cond); font-weight: 700; font-size: 28px; }
.sub { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.textlink { font-size: 14px; color: var(--link); text-decoration: none; }
.textlink:hover { text-decoration: underline; }

.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.pill.kind { gap: 6px; padding-left: 8px; background: var(--surface); }
.pill.kind .dot { width: 9px; height: 9px; }
.pill.mono { font-family: var(--mono); }
.pill.ghost { flex: none; background: var(--surface); color: var(--muted); }
a.pill:hover { border-color: var(--ink); color: var(--ink); }

.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.solid { background: var(--surface); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.btn.primary:hover { background: #2c2e35; color: #ffffff; }
.btn.lg { height: 48px; padding: 0 20px; font-size: 15px; }
.btn.push { margin-left: auto; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #ffffff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.stds { gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; }
.chip[aria-pressed="false"] { background: transparent; color: var(--muted); text-decoration: line-through; text-decoration-color: #a9a8a2; }
.chip[aria-pressed="false"] .dot { opacity: 0.3; }
/* a single-choice group (All / one standard): the chosen chip is solid, the others plain */
.chips.single .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.chips.single .chip[aria-pressed="false"] { background: var(--surface); color: var(--ink); text-decoration: none; }
.filter { height: 44px; min-width: 240px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card.pad { padding: 16px; gap: 10px; }
.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 16px 12px 12px; }
.card-head h2 { font-family: var(--cond); font-weight: 700; font-size: 24px; }
.card-head h2 a { text-decoration: none; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 32px; align-items: start; }
.card-cols { columns: 3 380px; column-gap: 24px; }
.card-cols > .card { break-inside: avoid; margin-bottom: 24px; }

.row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row:hover, .prow:hover, .bar-row:hover { background: var(--band); color: var(--ink); }
.row-name { flex-grow: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.row-count { flex: none; width: 76px; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.prow { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; min-height: 48px; padding: 8px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.prow .pid, .acc-row .pid { font-family: var(--mono); font-size: 14px; }
.prow .pt { font-size: 15px; min-width: 0; }
.prow .pm { font-size: 13px; color: var(--muted); text-align: right; max-width: 260px; }
.more-btn, a.more-link { min-height: 52px; width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 500; color: var(--link); text-decoration: none; }
a.more-link { display: flex; align-items: center; padding: 0 16px; }
.more-btn:hover, a.more-link:hover { background: var(--band); }

/* ── page head (white band) ── */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head > .wrap { padding-block: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs .here { color: var(--ink); }
.title { font-family: var(--cond); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; }
.title.xl { font-size: 96px; line-height: 0.95; }
.title.lg { font-size: 72px; line-height: 0.98; }
.title.md { font-size: 56px; line-height: 1.02; letter-spacing: -0.015em; max-width: 1000px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.head-sub { font-size: 18px; color: var(--muted); }
.head-desc { font-size: 19px; line-height: 1.5; max-width: 820px; color: var(--muted); }
.head-desc code { color: var(--ink); }
.pills, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions.gap { gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.stats.tight { gap: 20px 40px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--cond); font-weight: 700; font-size: 40px; line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }
.paper-id { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--accent); }
@media (max-width: 760px) {
  .page-head > .wrap { padding-block: 24px; }
  .title.xl { font-size: 60px; }
  .title.lg { font-size: 40px; line-height: 1.02; letter-spacing: -0.01em; }
  .title.md { font-size: 32px; line-height: 1.08; letter-spacing: -0.01em; }
  .head-sub, .head-desc { font-size: 16px; }
  .stat b { font-size: 30px; }
  .btn.push { margin-left: 0; }
}

/* ── page body ── */
.body { padding-block: 36px 0; }
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-block: 36px 0; }
.col-main { flex: 1 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.col-main.tight { gap: 24px; }
.col-side { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.col-side.sticky { position: sticky; top: 24px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.toolbar .count { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-left: auto; }
@media (max-width: 760px) {
  .col-side { max-width: none; }
  .col-side.sticky { position: static; }
  .filter { min-width: 0; flex: 1; }
}

/* ── home ── */
.hero { padding-block: 56px 28px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.hero h1 { font-family: var(--cond); font-weight: 700; font-size: 64px; line-height: 1.02; letter-spacing: -0.015em; max-width: 1000px; text-wrap: balance; }
.lede { font-size: 20px; line-height: 1.5; max-width: 820px; color: var(--muted); text-wrap: pretty; }
.hero .stats { margin-top: 10px; }
.mapsec { padding-top: 8px; display: flex; flex-direction: column; gap: 14px; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.star { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.legend-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend .ln { width: 26px; height: 0; border-top: 2px solid #b9b7af; }
.legend .ln.star { border-top: 2px dashed #c9c7bf; }
.legend .sizes { gap: 6px; }
.legend .sizes i { display: inline-block; border-radius: 50%; background: #9a9890; }
.explain { padding-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; }
.explain div { display: flex; flex-direction: column; gap: 10px; }
.explain h3 { font-family: var(--cond); font-weight: 700; font-size: 24px; }
.explain p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.browse { padding-top: 72px; display: flex; flex-direction: column; gap: 20px; }
.browse-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.browse-head h2 { font-family: var(--cond); font-weight: 700; font-size: 36px; }
.browse-head a { font-size: 15px; color: var(--link); text-decoration: none; }
.std-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr)); gap: 16px; }
.std-cards.wide { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.std-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.std-card:hover { border-color: var(--ink); color: var(--ink); }
.std-card .name { font-family: var(--cond); font-weight: 700; font-size: 32px; line-height: 1; }
.std-card .span { font-size: 13px; color: var(--muted); }
.std-card .counts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin-top: 6px; }
.map-hint { font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  .only-phone { display: inline; }
  p.only-phone { display: block; }
  .not-phone { display: none !important; }
  .hero { padding-block: 20px 12px; gap: 10px; }
  .hero h1 { font-size: 30px; line-height: 1.05; letter-spacing: -0.01em; }
  .hero .phone-stats { font-size: 14px; line-height: 1.5; color: var(--muted); }
  .mapsec { padding-top: 0; gap: 12px; }
  .chips.stds { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none; }
  .chips.stds::-webkit-scrollbar { display: none; }
  .chips.stds .chip { flex: none; height: 36px; padding: 0 12px; border-radius: 18px; }
  .chips.stds .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
  .chips.stds .chip[aria-pressed="false"] { background: var(--surface); color: var(--ink); text-decoration: none; }
  .explain, .browse { padding-top: 48px; }
  .browse-head h2 { font-size: 28px; }
}

/* ── map ── */
.mapbox { position: relative; height: clamp(520px, 72vh, 760px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mapbox svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; }
.mapbox svg:active { cursor: grabbing; }
.band { fill: var(--band); }
.edge { stroke: #c9c7bf; stroke-width: 1.5px; fill: none; stroke-linecap: round; }
.edge.star { stroke: #cfcdc5; stroke-width: 1.2px; stroke-dasharray: 3 4; }
.edge.hi { stroke: var(--ink); stroke-width: 2px; }
.edge.dim { stroke-opacity: 0.25; }
.edge-hit { stroke: transparent; stroke-width: 12px; fill: none; }
.node { cursor: pointer; text-decoration: none; }
.node .mark { stroke: #ffffff; stroke-width: 2px; }
.node.lang .mark { fill: var(--lang); }
.node.lib .mark { fill: var(--lib); }
.node.meta .mark { fill: var(--meta); }
.node.hub .mark { fill: var(--ink); stroke-width: 3px; }
.node .hubt { fill: #ffffff; font-family: var(--cond); font-weight: 700; font-size: 14px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.node .label { font-size: 11.5px; fill: var(--ink); paint-order: stroke; stroke: #ffffff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.node .label.hidden { display: none; }
.node.dim { opacity: 0.2; }
.node.sel .mark { stroke: var(--ink); stroke-width: 3px; }
.node:focus { outline: none; }
.node:focus-visible .mark { stroke: var(--link); stroke-width: 3px; }
.map-cap { position: absolute; left: 16px; pointer-events: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.map-cap.top { top: 16px; }
.map-cap.bottom { bottom: 14px; }
.map-zoom { position: absolute; right: 12px; top: 12px; display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.map-zoom button { min-width: 36px; height: 36px; padding: 0 10px; border: 0; background: transparent; font-size: 14px; font-weight: 500; }
.map-zoom button + button { border-left: 1px solid var(--line); }
.map-zoom button:hover { background: var(--band); }
.map-step { position: absolute; top: 8px; display: none; align-items: center; height: 44px; padding: 0 10px; border: 0; background: transparent; font-size: 13px; font-weight: 500; color: var(--muted); }
.map-step.prev { left: 8px; }
.map-step.next { right: 8px; }
.map-card { position: absolute; right: 12px; top: 60px; z-index: 4; width: 300px; max-width: calc(100% - 24px); display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(23, 24, 28, 0.12); }
.map-card-t { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.3; }
.map-card-t .dot { margin-top: 5px; }
.map-card-t b { flex: 1; min-width: 0; font-weight: 600; }
.map-card-x { flex: none; width: 32px; height: 32px; margin: -8px -8px 0 0; border: 0; border-radius: 6px; background: transparent; font-size: 20px; line-height: 1; color: var(--muted); }
.map-card-x:hover { background: var(--band); color: var(--ink); }
.map-card-m { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.map-card p { font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.map-card .btn { align-self: flex-start; }
.tip { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--ink); color: #ffffff; padding: 6px 9px; border-radius: 6px; font-size: 12px; line-height: 1.35; max-width: 280px; z-index: 5; opacity: 0; transition: opacity 0.12s; }
.tip b { font-weight: 600; }
.tip .tsub { opacity: 0.75; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }
@media (max-width: 760px) {
  .mapbox { height: 536px; touch-action: pan-y; }
  .mapbox svg { cursor: default; touch-action: pan-y; }
  .map-zoom, .map-cap { display: none; }
  .map-step { display: inline-flex; }
  .map-card { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-width: none; }
  .map-card-x { width: 44px; height: 44px; margin: -12px -12px 0 0; }
}

/* ── feature page ── */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.conn { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.conn:hover { border-color: var(--ink); color: var(--ink); }
.conn-t { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.conn-t .std { margin-left: auto; padding-left: 8px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.conn-why { font-size: 14px; color: var(--muted); line-height: 1.45; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-item.open { background: var(--bg); }
.acc-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: start; width: 100%; min-height: 56px; padding: 12px 16px; border: 0; background: transparent; text-align: left; }
.acc-row:hover { background: var(--band); }
.acc-item.open .acc-row:hover { background: transparent; }
.acc-row .pid { font-weight: 500; padding-top: 2px; }
.acc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc-t .t { font-size: 15px; font-weight: 500; line-height: 1.35; }
.acc-item.open .acc-t .t { font-size: 16px; font-weight: 600; }
.acc-t .m { font-size: 13px; color: var(--muted); }
.acc-row .sign { font-size: 18px; color: var(--muted); line-height: 1; }
.acc-body { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 18px 126px; }
.acc-body p { font-size: 15px; line-height: 1.55; }
.hood { width: 100%; max-width: 360px; height: auto; display: block; background: var(--bg); border-radius: 8px; }
.hood-wrap { position: relative; max-width: 360px; }
.hood line { stroke: #b9b7af; stroke-width: 2; stroke-linecap: round; }
.hood line.star { stroke-dasharray: 3 4; stroke-width: 1.5; }
.hood line.hit { stroke: transparent; stroke-width: 16; stroke-dasharray: none; cursor: help; }
.hood .why:hover line:not(.hit) { stroke: var(--ink); }
.hood text { font-family: var(--sans); font-size: 12px; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.hood text.self { font-size: 13px; font-weight: 600; pointer-events: none; }
.hood a:hover text { fill: var(--link); }
.side-h { font-family: var(--cond); font-weight: 700; font-size: 20px; }
.side-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.side-list a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.side-list a .std { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
  .acc-row { grid-template-columns: 1fr auto; gap: 4px 14px; }
  .acc-row .pid { grid-column: 1 / -1; padding-top: 0; }
  .acc-body { padding-left: 16px; }
  .prow { grid-template-columns: 84px 1fr; gap: 10px; padding-inline: 12px; }
  .prow .pm { display: none; }
}

/* ── paper page ── */
.summary { font-size: 20px; line-height: 1.55; max-width: 820px; }
.part { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-decoration: none; color: var(--ink); }
.part:hover { border-color: var(--ink); color: var(--ink); }
.part-name { display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 700; font-size: 24px; line-height: 1.15; }
.part p, .side-text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.side-text b { color: var(--ink); }

/* ── standard page ── */
.bar-row { display: grid; grid-template-columns: 112px 1fr 36px; align-items: center; gap: 10px; min-height: 36px; padding: 2px 6px; margin-inline: -6px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.bar-row .where { display: flex; flex-direction: column; }
.bar-row .where b { font-size: 14px; font-weight: 500; }
.bar-row .where span { font-size: 12px; color: var(--muted); }
.bar-row .bar { height: 12px; border-radius: 3px; background: var(--ink); min-width: 2px; }
.bar-row .n { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }
.plen { padding: 16px 16px 20px; gap: 14px; }
.plen p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ── papers index ── */
.pgroup { margin-bottom: 16px; }
.pgroup-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px 12px; }
.pgroup-head a { font-family: var(--cond); font-weight: 700; font-size: 20px; text-decoration: none; }

/* ── atlas ── */
.toolbar .legend { gap: 6px 14px; font-size: 13px; color: var(--muted); }
.sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip .sdot { margin-right: -2px; }
.atlas-cat { margin-top: 28px; }
.atlas-cat:first-child { margin-top: 0; }
.cat-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.cat-head h2 { font-family: var(--cond); font-weight: 700; font-size: 24px; }
.cat-head .rule { flex: 1; border-top: 1px solid var(--line); }
.conn.topic .conn-t { font-size: 16px; }
.dots { display: flex; gap: 6px; margin-top: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.drills ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
.timeline { margin: 6px 0 0 6px; padding-left: 26px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.entry { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 16px; }
.entry::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sdot); border: 2px solid var(--bg); }
.ehead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { font-family: var(--mono); font-size: 12px; font-weight: 500; border-radius: 6px; padding: 2px 8px; color: var(--sdot); background: var(--sbg); text-decoration: none; }
.badge:hover { color: var(--sdot); text-decoration: underline; }
.spec-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s29); border: 1px dashed var(--s29); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.note { max-width: 72ch; font-size: 15px; line-height: 1.55; }
.note code { overflow-wrap: anywhere; }
pre.code { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; }
pre.code code { display: block; font-family: var(--mono); font-size: 13px; line-height: 1.55; white-space: pre; color: var(--ink); }
.hljs-keyword, .hljs-literal { color: var(--ck); }
.hljs-type, .hljs-built_in { color: var(--ct); }
.hljs-string, .hljs-char.escape_ { color: var(--cs); }
.hljs-number { color: var(--cn); }
.hljs-comment { color: var(--cc); font-style: italic; }
.hljs-title, .hljs-title.function_, .hljs-title.class_ { color: var(--cf); }
.hljs-meta, .hljs-meta .hljs-keyword { color: var(--cm); }
.pagenav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.pagenav a { font-size: 14px; font-weight: 500; text-decoration: none; }
.pagenav .lbl { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.side-list .here { font-weight: 600; }
.row .sub { flex: none; }
@media (max-width: 760px) {
  .timeline { margin-left: 2px; padding-left: 18px; }
  .entry::before { left: -25px; }
}

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; }
.foot { padding-block: 32px 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-about { display: flex; flex-direction: column; gap: 6px; max-width: 640px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.foot-brand { font-family: var(--cond); font-weight: 700; font-size: 18px; color: var(--ink); }
.foot-tag { color: var(--ink); }
