/* The Rolling Point of Contact — web edition
   Palette carried over from the print build (build/build.py):
   ink #14161a · accent #E4572E · deep blue #26497d */

:root {
  --accent: #E4572E;
  --accent-soft: #fbeee8;
  --blue: #26497d;
  --ink: #14161a;
  --body: #2c3038;
  --muted: #6b7280;
  --faint: #9aa1ab;
  --paper: #fbfaf8;
  --card: #ffffff;
  --rule: #e3e0da;
  --rule-soft: #eeebe5;
  --shadow: 0 1px 2px rgba(20,22,26,.05), 0 8px 24px -12px rgba(20,22,26,.18);
  --shadow-lift: 0 2px 4px rgba(20,22,26,.06), 0 18px 40px -18px rgba(20,22,26,.28);

  --t1: #4b8a8c;
  --t2: #5c8f5a;
  --t3: #c8912f;
  --t4: #d2662f;
  --t5: #b23b3b;
  --t0: #6f6a86;

  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --wrap: 1180px;
  --narrow: 44rem;
  --radius: 12px;

  /* edge shadow for scrollable tables; derived from --ink so it adapts to theme */
  --table-shadow: color-mix(in srgb, var(--ink) 20%, transparent);
}

:root[data-theme="dark"], html.dark {
  --accent: #ff7a4d;
  --accent-soft: #2a1c15;
  --blue: #8fb4e8;
  --ink: #f2f0ec;
  --body: #cdc9c2;
  --muted: #9b958c;
  --faint: #746e66;
  --paper: #131417;
  --card: #1a1c20;
  --rule: #2c2f35;
  --rule-soft: #23262b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 18px 40px -18px rgba(0,0,0,.8);
  --t1: #6fb3b5; --t2: #82b87f; --t3: #dfb055; --t4: #e88b52; --t5: #dd6b6b; --t0: #9a94b5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #ff7a4d; --accent-soft: #2a1c15; --blue: #8fb4e8;
    --ink: #f2f0ec; --body: #cdc9c2; --muted: #9b958c; --faint: #746e66;
    --paper: #131417; --card: #1a1c20; --rule: #2c2f35; --rule-soft: #23262b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 18px 40px -18px rgba(0,0,0,.8);
    --t1: #6fb3b5; --t2: #82b87f; --t3: #dfb055; --t4: #e88b52; --t5: #dd6b6b; --t0: #9a94b5;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { font-family: var(--sans); color: var(--ink); line-height: 1.18;
  letter-spacing: -.018em; font-weight: 650; margin: 0; }

a { color: var(--blue); text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent); }
a:hover { text-decoration-color: currentColor; }

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

.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: .5rem; left: .5rem; z-index: 200; width: auto; height: auto;
  clip: auto; padding: .6rem 1rem; background: var(--accent); color: #fff; border-radius: 8px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow, .narrow { max-width: calc(var(--narrow) + 3rem); }
.section { padding: 3rem 0 4rem; }

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header .bar {
  max-width: var(--wrap); margin: 0 auto; padding: .7rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 30px; height: 18px; flex: none; position: relative;
}
.brand .mark::before, .brand .mark::after {
  content: ""; position: absolute; top: 0; width: 18px; height: 18px;
  border: 2.5px solid currentColor; border-radius: 50%;
}
.brand .mark::before { left: 0; color: var(--accent); }
.brand .mark::after { right: 0; color: var(--ink); opacity: .55; }
.brand-text {
  font-family: var(--sans); font-size: .82rem; font-weight: 650; line-height: 1.18;
  letter-spacing: -.01em;
}
.brand-text em { font-style: normal; color: var(--accent); }

#site-nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
#site-nav a {
  font-family: var(--sans); font-size: .875rem; font-weight: 550; color: var(--muted);
  text-decoration: none; padding: .45rem .75rem; border-radius: 7px;
}
#site-nav a:hover { color: var(--ink); background: var(--rule-soft); }
#site-nav a.active { color: var(--ink); background: var(--rule-soft); }

.theme-toggle {
  margin-left: .35rem; width: 32px; height: 32px; border: 1px solid var(--rule);
  border-radius: 8px; background: transparent; cursor: pointer; position: relative;
  color: var(--muted);
}
.theme-toggle::before { content: "◐"; font-size: 1rem; line-height: 1; }
.theme-toggle:hover { color: var(--ink); border-color: var(--faint); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    margin-left: auto; width: 38px; height: 34px; padding: 0 7px;
    background: transparent; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  #site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .5rem;
    background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
  }
  #site-nav.open { display: flex; }
  #site-nav a { padding: .7rem .8rem; font-size: 1rem; }
  .theme-toggle { margin: .4rem .8rem; width: auto; padding: .5rem; }
  .theme-toggle::after { content: " Toggle dark mode"; font-family: var(--sans); font-size: .9rem; }
}

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

.hero { padding: 5rem 1.5rem 4rem; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 20% auto; height: 420px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%);
  pointer-events: none;
}
.hero-inner { max-width: 46rem; margin: 0 auto; position: relative; }
.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 650; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
}
.eyebrow a { color: inherit; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.025em;
  font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 0 0 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--muted); margin: 0 auto 1.75rem; max-width: 34rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-meta { font-family: var(--sans); font-size: .82rem; color: var(--faint); margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  padding: .7rem 1.35rem; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--rule); color: var(--ink); background: var(--card);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

/* ------------------------------------------------------------ bands */

.band { padding: 4rem 0; }
.band.alt { background: color-mix(in srgb, var(--ink) 3.5%, var(--paper)); border-block: 1px solid var(--rule-soft); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5rem; }
.section-title.small { font-size: 1.15rem; margin-bottom: 1.25rem; }
.section-sub { color: var(--muted); margin: 0 0 2rem; max-width: 42rem; }

/* ------------------------------------------------------------ families */

.family-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.family-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 1.6rem; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--rule); color: var(--body);
  transition: transform .14s ease, box-shadow .14s ease;
  border-top: 3px solid var(--fam, var(--accent));
}
.family-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.family-card.contact { --fam: var(--accent); }
.family-card.relational { --fam: var(--blue); }
.family-card.somatic { --fam: var(--t1); }
.family-code {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; font-family: var(--mono);
  font-size: .95rem; font-weight: 700; color: #fff; background: var(--fam, var(--accent));
}
.family-card h3 { margin: .9rem 0 .5rem; font-size: 1.2rem; }
.family-card p { margin: 0 0 1.25rem; font-size: .95rem; color: var(--muted); }
.family-count {
  margin-top: auto; padding-top: .25rem;
  font-family: var(--sans); font-size: .78rem; color: var(--faint); font-weight: 600;
}

/* ------------------------------------------------------------ tiers */

.tier-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; counter-reset: t; }
.tier-list li {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
}
.tier-num {
  flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem; color: #fff;
}
.tier-list li strong { font-family: var(--sans); display: block; font-size: .98rem; color: var(--ink); }
.tier-list li p { margin: .15rem 0 0; font-size: .95rem; color: var(--muted); }
.t1 { background: var(--t1); } .t2 { background: var(--t2); } .t3 { background: var(--t3); }
.t4 { background: var(--t4); } .t5 { background: var(--t5); } .t0 { background: var(--t0); }

/* ------------------------------------------------------------ chapter list */

.chapter-list { display: grid; gap: .5rem; }
.chapter-row {
  display: flex; gap: 1.1rem; align-items: baseline; padding: 1.05rem 1.2rem;
  border-radius: 10px; text-decoration: none; color: var(--body);
  border: 1px solid transparent; transition: background .12s, border-color .12s;
}
.chapter-row:hover { background: var(--card); border-color: var(--rule); }
.ch-num {
  font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--accent);
  flex: none; width: 1.5rem;
}
.ch-body strong { display: block; font-family: var(--sans); font-size: 1.02rem; color: var(--ink); margin-bottom: .15rem; }
.ch-body span { font-size: .93rem; color: var(--muted); }
.chapter-list.large .chapter-row { padding: 1.3rem 1.2rem; border-bottom: 1px solid var(--rule-soft); border-radius: 0; }
.chapter-list.large .chapter-row:hover { border-color: var(--rule); border-radius: 10px; }

/* ------------------------------------------------------------ page heads */

.page-head { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--rule-soft); }
.page-head.compact { padding: 2.5rem 0 1.5rem; }
.page-head h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.022em;
  font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .75rem;
}
.page-head .lede { margin-left: 0; font-size: 1.08rem; }

/* ------------------------------------------------------------ prose */

.prose { max-width: var(--narrow); }
.prose > * + * { margin-top: 1.15rem; }
.prose p { margin: 0; }
.prose h2 {
  font-size: 1.42rem; margin-top: 2.75rem; padding-top: .35rem;
  border-top: 1px solid var(--rule-soft);
}
.prose h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.13rem; margin-top: 2rem; color: var(--blue); }
.prose h4 { font-size: 1rem; margin-top: 1.5rem; }
.prose ul, .prose ol { margin-left: 0; padding-left: 1.35rem; }
.prose li { margin: .35rem 0; }
.prose li > ul, .prose li > ol { margin-top: .35rem; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.prose blockquote {
  margin: 1.5rem 0; padding: .9rem 1.25rem; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 8px 8px 0; font-style: italic; color: var(--body);
}
.prose blockquote p { margin: 0; }
.prose code {
  font-family: var(--mono); font-size: .86em; background: var(--rule-soft);
  padding: .12em .38em; border-radius: 4px;
}
.prose pre {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 1rem 1.1rem; overflow-x: auto; font-size: .84rem; line-height: 1.55;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }

/* wrapper added by the generator; scrolls wide tables and hints with edge shadows */
.table-scroll {
  overflow-x: auto; margin: 1.15rem 0; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--paper), transparent) 0 0 / 22px 100% no-repeat,
    linear-gradient(to left,  var(--paper), transparent) 100% 0 / 22px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, var(--table-shadow), transparent) 0 0 / 13px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, var(--table-shadow), transparent) 100% 0 / 13px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.table-scroll > table { margin: 0; }
.prose table {
  width: auto; min-width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem;
}
.prose table thead { background: var(--rule-soft); }
.prose th, .prose td {
  border-bottom: 1px solid var(--rule); padding: .6rem .75rem; text-align: left; vertical-align: top;
}
.prose th { font-weight: 650; color: var(--ink); white-space: nowrap; }

.callout {
  padding: 1rem 1.25rem; background: var(--accent-soft); border: 1px solid
  color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 10px;
  font-family: var(--sans); font-size: .93rem;
}
.callout p { margin: 0; }

/* ------------------------------------------------------------ chapter layout + toc */

/* Column width lives on the TRACK, and the track group is centred with
   justify-content. Do not put `margin: 0 auto` (or justify-self) on the grid
   items: auto margins switch an item from stretch- to fit-content sizing, so
   .prose sizes to its widest content and overflows its own track on phones.
   minmax(0,…) likewise keeps a wide <pre> from inflating the track. */
.chapter-layout {
  max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.5rem 4rem;
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, var(--narrow));
  justify-content: center;
}
.chapter-layout.head { padding: 3.5rem 1.5rem 0; }
.chapter-layout > * { min-width: 0; }
.chapter-toc, .toc-spacer { display: none; }

@media (min-width: 1000px) {
  .chapter-layout { grid-template-columns: 15rem minmax(0, var(--narrow)); }
  .chapter-toc { display: block; position: sticky; top: 5.5rem; align-self: start; max-height: 80vh; overflow-y: auto; }
  .toc-spacer { display: block; }
}
.toc-label {
  font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 .75rem;
}
.chapter-toc nav { display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.chapter-toc a {
  font-family: var(--sans); font-size: .84rem; line-height: 1.4; color: var(--muted);
  text-decoration: none; padding: .4rem .85rem; border-left: 2px solid transparent; margin-left: -1px;
}
.chapter-toc a:hover { color: var(--ink); }
.chapter-toc a.current { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.pager {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem;
  padding-top: 1.5rem; border-top: 1px solid var(--rule);
}
.pager a {
  font-family: var(--sans); text-decoration: none; color: var(--body);
  padding: .8rem 1rem; border: 1px solid var(--rule); border-radius: 10px; max-width: 48%;
}
.pager a:hover { border-color: var(--faint); background: var(--card); }
.pager span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.pager strong { font-size: .92rem; color: var(--ink); font-weight: 600; }
.pager .next { text-align: right; margin-left: auto; }

/* ------------------------------------------------------------ filters */

.filters {
  position: sticky; top: 3.6rem; z-index: 50; padding: 1rem 0 .5rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--rule-soft);
}
.filter-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .55rem; flex-wrap: wrap; }
.filter-label {
  font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); width: 4.2rem; flex: none;
}
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--sans); font-size: .82rem; font-weight: 550; color: var(--muted);
  background: var(--card); border: 1px solid var(--rule); border-radius: 999px;
  padding: .35rem .8rem; cursor: pointer; transition: all .12s ease;
}
.chip:hover { color: var(--ink); border-color: var(--faint); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.on .tier-dot { box-shadow: 0 0 0 2px var(--paper); }
.tier-dot { width: .6rem; height: .6rem; border-radius: 50%; flex: none; }
.chip.reset { margin-left: auto; }

.search-row { gap: .6rem; }
.search { flex: 1; display: block; }
.search input {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: .65rem 1rem; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--card); -webkit-appearance: none;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.search input::placeholder { color: var(--faint); }

.result-count {
  font-family: var(--sans); font-size: .78rem; color: var(--faint); margin: .35rem 0 .5rem;
}

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

.card-grid {
  display: grid; gap: 1rem; padding: 1.75rem 0 4rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.game-card {
  display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.2rem 1rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; color: var(--body);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--faint); }
.game-card[hidden] { display: none; }
.gc-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-code {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem;
  height: 1.5rem; padding: 0 .45rem; border-radius: 6px; font-family: var(--mono);
  font-size: .78rem; font-weight: 700; color: #fff; background: var(--accent);
}
.card-code.relational { background: var(--blue); }
.card-code.somatic { background: var(--t1); }
.game-card h3 { font-size: 1.05rem; margin: 0; line-height: 1.25; }
.gc-blurb { font-size: .89rem; line-height: 1.5; color: var(--muted); margin: 0; flex: 1; }
.gc-meta {
  display: flex; gap: .5rem; flex-wrap: wrap; font-family: var(--sans); font-size: .75rem;
  color: var(--faint); padding-top: .6rem; border-top: 1px solid var(--rule-soft);
}
.gc-meta span:not(:last-child)::after { content: " ·"; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem; font-family: var(--sans);
  font-size: .74rem; font-weight: 650; padding: .2rem .55rem; border-radius: 999px;
  color: #fff; white-space: nowrap;
}
.badge.small { font-size: .68rem; padding: .15rem .45rem; }
.badge.tier.t1 { background: var(--t1); } .badge.tier.t2 { background: var(--t2); }
.badge.tier.t3 { background: var(--t3); } .badge.tier.t4 { background: var(--t4); }
.badge.tier.t5 { background: var(--t5); } .badge.tier.t0 { background: var(--t0); }
.badge.group { background: transparent; color: var(--muted); border: 1px solid var(--rule); }
.badge.fam { background: transparent; color: var(--muted); border: 1px solid var(--rule); }

.empty { text-align: center; padding: 3rem 0 5rem; color: var(--muted); font-family: var(--sans); }
.linkish { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer;
  font: inherit; text-decoration: underline; }

/* ------------------------------------------------------------ card detail */

.card-page { padding: 2.5rem 0 3rem; }
.card-head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: .9rem; }
.card-head .card-code { height: 2rem; min-width: 2.6rem; font-size: .95rem; margin-top: .35rem; }
.card-head h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0;
}
.card-badges { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* Flex, not grid: with 3 fields on a 2-column phone layout a grid leaves a dead
   cell, whereas the last flex item just stretches to fill the row. */
.card-meta {
  display: flex; flex-wrap: wrap; gap: 1px;
  margin: 0 0 2.25rem; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 10px; overflow: hidden;
}
.meta-item { flex: 1 1 140px; background: var(--card); padding: .8rem 1rem; }
.card-meta dt {
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: .2rem;
}
.card-meta dd { margin: 0; font-family: var(--sans); font-size: .92rem; color: var(--ink); }

.card-body .card-section { margin-top: 2rem; }
.card-body .card-section:first-child { margin-top: 0; }
.card-body .card-section h2 {
  font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); border: none; margin: 0 0 .6rem; padding: 0;
}
.card-body .card-section > * + * { margin-top: .8rem; }
.card-body .section-play ol { counter-reset: step; list-style: none; padding-left: 0; }
.card-body .section-play ol li {
  position: relative; padding-left: 2.4rem; margin: .85rem 0; counter-increment: step;
}
.card-body .section-play ol li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--rule-soft); color: var(--ink);
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
}
.card-body .section-watch-for {
  padding: 1.1rem 1.25rem; border-radius: 10px; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.card-body .section-watch-for h2 { margin-bottom: .4rem; }
.card-body .section-cues { font-style: italic; color: var(--muted); }

.card-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 3rem;
  padding-top: 1.75rem; border-top: 1px solid var(--rule); }

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

.site-footer {
  margin-top: auto; padding: 3rem 1.5rem; border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 3.5%, var(--paper));
}
.foot-inner { max-width: var(--wrap); margin: 0 auto; }
.foot-title { font-family: var(--sans); font-weight: 650; color: var(--ink); margin: 0; }
.foot-sub { font-size: .93rem; color: var(--muted); margin: .2rem 0 1.1rem; }
.foot-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.foot-nav a { font-family: var(--sans); font-size: .87rem; color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }
.foot-fine { font-size: .82rem; color: var(--faint); max-width: 48rem; margin: 0; line-height: 1.6; }

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

@media print {
  .site-header, .site-footer, .filters, .pager, .card-actions, .chapter-toc, .band.alt { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card-page, .section { padding: 0; }
  a { color: #000; text-decoration: none; }
}
