/* ============================================================================
   The research report family — /reports/, /reports/daily/, /reports/weekly/,
   /reports/accuracy/weekly/, /reports/brief/
   ============================================================================

   This is the page sheet for five templates and nothing else. It is linked
   directly from `{% block extra_css %}`, so it needs no bundle build — and,
   because `bundle-shell.css` is linked *after* it, every rule here loses a
   tie with am-system.css and canvas-2026.css. That is deliberate and it is
   the ownership model: the components are theirs, the composition is this
   sheet's.

   What this sheet is for, after the 2026-09-18 visual-system pass:

     1. The document shape. A container with a reading measure, a cover, a
        sticky contents rail, hairline section separators, prose at 70ch.
     2. The four namespaces the five pages still need for their own parts:
        `.rr-*` the family, `.rh-*` the index, `.war-*` the weekly accuracy
        report, `.rb-*` the brief, `.rv-*` the publication verdict.
     3. The print sheet. A printed report is the document, not a screenshot
        of an application.

   What it is NOT for any more. Every card, tile, pill, table and button on
   these pages was a private component in this file — .dr-index-card,
   .dr-movers-panel, .war-prov-card, .war-table, .rb-card, .rb-pill,
   .rb-prov-table, .rr-btn and a dozen more, roughly 1,100 lines of them,
   each restating a surface, a radius, a hairline and a hover that the shared
   layer already defines. They are gone, and the markup uses `.am-panel`,
   `.am-table`, `.am-chip`, `.am-evidence`, `.am-metric`, `.am-seg`,
   `.am-btn` and `.am-state` instead. A route does not get its own button.

   Three cascade facts this file is written around. All three were measured,
   not guessed, and each one is why a selector here is longer than it looks
   like it needs to be.

   a. `canvas-2026.css` may not share a class name with any other sheet
      (`test_canvas_classes_do_not_collide_with_any_other_stylesheet`), so
      this file never writes `.am-panel`, `.am-metric`, `.c-note`,
      `.c-status`, `.c-kpi` or any other name that sheet owns. Where the
      print rules have to reach one, they reach it by attribute
      (`[class~="am-panel"]`), which names nothing.

   b. `page-unification.css` carries `body[class^="page-"] .main-content p
      { color: inherit }` at (0,2,2) from a sheet that loads after this one.
      So a single-class colour on a standalone `<p>` is silently discarded
      and the paragraph comes out at the container's own ink. Every paragraph
      colour below is therefore either set on the block's *parent* (which
      `inherit` then picks up, the cheap way) or written with three classes.

   c. `workspaces.css` is in the last bundle in the document and re-cards
      `.rh-publication*` and re-sizes `.rr-cover__title` with
      `html body[class*="page-"] .main-content …` chains at (0,3,2). Those
      are answered in two ways: by not using the class at all where the name
      was not load-bearing (`.rh-publication` became `.rh-lead`/`.rh-pub`),
      and by a four-class selector where a test pins the name
      (`.rh-publication--lead`). No `!important` anywhere in this file
      outside `@media print`, where the whole point is to overrule the screen.
   ============================================================================ */


/* ---------------------------------------------------------------------------
   The document: container and measure
   ---------------------------------------------------------------------------
   One reading measure for the family. The brief asks these pages to read
   like a financial publication rather than a dashboard, and the first thing
   that separates the two is that a publication has a measure: a line long
   enough to carry an argument and short enough to find its way back to the
   start edge. Seven different caps were once in use across this sheet — 66ch,
   68ch, 72ch, 76ch and three prose elements with no cap at all, which at
   1240px of container is about 150 characters a line.

   70ch, stated once, in the middle of the brief's 68–72. Figures, tables and
   metric rows do not take it: a table wants its column widths. */
.rr-container,
.dr-container,
.rh-page {
  --rr-measure: 70ch;
  --rr-rail: 232px;
}

.dr-container {
  max-width: var(--layout-editorial-max);
  margin-inline: auto;
  padding: var(--sh-page-start) 0 var(--c-space-7);
}
.rr-container { max-width: var(--layout-editorial-max); }
.rh-page { max-width: var(--layout-editorial-max); }


/* ---------------------------------------------------------------------------
   Cover — the masthead of the document
   ---------------------------------------------------------------------------
   The parts are the shared PageHeader's (`.am-page-head__kicker`,
   `__title`, `__meta`). What belongs to a *report* and not to a dashboard
   header is here: a display measure on the title, and a dateline whose every
   entry is labelled — PERIOD, PUBLISHED, UPDATED, METHODOLOGY — because a
   research page that prints four dates without saying which is which has
   published four numbers and no provenance. */
.rr-cover,
.rh-cover {
  padding-block-end: var(--c-space-5);
  border-block-end: 1px solid var(--c-line);
  margin-block-end: var(--c-space-6);
}
/* A display line, not a paragraph: a title set to the body measure runs to
   four words short of 70ch and stops looking like a title. */
.dr-container .rr-cover h1,
.dr-container .rh-cover h1 { max-inline-size: 26ch; }

/* Fact (b): both of these are <p>, and both needed three classes. Measured
   before the fix, the kicker came out at the container's own ink — two steps
   louder than intended, on the line carrying the least information. */
.dr-container .rr-cover .rr-cover__kicker,
.dr-container .rh-cover .rh-cover__kicker {
  color: var(--c-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--c-t-label);
  font-weight: var(--c-w-semi);
}
[dir="rtl"] .dr-container .rr-cover .rr-cover__kicker,
[dir="rtl"] .dr-container .rh-cover .rh-cover__kicker {
  letter-spacing: 0;
  text-transform: none;
}
.dr-container .rh-cover .rh-cover__lede { color: var(--c-text-secondary); }

/* The dateline. A hairline above it, so the metadata reads as a band under
   the title rather than as the document's first paragraph. */
.rr-cover .rr-cover__dates {
  padding-block-start: var(--c-space-4);
  border-block-start: 1px solid var(--c-line);
  column-gap: var(--c-space-6);
}
/* No drawn dot between dateline entries. The shared PageHeader separates a
   row of bare facts with one, and it is right there; here every entry is
   already introduced by its own label — PERIOD, PUBLISHED, UPDATED — so the
   dot separates nothing, and the moment the row wraps (768px and below, and
   at any width in Arabic where the labels are longer) it lands at the head of
   the new line, which is the one thing the component drew it to avoid. The
   32px column gap does the work instead. */
.rr-cover .rr-cover__dates .rr-cover__date + .rr-cover__date::before { display: none; }
.rr-cover__date { gap: var(--c-space-2); }
.rr-cover__date-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* The 2026-09-07 floor: no label below 12px. 0.68rem measured 10.9. */
  font-size: var(--c-t-label);
  font-weight: var(--c-w-semi);
  color: var(--c-text-faint);
}
[dir="rtl"] .rr-cover__date-label { letter-spacing: 0; text-transform: none; }
.rr-cover__date time,
.rr-cover__method {
  color: var(--c-text-secondary);
  font-variant-numeric: tabular-nums;
}
/* No accent on the Period value: the light theme's blanket label colour beat
   it there, so the same header read accented in one theme and muted in the
   other. Position carries the emphasis instead — Period is first in the row. */
.rr-cover__period {
  color: var(--c-text);
  font-weight: var(--c-w-semi);
  font-variant-numeric: tabular-nums;
}

/* The index's context card, in the header's aside slot. The methodology the
   whole library is published under was a dateline entry, set in the same
   13px as a publication date, which made a standing rule look like a
   timestamp. */
.rh-page .rh-method .rh-method__label {
  margin: 0;
  color: var(--c-text-faint);
  font-size: var(--c-t-label);
  font-weight: var(--c-w-semi);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
[dir="rtl"] .rh-page .rh-method .rh-method__label { letter-spacing: 0; text-transform: none; }
.rh-page .rh-method .rh-method__version {
  margin: var(--c-space-2) 0 var(--c-space-3);
  color: var(--c-text);
  font-size: var(--c-t-h3);
  font-weight: var(--c-w-semi);
  font-variant-numeric: tabular-nums;
}
/* Header placement belongs to am-page-head--split at every breakpoint. */

.rh-method__link {
  display: inline-flex;
  align-items: center;
  gap: var(--c-space-2);
  min-block-size: 24px;
  color: var(--c-evidence);
  font-size: var(--c-t-meta);
  font-weight: var(--c-w-semi);
  text-decoration: none;
}
.rh-method__link:hover { text-decoration: underline; }
.rh-method__link .am-arrow { color: currentcolor; }


/* ---------------------------------------------------------------------------
   The publication verdict
   ---------------------------------------------------------------------------
   A statement about the document, so it is set like one: a rule down the
   start edge, an indent, and nothing else. A state that is merely true does
   not need a container — a card here made the caveat look like a component,
   and made a passing verdict visually equivalent to a failing one, which is
   the exact thing the brief forbids. Only the failure takes a tint, and it
   takes it on the status element itself (`.c-status--flag`, the canvas's
   own), never on a box around the sentence. */
.rv-verdict {
  margin: 0 0 var(--c-space-5);
  padding-inline-start: var(--c-space-3);
  border-inline-start: 2px solid var(--c-line-strong);
  max-inline-size: var(--rr-measure, 70ch);
}
.rv-verdict--failed { border-inline-start-color: var(--c-down); }
.dr-container .rv-verdict .rv-verdict__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--c-space-1) var(--c-space-2);
  color: var(--c-text-secondary);
}
.rv-verdict .rv-verdict__line > :first-child { flex: none; }
.dr-container .rv-verdict .rv-verdict__detail {
  margin-block-start: var(--c-space-2);
  color: var(--c-text-muted);
}
.dr-container .rv-verdict .rv-verdict__findings {
  margin-block-start: var(--c-space-2);
  padding-inline-start: var(--c-space-5);
  list-style: disc outside;
  color: var(--c-text-muted);
}
.rv-verdict__findings code {
  font-family: var(--c-mono, monospace);
  font-size: var(--c-t-label);
}


/* ---------------------------------------------------------------------------
   Two-column reading layout
   --------------------------------------------------------------------------- */
.rr-layout { display: block; }
.rr-main { min-width: 0; }

@media (min-width: 1180px) {
  .rr-layout {
    display: grid;
    grid-template-columns: var(--rr-rail, 232px) minmax(0, 1fr);
    gap: var(--c-space-7);
    align-items: start;
  }
  /* The weekly digest has a third child, the edition archive. In the DOM it
     follows the report, so a phone reads header → contents → report →
     archive; here it goes back under the contents in the side column and the
     report spans both rows.

     `auto / 1fr`: without an explicit track list the browser shares the
     report's height between the two rows, which pushed the archive hundreds
     of pixels below the contents panel it sits under. */
  .rr-layout--archive { grid-template-rows: auto 1fr; }
  .rr-layout--archive > .rr-toc { grid-column: 1; grid-row: 1; }
  .rr-layout--archive > .rr-main { grid-column: 2; grid-row: 1 / span 2; }
  .rr-layout--archive > .rr-archive { grid-column: 1; grid-row: 2; align-self: start; }
}


/* ---------------------------------------------------------------------------
   Table of contents — the side-column shape
   ---------------------------------------------------------------------------
   The contents column is `.am-toc` (am-system.css) now: one element, two
   shapes, and the shapes, the list, the ordinals, the current-entry state and
   the phone disclosure are all shared with the documentation family, which
   had built the same thing independently. The 110 lines that used to be here
   were that component under another name.

   What is left is the one thing that is this family's and not the
   component's: *where* it turns into a side column. `.rr-layout` becomes a
   grid at 1180px, not at the 1025px `.am-doc__layout` uses, because the
   report's reading column has a measure to keep; so the rail treatment is
   pinned to this layout's own breakpoint rather than inherited from the
   documentation one. Everything below overrides only what the phone shape
   sets, and only inside `.rr-layout`.

   Sticky works here because page-unification.css sets `overflow-x: clip` on
   `.main-content`: `hidden` would coerce the other axis to `auto`, making
   that ancestor a scroll container, which makes every sticky descendant
   inert.

   The offset is the page's own rhythm and not the shell header's height.
   Measured on /reports/daily/ at 1440: the fidelity shell's header is
   `position: relative` there and part of the flow, so `calc(--sh-header-h +
   24px)` pinned the rail 88px down for a bar that scrolls away with
   everything else — 64px of rail height given up, and the contents no longer
   level with the first section it lists. At 1100, where the same header
   measures `position: sticky`, there is no rail to pin (see below). This is
   the same value `.am-toc` takes at this breakpoint; it is restated rather
   than inherited because the rule below it has to win at two classes. */
@media (min-width: 1180px) {
  .rr-layout > .am-toc {
    position: sticky;
    inset-block-start: var(--c-space-5);
    max-block-size: calc(100vh - var(--c-space-6));
    overflow-y: auto;
    overscroll-behavior-block: contain;
    margin-block-end: 0;
    border-block: 0;
    border-inline-start: 1px solid var(--c-line);
    padding-inline-start: var(--c-space-4);
  }
  /* The summary is the phone affordance. On a wide screen the rail is always
     open, including for a reader who collapsed it on a phone and then
     widened the window — otherwise they get an empty column. Both mechanisms
     are needed: Chromium hides a closed <details>'s children with
     `content-visibility: hidden`, and 131+ does it through
     `::details-content`, which overriding the child alone does not reach. */
  .rr-layout > .am-toc > .am-toc__summary { display: none; }
  .rr-layout > .am-toc .am-toc__label { display: block; }
  .rr-layout > .am-toc > .am-toc__nav {
    display: block;
    content-visibility: visible;
    padding-block-end: 0;
  }
  .rr-layout > .am-toc:not([open])::details-content {
    content-visibility: visible;
    block-size: auto;
  }
}

/* The band between the component's breakpoint and this family's.
   `.am-toc` turns sticky at 1025px, which is where `.am-doc__layout` becomes
   a side column. This layout does not become one until 1180px, so between the
   two the contents is still a full-width collapsed disclosure — and it was
   inheriting `position: sticky`, `max-block-size: 804px` and `overflow-y:
   auto` from that rule. Measured at 1100: a 1013px-wide, 51px-tall "Contents"
   bar pinned to the top of the viewport with the whole report scrolling under
   it. Two classes, so it reaches the component's one. */
@media (min-width: 1025px) and (max-width: 1179px) {
  .rr-layout > .am-toc {
    position: static;
    max-block-size: none;
    overflow-y: visible;
  }
}


/* ---------------------------------------------------------------------------
   Sections
   ---------------------------------------------------------------------------
   The separator is a hairline between two sections, not a border around each
   one. That is the structural half of the brief's research direction —
   "restrained section separators", "avoid wrapping every subsection in a
   dashboard card". A rule running the full measure above a heading says one
   analytical context ended and another began, and costs one pixel; a card
   around each section says the same thing eight times over, with eight
   borders, eight radii and eight backgrounds, and is what makes a research
   page read as a dashboard.

   Adjacent-sibling, so the first section under the cover does not draw a
   second rule directly beneath the cover's own. */
.rr-section { scroll-margin-top: 5rem; min-width: 0; }
.rr-section + .rr-section {
  /* 1.75rem, not --c-space-6 (2rem): the pair of them plus the section's own
     bottom margin measured 68px of air between a section's last line and the
     next heading. 28px here takes the run to 59px -- the same rhythm, ~13%
     less scroll, and the hairline still does the separating. */
  margin-block-start: 1.75rem;
  padding-block-start: 1.75rem;
  border-block-start: 1px solid var(--c-line);
}
/* Dark carries a hairline worse than light does: --c-line is #303030 on a
   #141414 ground, which at 1px reads as a smudge by the third section. The
   stronger line is still one pixel -- separation, not a box. */
:root[data-theme="dark"] .rr-section + .rr-section {
  border-block-start-color: var(--c-line-strong);
}
/* The shared SectionHeader is a space-between row with 24px under it; a
   report's heading sits closer to the sentence it introduces. */
.rr-main .rr-section__head { margin-block-end: var(--c-space-4); }
.rr-section__head { flex-wrap: wrap; gap: var(--c-space-3) var(--c-space-4); }

/* Fact (b): every standalone report paragraph, in one place, with the three
   classes the cascade requires. The alternative was one `.rr-x` rule each,
   silently overruled, which is what shipped the whole family at container
   ink for one release. */
.dr-container .rr-main p.rr-note,
.dr-container .rr-main p.rr-datanote {
  color: var(--c-text-muted);
}
.dr-container .rr-main p.rr-lede { color: var(--c-text-secondary); }

.rr-note {
  margin: calc(-1 * var(--c-space-1)) 0 var(--c-space-4);
  max-inline-size: var(--rr-measure, 70ch);
  font-size: var(--c-t-meta);
  line-height: 1.55;
}
/* The lede of a data-forward report: one size above body, and the only
   element between the cover and the first figure. */
.rr-lede {
  margin: 0 0 var(--c-space-3);
  max-inline-size: var(--rr-measure, 70ch);
  font-size: var(--c-t-lead);
  line-height: 1.6;
}
/* The sentence that says what the figures below were counted over. Quiet,
   but never below 13px and never muted-on-muted: it is the line that stops a
   rate being read as a bigger claim than it is. */
.rr-datanote {
  margin: 0 0 var(--c-space-6);
  max-inline-size: var(--rr-measure, 70ch);
  font-size: var(--c-t-meta);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
/* Prose. Colour on the wrapper, which the child paragraphs inherit — fact
   (b) solved the cheap way, and the reason every prose block in these
   templates is a <div> with <p> inside rather than a bare <p>. */
.rr-prose {
  max-inline-size: var(--rr-measure, 70ch);
  color: var(--c-text-secondary);
  font-size: var(--c-t-body);
  line-height: 1.75;
}
.rr-prose > :first-child { margin-block-start: 0; }
.rr-prose > :last-child { margin-block-end: 0; }

/* The fourth typographic step. Report title → section → subsection → body.
   Still a label rather than a heading, but at the secondary ink and with
   more tracking, so it reads as a level between the section head above it
   and the prose below. At muted it sat at the same weight as the metadata
   lines around it and the hierarchy went from four steps to three. */
.rr-subhead {
  margin: var(--c-space-5) 0 var(--c-space-2);
  color: var(--c-text-secondary);
  font-size: var(--c-t-meta);
  font-weight: var(--c-w-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[dir="rtl"] .rr-subhead { letter-spacing: 0; text-transform: none; }
.rr-subhead:first-of-type { margin-block-start: 0; }
/* `list-style` is declared, not inherited: a reset in the base layer sets
   `none` on every list on the site, so the methodology note's numbered steps
   printed as eight unmarked lines and the digest's highlights as a block of
   sentences. A numbered step whose number is missing is not a step. */
.rr-bullets,
.rr-steps {
  margin: 0 0 var(--c-space-4);
  padding-inline-start: var(--c-space-5);
  list-style-position: outside;
  max-inline-size: var(--rr-measure, 70ch);
  color: var(--c-text-secondary);
  font-size: var(--c-t-body);
  line-height: 1.7;
}
.rr-bullets { list-style-type: disc; }
.rr-steps { list-style-type: decimal; }
.rr-bullets li,
.rr-steps li { margin-block-end: var(--c-space-2); }
.rr-bullets li::marker,
.rr-steps li::marker { color: var(--c-text-faint); }
.rr-steps { color: var(--c-text-muted); font-size: var(--c-t-meta); line-height: 1.6; }

/* An attribution: one asset, one sentence about why it moved. A rule down
   the start edge rather than a card, and the ticker in mono so a column of
   them reads as a column. */
.rr-attributions {
  margin-block-start: var(--c-space-4);
  color: var(--c-text-muted);
}
.rr-attribution {
  margin: 0 0 var(--c-space-2);
  padding-inline-start: var(--c-space-3);
  border-inline-start: 2px solid var(--c-line-strong);
  max-inline-size: var(--rr-measure, 70ch);
  font-size: var(--c-t-meta);
  line-height: 1.6;
}
.rr-attribution__symbol {
  color: var(--c-text-secondary);
  font-family: var(--c-mono, monospace);
  font-size: var(--c-t-label);
  font-weight: var(--c-w-bold);
}


/* ---------------------------------------------------------------------------
   Figures, and the two grids that hold them
   ---------------------------------------------------------------------------
   A figure is a table, a chart or a quoted piece of evidence, and it is the
   only thing on these pages allowed to be a surface. The surface itself is
   the shared Panel; what is here is the space around it and the two
   compositions the report family needs. */
.rr-figure { margin-block: var(--c-space-4) var(--c-space-5); }
.rr-figure:last-child { margin-block-end: 0; }

/* The two-up figure grid, the run of evidence blocks, the signed-figure ink
   and the ticker were all written here and are all in am-system.css now, as
   `.am-duo`, `.am-evidence-list` / `--duo`, `.am-num--up` / `--down` and
   `.am-ticker`. None of them was a report idea: /accuracy/ and the symbol
   dossier had each built the same two-up grid under another name, six sheets
   had their own ticker, and `.am-evidence__claim` losing its colour to
   page-unification's `p { color: inherit }` was a component defect that this
   file had been answering under `.dr-container .rr-main`. The templates name
   the shared classes now. */
.rr-readout__label {
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
}


/* ---------------------------------------------------------------------------
   Evidence, sources, risk
   --------------------------------------------------------------------------- */
/* The link inside an evidence block's claim. Full ink, no underline until
   hover: the block already says this is a citation. */
.rr-evidence__title {
  color: var(--c-text);
  text-decoration: none;
}
a.rr-evidence__title:hover { color: var(--c-evidence); text-decoration: underline; }
a.rr-evidence__title:focus-visible { outline: 2px solid var(--c-evidence); outline-offset: 2px; }

.rr-sources {
  margin: 0;
  padding-inline-start: var(--c-space-5);
  list-style: disc outside;
  max-inline-size: var(--rr-measure, 70ch);
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
  line-height: 1.6;
}
.rr-sources li { margin-block-end: var(--c-space-1); }
.rr-sources li::marker { color: var(--c-text-faint); }
.rr-sources strong { color: var(--c-text-secondary); font-weight: var(--c-w-semi); }

/* A risk note is an attention-register evidence block, so its label follows
   the component. What is added is the label's own colour: the component
   paints `__source` with the attention token already, and this only holds
   the Latin tracking off in Arabic. */
.rr-risk__label { letter-spacing: 0.04em; }
[dir="rtl"] .rr-risk__label { letter-spacing: 0; }


/* ---------------------------------------------------------------------------
   Methodology link and the action rows
   --------------------------------------------------------------------------- */
.rr-method-link {
  display: inline-flex;
  align-items: center;
  gap: var(--c-space-2);
  /* 24px of target, not 20: WCAG 2.2 target-size (minimum) exempts a link
     inline in a sentence, and this one stands on its own line. */
  min-block-size: 24px;
  margin-block-start: var(--c-space-3);
  padding-block: 2px;
  color: var(--c-evidence);
  font-size: var(--c-t-meta);
  font-weight: var(--c-w-semi);
  text-decoration: none;
}
.rr-method-link:hover { text-decoration: underline; }
.rr-method-link .am-arrow { color: currentcolor; }
.rr-actions { margin-block-end: var(--c-space-4); }


/* ---------------------------------------------------------------------------
   The edition control (/reports/daily/)
   --------------------------------------------------------------------------- */
.dr-date-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--c-space-2);
  margin-block-end: var(--c-space-5);
}
.dr-date-form { display: flex; align-items: center; min-width: 0; }
/* The same shape as the two pills beside it. A date input cannot be a pill —
   the native calendar affordance needs a rectangle to sit in — so it takes
   the control radius and the inset ground instead, which is the system's
   answer for a field among buttons. */
.dr-date-input {
  min-block-size: 40px;
  padding: 0 var(--c-space-3);
  border: 1px solid var(--c-line);
  border-radius: var(--c-r-control);
  background: var(--c-inset);
  color: var(--c-text);
  font: inherit;
  font-size: var(--c-t-meta);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
/* The input prints in the browser's locale; the label beside it is the
   unambiguous reading of the same date. */
.dr-date-form { gap: var(--c-space-3); }
.dr-date-label {
  font-size: var(--c-t-meta);
  color: var(--c-text-muted);
  white-space: nowrap;
}
.dr-date-input:focus-visible { outline: 2px solid var(--c-evidence); outline-offset: 2px; }


/* ---------------------------------------------------------------------------
   The empty report, and the subscribe invitation
   --------------------------------------------------------------------------- */
.dr-no-report { margin-block: var(--c-space-5); }
.dr-no-report__action { margin-block: var(--c-space-4) 0; }

.dr-signup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--c-space-4);
  margin-block-start: var(--c-space-7);
}
.dr-signup__body { min-width: 0; flex: 1 1 22ch; }
.dr-container .dr-signup .dr-signup__title {
  margin: 0;
  color: var(--c-text);
  font-size: var(--c-t-h3);
  font-weight: var(--c-w-semi);
  line-height: 1.35;
}
.dr-container .dr-signup .dr-signup__desc {
  margin: var(--c-space-2) 0 0;
  max-inline-size: 52ch;
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
  line-height: 1.55;
}
.dr-signup__btn { flex: 0 0 auto; }


/* ============================================================================
   The research index (/reports/)
   ============================================================================ */

/* ---- Latest publications: one lead, three rows ---------------------------
   The lead was a bordered card with a 3px cyan rule across its top; the
   other three were bordered rows inside a bordered panel. Two surfaces, and
   between them they told a reader which publication mattered with a
   decoration rather than with hierarchy — and they told them a cyan rule
   meant "lead", on a site where cyan means "verified" and nothing else. That
   rule sat above a report whose own page was serving a failed verdict.

   Nothing here draws a box. The lead is bigger, and that is the whole
   signal. */
.rh-latest { margin-block: var(--c-space-6) var(--c-space-7); }
.rh-latest .rh-latest__head { margin-block-end: var(--c-space-4); }
.rh-latest__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--c-space-6);
  align-items: start;
}
@media (min-width: 900px) {
  .rh-latest__body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--c-space-7); }
  .rh-latest__list {
    padding-inline-start: var(--c-space-6);
    border-inline-start: 1px solid var(--c-line);
  }
}

/* Fact (c). These four are the only rules workspaces.css still reaches, and
   the fourth class is what answers its (0,3,2) chain without an !important.
   The name cannot simply be dropped: ResearchHubTests reads the lead slot by
   splitting the response on `rh-publication--lead`. */
.rh-page .rh-latest .rh-publication--lead.rh-lead {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  /* Two shapes, and what there is to show decides which.
     With a report to lead with, the lead is a column that fills the row and
     pins its dateline — and any note about a newer, unverified report it
     passed over — to the foot. The space between the summary and the dateline
     stops being a hole and becomes the gap an editorial lead has anyway, and
     the two columns close level.
     With nothing stored, `--standing` says so: the slot is a standing link to
     a page that regenerates on request, not a publication, it has no dateline
     to pin, and it takes its natural height instead of stretching to a row it
     cannot fill. */
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.rh-page .rh-latest .rh-publication--lead.rh-lead--standing { align-self: start; }
.rh-page .rh-latest .rh-publication--lead.rh-lead h3 {
  margin: var(--c-space-1) 0 var(--c-space-3);
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: var(--c-w-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
[dir="rtl"] .rh-page .rh-latest .rh-publication--lead.rh-lead h3 { letter-spacing: 0; }
.rh-page .rh-latest .rh-lead .rh-publication__summary {
  margin: 0 0 var(--c-space-4);
  max-inline-size: var(--rr-measure, 70ch);
  color: var(--c-text-secondary);
  font-size: var(--c-t-body);
  line-height: 1.7;
}
.rh-page .rh-latest .rh-lead .rh-publication__note { margin-block: var(--c-space-4) 0; }

.rh-lead__kind,
.rh-pub__kind {
  margin: 0;
  color: var(--c-text-faint);
  font-size: var(--c-t-label);
  font-weight: var(--c-w-semi);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
[dir="rtl"] .rh-lead__kind,
[dir="rtl"] .rh-pub__kind { letter-spacing: 0; text-transform: none; }
.rh-lead__title a,
.rh-pub__title a {
  color: var(--c-text);
  text-decoration: none;
}
.rh-lead__title a:hover,
.rh-pub__title a:hover { color: var(--c-evidence); }
.rh-lead__title a:focus-visible,
.rh-pub__title a:focus-visible { outline: 2px solid var(--c-evidence); outline-offset: 3px; }
.rh-page .rh-latest .rh-lead .rh-lead__state { margin-block: 0 var(--c-space-3); }
.rh-page .rh-latest .rh-lead .rh-lead__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--c-space-3) var(--c-space-4);
  /* `auto` on the block-start edge only: the dateline and the note under it
     are one group, pinned to the foot, and they keep their own rhythm. With
     no free space left, `auto` resolves to 0 and nothing moves. */
  margin: auto 0 0;
}
.rh-lead__date {
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
  font-variant-numeric: tabular-nums;
}

/* The directory. Three hairline rows, and the last one draws no rule
   because the category nav below it already separates the block. */
.rh-pub {
  padding-block: var(--c-space-4);
  border-block-end: 1px solid var(--c-line);
  min-width: 0;
}
.rh-latest__list > .rh-pub:first-child { padding-block-start: 0; }
.rh-latest__list > .rh-pub:last-child { border-block-end: 0; padding-block-end: 0; }
.rh-page .rh-latest .rh-pub .rh-pub__title {
  margin: var(--c-space-1) 0 var(--c-space-1);
  font-size: var(--c-t-h3);
  font-weight: var(--c-w-semi);
  line-height: 1.35;
}
.rh-page .rh-latest .rh-pub .rh-pub__line {
  margin: 0;
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
  line-height: 1.55;
}
.rh-pub__date {
  display: inline-block;
  margin-block-start: var(--c-space-2);
  color: var(--c-text-faint);
  font-size: var(--c-t-label);
  font-variant-numeric: tabular-nums;
}

/* A status word, a sentence and a link are three things, not one paragraph:
   inline they wrapped the sentence back underneath the status pill, which
   reads as a caption for it. */
.rh-latest .rh-latest__flag,
.rh-latest .rh-publication__note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--c-space-1) var(--c-space-2);
}
.rh-latest .rh-latest__flag { margin-block: 0 var(--c-space-4); }
/* The status element leads each of these and it is the one part that must
   not be squeezed: `.c-status` sets `min-width: 0`, so as a flex item it
   would compress its own word rather than wrap the sentence after it. Named
   by position, not by class — the canvas owns that class and this sheet does
   not get to write rules for it. */
.rh-latest .rh-latest__flag > :first-child,
.rh-latest .rh-publication__note > :first-child { flex: none; }
.rh-latest .rh-latest__flag > a,
.rh-latest .rh-publication__note > a {
  color: var(--c-evidence);
  font-weight: var(--c-w-semi);
  text-decoration: none;
}
.rh-latest .rh-latest__flag > a:hover,
.rh-latest .rh-publication__note > a:hover { text-decoration: underline; }


/* ---- Category nav -------------------------------------------------------
   The row is the shared SegmentedControl in its `--loose` shape. All this
   adds is the selected state, which CSS cannot express as `aria-pressed`
   here: the chip is a link to a section further down the page, so the
   selection is `:target`, and there is no selector for "the link pointing at
   the targeted element". Seven pairs, written out, one declaration block.
   The `:has()` sits on the page wrapper because the chips come before the
   sections they point at.

   `a[href]` rather than the segment's own class, so this composes the
   component rather than restyling it — and the id in `:has()` carries an
   a-column, which is what lets one rule here answer a component rule that is
   otherwise unanswerable from a page sheet. */
.rh-jump { margin: 0 0 var(--c-space-6); }
.rh-page:has(#accuracy:target) .rh-jump a[href="#accuracy"],
.rh-page:has(#briefs:target)   .rh-jump a[href="#briefs"],
.rh-page:has(#asset:target)    .rh-jump a[href="#asset"],
.rh-page:has(#macro:target)    .rh-jump a[href="#macro"],
.rh-page:has(#daily:target)    .rh-jump a[href="#daily"],
.rh-page:has(#weekly:target)   .rh-jump a[href="#weekly"],
.rh-page:has(#archive:target)  .rh-jump a[href="#archive"] {
  border-color: var(--c-text);
  background: var(--c-text);
  color: var(--c-canvas);
  /* Not colour alone: the selected chip is also the only one at full text
     weight. */
  font-weight: var(--c-w-semi);
}


/* ---- Index sections ----------------------------------------------------- */
.rh-section {
  padding-block: var(--c-space-5);
  border-block-start: 1px solid var(--c-line);
  scroll-margin-top: 5rem;
}
.rh-page .rh-section .rh-section__head { margin-block-end: var(--c-space-2); }
/* A collapsed collection is a row, not a section with padding: the canvas
   disclosure draws its own rules top and bottom, and two hairlines 8px apart
   read as a mistake. */
.rh-page .rh-section--fold {
  padding-block: 0;
  border-block-start: 0;
  margin-block-end: 0;
}
.rh-page .rh-section--fold .rh-section__note { margin-block-start: var(--c-space-3); }
.rh-section__action {
  display: inline-flex;
  align-items: center;
  gap: var(--c-space-2);
  min-block-size: 24px;
  color: var(--c-evidence);
  font-size: var(--c-t-meta);
  font-weight: var(--c-w-semi);
  text-decoration: none;
}
.rh-section__action:hover { text-decoration: underline; }
.rh-section__action .am-arrow { color: currentcolor; }
.rh-page .rh-section p.rh-section__note {
  margin: 0 0 var(--c-space-4);
  max-inline-size: var(--rr-measure, 70ch);
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
  line-height: 1.6;
}

/* ---- The publication list ---------------------------------------------- */
.rh-list { margin: 0; padding: 0; list-style: none; }
.rh-list__row {
  display: flex;
  align-items: baseline;
  gap: var(--c-space-3);
  padding-block: var(--c-space-3);
  border-block-end: 1px solid color-mix(in srgb, var(--c-line) 70%, transparent);
}
.rh-list__row:last-child { border-block-end: 0; }
.rh-list__link {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  flex: 1;
  min-width: 0;
  gap: var(--c-space-1) var(--c-space-4);
  align-items: baseline;
  min-block-size: 24px;
  padding-block: 2px;
  text-decoration: none;
}
.rh-list__date {
  color: var(--c-text-faint);
  font-size: var(--c-t-label);
  font-variant-numeric: tabular-nums;
  /* A date is read left to right in both languages; without the isolate the
     bidi algorithm reorders "Sep 4, 2026" against the Arabic around it. */
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
.rh-list__title {
  color: var(--c-text-secondary);
  font-size: var(--c-t-meta);
  line-height: 1.55;
}
.rh-list__link:hover .rh-list__title { color: var(--c-evidence); }
.rh-list__link:focus-visible { outline: 2px solid var(--c-evidence); outline-offset: 3px; }
/* Below the date column's own width there is no room for two tracks, so the
   date becomes a line above the title rather than a squeezed column. */
@media (max-width: 30rem) {
  .rh-list__link { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Asset chips ------------------------------------------------------- */
.rh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--c-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The shared Chip is 26px, which is right for a tag inside a row of text and
   short of a target a finger has to hit. These are the page's navigation. */
.rh-chips a {
  min-block-size: 36px;
  gap: var(--c-space-2);
  padding-inline: var(--c-space-3);
}
.rh-chip__symbol {
  color: var(--c-text);
  font-family: var(--c-mono, monospace);
  font-size: var(--c-t-meta);
  font-weight: var(--c-w-bold);
}
.rh-chip__count {
  color: var(--c-text-muted);
  font-size: var(--c-t-label);
  font-variant-numeric: tabular-nums;
}

/* ---- Quiet empties and the pager -------------------------------------- */
/* "There is nothing here yet" is a sentence. The page-level states on these
   five routes use the shared State block, which is a dashed region and is
   the right answer when the emptiness replaces a whole data region; a list
   that happens to be empty inside a section that is not gets the quiet
   register instead, because a dashed box around one sentence reads as a
   dropzone. */
.rh-empty,
.war-note,
.rb-empty {
  margin: 0;
  padding-block: var(--c-space-1);
  padding-inline-start: var(--c-space-3);
  border: 0;
  border-inline-start: 2px solid var(--c-line);
  border-radius: 0;
  background: none;
  max-inline-size: var(--rr-measure, 70ch);
  font-size: var(--c-t-meta);
  line-height: 1.6;
}
.dr-container .rr-main .war-note,
.dr-container .rr-main .rb-empty,
.dr-container .rr-main p.rh-empty,
.rh-page .rh-section p.rh-empty { color: var(--c-text-muted); }
.war-note__title,
.rb-empty__title {
  margin: 0 0 var(--c-space-1);
  color: var(--c-text-secondary);
  font-weight: var(--c-w-semi);
}
.war-note p,
.rb-empty p { margin: 0; }
.war-note p + p,
.rb-empty p + p { margin-block-start: var(--c-space-1); }
/* Two of the de-carded blocks have a second owner. `.war-note` and
   `.war-method` are named by class inside two blanket card groups in
   page-unification.css, whose `:is()` list carries the specificity of its
   most specific argument — there is a `.page-backtest_history
   div[style*="overflow-x: auto"]` in there — so it scores (0,2,1) and a
   single-class rule here cannot reach it. Measured in the light theme at
   1440 before the fix: the "Insufficient sample" note rendered as a
   14px-radius outlined box with the de-carding applied inside it, which is
   the worst of both. Three classes clears it. The real fix is smaller and is
   not this sheet's to make: those two names should come out of those two
   lists. Their four siblings belong there and stay. */
.rr-main .war-section .war-note {
  border: 0;
  border-inline-start: 2px solid var(--c-line);
  border-radius: 0;
  background: none;
}

.rh-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--c-space-4);
  margin-block-start: var(--c-space-4);
}
.rh-pager__status {
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
  font-variant-numeric: tabular-nums;
}


/* ============================================================================
   Weekly digest — the edition archive rail
   ============================================================================ */
.rr-archive {
  margin-block-start: var(--c-space-4);
  padding-inline-start: var(--c-space-4);
  border-inline-start: 1px solid var(--c-line);
}
.rr-archive .rr-archive__title {
  margin: 0 0 var(--c-space-2);
  color: var(--c-text-faint);
  font-size: var(--c-t-label);
  font-weight: var(--c-w-semi);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
[dir="rtl"] .rr-archive .rr-archive__title { letter-spacing: 0; text-transform: none; }
.rr-archive__list { margin: 0; padding: 0; list-style: none; }
.rr-archive__link {
  display: block;
  min-block-size: 24px;
  padding-block: var(--c-space-1);
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
  text-decoration: none;
}
.rr-archive__link:hover { color: var(--c-text); }
.rr-archive__link:focus-visible { outline: 2px solid var(--c-evidence); outline-offset: 2px; }
.rr-archive__link--current { color: var(--c-text); font-weight: var(--c-w-semi); }
.rr-archive__week {
  display: block;
  color: var(--c-text-faint);
  font-family: var(--c-mono, monospace);
  font-size: var(--c-t-label);
  font-variant-numeric: tabular-nums;
}


/* ============================================================================
   Weekly accuracy report (/reports/accuracy/weekly/)
   ============================================================================ */

/* All-time context, outside the weekly metrics row on purpose. A fifth tile
   in a row of four weekly tiles reads as a fifth weekly measure however it
   is dashed, so the figure a reader is most likely to mistake for this
   week's sits on its own line, tagged with the window it was measured
   over. */
.dr-container .rr-main .war-alltime {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--c-space-2) var(--c-space-3);
  margin: var(--c-space-4) 0 0;
  padding-block-start: var(--c-space-4);
  border-block-start: 1px solid var(--c-line);
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
}
.war-alltime__tag { flex: none; }
.war-alltime__label { color: var(--c-text-secondary); }
.war-alltime__value {
  color: var(--c-text);
  font-size: var(--c-t-h3);
  font-weight: var(--c-w-semi);
  font-variant-numeric: tabular-nums;
}

/* Provider standouts. Two quiet panels, each holding one Metric, so the rate
   takes the same display step as the four figures above it instead of a
   private 1.85rem/800 that out-shouted them. */
.war-prov__tag {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: var(--c-w-semi);
}
[dir="rtl"] .war-prov__tag { letter-spacing: 0; text-transform: none; }
.war-prov__tag--best { color: var(--c-up); }
.war-prov__tag--worst { color: var(--c-down); }
.war-prov .war-prov__name {
  color: var(--c-text);
  font-size: var(--c-t-meta);
  font-weight: var(--c-w-semi);
  overflow-wrap: anywhere;
}

/* The same band names as /accuracy/ and the research brief, so 62% is the
   same colour on all three — see markets.services.platform_metrics. The
   second selector in each pair is the figure inside a Metric: canvas-bridge
   paints `[class*="__value"]` at (0,3,0) in the light theme, so the band
   class rides on an inner <bdi> and this chain is what reaches it. */
.war-acc--high, .rr-main .war-acc--high { color: var(--c-up); }
.war-acc--mid, .rr-main .war-acc--mid { color: var(--c-attention); }
.war-acc--low, .rr-main .war-acc--low { color: var(--c-down); }
.war-acc--insufficient, .rr-main .war-acc--insufficient {
  color: var(--c-text-muted);
  font-size: var(--c-t-label);
  font-weight: var(--c-w-semi);
  white-space: nowrap;
}

/* A miss: provider, then the claim, then what happened. The claim line is a
   ticker and up to two chips, so it is a row rather than a sentence. */
.war-miss .war-miss__claim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--c-space-2);
}
.war-miss__conf {
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
  font-variant-numeric: tabular-nums;
}
.war-missing { color: var(--c-text-faint); }
.war-table td:first-child { white-space: nowrap; }
.war-assets__bar { margin-inline-start: auto; }

.war-method__icon {
  inline-size: 18px;
  block-size: 18px;
  flex: 0 0 auto;
  color: var(--c-text-faint);
}


/* ============================================================================
   Research brief (/reports/brief/)
   ============================================================================ */

/* Five figures, not four, so this is an auto-fit row rather than the shared
   four-column Metric grid: with four fixed tracks the fifth rate dropped to
   a second row on its own and read as a different kind of number. */
.rb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: var(--c-space-5);
  margin-block-end: var(--c-space-4);
}
.rb-stats > * { min-width: 0; }
.rb-acc--high, .rr-main .rb-acc--high { color: var(--c-up); }
.rb-acc--mid, .rr-main .rb-acc--mid { color: var(--c-attention); }
.rb-acc--low, .rr-main .rb-acc--low { color: var(--c-down); }
.rb-acc--insufficient, .rr-main .rb-acc--insufficient {
  color: var(--c-text-muted);
  font-size: var(--c-t-label);
  font-weight: var(--c-w-semi);
  white-space: nowrap;
}

/* Eight to twelve dossiers stack under one heading, and as bordered cards
   they were the clearest instance on the site of the brief's complaint: "one
   endless vertical stack of components". They are rows now — hairline
   between, no radius, no fill. The open one marks itself with a rule down
   the start edge rather than with a background that has to bleed out of the
   column to reach the full measure; the first draft did the latter
   (`padding-inline: 1rem` against `margin-inline: -1rem`) and measured 984px
   of content inside a 968px column at 1440, silently clipped, because
   `.main-content` is `overflow-x: clip`. A rule costs two pixels and cannot
   overflow anything. */
.rb-dossier {
  border-block-end: 1px solid color-mix(in srgb, var(--c-line) 70%, transparent);
}
.rb-dossier:last-of-type { border-block-end: 0; }
.rb-dossier > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--c-space-3);
  min-block-size: 44px;
  padding-block: var(--c-space-2);
}
.rb-dossier > summary::-webkit-details-marker { display: none; }
.rb-dossier > summary:focus-visible { outline: 2px solid var(--c-evidence); outline-offset: 2px; }
.rb-dossier[open] {
  border-inline-start: 2px solid var(--c-line-strong);
  padding-inline-start: var(--c-space-3);
}
.rb-dossier__symbol { min-inline-size: 5ch; font-size: var(--c-t-body); }
.rb-dossier__meta {
  flex: 1;
  min-width: 0;
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
  font-variant-numeric: tabular-nums;
}
.rb-dossier__chevron {
  flex-shrink: 0;
  inline-size: 16px;
  block-size: 16px;
  color: var(--c-text-muted);
  transition: transform var(--c-dur-state) var(--c-ease);
}
.rb-dossier[open] .rb-dossier__chevron { transform: rotate(180deg); }
.rb-dossier__body { padding-block: 0 var(--c-space-4); }
.rb-dossier__narrative { margin-block-end: var(--c-space-4); }
.dr-container .rr-main .rb-trend {
  margin: var(--c-space-3) 0 0;
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
}
.rb-trend strong { color: var(--c-text); font-variant-numeric: tabular-nums; }

/* An article in a list of articles. A publication separates those with space
   and a rule; a dashboard puts each one in a card. */
.rb-news { margin: 0; padding: 0; list-style: none; }
.rb-news-item {
  padding-block: var(--c-space-4);
  border-block-end: 1px solid color-mix(in srgb, var(--c-line) 70%, transparent);
  color: var(--c-text-secondary);
  min-width: 0;
}
.rb-news-item:first-child { padding-block-start: 0; }
.rb-news-item:last-child { border-block-end: 0; }
.rb-news-item .rb-news-item__title {
  margin: 0 0 var(--c-space-2);
  font-size: var(--c-t-body);
  font-weight: var(--c-w-semi);
  line-height: 1.45;
}
.rb-news-item__title a { color: var(--c-text); text-decoration: none; }
.rb-news-item__title a:hover { color: var(--c-evidence); text-decoration: underline; }
.rb-news-item__title a:focus-visible { outline: 2px solid var(--c-evidence); outline-offset: 3px; }
/* Three lines. Twelve of these run down one column, and a full AI summary on
   each turned a brief into a feed. */
.rb-news-item__summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 var(--c-space-3);
  max-inline-size: var(--rr-measure, 70ch);
  font-size: var(--c-t-meta);
  line-height: 1.6;
}
.rb-news-item .rb-news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--c-space-2);
  margin: 0;
  color: var(--c-text-muted);
  font-size: var(--c-t-meta);
}
.rb-news-item__fact { font-variant-numeric: tabular-nums; }
.rb-news-item__more { color: var(--c-text-faint); font-size: var(--c-t-label); }
.rb-sym-tag { font-family: var(--c-mono, monospace); }

.rb-method { padding-block-start: var(--c-space-3); }
.rb-method__version { flex: none; }


/* ---------------------------------------------------------------------------
   Motion
   ---------------------------------------------------------------------------
   Everything above is a state change under --c-dur-state or a disclosure
   rotation under --c-dur-move, which are the only two categories of motion
   this site allows without a reason. When the reader has asked for less,
   there is none. */
.rr-archive__link,
.rh-list__title,
.rh-lead__title a,
.rh-pub__title a,
.rb-news-item__title a {
  transition: color var(--c-dur-state) var(--c-ease),
              background-color var(--c-dur-state) var(--c-ease),
              border-color var(--c-dur-state) var(--c-ease);
}
@media (prefers-reduced-motion: reduce) {
  .rr-archive__link,
  .rh-list__title,
  .rh-lead__title a,
  .rh-pub__title a,
  .rb-news-item__title a,
  .rb-dossier__chevron { transition: none; }
}


/* ---------------------------------------------------------------------------
   Narrow viewports
   --------------------------------------------------------------------------- */
/* Four figures need about 900px to sit in one row with one-line labels. The
   shared Metric grid drops to two columns at 767px, which leaves 768–900 with
   four cramped tracks and "This week, every scored call" on two lines beside
   three one-line labels — four figures on three different baselines. */
@media (min-width: 768px) and (max-width: 900px) {
  .rr-main .war-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The market-state strip is shared with the home page, whose stylesheet is
   not loaded here: without these two rules both name spans printed ("DIA
   DIA"), and an odd tile count left an empty cell on a phone. */
.dr-container .hw-name-short { display: none; }
.dr-container .rr-figure .am-table:not(.dr-levels-table) { display: table; inline-size: 100%; }
.dr-container .dr-na { text-decoration: none; cursor: help; color: var(--c-text-faint); }
.dr-container .dr-levels-foot,
.dr-container .dr-horizon-note { margin-block-start: var(--c-space-3); }
@media (max-width: 30rem) {
  .dr-container .hw-name-full  { display: none; }
  .dr-container .hw-name-short { display: block; }
  .dr-horizon > section > div:last-child > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* The shared rail keeps only "Now" on a phone because five captions
     collided at 375px. Here the labels are the point of a closed-session
     rail, so they stay, set smaller. */
  .dr-horizon [role="img"] span:not([aria-hidden]) {
    position: absolute; width: auto; height: auto; overflow: visible;
    clip-path: none; font-size: 0.625rem;
  }
}
@media (max-width: 767px) {
  .rb-stats { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--c-space-4); }
  .dr-signup { flex-direction: column; align-items: stretch; }
  .dr-signup__btn { inline-size: 100%; }
  .rr-cover,
  .rh-cover { margin-block-end: var(--c-space-5); }
}
@media (max-width: 430px) {
  .rb-dossier__meta { flex-basis: 100%; order: 3; }
  .dr-date-nav { gap: var(--c-space-2); }
  .dr-date-input { flex: 1 1 auto; inline-size: 100%; }
  .war-assets__bar { display: none; }
}


/* ============================================================================
   Print — the report, and nothing that surrounds it
   ============================================================================
   A printed report should be the document, not a screenshot of an
   application. Everything that exists to navigate the site is dropped: the
   header, the footer, the quick dock, the banner, the back-to-top control,
   the Context Lens (it is a <dialog>, so it would otherwise print its
   markup), the table of contents (page numbers are what a printed document
   uses), and the export controls that produced this page.
   ============================================================================ */
@media print {
  :root { color-scheme: light; }

  /* The sheet the document is set on. Without this the browser's default
     margin box is used, which on Chrome also prints the site URL and the
     date into the corners of a research report. A named margin, and the
     report is the page. */
  @page { margin: 16mm 14mm 18mm; }

  body { background: #fff !important; color: #000 !important; }

  .dashboard-header,
  .dashboard-footer,
  .am-footer,
  footer,
  .social-banner,
  #social-banner,
  .am-quick-dock,
  #back-to-top,
  #context-lens,
  .mobile-menu-overlay,
  .breadcrumb,
  .dr-date-nav,
  .dr-signup,
  .rr-toc,
  .rh-jump,
  .share-bar,
  .no-print {
    display: none !important;
  }

  .dr-container,
  .rr-container,
  .rr-layout,
  .rh-page {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* The surfaces. The shared Panel, Metric, Evidence, Table-wrap and State
     blocks are reached by attribute rather than by class: canvas-2026.css
     owns those names and a page sheet that writes one of them fails the
     collision gate. An attribute selector names nothing. */
  [class~="am-panel"],
  [class~="am-metric"],
  [class~="am-evidence"],
  [class~="am-state"],
  [class~="am-table-wrap"],
  .rr-cover,
  .rr-section,
  .rh-section,
  .rb-dossier,
  .rb-news-item,
  .rv-verdict {
    background: #fff !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  [class~="am-table-wrap"],
  .am-scroll { overflow: visible !important; }
  [class~="am-chip"] { border-color: #999 !important; }

  .rr-section { break-before: auto; padding-top: 0.5rem; }
  .rr-section h2 { break-after: avoid; page-break-after: avoid; }

  /* Two defects that only appear on paper, both of them in the tables this
     family exists to publish.

     A table that runs past the bottom of a sheet continues on the next one
     with no header row, so every column on page two is unlabelled —
     `table-header-group` is what tells the printer to repeat the <thead>.
     And a row split across the fold prints half a number above the crease
     and half below.

     The third is typographic: a paragraph that leaves one line stranded at
     the foot of a page, or carries one line over to the next, is the oldest
     fault in typesetting and the one a reader notices without knowing why.
     Three lines either side. */
  .dr-container thead { display: table-header-group; }
  .dr-container tfoot { display: table-footer-group; }
  .dr-container tr { break-inside: avoid; page-break-inside: avoid; }

  .dr-container p,
  .dr-container li,
  .rr-prose,
  .rr-bullets { orphans: 3; widows: 3; }

  /* A collapsed disclosure the reader cannot open on paper must be open on
     paper. */
  .rb-dossier__body,
  .rb-dossier[open] .rb-dossier__body { display: block !important; }
  .rb-dossier > summary { cursor: default; }
  /* A clamped summary prints its three lines and loses the rest, which on
     paper is a truncation nobody can expand. */
  .rb-news-item__summary {
    display: block !important;
    -webkit-line-clamp: none;
    overflow: visible !important;
  }

  /* One blanket, because chasing this selector by selector does not end.
     page-unification.css and reference-2026.css ship after this sheet and
     repaint headings, table cells, links, labels and metadata with
     !important at specificities from (0,1,1) upward, so a printed report
     came out as pale grey text on white. This sheet is linked only by the
     five templates of this family, so a descendant rule under
     `.dr-container` cannot reach another page. The movement and band
     families are excluded: red and green carry meaning on paper too. */
  .dr-container,
  .dr-container *:not([class*="war-acc--"]):not([class*="am-num--"]):not([class*="rb-acc--"]) {
    color: #000 !important;
  }

  /* The ground. A stylesheet that ships after this one paints html and body
     with the theme's canvas colour under a [data-theme] selector, so every
     report printed as pale text on a dark rectangle; `body { background:
     #fff !important }` above loses to it on specificity. These selectors
     carry the same attribute weight and win on order. */
  :root[data-theme],
  html[data-theme] body[class][class] {
    background: #fff !important;
    color: #000 !important;
  }

  /* A printed link that says "here" is useless; a printed link that says
     where it goes is a citation. */
  .rr-evidence__title[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.72rem;
    color: #555;
    word-break: break-all;
  }

  a { color: #000 !important; text-decoration: none; }
}
