/* Hallmark · built: the project · theme: brand · genre: editorial · redesign: polish · signature: line items and a right-aligned price */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · existing routes share the same material and price typography */
.qc-section {
  box-sizing: border-box;
  width: var(--page-width);
  margin-inline: auto;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.qc-section *, .qc-section *::before, .qc-section *::after { box-sizing: border-box; }
.qc-lead {
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
  padding:clamp(36px,4vw,60px) 0 clamp(28px,4vw,48px);
}
.qc-lead h1 { margin:0; font-size:clamp(34px,4vw,52px); line-height:1.2; letter-spacing:-.035em; }
.qc-lead-text>p, .qc-section-head>p { margin:12px 0 0; color:var(--muted); font-size:16px; line-height:1.65; word-break:keep-all; }
.qc-table-link {
  display:inline-flex; align-items:center; gap:8px; flex-shrink:0;
  border:1px solid var(--line-strong); border-radius:8px; padding:8px 16px;
  background:var(--paper); color:var(--ink); font-size:14px; font-weight:650; text-decoration:none;
}
.qc-table-link:hover { background:var(--wash); }
.qc-workspace {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(316px,1fr);
  align-items:start;
  gap:clamp(40px,6vw,88px);
}
.qc-form { min-width:0; }
.qc-step-meta { font-size:15px; line-height:1.5; color:var(--muted); font-weight:650; }
.qc-progress { width:100%; height:3px; margin:12px 0 24px; background:var(--line); }
.qc-progress span { display:block; height:100%; width:100%; transform:scaleX(.25); transform-origin:left center; background:var(--action-blue); transition:transform .18s ease-out; }
.qc-form h2,.qc-section-head h2 { margin:0; font-size:clamp(25px,2.4vw,32px); font-weight:730; line-height:1.4; letter-spacing:-.03em; }
.qc-form h2 { scroll-margin-top:100px; }
.qc-sub { color:var(--muted); font-size:16px; line-height:1.65; margin:8px 0 0; word-break:keep-all; }
.qc-prefill { margin:0 0 16px; padding:12px 16px; background:var(--skywash); border-radius:8px; font-size:15px; line-height:1.65; }
.qc-sub:empty,.qc-options:empty,.qc-summary [hidden],.qc-prefill[hidden] { display:none; }
.qc-options { border-top:1px solid var(--line-strong); margin-top:24px; }
.qc-choice {
  width:100%; appearance:none; display:flex; align-items:center; text-align:left;
  gap:8px 16px; min-height:52px; padding:8px;
  border:0; border-bottom:1px solid var(--line); background:var(--paper);
  color:var(--ink); font:inherit; cursor:pointer;
}
.qc-choice:not(:has(.qc-option-price))::after {
  content:""; width:16px; height:16px; margin-left:auto; flex:none;
  background:var(--muted); mask:url('/assets/lucide/chevron-right.svg') center / contain no-repeat;
}
.qc-choice:hover { background:var(--wash); }
.qc-choice.qc-selected { background:var(--skywash); color:var(--blue-text); }
.qc-choice-title { flex-shrink:0; font-weight:680; font-size:19px; line-height:1.5; letter-spacing:-.035em; }
.qc-choice-detail { color:var(--muted); font-size:15px; line-height:1.5; word-break:keep-all; }
.qc-option-price { margin-left:auto; font-size:17px; font-weight:700; white-space:nowrap; }
.qc-wide-choices .qc-choice { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 16px; }
.qc-wide-choices .qc-choice-detail { grid-column:1; grid-row:2; }
.qc-wide-choices .qc-option-price { grid-column:2; grid-row:1 / span 2; }
.qc-summary { align-self:start; padding:clamp(24px,2.6vw,36px); border-radius:0; background:var(--paper); border-block:2px solid var(--ink); }
.qc-summary h2 { margin:0; font-size:clamp(20px,1.9vw,25px); line-height:1.5; letter-spacing:-.04em; }
#qc-comparison-area { margin:8px 0 0; color:var(--muted); font-size:15px; line-height:1.6; }
.qc-summary dl { margin:16px 0 0; }
.qc-summary dl>div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:8px 0; }
.qc-summary dt { color:var(--ink); font-size:16px; line-height:1.5; }
.qc-summary dd { margin:0; font-size:17px; font-weight:650; text-align:right; line-height:1.5; }
.qc-comparison-prices { width:100%; margin-top:20px; border-spacing:0; border-collapse:collapse; }
.qc-comparison-prices th,.qc-comparison-prices td { text-align:left; padding:12px 0; }
.qc-comparison-prices thead th { color:var(--muted); font-weight:500; font-size:14px; border-bottom:1px solid var(--line-strong); }
.qc-comparison-prices th:last-child,.qc-comparison-prices td { text-align:right; }
.qc-comparison-prices tbody th { font-size:16px; font-weight:500; }
.qc-comparison-prices tbody tr+tr { border-top:1px solid var(--line); }
.qc-comparison-prices td { font-variant-numeric:tabular-nums; font-size:clamp(22px,2.2vw,28px); font-weight:650; white-space:nowrap; }
#qc-comparison:not([hidden]) + #qc-picked:not([hidden]) { margin-top:24px; padding-top:20px; border-top:1px solid var(--line-strong); }
.qc-summary-price { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:8px 16px; border-top:1px solid var(--line-strong); padding-top:16px; margin-top:16px; }
.qc-summary-price span { color:var(--ink); font-size:16px; }
.qc-summary-price strong { font-variant-numeric:tabular-nums; font-size:clamp(20px,2vw,26px); line-height:1.35; letter-spacing:-.035em; }
.qc-nav { display:flex; align-items:center; flex-wrap:wrap; gap:12px 16px; margin-top:24px; }
.qc-nav:empty { display:none; }
.qc-primary,.qc-back { appearance:none; border:0; cursor:pointer; min-height:48px; display:inline-flex; align-items:center; justify-content:center; font:inherit; font-size:16px; font-weight:650; text-decoration:none; }
.qc-back { color:var(--muted); background:none; padding:12px 8px; }
.qc-primary { color:var(--paper)!important; background:var(--action-blue); border-radius:8px; padding:12px 20px; }
.qc-primary:hover { background:var(--accent-hover); }
.qc-choice:focus-visible { position:relative; z-index:1; }
.qc-options:has(.qc-receipt) { border-top:0; }
.qc-receipt { display:flex; flex-direction:column; gap:8px; padding:24px; background:var(--skywash); border-radius:12px; }
.qc-receipt strong { color:var(--ink); font-size:clamp(25px,3vw,36px); line-height:1.35; letter-spacing:-.05em; }
.qc-receipt span,.qc-receipt small { font-size:16px; color:var(--muted); }
.qc-guide,.qc-reference { margin-block:var(--section-space); scroll-margin-top:100px; }
.qc-section-head { margin-bottom:24px; }
.qc-guide details { border-top:1px solid var(--line); }
.qc-guide details:last-of-type { border-bottom:1px solid var(--line); }
.qc-guide summary { cursor:pointer; font-size:16px; font-weight:650; line-height:1.5; padding:20px 4px 20px 0; }

.qc-guide details p { max-width:830px; margin:0 24px 20px 0; color:var(--muted); font-size:16px; line-height:1.8; word-break:keep-all; }
.qc-table-top { text-align:right; font-size:15px; color:var(--muted); margin:0 0 12px; }
.qc-table-scroll { width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
.qc-prices { width:100%; min-width:312px; table-layout:fixed; border-spacing:0; border-collapse:separate; font-size:16px; background:var(--paper); }
.qc-prices th,.qc-prices td { text-align:right; white-space:nowrap; padding:12px 16px; border:0; border-bottom:1px solid var(--line); }
.qc-prices thead th { color:var(--ink); font-size:15px; font-weight:690; background:var(--wash); }
.qc-prices th:first-child { position:sticky; left:0; text-align:left; }
.qc-prices tbody th { background:var(--field); border-right:1px solid var(--line); }
.qc-prices th:first-child { width:46%; white-space:normal; }
.qc-prices th small,.qc-row-selected { display:block; font-size:14px; line-height:1.5; font-weight:500; }
.qc-prices th small { color:var(--muted); }
.qc-row-selected { color:var(--blue-text); font-weight:650; }
.qc-row-selected[hidden] { display:none; }
.qc-prices tbody tr[aria-current="true"] :is(th,td) { background:var(--skywash); }
.qc-prices tbody tr:last-child>* { border-bottom:0; }
.qc-prices tbody tr:hover td { background:var(--wash); }
.qc-note { color:var(--muted); font-size:15px; line-height:1.75; word-break:keep-all; margin:12px 0 0; max-width:84ch; }
.qc-note a { color:var(--blue-text); text-decoration:underline; text-underline-offset:3px; }
.qc-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.qc-section :is(a,button,summary,[tabindex="0"]):focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
@media(max-width:800px) {
  .qc-lead { flex-direction:column; align-items:flex-start; gap:16px; padding:32px 0 28px; }
  .qc-table-link { min-height:44px; }
  .qc-workspace { grid-template-columns:minmax(0,1fr); gap:24px; }
  .qc-summary { padding:24px; }
  .qc-summary dl { margin-top:12px; }
  .qc-summary dl>div { padding:4px 0; }
  .qc-guide,.qc-reference { scroll-margin-top:80px; }
  .qc-prices th,.qc-prices td { padding:12px 16px; }
}
@media(max-width:540px) {
  .qc-prices th,.qc-prices td { padding:12px 8px; }
  .qc-prices th small,.qc-row-selected { font-size:13px; }
  .qc-choice { flex-wrap:wrap; gap:4px 16px; min-height:56px; }
  .qc-choice-title { font-size:17px; }
  .qc-primary { width:100%; order:-1; }
  .qc-table-scroll { border-radius:8px; }
}
@media(prefers-reduced-motion:reduce) { .qc-progress span { transition:none; } }
