/* multiplayer.tech: SR-71 Blackbird avionics design system.
   Palette sampled from the pixel SR-71: night panel (#1e1e1e) so the jet sits
   directly on the page, recessed instrument bezels, titanium airframe, engraved
   placard white, and afterburner orange reserved for primary actions. */

@font-face { font-family: "B612"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/b612-400.woff2") format("woff2"); }
@font-face { font-family: "B612"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/fonts/b612-400-italic.woff2") format("woff2"); }
@font-face { font-family: "B612"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/b612-700.woff2") format("woff2"); }
@font-face { font-family: "B612 Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/b612-mono-400.woff2") format("woff2"); }
@font-face { font-family: "B612 Mono"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/b612-mono-700.woff2") format("woff2"); }

:root {
  --panel: #1e1e1e;          /* exact match for the SR-71 art background */
  --panel-deep: #141518;     /* recessed instrument surfaces & code wells */
  --panel-elev: #24262b;     /* elevated controls & headers */
  --rule: #32363e;           /* machined panel seams */
  --rule-strong: #484e5a;    /* active / hover seams */
  --placard: #e6e9ef;        /* engraved legend white */
  --placard-soft: #cfd5df;   /* body reading tone */
  --muted: #949eae;          /* secondary annotations */
  --titanium: #8f9cb0;       /* airframe accent */
  --titanium-lit: #c2d0e4;   /* highlighted titanium */
  --burner: #f28c3a;         /* afterburner: primary action */
  --burner-hot: #ffc37a;
  --burner-bg: rgba(242, 140, 58, 0.1);
  --ok: #7be08a;             /* live status lamp */
  --ok-bg: rgba(123, 224, 138, 0.1);
  --ok-border: #2c6637;
  --focus: #ffd08f;

  --measure: 100%;
  --step--2: 0.78rem;
  --step--1: 0.885rem;
  --step-0: 1.03rem;
  --step-1: 1.24rem;
  --step-2: 1.65rem;
  --step-3: 2.45rem;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--panel);
  color: var(--placard);
  font-family: "B612", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
html, body { overflow-x: clip; }
a {
  color: var(--placard);
  text-decoration-color: var(--titanium);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 120ms ease, text-decoration-color 120ms ease, border-color 120ms ease;
}
a:hover { color: #fff; text-decoration-color: var(--burner); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
code, pre, kbd { font-family: "B612 Mono", ui-monospace, monospace; font-size: 0.89em; }

/* Tactile mechanical keycaps */
kbd {
  display: inline-block;
  padding: 0.08em 0.42em 0.12em;
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.35;
  color: var(--placard);
  background: var(--panel-elev);
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  vertical-align: 0.04em;
}

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* -------------------------------------------------------------------------
   Masthead (unified across /, /start/, /downloads/, /blackbird/*, /account/)
   ------------------------------------------------------------------------- */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
.masthead .home {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--placard);
}
.masthead .home img { width: 2.6rem; height: 2.6rem; image-rendering: pixelated; }
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.15rem;
  font-size: var(--step--1);
}
.masthead nav a {
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.masthead nav a:hover { color: var(--placard); }
.masthead nav a[aria-current="page"] {
  color: var(--placard);
  font-weight: 700;
  border-bottom-color: var(--burner);
}
.masthead nav a.nav-cta {
  padding: 0.32rem 0.72rem;
  border: 1px solid #8a4a17;
  border-radius: 4px;
  background: var(--burner-bg);
  color: var(--burner-hot);
  font-weight: 700;
}
.masthead nav a.nav-cta:hover {
  background: var(--burner);
  color: #241204;
  border-color: var(--burner);
}

/* -------------------------------------------------------------------------
   Landing Hero & Cockpit Flight Display
   ------------------------------------------------------------------------- */
.hero { padding-block: 2.75rem 0.5rem; }
.flight {
  --w: min(max(100%, 100vw - 3rem), 72rem, (100svh - 16rem) * 16 / 9);
  width: var(--w);
  margin: 2rem 0 0 calc((100% - var(--w)) / 2);
}
.flight .art { margin-inline: auto; width: min(100%, 35rem); image-rendering: pixelated; display: block; }
.display.live {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #0d0d0d;
  padding: 0.6rem;
  box-shadow: inset 0 1px 0 #2b2b2b, 0 0 0 1px #111;
}
.display canvas { display: block; width: 100%; height: auto; border-radius: 3px; background: #000; cursor: crosshair; }
.softkeys { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.softkeys button {
  flex: 0 1 auto;
  font: 0.75rem/1 "B612 Mono", ui-monospace, monospace;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.5rem 0.55rem;
  cursor: pointer;
}
.softkeys button:hover { color: var(--placard); border-color: var(--rule-strong); }
.softkeys button[aria-pressed="true"] { color: var(--placard); border-color: var(--titanium); }
.softkeys .theme { flex-grow: 1; text-align: left; }
.softkeys kbd { font-size: 0.7rem; padding: 0 0.3em; margin-left: 0.35em; border-bottom-width: 1px; box-shadow: none; }
.softkeys .pause[aria-pressed="true"] { color: var(--burner-hot); border-color: #8a4a17; }
.flight figcaption { color: var(--muted); font-size: var(--step--1); line-height: 1.5; margin: 0.75rem auto 0; max-width: 68rem; }
@media (prefers-reduced-motion: no-preference) {
  .flight .art { animation: fly-in 1.1s cubic-bezier(0.16, 0.8, 0.24, 1) 0.15s both; }
}
@keyframes fly-in {
  from { transform: translate(-3rem, 1.25rem); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* -------------------------------------------------------------------------
   Typography & Editorial Hierarchy
   ------------------------------------------------------------------------- */
h1 {
  font-size: var(--step-3);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--placard-soft); margin: 0; max-width: 58ch; }
h2 {
  font-size: var(--step-2);
  line-height: 1.22;
  margin: 2.5rem 0 0.8rem;
  letter-spacing: -0.01em;
}
h3 { font-size: 1.08rem; line-height: 1.35; margin: 1.65rem 0 0.45rem; color: var(--placard); }
p { margin: 0 0 1rem; color: var(--placard-soft); }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.35rem; color: var(--placard-soft); }
li { margin-bottom: 0.4rem; }
li strong { color: var(--placard); }
.note { color: var(--muted); font-size: var(--step--1); }
section { padding-block: 0.5rem; }

/* Page Header Banner (gives every off-landing page strong cockpit identity) */
.page { padding-block: 2.5rem 1rem; }
.page-head {
  padding-bottom: 1.6rem;
  margin-bottom: 1.85rem;
  border-bottom: 1px solid var(--rule);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--titanium-lit);
}
.kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--burner);
  box-shadow: 0 0 8px rgba(242, 140, 58, 0.55);
}
.kicker.live::before {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(123, 224, 138, 0.55);
}
.head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

/* Engraved Mono Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--titanium-lit);
  background: var(--panel-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.pill-live {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok-border);
}
.pill-burner {
  color: var(--burner-hot);
  background: var(--burner-bg);
  border-color: #8a4a17;
}

/* -------------------------------------------------------------------------
   Grids, Instrument Cards, Steps & Disclosures
   ------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.card {
  min-width: 0;
  padding: 1.35rem 1.45rem;
  background: var(--panel-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.7rem;
}
.card-head h3 { margin: 0; }
.card > h2:first-child,
.card > h3:first-child { margin-top: 0; }
.card > p:last-child,
.card > ul:last-child { margin-bottom: 0; }
.card-accent { border-top: 2px solid var(--burner); }
.card-titanium { border-top: 2px solid var(--titanium); }

.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem;
  background: var(--panel-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.card-link:hover {
  border-color: var(--titanium);
  background: #191b1f;
  transform: translateY(-1px);
}
.card-link .card-num {
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--titanium);
  text-transform: uppercase;
}
.card-link .card-title {
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--placard);
}
.card-link:hover .card-title { color: var(--burner-hot); }
.card-link .card-desc {
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--muted);
}

/* Preflight Step List */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
  padding: 1.35rem 1.45rem;
  background: var(--panel-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--burner-hot);
  background: var(--burner-bg);
  border: 1px solid #8a4a17;
  border-radius: 5px;
}
.step-body { min-width: 0; }
.step-body > h2:first-child,
.step-body > h3:first-child { margin-top: 0.1rem; }
.step-body > :last-child { margin-bottom: 0; }

/* Zero-JS Collapsible Disclosure */
details.disclosure {
  margin-top: 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--panel);
}
details.disclosure summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--titanium-lit);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after {
  content: "+";
  font-family: "B612 Mono", ui-monospace, monospace;
  color: var(--muted);
}
details.disclosure[open] summary { border-bottom: 1px solid var(--rule); }
details.disclosure[open] summary::after { content: "−"; color: var(--burner-hot); }
details.disclosure .disclosure-body { padding: 1rem; }
details.disclosure .disclosure-body > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   Code Panels, Inline Code, Callouts & Specification Tables
   ------------------------------------------------------------------------- */
pre {
  margin: 0.75rem 0 1.15rem;
  background: var(--panel-deep);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.95rem 1.1rem;
  overflow-x: auto;
  line-height: 1.55;
  color: #dfe6f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.code-panel {
  margin: 0.85rem 0 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #111215;
  overflow: hidden;
}
.code-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0.9rem;
  background: var(--panel-elev);
  border-bottom: 1px solid var(--rule);
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.code-bar a { white-space: nowrap; color: var(--titanium-lit); }
.code-panel pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.9rem 1rem;
}
:not(pre) > code {
  background: #14161a;
  border: 1px solid #2a2e36;
  padding: 0.08em 0.36em;
  border-radius: 4px;
  color: var(--titanium-lit);
  overflow-wrap: anywhere;
}

.callout {
  margin: 1.5rem 0;
  padding: 1.05rem 1.25rem;
  background: var(--panel-deep);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--burner);
  border-radius: 5px;
}
.callout p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--placard); }
.callout strong { color: var(--burner-hot); }
.callout .note { margin-top: 0.45rem; font-size: var(--step--1); color: var(--muted); }
.callout-titanium { border-left-color: var(--titanium); }
.callout-titanium strong { color: var(--titanium-lit); }

.status {
  margin: 1.25rem 0;
  border-left: 3px solid var(--titanium);
  padding: 0.35rem 0 0.35rem 1rem;
  color: var(--muted);
  font-size: var(--step--1);
}

/* Specification & Reference Tables */
.table-wrap,
.portal-table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--panel-deep);
}
.spec-table,
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.spec-table th,
.spec-table td,
.portal-table th,
.portal-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec-table tr:last-child td,
.portal-table tr:last-child td { border-bottom: 0; }
.spec-table th,
.portal-table th {
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--panel-elev);
}
.spec-table tbody tr:hover,
.portal-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.spec-table td strong { color: var(--placard); }

/* -------------------------------------------------------------------------
   Waitlist Form & Buttons
   ------------------------------------------------------------------------- */
.invite {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--panel-deep);
  max-width: var(--measure);
}
.invite label { display: block; font-weight: 700; margin-bottom: 0.35rem; color: var(--placard); }
.invite .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.invite input[type="email"], .invite textarea {
  width: 100%;
  font: inherit;
  color: var(--placard);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 1.1rem;
}
.invite input[type="email"]:focus, .invite textarea:focus { border-color: var(--titanium); outline: none; }
.invite textarea { min-height: 6rem; resize: vertical; }
.invite .trap, .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 1rem 0 0; }

button.primary, a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: #241204;
  background: var(--burner);
  border: 1px solid #8a4a17;
  border-radius: 4px;
  padding: 0.62rem 1.2rem;
}
button.primary:hover, a.btn-primary:hover { background: var(--burner-hot); color: #1b0d02; }
button.secondary, a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: var(--placard);
  background: var(--panel-elev);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 0.55rem 1rem;
}
button.secondary:hover, a.btn-secondary:hover { border-color: var(--titanium-lit); color: #fff; }
button.secondary.small, button.primary.small { font-size: var(--step--1); padding: 0.34rem 0.72rem; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.result { display: none; margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 4px; }
.result:target { display: block; }
#noted { border: 1px solid #8a4a17; color: var(--burner-hot); background: var(--burner-bg); }
#check { border: 1px solid var(--titanium); color: var(--titanium-lit); }

/* -------------------------------------------------------------------------
   Documentation Shell (Flight Manual Sidebar + Article + Prev/Next Pager)
   ------------------------------------------------------------------------- */
.docs {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: 3rem;
  padding-block: 2.25rem 3rem;
}
.docs nav { min-width: 0; }
.docs-nav-inner { position: sticky; top: 1.5rem; }
.docs-group { margin-bottom: 1.35rem; }
.docs-group-label {
  margin: 0 0 0.45rem;
  padding-left: 0.7rem;
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--titanium);
}
.docs nav ul { list-style: none; margin: 0; padding: 0; }
.docs nav li { margin-bottom: 0.15rem; }
.docs nav a {
  display: block;
  padding: 0.32rem 0.65rem;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  text-decoration: none;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.35;
}
.docs nav a:hover { color: var(--placard); background: rgba(255, 255, 255, 0.03); }
.docs nav a[aria-current="page"] {
  color: var(--placard);
  font-weight: 700;
  border-left-color: var(--burner);
  background: var(--panel-deep);
}
.docs article { min-width: 0; max-width: 50rem; }
.docs article .page-head { margin-bottom: 1.65rem; padding-bottom: 1.35rem; }
.docs article h1 { font-size: clamp(1.75rem, 3vw, 2.2rem); }

.doc-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.doc-pager a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.05rem;
  background: var(--panel-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
}
.doc-pager a:hover { border-color: var(--titanium); background: #191b1f; }
.doc-pager .pager-next { text-align: right; grid-column: 2; }
.doc-pager .pager-dir {
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-pager .pager-title { font-weight: 700; color: var(--placard); }
.doc-pager a:hover .pager-title { color: var(--burner-hot); }

/* -------------------------------------------------------------------------
   Account Portal (`/account/`)
   ------------------------------------------------------------------------- */
.portal-card {
  margin-top: 1.4rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--panel-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.portal-card h2:first-child { margin-top: 0; }
.portal-code { font-size: var(--step-2); letter-spacing: 0.14em; margin: 0.75rem 0; }
.portal-code code {
  padding: 0.35em 0.65em;
  border: 1px solid var(--burner);
  border-radius: 4px;
  color: var(--burner-hot);
  background: var(--panel);
}
.portal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.portal-inline { display: inline; margin: 0; }
.portal-friend-form { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; margin: 0.75rem 0 1.25rem; }
.portal-friend-form input[type="text"] {
  flex: 1 1 15rem;
  max-width: 24rem;
  font: inherit;
  color: var(--placard);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
}
.portal-row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.portal-sn-inline { font-size: 0.8em; letter-spacing: 0.03em; white-space: nowrap; }
.pres-badge {
  display: inline-block;
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.78em;
  font-weight: 700;
  padding: 0.12em 0.5em;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.pres-online { color: var(--ok); border-color: var(--ok-border); background: var(--ok-bg); }
.pres-away { color: var(--burner-hot); border-color: #8a4a17; background: var(--burner-bg); }
.pres-busy { color: #f08a8a; border-color: #7d3232; background: #261212; }
.pres-offline { color: var(--muted); }
.portal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 0; }
.portal-dl dt { color: var(--muted); font-weight: 700; font-size: var(--step--1); align-self: baseline; }
.portal-dl dd { margin: 0; min-width: 0; }
.portal-sn { margin: 0 0 0.35rem; font-size: var(--step-0); letter-spacing: 0.04em; }
.portal-wrap { overflow-wrap: anywhere; }

/* -------------------------------------------------------------------------
   Zero-JS Split-Terminal P2P Wire Showcase (/)
   ------------------------------------------------------------------------- */
.p2p-split {
  margin-top: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel-deep);
  overflow: hidden;
}
.p2p-linkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
  padding: 0.65rem 1rem;
  background: var(--panel-elev);
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--2);
  color: var(--muted);
}
.p2p-wire {
  font-family: "B612 Mono", ui-monospace, monospace;
  color: var(--placard-soft);
}
.p2p-panes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p2p-pane {
  min-width: 0;
  border-right: 1px solid var(--rule);
}
.p2p-pane:last-child { border-right: 0; }
.p2p-pane-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.02);
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--titanium-lit);
}
.p2p-pane pre {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-x: auto;
}
.p2p-caption {
  margin: 0;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}

/* -------------------------------------------------------------------------
   Unified Cockpit Footer
   ------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
.footer-grid p { color: var(--muted); margin: 0 0 0.5rem; }
.footer-col-title {
  margin: 0 0 0.5rem;
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--titanium);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.3rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--placard); text-decoration: underline; text-decoration-color: var(--burner); }

/* -------------------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 54rem) {
  .grid-2, .grid-3, .p2p-panes { grid-template-columns: minmax(0, 1fr); }
  .p2p-pane { border-right: 0; border-bottom: 1px solid var(--rule); }
  .p2p-pane:last-child { border-bottom: 0; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: 1.5rem 2rem; }
  .docs-nav-inner { position: static; }
  .docs-group { margin-bottom: 0.85rem; }
  .docs nav ul { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
  .docs nav a {
    border-left: 0;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 0.28rem 0.6rem;
    font-size: 0.82rem;
  }
  .docs nav a[aria-current="page"] { border-color: var(--burner); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 44rem) {
  :root { --step-3: 1.85rem; --step-2: 1.38rem; }
  .wrap { width: min(100% - 1.5rem, 68rem); }
  .masthead { padding-block: 0.85rem; gap: 0.55rem; }
  .masthead .home img { width: 2.1rem; height: 2.1rem; }
  .masthead .home span { display: none; }
  .masthead nav { gap: 0.3rem 0.65rem; font-size: 0.8rem; }
  .masthead nav a.nav-cta { padding: 0.22rem 0.52rem; }
  .card, .step { padding: 1.1rem 1rem; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; }
  .doc-pager { grid-template-columns: minmax(0, 1fr); }
  .doc-pager .pager-next { text-align: left; grid-column: auto; }
  .portal-dl { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .portal-dl dd { margin-bottom: 0.75rem; }
}
