/* readiness-quiz.css — shared styles for the JSON-driven readiness tiers.
 * Everything is scoped under .mr so generic class names (.step, .chip, .hcard)
 * never collide with the rest of the site. Accent uses the brand --signal
 * token from global.css, with a calm-orange fallback. Both the 72-hour tier
 * (after migration) and the 2-week tier render against this one file. */

.mr {
  --sigsoft: #f6ece2;
  --ilight: #5a7d66;
  --bdr: #d4cec6;
  --muted: #94a89d;
  max-width: 50rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* progress */
.mr .prog { display: flex; gap: 4px; margin-bottom: .75rem; }
.mr .prog-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--bdr); transition: background .2s; }
.mr .prog-dot.done, .mr .prog-dot.cur { background: var(--signal, #c4652a); }
.mr .step-count { font-size: .75rem; color: var(--muted); margin-bottom: .25rem; text-align: right; }

/* step card */
.mr .step { display: none; background: #fff; border: 1px solid var(--bdr); border-radius: .75rem; padding: 1.5rem 1.5rem 1.75rem; }
.mr .step.active { display: block; animation: mrFadeUp .25s ease; }
.mr .step.show-all { display: block; margin-bottom: 1rem; animation: none; }
.mr .step-head { margin-bottom: 1rem; }
.mr .step-icon { color: var(--signal, #c4652a); font-size: 1rem; margin-right: .375rem; }
.mr .step-title { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; color: var(--ink, #143a22); }
.mr .step-desc { font-size: .8125rem; color: var(--ilight); margin-top: .25rem; line-height: 1.5; }
.mr .fsub { margin-bottom: 1rem; }
.mr .slbl { font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ilight); display: block; margin-bottom: .5rem; }
@keyframes mrFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* chips */
.mr .chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.mr .chip { padding: .4375rem .9375rem; border-radius: 2rem; border: 1.5px solid var(--bdr); background: #fff; font-size: .8125rem; cursor: pointer; color: var(--ink, #143a22); font-family: inherit; display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; transition: all .15s; }
.mr .chip:hover { border-color: var(--ilight); }
.mr .chip.on { border-color: var(--signal, #c4652a) !important; background: var(--sigsoft) !important; font-weight: 600; color: var(--signal, #c4652a) !important; }

/* nav buttons */
.mr .nav-btns { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0 1.5rem; }
.mr .nav-btn { padding: .625rem 1.5rem; border-radius: .5rem; font-family: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.mr .btn-prev { background: #fff; border: 1.5px solid var(--bdr); color: var(--ink, #143a22); }
.mr .btn-prev:hover { border-color: var(--signal, #c4652a); color: var(--signal, #c4652a); }
.mr .btn-next { background: var(--signal, #c4652a); border: 1.5px solid var(--signal, #c4652a); color: #fff; }
.mr .btn-next:hover { opacity: .92; }

/* results: score header card */
.mr .hcard { display: flex; gap: 1.5rem; align-items: center; background: #fff; border: 2px solid var(--bdr); border-radius: .75rem; padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; }
.mr .hcard-score { flex-shrink: 0; text-align: center; min-width: 6rem; }
.mr .rscore-num { font-family: 'Fraunces', serif; font-size: 4rem; font-weight: 600; color: var(--signal, #c4652a); line-height: 1; }
.mr .rscore-label { font-size: 1.25rem; color: var(--ilight); font-weight: 500; }
.mr .rscore-tier { font-family: 'Fraunces', serif; font-size: 1.125rem; font-weight: 500; color: var(--ink, #143a22); margin-top: .25rem; }
.mr .hcard-msg { font-size: .9375rem; color: var(--ilight); line-height: 1.6; }
@media (max-width: 540px) { .mr .hcard { flex-direction: column; text-align: center; } }

/* results: checklist sections */
.mr .bsec { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--bdr); }
.mr .bsec:last-child { border-bottom: none; margin-bottom: 0; }
.mr .bey { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--signal, #c4652a); display: block; margin-bottom: .375rem; }
.mr .result-item { display: flex; align-items: flex-start; gap: .75rem; padding: .625rem 0; border-bottom: 1px solid #e2e8f0; }
.mr .result-item:last-child { border-bottom: none; }
.mr .check-green { color: #16a34a; flex-shrink: 0; margin-top: 2px; }
.mr .check-gap { color: var(--signal, #c4652a); flex-shrink: 0; margin-top: 2px; }

/* save form */
.mr .save-card { background: #fff; border: 1px solid var(--bdr); border-radius: .75rem; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }

/* PDF downloads */
.mr .pdf-downloads { margin: 1.5rem 0; padding: 1.5rem; background: #fff; border: 1px solid var(--bdr); border-radius: .75rem; }
.mr .pdf-dl-head { font-size: .8125rem; font-weight: 600; color: var(--ink, #143a22); margin-bottom: 1rem; }
.mr .pdf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mr .pdf-card { display: flex; flex-direction: column; gap: .375rem; padding: 1rem .875rem; border: 1.5px solid var(--bdr); border-radius: .625rem; text-decoration: none; transition: border-color .15s; }
.mr .pdf-card:hover { border-color: var(--signal, #c4652a); }
.mr .pdf-icon { color: var(--signal, #c4652a); font-size: 1.25rem; }
.mr .pdf-name { font-family: 'Fraunces', serif; font-size: .9375rem; font-weight: 500; color: var(--ink, #143a22); }
.mr .pdf-desc { font-size: .6875rem; color: var(--ilight); line-height: 1.4; flex: 1; }
.mr .pdf-btn { display: inline-block; margin-top: .5rem; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--signal, #c4652a); padding: .3125rem .625rem; border-radius: .3125rem; text-align: center; }
@media (max-width: 520px) { .mr .pdf-cards { grid-template-columns: 1fr; } }

/* action buttons */
.mr .brief-bottom { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--bdr); }
.mr .bact { display: inline-flex; align-items: center; gap: .375rem; padding: .5rem 1rem; border: 1.5px solid var(--bdr); background: #fff; border-radius: .375rem; font-family: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; color: var(--ink, #143a22); text-decoration: none; }
.mr .bact:hover { border-color: var(--signal, #c4652a); color: var(--signal, #c4652a); }
.mr .bact i { font-size: .75rem; color: var(--signal, #c4652a); }

/* go deeper card */
.mr .deeper-card { background: var(--ink, #143a22); border-radius: .75rem; padding: 1.5rem 1.75rem; margin: 1.5rem 0; color: #fff; }
.mr .deeper-card h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; color: #fff; margin-bottom: .5rem; }
.mr .deeper-card p { font-size: .9375rem; color: rgba(255, 255, 255, .8); line-height: 1.6; margin-bottom: 1rem; }
.mr .deeper-btn { display: inline-flex; align-items: center; gap: .375rem; background: var(--signal, #c4652a); color: #fff; font-weight: 600; padding: .625rem 1.5rem; border-radius: .5rem; text-decoration: none; font-size: .9375rem; }
.mr .deeper-btn:hover { opacity: .9; }

/* print */

/* ── Inline step nav: Previous/Next at the bottom of each step ── */
.mr .step-nav {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bdr, #d4cec6);
}
.mr .step-nav .nav-btn {
  flex: 1;
  padding: .75rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: .5rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}
.mr .step-nav .btn-prev {
  background: #fff;
  border: 1.5px solid var(--bdr, #d4cec6);
  color: var(--ink, #143a22);
}
.mr .step-nav .btn-prev:hover {
  border-color: var(--signal, #c4652a);
  color: var(--signal, #c4652a);
}
.mr .step-nav .btn-next {
  background: var(--signal, #c4652a);
  border: 1.5px solid var(--signal, #c4652a);
  color: #fff;
}
.mr .step-nav .btn-next:hover {
  background: #a8541f;
}
.mr .step-nav .btn-next.shake {
  animation: nws-shake .4s ease;
}
@keyframes nws-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media print {
  #nav-placeholder, .mr .step-nav, .mr .nav-btns, .mr .step-count, .mr .prog, .mr .save-card, .mr .brief-bottom, .mr .deeper-card, .mr .pdf-downloads, #footer-placeholder, #nws-pmenu-mount { display: none !important; }
  body { background: #fff; }
  .mr .hcard { border: 1.5pt solid #ccc; }
}
