/* Growth Team Coverage Map: what shell.css lacks. Palette, faces and the 16px gutter come from the shell.
   A1 look (2026-12-03): the answer guide and each workstream are Soft Mint tiles inside the white inputs card. */

/* ---------- Form: intro, answer guide, workstream rows ---------- */
.tcm-lead { margin: -12px 0 24px; }
.tcm-intro { max-width: 48rem; margin-bottom: 20px; }

.tcm-guide { background: var(--soft-mint); border-radius: var(--radius-tile); padding: 20px 24px; margin-bottom: 24px; }
.tcm-guide__title { font-weight: 500; margin: 0 0 10px; }
.tcm-guide__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 0; }
.tcm-guide__list dt { font-weight: 500; font-size: 0.9375rem; }
.tcm-guide__list dd { margin: 2px 0 0; font-size: 0.9375rem; color: var(--deep-plum); line-height: 1.45; }

.tcm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tcm-rows > li + li { margin-top: 0; }
.tcm-row { border-radius: var(--radius-tile); padding: 20px 24px 24px; background: var(--soft-mint); }
/* On mint a checked pill keeps a white fill and a 2px Deep Teal edge, so the choice still stands out. */
.tcm-row .choice input:checked + span { background: var(--white); box-shadow: inset 0 0 0 1px var(--deep-teal); }
/* A failed run scrolls the first problem in under the 140px sticky header. */
.tcm-row, .inputs-card .field { scroll-margin-top: 140px; }
/* One message per row when several of its questions are unanswered (team-coverage-map.js tidyErrors). */
.tcm-row-error { margin: -6px 0 16px; }
.tcm-row__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tcm-row__num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--white);
  font-weight: 500; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
}
.tcm-row__name { flex: 1 1 auto; }
.tcm-row__name-input { font-weight: 500; }
.tcm-remove { flex: none; font-size: 0.9375rem; }

/* Six columns on a desktop: the two choice questions share the first line, then three short menus, then two long ones. */
.tcm-row__fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 20px; }
.tcm-f--g, .tcm-f--bk, .tcm-f--o, .tcm-f--u { grid-column: span 3; }
.tcm-f--d, .tcm-f--ht, .tcm-f--hn { grid-column: span 2; }
.tcm-f > label, .tcm-f > legend { font-size: 0.9375rem; }
.tcm-f select { text-overflow: ellipsis; }

.tcm-partner { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--cool-gray); }
.tcm-partner__title { font-weight: 500; margin: 0 0 12px; }
.tcm-partner__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }

.tcm-add { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 16px; }

/* ---------- Results ---------- */
.tcm-card-intro { color: var(--cool-gray); font-size: 0.9375rem; margin-bottom: 16px; }
.tcm-chart { margin-top: 20px; }
.tcm-next .handoff:not(:empty) { margin-top: 20px; }

/* Grid column heads for Ownership, Hours and Know-how carry the tool's 44px icons above the label. */
.data-table thead th.tcm-grid__iconhead { vertical-align: bottom; }
.tcm-grid__iconhead > img { width: 44px; height: 44px; margin: 0 auto 6px; }
.tcm-grid__iconhead > span { display: block; }

/* Coverage grid: Lavender Gray at 0, Soft Mint at 1, Primary Green at 2, with the number printed in each cell. */
.tcm-grid { min-width: 640px; }
.tcm-grid th, .tcm-grid td { vertical-align: middle; }
.tcm-grid__name { min-width: 180px; }
.tcm-grid__title { display: block; font-weight: 500; }
.tcm-grid__tie { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--cool-gray); }
.data-table td.tcm-cell { text-align: center; font-weight: 500; width: 92px; border-bottom: 3px solid var(--white); border-left: 3px solid var(--white); }
.data-table thead th.num { text-align: center; }
.data-table thead th:nth-child(5) { text-align: right; }
.tcm-shade-0 { background: var(--lavender-gray); }
.tcm-shade-1 { background: var(--soft-mint); }
.tcm-shade-2 { background: var(--primary-green); }
.tcm-score { font-weight: 700; width: 70px; }
.tcm-flags { min-width: 200px; }
.tcm-chip {
  display: inline-block; margin: 2px 6px 2px 0; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--lavender-gray); font-size: 0.8125rem; line-height: 1.5; white-space: nowrap; background: var(--white);
}
.tcm-chip--warn { border: 2px solid var(--amber); padding: 1px 9px; font-weight: 500; }
.tcm-none { color: var(--cool-gray); font-size: 0.875rem; }

/* What to do next */
.tcm-next-lead { font-size: 1.125rem; max-width: 48rem; }
.tcm-first-heading { font-size: 1.125rem; margin: 24px 0 14px; }
.tcm-first { list-style: none; margin: 0; padding: 0; }
.tcm-first > li + li { margin-top: 16px; }
.tcm-step__title { font-family: var(--font-text); font-weight: 500; font-size: 1.125rem; margin: 0 0 8px; color: var(--deep-plum); line-height: 1.3; }
.tcm-move { font-weight: 500; color: var(--deep-teal); margin-bottom: 8px; }
.tcm-move__label { color: var(--deep-plum); }
/* Inside the white card these steps are mint tiles, where Cool Gray falls under 4.5:1: notes take Deep Plum. */
.tcm-step__meta { font-size: 0.875rem; color: var(--deep-plum); }

.tcm-hires { font-size: 0.9375rem; }
/* Each outside partner is a Soft Mint tile; text, table heads and rules switch to Deep Plum tones on mint. */
.tcm-partner-item { background: var(--soft-mint); border-radius: var(--radius-tile); padding: 24px; }
.tcm-partner-item + .tcm-partner-item { margin-top: 16px; }
.tcm-partner-item h4 { margin-bottom: 2px; font-size: 1.25rem; }
.tcm-partner-item__who { color: var(--deep-plum); font-size: 0.9375rem; margin-bottom: 8px; }
.tcm-partner-item .data-table thead th { color: var(--deep-plum); border-bottom-color: rgba(56, 49, 74, 0.35); }
.tcm-partner-item .data-table th, .tcm-partner-item .data-table td { border-bottom-color: rgba(56, 49, 74, 0.18); }
.tcm-partner-item .tcm-note { color: var(--deep-plum); }
.tcm-partner-item .tcm-questions { margin-bottom: 12px; }
.tcm-partner-item .table-scroll + p { margin-top: 12px; }
.tcm-answers { max-width: 40rem; }
.tcm-answers td { white-space: nowrap; }
.tcm-answer-no { font-weight: 700; }
.tcm-q-label { font-weight: 500; margin: 16px 0 6px; }
.tcm-questions { margin-bottom: 8px; }
.tcm-note { font-size: 0.9375rem; color: var(--cool-gray); }
.tcm-single { margin: 0; }
.tcm-single__name { font-weight: 500; }
.tcm-single__who { color: var(--cool-gray); }

/* Legend swatches for the grid shades */
.swatch.tcm-shade-0 { background: var(--lavender-gray); }
.swatch.tcm-shade-1 { background: var(--soft-mint); }
.swatch.tcm-shade-2 { background: var(--primary-green); }

/* ---------- Narrow tablet: the content column is 920px at most, so the six-column rows hold down to 760px ---------- */
@media (max-width: 760px) {
  .tcm-row__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcm-f--g, .tcm-f--bk, .tcm-f--ht, .tcm-f--hn { grid-column: span 1; }
  .tcm-f--d, .tcm-f--o, .tcm-f--u { grid-column: span 2; }
  .tcm-partner__grid { grid-template-columns: minmax(0, 1fr); }
}

@media screen and (min-width: 641px) and (max-width: 760px) {
  [data-slot="numbers"] .key-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone: one card per workstream, and the grid as stacked cards ---------- */
@media (max-width: 640px) {
  .tcm-guide { padding: 16px; }
  .tcm-guide__list { grid-template-columns: minmax(0, 1fr); }
  .tcm-row { padding: 16px; }
  .tcm-row__head { flex-wrap: wrap; gap: 10px 12px; }
  .tcm-row__name { order: 3; flex-basis: 100%; }
  .tcm-remove { margin-left: auto; min-height: 32px; padding: 0; }
  .tcm-row .choice span { padding: 8px 14px; }
  .tcm-row .choice-group { gap: 8px; }
  .tcm-row__fields { grid-template-columns: minmax(0, 1fr); }
  .tcm-f--g, .tcm-f--bk, .tcm-f--d, .tcm-f--ht, .tcm-f--hn, .tcm-f--o, .tcm-f--u { grid-column: auto; }
  .tcm-next-lead { font-size: 1.0625rem; }
}

@media screen and (max-width: 700px) {
  .tcm-grid { min-width: 0; }
  .tcm-grid, .tcm-grid tbody, .tcm-grid tr, .tcm-grid th, .tcm-grid td { display: block; width: auto; }
  .tcm-grid thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tcm-grid tbody tr {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
    padding: 14px 0; border-bottom: 1px solid rgba(188, 182, 206, 0.6);
  }
  .tcm-grid tbody th, .tcm-grid tbody td { border: 0; padding: 0; }
  .tcm-grid tbody th { grid-column: 1 / -1; min-width: 0; margin-bottom: 4px; }
  .data-table .tcm-grid__name { padding-left: 0; }
  .data-table td.tcm-cell, .data-table td.tcm-score {
    width: auto; text-align: center; padding: 6px 4px; border-radius: 6px; border: 0;
  }
  .data-table td.tcm-score { background: var(--paper); }
  .tcm-grid td.tcm-cell::before, .tcm-grid td.tcm-score::before {
    content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 400; color: var(--deep-plum);
  }
  .tcm-grid td.tcm-flags { grid-column: 1 / -1; min-width: 0; padding: 4px 0 0; white-space: normal; }
  .tcm-chip { white-space: normal; }
}

/* ---------- Print: verdict, key numbers, the grid and the rows to work on first, on one page ---------- */
@media print {
  .tcm-card-title { font-size: 11pt; margin-bottom: 0; }
  .tcm-grid__iconhead > img, .card-head__icon { display: none; }
  .card-head { margin-bottom: 4pt; }
  .tcm-next { padding: 0; border: 0; border-radius: 0; }
  .tcm-row .choice input:checked + span { box-shadow: none; }
  [data-slot="grid"] .tcm-card-intro, [data-slot="grid"] .chart-legend, .tcm-grid__tie, .tcm-step__meta { display: none; }
  .tcm-grid { min-width: 0; font-size: 8pt; table-layout: fixed; }
  .tcm-grid th, .tcm-grid td { padding: 1.5pt 4pt; line-height: 1.25; }
  .tcm-grid thead th { font-size: 7.5pt; }
  .tcm-grid thead th:first-child { width: 30%; }
  .tcm-grid thead th:nth-child(2), .tcm-grid thead th:nth-child(3), .tcm-grid thead th:nth-child(4) { width: 8%; }
  .tcm-grid thead th:nth-child(5) { width: 6%; }
  .tcm-grid__name { min-width: 0; }
  .data-table td.tcm-cell { width: auto; border-bottom-width: 1.5pt; border-left-width: 1.5pt; }
  .tcm-flags { min-width: 0; }
  .tcm-chip { font-size: 6.5pt; line-height: 1.35; padding: 0 4pt; margin: 0.5pt 2pt 0.5pt 0; }
  .tcm-chip--warn { border-width: 1.2pt; }
  .tcm-next-lead { font-size: 9pt; max-width: none; }
  .tcm-first-heading { font-size: 10pt; margin: 6pt 0 4pt; }
  .tcm-first { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6pt; }
  .tcm-first > li + li { margin-top: 0; }
  .tcm-step, .card .tcm-step { padding: 6pt 8pt; border-radius: 8pt; }
  .tcm-step__title { font-size: 9.5pt; margin-bottom: 2pt; }
  .tcm-move { font-size: 8.5pt; margin-bottom: 2pt; }
  .tcm-step p { font-size: 8pt; line-height: 1.35; margin-bottom: 0; }
  .verdict__sub { font-size: 9pt; }
  .verdict__sub + .verdict__sub { margin-top: 2pt; }
  .results-body > * + * { margin-top: 8pt; }
  .key-numbers .stat { padding: 4pt 7pt; }
  .key-numbers .stat__label { font-size: 7.5pt; line-height: 1.3; }
  .tcm-step p { font-size: 7.5pt; }
}
