/*
  doctrine-reader.css: THE DOCTRINE READER on the Learn The System page (learn-1).
  Everything below the SEAM line is GENERATED: Command's own stylesheet section for its reader, copied byte for byte from
  Empire HQ d815e1dfbae363e90bc862aa4c55974951d36f08 app/globals.css (sha256 aba031f8c8ec9f2279098d1150d436a9728ca4c3b2ac89a842cd0f68e21cc3d7), from its "THE DOCTRINE READER (item 544)" banner to the line before
  "BOARD 602". The SEAM block is the page's own and only says what Command's app shell supplies around that section:
    - the three :root tokens the section reads (copied verbatim from the same globals.css :root),
    - next/font's two font variables (--font-site-sans / --font-site-mono: Command's Archivo and IBM Plex Mono; this site
      self-hosts both already in ../tokens.css; Archivo's ITALIC face, which ../tokens.css does not carry, is Command's own
      next/font file, fonts/archivo-italic-variable-latin.woff2, sha256 d2a3a083e983d78b2e2fd848a990200b34fcb1392ed11f695096b7535ef74d88),
    - the slice of Tailwind's Preflight the reader's buttons lean on (font and line-height inherit; no UA chrome).
*/
/* ---- SEAM ---- */
:root {

  --doctrine-founding-gold: 227 199 120;

  --empire-border: 51 55 64;

  --empire-red: 251 113 133;
  --font-site-sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-site-mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-italic-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.doctrine-overlay button, .ptd button { font-family: inherit; font-size: 100%; line-height: inherit; color: inherit; margin: 0; padding: 0; background-color: transparent; background-image: none; -webkit-appearance: button; }
.doctrine-overlay, .ptd { font-family: var(--font-site-sans); }
/* ---- GENERATED below: Command's own, byte for byte ---- */
/* ============================================================================================
   THE DOCTRINE READER (item 544) — a FACSIMILE, not a re-typeset (handoff §6f/§6l). Every line
   in components/doctrine/DoctrineOverlay.tsx is absolutely positioned at its own measured
   baseline; this stylesheet only carries what CANNOT be an inline style (shared transitions,
   the fade-layer mechanism, pseudo-selectors). Colour scheme is GOLD STRUCTURE, hardcoded — no
   variant switching ships; the probe's colour-variant/border-style/founding-gold selects are
   deliberately not ported (dispatch's OUT OF SCOPE list: "the probe's scaffolding... all
   deleted"). Ink tokens below are the DOCUMENT's own page-ink colours, not reusable app tokens —
   they exist only inside this section and are not exposed as Tailwind utilities.
   ============================================================================================ */
:root {
  --doctrine-ink-body: 232 227 242;
  --doctrine-ink-heading: rgb(var(--doctrine-founding-gold));
  --doctrine-ink-epigraph: 232 227 242;
  --doctrine-ink-cover-title: rgb(var(--doctrine-founding-gold));
  --doctrine-ink-rule: color-mix(in srgb, rgb(var(--doctrine-founding-gold)) 45%, transparent);
  --doctrine-ink-border: rgb(var(--doctrine-founding-gold));
  --doctrine-page-bg: #121319;
  --doctrine-page-dim: #7c8394;
}

.doctrine-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.doctrine-overlay.doctrine-closing {
  opacity: 0;
}
.doctrine-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.74);
  backdrop-filter: blur(7px) saturate(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
}
/* No panel, no frame, no card, no chrome box (hard constraint 8) — Command shows through on
   every side around the page itself. */
.doctrine-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}
.doctrine-expand-body {
  position: relative;
  flex: 1;
  /* ITEM 550-3 — `min-width: 0` alongside the `min-height: 0` already here. Without it, once a
     magnified page's width exceeds this box's available width, its ONLY child
     (`.doctrine-expand-scroll`, flex:1) has no explicit min-width either, so its own automatic
     minimum width falls back to its content's — the page's width — and `.doctrine-expand-body`
     inherits THAT as ITS OWN content-based minimum (it has no overflow of its own to trigger the
     zero-minimum exception `.doctrine-expand-scroll` already gets from ITS `overflow: auto`).
     The visible effect, measured in a harness with a page wider than the frame: the whole chain
     balloons past the frame's width instead of scrolling — `.doctrine-expand-scroll` never
     overflows ITSELF (it just grew to fit), so it shows no scrollbar at all, and the excess is
     silently clipped by `.doctrine-frame`'s own `overflow: hidden` with no way to reach it. This
     one rule is what makes the page overflow `.doctrine-expand-scroll` (so it actually scrolls)
     instead of overflowing `.doctrine-expand-body` (so it silently doesn't) — the horizontal
     precondition for the `justify-content` fix below to mean anything. */
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
}
.doctrine-expand-scroll {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  /* ITEM 550-3 — THE HORIZONTAL TWIN OF ITEM 548-3's `align-items: flex-start` (see
     `.doctrine-page-surface`'s own comment below for the full margin:auto mechanism — this is
     the same rule, the other axis). `justify-content: center` used to be paired with a parent
     that had no `min-width: 0` (see `.doctrine-expand-body` above), so a magnified page never
     actually reached this codepath — it overflowed the WRONG ancestor and got silently clipped
     instead. Measured after fixing that: with `justify-content: center` still in place here, a
     page wider than the container clipped ~200px off its LEFT edge at `scrollLeft: 0` with no
     way to scroll to it (the classic flex-centred-overflow trap — the browser only grows
     `scrollWidth` on the end side, never the start side, when centred content overflows).
     `flex-start` here is what `.doctrine-page-surface`'s own `margin: auto` needs to degrade
     into on overflow (its auto margins zero out, same as the vertical case), which is what makes
     the left edge reachable at `scrollLeft: 0` while still centring the page whenever there IS
     room to spare — measured both ways, see the lane 550 report. Do NOT "tidy" this back to
     `center`; it is deliberately not that. */
  justify-content: flex-start;
  padding: 28px;
}
.doctrine-expand-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.doctrine-expand-scroll::-webkit-scrollbar-thumb {
  background: rgb(var(--empire-border));
  border-radius: 5px;
}
.doctrine-expand-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.doctrine-page-surface {
  position: relative;
  flex-shrink: 0;
  /* ITEM 548-3 (Jake, walking the merged reader: "why does it seem like the document itself is
     positioned high ? can we drop it to sit just above the contents buttons"). `.doctrine-expand-
     scroll`'s own `align-items: flex-start` pins the page to the TOP of the scroll container, so
     every bit of slack below FOOT_RESERVE_PX pooled under the page instead of splitting evenly —
     the page really was riding high, not just reading that way.
     `margin: auto` on the page itself is the fix, NOT `align-items: center` on the parent: a
     flex item taller than its scrolling container gets its own auto margins zeroed by the
     flexbox spec whenever they'd otherwise go negative, so this degrades to the parent's
     `flex-start` automatically once the page overflows (magnified reading) — the page's top edge
     stays reachable at scrollTop 0 instead of being clipped above an unreachable centred position,
     which is what `align-items: center` would have done here. Centres when there is room, pins to
     the top when there is not — one rule, both cases, no mode branch.
     ITEM 550-3 extended this same `margin: auto` to the HORIZONTAL axis too, pairing it with
     `.doctrine-expand-scroll`'s `justify-content: flex-start` (see that rule's own comment) —
     the auto margins degrade the same way on overflow, in either axis, so this one declaration
     now does both: centres on both axes when there's room, pins to top-left when there isn't. */
  margin: auto;
  background: var(--doctrine-page-bg);
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.doctrine-page-surface-inner {
  position: absolute;
  inset: 0;
}

.doctrine-line {
  position: absolute;
  white-space: pre;
  line-height: 1;
  color: rgb(var(--doctrine-ink-body));
  transform-origin: left baseline;
  font-family: var(--font-site-sans);
}
.doctrine-line.doctrine-role-heading {
  color: var(--doctrine-ink-heading);
}
.doctrine-line.doctrine-role-epigraph {
  color: rgb(var(--doctrine-ink-epigraph));
}
.doctrine-line.doctrine-role-cover-title {
  color: var(--doctrine-ink-cover-title);
}
.doctrine-gold-fragment {
  color: rgb(var(--doctrine-founding-gold));
}
.doctrine-rule {
  position: absolute;
  background: var(--doctrine-ink-rule);
}
.doctrine-contents-hit {
  position: absolute;
  cursor: pointer;
  border-radius: 3px;
  background: transparent;
  transition: background 0.12s ease;
}

/* TASK B9 (plan 5, rider 1; spec §9) — THE DOCTRINE'S SIGNATURE. `position: absolute` on all four
   classes below is load-bearing for the `min-width: 0` class of defect the brief names by name:
   every one of these sits inside `.doctrine-page-surface-inner` (already `position: absolute;
   inset: 0`), so none of them can push that box's own width or height, unsigned, drafting or
   signed, at any zoom — see DoctrineSignature.tsx's own header. */
.doctrine-signature-input {
  position: absolute;
  /* NO BOX, NO FORM CHROME (spec §9: "styled as writing on a line — not a form control") — the
     reader's restrained palette gets no new visual weight from this control.
     FIX ROUND 2 (owner ruling, reproducing probe 42 :373 exactly) — DRAFTING TEXT IS THE PAGE'S
     OWN INK, near-white, never gold, never cyan, until sealed: `color`/`caret-color` are both
     `--doctrine-ink-body` (probe's `--page-text`), the SAME token `.doctrine-line` itself uses for
     ordinary body copy — this is not a new colour, it is the absence of one.
     FIX ROUND 3 (owner side-by-side against probe 42, 2026-09-22, ruling 3 + 4) — THE READER'S
     OWN ITALIC FACE, not the roman site-sans at body size: `font-style: italic` on the SAME
     `--font-site-sans` token `DoctrineOverlay.tsx` already sets for every `line.italic` printed
     line (Command's real self-hosted Archivo has no separate "DoctrineArchivoItalic" face the way
     the probe's base64 embed does — this is that same variable font's own italic instance, not a
     second font), `font-variation-settings: "wdth" 100` pinned explicitly (never left to the
     browser's own default instance — the one axis every printed line sets inline, per
     `runMeasurementPass`/`DoctrineOverlay.tsx`'s render loop), at the probe's own 17px, never the
     11px body size round 1/2 inherited from the printed Date line beside it (probe :372).
     THE LINE'S OWN RULE (ruling 4) — `border-bottom` is this element's OWN thin rule, not a second
     invented one: it is the SAME token `.doctrine-rule` paints the page's printed rules with
     (`--doctrine-ink-rule`), at the probe's own thickness (:367), and `padding`/`line-height` are
     the probe's own values (:369, "normal" — never `1`) so the glyph baseline sits clear of that
     rule with descenders never crossing it, matching probe :358-381's own box exactly. The
     COMPONENT (not this rule) is what makes the two rules — this one and the printed
     `SIGNATURE_RULE` — coincide: both are positioned off the identical `rule.yPct`, this one via
     `transform: translateY(-100%)` (this element's own bottom edge lands exactly on that
     percentage, the same technique probe :358-361's `.sig-line-wrap` uses), the printed one via
     its ordinary top-aligned `.doctrine-rule` box — see `DoctrineSignature.tsx`'s own placement
     comment for the coincidence proof and `scripts/doctrine/remeasure/probe-42-parity.js`'s
     rendered measurement of the gap between them. */
  background: transparent;
  border: none;
  border-bottom: calc(var(--scale, 1) * 1.5px) solid var(--doctrine-ink-rule);
  outline: none;
  padding: 0 0 calc(var(--scale, 1) * 2px) 0;
  margin: 0;
  color: rgb(var(--doctrine-ink-body));
  font-family: var(--font-site-sans);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "wdth" 100;
  line-height: normal;
  white-space: pre;
  caret-color: rgb(var(--doctrine-ink-body));
}
.doctrine-signature-input:disabled {
  opacity: 0.6;
}
/* FIX ROUND 3 (owner ruling 1, probe 42 :376 exactly) — "sign your name" gives the operator a
   heads up before they type: the page's own dim ink, italic, at reduced opacity — never the full
   `--doctrine-page-dim` at full strength, which would read as printed page furniture rather than a
   hint. */
.doctrine-signature-input::placeholder {
  color: var(--doctrine-page-dim);
  font-style: italic;
  opacity: 0.55;
}
/* THE THIRD AND LAST GOLD (handoff §6l; DoctrineOverlay.tsx's own GOLD_FRAGMENT_OVERRIDES comment
   names this as where it lives) — the operator's own typed name, once Sign has landed it.
   FIX ROUND 3 (owner ruling 4, probe 42's own `.sig-input.locked` :378-381) — combined with
   `.doctrine-signature-input` (never `.doctrine-line`) so the sealed name keeps the EXACT SAME
   face, size and rule-coincident placement as the drafted name; only the colour changes here,
   exactly like the probe's own `.locked` modifier, which does the same one-property override on
   the same base class rather than restyling the box from scratch. */
.doctrine-signature-gold {
  color: rgb(var(--doctrine-founding-gold));
  pointer-events: none;
}
/* FIX ROUND 2 (owner ruling, reproducing probe 42's `.sig-foot-btn` :391-405 exactly) — BOTTOM-
   CENTRE of the page, never beside the rule: `left: 50%` + `transform: translateX(-50%)`, `top`
   set inline per render from `computeSignFootButtonTopPct` (doctrineGeometry.ts), which is why
   this rule carries no `top` of its own. Mono letterforms, uppercase, wide tracking, gilt text +
   1px gilt border, transparent background — copy-identical to the probe's own declared values,
   not a coincidence of similar ones. No `.doctrine-fade-control` (see DoctrineSignature.tsx's own
   comment on why: the probe's button never fades on idle either, and this control is only ever on
   screen while the operator is actively drafting). */
.doctrine-signature-sign-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-site-mono);
  font-size: calc(var(--scale, 1) * 10.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--doctrine-ink-border);
  background: transparent;
  border: calc(var(--scale, 1) * 1px) solid var(--doctrine-ink-border);
  border-radius: calc(var(--scale, 1) * 3px);
  padding: calc(var(--scale, 1) * 6px) calc(var(--scale, 1) * 18px);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}
.doctrine-signature-sign-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--doctrine-ink-border) 10%, transparent);
}
.doctrine-signature-sign-btn:disabled {
  /* FIX ROUND 3 (owner ruling 2, probe 42's own `.sig-foot-btn:disabled` :407-412 exactly) — Sign
     is ALWAYS on the page while unsigned (see DoctrineSignature.tsx's own placement comment for
     why round 2's "not mounted while blank" is reversed here): dim-white and inert while the draft
     is empty, never absent, so the operator sees the control waiting for them from the moment the
     page opens. */
  color: var(--doctrine-page-dim);
  border-color: var(--doctrine-page-dim);
  opacity: 0.5;
  cursor: default;
}
.doctrine-signature-error {
  position: absolute;
  color: rgb(var(--empire-red));
  font-family: var(--font-site-sans);
  font-size: calc(var(--scale, 1) * 9px);
  line-height: 1.3;
  max-width: calc(var(--scale, 1) * 320px);
}
/* THE BOOK'S TEXT IS NEVER EDITED (the render gate's own law) — the printed `Date:
   _________________` line keeps rendering, untouched, through the ordinary per-line path; this
   sits over its blank the way ink covers a printed line, page-coloured so nothing behind it shows
   through, at any zoom (--scale keeps its height in step with the page). */
.doctrine-signature-date-cover {
  position: absolute;
  background: var(--doctrine-page-bg);
  pointer-events: none;
}
.doctrine-contents-hit:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* The fade-on-movement control layer — nothing is permanent; a resting page shows only the
   document. One shared ancestor class (.doctrine-controls-visible on .doctrine-expand-body)
   fades every control together via plain CSS inheritance. */
.doctrine-expand-body .doctrine-fade-control {
  opacity: 0;
  pointer-events: none;
  /* ⚠️ LOAD-BEARING (item 546E, flagged at merge review): the `opacity` half of this transition is
     not decorative. 545's fade-out (DoctrineOverlay.tsx's `beginFadeOut`) keeps
     `doctrine-controls-visible` — the only rule above granting `pointer-events: auto` — on the
     ancestor until it observes this transition's REAL `transitionend` for `opacity`; it never
     removes that class on a timer of its own. If a future GLOBAL reduced-motion reset were ever
     added (e.g. `@media (prefers-reduced-motion: reduce) { * { transition: none } }`), this rule
     would stop transitioning, `transitionend` would never fire for `opacity` on this element, and
     `beginFadeOut` would wait forever — every doctrine control (✕, both arrows, the zoom pair,
     ‹ CONTENTS) would latch VISIBLE AND CLICKABLE permanently once the idle timer first fired,
     with no error and no second mechanism to notice.
     Checked at this item's own merge (2026-09-19): this app carries no such global reset today —
     the only two `prefers-reduced-motion` blocks in this file are narrowly scoped, to
     `.empire-beat-pulse` and to `.empire-firm-protected-ring::after`/`.empire-walked-path` — so
     nothing is broken right now. This comment records the dependency and the failure mode for
     whoever adds the next reduced-motion rule, per section 1b·7's "no new compensator without a
     retirement": the fix, if that day comes, is exempting this selector from the global reset (or
     giving `beginFadeOut` a real reduced-motion branch), never a second timer bolted on here as a
     guard — that would be exactly the compensator this house forbids without naming what it
     retires. */
  transition: opacity 0.35s ease, color 0.12s ease, border-color 0.12s ease;
}
.doctrine-expand-body.doctrine-controls-visible .doctrine-fade-control {
  opacity: 1;
  pointer-events: auto;
}
/* item 545, fault 2: pointer-events must not land before the opacity fade-out has actually
   finished, or a click during the 0.35s fade is swallowed the instant the fade begins even
   though the control still looks available. Transitioning `pointer-events` itself with a
   transition-delay does NOT work (verified live — pointer-events is a discrete, non-interpolable
   property; no transitionstart/transitionend ever fires for it without `transition-behavior:
   allow-discrete`), so this is the straightforward alternative instead: .doctrine-controls-fading
   (a HIGHER-specificity selector than the plain .doctrine-controls-visible rule above) re-applies
   opacity:0 to start the visual fade on schedule, while .doctrine-controls-visible — the only
   rule that grants pointer-events:auto — stays on the ancestor until DoctrineOverlay.tsx removes
   it on the real opacity transitionend. No second timer; the existing 1800ms idle timer is
   unchanged, this only changes what its callback does. */
.doctrine-expand-body.doctrine-controls-visible.doctrine-controls-fading .doctrine-fade-control {
  opacity: 0;
}

.doctrine-page-close-btn {
  position: absolute;
  top: calc(var(--scale, 1) * 36px);
  right: calc(var(--scale, 1) * 36px);
  border: none;
  background: transparent;
  /* GOLD AT REST, DIM — Jake's ruling 2026-09-19, verbatim: "lets put the X back to gold inside
     the page - dim ? still brighter when hovered". This is a DELIBERATE EXCEPTION to handoff
     §6f's "neutral at rest, gold on hover, all four alike": the ✕ is the one control that sits ON
     the page, so it is the document's own furniture rather than the app's, and it wears the
     document's accent accordingly. The arrows and the foot row sit outside the page and keep the
     neutral-at-rest rule. Dim/bright needs NO new mechanism — the fade layer's existing
     0.6 -> 1 opacity ladder below already does it, so this is one colour, not a second
     brightness system. */
  color: var(--doctrine-ink-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
/* No :hover colour rule here on purpose — the ✕ is gold in BOTH states now, and the
   brightness change is carried entirely by the opacity ladder below. A second rule setting
   the same colour again would be two mechanisms saying one thing. */
.doctrine-expand-body.doctrine-pinned .doctrine-page-close-btn {
  position: fixed;
  top: 16px;
}
.doctrine-expand-body.doctrine-controls-visible .doctrine-page-close-btn {
  opacity: 0.6;
  pointer-events: auto;
}
.doctrine-expand-body.doctrine-controls-visible .doctrine-page-close-btn:hover {
  opacity: 1;
}

.doctrine-page-arrow {
  position: fixed;
  border: 1px solid rgb(var(--empire-border));
  background: transparent;
  cursor: pointer;
  color: rgb(var(--empire-border));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, color 0.12s ease, border-color 0.12s ease, left 0.15s ease, right 0.15s ease;
}
.doctrine-page-arrow:hover:not(:disabled) {
  color: var(--doctrine-ink-border);
  border-color: var(--doctrine-ink-border);
}
.doctrine-page-arrow svg {
  display: block;
}
.doctrine-expand-body.doctrine-controls-visible .doctrine-page-arrow {
  opacity: 0.6;
  pointer-events: auto;
}
.doctrine-expand-body.doctrine-controls-visible .doctrine-page-arrow:hover:not(:disabled) {
  opacity: 1;
}
/* item 549 — Jake, walking the merged reader: clicking a disabled arrow at the first/last page
   was dismissing the whole overlay. Root cause: `pointer-events: none` on a `:disabled` control
   doesn't make it INERT, it makes it TRANSPARENT to hit-testing — the click fell through to
   `.doctrine-expand-scroll`'s click-outside dismiss zone sitting underneath. A real
   `<button disabled>` (this is one) already swallows the click and does not dispatch or bubble
   it once it actually hit-tests — so simply not setting `pointer-events: none` here is the whole
   fix; opacity (the disabled LOOK) is untouched. See globals.css's `.doctrine-fade-control` rest
   rule above, which legitimately keeps `pointer-events: none` — that's the FADE layer (control
   invisible, click should hit the backdrop), a different case from a visible-but-disabled control. */
.doctrine-expand-body.doctrine-controls-visible .doctrine-page-arrow:disabled {
  opacity: 0.2;
}
.doctrine-page-arrow:disabled {
  cursor: default;
}

.doctrine-foot-controls {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.doctrine-zoom-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgb(var(--empire-border));
  border-radius: 6px;
  color: rgb(var(--empire-border));
  cursor: pointer;
  font-size: 15px;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.doctrine-zoom-btn:hover:not(:disabled) {
  color: var(--doctrine-ink-border);
  border-color: var(--doctrine-ink-border);
}
.doctrine-zoom-btn:disabled {
  cursor: default;
}
/* TASK B10 (plan 5, rider 2; spec §10) — the export square. Owner ruling, verbatim: "in the exact
   idiom of the reader's -/+ zoom squares" — copy-identical size/border/colours to `.doctrine-
   zoom-btn` above, on purpose, not a coincidence of similar values. `position: fixed` (not a flex
   child of `.doctrine-foot-controls` — see DoctrineOverlay.tsx's `exportBtnRef` comment): its
   left/top are set entirely by `syncFloatingControls`/`computeExportPosition`, never by CSS
   layout, so this rule carries no `left`/`top` of its own. `:focus-visible` added beyond
   `.doctrine-zoom-btn`'s own rule (this control is reached by keyboard tab order same as any
   button) — same gilt colour as hover, matching the ruling's "rest/hover/focus colours". */
.doctrine-export-btn {
  position: fixed;
  z-index: 6;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgb(var(--empire-border));
  border-radius: 6px;
  color: rgb(var(--empire-border));
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.doctrine-export-btn:hover:not(:disabled),
.doctrine-export-btn:focus-visible {
  color: var(--doctrine-ink-border);
  border-color: var(--doctrine-ink-border);
}
.doctrine-export-btn:disabled {
  cursor: default;
}
/* The failure notice (R12 idiom — DoctrineSignature.tsx's `.doctrine-signature-error` is the
   same family member for the page-anchored case; this one is viewport-fixed, positioned off the
   button's own live rect by DoctrineOverlay.tsx's layout effect, not by CSS). Deliberately NOT
   `.doctrine-fade-control` — see that JSX's own comment on why an active refusal ignores the idle
   fade layer. */
.doctrine-export-error {
  position: fixed;
  z-index: 6;
  max-width: 240px;
  font-family: var(--font-site-mono);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
  color: rgb(var(--empire-border));
  background: rgba(20, 22, 27, 0.95);
  border: 1px solid rgb(var(--empire-border));
  border-radius: 4px;
  padding: 8px 10px;
}
.doctrine-return-prompt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-site-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--empire-border));
  background: rgba(20, 22, 27, 0.9);
  border: 1px solid rgb(var(--empire-border));
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.doctrine-return-prompt:hover:not(:disabled) {
  color: var(--doctrine-ink-border);
  border-color: var(--doctrine-ink-border);
}
.doctrine-return-prompt:disabled,
.doctrine-return-prompt.doctrine-inert {
  color: var(--doctrine-page-dim);
  border-color: rgb(var(--empire-border));
  cursor: default;
}
.doctrine-expand-body.doctrine-controls-visible .doctrine-zoom-btn,
.doctrine-expand-body.doctrine-controls-visible .doctrine-return-prompt {
  opacity: 0.6;
  pointer-events: auto;
}
.doctrine-expand-body.doctrine-controls-visible .doctrine-zoom-btn:hover:not(:disabled),
.doctrine-expand-body.doctrine-controls-visible .doctrine-return-prompt:hover:not(:disabled) {
  opacity: 1;
}
/* TASK B10 — the export square's own opacity states, kept as SEPARATE rules from the zoom-btn/
   return-prompt group above (rather than folded into their selector lists) so every existing
   rule this file's own CSS-source tests already pin (DoctrineOverlay.hook.test.tsx's regex
   lookups against the exact selector text) stays byte-identical — additive only. */
.doctrine-expand-body.doctrine-controls-visible .doctrine-export-btn {
  opacity: 0.6;
  pointer-events: auto;
}
.doctrine-expand-body.doctrine-controls-visible .doctrine-export-btn:hover:not(:disabled),
.doctrine-expand-body.doctrine-controls-visible .doctrine-export-btn:focus-visible {
  opacity: 1;
}
/* item 549 — same class of fix as the page-arrow rule above, but NOT the same symptom, and the
   difference is worth recording because the Lead's initial diagnosis got it wrong and the lane
   measured it rather than inheriting the assumption. A disabled zoom button was also transparent
   to hit-testing, but its fallen-through click did NOT reach the dismiss zone: `.doctrine-zoom-btn`
   sits inside `.doctrine-foot-controls`, which carries its own `pointer-events: auto`, so the
   click landed on that wrapper — which has no handler — and died there. The observable bug at
   min/max zoom was therefore "the press does nothing", never "the overlay closes" (only the
   ARROWS closed it). The fix is identical and still correct: a disabled control should be inert
   at the button, not rely on whatever happens to sit behind it. Nothing was added to the wrapper
   to "harden" it — that would be a second mechanism for a case the button already owns. */
.doctrine-expand-body.doctrine-controls-visible .doctrine-zoom-btn:disabled {
  opacity: 0.28;
}
.doctrine-expand-body.doctrine-controls-visible .doctrine-export-btn:disabled {
  opacity: 0.28;
}
