/*
 * Help chapters.
 *
 * Loaded after `styles.css` and only on `/help/<chapter>/`. The header, the
 * footer, the buttons and the whole token palette still come from there — a
 * chapter has to look like the rest of the site, not like a different site
 * that happens to share a logo. This file is the chapter itself.
 *
 * ## Why the chapters changed shape
 *
 * They were `marked.parse()` poured into one 780px column: a horizontal rule
 * before every heading, two grey grid tables, no contents, and no way at any
 * of it except reading from the top. Good writing rendered as a textbook.
 * Nobody reads a manual — a receptionist opens this mid-shift with a patient
 * at the counter, looking one thing up. So the page is built to be scanned:
 * a contents rail that sticks, tables that are lists where they were never
 * really tables, procedures numbered, and the two things you must not miss
 * in a block of their own.
 *
 * The reasoning for each transform is in `build-help.mjs`, which is what
 * produces the markup this styles.
 */

body.help-chapter {
  /* Tokens styles.css does not carry. Everything else — ink, accent, line —
     is inherited from there rather than restated, so a change to the palette
     lands here too. */
  --paper: #f6f8fb;
  --rule-firm: #cbd7e4;
  --rose: #be123c;
  --amber: #b45309;
  --slate: #475569;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Roboto Mono', monospace;

  background: var(--paper);

  /*
   * `styles.css` sets `overflow-x: hidden` on html and body as cheap
   * insurance against sideways scroll. On body that makes it a scroll
   * container, and a scroll container that does not scroll kills
   * `position: sticky` for everything inside it — which is the contents rail.
   * `clip` does the same clipping without creating one. A browser too old to
   * know the keyword ignores the line and gets a rail that scrolls away,
   * which is the old behaviour rather than a broken page.
   */
  overflow-x: clip;
}

/*
 * A reading width, and one that everything agrees on.
 *
 * Narrower than the 72rem the marketing pages use: a measure does not get
 * better by having more room, and the header, the chapter and the footer
 * stopping in the same place is what keeps the contents rail looking like
 * part of the page rather than something parked beside it.
 */
body.help-chapter .wrap { width: min(100% - 3rem, 62rem); }

/* ------------------------------------------------------------ chapter head */

.ch-head {
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.4rem;
}

.ch-crumb {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
}
.ch-crumb a { color: var(--accent-text); text-decoration: none; }
.ch-crumb a:hover { text-decoration: underline; }
.ch-crumb .sep { color: var(--rule-firm); }

.ch-head h1 {
  font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin: 0;
}

.ch-head .ch-lede {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 1rem + 0.32vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 54ch;
}

/* The one or two screens a whole chapter lives on, named before the reader
   has to work it out from the prose. Declared per chapter in build-help.mjs,
   and only where it is true. */
.ch-screens { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ch-screens span {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid #cdeee7;
  border-radius: 7px;
  padding: 0.4rem 0.7rem;
}

/* Screenshots orient before the first instruction, not halfway down. */
.ch-shots {
  margin-top: 1.9rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.ch-shots figure { margin: 0; }
.ch-shots img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.ch-shots figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-faint);
}

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

.chapter {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  padding: 2.8rem 0 4rem;
}

/* The glossary and any one-section chapter: no rail, so no column for it. */
.chapter-plain { grid-template-columns: minmax(0, 1fr); }

/*
 * The contents, stuck to the side.
 *
 * A line down the left with a mark per section, which is where you are. The
 * mark lights as the section arrives; without JavaScript it is a plain list
 * of anchors, which is a working table of contents.
 */
.toc {
  position: sticky;
  top: 5.5rem;
  border-left: 1px solid var(--line);
  padding-left: 1.1rem;
}

.toc h2 {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
}

.toc a {
  display: block;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.34rem 0;
}
.toc a:hover { color: var(--ink); }

.toc a::before {
  content: '';
  position: absolute;
  left: calc(-1.1rem - 3px);
  top: 0.82rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rule-firm);
  box-shadow: 0 0 0 3px var(--paper);
}
.toc a.is-here { color: var(--ink); font-weight: 600; }
.toc a.is-here::before { background: var(--accent); }

/* The glossary's alphabet, which is a rail of one-character links. */
.toc-letters { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.toc-letters a {
  min-width: 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  border-radius: 6px;
}
.toc-letters a::before { display: none; }
.toc-letters a:hover { background: var(--surface-sunk); }

/* ----------------------------------------------------------------- article */

.ch-body { max-width: 40rem; min-width: 0; }
.chapter-plain .ch-body { max-width: 46rem; }

.ch-body section { padding-top: 0.6rem; scroll-margin-top: 5.5rem; }
.ch-body section + section { margin-top: 3rem; }

/* Every heading is a link target — the handbook links between chapters at
   h3 depth too — so all of them must clear the sticky header when jumped to,
   not only the ones that begin a section. */
.ch-body h2,
.ch-body h3 { scroll-margin-top: 5.5rem; }

.ch-body h2 {
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin: 0;
}

.ch-body h3 {
  margin: 2.1rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ch-body p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 62ch;
}

.ch-body strong { color: var(--ink); font-weight: 650; }
.ch-body a { color: var(--accent-text); text-underline-offset: 3px; }

.ch-body ul {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  max-width: 62ch;
}
.ch-body ul li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-soft);
  line-height: 1.58;
}
.ch-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--rule-firm);
}

.ch-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-sunk);
  border-radius: 4px;
  padding: 1px 5px;
}
.ch-body pre {
  margin: 1.2rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}
.ch-body pre code { background: none; padding: 0; }

/* --------------------------------------------------------- term and meaning */
/*
 * Every two-column table in the handbook is a term and its meaning — "To do
 * this / Do that", "Message says / Meaning". A definition list says that, and
 * wraps; the table it replaced grew a horizontal scrollbar on a phone.
 */
.pairs {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.pairs-head {
  margin: 0;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pairs-head span { color: var(--rule-firm); margin: 0 0.2rem; }

.pairs dl { margin: 0; }

.pairs div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.72rem 1rem;
  align-items: baseline;
}
.pairs div + div,
.pairs .pairs-group + div { border-top: 1px solid var(--line); }

.pairs dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.45;
}
.pairs dd { margin: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }
.pairs dd strong,
.pairs dt strong { color: var(--ink); font-weight: 700; }

/* A row with an empty second cell is a group label inside the list. */
.pairs-group {
  margin: 0;
  padding: 0.7rem 1rem 0.45rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pairs-group:first-child { border-top: 0; }

/* ----------------------------------------------------------- a real matrix */
/*
 * Three columns or more is genuinely tabular — the permissions grid — and
 * stays a table. It scrolls inside its own box so a wide matrix never takes
 * the page sideways with it.
 */
.table-scroll {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.table-scroll th,
.table-scroll td {
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table-scroll th {
  position: sticky;
  top: 0;
  background: var(--surface-soft);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
/* The first column names the row; it has to stay when the rest scrolls, or
   the ticks stop meaning anything. */
.table-scroll th:first-child,
.table-scroll td:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  white-space: normal;
  min-width: 13rem;
}
.table-scroll th:first-child { background: var(--surface-soft); z-index: 1; }
.table-scroll tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------- callouts */
/*
 * Two tones. Rose is "the software will refuse this"; amber is "this is the
 * bit people get wrong". A third would mean nobody reads any of them.
 */
.ch-note {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--note-hue, var(--rule-firm));
  border-radius: 10px;
  background: var(--surface);
  padding: 1.1rem 1.2rem;
  max-width: 62ch;
}
.ch-note[data-hue='rose'] { --note-hue: var(--rose); }
.ch-note[data-hue='amber'] { --note-hue: var(--amber); }
.ch-note[data-hue='slate'] { --note-hue: var(--slate); }

.ch-note-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--note-hue, var(--ink));
}
.ch-note p { margin-top: 0.7rem; }
.ch-note ul { margin-top: 0.9rem; gap: 0.8rem; }

/* ---------------------------------------------------------------- procedures */
/*
 * An ordered list in the handbook is always "do this, then this" — so the
 * numbers stay, and they are the point: getting these out of order is the
 * mistake the numbering prevents.
 */
.ch-body ol.ch-steps {
  list-style: none;
  counter-reset: step;
  margin: 1.4rem 0 0;
  padding: 0;
}

.ch-body ol.ch-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0.95rem 2.6rem;
  color: var(--ink-soft);
  line-height: 1.58;
  max-width: 58ch;
}
.ch-body ol.ch-steps > li:last-child { padding-bottom: 0; }

.ch-body ol.ch-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid #cdeee7;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

/* A list inside a step keeps its bullets and loses the step numbering. */
.ch-body ol.ch-steps ul { margin-top: 0.55rem; }

/*
 * The training chapter's "they can do this when they can" lists are markdown
 * task lists — real checkboxes, which are the point of them. They get the box
 * instead of a bullet, and they are not for ticking on a web page, so they
 * stay disabled and out of the tab order.
 */
.ch-body li:has(> input[type='checkbox']) { padding-left: 1.6rem; }
.ch-body li:has(> input[type='checkbox'])::before { display: none; }
.ch-body input[type='checkbox'] {
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent);
}

/* ----------------------------------------------------------------- glossary */
/*
 * Ninety definitions and not one heading. Set as a list of terms with an
 * alphabet to jump by, because nobody reads a glossary — they arrive knowing
 * the word they are looking for.
 */
.terms { margin: 0; }

.terms .term {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.terms dt { font-weight: 700; color: var(--ink); }
.terms dd { margin: 0; color: var(--ink-soft); line-height: 1.58; }

.term-letter {
  margin: 2.2rem 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  scroll-margin-top: 5.5rem;
}
.term-letter:first-child { margin-top: 0; }

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

.ch-pager {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ch-pager a { text-decoration: none; display: grid; gap: 0.2rem; max-width: 18rem; }
.ch-pager span {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ch-pager b { font-weight: 650; color: var(--ink); }
.ch-pager a:hover b { color: var(--accent-text); }
.ch-pager .next { text-align: right; }

/* ======================================================================
   WIDTHS
   ====================================================================== */

@media (max-width: 1000px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 0; }

  /*
   * The contents turn on their side.
   *
   * A sidebar restacked is six links and 300px of navigation above the first
   * sentence — the opposite of helping somebody look one thing up with a
   * patient at the counter. A disclosure was the other option and it is
   * worse: one more tap before the thing you came for. Sideways it costs one
   * row, and every section is still one tap away.
   */
  .toc {
    position: sticky;
    /* Under the site header, which is still sticky at these widths and, from
       styles.css, stands 73px tall. */
    top: 4.6rem;
    z-index: 20;
    border-left: 0;
    padding: 0;
    margin: 0 0 2rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .toc h2 { display: none; }

  .toc-list {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.5rem 0;
    /* The row scrolls; the fade at the trailing edge is the only thing that
       says so. */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
  .toc-list::-webkit-scrollbar { display: none; }

  .toc a {
    flex: none;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }
  .toc a::before { display: none; }
  .toc a.is-here { border-color: var(--accent); color: var(--accent-text); }

  .toc-letters { flex-wrap: nowrap; }
  .toc-letters a { min-width: 2.4rem; justify-content: center; }
}

/*
 * Below this the site header wraps its nav under the wordmark and stands
 * about 190px tall. Sticky, that is a fifth of a phone given over permanently
 * to navigation nobody is using while they read a manual — and it would push
 * the contents rail off the screen as well. On a chapter it scrolls away and
 * the contents take the top instead.
 */
@media (max-width: 760px) {
  body.help-chapter .site-header { position: static; }
  .toc { top: 0; }
}

@media (max-width: 640px) {
  .pairs div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .terms .term { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .ch-pager { display: grid; }
  .ch-pager .next { text-align: left; }
  .table-scroll th:first-child,
  .table-scroll td:first-child { min-width: 10rem; }
}

/* ======================================================================
   THE HUB  —  /help/
   ======================================================================
   The front door, generated from the same CHAPTERS list the chapters are.
   It used to be two hand-kept card grids that looked identical, so the
   difference between "start where you sit" and "the whole handbook" was
   invisible — and the second one drifted from the actual chapter list every
   time one was added or renamed. Now they are two different shapes because
   they answer two different questions.
*/

.hub { padding: 2.8rem 0 1rem; }

.hub-sec + .hub-sec { margin-top: 3.4rem; }

.hub-sec h2 {
  margin: 0;
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hub-sub { margin: 0.6rem 0 0; color: var(--ink-faint); max-width: 58ch; }

/* --- the six doors ------------------------------------------------------ */
/*
 * Named by the job the reader has, not by the chapter's title. Cards, because
 * these are six equal choices and one of them is yours.
 */
.doors {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.door {
  display: block;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.door:hover { border-color: var(--accent); transform: translateY(-2px); }
.door h3 { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.door p { margin: 0.4rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }

/* --- the handbook, in order --------------------------------------------- */
/*
 * A numbered list, not more cards. These are eleven chapters in a reading
 * order that is real — every chapter ends by handing you the next one — and
 * a grid of equal tiles is the one shape that cannot say so.
 */
.contents { margin-top: 1.5rem; border-top: 1px solid var(--line); }

.chapter-link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.chapter-link:hover { background: var(--surface); }

.chapter-link .no {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.chapter-link .what { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.chapter-link .what b {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.chapter-link:hover .what b { color: var(--accent-text); }

/* --- the questions ------------------------------------------------------ */

.faq { margin-top: 1.6rem; display: grid; gap: 1.8rem; }

.faq-group h3 {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.faq-group h3 a { color: var(--accent-text); text-decoration: none; }
.faq-group h3 a:hover { text-decoration: underline; }

/*
 * `styles.css` styles bare `details` and `summary` elements — 1.4rem of
 * padding, a bottom border, `display: flex` and a `+` marker — for the FAQ
 * shapes elsewhere on the site. All of it has to be taken back off here, or
 * a closed question stands 98px tall and carries two markers.
 */
.faq details {
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0;
  margin-bottom: 0.5rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: block;
  padding: 0.8rem 2.4rem 0.8rem 1rem;
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }

/* The marker is drawn rather than left to the browser: a triangle that
   changes shape between engines is the one part of an accordion people
   actually look at. */
.faq summary::after {
  content: '';
  font-size: 0;
  position: absolute;
  right: 1rem;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.35rem; }

.faq details p {
  margin: 0;
  padding: 0 1rem 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
}
.faq details a { color: var(--accent-text); text-underline-offset: 3px; }

/* --- the last word ------------------------------------------------------ */

.hub-band {
  margin-top: 3.5rem;
  padding: 3rem 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.hub-band h2 { margin: 0 0 0.4rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.hub-band p { margin: 0 auto 1.4rem; color: rgb(255 255 255 / 72%); max-width: 46ch; }

/* styles.css fills the primary button with `--brand`, which is this band's own
   near-black — the button disappeared into it. Teal on ink instead. */
.hub-band .btn-primary { background: var(--accent); color: #fff; }
.hub-band .btn-primary:hover { background: #14b8a6; }

@media (max-width: 640px) {
  .chapter-link { grid-template-columns: 2.2rem minmax(0, 1fr); padding-inline: 0; }
}
