/* =============================================================================
   Ungodly Streets of Rogue AI — install guide
   "Night Shift" theme

   Palette and type are taken from the two things this site is about: the game's
   own night-time city block (violet walls, sodium-amber HUD, siren pink) and the
   mod's settings panel (charcoal slab, amber active tab, monospaced readout).

   © 2026 StixsworldHD (StixsmasterHD4k)
   ========================================================================== */

/* ---------- tokens -------------------------------------------------------- */
:root {
  --night:   #120d17;
  --night-2: #0c0810;
  --slab:    #1b1522;
  --slab-2:  #241c2e;
  --edge:    #33264a;
  --edge-soft: #271e38;

  --amber:     #f0a02c;
  --amber-hot: #ffb84d;
  --amber-dim: #7d5417;
  --siren:     #ff3d6e;
  --wire:      #6fd3e6;
  --moss:      #7fc98a;

  --paper: #ece6f2;
  --dim:   #9d92b0;
  --faint: #6d6383;

  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --nav-w: 264px;
  --pad:   clamp(1.1rem, 3.4vw, 2.6rem);
  --radius: 3px;

  --shadow: 0 18px 44px rgba(0, 0, 0, .55);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 16px/1.68 var(--sans);
  letter-spacing: .002em;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-decoration-color: rgba(240, 160, 44, .35); text-underline-offset: 3px; }
a:hover { color: var(--amber-hot); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--wire);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: #16100b; padding: .6rem 1rem;
  font: 600 .82rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- typography ---------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 .55rem;
  color: #fff;
}

h2 {
  font-size: clamp(1.32rem, 2.5vw, 1.72rem);
  margin-top: 3.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--edge-soft);
}
h2:first-of-type { margin-top: 2.2rem; }

h3 { font-size: 1.1rem; margin-top: 2rem; letter-spacing: -.005em; }
h4 { font-size: .95rem; margin-top: 1.5rem; color: var(--amber); }

p, li { max-width: 74ch; }
p { margin: 0 0 1.05rem; }

strong { color: #fff; font-weight: 600; }
em { color: var(--paper); }

code, kbd, samp {
  font-family: var(--mono);
  font-size: .88em;
}

code {
  background: rgba(240, 160, 44, .09);
  border: 1px solid rgba(240, 160, 44, .18);
  color: var(--amber-hot);
  padding: .08em .38em;
  border-radius: 2px;
  white-space: nowrap;
}

kbd {
  display: inline-block;
  background: var(--slab-2);
  border: 1px solid var(--edge);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: .1em .45em;
  font-size: .82em;
  color: #fff;
  white-space: nowrap;
}

ul, ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
li { margin-bottom: .45rem; }
li::marker { color: var(--amber-dim); }

hr { border: 0; border-top: 1px solid var(--edge-soft); margin: 2.4rem 0; }

/* ---------- shell / layout ------------------------------------------------ */
.shell { display: flex; min-height: 100vh; }

/* sidebar ------------------------------------------------------------------ */
.sidenav {
  width: var(--nav-w);
  flex: 0 0 var(--nav-w);
  background: var(--night-2);
  border-right: 1px solid var(--edge-soft);
  padding: 1.4rem 0 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidenav-brand {
  display: flex; gap: .7rem; align-items: center;
  padding: 0 1.15rem 1.25rem;
  margin-bottom: .4rem;
  border-bottom: 1px solid var(--edge-soft);
  text-decoration: none; color: inherit;
}
.sidenav-brand strong {
  display: block; font: 700 .9rem/1.25 var(--mono);
  color: #fff; letter-spacing: -.01em;
}
.sidenav-brand em {
  display: block; font: 400 .7rem/1.4 var(--mono);
  color: var(--faint); font-style: normal; letter-spacing: .04em;
}

.brand-mark {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--amber);
  color: #16100b;
  font: 700 .74rem/1 var(--mono);
  letter-spacing: -.02em;
  border-radius: 2px;
}

.sidenav-group {
  margin: 1.35rem 0 .35rem;
  padding: 0 1.15rem;
  font: 600 .64rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--faint);
}

.sidenav-list { list-style: none; margin: 0; padding: 0; }
.sidenav-list li { margin: 0; }

.sidenav-list a {
  display: block;
  padding: .46rem 1.15rem .46rem 1.1rem;
  border-left: 3px solid transparent;
  font: 500 .855rem/1.4 var(--sans);
  color: var(--dim);
  text-decoration: none;
  transition: color .12s, background .12s, border-color .12s;
}
.sidenav-list a:hover { color: var(--paper); background: rgba(255, 255, 255, .035); }
.sidenav-list a.here {
  color: #16100b;
  background: var(--amber);
  border-left-color: var(--amber-hot);
  font-weight: 600;
}

.sidenav-foot {
  margin-top: 1.8rem;
  padding: 1.2rem 1.15rem 0;
  border-top: 1px solid var(--edge-soft);
}
.sidenav-foot p {
  margin: .85rem 0 0;
  font: 400 .68rem/1.5 var(--mono);
  color: var(--faint);
}
.sidenav-dl {
  display: block; text-align: center;
  padding: .55rem;
  border: 1px solid var(--amber-dim);
  color: var(--amber);
  font: 600 .74rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .12em;
  text-decoration: none;
  border-radius: var(--radius);
}
.sidenav-dl:hover { background: rgba(240, 160, 44, .12); }

/* main --------------------------------------------------------------------- */
.main { flex: 1 1 auto; min-width: 0; }
.wrap { max-width: 1000px; padding: 0 var(--pad); margin: 0 auto; }

/* topbar (mobile only) ----------------------------------------------------- */
.topbar { display: none; }

/* ---------- hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.6rem) 0 2.8rem;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: -10% -20% auto -20%; height: 420px;
  background:
    linear-gradient(to bottom, rgba(18, 13, 23, 0) 55%, var(--night) 100%),
    repeating-linear-gradient(0deg, rgba(120, 80, 170, .13) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(120, 80, 170, .13) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.hero > *:not(.hero-grid) { position: relative; }

.hero-eyebrow {
  font: 600 .72rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--faint);
  margin-bottom: 1.4rem;
}
.hero-eyebrow a { color: var(--dim); }

.hero-title {
  font-size: clamp(2.4rem, 7.2vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}
.hero-title span { color: var(--amber); }

.hero-lead { font-size: 1.06rem; color: var(--dim); max-width: 62ch; }
.hero-lead strong { color: var(--paper); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

/* ---------- page head ----------------------------------------------------- */
.pagehead { padding: clamp(2.2rem, 5vw, 3.4rem) 0 .4rem; }
.pagehead-group {
  font: 600 .68rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--faint); margin-bottom: .95rem;
}
.pagehead h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.65rem);
  letter-spacing: -.035em;
  margin-bottom: .8rem;
}
.pagehead-lead { font-size: 1.02rem; color: var(--dim); max-width: 66ch; }

/* ---------- the readout strip (signature element) ------------------------- */
.readout {
  display: flex; flex-wrap: wrap;
  gap: 0 1.6rem;
  margin: 1.5rem 0 .5rem;
  padding: .62rem .9rem;
  background: var(--night-2);
  border: 1px solid var(--edge-soft);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .74rem;
  line-height: 1.9;
}
.ro-pair { display: inline-flex; gap: .5rem; align-items: baseline; }
.ro-key { color: var(--amber-dim); text-transform: lowercase; letter-spacing: .04em; }
.ro-val { color: var(--paper); font-weight: 600; }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .72rem 1.35rem;
  border: 1px solid var(--edge);
  background: var(--slab);
  color: var(--paper);
  font: 600 .78rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .13s, border-color .13s, color .13s;
}
.btn:hover { background: var(--slab-2); border-color: var(--amber-dim); color: #fff; }
.btn-primary {
  background: var(--amber); border-color: var(--amber); color: #16100b;
}
.btn-primary:hover { background: var(--amber-hot); border-color: var(--amber-hot); color: #16100b; }

/* ---------- content blocks ------------------------------------------------ */
.note, .warn, .ok, .aside {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--slab);
  border: 1px solid var(--edge-soft);
  border-left: 3px solid var(--edge);
  border-radius: var(--radius);
}
.note p:last-child, .warn p:last-child, .ok p:last-child,
.aside p:last-child, .note ul:last-child, .warn ul:last-child, .ok ul:last-child { margin-bottom: 0; }

.note  { border-left-color: var(--amber); }
.warn  { border-left-color: var(--siren); }
.ok    { border-left-color: var(--moss); }
.aside { border-left-color: var(--wire); }

.note-title {
  display: block;
  font: 700 .7rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: .6rem;
}
.note  .note-title { color: var(--amber); }
.warn  .note-title { color: var(--siren); }
.ok    .note-title { color: var(--moss); }
.aside .note-title { color: var(--wire); }

/* ---------- steps --------------------------------------------------------- */
.step {
  margin: 1.7rem 0;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--slab) 0%, rgba(27, 21, 34, .45) 100%);
}
.step-head {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--edge-soft);
}
.step-num {
  flex: 0 0 auto;
  min-width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  background: var(--amber);
  color: #16100b;
  font: 700 .82rem/1 var(--mono);
  border-radius: 2px;
}
.step-head h3 { margin: .2rem 0 0; font-size: 1.06rem; }
.step-sub { margin: .35rem 0 0; font-size: .875rem; color: var(--dim); }
.step-body { padding: 1.15rem 1.25rem .3rem; }
.step-body > *:last-child { margin-bottom: 1.15rem; }

/* ---------- code ---------------------------------------------------------- */
.codeblock {
  margin: 1.2rem 0;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-2);
}
.codeblock-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: .42rem .5rem .42rem .85rem;
  background: var(--slab);
  border-bottom: 1px solid var(--edge-soft);
}
.codeblock-label {
  font: 600 .66rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--faint);
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--dim);
  font: 600 .64rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .1em;
  padding: .34rem .62rem;
  border-radius: 2px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--amber); border-color: var(--amber-dim); }
.copy-btn.done { color: var(--moss); border-color: var(--moss); }

.codeblock pre {
  margin: 0;
  padding: .9rem 1rem;
  overflow-x: auto;
  font: 400 .82rem/1.65 var(--mono);
  color: #d7cfe4;
}
.codeblock pre code {
  background: none; border: 0; padding: 0; color: inherit; white-space: pre;
  font-size: inherit;
}

/* file trees get a slightly tighter leading */
.codeblock.tree pre { line-height: 1.5; }

/* ---------- tables -------------------------------------------------------- */
.tablewrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--edge-soft); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .9rem; }
caption {
  caption-side: bottom; padding: .7rem .9rem;
  font: 400 .78rem/1.5 var(--sans); color: var(--faint); text-align: left;
}
th, td { padding: .68rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge-soft); }
th {
  background: var(--slab);
  font: 600 .68rem/1.3 var(--mono);
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--amber);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .016); }
td p { margin: 0; max-width: none; }
td code { white-space: normal; }

/* stock-vs-mod table gets a marked first column */
table.versus td:first-child { color: var(--dim); }
table.versus td:last-child { color: var(--paper); }

/* ---------- screenshots + lightbox ---------------------------------------- */
.shot { margin: 1.6rem 0 1.9rem; }
.shot-frame {
  display: block; position: relative;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-2);
  line-height: 0;
  cursor: zoom-in;
  transition: border-color .14s;
}
.shot-frame:hover { border-color: var(--amber-dim); }
.shot-frame img { width: 100%; height: auto; }
.shot-zoom {
  position: absolute; right: .5rem; bottom: .5rem;
  background: rgba(12, 8, 16, .88);
  border: 1px solid var(--edge);
  color: var(--amber);
  font: 600 .64rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .1em;
  padding: .38rem .55rem;
  border-radius: 2px;
  opacity: 0; transition: opacity .14s;
}
.shot-frame:hover .shot-zoom, .shot-frame:focus-visible .shot-zoom { opacity: 1; }
.shot figcaption {
  margin-top: .6rem;
  font-size: .84rem; line-height: 1.6;
  color: var(--dim);
  max-width: 74ch;
}
.shot figcaption code { font-size: .82em; }

/* ---------- demo video (click-to-load facade) ----------------------------- */
.video { margin: 1.8rem 0 2rem; }

.video-facade {
  display: block; position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-2);
  line-height: 0;
  text-decoration: none;
  transition: border-color .14s;
}
.video-facade:hover { border-color: var(--amber); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }

.video-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(18, 13, 23, .12) 0%, rgba(18, 13, 23, .58) 78%),
    linear-gradient(to top, rgba(12, 8, 16, .92) 0%, rgba(12, 8, 16, 0) 46%);
  transition: opacity .18s;
}
.video-facade:hover .video-shade { opacity: .74; }

/* the play badge: a pixel-cut triangle, squared off like the game's own UI */
.video-play {
  position: absolute; top: 50%; left: 50%;
  width: 78px; height: 54px;
  transform: translate(-50%, -50%);
  background: var(--amber);
  border-radius: 4px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, .55);
  transition: background .14s, transform .14s;
}
.video-play::after {
  content: "";
  position: absolute; top: 50%; left: 52%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #16100b;
}
.video-facade:hover .video-play { background: var(--amber-hot); transform: translate(-50%, -50%) scale(1.06); }
.video-facade:focus-visible .video-play { background: var(--amber-hot); }

.video-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.15rem;
  line-height: 1.4;
}
.video-eyebrow {
  display: block;
  font: 600 .64rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--amber);
  margin-bottom: .4rem;
}
.video-name {
  display: block;
  font: 600 .95rem/1.35 var(--sans);
  color: #fff;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video figcaption {
  margin-top: .6rem;
  font-size: .84rem; line-height: 1.6;
  color: var(--dim);
  max-width: 74ch;
}

.video-privacy {
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem;
  margin: -.6rem 0 1.8rem;
  font: 400 .72rem/1.7 var(--mono);
  color: var(--faint);
}
.video-privacy b { color: var(--amber-dim); font-weight: 400; }

@media (max-width: 520px) {
  .video-play { width: 62px; height: 44px; }
  .video-play::after { border-width: 9px 0 9px 15px; }
  .video-label { padding: .8rem .9rem; }
  .video-name { font-size: .86rem; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 5, 11, .95);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .9rem; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lb-img {
  max-width: 100%; max-height: calc(100vh - 7rem);
  object-fit: contain;
  border: 1px solid var(--edge);
}
.lb-bar {
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; justify-content: center;
  font: 400 .76rem/1 var(--mono);
  color: var(--faint);
}
.lb-open { color: var(--amber); }
.lb-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--slab); border: 1px solid var(--edge);
  color: var(--paper);
  font: 600 .7rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .12em;
  padding: .55rem .9rem; border-radius: 2px; cursor: pointer;
}
.lb-close:hover { border-color: var(--amber-dim); color: var(--amber); }

/* ---------- panel tab replica (panel-guide page) -------------------------- */
.tabdemo {
  margin: 1.6rem 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--slab);
  overflow: hidden;
}
.tabdemo-rows { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: var(--night-2); }
.tabdemo-btn {
  flex: 1 1 118px;
  background: var(--slab-2);
  border: 0;
  color: var(--dim);
  font: 600 .74rem/1 var(--mono);
  padding: .62rem .3rem;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.tabdemo-btn:hover { background: #2c2338; color: var(--paper); }
.tabdemo-btn[aria-selected="true"] { background: var(--amber); color: #16100b; }
.tabdemo-panel { padding: 1.1rem 1.25rem; }
.tabdemo-panel h4 { margin-top: 0; }
.tabdemo-panel p:last-child { margin-bottom: 0; }
.tabdemo-panel[hidden] { display: none; }

/* ---------- definition-style lists ---------------------------------------- */
.deflist { margin: 1.3rem 0; }
.deflist dt {
  font: 600 .82rem/1.4 var(--mono);
  color: var(--amber);
  margin-top: 1rem;
}
.deflist dd { margin: .25rem 0 0; padding-left: 0; color: var(--dim); max-width: 74ch; }
.deflist dd:first-of-type { margin-top: .25rem; }

/* ---------- symptom cards (troubleshooting) ------------------------------- */
.symptom {
  margin: 1.3rem 0;
  border: 1px solid var(--edge-soft);
  border-left: 3px solid var(--siren);
  border-radius: var(--radius);
  background: var(--slab);
  padding: 1.05rem 1.2rem;
}
.symptom h3 { margin: 0 0 .7rem; font-size: 1rem; color: #fff; }
.symptom h3::before { content: "› "; color: var(--siren); }
.symptom > *:last-child { margin-bottom: 0; }

/* ---------- FAQ ----------------------------------------------------------- */
.faq { margin: 1.1rem 0; border-bottom: 1px solid var(--edge-soft); }
.faq summary {
  cursor: pointer;
  padding: .85rem 0;
  font: 600 .95rem/1.45 var(--sans);
  color: #fff;
  list-style: none;
  display: flex; gap: .7rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  font-family: var(--mono); color: var(--amber); font-weight: 700;
  flex: 0 0 auto;
}
.faq[open] summary::before { content: "\2212"; }
.faq[open] summary { color: var(--amber); }
.faq-body { padding: 0 0 .9rem 1.4rem; }
.faq-body > *:last-child { margin-bottom: 0; }

/* ---------- cards grid ---------------------------------------------------- */
.cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 1.6rem 0;
}
.card {
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: var(--slab);
  padding: 1.1rem 1.15rem;
}
.card h3 { margin: 0 0 .5rem; font-size: .95rem; }
.card p { margin: 0; font-size: .88rem; color: var(--dim); max-width: none; }
.card .card-num {
  display: block;
  font: 700 .66rem/1 var(--mono);
  color: var(--amber-dim);
  letter-spacing: .18em;
  margin-bottom: .7rem;
}

/* ---------- download rows ------------------------------------------------- */
.dlrow {
  margin: 1.4rem 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--slab);
  overflow: hidden;
}
.dlrow-head {
  display: flex; flex-wrap: wrap; gap: .8rem 1.2rem;
  align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--edge-soft);
  background: linear-gradient(90deg, rgba(240, 160, 44, .07), transparent 60%);
}
.dlrow-head h3 { margin: 0; font-size: 1rem; }
.dlrow-kind {
  display: block;
  font: 600 .64rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--amber-dim); margin-bottom: .45rem;
}
.dlrow-body { padding: 1.1rem 1.2rem .35rem; }
.dlrow-body > *:last-child { margin-bottom: 1.1rem; }
.dl-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1.4rem;
  margin: 0 0 1rem;
  font: 400 .74rem/1.9 var(--mono);
  color: var(--faint);
  list-style: none; padding: 0;
}
.meta li { margin: 0; max-width: none; }
.meta b { color: var(--dim); font-weight: 400; }
.meta span { color: var(--paper); }

.hash {
  display: block;
  font: 400 .72rem/1.7 var(--mono);
  color: var(--wire);
  word-break: break-all;
  background: var(--night-2);
  border: 1px solid var(--edge-soft);
  padding: .5rem .65rem;
  border-radius: 2px;
  margin: .3rem 0 1rem;
}

/* ---------- checklist ----------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 1.2rem 0; }
.checklist li {
  position: relative;
  padding: .5rem 0 .5rem 1.9rem;
  border-bottom: 1px dashed var(--edge-soft);
  max-width: 74ch;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .82rem;
  width: 11px; height: 11px;
  border: 1px solid var(--amber-dim);
  border-radius: 2px;
}

/* ---------- pager --------------------------------------------------------- */
.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 3.6rem 0 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge-soft);
}
.pager-link {
  flex: 0 1 auto; max-width: 46%;
  text-decoration: none;
  padding: .8rem 1rem;
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  background: var(--slab);
  transition: border-color .13s, background .13s;
}
.pager-link:hover { border-color: var(--amber-dim); background: var(--slab-2); }
.pager-next { text-align: right; margin-left: auto; }
.pager-dir {
  display: block;
  font: 600 .62rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--faint); margin-bottom: .38rem;
}
.pager-name { display: block; font-size: .92rem; color: var(--paper); font-weight: 500; }

/* ---------- footer -------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--edge-soft);
  background: var(--night-2);
  padding: 2.2rem 0 3rem;
}
.foot-inner p {
  margin: 0 0 .55rem;
  font-size: .82rem; color: var(--faint); max-width: 78ch;
}
.foot-sig { font-family: var(--mono); color: var(--dim) !important; }
.foot-sig em { color: var(--amber-dim); font-style: italic; }
.foot-fine { font-size: .76rem; }

/* ---------- mobile -------------------------------------------------------- */
.nav-scrim { display: none; }

@media (max-width: 900px) {
  .topbar {
    display: flex; align-items: center; gap: .8rem;
    position: sticky; top: 0; z-index: 120;
    padding: .6rem .9rem;
    background: var(--night-2);
    border-bottom: 1px solid var(--edge-soft);
  }
  .topbar-brand {
    display: flex; align-items: center; gap: .55rem;
    text-decoration: none; color: #fff;
    font: 700 .82rem/1.2 var(--mono); letter-spacing: -.01em;
    min-width: 0;
  }
  .brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-ver {
    margin-left: auto;
    font: 600 .68rem/1 var(--mono); color: var(--faint);
  }
  .nav-toggle {
    display: flex; align-items: center; gap: .5rem;
    background: var(--slab); border: 1px solid var(--edge);
    color: var(--paper);
    font: 600 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em;
    padding: .5rem .65rem; border-radius: 2px; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 13px; height: 2px; background: var(--amber); content: "";
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -4px; }
  .nav-toggle-bars::after  { position: absolute; top: 4px; }

  .shell { display: block; }

  .sidenav {
    position: fixed; top: 0; left: 0; z-index: 140;
    height: 100vh; width: 280px; flex-basis: auto;
    transform: translateX(-102%);
    transition: transform .2s ease;
    box-shadow: var(--shadow);
  }
  body.nav-open .sidenav { transform: translateX(0); }
  body.nav-open .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 130;
    background: rgba(8, 5, 11, .68);
  }
  body.nav-open { overflow: hidden; }

  .pager { flex-direction: column; }
  .pager-link { max-width: none; }
  .pager-next { text-align: left; }
  .readout { gap: 0 1.1rem; font-size: .7rem; }
}

@media (max-width: 520px) {
  .step-head { padding: .85rem .9rem; gap: .75rem; }
  .step-body { padding: 1rem .9rem .3rem; }
  .hero-title { letter-spacing: -.03em; }
  .meta { gap: .2rem .9rem; }
}

/* ---------- motion / print ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  .sidenav, .topbar, .pager, .lightbox, .copy-btn, .shot-zoom, .hero-grid, .nav-scrim { display: none !important; }
  .shell { display: block; }
  .wrap { max-width: none; padding: 0; }
  a { color: #111; }
  h1, h2, h3, h4 { color: #000; }
  .readout, .note, .warn, .ok, .aside, .step, .card, .symptom, .dlrow, .codeblock {
    border: 1px solid #bbb; background: #fff; break-inside: avoid;
  }
  code { background: #f2f2f2; border-color: #ddd; color: #111; }
  .shot { break-inside: avoid; }
}
