/* How it works (map.dzco.tech/how/): the help pages, the dzco.tech menu's "How it works" and the printed guides
   (site/walkthrough/pdf.mjs prints them). Same dark look as the map; @media print turns them black on white. */
:root {
  color-scheme: dark;
  --page: #050608; --surface: #121418; --border: rgba(255,255,255,0.08);
  --text-primary: #f2f2ef; --text-secondary: #a9a89f; --muted: #6f6e68; --accent: #f2c14e; --link: #9fb6d6;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text-secondary); }
body { font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
.top { max-width: 960px; margin: 0 auto; padding: 16px; display: flex; align-items: center; gap: 12px; }
.top img { height: 22px; display: block; }
.top nav { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.top nav a { color: var(--text-secondary); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text-primary); }
main { max-width: 960px; margin: 0 auto; padding: 8px 16px 64px; }
h1 { color: var(--text-primary); font-size: clamp(28px, 6vw, 44px); line-height: 1.1; margin: 24px 0 8px; letter-spacing: -0.01em; }
.lede { font-size: 18px; max-width: 640px; margin: 0 0 20px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.jump a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-primary);
  text-decoration: none; font-size: 14px; }
.jump a:hover { border-color: var(--muted); }
section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 36px 0; border-top: 1px solid var(--border); scroll-margin-top: 12px; }
section.text { grid-template-columns: minmax(0, 1fr); }
h2 { color: var(--text-primary); font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
h2 .n { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 8px; }
ol, ul { padding-left: 1.2em; margin: 8px 0 0; }
li { margin: 6px 0; }
li b, p b { color: var(--text-primary); font-weight: 600; }
.go { display: inline-block; margin-top: 14px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #08090b;
  font-weight: 600; text-decoration: none; }
.go.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); margin-left: 6px; }
.note { font-size: 14px; color: var(--muted); }
figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16 / 10; }
figure video, figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
figure:empty { display: none; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.guides a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text-primary); }
.guides a span { display: block; color: var(--text-secondary); font-size: 14px; }
.guides a:hover { border-color: var(--muted); }
footer { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
footer a { color: var(--muted); }
@media (max-width: 720px) {
  section { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; }
  section figure { order: -1; }
}
.qr { display: none; }

@media print {
  @page { size: letter; margin: 0.55in; }
  :root { color-scheme: light; --page: #fff; --text-primary: #08090b; --text-secondary: #26282c; --muted: #5b5d63;
    --border: #d8d8d4; --link: #08090b; --accent: #b07d10; }
  body { font-size: 11pt; line-height: 1.4; }
  .lede { font-size: 12pt; margin-bottom: 6px; }
  h2 { font-size: 15pt; margin-bottom: 2px; }
  li { margin: 3px 0; }
  .top nav, .jump, .go, .noprint, figure video { display: none !important; }
  .top { padding: 0 0 8px; }
  .top img { filter: invert(1); height: 18px; }
  main { padding: 0; }
  h1 { font-size: 24pt; margin: 6px 0 6px; }
  section { padding: 10px 0; break-inside: avoid; grid-template-columns: minmax(0, 1fr) 2.4in; gap: 18px; }
  section.text { grid-template-columns: minmax(0, 1fr); }
  figure { border-color: var(--border); }
  figure:has(video) { display: none; }
  a { text-decoration: none; }
  .print-url::after { content: " (" attr(href) ")"; color: var(--muted); font-size: 0.9em; }
  .qr { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); break-inside: avoid; }
  .qr img { width: 1.1in; height: 1.1in; }
  footer { display: none; }
}
