/* MMP Integrations: "route map" identity. White paper, magenta MMP lines, sky-blue network stations,
   Outfit for text, Sometype Mono for labels and data. Light mode only. */
:root {
  --paper: #ffffff;
  --paper-2: #f6f7fa;
  --ink: #181a26;
  --ink-2: #3d4152;
  --muted: #6b7083;
  --rail: #dfe3ec;
  --line: #e6e8ef;
  --magenta: #c2185b;
  --magenta-soft: #fbe9f0;
  --sky: #0277bd;
  --sky-soft: #e6f2fa;
  --amber: #b26a00;
  --mono: "Sometype Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.mono, .kicker { font-family: var(--mono); }

/* ---------- header ---------- */
header.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
nav.tabs a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-bottom: 2px solid transparent; }
nav.tabs a:hover { color: var(--magenta); }
nav.tabs a[aria-current="page"] { color: var(--magenta); border-bottom-color: var(--magenta); }

/* ---------- hero ---------- */
.hero { padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.crumb { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.crumb a { color: var(--muted); }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 700; }
h1 em { font-style: normal; color: var(--magenta); }
.lede { font-size: 19px; color: var(--ink-2); margin: 0 0 20px; max-width: 640px; }
.answer { position: relative; border-left: 3px solid var(--magenta); padding: 4px 0 4px 20px; margin: 8px 0 0; max-width: 720px; }
.answer::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 3px solid var(--magenta); }
.answer .lbl { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--magenta); margin-bottom: 4px; }
.answer p { margin: 0; }
.hero-map { width: 100%; height: auto; display: block; }

/* ---------- sections as stops on a line ---------- */
.stop { padding: 36px 0 8px; }
.stop > .wrap { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 18px; }
.stop .rail { position: relative; }
.stop .rail::before { content: ""; position: absolute; left: 15px; top: 0; bottom: -44px; width: 4px; background: var(--rail); border-radius: 2px; }
.stop:last-of-type .rail::before { bottom: 0; }
.stop .rail i { position: absolute; left: 6px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--magenta); }
.stop.sky .rail i { border-color: var(--sky); }
.stop .body { min-width: 0; }
.stop h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.2; letter-spacing: -.015em; margin: 4px 0 6px; }
.stop .kicker { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.note { color: var(--muted); font-size: 14.5px; }
h3 { font-size: 19px; margin: 26px 0 8px; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 38px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { font-size: 15px; }
ul.facts { padding-left: 20px; max-width: 760px; }
ul.facts li { margin: 6px 0; color: var(--ink-2); }
.verdict { border-top: 2px solid var(--sky); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 24px 0; }

/* ---------- status marks (station dots) ---------- */
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; flex: none; }
.dot.y { background: var(--magenta); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--magenta); width: 13px; height: 13px; margin: 1.5px; }
.dot.l { background: linear-gradient(90deg, var(--magenta) 50%, var(--paper) 50%); border: 2.5px solid var(--magenta); }
.dot.n { width: 14px; height: 4px; border-radius: 2px; background: #c3c7d3; vertical-align: 3px; }
.dot.nc { border: 2px dashed var(--amber); background: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin: 0 0 14px; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.st { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* ---------- matrix: networks x MMPs ---------- */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); max-width: 100%; }
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14.5px; }
.matrix th, .matrix td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; background: var(--paper); }
.matrix thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); vertical-align: bottom; background: var(--paper-2); }
.matrix tr > :first-child { position: sticky; left: 0; z-index: 2; min-width: 168px; max-width: 200px; font-weight: 600; box-shadow: 1px 0 0 var(--line), 8px 0 12px -8px rgba(24, 26, 38, .16); }
.matrix thead tr > :first-child { z-index: 3; background: var(--paper-2); }
.matrix tbody tr:hover > * { background: #fcf6f9; }
.matrix tr:last-child > * { border-bottom: 0; }
.grid-m td { text-align: center; min-width: 74px; }
.grid-m thead th.mmp { text-align: center; min-width: 74px; }
.grid-m thead th.mmp img { display: block; margin: 0 auto 6px; border-radius: 4px; }
.grid-m td a { display: inline-flex; padding: 6px; border-radius: 50%; }
.grid-m td a:hover { background: var(--magenta-soft); }
.grid-m tfoot td, .grid-m tfoot th { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 0; }
.netname { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.netname::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--sky); flex: none; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--sky); border: 1px solid #b6d6ea; padding: 1px 6px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; }
.tag.click { color: var(--ink-2); border-color: var(--rail); }
.matrix.kv td { min-width: 150px; }
.matrix.kv td.src { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.matrix.kv td.nt { color: var(--ink-2); font-size: 14px; min-width: 260px; }
.vh { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.vh img { border-radius: 4px; }

/* ---------- hub-and-arcs diagram ---------- */
.hub { width: 100%; max-width: 760px; height: auto; display: block; margin: 6px 0 4px; }
.hub text { font-family: var(--mono); font-size: 13px; fill: var(--ink-2); }
.hub .nw { font-family: var(--sans); font-size: 17px; font-weight: 600; fill: var(--ink); }

/* ---------- stack check tool ---------- */
.sc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.sc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sc legend { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.sc .nets { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; border-top: 1px solid var(--line); }
.sc label { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15.5px; }
.sc input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 50%; border: 3px solid var(--sky); background: var(--paper); flex: none; cursor: pointer; }
.sc input[type=checkbox]:checked { background: var(--sky); box-shadow: inset 0 0 0 3px var(--paper); }
.sc input[type=checkbox]:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.sc .actions { display: flex; gap: 14px; margin-top: 12px; font-family: var(--mono); font-size: 13px; }
.sc .actions button { font: inherit; background: none; border: 0; padding: 0; color: var(--sky); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sc .out { border: 1px solid var(--line); border-top: 4px solid var(--magenta); border-radius: 4px; padding: 18px 20px; min-width: 0; }
.sc .out h3 { margin: 0 0 4px; font-size: 18px; }
.sc .out .group { margin-top: 16px; }
.sc .out .group > b { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 500; }
.sc ol { list-style: none; margin: 6px 0 0; padding: 0; }
.sc ol li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.sc ol li:last-child { border-bottom: 0; }
.sc .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc .row .vh { font-weight: 600; }
.sc .row .cov { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-left: auto; }
.sc .line { display: flex; align-items: center; gap: 0; margin: 6px 0 2px; }
.sc .line span { position: relative; flex: 1; height: 4px; background: var(--magenta); }
.sc .line span.n, .sc .line span.nc { background: var(--rail); }
.sc .line span::after { content: ""; position: absolute; right: -6px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--magenta); z-index: 1; }
.sc .line span.l::after { background: linear-gradient(90deg, var(--magenta) 50%, var(--paper) 50%); }
.sc .line span.n::after { border-color: #b7bccb; }
.sc .line span.nc::after { border: 2px dashed var(--amber); }
.sc .line span.y::after { background: var(--magenta); }
.sc .gaps { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.sc .empty { color: var(--muted); margin: 8px 0 0; }

/* ---------- index lists ---------- */
ul.routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
ul.routes li { border-bottom: 1px solid var(--line); }
ul.routes a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 14px 4px; text-decoration: none; color: var(--ink); align-items: center; }
ul.routes a:hover { background: #fcf6f9; }
ul.routes b { font-size: 17.5px; font-weight: 600; }
ul.routes span.d { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
ul.routes .mini { display: inline-flex; gap: 5px; align-items: center; }
ul.routes .mini i { width: 9px; height: 9px; border-radius: 50%; background: var(--rail); }
ul.routes .mini i.y { background: var(--magenta); }
ul.routes .mini i.l { background: linear-gradient(90deg, var(--magenta) 50%, var(--rail) 50%); }
ul.routes .mini i.nc { background: var(--paper); border: 1.5px dashed var(--amber); }
ul.routes .cnt { font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
ul.srcs { padding-left: 20px; font-size: 15px; }
ul.srcs li { margin: 5px 0; overflow-wrap: anywhere; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 30px 14px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-family: var(--mono); font-size: 20px; color: var(--magenta); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

/* ---------- footer ---------- */
footer.site { margin-top: 56px; border-top: 4px solid var(--magenta); background: var(--paper-2); padding: 36px 0 44px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; font-weight: 500; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 5px 0; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--magenta); text-decoration: underline; }
footer p { color: var(--ink-2); margin: 10px 0 0; }

@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; gap: 20px; }
  .sc { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .stop > .wrap { grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; }
  .stop .rail::before { left: 9px; width: 3px; }
  .stop .rail i { left: 2px; width: 17px; height: 17px; border-width: 3px; }
  .sc .nets { grid-template-columns: 1fr; }
  .matrix tr > :first-child { min-width: 128px; max-width: 140px; }
  footer .cols { grid-template-columns: 1fr; }
  nav.tabs a { padding: 6px 7px; font-size: 12px; }
  .hide-sm { display: none; }
  .lede { font-size: 17px; }
}
