/* New Build Matcher — shared styling for the quiz mounted at #nbQuiz.
   Loaded by /new-build-quiz.html, /home-builders-calgary.html and
   /new-builds.html. Uses the site design tokens throughout so it inherits
   light/dark automatically. */

.nbq-shell {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  padding: clamp(22px, 4vw, 38px);
}

/* ── progress ── */
.nbq-progress { height: 4px; background: var(--surface-3, rgba(255,255,255,0.07)); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.nbq-progress-bar { height: 100%; background: var(--gold-fill, #d4af37); border-radius: 99px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.nbq-step-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }

/* ── question ── */
.nbq-q { font-family: var(--font-serif); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.25; color: var(--text-bright); margin: 0 0 10px; text-wrap: balance; }
.nbq-hint { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); margin: 0 0 6px; max-width: 62ch; }
.nbq-hint a { color: var(--gold); }
.nbq-multi { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); margin: 10px 0 0; }

/* ── options ── */
.nbq-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 11px; margin: 20px 0 4px; }
.nbq-opt {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 15px 17px; border-radius: 11px; cursor: pointer; font-family: inherit;
  background: var(--surface-2); border: 1.5px solid var(--border);
  transition: border-color .16s ease, background .16s ease, transform .12s ease;
}
.nbq-opt:hover { border-color: rgba(212,175,55,0.55); transform: translateY(-1px); }
.nbq-opt.on { border-color: var(--gold-fill, #d4af37); background: rgba(212,175,55,0.10); }
.nbq-opt-l { font-size: 0.95rem; font-weight: 600; color: var(--text-bright); line-height: 1.35; }
.nbq-opt-d { font-size: 0.79rem; color: var(--text-dim); line-height: 1.5; }

/* ── nav ── */
.nbq-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.nbq-nav-end { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 30px; }
.nbq-back { background: none; border: none; color: var(--text-muted); font-size: 0.88rem; cursor: pointer; font-family: inherit; padding: 8px 2px; text-decoration: none; }
.nbq-back:hover { color: var(--gold); }
.nbq-next:disabled { opacity: .4; cursor: not-allowed; }

/* ── results ── */
.nbq-res-head { margin-bottom: 24px; }
.nbq-res-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.nbq-res-head h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.4vw, 2.15rem); color: var(--text-bright); margin: 0 0 10px; line-height: 1.2; text-wrap: balance; }
.nbq-res-head p { font-size: 0.92rem; line-height: 1.72; color: var(--text-mid); margin: 0; max-width: 66ch; }

.nbq-sec-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 32px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.nbq-sec-note { font-size: 0.86rem; line-height: 1.7; color: var(--text-muted); margin: -4px 0 16px; max-width: 68ch; }

/* community cards */
.nbq-rcs { display: flex; flex-direction: column; gap: 14px; }
.nbq-rc { display: flex; gap: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.nbq-rc-rank { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(212,175,55,0.16); color: var(--gold); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.nbq-rc-body { min-width: 0; flex: 1; }
.nbq-rc h4 { font-size: 1.1rem; color: var(--text-bright); margin: 0 0 8px; line-height: 1.3; }
.nbq-rc-muni { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); margin-left: 6px; }
.nbq-rc-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.nbq-rc-stats strong { color: var(--gold); font-size: 0.95rem; }
.nbq-rc-why { font-size: 0.88rem; line-height: 1.65; color: var(--text-mid); margin: 0 0 8px; }
.nbq-rc-blurb { font-size: 0.84rem; line-height: 1.65; color: var(--text-dim); margin: 0 0 8px; }
.nbq-rc-b { font-size: 0.8rem; line-height: 1.6; color: var(--text-dim); margin: 0 0 10px; }
.nbq-rc-b span { color: var(--text-muted); font-weight: 600; }
.nbq-rc-link { font-size: 0.85rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.nbq-rc-link:hover { text-decoration: underline; }
.nbq-more { font-size: 0.86rem; color: var(--text-muted); margin: 14px 0 0; line-height: 1.7; }
.nbq-more strong { color: var(--text-mid); }

/* builder cards */
.nbq-bcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 13px; }
.nbq-bc { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.nbq-bc h4 { font-size: 1rem; margin: 0 0 6px; line-height: 1.3; }
.nbq-bc h4 a { color: var(--text-bright); text-decoration: none; }
.nbq-bc h4 a:hover { color: var(--gold); }
.nbq-bc-price { font-size: 1.05rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.nbq-bc-price span { display: block; font-size: 0.72rem; font-weight: 400; color: var(--text-dim); }
.nbq-bc-why { font-size: 0.85rem; line-height: 1.65; color: var(--text-mid); margin: 0; }

/* money panel */
.nbq-money { list-style: none; padding: 0; margin: 0; }
.nbq-money li { position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--border); font-size: 0.89rem; line-height: 1.72; color: var(--text-mid); }
.nbq-money li:last-child { border-bottom: none; }
.nbq-money li::before { content: '→'; position: absolute; left: 0; top: 13px; color: var(--gold); }
.nbq-money strong { color: var(--text-bright); }
.nbq-money a { color: var(--gold); }

/* CTA */
.nbq-cta { background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(153,112,0,0.07)); border: 1px solid rgba(212,175,55,0.32); border-radius: 14px; padding: clamp(24px, 4vw, 34px); margin-top: 32px; }
.nbq-cta-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.nbq-cta h4 { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.6vw, 1.65rem); color: var(--text-bright); margin: 0 0 12px; line-height: 1.3; text-wrap: balance; }
.nbq-cta p { font-size: 0.91rem; line-height: 1.75; color: var(--text-mid); margin: 0 0 12px; max-width: 64ch; }
.nbq-cta strong { color: var(--text-bright); }
.nbq-cta-btns { display: flex; flex-wrap: wrap; gap: 11px; margin: 20px 0 16px; }
.nbq-fine { font-size: 0.75rem !important; line-height: 1.65 !important; color: var(--text-dim) !important; margin: 0 !important; }

@media (max-width: 560px) {
  .nbq-opts { grid-template-columns: 1fr; }
  .nbq-rc { flex-direction: column; gap: 10px; }
  .nbq-rc-rank { width: 26px; height: 26px; font-size: 0.82rem; }
}
