/* Science Elon — night briefing desk. Copper on warm black. No blobs. */

:root {
  --bg: #100e0c;
  --bg-2: #171410;
  --bg-3: #1e1a16;
  --ink: #ece6db;
  --ink-2: #c9c0b3;
  --ink-3: #b4aba0;
  --ink-4: #8a8278;
  --line: #2c2722;
  --line-2: #3d362f;
  --copper: #c47a4a;
  --copper-2: #e09a68;
  --copper-dim: rgba(196, 122, 74, 0.18);
  --signal: #c45c4a;
  --ok: #8a9a72;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --nav-h: 3.15rem;
  --page: 74rem;
  --gutter: 1.25rem;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--copper);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 3.2rem);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 8% -10%, rgba(196, 122, 74, 0.07), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0125rem;
  font-weight: 400;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint engineering hatch — not a texture photo */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 28px 28px;
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; }
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

a { color: var(--ink); text-decoration-color: var(--copper); text-underline-offset: 0.18em; }
a:hover { color: var(--copper-2); }
a:focus-visible,
button:focus-visible,
.nav-burger:focus-visible,
.table-scroll:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--copper);
  color: #1a100c;
  padding: 0.4rem 0.7rem;
  z-index: 100;
  font-weight: 600;
  font-size: 0.85rem;
}
.skip:focus { top: 0.75rem; }

.kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

/* ——— NAV ——— */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 14, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.mast-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.wordmark:hover { color: var(--ink); }
.wordmark .wm-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.wordmark .wm-tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
}

.nav-check { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-burger {
  margin-left: auto;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 0.28rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-burger .close { display: none; }

.site-nav {
  display: none;
  flex: 1;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.1rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.55rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

@media (min-width: 880px) {
  .nav-burger { display: none; }
  .site-nav { display: block; }
  .site-nav ul { justify-content: flex-end; }
}
@media (max-width: 879px) {
  .nav-burger {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-check:checked ~ .mast .nav-burger .open { display: none; }
  .nav-check:checked ~ .mast .nav-burger .close { display: inline; }
  .nav-check:checked ~ .mast .site-nav {
    display: block;
    position: absolute;
    left: 0; right: 0;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 0.35rem var(--gutter) 0.85rem;
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    overflow: auto;
  }
  .nav-check:checked ~ .mast .site-nav ul { flex-direction: column; }
  .nav-check:checked ~ .mast .site-nav a {
    padding: 0.85rem 0;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
}

/* ——— LAYOUT ——— */
.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page-home { padding-bottom: 4rem; }
.page-doc { padding-bottom: 5rem; }

/* ——— HOME MASTHEAD ——— */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: end;
  padding: 2.1rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
  line-height: 1.12;
  margin: 0.35rem 0 0.55rem;
  letter-spacing: -0.015em;
}
.hero .lede {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-2);
  font-size: 1.02rem;
}
.stamp {
  text-align: right;
  min-width: 9.5rem;
}
.stamp .day {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(3.6rem, 8vw, 5.4rem);
  line-height: 0.85;
  color: var(--copper);
  letter-spacing: -0.03em;
}
.stamp .mon {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 0.35rem;
}
.stamp .meta {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .stamp { text-align: left; }
}

/* ——— RAIL (now / next) ——— */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0 0.7rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0;
}
.section-head p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.rail-wrap {
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 0; }
.rail-item {
  flex: 0 0 17.2rem;
  scroll-snap-align: start;
  padding: 1rem 1.1rem 1.15rem;
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
}
.rail-item:hover { background: var(--bg-3); color: inherit; }
.rail-item .when {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--copper);
  letter-spacing: 0.04em;
}
.rail-item .co {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0.35rem 0 0.45rem;
}
.rail-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}
.rail-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.4;
  flex: 1;
}

.chip, .chip-unc, .chip-now {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.08em 0.42em;
  vertical-align: 0.12em;
  line-height: 1.4;
}
.chip-unc {
  color: var(--ink-3);
  border: 1px dashed var(--ink-4);
  background: transparent;
}
.chip-now {
  color: #1a100c;
  background: var(--copper);
  border: 1px solid var(--copper);
  margin-left: 0.35rem;
}

/* ——— COMPANY CARDS ——— */
.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19.5rem, 1fr));
  border: 1px solid var(--line);
  border-bottom: 0;
}
.co-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 1.2rem 1.3rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  min-height: 11.5rem;
}
.co-card:hover {
  background: var(--bg-3);
  color: inherit;
}
.co-card .co-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 550;
  font-size: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.co-card .co-name span.arrow {
  color: var(--copper);
  font-size: 0.95rem;
  font-family: var(--sans);
}
.co-card .status {
  margin: 0.45rem 0 0.85rem;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.4;
}
.co-card .next-lab {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.co-card .next {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ——— DIGEST TEASER ——— */
.digest-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.digest-list li { border-bottom: 1px solid var(--line); }
.digest-list li:last-child { border-bottom: 0; }
.digest-list a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-2);
  width: 100%;
  box-sizing: border-box;
}
.digest-list a:hover { background: var(--bg-3); color: inherit; }
.digest-meta {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.digest-list .n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--copper);
  flex: 0 0 auto;
}
.digest-list .co {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.digest-body { width: 100%; min-width: 0; }
.digest-body h3, .digest-body p { overflow-wrap: break-word; }
.digest-list h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}
.digest-list p { margin: 0; font-size: 0.82rem; color: var(--ink-3); }
.more-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ——— CLOCKS / VISION STRIP ——— */
.clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.clocks article {
  padding: 1.1rem 1.2rem 1.25rem;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clocks h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.clocks p, .clocks li {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.clocks ul { margin: 0; padding-left: 1.1rem; }
.clocks li + li { margin-top: 0.35rem; }
@media (max-width: 720px) {
  .clocks { grid-template-columns: 1fr; }
  .clocks article { border-right: 0; }
}

.vision-strip {
  margin-top: 2rem;
  padding: 1.4rem 0 0.4rem;
  border-top: 1px solid var(--line);
}
.vision-strip blockquote {
  margin: 0.5rem 0 0.7rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--copper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 400;
  max-width: 44rem;
}

/* ——— DOC PAGES ——— */
.doc-head {
  padding: 1.6rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
}
.doc-head h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  margin: 0.2rem 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.doc-head .updated {
  color: var(--ink-3);
  font-size: 0.82rem;
  margin: 0;
}

.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin: 1.25rem 0 0;
  background: var(--bg-2);
}
.band section {
  padding: 0.95rem 1.05rem 1.1rem;
  border-right: 1px solid var(--line);
}
.band section:last-child { border-right: 0; }
.band .kicker {
  margin: 0 0 0.45rem;
}
.band h2 {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.4rem;
  font-weight: 500;
  font-family: var(--sans);
}
.band section > p:not(.kicker) {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.band .kicker {
  margin: 0 0 0.45rem;
}
@media (max-width: 800px) {
  .band { grid-template-columns: 1fr; }
  .band section { border-right: 0; border-bottom: 1px solid var(--line); }
  .band section:last-child { border-bottom: 0; }
}

.div-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  background: rgba(16, 14, 12, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 0;
}
.div-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}
.div-nav a {
  display: block;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0.65rem 0.8rem 0.6rem;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.div-nav a:hover, .div-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

.doc-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
  margin-top: 1.5rem;
  min-width: 0;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 2.6rem);
  max-height: calc(100vh - var(--nav-h) - 3.4rem);
  overflow: auto;
  padding: 0.2rem 0.6rem 1rem 0;
  font-size: 0.78rem;
}
.toc-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.55rem;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  text-decoration: none;
  color: var(--ink-3);
  padding: 0.28rem 0 0.28rem 0.65rem;
  border-left: 1px solid var(--line);
  line-height: 1.3;
}
.toc a:hover, .toc a.is-active {
  color: var(--ink);
  border-left-color: var(--copper);
}
.toc-drawer > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  padding: 0.6rem 0;
}
.toc-drawer > summary::-webkit-details-marker { display: none; }

@media (max-width: 920px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 0 0 1rem; }
  .toc-desktop { display: none; }
}
@media (min-width: 921px) {
  .toc-drawer { display: none; }
}

/* ——— PROSE ——— */
.content {
  max-width: 46rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.content > h1 { display: none; } /* page title lives in doc-head */
.content > h1 + h2 {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.content h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 550;
  font-size: 1.55rem;
  margin: 2.4rem 0 0.7rem;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--nav-h) + 3.4rem);
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.content h2:first-child { border-top: 0; margin-top: 0; }
.content h3 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: 1.18rem;
  margin: 1.7rem 0 0.5rem;
  scroll-margin-top: calc(var(--nav-h) + 3.4rem);
}
.content h4 {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 1.3rem 0 0.4rem;
  font-weight: 600;
}
.content p { margin: 0.7rem 0; }
.content li { margin: 0.25rem 0; }
.content ul, .content ol { padding-left: 1.2rem; }
.content strong { font-weight: 600; color: var(--ink); }
.content em { font-style: italic; }
.content blockquote {
  margin: 1.1rem 0;
  padding: 0.15rem 0 0.15rem 1.05rem;
  border-left: 2px solid var(--copper);
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.4;
}
.content blockquote p { margin: 0.4rem 0; }
.content code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-3);
  padding: 0.08em 0.32em;
  border: 1px solid var(--line);
}
.content pre {
  overflow-x: auto;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
}
.content pre code { background: none; border: 0; padding: 0; }

/* tables */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.3rem;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.table-scroll:focus { outline: none; }
.content table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.84rem;
  line-height: 1.4;
}
.content th, .content td {
  padding: 0.48rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.content th {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-3);
  white-space: nowrap;
}
.content td:first-child, .content th:first-child {
  position: sticky;
  left: 0;
  background: var(--bg-2);
  box-shadow: 6px 0 8px -8px rgba(0,0,0,0.7);
  z-index: 1;
  font-weight: 500;
}
.content th:first-child { background: var(--bg-3); }
.content tr:hover td { background: var(--bg-3); }
.content tr:hover td:first-child { background: var(--bg-3); }
.content td { font-variant-numeric: tabular-nums; }

/* ——— FOOTER ——— */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.2rem 0 2.2rem;
  color: var(--ink-4);
  font-size: 0.78rem;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.site-foot a { color: var(--ink-3); text-decoration: none; }
.site-foot a:hover { color: var(--copper-2); }

/* a11y / motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  body { background: #fff; color: #111; }
  body::before, .mast, .div-nav, .toc, .nav-burger, .site-foot { display: none !important; }
  a { color: #111; text-decoration: underline; }
  .content { max-width: none; }
  .band, .co-card, .rail-wrap, .digest-list a { background: #fff; border-color: #ccc; }
}

/* home-only tighter scan */
.note-line {
  font-size: 0.8rem;
  color: var(--ink-3);
  padding: 0.7rem 0 0;
}

/* ——— PHONE ——— */
@media (max-width: 640px) {
  :root { --gutter: 0.95rem; }
  body { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .hero { padding: 1.35rem 0 1.15rem; gap: 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero .lede { font-size: 0.95rem; }
  .stamp .day { font-size: 3.15rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding-top: 1.25rem; }
  .rail-item { flex: 0 0 min(16.4rem, 78vw); min-height: 9.6rem; }
  .co-grid { grid-template-columns: 1fr; }
  .co-card { min-height: 0; padding: 1rem 1.05rem 1.1rem; }
  .digest-list a { padding: 0.75rem 0.85rem; }
  .content h2 { font-size: 1.32rem; margin-top: 1.8rem; }
  .content h3 { font-size: 1.08rem; }
  .content table { min-width: 26rem; font-size: 0.8rem; }
  .content th, .content td { padding: 0.42rem 0.5rem; }
  .band section { padding: 0.85rem 0.9rem 1rem; }
  .div-nav a { padding: 0.75rem 0.7rem; min-height: 44px; }
  .toc-drawer > summary { min-height: 44px; display: flex; align-items: center; }
  .site-foot { padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 400px) {
  :root { --gutter: 0.8rem; }
  .hero h1 { font-size: 1.5rem; }
  .wordmark .wm-name { font-size: 1.05rem; }
}
