/* The report sheet, hand-written on the brand tokens so the same file can feed WeasyPrint (ADR 0031). */
@import url("tokens.css");

.report {
  color: var(--bt-ink);
}

.report-head {
  position: relative;
  display: grid;
  gap: 0.25rem;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bt-sun-tint);
  padding: 1rem 1.25rem;
}

@media (min-width: 40rem) {
  .report-head {
    padding: 1.25rem 1.75rem;
  }
}

.report-head .tile {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.report-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.report-title {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (min-width: 64rem) {
  .report-title {
    font-size: 30px;
  }
}

.report-meta,
.report-foot .disclaimer,
.disclaimer {
  color: var(--bt-muted);
  font-size: 15px;
}

.report-sub {
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: 19px;
}

.report .notice {
  margin: 1rem 0;
}

/* Each chapter 7 section is a card with its own icon tile. */
.report .doc {
  display: block;
  margin-top: 1.25rem;
  border: 1px solid var(--bt-rule-soft);
  border-radius: 28px;
  background: var(--bt-sheet);
  padding: 1.25rem 1rem;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--bt-navy) 6%, transparent),
    0 10px 24px -18px color-mix(in srgb, var(--bt-navy) 30%, transparent);
  break-inside: auto;
}

@media (min-width: 40rem) {
  .report .doc {
    padding: 2rem 2.25rem;
  }
}

.doc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

/* On a phone «Åpne alle» drops below a long heading instead of squeezing it. */
.doc-head > .doc-label {
  flex: 1 1 12rem;
}

.report .doc-label {
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--bt-ink);
}

.doc-body {
  margin-top: 1.25rem;
}

.doc-body > :first-child {
  margin-top: 0;
}

.stamp {
  display: inline-block;
  border: 1.5px solid var(--bt-risk-critical-ink);
  border-radius: 999px;
  background: var(--bt-sheet);
  padding: 0.15rem 0.7rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bt-risk-critical-ink);
}

.example-note {
  max-width: 62ch;
  font-size: 15px;
  color: var(--bt-muted);
}

.summary {
  font-size: 19px;
  max-width: 65ch;
}

.facts {
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

/* The teaser's facts carry no source line, so two fit side by side on a phone. */
.teaser .facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card > .facts:first-child {
  margin-top: 0;
}

.fact-wide {
  grid-column: 1 / -1;
}

@media (min-width: 40rem) {
  .fact-wide {
    grid-column: auto;
  }
}

.fact {
  position: relative;
  border-radius: 16px;
  background: var(--bt-ground);
  padding: 0.85rem 1rem;
}

/* A Bokmål value in a right to left page reads left to right, but lines up with its label. */
[dir="rtl"] .fact-value[dir="ltr"] {
  text-align: right;
}

/* A word with its explanation behind a small «i» (macros.explained); app.js opens it on a tap. */
.term {
  display: inline-flex;
  align-items: baseline;
}

/* 24px meets the target size; the raise sets the small «i» above the word, like a note mark. */
.term-info {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  color: var(--bt-muted);
  font: 600 9px/1 var(--font-mono);
  cursor: help;
  transform: translateY(-0.7em);
}

.term-info > [aria-hidden] {
  display: inline-grid;
  place-items: center;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.term-info:hover,
.term[data-open] .term-info {
  color: var(--bt-ink);
}

/* Above the whole card, never past a phone's edge. */
.term-tip {
  position: absolute;
  z-index: 5;
  inset-inline-start: 0.75rem;
  inset-inline-end: 0.75rem;
  bottom: calc(100% - 0.4rem);
  border-radius: 12px;
  background: var(--bt-ink);
  color: var(--bt-sheet);
  padding: 0.6rem 0.75rem;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
  visibility: hidden;
}

.term:hover .term-tip,
.term:focus-within .term-tip,
.term[data-open] .term-tip {
  visibility: visible;
}

.term[data-hush] .term-tip {
  visibility: hidden;
}

/* Calmer report text (Håkon, 2026-10-17): labels in the body font and sentence case. */
.fact dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--bt-muted);
}

.fact dd {
  margin: 0.2rem 0 0;
}

/* No tabular figures here: they set the comma in «7 B, 0000» at figure width. */
.fact-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

/* File names are long words; they break anywhere rather than widen a phone page. */
.fact-source,
.source-ref,
.document-file {
  overflow-wrap: anywhere;
}

.fact-source,
.fact-help {
  display: block;
  margin-top: 0.2rem;
  font-size: 14px;
  color: var(--bt-muted);
}

.not-stated {
  color: var(--bt-muted);
}

/* Risk is a word as well as a colour, on fixed tokens a partner accent never reaches (ADR 0008). */
.risk {
  font-weight: 600;
}

/* The -ink tokens: risk-important and ok reach 4.5:1 on white but not on their tints. */
.risk-kritisk .risk,
.risk.risk-kritisk {
  color: var(--bt-risk-critical-ink);
}

.risk-viktig .risk,
.risk.risk-viktig {
  color: var(--bt-risk-important-ink);
}

.risk-observasjon .risk,
.risk.risk-observasjon {
  color: var(--bt-risk-observation);
}

.risk-lav .risk,
.risk.risk-lav {
  color: var(--bt-ok-ink);
}

/* One tinted card per risk level, the count large; a zero stays, muted (invariant 3). */
.ledger {
  margin: 1.25rem 0;
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 40rem) {
  .ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 64rem) {
  .doc .ledger {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ledger-row {
  border-radius: 18px;
}

.ledger-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: baseline;
  column-gap: 0.5rem;
  height: 100%;
  border-radius: inherit;
  padding: 0.9rem 1rem 1rem;
}

/* A level with findings is a link to them. */
.ledger-link {
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ledger-link:hover {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bt-ink) 22%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .ledger-link:hover {
    transform: translateY(-2px);
  }
}

.ledger-kritisk {
  background: var(--bt-risk-critical-tint);
}

.ledger-viktig {
  background: var(--bt-risk-important-tint);
}

.ledger-observasjon {
  background: var(--bt-risk-observation-tint);
}

.ledger-lav {
  background: var(--bt-ok-tint);
}

.count-number {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ledger-kritisk .count-number {
  color: var(--bt-risk-critical-ink);
}

.ledger-viktig .count-number {
  color: var(--bt-risk-important-ink);
}

.ledger-observasjon .count-number {
  color: var(--bt-risk-observation);
}

.ledger-lav .count-number {
  color: var(--bt-ok-ink);
}

.ledger-help {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bt-muted);
}

.ledger-row.ledger-zero {
  background: var(--bt-rule-soft);
}

.ledger-row.ledger-zero .count-number,
.ledger-row.ledger-zero .risk {
  color: var(--bt-muted);
}

/* Chips: a count and a word in one pill; the dot form repeats the word, never replaces it. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--bt-sheet);
  padding: 0 0.4rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
}

.chip-dot {
  padding-inline-start: 0.65rem;
}

.chip-dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
}

.chip-kritisk {
  background: var(--bt-risk-critical-tint);
  color: var(--bt-risk-critical-ink);
}

.chip-viktig {
  background: var(--bt-risk-important-tint);
  color: var(--bt-risk-important-ink);
}

.chip-observasjon {
  background: var(--bt-risk-observation-tint);
  color: var(--bt-risk-observation);
}

.chip-lav {
  background: var(--bt-ok-tint);
  color: var(--bt-ok-ink);
}

.chip.chip-zero {
  background: var(--bt-rule-soft);
  color: var(--bt-muted);
}

/* A finding folds shut; its tinted summary keeps the level, the title and the source in sight (A8). */
.finding {
  margin: 0.75rem 0 0;
  overflow: hidden;
  border: 1px solid var(--bt-rule);
  border-inline-start: 5px solid var(--bt-rule);
  border-radius: 20px;
  background: var(--bt-sheet);
  break-inside: avoid;
}

.doc-body > .finding:first-child,
.facts + .finding,
.tg-scroll + .finding {
  margin-top: 1.25rem;
}

.finding.risk-kritisk {
  border-inline-start-color: var(--bt-risk-critical);
}

.finding.risk-viktig {
  border-inline-start-color: var(--bt-risk-important);
}

.finding.risk-observasjon {
  border-inline-start-color: var(--bt-risk-observation);
}

.finding.risk-lav {
  border-inline-start-color: var(--bt-ok);
}

.finding-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  column-gap: 1rem;
  row-gap: 0.45rem;
  padding: 1rem 1rem 0.95rem;
  list-style: none;
}

.finding-head::-webkit-details-marker {
  display: none;
}

.finding-head::marker {
  content: "";
}

summary.finding-head {
  cursor: pointer;
}

/* A phone puts the chevron beside the level and gives the title the full width. */
.finding-head > * {
  grid-column: 1 / -1;
}

.finding-head > .risk {
  grid-column: 1;
  grid-row: 1;
}

.finding.risk-kritisk .finding-head {
  background: var(--bt-risk-critical-tint);
}

.finding.risk-viktig .finding-head {
  background: var(--bt-risk-important-tint);
}

.finding.risk-observasjon .finding-head {
  background: var(--bt-risk-observation-tint);
}

.finding.risk-lav .finding-head {
  background: var(--bt-ok-tint);
}

.finding-head .risk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: var(--bt-sheet);
  padding: 0.15rem 0.7rem 0.15rem 0.55rem;
  font-size: 14px;
}

.finding-head .risk::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
}

.finding-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.finding-cite {
  font-size: 14px;
  color: var(--bt-muted);
}

.finding-head > .finding-chevron {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--bt-sheet);
  color: var(--bt-ink);
}

.finding-chevron .icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 2;
}

summary.finding-head:hover .finding-chevron {
  background: var(--bt-ink);
  color: var(--bt-sheet);
}

summary.finding-head:hover .finding-title {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.finding[open] .finding-chevron .icon {
  transform: rotate(180deg);
}

/* The ring goes round the whole card, which clips anything drawn outside the summary. */
.finding:has(> summary:focus-visible) {
  outline: 3px solid var(--bt-accent);
  outline-offset: 3px;
}

@supports selector(:has(*)) {
  .finding > summary:focus-visible {
    outline: none;
  }
}

@media (min-width: 40rem) {
  .finding-head {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 1.25rem;
    padding: 1.1rem 1.25rem 1.05rem;
  }

  .finding-head > .finding-cite {
    grid-column: 2;
    grid-row: 1;
    text-align: end;
  }

  .finding-head > .finding-title {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 21px;
  }

  .finding-head > .finding-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .finding {
    interpolate-size: allow-keywords;
  }

  .finding::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.25s ease,
      content-visibility 0.25s ease allow-discrete;
  }

  .finding[open]::details-content {
    block-size: auto;
  }

  .finding-chevron .icon {
    transition: transform 0.2s ease;
  }
}

.finding-main {
  padding: 0.5rem 1rem 1.4rem;
}

@media (min-width: 40rem) {
  .finding-main {
    padding: 0.6rem 1.5rem 1.6rem;
  }
}

/* The landing page's report preview: the same closed cards, smaller. */
.preview-findings .finding {
  margin: 0;
  border-radius: 16px;
}

.preview-findings .finding-head {
  padding: 0.75rem 0.85rem 0.8rem;
  row-gap: 0.35rem;
}

.preview-findings .finding-title {
  font-size: 16px;
  line-height: 1.3;
}

.preview-findings .finding-cite {
  font-size: 12px;
}

.preview-findings .finding-chevron {
  width: 1.85rem;
  height: 1.85rem;
}

/* «Åpne alle» in a section's head; app.js shows it. */
.fold-all {
  margin-inline-start: auto;
  flex: none;
  border: 1px solid var(--bt-rule);
  border-radius: 999px;
  background: var(--bt-sheet);
  padding: 0.35rem 0.9rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--bt-ink);
  cursor: pointer;
}

.fold-all:hover {
  background: var(--bt-sun-tint);
}

.finding-uncertain,
.finding-note {
  margin-top: 0.75rem;
  font-size: 15px;
  color: var(--bt-muted);
}

.finding-uncertain {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* A finding reads as a short text with headings: a shorter line and more air. */
.finding-body dt,
.finding-sub {
  margin-top: 1.35rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--bt-ink);
}

.finding-body dt:first-child {
  margin-top: 0.5rem;
}

.finding-body dd {
  margin: 0.3rem 0 0;
  max-width: 62ch;
  line-height: 1.6;
}

.finding-questions {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.5rem;
}

.finding-questions li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 62ch;
  line-height: 1.5;
}

.finding-questions .icon,
.source-ref .icon,
.finding-uncertain .icon {
  margin-top: 0.15rem;
  width: 1.1em;
  height: 1.1em;
  color: var(--bt-muted);
}

.finding-questions .icon {
  color: var(--bt-accent);
}

.questions {
  margin-top: 0.3rem;
  padding-inline-start: 1.4rem;
  list-style: decimal;
  display: grid;
  gap: 0.5rem;
}

.questions li {
  max-width: 70ch;
  padding-inline-start: 0.25rem;
}

.sources {
  margin-top: 0.4rem;
}

/* The document's words first, then where they stand. */
.source {
  display: flex;
  flex-direction: column;
}

.source + .source {
  margin-top: 0.75rem;
}

.source-ref {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 14px;
  color: var(--bt-muted);
}

.source > .source-ref {
  order: 2;
  margin-top: 0.45rem;
  align-items: center;
  gap: 0.4rem;
}

/* Upright, since no italic face ships; the guillemets mark the document's own words. */
.source-quote {
  margin: 0.45rem 0 0;
  border-inline-start: 3px solid var(--bt-rule);
  padding-block: 0.1rem;
  padding-inline: 1rem 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.55;
  quotes: "\00AB" "\00BB";
}

.source > .source-quote {
  order: 1;
}

.source-quote::before {
  content: open-quote;
}

.source-quote::after {
  content: close-quote;
}

/* TG chips: the grade is the text, the tint only repeats it. */
.tg-chip,
.tg-counts li {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--bt-rule-soft);
  padding: 0.2rem 0.65rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--bt-ink);
}

/* Doubled for the count line, whose items carry no .tg-chip. */
.tg-chip.tg-chip-tg3,
.tg-counts .tg-chip-tg3 {
  background: var(--bt-risk-critical-tint);
  color: var(--bt-risk-critical-ink);
}

.tg-chip.tg-chip-tg2,
.tg-counts .tg-chip-tg2 {
  background: var(--bt-risk-important-tint);
  color: var(--bt-risk-important-ink);
}

.tg-chip.tg-chip-tg1,
.tg-chip.tg-chip-tg0,
.tg-counts .tg-chip-tg1,
.tg-counts .tg-chip-tg0 {
  background: var(--bt-ok-tint);
  color: var(--bt-ok-ink);
}

.tg-chip.tg-chip-tgiu,
.tg-counts .tg-chip-tgiu {
  background: var(--bt-rule-soft);
  color: var(--bt-muted);
}

.tg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tg-counts {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.tg-counts li.tg-count-zero {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--bt-rule);
  font-weight: 400;
  color: var(--bt-muted);
}

/* A wide table scrolls inside its own region, so table semantics survive on a phone. */
.tg-scroll {
  margin: 1.25rem 0 0;
  overflow-x: auto;
  border: 1px solid var(--bt-rule-soft);
  border-radius: 18px;
}

.tg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tg-table caption {
  text-align: start;
  padding: 0.9rem 1rem 0.5rem;
  font-weight: 600;
}

.tg-table th {
  text-align: start;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bt-muted);
  border-bottom: 1px solid var(--bt-rule);
  padding: 0.5rem 1rem;
}

.tg-table td {
  border-bottom: 1px solid var(--bt-rule-soft);
  padding: 0.65rem 1rem;
  vertical-align: middle;
}

.tg-table tr:last-child td {
  border-bottom: 0;
}

/* Long part paths take the slack; a source or link split over two lines reads as two rows. */
.tg-table th:not(:first-child),
.tg-table td:not(:first-child) {
  white-space: nowrap;
}

.documents {
  display: grid;
  gap: 0.75rem;
}

.document {
  border-radius: 16px;
  background: var(--bt-ground);
  padding: 0.85rem 1rem;
}

.document-name {
  font-weight: 600;
}

.document-type,
.document-file,
.document-status,
.document-reason {
  font-size: 14px;
  color: var(--bt-muted);
}

.document-type {
  margin-inline-start: 0.35rem;
  font-weight: 400;
}

.document-not_read .document-status,
.document-not_found .document-status,
.document-form_gated .document-status {
  color: var(--bt-risk-critical-ink);
  font-weight: 600;
}

.not-covered {
  padding-inline-start: 1.25rem;
  list-style: disc;
}

/* The full report: a section menu beside the cards on a wide screen, a row of pills on a phone. */
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 64rem) {
  .report-layout {
    grid-template-columns: 14.5rem minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
}

/* Room for the 6px focus ring, which a scroller clips; the negative margin keeps the pills in place. */
.report-toc {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: -6px -6px 0;
  padding: 6px 6px 0.4rem;
  scroll-padding-inline: 6px;
}

.report-toc a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--bt-rule-soft);
  border-radius: 999px;
  background: var(--bt-sheet);
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--bt-ink);
  text-decoration: none;
}

.report-toc a:hover {
  background: var(--bt-sun-tint);
}

.report-toc .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--bt-muted);
}

.toc-label {
  display: none;
}

@media (min-width: 64rem) {
  .report-toc-wrap {
    position: sticky;
    top: 7rem;
  }

  .toc-label {
    display: block;
    margin-bottom: 0.75rem;
  }

  .report-toc {
    flex-direction: column;
    overflow: visible;
  }

  .report-toc a {
    border-color: transparent;
    background: transparent;
  }
}

/* The section being read, marked by app.js: sun, so the eye finds the place at a glance. */
.report-toc a[aria-current="true"] {
  border-color: var(--bt-sun);
  background: var(--bt-sun);
}

.report-toc a[aria-current="true"] .icon {
  color: var(--bt-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .report-toc a {
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
}

.report-foot {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  justify-items: start;
  border-radius: 28px;
  background: var(--bt-sheet);
  border: 1px solid var(--bt-rule-soft);
  padding: 1.5rem 1.25rem;
}

@media (min-width: 40rem) {
  .report-foot {
    padding: 1.75rem 2.25rem;
  }
}

.flag-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
  max-width: 40rem;
  justify-items: start;
}

.newer {
  margin-top: 1.25rem;
  border-radius: 28px;
  background: var(--bt-accent-tint);
  padding: 1.5rem;
}

.newer .report-sub {
  margin-top: 0;
}

/* The teaser: what we found on the left, the paywall beside it on a wide screen. */
.teaser-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 64rem) {
  .teaser-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 1.75rem;
  }
}

.teaser-main {
  display: grid;
  gap: 1.25rem;
}

.teaser-main .report-sub {
  margin-top: 0;
}

.teaser-main .facts,
.teaser-main .ledger {
  margin-bottom: 0;
}

.summary-start p {
  font-size: 19px;
  max-width: 62ch;
}

.teaser-side {
  display: grid;
  gap: 1rem;
}

@media (min-width: 64rem) {
  .teaser-side {
    position: sticky;
    top: 7rem;
  }
}

.paywall {
  border-radius: 28px;
  background: var(--bt-navy);
  padding: 1.75rem 1.5rem;
  color: var(--bt-sheet);
}

@media (min-width: 40rem) {
  .paywall {
    padding: 2.25rem 2rem;
  }
}

.paywall :focus-visible {
  outline-color: var(--bt-sun);
}

.paywall .report-sub {
  margin-top: 0.9rem;
  font-size: 26px;
  line-height: 1.15;
}

.paywall .ticks {
  margin-top: 1.25rem;
}

.paywall .muted {
  color: var(--bt-navy-muted);
}

.paywall-actions {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
}

.teaser-side .disclaimer {
  padding: 0 0.5rem;
}

/* TODO(BK-39): print polish: page breaks per section, running header, source footnotes. */
@media print {
  body > header,
  body > footer,
  .report-toc-wrap,
  .flag,
  .example-cta,
  .skip-link,
  .fold-all,
  .finding-head > .finding-chevron {
    display: none;
  }

  .sheet,
  .report .doc {
    box-shadow: none;
  }

  /* app.js opens every card before printing; this covers a browser without it. */
  .finding::details-content {
    block-size: auto;
    content-visibility: visible;
    transition: none;
  }
}

/* The title takes the focus when the result replaces the progress; a heading is no control, so no ring. */
#report-body h1[tabindex="-1"]:focus {
  outline: none;
}
