.landscape-report {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  display: grid;
  /* Constrained track: the matchup table's nowrap cells (2,049px min-content)
     must scroll in .matchup-scroll, not inflate every section to match. */
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.landscape-report > *,
.landscape-lens-group,
.landscape-lens-sections,
[data-matchup-root] {
  min-width: 0;
  max-width: 100%;
}

.landscape-report h2,
.landscape-report h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.landscape-hero {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.landscape-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.landscape-title {
  font-size: 24px;
  line-height: 1.16;
}

.landscape-subtitle {
  margin-top: 7px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 13px;
}

.landscape-chemical-report {
  max-width: 1120px;
}

.landscape-chemical-hero {
  gap: 14px;
}

.landscape-chemical-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.landscape-action-status {
  color: var(--muted);
  flex: 1 1 100%;
  font-size: 12px;
  margin: 0;
  min-height: 1.4em;
}

.landscape-action-status[data-state="success"] {
  color: var(--amber-deep);
  font-weight: 700;
}

.landscape-action-status[data-state="error"] {
  color: var(--slate);
  font-weight: 700;
}

.landscape-chemical-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landscape-card-text {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.landscape-chemical-section-source {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.landscape-chemical-trend-table {
  min-width: 620px;
}

.landscape-chemical-trend-cell {
  min-width: 180px;
  width: 52%;
}

.landscape-chemical-trend-track {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
  width: 100%;
}

.landscape-chemical-trend-fill {
  background: var(--amber-deep);
  display: block;
  height: 100%;
  width: var(--bar-width);
}

.landscape-chemical-definition-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.landscape-chemical-definition-list > div {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 12px 16px;
}

.landscape-chemical-definition-list > div:last-child {
  border-right: 0;
}

.landscape-chemical-definition-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landscape-chemical-definition-list dd {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 0;
}

.landscape-chemical-unavailable {
  margin: 0 auto;
  max-width: 760px;
}

.landscape-chemical-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landscape-chemical-actions :focus-visible,
.landscape-chemical-fallback-actions :focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.landscape-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landscape-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--tile-fill);
  color: var(--slate);
  font-family: "Schibsted Grotesk", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.landscape-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.landscape-lens-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--tile-fill);
}

.landscape-lens-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: end;
  gap: 18px;
}

.landscape-lens-group-copy {
  min-width: 0;
}

.landscape-lens-group-copy h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.landscape-lens-group .landscape-lens-note {
  margin-top: 6px;
  max-width: 72ch;
  text-align: left;
}

.landscape-lens-sections {
  display: grid;
  gap: 10px;
}

.landscape-control {
  min-width: min(320px, 100%);
  display: grid;
  gap: 5px;
}

.landscape-select {
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--ink);
  font: inherit;
}

.landscape-lens-note {
  max-width: 48ch;
  color: var(--quiet);
  font-size: 12px;
  text-align: right;
}

.landscape-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landscape-card,
.landscape-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.landscape-card {
  min-width: 0;
  padding: 13px 14px;
}

.landscape-card-value {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.12;
}

.landscape-card-label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.landscape-info {
  position: relative;
  display: inline-flex;
}

.landscape-info-trigger {
  display: inline-grid;
  width: 17px;
  height: 17px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bone);
  color: var(--slate);
  cursor: help;
  font: 700 10px/1 "Schibsted Grotesk", sans-serif;
  text-transform: none;
}

.landscape-info-trigger:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.landscape-info-tooltip {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 50%;
  width: min(260px, calc(100vw - 32px));
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--bone);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translateX(-50%);
  visibility: hidden;
}

.landscape-info:hover .landscape-info-tooltip,
.landscape-info-trigger:focus-visible + .landscape-info-tooltip {
  opacity: 1;
  visibility: visible;
}

.landscape-card:last-child .landscape-info-tooltip {
  right: 0;
  left: auto;
  transform: none;
}

.landscape-section {
  padding: 16px;
}

.landscape-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.landscape-section-head h2 {
  font-size: 17px;
  line-height: 1.25;
}

.landscape-section-title {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.landscape-scope-marker,
.landscape-scope-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bone);
  color: var(--slate);
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.landscape-scope-fallback {
  border-style: dashed;
  color: var(--quiet);
  font-weight: 600;
  text-transform: none;
}

.landscape-section-note {
  color: var(--quiet);
  font-size: 11px;
  text-align: right;
}

.landscape-bars {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.landscape-bar-row {
  min-width: 0;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 2.4fr) 6.75rem;
  align-items: center;
  column-gap: 12px;
}

.landscape-bar-row > .report-metric {
  display: block;
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding-right: 20px;
  justify-self: stretch;
  text-align: right;
  white-space: nowrap;
}

.landscape-bar-row .report-source-trigger-compact {
  position: absolute;
  right: 0;
  width: 18px;
  min-width: 18px;
  margin-left: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.landscape-bar-row .report-source-trigger-compact::after {
  content: "↧";
  color: var(--slate);
  font-size: 10px;
}

.landscape-bar-label,
.landscape-table-label {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.landscape-bar-track {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tile-fill);
}

.landscape-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-width, 0%);
  border-radius: inherit;
  background: var(--navy);
}

.landscape-trend-bad .landscape-bar-fill,
.landscape-trend-bad .landscape-change {
  color: var(--amber-deep);
}

.landscape-trend-bad .landscape-bar-fill {
  background: var(--amber-deep);
}

.landscape-chart-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.landscape-volume-chart {
  position: relative;
}

.landscape-volume-frame {
  display: block;
}

.landscape-volume-svg {
  display: block;
  width: 100%;
  height: auto;
}

.landscape-vol-band {
  fill: var(--amber-soft);
}

.landscape-vol-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.landscape-vol-axis-line {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.landscape-vol-tick {
  fill: var(--quiet);
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 11px;
}

.landscape-vol-area {
  fill: var(--navy);
  opacity: 0.13;
}

.landscape-vol-avg {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
}

.landscape-vol-partial-dot {
  fill: var(--amber-deep);
}

.landscape-vol-hover {
  fill: transparent;
}

.landscape-chart-tip {
  position: absolute;
  z-index: 5;
  max-width: 260px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

.landscape-chart-note {
  margin-top: 8px;
  color: var(--quiet);
  font-size: 11px;
}

.matchup-methodology {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.matchup-methodology > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.matchup-methodology > summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.landscape-partial-badge {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  margin-left: 4px;
  padding: 1px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--amber-deep);
  font-size: 8px;
  line-height: 1;
}

.landscape-movement-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landscape-movement-framing {
  max-width: 78ch;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.landscape-movement-lane {
  min-width: 0;
}

.landscape-movement-lane + .landscape-movement-lane {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.landscape-movement-lane > .report-meta-label {
  margin-bottom: 6px;
}

.landscape-movement-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.landscape-movement-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.landscape-movement-table th,
.landscape-movement-table td {
  padding: 6px 5px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.landscape-movement-table thead th {
  color: var(--quiet);
  font-family: "Schibsted Grotesk", monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landscape-movement-table thead th:not(:first-child),
.landscape-movement-number,
.landscape-movement-change {
  text-align: right;
}

.landscape-movement-table th:first-child,
.landscape-movement-table td:first-child {
  padding-left: 0;
}

.landscape-movement-table th:last-child,
.landscape-movement-table td:last-child {
  padding-right: 0;
}

.landscape-movement-table tbody tr:last-child > * {
  border-bottom: 0;
}

.landscape-movement-table tr > :first-child {
  width: 36%;
}

.landscape-movement-table tr > :nth-child(2),
.landscape-movement-table tr > :nth-child(3) {
  width: 16%;
}

.landscape-movement-table tr > :last-child {
  width: 32%;
}

.landscape-movement-name {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.landscape-movement-number {
  white-space: nowrap;
}

.landscape-movement-change {
  white-space: nowrap;
}

.landscape-movement-change-label {
  display: block;
  font-weight: 700;
}

.landscape-movement-signal {
  position: relative;
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tile-fill);
}

.landscape-movement-zero,
.landscape-movement-fill {
  position: absolute;
  top: 0;
  bottom: 0;
}

.landscape-movement-zero {
  z-index: 1;
  left: 50%;
  width: 1px;
  background: var(--line-strong);
}

.landscape-movement-fill {
  width: min(var(--movement-width, 0%), 50%);
  background: currentColor;
}

.landscape-movement-change.is-positive {
  color: var(--amber-deep);
}

.landscape-movement-change.is-positive .landscape-movement-fill {
  left: 50%;
}

.landscape-movement-change.is-negative {
  color: var(--slate);
}

.landscape-movement-change.is-negative .landscape-movement-fill {
  right: 50%;
}

.landscape-movement-change.is-flat {
  color: var(--quiet);
}

.landscape-movement-change.is-flat .landscape-movement-fill {
  left: calc(50% - 1px);
  width: 2px;
}

.landscape-movement-change.is-low-base {
  color: var(--quiet);
}

.landscape-movement-change.is-low-base .landscape-movement-signal {
  border-style: dashed;
}

.landscape-movement-change.is-low-base .landscape-movement-fill {
  display: none;
}

/* The Scroll-Wrap Rule: the table lives in its own overflow-x wrap at every
   width so a wide league table scrolls inside its box instead of inflating the
   page (the standard-density bump would otherwise overflow at ~768px). */
.landscape-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.landscape-table {
  width: 100%;
  border-collapse: collapse;
}

/* Standard density tier (DESIGN.md Data Tables): 13px cell type / 10px 8px
   padding, matching .benchmark-table and .profile-table. The old 8px 0
   (zero-horizontal) padding let columns touch. */
.landscape-table th,
.landscape-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.landscape-table th {
  color: var(--slate);
  font-family: "Schibsted Grotesk", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Landscape CSS loads after the common table rules, so repeat the numeric
   alignment hook here to keep every comparable value and heading on one edge. */
.landscape-table th.is-num,
.landscape-table td.is-num {
  text-align: right;
  white-space: nowrap;
}

.landscape-table td.is-num .report-metric {
  display: inline-flex;
  width: 100%;
  justify-content: flex-end;
}

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

.landscape-section-caveat {
  margin-bottom: 10px;
}

.landscape-tag {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: "Schibsted Grotesk", monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.landscape-tag-new {
  color: var(--slate);
  background: var(--navy-soft);
}

.landscape-tag-quiet {
  color: var(--quiet);
  background: var(--tile-fill);
}

.landscape-flag {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--amber-deep);
  font-family: "Schibsted Grotesk", monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.landscape-affiliates {
  cursor: help;
  border-bottom: 1px dotted var(--line-strong);
}

.landscape-trend {
  white-space: nowrap;
  font-size: 12px;
}

/* Per-row caveat markers stay in the DOM as the metric's audit binding. The
   customer explanation is available from the compact section help control. */
.landscape-firms-table .report-metric > .report-caveat {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.landscape-firms-table .report-metric {
  position: relative;
}

.landscape-empty {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tile-fill);
}

.landscape-empty p {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .landscape-hero-head,
  .landscape-controls,
  .landscape-lens-group-head {
    align-items: stretch;
    flex-direction: column;
  }

  .landscape-lens-group-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .landscape-lens-note,
  .landscape-section-note {
    text-align: left;
  }

  .landscape-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landscape-card:nth-child(even) .landscape-info-tooltip {
    right: 0;
    left: auto;
    transform: none;
  }

  .landscape-movement-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landscape-movement-lane + .landscape-movement-lane {
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .landscape-lens-group {
    padding: 12px;
  }

  .landscape-grid {
    grid-template-columns: 1fr;
  }

  .landscape-card:nth-child(even) .landscape-info-tooltip,
  .landscape-card:last-child .landscape-info-tooltip {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .landscape-info-tooltip {
    width: min(168px, calc(100vw - 48px));
  }

  .landscape-section {
    padding: 14px;
  }

  .landscape-bars {
    gap: 10px;
  }

  .landscape-bar-row {
    grid-template-columns: minmax(0, 1fr) 6.75rem;
    column-gap: 10px;
    row-gap: 5px;
  }

  .landscape-bar-row > .landscape-bar-label {
    grid-column: 1;
    grid-row: 1;
  }

  .landscape-bar-row > .report-metric {
    grid-column: 2;
    grid-row: 1;
  }

  .landscape-bar-row > .landscape-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .landscape-movement-table {
    min-width: 32rem;
  }

  .landscape-select,
  .landscape-comp-legend-item,
  .matchup-preset,
  .landscape-report .report-source-close {
    min-height: 44px;
  }

  .landscape-report .report-source-trigger,
  .landscape-report .report-source-trigger-compact {
    min-width: 24px;
    min-height: 24px;
    justify-content: center;
  }

  .landscape-report .report-source-trigger-compact {
    margin: 2px 4px;
  }

  .landscape-report .report-export-integrity {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* --- Wave H3: stacked composition charts --- */

.landscape-comp-chart {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.landscape-comp-chart:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.landscape-comp-chart-body {
  position: relative;
}

.landscape-comp-frame {
  display: block;
}

.landscape-comp-svg {
  display: block;
  height: auto;
  width: 100%;
}

.landscape-comp-slice {
  cursor: pointer;
  fill-opacity: 0.85;
  stroke: var(--paper);
  stroke-width: 0.3;
  transition: fill-opacity 120ms ease;
}

.landscape-comp-slice.is-focus {
  fill-opacity: 0.96;
  stroke: var(--ink);
  stroke-width: 1;
}

.landscape-comp-slice.is-dim {
  fill-opacity: 0.16;
}

.landscape-comp-slice:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.landscape-comp-hover {
  pointer-events: none;
}

.landscape-comp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
}

.landscape-comp-legend-item {
  align-items: baseline;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  gap: 5px;
  padding: 2px 0;
}

.landscape-comp-legend-item.is-on {
  color: var(--amber-deep);
  font-weight: 700;
}

.landscape-comp-legend-item.is-dim {
  color: var(--muted);
}

.landscape-comp-swatch {
  border-radius: 2px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

/* --- Wave H4: defense-firm x plaintiff-firm matchup matrix --- */

.matchup-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.matchup-preset {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bone);
  color: var(--slate);
  font-family: "Schibsted Grotesk", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.matchup-preset.on {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.matchup-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.matchup-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
}

.matchup-table th,
.matchup-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  text-align: center;
  white-space: nowrap;
}

.matchup-corner,
.matchup-row-head,
.matchup-col-head {
  cursor: pointer;
  background: var(--tile-fill);
  color: var(--slate);
  font-family: "Schibsted Grotesk", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: left;
  white-space: normal;
}

.matchup-col-head {
  text-align: center;
  vertical-align: bottom;
}

.matchup-col-name {
  display: inline-block;
  max-width: 108px;
  white-space: normal;
  line-height: 1.2;
}

.matchup-col-total,
.matchup-row-total {
  color: var(--ink);
  font-weight: 700;
}

.matchup-row-total,
.matchup-totals-head {
  text-align: right;
  background: var(--tile-fill);
}

.matchup-row-head.matchup-sorton,
.matchup-col-head.matchup-sorton,
.matchup-totals-head.matchup-sorton {
  color: var(--amber-deep);
}

/* Sortable head labels are real buttons (keyboard-operable sort) inheriting
   the head typography exactly — no visual change at rest. Mirrors
   .report-comp-sort-btn in threat-report.css. */
.matchup-sort-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  cursor: pointer;
}

.matchup-sort-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Quiet-Affordance Rule for sort arrows (Carbon rule): rest-hidden on
   unsorted heads via opacity (the element stays in layout — no shift on
   reveal); hover/:focus-within reveal; the active head (.matchup-sorton)
   keeps its direction arrow exactly as before. */
.matchup-sort-arrow {
  opacity: 0;
}

.matchup-row-head:hover .matchup-sort-arrow,
.matchup-col-head:hover .matchup-sort-arrow,
.matchup-totals-head:hover .matchup-sort-arrow,
.matchup-row-head:focus-within .matchup-sort-arrow,
.matchup-col-head:focus-within .matchup-sort-arrow,
.matchup-totals-head:focus-within .matchup-sort-arrow,
.matchup-sorton .matchup-sort-arrow {
  opacity: 1;
}

/* Sticky header row + sticky first column inside .matchup-scroll. The heads
   already carry an opaque --tile-fill band, so cells scroll under them
   cleanly. The first column (sticky-left) is the biggest usability win on a
   ~2,000px-wide matrix; it engages with the horizontal scroll the wrap already
   has. Stacking: corner (5) over header row (4) over first column (3) over the
   data cells. The rightmost totals column is a body th too, so the sticky-left
   rule is scoped to tbody to leave the thead totals head out of it. */
.matchup-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
}

.matchup-table tbody th.matchup-row-head {
  position: sticky;
  left: 0;
  z-index: 3;
}

.matchup-corner {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 5;
}

.matchup-cell {
  position: relative;
  color: var(--ink);
}

.matchup-cell-low-support {
  color: var(--muted);
  font-family: "Schibsted Grotesk", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.matchup-cell-suppressed {
  border: 1px dashed var(--line-strong);
}

.matchup-table .report-source-trigger-compact {
  position: absolute;
  right: 2px;
  bottom: 1px;
  min-height: 0;
  padding: 0 3px;
  font-size: 8px;
}

@media (max-width: 620px) {
  .matchup-sort-btn {
    min-width: 24px;
    min-height: 24px;
    justify-content: center;
  }

  .matchup-preset {
    min-height: 44px;
  }

  .matchup-table .report-source-trigger-compact {
    min-width: 24px;
    min-height: 24px;
    margin: 2px;
    padding: 2px 4px;
  }

  .landscape-chemical-summary-grid,
  .landscape-chemical-definition-list {
    grid-template-columns: 1fr;
  }

  .landscape-chemical-definition-list > div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .landscape-chemical-definition-list > div:last-child {
    border-bottom: 0;
  }

  .landscape-chemical-actions .report-button,
  .landscape-chemical-fallback-actions .report-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }
}

@media (min-width: 621px) and (max-width: 860px) {
  .landscape-chemical-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .beta-product-topbar,
  .landscape-chemical-actions,
  .beta-intent-modal {
    display: none !important;
  }

  .landscape-chemical-report,
  .landscape-chemical-report .landscape-section,
  .landscape-chemical-report .landscape-hero {
    border-color: var(--line-strong);
    break-inside: avoid;
    max-width: none;
  }

  .landscape-chemical-report [data-source-drawer-panel] {
    display: block !important;
  }
}
