/**
 * The Naturalist — the 2026 Fly Atlas public design system.
 *
 * SPEC-atlas-redesign-2026 §11. The tokens below are lifted verbatim from
 * `mockups/atlas-2026/tradition-classic-salmon.html`, which is the most
 * complete sheet of the three and therefore the one the spec names.
 *
 * ── Every token is defined for both themes ───────────────────────────────
 *
 * A colour that exists only in one block is a colour that breaks the other
 * theme the first time somebody uses it, and the failure is invisible to
 * whoever is not testing in that mode. So the light palette is complete on
 * `:root` and the dark block redefines the SAME names — it never introduces
 * one.
 *
 * ── And every pair is measured, not judged by eye ─────────────────────────
 *
 * P7 recomputed the WCAG 2.1 ratio of every text-on-ground pair this sheet
 * actually uses, in BOTH themes, and four of them failed. The measurements
 * are recorded beside the tokens they moved, because the next person to
 * adjust a colour here needs to know which ones have no headroom left. The
 * arithmetic lives in `tools/test-fly-atlas-contrast.php`, which fails the
 * build rather than trusting this comment.
 *
 * The rule the palette is held to: **4.5:1 for text**, **3:1 for the
 * boundary of anything a visitor operates** (WCAG 1.4.11), in both themes.
 * A divider between two paragraphs is decoration and is exempt; the edge of
 * a text field is not, which is why `--gw-fa-field-line` exists apart from
 * `--gw-fa-line`.
 *
 * ── The type stack falls back on purpose ─────────────────────────────────
 *
 * §11 asks for self-hosted Alegreya woff2 in the module's assets. The font
 * files are not in this repository and cannot be added by a build that has no
 * licence decision behind it, so every family here names a real fallback and
 * the page is legible without any of them. When the woff2 files land, one
 * `@font-face` block at the top of this file is the whole change.
 */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  /*
   * `color-scheme` is not decoration and it is not a duplicate of the
   * palette below. It is the only way to tell the USER AGENT which way round
   * the page is, and the user agent paints things this stylesheet cannot
   * reach: the placeholder inside an input, the clear button on
   * `type="search"`, the autofill wash, scrollbars, and the default ring.
   * Without it a dark page keeps light-mode form internals — which is
   * exactly how the atlas shipped a search box whose placeholder was
   * near-black text on a near-black field. Reported by the owner, and this
   * declaration is the half of the fix `::placeholder` cannot do.
   */
  color-scheme: light;

  --gw-fa-bg: #f6f3ea;
  --gw-fa-surface: #fdfbf5;
  --gw-fa-ink: #22271f;
  /* Was #6b7061: 4.32:1 on `--gw-fa-wash`, under the 4.5 body-text floor. */
  --gw-fa-muted: #686d5e;
  /*
   * ONE STEP BRIGHTER THAN MUTED, for secondary text that is the reason a
   * reader is looking at the thing it sits under.
   *
   * `--gw-fa-muted` is right for a label beside a value somebody has already
   * decided to read. It is wrong for the quoted line under an omnibox result,
   * which IS the answer - the reader is scanning eight of them at 13px in a
   * popup, and the same grey that reads as "supporting" in a table reads as
   * "unreadable" there. 6.98:1 on the surface, against muted's 5.15:1.
   */
  --gw-fa-muted-strong: #54594b;
  --gw-fa-line: #d9d4c3;
  --gw-fa-line-soft: #e7e2d2;
  /*
   * The edge of a control, kept apart from `--gw-fa-line`.
   *
   * `--gw-fa-line` against either ground is about 1.4:1 — right for a rule
   * between paragraphs and far under the 3:1 WCAG 1.4.11 asks of anything a
   * visitor operates. It mattered here more than the number suggests: a text
   * field in this palette is `--gw-fa-bg` on a `--gw-fa-bg` page, so the
   * border was the ONLY thing distinguishing the field from the page, and it
   * was doing it at 1.34:1.
   */
  --gw-fa-field-line: #8d8778;
  --gw-fa-accent: #4c6136;
  --gw-fa-accent-soft: #eef0e2;
  --gw-fa-accent-ink: #3c4d2b;
  /*
   * A label ON the accent, which is NOT white in both themes.
   *
   * The dark accent is a light sage (#9db06f) chosen to carry on a dark
   * ground; white text on it measures 2.37:1, and on the hover shade
   * `--gw-fa-accent-ink` it measures 1.59:1 — the solid button's label all
   * but vanished the moment a dark-mode reader moved the pointer onto it.
   * Eight controls take `.is-solid`, including both buttons of the sign-in
   * gate, so this was the redesign's most-pressed control and its least
   * legible one.
   */
  --gw-fa-on-accent: #ffffff;
  /*
   * Was #a97e2f: 3.31:1 on `--gw-fa-bg` and 3.07:1 on its own soft ground,
   * and it is the colour of some twenty small-caps labels that are body text
   * by every WCAG measure. Dark-mode gold already passed at 7.4:1 and is
   * untouched — the failure was only ever in the light theme.
   */
  --gw-fa-gold: #856325;
  --gw-fa-gold-soft: #f3ead6;
  --gw-fa-warn: #a3512e;
  --gw-fa-warn-soft: #f4e4dc;
  --gw-fa-wash: #f0ecdf;
  --gw-fa-shadow: 0 1px 3px rgba(40, 40, 30, 0.08);
  /*
   * The two things that float, and they were hardcoded for a light page.
   *
   * `--gw-fa-shadow` was already a token and already correct in both themes;
   * the four DEEPER shadows — the Traditions menu, the chip dropdown, the
   * type-ahead and the technique card — were written as literal rgba and so
   * cast a dark-grey shadow onto a near-black page, which is no shadow at all.
   * A panel floating over content with no shadow and a 1.4:1 border does not
   * read as floating; it reads as the page having changed.
   *
   * Same for the scrim. A 55%-opaque near-black over a light page dims it
   * convincingly and over a DARK page is almost invisible, so the bench's
   * technique dialog opened without dimming anything behind it — no cue that
   * a dialog is up, and none that clicking outside dismisses it. Dark mode
   * needs a heavier hand, not the same colour.
   */
  --gw-fa-pop: 0 6px 18px rgba(30, 30, 20, 0.16);
  --gw-fa-scrim: rgba(20, 22, 18, 0.55);
  --gw-fa-serif: Alegreya, Georgia, "Times New Roman", serif;
  --gw-fa-sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --gw-fa-sc: "Alegreya Sans SC", "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;

  --gw-fa-bg: #171a14;
  --gw-fa-surface: #1e2219;
  --gw-fa-ink: #e8e6da;
  --gw-fa-muted: #9a9d8d;
  --gw-fa-muted-strong: #b4b7a6;
  --gw-fa-line: #363b2d;
  --gw-fa-line-soft: #2a2e23;
  --gw-fa-field-line: #6c7063;
  --gw-fa-accent: #9db06f;
  --gw-fa-accent-soft: #242b1c;
  --gw-fa-accent-ink: #c4d49a;
  --gw-fa-on-accent: #171a14;
  --gw-fa-gold: #cfa14e;
  --gw-fa-gold-soft: #2b2618;
  --gw-fa-warn: #d08a63;
  --gw-fa-warn-soft: #33231b;
  --gw-fa-wash: #20241b;
  --gw-fa-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --gw-fa-pop: 0 6px 20px rgba(0, 0, 0, 0.6);
  --gw-fa-scrim: rgba(0, 0, 0, 0.72);
}

/*
 * The visitor who has expressed no preference gets their system's. Guarded on
 * `:not([data-theme])` so an explicit choice — which the no-flash snippet has
 * already stamped on <html> before this file painted — always wins over the
 * operating system's.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;

    --gw-fa-bg: #171a14;
    --gw-fa-surface: #1e2219;
    --gw-fa-ink: #e8e6da;
    --gw-fa-muted: #9a9d8d;
  --gw-fa-muted-strong: #b4b7a6;
    --gw-fa-line: #363b2d;
    --gw-fa-line-soft: #2a2e23;
    --gw-fa-field-line: #6c7063;
    --gw-fa-accent: #9db06f;
    --gw-fa-accent-soft: #242b1c;
    --gw-fa-accent-ink: #c4d49a;
    --gw-fa-on-accent: #171a14;
    --gw-fa-gold: #cfa14e;
    --gw-fa-gold-soft: #2b2618;
    --gw-fa-warn: #d08a63;
    --gw-fa-warn-soft: #33231b;
    --gw-fa-wash: #20241b;
    --gw-fa-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --gw-fa-pop: 0 6px 20px rgba(0, 0, 0, 0.6);
    --gw-fa-scrim: rgba(0, 0, 0, 0.72);
  }
}

/* ── Page ───────────────────────────────────────────────────────────────── */

body.gw-atlas {
  margin: 0;
  background: var(--gw-fa-bg);
  color: var(--gw-fa-ink);
  font-family: var(--gw-fa-serif);
  font-size: 16px;
  line-height: 1.55;
}

.gw-atlas *,
.gw-atlas *::before,
.gw-atlas *::after { box-sizing: border-box; }

/*
 * `hidden` MEANS HIDDEN — and this needs `!important` to mean it.
 *
 * The user agent's `[hidden] { display: none }` is one class's worth of
 * specificity, so ANY author rule that sets `display` on the same element
 * beats it. That is not a hypothetical: with the flag on, the bench page shipped
 * a full-screen scrim over itself. `.gw-atlas-techpanel` is
 * `position: fixed; inset: 0; z-index: 60; display: grid`, it is rendered with
 * `hidden`, and `display: grid` won — an empty modal covering the whole
 * viewport that its own Close button could not dismiss, because `hide()` sets
 * the attribute the stylesheet was overriding. `.gw-atlas-benchnav`,
 * `.gw-atlas-benchprog` and `.gw-atlas-wake` were losing the same argument
 * more quietly: dead controls printed beside every step with the script off,
 * including the wake-lock switch whose own docblock says a switch that cannot
 * work is worse than no switch.
 *
 * Two rules in this sheet had already been patched one at a time
 * (`.gw-atlas-omni[hidden]`, `.gw-atlas-talkform[hidden]`), which is the shape
 * of a bug that keeps coming back. This states it once, for everything, and
 * `tools/test-fly-atlas-a11y.php` asserts no element carrying `hidden` in the
 * markup is left depending on a companion rule somebody has to remember.
 *
 * `!important` is right here and almost nowhere else: `hidden` is the author
 * saying this content is not relevant, and no layout rule outranks that.
 */
.gw-atlas [hidden] { display: none !important; }

.gw-atlas a { color: inherit; }

/*
 * One focus ring, everywhere, and it is not `outline: none`. The whole atlas
 * is navigable by keyboard and a ring the theme suppressed would make that
 * navigation invisible to the person relying on it.
 */
.gw-atlas :focus-visible {
  outline: 2px solid var(--gw-fa-accent);
  outline-offset: 2px;
}

/*
 * FORM CONTROLS DO NOT INHERIT, and this document is on its own.
 *
 * Every redesign template writes its own `<!DOCTYPE html>` and then calls
 * `wp_head()`, so the active theme's stylesheet is on the page beside this
 * one — but none of the theme's page structure is. That combination is the
 * worst of both: a control here gets no colour from `body`, because the user
 * agent gives `input`, `select` and `textarea` their own `color` and
 * `font-family` rather than inheriting; and whatever the theme says about
 * `input[type="search"]` matches at the same specificity as a rule like
 * `.gw-atlas-search input` and wins on load order.
 *
 * So the baseline is stated here, once, above the specificity a theme selector
 * reaches, and the individual rules below add only geometry. Background is
 * deliberately NOT set here: two fields set their own on purpose (the header's
 * sits on the page ground, the share box's sits darker than the card around
 * it), and a blanket value would flatten both.
 *
 * `html` IS THE FIX, AND IT IS NOT DECORATION. Read this before deleting it.
 *
 * This rule was written as `body.gw-atlas input` and was one point short. The
 * active theme (Imagely, `themes/imagely/assets/css/style.min.css`) carries
 *
 *     form input[type="text"], … form input[type="search"], … { color: #333; }
 *
 * `form input[type="search"]` is (0,1,2) — one attribute selector and two type
 * selectors. `body.gw-atlas input` is ALSO (0,1,2) — one class and two type
 * selectors. That is a TIE, and a tie is decided by document order: atlas.css
 * is the fourteenth stylesheet on the page and the theme's is the nineteenth,
 * so the theme won and every value typed into the header search rendered #333
 * on the #171a14 dark ground — 1.4:1. Measured on the live page 2026-08-30.
 *
 * The placeholder survived, which is what made this read as a paint bug rather
 * than a cascade one: `.gw-atlas-search input::placeholder` has no competitor
 * in the theme, so it kept its token while the value beside it did not.
 *
 * `html` takes the group to (0,1,3), one type selector clear of the theme's
 * (0,1,2), and NOT by `!important` — there is no `!important` on the theme
 * rule, so answering with one would escalate past what the problem needs and
 * leave the next reader unable to tell what it was for.
 *
 * This is the SECOND time this field has lost its text colour; the
 * `color-scheme` note at the top of this file is the first. It is also the
 * hypothesis §7 of SPEC-atlas-search-placement.md explicitly ruled out — on
 * the arithmetic that a theme would say `input[type="search"]` at (0,1,1).
 * It said `form input[type="search"]`. Check the selector, not the shape.
 */
html body.gw-atlas input,
html body.gw-atlas select,
html body.gw-atlas textarea,
html body.gw-atlas button {
  color: var(--gw-fa-ink);
  font-family: var(--gw-fa-sans);
}

/*
 * AND HEADINGS, FOR THE SAME REASON AND A WORSE ONE.
 *
 * `body.gw-atlas { color: var(--gw-fa-ink) }` colours the document, and every
 * heading in this sheet was taking its colour from that by INHERITANCE — which
 * is the weakest way to hold a value there is. An inherited value loses to any
 * matching declaration at any specificity, so a theme rule as plain as
 * `h1 { color: #444 }` beat it outright, and the atlas's own page titles and
 * book titles came out dim and hard to read while the crumb beside them — which
 * names its colour — looked exactly as drawn.
 *
 * That is why this is stated as a rule rather than left to the cascade: not to
 * change any colour, but to make the colour these headings already had survive
 * a stylesheet this document did not ask for.
 *
 * The six rules that deliberately want a MUTED heading are re-scoped below to
 * outrank it. There are only six, and each of them wanted saying out loud
 * anyway for the same reason.
 */
body.gw-atlas h1,
body.gw-atlas h2,
body.gw-atlas h3,
body.gw-atlas h4,
body.gw-atlas h5,
body.gw-atlas h6 { color: var(--gw-fa-ink); }

body.gw-atlas .gw-atlas-rule,
body.gw-atlas .gw-atlas-grouphead,
body.gw-atlas .gw-atlas-rail-h,
body.gw-atlas .gw-atlas-prep-panel h2,
body.gw-atlas .gw-atlas-benchside h2,
body.gw-atlas .gw-atlas-kitbox h3 { color: var(--gw-fa-muted); }

/*
 * The placeholder, which is the other half of the `color-scheme` fix.
 *
 * `color-scheme` stops the user agent painting a light-mode placeholder on a
 * dark field; this names the colour outright so the result does not depend on
 * a user-agent default at all. `opacity: 1` is required, not tidiness —
 * Firefox applies its own opacity to the placeholder on top of the colour,
 * which quietly drops a passing 4.5:1 below the floor.
 *
 * It has to clear 4.5:1 rather than the 3:1 a hint might get away with,
 * because on the header's search box the placeholder IS the visible label:
 * the real one is `.screen-reader-text`.
 */
body.gw-atlas ::placeholder {
  color: var(--gw-fa-muted);
  opacity: 1;
}

/*
 * ...AND THE GROUND UNDER THE TEXT, for the same reason and at the same
 * specificity.
 *
 * The baseline above deliberately leaves `background` alone so each field can
 * keep the one it was drawn with — but "leaves it alone" meant leaving it to
 * whatever the theme says about `input[type="search"]`, which matches at
 * (0,1,1) and beats every rule below. The worst case is the results page's
 * box: it is `background: transparent` on purpose, so a theme painting it
 * white put white behind ink this stylesheet had just forced light — 1.14:1,
 * and the reader cannot see what they typed. So the intended value is restated
 * here at (0,1,2), transparent included, which is a declaration rather than an
 * absence and therefore wins.
 */
body.gw-atlas .gw-atlas-search input { background-color: var(--gw-fa-bg); }
body.gw-atlas .gw-atlas-share textarea { background-color: var(--gw-fa-bg); }
body.gw-atlas .gw-atlas-bigsearch input { background-color: transparent; }
body.gw-atlas .gw-atlas-wingsearch,
body.gw-atlas .gw-atlas-glsearch,
body.gw-atlas .gw-atlas-scope select,
body.gw-atlas .gw-atlas-talkform textarea { background-color: var(--gw-fa-surface); }

/*
 * `.screen-reader-text` was being borrowed from the theme.
 *
 * Seventeen labels across the redesign carry this class and this stylesheet
 * never defined it — it happened to work because the active theme defines it,
 * which makes the accessible name of the atlas's own search box a property of
 * a theme that could be changed on any Tuesday. The failure mode is not a
 * missing label either: with no rule the text simply RENDERS, so the header
 * would grow a stray "Search the atlas" caption. WordPress's own
 * implementation, kept whole so it behaves the way every other plugin's does.
 */
.gw-atlas .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/*
 * The skip link, which is the same class made visible on focus.
 *
 * It earns its place by measurement rather than by convention: the header
 * puts the brand, six wing links, a Traditions menu, a search field, the
 * theme toggle and two auth links ahead of the first word of content, so a
 * keyboard reader paid a dozen or more tab stops on EVERY page to reach the
 * thing they came for.
 */
.gw-atlas .screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  margin: 0;
  overflow: visible;
  width: auto;
  z-index: 100000;
  top: 8px;
  left: 8px;
  display: block;
  padding: 12px 20px;
  background: var(--gw-fa-surface);
  color: var(--gw-fa-ink);
  border: 1px solid var(--gw-fa-accent);
  border-radius: 3px;
  box-shadow: var(--gw-fa-shadow);
  font-family: var(--gw-fa-sc);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-decoration: none;
}

/*
 * The skip target takes focus programmatically, which is what `tabindex="-1"`
 * in the markup is for — and it deliberately gets NO rule of its own here.
 *
 * The first draft suppressed the ring on it. That was wrong twice over: this
 * header is not sticky, so there was nothing to scroll under, and a reader who
 * has just pressed Enter on "Skip to content" is precisely the reader who
 * needs to be shown where focus landed. `tools/test-fly-atlas-wing-config.php`
 * refuses an `outline: none` anywhere in this sheet and refused it here, which
 * is the assertion working.
 */

.gw-atlas-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.gw-atlas-empty {
  font-family: var(--gw-fa-sans);
  font-size: 13.5px;
  color: var(--gw-fa-muted);
  font-style: italic;
  padding: 18px 0;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.gw-atlas-header {
  background: var(--gw-fa-surface);
  border-bottom: 1px solid var(--gw-fa-line);
  /*
   * THE BAR SPANS THE WINDOW; ITS CONTENTS TAKE THE PAGE'S MEASURE.
   *
   * `padding: 0 32px` with no `max-width` put the search field some 300px
   * right of every other element on a 2000px display, because
   * `.gw-atlas-main` is `max-width: 1180px; margin: 0 auto` and this was not.
   * The owner reported it as the field sitting nowhere near the page.
   *
   * `max()` makes the two agree by construction rather than by coincidence:
   * above 1180px the padding grows to exactly the gutter `.gw-atlas-main`
   * leaves, and at or below it the floor is the 32px that element also uses.
   *
   * NOT `max-width` on the element itself - that would take the surface
   * ground and the bottom rule in with it, and the bar spanning is correct.
   * NOT a wrapper `<div>` - `test-fly-atlas-a11y.php` pins the skip link as
   * immediately followed by this header, and eleven templates share it.
   * NOT `100vw` - that includes the scrollbar gutter, so the header's content
   * would sit ~15px left of `.gw-atlas-main`'s: a smaller version of the
   * misalignment being fixed. `100%` resolves against the containing block
   * `.gw-atlas-main` centres in, which is the whole point.
   *
   * The `max-width: 900px` override below is a `padding` shorthand and sits
   * later, so it resets this and still wins at 18px - matching
   * `.gw-atlas-main` on the line beneath it. That agreement is load-bearing:
   * if either 18px moves, both move.
   */
  padding: 0;
  padding-inline: max(32px, calc((100% - 1180px) / 2 + 32px));
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.gw-atlas-brand { padding: 16px 0; text-decoration: none; }
.gw-atlas-brand b { font-size: 22px; font-weight: 600; }
.gw-atlas-brand small {
  display: block;
  font-size: 11px;
  color: var(--gw-fa-gold);
  font-family: var(--gw-fa-sc);
  letter-spacing: 0.16em;
}

.gw-atlas-nav {
  display: flex;
  /*
   * IT WRAPS, where all thirteen mockups instead delete the nav below their
   * breakpoint. The divergence is deliberate and it is about one link: the
   * footer carries the wings and the three shared rooms, but NOT My Bench,
   * which P6 added to this row after those mockups were drawn. Hiding the nav
   * on a phone would therefore leave a signed-in member no way to reach their
   * own bench from any page of the atlas. Wrapping costs a line of header at
   * 360px and strands nothing.
   */
  flex-wrap: wrap;
  gap: 26px;
  font-family: var(--gw-fa-sc);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.gw-atlas-nav-item {
  text-decoration: none;
  padding: 24px 0 20px;
  border-bottom: 2px solid transparent;
  color: var(--gw-fa-muted);
  display: inline-block;
  white-space: nowrap;
}

.gw-atlas-nav-item.is-on {
  color: var(--gw-fa-ink);
  border-color: var(--gw-fa-accent);
}

.gw-atlas-dd { position: relative; }

.gw-atlas-dd-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-pop);
  display: none;
  min-width: 220px;
  z-index: 40;
}

/*
 * Hover AND focus-within, so the dropdown works with no JavaScript at all —
 * a keyboard reaching the Traditions link opens it by the same rule a mouse
 * does. `atlas.js` adds only Escape, arrow keys and tap-to-open.
 */
.gw-atlas-dd:hover .gw-atlas-dd-menu,
.gw-atlas-dd:focus-within .gw-atlas-dd-menu,
.gw-atlas-dd.is-open .gw-atlas-dd-menu { display: block; }
/*
 * ...AND ONE THAT SHUTS IT AGAIN.
 *
 * Three rules open this menu and only one of them is the script's, so Escape
 * had nothing to say: dropping `.is-open` left `:focus-within` — still true,
 * because Escape leaves focus on the trigger — holding the menu open. The key
 * looked broken, which teaches a reader not to press it.
 *
 * Last in the cascade and equal in specificity to the three above, so it wins
 * on order. `atlas.js` latches it on Escape only and clears it the moment
 * focus leaves or a click lands elsewhere; a latch left on would be a menu
 * that never opens on hover again.
 */
.gw-atlas-dd.is-shut .gw-atlas-dd-menu { display: none; }

.gw-atlas-dd-link {
  display: block;
  padding: 11px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--gw-fa-line-soft);
  text-decoration: none;
  color: var(--gw-fa-ink);
}

.gw-atlas-dd-link:hover { background: var(--gw-fa-accent-soft); }
.gw-atlas-dd-link.is-prep { color: var(--gw-fa-muted); font-style: italic; cursor: default; }

.gw-atlas-tools {
  margin-left: auto;
  display: flex;
  /* The search field, the theme toggle and the auth links need about 317px of
   * min-content against a 284px box at 320px; every other multi-control row in
   * this sheet already wraps. */
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.gw-atlas-search input {
  border: 1px solid var(--gw-fa-field-line);
  border-radius: 3px;
  background: var(--gw-fa-bg);
  color: var(--gw-fa-ink);
  padding: 8px 14px;
  font-size: 13.5px;
  /* The width lives on the form now - see `.gw-atlas-search` below, which
   * flexes between 340px and a 220px floor instead of stepping. */
  width: 100%;
  font-family: var(--gw-fa-sans);
}

/*
 * THE BOX ITSELF CHANGES, not only the ring around it.
 *
 * `.gw-atlas :focus-visible` already draws a 2px outline two pixels clear of
 * every control, and for a link or a button that is the whole answer. It is
 * not enough HERE: this field sits in a dark bar, already carries a light
 * border of its own, and the moment it takes focus a dropdown opens directly
 * beneath it and takes the eye. A thin ring outside an already-outlined box,
 * under a popup, is a change nobody notices - which is what the owner
 * reported.
 *
 * So the border becomes the accent and the field lifts to the raised surface.
 * The outline is NOT suppressed: this is louder than the ring, beside it, and
 * a keyboard visitor keeps the ring they navigate the rest of the atlas by.
 */
.gw-atlas-search input:focus {
  border-color: var(--gw-fa-accent);
  background: var(--gw-fa-surface);
  box-shadow: 0 0 0 3px var(--gw-fa-accent-soft);
}

/*
 * The placeholder, which is the other half of a field a reader cannot tell is
 * ready for them. `--gw-fa-muted` here rather than the browser's default,
 * which resolves against the DOCUMENT and gave near-black on near-black the
 * last time this went wrong.
 */
.gw-atlas-search input::placeholder {
  color: var(--gw-fa-muted);
  opacity: 1;
}

.gw-atlas-theme {
  border: 1px solid var(--gw-fa-field-line);
  background: var(--gw-fa-surface);
  border-radius: 3px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-ink);
}

/*
 * The shared Dark / Light / Device control (3.0.174), printed in place of the button
 * above while the site theme is on. It is the platform's markup and gw-theme.js
 * drives it, but gw-theme.css is NOT loaded on an Atlas page (the Atlas is not one of
 * the themed surfaces and keeps its olive palette), so it is drawn here from the
 * Atlas's own tokens: the field edge for the outline, and the accent with its
 * "label on the accent" colour for the pressed state, the pair that is already
 * checked for contrast in both themes. Scoped to the Atlas's body class, not the
 * tools bar, because the tyer's bench prints it in its own bar; a hook page's
 * control never sits under that class, so this cannot reach it. `[hidden]` is restated because `display: inline-flex`
 * would otherwise beat the user agent's rule for it, and the control is printed
 * hidden until the script has painted its state.
 */
body.gw-atlas .gw-theme-control { display: inline-flex; align-items: center; white-space: nowrap; }
body.gw-atlas .gw-theme-control[hidden] { display: none; }
body.gw-atlas .gw-theme-control button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  margin: 0 0 0 -1px;
  padding: 0 10px;
  border: 1px solid var(--gw-fa-field-line);
  border-radius: 0;
  background: var(--gw-fa-surface);
  color: var(--gw-fa-ink);
  cursor: pointer;
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
}
body.gw-atlas .gw-theme-control button:first-child { margin-left: 0; border-radius: 3px 0 0 3px; }
body.gw-atlas .gw-theme-control button:last-child { border-radius: 0 3px 3px 0; }
body.gw-atlas .gw-theme-control button:hover { background: var(--gw-fa-accent-soft); }
body.gw-atlas .gw-theme-control button[aria-pressed="true"] {
  position: relative;
  z-index: 1;
  border-color: var(--gw-fa-accent);
  background: var(--gw-fa-accent);
  color: var(--gw-fa-on-accent);
}
body.gw-atlas .gw-theme-control button:focus-visible { outline: 3px solid var(--gw-fa-gold); outline-offset: 2px; z-index: 2; }
body.gw-atlas .gw-theme-control svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* On a phone the bar is one row of tools and the words do not fit beside the search box; the icons carry it, named by their title and by the words kept for a screen reader. */
@media (max-width: 640px) {
  body.gw-atlas .gw-theme-control button span {
    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;
  }
}
@media (pointer: coarse) {
  body.gw-atlas .gw-theme-control button { min-height: 44px; }
}

.gw-atlas-auth {
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.09em;
  display: flex;
  gap: 10px;
  align-items: center;
}

.gw-atlas-auth a { text-decoration: none; color: var(--gw-fa-muted); }
.gw-atlas-auth .gw-atlas-join {
  border: 1px solid var(--gw-fa-accent);
  color: var(--gw-fa-accent-ink);
  padding: 6px 12px;
  border-radius: 3px;
}

/* ── Front door ─────────────────────────────────────────────────────────── */

.gw-atlas-hero { padding: 54px 0 26px; max-width: 760px; }
.gw-atlas-eyebrow {
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gw-fa-gold);
  margin: 0 0 10px;
}
.gw-atlas-hero h1 { font-size: 40px; font-weight: 600; margin: 0 0 12px; line-height: 1.08; }
.gw-atlas-lede { font-style: italic; color: var(--gw-fa-muted); font-size: 17px; margin: 0; }

.gw-atlas-rule {
  font-size: 15px;
  font-weight: 500;
  margin: 52px 0 4px;
  font-family: var(--gw-fa-sc);
  letter-spacing: 0.14em;
  color: var(--gw-fa-muted);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.gw-atlas-rule::after { content: ""; flex: 1; border-bottom: 3px double var(--gw-fa-line); }
.gw-atlas-rule-sub {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  margin: 2px 0 20px;
}

.gw-atlas-wings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.gw-atlas-wing {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-shadow);
  display: flex;
  flex-direction: column;
}

.gw-atlas-wing.is-prep { opacity: 0.72; }

.gw-atlas-wing-plate {
  height: 120px;
  background: var(--gw-fa-wash);
  border-bottom: 1px solid var(--gw-fa-line-soft);
  position: relative;
}

/*
 * The imagery treatment is a wing config value applied as a class, never a
 * global rule (§11). An archival mat over a modern nymph photograph would be
 * the page making a claim about the photograph that is not true.
 */
/*
 * THE COMPOUND FORM WAS MISSING AND THE TREATMENT HAD NEVER APPLIED HERE.
 *
 * The wing home puts `gw-atlas-imagery-*` on the BODY, so a descendant
 * selector reaches its plate. The front door puts it on the plate ITSELF —
 * `<div class="gw-atlas-wing-plate gw-atlas-imagery-archival">` — and a
 * descendant selector cannot match an element against itself. So every wing
 * card on the front door has been drawing the default wash since P1,
 * whichever treatment its record named, and nothing looked broken because a
 * card with no picture in it is a coloured rectangle either way.
 */
.gw-atlas-imagery-archival .gw-atlas-wing-plate,
.gw-atlas-wing-plate.gw-atlas-imagery-archival,
.gw-atlas-plate.gw-atlas-imagery-archival { background: var(--gw-fa-gold-soft); }
.gw-atlas-imagery-photo .gw-atlas-wing-plate,
.gw-atlas-wing-plate.gw-atlas-imagery-photo,
.gw-atlas-plate.gw-atlas-imagery-photo { background: var(--gw-fa-wash); }

/*
 * A wing that has an illustration (DB_VERSION 43). `cover` rather than
 * `contain`: the plate is a fixed 120px band across a card of varying width,
 * and letterboxing artwork inside a coloured strip looks like a mistake in a
 * way a crop does not. The figure number keeps its corner, so the crop is
 * chosen with that overlay in mind.
 */
.gw-atlas-wing-plate.gw-atlas-has-art { background: var(--gw-fa-wash); }
.gw-atlas-wing-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gw-atlas-figno {
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gw-fa-gold);
}

.gw-atlas-wing-body { padding: 20px 22px 8px; flex: 1; }
.gw-atlas-wing-body h3 { margin: 0 0 4px; font-size: 24px; font-weight: 600; }
.gw-atlas-wing-body h3 a { text-decoration: none; }

.gw-atlas-pill {
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  border: 1px solid var(--gw-fa-gold);
  color: var(--gw-fa-gold);
  padding: 2px 8px;
  border-radius: 10px;
  vertical-align: 4px;
}

.gw-atlas-era {
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--gw-fa-muted);
  margin: 0 0 10px;
}

.gw-atlas-blurb { margin: 0 0 14px; font-size: 14.5px; color: var(--gw-fa-muted); }

.gw-atlas-figures,
.gw-atlas-wingstats {
  display: flex;
  gap: 24px;
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  color: var(--gw-fa-muted);
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.gw-atlas-figures b,
.gw-atlas-wingstats b {
  display: block;
  font-family: var(--gw-fa-serif);
  font-size: 20px;
  color: var(--gw-fa-ink);
  font-weight: 600;
}

.gw-atlas-paths { display: flex; border-top: 1px solid var(--gw-fa-line-soft); }
.gw-atlas-path {
  flex: 1;
  text-align: center;
  padding: 11px 4px;
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--gw-fa-accent-ink);
  border-right: 1px solid var(--gw-fa-line-soft);
  text-decoration: none;
}
.gw-atlas-path:last-child { border-right: 0; }
.gw-atlas-path:hover { background: var(--gw-fa-accent-soft); }

.gw-atlas-prep-note {
  border-top: 1px solid var(--gw-fa-line-soft);
  margin: 0;
  padding: 11px 22px;
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted);
  font-style: italic;
}

.gw-atlas-rooms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-surface);
  box-shadow: var(--gw-fa-shadow);
}
.gw-atlas-room {
  padding: 20px 20px 22px;
  border-right: 1px solid var(--gw-fa-line-soft);
  text-decoration: none;
}
.gw-atlas-room:last-child { border-right: 0; }
.gw-atlas-room:hover { background: var(--gw-fa-wash); }
.gw-atlas-room-label { font-family: var(--gw-fa-sans); font-size: 11.5px; color: var(--gw-fa-gold); }
.gw-atlas-room h4 { margin: 4px 0; font-size: 17px; font-weight: 600; }
.gw-atlas-room p { margin: 0; font-family: var(--gw-fa-sans); font-size: 12.5px; color: var(--gw-fa-muted); }

.gw-atlas-specimen {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border-top: 3px double var(--gw-fa-line);
  padding-top: 18px;
}
.gw-atlas-specimen-cell {
  flex: 1 1 160px;
  padding: 0 22px;
  border-right: 1px solid var(--gw-fa-line-soft);
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  color: var(--gw-fa-muted);
}
.gw-atlas-specimen-cell:first-child { padding-left: 0; }
.gw-atlas-specimen-cell:last-child { border-right: 0; }
.gw-atlas-specimen-cell b {
  display: block;
  font-family: var(--gw-fa-serif);
  font-size: 19px;
  color: var(--gw-fa-ink);
  font-weight: 600;
}

/* ── Wing home ──────────────────────────────────────────────────────────── */

.gw-atlas-wingband { background: var(--gw-fa-surface); border-bottom: 1px solid var(--gw-fa-line); }
.gw-atlas-wingband-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 32px 30px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 40px;
  align-items: center;
}
/*
 * THE SPACE BELONGS ABOVE THE CRUMB, NOT BELOW IT.
 *
 * The crumb was flush against the header and then the hero pushed 54px between
 * it and the heading it belongs to — so the trail read as part of the menu and
 * the title floated free of its own address. The mockups put 34px above and
 * 22px below, which reads as one block: you are here, and this is it.
 *
 * On the crumb rather than on `.gw-atlas-main`, because the front door has a
 * hero and no crumb, and giving the container the padding would have added it
 * to a page that does not want it.
 */
.gw-atlas-crumb {
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-muted);
  margin: 34px 0 22px;
}

/* Where a hero follows a crumb its own top padding is already spent. */
.gw-atlas-crumb + .gw-atlas-hero { padding-top: 0; }
.gw-atlas-crumb a { text-decoration: none; }
.gw-atlas-crumb b { color: var(--gw-fa-accent); }
.gw-atlas-wingband h1 { font-size: 44px; font-weight: 600; margin: 6px 0 10px; line-height: 1.05; }
.gw-atlas-wing-sub {
  font-style: italic;
  color: var(--gw-fa-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 18px;
}

.gw-atlas-plate {
  border: 1px solid var(--gw-fa-line);
  padding: 16px;
  box-shadow: var(--gw-fa-shadow);
  position: relative;
  margin: 0;
}
.gw-atlas-plate img { width: 100%; height: auto; display: block; }
.gw-atlas-plate-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted);
  font-style: italic;
}
.gw-atlas-plate figcaption {
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  color: var(--gw-fa-muted);
  text-align: center;
  padding-top: 10px;
}

.gw-atlas-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--gw-fa-line);
  margin-top: 34px;
  flex-wrap: wrap;
}
.gw-atlas-tab {
  padding: 12px 2px;
  font-family: var(--gw-fa-sc);
  font-size: 14px;
  letter-spacing: 0.1em;
  border-bottom: 2px solid transparent;
  color: var(--gw-fa-muted);
  text-decoration: none;
}
.gw-atlas-tab.is-on { color: var(--gw-fa-ink); border-color: var(--gw-fa-accent); }

/*
 * WITHOUT JAVASCRIPT EVERY PANEL IS VISIBLE. That is the degradation §11 asks
 * for — "tabs become anchor scrolling" — and it is why `.is-on` hides nothing
 * on its own: `atlas.js` adds `.gw-atlas-has-tabs` to the body, and only then
 * do the unselected panels collapse. A stylesheet that hid them unconditionally
 * would make three quarters of the page unreachable if the script failed.
 */
.gw-atlas-panel { padding: 26px 0 0; }
.gw-atlas-has-tabs .gw-atlas-panel { display: none; }
.gw-atlas-has-tabs .gw-atlas-panel.is-on { display: block; }

.gw-atlas-prep-panel { padding: 40px 0; max-width: 640px; }
.gw-atlas-prep-panel h2 { font-family: var(--gw-fa-sc); font-size: 15px; letter-spacing: 0.14em; color: var(--gw-fa-muted); }

.gw-atlas-lenses { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; align-items: center; }
.gw-atlas-lens {
  border: 1px solid var(--gw-fa-field-line);
  background: var(--gw-fa-surface);
  padding: 7px 14px;
  border-radius: 3px;
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--gw-fa-muted);
  text-decoration: none;
}
.gw-atlas-lens.is-on {
  border-color: var(--gw-fa-accent);
  color: var(--gw-fa-accent-ink);
  background: var(--gw-fa-accent-soft);
}
.gw-atlas-lens.is-gated { border-style: dashed; }
.gw-atlas-lens.is-gated small {
  font-family: var(--gw-fa-sans);
  font-size: 11px;
  letter-spacing: 0;
  margin-left: 6px;
}

.gw-atlas-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gw-atlas-card {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-shadow);
  text-decoration: none;
  display: block;
}
.gw-atlas-card-img {
  aspect-ratio: 4 / 3;
  background: var(--gw-fa-wash);
  border-bottom: 1px solid var(--gw-fa-line-soft);
  display: grid;
  place-items: center;
}
.gw-atlas-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gw-atlas-card-noimg { font-family: var(--gw-fa-sans); font-size: 11px; color: var(--gw-fa-muted); font-style: italic; }
.gw-atlas-card-body { display: block; padding: 12px 14px 14px; }
.gw-atlas-card-fam {
  display: block;
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  color: var(--gw-fa-gold);
}
.gw-atlas-card-title { display: block; font-size: 17px; font-weight: 600; }

.gw-atlas-more { text-align: center; margin-top: 22px; }
.gw-atlas-btn {
  border: 1px solid var(--gw-fa-accent);
  color: var(--gw-fa-accent-ink);
  background: transparent;
  padding: 10px 22px;
  border-radius: 3px;
  font-family: var(--gw-fa-sc);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-decoration: none;
  display: inline-block;
}
.gw-atlas-btn:hover { background: var(--gw-fa-accent-soft); }

.gw-atlas-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-surface);
  box-shadow: var(--gw-fa-shadow);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gw-atlas-tier { padding: 18px 20px; border-right: 1px solid var(--gw-fa-line-soft); }
.gw-atlas-tier:last-child { border-right: 0; }
.gw-atlas-tier-n { font-family: var(--gw-fa-sc); font-size: 10.5px; letter-spacing: 0.14em; color: var(--gw-fa-gold); }
.gw-atlas-tier h4 { margin: 4px 0; font-size: 17px; font-weight: 600; }
.gw-atlas-tier p { margin: 0; font-family: var(--gw-fa-sans); font-size: 12px; color: var(--gw-fa-muted); line-height: 1.5; }
/* Two classes (0,2,0) so it outranks `.gw-atlas-tier p` (0,1,1) above, whose
   margin: 0 it overrides. It held an undocumented `!important` for that
   until 3.0.130 (review L35); specificity is the fix this file uses. */
.gw-atlas-tier .gw-atlas-tier-fly { margin-top: 10px; font-size: 13px; font-style: italic; }

.gw-atlas-masters,
.gw-atlas-irons {
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-surface);
  box-shadow: var(--gw-fa-shadow);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 780px;
}
.gw-atlas-master {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-master:last-child { border-bottom: 0; }
.gw-atlas-master b { font-size: 15.5px; font-weight: 600; display: block; }
.gw-atlas-master span span { display: block; font-family: var(--gw-fa-sans); font-size: 12px; color: var(--gw-fa-muted); }
.gw-atlas-master-yr { font-family: var(--gw-fa-sc); font-size: 11px; color: var(--gw-fa-gold); align-self: center; }

.gw-atlas-iron {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-iron:last-child { border-bottom: 0; }
.gw-atlas-iron-img { width: 96px; flex: 0 0 96px; height: auto; }
.gw-atlas-iron-dashed {
  width: 96px;
  height: 36px;
  border: 1.5px dashed var(--gw-fa-line);
  opacity: 0.7;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: var(--gw-fa-muted);
  font-family: var(--gw-fa-sans);
  flex: 0 0 96px;
}
.gw-atlas-iron b { font-size: 14.5px; font-weight: 600; display: block; }
.gw-atlas-iron b a { text-decoration: none; }
.gw-atlas-iron span span { font-family: var(--gw-fa-sans); font-size: 11.5px; color: var(--gw-fa-muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.gw-atlas-footer { border-top: 1px solid var(--gw-fa-line); background: var(--gw-fa-surface); }
.gw-atlas-footer-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 32px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  font-family: var(--gw-fa-sans);
  font-size: 13px;
}
.gw-atlas-footer-in a,
.gw-atlas-footer-in .is-prep { display: block; padding: 3px 0; text-decoration: none; color: var(--gw-fa-muted); }
.gw-atlas-footer-in .is-prep { font-style: italic; opacity: 0.7; }
.gw-atlas-footer-h {
  display: block;
  font-family: var(--gw-fa-sc);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gw-fa-gold);
  margin-bottom: 6px;
}

/* ── The pattern browser (§5.3) ─────────────────────────────────────────── */

.gw-atlas-browser-head { align-items: baseline; }
.gw-atlas-browser-head h1 { font-size: 36px; font-weight: 600; margin: 0; }
.gw-atlas-count { font-family: var(--gw-fa-sans); font-size: 13px; color: var(--gw-fa-muted); }
.gw-atlas-sortform { margin-left: auto; }
.gw-atlas-sort {
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-surface);
  color: var(--gw-fa-ink);
  padding: 7px 11px;
  border-radius: 3px;
}

.gw-atlas-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 20px 0 8px; }
.gw-atlas-wingsearch {
  flex: 1;
  min-width: 240px;
  border: 1px solid var(--gw-fa-field-line);
  background: var(--gw-fa-surface);
  color: var(--gw-fa-ink);
  padding: 10px 15px;
  font-family: var(--gw-fa-sans);
  font-size: 14px;
  border-radius: 3px;
}

.gw-atlas-chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gw-atlas-chip {
  display: inline-block;
  border: 1px solid var(--gw-fa-field-line);
  background: var(--gw-fa-surface);
  padding: 8px 14px;
  border-radius: 3px;
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gw-fa-muted);
  text-decoration: none;
  cursor: pointer;
}
.gw-atlas-chip.is-on { border-color: var(--gw-fa-accent); color: var(--gw-fa-accent-ink); background: var(--gw-fa-accent-soft); }
/*
 * The dashed border IS the message. §9.3 keeps a gated control on the page and
 * makes it look unlike the ones that work, so a visitor learns the feature
 * exists and what it would cost them, rather than never meeting it.
 */
.gw-atlas-chip.is-gated { border-style: dashed; }

.gw-atlas-chipmenu { position: relative; }
.gw-atlas-chipmenu > summary { list-style: none; }
.gw-atlas-chipmenu > summary::-webkit-details-marker { display: none; }
.gw-atlas-chipdrop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  min-width: 210px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-pop);
}
.gw-atlas-chipdrop a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px;
  font-family: var(--gw-fa-sans);
  font-size: 13px;
  color: var(--gw-fa-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-chipdrop a:hover { background: var(--gw-fa-accent-soft); }
.gw-atlas-chipdrop a[aria-current] { color: var(--gw-fa-accent-ink); font-weight: 600; }
.gw-atlas-chipdrop a span { color: var(--gw-fa-muted); }

.gw-atlas-gatetip {
  border: 1px solid var(--gw-fa-gold);
  background: var(--gw-fa-gold-soft);
  padding: 10px 16px;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  margin: 14px 0 0;
}
.gw-atlas-gatetip a { color: var(--gw-fa-accent-ink); font-weight: 600; }

.gw-atlas-activerow {
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted);
  margin: 12px 0 22px;
}
.gw-atlas-activerow b { color: var(--gw-fa-accent-ink); }
.gw-atlas-activerow a { color: var(--gw-fa-gold); }

.gw-atlas-card-grade {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--gw-fa-sc);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  color: var(--gw-fa-muted);
  padding: 2px 7px;
}
.gw-atlas-card-meta {
  display: flex;
  gap: 10px;
  font-family: var(--gw-fa-sans);
  font-size: 11px;
  color: var(--gw-fa-muted);
  margin-top: 6px;
}
.gw-atlas-card-warn { color: var(--gw-fa-warn); }

.gw-atlas-pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.gw-atlas-pager a {
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-surface);
  padding: 8px 14px;
  border-radius: 3px;
  text-decoration: none;
  color: var(--gw-fa-muted);
}
.gw-atlas-pager a.is-on { border-color: var(--gw-fa-accent); color: var(--gw-fa-accent-ink); background: var(--gw-fa-accent-soft); }
.gw-atlas-pager-gap { color: var(--gw-fa-muted); }

/* ── The pattern page (§5.4) ────────────────────────────────────────────── */

.gw-atlas-patternhead { align-items: baseline; margin-top: 22px; }
.gw-atlas-patternhead h1 { font-size: 42px; font-weight: 600; margin: 0; }
.gw-atlas-subtitle { font-style: italic; color: var(--gw-fa-muted); font-size: 16px; }
.gw-atlas-actions { margin-left: auto; display: flex; gap: 10px; }
.gw-atlas-btn.is-solid { background: var(--gw-fa-accent); color: var(--gw-fa-on-accent); }
.gw-atlas-btn.is-solid:hover { background: var(--gw-fa-accent-ink); }

.gw-atlas-metarow {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 14px 0 0;
  font-family: var(--gw-fa-sans);
  font-size: 13px;
  color: var(--gw-fa-muted);
  margin: 0;
}
.gw-atlas-metarow b { color: var(--gw-fa-ink); font-weight: 500; }
.gw-atlas-metarow a { color: var(--gw-fa-accent-ink); }

.gw-atlas-platezone {
  display: grid;
  grid-template-columns: minmax(420px, 1.6fr) minmax(280px, 1fr);
  gap: 34px;
  margin-top: 30px;
}
.gw-atlas-plateframe {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  padding: 14px;
  box-shadow: var(--gw-fa-shadow);
  margin: 0 0 14px;
}
/*
 * EVERY PLATE IS VISIBLE UNTIL THE SCRIPT SAYS OTHERWISE, the same asymmetry
 * the tabs use. A reader without JavaScript gets a column of plates; hiding
 * them by default would leave them with one image and three dead buttons.
 */
.gw-atlas-has-media .gw-atlas-plateframe { display: none; }
.gw-atlas-has-media .gw-atlas-plateframe.is-on { display: block; }
.gw-atlas-plateinner {
  border: 1px solid var(--gw-fa-line-soft);
  background: var(--gw-fa-wash);
  position: relative;
  padding: 10px;
}
.gw-atlas-plateinner img { width: 100%; height: auto; display: block; }
.gw-atlas-platecap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 4px 2px;
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted);
}
.gw-atlas-plate-empty { padding: 48px 16px; text-align: center; font-family: var(--gw-fa-sans); font-size: 13px; color: var(--gw-fa-muted); }

.gw-atlas-hotspot {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--gw-fa-surface);
  border: 1.5px solid var(--gw-fa-accent);
  color: var(--gw-fa-accent-ink);
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--gw-fa-shadow);
  transition: transform 0.15s, background 0.15s;
}
.gw-atlas-hotspot:hover,
.gw-atlas-hotspot.is-on { background: var(--gw-fa-accent); color: var(--gw-fa-on-accent); transform: scale(1.15); }

.gw-atlas-mediatoggle { display: flex; gap: 8px; flex-wrap: wrap; }
.gw-atlas-mediabtn {
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-surface);
  padding: 7px 13px;
  border-radius: 3px;
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gw-fa-muted);
  text-decoration: none;
}
.gw-atlas-mediabtn.is-on { border-color: var(--gw-fa-accent); color: var(--gw-fa-accent-ink); background: var(--gw-fa-accent-soft); }
.gw-atlas-mediabtn-note { font-family: var(--gw-fa-sans); letter-spacing: 0; text-transform: none; }

.gw-atlas-rail { background: var(--gw-fa-surface); border: 1px solid var(--gw-fa-line); box-shadow: var(--gw-fa-shadow); align-self: start; }
.gw-atlas-rail-h {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gw-fa-line);
  font-family: var(--gw-fa-sc);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--gw-fa-muted);
}
.gw-atlas-railtoggle {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-wash);
}
.gw-atlas-railbtn {
  flex: 1;
  border: 1px solid var(--gw-fa-field-line);
  background: var(--gw-fa-surface);
  padding: 6px 4px;
  border-radius: 3px;
  font-family: var(--gw-fa-sc);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gw-fa-muted);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.gw-atlas-railbtn.is-on { border-color: var(--gw-fa-accent); color: var(--gw-fa-accent-ink); background: var(--gw-fa-accent-soft); }
.gw-atlas-railbtn.is-gated { border-style: dashed; }

.gw-atlas-comp { border-bottom: 1px solid var(--gw-fa-line-soft); }
.gw-atlas-comp.is-on { background: var(--gw-fa-accent-soft); box-shadow: inset 3px 0 0 var(--gw-fa-accent); }
.gw-atlas-comprow {
  display: grid;
  grid-template-columns: 30px 1fr 22px;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  background: none;
  text-align: left;
  align-items: baseline;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.gw-atlas-comprow:hover { background: var(--gw-fa-wash); }
.gw-atlas-comp-n { font-family: var(--gw-fa-sans); font-size: 12px; color: var(--gw-fa-gold); font-weight: 600; }
.gw-atlas-comp-t b { font-size: 15px; font-weight: 600; display: block; }
.gw-atlas-comp-m { display: block; font-family: var(--gw-fa-serif); font-size: 13px; color: var(--gw-fa-muted); }
.gw-atlas-comp-m.is-sub { color: var(--gw-fa-gold); }
.gw-atlas-comp-kit { font-family: var(--gw-fa-sans); font-size: 13px; text-align: right; }
.gw-atlas-comp-kit.is-ok { color: var(--gw-fa-accent-ink); }
.gw-atlas-comp-kit.is-no { color: var(--gw-fa-warn); }

.gw-atlas-compdetail {
  padding: 14px 18px;
  background: var(--gw-fa-gold-soft);
  border-top: 1px solid var(--gw-fa-line);
  font-size: 13.5px;
  line-height: 1.5;
}
.gw-atlas-compdetail p { margin: 0 0 6px; }
.gw-atlas-detail-label { color: var(--gw-fa-gold); font-family: var(--gw-fa-sc); font-size: 11px; letter-spacing: 0.1em; display: block; margin-bottom: 4px; }
.gw-atlas-detail-err { color: var(--gw-fa-warn); }
/*
 * With the script, the per-row details collapse into the one shared box the
 * mockup draws. Without it they stay where they are — under the row they
 * describe — so every component's purpose and proportion is still readable.
 */
.gw-atlas-has-rail .gw-atlas-comp .gw-atlas-compdetail { display: none; }
.gw-atlas-detail-shared { min-height: 76px; }

/* ── Tabs' contents ─────────────────────────────────────────────────────── */

.gw-atlas-tablewrap { overflow-x: auto; }
.gw-atlas-dressings { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.gw-atlas-dressings th {
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--gw-fa-muted);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--gw-fa-line);
  vertical-align: top;
}
.gw-atlas-dressings tbody th { color: var(--gw-fa-gold); font-size: 12.5px; border-bottom: 1px solid var(--gw-fa-line-soft); }
.gw-atlas-dressings td { padding: 10px 14px; border-bottom: 1px solid var(--gw-fa-line-soft); vertical-align: top; }
.gw-atlas-dressings a { color: var(--gw-fa-accent-ink); }
.gw-atlas-conflict { color: var(--gw-fa-warn); border-bottom: 1px dashed var(--gw-fa-warn); cursor: help; }
.gw-atlas-absent { color: var(--gw-fa-muted); }

.gw-atlas-badge {
  display: inline-block;
  font-family: var(--gw-fa-sans);
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--gw-fa-line);
  border-radius: 10px;
  color: var(--gw-fa-muted);
  margin-left: 6px;
  letter-spacing: 0;
}
.gw-atlas-badge.is-primary { border-color: var(--gw-fa-accent); color: var(--gw-fa-accent-ink); }
.gw-atlas-badge.is-warn { border-color: var(--gw-fa-warn); color: var(--gw-fa-warn); }

.gw-atlas-note { font-family: var(--gw-fa-sans); font-size: 13px; color: var(--gw-fa-muted); margin-top: 14px; }
.gw-atlas-empty-note { font-family: var(--gw-fa-sans); font-size: 13.5px; color: var(--gw-fa-muted); font-style: italic; padding: 18px; margin: 0; }

.gw-atlas-steps { max-width: 640px; padding-left: 22px; }
.gw-atlas-steps li { margin-bottom: 14px; }
.gw-atlas-steps-more { font-style: italic; color: var(--gw-fa-muted); }
.gw-atlas-check { display: block; font-size: 13px; color: var(--gw-fa-accent-ink); font-family: var(--gw-fa-sans); margin-top: 3px; }
.gw-atlas-check::before { content: "✓ check — "; color: var(--gw-fa-gold); }

.gw-atlas-hist { max-width: 640px; font-size: 16.5px; }
.gw-atlas-hist p:first-child::first-letter {
  font-size: 54px;
  float: left;
  line-height: 0.85;
  padding: 4px 8px 0 0;
  color: var(--gw-fa-gold);
  font-weight: 600;
}

.gw-atlas-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gw-atlas-tile { margin: 0; }
.gw-atlas-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--gw-fa-line); }
.gw-atlas-tile-empty {
  aspect-ratio: 4 / 3;
  background: var(--gw-fa-wash);
  border: 1px solid var(--gw-fa-line);
  display: grid;
  place-items: center;
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted);
}
.gw-atlas-tile figcaption { font-family: var(--gw-fa-sans); font-size: 12.5px; color: var(--gw-fa-muted); padding-top: 6px; }

.gw-atlas-famstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gw-atlas-famcard {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-shadow);
  padding: 14px 16px;
  text-decoration: none;
  display: block;
  color: inherit;
}
.gw-atlas-famcard b { font-size: 16px; font-weight: 600; display: block; }
.gw-atlas-famcard span { font-family: var(--gw-fa-sans); font-size: 12px; color: var(--gw-fa-muted); display: block; }
.gw-atlas-famkind {
  color: var(--gw-fa-gold);
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

/* ── The Bench (§5.5) ───────────────────────────────────────────────────── */

.gw-atlas-benchbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 26px;
  background: var(--gw-fa-surface);
  border-bottom: 1px solid var(--gw-fa-line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.gw-atlas-exit {
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-muted);
  text-decoration: none;
  border: 1px solid var(--gw-fa-line);
  border-radius: 3px;
  padding: 8px 14px;
}
.gw-atlas-exit:hover { border-color: var(--gw-fa-accent); color: var(--gw-fa-accent-ink); }
/*
 * An `<h1>`, and a `<div>` around it — `<span>` may not contain a heading, so
 * making the fly's name the page heading meant the wrapper had to become flow
 * content too. The declarations below are the ones that keep the bench bar
 * looking exactly as it did: a browser's default `h1` is 2em and carries a
 * .67em margin, either of which would push the bar to twice its height.
 */
.gw-atlas-benchfly h1 { font-size: 18px; font-weight: 600; margin: 0; line-height: 1.2; }
.gw-atlas-benchfly small {
  display: block;
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gw-fa-gold);
}
.gw-atlas-benchtools { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.gw-atlas-wake {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  display: flex;
  gap: 7px;
  align-items: center;
}

.gw-atlas-benchprog { height: 3px; background: var(--gw-fa-line-soft); }
.gw-atlas-benchprog i { display: block; height: 100%; background: var(--gw-fa-accent); transition: width 0.25s; }

.gw-atlas-benchmain {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 26px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

/*
 * WITHOUT THE SCRIPT EVERY STEP IS ON THE PAGE, in order — a complete,
 * printable tying sheet, which is the position `class-bench.php` has held
 * since WP-5.2 and the right one here for the same reason. `atlas.js` adds
 * `gw-atlas-has-bench` and only then does this collapse to one at a time.
 */
.gw-atlas-benchstep { padding: 0 0 44px; }
.gw-atlas-has-bench .gw-atlas-benchstep { display: none; padding-bottom: 0; }
.gw-atlas-has-bench .gw-atlas-benchstep.is-on { display: block; }
.gw-atlas-benchmats { margin-bottom: 18px; }
.gw-atlas-has-bench .gw-atlas-benchmats { display: none; }
.gw-atlas-has-bench .gw-atlas-benchmats.is-on { display: block; }

.gw-atlas-kicker {
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gw-fa-gold);
  margin: 0 0 6px;
}
.gw-atlas-benchtitle { font-size: 34px; font-weight: 600; margin: 0 0 14px; line-height: 1.15; }
/* Big type: this is read at arm's length, at a vise, in poor light. */
.gw-atlas-benchtext { font-size: 19px; line-height: 1.55; max-width: 34em; margin: 0 0 20px; }

.gw-atlas-benchmedia { margin-bottom: 22px; }
.gw-atlas-benchmedia img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-wash);
  margin-bottom: 10px;
}
.gw-atlas-clip {
  display: inline-block;
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-surface);
  padding: 8px 15px;
  border-radius: 3px;
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gw-fa-accent-ink);
  text-decoration: none;
}
.gw-atlas-nomedia {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  font-style: italic;
  margin: 0;
}

.gw-atlas-check {
  border: 1px solid var(--gw-fa-gold);
  background: var(--gw-fa-gold-soft);
  padding: 16px 20px;
  margin-bottom: 22px;
  max-width: 34em;
}
.gw-atlas-check p { font-size: 16px; margin: 0 0 12px; }
.gw-atlas-check-label {
  display: block;
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gw-fa-gold);
  margin-bottom: 6px;
}
.gw-atlas-tick {
  display: flex;
  gap: 9px;
  align-items: center;
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gw-fa-accent-ink);
  cursor: pointer;
}
/* A target a wet finger can hit. */
.gw-atlas-tick input { width: 20px; height: 20px; }

.gw-atlas-benchwrong { max-width: 34em; margin-bottom: 22px; }
.gw-atlas-benchwrong ul { margin: 0; padding-left: 20px; }
.gw-atlas-benchwrong li { font-family: var(--gw-fa-sans); font-size: 13.5px; color: var(--gw-fa-warn); }

.gw-atlas-benchnav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.gw-atlas-benchnav .gw-atlas-btn { padding: 14px 26px; font-size: 13px; cursor: pointer; }
.gw-atlas-benchnav .gw-atlas-btn[disabled] { opacity: 0.4; cursor: default; }
.gw-atlas-benchhint { font-family: var(--gw-fa-sans); font-size: 12px; color: var(--gw-fa-muted); }
.gw-atlas-benchhint kbd {
  border: 1px solid var(--gw-fa-line);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
  background: var(--gw-fa-surface);
}

.gw-atlas-benchside section { margin-bottom: 30px; }
.gw-atlas-benchside h2 {
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--gw-fa-muted);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gw-fa-line);
}
.gw-atlas-benchmat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--gw-fa-sans);
  font-size: 13px;
  margin: 0 0 7px;
}
.gw-atlas-benchmat a { color: var(--gw-fa-ink); }
.gw-atlas-kit { font-size: 11.5px; white-space: nowrap; }
.gw-atlas-kit.is-ok { color: var(--gw-fa-accent-ink); }
.gw-atlas-kit.is-no { color: var(--gw-fa-warn); }
.gw-atlas-techsummary { font-family: var(--gw-fa-sans); font-size: 12.5px; color: var(--gw-fa-muted); margin: 6px 0 0; }

.gw-atlas-road { list-style: none; margin: 0; padding: 0; }
.gw-atlas-road li { margin: 0 0 3px; }
.gw-atlas-road a {
  display: block;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  text-decoration: none;
  padding: 3px 0;
}
.gw-atlas-road li.is-on a { color: var(--gw-fa-accent-ink); font-weight: 600; }
.gw-atlas-road span { color: var(--gw-fa-gold); font-variant-numeric: tabular-nums; margin-right: 8px; }

.gw-atlas-techpanel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--gw-fa-scrim);
  display: grid;
  place-items: center;
  padding: 24px;
}
.gw-atlas-techpanel > div {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-pop);
  padding: 24px 28px;
  max-width: 520px;
  width: 100%;
}
.gw-atlas-techpanel h2 { font-size: 22px; margin: 12px 0 10px; }
.gw-atlas-techpanel p { font-size: 15px; margin: 0 0 14px; }
.gw-atlas-techpanel a { color: var(--gw-fa-accent-ink); }
.gw-atlas-techpanel .gw-atlas-btn { float: right; cursor: pointer; }

/* ── Shared by the three rooms (§5.6–5.8) ───────────────────────────────── */

/*
 * One table rule for four tables across three pages. Every one of them is four
 * or five columns wide, so the wrapper's `overflow-x: auto` is not optional —
 * a five-column table on a phone either scrolls or pushes the whole page
 * sideways, and the page body must never scroll horizontally.
 */
.gw-atlas-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.gw-atlas-tbl th {
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--gw-fa-muted);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--gw-fa-line);
  vertical-align: top;
}
.gw-atlas-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--gw-fa-line-soft); vertical-align: top; }
.gw-atlas-tbl tbody th { color: var(--gw-fa-gold); font-size: 12.5px; border-bottom: 1px solid var(--gw-fa-line-soft); }
.gw-atlas-tbl a { color: var(--gw-fa-accent-ink); }

.gw-atlas-wingtag {
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-gold);
}

/* ── The material page (§5.6) ───────────────────────────────────────────── */

.gw-atlas-mathead { align-items: baseline; margin-top: 22px; }
/*
 * The material's header, and it is no longer a `.gw-atlas-rule`.
 *
 * It borrowed that class for the double rule underneath, and inherited a flex
 * row meant for a 15px small-caps heading — which is why a three-word material
 * name at 42px was being squeezed until it wrapped. The rule is drawn here
 * instead, as the mockup draws it: a border rather than a flex `::after`.
 */
.gw-atlas-mathead {
  border-bottom: 3px double var(--gw-fa-line);
  padding-bottom: 18px;
}
.gw-atlas-mathead-top {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
/*
 * `min-width: 0` lets the name shrink its FONT rather than its box, and
 * `flex: 1` gives it everything the controls do not need. Between them the
 * name gets the whole line, which is the point.
 */
.gw-atlas-mathead-top h1 { flex: 1 1 auto; min-width: 0; }
.gw-atlas-mathead h1 { font-size: 42px; font-weight: 600; margin: 0; line-height: 1.08; }
.gw-atlas-mathead .gw-atlas-subtitle { margin: 10px 0 0; max-width: 640px; }

/*
 * The controls sit together at the end of the name's line and each stays on
 * ONE line. "Remove from my kit" was being wrapped to three by a flex parent
 * that had already given the width away — a button whose label is stacked
 * vertically reads as a rendering fault, not a control.
 */
.gw-atlas-mathead .gw-atlas-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gw-atlas-mathead .gw-atlas-actions form { margin: 0; }
.gw-atlas-mathead .gw-atlas-actions .gw-atlas-btn,
.gw-atlas-mathead .gw-atlas-actions .gw-atlas-badge {
  white-space: nowrap;
  padding: 9px 16px;
}

.gw-atlas-matfig figure { margin: 0 0 16px; }
.gw-atlas-matfig img {
  max-width: 100%;
  height: auto;
  display: block;
  background: var(--gw-fa-wash);
  border: 1px solid var(--gw-fa-line);
  padding: 10px;
}
.gw-atlas-matfig figcaption {
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted);
  padding-top: 8px;
}

/*
 * ── A material's photographs: one at a time, once the script says so ──────
 *
 * The asymmetry is the whole design and it is the same one the tab strip
 * keeps: nothing here hides anything until `atlas.js` puts
 * `gw-atlas-has-shots` on the body. A script that never loads leaves four
 * photographs stacked down the column, which is what this page did before the
 * strip existed and is a perfectly readable page.
 *
 * The STRIP is the mirror of that. It is display:none by default rather than
 * shown, because without the script every photograph is already visible and a
 * row of jump links to images a reader can see is furniture. It is the one
 * control on this page that genuinely has no job before the script arrives.
 */
.gw-atlas-shots { display: none; }

.gw-atlas-has-shots .gw-atlas-matfig figure { display: none; }
.gw-atlas-has-shots .gw-atlas-matfig figure.is-on { display: block; }
.gw-atlas-has-shots .gw-atlas-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.gw-atlas-shot {
  display: block;
  padding: 0;
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-wash);
  line-height: 0;
}
.gw-atlas-matfig .gw-atlas-shot img {
  /*
   * The tile's own sizing, and it has to beat `.gw-atlas-matfig img` above —
   * that rule gives the FEATURE its wash, its border and its 10px mat, which
   * on a 72px tile is most of the tile.
   *
   * TWO CLASSES, NOT ONE. `.gw-atlas-shot img` alone is (0,1,1), the same
   * specificity as the rule it needs to beat, so it would win only by sitting
   * later in the file — and a rule that depends on its line number is a rule
   * that breaks the first time somebody reorders the stylesheet.
   */
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 0;
  padding: 0;
  background: none;
}
/*
 * The chosen tile is marked with the accent, not by dimming the others. A
 * reader is choosing between four photographs of the same feather, and the
 * three they have not chosen are still the thing they are deciding about —
 * fading them makes the choice harder rather than clearer.
 */
.gw-atlas-shot.is-on { border-color: var(--gw-fa-accent); box-shadow: 0 0 0 1px var(--gw-fa-accent); }
.gw-atlas-shot:hover { border-color: var(--gw-fa-ink); }
.gw-atlas-shot:focus-visible { outline: 2px solid var(--gw-fa-accent); outline-offset: 2px; }

/*
 * ── The substitutes tab: one brief per substitute ─────────────────────────
 *
 * This panel was a table and the table was doing two things badly — see the
 * template. The layout that replaced it has one job the old one could not do:
 * put the SAME difference field in the SAME place on every entry, so a reader
 * comparing two substitutes on handling scans a position instead of reading
 * two paragraphs. Everything below serves that.
 */
.gw-atlas-briefs { display: grid; gap: 18px; margin: 0 0 22px; }

.gw-atlas-brief { border: 1px solid var(--gw-fa-line); background: var(--gw-fa-surface); }

.gw-atlas-brief-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--gw-fa-wash);
  border-bottom: 1px solid var(--gw-fa-line);
}
/* Takes the slack so the kit mark sits hard right at any width. */
.gw-atlas-brief-id { flex: 1 1 260px; min-width: 0; }

.gw-atlas-brief-name {
  font-family: var(--gw-fa-serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  color: var(--gw-fa-accent-ink);
  text-decoration: none;
}
.gw-atlas-brief-name:hover { text-decoration: underline; }

.gw-atlas-brief-claims {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 9px;
}
.gw-atlas-brief-for,
.gw-atlas-brief-rating,
.gw-atlas-brief-kit {
  font-family: var(--gw-fa-sans);
  font-size: 13px;
  color: var(--gw-fa-muted);
}

/*
 * One purpose, one band, one score — and the band's WORD is present in the
 * markup rather than implied by the colour. Colour alone would carry the
 * whole distinction between Strong and Poor, which fails WCAG 1.4.1 and fails
 * anybody reading in greyscale; `<i>` holds the word and the border holds the
 * emphasis, so the two agree.
 */
.gw-atlas-band {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--gw-fa-line);
  border-radius: 2px;
  padding: 3px 9px;
  color: var(--gw-fa-muted);
  white-space: nowrap;
}
.gw-atlas-band b {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--gw-fa-ink);
}
.gw-atlas-band i { font-style: normal; }
.gw-atlas-band.is-strong {
  border-color: var(--gw-fa-accent);
  background: var(--gw-fa-accent-soft);
  color: var(--gw-fa-accent-ink);
}
.gw-atlas-band.is-strong b { color: var(--gw-fa-accent-ink); }
.gw-atlas-band.is-suitable { border-color: var(--gw-fa-accent); color: var(--gw-fa-accent-ink); }
.gw-atlas-band.is-partial { border-color: var(--gw-fa-gold); color: var(--gw-fa-gold); }
.gw-atlas-band.is-poor { border-color: var(--gw-fa-warn); color: var(--gw-fa-warn); }
/* `unscored` keeps the default grey: nobody has judged it, and a colour would. */

.gw-atlas-brief-body { padding: 18px 20px 20px; }

.gw-atlas-brief-scope {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--gw-fa-sans);
  font-size: 13.5px;
  color: var(--gw-fa-muted);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}

/*
 * The eight difference fields, and the reason this is a `<dl>` rather than a
 * paragraph with bold run-ins. They are a FIXED SCHEMA — the same eight for
 * every claim in the archive — so the label is a term and the note is its
 * definition, which is what a definition list means. It also gives a screen
 * reader the pairing the old markup threw away.
 *
 * TWO COLUMNS ABOVE 820px AND ONE BELOW. The fields are short sentences; at
 * one column on a wide screen they made a 60-character measure look like a
 * list of headlines.
 */
.gw-atlas-fields { display: grid; gap: 12px 28px; margin: 0; }
.gw-atlas-fields > div { min-width: 0; }
.gw-atlas-fields dt {
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gw-fa-gold);
  margin: 0 0 1px;
}
.gw-atlas-fields dd { margin: 0; font-size: 15.5px; line-height: 1.45; }

.gw-atlas-brief-evidence {
  font-size: 15px;
  color: var(--gw-fa-muted);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--gw-fa-line-soft);
}

@media (min-width: 820px) {
  .gw-atlas-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gw-atlas-about { max-width: 620px; font-size: 16.5px; }
.gw-atlas-about p:first-child::first-letter {
  font-size: 52px;
  float: left;
  line-height: 0.85;
  padding: 4px 8px 0 0;
  color: var(--gw-fa-gold);
  font-weight: 600;
}

/*
 * `.gw-atlas-notice` STOOD HERE and was removed with the markup it styled.
 *
 * It was the conservation notice, warn-coloured rather than gold: gold is the
 * archive talking about itself, warn was the archive telling a reader a bird
 * is protected. `SPEC-withdraw-conservation-status-from-public.md` withdrew
 * that statement, so the only block on the atlas that painted `warn` on prose
 * went with it — and the stylesheet's own rule against styling a class
 * nothing renders is what made the removal show up rather than rot.
 *
 * `--gw-fa-warn` itself stays: badges still use it.
 */

.gw-atlas-match { font-family: var(--gw-fa-sans); font-size: 13px; color: var(--gw-fa-muted); }
.gw-atlas-match b { color: var(--gw-fa-ink); font-weight: 500; }

.gw-atlas-merchants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gw-atlas-merch {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-shadow);
  padding: 14px 16px;
}
.gw-atlas-merch .gw-atlas-badge { margin: 0 0 6px; display: inline-block; }
.gw-atlas-merch b { display: block; font-size: 16px; font-weight: 600; }
.gw-atlas-merch p { font-family: var(--gw-fa-sans); font-size: 12.5px; color: var(--gw-fa-muted); margin: 6px 0; }
.gw-atlas-merch a { color: var(--gw-fa-accent-ink); }

/* ── The materials index (§3.1) ─────────────────────────────────────────── */

/*
 * Its own class rather than the material page's `.gw-atlas-mathead`, which is
 * 42px: two rules of the same name in one sheet means whichever is written
 * later silently resizes the other page's title.
 */
.gw-atlas-indexhead h1 { font-size: 36px; font-weight: 600; margin: 0; }

.gw-atlas-matgroup { margin-top: 30px; }
/*
 * The group headings carry `.gw-atlas-rule`, which draws its own double rule
 * through an `::after`. A `border-bottom` here as well would stack two rules
 * under every heading, so the divider is left to the shared class and this
 * only sets the spacing beneath it.
 */
.gw-atlas-matgroup h2 { margin: 0 0 8px; }
.gw-atlas-matlist { list-style: none; margin: 0; padding: 0; }
.gw-atlas-matrow {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-matrow a { color: var(--gw-fa-ink); text-decoration: none; font-size: 16px; }
.gw-atlas-matrow a:hover { color: var(--gw-fa-accent-ink); }
.gw-atlas-matrow small { font-family: var(--gw-fa-sans); font-size: 12px; color: var(--gw-fa-muted); }

/* ── The Library (§5.7) ─────────────────────────────────────────────────── */

.gw-atlas-featured {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 0;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-shadow);
  margin-top: 22px;
}
.gw-atlas-spine { background: var(--gw-fa-wash); display: grid; place-items: center; padding: 26px; }
.gw-atlas-cover {
  width: 150px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, #2c2a22, #16150f);
  color: #efe9d8;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(20, 20, 15, 0.35);
}
/*
 * A drawn cover, not a scan: the template marks it `aria-hidden` because no
 * book on this shelf has a photographed jacket and inventing one would be a
 * picture of a thing that does not exist. The hairline is a border on the
 * author line rather than an element of its own, so the markup stays two
 * tags.
 */
.gw-atlas-cover b { font-size: 15px; line-height: 1.2; font-weight: 600; }
.gw-atlas-cover span {
  font-family: var(--gw-fa-sc);
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.85;
  border-top: 1px solid currentColor;
  padding-top: 10px;
  width: 40px;
  margin: 0 auto;
}

.gw-atlas-featbody { padding: 26px 28px; }
.gw-atlas-featbody .gw-atlas-eyebrow { margin: 0 0 8px; }
.gw-atlas-featbody h2 { font-size: 27px; font-weight: 600; margin: 0 0 4px; }
.gw-atlas-featbody .gw-atlas-lede { font-size: 15px; margin: 0 0 12px; }

.gw-atlas-featfacts { border-left: 1px solid var(--gw-fa-line); padding: 26px 24px; }
.gw-atlas-featfacts p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-featfacts p b { color: var(--gw-fa-ink); font-weight: 500; text-align: right; }
.gw-atlas-featfacts .gw-atlas-btn { display: block; margin-top: 10px; text-align: center; }

/* ── A book's own page (§5.7) ────────────────────────────────────────────── */

/*
 * The book page IS the featured panel, rearranged — same cover, same facts
 * rail, same scan button — so almost nothing here is new. What is new is that
 * the work's title is the PAGE title rather than a card heading, so it takes
 * an `h1` where the shelf takes an `h2`, and it is set larger to say so.
 */
.gw-atlas-bookhead { margin-bottom: 8px; }
.gw-atlas-featbody h1 { font-size: 34px; font-weight: 600; margin: 0 0 4px; line-height: 1.1; }
.gw-atlas-editionnote { font-family: var(--gw-fa-sans); font-size: 12.5px; color: var(--gw-fa-muted); margin: 12px 0 0; }
.gw-atlas-factnote {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  margin: 12px 0 0;
  border-bottom: 0;
}

/*
 * The citation lists. Two columns rather than four: these are titles of
 * varying length with a page reference hanging off them, and a four-column
 * grid wraps most of them to three lines to save space it then wastes.
 */
.gw-atlas-citelist {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
  max-width: 900px;
}
.gw-atlas-citelist li {
  break-inside: avoid;
  padding: 6px 0;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-citelist a { color: var(--gw-fa-accent-ink); text-decoration: none; border-bottom: 1px solid var(--gw-fa-accent); }
.gw-atlas-citepage {
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  color: var(--gw-fa-muted);
  margin-left: 8px;
}

/*
 * `.gw-atlas-pageplates` and `.gw-atlas-plate-thumb` were removed with the
 * "pages held" grid they styled. The reader replaced that section, and its
 * plate is `.gw-atlas-reader-plate`.
 */
.gw-atlas-colophon {
  margin: 0 0 30px;
  padding-top: 12px;
  border-top: 1px solid var(--gw-fa-line);
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-muted);
}

/*
 * The citation line is meant to be selected and pasted, so it is set as the
 * quotation it is rather than as prose the page is making.
 */
.gw-atlas-citeline {
  font-family: var(--gw-fa-sans);
  font-size: 13.5px;
  background: var(--gw-fa-wash);
  border-left: 3px solid var(--gw-fa-line);
  padding: 12px 16px;
  max-width: 760px;
}

.gw-atlas-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gw-atlas-book {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-shadow);
  padding: 14px 16px 16px;
}
.gw-atlas-bookyr {
  display: block;
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-gold);
  margin-bottom: 4px;
}
.gw-atlas-book h3 { font-size: 17px; font-weight: 600; margin: 0 0 2px; }
.gw-atlas-bookby { font-style: italic; color: var(--gw-fa-muted); font-size: 13.5px; }
.gw-atlas-bookfacts { font-family: var(--gw-fa-sans); font-size: 11.5px; color: var(--gw-fa-muted); margin: 8px 0 0; }
.gw-atlas-bookfacts b { color: var(--gw-fa-ink); }
.gw-atlas-booklinks { font-family: var(--gw-fa-sans); font-size: 12px; margin-top: 10px; }
.gw-atlas-booklinks a {
  color: var(--gw-fa-accent-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gw-fa-accent);
  margin-right: 12px;
}
.gw-atlas-booklinks span { color: var(--gw-fa-muted); margin-right: 12px; }

/* ── The Reference desk (§5.8) ──────────────────────────────────────────── */

.gw-atlas-scope { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; }
.gw-atlas-scope label {
  font-family: var(--gw-fa-sc);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gw-fa-muted);
}
.gw-atlas-scope select {
  border: 1px solid var(--gw-fa-field-line);
  background: var(--gw-fa-surface);
  color: var(--gw-fa-ink);
  padding: 7px 11px;
  border-radius: 3px;
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.gw-atlas-glsearch {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--gw-fa-field-line);
  background: var(--gw-fa-surface);
  color: var(--gw-fa-ink);
  padding: 10px 15px;
  font-family: var(--gw-fa-sans);
  font-size: 14px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.gw-atlas-entry { padding: 12px 0; border-bottom: 1px solid var(--gw-fa-line-soft); max-width: 720px; }
.gw-atlas-entry dt { font-size: 17px; font-weight: 600; }
.gw-atlas-entry dt small {
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-gold);
  font-weight: 400;
  margin-left: 8px;
}
.gw-atlas-entry dd { margin: 4px 0 0; font-size: 14.5px; }
.gw-atlas-also { font-family: var(--gw-fa-sans); font-size: 12.5px; color: var(--gw-fa-muted); margin-top: 4px; }

.gw-atlas-xwalk { max-width: 760px; }
.gw-atlas-confuse {
  border: 1px solid var(--gw-fa-warn);
  background: var(--gw-fa-warn-soft);
  padding: 14px 18px;
  margin: 10px 0;
  max-width: 760px;
}
.gw-atlas-confuse h3 { font-size: 15px; font-weight: 600; margin: 0; }
.gw-atlas-confuse p { font-family: var(--gw-fa-sans); font-size: 13px; margin: 6px 0 0; }
/*
 * RUN-IN, not a heading. "Tell them apart:" introduces the sentence beside
 * it; giving it `display: block` would push the label onto its own line at a
 * size larger than the text it introduces, which reads as a heading for a
 * paragraph that is already one sentence long.
 */
.gw-atlas-confuse p b { font-weight: 600; }

/*
 * The legend is the chart's first row, not decoration — `REFERENCES`' own
 * docblock: "a ratio of 1.5 is meaningless without knowing 1.5 of WHAT".
 * Styled as a definition strip so it reads as part of the table above it.
 */
.gw-atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 14px;
  background: var(--gw-fa-wash);
  border: 1px solid var(--gw-fa-line);
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  margin-bottom: 14px;
}
.gw-atlas-legend > div { display: flex; gap: 8px; align-items: baseline; }
.gw-atlas-legend dt {
  color: var(--gw-fa-gold);
  font-family: var(--gw-fa-sc);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.gw-atlas-legend dd { margin: 0; }

/* ── Search: the results page and the header listbox (§5.10, §8.3) ──────── */

/*
 * The results page is NARROW on purpose — the mockup sets it at 900px against
 * the browser's 1200. A result row is one line of prose plus a reason, and a
 * line of prose set across a full-width page is the one thing typography is
 * unanimous about.
 */
.gw-atlas-searchpage { max-width: 920px; }

.gw-atlas-bigsearch {
  display: flex;
  border: 1px solid var(--gw-fa-accent);
  background: var(--gw-fa-surface);
  border-radius: 3px;
  box-shadow: var(--gw-fa-shadow);
  margin-top: 18px;
}
.gw-atlas-bigsearch input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 15px 18px;
  font-family: var(--gw-fa-serif);
  font-size: 19px;
  color: var(--gw-fa-ink);
  outline-offset: -3px;
}
.gw-atlas-bigsearch .gw-atlas-btn { border-radius: 0 2px 2px 0; padding: 0 24px; }

/* The wing menu sits at the far end of the chip row, as the mockup draws it. */
.gw-atlas-chipmenu-end { margin-left: auto; }

.gw-atlas-searchmeta {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  margin: 10px 0 26px;
}
.gw-atlas-searchmeta b { color: var(--gw-fa-ink); }

/*
 * The degraded-mode sentence. Set as an aside rather than a warning banner:
 * the results above it are correct, and only their order in the lower groups
 * is not — a red box would tell a reader to distrust an answer that is right.
 */
.gw-atlas-searchnote {
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted);
  border-top: 1px solid var(--gw-fa-line-soft);
  padding-top: 14px;
  margin-top: 30px;
}

.gw-atlas-hitgroup { margin-bottom: 34px; }

.gw-atlas-grouphead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--gw-fa-sc);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gw-fa-muted);
  margin: 0 0 2px;
}
.gw-atlas-grouphead::after {
  content: "";
  flex: 1;
  border-bottom: 3px double var(--gw-fa-line);
}
.gw-atlas-groupn { color: var(--gw-fa-gold); }

.gw-atlas-hits { display: block; }

.gw-atlas-hit {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 13px 6px;
  border-bottom: 1px solid var(--gw-fa-line-soft);
  text-decoration: none;
  color: inherit;
}
/*
 * `--gw-fa-surface` against `--gw-fa-bg` is 1.07:1 — the quiet the design
 * wants, and nothing a reader dragging down a list of results can perceive.
 * The inset accent bar carries at 3:1 without raising the volume of the page,
 * and it is the same device the type-ahead's selected row and
 * `.gw-atlas-comp.is-on` use, so one idea covers all three.
 */
a.gw-atlas-hit:hover,
a.gw-atlas-hit:focus-visible {
  background: var(--gw-fa-surface);
  box-shadow: inset 3px 0 0 var(--gw-fa-accent);
}

.gw-atlas-hit-thumb {
  width: 70px;
  height: 52px;
  background: var(--gw-fa-wash);
  border: 1px solid var(--gw-fa-line);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--gw-fa-sc);
  font-size: 15px;
  color: var(--gw-fa-muted);
}
.gw-atlas-hit-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gw-atlas-hit-body { min-width: 0; }
.gw-atlas-hit-title { display: block; font-size: 17px; font-weight: 600; }
.gw-atlas-hit-sub,
.gw-atlas-hit-why {
  display: block;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  margin-top: 2px;
}
/* The reason is the one line §8.1 requires, so it is the one that is coloured. */
.gw-atlas-hit-why { color: var(--gw-fa-accent-ink); }

.gw-atlas-hit-wing {
  font-family: var(--gw-fa-sc);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-gold);
  text-align: right;
}

.gw-atlas-hit-more {
  display: inline-block;
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gw-fa-accent-ink);
  border-bottom: 1px solid var(--gw-fa-accent);
  text-decoration: none;
  padding: 10px 6px;
  margin-top: 4px;
}

/*
 * The header listbox.
 *
 * Absolutely positioned under the input, and the header carries `z-index: 30`
 * already for the Traditions dropdown — this rides above it for the same
 * reason and by one more. `hidden` is honoured by the attribute rather than a
 * class, so the list is invisible until `atlas.js` has something to put in it
 * and stays invisible with the script blocked.
 */
/*
 * THE FIELD IS A RANGE, NOT A NUMBER.
 *
 * Constraining the header above makes the row width CONSTANT over 1180px -
 * 1116px, whatever the monitor - so the wrap threshold stopped depending on
 * the viewport and started depending only on the nav. A fixed 340px field put
 * the logged-out row (which carries both auth links, the widest the tools ever
 * get) within about 30px of wrapping, on estimates rather than measurements.
 * So it takes 340px when the nav leaves room and gives it back to a 220px
 * floor first, which is what the old breakpoint ladder was approximating less
 * well. Below the floor the header wraps exactly as it does today.
 *
 * THE BASIS IS THE FLOOR, NOT THE CEILING - and that is the whole rule.
 *
 * The first version of this shipped `flex: 0 1 340px` on the reasoning that the
 * field would give width back before the row wrapped. That is not how flexbox
 * works, and the owner reported the result at 3.0.84: the theme toggle sitting
 * on its own line under the search box.
 *
 * Line-breaking uses each item's HYPOTHETICAL main size - the flex basis
 * clamped by min and max - and it happens BEFORE any shrinking. Measured on
 * the live header at 2532px: `.gw-atlas-tools` sized itself to 301px (220 + 12
 * + a 69px toggle), because the intrinsic contribution is clamped by the 220px
 * floor; then the line-breaker asked whether a 340px item fitted in 301px,
 * decided it did not, and put the toggle on line two. `flex-shrink` was never
 * consulted. A basis above the floor cannot work here.
 *
 * So the basis IS the floor, and `max-width` states the ceiling. `flex-grow` is
 * inert today - `.gw-atlas-tools` is `flex: 0 1 auto`, so there is never free
 * space inside it to distribute - and is written anyway because it is what
 * makes the cap meaningful the moment that changes. Letting the field actually
 * reach 340px means letting the tools row grow, which moves the auth links and
 * is a separate decision.
 *
 * `min-width` is stated because a flex item defaults to `min-width: auto`, and
 * this input's min-content is a placeholder string rather than a number
 * anybody chose.
 */
.gw-atlas-search { position: relative; flex: 1 1 220px; min-width: 220px; max-width: 340px; }
.gw-atlas-omni {
  position: absolute;
  top: 100%;
  /*
   * THE PANEL IS NOT AS WIDE AS THE BOX THAT OPENED IT.
   *
   * `left: 0; right: 0` inside a form as wide as its own field made this
   * 220px by construction, and the row is `1fr auto` with the wing tag in its
   * own column - so a title had about 110px. *Golden pheasant blue wing
   * coverts* broke over three lines, and eight results became roughly 1,100px
   * of scrolling inside a 60vh box. At 560px the title has about 430px after
   * the tag and the padding, which holds every title in the corpus on one line
   * and the excerpt on two.
   *
   * The `min()` does not bind today - 560 is under `100vw - 36` everywhere
   * above the 640px breakpoint that releases this. It is there so a future
   * breakpoint edit produces a narrow panel rather than a scrolling page.
   */
  left: auto;
  right: 0;
  width: min(560px, calc(100vw - 36px));
  z-index: 60;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  box-shadow: var(--gw-fa-pop);
}
.gw-atlas-omni[hidden] { display: none; }
.gw-atlas-omni-head {
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gw-fa-muted);
  padding: 9px 14px 4px;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-omni-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-omni-row:hover { background: var(--gw-fa-accent-soft); }

/*
 * THE SELECTED ROW IS NOT MARKED BY A TINT ALONE.
 *
 * `--gw-fa-accent-soft` against `--gw-fa-surface` measures 1.11:1 in light and
 * 1.11:1 in dark — the two grounds were chosen as a hover whisper and they do
 * that well, but arrowing down the type-ahead produced no cue a reader could
 * actually see, in either theme. The rows never take DOM focus (they are
 * `role="option"`, and focus stays in the input so typing keeps working), so
 * `:focus-visible` never rescued it either: Down, Down, Enter meant opening a
 * result you could not identify.
 *
 * The inset bar is the same device `.gw-atlas-comp.is-on` already uses, so
 * "the accent edge means this one" is one idea on this surface rather than
 * two, and it carries at 3:1 without touching the tint that hover owns.
 */
.gw-atlas-omni-row[aria-selected="true"] {
  background: var(--gw-fa-accent-soft);
  box-shadow: inset 3px 0 0 var(--gw-fa-accent);
  color: var(--gw-fa-accent-ink);
}

/*
 * The row states its own ink rather than inheriting it. The title is the one
 * piece of text in the listbox with no token of its own — `-head`, `-sub` and
 * `-wing` all name one — and an inherited value loses to any theme rule that
 * matches at all, `li {}` included. Stated on the row rather than the title so
 * a span added later is covered by the same declaration.
 */
.gw-atlas-omni-row { color: var(--gw-fa-ink); }
.gw-atlas-omni-title { font-size: 15px; font-weight: 600; }
/*
 * THE QUOTED LINE IS THE ANSWER, and it was set as a footnote: 11.5px on
 * `--gw-fa-muted`, which measures 5.84:1 on the dark surface and so passes
 * every automated check while being genuinely hard to read. Contrast was
 * never the whole story - a two-line excerpt at 11.5px in a popup is small
 * before it is dim. Both halves are fixed, and neither alone would have been
 * enough.
 */
.gw-atlas-omni-sub {
  grid-column: 1 / -1;
  font-family: var(--gw-fa-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--gw-fa-muted-strong);
}

/*
 * WHY THE ROW IS HERE — SPEC-live-search-omnibox.md §4.8.
 *
 * Coloured rather than merely present, and coloured with the SAME token the
 * results page gives the same sentence (`.gw-atlas-hit-why`, which carries the
 * note that the reason is the one line §8.1 requires). Two surfaces printing
 * one field should not style it two ways: a reader who searches a feather sees
 * the same sentence in the same colour whether they stopped at the type-ahead
 * or went on to the results page.
 *
 * It appears only when something other than the title carried the match, so
 * most rows are still two lines and the eight-row panel height that
 * `SPEC-atlas-search-placement.md` §4.2 sized stays as it was.
 */
.gw-atlas-omni-why {
  grid-column: 1 / -1;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--gw-fa-accent-ink);
}
.gw-atlas-omni-wing {
  font-family: var(--gw-fa-sc);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-gold);
  align-self: center;
}

/* ── The gate, in its three renderings (§9.3) ───────────────────────────── */

/*
 * The full-page gate is set narrow and centred — it is one decision, and a
 * decision laid across 1200px reads as a landing page. The other two
 * renderings are a line of text each and inherit almost everything.
 */
.gw-atlas-gate {
  max-width: 620px;
  margin: 40px auto 60px;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  border-radius: 3px;
  box-shadow: var(--gw-fa-shadow);
  padding: 32px 34px;
}
.gw-atlas-gate h1 { font-size: 30px; font-weight: 600; margin: 0 0 10px; }
.gw-atlas-gate-lede { font-size: 17px; color: var(--gw-fa-muted); margin: 0 0 18px; }
.gw-atlas-gate-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-family: var(--gw-fa-sans);
  font-size: 13.5px;
}
.gw-atlas-gate-list li {
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--gw-fa-line-soft);
  position: relative;
}
.gw-atlas-gate-list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--gw-fa-gold);
  font-size: 20px;
  line-height: 1;
}
.gw-atlas-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.gw-atlas-gate-fine {
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted);
  margin: 0;
}

/* The action prompt: one line beside the thing it is about. */
.gw-atlas-gateprompt {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  margin: 12px 0 0;
}
.gw-atlas-gateprompt a { color: var(--gw-fa-accent-ink); font-weight: 600; }

/* ── My Bench (§5.9) ────────────────────────────────────────────────────── */

.gw-atlas-benchpage { max-width: 1120px; }

.gw-atlas-benchhead {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0 24px;
  padding-bottom: 20px;
  border-bottom: 3px double var(--gw-fa-line);
}
.gw-atlas-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gw-fa-accent-soft);
  border: 1px solid var(--gw-fa-accent);
  color: var(--gw-fa-accent-ink);
  font-family: var(--gw-fa-sc);
  font-size: 19px;
  letter-spacing: 0.06em;
}
.gw-atlas-benchwho h1 { font-size: 30px; font-weight: 600; margin: 0; }
.gw-atlas-benchsince {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  margin: 2px 0 0;
}

.gw-atlas-progstrip { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.gw-atlas-prog { min-width: 150px; font-family: var(--gw-fa-sans); font-size: 12px; }
.gw-atlas-prog b { display: block; font-family: var(--gw-fa-sc); font-size: 11px; letter-spacing: 0.1em; }
.gw-atlas-prog small { color: var(--gw-fa-muted); }
/*
 * `<progress>` needs both the WebKit pseudo-elements and the Firefox one, and
 * `appearance: none` before either will take a colour at all. Worth the four
 * rules: the alternative is a div pretending to be a meter, which reads to a
 * screen reader as nothing.
 */
.gw-atlas-progbar {
  display: block;
  width: 100%;
  height: 7px;
  margin: 5px 0 3px;
  appearance: none;
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-wash);
  border-radius: 2px;
  overflow: hidden;
}
.gw-atlas-progbar::-webkit-progress-bar { background: var(--gw-fa-wash); }
.gw-atlas-progbar::-webkit-progress-value { background: var(--gw-fa-accent); }
.gw-atlas-progbar::-moz-progress-bar { background: var(--gw-fa-accent); }

.gw-atlas-kitcols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gw-atlas-kitbox {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  border-radius: 3px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.gw-atlas-kitbox h3 {
  font-family: var(--gw-fa-sc);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--gw-fa-muted);
  margin: 0 0 10px;
}
.gw-atlas-kitlist { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.gw-atlas-kitlist li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-kitlist li b { margin-left: auto; }
.gw-atlas-kitkind {
  font-family: var(--gw-fa-sc);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-gold);
}

/*
 * `.gw-atlas-kitmore` STOOD HERE and went with the "＋ N more" line it styled.
 *
 * That line capped the panel at eight materials and led nowhere — a list a
 * member could not finish reading, and once the panel gained a remove control,
 * one they could not finish editing. The whole kit is listed now, and the
 * stylesheet's own rule against styling a class nothing renders is what makes
 * a removal like this show up rather than rot.
 */

/* The two ways into a kit, above the empty test so both states get them. */
.gw-atlas-kitways {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.gw-atlas-kitway {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted-strong);
}
.gw-atlas-kitway span { max-width: 42ch; }

/*
 * The per-row remove, pushed to the trailing edge of its row.
 *
 * `margin-left: auto` on the FORM rather than on the button, because the form
 * is what the flex row actually lays out — a no-JS baseline means every one of
 * these controls is a real `<form>`, and styling the button alone leaves the
 * form wrapper collapsed at the wrong end of the line.
 *
 * It is a real button and not a link: it POSTS, and a link that writes is a
 * link a browser may prefetch.
 */
.gw-atlas-kitrm { margin-left: auto; }
.gw-atlas-kitrm button {
  border: 1px solid transparent;
  background: none;
  border-radius: 3px;
  padding: 1px 7px;
  cursor: pointer;
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  color: var(--gw-fa-muted-strong);
}
.gw-atlas-kitrm button:hover {
  color: var(--gw-fa-warn);
  border-color: var(--gw-fa-warn);
}

/*
 * The outcome of the last member write.
 *
 * A `.gw-atlas-notice` stood here once as the conservation notice and was
 * withdrawn with the statement it carried; the name is reused for a different
 * job and the colours say so. Neutral by default because most outcomes are
 * successes, `is-error` in warn for the refusals — and a refusal on this page
 * always means NOTHING was written, which is why it must not read in the same
 * register as a save that held.
 */
.gw-atlas-notice {
  font-family: var(--gw-fa-sans);
  font-size: 13px;
  color: var(--gw-fa-accent-ink);
  background: var(--gw-fa-accent-soft);
  border-left: 3px solid var(--gw-fa-accent);
  padding: 10px 14px;
  margin: 0 0 18px;
}
.gw-atlas-notice.is-error {
  color: var(--gw-fa-ink);
  background: var(--gw-fa-warn-soft);
  border-left-color: var(--gw-fa-warn);
}

/*
 * "What your kit unlocks" — a row that opens onto the flies it counted.
 *
 * `Vault_View::tieable()` has always named the two sets it found and this
 * panel printed the counts and dropped the names; the rows are `<details>` so
 * the answer is one press away rather than on another tab.
 *
 * A band with nothing in it renders as `.is-empty` — a plain row, no
 * disclosure — because a control that opens onto an empty list is the same
 * defect this change exists to fix, in miniature. `<details>` needs no script:
 * the panel works with JavaScript blocked, closed by default, which is the
 * house asymmetry.
 */
/*
 * THE DIVIDER IS A GAP, NOT AN EDGE, and that is a correctness fix rather than
 * taste. It was `border-bottom` on every row with `:last-of-type` removing the
 * last one — and `:last-of-type` matches per ELEMENT NAME, while these rows are
 * two element types: `<details>` for a band with flies in it and `<p>` for one
 * without and for "on the path altogether". So the rule fired on the last
 * `<details>`, which is mid-stack, and never on the `<p>` that actually ends
 * the box: a missing rule in the middle and a stray one at the bottom.
 *
 * An adjacent-sibling top border is type-agnostic and draws exactly the
 * internal rules whatever mix of bands rendered.
 */
.gw-atlas-unlock + .gw-atlas-unlock {
  border-top: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-unlock > summary,
.gw-atlas-unlock.is-empty {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  padding: 9px 0;
  font-size: 15px;
  list-style: none;
}
.gw-atlas-unlock > summary { cursor: pointer; }
.gw-atlas-unlock > summary::-webkit-details-marker { display: none; }
/*
 * THE CARET IS MARKUP, NOT GENERATED CONTENT.
 *
 * It was a `::before` on the label span, and CSS generated content inside an
 * interactive element is prepended to its accessible name — so the summary
 * announced as "▸ Fully covered 3", with a decorative glyph read aloud and the
 * expanded state duplicated, since `<summary>` already exposes that natively.
 * `template-fly-atlas-browser.php` sets the precedent: its chips carry the mark
 * in the markup with `aria-hidden`.
 *
 * Fixed-width, so the plain `.is-empty` rows line up with the disclosures by
 * construction. The previous `padding-left: 18px` on those rows was a guess at
 * the advance width of a fallback glyph, and a wrong guess would have staggered
 * three short left-aligned labels.
 */
.gw-atlas-unlock-caret {
  display: inline-block;
  width: 11px;
  margin-right: 7px;
  color: var(--gw-fa-accent);
  font-size: 11px;
}
.gw-atlas-unlock.is-empty span:first-child { padding-left: 18px; }
.gw-atlas-unlock b { margin-left: auto; font-size: 17px; font-weight: 600; }
.gw-atlas-unlock-note {
  margin: 0 0 6px;
  padding-left: 18px;
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted-strong);
}
.gw-atlas-unlock-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 18px;
}
.gw-atlas-unlock-list li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 5px 0;
  font-size: 14.5px;
}
.gw-atlas-unlock-wing,
.gw-atlas-unlock-blocker {
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  color: var(--gw-fa-muted-strong);
}
/*
 * NO `margin-left: auto`. The row wraps, and an auto margin on a wrapped item
 * makes "waiting on X" the only thing on a second line, flush right, detached
 * from the fly it qualifies. The `gap` keeps it beside the name, which is where
 * it means something.
 */
.gw-atlas-unlock-blocker { color: var(--gw-fa-gold); }

.gw-atlas-tonight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gw-atlas-tcard {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  border-left: 3px solid var(--gw-fa-line);
  border-radius: 3px;
  padding: 14px 16px;
}
/*
 * The band is carried by the left edge and by the state line, never by colour
 * alone — a reader who cannot tell the accent from the gold still has the
 * words "ready", "one material short", "queued, but not tonight".
 */
.gw-atlas-tcard.is-ready { border-left-color: var(--gw-fa-accent); }
.gw-atlas-tcard.is-near { border-left-color: var(--gw-fa-gold); }
.gw-atlas-tcard.is-far { border-left-color: var(--gw-fa-line); }
.gw-atlas-tstate {
  display: block;
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-muted);
}
.gw-atlas-tcard h3 { font-size: 19px; font-weight: 600; margin: 4px 0 2px; }
.gw-atlas-tcard p { font-family: var(--gw-fa-sans); font-size: 12.5px; margin: 6px 0 0; }
.gw-atlas-twing {
  font-family: var(--gw-fa-sc);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-gold);
}

.gw-atlas-shoplist { list-style: none; margin: 10px 0 0; padding: 0; }
.gw-atlas-shoplist li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--gw-fa-line-soft);
  font-size: 14.5px;
}
.gw-atlas-shoplist span {
  margin-left: auto;
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-muted);
}

.gw-atlas-flies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gw-atlas-fcard {
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  border-radius: 3px;
  overflow: hidden;
}
.gw-atlas-fphoto {
  display: grid;
  place-items: center;
  height: 150px;
  background: var(--gw-fa-wash);
  border-bottom: 1px solid var(--gw-fa-line);
  color: var(--gw-fa-muted);
  font-family: var(--gw-fa-sans);
  font-size: 12px;
}
.gw-atlas-fphoto img { width: 100%; height: 100%; object-fit: cover; }
.gw-atlas-fbody { padding: 12px 14px 14px; }
.gw-atlas-fbody h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.gw-atlas-fmeta { font-family: var(--gw-fa-sans); font-size: 12px; color: var(--gw-fa-muted); margin: 0; }
.gw-atlas-fnote {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--gw-fa-wash);
  border-left: 2px solid var(--gw-fa-gold);
}
.gw-atlas-fshare .gw-atlas-fphoto { font-size: 26px; }

/* The ladder's ticks (§4.3, filled in by P6). */
.gw-atlas-tier.is-done { border-left-color: var(--gw-fa-accent); }
.gw-atlas-tier.is-started { border-left-color: var(--gw-fa-gold); }
.gw-atlas-tier-done {
  font-family: var(--gw-fa-sc);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gw-fa-accent-ink);
}

/* ── Community on a pattern's Gallery tab (§10.1–§10.3) ─────────────────── */

.gw-atlas-tileacts { display: flex; gap: 10px; align-items: center; padding: 6px 2px 0; }
.gw-atlas-star {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted);
  background: transparent;
  border: 1px solid var(--gw-fa-field-line);
  border-radius: 3px;
  padding: 3px 9px;
  cursor: pointer;
}
.gw-atlas-star.is-count { cursor: default; border-color: transparent; padding-left: 0; }
.gw-atlas-star.is-on { border-color: var(--gw-fa-gold); color: var(--gw-fa-gold); }

.gw-atlas-talk { padding: 6px 2px 0; }
.gw-atlas-talklist { list-style: none; margin: 0; padding: 0; }
.gw-atlas-talklist li {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  padding: 5px 0;
  border-bottom: 1px solid var(--gw-fa-line-soft);
}
.gw-atlas-talklist b { margin-right: 6px; color: var(--gw-fa-accent-ink); }
.gw-atlas-talkform { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gw-atlas-talkform[hidden] { display: none; }
.gw-atlas-talkform textarea {
  flex: 1;
  min-width: 0;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  padding: 7px 9px;
  border: 1px solid var(--gw-fa-field-line);
  background: var(--gw-fa-surface);
  color: var(--gw-fa-ink);
  border-radius: 3px;
  resize: vertical;
}
.gw-atlas-talkerr {
  flex: 1 0 100%;
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  color: var(--gw-fa-warn);
  margin: 0;
}
.gw-atlas-talkerr[hidden] { display: none; }

.gw-atlas-share {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  border-radius: 3px;
}
.gw-atlas-share h3 { font-size: 19px; font-weight: 600; margin: 0 0 12px; }
.gw-atlas-share p { margin: 0 0 12px; }
.gw-atlas-share label {
  display: block;
  font-family: var(--gw-fa-sc);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-muted);
  margin-bottom: 4px;
}
.gw-atlas-share textarea {
  width: 100%;
  font-family: var(--gw-fa-sans);
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--gw-fa-field-line);
  background: var(--gw-fa-bg);
  color: var(--gw-fa-ink);
  border-radius: 3px;
  resize: vertical;
}
.gw-atlas-disclose { border: 1px solid var(--gw-fa-line-soft); border-radius: 3px; padding: 10px 12px; margin: 0 0 12px; }
.gw-atlas-disclose legend {
  font-family: var(--gw-fa-sc);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-muted);
  padding: 0 6px;
}
.gw-atlas-disclose label {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gw-fa-ink);
  margin: 0;
  padding: 4px 0;
}
.gw-atlas-shareact { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ── Breakpoints, as the mockups draw them ──────────────────────────────── */

/*
 * Motion, for somebody who has asked for less of it.
 *
 * The list is short — two transitions and the hotspot's 1.15 scale — and that
 * is the argument for handling it here rather than case by case: three rules
 * cover everything this sheet animates today and everything a later hand adds
 * without remembering to ask. Reduced, not removed: the transition collapses
 * to 1ms so a control that signals state by animating still signals it, and
 * `scroll-behavior` is pinned to `auto` because a smooth scroll the visitor
 * did not ask for is the complaint this media query exists to answer.
 */
@media (prefers-reduced-motion: reduce) {
  .gw-atlas *,
  .gw-atlas *::before,
  .gw-atlas *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .gw-atlas-hotspot.is-on { transform: none; }
}

@media (max-width: 980px) {
  .gw-atlas-wingband-in { grid-template-columns: 1fr; }
  .gw-atlas-cards { grid-template-columns: repeat(2, 1fr); }
  .gw-atlas-tiers { grid-template-columns: repeat(2, 1fr); }
  .gw-atlas-rooms { grid-template-columns: repeat(2, 1fr); }
  .gw-atlas-famstrip { grid-template-columns: repeat(2, 1fr); }
  .gw-atlas-shelf { grid-template-columns: repeat(2, 1fr); }
  .gw-atlas-merchants { grid-template-columns: repeat(2, 1fr); }
  /*
   * The featured panel's three columns become one. Two would put a 150px
   * cover beside a 220px column of facts and squeeze the prose the panel
   * exists to carry into a gutter.
   */
  .gw-atlas-featured { grid-template-columns: 1fr; }
  .gw-atlas-featfacts { border-left: 0; border-top: 1px solid var(--gw-fa-line); }
  .gw-atlas-featbody h1 { font-size: 27px; }
  .gw-atlas-citelist { columns: 1; }
}

@media (max-width: 900px) {
  .gw-atlas-wings { grid-template-columns: 1fr; }
  .gw-atlas-header { gap: 16px; padding: 0 18px; }
  .gw-atlas-main { padding: 0 18px 60px; }
  .gw-atlas-hero h1 { font-size: 32px; }
  /* Basis at the floor here too, for the reason the base rule gives. */
  .gw-atlas-search { flex: 1 1 150px; min-width: 150px; }
  /*
   * The dropdown drops out of `position: absolute` on a narrow screen. A menu
   * floating over 220px of a 360px viewport is a menu that covers the page it
   * is navigating; inline, it pushes the content down and stays readable.
   */
  /*
   * Inline rather than floating — and `min-width` has to go with it. The menu
   * carries `min-width: 220px` for its floating state; left in place while the
   * menu is a static child of a flex item, it widens the nav item instead of
   * the page, which is the opposite of what going inline was for.
   */
  .gw-atlas-dd-menu { position: static; left: auto; box-shadow: none; min-width: 0; width: 100%; }
  /*
   * The plate and its rail stack. Two columns at 900px would give the rail
   * about 240px, and a component line reading "Jungle cock back-to-back,
   * tippets, topping" needs more than that to stay one thought.
   */
  .gw-atlas-platezone { grid-template-columns: 1fr; }
  .gw-atlas-benchmain { grid-template-columns: 1fr; gap: 28px; }
  .gw-atlas-benchtitle { font-size: 27px; }
  .gw-atlas-patternhead h1 { font-size: 32px; }
  /* The material page's heading is set at the same 42px as the pattern's and
   * was the one of the four that never got its reduction. */
  .gw-atlas-mathead h1 { font-size: 32px; }
  /*
   * The type-ahead's right-anchoring and its 260px floor used to live here,
   * because the base rule was as narrow as the field. The base rule now states
   * `left: auto; right: 0; width: min(560px, ...)` at every width, so this
   * breakpoint has nothing left to correct and repeating it would only be a
   * second place to edit. The 640px block below still releases it, because
   * there the panel genuinely does become a different shape.
   */
  .gw-atlas-browser-head h1 { font-size: 28px; }
  .gw-atlas-gallery { grid-template-columns: repeat(2, 1fr); }
  /*
   * The progress strip stops being pushed to the far end and becomes a row of
   * its own under the name. Three bars beside a 30px heading at 900px would
   * leave each bar about 80px, which is a decoration rather than a reading.
   */
  .gw-atlas-progstrip { margin-left: 0; flex-basis: 100%; }
  .gw-atlas-tonight { grid-template-columns: repeat(2, 1fr); }
  .gw-atlas-flies { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gw-atlas-cards { grid-template-columns: 1fr; }
  .gw-atlas-tiers { grid-template-columns: 1fr; }
  .gw-atlas-rooms { grid-template-columns: 1fr; }
  .gw-atlas-footer-in { grid-template-columns: 1fr; }
  .gw-atlas-specimen-cell { border-right: 0; padding-left: 0; }
  .gw-atlas-famstrip { grid-template-columns: 1fr; }
  .gw-atlas-gallery { grid-template-columns: 1fr; }
  .gw-atlas-shelf { grid-template-columns: 1fr; }
  .gw-atlas-merchants { grid-template-columns: 1fr; }
  .gw-atlas-sortform { margin-left: 0; }
  .gw-atlas-chipdrop { position: static; max-height: none; box-shadow: none; }
  /*
   * The wing chip stops being pushed to the end. On one line of chips the
   * `margin-left: auto` is a nice separation; wrapped onto its own row it is a
   * control shoved to the right of nothing.
   */
  .gw-atlas-chipmenu-end { margin-left: 0; }
  /*
   * A hit row loses its thumbnail column rather than shrinking it. A 70px
   * photograph beside a wrapped three-line title is a decoration crowding the
   * only thing on the row worth reading.
   */
  .gw-atlas-hit { grid-template-columns: 1fr auto; }
  .gw-atlas-hit-thumb { display: none; }
  .gw-atlas-bigsearch input { font-size: 17px; padding: 13px 14px; }
  /*
   * The header's tools take the full width and the search takes its own line
   * of them. At this size the alternative is a 150px field beside a toggle
   * beside two auth links, all of them too small to hit and the field too
   * narrow to read what you typed.
   */
  .gw-atlas-tools { width: 100%; margin-left: 0; }
  /*
   * `max-width` has to be released with the floor. The base rule caps the
   * field at 340px, and a 340px box in the middle of a full-width phone header
   * is exactly the shape this breakpoint exists to prevent.
   */
  .gw-atlas-search { flex: 1 1 100%; min-width: 0; max-width: none; }
  .gw-atlas-search input { width: 100%; }
  /*
   * `width: auto` is not tidiness. With the base rule's `width` still in force
   * the panel would have `left`, `right` AND `width` all specified - which is
   * over-constrained, and CSS resolves it by dropping `right` in a
   * left-to-right document. That is a 560px panel measured from the left edge
   * of a full-width field: silent, and only on a phone.
   */
  .gw-atlas-omni { min-width: 0; left: 0; right: 0; width: auto; }
  .gw-atlas-tonight { grid-template-columns: 1fr; }
  .gw-atlas-flies { grid-template-columns: 1fr; }
  .gw-atlas-kitcols { grid-template-columns: 1fr; }
}

/* ── The reader: one page of one book (SPEC-book-page-and-reader.md 5.4) ─── */

/*
 * TEXT COLUMN FIRST, PLATE SECOND, and on a narrow screen the plate goes
 * under rather than beside. The archive holds far more transcription than
 * photography — 503 pages against 120 for Kelson — so the layout that has to
 * look deliberate is the one with no picture in it, which is why the text
 * column carries the reading measure and the plate is what flexes away.
 */
.gw-atlas-reader {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
  margin: 8px 0 28px;
}
.gw-atlas-reader.is-textonly { grid-template-columns: minmax(0, 1fr); max-width: 42rem; }
.gw-atlas-reader.is-textonly .gw-atlas-reader-plate { display: none; }

.gw-atlas-reader-text { font-size: 17px; line-height: 1.66; }
.gw-atlas-reader-text p { margin: 0 0 1em; }
.gw-atlas-reader-empty { color: var(--gw-fa-muted); font-style: italic; }

.gw-atlas-reader-caveat {
  margin: 18px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--gw-fa-line);
  font-family: var(--gw-fa-sc);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gw-fa-muted);
}

.gw-atlas-reader-plate img { width: 100%; height: auto; display: block; border: 1px solid var(--gw-fa-line); }
.gw-atlas-reader-plate .gw-atlas-plate { aspect-ratio: 3 / 4; width: 100%; }
.gw-atlas-reader-noplate {
  margin-top: 8px;
  font-family: var(--gw-fa-sc);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gw-fa-muted);
}

/* The page-turner, printed above the words and again below them. */
.gw-atlas-turner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--gw-fa-line);
  border-bottom: 1px solid var(--gw-fa-line);
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}
.gw-atlas-turner a { text-decoration: none; color: var(--gw-fa-gold); }
.gw-atlas-turner a:hover { text-decoration: underline; }
/* A spent end keeps its place rather than collapsing, so the controls do not
   move between the first page and the second. */
.gw-atlas-turner .is-spent { color: var(--gw-fa-muted); }
.gw-atlas-turner-here { color: var(--gw-fa-muted); }

.gw-atlas-pagecites { list-style: none; margin: 0 0 28px; padding: 0; }
.gw-atlas-pagecites li { padding: 12px 0; border-bottom: 1px solid var(--gw-fa-line); }
.gw-atlas-pagecite-role {
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gw-fa-gold);
}
.gw-atlas-pagecites blockquote { margin: 6px 0 0; padding-left: 14px; border-left: 2px solid var(--gw-fa-line); color: var(--gw-fa-muted); }

.gw-atlas-reader-colophon { margin: 0 0 40px; font-size: 14px; }

@media (max-width: 760px) {
  .gw-atlas-reader { grid-template-columns: minmax(0, 1fr); }
  .gw-atlas-turner { flex-wrap: wrap; }
}

/* Search this work (SPEC-book-page-and-reader.md 5.2). */
.gw-atlas-worksearch { display: flex; gap: 10px; margin: 0 0 18px; max-width: 42rem; }
.gw-atlas-worksearch input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-field-line);
  color: var(--gw-fa-ink);
  font: inherit;
}
.gw-atlas-workhits { list-style: none; margin: 0 0 22px; padding: 0; }
.gw-atlas-workhits li { padding: 12px 0; border-bottom: 1px solid var(--gw-fa-line); }
.gw-atlas-workhits a { text-decoration: none; }
.gw-atlas-workhits blockquote {
  margin: 6px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--gw-fa-line);
  color: var(--gw-fa-muted);
}

/* The reader's jump box, and the book search's numeric offer. */
.gw-atlas-jumpform {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px;
  font-family: var(--gw-fa-sc);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-muted);
}
.gw-atlas-jumpform input[type="number"] {
  width: 7em;
  padding: 6px 8px;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-field-line);
  color: var(--gw-fa-ink);
  font: inherit;
}
.gw-atlas-jump { margin: 0 0 16px; }
.gw-atlas-jump-why {
  display: block;
  margin-top: 3px;
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-muted);
}

/*
 * A result line: the words either side of the match, with the match set
 * apart. Budgeted in words by `Search_Query::context()` rather than clipped
 * here, so the line is about a line at every width and the matched word is
 * never the part that falls off the end.
 */
.gw-atlas-kwic {
  margin: 5px 0 0;
  color: var(--gw-fa-muted);
  font-size: 15px;
  line-height: 1.5;
}
.gw-atlas-kwic b {
  color: var(--gw-fa-ink);
  font-weight: 600;
}

/* ── Set up my kit — SPEC-filling-the-kit.md §6 ─────────────────────────── */

.gw-atlas-kitpage .gw-atlas-lede {
  font-family: var(--gw-fa-sans);
  font-size: 14px;
  color: var(--gw-fa-muted-strong);
  max-width: 64ch;
  margin: 0 0 18px;
}

.gw-atlas-kitsec { margin-bottom: 30px; }
.gw-atlas-kitsec h2 { font-size: 23px; font-weight: 600; margin: 0 0 4px; }

/* The fourteen. A card is a label and a form, so the grid lays out both. */
.gw-atlas-bundles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
/*
 * A CARD IS A COLUMN, and the control is the last thing in it.
 *
 * The first cut laid the card out as a row — number, name, button — with
 * `margin-left: auto` on the form. The button took close to half the width and
 * the name got what was left, so "Golden Pheasant full skin or matched parts"
 * wrapped over five lines in a column two words wide. A set is identified by
 * its name and the button is identical on every card, so the name gets the
 * width and the button goes underneath.
 *
 * `margin-top: auto` on the action pins it to the bottom of whatever height the
 * grid row settles on, so a row of cards has its buttons on one line however
 * long the names above them run.
 */
.gw-atlas-bundle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  border-radius: 3px;
  padding: 12px 14px;
}
.gw-atlas-bundle.is-on {
  border-color: var(--gw-fa-accent);
  background: var(--gw-fa-accent-soft);
}
.gw-atlas-bundle-name {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.3;
}
.gw-atlas-bundle-name b { font-weight: 600; }
.gw-atlas-bundle-no {
  font-family: var(--gw-fa-sc);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gw-fa-gold);
  margin-right: 5px;
}
.gw-atlas-bundle-sub {
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--gw-fa-muted-strong);
}
.gw-atlas-bundle form,
.gw-atlas-bundle-gap { margin-top: auto; padding-top: 4px; }
.gw-atlas-bundle button {
  border: 1px solid var(--gw-fa-accent);
  background: none;
  border-radius: 3px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--gw-fa-sc);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--gw-fa-accent-ink);
}
.gw-atlas-bundle button:hover { background: var(--gw-fa-accent-soft); }
.gw-atlas-bundle-gap {
  display: block;
  font-family: var(--gw-fa-sans);
  font-size: 11px;
  color: var(--gw-fa-muted-strong);
}

/*
 * The working bar. Sticky is an ENHANCEMENT — the filter is script-only and
 * the tally is a fact, so nothing here is load-bearing if it scrolls away.
 */
.gw-atlas-kitbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--gw-fa-bg);
  border-bottom: 1px solid var(--gw-fa-line);
  padding: 10px 0;
  margin-bottom: 14px;
}
.gw-atlas-kitfilter { flex: 1 1 260px; min-width: 220px; }
.gw-atlas-kitfilter input {
  width: 100%;
  border: 1px solid var(--gw-fa-field-line);
  border-radius: 3px;
  background: var(--gw-fa-surface);
  color: var(--gw-fa-ink);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--gw-fa-sans);
}
.gw-atlas-kitfilter input:focus {
  border-color: var(--gw-fa-accent);
  box-shadow: 0 0 0 3px var(--gw-fa-accent-soft);
}
.gw-atlas-kitfilter input::placeholder { color: var(--gw-fa-muted); opacity: 1; }
.gw-atlas-kittally {
  margin: 0;
  font-family: var(--gw-fa-sans);
  font-size: 13px;
  color: var(--gw-fa-muted-strong);
}

.gw-atlas-kitgroup {
  border: 1px solid var(--gw-fa-line);
  background: var(--gw-fa-surface);
  border-radius: 3px;
  margin-bottom: 10px;
}
/*
 * The kit picker (SPEC-filling-the-kit.md §7.5).
 *
 * The LISTBOX is not styled here. It carries `.gw-atlas-omni` as well as its
 * own class and inherits the type-ahead's ground, border, shadow and row
 * treatment — one panel design for both, so a reader who has used the header
 * search recognises this immediately. What is here is only what differs: the
 * field's own block, and the chips that say what has been chosen.
 *
 * `position: relative` on the wrapper is load-bearing — `.gw-atlas-omni` is
 * `position: absolute`, and without a positioned ancestor the list would hang
 * off the page rather than off the field.
 */
.gw-atlas-kitpick {
  position: relative;
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--gw-fa-wash);
  border: 1px solid var(--gw-fa-line);
  border-radius: 3px;
}
.gw-atlas-kitpick[hidden] { display: none; }
.gw-atlas-kitpick-field { display: block; }
.gw-atlas-kitpick-field input {
  width: 100%;
  border: 1px solid var(--gw-fa-field-line);
  border-radius: 3px;
  background: var(--gw-fa-bg);
  padding: 9px 14px;
  font-size: 14px;
  font-family: var(--gw-fa-sans);
}
.gw-atlas-kitpick-note {
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  color: var(--gw-fa-muted-strong);
  margin: 8px 0 0;
}
.gw-atlas-kitpick-chosen {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gw-atlas-kitpick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gw-fa-sans);
  font-size: 12.5px;
  background: var(--gw-fa-accent-soft);
  border: 1px solid var(--gw-fa-line);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
}
.gw-atlas-kitpick-undo {
  font-family: var(--gw-fa-sc);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gw-fa-muted-strong);
  background: none;
  border: 0;
  border-left: 1px solid var(--gw-fa-line);
  padding: 2px 8px 2px 10px;
  cursor: pointer;
}
.gw-atlas-kitpick-undo:hover { color: var(--gw-fa-ink); }
/* The list hangs off the field, not off the page. */
.gw-atlas-kitpick-list { width: auto; left: 16px; right: 16px; }

.gw-atlas-kitgroup > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  font-family: var(--gw-fa-sc);
  font-size: 12.5px;
  letter-spacing: 0.11em;
}
.gw-atlas-kitgroup > summary::-webkit-details-marker { display: none; }
.gw-atlas-kitgroup-n {
  margin-left: auto;
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--gw-fa-muted-strong);
}
.gw-atlas-kitrows,
.gw-atlas-kitparts { list-style: none; margin: 0; padding: 0; }
.gw-atlas-kitrows { border-top: 1px solid var(--gw-fa-line); }
.gw-atlas-kitrows > li { border-bottom: 1px solid var(--gw-fa-line-soft); }
.gw-atlas-kitrows > li:last-child { border-bottom: 0; }

.gw-atlas-kitrow {
  display: flex;
  gap: 11px;
  align-items: baseline;
  padding: 8px 16px;
  cursor: pointer;
}
.gw-atlas-kitrow:hover { background: var(--gw-fa-wash); }
/*
 * A ticked row carries an inset bar as well as the tint. The tint alone
 * measures 1.11:1 against the surface — recorded beside the omnibox's selected
 * row, which is why that one has a bar too — so tint alone would be a state
 * only a sighted reader with a good monitor could see.
 */
.gw-atlas-kitrow.is-on {
  background: var(--gw-fa-accent-soft);
  box-shadow: inset 3px 0 0 var(--gw-fa-accent);
}
.gw-atlas-kitrow input { margin: 0; position: relative; top: 2px; flex: 0 0 auto; }
.gw-atlas-kitrow-name { font-size: 15px; }
.gw-atlas-kitrow-name small {
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  color: var(--gw-fa-muted-strong);
}
.gw-atlas-kitrow-n {
  margin-left: auto;
  font-family: var(--gw-fa-sans);
  font-size: 11.5px;
  color: var(--gw-fa-muted-strong);
  white-space: nowrap;
}

.gw-atlas-kitparts { padding: 0 0 6px 30px; }
/*
 * THE NOTE TAKES THE ROW IT IS GIVEN.
 *
 * It shipped at `max-width: 68ch`, which at this size is about 380px — so a
 * one-sentence caution wrapped over four lines in a narrow column with most of
 * a 1100px row empty beside it. The cap was borrowed from body-copy measure
 * rules that do not apply: this is a single line of guidance under a heading,
 * not a paragraph somebody reads down, and the page itself is already capped at
 * 1180px. Uncapped it sets on one or two lines and the dead space goes.
 *
 * The cap comes BACK below the page's own width, though. At 1180px the note is
 * one line and a measure rule has nothing to do; between roughly 480px and
 * 1100px an uncapped note wraps at well over a hundred characters a line, which
 * is worse than the column it replaced. Removing the cap outright fixed the
 * width it was tested at and regressed every width between.
 */
.gw-atlas-kitparts-note {
  font-family: var(--gw-fa-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--gw-fa-muted-strong);
  margin: 0;
  padding: 2px 16px 6px 46px;
}
@media (max-width: 1100px) {
  .gw-atlas-kitparts-note { max-width: 72ch; }
}

/*
 * The dock. `position: sticky` with `bottom`, so it un-sticks on its own when
 * the form is shorter than the viewport — and the button inside is a plain
 * submit, so a member with the stylesheet blocked still saves.
 */
.gw-atlas-kitdock {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--gw-fa-surface);
  border: 1px solid var(--gw-fa-line);
  border-radius: 3px;
  box-shadow: var(--gw-fa-pop);
  padding: 12px 16px;
  margin-top: 18px;
}
.gw-atlas-kitdock p {
  margin: 0;
  font-family: var(--gw-fa-sans);
  font-size: 13px;
  color: var(--gw-fa-muted-strong);
}
.gw-atlas-kitdock button { margin-left: auto; }

/*
 * A short viewport is the case a bottom-fixed bar gets wrong: it covers the
 * rows it is saving. Every other media query in this sheet is a width query,
 * so this is the first height one and it says why it exists.
 */
@media (max-height: 480px) {
  .gw-atlas-kitbar,
  .gw-atlas-kitdock { position: static; }
}
