/*
 * "How many sales do I need?" page (/how-many-sales-do-i-need), 13 Nov 2026.
 *
 * Loads after homepage.css (the shared sections, buttons, and question
 * accordion, scoped to .tbz-home) and after kit.css (the shared pieces). This
 * file holds only what is this page's own: the top of the page, where the kit
 * pieces sit, the rows of the sum picture, and the markup table with its bars.
 * It never restyles a kit piece. Theme colour names and fonts only: no new
 * colours, no pills, no capital-letter labels, no gradients. Body text 17px;
 * nothing below 13px. No motion of its own.
 */

/* Full-bleed: let sections run edge to edge (as Home does with .home) */
.tbz-hms-page #inner-wrap.wrap {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.tbz-hms {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  color: var(--ink);
}

/* ---------- 2.1 Top of page ---------- */
.tbz-hms-hero { background: var(--paper-warm); padding: 88px 0 72px; }
.tbz-hms .tbz-hms-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 58px;
  line-height: 1.08;
  margin: 0;
  max-width: 820px;
  color: var(--ink);
}
.tbz-hms .tbz-hms-sub {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  line-height: 1.35;
  margin: 18px 0 22px;
  max-width: 720px;
  color: var(--ink);
}

/* ---------- 2.2 The calculator: the plugin brings its own look ---------- */
.tbz-hms-calc { padding-top: 64px; }

/* ---------- 2.3 How the sum works ---------- */
.tbz-hms-sum { gap: 32px; }
.tbz-hms-sumfig { margin-top: 40px; }
.tbz-hms-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.tbz-hms-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}
.tbz-hms-row.tbz-hms-row-last { padding-bottom: 0; border-bottom: 0; }
.tbz-hms-step { font-size: 15px; color: var(--ink-2); }
.tbz-hms-calcline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 17px; color: var(--ink); }
.tbz-hms-result {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--teal-dark);
}
.tbz-hms-result.tbz-hms-result-big { font-size: 30px; }
.tbz-hms-after { margin-top: 28px; }

/* ---------- 2.4 Markup and margin: the table, with a bar per row ---------- */
.tbz-hms-table-card {
  margin: 28px 0 0;
  max-width: 720px;
  background: var(--white);
  border: 1px solid var(--rule-card);
  border-radius: 10px;
  padding: 28px;
  box-sizing: border-box;
}
.tbz-hms-table { width: 100%; border-collapse: collapse; font-size: 17px; margin: 0; }
.tbz-hms-table th {
  text-align: left;
  font-weight: 700;
  padding: 0 12px 12px 0;
  border-bottom: 1px solid var(--rule-card);
  color: var(--ink);
}
.tbz-hms-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule-soft); }
.tbz-hms-table thead .tbz-hms-barcell { border-bottom: 1px solid var(--rule-card); padding: 0 0 12px; }
.tbz-hms-table tbody tr:last-child td { border-bottom: 0; }
.tbz-hms-add, .tbz-hms-keep { font-family: 'Fraunces', Georgia, serif; font-size: 22px; line-height: 1.2; }
.tbz-hms-add { color: var(--ink); }
.tbz-hms-keep { font-weight: 600; color: var(--teal-dark); }
.tbz-hms-table .tbz-hms-barcell { width: 45%; padding-right: 0; }
.tbz-hms-bar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; }
.tbz-hms-bar-cost { display: block; background: var(--teal-soft); }
.tbz-hms-bar-keep { display: block; background: var(--teal-dark); }
.tbz-hms-barkey { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.tbz-hms-barkey > span { display: inline-flex; align-items: center; gap: 8px; }
.tbz-hms-swatch { display: inline-block; width: 13px; height: 13px; border-radius: 2px; }
.tbz-hms-swatch-cost { background: var(--teal-soft); }
.tbz-hms-swatch-keep { background: var(--teal-dark); }

/* ---------- 2.5 What to do next ---------- */
.tbz-hms-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tbz-hms-next p { margin: 0; }
.tbz-hms .tbz-hms-next a { color: var(--teal-dark); }
.tbz-hms-actions { margin-top: 28px; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .tbz-hms-next { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tbz-hms-hero { padding: 48px 0 40px; }
  .tbz-hms .tbz-hms-h1 { font-size: 38px; }
  .tbz-hms .tbz-hms-sub { font-size: 20px; }
  .tbz-hms-calc { padding-top: 40px; }
  .tbz-hms-sumfig { margin-top: 8px; }
  .tbz-hms-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tbz-hms-table-card { padding: 20px 16px; }
  .tbz-hms-table .tbz-hms-barcell { width: 38%; }
  .tbz-hms-add, .tbz-hms-keep { font-size: 20px; }
}
