/* Market Saturation Test: only what shell.css lacks. Palette, faces and the 16px gutter come from the shell.
   Look: "A1, paper and blobs" (BUILD-NOTES.md, "A1 restyle 2026-12-03"). */

/* Form: a group of fields with its shared help line underneath. */
.mrc-group { margin-top: 24px; }
.form-section__title + .mrc-group { margin-top: 0; }
.mrc-group > .field-help { margin-top: 8px; }
.more-detail .mrc-group:first-of-type { margin-top: 20px; }
[data-handoff-note] { margin-top: 8px; background: var(--soft-mint); border-radius: var(--radius-tile); padding: 12px 14px; color: var(--deep-plum); }

/* Verdict: the range note sits a little apart and smaller. */
.mrc-range-note { font-size: 1rem; margin-top: 12px; }

/* The size line: zone strips in brand tints, the visitor's count in Deep Plum. Colour is never the only signal:
   every zone is named (or numbered, when a strip is too narrow for its name) on the chart, in the legend and in the
   data table, and the unsure strips carry a hatch. */
.mrc-zone--room { fill: #F9E2A6; }
.mrc-zone--both { fill: #D3F2FF; }
.mrc-zone--share { fill: var(--soft-mint); }
.mrc-hatch-bg { fill: var(--white); }
.mrc-hatch-line { stroke: var(--lavender-gray); stroke-width: 3; }
.mrc-zone-label { font-size: 14px; font-weight: 500; fill: var(--deep-plum); }
/* Narrow strips: each carries a key number that matches a numbered legend swatch. */
.mrc-zone-key { font-size: 13px; font-weight: 700; fill: var(--deep-plum); }
.mrc-key-leader { stroke: var(--deep-plum); stroke-width: 1; }
.mrc-probe { position: absolute; visibility: hidden; }
.mrc-key { display: none; }
/* Only the zones too narrow for their names are keyed (2026-12-04); the rest keep names and plain swatches. */
.mrc-swatch--keyed .mrc-key { display: inline; }
.mrc-swatch--keyed {
  width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none;
  font-size: 0.75rem; font-weight: 700; line-height: 1; color: var(--deep-plum);
}
.mrc-bound { stroke: var(--deep-plum); stroke-width: 1.5; stroke-dasharray: 4 3; }
.mrc-bound-label { font-size: 13px; font-weight: 700; fill: var(--deep-plum); font-variant-numeric: tabular-nums; }
.mrc-axis { stroke: var(--deep-plum); stroke-width: 1.5; }
.mrc-tick { stroke: var(--deep-plum); stroke-width: 1; }
.mrc-count { fill: none; stroke: var(--deep-plum); stroke-width: 3; stroke-linejoin: round; }
.mrc-count-mark { fill: var(--deep-plum); }
.mrc-count-guide { stroke: var(--deep-plum); stroke-width: 2; }
.mrc-count-label { font-size: 13px; font-weight: 700; fill: var(--deep-plum); }
.mrc-swatch--room { background: #F9E2A6; }
.mrc-swatch--both { background: #D3F2FF; }
.mrc-swatch--share { background: var(--soft-mint); }
.mrc-swatch--unsure { background: repeating-linear-gradient(45deg, var(--lavender-gray) 0 2px, var(--white) 2px 5px); box-shadow: inset 0 0 0 1px var(--lavender-gray); }
.mrc-swatch--count { background: var(--deep-plum); height: 4px; border-radius: 2px; }
/* The tinted swatches need an edge to read on the white card. */
.mrc-swatch--room, .mrc-swatch--both, .mrc-swatch--share { box-shadow: inset 0 0 0 1px rgba(56, 49, 74, 0.25); }

/* Case tiles: one figure per line. */
.mrc-case__lines { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.mrc-case__lines li + li { margin-top: 0; }
.mrc-case .tile__title { font-size: 1.125rem; }

/* Waterfalls: two stack with room between them. */
.mrc-wf + .mrc-wf { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(188, 182, 206, 0.6); }

/* Year tables: two stack, the note sits under them. */
.mrc-table th[scope="row"] { min-width: 4rem; }
.table-scroll + .table-scroll { margin-top: 24px; }
.table-scroll:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
.mrc-note { margin-top: 14px; max-width: 48rem; }

/* What to do next. */
.mrc-next-intro, .mrc-next-outro { max-width: 48rem; margin: 0; }
.mrc-next .handoff:not(:empty) { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(188, 182, 206, 0.6); flex-direction: column; align-items: flex-start; gap: 6px; }
.mrc-handoff-note { margin: 0; max-width: 48rem; }

/* Small phones: the year tables fit 430 and 390 with no sideways scroll. */
@media screen and (max-width: 480px) {
  .mrc-table { font-size: 0.8125rem; }
  .mrc-table th[scope="row"] { min-width: 0; }
  .mrc-table thead th, .mrc-table thead th.num { white-space: normal; font-size: 0.75rem; }
  .mrc-table td, .mrc-table th { padding-left: 4px; padding-right: 4px; }
  .mrc-table th:first-child, .mrc-table td:first-child { padding-left: 0; }
  .mrc-table th:last-child, .mrc-table td:last-child { padding-right: 0; }
  .mrc-wf + .mrc-wf { margin-top: 24px; padding-top: 20px; }
}

@media print {
  [data-handoff-note] { display: none; }
  .mrc-range-note { font-size: 8.5pt; margin-top: 4pt; }
  .mrc-next .card-head { margin-bottom: 4pt; }
  .mrc-next-intro { margin: 0 0 4pt; max-width: none; }
  .mrc-next-outro { margin: 4pt 0 0; max-width: none; }
  /* One sheet for the worked example: the steps sit three across, and the size line's table stays on screen
     readers only (every zone and boundary is already named on the printed chart and its legend). */
  .mrc-next .next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6pt; }
  .mrc-next .next-steps > p { grid-column: 1 / -1; }
  .mrc-next .next-steps > * + * { margin-top: 0; }
  .mrc-next .next-step { padding: 6pt 8pt; }
  .mrc-next .next-step h4 { font-size: 9.5pt; margin-bottom: 1pt; }
  .mrc-next .next-step p { font-size: 8pt; line-height: 1.3; }
  .mrc-sizes .chart-table { display: none !important; }
  .mrc-case__lines { gap: 0; font-size: 8pt; line-height: 1.3; }
  .mrc-case .tile__title { font-size: 9.5pt; margin-bottom: 2pt; }
  .mrc-case__lines { margin-top: 0; }
  .mrc-cases { gap: 6pt; }
  .mrc-next-intro { margin-bottom: 3pt; }
  .print-sub { margin-bottom: 6pt; }
  .print-footer { margin-top: 4pt !important; }
  .results-body > * + * { margin-top: 7pt; }
  .card + .card { margin-top: 7pt; }
  .results-body .card { padding: 8pt 12pt; }
  .results-body .card-head { margin-bottom: 4pt; }
  .verdict__headline { font-size: 13pt; }
  .mrc-next .next-step p { line-height: 1.25; }
  .verdict__sub { font-size: 8.5pt; line-height: 1.35; margin-top: 3pt; }
  .verdict__headline { margin-bottom: 2pt; }
  .mrc-sizes .chart-svg { max-height: 140pt; }
}
