/* src/styles/mrr-runtime-classes.css */
/* ════════════════════════════════════════════════════════════
   myrobotrights.org — RUNTIME-CLASS rules

   WHY THIS FILE EXISTS
   --------------------
   Instatic's publish step TREE-SHAKES the managed stylesheet: a rule
   whose leading class is not statically present on a node in the
   document model is dropped from the published CSS entirely. Verified
   against the published build — `.tt-knob`, `.mrr-nav-toggle`,
   `.is-dragging`, `.mrr-js` and `.in` all had ZERO occurrences in
   style.css despite site_read_styles reporting them present.

   That silently killed three things: the theme-toggle knob animation,
   the mobile hamburger (its whole base rule, including the bars), and
   the scroll-reveal (content stayed visible but never animated).

   So any class that is applied AT RUNTIME by mrr.js, or that lives
   inside raw inline SVG markup (which Instatic stores as an opaque
   blob and cannot see classes inside), MUST be declared here rather
   than via site_apply_css. Raw stylesheets are not pruned.

   Loaded before mrr-responsive.css (priority 890 vs 900).
   ════════════════════════════════════════════════════════════ */

/* ── Theme toggle: .tt-* live inside the inline SVG blob ──────
   Light: hollow knob with the sun drawn inside it.
   Dark:  the knob fills solid and the moon is punched out of it in
          the page ground — so the moon is NOT currentColor. */
.mrr-theme-toggle .tt-knob { transition: transform 240ms ease; }
.mrr-theme-toggle .tt-disc { fill: none; }
.mrr-theme-toggle .tt-moon { display: none; fill: var(--ground); }
:root[data-theme="dark"] .mrr-theme-toggle .tt-knob { transform: translateX(21px); }
:root[data-theme="dark"] .mrr-theme-toggle .tt-disc { fill: currentColor; }
:root[data-theme="dark"] .mrr-theme-toggle .tt-sun  { display: none; }
:root[data-theme="dark"] .mrr-theme-toggle .tt-moon { display: block; }

/* ── Mobile hamburger — the button is created by mrr.js, so Instatic
      never sees .mrr-nav-toggle on a node. Shown ≤640 (see responsive). ── */
.mrr-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 12px;
  margin-right: -12px;
  background: none;
  border: none;
  cursor: pointer;
}
.mrr-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease;
}
.mrr-topbar.nav-open .mrr-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mrr-topbar.nav-open .mrr-nav-toggle span:nth-child(2) { opacity: 0; }
.mrr-topbar.nav-open .mrr-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Shown only on phones. This breakpoint rule lives HERE rather than with
   the rest of the responsive layer because .mrr-nav-toggle is JS-created,
   so a managed-CSS version would be tree-shaken out of the published build. */
@media (max-width: 640px) {
  .mrr-nav-toggle { display: flex; }
}

/* ── Open states. `.open` is toggled by mrr.js, so both of these were
      pruned from the published CSS — which left the Essays subject
      dropdown and the search overlay permanently display:none, i.e.
      clicking Essays appeared to do nothing at all. ── */
.mrr-search-overlay.open { display: flex; }

/* ── Essays dropdown: the open half of the roll ───────────────
   The panel used to be a display:none/block flip, which no transition
   can touch — it snapped. It now animates a CLIP instead: closed it is
   pinched flat against the underside of the top bar, open it is the
   full box, so it unrolls downward and rolls back up.

   Clipping rather than translateY(-100%) on purpose. A translate only
   stays hidden while the bar is taller than the panel, and the chip row
   sets its own height; a clip is correct at any height and can never
   paint over the bar.

   The CLOSED state stays in the managed sheet, deliberately. `.mrr-meganav`
   is statically on a node so that rule survives the tree-shake, which
   keeps the failsafe the display:none version had: if THIS file ever
   fails to load, the dropdown stays shut rather than sitting open across
   the page. The cost is the failure already documented above — no `.open`
   rule means it never opens — and that is the cheaper of the two.

   visibility, not opacity alone, so the chips leave the tab order and the
   a11y tree when shut; it flips back only after the roll-up finishes,
   hence the delay on the closed transition.

   180 in on a decelerating curve, 140 out on an accelerating one — the
   panel arrives softly and is whisked away. An earlier pass ran 300 in /
   240 out with the strip on 320, i.e. deliberately finishing AFTER the
   panel; that trail read as lag rather than as follow-through. The strip
   now shares the panel's duration and curve exactly and carries only a
   6px offset, so it gives the roll some body without ever arriving late.

   Nothing here collides with the motion layer: stripNudge() in
   mrr-motion.js animates scrollLeft on mrr:meganav-open, and the chip
   press tween owns transform on the CHIPS — neither touches the panel or
   the strip's own transform. The nudge measures scrollWidth on open,
   which is now always laid out rather than being measured a frame after
   display flipped. */
.mrr-meganav.open {
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 180ms cubic-bezier(0.2, 0.9, 0.3, 1),
    visibility 0s linear 0s;
}
.mrr-meganav.open .mrr-meganav-inner {
  transform: none;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Must follow the two rules above: a media query adds no specificity, so
   these only win on source order. */
@media (prefers-reduced-motion: reduce) {
  .mrr-meganav,
  .mrr-meganav.open { transition: none; clip-path: none; }
  .mrr-meganav-inner,
  .mrr-meganav.open .mrr-meganav-inner { transition: none; transform: none; }
}

/* Same cause, third casualty: `.nav-open` is set by mrr.js, so the rule
   that reveals the phone links panel was pruned as well. Without it the
   burger animated into an X and nothing else happened — the panel stayed
   at opacity 0 / pointer-events none however often you tapped. The ≤640
   start state it overrides is in the managed sheet. */
.mrr-topbar.nav-open .mrr-nav-links {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* ── Theme toggle, phone placement ────────────────────────────
   Above 640 the toggle is a child of the fixed bar, pinned to the right
   edge of the viewport (managed sheet). At 640 and below mrr.js moves it
   INTO the links panel as its last entry, where it has to go back to
   being an ordinary in-flow item — and where it picks up the panel's
   hidden-until-open state for free.

   Keyed on the ancestor rather than on the breakpoint on purpose: if the
   script never runs, the toggle stays pinned to the bar rather than
   landing inside a panel nobody can open. */
.mrr-nav-links .mrr-theme-toggle {
  position: static;
  transform: none;
}

/* ── Reading companion bar, shown by mrr-motion.js on the single-post
      page. Declared here for the same reason; it has no effect until a
      page actually carries .mrr-readbar markup. ── */
.mrr-readbar.visible { transform: translateY(0); }

/* The progress fill is driven by a scrubbed ScrollTrigger in
   mrr-motion.js. It used to be `width: 0%` rewritten on every scroll
   event, which animated a LAYOUT property with getBoundingClientRect
   reads interleaved on the same tick. Full width + scaleX moves it to
   the compositor; transform-origin is what makes it grow from the left
   rather than from the centre.

   This overrides `.mrr-readbar-progress span { width: 0% }` in the
   managed sheet purely by LOAD ORDER — raw userStyles are emitted after
   style.css and the managed rule carries no !important, so equal
   specificity resolves here. If the bar ever renders full-width and
   static, check whether that managed rule has gained !important (see
   the .mrr-preloader precedent). */
.mrr-readbar-progress span {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
}

/* ── Essays strip drag-to-scrub (class toggled by mrr.js) ── */
.mrr-meganav-inner.is-dragging { cursor: grabbing; user-select: none; }

/* ── Hero drag-to-swipe (class toggled by mrr.js) ──────────────
   Only while a swipe is actually in progress: no grab cursor at rest,
   so the chip and title inside the slide keep their link cursor. The
   slide itself is moved with inline transforms from the script. */
.mrr-hero.is-swiping { cursor: grabbing; user-select: none; }

/* ── Scroll reveal. .mrr-js is set by the head script and .in by mrr.js,
      so both are invisible to the pruner. Content is visible by default
      and only hidden once JS is confirmed, so a script failure can never
      leave a permanently blank block. ── */

/* The `transition` that used to live here is GONE ON PURPOSE. The reveal
   is animated by a ScrollTrigger batch in mrr-motion.js, and leaving the
   CSS transition in place would run a tween and a transition over the
   same two properties at once — which reads as lag, not as a bug. These
   two declarations are now START STATE ONLY. */
.mrr-js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

/* Failsafe, not the normal path. mrr-motion.js is a MODULE script, so a
   build failure or a blocked chunk would strand every .reveal block at
   opacity:0 — permanently invisible CONTENT, which is a worse failure
   than the preloader overlay it echoes. mrr.js (classic, always runs)
   force-adds .in on a timeout unless the motion layer set .mrr-motion on
   <html>. No transition here deliberately: by the time the backstop
   fires, fading in would only draw attention to the failure. */
.mrr-js .reveal.in { opacity: 1; transform: none; }

/* `.scramble` — the churn modifier, plus the systematic opt-ins.

   Those four selectors are named HERE as well as being given the class
   by mrr.js, and the duplication is deliberate. mrr.js runs at
   dom-ready, so a heading opted in only by that class would paint at
   full opacity for a frame and then blink out. Naming the selectors in
   CSS hides them from the FIRST paint; the class only turns on the
   behaviour. Same split as the preloader boot script.

   .mrr-page-title is the one proportional face in the set (Fraunces).
   It is safe only because it never runs past a single line — "About",
   "All Essays" — so it cannot re-wrap while it churns. Do not extend
   this list with a multi-line proportional selector. */
.mrr-js .scramble,
.mrr-js .mrr-body-copy h2,
.mrr-js .mrr-discover-heading,
.mrr-js .mrr-newsletter-heading,
.mrr-js .mrr-page-title {
  opacity: 0;
  transform: translateY(14px);
}

/* Out-specifies every start state above (three classes beats two plus a
   tag), so the mrr.js backstop still rescues these when the motion layer
   never runs. */
.mrr-js .scramble.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* Beats the start states above, so reveals and scrambles are simply
     visible — and mrr-motion.js never binds a ScrollTrigger for them at
     all. Every opt-in selector has to be repeated here: omitting one
     would leave that heading permanently invisible for exactly the
     readers least equipped to work out why. */
  .mrr-js .reveal,
  .mrr-js .scramble,
  .mrr-js .mrr-body-copy h2,
  .mrr-js .mrr-discover-heading,
  .mrr-js .mrr-newsletter-heading,
  .mrr-js .mrr-page-title { opacity: 1; transform: none; }
}

/* Entry-template chip. The chip renders {currentEntry.territory} as its
   label, which arrives as a raw option UUID and is swapped for the human
   name by mrr.js. If the field is unset the script blanks it, and this
   rule collapses the empty pill rather than leaving a stray coloured box.
   Lives here rather than in managed CSS because publish tree-shook the
   :empty rule out of that bundle. */
.mrr-hero .mrr-pill:empty { display: none; }

/* The date fallback span is removed by mrr.js once read; this keeps the
   raw timestamp from flashing before the script runs, since the `hidden`
   attribute does not survive into the rendered entry. */
[data-isodate-fallback] { display: none; }

/* Loop-driven hero slides carry two helper elements that exist only to
   smuggle CMS values past the token limitations: the Featured boolean, and
   the slide image as an <a href> (media tokens expand in href but not in
   data-*, and an anchor costs no request). mrr.js reads and removes both;
   this keeps them invisible until it does. */
[data-featured-flag],
[data-slide-img],
[data-grid-subject] { display: none; }

/* ════════════════════════════════════════════════════════════
   Header wordmark — the real logo lockup.

   Ported from the Figma frame "Logo Resolve" (node 34:236). Three flex
   children: brace, clipped body, brace. The body is the only thing that
   animates — its width runs 0 → natural over 500ms, which wipes the type
   open and pushes the closing brace out ahead of it, while the type
   resolves out of a scramble just behind that edge.

   Behaviour is split across two files by necessity: arming in
   src/scripts/mrr-logo-reveal.js (classic, head, immediate, because the
   start state must exist before first paint) and the timeline in
   headerIntro() in src/scripts/mrr-motion.js (module, dom-ready, because
   it needs GSAP).

   Every length here is em against .mrr-wordmark's own font-size, taken as
   a ratio of Figma's 37.066px type. The header sets 18.5px (16.5 ≤640),
   so the whole lockup rescales off that one number and the existing ≤640
   override keeps working untouched. 18.5/37.066 = 0.499 — the header logo
   is the Figma frame at half size, to within a rounding error.

   Declared HERE rather than via managed CSS because `.mrr-intro-armed`
   is applied at runtime and would be tree-shaken out of that sheet. The
   rest of the block follows it so the lockup stays legible in one piece
   — the same call the preloader block below makes.
   ════════════════════════════════════════════════════════════ */
.mrr-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.18885em;              /* 7 / 37.066 */
}

/* Belt and braces. The wireframe drew {} as ::before/::after content;
   those rules are absent from the published CSS (verified — zero hits in
   style.css and userStyles.css), but a later porting pass could
   reintroduce them and they would render a second, typed pair alongside
   the vectors. */
.mrr-wordmark::before,
.mrr-wordmark::after { content: none; }

.mrr-wordmark-brace {
  flex: none;
  display: block;
  width: 0.36161em;            /* 13.4034 / 37.066 */
  height: 1.13996em;           /* 42.2535 / 37.066 */
}

/* One exported glyph serves both ends. A brace is symmetric about its
   middle, so a 180deg turn reads as a horizontal mirror — which is
   exactly what the Figma frame does. */
.mrr-wordmark-brace--open { transform: rotate(180deg); }

/* The width is Figma's clip, NOT the text's natural advance. Lilex is a
   monospace face, so 13 cells of it measure 289.1 against the 287 Figma
   clips to — that 2.1 is the trailing side bearing after the "s", and
   Figma trims it on purpose. Letting the box size to content instead
   keeps the bearing and pushes the closing brace ~1.2px further out than
   the opening one, which reads as a lopsided lockup. Measured off the
   Figma render: ink gaps land at 7 and 7, dead symmetric.

   Safe to pin because every face in the --font-heading stack is mono at
   the same 0.6em advance, so the run cannot outgrow the clip if Lilex
   fails to load. */
.mrr-wordmark-body {
  flex: none;
  display: block;
  overflow: hidden;            /* the clip the reveal wipes open */
  width: 7.74241em;            /* 287 / 37.066 */
  height: 1.72665em;           /* 64 / 37.066 */
}

/* Carries the line-height, so the type sits centred in the clip box the
   way it does in Figma, and the nowrap, so the run cannot fold when the
   clip narrows to zero. The clip box is deliberately taller than the
   braces: at 18.5px the descenders in "my" and "Rights" would graze a
   brace-height box. */
.mrr-wordmark-text {
  display: block;
  line-height: 1.72665em;
  white-space: nowrap;
}

/* Pre-paint armed state, set by mrr-logo-reveal.js from <head> and
   removed by headerIntro() in mrr-motion.js the instant the timeline
   starts. Nothing else ever sets it, so a browser that skips the arming
   script — reduced motion, a repeat visit inside the session, the 12s
   failsafe — never sees a collapsed header. */
html.mrr-intro-armed .mrr-wordmark-body { width: 0; }

/* The nav joins the intro only above the phone breakpoint. Below it
   .mrr-nav-links is already an absolutely-positioned dropdown panel at
   opacity 0 carrying its own opacity/transform transitions, so arming
   there would both run unseen and risk leaving items blank inside a
   panel the reader has opened. headerIntro() tests the same query before
   it touches them. */
@media (min-width: 641px) {
  html.mrr-intro-armed .mrr-nav-links > li { opacity: 0; }
}

/* ════════════════════════════════════════════════════════════
   Preloader — first-visit brand loader, symbol mark only.
   Markup lives in the "Site chrome" everywhere-template; behaviour in
   src/scripts/mrr-preloader-boot.js (pre-paint) and mrr-preloader.js.

   Every rule below is either toggled at runtime or hangs off <html>, so
   none of them could survive publish's tree-shake of the managed sheet.
   The base .mrr-preloader box IS also in managed CSS and should survive
   now that a node statically carries the class — it is repeated here
   anyway because a dropped `position: fixed` would dump the mark into
   the page flow rather than merely look off.
   ════════════════════════════════════════════════════════════ */
.mrr-preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ground);
  transition: opacity 420ms ease;
}
.mrr-preloader[hidden] { display: none; }
.mrr-preloader--done { opacity: 0; pointer-events: none; }

/* No-JS escape hatch. The wireframe used <noscript><style>, which does not
   survive the Instatic node model, so the overlay is gated on the .mrr-js
   marker that mrr-theme-boot.js sets instead. With scripting unavailable
   nothing would ever REMOVE the overlay, so it must never appear at all.
   Needs the html qualifier + !important to beat the managed rule. */
html:not(.mrr-js) .mrr-preloader { display: none !important; }

/* Set by mrr-preloader-boot.js before first paint when sessionStorage says
   this tab has already seen the reveal — hides it with no flash. */
html.mrr-preloader-skip .mrr-preloader { display: none !important; }
html.mrr-preloader-lock { overflow: hidden; }

.mrr-preloader-mark {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mrr-preloader-mark svg,
.mrr-preloader-mark > div { width: 100%; height: 100%; }

/* Lottie renders pure #000 fills; invert to pure white in dark mode rather
   than shipping and maintaining a second export. */
:root[data-theme="dark"] .mrr-preloader-mark { filter: invert(1); }

/* Static SVG fallback (reduced motion / Lottie failure). Hidden by default;
   the script reveals it on whichever path applies. */
.mrr-preloader-fallback { display: none; }

.mrr-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mrr-preloader { transition-duration: 120ms; }
}

/* ════════════════════════════════════════════════════════════
   POST TEMPLATE — contents, reading-bar accent, dropquote, sources.

   Every rule below dresses a node that mrr.js CREATES or CLASSES at
   runtime out of the CMS body, so none of it could survive publish's
   tree-shake of the managed sheet. Same reason as everything above.
   ════════════════════════════════════════════════════════════ */

/* ── Contents: a real numbered list ───────────────────────────
   The <li>s are minted by mrr.js from the body's <h2>s, so the only
   thing the managed sheet could reach was the UA's own marker — which
   sets the numeral in Crimson Pro out in the gutter, aligned to
   nothing. A counter in the mono UI face gives the numbers their own
   fixed column, so the box reads as a structure rather than as prose
   that happens to be indented.

   Overrides `.mrr-synopsis ol { padding-left: 20px }` in the managed
   sheet by LOAD ORDER — raw userStyles are emitted after style.css and
   that rule carries no !important, so equal specificity resolves here.
   Same mechanism the readbar fill above depends on. */
.mrr-synopsis ol {
  list-style: none;
  counter-reset: mrr-toc;
  margin: var(--sp-2) 0 0;
  padding-left: 0;
}
.mrr-synopsis li {
  counter-increment: mrr-toc;
  display: grid;
  grid-template-columns: 2em 1fr;
  align-items: baseline;
}
/* tabular-nums so 9 and 10 sit on the same left edge; the column is
   wide enough for two digits plus the stop at Lilex's 0.6em advance. */
.mrr-synopsis li::before {
  content: counter(mrr-toc) ".";
  font-family: var(--font-heading);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* ── Reading bar, coloured by the entry's territory ───────────
   The fill fell back to --muted on every post: --cover-accent is only
   ever set inline by the hero CAROUSEL, and that code path requires two
   or more slides, which an entry hero never has. mrr.js now classes the
   bar off the resolved subject chip instead — and the colour lives in
   CSS rather than in an inline value, which is what keeps it right when
   the reader flips the theme after load.

   Dark mode takes the -on-dark set. Several light accents are deep
   enough to vanish against --ground-mid at 4px tall — p7 is #2B3182 on
   a #242528 bar. (:root already remaps p2 and p7 in dark, so those two
   land on the same value twice; stated for all eight anyway, so the bar
   does not depend on which tokens happen to be remapped today.) */
.mrr-readbar.rb--p1 { --cover-accent: var(--p1-robot-rights); }
.mrr-readbar.rb--p2 { --cover-accent: var(--p2-artificial-suffering); }
.mrr-readbar.rb--p3 { --cover-accent: var(--p3-killer-robots); }
.mrr-readbar.rb--p4 { --cover-accent: var(--p4-sex-robots); }
.mrr-readbar.rb--p5 { --cover-accent: var(--p5-ai-girlfriends); }
.mrr-readbar.rb--p6 { --cover-accent: var(--p6-human-machine); }
.mrr-readbar.rb--p7 { --cover-accent: var(--p7-agi-asi); }
.mrr-readbar.rb--p8 { --cover-accent: var(--p8-transhumanism); }

:root[data-theme="dark"] .mrr-readbar.rb--p1 { --cover-accent: var(--p1-on-dark); }
:root[data-theme="dark"] .mrr-readbar.rb--p2 { --cover-accent: var(--p2-on-dark); }
:root[data-theme="dark"] .mrr-readbar.rb--p3 { --cover-accent: var(--p3-on-dark); }
:root[data-theme="dark"] .mrr-readbar.rb--p4 { --cover-accent: var(--p4-on-dark); }
:root[data-theme="dark"] .mrr-readbar.rb--p5 { --cover-accent: var(--p5-on-dark); }
:root[data-theme="dark"] .mrr-readbar.rb--p6 { --cover-accent: var(--p6-on-dark); }
:root[data-theme="dark"] .mrr-readbar.rb--p7 { --cover-accent: var(--p7-on-dark); }
:root[data-theme="dark"] .mrr-readbar.rb--p8 { --cover-accent: var(--p8-on-dark); }

/* background-color only — transform on this element belongs to the
   scrubbed ScrollTrigger in mrr-motion.js and must stay untransitioned,
   or the fill would lag the scroll it is reporting. */
.mrr-readbar-progress span {
  transition: background-color 240ms ease;
}

/* ── Dropquote ────────────────────────────────────────────────
   Ported from the wireframe's .mrr-pullquote, which never made it into
   the managed sheet. Authored as an ordinary markdown blockquote in the
   body; mrr.js adds the class, the ornament and the <cite>.

   The wireframe ran it across the 1180 container rather than the 864
   reading measure. From inside .mrr-prose that means a negative inline
   margin of half the difference — clamped to 0 by max() once the
   viewport is too narrow for there to be any difference left, so the
   quote simply sets to the measure on a phone. */
.mrr-body-copy .mrr-pullquote {
  --pq-fit: min(var(--content-w), calc(100vw - 2 * var(--gutter)));
  --pq-bleed: max(0px, calc((var(--pq-fit) - var(--read-measure)) / 2));
  margin-block: var(--sp-6);
  margin-inline: calc(-1 * var(--pq-bleed));
  padding: 39px 0 40px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12.9px;
  text-align: center;
}

/* 100vw counts the scrollbar and the layout width does not, so on the
   narrow band of viewports where --pq-fit is still tracking the
   viewport the bleed can overshoot by the scrollbar's width. clip (not
   hidden) contains that without turning .mrr-read into a scroll
   container. */
.mrr-read { overflow-x: clip; }

/* The logo symbol, same ornament the notify block uses — the two "pause
   and consider" moments on a post are marked the same way. */
.mrr-pullquote-orn {
  display: block;
  width: 35.5px;
  height: 37.5px;
  margin: 0 auto;
  opacity: 0.75;
}
:root[data-theme="dark"] .mrr-pullquote-orn { filter: invert(1); }

.mrr-pullquote p {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 36, 'SOFT' 0, 'WONK' 1;
  font-size: 28.5px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  max-width: 460px;
  margin-inline: auto;
}
.mrr-pullquote cite {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-ui-s);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 768px) {
  .mrr-body-copy .mrr-pullquote { padding: var(--sp-5) 0; }
  .mrr-pullquote p { font-size: var(--fs-h3); }
}

/* ── Sources / bibliography ───────────────────────────────────
   Ported from the wireframe's .mrr-sources, which was likewise never
   in the managed sheet. Built by mrr.js from a trailing "Sources"
   heading plus its list, so the class is runtime-applied — and the
   heading is replaced by the label span, which is also why the section
   never reaches the contents box: the extraction runs first. */
.mrr-sources {
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
}
.mrr-sources-label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.mrr-sources ol,
.mrr-sources ul {
  margin: var(--sp-2) 0 0;
  padding-left: 22px;
}

/* Source markers. The reset strips list markers, so they are restored
   here. Essays cite with lowercase letters: a-z, then aa, bb, cc. */
@counter-style mrr-alpha {
  system: symbolic;
  symbols: a b c d e f g h i j k l m n o p q r s t u v w x y z;
  suffix: ". ";
}
.mrr-sources ol { list-style: lower-alpha; list-style: mrr-alpha; padding-left: 2.2em; }
.mrr-sources ul { list-style: disc; }
.mrr-sources li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }

/* One letter sequence across the whole Sources section, even when it is
   split into several lists under subheadings ("Books and papers",
   "Film and television"). Matches mrr.js, which numbers the src-n ids
   across every list in the section. */
.mrr-sources { counter-reset: mrr-src; }
.mrr-sources ol > li { counter-increment: mrr-src; }
.mrr-sources ol > li::marker { content: counter(mrr-src, mrr-alpha) ". "; }

/* Brief highlight on the entry a citation marker has just scrolled to.
   Class added by mrr-scroll.js when the scroll completes. */
@keyframes mrr-cite-flash {
  0%, 40% {
    background-color: color-mix(in srgb, currentColor 16%, transparent);
    box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 16%, transparent);
  }
  100% { background-color: transparent; box-shadow: 0 0 0 8px transparent; }
}
.mrr-sources li.mrr-cite-flash { border-radius: 3px; animation: mrr-cite-flash 2s ease-out; }

/* The section now runs from the heading to the end of the body, so it
   can legitimately hold a line of preamble ("All links checked August
   2026") or a closing note. Without this those set at --fs-body-l, the
   inherited essay size, and shout over the references they introduce. */
.mrr-sources p {
  font-family: var(--font-reading);
  font-size: var(--fs-body-s);
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
  margin-top: var(--sp-2);
}
.mrr-sources li {
  font-family: var(--font-reading);
  font-size: var(--fs-body-s);
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 8px;
  /* Cleared by the fixed topbar when a citation marker jumps here. */
  scroll-margin-top: calc(var(--topbar-h) + var(--sp-3));
}
/* The entry a reader has just jumped to, so a citation marker lands on
   something visibly identified rather than on a wall of grey. */
.mrr-sources li:target {
  opacity: 1;
  font-weight: 600;
}
.mrr-sources a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.mrr-sources a:hover { text-decoration-color: var(--ink); }

/* Inline citation markers. Authored as a plain link into the source
   list — [1](#src-1) — and set as superscript here, so nobody has to
   write raw <sup> into the body. Qualified with .mrr-body-copy to
   outrank `.mrr-body-copy a`, which would otherwise underline it. */
.mrr-body-copy a.mrr-cite-ref {
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
  padding-inline: 0.15em;
  text-decoration: none;
  color: var(--muted);
}
.mrr-body-copy a.mrr-cite-ref:hover { color: var(--ink); }

/* ── Hero dwell indicator ─────────────────────────────────────────
   The active dot doubles as the countdown to the next slide: the
   button is the track, the span inside is the fill, scaled 0→1 by
   mrr-motion.js over the dwell.

   Structural selector rather than a class, because publish tree-shakes
   classes that only ever appear in runtime JS and these spans are
   minted by mrr.js. Same reason `.mrr-hero > img` styles the backdrop.

   START STATE IS FULL, NOT EMPTY. mrr-motion.js is a module; if it
   never runs, the active dot stays the solid white pill it is today
   rather than reading as permanently empty. The motion layer zeroes it
   as it takes ownership, on bind — not on the first slide change, or
   the dot would sit full for the whole first dwell and then snap. */
.mrr-hero-dots button {
  position: relative;
  overflow: hidden;
}

.mrr-hero-dots button > span {
  display: block;
  width: 100%;
  height: 100%;
  background: #FFF;
  transform: scaleX(1);
  transform-origin: left center;
}

/* Only the active dot is a track — it drops to the inactive dots' grey
   so "unfilled" reads identically across the row. The others keep the
   flat grey they already had, and their fill is never shown. */
.mrr-hero-dots button[aria-current="true"] {
  background-color: #D9D9D9;
}

/* ── Lenis smooth scroll ──────────────────────────────────────────
   Required by the `lenis` package, driven from src/scripts/mrr-scroll.js.

   Transcribed from lenis/dist/lenis.css rather than imported. Two
   reasons, and the second is the load-bearing one:

     1. Every class below is added to <html> by the library at RUNTIME,
        so these rules cannot live in the managed stylesheet — publish
        tree-shakes any managed rule whose leading class is not
        statically present on a node, and would drop the lot. Same
        constraint that puts .mrr-preloader-lock and .mrr-preloader-skip
        in this file.

     2. A `import 'lenis/dist/lenis.css'` from the module script would
        resolve to a separate esbuild output that the runtime never
        links, so it would silently ship nothing.

   The upstream .lenis-autoToggle rules are omitted: mrr-scroll.js does
   not enable that option, and the class is never applied. */

/* Undoes any height:100% on the scroll container. Lenis measures the
   document rather than a transformed wrapper — which is why the sticky
   topbar, the readbar and every position:fixed layer keep working — but
   a constrained root would cap the scrollable length it reads back. */
html.lenis,
html.lenis body {
  height: auto;
}

/* mrr-scroll.js calls lenis.stop() for the duration of the preloader.
   The overlay's own .mrr-preloader-lock already blocks native scrolling;
   this is the same bar for a wheel event that Lenis has intercepted. */
.lenis.lenis-stopped {
  overflow: clip;
}

/* Keeps a nested scroller from chaining its overscroll up into the page
   once it hits its own end — the mega-nav subject strip is the one that
   matters here. Paired with allowNestedScroll in mrr-scroll.js, which
   leaves the gesture native in the first place. */
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
  overscroll-behavior: contain;
}

/* .lenis-smooth is present only WHILE a smooth scroll is in flight, so
   this is transient: it stops an iframe from swallowing the wheel
   mid-glide and stalling the page under the pointer. Embeds stay fully
   interactive at rest. */
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ── CMS body elements ────────────────────────────────────────────
   Lists, tables and iframes appear only in essay bodies, never in the
   template, so publish tree-shakes any managed rule for them and the
   reset leaves them bare. Restored here. */
.mrr-body-copy :where(ul, ol):where(:not(.mrr-synopsis *, .mrr-sources *)) { margin: var(--sp-3) 0; padding-left: 1.4em; }
.mrr-body-copy :where(ul):where(:not(.mrr-synopsis *, .mrr-sources *)) { list-style: disc; }
.mrr-body-copy :where(ol):where(:not(.mrr-synopsis *, .mrr-sources *)) { list-style: decimal; }
.mrr-body-copy :where(li):where(:not(.mrr-synopsis *, .mrr-sources *)) { margin-bottom: var(--sp-1); padding-left: 0.2em; }
.mrr-body-copy :where(li):where(:not(.mrr-synopsis *, .mrr-sources *))::marker { color: var(--muted); }
.mrr-body-copy :where(li > p) { margin: 0; }
.mrr-body-copy table { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; font-size: var(--fs-body-s); line-height: 1.5; }
.mrr-body-copy :where(th, td) { border: 1px solid var(--rule); padding: 12px 16px; text-align: left; vertical-align: top; }
.mrr-body-copy th { background: var(--ground-mid); font-weight: 600; }
.mrr-body-copy :where(th, td) p { margin: 0; }
@media (max-width: 640px) { .mrr-body-copy :where(th, td) { padding: 8px 10px; } }
.mrr-body-copy iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: var(--sp-4) 0; }
