/* Subtext user guide — sidebar + article, layered on /styles.css.
   Inherits --bg/--ink/--navy/--hairline and the light+dark palette from there. */

.guide {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 96px;
  align-items: start;
}

/* ---- Sidebar (desktop) ---- */
.toc {
  position: sticky;
  top: 64px; /* clears the sticky site header */
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 40px 0 40px;
  border-right: 1px solid var(--hairline);
  margin-right: -20px;
  padding-right: 20px;
}
.toc-home {
  display: block;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 26px;
}
.toc-sec + .toc-sec { margin-top: 26px; }
.toc-h {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 10px;
}
/* The same list styling drives the desktop rail and the mobile disclosure. */
.toc ul, .toc-m ul { list-style: none; margin: 0; padding: 0; }
.toc li, .toc-m li { margin: 0; }
.toc a, .toc-m nav a {
  display: block;
  padding: 6px 12px;
  margin-left: -12px;
  border-radius: 8px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
}
/* The chapter number in front of a sidebar link. */
.toc .tn, .toc-m nav .tn {
  display: inline-block;
  width: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ash);
}
.toc a.on .tn, .toc-m nav a.on .tn { color: var(--navy); }
.toc a:hover, .toc-m nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--navy) 6%, transparent); }
.toc a.on, .toc-m nav a.on {
  color: var(--navy);
  font-weight: 650;
  background: color-mix(in srgb, var(--navy) 10%, transparent);
}

/* ---- Sidebar (mobile) — a disclosure above the article ---- */
.toc-m { display: none; }
.toc-m summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: "▾"; margin-left: auto; font-size: 13px; color: var(--ash); }
.toc-m[open] summary::after { content: "▴"; }
.toc-m-now {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ash);
}
/* The 12px left pad offsets the negative margin the links carry for the rail. */
.toc-m nav { padding: 4px 0 22px 12px; }

/* ---- Article ---- */
.doc { padding-top: 48px; min-width: 0; }
.doc article { max-width: 68ch; }
.doc h1 {
  font-size: clamp(34px, 5.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-style: italic;
  margin: 14px 0 0;
}
.doc .lede {
  margin-top: 18px;
  font-size: clamp(18px, 2.3vw, 21px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-dim);
}
.doc h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 52px 0 14px;
  scroll-margin-top: 84px;
}
.doc h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 34px 0 10px;
}
.doc p { color: var(--ink-dim); font-size: 17px; line-height: 1.68; margin-bottom: 16px; }
.doc p b, .doc li b, .doc dd b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.doc code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: color-mix(in srgb, var(--navy) 8%, transparent);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
}

/* ---- Inline icons + tool swatches ----
   Lookalikes of the app's toolbar glyphs, set inline in the prose so a sentence
   can name the button by showing it. Sized in em so they track the type. */
.ic {
  display: inline-block;
  width: 1.12em;
  height: 1.12em;
  vertical-align: -0.19em;
  color: var(--navy);
}
.ic svg { width: 100%; height: 100%; display: block; }
/* In a definition term the icon leads the label, so give it a little air. */
.defs dt .ic { margin-right: .42em; }

/* The pen dots and highlighter chips, in the app's exact colours. */
.sw {
  display: inline-block;
  vertical-align: -0.1em;
  margin-right: .28em;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.sw.dot { width: .74em; height: .74em; border-radius: 999px; }
.sw.chip { width: 1.05em; height: .72em; border-radius: 3px; }
.sw:last-of-type { margin-right: .5em; }

/* Numbered steps — the guide's spine. */
.steps { list-style: none; margin: 22px 0 26px; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 46px;
  margin-bottom: 16px;
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.62;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The welcome page's eight chapters. */
.chapters { list-style: none; margin: 24px 0 8px; padding: 0; }
.chapters li { margin-bottom: 10px; }
.chapters a {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease;
}
.chapters a:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--navy) 40%, transparent); }
.chapters .cn { flex: none; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--navy); }
.chapters .ct { display: flex; flex-direction: column; gap: 3px; }
.chapters .ct b { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.chapters .ct i { font-style: normal; font-size: 15px; line-height: 1.5; color: var(--ink-dim); }

.bullets { list-style: none; margin: 4px 0 22px; padding: 0; }
.bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.62;
}
.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--navy); font-weight: 700; }

/* Definition rows — one control, one sentence. */
.defs { margin: 22px 0 26px; }
.defs dt {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 18px;
}
.defs dt:first-child { margin-top: 0; }
.defs dd {
  margin: 5px 0 0;
  padding-left: 0;
  color: var(--ink-dim);
  font-size: 16.5px;
  line-height: 1.62;
}
@media (min-width: 720px) {
  .defs { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 24px; }
  .defs dt { margin-top: 0; padding-top: 14px; }
  .defs dd { margin: 0; padding-top: 14px; }
  .defs dt + dd { border-top: 1px solid var(--hairline); }
  .defs dt { border-top: 1px solid var(--hairline); }
  .defs > dt:first-child, .defs > dt:first-child + dd { border-top: 0; padding-top: 0; }
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--navy);
  background: var(--surface);
}
/* Direct child only — an inline <b> inside the body copy must stay inline. */
.callout > b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.callout p b { color: var(--ink); font-weight: 600; }
.callout p { margin: 0; font-size: 16px; line-height: 1.62; }
.callout.warn { border-left-color: var(--amber); }

/* ---- "Send sides straight to Subtext" ----------------------------------
   A drawn replica of the app's own walkthrough sheet (SendSidesCard.swift).
   The app's "vermillion" accent resolves to the same navy as the website, so
   this uses --navy throughout and needs no palette of its own. */
.sendsides { margin: 30px 0 34px; }
.ss-art {
  max-width: 430px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* The email attachment, with its Share affordance. */
.ss-attach {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.ss-doc {
  flex: none;
  width: 34px;
  height: 42px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.ss-doc i { width: 20px; height: 2px; border-radius: 2px; background: var(--ash); opacity: .5; }
.ss-doc i.short { width: 12px; }
.ss-attach-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ss-attach-txt b { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.ss-attach-txt span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--ash); }
.ss-share { flex: none; width: 21px; height: 21px; color: var(--navy); }
.ss-share svg { width: 100%; height: 100%; display: block; }

.ss-chev { width: 28px; height: 12px; margin: 9px auto; color: var(--ash); opacity: .65; }

/* The share sheet, Subtext lit up. */
.ss-sheet {
  padding: 12px 14px 16px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 18px;
}
.ss-grab { display: block; width: 34px; height: 5px; border-radius: 999px; background: var(--hairline); margin: 0 auto 16px; }
.ss-apps { display: flex; justify-content: center; gap: 16px; }
.ss-app { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 62px; }
.ss-tile {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ss-tile svg { width: 26px; height: 26px; display: block; }
.ss-name { font-family: var(--mono); font-size: 8.5px; letter-spacing: .04em; color: var(--ash); text-align: center; }
.ss-name.on { color: var(--navy); font-weight: 700; }

/* The Subtext app icon: cream tile, wordmark, the rule beneath — ringed. */
.ss-subtext {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 0 5px;
  overflow: hidden;
  background: #f3f1ea;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 0 0 2.5px var(--navy), 0 6px 18px color-mix(in srgb, var(--navy) 45%, transparent);
}
/* 9.8px is the largest the wordmark fits at inside the 52px tile — the same
   thing SwiftUI's minimumScaleFactor does to it in the app. */
.ss-subtext b { font-size: 9.8px; font-weight: 900; letter-spacing: -.02em; color: #17181b; line-height: 1; white-space: nowrap; }
.ss-subtext i { display: block; width: 21px; height: 2.5px; border-radius: 2px; background: var(--navy); }

.ss-steps { margin-bottom: 18px; }
.ss-more {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.ss-more svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--navy); }
.ss-more b { color: var(--ink); font-weight: 600; }

@media (max-width: 460px) {
  .ss-apps { gap: 9px; }
  .ss-app { width: 56px; }
}

/* ---- Rehearsal screen mocks ----
   The cards themselves are styled by /styles.css (.mock, .cue, .amber,
   .redact, .listening, .wave) — shared with the marketing home page. This is
   just the frame that stands them side by side. */
.mocks {
  display: grid;
  gap: 26px 22px;
  margin: 30px 0 34px;
}
.mocks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mocks-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mockcard { margin: 0; min-width: 0; }
.mockcard figcaption {
  margin-top: 15px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ash);
}
.mockcard figcaption b { color: var(--ink); font-weight: 650; }
/* The mock's type is sized for a phone column; hold it there so the amber
   card doesn't stretch into a letterbox on a wide screen. */
.mockcard .mock { max-width: 330px; margin: 0 auto; }

@media (max-width: 640px) {
  .mocks-2, .mocks-3 { grid-template-columns: minmax(0, 1fr); }
  .mocks { gap: 32px; }
}

/* ---- Voiceover recorder mocks ----
   Drawn replicas of the app's pinned control bar and its Review take rows.
   Colours are the app's own: #D2503F record circle, and the level meter's
   #2E9E5B → #C8881A → #D2503F gradient. */
.vo-mockframe { margin: 30px 0 34px; }
.vo-cap {
  margin: 14px auto 0;
  max-width: 430px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ash);
}

.vo-bar, .vo-takes {
  max-width: 430px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
}

/* Scene chips */
.vo-chips { display: flex; gap: 7px; overflow: hidden; margin-bottom: 15px; }
.vo-chip {
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ash);
  white-space: nowrap;
}
.vo-chip.ok { color: var(--navy); border-color: color-mix(in srgb, var(--navy) 35%, transparent); }
.vo-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.vo-chip.add { color: var(--navy); padding: 7px 12px; font-size: 12px; letter-spacing: 0; }

/* Level meter — peak-hold tick and all */
.vo-meter {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  overflow: hidden;
  margin-bottom: 16px;
}
.vo-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2e9e5b 0%, #c8881a 72%, #d2503f 100%);
  background-size: 172% 100%;
}
.vo-meter b { position: absolute; top: 0; bottom: 0; left: 71%; width: 2px; background: var(--ink); opacity: .45; }

/* Take count · record · Review */
.vo-row { display: flex; align-items: center; justify-content: space-between; }
.vo-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; }
.vo-stat em { font-style: normal; font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .18em; color: var(--ash); }
.vo-stat b { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--ink); }
.vo-rec {
  width: 62px; height: 62px; border-radius: 999px;
  border: 4px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
}
.vo-rec i { width: 44px; height: 44px; border-radius: 14px; background: #d2503f; display: block; }
.vo-review { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; color: var(--navy); }
.vo-review svg { width: 21px; height: 21px; }
.vo-review em { font-style: normal; font-size: 11px; font-weight: 600; }
.vo-hint { margin: 13px 0 0; text-align: center; font-size: 13px; color: var(--ash); }

/* Review take rows */
.vo-scene-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vo-scene-head span:first-child { font-size: 15px; font-weight: 700; color: var(--ink); }
.vo-variance {
  font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  padding: 3px 8px; border-radius: 999px;
}
.vo-take {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 13px;
  border: 1px solid var(--hairline);
}
.vo-take + .vo-take { margin-top: 8px; }
.vo-take.kept { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.vo-play {
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  background: color-mix(in srgb, var(--navy) 12%, transparent);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.vo-play svg { width: 16px; height: 16px; }
.vo-take-lbl { font-size: 15px; font-weight: 600; color: var(--ink); flex: 1; }
.vo-take-dur { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.vo-star { flex: none; width: 21px; height: 21px; color: var(--ash); }
.vo-star.on { color: var(--amber); }
.vo-star svg { width: 100%; height: 100%; display: block; }

/* ---- The reader's browser page, drawn ----
   Tokens copied from the worker's SHARE_PAGE_HTML. Pinned light in both
   themes: that page has no dark mode, so a dark mock would misrepresent it. */
.rdr-frame { margin: 32px 0 36px; }
.rdr-cap {
  margin: 15px auto 0;
  max-width: 460px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ash);
}
.rdr-browser {
  --r-bg: #f6f5f2;
  --r-surface: #fff;
  --r-ink: #1a1b1e;
  --r-ink-dim: #494b51;
  --r-ash: #74767c;
  --r-ash-dim: #a4a6ac;
  --r-hairline: #e2e0d9;
  --r-accent: #2f66d6;
  --r-tint: #eceae3;
  --r-accent-tint: #e9f0fb;
  --r-accent-bd: #a9c2ef;
  --r-rec: #d2503f;
  --r-ok: #2e9e5b;

  max-width: 460px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
}
.rdr-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #e8e6e0;
  border-bottom: 1px solid var(--r-hairline);
}
.rdr-dots { display: flex; gap: 5px; }
.rdr-dots i { width: 8px; height: 8px; border-radius: 999px; background: #c6c3bb; display: block; }
.rdr-url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #85837c;
  background: #f6f5f2;
  border-radius: 999px;
  padding: 4px 10px;
}
.rdr-page { background: var(--r-bg); padding: 16px 16px 0; }

.rdr-head { padding-bottom: 12px; border-bottom: 1px solid var(--r-hairline); }
.rdr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rdr-kicker { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--r-accent); }
.rdr-get { background: var(--r-accent); color: #fff; font-size: 10.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.rdr-title { font-size: 17px; font-weight: 600; color: var(--r-ink); }
.rdr-sub { margin-top: 3px; font-size: 12.5px; color: var(--r-ink-dim); }
.rdr-sub b { font-family: var(--mono); font-weight: 700; color: var(--r-ink); }
.rdr-bar { margin-top: 11px; height: 3px; border-radius: 999px; background: var(--r-hairline); overflow: hidden; }
.rdr-bar i { display: block; width: 60%; height: 100%; background: var(--r-accent); }
.rdr-prog { margin-top: 7px; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--r-ash); }

.rdr-lines { padding: 6px 0 4px; }
.rdr-line { padding: 11px 10px; border-radius: 5px; }
.rdr-line.mine { opacity: .62; }
.rdr-line.current { background: var(--r-accent-tint); box-shadow: inset 0 0 0 1.5px var(--r-accent-bd); }
.rdr-nm {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--r-ash);
}
.rdr-line.current .rdr-nm { color: var(--r-accent); }
.rdr-tx { margin-top: 5px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--r-ink); }
.rdr-line.mine .rdr-tx { color: var(--r-ink-dim); font-style: italic; }
.rdr-tag {
  font-family: var(--mono); font-size: 7.5px; font-weight: 700; letter-spacing: .08em;
  background: var(--r-tint); color: var(--r-ash); padding: 3px 6px; border-radius: 999px;
}
.rdr-st { display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; letter-spacing: .06em; color: var(--r-ash); text-transform: none; font-weight: 600; }
.rdr-st i { width: 6px; height: 6px; border-radius: 999px; background: var(--r-ash-dim); }
.rdr-st.ok { color: var(--r-ok); }
.rdr-st.ok i { background: var(--r-ok); }

.rdr-dock {
  margin: 4px -16px 0;
  padding: 13px 16px 16px;
  background: var(--r-surface);
  border-top: 1px solid var(--r-hairline);
}
.rdr-cue { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--r-ash); }
.rdr-cue b { color: var(--r-accent); }
.rdr-ctl { display: flex; align-items: center; gap: 11px; margin-top: 11px; }
.rdr-rec { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--r-accent); display: flex; align-items: center; justify-content: center; }
.rdr-rec i { width: 15px; height: 15px; border-radius: 999px; background: #fff; display: block; }
.rdr-meta { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rdr-meta b { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--r-ink); }
.rdr-meta em { font-style: normal; font-size: 10.5px; color: var(--r-ash); }
.rdr-btn {
  flex: none; font-size: 11.5px; font-weight: 600; padding: 7px 12px;
  border-radius: 999px; border: 1px solid var(--r-hairline); color: var(--r-ash-dim); background: var(--r-surface);
}
.rdr-btn.accent { color: var(--r-accent); border-color: var(--r-accent-bd); }

@media (max-width: 460px) {
  .rdr-btn { padding: 7px 9px; }
  .rdr-ctl { gap: 8px; }
}

/* ---- Figures ---- */
.fig { margin: 34px 0 38px; }
.fig-media { display: flex; justify-content: center; }
.fig img { display: block; width: 100%; height: auto; }
.fig figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--ash);
  font-size: 14.5px;
  line-height: 1.55;
}
.fig figcaption b { color: var(--ink-dim); font-weight: 600; }

/* Portrait phone: framed like a device, kept small. */
.fig-phone .fig-media > * {
  width: 100%;
  max-width: 292px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}
/* Landscape phone (the teleprompter) and full-width art. */
.fig-landscape .fig-media > *,
.fig-wide .fig-media > * {
  width: 100%;
  max-width: 640px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}
/* A cropped close-up of one control — no device frame. */
.fig-detail .fig-media > * {
  width: 100%;
  max-width: 470px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

/* Placeholder shown until the PNG lands in web/guide/img/. */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px 22px;
  min-height: 190px;
  background: color-mix(in srgb, var(--navy) 4%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--navy) 34%, transparent) !important;
  box-shadow: none !important;
}
.fig-phone .ph { aspect-ratio: 9 / 19.5; }
.fig-landscape .ph { aspect-ratio: 19.5 / 9; }
.ph-k {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}
.ph code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: none; padding: 0; }
.ph p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ash); max-width: 34ch; }

/* ---- Pager + helpline ---- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.pg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  max-width: 47%;
}
.pg:hover { border-color: color-mix(in srgb, var(--navy) 40%, transparent); }
.pg.next { text-align: right; margin-left: auto; }
.pg span { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash); }
.pg b { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.helpline { margin-top: 34px; font-size: 14px; color: var(--ash); }
.helpline a { color: var(--ink-dim); }

@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 64px; }
  .toc { display: none; }
  .toc-m { display: block; border-bottom: 1px solid var(--hairline); margin-top: 8px; }
  .doc { padding-top: 28px; }
  .doc h2 { margin-top: 42px; }
  .pg { max-width: 100%; }
}
