/* Tactical plot - original design for the team write-up archive.
   Deep-space charcoal, amber + teal readouts, hairline panels with corner brackets. */
:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0b111b;
  --surface: #0e1622;
  --surface-2: #121c2a;
  --hair: #22324a;
  --hair-2: #2f4563;
  --text: #e8eef6;
  --text-2: #b4c2d4;
  --muted: #8ea1b8;
  --amber: #f4b046;
  --amber-dim: #a8742a;
  --amber-glow: rgba(244, 176, 70, .14);
  --teal: #45dccb;
  --teal-dim: #1f8a80;
  --teal-glow: rgba(69, 220, 203, .12);
  --red: #ff7a6b;
  --red-dim: rgba(255, 122, 107, .16);
  --violet: #a99bff;
  --grey: #3a4a60;
  --r-sm: 3px;
  --r-md: 6px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --f-head: "Rajdhani", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(69, 220, 203, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(244, 176, 70, .05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 L56 16.2 L56 48.5 L28 64.7 L0 48.5 L0 16.2 Z M28 64.7 L28 97' fill='none' stroke='%2345dccb' stroke-opacity='0.045' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(var(--bg), var(--bg-2));
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration-color: rgba(69, 220, 203, .45); text-underline-offset: 3px; }
a:hover { color: #7ff0e3; text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px;
}
::selection { background: rgba(244, 176, 70, .35); color: #fff; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--amber); color: #111; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-4); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7, 11, 18, .92);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(6px);
}
.topbar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.topbar .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 6px 0; }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  border: 1px solid var(--amber); border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 4px rgba(244, 176, 70, .08), inset 0 0 12px rgba(244, 176, 70, .2);
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--amber); }
.brand-mark::before { left: 50%; top: 4px; bottom: 4px; width: 1px; }
.brand-mark::after { top: 50%; left: 4px; right: 4px; height: 1px; }
.brand-text { font-family: var(--f-head); font-weight: 700; letter-spacing: .14em; font-size: 15px; text-transform: uppercase; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--f-mono); font-weight: 400; letter-spacing: .08em; font-size: 11px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.nav a {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--r-sm);
}
.nav a:hover { color: var(--amber); border-color: var(--hair-2); }
.nav a[aria-current="page"] { color: var(--amber); border-color: var(--amber-dim); background: var(--amber-glow); }

/* ---------- hero / page header ---------- */
.pagehead { position: relative; padding: var(--s-7) 0 var(--s-5); border-bottom: 1px solid var(--hair); overflow: hidden; }
.pagehead::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px);
}
.pagehead .sweep {
  position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(69, 220, 203, .06), transparent);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { from { transform: translateY(-100%); } to { transform: translateY(300%); } }
.telemetry {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 var(--s-3);
}
.telemetry span { white-space: nowrap; }
.telemetry .sep { color: var(--amber-dim); }
.telemetry .ok { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; letter-spacing: .02em; }
h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 700; margin: 0 0 var(--s-3); text-transform: uppercase; letter-spacing: .04em; }
.lede { font-size: 19px; color: var(--text-2); max-width: 68ch; margin: 0; }
.crumbs { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); margin-bottom: var(--s-3); letter-spacing: .06em; }
.crumbs a { color: var(--text-2); }

main { padding: var(--s-6) 0 var(--s-8); }
section + section { margin-top: var(--s-7); }
.sec-title {
  display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap;
  font-family: var(--f-head); font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 var(--s-4); padding-bottom: var(--s-2); border-bottom: 1px solid var(--hair);
}
.sec-title .code { font-family: var(--f-mono); font-size: 12px; color: var(--amber); letter-spacing: .14em; font-weight: 400; }

/* ---------- panels with corner brackets ---------- */
.panel {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hair); border-radius: var(--r-sm); padding: var(--s-5);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--amber); border-style: solid; opacity: .85;
}
.panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.panel.teal::before, .panel.teal::after { border-color: var(--teal); }
.panel-label {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 var(--s-2);
}
.grid { display: grid; gap: var(--s-4); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* ---------- stat readouts ---------- */
.stat { padding: var(--s-4) var(--s-5); }
.stat .v { font-family: var(--f-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--amber); letter-spacing: .02em; }
.stat .v.teal { color: var(--teal); }
.stat .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-top: var(--s-2); }
.stat .s { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

/* ---------- tactical plot (day grid) ---------- */
.plot-wrap { padding: var(--s-5); }
.plot {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.plot li { margin: 0; }
.cell {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 92px; padding: 9px 10px; text-decoration: none; color: var(--text);
  border: 1px solid var(--hair-2); border-radius: var(--r-sm); background: rgba(14, 22, 34, .85);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cell:hover { transform: translateY(-2px); border-color: var(--amber); box-shadow: 0 6px 24px rgba(0, 0, 0, .4), 0 0 0 1px var(--amber-dim); color: var(--text); }
.cell .d { font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1; }
.cell .d small { font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .14em; color: var(--muted); display: block; margin-bottom: 3px; }
.cell .st { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.cell .bar { height: 3px; background: var(--grey); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.cell .bar i { display: block; height: 100%; background: currentColor; }
.cell.full { border-color: rgba(69, 220, 203, .55); background: linear-gradient(180deg, rgba(69, 220, 203, .13), rgba(14, 22, 34, .9)); }
.cell.full .st, .cell.full .bar { color: var(--teal); }
.cell.partial { border-color: rgba(244, 176, 70, .55); background: linear-gradient(180deg, rgba(244, 176, 70, .12), rgba(14, 22, 34, .9)); }
.cell.partial .st, .cell.partial .bar { color: var(--amber); }
.cell.nolog { border-style: dashed; background: rgba(14, 22, 34, .5); }
.cell.nolog .st { color: var(--muted); }
.cell.nolog .d { color: var(--text-2); }
.cell .gap {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 2px rgba(244, 176, 70, .22), 0 0 10px rgba(244, 176, 70, .45);
  cursor: help;
}
.cell .webrow { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.cell .webchip {
  font-family: var(--f-mono); font-size: 9.5px; line-height: 1; letter-spacing: .04em;
  padding: 2px 4px; border: 1px solid currentColor; border-radius: 2px; color: var(--muted);
  background: transparent; cursor: help; min-width: 14px; text-align: center; font-weight: 500;
}
.cell .webchip.present { color: var(--teal); background: rgba(69, 220, 203, .18); border-color: rgba(69, 220, 203, .55); }
.cell .webchip.missing { color: var(--amber); border-color: rgba(244, 176, 70, .55); border-style: dashed; }
.legend .l-webgap::before { border: 1px dashed var(--amber); background: transparent; border-radius: 2px; vertical-align: -1px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: var(--s-4); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-2); text-transform: uppercase; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -2px; border: 1px solid; border-radius: 2px; }
.legend .l-full::before { border-color: var(--teal); background: rgba(69, 220, 203, .3); }
.legend .l-partial::before { border-color: var(--amber); background: rgba(244, 176, 70, .3); }
.legend .l-nolog::before { border-color: var(--muted); border-style: dashed; }
.legend .l-gap::before { border: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px rgba(244, 176, 70, .22); vertical-align: -1px; }

/* ---------- badges, pips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid currentColor; border-radius: 2px; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.badge::before { content: ""; flex: none; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
.lane-warmups { color: #ffd479; }
.lane-metadata { color: #7fd8ff; }
.lane-mobile { color: #9ef0a0; }
.lane-script { color: #ffa98a; }
.lane-binary { color: #c9b6ff; }
.lane-web { color: #ff9fd0; }
.lane-other { color: #cfd8e3; }
.pips { display: inline-flex; gap: 4px; }
.pip {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; padding: 2px 6px; border-radius: 2px;
  border: 1px solid var(--hair-2); color: var(--muted);
}
.pip.on { border-color: var(--teal-dim); background: var(--teal-glow); color: var(--teal); }

/* ---------- challenge cards / lists ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.cards > li { min-width: 0; }
.card {
  position: relative; display: block; height: 100%; min-width: 0; text-decoration: none; color: var(--text);
  padding: 14px 36px 14px 18px; border: 1px solid var(--hair); border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .15s ease, transform .15s ease;
  overflow: hidden;
}
.card > * { min-width: 0; max-width: 100%; }
.card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: currentColor; opacity: .0; }
.card:hover { border-color: var(--hair-2); transform: translateY(-1px); color: var(--text); }
.card:hover .card-title { color: var(--amber); }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; min-width: 0; max-width: 100%; }
.card .meta > * { max-width: 100%; min-width: 0; }
.card .day { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .12em; }
.card-title { font-family: var(--f-head); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 2px 0 6px; transition: color .15s;
  overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
.card .sum { font-size: 15px; color: var(--text-2); margin: 0; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.card .chev { position: absolute; right: 12px; top: 12px; color: var(--muted); font-family: var(--f-mono); }

/* ---------- search ---------- */
.search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: var(--s-4); }
.search[hidden] { display: none; }
.search input {
  flex: 1 1 260px; min-width: 0; font: inherit; font-family: var(--f-mono); font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--hair-2); border-radius: var(--r-sm); padding: 10px 12px;
}
.search input::placeholder { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  background: transparent; border: 1px solid var(--hair-2); color: var(--text-2); padding: 7px 10px; border-radius: 2px;
}
.filters button[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); background: var(--amber-glow); }
.count { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* ---------- prose (rendered write-ups) ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
@media (min-width: 1000px) { .layout.with-side { grid-template-columns: minmax(0, 1fr) 260px; } }
.side { align-self: start; position: sticky; top: 76px; }
.side .panel { padding: var(--s-4); }
.toc { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.toc li { margin: 4px 0; }
.toc li.l3 { padding-left: 12px; font-size: 13.5px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--amber); }
@media (max-width: 999px) { .side { position: static; } }

.prose { max-width: 78ch; overflow-wrap: anywhere; }
.prose h1 { font-size: 30px; }
.prose h2 {
  font-size: 25px; text-transform: uppercase; letter-spacing: .06em; margin: 2.2em 0 .7em; padding-bottom: 6px;
  border-bottom: 1px solid var(--hair); color: var(--text);
}
.prose h2::before { content: "// "; color: var(--amber); font-family: var(--f-mono); font-size: .7em; letter-spacing: 0; }
.prose h3 { font-size: 20px; margin: 1.8em 0 .5em; color: var(--amber); letter-spacing: .04em; }
.prose h4, .prose h5, .prose h6 { font-size: 17px; margin: 1.5em 0 .4em; color: var(--text-2); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--amber-dim); }
.prose blockquote {
  margin: 0 0 1em; padding: 10px 16px; border-left: 2px solid var(--teal-dim); background: rgba(69, 220, 203, .05); color: var(--text-2);
}
/* Historical working documents carry a "Preserved source note": same banner everywhere. */
.prose blockquote.preserved {
  border-left-color: var(--amber); background: var(--amber-glow); font-size: 15px;
}
/* The source's own title line when it says more than the page title (GM id, lane, day). */
.prose p.srctitle {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); margin: 0 0 1.2em;
  padding-bottom: 8px; border-bottom: 1px dashed var(--hair-2);
}
.prose code {
  font-family: var(--f-mono); font-size: .86em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07);
  padding: .08em .35em; border-radius: 2px; color: #f1dcb4;
}
.prose pre.code {
  margin: 0 0 1.2em; padding: 14px 16px; overflow-x: auto; max-width: 100%;
  background: #060a10; border: 1px solid var(--hair); border-left: 2px solid var(--amber-dim); border-radius: var(--r-sm);
  font-size: 14px; line-height: 1.55;
}
.prose pre.code code { background: none; border: 0; padding: 0; color: #d6e2ef; font-size: inherit; }
.prose hr { border: 0; border-top: 1px dashed var(--hair-2); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--hair); border-radius: var(--r-sm); max-width: 100%; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.prose th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); background: rgba(244, 176, 70, .06); }
.prose tr:last-child td { border-bottom: 0; }
.img-ref, .link-text { color: var(--text-2); }
.redact { font-family: var(--f-mono); font-size: .86em; color: var(--muted); border: 1px dashed var(--hair-2); padding: 0 .35em; border-radius: 2px; }
.learned { margin-top: var(--s-6); }

/* ---------- flag readout chip ---------- */
.flag {
  display: inline-flex; align-items: stretch; max-width: 100%; vertical-align: middle; margin: 1px 0;
  border: 1px solid var(--amber-dim); border-radius: 2px; background: #120d05;
  box-shadow: 0 0 0 1px rgba(244, 176, 70, .06), 0 0 18px rgba(244, 176, 70, .08);
  font-family: var(--f-mono); font-size: 13.5px; line-height: 1.4;
}
.flag .fl {
  flex: none; padding: 2px 6px; background: var(--amber); color: #1a1205; font-size: 9.5px; letter-spacing: .14em;
  font-weight: 600; text-transform: uppercase; display: inline-flex; align-items: center;
}
.flag .fv { padding: 2px 8px; color: var(--amber); overflow-wrap: anywhere; word-break: break-all; text-shadow: 0 0 8px rgba(244, 176, 70, .35); }
.flag .fc {
  flex: none; font: inherit; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  background: transparent; color: var(--amber); border: 0; border-left: 1px solid var(--amber-dim); padding: 0 8px;
}
.flag .fc:hover { background: var(--amber-glow); }
.flag .fc[hidden] { display: none; }
.flag.masked .fv { color: var(--muted); text-shadow: none; }
.prose code .flag, .prose pre .flag { font-size: inherit; box-shadow: none; }
pre .flag { display: inline; border: 0; background: rgba(244, 176, 70, .1); padding: 0 2px; }
pre .flag .fv { padding: 0; }
.prose ul.flag-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose ul.flag-list li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.flag-list .count { min-width: 7ch; }
.copied { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--amber); color: #111; font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .14em; padding: 8px 14px; border-radius: 2px; text-transform: uppercase; z-index: 20; }

/* ---------- architecture flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.flow > li { position: relative; padding: 0 0 22px 46px; counter-increment: step; }
.flow > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; width: 32px; height: 32px;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--amber);
  border: 1px solid var(--amber-dim); border-radius: 50%; background: var(--bg);
}
.flow > li::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 1px; background: linear-gradient(var(--amber-dim), transparent); }
.flow > li:last-child::after { display: none; }
.flow h3 { margin: 2px 0 4px; font-size: 20px; }
.flow p { margin: 0; color: var(--text-2); }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 16px; margin: 0; }
.kv dt { font-family: var(--f-mono); font-size: 13px; color: var(--amber); letter-spacing: .04em; }
.kv dd { margin: 0; color: var(--text-2); }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }
.example-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: #1a1205; background: var(--teal); padding: 1px 6px; border-radius: 2px; text-transform: uppercase; }
.note { border-left: 2px solid var(--amber); padding: 8px 14px; background: var(--amber-glow); color: var(--text-2); margin: 0 0 1em; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lessons li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.lessons .n { font-family: var(--f-mono); color: var(--amber); font-size: 13px; border: 1px solid var(--amber-dim); text-align: center; padding: 4px 0; border-radius: 2px; }
.lessons strong { color: var(--text); }
.lessons p { margin: 2px 0 0; color: var(--text-2); }
.lanes-table td.num, .lanes-table th.num { text-align: right; font-family: var(--f-mono); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--hair); padding: var(--s-5) 0 var(--s-6); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site .mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: var(--s-6); }
.pager a { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-decoration: none; border: 1px solid var(--hair-2); padding: 8px 12px; border-radius: 2px; }
.pager a:hover { border-color: var(--amber); color: var(--amber); }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .topbar .wrap { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 6px 8px; font-size: 11.5px; }
  .pagehead { padding: var(--s-6) 0 var(--s-4); }
  .panel { padding: var(--s-4); }
  .plot { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .cell { min-height: 80px; }
  .stat .v { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pagehead .sweep { display: none; }
}
@media print {
  .topbar, .side, .search, .pagehead .sweep { display: none; }
  body { background: #fff; color: #000; }
}
