/* ============================================================================
   Guides — the written help library at /guides.

   Tokens only, never a literal colour: appearance.js swaps the whole palette by
   adding `body.light`, and a hardcoded surface with a themed foreground is how
   the account dropdown once shipped at 1.01:1 contrast (contracts/app/CLAUDE.md).
   The chrome — .app, .topbar, .brand, .viewnav, .main — comes from tool.css;
   this file styles only what is inside <main>.
   ========================================================================== */

.gd-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  /* --ink-faint is #6b675d, which is 3.49:1 on the dark ground — under the 4.5:1
     a word needs, and these pages lean on it for captions, table headers, the
     eyebrow, the card meta and the "what it will not do" line. #83807a is 4.9:1
     and still clearly quieter than --ink-dim (6.6:1), so the type hierarchy the
     token exists for survives. The Light palette's own value already measures
     5.9:1, so it is handed straight back below rather than overridden here. */
  --ink-faint: #83807a;
}

/* --warn and --good are defined ONCE, in the dark palette, and appearance.js's
   Light block does not redefine them — so on the #f5f2ea ground they measure
   2.4:1 and 2.9:1, well under the 4.5:1 a word needs. Re-bind the two tokens for
   this ground rather than spelling a hex at each use site, so everything inside
   a guide picks the readable value up automatically.
     #a04e17 on #f5f2ea = 5.2:1      #2f6b34 on #f5f2ea = 5.7:1
   SCOPED TO .gd-wrap DELIBERATELY. The same two tokens are used as text in ~20
   other places (tool.css's .tile__num.neg, .mover__d, company.css's .age.stale,
   account.css's .note.warn, intel.html's digest messages …) and are equally
   unreadable in Light there. That is a palette fix for appearance.js, not a
   change to smuggle in through the help pages.

   --accent is re-bound for the same reason, and it is the house rule already
   written down for outgoing mail (web/CLAUDE.md): #e8a13c is a FILL colour, not
   a TEXT one. On this ground it measures 1.96:1, so every link, every italic in
   an h1 and every "All guides" crumb was failing AA in Light while passing in
   Dark. --accent-soft is the text-weight twin the Light palette already defines
   (#8a5a10, 5.3:1). Nothing in these pages paints accent as a fill, so pointing
   one at the other is safe here and fixes all of them at once. */
body.light .gd-wrap { --warn: #a04e17; --good: #2f6b34; --accent: var(--accent-soft);
                      --ink-faint: #615d54; }   /* the Light palette's own value, 5.9:1 */

/* ---- shared prose ---------------------------------------------------------- */
.gd-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.6rem;
}
.gd-wrap h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  margin: 0;
}
.gd-wrap h1 em { font-style: italic; color: var(--accent); }
.gd-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 34rem;
  margin: 0.9rem 0 0;
}
.gd-wrap h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.2rem;
}
/* The doubled class is not a typo. appearance.js INJECTS `body.light h3{color:#9a6410}`
   at runtime, which ties with a plain `.gd-wrap h3` on specificity and wins on
   order — so every heading in these guides turned gold in Light and stayed white
   in Dark, a difference nobody chose. `.gd-wrap.gd-wrap` is (0,2,1) and settles it
   in both themes. The three headings below repeat the trick for the same reason. */
.gd-wrap.gd-wrap h3 { font-size: 1rem; font-weight: 600; margin: 1.6rem 0 0.35rem; color: var(--ink); }
.gd-wrap p { line-height: 1.65; color: var(--ink-dim); margin: 0.7rem 0 0; }
.gd-wrap p strong, .gd-wrap li strong { color: var(--ink); font-weight: 600; }
.gd-wrap ol, .gd-wrap ul { margin: 0.7rem 0 0; padding-left: 1.25rem; color: var(--ink-dim); }
.gd-wrap li { line-height: 1.6; margin: 0.35rem 0; }
.gd-wrap a { color: var(--accent); text-underline-offset: 2px; }
.gd-wrap a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* a control the reader will look for on screen */
.ui {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05em 0.4em;
  white-space: nowrap;
  color: var(--ink);
}

/* ---- the index's list of guides -------------------------------------------- */
/* scoped to .gd-wrap on purpose: the generic `.gd-wrap ul` prose indent above is
   (0,1,1) and would otherwise beat a bare `.gd-list` (0,1,0), indenting every
   card and every numbered step by 1.25rem against the headings they sit under. */
.gd-wrap .gd-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.gd-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.gd-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.gd-card .t { display: block; color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.gd-card .d { display: block; color: var(--ink-dim); font-size: 0.93rem; margin-top: 0.2rem; line-height: 1.5; }
.gd-card .m {
  display: block; margin-top: 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* ---- in-product help pointer ------------------------------------------------ */
.gd-note {
  margin-top: 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 0.95rem 1.1rem;
}
.gd-note p { margin: 0.35rem 0 0; font-size: 0.94rem; }
.gd-note p:first-child { margin-top: 0; }
.gd-note b { color: var(--ink); }

/* ---- the crossing table ----------------------------------------------------- */
.gd-scroll { overflow-x: auto; margin-top: 1rem; }
.gd-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 34rem; }
.gd-table th, .gd-table td {
  text-align: left; padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
.gd-table th {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 500;
}
.gd-table td { color: var(--ink-dim); }
.gd-table td.f { font-family: var(--mono); font-size: 0.82rem; color: var(--ink); }
/* Nothing in a table cell refuses to wrap. A header, a first-column label or a UI chip
   that cannot wrap makes the table wider than the page, and .gd-scroll then clips the
   right-hand column with no visible scrollbar (reported 2026-09-24 on the briefing guide). */
.gd-table .ui { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gd-table td.y { color: var(--good); font-weight: 600; }
.gd-table td.n { color: var(--ink-faint); }

/* ---- a limit worth stopping for --------------------------------------------- */
.gd-limit {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  margin-top: 1rem;
}
.gd-wrap.gd-wrap .gd-limit h3 { margin: 0; color: var(--warn); font-size: 0.98rem; }
.gd-limit p { margin: 0.4rem 0 0; font-size: 0.94rem; }

/* ---- footer ------------------------------------------------------------------ */
.gd-foot {
  margin-top: 3rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint); font-size: 0.85rem;
}
.gd-foot p { margin: 0.3rem 0 0; color: var(--ink-faint); font-size: 0.85rem; }
.gd-back {
  display: inline-block; margin-bottom: 1.2rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); text-decoration: none;
}
.gd-back:hover { color: var(--accent); }

@media (max-width: 640px) {
  .gd-wrap { padding: 1.75rem 1rem 4rem; }
  .gd-wrap h2 { margin-top: 2rem; }
}

/* ---- a screenshot ------------------------------------------------------------
   Shots are captured at 2x against the real app and served at ~736px, so the
   intrinsic width is double the layout width. width/height are declared so the
   page reserves the box before the image arrives — a guide is mostly prose and
   a late image otherwise reflows the paragraph the reader is in. */
/* Screenshots break OUT of the prose column. The column is 46rem because that is
   a readable measure for text; a 1440px-wide app screenshot squeezed into it
   renders at half scale and the control the caption is pointing at becomes
   illegible. Prose stays at 46rem, figures get up to 64rem.
   Inside .gd-steps the list item carries 2.1rem of left padding, so centring on
   `50%` would sit every stepped figure half that distance right of the ones
   between steps — corrected below rather than left to drift. */
.gd-fig {
  margin: 1.2rem 0 0;
  width: min(64rem, calc(100vw - 3rem));
  margin-left: 50%;
  transform: translateX(-50%);
}
.gd-steps > li > .gd-fig { margin-left: calc(50% - 1.05rem); }
.gd-fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-panel);
}
/* A crop of one control sits inline at its own size rather than stretching to
   the column — a 37px-tall filter bar scaled to 736px is a blurred smear. */
.gd-fig.tight { width: auto; max-width: 100%; margin-left: 0; transform: none; }
.gd-steps > li > .gd-fig.tight { margin-left: 0; }
.gd-fig.tight img { width: auto; max-width: 100%; max-height: 38rem; }
.gd-fig figcaption {
  margin-top: 0.45rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--ink-faint);
}
.gd-fig figcaption b { color: var(--ink-dim); font-weight: 600; }

/* ---- who a guide is for ------------------------------------------------------ */
.gd-for {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
}
.gd-for .lbl {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); margin-right: 0.2rem;
}
.gd-for span.r {
  font-size: 0.8rem;
  color: var(--ink-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.14em 0.6em;
}

/* ---- numbered steps ---------------------------------------------------------- */
.gd-wrap .gd-steps { list-style: none; margin: 1.2rem 0 0; padding: 0; counter-reset: gdstep; }
.gd-steps > li {
  counter-increment: gdstep;
  position: relative;
  padding-left: 2.1rem;
  margin: 1.5rem 0 0;
}
.gd-steps > li::before {
  content: counter(gdstep);
  position: absolute; left: 0; top: 0.05em;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent);
  background: var(--bg-panel);
}
.gd-wrap.gd-wrap .gd-steps > li > h3 { margin: 0 0 0.1rem; font-size: 1rem; color: var(--ink); }

/* ---- the index, grouped ------------------------------------------------------ */
.gd-groups { margin-top: 0.4rem; }
.gd-grouphd {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
  margin: 2.2rem 0 0.1rem;
}

/* ---- personas ---------------------------------------------------------------- */
.gd-role {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-panel);
  padding: 1rem 1.15rem;
  margin-top: 0.7rem;
}
.gd-wrap.gd-wrap .gd-role h3 { margin: 0; font-size: 1rem; color: var(--ink); }
.gd-role .q {
  margin: 0.3rem 0 0; font-size: 0.92rem; color: var(--ink-dim); font-style: italic;
}
.gd-role p { font-size: 0.93rem; }
.gd-wrap .gd-role .jobs { margin: 0.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.gd-role .jobs li { font-size: 0.9rem; margin: 0; }
.gd-role .jobs a { font-weight: 600; }
.gd-role .not {
  margin-top: 0.6rem; padding-top: 0.55rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.87rem; color: var(--ink-faint);
}
.gd-role .not b { color: var(--warn); font-weight: 600; }

/* ---- a role's regular activities ---------------------------------------------
   Two columns, and the left one is the job the person does on a Tuesday rather
   than a feature name — the whole point of the page. Sits inside .gd-role, so it
   inherits that card's ground. */
.gd-acts { border-collapse: collapse; width: 100%; font-size: 0.88rem; margin-top: 0.65rem; }
.gd-acts caption {
  caption-side: top; text-align: left;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
  padding-bottom: 0.3rem;
}
.gd-acts th, .gd-acts td {
  text-align: left; padding: 0.42rem 0.6rem 0.42rem 0;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
  line-height: 1.5;
}
.gd-acts tr:last-child th, .gd-acts tr:last-child td { border-bottom: 0; }
/* the activity is a row header, not a cell: it labels the row for a screen reader
   the same way it does for an eye */
.gd-acts th {
  font-weight: 600; color: var(--ink); width: 40%; padding-right: 1rem;
}
.gd-acts td { color: var(--ink-dim); }

@media (max-width: 560px) {
  /* Stacked: a 40/60 split inside a card inside a 1rem gutter leaves each column
     too narrow to read, so the row becomes label-over-value. */
  .gd-acts, .gd-acts tbody, .gd-acts tr, .gd-acts th, .gd-acts td { display: block; width: auto; }
  .gd-acts th { border-bottom: 0; padding: 0.5rem 0 0.1rem; }
  .gd-acts td { padding: 0 0 0.5rem; }
  /* A `caption` whose table is no longer `display: table` loses its width and
     wraps to one word per line. Making it a block puts it back on the flow. */
  .gd-acts caption { display: block; width: auto; }
}
/* label above the guide links, now that an activity table sits between them and
   the role's description — without it the arrows read as part of the table */
.gd-wrap.gd-wrap .gd-role__gd {
  margin: 0.9rem 0 0.15rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* ============================================================================
   Getting started (getting-started.html) and the hero card that points at it
   from the index. Same rules as everything above: tokens only, prose stays in
   the 46rem column, and every heading uses the doubled-class trick so the
   runtime `body.light h3` injection cannot recolour it.
   ========================================================================== */
.gd-hero {
  display: block; margin-top: 1.6rem; padding: 1.3rem 1.4rem 1.2rem;
  border: 1px solid var(--accent); border-radius: 8px; text-decoration: none;
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-soft));
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.gd-hero:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -28px rgba(0,0,0,0.8); }
.gd-hero__k { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.gd-hero__t { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--ink); margin-top: 0.35rem; }
.gd-hero__d { display: block; color: var(--ink-dim); margin-top: 0.5rem; line-height: 1.55; max-width: 38rem; }
.gd-hero__m { display: block; margin-top: 0.7rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

/* A verbatim file, shown as the reader will type it. Used by criteria-file-format.html, whose
   whole subject is what a file has to look like — the one guide where showing beats telling.
   Scrolls in its own box: a template line is longer than the column and the page body must
   never scroll sideways. */
.gd-wrap .gd-pre { margin: 1rem 0 1.4rem; padding: 0.9rem 1rem; overflow-x: auto;
  background: var(--panel, rgba(255,255,255,0.03)); border: 1px solid var(--line, rgba(255,255,255,0.1));
  border-radius: 10px; }
.gd-wrap .gd-pre code { font-family: var(--mono); font-size: 0.78rem; line-height: 1.7;
  color: var(--nd, var(--ink-dim)); white-space: pre; }

.gs-hero .gd-lede { max-width: 40rem; }

/* the three questions, as a strip */
.gs-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 2rem; }
.gs-strip__cell {
  display: grid; gap: 0.3rem; align-content: start;
  padding: 1rem 1.05rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-panel);
  font-size: 0.9rem; line-height: 1.5; color: var(--ink-dim);
}
.gs-strip__n { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--accent); }
.gs-strip__cell b { color: var(--ink); font-size: 1rem; line-height: 1.3; }
.gs-strip__cell em { font-style: normal; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.3rem; }

/* chapters: a big serif numeral, the title, the time it takes */
.gs-ch { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.gs-ch__hd { display: flex; align-items: baseline; gap: 0.8rem; }
.gs-ch__n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent); min-width: 1.6rem; }
.gd-wrap.gd-wrap .gs-ch__hd h2 { margin: 0; font-size: 1.55rem; }
.gs-ch__t { margin-left: auto; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

.gs-tip {
  margin-top: 1rem; padding: 0.8rem 1rem; font-size: 0.92rem; line-height: 1.55; color: var(--ink-dim);
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-left: 2px solid var(--accent); border-radius: 4px;
}
.gs-tip b { color: var(--ink); }
.gs-small { font-size: 0.9rem; }
.gd-wrap kbd { font-family: var(--mono); font-size: 0.78em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 0 0.35em; color: var(--ink); background: var(--panel2); }

/* the three setup questions */
.gd-wrap .gs-qs { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: gsq; display: grid; gap: 0.6rem; }
.gs-qs > li { counter-increment: gsq; position: relative; padding: 0.75rem 1rem 0.75rem 3rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-panel); font-size: 0.93rem; line-height: 1.55; }
.gs-qs > li::before { content: "Q" counter(gsq); position: absolute; left: 0.9rem; top: 0.8rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--accent); }
.gs-qs > li > b:first-child { color: var(--ink); display: block; margin-bottom: 0.15rem; }
.gs-qs > li b { color: var(--ink); }

/* the home page, as a definition list */
.gs-home { margin: 1rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.2rem; }
.gs-home dt { font-weight: 600; color: var(--ink); font-size: 0.93rem; padding-top: 0.05rem; }
.gs-home dd { margin: 0; color: var(--ink-dim); font-size: 0.93rem; line-height: 1.55; }

/* the six places on the map */
.gs-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-top: 1.2rem; }
.gs-map__cell {
  display: grid; gap: 0.35rem; align-content: start; text-decoration: none;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-panel);
  color: var(--ink-dim); font-size: 0.9rem; line-height: 1.5;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.gs-map__cell:hover { border-color: var(--accent); transform: translateY(-1px); }
.gs-map__cell--hot { border-color: var(--accent); background: linear-gradient(160deg, var(--bg-panel), var(--bg-soft)); }
.gs-map__k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.gs-map__cell b { color: var(--ink); font-size: 0.98rem; line-height: 1.3; }
.gs-map__cell em { font-style: italic; color: var(--ink-faint); margin-top: 0.15rem; }

/* the five moves */
.gd-wrap .gs-track { list-style: none; padding: 0; margin: 1.2rem 0 0; counter-reset: gst; position: relative; }
.gs-track::before { content: ""; position: absolute; left: 0.9rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--line); }
.gs-track > li { counter-increment: gst; position: relative; padding: 0 0 1.1rem 2.9rem; font-size: 0.95rem; line-height: 1.6; }
.gs-track > li::before {
  content: counter(gst); position: absolute; left: 0; top: 0.05rem; width: 1.8rem; height: 1.8rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
}
.gs-track > li b { color: var(--ink); }

.gs-know { display: grid; gap: 0.6rem; margin-top: 1rem; }
.gs-know > div { padding: 0.8rem 1rem; border: 1px solid var(--line); border-left: 2px solid var(--warn); border-radius: 4px; background: var(--bg-panel); font-size: 0.92rem; line-height: 1.55; color: var(--ink-dim); }
.gs-know b { color: var(--ink); }

.gd-wrap .gs-help { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.45rem; }
.gs-help li { font-size: 0.93rem; }

.gd-wrap.gd-wrap .gs-nexthd { margin-top: 3rem; }
.gs-next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-top: 1rem; }
.gs-next__cell { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-panel); text-decoration: none; color: var(--ink-dim); font-size: 0.88rem; line-height: 1.5; transition: border-color 0.18s var(--ease); }
.gs-next__cell:hover { border-color: var(--accent); }
.gs-next__k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.gs-next__cell b { color: var(--ink); font-size: 0.98rem; }

@media (max-width: 640px) {
  .gs-strip, .gs-map, .gs-next { grid-template-columns: 1fr; }
  .gs-home { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .gs-home dd { margin-bottom: 0.5rem; }
  .gs-ch__t { display: none; }
}
/* the map and next-step cards are anchors, and `.gd-wrap a` paints anchor text
   in --accent: the body copy inside them has to be handed back its own colour */
.gs-map__cell > span:not(.gs-map__k), .gs-next__cell > span:not(.gs-next__k) { color: var(--ink-dim); }

/* ---- the Ask Hitch guide's say/opens tables: the phrases are the content, so the
   first column takes half the width rather than wrapping every request onto three
   lines (ask-hitch.html, 2026-09-03) ---- */
.gd-table.gd-ask td:first-child, .gd-table.gd-ask th:first-child { width: 48%; color: var(--ink); }

/* ============================================================================
   The index's three views (index.html): by job, by part of Hitch, by role.
   Without script all three show, one under the other, and the nav is a list of
   jump links. guides.js adds `gd-tabbed` to <body> and then shows one view at a
   time, keyed on the URL hash so a view can be linked to and Back works.
   ========================================================================== */
.gd-views {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 2rem 0 0; padding: 0.3rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-panel);
}
.gd-views__b {
  flex: 1 1 auto; text-align: center; text-decoration: none;
  padding: 0.55rem 0.8rem; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-dim);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.gd-views__b:hover { color: var(--ink); }
.gd-views__b[aria-current="true"] { background: var(--bg-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.gd-view { margin-top: 1.2rem; }
.gd-view + .gd-view { margin-top: 2.6rem; }
body.gd-tabbed .gd-view[hidden] { display: none; }
body.gd-tabbed .gd-view + .gd-view { margin-top: 1.2rem; }
.gd-viewsub { color: var(--ink-dim); font-size: 0.95rem; margin: 0.3rem 0 0; }
.gd-groupsub { color: var(--ink-dim); font-size: 0.9rem; margin: 0.15rem 0 0; }
.gd-also { font-size: 0.88rem; color: var(--ink-dim); margin: 0.6rem 0 0; line-height: 1.6; }
.gd-also .k {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); margin-right: 0.4rem;
}

.gd-wrap .gd-roles {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}
.gd-wrap .gd-rolecard {
  margin: 0; padding: 0.9rem 1rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg-panel);
}
.gd-rolecard__n { display: block; color: var(--ink); font-weight: 600; text-decoration: none; }
.gd-rolecard__n:hover { color: var(--accent); }
.gd-wrap .gd-rolecard__q { margin: 0.3rem 0 0; font-size: 0.87rem; color: var(--ink-dim); font-style: italic; line-height: 1.45; }
.gd-wrap .gd-rolecard__k {
  margin: 0.7rem 0 0.2rem; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
}
.gd-wrap .gd-rolecard ol { margin: 0; padding-left: 1.2rem; }
.gd-wrap .gd-rolecard ol li { margin: 0.15rem 0; font-size: 0.88rem; }
@media (max-width: 560px) {
  .gd-views { flex-direction: column; }
  .gd-wrap .gd-roles { grid-template-columns: 1fr; }
}
/* `.gd-wrap p` (0,1,1) sets prose margins and would otherwise flatten these. */
.gd-wrap .gd-views__b { color: var(--ink-dim); }
.gd-wrap .gd-views__b[aria-current="true"] { color: var(--ink); }
.gd-wrap .gd-view .gd-grouphd { margin: 2.4rem 0 0; font-size: 0.7rem; color: var(--ink-dim); }
.gd-wrap .gd-groupsub { margin: 0.25rem 0 0; }
.gd-wrap .gd-view .gd-grouphd + .gd-list,
.gd-wrap .gd-groupsub + .gd-list { margin-top: 0.8rem; }
.gd-wrap .gd-also { margin: 0.7rem 0 0; }
.gd-wrap .gd-rolecard__n { color: var(--ink); text-decoration: none; }
.gd-wrap .gd-rolecard__n:hover { color: var(--accent); }

/* ---- click-path clips and numbered pictures (find-opportunities, 2026-10-30) --
   A clip is a short silent loop of the real screen with a drawn cursor and a
   pulse on each click — it shows the path; the words say what it is for. The
   numbers on a labelled picture match the .gd-key list under it. */
.gd-fig video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-panel);
}
.gd-wrap .gd-key { list-style: none; margin: 0.9rem 0 0; padding: 0; counter-reset: gdkey; }
.gd-key > li { counter-increment: gdkey; position: relative; padding-left: 2.2rem; margin: 0.55rem 0 0; }
.gd-key > li::before {
  content: counter(gdkey);
  position: absolute; left: 0; top: 0.1em;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #b8740f; color: #fff;
  font-size: 0.8rem; font-weight: 700;
}
.gd-key > li b { color: var(--ink); }
/* a real tag cut from the screen, shown at its own size beside its meaning */
.gd-table img.tag { display: block; height: 1.6rem; width: auto; }
.gd-more { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-panel); }
.gd-more > summary { cursor: pointer; padding: 0.85rem 1.1rem; font-weight: 600; color: var(--ink); }
.gd-more > div { padding: 0 1.1rem 1rem; }
