/* Self-hosted originals. Retain both corresponding OFL license files. */
@font-face {
  font-family: 'Newsreader';
  src: url('./fonts/newsreader-variable-normal.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('./fonts/librefranklin-variable-normal.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* Suggested application tokens; integrate into the site's existing selectors. */
:root {
  --editorial-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --editorial-sans: 'Libre Franklin', system-ui, Arial, sans-serif;
}
.editorial-masthead,
.editorial-headline,
.editorial-prose {
  font-family: var(--editorial-serif);
  font-optical-sizing: auto;
}
.editorial-metadata,
.editorial-controls {
  font-family: var(--editorial-sans);
}

/* Independent newsroom edition. Load LAST on every HTML entrypoint.
   Fonts are served locally by the release builder; no external requests.
   Layout/state/ARIA/data and graph geometry remain owned by existing modules. */
:root {
  color-scheme: light;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'Libre Franklin', Arial, Helvetica, sans-serif;
  --font-copy: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ink: #151515;
  --paper: #f7f4ec;
  --action: #9e211b;
  --muted: #56544f;
  --line: #c5c0b5;
  --wash: #eeeae0;
  --control-line: #77736b;
  --good: #315743;
  --warm: #775426;
  --body: var(--font-ui);
  --heading: var(--font-display);
  --serif: var(--font-copy);
  --page-width: 1320px;
  --copy-width: 720px;
}
html { background: var(--paper); scroll-padding-top: 24px; }
body { background: var(--paper); color: var(--ink); font: 16px/1.65 var(--font-ui); -webkit-font-smoothing: antialiased; }
body, main, article, section, aside, header, footer, nav, .page { min-width: 0; }
a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1,h2,h3,h4 { color: var(--ink); font-family: var(--font-display); font-weight: 600; text-wrap: pretty; }
h1 { font-size: clamp(36px,4.4vw,62px); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.015em; }
h3 { font-size: 24px; line-height: 1.25; }
h4 { font-size: 20px; line-height: 1.3; }
button,input,select,textarea { font-family: var(--font-ui); color: var(--ink); border-radius: 0; }
button,.button { border-radius: 0; box-shadow: none; }
button { min-height: 42px; }
button:disabled { cursor: default; }
input,select,textarea { accent-color: var(--action); }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip:focus { z-index: 100; background: var(--paper); color: var(--ink); border: 2px solid var(--action); }

/* Masthead and edition navigation: one publication across the main and reader pages. */
body > header, .masthead { width: min(var(--page-width),calc(100% - 80px)); max-width: none; margin: 0 auto; padding: 30px 0 24px; border-top: 5px solid var(--ink); border-bottom: 0; background: transparent; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.wordmark,.newsroom-masthead { color: var(--ink); font: 700 clamp(25px,3vw,40px)/1.05 var(--font-display); letter-spacing: -.035em; text-decoration: none; gap: 13px; }
.wordmark:hover { text-decoration: none; }
.mark { color: var(--action); background: transparent; border-right: 1px solid var(--line); padding: 0 13px 0 0; font: 700 1.18em/1 var(--font-display); }
.edition,.newsroom-edition { color: var(--muted); font: 500 11px/1.5 var(--font-ui); letter-spacing: .04em; }
body > nav, .reference-nav { width: min(var(--page-width),calc(100% - 80px)); max-width: none; margin: 0 auto; padding: 13px 0; border-top: 1px solid var(--ink); border-bottom: 4px double var(--ink); align-items: center; gap: 11px 24px; background: transparent; }
nav a,nav summary { color: var(--ink); font: 500 13px/1.6 var(--font-ui); letter-spacing: 0; }
nav a[aria-current="page"] { color: var(--action); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
nav details[open] summary { color: var(--action); }
.research-tools-links { min-width: 265px; background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 8px; box-shadow: none; }
.research-tools-links a { padding: 10px 12px; }
.research-tools-links a:hover { background: var(--wash); }
#menu { background: transparent; border: 1px solid var(--control-line); padding: 8px 12px; color: var(--ink); font-size: 13px; }

/* Editorial front: a lead, a document strip and a ruled reporting trail, not a card dashboard. */
.hero,.summary-hero,.network-hero,.newsroom-front { width: min(var(--page-width),calc(100% - 80px)); max-width: none; margin: 0 auto; padding: 58px 0 26px; }
.hero h1,.summary-hero h1,.network-hero h1,.newsroom-lead h1 { font: 600 clamp(42px,5.8vw,82px)/1.015 var(--font-display); letter-spacing: -.03em; max-width: 1020px; margin: 14px 0 25px; }
.hero .dek,.summary-hero .dek,.newsroom-deck { color: var(--ink); max-width: 850px; font: 400 24px/1.5 var(--font-copy); }
.eyebrow,.newsroom-kicker { color: var(--action); font: 600 12px/1.5 var(--font-ui); letter-spacing: .025em; }
.summary-date,.reference-date { color: var(--muted); font: 400 12px/1.6 var(--font-ui); margin-top: 22px; }
.summary-actions,.newsroom-utility-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 24px 0; }
.button { background: transparent; color: var(--action); border: 1px solid var(--action); padding: 12px 18px; font: 600 13px/1.5 var(--font-ui); min-height: 44px; text-decoration: none; }
.button:hover { color: var(--paper); background: var(--action); text-decoration: none; }
.button.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--action); border-color: var(--action); }
.draft-note,.summary-load-note { border: 0; border-top: 1px solid var(--line); background: transparent; padding: 12px 0; color: var(--muted); font: 12px/1.6 var(--font-ui); }
.newsroom-front { padding-bottom: 0; }
.newsroom-front > .hero,.newsroom-front > .summary-hero { width: 100%; padding: 0; }
.newsroom-lead { max-width: 1030px; }
.newsroom-section-heading { padding-top: 20px; border-top: 2px solid var(--ink); margin: 42px 0 22px; }
.newsroom-document-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 32px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.newsroom-document { padding: 24px 26px; min-width: 0; border-right: 1px solid var(--line); }
.newsroom-document:first-child { padding-left: 0; }
.newsroom-document:last-child { border-right: 0; }
.newsroom-document h2,.newsroom-document h3 { margin: 0 0 12px; font-size: 27px; }
.newsroom-document p { font-size: 14px; line-height: 1.7; }
.newsroom-document a { font: 600 13px/1.6 var(--font-ui); }
.newsroom-trail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 28px; border-top: 1px solid var(--ink); margin: 30px 0; }
.newsroom-trail-step { min-width: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.newsroom-trail-step h3 { margin-top: 0; }

/* Existing sourced network and family sections remain fully navigable. */
.network-overview,.family-summary { width: min(var(--page-width),calc(100% - 80px)); max-width: none; margin: 28px auto 42px; padding: 26px 0; border: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); background: transparent; }
.network-overview > h2,.family-summary h2 { font: 600 34px/1.15 var(--font-display); letter-spacing: -.02em; margin: 7px 0 24px; }
.network-family-band { border-bottom: 1px solid var(--line); margin-bottom: 26px; padding-bottom: 20px; }
.network-family-band p { font-size: 15px; line-height: 1.75; }
.network-family-band a { font-size: 13px; }
.network-branches { grid-template-columns: 1.1fr 1fr; gap: 0; }
.network-branch { background: transparent; border: 0; padding: 20px 28px 20px 0; }
.network-branch + .network-branch { border-left: 1px solid var(--line); padding-left: 28px; }
.network-branch h3 { font: 600 27px/1.2 var(--font-display); margin: 18px 0; }
.network-branch p { font-size: 14px; line-height: 1.75; }
.network-branch > a,.network-diagram-note,.network-typed-link,.network-rail-note { font-size: 13px; line-height: 1.7; }
.network-source-status { font: 600 11px/1.5 var(--font-ui); letter-spacing: 0; padding: 3px 0; border: 0; border-bottom: 2px solid var(--good); background: transparent; color: var(--good); }
.network-source-status.published { border: 0; border-bottom: 2px dashed var(--warm); color: var(--warm); background: transparent; }
.network-published { background: transparent; }
.network-relationship { border-left: 2px solid var(--action); padding-left: 15px; }
.network-commercial-pair { font: 600 16px/1.5 var(--font-ui); }
.network-policy-link { font: 400 19px/1.7 var(--font-copy); padding-top: 22px; border-top: 1px solid var(--ink); }
.network-control-heading h3 { font-size: 26px; }
.network-control-heading p { font-size: 14px; }
.network-control-rail { gap: 14px; margin-top: 18px; }
.network-rail-node { background: transparent; border: 0; border-top: 1px solid var(--ink); min-height: 140px; padding: 14px 0; font: 600 14px/1.55 var(--font-ui); }
.network-rail-node small { font: 12px/1.6 var(--font-ui); }
.network-rail-broker { background: transparent; border-top: 3px solid var(--action); }
.network-rail-edge { font-size: 12px; line-height: 1.6; }
.network-dynasty-authority { border-bottom-color: var(--line); }
.family-summary-heading { align-items: baseline; }
.family-person-grid { gap: 0; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); }
.family-person { padding: 20px 24px 20px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.family-person:hover { background: var(--wash); border-color: var(--line); }
.family-person strong { font: 600 23px/1.25 var(--font-display); }
.family-person span { font: 13px/1.7 var(--font-ui); }
.family-trusts,.family-chain { font: 500 14px/1.8 var(--font-ui); }
.family-panel-note,.family-panel-sources { font-size: 13px; }

/* Longform and standalone references share a reading rhythm and marginal source rail. */
.article-layout { width: min(var(--page-width),calc(100% - 80px)); max-width: none; padding: 26px 0 84px; grid-template-columns: 190px minmax(0,var(--copy-width)); gap: 60px; }
.article-sidebar,.reference-contents { font: 13px/1.65 var(--font-ui); border-top: 2px solid var(--ink); padding-top: 18px; top: 24px; }
.article-sidebar a,.reference-contents a { font-size: 13px; margin: 0; padding: 9px 0; }
.article-sidebar strong,.reference-contents h2 { font: 600 13px/1.5 var(--font-ui); }
.prose,.reference-prose,.article-body { font: 400 21px/1.65 var(--font-copy); max-width: var(--copy-width); color: var(--ink); min-width: 0; }
.prose p,.reference-prose p { margin: 0 0 1.35em; }
.prose h2,.reference-prose h2,.article-body h2 { font: 600 34px/1.18 var(--font-display); letter-spacing: -.015em; margin: 48px 0 20px; }
.prose h3,.reference-prose h3 { font: 600 25px/1.25 var(--font-display); margin: 30px 0 14px; }
.prose blockquote,.reference-prose blockquote { padding: 4px 0 4px 24px; margin: 30px 0; border-left: 2px solid var(--action); color: var(--ink); background: transparent; }
.prose code,.reference-prose code { font-size: 14px; }
.prose li { margin: 10px 0; }
.reference-page { width: min(var(--page-width),calc(100% - 80px)); max-width: none; padding: 48px 0 80px; }
.reference-heading { max-width: none; padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.reference-heading h1 { font: 600 clamp(40px,5vw,72px)/1.03 var(--font-display); max-width: 1000px; }
.reference-layout { grid-template-columns: 210px minmax(0,var(--copy-width)); gap: 54px; margin-top: 38px; }
.reference-dek { font: 21px/1.6 var(--font-copy); }
.reference-cites,.reference-sources,.reading-links { font: 13px/1.75 var(--font-ui); }
.reference-sources li { border-top-color: var(--line); padding: 20px 0; }
.reference-sources p { font-size: 13px; }
.reference-table { border: 0; border-top: 1px solid var(--ink); }
.reference-table td,.reference-table th { font-size: 14px; line-height: 1.7; }

/* Research tools use generous, readable rows; data is not recast as editorial certainty. */
.page { width: min(var(--page-width),calc(100% - 80px)); max-width: none; padding: 44px 0 76px; }
.page > h1 { margin-top: 12px; max-width: 1050px; }
.page > .intro,.page > .dek { max-width: 850px; font-size: 17px; color: var(--muted); }
.method { width: min(1050px,calc(100% - 80px)); }
.count,.rm-record-meta { font: 13px/1.65 var(--font-ui); color: var(--muted); }
.toolbar,.trading-filters { gap: 14px; margin: 28px 0 20px; }
.toolbar input,.toolbar select,.trading-filters input,.trading-filters select,.fabric-grid input,.fabric-grid select,#frontier-filter { border: 1px solid var(--control-line); border-radius: 0; background: var(--paper); padding: 12px 14px; font: 14px/1.5 var(--font-ui); min-height: 46px; }
.filter-control label,.trading-filters label,.fabric-grid label { font: 600 13px/1.5 var(--font-ui); }
.directory { grid-template-columns: minmax(270px,.8fr) minmax(0,1.5fr); gap: 38px; }
.entity-list { gap: 0; border-top: 1px solid var(--ink); padding-right: 10px; }
.entity-card { padding: 20px 14px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.entity-card strong { font: 600 17px/1.45 var(--font-ui); }
.entity-card small { font-size: 12px; }
.entity-card:hover,.entity-card.selected { background: var(--wash); border-color: var(--line); }
.entity-card.selected { border-left: 3px solid var(--action); padding-left: 11px; }
.detail { border: 0; border-top: 3px solid var(--ink); padding: 24px 0; }
.detail h2 { font-size: 31px; }
.metric-grid { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 18px; }
.metric-grid div { background: transparent; padding: 14px 0; font-size: 13px; }
.metric-grid strong { font-size: 13px; }
.badge { background: transparent; border: 1px solid var(--line); border-radius: 0; color: var(--muted); font: 12px/1.6 var(--font-ui); padding: 3px 7px; }
.badge.good { color: var(--good); background: transparent; border-color: var(--good); }
.badge.open { color: var(--warm); background: transparent; border-color: var(--warm); }
.claim { padding: 22px 0; font-size: 15px; }
.evidence-btn { font: 600 13px/1.6 var(--font-ui); min-height: 36px; padding: 8px 0; color: var(--action); }
.source-grid { gap: 0 34px; }
.source { border: 0; border-top: 1px solid var(--ink); padding: 26px 0; }
.source h2 { font-size: 29px; }
.source h3 { font-size: 24px; }
.source p { font-size: 15px; line-height: 1.75; color: var(--ink); }
.source code,.source small { font-size: 12px; }
.question,.fabric-gap { border: 0; border-top: 1px solid var(--line); padding: 18px 0; margin: 0; background: transparent; font-size: 15px; }
.question summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.edge-list,#edges { gap: 0 30px; }
.edge { background: transparent; border: 0; border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; }
.edge strong { font-size: 16px; }
.edge .arrow { font-size: 14px; }
.stats,.trading-metrics { background: transparent; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); gap: 0; }
.stat,.trading-metrics div { background: transparent; border: 0; border-right: 1px solid var(--line); padding: 20px 24px; }
.stat:last-child,.trading-metrics div:last-child { border-right: 0; }
.stat strong,.trading-metrics strong { font: 600 36px/1.15 var(--font-display); }
.stat span,.trading-metrics span { font: 13px/1.65 var(--font-ui); }
.empty,.trading-no-results { background: var(--wash); color: var(--muted); padding: 24px; }

/* Evidence dialogs retain the source hierarchy and a distinct copy/control area. */
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-top: 5px solid var(--ink); border-radius: 0; box-shadow: none; width: min(900px,calc(100vw - 36px)); max-width: 900px; max-height: calc(100dvh - 40px); padding: 32px; }
dialog::backdrop,#trading-record::backdrop { background: rgb(21 21 21 / .65); }
dialog h2,#trading-record-title { font: 600 33px/1.15 var(--font-display); }
dialog h3 { font: 600 23px/1.3 var(--font-display); }
dialog p { font: 14px/1.75 var(--font-ui); }
dialog blockquote,#trading-detail blockquote { color: var(--ink); background: var(--wash); border-left: 2px solid var(--action); padding: 18px 22px; margin: 24px 0; font: 18px/1.75 var(--font-copy); }
dialog .close,#trading-close { min-width: 44px; min-height: 44px; border-radius: 0; color: var(--ink); background: transparent; }
.relationship-qualifiers { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 24px 0; }
.relationship-qualifiers h3 { margin: 0 0 18px; }
.relationship-qualifiers dl,#trading-detail dl { font: 14px/1.7 var(--font-ui); gap: 12px 24px; }
.relationship-qualifiers dt,#trading-detail dt { color: var(--muted); font-weight: 500; }
.relationship-qualifiers dd,#trading-detail dd { color: var(--ink); }
.record-actions { border-top: 1px solid var(--line); padding-top: 20px; }
.record-actions button,.trading-page button,#trading-close { border: 1px solid var(--control-line); background: transparent; padding: 10px 14px; color: var(--action); }
.copy-fallback { font: 13px/1.6 var(--font-ui); border: 1px solid var(--control-line); padding: 14px; background: var(--paper); }

/* Tables, ordinary charts and source downloads. */
table,.trading-table { font: 14px/1.6 var(--font-ui); }
th,td,.trading-table th,.trading-table td { padding: 15px 14px; border-color: var(--line); }
th,.trading-table th { font-weight: 600; background: var(--wash); }
caption,.trading-table caption { color: var(--muted); background: transparent; font: 13px/1.6 var(--font-ui); padding: 14px 0; }
.table-scroll,.run-table,.trading-table-wrap { border: 0; border-top: 1px solid var(--ink); max-width: 100%; }
.run-table small,.run-table td p,.trading-table small { font-size: 12px; }
.run-table button { color: var(--action); border-radius: 0; font-size: 13px; }
pre,code { overflow-wrap: anywhere; }
.comparison-json { font: 12px/1.65 ui-monospace,Consolas,monospace; }

/* Interactive graph: keep the existing SVG coordinate/zoom/fit contract. */
#graph.relationship-map { background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }
.rm-heading h2 { font: 600 29px/1.15 var(--font-display); }
.rm-heading,.rm-toolbar { padding-left: 24px; padding-right: 24px; }
.rm-instructions,.rm-overview { font-size: 13px; }
.rm-live { color: var(--good); border: 0; border-bottom: 2px solid var(--good); border-radius: 0; background: transparent; font-size: 11px; letter-spacing: 0; }
.relationship-map button { font-family: var(--font-ui); font-size: 13px; border-radius: 0; min-height: 42px; border-color: var(--control-line); background: var(--paper); }
.rm-search-wrap label { font-size: 13px; }
.rm-search-wrap input { border: 1px solid var(--control-line); border-radius: 0; font: 14px/1.5 var(--font-ui); padding: 11px 13px; }
.rm-search-results:not(:empty) { border: 1px solid var(--ink); border-radius: 0; box-shadow: none; }
.rm-search-results small { font-size: 12px; }
.rm-controls output { font-size: 12px; }
.rm-controls button[data-rm="in"],.rm-controls button[data-rm="out"] { width: 42px; }
.rm-legend { background: var(--wash); font-size: 12px; gap: 10px 18px; }
.rm-dot.person { background: var(--action); }
.rm-dot.organization { background: var(--ink); }
.rm-dot.trust { background: var(--good); }
.rm-line.role { border-color: #77736b; }
.rm-canvas-wrap { background: var(--paper); background-image: none; }
.rm-count { background: var(--paper); color: var(--muted); font-size: 12px; }
.rm-node circle { fill: var(--paper); stroke: var(--ink); }
.rm-node.person circle { fill: #f2e5df; stroke: var(--action); }
.rm-node.trust circle { fill: #e9eee6; stroke: var(--good); }
.rm-node .rm-node-mark,.rm-node .rm-node-label { font-family: var(--font-ui); fill: var(--ink); }
.rm-node .rm-node-label { stroke: var(--paper); }
.rm-node.selected circle { filter: none; }
.rm-node:focus-visible circle { stroke: var(--action); }
.rm-edge .rm-edge-line { stroke: #8d887e; }
.rm-edge.active .rm-edge-line,.rm-edge:hover .rm-edge-line,.rm-edge:focus-visible .rm-edge-line { stroke: var(--action); }
#rm-arrow path { fill: #77736b; }
.rm-edge.provisional .rm-edge-line { stroke: var(--warm); }
.rm-line.provisional { border-color: var(--warm); }
.rm-source-qualifier { color: var(--warm); }
.rm-inspector { font-size: 14px; background: var(--paper); }
.rm-inspector h3 { font: 600 26px/1.25 var(--font-display); }
.rm-direction button { font-size: 13px; min-height: 0; }
.rm-direction span,.rm-record-meta,.rm-sources small,.rm-record-id,.rm-scope,.rm-accessible { font-size: 12px; }
dialog.rm-fullscreen-shell { inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border: 0; margin: 0; padding: 0; }
.rm-expanded .rm-heading h2 { font-size: 22px; }
.rm-expanded .rm-instructions,.rm-expanded .rm-scope,.rm-expanded .rm-search-wrap label { font-size: 12px; }
.rm-expanded .rm-toolbar { gap: 10px; }
.rm-expanded .rm-controls button { min-height: 40px; }
.rm-expanded .rm-accessible { font-size: 12px; }
.map-panel { border: 0; border-top: 2px solid var(--ink); padding: 26px 0; margin-top: 40px; background: transparent; }
.map-panel h2 { font-size: 30px; }
.map-panel select { border: 1px solid var(--control-line); border-radius: 0; background: var(--paper); font: 14px/1.5 var(--font-ui); padding: 12px; min-height: 46px; }
#map-render { background: var(--wash); border: 1px solid var(--line); padding: 22px; }
#map-render svg text,#map-render .nodeLabel,#map-render .edgeLabel { font-family: var(--font-ui) !important; color: var(--ink) !important; fill: var(--ink) !important; }
#map-render svg .node rect,#map-render svg .node polygon,#map-render svg .node circle { fill: var(--paper) !important; stroke: var(--ink) !important; }
#map-render svg .cluster rect { fill: var(--wash) !important; stroke: var(--line) !important; }
#map-render svg .edgePath path,#map-render svg .flowchart-link { stroke: var(--muted) !important; }
#map-render svg .edgeLabel rect,#map-render svg .labelBkg { fill: var(--paper) !important; }
.map-source { font: 13px/1.7 var(--font-ui); margin: 10px 0; }

/* Knowledge, public trades and retained aircraft: the same utility system. */
.fabric-grid { gap: 40px; grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); }
.fabric-grid > section { border-top: 2px solid var(--ink); padding-top: 20px; }
.fabric-hit { border: 0; border-bottom: 1px solid var(--line); padding: 18px 12px; margin: 0; font-size: 14px; }
.fabric-hit:hover,.fabric-hit:focus { border-color: var(--line); background: var(--wash); }
.fabric-hit small { color: var(--muted); font-size: 12px; }
.fabric-hit:focus-visible { outline-color: var(--action); }
.fabric-field { font-size: 14px; }
.fabric-edge { border-left: 2px solid var(--action); padding: 14px 18px; font-size: 14px; }
#fabric-detail svg { background: var(--wash); }
#fabric-detail svg text { fill: var(--ink); font-family: var(--font-ui); }
#fabric-detail svg rect { fill: var(--paper); stroke: var(--line); }
#fabric-detail pre { font-size: 12px; }
.trading-page { max-width: none; }
.trading-scope { border: 0; border-left: 2px solid var(--warm); background: transparent; padding: 10px 0 10px 22px; }
.trading-scope h2 { font-size: 25px; }
.trading-scope p { font-size: 15px; }
.trading-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.trading-filters label { font-size: 13px; }
.trading-coverage-grid { gap: 0 30px; }
.trading-coverage-grid section { border: 0; border-top: 1px solid var(--line); padding: 24px 0; }
.trading-coverage-grid h3 { font-size: 25px; }
.trading-coverage-grid p { font-size: 14px; }
.trading-verification { font-size: 13px; }
.trading-pager,.trading-downloads,.trading-actions { font-size: 14px; }
#trading-record { width: min(900px,calc(100vw - 36px)); max-height: calc(100dvh - 40px); padding: 30px; }
.aircraft-summary,.aircraft-public-events { background: transparent; border-left: 2px solid var(--action); padding: 10px 0 10px 22px; }
.aircraft-patterns,.aircraft-underlying,.aircraft-candidate,.aircraft-public-review .aircraft-case { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 22px 0; }
.aircraft-patterns button,.aircraft-selection button,.aircraft-candidate button,.aircraft-case button { border-radius: 0; font-size: 13px; background: transparent; border-color: var(--control-line); }
.aircraft-route,.aircraft-attribution,.aircraft-public-source,.aircraft-pattern-count,.aircraft-verdict,.aircraft-event-time { font-size: 13px; }
.aircraft-interval { background: var(--wash); font-size: 14px; }
.aircraft-chart { background: var(--wash); }
.aircraft-chart svg { font-family: var(--font-ui); }
.aircraft-chart svg text { fill: var(--ink); }
.aircraft-verdict { border-radius: 0; background: transparent; }
.aircraft-verdict-unresolved { color: var(--action); }
.aircraft-verdict-meaningful { color: var(--good); }
.aircraft-verdict-weakened { color: var(--warm); }
.aircraft-underlying > .page { width: 100%; }

/* The retained review/reference page uses its own semantic masthead classes. */
.masthead-inner { width: 100%; padding: 0; }
.feature-header { background: transparent; border-bottom: 1px solid var(--line); padding: 44px 0 28px; }
.feature-header h1 { font-family: var(--font-display); }
.review-note { border-left-color: var(--action); background: var(--wash); color: var(--ink); }
footer { width: min(var(--page-width),calc(100% - 80px)); margin: 20px auto 0; padding: 28px 0 40px; border-top: 4px double var(--ink); color: var(--muted); font: 12px/1.7 var(--font-ui); }
footer span:first-child { font: 600 20px/1.3 var(--font-display); color: var(--ink); }

/* Responsive composition; retain controls rather than replacing them with hidden content. */
@media (max-width: 1050px) {
  .article-layout,.reference-layout { grid-template-columns: 170px minmax(0,1fr); gap: 32px; }
  .network-control-rail { gap: 0; }
  .network-rail-node { min-height: 72px; padding: 14px 10px; }
  .network-rail-edge { font-size: 13px; }
  .newsroom-document { padding: 20px; }
  .rm-expanded .rm-instructions { font-size: 12px; }
}
@media (max-width: 800px) {
  body > header,.masthead,body > nav,.reference-nav,.page,.hero,.summary-hero,.network-hero,.newsroom-front,.network-overview,.family-summary,.article-layout,.reference-page,footer { width: calc(100% - 36px); }
  body > header,.masthead { padding: 23px 0 19px; align-items: center; gap: 12px; }
  .wordmark { font-size: 27px; gap: 10px; }
  .mark { padding-right: 10px; }
  .edition { display: none; }
  #menu { display: block; }
  #private-navigation:not(.open) { display: none; }
  #private-navigation.open { display: flex; align-items: stretch; padding: 18px 0; gap: 12px; }
  #private-navigation .research-tools-links { position: static; min-width: 0; }
  body > nav:not(#private-navigation),body > .reference-nav { display: flex; flex-wrap: wrap; flex-direction: row; white-space: normal; overflow: visible; gap: 8px 18px; }
  nav a,nav summary { font-size: 13px; }
  .hero,.summary-hero,.network-hero { padding-top: 36px; }
  .hero h1,.summary-hero h1,.network-hero h1,.newsroom-lead h1 { font-size: clamp(38px,7vw,58px); line-height: 1.04; margin-bottom: 22px; }
  .hero .dek,.summary-hero .dek,.newsroom-deck { font-size: 20px; line-height: 1.55; }
  .newsroom-front .hero { width: 100%; }
  .newsroom-document-strip,.newsroom-trail { grid-template-columns: 1fr; }
  .newsroom-document,.newsroom-document:first-child { border: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .newsroom-document:last-child { border-bottom: 0; }
  .network-overview,.family-summary { padding: 24px 0; margin-top: 26px; }
  .network-overview > h2,.family-summary h2 { font-size: 29px; }
  .network-branches { grid-template-columns: 1fr; }
  .network-branch,.network-branch + .network-branch { border: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .network-branch:first-child { border-top: 0; padding-top: 6px; }
  .family-summary-heading { display: block; }
  .family-person-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family-person { padding-right: 18px; }
  .article-layout,.reference-layout { display: block; }
  .article-sidebar,.reference-contents { position: static; display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 30px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .article-sidebar strong,.reference-contents h2 { width: 100%; margin: 0 0 8px; }
  .article-sidebar a,.reference-contents a { margin: 0; padding: 6px 0; }
  .prose,.reference-prose,.article-body { max-width: 100%; font-size: 20px; line-height: 1.65; }
  .prose h2,.reference-prose h2 { font-size: 30px; }
  .page { padding-top: 32px; }
  .directory,.fabric-grid,.two-columns,.source-grid,.edge-list,#edges { grid-template-columns: minmax(0,1fr); }
  .directory,.fabric-grid { gap: 30px; }
  .detail { position: static; max-height: none; }
  .entity-list { max-height: 380px; }
  .source p { font-size: 15px; }
  .stats,.trading-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat,.trading-metrics div { padding: 18px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(even),.trading-metrics div:nth-child(even) { border-right: 0; }
  .rm-heading h2 { font-size: 25px; }
  .rm-heading,.rm-instructions,.rm-toolbar,.rm-legend,.rm-scope,.rm-accessible { padding-left: 16px; padding-right: 16px; }
  .rm-expanded .rm-heading h2 { font-size: 20px; }
  .rm-expanded .rm-instructions,.rm-expanded .rm-scope,.rm-expanded .rm-search-wrap label { font-size: 12px; }
  .rm-expanded .rm-controls { gap: 6px; }
  .rm-expanded .rm-controls button { padding: 7px 9px; }
  .trading-coverage-grid { grid-template-columns: 1fr; }
  .trading-filters label,.trading-filters label:first-child { min-width: 0; width: 100%; }
  dialog,#trading-record { width: calc(100vw - 24px); padding: 22px; max-height: calc(100dvh - 24px); }
  dialog h2 { font-size: 29px; }
  .relationship-qualifiers dl,#trading-detail dl { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .relationship-qualifiers dd,#trading-detail dd { margin-bottom: 12px; }
  footer { display: flex; flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 22px; gap: 8px; }
  .mark { padding-right: 8px; }
  .hero h1,.summary-hero h1,.network-hero h1,.newsroom-lead h1 { font-size: 39px; letter-spacing: -.025em; }
  .hero .dek,.summary-hero .dek,.newsroom-deck { font-size: 19px; }
  .summary-actions { gap: 10px; align-items: stretch; }
  .summary-actions .button { width: 100%; text-align: left; }
  .family-person-grid { grid-template-columns: 1fr; }
  .family-person { padding: 18px 0; }
  .network-commercial-pair { font-size: 15px; }
  .network-rail-node { font-size: 13px; }
  .network-rail-node small { font-size: 12px; }
  .network-control-rail > li { gap: 10px; grid-template-columns: minmax(0,1fr) minmax(100px,.7fr); }
  .network-control-rail > li:last-child { grid-template-columns: minmax(0,1fr); }
  .toolbar .filter-control,.toolbar .filter-control:first-child { min-width: 0; width: 100%; }
  .metric-grid { gap: 10px; }
  .rm-controls button { min-height: 44px; }
  .rm-expanded .rm-controls button { min-height: 40px; }
  .rm-inspector { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: 0s !important; transition-duration: 0s !important; } }
@media print {
  body { background: white; color: black; }
  body > header,.hero,.page,.article-layout,.reference-page,footer { width: 100%; }
  nav,#menu,.article-sidebar,.reference-contents,.summary-actions,.toolbar,.record-actions { display: none !important; }
  .article-layout,.reference-layout { display: block; }
  .prose,.reference-prose { max-width: none; font-size: 11pt; line-height: 1.6; }
  .prose a,.reference-prose a { color: black; text-decoration: underline; }
  dialog { position: static; width: 100%; max-height: none; }
}

/* Figma contract: wide editorial opening with an independent document rail. */
.editorial-front { width: min(var(--page-width),calc(100% - 80px)); margin: 0 auto; padding-top: 54px; }
.editorial-opening { display: grid; grid-template-columns: minmax(0,850px) minmax(230px,280px); justify-content: space-between; align-items: start; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.editorial-lede { min-width: 0; }
.editorial-lede.hero,.editorial-lede.summary-hero { width: 100%; margin: 0; padding: 0; }
.editorial-lede h1 { font: 600 clamp(43px,5.6vw,78px)/1.025 var(--font-display); letter-spacing: -.03em; margin: 12px 0 24px; }
.editorial-lede .dek { color: var(--ink); font: 400 24px/1.5 var(--font-copy); max-width: 780px; }
.editorial-masthead { font-family: var(--font-display); }
.editorial-edition { font: 500 11px/1.6 var(--font-ui); color: var(--muted); }
.evidence-rail { margin-top: 8px; padding: 4px 0 0 24px; border-left: 1px solid var(--line); min-width: 0; }
.evidence-rail h2 { font: 600 26px/1.2 var(--font-display); margin: 0 0 18px; }
.evidence-rail .newsroom-document-strip { display: block; list-style: none; padding: 0; margin: 0; border: 0; }
.evidence-rail .newsroom-document { display: block; padding: 18px 0; border: 0; border-top: 1px solid var(--line); }
.evidence-rail .newsroom-document a { font: 600 15px/1.6 var(--font-ui); overflow-wrap: anywhere; }
.evidence-rail .newsroom-document small,.evidence-rail .newsroom-document span { display: block; font: 12px/1.7 var(--font-ui); color: var(--muted); overflow-wrap: anywhere; margin-top: 7px; }
.evidence-rail-counts { border-top: 1px solid var(--ink); margin-top: 20px; padding-top: 16px; font: 13px/1.7 var(--font-ui); }
.evidence-rail-counts strong { color: var(--ink); font-weight: 600; }
.editorial-front > .family-summary,.editorial-front > .network-overview { width: 100%; }
.newsroom-trail { display: block; border: 0; margin: 34px 0 0; }
.newsroom-trail > .network-overview { width: 100%; margin: 0 0 36px; }
.newsroom-trail > h2 { font: 600 36px/1.2 var(--font-display); border-top: 3px solid var(--ink); padding-top: 24px; }

/* Presentation attributes embedded by source modules are recolored without changing geometry or state. */
#fabric-detail svg rect { rx: 0; ry: 0; }
#fabric-detail svg line { stroke: var(--muted); }
.graph svg [stroke="#413bbe"],.aircraft-chart svg [stroke="#413bbe"] { stroke: var(--action); }
.graph svg [fill="#413bbe"],.aircraft-chart svg [fill="#413bbe"] { fill: var(--action); }
.aircraft-chart svg [stroke="#8a3d69"] { stroke: var(--ink); }
.aircraft-chart svg [fill="#8a3d69"] { fill: var(--ink); }
#map-render svg marker path { fill: var(--muted) !important; }
@media (max-width: 1000px) {
  .editorial-opening { grid-template-columns: minmax(0,1fr) 235px; gap: 30px; }
  .editorial-lede h1 { font-size: clamp(42px,6.1vw,66px); }
}
@media (max-width: 800px) {
  .editorial-front { width: calc(100% - 36px); padding-top: 34px; }
  .editorial-opening { display: block; padding-bottom: 24px; }
  .editorial-lede h1 { font-size: 43px; }
  .editorial-lede .dek { font-size: 22px; }
  .evidence-rail { border-left: 0; border-top: 1px solid var(--ink); padding: 22px 0 0; margin-top: 30px; }
  .evidence-rail .newsroom-document-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .evidence-rail .newsroom-document { padding: 14px 0; }
  .evidence-rail-counts { margin-top: 12px; padding-top: 12px; }
  .newsroom-trail > h2 { font-size: 31px; }
}
@media (max-width: 540px) {
  .editorial-lede h1 { font-size: 40px; }
  .evidence-rail .newsroom-document-strip { display: block; }
  .evidence-rail .newsroom-document a { font-size: 14px; }
}
.editorial-front > .article-layout { width: 100%; }
.evidence-rail .newsroom-document-title { color: var(--action); font: 600 15px/1.55 var(--font-ui); margin: 0; }
.evidence-rail .newsroom-document-origin { color: var(--muted); font: 400 12px/1.7 var(--font-ui); margin-top: 6px; }
.newsroom-index-link { font: 600 13px/1.6 var(--font-ui); }
@media print { .editorial-front { width: 100%; } .editorial-opening { display: block; } .evidence-rail { border-left: 0; padding-left: 0; } }

/* Approved Figma masthead: issue strap, full-width newspaper title, ruled navigation. */
:root { --page-width: 1280px; }
.wordmark .mark { display: none; }
body > header.editorial-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 0 20px;
  align-items: center;
  padding: 32px 0 0;
  border-top: 0;
  border-bottom: 1px solid var(--ink);
}
.editorial-header .editorial-edition {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0 0 18px;
  font: 600 12px/1.5 var(--font-ui);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.editorial-header .editorial-edition > span[aria-hidden] { display: none; }
.editorial-header .editorial-edition time { margin-left: auto; padding-left: 24px; white-space: nowrap; }
.editorial-header .editorial-masthead {
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  margin: 0;
  padding: 22px 0 30px;
  border-top: 3px solid var(--ink);
  color: var(--ink);
  font: 700 clamp(44px,7vw,98px)/1 var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -.04em;
  text-align: center;
  text-wrap: balance;
}
.editorial-header #menu { display: none; grid-column: 2; grid-row: 1; justify-self: end; }
.editorial-header + nav { border-top: 0; border-bottom: 0; padding: 24px 0 32px; }
.editorial-front { margin-top: 54px; border-top: 3px solid var(--ink); padding-top: 44px; }
@media (max-width: 800px) {
  body > header.editorial-header { padding-top: 22px; gap: 0 12px; }
  .editorial-header .editorial-edition { grid-column: 1; flex-wrap: wrap; justify-content: flex-start; gap: 3px 14px; padding-bottom: 14px; font-size: 12px; }
  .editorial-header .editorial-edition time { margin-left: 0; padding-left: 0; }
  .editorial-header #menu { display: block; margin-bottom: 14px; align-self: start; }
  .editorial-header .editorial-masthead { font-size: clamp(44px,7vw,64px); padding: 22px 0 26px; letter-spacing: -.035em; }
  .editorial-header + nav.open { padding: 20px 0; border-bottom: 1px solid var(--ink); }
  .editorial-front { margin-top: 28px; padding-top: 28px; }
}
@media (max-width: 540px) {
  .editorial-header .editorial-masthead { font-size: 44px; }
}
@media print {
  body > header.editorial-header { width: 100%; }
  .editorial-header .editorial-masthead { font-size: 44pt; }
  .editorial-front { margin-top: 24px; }
}

/* Final Figma source rail and readable source metadata. */
.evidence-rail > h2 { color: var(--action); font: 600 12px/1.5 var(--font-ui); letter-spacing: .045em; text-transform: uppercase; margin-bottom: 22px; }
.evidence-rail .newsroom-document-title { font: 600 22px/1.3 var(--font-display); color: var(--ink); }
.evidence-rail .newsroom-document-origin { font-size: 14px; }
.evidence-rail-counts,.newsroom-index-link { font-size: 14px; }
.source code,.source small,.source .count,.map-source,.family-panel-sources,.reference-cites,.reference-sources,.reference-sources p,.reading-links,.count,.evidence-btn,.badge,.trading-verification,.trading-table small,.run-table small,.run-table td p,#trading-detail code { font-size: 14px; }
.rm-record-meta,.rm-sources small,.rm-source-qualifier,.rm-direction span,.rm-scope,.rm-accessible { font-size: 14px; }
.rm-expanded .rm-scope,.rm-expanded .rm-accessible { font-size: 13px; }
@media(max-width:540px) { .evidence-rail .newsroom-document-title { font-size: 22px; } }

/* Surgical renderer compatibility: the opening can stand alone without an outer wrapper. */
.editorial-opening { width: min(var(--page-width),calc(100% - 80px)); margin: 54px auto 0; border-top: 3px solid var(--ink); padding-top: 44px; }
.editorial-front > .editorial-opening { width: 100%; margin: 0; border-top: 0; padding-top: 0; }
@media(max-width:800px) {
  .editorial-opening { width: calc(100% - 36px); margin-top: 28px; padding-top: 28px; }
  .editorial-front > .editorial-opening { width: 100%; margin-top: 0; padding-top: 0; }
}
@media print { .editorial-opening { width: 100%; margin-top: 24px; } }

/* The control-chain labels need their own row on narrow screens. */
@media (max-width: 480px) {
  .network-control-rail > li {
    grid-template-columns: minmax(0, 1fr);
  }
  .network-control-rail .network-rail-edge {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    padding: 12px 8px;
    gap: 2px;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .network-control-rail .network-rail-edge > span {
    display: block;
    flex: 0 0 auto;
    width: 1.4em;
    height: 1.4em;
    line-height: 1.4;
    align-self: center;
    transform: rotate(90deg);
  }
}

/* A shorter opening leaves room for the contractual sequence and reporting questions. */
body > header.editorial-header { padding-top: 18px; }
.editorial-header .editorial-edition { min-height: 30px; padding-bottom: 10px; }
.editorial-header .editorial-masthead { padding-top: 14px; padding-bottom: 18px; font-size: clamp(44px,6.4vw,88px); }
.editorial-header + nav { padding-top: 14px; padding-bottom: 18px; }
.editorial-opening { margin-top: 24px; padding-top: 24px; padding-bottom: 24px; }
.editorial-opening .editorial-lede h1 { font-size: clamp(42px,4.8vw,60px); line-height: 1.04; margin: 8px 0 16px; }
.editorial-opening .editorial-lede .dek { font-size: 22px; line-height: 1.45; }
.editorial-opening .summary-actions { margin: 16px 0; }
.editorial-opening .summary-date { margin-bottom: 0; }
@media (max-width: 800px) {
  body > header.editorial-header { padding-top: 12px; }
  .editorial-header .editorial-edition { padding-bottom: 8px; }
  .editorial-header #menu { margin-bottom: 8px; }
  .editorial-header .editorial-masthead { padding-top: 12px; padding-bottom: 16px; font-size: 44px; }
  .editorial-header + nav.open { padding: 12px 0; }
  .editorial-opening { margin-top: 18px; padding-top: 18px; padding-bottom: 20px; }
  .editorial-opening .editorial-lede h1 { font-size: 36px; line-height: 1.05; margin-top: 6px; margin-bottom: 12px; }
  .editorial-opening .editorial-lede .dek { font-size: 21px; line-height: 1.45; }
}

/* Located contractual provision and the two immediate document targets. */
.editorial-opening .editorial-closing-kicker {
  margin: 0 0 12px;
  font: 600 14px/1.45 var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--action);
}
.editorial-opening .editorial-closing-kicker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.editorial-opening .editorial-missing-callout {
  margin: 0 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: 400 14px/1.45 var(--font-ui);
}
.editorial-opening .editorial-missing-callout h2,
.editorial-opening .editorial-missing-callout > strong {
  margin: 0;
  font: 700 14px/1.4 var(--font-ui);
  color: var(--action);
}
.editorial-opening .editorial-missing-callout ul { margin: 8px 0; padding-left: 18px; }
.editorial-opening .editorial-missing-callout li { margin: 3px 0; }
.editorial-opening .editorial-missing-callout a { font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .editorial-opening .editorial-closing-kicker { margin-bottom: 8px; }
  .editorial-opening .editorial-missing-callout { padding: 10px 0; margin-bottom: 12px; }
}
.editorial-opening .editorial-missing-callout .editorial-capacity-line {
  margin: 6px 0;
  font: inherit;
}
@media (max-width: 360px) {
  .editorial-header .editorial-masthead { font-size: 36px; }
}

/* Keep the company profile lead above a compact phone contents control. */
.reference-mobile-contents { display: none; }
@media (max-width: 850px) {
 .reference-layout > .reference-contents { display: none; }
 .reference-mobile-contents { display: block; margin: 0 0 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; font: 600 14px/1.5 var(--font-ui); }
 .reference-mobile-contents summary { cursor: pointer; }
 .reference-mobile-contents nav { display: grid; gap: 10px; padding: 14px 0; }
 .reference-mobile-contents a { font-weight: 400; }
}
