/* Number Stations: a WSJT-X waterfall on pale paper. Colours come from the
   distro's art: the waterfall's paper and signal blue, the navy of the boot
   splash's title, the red of the five-digit groups. Headings are set in a
   monospace, as the splash's are. Every token pair used for text is listed in
   scripts/check-contrast.mjs and checked against WCAG AA in both schemes. */

:root {
  color-scheme: light dark;

  --paper: #f2f6f9;
  --paper-raised: #ffffff;
  --paper-sunk: #e4edf3;
  --ink: #183446;
  --ink-muted: #4a6274;
  --rule: #c9d7e2;
  --link: #245f80;
  --link-hover: #183446;
  --accent: #2f6a8b;
  --on-accent: #ffffff;
  --accent-text: #a63d30;
  --focus: #a63d30;

  /* Panels over the waterfall (the hero's canvas, the page heads' band).
     check-contrast.mjs mixes these over the darkest signal pixel. */
  --panel: rgba(255, 255, 255, 0.86);
  --veil: rgba(242, 246, 249, 0.9);
  --veil-side: rgba(242, 246, 249, 0.89);
  --veil-edge: rgba(242, 246, 249, 0.62);

  /* The hero canvas reads these for its digits. */
  --signal: #2f6a8b;
  --signal-strong: #1a4660;
  --digits: #b74c3e;

  --night: #132c3e;
  --night-raised: #1d3d53;
  --on-night: #eaf1f6;
  --on-night-muted: #aec3d2;
  --on-night-link: #9fd2ee;
  --on-night-accent: #f39b8c;
  --on-night-rule: rgba(234, 241, 246, 0.26);

  --code-bg: #0f2433;
  --code-ink: #e3edf4;
  --code-muted: #93aec2;

  --shadow: 0 1px 2px rgba(24, 52, 70, 0.08), 0 10px 28px rgba(24, 52, 70, 0.1);
  --radius: 10px;

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

  --gutter: clamp(16px, 4vw, 32px);
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1b25;
    --paper-raised: #132532;
    --paper-sunk: #09141c;
    --ink: #e3edf4;
    --ink-muted: #a7bccb;
    --rule: #26404f;
    --link: #8fcbea;
    --link-hover: #c9e6f5;
    --accent: #6fb0d6;
    --on-accent: #071722;
    --accent-text: #f39b8c;
    --focus: #f39b8c;

    --panel: rgba(19, 37, 50, 0.86);
    --veil: rgba(13, 27, 37, 0.9);
    --veil-side: rgba(13, 27, 37, 0.86);
    --veil-edge: rgba(13, 27, 37, 0.7);

    --signal: #6fa4c4;
    --signal-strong: #9cc6e0;
    --digits: #f08a78;

    --night: #06111a;
    --night-raised: #132c3e;

    --code-bg: #060f16;
    --code-ink: #e3edf4;
    --code-muted: #93aec2;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.3);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

/* A monospace runs wide, so the sizes sit a step below a serif's. */
h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.05rem);
}

h2 {
  font-size: clamp(1.45rem, 2.7vw, 1.95rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

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

/* No ligatures: in a command, "-f" and "->" must look like what you type. */
code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

:not(pre) > code {
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 2.2em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--rule);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--paper-raised);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

strong {
  font-weight: 650;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.75rem;
}

.eyebrow--on-night {
  color: var(--on-night-accent);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--night);
  color: var(--on-night);
  border-bottom: 1px solid var(--on-night-rule);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-night);
  text-decoration: none;
}

.brand:hover {
  color: var(--on-night);
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand img {
  border-radius: 9px;
}

.brand__name {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__sub {
  color: var(--on-night-muted);
  font-weight: 400;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--on-night);
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--night-raised);
  color: var(--on-night);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--on-night-accent);
  border-radius: 8px 8px 2px 2px;
}

@media (max-width: 559px) {
  .site-nav {
    width: 100%;
  }

  /* Five links on one row at 360 px. */
  .site-nav ul {
    justify-content: space-between;
    gap: 0;
  }

  .site-nav a {
    padding: 8px 3px;
    font-size: 0.9rem;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.button--primary:hover {
  color: var(--on-accent);
  filter: brightness(1.06);
}

.button--ghost {
  border-color: var(--on-night-rule);
  color: var(--on-night);
}

.button--ghost:hover {
  background: var(--night-raised);
  color: var(--on-night);
  border-color: var(--on-night);
}

.button--ghost-ink {
  border-color: var(--ink);
  color: var(--ink);
}

.button--ghost-ink:hover {
  background: var(--paper-raised);
  color: var(--ink);
}

.button__note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.stack--row {
  flex-direction: row;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */

/* The hero is the distro's waterfall. hero.js draws five-digit groups on the
   canvas, which covers the band image (there for a browser without
   JavaScript); the text sits on a panel like the boot splash's. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--paper);
  background-image: linear-gradient(var(--veil), var(--veil)), url("/img/waterfall-band.jpg");
  background-size: cover;
  background-position: 60% 30%;
  border-bottom: 1px solid var(--rule);
}

.hero__signal {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: clamp(32px, 7vw, 96px) clamp(40px, 7vw, 104px);
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 5fr 6fr;
    gap: 48px;
  }
}

.hero__panel {
  padding: clamp(22px, 3.4vw, 36px);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero h1 {
  max-width: 15ch;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__shot {
  margin: 0;
}

.hero__shot img {
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(24, 52, 70, 0.28);
}

.hero__shot figcaption {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--panel);
  font-size: 0.9rem;
}

.section--night a:not(.button) {
  color: var(--on-night-link);
}

.section--night a:not(.button):hover {
  color: var(--on-night);
}

/* The dial readout under the waterfall, as on the wallpaper. */
.hero__dial {
  display: none;
}

@media (min-width: 960px) {
  .hero__dial {
    display: block;
    position: absolute;
    right: var(--gutter);
    bottom: 12px;
    margin: 0;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--panel);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
  }
}

/* ---------- Page heads (inner pages) ---------- */

.page-head {
  position: relative;
  background-color: var(--paper-sunk);
  background-image: linear-gradient(var(--veil), var(--veil)), url("/img/waterfall-band.jpg");
  background-size: cover;
  background-position: 60% 30%;
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(40px, 6vw, 72px);
}

/* On a wide screen the text keeps to the left, so the veil thins to the
   right and lets the red column of digits show. */
@media (min-width: 860px) {
  .page-head {
    background-image: linear-gradient(90deg, var(--veil) 0%, var(--veil-side) 55%, var(--veil-edge) 100%), url("/img/waterfall-band.jpg");
  }
}

.page-head__lead {
  max-width: 52ch;
  font-size: 1.15rem;
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section--sunk {
  background: var(--paper-sunk);
}

.section--night {
  background: var(--night);
  color: var(--on-night);
}

.section--night h2,
.section--night h3 {
  color: var(--on-night);
}

.section--night .eyebrow {
  color: var(--on-night-accent);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 0.35em;
}

.section-head__intro {
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin: 0;
}

.section--night .section-head__intro {
  color: var(--on-night-muted);
}

.section__more {
  margin: 28px 0 0;
  font-weight: 600;
}

.section__more a::after,
.bench__card h3 a::after {
  content: " →";
}

.split {
  display: grid;
  gap: 32px 56px;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--center {
    align-items: center;
  }
}

.split p {
  max-width: var(--measure);
}

/* ---------- Facts strip ---------- */

.facts {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  list-style: none;
  /* Only the list's own vertical margin: .wrap's margin-inline: auto centres it. */
  margin-block: 0;
  padding-block: 24px;
}

@media (min-width: 860px) {
  .facts__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.facts__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 3px solid var(--accent-text);
}

.facts__list strong {
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.facts__list span {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ---------- Bench cards (home) ---------- */

.bench {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bench__card {
  position: relative;
  padding: 22px 22px 18px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.bench__card:hover {
  transform: translateY(-2px);
}

.bench__card h3 {
  margin-bottom: 0.4em;
}

.bench__card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.bench__card h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.bench__card p {
  margin-bottom: 0.6em;
}

.bench__apps {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.ver {
  display: inline-block;
  padding: 0 0.45em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-sunk);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---------- Compare (home) ---------- */

.compare {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .compare--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare__card {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.compare__card ul {
  margin: 0;
  padding-left: 1.2em;
}

.compare__card li + li {
  margin-top: 0.4em;
}

.cta {
  text-align: center;
}

.cta p {
  color: var(--ink-muted);
  max-width: 52ch;
  margin-inline: auto;
}

.cta--left {
  text-align: left;
}

.cta--left p {
  margin-inline: 0;
}

/* ---------- Code blocks ---------- */

.code {
  position: relative;
  margin: 0 0 16px;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: var(--shadow);
}

.code__label {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 84px 0 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--code-muted);
}

.code pre {
  margin: 0;
  padding: 4px 16px 16px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  tab-size: 4;
}

.code__copy,
.copy {
  font: 600 0.78rem/1 var(--font-sans);
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.code__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(235, 227, 203, 0.35);
  background: var(--code-bg);
  color: var(--code-ink);
}

.code__copy:hover {
  border-color: var(--code-ink);
}

.copy {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  vertical-align: middle;
}

.code .c {
  color: var(--code-muted);
}

.code-group {
  display: grid;
  gap: 0;
}

/* Grid items default to min-width: auto, so a long command would widen the
   whole column past the screen; let the <pre> scroll inside its box instead. */
.code,
.code-group > *,
.steps > *,
.howtos > *,
.split > *,
.release > *,
.compare > * {
  min-width: 0;
}

/* ---------- Download ---------- */

.release {
  display: grid;
  gap: 32px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .release {
    grid-template-columns: 2fr 3fr;
    align-items: start;
  }
}

.release h2 {
  margin-bottom: 0.25em;
}

.release__meta,
.release__hint {
  color: var(--ink-muted);
}

.release__meta {
  margin-bottom: 1.4em;
}

.release__hint {
  font-size: 0.9rem;
  margin: 14px 0 0;
}

.release__facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.release__facts div {
  display: grid;
  gap: 2px 16px;
}

@media (min-width: 560px) {
  .release__facts div {
    grid-template-columns: 8.5rem 1fr;
  }
}

.release__facts dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.2em;
}

.release__facts dd {
  margin: 0;
  min-width: 0;
}

.sha {
  word-break: break-all;
  overflow-wrap: anywhere;
}

.needs {
  display: grid;
  gap: 12px;
  max-width: var(--measure);
  padding-left: 1.2em;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 12px 76px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-text);
}

.step p,
.step ul {
  max-width: var(--measure);
}

@media (max-width: 559px) {
  .step {
    padding: 64px 18px 8px;
  }

  .step::before {
    left: 18px;
    top: 16px;
  }
}

.tools,
.keys {
  padding-left: 1.2em;
}

.keys {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.keys kbd {
  margin-right: 4px;
}

.table-title {
  font-size: 1.15rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}

thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom-width: 2px;
}

td.num,
th.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tests td.num {
  text-align: right;
}

.table-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* The ARM version's boot tests, below the PC version's. */
.table-note + .table-title {
  margin-top: 32px;
}

/* ---------- Applications ---------- */

.toc {
  display: grid;
  gap: 6px 16px;
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 860px) {
  .toc {
    grid-template-columns: max-content 1fr;
    align-items: baseline;
  }
}

.toc__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.toc a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--ink);
}

.toc li[data-not-included] a::after {
  content: " · not included";
  color: var(--accent-text);
  font-size: 0.85em;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.app {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.app__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.app__name {
  margin: 0;
}

.app__start {
  font-size: 0.95rem;
}

.app__label {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.app .code {
  box-shadow: none;
}

.app .code pre {
  font-size: 0.84rem;
}

.app__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

.app__pkg {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.ver--flathub {
  font-family: var(--font-sans);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.libs {
  min-width: 680px;
}

.libs th[scope="row"] {
  white-space: nowrap;
}

.libs tbody tr:last-child > * {
  border-bottom: 0;
}

.howtos-head {
  padding-bottom: 32px;
}

.howtos {
  display: grid;
  gap: 0;
  padding-block: 32px 72px;
}

.howto {
  max-width: 860px;
  padding-block: 32px;
  border-bottom: 1px solid var(--rule);
}

.howto:last-child {
  border-bottom: 0;
}

.howto h3 {
  font-size: 1.55rem;
}

.howto p,
.howto ul {
  max-width: var(--measure);
}

.issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

/* Which version the known-issues checks were made on, when there are two. */
.issues-note {
  max-width: var(--measure);
  margin: -8px 0 20px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.issue {
  min-width: 0;
  padding: 20px 22px 6px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.issue h3 {
  font-size: 1.2rem;
}

.issue p {
  max-width: var(--measure);
}

.note {
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--paper-raised);
}

.howto[data-not-included] h3::after {
  content: "Not included";
  display: inline-block;
  margin-left: 12px;
  padding: 2px 8px;
  border: 1px solid var(--accent-text);
  border-radius: 999px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---------- Screenshots ---------- */

.gallery {
  display: grid;
  gap: 48px;
}

.gallery .section-head {
  margin-bottom: -16px;
}

.gallery--art {
  padding-top: 0;
}

.gallery__pair {
  display: grid;
  gap: 48px 32px;
}

@media (min-width: 860px) {
  .gallery__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.shot {
  margin: 0;
  min-width: 0;
}

.shot__frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: var(--shadow);
}

/* Captures keep their own shape; the artwork pair (a 16:9 chart and a square
   logo) shares one frame shape so the row lines up. */
.gallery--art .gallery__pair .shot__frame {
  aspect-ratio: 16 / 9;
}

.gallery--art .gallery__pair .shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot[data-kind="artwork"]#logo .shot__frame img {
  object-fit: contain;
  padding: 6%;
}

.shot figcaption {
  margin-top: 16px;
  max-width: var(--measure);
}

.shot__title {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3em;
}

.shot__source {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  vertical-align: middle;
}

.tag--capture {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

/* ---------- Stations ---------- */

.designators {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0 0 1em;
}

.designators div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.designators dt {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-text);
}

.designators dd {
  margin: 0;
}

.stations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.station {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 14px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent-text);
  border-radius: var(--radius);
}

.station__head {
  margin-bottom: 0.5em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

.station__designator {
  color: var(--accent-text);
  margin-right: 6px;
}

.station__alias {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.station__status {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.tag--on-air {
  margin: 0 6px 0 0;
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.plain-steps {
  display: grid;
  gap: 6px;
  max-width: var(--measure);
  padding-left: 1.4em;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--on-night-muted);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: grid;
  gap: 28px 40px;
  padding-block: 48px 40px;
}

@media (min-width: 860px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer a {
  color: var(--on-night);
}

.site-footer a:hover {
  color: var(--on-night-link);
}

.site-footer__brand,
.site-footer__heading {
  color: var(--on-night);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 0.5em;
}

.site-footer__brand {
  font-size: 1.2rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.site-footer li a {
  display: inline-block;
  padding-block: 6px;
}

.site-footer__credits {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--on-night-rule);
  font-size: 0.85rem;
}

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

@media print {
  .site-header,
  .site-footer,
  .hero__signal,
  .code__copy,
  .copy {
    display: none;
  }
}
