/**
 * Fly Atlas public skin (WP-4.1 empty state; WP-4.2 the pattern template;
 * WP-4.3 the technique/source templates and the citation drawer — spec
 * §10.1, mockup: docs/mockups/fly-atlas-prototype/index.html).
 *
 * Extends the dossier tokens (`gw-hook-dossier.css`) rather than forking a
 * parallel design system — every colour, font stack and spacing scale below
 * is `var(--gwd-*)`, declared once in that file and never redeclared here.
 * Section chrome (`.gw-section`, `.gw-section-number`, `.gw-section-title`)
 * and the citation list (`.gw-citations-list`, `.gw-citation-item`, …) are
 * ALSO reused as-is from `gw-hook-dossier.css` rather than duplicated —
 * only what genuinely has no dossier equivalent gets a new `gw-fa-` class here:
 * badges, the facts strip, the dressing picker and ledger, hook groups, the
 * related-patterns grid, the citation dialog, and (WP-4.3) key points,
 * error cards, the source page strip, and the sources index list. Loaded
 * only on the Fly Atlas routes, gated on `gw_fa_public`
 * (see `Public_Assets::enqueue()`).
 *
 * Material/atelier templates' own components belong to the packages that
 * build those for real (WP-6.1, WP-7.1) and are not pre-built here.
 */

/* ── Muted text, on the ground this module actually paints ─────────────────
 *
 * `--gwd-muted` (#68716d) is 4.87:1 on white, which passes, and 4.19:1 on
 * `--gwd-paper` — and EVERY Fly Atlas page paints its body paper, so the
 * failing case is the normal one: cards, chips, level strips, timeline bands
 * and the prose between them. Roughly eighty declarations read this token.
 *
 * The token itself is NOT corrected. It is the shared dossier's, used by the
 * hook reference, manufacturer and tyer pages, and it passes there; a fix
 * made in `gw-hook-dossier.css` off the back of a Fly Atlas review would
 * change four other page families that were never measured.
 *
 * So it is re-declared for the duration of a Fly Atlas page. #5d6560 is
 * 4.63:1 on paper, 5.66:1 on `--gwd-light` and 6.02:1 on white — every ground
 * this module uses, in one value, without a per-selector sweep that the next
 * muted line added would immediately fall outside of. The token carries no
 * borders or fills here (verified: all eighty uses are `color:`), so nothing
 * but text moves.
 */
.gw-fly-atlas,
.gw-fa-sheet,
.gw-fa-index { --gwd-muted: #5d6560; }

/* A Fly Atlas page has no silhouette image yet, so the dossier header runs
 * full width — the same override `gw-tyer.css` makes for the same reason. */
html body .gw-entry.gw-dossier.gw-fly-atlas > .gw-page-header {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: 0 !important;
  padding-bottom: 22px !important;
}

.gw-fly-atlas .gw-fa-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gwd-orange-deep);
  font: 900 10px/1 var(--gwd-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Empty state ───────────────────────────────────────────────────────────
 * What every one of the five templates renders while gw_fa_public is off, or
 * before its own package gives it real content. Honest, not decorative: it
 * says nothing is here yet rather than dressing an empty page up as content.
 * ------------------------------------------------------------------------ */

.gw-fa-empty {
  max-width: 60ch;
  margin: 10px 0 40px;
  padding: 28px 26px;
  background: var(--gwd-light);
  border: 1px solid var(--gwd-line);
  border-top: 2px solid var(--gwd-ink);
}

.gw-fa-empty h2 {
  margin: 0 0 8px;
  color: var(--gwd-ink);
  font: 750 20px/1.25 var(--gwd-sans);
  letter-spacing: -.02em;
}

.gw-fa-empty p {
  margin: 0;
  color: var(--gwd-muted);
  font: 15px/1.55 var(--gwd-serif);
}

.gw-fa-empty p + p { margin-top: 10px; }

/* ── Badges (header) ──────────────────────────────────────────────────────
 *
 * `.gw-fa-badges` and `.gw-fa-badge` were declared TWICE in this file — here
 * and again with the state-3/4 sheets — with different padding, ground and
 * line-height. Nothing chose between them; the later block simply won, which
 * means the values written here were never what rendered. The pair is now
 * declared once, at its second site, and only the variants unique to this
 * section remain below. */

.gw-fa-badge-solid { color: #fff; background: var(--gwd-green); border-color: var(--gwd-green); }

/* ── Facts strip ─────────────────────────────────────────────────────────── */

.gw-fa-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 22px 0 0;
  border-top: 2px solid var(--gwd-ink);
  border-bottom: 1px solid var(--gwd-line);
}
.gw-fa-facts div { padding: 12px 14px 13px; border-right: 1px solid var(--gwd-line); }
.gw-fa-facts div:last-child { border-right: 0; }
.gw-fa-facts dt { color: #616965; font: 850 10px/1.3 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase; }
.gw-fa-facts dd { margin: 5px 0 0; font: 700 15px/1.2 var(--gwd-serif); }
.gw-fa-facts dd em { display: block; margin-top: 3px; color: var(--gwd-muted); font: 11px/1.3 var(--gwd-sans); font-style: normal; }

.gw-fa-muted { color: var(--gwd-muted); font: 15px/1.5 var(--gwd-serif); }

/* ── Dressing picker + recipe ledger ─────────────────────────────────────── */

.gw-fa-dressing-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 26px; }
.gw-fa-dcard {
  padding: 12px 14px;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--gwd-line);
  cursor: pointer;
}
.gw-fa-dcard[aria-current="true"] { border-color: var(--gwd-ink); box-shadow: inset 0 0 0 1px var(--gwd-ink); }
.gw-fa-dcard-title { display: block; font: 750 14px/1.25 var(--gwd-sans); }
.gw-fa-dcard-src { display: block; margin-top: 3px; color: var(--gwd-muted); font: 12px/1.4 var(--gwd-serif); }

.gw-fa-dressing { padding-top: 8px; }
.gw-fa-dressing + .gw-fa-dressing { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--gwd-line); }

.gw-fa-rec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.gw-fa-rec-head h3 { margin: 0; font: 750 17px/1.25 var(--gwd-sans); }
.gw-fa-wording-note { color: var(--gwd-muted); font: 12px/1.4 var(--gwd-serif); font-style: italic; }

.gw-fa-ledger { width: 100%; border-top: 2px solid var(--gwd-ink); border-collapse: collapse; }
.gw-fa-ledger th { padding: 8px 10px 8px 2px; color: #616965; font: 850 10px/1.3 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase; text-align: left; vertical-align: bottom; }
.gw-fa-ledger td { padding: 11px 10px 11px 2px; border-bottom: 1px solid var(--gwd-line); vertical-align: top; font: 15px/1.45 var(--gwd-serif); }
.gw-fa-ledger td.gw-fa-role { width: 118px; font: 850 10px/1.5 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase; color: #41504b; }
.gw-fa-ledger td.gw-fa-orig { font-style: italic; color: #5d6763; }
.gw-fa-ledger.gw-fa-ledger-single td.gw-fa-orig,
.gw-fa-ledger.gw-fa-ledger-single th.gw-fa-orig { display: none; }

/* source_only (WP-4.6a) — the mirror of the rule above. A dressing
   transcribed from a book but not yet mapped to structured fields has only
   the printed wording, so the reading column is hidden rather than rendered
   empty. The printed column takes the full width it was sharing. */
.gw-fa-ledger.gw-fa-ledger-source-only td.gw-fa-reading,
.gw-fa-ledger.gw-fa-ledger-source-only th.gw-fa-reading { display: none; }
.gw-fa-ledger.gw-fa-ledger-source-only th.gw-fa-orig { width: auto; }
.gw-fa-ledger.gw-fa-ledger-source-only td.gw-fa-orig { font-style: normal; color: inherit; }

.gw-fa-swatch { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border: 1px solid rgba(0,0,0,.28); vertical-align: -1px; }
.gw-fa-departs { margin-left: 4px; color: var(--gwd-orange-deep); font: 800 11px/1 var(--gwd-sans); }

.gw-fa-cite {
  display: inline-flex;
  min-width: 15px;
  margin-left: 6px;
  padding: 2px 5px;
  color: #2c534a;
  background: #e7ece9;
  border: 1px solid #c6d0cb;
  font: 850 10px/1 var(--gwd-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
a.gw-fa-cite:hover { color: #fff; background: var(--gwd-green); border-color: var(--gwd-green); }

/* ── Hook groups (spec §8.4) ─────────────────────────────────────────────── */

.gw-fa-hookgroup { margin-bottom: 32px; }
.gw-fa-grouphd { display: flex; align-items: baseline; gap: 9px; margin: 0 0 4px; }
.gw-fa-grouphd h3 { margin: 0; font: 750 17px/1.25 var(--gwd-sans); }
.gw-fa-groupsub { margin: 0 0 14px; color: var(--gwd-muted); font: 13px/1.5 var(--gwd-serif); }
.gw-fa-tag-ev, .gw-fa-tag-calc {
  padding: 3px 7px;
  font: 850 10px/1 var(--gwd-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gw-fa-tag-ev { background: #d7e8df; color: #2e6e54; }
.gw-fa-tag-calc { background: #e4e2dc; color: #5f6764; }

.gw-fa-hooks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.gw-fa-hook { padding: 13px; background: #fff; border: 1px solid var(--gwd-line); }
.gw-fa-hook .gw-fa-mfr { color: var(--gwd-muted); font: 850 10px/1 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase; }
.gw-fa-hook h4 { margin: 5px 0 2px; font: 750 15px/1.2 var(--gwd-sans); }
.gw-fa-hook .gw-fa-sz { color: var(--gwd-muted); font: 13px/1.4 var(--gwd-serif); }
.gw-fa-hook .gw-fa-algo { margin-top: 8px; color: #7c756c; font: 10px/1 var(--gwd-sans); letter-spacing: .04em; text-transform: uppercase; }

/* ── References — evidence-basis badge (list/item chrome reused from the
 *    dossier's own gw-citations-list) ──────────────────────────────────── */

.gw-fa-basis {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font: 850 10px/1.4 var(--gwd-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.gw-fa-basis-direct, .gw-fa-basis-strong { background: #d7e8df; color: #2e6e54; }
.gw-fa-basis-traditional, .gw-fa-basis-editorial_inference { background: #f7ead3; color: #8a6220; }
.gw-fa-basis-disputed { background: #f7e2d8; color: #a33f18; }
.gw-fa-basis-unverified { background: #e4e2dc; color: #5f6764; }
.gw-fa-ref-excerpt { font-style: italic; }

/* Momentary highlight when a citation marker's target is reached — a no-JS
 * hard jump lands here via :target too, JS's smooth scroll via gw-fly-atlas.js. */
.gw-citation-item:target,
.gw-citation-item.gw-fa-cite-target { background: #f4f2ee; outline: 2px solid var(--gwd-orange); outline-offset: 4px; }

/* The cite-this-page block closes a document, so it carries no rule under it.
   This was a `style="border-bottom:0"` attribute repeated on four templates —
   a presentational decision made four times in the markup layer. */
.gw-fa-cite-page { border-bottom: 0; }

/* ── Related ─────────────────────────────────────────────────────────────── */

.gw-fa-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px 24px; }
.gw-fa-rel { display: block; padding: 12px 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--gwd-line); }
.gw-fa-rel:hover b { color: var(--gwd-orange-deep); }
.gw-fa-rel b { display: block; font: 750 14px/1.3 var(--gwd-sans); }
.gw-fa-rel span { display: block; margin-top: 2px; color: var(--gwd-muted); font: 12px/1.4 var(--gwd-serif); }

/* ── Citation drawer (WP-4.3) ────────────────────────────────────────────── */

.gw-fa-citation-dialog {
  width: min(480px, 92vw);
  padding: 0;
  background: #fff;
  border: 1px solid var(--gwd-line);
  border-top: 3px solid var(--gwd-ink);
}
.gw-fa-citation-dialog::backdrop { background: rgba(21, 28, 26, .55); }
.gw-fa-citation-dialog [data-gw-fa-citation-close] {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  color: var(--gwd-muted);
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.gw-fa-citation-dialog [data-gw-fa-citation-body] { padding: 24px 22px 22px; }
.gw-fa-citation-dialog h3 { margin: 0 0 4px; font: 750 17px/1.3 var(--gwd-sans); }
.gw-fa-citation-dialog .gw-fa-citation-meta { color: var(--gwd-muted); font: 13px/1.5 var(--gwd-serif); }
.gw-fa-citation-dialog blockquote { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--gwd-line); font: 15px/1.55 var(--gwd-serif); font-style: italic; }
/* A marker can cite several sources, and the drawer now renders all of them.
   The rule between entries is what keeps two books from reading as one; the
   basis chip's own box moved here from an inline `style` attribute. */
.gw-fa-citation-entry + .gw-fa-citation-entry {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gwd-line);
}
.gw-fa-citation-dialog .gw-fa-basis { display: inline-block; margin: 12px 0 0; }

/* ── Technique page (WP-4.3) ─────────────────────────────────────────────── */

/*
 * RENAMED FROM `.gw-fa-sub`, which the substitution card at the foot of this
 * file also claimed. One name, two components, both loaded on every page: the
 * technique page's subheadings picked up the card's border and padding, and
 * the material page's cards picked up the heading's margins. The heading is
 * the one that moved, because "sub" reads as "substitution" here.
 */
.gw-fa-subhead { margin: 26px 0 10px; font: 750 16px/1.25 var(--gwd-sans); }
.gw-fa-key-points { margin: 0; padding-left: 20px; font: 15px/1.6 var(--gwd-serif); }
.gw-fa-key-points li { margin-bottom: 6px; }

.gw-fa-errors { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.gw-fa-error-card { padding: 14px 16px; background: #fff; border: 1px solid var(--gwd-line); border-left: 3px solid var(--gwd-orange); }
.gw-fa-error-card h4 { margin: 0 0 4px; font: 750 15px/1.3 var(--gwd-sans); }
.gw-fa-causes { margin: 8px 0 0; padding-left: 18px; font: 14px/1.5 var(--gwd-serif); }
.gw-fa-causes li { margin-bottom: 4px; }
.gw-fa-causes b { font-family: var(--gwd-sans); font-size: 13px; font-weight: 750; }

/* ── Source page (WP-4.3) ────────────────────────────────────────────────── */

.gw-fa-pagestrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.gw-fa-pg { padding: 8px; background: #fff; border: 1px solid var(--gwd-line); font: 12px/1.4 var(--gwd-sans); }
.gw-fa-pg b { display: block; margin-bottom: 6px; font-weight: 800; }
.gw-fa-pg img { display: block; width: 100%; height: 90px; object-fit: cover; background: #e2ded5; }
.gw-fa-pg span { color: var(--gwd-muted); }
.gw-fa-pg-more { display: grid; place-items: center; color: #b3aca0; background: #f0eee8; text-align: center; }

.gw-fa-source-index { margin: 0; padding: 0; list-style: none; }
.gw-fa-source-index li { border-bottom: 1px solid var(--gwd-line); }
.gw-fa-source-index a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; color: inherit; text-decoration: none; }
.gw-fa-source-index a:hover b { color: var(--gwd-orange-deep); }
.gw-fa-source-index b { font: 750 15px/1.3 var(--gwd-sans); }
.gw-fa-source-index span { color: var(--gwd-muted); font: 13px/1.5 var(--gwd-serif); white-space: nowrap; }

/* ── Video facade (WP-4.4, spec §8.10) ───────────────────────────────────
 * Nothing here loads a third-party byte. The poster is a local attachment,
 * the play control is a real anchor to the creator's page, and the player
 * iframe only exists after a click (gw-fly-atlas.js). */

.gw-fa-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.gw-fa-video { position: relative; }
.gw-fa-video-inherited {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 7px;
  background: #e4e2dc;
  color: #5f6764;
  font: 850 10px/1 var(--gwd-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gw-fa-video-play {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151c1a;
  border: 1px solid var(--gwd-line);
}
.gw-fa-video-play img.gw-fa-video-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.gw-fa-video-play:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 2px; }
.gw-fa-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(21, 28, 26, .72);
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  font-size: 20px;
  padding-left: 4px;
}
.gw-fa-video-play:hover .gw-fa-video-play-icon { background: var(--gwd-orange); border-color: var(--gwd-orange); }
.gw-fa-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--gwd-line); }

.gw-fa-video-caption { margin: 8px 0 0; font: 14px/1.45 var(--gwd-sans); }
.gw-fa-video-caption b { display: block; font-weight: 750; }
.gw-fa-video-caption span { display: block; margin-top: 2px; color: var(--gwd-muted); font: 13px/1.4 var(--gwd-serif); }

/* An unavailable video is a plain reference — never a dead player. */
.gw-fa-video-unavailable p { margin: 0; font: 15px/1.5 var(--gwd-serif); }
.gw-fa-video-unavailable .gw-fa-video-meta { color: var(--gwd-muted); }
.gw-fa-video-unavailable .gw-fa-video-status {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  background: #f7e2d8;
  color: #a33f18;
  font: 850 10px/1.4 var(--gwd-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── Pattern archive (WP-4.5) ───────────────────────────────────────────────
   Filters are a plain GET form: <select>s and a submit button, no script.
   The grid is `auto-fill` rather than a fixed column count so it collapses by
   itself on a phone — the archive has no breakpoint of its own to maintain. */

.gw-fa-archive-filters {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--gwd-light);
  border: 1px solid var(--gwd-line);
}
.gw-fa-filter-row { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.gw-fa-filter { display: flex; flex-direction: column; gap: 3px; flex: 1 1 150px; min-width: 0; }
.gw-fa-filter-label {
  font: 850 10px/1.4 var(--gwd-sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gwd-muted);
}
.gw-fa-filter input,
.gw-fa-filter select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--gwd-line);
  background: #fff;
  font: 14px/1.3 var(--gwd-sans);
  color: var(--gwd-ink);
}
.gw-fa-filter input:focus-visible,
.gw-fa-filter select:focus-visible,
.gw-fa-btn:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 1px; }

/* Last item in the filter row, not a row of its own — see the template.
   `flex: 0 0 auto` keeps it from stealing width from the selects, and
   `justify-content: flex-end` sits the button on their baseline. */
.gw-fa-filter-actions { flex: 0 0 auto; justify-content: flex-end; }
.gw-fa-filter-buttons { display: flex; align-items: center; gap: 10px; }

/* Present for a screen reader, absent for the eye — the actions cell needs a
   label to occupy the same box as its siblings without inventing one on screen. */
.gw-fa-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.gw-fa-btn {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--gwd-green);
  background: var(--gwd-green);
  color: #fff;
  font: 700 13px/1.2 var(--gwd-sans);
  text-decoration: none;
  cursor: pointer;
}
.gw-fa-btn-quiet { background: transparent; color: var(--gwd-green); }

.gw-fa-result-count {
  margin: 0 0 12px;
  font: 850 10px/1.4 var(--gwd-sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gwd-muted);
}

.gw-fa-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px 18px;
}
.gw-fa-card-link { display: block; text-decoration: none; color: inherit; }
.gw-fa-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--gwd-line);
  background: var(--gwd-light);
}
.gw-fa-card-thumb-empty { background: var(--gwd-paper); }
.gw-fa-card-title { display: block; margin-top: 8px; font: 600 15px/1.35 var(--gwd-serif); }
.gw-fa-card-link:hover .gw-fa-card-title { color: var(--gwd-orange-deep); }
.gw-fa-card-meta { margin: 2px 0 0; font: 12px/1.4 var(--gwd-sans); color: var(--gwd-muted); }

.gw-fa-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--gwd-line);
  font: 13px/1.4 var(--gwd-sans);
}
.gw-fa-page-of { color: var(--gwd-muted); }

.gw-fa-archive-footer {
  margin: 32px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--gwd-line);
  font: 13px/1.5 var(--gwd-sans);
  color: var(--gwd-muted);
}

/* ── Keyboard and motion (WP-4.6) ───────────────────────────────────────────
   Two rules the launch pass added, both about people rather than layout. */

/* Every interactive Fly Atlas control shows where focus is. `:focus-visible`
   rather than `:focus` so a mouse click does not leave a ring behind, while a
   Tab press always does. The outline sits OUTSIDE the element so it never
   overlaps the text it is marking. */
.gw-fly-atlas a:focus-visible,
.gw-fa-dcard:focus-visible,
.gw-fa-cite:focus-visible,
.gw-fa-video-play:focus-visible,
.gw-fa-citation-dialog button:focus-visible,
.gw-fa-card-link:focus-visible {
  outline: 2px solid var(--gwd-orange);
  outline-offset: 2px;
}

/* The citation drawer and the dressing panels are given tabindex="-1" by the
   script so focus can be moved to them; that focus must be visible too, or a
   keyboard reader is moved somewhere with no way to tell where. */
.gw-fa-dressing:focus-visible,
.gw-citation-item:focus-visible {
  outline: 2px solid var(--gwd-orange);
  outline-offset: 4px;
}

/* `prefers-reduced-motion` is a system-level statement about vestibular
   comfort, not a styling preference. The script already skips smooth
   scrolling when it is set; this covers anything the browser or theme would
   animate on our elements regardless. Destinations never change — only how
   the page arrives at them. */
@media (prefers-reduced-motion: reduce) {
  .gw-fly-atlas *,
  .gw-fa-hook-patterns * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Type scale (WP-4.6b) ───────────────────────────────────────────────────
   Fly Atlas headings run 30% smaller than the shared dossier scale.

   SCOPED TO `.gw-fly-atlas`, deliberately. `.gw-dossier .gw-entry-title` is
   defined in gw-hook-dossier.css and is shared with the hook reference,
   manufacturer, tyer and mini-hook pages; changing it there would resize
   headings across the whole site off the back of a Fly Atlas review. If the
   smaller scale turns out to be right everywhere, that is a separate,
   deliberate change to the shared sheet.

   The multipliers are applied to the shared sheet's own values rather than to
   round numbers, so the relationship stays legible if those move:
     title    clamp(42px, 4.8vw, 70px)  ->  clamp(29px, 3.36vw, 49px)
     subtitle 24px                      ->  17px
     section  clamp(26px, 3vw, 35px)    ->  clamp(18px, 2.1vw, 25px)

   `!important` matches the shared rules, which carry it themselves — without
   it these would lose on identical specificity. */

.gw-dossier.gw-fly-atlas .gw-entry-title {
  font: 700 clamp(29px, 3.36vw, 49px)/.94 var(--gwd-sans) !important;
}
.gw-dossier.gw-fly-atlas .gw-subtitle {
  font: 17px/1.3 var(--gwd-serif) !important;
}
.gw-dossier.gw-fly-atlas .gw-section-title {
  font: 750 clamp(18px, 2.1vw, 25px)/1.15 var(--gwd-sans) !important;
  margin: 0 0 16px !important;
}

/* ── Dressing Compare (WP-5.1) ──────────────────────────────────────────────
   The mockup's compare table: differing rows carry a warm tint and an orange
   inset rule, identical ones go grey so the eye lands on the differences. */

.gw-fa-legend { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin: 0 0 16px; font: 600 11px/1 var(--gwd-sans); color: #4d5752; }
.gw-fa-legend-key { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; }
.gw-fa-legend-diff { background: #fdf3e8; box-shadow: inset 2px 0 0 var(--gwd-orange); }
.gw-fa-legend-same { background: #f4f3f0; }

/* The one place a horizontal scroll is allowed: four dressings of a
   fifty-component salmon fly will not fit a phone, and shrinking the type
   until it does would make the recipe unreadable. The page itself never
   scrolls sideways — only this container. */
.gw-fa-compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.gw-fa-cmp { width: 100%; border-collapse: collapse; border-top: 2px solid var(--gwd-ink); }
.gw-fa-cmp th { padding: 10px 12px 10px 2px; text-align: left; vertical-align: bottom; border-bottom: 1px solid var(--gwd-line); }
.gw-fa-cmp-lbl { display: block; color: #616965; font: 850 10px/1.4 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase; }
.gw-fa-cmp thead b { display: block; margin-top: 4px; font: 750 15px/1.2 var(--gwd-sans); }
.gw-fa-cmp thead span:not(.gw-fa-cmp-lbl) { display: block; color: var(--gwd-muted); font: 13px/1.4 var(--gwd-serif); font-weight: 400; }
.gw-fa-cmp td { padding: 11px 12px 11px 2px; vertical-align: top; border-bottom: 1px solid var(--gwd-line); font: 15px/1.45 var(--gwd-serif); min-width: 190px; }
.gw-fa-cmp th.gw-fa-cmp-role {
  width: 132px;
  font: 850 10px/1.5 var(--gwd-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #41504b;
  vertical-align: top;
  padding-top: 12px;
}
.gw-fa-cmp-verdict { display: block; margin-top: 4px; font: 600 10px/1.3 var(--gwd-sans); letter-spacing: .03em; text-transform: none; color: var(--gwd-muted); }
.gw-fa-cmp-diff { background: #fdf3e8; box-shadow: inset 2px 0 0 var(--gwd-orange); }
.gw-fa-cmp-same { color: #8d938f; }
.gw-fa-cmp-none { color: #a49d90; font-style: italic; }
.gw-fa-cmp-reading { display: block; }

/* The printed wording, always present, always visibly the book's rather than
   ours — italic and muted, the same treatment the recipe table gives it. */
.gw-fa-cmp-printed { display: block; margin-top: 3px; color: #5d6763; font: italic 13px/1.4 var(--gwd-serif); }
.gw-fa-cmp-reading + .gw-fa-cmp-printed { padding-top: 3px; border-top: 1px dotted var(--gwd-line); }

.gw-fa-pick-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.gw-fa-pick-list label { font: 14px/1.4 var(--gwd-sans); cursor: pointer; }
.gw-fa-pick-note { margin-left: 10px; color: var(--gwd-muted); font: 12px/1.4 var(--gwd-sans); }
.gw-fa-compare-note p { margin: 0 0 10px; font: 15px/1.55 var(--gwd-serif); color: #4d5752; max-width: 70ch; }
.gw-fa-compare-link { margin: 0 0 14px; font: 600 14px/1.4 var(--gwd-sans); }

/* ── Bench Mode (WP-5.2) ────────────────────────────────────────────────────
   Sized for a phone propped against a vise, read at arm's length by someone
   whose hands are occupied: bigger type than the rest of Fly Atlas, and
   controls with a thumb-sized target rather than a mouse-sized one. */

.gw-fa-staging-list { list-style: none; margin: 0; padding: 0; }
.gw-fa-staging-list li { border-bottom: 1px solid var(--gwd-line); }
.gw-fa-staging-list label { display: flex; align-items: baseline; gap: 10px; padding: 11px 2px; cursor: pointer; }
.gw-fa-staging-list input { width: 22px; height: 22px; flex: 0 0 auto; align-self: center; }
.gw-fa-staging-role { flex: 0 0 108px; font: 850 10px/1.5 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase; color: #41504b; }
.gw-fa-staging-text { font: 16px/1.45 var(--gwd-serif); }
/* Ticked material goes quiet so the eye lands on what is still missing. */
.gw-fa-staging-list input:checked ~ .gw-fa-staging-text,
.gw-fa-staging-list input:checked ~ .gw-fa-staging-role { color: #a3a9a5; text-decoration: line-through; }

.gw-fa-bench-seek-note { margin: 8px 0 0; color: var(--gwd-muted); font: 13px/1.4 var(--gwd-sans); }

/* The control bar sticks to the bottom of the viewport: at the vise the
   thumb is already down there, and scrolling to find Next costs a hand. */
.gw-fa-bench-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--gwd-line);
  box-shadow: 0 -6px 18px rgba(31,38,34,.07);
}
.gw-fa-bench-btn {
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--gwd-green);
  background: #fff;
  color: var(--gwd-green);
  font: 700 16px/1.2 var(--gwd-sans);
  cursor: pointer;
}
.gw-fa-bench-btn-primary { background: var(--gwd-green); color: #fff; }
.gw-fa-bench-btn[disabled] { opacity: .38; cursor: default; }
.gw-fa-bench-btn:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 2px; }
.gw-fa-bench-count { font: 850 11px/1.3 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gwd-muted); }

.gw-fa-bench-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.gw-fa-bench-step { padding: 4px 0 22px; }
.gw-fa-bench-step:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 6px; }
.gw-fa-bench-no { display: block; font: 850 10px/1.4 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--gwd-orange-deep); }
.gw-fa-bench-head h3 { margin: 4px 0 0; font: 750 23px/1.2 var(--gwd-sans); letter-spacing: -.02em; }
.gw-fa-bench-technique { display: inline-block; margin-top: 5px; font: 600 13px/1.3 var(--gwd-sans); }
.gw-fa-bench-instruction { margin: 12px 0 0; font: 19px/1.55 var(--gwd-serif); }
.gw-fa-bench-image { display: block; width: 100%; max-width: 620px; height: auto; margin: 14px 0 0; border: 1px solid var(--gwd-line); }

.gw-fa-bench-aids { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 0; }
.gw-fa-bench-aid { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--gwd-light); border: 1px solid var(--gwd-line); font: 600 12px/1.4 var(--gwd-sans); color: #4d5752; }
.gw-fa-bench-quality { background: #f7ead3; border-color: #e0cba4; color: #8a6220; }
.gw-fa-bench-timer-btn { min-height: 34px; padding: 4px 10px; border: 1px solid var(--gwd-green); background: #fff; color: var(--gwd-green); font: 700 12px/1.2 var(--gwd-sans); cursor: pointer; }
.gw-fa-bench-timer-out { font-variant-numeric: tabular-nums; font-weight: 800; }

.gw-fa-bench-checkpoint { margin: 14px 0 0; padding: 10px 12px; background: var(--gwd-green-soft); border-left: 3px solid var(--gwd-green); font: 16px/1.5 var(--gwd-serif); }
.gw-fa-bench-checkpoint b { display: block; font: 850 10px/1.5 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gwd-green); }

/* Errors: the SYMPTOM is the summary, because that is what a tyer can see
   and what §8.12 keys the whole record on. */
.gw-fa-bench-errors { margin: 16px 0 0; padding: 12px 14px; background: #fdf3e8; border: 1px solid #e8d3b8; }
.gw-fa-bench-errors h4 { margin: 0 0 8px; font: 850 10px/1.5 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase; color: #8a6220; }
.gw-fa-bench-error summary { padding: 6px 0; font: 700 16px/1.4 var(--gwd-sans); cursor: pointer; }
.gw-fa-bench-error summary:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 2px; }
.gw-fa-bench-symptom-detail { margin: 2px 0 8px; font: 15px/1.5 var(--gwd-serif); color: #4d5752; }
.gw-fa-bench-causes { margin: 0 0 6px; padding-left: 20px; }
.gw-fa-bench-causes li { margin-bottom: 9px; font: 15px/1.5 var(--gwd-serif); }
.gw-fa-bench-causes span { display: block; margin-top: 2px; font-size: 14px; color: #4d5752; }
.gw-fa-bench-own-video { margin-top: 16px; }

.gw-fa-bench-footer { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--gwd-line); font: 14px/1.5 var(--gwd-sans); }
.gw-fa-bench-print { padding: 6px 12px; border: 1px solid var(--gwd-line); background: #fff; font: 600 13px/1.2 var(--gwd-sans); cursor: pointer; }

@media (max-width: 640px) {
  .gw-fa-bench-instruction { font-size: 18px; }
  .gw-fa-bench-btn { flex: 1 1 auto; }
  .gw-fa-staging-role { flex-basis: 100%; }
}

/* ── The print summary ──────────────────────────────────────────────────────
   Spec Phase 5 asks for one; it is this page's own no-JS state, so it needs
   no second route and no second markup. Everything hidden by the island is
   revealed, and everything that only makes sense on screen goes. */
@media print {
  .gw-fa-bench-bar,
  .gw-fa-bench-print,
  .gw-fa-bench-video,
  .gw-fa-bench-own-video,
  .gw-fa-bench-timer-btn,
  .gw-fa-bench-timer-out,
  .gw-fa-bench-seek-note { display: none !important; }

  .gw-fa-bench-step { display: block !important; page-break-inside: avoid; border-bottom: 1px solid #ccc; }
  .gw-fa-bench-errors { background: none; border: 1px solid #ccc; }
  /* <details> print closed by default in most browsers, which would drop the
     causes from a sheet somebody is taking to the bench precisely so they do
     not need a screen. */
  .gw-fa-bench-error > *:not(summary) { display: block !important; }
  .gw-fa-bench-instruction { font-size: 13pt; }
  .gw-fa-staging-list input { display: inline-block; }
}
.gw-fa-bench-link { font: 600 13px/1.3 var(--gwd-sans); white-space: nowrap; }

/* ── Material page (WP-6.1) ─────────────────────────────────────────────── */

/* A fill with white text on it takes the deep orange; the 1px edge keeps the
   accent, because a border carries no text and passes at 3:1. */
.gw-fa-badge-warn { background: var(--gwd-orange-deep); border-color: var(--gwd-orange-deep); color: #fff; }

/* The §15 standing rule, on the page rather than in a specification. */
.gw-fa-restricted-note {
  margin: 0 0 22px;
  padding: 12px 15px;
  background: #f7ead3;
  border-left: 3px solid var(--gwd-orange);
  font: 15px/1.55 var(--gwd-serif);
  color: #6f4d16;
  max-width: 74ch;
}
.gw-fa-restricted-note b {
  display: block;
  font: 850 10px/1.6 var(--gwd-sans);
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* The measure belongs to the BLOCK, not to each paragraph (WP-6.4).
 *
 * `ch` resolves against the element's OWN font-size, so with the cap on `p`
 * and `p:first-child` bumped to 19px, the lead paragraph's column came out
 * about 12% wider than the ones beneath it. That mismatched right edge is
 * what reads as text being cut off: not one column, but two that nearly
 * line up. One cap on the container gives every paragraph the same edge.
 *
 * 80ch at 18px, up from 74ch at 17px. This is the opening prose of a
 * full-width dossier page, and at the old measure it filled about seventy
 * per cent of the column with nothing beside it. A cap still exists — a
 * line running the whole dossier width is genuinely harder to read — so
 * the fix is a fuller column, not an uncapped one.
 */
.gw-fa-prose { max-width: 80ch; font: 18px/1.65 var(--gwd-serif); }
.gw-fa-prose p { margin: 0 0 14px; }

.gw-fa-props { margin: 0; display: grid; gap: 0; }
.gw-fa-prop {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px 18px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gwd-line);
}
.gw-fa-prop dt { font: 850 10px/1.5 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase; color: #41504b; }
.gw-fa-prop dd { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gw-fa-prop-track {
  flex: 1 1 160px;
  min-width: 120px;
  max-width: 340px;
  height: 9px;
  background: var(--gwd-paper);
  border: 1px solid var(--gwd-line);
  display: block;
}
.gw-fa-prop-track i { display: block; height: 100%; background: var(--gwd-green); }
.gw-fa-prop-value { font: 800 13px/1 var(--gwd-sans); font-variant-numeric: tabular-nums; min-width: 26px; }
.gw-fa-prop-text { font: 15px/1.45 var(--gwd-serif); }
/* The basis, quiet but never absent — a bar with no basis reads as a
   measurement, which is exactly what these numbers are not. */
.gw-fa-prop-basis {
  font: 600 10px/1.4 var(--gwd-sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gwd-muted);
}
.gw-fa-props-note { margin: 14px 0 0; font: 14px/1.55 var(--gwd-serif); color: var(--gwd-muted); max-width: 74ch; }

.gw-fa-used-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 6px;
  font: 750 15px/1.3 var(--gwd-sans);
}
.gw-fa-used-count {
  padding: 1px 7px;
  background: var(--gwd-green-soft);
  color: var(--gwd-green);
  font: 800 10px/1.6 var(--gwd-sans);
}
.gw-fa-used-count-quiet { background: var(--gwd-paper); color: var(--gwd-muted); }
.gw-fa-used-note { margin: 0 0 10px; font: 14px/1.5 var(--gwd-serif); color: var(--gwd-muted); max-width: 74ch; }
.gw-fa-used { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gw-fa-used li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--gwd-line);
  background: #fff;
  font: 14px/1.3 var(--gwd-sans);
}
.gw-fa-used li small { color: var(--gwd-muted); font: 12px/1.3 var(--gwd-serif); }
.gw-fa-used-quiet li { background: var(--gwd-light); border-style: dashed; }

@media (max-width: 640px) {
  .gw-fa-prop { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Substitutions (WP-6.2) ─────────────────────────────────────────────── */

.gw-fa-subs { display: grid; gap: 14px; margin: 0 0 6px; }
.gw-fa-sub { border: 1px solid var(--gwd-line); background: #fff; padding: 14px 16px 16px; }
.gw-fa-sub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--gwd-line);
}
.gw-fa-sub-head b { font: 750 16px/1.3 var(--gwd-sans); }
.gw-fa-sub-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.gw-fa-chip {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gwd-green-soft);
  color: var(--gwd-green);
  font: 800 10px/1.7 var(--gwd-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gw-fa-chip-quiet  { background: var(--gwd-paper); color: var(--gwd-muted); }
/* The band is the score read against its own mode's threshold — 74 is a
   strong display equivalent and a weak exact-traditional answer, so the
   colour follows the verdict rather than the number. */
.gw-fa-chip-strong   { background: #d7e8df; color: #2e6e54; }
.gw-fa-chip-suitable { background: var(--gwd-green-soft); color: var(--gwd-green); }
.gw-fa-chip-partial  { background: #f7ead3; color: #8a6220; }
.gw-fa-chip-poor     { background: #f7e2d8; color: #a33f18; }
.gw-fa-chip-unscored { background: var(--gwd-paper); color: var(--gwd-muted); }
.gw-fa-chip-warn     { background: var(--gwd-orange-deep); color: #fff; }

.gw-fa-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 24px;
  margin: 12px 0 0;
}
.gw-fa-sub-grid dt {
  font: 850 10px/1.5 var(--gwd-sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gwd-muted);
}
.gw-fa-sub-grid dd { margin: 2px 0 0; font: 15px/1.5 var(--gwd-serif); }
.gw-fa-sub-evidence {
  margin: 12px 0 0;
  padding-top: 9px;
  border-top: 1px dotted var(--gwd-line);
  font: 13px/1.5 var(--gwd-serif);
  color: var(--gwd-muted);
}

/* ── The project sheet (WP-7.2) ───────────────────────────────────
 *
 * Built to be printed. A maker works from paper at the vise, not from a phone
 * that sleeps, so the worksheet lines are ruled blanks and the print rules
 * drop everything that is only useful on screen.
 */
.gw-fa-worksheet { list-style: none; margin: 12px 0 0; padding: 0; }
.gw-fa-worksheet li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gwd-line); }
.gw-fa-worksheet-label { flex: 0 0 auto; font: 13px/1.4 var(--gwd-sans); color: var(--gwd-muted); }
/* The blank itself: a rule that takes whatever width is left, so a long label
   never pushes the writing space off the page. */
.gw-fa-rule { flex: 1 1 auto; border-bottom: 1px solid var(--gwd-line); min-width: 80px; height: 1.4em; }

.gw-fa-stages { margin: 14px 0 0; padding-left: 22px; }
.gw-fa-stages li { padding: 5px 0; font: 15px/1.5 var(--gwd-serif); }
.gw-fa-stages label { cursor: pointer; }
.gw-fa-stages input { margin-right: 8px; }

.gw-fa-provenance { margin: 0 0 22px; }
.gw-fa-provenance h3 { margin: 0 0 6px; font: 700 17px/1.3 var(--gwd-sans); }
.gw-fa-provenance h3 small { font: 400 13px/1 var(--gwd-sans); color: var(--gwd-muted); margin-left: 8px; }

@media print {
  .gw-fa-noprint { display: none !important; }
  /* A checkbox prints as an empty square in every browser worth naming, which
     is exactly the affordance a paper list wants — so it is kept, not hidden. */
  .gw-fa-project .gw-section { break-inside: avoid; }
  .gw-fa-worksheet li { padding: 13px 0; }
  .gw-fa-rule { height: 1.8em; }
}

/* ── Display Mode (WP-7.3) ───────────────────────────────────────────────────
 *
 * A review sheet worked through with the fly in one hand and a pen in the
 * other, so the checkbox is the point and everything else gives way to it.
 */
.gw-fa-checklist { list-style: none; margin: 12px 0 0; padding: 0; }
.gw-fa-checklist li { padding: 11px 0; border-bottom: 1px solid var(--gwd-line); break-inside: avoid; }
.gw-fa-checklist label { display: flex; align-items: baseline; gap: 10px; cursor: pointer; }
.gw-fa-check-symptom { font: 16px/1.45 var(--gwd-serif); }
.gw-fa-check-detail { margin: 4px 0 0 26px; font: 14px/1.5 var(--gwd-serif); color: var(--gwd-muted); }
.gw-fa-check-consequence { margin: 4px 0 0 26px; font: 13px/1.5 var(--gwd-sans); color: #8a6d00; }
.gw-fa-check-both {
  display: inline-block; margin: 4px 0 0 26px;
  font: 850 10px/1.6 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase;
  color: var(--gwd-muted);
}

/* ── The pattern action bar (WP-7.5) ──────────────────────────────── */
.gw-fa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.gw-fa-action {
  display: inline-block; padding: 9px 15px;
  font: 850 11px/1 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--gwd-ink); background: transparent;
  border: 1px solid var(--gwd-line); border-radius: 2px;
  text-decoration: none; cursor: pointer;
}
.gw-fa-action:hover { border-color: var(--gwd-ink); }
.gw-fa-action:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 2px; }
.gw-fa-action-solid { color: #fff; background: var(--gwd-ink); border-color: var(--gwd-ink); }

/* ── Printing a pattern page (WP-7.5) ─────────────────────────────
 *
 * A recipe carried to the vise. The dressing picker is a JavaScript control
 * and prints as a row of dead buttons, so it goes — and every dressing is
 * un-hidden, because the point of the paper copy is having all of them.
 */
@media print {
  .gw-fa-dressing-picker,
  .gw-fa-compare-link,
  .gw-fa-actions { display: none !important; }
  .gw-fa-dressing[hidden] { display: block !important; }
  .gw-fa-dressing { break-inside: avoid; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * The pattern index (pattern-page spec Phase 2, §5.2, §5.3)
 *
 * Ported rule-for-rule from `docs/mockups/fly-atlas-pattern-page/b3.html`,
 * changing only the selector — §5.2's porting rule. The proportions, weights,
 * letter-spacings and 1px borders are the design, so nothing here is
 * "cleaned up", consolidated, or swapped for a near-enough existing component.
 *
 * NO COLOURS AND NO FONT STACKS ARE DECLARED. Every value is `var(--gwd-*)`
 * from `gw-hook-dossier.css`, which is why the prototype already looked like
 * the site. The literal hex values below are the prototype's own mid-tones,
 * which the ten tokens do not carry — each is used exactly as it appears
 * there rather than approximated to a token.
 *
 * SQUARE CORNERS. There is no `border-radius` in the prototype and there is
 * none here.
 *
 * The controls are LINKS, not buttons. §5.4 makes the lens and era query args
 * and this page has no JavaScript at all, so `aria-current="page"` carries the
 * selected state where the prototype used `aria-pressed`.
 * ═══════════════════════════════════════════════════════════════════════════ */

.gw-fa-index .gw-fa-crumb { font: 12px/1.4 var(--gwd-sans); color: var(--gwd-muted); }
.gw-fa-index { container-type: inline-size; container-name: gw-fa-index; }
.gw-fa-index .gw-fa-title { margin: 6px 0 0; font: 750 44px/1.02 var(--gwd-sans); letter-spacing: -.055em; }
@supports (container-type: inline-size) {
  /* Fixed at 44px before, which is fine at 1340px and heavy in a narrow
     column. Same ceiling, now reached by the column rather than by luck. */
  .gw-fa-index .gw-fa-title { font-size: clamp(30px, 3.3cqi, 44px); }
}
.gw-fa-index .gw-fa-subtitle {
  margin: 10px 0 0; max-width: 88ch;
  font: 16px/1.62 var(--gwd-serif); color: #4d5752;
}
.gw-fa-index .gw-fa-subtitle small { display: block; margin-top: 4px; font: 12px/1.4 var(--gwd-sans); color: var(--gwd-muted); }
.gw-fa-index .gw-fa-note { margin: 10px 0 0; max-width: 88ch; font: 13.5px/1.6 var(--gwd-serif); color: #4d5752; }
.gw-fa-index .gw-fa-note b {
  font-family: var(--gwd-sans); font-size: 10px; font-weight: 850;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ── The member position strip ─────────────────────────────────────────── */
.gw-fa-mine {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  margin-top: 20px;
  border-top: 2px solid var(--gwd-green); border-bottom: 1px solid var(--gwd-line);
  background: #f2f6f4;
}
.gw-fa-mine > div { padding: 13px 15px; border-right: 1px solid #dce3e0; }
.gw-fa-mine > div:last-child { border-right: 0; }
.gw-fa-mine dt {
  color: #4e6b62; font: 850 10px/1.3 var(--gwd-sans);
  letter-spacing: .07em; text-transform: uppercase;
}
.gw-fa-mine dd { margin: 5px 0 0; font: 700 16px/1.2 var(--gwd-serif); }
.gw-fa-mine dd em {
  display: block; margin-top: 3px; font-style: normal;
  font: 400 11px/1.35 var(--gwd-sans); color: #68716d;
}

.gw-fa-nudge {
  margin-top: 20px; padding: 18px 22px; background: var(--gwd-paper);
  border: 1px solid var(--gwd-line); border-left: 3px solid var(--gwd-orange);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}
.gw-fa-nudge div { max-width: 66ch; }
.gw-fa-nudge b { display: block; font: 750 17px/1.3 var(--gwd-sans); }
.gw-fa-nudge p { margin: 5px 0 0; font: 14px/1.6 var(--gwd-serif); color: #4d5752; }

/* ── The lens bar ──────────────────────────────────────────────────────── */
.gw-fa-lensbar {
  display: flex; flex-wrap: wrap; gap: 0; align-items: center; margin-top: 20px;
  border-top: 2px solid var(--gwd-ink); border-bottom: 1px solid var(--gwd-line);
  padding: 14px 0;
}
.gw-fa-lensbar > span {
  color: #616965; font: 850 10px/1 var(--gwd-sans);
  letter-spacing: .08em; text-transform: uppercase; margin-right: 12px;
}
.gw-fa-lens {
  padding: 8px 12px; background: var(--gwd-paper);
  border: 1px solid #7d837f; margin-left: -1px;
  font: 800 10px/1 var(--gwd-sans); letter-spacing: .05em;
  color: #4d5752; text-decoration: none;
}
.gw-fa-lens:first-of-type { margin-left: 0; }
.gw-fa-lens[aria-current="page"] {
  background: var(--gwd-ink); border-color: var(--gwd-ink); color: var(--gwd-paper);
  position: relative; z-index: 1;
}
.gw-fa-lens small { display: block; margin-top: 3px; font: 700 10px/1 var(--gwd-sans); color: var(--gwd-muted); }
.gw-fa-lens[aria-current="page"] small { color: #8fb3a6; }
.gw-fa-lens:focus-visible,
.gw-fa-era:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 2px; }
.gw-fa-lenscount { margin-left: auto; color: var(--gwd-muted); font: 13px/1.4 var(--gwd-serif); }
.gw-fa-lenscount a { color: var(--gwd-orange-deep); }
.gw-fa-lensnote { margin: 12px 0 0; color: #4d5752; font: 13.5px/1.6 var(--gwd-serif); max-width: 88ch; }

/* ── The tieable filter ────────────────────────────────────────────────────
 *
 * SQUARE, like everything else on this page. It was drafted as a rounded pill
 * and the suite caught it: §5.2's porting rules make square corners normative
 * for the index, and a single rounded control would be the one round thing on
 * a page of hard edges. Green rather than ink so it reads as a filter that is
 * ON — a reader who forgets it is set will read a short tier as a thin
 * archive.
 *
 * Deliberately NOT styled as a sixth lens: the five above it re-group, and
 * this narrows.
 */
.gw-fa-tieable { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }
.gw-fa-tienow {
  display: inline-block; padding: 7px 13px; border: 1px solid var(--gwd-green, #194b42);
  background: transparent; color: var(--gwd-green, #194b42); text-decoration: none;
  font: 800 10px/1 var(--gwd-sans); letter-spacing: .05em;
}
.gw-fa-tienow small { display: inline; margin-left: 7px; font: 700 10px/1 var(--gwd-sans); opacity: .8; }
.gw-fa-tienow.is-on,
.gw-fa-tienow:hover { background: var(--gwd-green, #194b42); color: var(--gwd-paper); }
.gw-fa-tienow:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 2px; }
.gw-fa-tieable > span { color: var(--gwd-muted); font: italic 12.5px/1.5 var(--gwd-serif); max-width: 74ch; }

/* ── The timeline strip ────────────────────────────────────────────────── */
.gw-fa-timeline {
  display: grid; grid-template-columns: repeat(var(--gw-fa-bands, 7), 1fr);
  border: 1px solid var(--gwd-line); background: var(--gwd-paper); margin-top: 16px;
}
.gw-fa-era {
  padding: 12px 10px 11px; border-right: 1px solid var(--gwd-line);
  background: transparent; text-align: left; color: inherit; text-decoration: none;
  position: relative;
}
.gw-fa-era:last-child { border-right: 0; }
.gw-fa-era:hover { background: #f4f2ee; }
.gw-fa-era[aria-current="page"] { background: var(--gwd-ink); color: var(--gwd-paper); }
.gw-fa-era[aria-current="page"] .gw-fa-era-bar i { background: #8fb3a6; }
.gw-fa-era-label {
  display: block; font: 850 10px/1.3 var(--gwd-sans);
  letter-spacing: .07em; text-transform: uppercase; color: var(--gwd-muted);
}
.gw-fa-era[aria-current="page"] .gw-fa-era-label { color: #b6c0bc; }
.gw-fa-era-count { display: block; margin-top: 5px; font: 850 21px/1 var(--gwd-sans); letter-spacing: -.04em; }
.gw-fa-era-bar { display: block; height: 5px; margin-top: 8px; background: #e6e3dc; }
.gw-fa-era-bar i { display: block; height: 100%; background: var(--gwd-green); }
.gw-fa-era-source { display: block; margin-top: 6px; font: 11.5px/1.35 var(--gwd-serif); color: var(--gwd-muted); }
.gw-fa-era[aria-current="page"] .gw-fa-era-source { color: #b6c0bc; }
/* An empty band is DIMMED, never hidden — its emptiness is the finding. */
.gw-fa-era.is-empty { opacity: .5; }

/* ── Tiers and their cards ─────────────────────────────────────────────── */
.gw-fa-tier { padding: 24px 0 6px; border-top: 2px solid var(--gwd-ink); margin-top: 20px; }
.gw-fa-tier-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.gw-fa-tier-head h2 { margin: 0; font: 750 25px/1.1 var(--gwd-sans); letter-spacing: -.04em; }
.gw-fa-tier-count { color: var(--gwd-muted); font: 13px/1.4 var(--gwd-serif); }
.gw-fa-tier-stage {
  margin-left: auto; padding: 4px 8px;
  background: var(--gwd-green-soft); color: #2e6e54;
  font: 850 10px/1 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase;
}
.gw-fa-tier > p { margin: 0 0 14px; color: #4d5752; font: 14px/1.6 var(--gwd-serif); max-width: 84ch; }
.gw-fa-tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 9px; }

.gw-fa-pcard {
  background: var(--gwd-paper); border: 1px solid var(--gwd-line);
  padding: 12px 13px 11px; text-align: left;
  font: inherit; color: inherit; text-decoration: none;
  position: relative; display: flex; flex-direction: column; gap: 7px;
}
.gw-fa-pcard:hover { border-color: #8d938f; }
.gw-fa-pcard:focus-visible,
.gw-fa-excard:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 2px; }
.gw-fa-pcard h3 { margin: 0; font: 750 15.5px/1.18 var(--gwd-sans); letter-spacing: -.025em; }
.gw-fa-ord {
  display: flex; align-items: center; gap: 6px; color: var(--gwd-muted);
  font: 850 10px/1 var(--gwd-sans); letter-spacing: .08em; text-transform: uppercase;
}
.gw-fa-sty { color: var(--gwd-muted); font: 12px/1.4 var(--gwd-serif); margin-top: -3px; }
.gw-fa-nxt { color: var(--gwd-muted); font: 11.5px/1.4 var(--gwd-sans); }

.gw-fa-chal { display: flex; align-items: center; gap: 7px; }
.gw-fa-chal > span {
  color: #616965; font: 850 10px/1 var(--gwd-sans);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
/*
 * Ten segments, 5x11px, 2px gap. Green under 8, orange at 8 and above.
 *
 * ── The high-challenge bar, and an arithmetic correction ─────────────────
 *
 * The review measured this bar's on-vs-off pair at 2.68:1 and prescribed
 * DARKENING the off segment to #cfccc4. Recomputed, that moves the pair the
 * wrong way — 2.68 to 2.26 — because the failing pair is the LIGHT orange
 * against a light ground, and darkening the ground closes the gap the eye is
 * reading. The off segment is therefore unchanged, and the on segment takes
 * `--gwd-orange-deep` instead: 4.22:1, and the same rule every other orange
 * fill in this module now follows. The green bar is untouched at 3.69:1.
 */
.gw-fa-bars { display: flex; gap: 2px; }
.gw-fa-bars i { width: 5px; height: 11px; background: #e0ddd6; }
.gw-fa-bars i.is-on { background: #2e7d5b; }
.gw-fa-bars.is-high i.is-on { background: var(--gwd-orange-deep); }

/* Explore cards are DASHED until hover — the prototype's own signal that the
 * record is thinner than a path pattern, not that it is broken. */
.gw-fa-excard {
  background: #fbfaf7; border: 1px dashed #bfb9ae;
  padding: 12px 13px 11px; text-align: left;
  font: inherit; color: inherit; text-decoration: none;
  display: flex; flex-direction: column; gap: 7px;
}
.gw-fa-excard:hover { border-color: #8d938f; border-style: solid; background: var(--gwd-paper); }
.gw-fa-excard h3 { margin: 0; font: 750 15.5px/1.18 var(--gwd-sans); letter-spacing: -.025em; }
.gw-fa-excard .gw-fa-noassess { font: 11.5px/1.45 var(--gwd-sans); color: #8a6220; }
.gw-fa-excard.is-thin { background: #f7f6f2; border-color: #d2ccc1; }
.gw-fa-excard.is-thin .gw-fa-noassess { color: #5b5e58; }
.gw-fa-famtag {
  display: inline-block; padding: 2px 6px;
  background: #e7ece9; border: 1px solid #c6d0cb; color: #2c534a;
  font: 850 10px/1.5 var(--gwd-sans); letter-spacing: .05em; margin-right: 3px;
}
/* The EDITORIAL 1–5, which is not the curriculum's teaching challenge out of
   ten. A different ground so the two cannot be read as one scale. */
.gw-fa-famtag.is-diff { background: var(--gwd-paper); border-color: var(--gwd-line); color: #4d5752; }
/* The summary an un-assessed card had room for and never showed. Clamped, so
   a long one cannot turn a grid of cards into a column of essays. */
.gw-fa-exsum {
  display: -webkit-box; overflow: hidden;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  color: #4d5752; font: 12.5px/1.5 var(--gwd-serif);
}

/* The two browsing surfaces, each pointing at the other (M21). */
.gw-fa-crosslink { margin: 12px 0 0; font: 13px/1.5 var(--gwd-sans); }
.gw-fa-crosslink a { color: var(--gwd-orange-deep); font-weight: 700; }
.gw-fa-crosslink span { color: var(--gwd-muted); margin-left: 6px; }

/* ── The readiness bar ─────────────────────────────────────────────────── */
.gw-fa-readiness {
  display: flex; height: 8px; border: 1px solid var(--gwd-line);
  background: var(--gwd-paper); overflow: hidden;
}
.gw-fa-readiness i { display: block; height: 100%; box-sizing: border-box; }
/*
 * ADJACENT SEGMENTS NEED AN EDGE. "have" against "sub" was 1.24:1 and "sub"
 * against "unknown" 1.61:1 — a bar whose four states were, to many readers,
 * one continuous smear. The hairline is the paper the bar sits on, so it
 * reads as a gap rather than as a fifth colour, and `border-box` keeps the
 * percentage widths the server wrote from overflowing by a pixel each.
 */
.gw-fa-readiness i + i { border-left: 1px solid var(--gwd-paper); }
.gw-fa-readiness .is-have { background: #2e7d5b; }
.gw-fa-readiness .is-sub { background: #a06a10; }
.gw-fa-readiness .is-no { background: var(--gwd-orange); }
.gw-fa-readiness .is-unk { background: #c3c0b8; }
.gw-fa-readiness-line { display: flex; align-items: center; gap: 8px; font: 11.5px/1.4 var(--gwd-sans); color: var(--gwd-muted); }
.gw-fa-readiness-line b { font-weight: 850; white-space: nowrap; }
.gw-fa-ok { color: #256b4d; }
.gw-fa-warn { color: #a33f18; }
/*
 * DECISIONS.md D8. Nearly every path pattern has no material list, so it gets
 * no bar at all rather than an empty one — a drawn bar reading zero would say
 * "you cannot tie this" about a fly nobody has written the materials down for.
 */
.gw-fa-noreadiness { font: italic 11.5px/1.4 var(--gwd-serif); color: var(--gwd-muted); }

/* ── Narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .gw-fa-index .gw-fa-title { font-size: 32px; letter-spacing: -.04em; }
  /* The timeline stays a grid rather than collapsing to a list: the bands are
   * a shape, and reading them as one is the point. Two columns at this width. */
  .gw-fa-timeline { grid-template-columns: repeat(2, 1fr); }
  .gw-fa-era { border-bottom: 1px solid var(--gwd-line); }
  .gw-fa-lenscount { margin-left: 0; width: 100%; margin-top: 10px; }
  /*
   * The lens strip is five pills joined by a shared 1px edge — `margin-left:
   * -1px` overlaps each on the one before it. That only reads as one control
   * while they are on ONE line: wrapped, the negative margin pulls the first
   * pill of each new row under the last of the previous, and the doubled
   * borders make ragged steps. On a phone they are separate pills with a gap.
   */
  .gw-fa-lensbar { gap: 6px; }
  .gw-fa-lens { margin-left: 0; }
  .gw-fa-lens:first-of-type { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * The bench sheet (pattern-page spec Phase 3, §5.2, §5.3)
 *
 * Ported from b3 with only the selector changed, on the same rule as the
 * index above: no colours and no font stacks of its own, square corners, and
 * the 1px borders and letter-spacings kept exactly because they are the
 * design.
 *
 * Section ORDER is D9's, and it lives in the template rather than here — the
 * blockers block is simply not rendered when there is nothing to rank, which
 * is why there is no "empty" variant of it below to style.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Blockers ─────────────────────────────────────────────────────────── */
.gw-fa-blockers { border-top: 2px solid var(--gwd-orange); }
.gw-fa-blockers-note { margin: 0 0 16px; color: #4d5752; font: 14px/1.6 var(--gwd-serif); max-width: 84ch; }
.gw-fa-blocker-list { margin: 0; padding: 0; list-style: none; counter-reset: gw-fa-bl; }
.gw-fa-blocker-list li {
  counter-increment: gw-fa-bl;
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px;
  padding: 14px 2px; border-top: 1px solid var(--gwd-line); align-items: start;
}
.gw-fa-blocker-list li::before {
  content: counter(gw-fa-bl); font: 850 17px/1.1 var(--gwd-sans); color: var(--gwd-orange-deep);
}
/*
 * MERGED. Each of the four rules below was declared a second time in the
 * bench-sheet block further down this file, with a slightly different value —
 * `margin-top` on the name, `display: block` on the component, a 4px rather
 * than 5px gap above the note, and a leverage chip that became inline-block.
 * The later copy won every time, so the values here were fiction. They are
 * now the values that render, in one place.
 */
.gw-fa-blocker-list b { display: block; margin-top: 2px; font: 750 15.5px/1.25 var(--gwd-sans); }
.gw-fa-blocker-comp {
  display: block; color: var(--gwd-muted); font: 12px/1.4 var(--gwd-sans);
  letter-spacing: .05em; text-transform: uppercase;
}
.gw-fa-blocker-why { margin: 4px 0 0; font: 13.5px/1.55 var(--gwd-serif); color: #4d5752; max-width: 70ch; }
.gw-fa-blocker-why b { display: inline; margin-top: 0; font: 750 13.5px/1.55 var(--gwd-sans); }
.gw-fa-leverage {
  display: inline-block; margin-top: 8px;
  padding: 4px 8px; background: var(--gwd-green-soft); color: #2e6e54;
  font: 850 10px/1.4 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
}
.gw-fa-allclear {
  border-top: 2px solid var(--gwd-green);
  background: var(--gwd-green-soft);
}
.gw-fa-allclear p { margin: 0; font: 15px/1.5 var(--gwd-serif); color: #2e6e54; }

/* ── The no-stage panel. Four of the forty land here. ─────────────────── */
.gw-fa-nostage {
  margin: 14px 0 0; padding: 13px 16px;
  background: var(--gwd-paper); border: 1px solid var(--gwd-line);
  border-left: 3px solid var(--gwd-orange);
  font: 14px/1.62 var(--gwd-serif); color: #3f4a46; max-width: 84ch;
}
.gw-fa-nostage b {
  display: block; font-family: var(--gwd-sans); font-size: 10px; font-weight: 850;
  letter-spacing: .06em; text-transform: uppercase; color: #8a3a17; margin-bottom: 4px;
}

/* ── Practice drills ──────────────────────────────────────────────────── */
.gw-fa-drills { margin: 0; padding: 0; list-style: none; }
.gw-fa-drill {
  padding: 12px 14px; border: 1px solid var(--gwd-line); background: var(--gwd-paper);
  margin-bottom: 8px;
}
/* A key drill takes the orange 3px left border and its reference chip. */
.gw-fa-drill.is-key { border-left: 3px solid var(--gwd-orange); background: #fdf1eb; }
.gw-fa-drill-ref {
  display: inline-block; padding: 2px 6px; margin-right: 8px;
  background: #eae7df; color: #5f6764;
  font: 850 10px/1.5 var(--gwd-sans); letter-spacing: .06em;
}
.gw-fa-drill.is-key .gw-fa-drill-ref { background: var(--gwd-orange-deep); color: var(--gwd-paper); }
.gw-fa-drill b { font: 750 15px/1.3 var(--gwd-sans); }
.gw-fa-drill-cat {
  display: block; margin-top: 3px; color: var(--gwd-muted);
  font: 850 10px/1.3 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase;
}
/* Rule 2: every surfaced drill states why. Styled so it cannot be mistaken
 * for part of the technique name. */
.gw-fa-drill-why {
  display: block; margin-top: 6px;
  font: italic 12.5px/1.5 var(--gwd-serif); color: #4d5752;
}
.gw-fa-drills-also { margin-top: 14px; }
.gw-fa-drills-also summary {
  cursor: pointer; font: 850 10px/1.4 var(--gwd-sans);
  letter-spacing: .07em; text-transform: uppercase; color: #4d5752;
  padding: 8px 0; border-top: 1px solid var(--gwd-line);
}
.gw-fa-drills-also[open] summary { margin-bottom: 10px; }

/* ── Teaching notes ───────────────────────────────────────────────────── */
.gw-fa-teaching { margin: 0; }
.gw-fa-teaching dt {
  color: #616965; font: 850 10px/1.3 var(--gwd-sans);
  letter-spacing: .07em; text-transform: uppercase; margin-top: 14px;
}
.gw-fa-teaching dt:first-child { margin-top: 0; }
.gw-fa-teaching dd {
  margin: 5px 0 0; font: 14.5px/1.62 var(--gwd-serif); color: #3f4a46; max-width: 84ch;
}

@media (max-width: 720px) {
  .gw-fa-blocker-list li { grid-template-columns: 26px minmax(0, 1fr); }
  .gw-fa-leverage { grid-column: 2; justify-self: start; }
  /* The card's note column is the first thing to go: the row, the verdict
   * and the claim class are the finding, and the note explains it. */
  .gw-fa-rstate-note { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * States 3 and 4 — the explore and name-only sheets (Phase 4, §5.2, §5.3)
 *
 * `.gw-fa-withside` is b3's `.withside`: 1fr + 320px, collapsing at 1040px,
 * with the research-state card in the rail. On a name-only page that card is
 * the densest thing on the screen, which is the point of putting it there.
 * ═══════════════════════════════════════════════════════════════════════════ */

.gw-fa-main,
.gw-fa-withside {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px;
  align-items: start; margin-top: 26px;
}
.gw-fa-side { position: sticky; top: 56px; }
/* The sheet pages moved the research state to a full-width band at the foot;
 * `.gw-fa-main` is that single-column wrapper. `.gw-fa-withside` stays for any
 * page still using the two-column arrangement. */
.gw-fa-main { grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (max-width: 1040px) {
  .gw-fa-main,
  .gw-fa-withside { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gw-fa-side { position: static; }
}

/*
 * The panel that stands in for a section this archive cannot fill. Orange
 * left rule and square corners, matching b3's `.gap`. It is a STATEMENT, not
 * an error, so it takes the paper background rather than a warning tint.
 */
.gw-fa-gap {
  padding: 22px 24px; background: var(--gwd-paper);
  border: 1px solid var(--gwd-line); border-left: 3px solid var(--gwd-orange);
  max-width: 88ch;
}
.gw-fa-gap h2 { margin: 0 0 10px; }
.gw-fa-gap p { margin: 0 0 12px; color: #3f4a46; font: 15px/1.62 var(--gwd-serif); }
.gw-fa-gap p:last-child { margin-bottom: 0; }
.gw-fa-gap b { font-weight: 750; }

/* Badges — the ONE declaration, for every Fly Atlas surface that uses them
 * (see the merge note beside `.gw-fa-badge-solid` above). `is-amber` is the
 * "we do not have this" state, never a failure. */
.gw-fa-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.gw-fa-badge {
  display: inline-block; padding: 4px 9px;
  background: var(--gwd-light); border: 1px solid var(--gwd-line); color: #41504b;
  font: 850 10px/1.5 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase;
}
.gw-fa-badge.is-amber { background: #f7ead3; border-color: #e0cba4; color: #8a6220; }

/*
 * THE NAME-ONLY PAGE HAS NO MATERIAL TABLE AT ALL, and there is deliberately
 * no rule here that would style an empty one. If a `.gw-fa-matrix` ever
 * appears on `.gw-fa-named`, that is a bug in the template rather than
 * something for the stylesheet to tidy up.
 */
.gw-fa-named .gw-fa-title { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
 * The material table, the level strip and the readiness key
 * (pattern-page spec Phase 3, §5.2, §5.3)
 *
 * b3's `.matrix`, `.levels`, `.rdkey`, `.st`, `.risk` and `.scopetag`, ported
 * rule-for-rule with only the selector changed. The level strip's buttons are
 * links here because §5.4 makes the level a query arg and this page has no
 * JavaScript, so `aria-current` carries the selected state.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── The level strip ──────────────────────────────────────────────────── */
.gw-fa-levels { display: flex; flex-wrap: wrap; gap: 0; }
/*
 * ── The strip and its note are the same width, by construction ──────────
 *
 * The four boxes capped at 215px each and the note capped at 84ch, so the two
 * ended at different places on every screen and the note read as belonging to
 * something else. Both fill their container now: four boxes at 1fr and a note
 * with no cap of its own line up at any width without a magic number to keep
 * in step.
 *
 * The prototype's own strip spans the full measure, so this is also what it
 * was supposed to look like.
 */
.gw-fa-levels a {
  padding: 9px 13px; background: var(--gwd-paper); border: 1px solid #7d837f;
  margin-left: -1px; text-align: left; text-decoration: none;
  flex: 1 1 168px; min-width: 0;
}
.gw-fa-levels a:first-child { margin-left: 0; }
.gw-fa-levels a b {
  display: block; font: 800 10px/1.3 var(--gwd-sans);
  letter-spacing: .06em; text-transform: uppercase; color: #41504b;
}
.gw-fa-levels a span {
  display: block; margin-top: 3px; font: 11.5px/1.4 var(--gwd-serif); color: var(--gwd-muted);
}
.gw-fa-levels a[aria-current="page"] {
  background: var(--gwd-ink); border-color: var(--gwd-ink); position: relative; z-index: 1;
}
.gw-fa-levels a[aria-current="page"] b { color: var(--gwd-paper); }
.gw-fa-levels a[aria-current="page"] span { color: #b6c0bc; }
.gw-fa-levels a:focus-visible { outline: 2px solid var(--gwd-orange); outline-offset: 2px; }
.gw-fa-levelnote {
  margin: 12px 0 0; padding: 11px 14px; background: var(--gwd-paper);
  border: 1px solid var(--gwd-line); border-left: 3px solid var(--gwd-green);
  font: 13.5px/1.6 var(--gwd-serif); color: #3f4a46;
}
.gw-fa-levelnote b {
  font-family: var(--gwd-sans); font-size: 10px; font-weight: 850;
  letter-spacing: .06em; text-transform: uppercase; color: #2e6e54;
}

/* ── The material table ───────────────────────────────────────────────── */
/* The second place a horizontal scroll is allowed, for the same reason as the
   compare table: four columns of prose do not fit a phone, and the alternative
   that shipped was dropping the legal-risk column entirely. */
.gw-fa-matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gw-fa-matrix { width: 100%; border-collapse: collapse; border-top: 2px solid var(--gwd-ink); }
.gw-fa-matrix th {
  padding: 9px 12px 9px 2px; text-align: left;
  color: #616965; font: 850 10px/1.3 var(--gwd-sans);
  letter-spacing: .07em; text-transform: uppercase;
}
.gw-fa-matrix td {
  padding: 11px 12px 11px 2px; border-top: 1px solid var(--gwd-line);
  vertical-align: top; font: 13.5px/1.5 var(--gwd-serif);
}
.gw-fa-matrix .gw-fa-mat b { display: block; font: 750 14px/1.35 var(--gwd-sans); }
/* Row tints, so a blocked row reads before anybody reaches the status chip. */
.gw-fa-matrix tr.is-sub { background: #fbf6ec; }
.gw-fa-matrix tr.is-blocked { background: #fdefe8; }
.gw-fa-matrix tr.is-unknown { background: #f4f3f0; }
/* The component header row: ink ground, white uppercase label, and the
 * placement note in italic beside it. */
.gw-fa-matrix tr.gw-fa-comprow td {
  background: var(--gwd-ink); color: var(--gwd-paper);
  padding: 7px 12px 7px 8px; border-top: 0;
}
.gw-fa-matrix tr.gw-fa-comprow b {
  font: 850 10px/1.4 var(--gwd-sans); letter-spacing: .09em; text-transform: uppercase;
}
.gw-fa-matrix tr.gw-fa-comprow span {
  margin-left: 12px; font: 13px/1.4 var(--gwd-serif); color: #b6c0bc; font-style: italic;
}
/* The scoped-rule tag — the visible payoff of scoping the claims (D1). */
.gw-fa-scopetag {
  display: inline-block; margin-top: 4px; padding: 2px 6px;
  background: #e2e9f0; color: #2f5470;
  font: 850 10px/1.5 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase;
}
.gw-fa-st {
  display: inline-block; padding: 3px 7px; white-space: nowrap;
  font: 850 10px/1.4 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase;
}
.gw-fa-st.is-have { background: #dcece4; color: #26654a; }
.gw-fa-st.is-sub  { background: #f7ead3; color: #8a6220; }
.gw-fa-st.is-no   { background: #f7e2d8; color: #a33f18; }
.gw-fa-st.is-unk  { background: #e6e4de; color: #5b5e58; }
.gw-fa-risk {
  display: inline-block; padding: 3px 6px; white-space: nowrap;
  font: 850 10px/1.4 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase;
}
.gw-fa-risk.is-lo { background: #dcece4; color: #26654a; }
.gw-fa-risk.is-md { background: #eae7df; color: #5f6764; }
.gw-fa-risk.is-hi { background: #f7e2d8; color: #a33f18; }
/* An unclassified band is its OWN chip, never the low one — the same choice
 * `Vocab::legal_risk_at_least()` makes, for the same reason. */
.gw-fa-risk.is-un { background: #e6e4de; color: #5b5e58; }
.gw-fa-risk.is-have { background: #dcece4; color: #26654a; }
.gw-fa-risk.is-sub  { background: #f7ead3; color: #8a6220; }
.gw-fa-risk.is-no   { background: #f7e2d8; color: #a33f18; }
.gw-fa-risk.is-unk  { background: #e6e4de; color: #5b5e58; }

/* ── The readiness key ────────────────────────────────────────────────── */
.gw-fa-readiness-key {
  display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; padding: 0;
  list-style: none; font: 12.5px/1.5 var(--gwd-sans); color: #4d5752;
}
.gw-fa-readiness-key li { display: flex; align-items: center; gap: 6px; }
.gw-fa-readiness-key i { width: 11px; height: 11px; flex: none; }
.gw-fa-readiness-key i.is-have { background: #2e7d5b; }
.gw-fa-readiness-key i.is-sub { background: #a06a10; }
.gw-fa-readiness-key i.is-no { background: var(--gwd-orange); }
.gw-fa-readiness-key i.is-unk { background: #c3c0b8; }

@media (max-width: 720px) {
  /*
   * The risk column USED to go first here — `display: none` on the last cell,
   * which is the legal band. It is the one column a reader cannot reconstruct
   * from the others and the only warning on the page about a protected
   * species, so the table keeps all four columns and scrolls inside
   * `.gw-fa-matrix-scroll` instead. The floor is what four columns of this
   * type actually need.
   */
  .gw-fa-matrix { min-width: 560px; }
}

/* ── The header ───────────────────────────────────────────────────────── */
.gw-fa-header { margin-bottom: 4px; }
.gw-fa-header .gw-fa-crumb {
  margin: 0; color: var(--gwd-muted);
  font: 800 10px/1.3 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase;
}
.gw-fa-header .gw-fa-crumb a { color: inherit; text-decoration: none; }
.gw-fa-header .gw-fa-title {
  max-width: 900px; margin: 8px 0 0;
  font: 700 clamp(38px, 4.4vw, 64px)/.94 var(--gwd-sans); letter-spacing: -.06em;
}
.gw-fa-header .gw-fa-subtitle {
  margin: 14px 0 0; font: 22px/1.3 var(--gwd-serif); max-width: 74ch; color: var(--gwd-ink);
}
.gw-fa-header .gw-fa-subtitle small {
  margin-left: 9px; color: var(--gwd-muted);
  font-size: 14px; font-family: var(--gwd-sans);
}
.gw-fa-badge.is-solid {
  background: var(--gwd-green); border-color: var(--gwd-green); color: var(--gwd-paper);
}

/* ── The blockers block ───────────────────────────────────────────────── */
.gw-fa-blockers-title {
  margin: 0 0 4px; font: 750 20px/1.2 var(--gwd-sans); letter-spacing: -.03em;
}
/* The five rules that stood here restated `.gw-fa-blocker-list li`, `-comp`,
 * `b`, `-why` and `.gw-fa-leverage` from the blockers block above — see the
 * merge note there. Only the row's right rail was ever unique to this block. */
/* The right rail of a row: the two chips stack and right-align, as b3's
 * `.right` does, so the eye reads name-then-verdict rather than across. */
.gw-fa-blocker-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
}

/* ── The research-state card: 118px + 1fr, not a four-column table ─────── */
.gw-fa-rstate {
  background: var(--gwd-paper); border: 1px solid var(--gwd-line);
  border-top: 3px solid var(--gwd-ink);
}
.gw-fa-rstate > h2 {
  margin: 0 !important; padding: 14px 17px 12px !important;
  font: 750 17px/1.25 var(--gwd-sans) !important; letter-spacing: -.02em !important;
  border-bottom: 1px solid var(--gwd-line);
}
.gw-fa-rrow {
  display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px;
  padding: 11px 17px; border-bottom: 1px solid var(--gwd-line); align-items: start;
}
.gw-fa-rrow:last-of-type { border-bottom: 0; }
.gw-fa-rrow dt {
  color: #616965; font: 850 10px/1.7 var(--gwd-sans);
  letter-spacing: .07em; text-transform: uppercase;
}
.gw-fa-rrow dd { margin: 0; font: 13.5px/1.5 var(--gwd-serif); color: #3f4a46; }
/* The verdict is a chip INLINE with its note, which is what makes the card
 * readable at 320px — four columns of prose never could be. */
.gw-fa-v {
  display: inline-block; margin-right: 7px; padding: 2px 7px;
  font: 850 10px/1.6 var(--gwd-sans); letter-spacing: .06em; text-transform: uppercase;
}
.gw-fa-v.is-sourced   { background: #dcece4; color: #26654a; }
.gw-fa-v.is-derived   { background: #e2e9f0; color: #2f5470; }
.gw-fa-v.is-editorial { background: #f2efe9; color: #6a655a; }
.gw-fa-rfoot {
  margin: 0; padding: 11px 17px; background: #f6f5f1;
  font: 12px/1.55 var(--gwd-serif) !important; color: var(--gwd-muted);
  border-top: 1px solid var(--gwd-line);
}

@media (max-width: 720px) {
  .gw-fa-header .gw-fa-title { font-size: 34px; }
  .gw-fa-header .gw-fa-subtitle { font-size: 18px; }
  .gw-fa-blocker-list li { grid-template-columns: 26px minmax(0, 1fr); }
  .gw-fa-blocker-right { flex-direction: row; align-items: center; grid-column: 2; }
}

/* Supplier links on a blocker row (P-8). A name with no URL is dropped in the
 * view model rather than styled here — a dead link looks like a broken one. */
.gw-fa-supplier {
  display: inline-block; padding: 2px 6px;
  background: var(--gwd-light); border: 1px solid var(--gwd-line); color: #2f5470;
  font: 800 10px/1.5 var(--gwd-sans); letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.gw-fa-supplier:hover { border-color: var(--gwd-ink); }

/* The workbook's own qualifier for THIS material — "Goose/Turkey substitutes",
 * "domestic substitutes". Deliberately NOT inside the link: it says what the
 * supplier is listed for here, not where the link goes, and a reader clicking
 * a chip whose text was half shop and half caveat would be right to be
 * surprised. Set in the reading face, not the chip's uppercase sans. */
.gw-fa-supnote {
  font: italic 400 11px/1.5 var(--gwd-serif); color: var(--gwd-muted);
  margin-left: 4px;
}

/* Where the shop IS — never where it ships, and never import guidance. Quieter
 * than the chip and quieter than the qualifier beside it, because it is the
 * least of the three things a reader needs from this row: a region beside
 * Jungle cock must not read as permission, and shouting it would invite
 * exactly that reading. `unknown` prints nothing at all. */
.gw-fa-supregion {
  font: 400 10px/1.5 var(--gwd-sans); color: var(--gwd-muted);
  margin-left: 4px; letter-spacing: .03em;
}

/* The region CONTROL lives in the sheet stylesheet with the rest of the member
 * controls — it only ever renders on My Bench, and it has to out-specify
 * `.gw-fa-sheet .gw-fa-vform`, which lays every other member form out inline. */

/* ═══════════════════════════════════════════════════════════════════════════
 * The index preview panel (§5.3, §5.5)
 *
 * b3's `.scrim` and `.panel`, ported. §5.5 names the one prototype bug not to
 * reproduce and it is restated here rather than trusted to memory:
 * `proto.css` sets `.panel{display:flex}`, WHICH BEATS THE `[hidden]`
 * ATTRIBUTE, leaving the panel permanently open. Both elements therefore
 * declare `[hidden]{display:none}` explicitly, and that rule must stay below
 * the `display` it is correcting.
 * ═══════════════════════════════════════════════════════════════════════════ */
.gw-fa-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(21, 28, 26, .44);
}
.gw-fa-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(560px, 94vw);
  background: var(--gwd-light); border-left: 1px solid var(--gwd-line);
  box-shadow: -18px 0 44px rgba(21, 28, 26, .18);
  overflow: auto; display: flex; flex-direction: column;
}
/* §5.5. Keep below the `display:flex` above. */
.gw-fa-panel[hidden],
.gw-fa-scrim[hidden] { display: none; }

.gw-fa-panel-head {
  position: sticky; top: 0; z-index: 2;
  padding: 18px 24px 14px; background: var(--gwd-light);
  border-bottom: 2px solid var(--gwd-ink);
}
.gw-fa-panel-title {
  margin: 10px 0 0; font: 750 33px/1.05 var(--gwd-sans); letter-spacing: -.045em;
}
.gw-fa-panel-attrib { margin: 7px 0 0; color: #4d5752; font: 15px/1.4 var(--gwd-serif); }
.gw-fa-panel-body { padding: 0 24px 24px; }
.gw-fa-panel-sec { padding: 18px 0; border-bottom: 1px solid var(--gwd-line); }
.gw-fa-panel-sec:last-child { border-bottom: 0; }
.gw-fa-panel-sec > h3 {
  margin: 0 0 10px; color: #616965;
  font: 850 10px/1 var(--gwd-sans); letter-spacing: .08em; text-transform: uppercase;
}
.gw-fa-panel-sec p { margin: 0; color: #3f4a46; font: 14px/1.6 var(--gwd-serif); }
.gw-fa-panel-blockers { margin: 0; padding: 0 0 0 18px; list-style: decimal; }
.gw-fa-panel-blockers li { margin-bottom: 6px; color: #4d5752; font: 14px/1.5 var(--gwd-serif); }
.gw-fa-panel-blockers b { font: 750 14px/1.5 var(--gwd-sans); color: var(--gwd-ink); }
.gw-fa-panel-blockers span {
  color: var(--gwd-muted); font: 850 10px/1.5 var(--gwd-sans);
  letter-spacing: .06em; text-transform: uppercase;
}
.gw-fa-panel-kv {
  display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 6px 14px;
  margin: 0; font: 14px/1.45 var(--gwd-serif);
}
.gw-fa-panel-kv dt {
  color: #616965; font: 850 10px/1.9 var(--gwd-sans);
  letter-spacing: .07em; text-transform: uppercase;
}
.gw-fa-panel-kv dd { margin: 0; }
.gw-fa-panel-foot {
  position: sticky; bottom: 0; margin-top: auto;
  padding: 14px 24px; background: var(--gwd-light);
  border-top: 1px solid var(--gwd-line);
  display: flex; gap: 8px; flex-wrap: wrap;
}
/* The panel is the one place on the index that uses the button component. */
.gw-fa-panel .gw-fa-btn {
  display: inline-block; min-height: 40px; padding: 0 16px;
  color: var(--gwd-light); background: var(--gwd-ink); border: 1px solid var(--gwd-ink);
  font: 850 10px/38px var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
}
.gw-fa-panel .gw-fa-btn.is-ghost { color: var(--gwd-ink); background: transparent; border-color: #7d837f; }

/* ═══════════════════════════════════════════════════════════════════════════
 * The header search box (SPEC-live-search-omnibox §4)
 *
 * Present on every Atlas route and NOT on the archive, which has its own
 * faceted `role="search"` form — two controls answering the same question,
 * with the thinner one higher up the page, is worse than one.
 *
 * It is a real form before it is a listbox, so it is styled as a working
 * control at rest rather than as an affordance the script switches on. The
 * only thing the island reveals is the `/` hint, because that key genuinely
 * does nothing until the script runs.
 * ═══════════════════════════════════════════════════════════════════════════ */

.gw-fa-omni {
  position: relative;
  display: flex; align-items: stretch; gap: 0;
  margin: 14px 0 0; max-width: 460px;
}

.gw-fa-omni .gw-fa-omni-input {
  flex: 1 1 auto; min-width: 0;
  /* 44px, per the touch-target rule the review sets for this module. */
  min-height: 44px; padding: 0 12px;
  background: var(--gwd-paper, #fff);
  border: 1px solid var(--gwd-line);
  border-right: 0;
  color: var(--gwd-ink);
  font: 400 15px/1.4 var(--gwd-sans);
  -webkit-appearance: none; appearance: none;
}
.gw-fa-omni .gw-fa-omni-input::placeholder { color: var(--gwd-muted); opacity: 1; }
.gw-fa-omni .gw-fa-omni-input:focus-visible {
  outline: 2px solid var(--gwd-orange-deep);
  outline-offset: -2px;
}

.gw-fa-omni .gw-fa-omni-go {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px;
  background: var(--gwd-ink); border: 1px solid var(--gwd-ink);
  color: var(--gwd-light);
  font: 850 10px/1 var(--gwd-sans); letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer;
}
.gw-fa-omni .gw-fa-omni-go:hover { background: var(--gwd-orange-deep); border-color: var(--gwd-orange-deep); }

/*
 * Hidden until the island reveals it, and hidden again wherever there is no
 * key to press. A hint for a shortcut that does not exist is worse than none.
 */
.gw-fa-omni .gw-fa-omni-kbd {
  display: none;
  position: absolute; right: 92px; top: 50%; transform: translateY(-50%);
  padding: 2px 6px;
  background: var(--gwd-light); border: 1px solid var(--gwd-line);
  color: var(--gwd-muted);
  font: 700 11px/1.4 var(--gwd-mono, monospace);
  pointer-events: none;
}
.gw-fa-omni .gw-fa-omni-kbd.is-on { display: block; }
@media (pointer: coarse) {
  .gw-fa-omni .gw-fa-omni-kbd.is-on { display: none; }
}

/* ── The listbox ──────────────────────────────────────────────────────────
   Absolutely positioned so opening it never reflows the header underneath —
   a list that pushed the page down would move the thing the reader is
   looking at every time they typed a letter. */
.gw-fa-omni .gw-fa-omni-list {
  position: absolute; z-index: 30;
  top: calc(100% + 4px); left: 0; right: 0;
  max-height: 60vh; overflow-y: auto;
  margin: 0; padding: 0; list-style: none;
  background: var(--gwd-paper, #fff);
  border: 1px solid var(--gwd-ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}

.gw-fa-omni .gw-fa-omni-head {
  padding: 9px 12px 4px;
  color: var(--gwd-muted);
  font: 850 10px/1.3 var(--gwd-sans); letter-spacing: .12em; text-transform: uppercase;
}

.gw-fa-omni .gw-fa-omni-row {
  padding: 9px 12px; min-height: 44px;
  border-top: 1px solid var(--gwd-line);
  cursor: pointer;
}
.gw-fa-omni .gw-fa-omni-head + .gw-fa-omni-row { border-top: 0; }
.gw-fa-omni .gw-fa-omni-row:first-child { border-top: 0; }
.gw-fa-omni .gw-fa-omni-row:hover,
.gw-fa-omni .gw-fa-omni-row[aria-selected="true"] {
  background: var(--gwd-light);
}
/* The active row is named by aria-activedescendant and never focused, so it
   needs a visible marker of its own — focus styling would land on the input. */
.gw-fa-omni .gw-fa-omni-row[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--gwd-orange-deep);
}

.gw-fa-omni .gw-fa-omni-row-title {
  display: block;
  font: 700 15px/1.25 var(--gwd-sans); color: var(--gwd-ink);
}
.gw-fa-omni .gw-fa-omni-row-sub {
  display: block; margin-top: 2px;
  font: 400 13px/1.4 var(--gwd-serif); color: var(--gwd-muted);
}

@media (max-width: 700px) {
  .gw-fa-omni { max-width: none; }
}

/* ── The technique index (SPEC-technique-pages-and-index Part B) ──────────
 *
 * Sixteen groups of cards, six ways round. The lens strip and the card grid
 * borrow the pattern index's shapes deliberately — a member moving between
 * the two archives is asking one kind of question, and two navigation
 * languages for it would be a tax on that.
 */
.gw-fa-lenses {
  display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline;
  margin: 0 0 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--gwd-line);
  font: 13px/1.6 var(--gwd-sans);
}
.gw-fa-lenses .gw-fa-lens { color: var(--gwd-muted); }
/* The chosen lens is bold AND carries `aria-current` in the markup: colour
   alone would say nothing to a reader who cannot see it. */
.gw-fa-lenses .gw-fa-lens.is-on { color: var(--gwd-ink); font-weight: 750; }

/* Three counts over data the page already holds. Numbers lead because the
   numbers are what a member came back to see. */
.gw-fa-member-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; margin: 0 0 22px;
  background: var(--gwd-line); border: 1px solid var(--gwd-line);
}
.gw-fa-member-strip div { padding: 12px 14px 13px; background: var(--gwd-paper); }
.gw-fa-member-strip b { display: block; font: 750 26px/1.1 var(--gwd-sans); color: var(--gwd-ink); }
.gw-fa-member-strip span { display: block; margin-top: 4px; color: var(--gwd-muted); font: 12.5px/1.45 var(--gwd-sans); }

.gw-fa-flypicker {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 0 0 22px; font: 13px/1.6 var(--gwd-sans);
}
.gw-fa-flypicker label { font-weight: 700; }

/* An empty group still gets its heading — an index missing one reads as a
   craft with fewer parts than it has — but it recedes. */
.gw-fa-tgroup.is-empty { opacity: .55; }

.gw-fa-tcards { margin: 12px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--gwd-ink); }
.gw-fa-tcards li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 8px 20px;
  padding: 12px 2px; border-bottom: 1px solid var(--gwd-line); align-items: start;
}
.gw-fa-tcards li > * { min-width: 0; }
.gw-fa-tcard-main b { font: 750 15px/1.35 var(--gwd-sans); }
.gw-fa-tcard-main a { color: inherit; }
.gw-fa-tcard-main p { margin: 3px 0 0; color: var(--gwd-muted); font: 13px/1.5 var(--gwd-serif); max-width: 70ch; }
.gw-fa-tcard-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline; justify-content: flex-end; }
.gw-fa-tnum { color: var(--gwd-muted); font: 12px/1.6 var(--gwd-sans); white-space: nowrap; }
/* Practised is a tick and a weight, not a colour alone. */
.gw-fa-tick { color: var(--gwd-green); font-weight: 800; }
.gw-fa-tcards li.is-practised .gw-fa-tcard-main b { color: var(--gwd-green); }

/* ── What the technique page gained ───────────────────────────────────── */

/* The chain in order. A numbered list because the order IS the information —
   flat badges told a reader there was homework but not where they were. */
.gw-fa-chain { margin: 6px 0 14px; padding-left: 20px; font: 14px/1.7 var(--gwd-sans); }
.gw-fa-chain li { margin-bottom: 3px; }
.gw-fa-chain li.is-here { font-weight: 750; color: var(--gwd-ink); }

/* Handedness notes, now under What matters rather than under History. */
.gw-fa-hands { grid-template-columns: 1fr 1fr; margin-top: 16px; }
.gw-fa-hands dd { font: 15px/1.5 var(--gwd-serif); }

.gw-fa-tmaterials { margin: 12px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--gwd-ink); }
.gw-fa-tmaterials li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px;
  padding: 11px 2px; border-bottom: 1px solid var(--gwd-line); align-items: start;
}
.gw-fa-tmaterials li > * { min-width: 0; }
.gw-fa-tmaterials b { font: 750 15px/1.3 var(--gwd-sans); }
.gw-fa-tmaterials a { color: inherit; }
.gw-fa-tmaterials .gw-fa-muted { display: block; margin-top: 2px; font: 12.5px/1.5 var(--gwd-serif); }
/* The rights flag is not decoration here. On several techniques the
   substitution story IS the page, and a materials list that did not say which
   bird is protected would be its most misleading version. */
.gw-fa-chip.is-risk { background: var(--gwd-orange-deep); color: #fff; }
.gw-fa-caution {
  grid-column: 1 / -1; margin: 4px 0 0;
  color: #8a6220; font: 12.5px/1.5 var(--gwd-serif); max-width: 74ch;
}

.gw-fa-practised { margin-top: 12px; }

@media (max-width: 700px) {
  .gw-fa-tcards li,
  .gw-fa-tmaterials li { grid-template-columns: minmax(0, 1fr); }
  .gw-fa-tcard-meta { justify-content: flex-start; }
  .gw-fa-hands { grid-template-columns: 1fr; }
}
