/* ============================================================
   COMPASS STYLES
   ------------------------------------------------------------
   Loaded AFTER ../styles.css. Everything here is derived from
   the approved website design system:
     colors:  navy #334e68, terracotta #b38a9a, sage #a8b8a5,
              tan #c9b8a6, lavender #d9d1e8, cream #faf7f2,
              ink #3e3a39 / muted #6D6968, accent #a6496d
              (replaces the old burnt-orange accent, #b65621 / #d96a2b)
     type:    Fraunces (headings), Montserrat (body). Caveat is kept
              for .compass-reassure only now — .review-a and
              p.result-quote moved back to Montserrat for readability
              (see notes at each rule).
     shapes:  square corners, thin navy hairlines, 3px focus
              outlines, uppercase letter-spaced buttons
   ============================================================ */

/* ---- Layout shell ---- */
.compass-main { max-width: 760px; margin: 0 auto; padding: clamp(40px,6vw,80px) clamp(20px,4vw,48px) clamp(56px,8vw,104px); }
.compass-screen[hidden] { display: none; }

.compass-h1 { margin-bottom: 20px; }
.compass-reassure { font-family: 'Caveat', cursive; font-size: clamp(1.25rem,2vw,1.5rem); color: #b38a9a; margin: 0 0 28px; }
.compass-disclaimer { margin-top: 40px; max-width: 56ch; }

/* ---- "How this works" panel ---- */
.how-panel { margin-top: 36px; border-top: 1px solid rgba(51,78,104,0.25); padding-top: 28px; }
.how-panel .h3 { margin-top: 24px; }
.how-panel .h3:first-child { margin-top: 0; }
.how-panel p { margin: 8px 0 0; }

/* ---- Progress ---- */
.progress-wrap { margin-bottom: clamp(28px,4vw,40px); }
.progress-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #6D6968; margin: 0 0 10px; }
.progress-track { height: 4px; background: rgba(51,78,104,0.15); }
.progress-fill { height: 4px; width: 0; background: #a8b8a5; transition: width 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }

/* ---- Question ---- */
.question-fieldset { border: 0; padding: 0; margin: 0; }
.question-text { font-size: clamp(1.7rem,3.2vw,2.4rem); margin-bottom: 12px; }
.question-text:focus { outline: none; }
.question-help { font-size: 0.95rem; line-height: 1.6; color: #3e3a39; margin: 0 0 24px; max-width: 56ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.options { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option label {
  display: block; cursor: pointer; padding: 16px 20px; min-height: 44px;
  border: 1px solid rgba(51,78,104,0.3); background: #faf7f2;
  font-size: 1rem; line-height: 1.55; color: #334e68;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option label:hover { border-color: #b38a9a; }
.option input:focus-visible + label { outline: 3px solid #b38a9a; outline-offset: 3px; }
.option input:checked + label { border-color: #334e68; background: rgba(168,184,165,0.22); box-shadow: inset 3px 0 0 #334e68; }
@media (prefers-reduced-motion: reduce) { .option label { transition: none; } }

.option-error { color: #3e3a39; margin: 16px 0 0; }

.question-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* ---- Review ---- */
.review-list { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.review-item { border-top: 1px solid rgba(51,78,104,0.25); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; }
.review-item:last-child { border-bottom: 1px solid rgba(51,78,104,0.25); }
.review-q { font-size: 0.9rem; font-weight: 600; margin: 0; flex: 1 1 100%; }
.review-a { font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 1rem; margin: 0; color: #6D6968; flex: 1 1 auto; }
.review-edit { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 0; cursor: pointer; color: #334e68; border-bottom: 2px solid #b38a9a; padding: 4px 0; min-height: 32px; }
.review-edit:hover { color: #b38a9a; }
.review-edit:focus-visible { outline: 3px solid #b38a9a; outline-offset: 3px; }

/* ---- Result ---- */
.result-eyebrow { margin-bottom: 12px; }
.result-title { margin-bottom: 16px; }
.result-lede { font-size: clamp(1.05rem,1.6vw,1.2rem); line-height: 1.7; margin: 0 0 8px; max-width: 58ch; }
.result-section { border-top: 1px solid rgba(51,78,104,0.25); margin-top: 32px; padding-top: 28px; }
.result-section-h { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(1.4rem,2.4vw,1.8rem); line-height: 1.2; margin: 0 0 12px; }
.result-section p { font-size: 1rem; line-height: 1.7; margin: 0 0 14px; max-width: 60ch; color: #a6496d; }
.result-section p:last-child { margin-bottom: 0; }

.result-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 1rem; line-height: 1.65; max-width: 60ch; }
.result-list li { padding-left: 24px; position: relative; }
.result-list li::before { content: "—"; position: absolute; left: 0; color: #a8b8a5; }

/* p.result-quote (not .result-quote): ".result-section p" above has equal-or-higher
   specificity on font-size/line-height/margin/max-width, so the selector needs the
   type qualifier to actually win the cascade instead of silently losing to it.
   Body font + navy text (same as standard body copy), not the script/rose
   treatment used elsewhere — this section reads as "grounding, remember this,"
   not as a quote graphic. The rose accent is a left border only. */
p.result-quote { font-family: 'Montserrat', sans-serif; font-style: italic; font-weight: 500; font-size: 1.15rem; line-height: 1.7; color: #334e68; border-left: 3px solid #a6496d; padding-left: 20px; margin: 0 0 14px; max-width: 60ch; }

.pro-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 60ch; }
.pro-list li { font-size: 1rem; line-height: 1.65; }
.pro-who { font-weight: 600; }

.safety-note { border-left: 3px solid #b38a9a; padding: 4px 0 4px 20px; margin: 0 0 14px; }
.safety-note p { margin: 0; }

.secondary-area { background: rgba(168,184,165,0.22); padding: 24px 28px; margin-top: 32px; }
.secondary-area .result-section-h { margin-bottom: 8px; }
.secondary-area p { font-size: 1rem; line-height: 1.7; margin: 0; max-width: 60ch; color: #a6496d; }

.personal-note { font-size: 1rem; line-height: 1.7; max-width: 60ch; color: #a6496d; }

/* ---- Opt-in + actions ---- */
.result-optin { border-top: 1px solid rgba(51,78,104,0.25); margin-top: 44px; padding-top: 32px; }
.result-optin .h3 { margin-bottom: 10px; }
.result-optin p { margin-bottom: 20px; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }

/* ---- Print view ----
   Prints only the result content: no nav, footer, buttons,
   opt-in, or animation. */
.print-only-disclaimer { display: none; }
@media print {
  .no-print, .site-header, .site-footer, .result-optin, .result-actions { display: none !important; }
  .print-only-disclaimer { display: block; margin-top: 24px; }
  body { background: #fff; color: #000; }
  .compass-main { max-width: none; padding: 0; }
  .result-section { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
