/* Initial Thoughts. Layout and look; game logic lives in app.js. */

/* Archivo (SIL OFL, see fonts/OFL.txt): one variable file covers every weight and width. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #e8eaef;
  --panel: #f7f8fa;
  --line: #d2d6e0;
  --ink: #2a3350;
  --muted: #666e89;
  --faint: rgba(42, 51, 80, 0.08);
  --accent: #3e4d8c;
  --on-accent: #ffffff;
  --sweep: #e3e7f3;
  --warn: #c24a3e;
  --warn-sweep: #f5e1dd;
  --focus: #3e4d8c;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161a24;
    --panel: #1d2230;
    --line: #2f3647;
    --ink: #e0e3ed;
    --muted: #979eb5;
    --faint: rgba(224, 227, 237, 0.07);
    --accent: #8d9be6;
    --on-accent: #161a24;
    --sweep: #252c42;
    --warn: #ee8a7d;
    --warn-sweep: #3a2629;
    --focus: #a8b4f2;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161a24;
  --panel: #1d2230;
  --line: #2f3647;
  --ink: #e0e3ed;
  --muted: #979eb5;
  --faint: rgba(224, 227, 237, 0.07);
  --accent: #8d9be6;
  --on-accent: #161a24;
  --sweep: #252c42;
  --warn: #ee8a7d;
  --warn-sweep: #3a2629;
  --focus: #a8b4f2;
  color-scheme: dark;
}

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

html, body { margin: 0; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }

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

/* ---------- Top bar & footer ---------- */

.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 38px;
  font-size: 14px;
}
.wordmark {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-stretch: 125%;
}
.bar-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.bar-link { color: var(--muted); text-decoration: none; }
.bar-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 6px 0;
  font-size: 14px;
}
.bar-btn svg { width: 20px; height: 20px; }
.bar-btn .icon-sound-off { display: none; }
.bar-btn[aria-pressed="false"] .icon-sound-on { display: none; }
.bar-btn[aria-pressed="false"] .icon-sound-off { display: inline; }

.foot { font-size: 13px; color: var(--muted); }
kbd {
  font-family: inherit;
  font-size: 12px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  margin: 0 3px 0 8px;
  background: var(--panel);
  color: var(--ink);
}
kbd:first-child { margin-left: 0; }
kbd + kbd { margin-left: 0; }

/* ---------- Layout ---------- */

.board {
  flex: 1;
  min-height: 560px;
  display: grid;
  /* split.js sets --split-a / --split-b as the user drags the handle. */
  grid-template-columns: minmax(0, var(--split-a, 5fr)) 16px minmax(0, var(--split-b, 6fr));
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "letter split cats"
    "time   split cats";
  row-gap: 16px;
}
/* Only a reset or a keyboard nudge glides; dragging tracks the pointer exactly. */
.board.is-easing {
  transition: grid-template-columns 0.45s cubic-bezier(0.2, 0.9, 0.25, 1), grid-template-rows 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
}

/* ---------- Resize handle ---------- */

.splitter {
  grid-area: split;
  position: relative;
  display: grid;
  place-items: center;
  cursor: col-resize;
  touch-action: none;
  outline: none;
}
.grip {
  width: 4px;
  height: 36px;
  border-radius: 999px;
  background: var(--line);
  transition:
    width 0.3s cubic-bezier(0.2, 0.9, 0.25, 1),
    height 0.3s cubic-bezier(0.2, 0.9, 0.25, 1),
    background-color 0.2s,
    box-shadow 0.2s;
}
.splitter:hover .grip { height: 60px; background: var(--muted); }
.splitter.is-dragging .grip { width: 5px; height: 96px; background: var(--accent); }
.splitter:focus-visible .grip {
  height: 60px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* While dragging, keep the resize cursor everywhere and stop text getting selected. */
html.is-resizing, html.is-resizing * { cursor: col-resize !important; user-select: none !important; }
html.is-resizing-rows, html.is-resizing-rows * { cursor: row-resize !important; }

.panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 22px 20px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.panel-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  min-height: 54px;
}
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; }

.link {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s;
}
.link:hover:not(:disabled) { color: var(--ink); }

/* Controls that only make sense between rounds */
.board:not([data-phase="ready"]) .lock-when-live { visibility: hidden; }

/* ---------- Letter ---------- */

.letter-panel { grid-area: letter; }

.letter-wrap {
  flex: 1;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}

.letter {
  font-size: min(90cqh, 80cqw);
  font-weight: 380;
  font-stretch: 100%;
  line-height: 0.8;
  letter-spacing: -0.02em;
  user-select: none;
}
.letter.rolling { opacity: 0.25; }
/* The letter lands heavy and narrow, then breathes out to its lighter, natural shape. */
.letter.landed { animation: settle 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes settle {
  from { font-weight: 800; font-stretch: 75%; }
  to   { font-weight: 380; font-stretch: 100%; }
}

.hard-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.hard-toggle input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.hard-toggle:hover { color: var(--ink); }

/* ---------- Time ---------- */

.time-panel { grid-area: time; overflow: hidden; transition: background-color 0.4s; }
.time-panel > :not(.progress) { position: relative; }

/* The time left, as a soft tint across the panel that shrinks to the left. */
.progress { position: absolute; inset: 0; pointer-events: none; }
.board[data-phase="ready"] .progress,
.board[data-phase="done"] .progress { visibility: hidden; }
.progress-bar {
  height: 100%;
  background: var(--sweep);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 0.1s linear, background-color 0.4s;
}
.board[data-warn="true"] .progress-bar { background: var(--warn-sweep); }
.board[data-phase="done"] .time-panel { background: var(--warn-sweep); }

.status { margin-left: auto; color: var(--muted); font-size: 14px; }

.time-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.time {
  min-width: 3.3ch;
  font-size: clamp(52px, 8.5vh, 96px);
  font-weight: 380;
  font-stretch: 110%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  transition: color 0.3s;
}
.board[data-warn="true"] .time,
.board[data-phase="done"] .time { color: var(--warn); }

.step {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: border-color 0.15s;
}
.step:hover:not(:disabled) { border-color: var(--ink); }
.step:disabled { opacity: 0.35; }

.presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.presets button {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 4px 12px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.presets button:hover { color: var(--ink); border-color: var(--ink); }
.presets button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--panel); }

/* ---------- Go / New round ---------- */

.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.play,
.restart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border-radius: 999px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}
.play:active, .restart:active { transform: scale(0.98); }

.play {
  flex: 1.3;
  min-width: 120px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.play svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.play .icon-next { fill: none; }
.play-text { font-size: 18px; font-weight: 600; font-stretch: 110%; }
.play .icon-pause, .play .icon-next { display: none; }

.board[data-phase="running"] .play { background: var(--panel); color: var(--accent); }
.board[data-phase="running"] .play .icon-play { display: none; }
.board[data-phase="running"] .play .icon-pause { display: block; }
.board[data-phase="done"] .play .icon-play { display: none; }
.board[data-phase="done"] .play .icon-next { display: block; }

.restart {
  flex: 1;
  min-width: 120px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  font-size: 15px;
  font-weight: 500;
}
.restart svg { width: 19px; height: 19px; transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1); }
.restart:hover { border-color: var(--ink); }
.restart:hover svg { transform: rotate(180deg); }

/* ---------- Categories ---------- */

.list { grid-area: cats; padding-bottom: 14px; }

.list-head { border-bottom: 1.5px solid var(--line); }
.head-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.head-tools .link { margin-left: 0; }
.packs-btn { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}
.stepper button:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.stepper button:disabled { opacity: 0.35; }
.stepper span { min-width: 2.2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.cats {
  --n: 12;
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-auto-rows: minmax(40px, 1fr);
  overflow-y: auto;
  font-size: clamp(17px, calc((100dvh - 230px) / var(--n) * 0.4), 28px);
}

.cat {
  position: relative;
  display: grid;
  grid-template-columns: 2.2ch minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-right: 44px;
  border-bottom: 1px solid var(--line);
}
.cat:last-child { border-bottom: 0; }
.cat-num {
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.cat.custom .cat-num::after { content: "*"; }
.cat-text { font-weight: 450; line-height: 1.25; }

/* Blurred until Go, then each line comes into focus in turn. Hiding again is instant. */
.redact {
  --i: 0;
  display: inline-block;
  filter: blur(0.32em);
  opacity: 0.55;
  user-select: none;
}
.board[data-revealed="true"] .redact {
  filter: none;
  opacity: 1;
  user-select: text;
  transition: filter 0.6s ease-out, opacity 0.6s ease-out;
  transition-delay: calc(var(--i) * 55ms);
}

.swap {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -17px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, background-color 0.15s, color 0.15s;
}
.swap svg { width: 18px; height: 18px; }
.board[data-phase="running"] .swap { pointer-events: auto; }
.board[data-phase="running"] .cat:hover .swap,
.board[data-phase="running"] .swap:focus-visible { opacity: 1; }
.swap:hover { color: var(--ink); background: var(--faint); }
@media (hover: none) {
  .board[data-phase="running"] .swap { opacity: 0.6; }
}

.add-form { padding-top: 10px; }
.board:not([data-phase="ready"]) .add-form { display: none; }
.add-form input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color 0.15s;
}
.add-form input::placeholder { color: var(--muted); opacity: 1; }
.add-form input:focus { outline: none; border-color: var(--ink); }

/* ---------- Packs dialog ---------- */

.packs-dialog {
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90dvh, 900px);
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  overflow: hidden;
}
.packs-dialog::backdrop { background: rgba(22, 26, 36, 0.45); backdrop-filter: blur(3px); }
.packs-dialog[open] { animation: dlg-in 0.2s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px); } }

.packs-inner { display: flex; flex-direction: column; max-height: min(90dvh, 900px); margin: 0; }

.dlg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 16px;
  border-bottom: 1.5px solid var(--line);
}
.dlg-head h2 { margin: 0 0 6px; font-size: 24px; font-weight: 500; font-stretch: 115%; }
.dlg-sub { margin: 0; color: var(--muted); font-size: 15px; }
.dlg-close {
  flex: none;
  width: 40px;
  height: 40px;
  margin: -4px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
}
.dlg-close svg { width: 22px; height: 22px; }
.dlg-close:hover { background: var(--faint); }

.packs-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  padding: 18px 26px;
}

.pack {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 14px 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-align: left;
  transition: border-color 0.15s, background-color 0.15s;
}
.pack:hover { border-color: var(--ink); }
.pack[aria-pressed="true"] { border-color: var(--accent); background: var(--faint); }
.pack-all { grid-column: 1 / -1; }
.pack-icon { font-size: 20px; line-height: 1.2; width: 26px; text-align: center; }
.pack-main { display: grid; gap: 3px; }
.pack-name { font-size: 16px; font-weight: 600; }
.pack-blurb { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.pack-side { display: grid; justify-items: end; gap: 8px; }
.pack-count { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.pack-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.pack-check svg { width: 13px; height: 13px; }
.pack[aria-pressed="true"] .pack-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.dlg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  border-top: 1.5px solid var(--line);
}
.dlg-count { font-size: 15px; color: var(--muted); }
.dlg-count.is-empty { color: var(--warn); font-weight: 500; }
.dlg-done {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
}
.dlg-done:disabled { opacity: 0.3; }

/* ---------- Tablet & phone ---------- */

@media (max-width: 1100px) {
  .foot { display: none; }
}

/* Tall screens (portrait monitors, tablets upright): letter and time side by side on top,
   categories across the full width underneath. */
@media (orientation: portrait) and (min-width: 761px) {
  .board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, var(--split-pa, 36fr)) 16px minmax(0, var(--split-pb, 64fr));
    grid-template-areas:
      "letter time"
      "split  split"
      "cats   cats";
    column-gap: 16px;
    row-gap: 0;
  }
  .splitter { cursor: row-resize; }
  .grip { width: 36px; height: 4px; }
  .splitter:hover .grip { width: 60px; height: 4px; }
  .splitter.is-dragging .grip { width: 96px; height: 5px; }
  .splitter:focus-visible .grip { width: 60px; height: 4px; }
  .time-row { flex: 1; }
  .time { font-size: min(140px, 9vw); }
  .cats { font-size: clamp(18px, calc((100dvh - 230px) * 0.64 / var(--n) * 0.42), 34px); }
}

@media (max-width: 760px) {
  body { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .board {
    min-height: 0;
    flex: none;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "letter"
      "time"
      "cats";
  }
  .splitter { display: none; }
  .panel { padding: 0 16px 16px; border-radius: 16px; }
  .panel-head { min-height: 48px; }
  .bar-link { font-size: 13px; }
  .bar-btn span { display: none; }
  .letter-wrap { flex: none; height: 26vh; min-height: 150px; }
  .letter { font-size: min(92cqh, 80cqw); }
  .time { font-size: 56px; }
  .board:not([data-phase="ready"]) .presets { display: none; }
  .cats { font-size: 19px; overflow: visible; grid-auto-rows: minmax(46px, auto); }
  .packs-dialog { width: calc(100vw - 16px); }
  .dlg-head { padding: 18px 16px 12px; }
  .packs-grid { padding: 14px 16px; grid-template-columns: 1fr; gap: 8px; }
  .dlg-foot { padding: 12px 16px; }
}

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

/* ---------- Info page (/info) ---------- */

.info-page { gap: 18px; }
.home-link { color: inherit; text-decoration: none; }
.play-link {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.play-link:hover { filter: brightness(1.08); }

.doc {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.doc-panel { padding: 8px 36px 30px; line-height: 1.6; }
.doc-panel h1 {
  margin: 26px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.15;
}
.doc-panel h2 {
  margin: 30px 0 8px;
  padding-top: 22px;
  border-top: 1.5px solid var(--line);
  font-size: 20px;
  font-weight: 650;
}
.doc-panel > h2:first-child { border-top: 0; padding-top: 0; margin-top: 24px; }
.doc-panel p, .doc-panel li, .doc-panel dd { color: var(--ink); }
.doc-panel p { margin: 0 0 12px; }
.doc-panel ul, .doc-panel ol { margin: 0; padding-left: 22px; }
.doc-panel li { margin: 4px 0; }
.doc-panel li::marker { color: var(--muted); }
.lede { font-size: 18px; color: var(--muted) !important; }

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin: 10px 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.rules, .faq { margin: 0; }
.rules dt, .faq dt { margin-top: 14px; font-weight: 600; }
.rules dd, .faq dd { margin: 2px 0 0; color: var(--muted) !important; }

.cta-row { margin: 22px 0 4px !important; }
.cta {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.cta:hover { filter: brightness(1.08); }

.pack-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.pack-card {
  padding: 14px 16px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  line-height: 1.45;
}
.pack-card h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.pack-n { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.pack-card p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.pack-card ul { padding-left: 18px; font-size: 14px; }
.pack-card li { margin: 1px 0; }

.doc-foot { text-align: center; padding: 6px 0 10px; }
.info-page .doc-foot { display: block; }

@media (max-width: 760px) {
  .doc-panel { padding: 4px 18px 22px; }
  .lede { font-size: 17px; }
  .pack-list { grid-template-columns: 1fr; }
}
