:root {
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --ink: #15191f;
  --ink-soft: #2c323b;
  --navy: #0b2d52;
  --navy-deep: #061a2f;
  --muted: #5d636b;
  --line: #d7d1c4;
  --line-soft: #e8e3d8;
  --signal: #b3121f;
  --signal-soft: #f7e3e3;
  --ok: #1f6b3a;
  --ok-soft: #e1f0e5;
  --warn: #8a5a00;
  --warn-soft: #fbf0d6;
  --highlight: rgb(255 196 0 / 0.42);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 42rem;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
/* Tailwind's reset takes the underline off every link; a link in running text needs it back. */
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--signal); }
/* The same reset strips list markers; a list in running text needs them back. Lists laid out as
   registers or menus set list-style: none on their own class. */
ul, ol { padding-left: 1.4em; }
ul { list-style: disc; }
ol { list-style: decimal; }
img { max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: 0.9em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: 0.7rem 1rem; background: var(--ink); color: white; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Public chrome ---------- */

.content-shell, .site-header, .site-footer { width: min(1180px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.site-chrome { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0 0.8rem; }
.masthead { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; background: var(--signal); color: white;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1;
}
.brand-name { display: grid; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.05; }
.brand-name span { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.support-cta {
  padding: 0.55rem 0.85rem; border: 1px solid var(--ink); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.support-cta:hover { background: var(--ink); color: white; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; padding: 0.55rem 0 0.75rem; font-size: 0.92rem; font-weight: 600; }
.primary-nav a { text-decoration: none; }

.footer-shell { margin-top: 5rem; background: var(--navy-deep); color: #e6e9ee; }
.site-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer .brand-name span { color: #aeb6c2; }
.footer-purpose { max-width: 30rem; color: #c9d0da; }
.footer-links { display: grid; align-content: start; gap: 0.4rem; font-size: 0.92rem; }
.footer-links strong { margin-bottom: 0.3rem; color: white; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.75rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: white; }
.footer-legal { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid #253547; color: #aeb6c2; font-size: 0.82rem; }
.consent-link { padding: 0; border: 0; background: none; text-align: left; text-decoration: underline; text-underline-offset: 0.18em; }

.consent-banner {
  position: sticky; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
  padding: 1rem var(--gutter); background: var(--ink); color: white; font-size: 0.92rem;
}
.consent-banner p { max-width: 52rem; margin: 0; }
.consent-actions { display: flex; gap: 0.6rem; }
.consent-actions button { min-width: 7.5rem; padding: 0.6rem 1rem; border: 1px solid white; background: transparent; color: white; font-weight: 700; }
.consent-actions button:hover { background: white; color: var(--ink); }

/* ---------- Shared typography ---------- */

.eyebrow { margin: 0 0 0.5rem; color: var(--signal); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.eyebrow a { text-decoration: none; }
.page-intro { max-width: 50rem; padding: 3rem 0 1.5rem; }
.page-intro h1, .methodology-header h1, .document-header h1, .article-header h1 {
  margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08;
}
.page-intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-intro-copy { color: var(--ink-soft); font-size: 1.1rem; }
.empty-note { padding: 2rem 0; color: var(--muted); }
.section-block { padding-top: 2.5rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; border-top: 3px solid var(--ink); padding-top: 0.6rem; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 1.5rem; }
.section-heading a { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.prose { max-width: var(--measure); font-size: 1.04rem; }
.prose h2 { margin-top: 2.4rem; font-family: var(--serif); font-size: 1.55rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.1rem; }
.prose dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.4rem 1.2rem; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
.prose-table { overflow-x: auto; margin: 1.5rem 0; }
.prose-table table, .record-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.prose-table th, .prose-table td, .record-table th, .record-table td { padding: 0.7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose-table thead th, .record-table thead th { border-bottom: 2px solid var(--ink); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.record-note { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.85rem; }
.status-pill { display: inline-block; padding: 0.15rem 0.5rem; border: 1px solid var(--line); background: var(--surface); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.policy-updated { color: var(--muted); font-size: 0.9rem; }
.hash { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: 0.8rem; }
.button-link { display: inline-block; padding: 0.6rem 1rem; background: var(--ink); color: white; font-weight: 700; text-decoration: none; }
.button-link:hover { background: var(--signal); color: white; }

/* ---------- Home and listings ---------- */

.home-statement { max-width: 54rem; padding: 3.5rem 0 2rem; }
.home-statement h1 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.015em; }
.home-statement p:last-child { max-width: 44rem; color: var(--ink-soft); font-size: 1.15rem; }
.home-lead { padding: 1rem 0 0; border-top: 3px solid var(--ink); }
.home-empty { max-width: 44rem; padding: 2rem 0; border-top: 3px solid var(--ink); }
.home-empty h2 { font-family: var(--serif); font-size: 1.6rem; }
.home-registers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2.5rem; padding-top: 3rem; }
.register-list { margin: 0; padding: 0; list-style: none; }
.register-list li { display: grid; gap: 0.15rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.register-list a { font-weight: 700; text-decoration: none; }
.register-list span { color: var(--muted); font-size: 0.88rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 2rem 2.2rem; }
.investigation-card { display: grid; gap: 0.8rem; align-content: start; }
.investigation-card h2, .investigation-card h3 { margin: 0 0 0.45rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.18; }
.investigation-card h2 a, .investigation-card h3 a { text-decoration: none; }
.investigation-card-dek { margin: 0; color: var(--ink-soft); }
.investigation-card-meta { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.85rem; }
.investigation-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line-soft); }
.investigation-card-image img { width: 100%; height: 100%; object-fit: cover; }
.investigation-card.is-lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.investigation-card.is-lead:not(:has(.investigation-card-image)) { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.investigation-card.is-lead h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; }
.investigation-card.is-lead .investigation-card-dek { font-size: 1.15rem; }

.document-list { margin: 0; padding: 0; list-style: none; }
.document-list li { display: grid; gap: 0.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.document-list a { font-family: var(--serif); font-size: 1.2rem; text-decoration: none; }
.document-list span { color: var(--ink-soft); }
.document-list-meta { color: var(--muted) !important; font-size: 0.85rem; }

/* ---------- Investigation ---------- */

.investigation-page { padding-bottom: 2rem; }
.article-header { max-width: 50rem; margin: 0 auto; padding: 3rem 0 1.5rem; }
.article-header h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.article-dek { margin: 1rem 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.4; }
.story-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-top: 1.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.story-meta span:first-child { color: var(--ink); font-weight: 700; }
.article-prose { max-width: var(--measure); margin: 0 auto; font-family: var(--serif); font-size: 1.16rem; line-height: 1.68; }
.article-prose p { margin: 0 0 1.15em; }
.article-prose h2 { margin: 2.2em 0 0.7em; font-size: 1.55rem; line-height: 1.2; }
.article-prose h3 { margin: 1.8em 0 0.6em; font-family: var(--sans); font-size: 1.1rem; }
.article-prose blockquote { margin: 1.6em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--signal); color: var(--ink-soft); font-style: italic; }
.article-prose ul, .article-prose ol { padding-left: 1.3em; }
.article-prose li { margin-bottom: 0.4em; }
.article-prose hr { margin: 2.5em auto; width: 30%; border: 0; border-top: 1px solid var(--line); }
/* Tables: figures by year, contracts, bidders. Sans and tabular figures, so columns of amounts line up;
   wider than the column, a table scrolls inside its frame. */
.table-frame { margin: 1.8em 0; overflow-x: auto; font-family: var(--sans); font-size: 0.88rem; line-height: 1.45; }
.table-frame table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table-frame th { padding: 0.5rem 0.75rem; border-bottom: 2px solid var(--ink); font-weight: 700; text-align: left; vertical-align: bottom; white-space: nowrap; }
.table-frame td { padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-frame tbody tr:nth-child(even) { background: rgb(21 25 31 / 0.025); }
.table-frame .is-right { text-align: right; white-space: nowrap; }
.table-frame .is-center { text-align: center; }
.ai-disclosure { padding: 0.7rem 0.9rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-family: var(--sans); font-size: 0.82rem !important; line-height: 1.45; }
/* A long piece's sections, each a link to its heading. */
.article-contents { margin: 0 0 2.2em; padding: 0.9rem 1.1rem 0.6rem; border-left: 3px solid var(--signal); background: var(--surface); font-family: var(--sans); font-size: 0.92rem; }
.article-contents p { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.article-contents ol { margin: 0; padding-left: 1.3em; }
.article-contents li { margin-bottom: 0.3rem; }
.article-contents a { text-decoration: none; }
.article-contents a:hover { text-decoration: underline; }
.article-prose h2[id], .article-prose h3[id] { scroll-margin-top: 1.5rem; }
.doc-link { text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.doc-link::after { content: "↗"; display: inline-block; margin-left: 0.2em; font-family: var(--sans); font-size: 0.7em; color: var(--signal); }
.article-documents, .article-corrections { margin-top: 3rem; padding-top: 1rem; border-top: 3px solid var(--ink); font-family: var(--sans); font-size: 1rem; }
.article-documents h2, .article-corrections h2 { margin-top: 0; font-family: var(--serif); }
.article-documents ul { padding: 0; list-style: none; }
.article-documents li { display: grid; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.article-documents li a { font-weight: 700; }
.article-documents li span { color: var(--muted); font-size: 0.88rem; }
.correction-note { margin: 1rem 0; padding: 0.8rem 1rem; border-left: 3px solid var(--signal); background: var(--surface); font-family: var(--sans); font-size: 0.95rem; }
.correction-note p { margin: 0.25rem 0; }
.article-footer-note { margin-top: 3rem; color: var(--muted); font-family: var(--sans); font-size: 0.9rem !important; }

/* ---------- Document embeds ---------- */

.doc-embed {
  margin: 2.2em -1rem; padding: 1rem; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--sans); font-size: 0.95rem; line-height: 1.45;
}
.doc-embed.is-unavailable { margin: 1.6em 0; color: var(--muted); }
.doc-embed-head { display: grid; gap: 0.15rem; margin-bottom: 0.8rem; }
.doc-embed-kind { color: var(--signal); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.doc-embed-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.doc-embed-meta { color: var(--muted); font-size: 0.85rem; }
.doc-embed-image { display: block; }
.doc-embed-image img { display: block; margin: 0 auto; max-height: 80vh; border: 1px solid var(--line-soft); }
.doc-quote { margin: 0.9rem 0 0 !important; padding: 0.6rem 0.9rem !important; border-left: 3px solid #e0a800 !important; background: #fffaeb; font-style: normal !important; color: var(--ink) !important; }
.doc-quote p { margin: 0 !important; font-family: var(--serif); font-size: 1.05rem; }
.doc-quote cite { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.8rem; font-style: normal; }
.doc-embed-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.8rem; font-size: 0.88rem; font-weight: 600; }

/* ---------- PDF viewer ---------- */

.pdf-viewer { display: grid; gap: 0.5rem; }
.pdf-viewer-toolbar { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.pdf-viewer-toolbar button { width: 2.1rem; height: 2.1rem; border: 1px solid var(--line); background: white; font-size: 1.2rem; line-height: 1; }
.pdf-viewer-toolbar button:hover:not(:disabled) { border-color: var(--ink); }
.pdf-viewer-toolbar form { display: flex; align-items: center; gap: 0.3rem; }
.pdf-viewer-toolbar input { width: 3.6rem; padding: 0.25rem 0.4rem; border: 1px solid var(--line); text-align: center; }
.pdf-viewer-stage { position: relative; min-height: 12rem; display: grid; justify-items: center; background: #e9e6df; padding: 0.6rem; overflow-x: hidden; }
.pdf-viewer-full .pdf-viewer-stage { min-height: 70vh; }
/* An embed shows the part of the page that matters: at most a screen's height, scrolled to the
   highlighted passage (components/PdfViewer.tsx). */
.pdf-viewer-embed .pdf-viewer-stage { max-height: min(75vh, 860px); overflow-y: auto; align-items: start; }
.pdf-viewer-embed .pdf-viewer-stage:focus-visible { outline-offset: -3px; }
.pdf-page { position: relative; max-width: 100%; background: white; box-shadow: 0 1px 4px rgb(0 0 0 / 0.18); }
.pdf-page canvas { display: block; }
.pdf-viewer-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 0.9rem; }
.pdf-viewer-status.is-error { padding: 1rem; color: var(--signal); text-align: center; }
.pdf-viewer-note { margin: 0; color: var(--muted); font-size: 0.8rem; text-align: center; }

.textLayer {
  position: absolute; inset: 0; overflow: clip; opacity: 1; line-height: 1; text-align: initial;
  -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; z-index: 0;
  --min-font-size: 1;
  --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
  --min-font-size-inv: calc(1 / var(--min-font-size));
}
.textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; user-select: text; }
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) {
  z-index: 1; --font-height: 0; font-size: calc(var(--text-scale-factor) * var(--font-height));
  --scale-x: 1; --rotate: 0deg; transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}
.textLayer .markedContent { display: contents; }
.textLayer span.highlight { margin: -1px; padding: 1px; background-color: var(--highlight); border-radius: 3px; }
.textLayer ::selection { background: rgb(0 90 255 / 0.25); color: transparent; }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; }

/* ---------- Document page ---------- */

.document-header { max-width: 54rem; padding: 2.5rem 0 1.2rem; }
.document-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.document-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.2rem; margin: 1.2rem 0; font-size: 0.95rem; }
.document-facts dt { color: var(--muted); }
.document-facts dd { margin: 0; }
.document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.document-viewer { margin: 1rem 0 2rem; }
.document-image { display: block; margin: 0 auto; max-height: 90vh; border: 1px solid var(--line); }
.document-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem 2rem; padding: 1.5rem 0; border-top: 3px solid var(--ink); }
.document-notes h2 { margin: 0 0 0.4rem; font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase; }
.document-notes p { margin: 0 0 0.4rem; }
.document-text { max-width: var(--measure); padding-top: 2rem; }
.document-text h2 { font-family: var(--serif); }
.document-text-note { color: var(--muted); font-size: 0.88rem; }
.document-text-page { padding: 0.6rem 0 1rem; border-top: 1px solid var(--line); }
.document-text-page h3 { margin: 0.4rem 0; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.document-text-page p { margin: 0 0 0.8rem; white-space: pre-line; font-family: var(--serif); }

/* ---------- Method ---------- */

.methodology-header { max-width: 50rem; padding: 3rem 0 2rem; }
.methodology-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.methodology-dek { color: var(--ink-soft); font-size: 1.15rem; }
.methodology-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; }
.methodology-index { position: sticky; top: 1rem; align-self: start; font-size: 0.9rem; }
.methodology-index p { font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.75rem; }
.methodology-index ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.methodology-index a { display: flex; gap: 0.6rem; text-decoration: none; }
.methodology-index span { color: var(--signal); font-weight: 700; }
.methodology-content { max-width: var(--measure); }
.publication-threshold { padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); }
.publication-threshold h2 { margin: 0 0 0.6rem; font-family: var(--serif); }
.methodology-step { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.methodology-number { margin: 0; color: var(--signal); font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.methodology-step h2 { margin: 0 0 0.6rem; font-family: var(--serif); }
.methodology-corrections { padding: 2rem 0; }
.methodology-corrections h2 { font-family: var(--serif); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.contact-card { padding: 1rem; border: 1px solid var(--line); background: var(--surface); }
.contact-warning { color: var(--warn); font-size: 0.88rem; }

@media print {
  .site-chrome, .footer-shell, .consent-banner, .pdf-viewer-toolbar, .doc-embed-actions, .skip-link, .article-contents { display: none; }
  body { background: white; }
  /* On paper a link is its address: the sources stay checkable. */
  .article-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-family: var(--sans); font-size: 0.75em; color: var(--muted); word-break: break-all; }
  .doc-embed, .table-frame, blockquote { break-inside: avoid; }
  .table-frame { overflow: visible; }
  h2, h3 { break-after: avoid; }
}
[hidden] { display: none !important; }
.doc-embed iframe { display: block; border: 0; width: 100%; height: clamp(385px, 85vh, 720px); background: var(--paper); }
.investigation-search { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.investigation-search input { width: min(100%, 22rem); }
@media (max-width: 650px) {
  .site-footer, .home-registers, .methodology-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .methodology-index { position: static; }
  .masthead-row { flex-wrap: wrap; }
  .brand-name { font-size: 1.18rem; }
}
@media print { .doc-embed iframe, .investigation-search { display: none; } }
