/* ThriveableBiz Sales Calculator 1.3.1: the kit look (Judy, 13 Nov 2026, Design canvas
   "How Many Sales calculator, kit makeover"; PLATFORM_DECISIONS_LOG 13 Nov 2026).
   It keeps its own classes (tbz-sc-*), so it works on any page, kit or not, and never
   restyles a kit piece. Colours come from the theme's own names (kadence-child style.css);
   the value after each comma is the same theme colour, used only if the theme's names are
   missing. Theme fonts only. No pills, capitals, letter spacing, or gradients. Body text 17px;
   nothing below 13px. tests/test-kit.php (KIT-8) holds these rules for this file too. */
.tbz-sc {
  --tbz-sc-teal-text: var(--teal-dark, #017A7A);
  --tbz-sc-orange: var(--orange, #FF5100);
  --tbz-sc-orange-dark: var(--orange-dark, #E64800);
  --tbz-sc-charcoal: var(--ink, #2B2A28);
  --tbz-sc-ink-2: var(--ink-2, #5A5A56);
  --tbz-sc-rule: var(--rule-card, #E0E0DA);
  --tbz-sc-rule-soft: var(--rule-soft, #EBEBE6);
  --tbz-sc-paper: var(--paper, #FAF7F0);
  --tbz-sc-paper-warm: var(--paper-warm, #F2EBDC);
  --tbz-sc-white: var(--white, #FFFFFF);
  box-sizing: border-box;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--tbz-sc-charcoal);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-align: left;
}
.tbz-sc *, .tbz-sc *::before, .tbz-sc *::after { box-sizing: border-box; }
.tbz-sc [hidden] { display: none !important; }
.tbz-sc p { margin: 0 0 12px; }

/* ---------- Mode switch: two plain buttons, not tabs, each with a small icon ---------- */
.tbz-sc-ask {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 0;
  flex: 1 0 100%;
}
.tbz-sc-modes { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.tbz-sc-mode {
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  flex: 1 1 220px;
  min-width: 0;
  min-height: 56px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--tbz-sc-teal-text);
  border-radius: 10px;
  background: var(--tbz-sc-white);
  color: var(--tbz-sc-teal-text);
  cursor: pointer;
  text-align: left;
}
.tbz-sc-mode[aria-pressed="true"] { background: var(--tbz-sc-teal-text); color: var(--tbz-sc-white); }
.tbz-sc-icon { flex: none; }
/* Ask mode (the calculator's own page): the two choices come first, so they're bigger */
.tbz-sc.tbz-sc-isask .tbz-sc-modes { max-width: 720px; }
.tbz-sc.tbz-sc-isask .tbz-sc-mode { min-height: 96px; padding: 18px 20px; }

/* ---------- Layout: on phones the answer comes straight after the main questions ---------- */
.tbz-sc-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "core" "answer" "extras"; column-gap: 28px; row-gap: 16px; }
.tbz-sc-core { grid-area: core; }
.tbz-sc-answer { grid-area: answer; }
.tbz-sc-extras { grid-area: extras; }
@media (min-width: 820px) {
  .tbz-sc-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "core answer" "extras answer"; grid-template-rows: auto 1fr; align-items: start; }
  .tbz-sc-answer { position: sticky; top: 16px; }
}

/* ---------- The questions, in a white card ---------- */
.tbz-sc-core {
  background: var(--tbz-sc-white);
  border: 1px solid var(--tbz-sc-rule);
  border-radius: 10px;
  padding: 28px;
}
.tbz-sc-example { color: var(--tbz-sc-ink-2); margin-bottom: 18px; }
/* Extra help shows while that box is in use; "Before tax." always shows. */
.tbz-sc-field { margin-bottom: 18px; }
.tbz-sc-field:last-child { margin-bottom: 0; }
.tbz-sc-label { display: block; font-weight: 700; margin-bottom: 4px; }
.tbz-sc-help { font-size: 17px; color: var(--tbz-sc-ink-2); margin: 0 0 8px; }
.tbz-sc-inputrow { display: flex; align-items: center; gap: 8px; }
.tbz-sc-num {
  font: inherit;
  font-size: 19px;
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1.5px solid var(--tbz-sc-ink-2);
  border-radius: 8px;
  background: var(--tbz-sc-white);
  color: var(--tbz-sc-charcoal);
}
.tbz-sc-num[aria-invalid="true"] { border-color: var(--tbz-sc-orange-dark); border-width: 2px; }
.tbz-sc-suffix, .tbz-sc-prefix { font-weight: 700; }
/* Errors: marked with the theme's dark orange; the words stay charcoal and bold, because orange text is too faint at this size. */
.tbz-sc-err { color: var(--tbz-sc-charcoal); font-weight: 700; font-size: 17px; margin: 6px 0 0; padding-left: 10px; border-left: 3px solid var(--tbz-sc-orange-dark); }
.tbz-sc-err:empty { display: none; }
.tbz-sc :focus-visible { outline: 3px solid var(--tbz-sc-orange); outline-offset: 2px; }
/* What they keep, and the hourly rate check, under their boxes */
.tbz-sc-keepline, .tbz-sc-rateline { font-size: 17px; font-weight: 700; color: var(--tbz-sc-teal-text); margin: 8px 0 0; }
.tbz-sc-keepline:empty, .tbz-sc-rateline:empty { display: none; }

/* ---------- Service business hours, in a soft panel ---------- */
.tbz-sc-extras { background: var(--tbz-sc-paper); border-radius: 10px; padding: 6px 28px 10px; }
.tbz-sc-service summary { cursor: pointer; font-weight: 700; color: var(--tbz-sc-teal-text); min-height: 44px; padding: 10px 0; }
.tbz-sc-service[open] summary { margin-bottom: 8px; }
.tbz-sc-service .tbz-sc-help { margin-bottom: 14px; }

/* ---------- The answer, in a white card with the kit's soft shadow ---------- */
.tbz-sc-result {
  background: var(--tbz-sc-white);
  border: 1px solid var(--tbz-sc-rule);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 30px 60px -36px rgba(43, 42, 40, 0.45);
}
.tbz-sc-result > p { margin: 16px 0 0; }
.tbz-sc-result > p.tbz-sc-main { margin-top: 0; font-size: 21px; line-height: 1.35; }
.tbz-sc-main strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.05;
  color: var(--tbz-sc-teal-text);
  margin: 4px 0 6px;
}
.tbz-sc-sub strong { color: var(--tbz-sc-teal-text); }

/* The dots picture: one dot per sale (1.3.0) */
.tbz-sc-dots { margin: 22px 0 6px; }
.tbz-sc-dotgrid { display: flex; flex-wrap: wrap; gap: 8px; max-width: 352px; }
.tbz-sc-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--tbz-sc-teal-text); transition: background-color 0.15s ease; }
.tbz-sc-dot-ring { background: var(--tbz-sc-white); border: 3px solid var(--tbz-sc-orange-dark); }
.tbz-sc-dot.tbz-sc-dot-wait { background: var(--tbz-sc-rule-soft); border-color: var(--tbz-sc-rule-soft); }
.tbz-sc-dotkey { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 15px; color: var(--tbz-sc-ink-2); }
.tbz-sc-dotkey-item { display: inline-flex; align-items: center; gap: 8px; }
.tbz-sc-swatch { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--tbz-sc-teal-text); }
.tbz-sc-swatch-ring { background: var(--tbz-sc-white); border: 3px solid var(--tbz-sc-orange-dark); }

/* The two levers, as reading cards (coloured top edge) */
.tbz-sc-levers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 0; }
.tbz-sc-lever { background: var(--tbz-sc-white); border: 1px solid var(--tbz-sc-rule); border-top: 5px solid var(--tbz-sc-teal-text); border-radius: 10px; padding: 20px; color: var(--tbz-sc-ink-2); }
.tbz-sc-lever.tbz-sc-lever-customer { border-top: 5px solid var(--tbz-sc-orange-dark); }
.tbz-sc-lever p { margin: 0; }
.tbz-sc-lever .tbz-sc-levertitle { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 21px; line-height: 1.25; color: var(--tbz-sc-charcoal); margin-bottom: 6px; }

/* The hours result, in a soft panel */
.tbz-sc-result > p.tbz-sc-time { background: var(--tbz-sc-paper); border-radius: 10px; padding: 16px 18px; }

/* Next step */
.tbz-sc-nextstep { margin: 22px 0 0; }
.tbz-sc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 8px;
  background: var(--tbz-sc-orange);
  color: var(--tbz-sc-white);
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.tbz-sc-button:hover, .tbz-sc-button:focus-visible { background: var(--tbz-sc-orange-dark); color: var(--tbz-sc-white); }
.tbz-sc-nexthint, .tbz-sc-nextlink { margin: 10px 0 0; }
.tbz-sc-nexthint { color: var(--tbz-sc-ink-2); }
.tbz-sc-nextlink a, .tbz-sc-boundary a { color: var(--tbz-sc-teal-text); }

/* "What this can't show you", in a warm panel */
.tbz-sc-boundary { margin-top: 24px; background: var(--tbz-sc-paper-warm); border-radius: 10px; padding: 22px 24px; }
.tbz-sc-boundary p:last-child { margin-bottom: 0; }
.tbz-sc-boundarytitle { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 20px; line-height: 1.3; margin-bottom: 6px; }

.tbz-sc-sr, .tbz-sc-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Folded layout (Home, scope section 1b): the example answer and one button ---------- */
.tbz-sc.tbz-sc-isfolded { margin: 0; }
.tbz-sc.tbz-sc-isfolded .tbz-sc-body { display: block; max-width: 720px; }
.tbz-sc.tbz-sc-isfolded .tbz-sc-answer { position: static; }
.tbz-sc.tbz-sc-isfolded .tbz-sc-main strong { font-size: 54px; }
.tbz-sc-foldline { color: var(--tbz-sc-ink-2); margin-bottom: 14px; }
.tbz-sc-answer > .tbz-sc-foldline { background: var(--tbz-sc-white); border: 1px solid var(--tbz-sc-rule); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 28px 28px 0; margin: 0; }
.tbz-sc.tbz-sc-isfolded .tbz-sc-result { border-top: 0; border-bottom: 0; border-radius: 0; box-shadow: none; padding-top: 14px; padding-bottom: 0; }
.tbz-sc-answer > .tbz-sc-foldactions { background: var(--tbz-sc-white); border: 1px solid var(--tbz-sc-rule); border-top: 0; border-radius: 0 0 10px 10px; padding: 22px 28px 28px; margin: 0; box-shadow: 0 30px 60px -36px rgba(43, 42, 40, 0.45); }
.tbz-sc-rough { color: var(--tbz-sc-ink-2); margin: 10px 0 0; }

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  .tbz-sc-core, .tbz-sc-result { padding: 20px 18px; }
  .tbz-sc-extras { padding: 4px 18px 8px; }
  .tbz-sc-answer > .tbz-sc-foldline { padding: 20px 18px 0; }
  .tbz-sc-answer > .tbz-sc-foldactions { padding: 20px 18px; }
  .tbz-sc.tbz-sc-isfolded .tbz-sc-result { padding-top: 14px; padding-bottom: 0; }
  .tbz-sc-num { max-width: none; }
  .tbz-sc-modes { gap: 10px; margin-bottom: 16px; }
  /* Icon above the words, so each button's words fit on two lines at 320px */
  .tbz-sc-mode { flex: 1 1 0; min-height: 72px; padding: 10px 12px; gap: 6px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .tbz-sc.tbz-sc-isask .tbz-sc-mode { min-height: 88px; padding: 14px 12px; }
  .tbz-sc-result > p.tbz-sc-main { font-size: 19px; }
  .tbz-sc-main strong, .tbz-sc.tbz-sc-isfolded .tbz-sc-main strong { font-size: 40px; }
  .tbz-sc-dotgrid { gap: 7px; }
  .tbz-sc-dot { width: 14px; height: 14px; }
  .tbz-sc-button { width: 100%; text-align: center; }
}

/* Motion: the count-up and the dots filling on Home are the only movement. Off for anyone who turns motion off. */
@media (prefers-reduced-motion: reduce) {
  .tbz-sc * { transition: none !important; animation: none !important; }
}
