/* Temple Town Partners estimate: a two-pane wizard. Left, the section at hand. Right, where you are and the range so far. */

.wizard-page { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.wizard-intro { max-width: 52rem; margin-bottom: clamp(24px, 3.4vw, 40px); }
.wizard-intro h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.06; letter-spacing: -.022em; font-weight: 350; font-variation-settings: 'opsz' 60; }
.wizard-lede { font-size: 1.1rem; margin: 16px 0 10px; }
.keep-line { font: 500 14.5px/1.5 var(--sans); color: var(--muted); margin: 0; }
.keep-line .text-btn { font: 600 14.5px/1.5 var(--sans); margin-left: 4px; }

.wizard { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4.4fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.pane-form { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(20px, 3.2vw, 44px); min-width: 0; }
.pane-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.section-sheet { border: 0; margin: 0; padding: 0; min-width: 0; }
.section-sheet legend { padding: 0; margin: 0 0 22px; width: 100%; }
.section-title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.015em; line-height: 1.12; padding-bottom: 14px; border-bottom: 3px double var(--petal); }
.section-title:focus { outline: none; }
.section-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.section-note { font: 400 15px/1.5 var(--sans); color: var(--muted); margin: -8px 0 18px; }

/* picks: tappable pill options */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  min-height: 42px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--hair); background: var(--paper);
  font: 500 15px/1.25 var(--sans); color: var(--text); cursor: pointer; text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.pick:hover { border-color: var(--petal); transform: translateY(-1px); }
.pick[aria-pressed="true"] { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.pick[aria-pressed="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 2px; }
@media (prefers-reduced-motion: reduce) { .pick, .pick:hover { transition: none; transform: none; } }
.slot[aria-invalid="true"] .picks .pick { border-color: var(--wine); }

/* portions: share sliders that always total 100% */
.portions { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.portions:empty { display: none; }
.portion { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3.4em; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--petal-wash); }
.portion label { font: 500 14.5px/1.3 var(--sans); color: var(--ink); }
.portion output { font: 700 15px/1 var(--sans); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.portion input[type="range"] { width: 100%; min-width: 0; accent-color: var(--ink); height: 28px; margin: 0; cursor: pointer; }
@media (max-width: 520px) {
  .portion { grid-template-columns: minmax(0, 1fr) 3.4em; gap: 4px 12px; }
  .portion input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
}

.wizard-steps { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); }
.wizard-steps #go-next, .wizard-steps #go-send { margin-left: auto; }
.wizard-alert { margin-top: 12px; }

/* the right pane */
.counter { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: 20px 22px; }
.counter-text { font: 600 15px/1.2 var(--sans); color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.counter-name { font: 400 1.5rem/1.2 var(--serif); color: var(--ink); margin: 6px 0 14px; }
.counter-track { height: 6px; border-radius: 999px; background: var(--petal-wash); overflow: hidden; }
.counter-track span { display: block; height: 100%; width: 16.66%; background: var(--ink); border-radius: 999px; transition: width 260ms ease; }
@media (prefers-reduced-motion: reduce) { .counter-track span { transition: none; } }
.section-jumps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; margin-top: 14px; }
.section-jumps button {
  width: 100%; text-align: left; background: none; border: 0; padding: 7px 6px; border-radius: 8px; cursor: pointer;
  font: 500 14px/1.3 var(--sans); color: var(--muted); display: flex; gap: 8px; align-items: center;
}
.section-jumps button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--petal); flex: none; }
.section-jumps button.is-done::before { background: var(--petal); }
.section-jumps button[aria-current="step"] { color: var(--ink); font-weight: 700; }
.section-jumps button[aria-current="step"]::before { background: var(--ink); border-color: var(--ink); }
.section-jumps button:hover { background: var(--petal-wash); color: var(--ink); }

.estimate-card { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px; box-shadow: var(--lift); }
.est-label { font: 600 14.5px/1.2 var(--sans); color: var(--muted); margin: 0 0 6px; }
.est-range { font: 600 clamp(1.6rem, 2.4vw, 2rem)/1.15 var(--sans); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin: 0; }
.est-range.is-quiet { font: 400 1.15rem/1.35 var(--serif); color: var(--muted); }
.est-payback { font: 600 15px/1.4 var(--sans); color: var(--olive-ink); margin: 8px 0 0; }
.est-payback:empty, .est-basis:empty { display: none; }
.est-basis { font: 400 14.5px/1.5 var(--sans); color: var(--muted); margin: 8px 0 0; }
.estimate-card h3 { font: 600 14.5px/1.3 var(--sans); color: var(--ink); margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--hair); }
.moves, .lifts { list-style: none; }
.moves li { display: grid; grid-template-columns: 3.1em minmax(0, 1fr); gap: 10px; padding: 7px 0; font: 500 14.5px/1.4 var(--sans); color: var(--ink); }
.moves .shift { font-weight: 700; font-variant-numeric: tabular-nums; }
.moves .shift.is-up { color: var(--olive-ink); }
.moves .shift.is-down { color: var(--wine); }
.moves .why { display: block; font-weight: 400; color: var(--muted); }
.lifts li { position: relative; padding: 6px 0 6px 18px; font: 400 14.5px/1.45 var(--sans); color: var(--text); }
.lifts li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.moves li.moves-empty, .lifts li.moves-empty { display: block; padding-left: 0; color: var(--muted); font-weight: 400; }
.lifts li.moves-empty::before { display: none; }
.est-caveat { font: 400 13.5px/1.5 var(--sans); color: var(--muted); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); }

/* mobile: the side pane splits; counter above the form, estimate below; a strip carries the range */
.range-strip { display: none; }
@media (max-width: 959px) {
  .wizard { grid-template-columns: 1fr; }
  .pane-side { display: contents; }
  .counter { order: -1; }
  .section-jumps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .has-wizard .range-strip:not(.is-off) {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px var(--gutter); background: var(--solid-bg); color: var(--solid-fg);
    font: 500 14px/1.2 var(--sans); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .35);
  }
  .range-strip strong { font: 700 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .has-wizard { padding-bottom: 56px; }
}
@media (max-width: 560px) { .section-jumps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* result */
.outcome:focus { outline: none; }
.outcome-sheet { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(22px, 4vw, 56px); box-shadow: var(--lift); }
.outcome-kicker { font: 600 14.5px/1.3 var(--sans); color: var(--muted); margin: 0 0 8px; }
.outcome h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; padding-bottom: 18px; border-bottom: 3px double var(--petal); }
.outcome-figures { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px clamp(20px, 4vw, 56px); padding: 26px 0 8px; }
.figure-label { font: 600 14.5px/1.2 var(--sans); color: var(--muted); margin: 0 0 6px; }
.figure-big { font: 600 clamp(2rem, 4.6vw, 3.4rem)/1.08 var(--sans); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0; }
.figure-mid { font: 600 clamp(1.5rem, 3vw, 2.2rem)/1.1 var(--sans); color: var(--olive-ink); font-variant-numeric: tabular-nums; margin: 0; }
.figure-note { font: 400 15px/1.45 var(--sans); color: var(--muted); margin: 6px 0 0; }
.outcome-basis { font-size: 16.5px; margin: 14px 0; max-width: 48em; }
.outcome-status { font: 600 15px/1.5 var(--sans); padding: 12px 16px; border-radius: 12px; background: var(--petal-wash); color: var(--olive-ink); margin: 0 0 22px; }
.outcome-status.is-bad { color: var(--wine); }
.outcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.outcome-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(20px, 4vw, 56px); }
.outcome-cols h3, .answers-title { font: 600 15px/1.3 var(--sans); color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--petal); margin-bottom: 6px; }
.answers-title { margin-top: 32px; }
.answers-table { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--sans); }
.answers-table th, .answers-table td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.answers-table th { width: 38%; font-weight: 600; color: var(--muted); padding-right: 16px; }
.answers-table td { color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .outcome-figures, .outcome-cols { grid-template-columns: 1fr; }
  .answers-table th { width: 44%; }
}
.print-only { display: none; }

@media print {
  @page { margin: 16mm; }
  :root, :root[data-theme="dark"] {
    --paper: #fff; --sheet: #fff; --ink: #2A1527; --text: #2A1527; --muted: #555; --hair: #ccc; --petal: #bbb; --petal-wash: #fff;
    --olive-ink: #3f4a17; --wine: #7a2a3e; --lift: none;
  }
  body { background: #fff; font-size: 11pt; padding: 0 !important; }
  .masthead, .skiplink, .screen-only, .wizard, .range-strip, .colophon { display: none !important; }
  .wizard-page { padding: 0; }
  .outcome-sheet { border: 0; padding: 0; box-shadow: none; }
  .print-only { display: block; }
  .print-foot { margin-top: 18px; font: 400 9.5pt/1.4 var(--sans); color: #555; }
  .answers-table tr { break-inside: avoid; }
}
