/* ==========================================================================
   UngodlyGFX — Sea of Stars: Sunset Edition · Installation Guide
   Theme: "Night Sea" — solstice teal + campfire amber over a starlit abyss.
   © StixsworldHD (StixsmasterHD4k) · stixsworldhd.com
   ========================================================================== */

:root {
  color-scheme: dark;

  /* palette */
  --abyss:  #060b16;   /* page background — the night ocean            */
  --deep:   #0b1526;   /* raised surfaces: cards, sidebar, code        */
  --raise:  #10203a;   /* hover / emphasized surface                   */
  --line:   rgba(140, 178, 214, 0.16);
  --ink:    #d9e4f2;   /* body text — moonlit                          */
  --dim:    #92a6c0;   /* secondary text                               */
  --faint:  #64778f;

  --teal:       #57e6c9;                    /* solstice — moon side    */
  --teal-dim:   #2fae96;
  --teal-glow:  rgba(87, 230, 201, 0.28);
  --teal-tint:  rgba(87, 230, 201, 0.08);
  --amber:      #f0a24a;                    /* campfire — sun side     */
  --amber-tint: rgba(240, 162, 74, 0.10);
  --danger:     #ff7d70;
  --danger-tint:rgba(255, 125, 112, 0.10);
  --ok:         #74e2ac;
  --ok-tint:    rgba(116, 226, 172, 0.09);

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", Menlo, "Liberation Mono", monospace;

  /* layout */
  --sidebar-w: 288px;
  --content-w: 900px;
  --radius: 10px;
}

/* ------------------------------------------------------------- base ----- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--abyss);
  background-image:
    /* moon-glow over the horizon */
    radial-gradient(70rem 34rem at 82% -8rem, rgba(87, 230, 201, 0.07), transparent 60%),
    radial-gradient(46rem 26rem at 8% -6rem, rgba(240, 162, 74, 0.05), transparent 65%),
    /* two drifting star layers */
    radial-gradient(1px 1px at 23px 41px,  rgba(213, 233, 255, 0.34) 50%, transparent 51%),
    radial-gradient(1px 1px at 131px 97px, rgba(213, 233, 255, 0.20) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 197px 178px, rgba(151, 240, 220, 0.26) 50%, transparent 51%),
    radial-gradient(1px 1px at 61px 213px, rgba(213, 233, 255, 0.15) 50%, transparent 51%),
    radial-gradient(1px 1px at 274px 58px, rgba(240, 200, 150, 0.20) 50%, transparent 51%);
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat;
  background-size: auto, auto, 310px 310px, 340px 340px, 420px 420px, 290px 290px, 380px 380px;
}

::selection { background: rgba(87, 230, 201, 0.28); color: #eafffa; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:is(a, button, summary, input):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: #04241d; font-weight: 700;
  padding: 0.6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

p { margin: 0 0 1.05em; }

strong { color: #eef4fb; }

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--teal);
  background: var(--deep);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.14em 0.5em;
  white-space: nowrap;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: #bfeee2;
  background: rgba(87, 230, 201, 0.07);
  border: 1px solid rgba(87, 230, 201, 0.12);
  border-radius: 5px;
  padding: 0.08em 0.38em;
  overflow-wrap: anywhere;
}

hr.wave {
  border: 0;
  height: 1px;
  margin: 2.6rem 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* ------------------------------------------------------------ layout ---- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.content {
  max-width: calc(var(--content-w) + 7rem);
  padding: 3.2rem 3.5rem 3rem;
  width: 100%;
}

/* ----------------------------------------------------------- sidebar ---- */

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 1.9rem 1.4rem 1.4rem;
  background: linear-gradient(180deg, rgba(11, 21, 38, 0.92), rgba(8, 15, 28, 0.92));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  scrollbar-width: thin;
}

.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 0 8px var(--teal-glow)); }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.34rem;
  letter-spacing: 0.04em;
  color: #eefdf8;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav-group {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 1.15rem 0 0.45rem 0.35rem;
}
.site-nav .nav-group:first-child { margin-top: 0; }

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

.nav-link {
  position: relative;
  display: block;
  padding: 0.44rem 0.6rem 0.44rem 1.75rem;
  border-radius: 8px;
  color: var(--dim);
  font-size: 0.94rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

/* eclipse-phase marker: hollow moon → full eclipse on the active page */
.nav-link::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  translate: 0 -50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--faint);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(87, 230, 201, 0.06);
  text-decoration: none;
}
.nav-link:hover::before { border-color: var(--teal-dim); }

.nav-link.is-active {
  color: #f2fbf8;
  background: var(--teal-tint);
}
.nav-link.is-active::before {
  border-color: var(--teal);
  background: radial-gradient(circle, var(--amber) 0 42%, var(--deep) 46% 100%);
  box-shadow: 0 0 9px var(--teal-glow);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--faint);
}
.sidebar-foot p { margin: 0 0 0.3rem; }

/* ------------------------------------------------------------ topbar ---- */

.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(6, 11, 22, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar-brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif); font-size: 1.15rem; color: #eefdf8;
}
.topbar-brand:hover { text-decoration: none; }
.topbar .mark { width: 30px; height: 30px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 0.85rem var(--sans);
  color: var(--ink);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 15px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after  { position: absolute; top: 5px; }

/* -------------------------------------------------------------- hero ---- */

.hero { margin-bottom: 2.4rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.7rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: 0.012em;
  color: #f2f7fd;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}

.lead {
  font-size: 1.09rem;
  color: var(--dim);
  max-width: 62ch;
  margin-bottom: 1.4rem;
}

/* sunset horizon: the moon's teal meets the campfire's amber */
.horizon {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dim) 42%, var(--amber) 88%, transparent);
  box-shadow: 0 0 14px var(--teal-glow);
  max-width: 340px;
}

/* ---------------------------------------------------------- headings ---- */

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.62rem;
  letter-spacing: 0.01em;
  color: #eef4fb;
  margin: 2.9rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
h2::before {
  content: "";
  flex: none;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: #e8eff8;
  margin: 1.9rem 0 0.6rem;
}

h2 + p, h3 + p { margin-top: 0; }

.section-note {
  color: var(--dim);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------- cards --- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
  margin: 1.3rem 0 1.6rem;
}

.card {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.05rem;
}
.card h3 { margin-top: 0.1rem; }
.card p:last-child { margin-bottom: 0.2rem; }

.card-tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

/* route cards on the overview */
.route { counter-reset: route; display: grid; gap: 0.9rem; margin: 1.4rem 0 1.8rem; }
.route-step {
  counter-increment: route;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.05rem;
  align-items: start;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
a.route-step:hover { text-decoration: none; border-color: var(--teal-dim); background: var(--raise); }
.route-step::before {
  content: counter(route);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--teal);
  width: 46px; height: 46px;
  border: 1.5px solid var(--teal-dim);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 12px rgba(87, 230, 201, 0.12);
}
.route-step b { display: block; font-size: 1.03rem; color: #eef4fb; margin-bottom: 0.15rem; }
.route-step span { color: var(--dim); font-size: 0.93rem; }

/* --------------------------------------------------------------- steps --- */

ol.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.9rem 4.2rem;
}

/* the tide-line connecting the medallions */
ol.steps > li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--teal-dim), var(--line));
  opacity: 0.55;
}
ol.steps > li:last-child::after { display: none; }

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: radial-gradient(circle at 62% 36%, rgba(240, 162, 74, 0.24), transparent 58%), var(--deep);
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.32rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(87, 230, 201, 0.16);
}

ol.steps > li > h3 { margin: 0.35rem 0 0.55rem; font-size: 1.13rem; }
ol.steps > li > p:last-child { margin-bottom: 0; }

/* plain lists */
.content ul:not(.nav-list) { margin: 0.2rem 0 1.1rem; padding-left: 1.25rem; }
.content ul:not(.nav-list) li { margin-bottom: 0.45rem; }
.content ul:not(.nav-list) li::marker { color: var(--teal-dim); }

/* ------------------------------------------------------------ callouts -- */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: var(--teal-tint);
  border-radius: 8px;
  padding: 0.95rem 1.2rem 0.8rem;
  margin: 1.35rem 0;
}
.callout-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.4rem;
}
.callout-body p:last-child { margin-bottom: 0.2rem; }
.callout-body { font-size: 0.97rem; }

.callout--tip     { border-left-color: var(--ok);     background: var(--ok-tint); }
.callout--tip     .callout-title { color: var(--ok); }
.callout--warn    { border-left-color: var(--amber);  background: var(--amber-tint); }
.callout--warn    .callout-title { color: var(--amber); }
.callout--danger  { border-left-color: var(--danger); background: var(--danger-tint); }
.callout--danger  .callout-title { color: var(--danger); }
.callout--success { border-left-color: var(--ok);     background: var(--ok-tint); }
.callout--success .callout-title { color: var(--ok); }

/* ---------------------------------------------------------------- code --- */

.code {
  background: #081020;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.1rem 0 1.4rem;
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.9rem;
  background: rgba(87, 230, 201, 0.05);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.copy {
  font: 600 0.72rem var(--mono);
  letter-spacing: 0.06em;
  color: var(--teal);
  background: transparent;
  border: 1px solid rgba(87, 230, 201, 0.35);
  border-radius: 6px;
  padding: 0.24rem 0.7rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.copy:hover { background: var(--teal); color: #04241d; }
.copy.is-done { border-color: var(--ok); color: var(--ok); background: transparent; }

.code pre {
  margin: 0;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.code pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #cfe5f4;
  font-size: 0.87rem;
  line-height: 1.6;
  white-space: pre;
}

/* -------------------------------------------------------------- tables -- */

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.1rem 0 1.7rem;
  background: var(--deep);
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 0.75rem 1rem 0.35rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.62rem 1rem;
  border-top: 1px solid var(--line);
}
thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dim);
  border-top: 0;
  background: rgba(87, 230, 201, 0.045);
  white-space: nowrap;
}
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
td:first-child { white-space: nowrap; }
td .muted, .muted { color: var(--dim); }

/* ------------------------------------------------------------- shots ---- */

.shot {
  margin: 1.5rem 0 1.9rem;
}
.shot-link {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  cursor: zoom-in;
}
.shot-link img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-link:hover,
.shot-link:focus-visible {
  border-color: var(--teal-dim);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(87, 230, 201, 0.14);
  transform: translateY(-2px);
}
.shot-zoom {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  font: 600 0.68rem var(--mono);
  letter-spacing: 0.06em;
  color: #06231c;
  background: var(--teal);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  opacity: 0;
  translate: 0 4px;
  transition: opacity 0.18s ease, translate 0.18s ease;
  pointer-events: none;
}
.shot-link:hover .shot-zoom,
.shot-link:focus-visible .shot-zoom { opacity: 1; translate: 0 0; }

.shot figcaption {
  font-size: 0.86rem;
  color: var(--dim);
  padding: 0.55rem 0.2rem 0;
}

.shot--half { max-width: 620px; }

/* ------------------------------------------------------------ lightbox -- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.2rem clamp(1rem, 4vw, 3rem);
  background: rgba(3, 6, 12, 0.9);
  backdrop-filter: blur(6px);
}
.lb.is-open { display: flex; }

.lb-fig {
  margin: 0;
  max-width: min(1720px, 96vw);
  width: 100%;
}
.lb-img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(87, 230, 201, 0.35);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8), 0 0 34px rgba(87, 230, 201, 0.12);
}
.lb-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.8rem 0.25rem 0;
  color: var(--dim);
  font-size: 0.92rem;
}
.lb-orig {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(87, 230, 201, 0.4);
  background: rgba(11, 21, 38, 0.85);
  color: var(--teal);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lb-close:hover { background: var(--teal); color: #04241d; }

body.lb-lock { overflow: hidden; }

/* ------------------------------------------------------------ buttons --- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.9rem 0 0.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 0.9rem var(--sans);
  letter-spacing: 0.01em;
  color: #04241d;
  background: linear-gradient(180deg, #6cf0d6, var(--teal));
  border: 1px solid var(--teal);
  border-radius: 9px;
  padding: 0.62rem 1.15rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }

.btn--ghost {
  color: var(--teal);
  background: transparent;
  border-color: rgba(87, 230, 201, 0.45);
}
.btn--ghost:hover { background: var(--teal-tint); }

.btn--amber {
  color: #2b1704;
  background: linear-gradient(180deg, #f6b76a, var(--amber));
  border-color: var(--amber);
}

/* ------------------------------------------------------- download cards -- */

.dl-card {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.3rem;
  margin: 1.4rem 0;
}
.dl-kind {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.35rem;
}
.dl-name {
  font-family: var(--mono);
  font-size: 1.02rem;
  color: #eafcf6;
  overflow-wrap: anywhere;
  margin: 0 0 0.9rem;
}
.dl-meta {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.88rem;
  margin: 0 0 0.6rem;
}
.dl-meta dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 0.15rem;
}
.dl-meta dd { margin: 0; color: var(--dim); overflow-wrap: anywhere; }
.dl-meta dd code { font-size: 0.78rem; }

/* --------------------------------------------------------------- pager --- */

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3.4rem 0 0;
}
.pager-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.2rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pager-card:hover { border-color: var(--teal-dim); background: var(--raise); text-decoration: none; }
.pager-next { text-align: right; }
.pager-dir {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.pager-title { font-weight: 600; font-size: 0.98rem; }

/* ---------------------------------------------------------- site footer - */

.site-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--faint);
}
.foot-credit { color: var(--dim); }
.site-foot a { color: var(--teal-dim); }
.site-foot a:hover { color: var(--teal); }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { display: flex; }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 330px);
    z-index: 100;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6);
  }
  body.nav-open .sidebar { transform: translateX(0); }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(3, 6, 12, 0.6);
  }

  .content { padding: 2rem 1.25rem 2.4rem; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  ol.steps > li { padding-left: 3.5rem; }
  ol.steps > li::before { width: 38px; height: 38px; font-size: 1.2rem; }
  ol.steps > li::after { left: 19px; }
}

/* ------------------------------------------------------- reduced motion -- */

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

/* --------------------------------------------------------------- print --- */

@media print {
  body { background: #fff; color: #111; font-size: 12pt; }
  .sidebar, .topbar, .pager, .shot-zoom, .copy, .skip { display: none !important; }
  .shell { display: block; }
  .content { max-width: none; padding: 0; }
  a { color: #0a5c4e; text-decoration: underline; }
  .hero h1, h2, h3, strong { color: #000; }
  .card, .dl-card, .callout, .code, .tbl-wrap, .shot-link { border-color: #bbb; background: #fff; box-shadow: none; }
  .code pre code, .lead, .section-note, td, .dl-meta dd { color: #222; }
  kbd, code { color: #0a5c4e; background: #f2f2f2; border-color: #ccc; }
}
