/* Hire, Partner or Train Comparison: only what shell.css lacks. Palette and faces come from shell.css tokens. */

/* ---------- Form ---------- */
.hpt-lead { margin: -8px 0 28px; max-width: 44rem; color: var(--deep-plum); }
.hpt-span-2 { grid-column: 1 / -1; }
.hpt-picker { margin: 0 0 32px; padding: 24px; border-radius: var(--radius-tile); background: var(--soft-mint); }
.hpt-picker .field-help { color: var(--deep-plum); }
.hpt-picker .choice span { background: var(--white); }
.hpt-picker .choice input:checked + span { background: var(--white); }
.hpt-handover-fields { margin-top: 28px; }
.hpt-subhead { font-weight: 500; font-size: 1.125rem; margin: 0 0 4px; }
.hpt-handover-fields > .field-help { margin-bottom: 16px; }
.hpt-goal-fields { margin-top: 28px; }
.field-derived:not([hidden]) { color: var(--deep-plum); }

/* ---------- Results ---------- */
.verdict__sub.hpt-allowance { font-size: 1rem; }
.hpt-stat--name .stat__value { white-space: normal; }
.hpt-card-lead { margin: 0 0 16px; max-width: 48rem; }

/* Timeline chart (drawn in hire-partner-train-comparison.js). Span labels sit on their own fill; every fill has a word. */
.hpt-timeline-svg .hpt-row-label { font-size: 14px; paint-order: stroke; stroke: var(--white); stroke-width: 5px; stroke-linejoin: round; }
.hpt-cmp td.hpt-nowrap { white-space: nowrap; }
.hpt-span--wait { fill: var(--white); stroke: var(--cool-gray); stroke-width: 1; stroke-dasharray: 4 3; }
.hpt-span--ramp { stroke: var(--deep-teal); stroke-width: 1; }
.hpt-span--full { fill: var(--primary-green); }
.hpt-span--cover { fill: var(--ocean-blue); }
.hpt-span-text { font-size: 13px; font-weight: 500; }
.hpt-span-text--wait { fill: var(--deep-plum); }
.hpt-span-text--ramp { fill: var(--forest-dark); paint-order: stroke; stroke: var(--soft-mint); stroke-width: 4px; stroke-linejoin: round; }
.hpt-span-text--full { fill: var(--forest-dark); }
.hpt-span-text--cover { fill: var(--white); }
.hpt-needed { stroke: var(--deep-plum); stroke-width: 2; stroke-dasharray: 6 4; }
.hpt-axis-line { stroke: var(--deep-plum); stroke-width: 1.5; }
.hpt-axis-title { font-weight: 500; }
.hpt-swatch { width: 18px; height: 12px; }
.hpt-swatch--wait { background: var(--white); box-shadow: inset 0 0 0 1px var(--cool-gray); }
.hpt-swatch--ramp {
  background-color: var(--soft-mint);
  background-image: repeating-linear-gradient(45deg, var(--deep-teal) 0 2px, transparent 2px 5px);
  box-shadow: inset 0 0 0 1px var(--deep-teal);
}
.hpt-swatch--full { background: var(--primary-green); }
.hpt-swatch--cover { background: var(--ocean-blue); }

/* Comparison table: headers wrap so seven columns fit the card; the answer's row is tinted and tagged in words. */
.hpt-cmp thead th, .hpt-cmp thead th.num { white-space: normal; vertical-align: bottom; }
.hpt-cmp th, .hpt-cmp td { padding-inline: 8px; }
.hpt-cmp tbody th { min-width: 9rem; }
.hpt-cmp tr.is-answer > * { background: rgba(199, 235, 225, 0.45); }
/* Every row (head included) keeps 10px at both ends, so the tinted answer row lines up with the rest and its cells
   get the same widths (the answer row alone used to be indented, and its last cell wrapped where the others didn't). */
@media screen and (min-width: 641px) {
  .hpt-cmp th:first-child, .hpt-cmp td:first-child { padding-left: 10px; }
  .hpt-cmp th:last-child, .hpt-cmp td:last-child { padding-right: 10px; }
}
.hpt-tag {
  display: inline-block; margin-top: 4px; padding: 1px 10px; border-radius: 999px;
  background: var(--deep-teal); color: var(--white); font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.hpt-left-out td { color: var(--cool-gray); }
.hpt-note { margin: 12px 0 0; }
.hpt-latest__title { font-size: 1.125rem; margin: 28px 0 10px; }
.hpt-latest { display: grid; gap: 8px; margin: 0; }
.hpt-latest > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border-radius: var(--radius-tile); background: var(--soft-mint); }
.hpt-latest dt { font-weight: 500; }
.hpt-latest dd { margin: 0; text-align: right; }

/* Cost chart card: the chart's own title is the card heading, with its icon (as Core Business Check does). */
.hpt-chart-card .chart-title.hpt-chart-head {
  display: flex; align-items: center; gap: 16px; margin: 0 0 24px;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8125rem, 1.45rem + 1.1vw, 2.25rem);
  line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance;
}
.hpt-chart-head > .card-head__icon { flex: none; }

.hpt-doubled { font-size: 1.125rem; max-width: 48rem; }

/* Handover card: three mint tiles, question first, then the answer in words. */
.hpt-handover { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hpt-handover > li + li { margin-top: 0; }
.hpt-handover__item .tile__title { font-size: 1.0625rem; }
.hpt-answer-label { font-weight: 500; }
.hpt-ask { font-style: italic; }

.hpt-next-lead { margin: 0 0 16px; }
.hpt-moves { list-style: none; margin: 0; padding: 0; }
.hpt-moves p { margin: 0; }
.hpt-next-close { margin: 16px 0 0; }

/* ---------- Phones: the comparison table stacks into one labelled block per option, so nothing scrolls sideways ---------- */
@media screen and (max-width: 640px) {
  .hpt-picker { padding: 20px 16px; }
  .hpt-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hpt-cmp, .hpt-cmp tbody, .hpt-cmp tr, .hpt-cmp th, .hpt-cmp td { display: block; width: auto; }
  .hpt-cmp tr { padding: 12px 0; border-bottom: 1px solid rgba(188, 182, 206, 0.6); }
  .hpt-cmp tbody th, .hpt-cmp td { border: 0; padding: 3px 0; min-width: 0; }
  .hpt-cmp tbody th { margin-bottom: 4px; font-size: 1rem; }
  .hpt-cmp td[data-label] { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; text-align: right; white-space: normal; }
  .hpt-cmp td[data-label]::before { content: attr(data-label); color: var(--deep-plum); text-align: left; margin-right: auto; max-width: 60%; }
  .hpt-cmp tr.is-answer { background: rgba(199, 235, 225, 0.45); border-radius: 12px; padding-inline: 12px; border-bottom: 0; margin: 4px 0; }
  .hpt-cmp tr.is-answer > * { background: none; }
  .hpt-cmp tr.is-answer > :first-child, .hpt-cmp tr.is-answer > :last-child { padding-left: 0; padding-right: 0; }
  .hpt-tag { margin-left: 0; }
  .hpt-latest dd { text-align: left; }
  .hpt-chart-card .chart-title.hpt-chart-head { gap: 12px; margin-bottom: 20px; }
  .hpt-chart-head > .card-head__icon { width: 48px; height: 48px; }
}

/* ---------- Print: one sheet for the worked example ---------- */
@media print {
  .results-body > * + * { margin-top: 4pt; }
  .results .card { padding: 5pt 9pt; }
  .card-head { margin-bottom: 3pt; gap: 6pt; }
  .card-head__icon { width: 14pt; height: 14pt; }
  .card-head .card-title { font-family: var(--font-text); font-size: 10.5pt; font-weight: 500; }
  .verdict { padding: 5pt 9pt; }
  .verdict__label { margin-bottom: 2pt; font-size: 8.5pt; }
  .verdict__headline { font-size: 12.5pt; margin-bottom: 3pt; }
  .verdict__sub, .verdict__sub.hpt-allowance { font-size: 8.5pt; line-height: 1.35; }
  .verdict__sub + .verdict__sub { margin-top: 2pt; }
  .key-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4pt; }
  .stat { padding: 4pt 6pt; border-radius: 6pt; }
  .stat__value { font-size: 11pt; }
  .stat__label { font-size: 7.5pt; line-height: 1.25; }
  .hpt-timeline-svg .hpt-row-label { font-size: 11px; stroke-width: 3px; }
  .hpt-legend { margin-top: 2pt; font-size: 7.5pt; gap: 2pt 10pt; }
  /* On paper the comparison table below carries the same months, so the timeline's own table stays on screen readers only. */
  .hpt-timeline .chart-table { display: none; }
  .hpt-card-lead { display: none; }
  .hpt-doubled { max-width: none; }
  .limits h2 { font-size: 10pt; margin-bottom: 2pt; }
  .limits p { font-size: 7.5pt; line-height: 1.3; }
  .data-table th, .data-table td { padding: 1.5pt 4pt; font-size: 7.5pt; }
  .hpt-cmp thead th { font-size: 7pt; }
  .hpt-cmp tbody th { min-width: 0; }
  .hpt-tag { font-size: 6.5pt; padding: 0 4pt; margin-top: 1pt; }
  .hpt-latest__title { font-size: 8.5pt; margin: 4pt 0 2pt; }
  .hpt-latest { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3pt; }
  .hpt-latest > div { display: block; padding: 2pt 5pt; border-radius: 4pt; font-size: 7.5pt; }
  .hpt-latest dd { text-align: left; }
  .hpt-doubled { font-size: 8.5pt; }
  .flags { gap: 3pt; }
  .flag { padding: 3pt 6pt; font-size: 8pt; line-height: 1.3; border-radius: 4pt; }
  .flag__title { margin-bottom: 0; }
  .next-step, .card .next-step { padding: 3pt 6pt; border-radius: 4pt; border: 0; }
  .next-step p, .hpt-next-lead, .hpt-next-close { font-size: 8.5pt; line-height: 1.35; }
  .next-steps > * + * { margin-top: 3pt; }
  .hpt-note { font-size: 7.5pt; margin-top: 2pt; }
  main > * + * { margin-top: 5pt; }
  .print-title { font-size: 15pt; }
  .print-sub { margin-bottom: 5pt; }
}
