/* ============================================================
   READINESS DIAGNOSTICS — shared look for the scored diagnostics
   (readiness-diagnostic.js). Loaded after each page's own styles and
   welcome-hero.css; uses only the page's :root tokens (--cream-bg,
   --light-cream, --dark-green, --gold-light, --gold-dark, --text-dark,
   --text-muted) with Playfair Display and Montserrat.

   The hero is the shared welcome hero (as on diagnostics.html); this
   file adds the film inside its arc, then styles the diagnostic in the
   site's components: gold uppercase labels, Playfair headings with one
   gold-italic word and the gold underline, soft translucent cream
   cards with a fine gold hairline (as on funding-readiness.html), and
   dark-green pill buttons.
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The page frame's overflow: hidden would stop sticky elements;
   clip trims to the frame the same way without that side effect. */
@supports (overflow: clip) {
  .site-frame { overflow: clip; }
  html, body { overflow-x: clip !important; }
}

.rd-draft-pill {
  display: inline-block; margin-left: 0.6rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: #7C4048; color: #FAF9F6; letter-spacing: 0.08em;
}

/* ---------- Hero film: plays inside the welcome hero's arc ---------- */
.welcome-photo video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1200ms ease;
}
.welcome-photo video.is-playing { opacity: 1; }

/* ---------- The diagnostic ---------- */
.rd-body { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) 6% 4.5rem; scroll-margin-top: 90px; }
.section-tag {
  color: var(--gold-dark); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; display: block; margin-bottom: 1rem;
}
.rd-underline { width: 72px; height: 2px; background: var(--gold-dark); margin: 0 0 1.4rem; }

/* Progress: the ring replaces it on the stage; its text stays for
   screen readers. */
.rd-progress { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.2rem; }
.rd-progress-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(145, 117, 81, 0.18); overflow: hidden; }
.rd-progress-track span { display: block; height: 100%; background: var(--gold-dark); transform-origin: left center; transform: scaleX(0); transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.rd-progress-text { flex-shrink: 0; font-size: 0.82rem; font-weight: 600; color: var(--dark-green); }

/* The card is drawn on the list item: a fieldset's border would run
   through its legend. */
.rd-questions { list-style: none; display: grid; gap: 1rem; margin: 0 0 2rem; padding: 0; }
.rd-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rd-q legend { display: block; width: 100%; padding: 0; }
.rd-q-num { display: none; }
.rd-q-body { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.rd-q-area { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); }
.rd-q-text {
  max-width: 22em; margin: 0 auto; text-wrap: balance;
  font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.3; color: var(--dark-green);
}
.rd-tag-critical {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #7C4048; background: rgba(124, 64, 72, 0.1);
}

/* Answers: numbered cream cards for keys 1-3. */
.rd-options { counter-reset: rd-opt; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: clamp(1.6rem, 3.4vw, 2.4rem) 0 0; }
.rd-option { position: relative; display: block; cursor: pointer; }
.rd-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rd-option span {
  counter-increment: rd-opt; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  min-height: 132px; padding: 1.2rem 1rem; border-radius: 18px; text-align: center;
  font-size: 0.98rem; font-weight: 500; line-height: 1.35; color: var(--dark-green);
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(145, 117, 81, 0.28);
  box-shadow: 0 24px 48px -36px rgba(12, 30, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, color 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.rd-option span::before {
  content: counter(rd-opt); display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid rgba(145, 117, 81, 0.4); font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.05rem; color: var(--gold-dark);
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .rd-option:hover input:not(:checked) + span { background: rgba(255, 255, 255, 0.85); border-color: rgba(145, 117, 81, 0.5); transform: translateY(-2px); }
}
.rd-option:active span { transform: scale(0.98); }
.rd-option input:focus-visible + span { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.rd-option input:checked + span { font-weight: 600; background: var(--light-cream); }
.rd-option--in-place input:checked + span { border-color: var(--dark-green); box-shadow: 0 0 0 1px var(--dark-green), 0 24px 48px -36px rgba(12, 30, 20, 0.45); }
.rd-option--partly input:checked + span { border-color: var(--gold-dark); box-shadow: 0 0 0 1px var(--gold-dark), 0 24px 48px -36px rgba(12, 30, 20, 0.45); }
.rd-option--gap input:checked + span { color: #7C4048; border-color: #7C4048; box-shadow: 0 0 0 1px #7C4048, 0 24px 48px -36px rgba(12, 30, 20, 0.45); }
.rd-option--in-place input:checked + span::before { background: var(--dark-green); border-color: var(--dark-green); color: #FAF9F6; }
.rd-option--partly input:checked + span::before { background: var(--gold-dark); border-color: var(--gold-dark); color: #FAF9F6; }
.rd-option--gap input:checked + span::before { background: #7C4048; border-color: #7C4048; color: #FAF9F6; }

/* Dark-green pill buttons, as .welcome-btn--primary. */
.rd-submit-row { display: flex; justify-content: center; }
.rd-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; padding: 0.95rem 1.6rem; border-radius: 999px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--dark-green); color: #FAF9F6; border: 1px solid var(--dark-green);
  box-shadow: 0 10px 24px -14px rgba(12, 30, 20, 0.7);
  transition: background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease, transform 160ms ease;
}
.rd-submit svg { width: 15px; height: 15px; flex: none; transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) and (pointer: fine) {
  .rd-submit:hover { background: #163322; border-color: #163322; box-shadow: 0 14px 30px -14px rgba(12, 30, 20, 0.75); }
  .rd-submit:hover svg { transform: translateX(4px); }
}
.rd-submit:active { transform: scale(0.98); }
.rd-submit:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.rd-error { display: none; margin-top: 1.2rem; color: #9a4a4a; font-size: 0.92rem; font-weight: 600; text-align: center; }
.rd-error.is-shown { display: block; }

/* ---------- The stage (readiness-diagnostic.js adds .is-stepped):
   the rail of every area beside one question at a time. ---------- */
.rd-stage-head, .rd-stage-nav { display: none; }
.rd-form.is-stepped {
  display: grid; grid-template-columns: minmax(240px, 290px) minmax(0, 1fr); gap: 0; padding: 10px; scroll-margin-top: 100px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(145, 117, 81, 0.28);
  box-shadow: 0 24px 48px -36px rgba(12, 30, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.rd-form.is-stepped .rd-progress { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.rd-stage-main { display: flex; flex-direction: column; min-width: 0; min-height: clamp(500px, 62vh, 600px); padding: clamp(1.6rem, 4vw, 3.2rem) clamp(1.2rem, 4vw, 3.2rem) clamp(1.2rem, 2.4vw, 1.8rem); }
.rd-stage-main > .rd-questions { flex: 1; display: flex; align-items: center; margin: 0; }
.rd-stage-main > .rd-questions > .rd-q { width: 100%; }
.rd-form.is-stepped .rd-q:not(.is-active) { display: none; }
.rd-form.is-welcome .rd-stage-main { justify-content: center; }
.rd-form.is-welcome .rd-questions, .rd-form.is-welcome .rd-stage-nav, .rd-form.is-welcome .rd-stage-head { display: none !important; }
.rd-form.is-stepped:not(.is-welcome) .rd-welcome { display: none; }
.rd-form:not(.is-stepped) .rd-welcome { display: none; }
.rd-form[hidden] { display: none; }

/* The rail: every area, filled in gold once answered. */
.rd-rail { display: flex; flex-direction: column; padding: 1.8rem 1rem 1.2rem; border-radius: 12px; background: var(--dark-green); color: var(--light-cream); }
.rd-rail-title { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.35rem; line-height: 1.2; color: var(--light-cream); padding: 0 0.6rem; margin-bottom: 0.3rem; }
.rd-rail-sub { font-size: 0.8rem; color: rgba(250, 249, 246, 0.6); padding: 0 0.6rem; margin-bottom: 1.2rem; }
.rd-rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rd-rail-btn {
  width: 100%; display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.6rem; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: inherit; font-size: 0.84rem; line-height: 1.3; text-align: left; color: rgba(250, 249, 246, 0.7);
  transition: background-color 250ms ease, color 250ms ease;
}
.rd-rail-btn:hover { background: rgba(250, 249, 246, 0.07); color: var(--light-cream); }
.rd-rail-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 1px; }
.rd-rail-num {
  flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(229, 198, 151, 0.4); font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.82rem; color: var(--gold-light);
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}
.rd-rail-item.is-done .rd-rail-num { background: var(--gold-light); border-color: var(--gold-light); color: var(--dark-green); }
.rd-rail-item.is-current .rd-rail-btn { background: rgba(229, 198, 151, 0.14); color: var(--light-cream); }
.rd-rail-item.is-current .rd-rail-num { border-color: var(--light-cream); }
.rd-rail-crit { flex-shrink: 0; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--gold-light); }
.rd-rail-legend { display: flex; align-items: center; gap: 0.45rem; padding: 0.9rem 0.6rem 0; font-size: 0.72rem; color: rgba(250, 249, 246, 0.55); }
.rd-rail-legend .rd-rail-crit { margin-left: 0; }
.rd-rail-foot { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; padding: 1.3rem 0.6rem 0.2rem; border-top: 1px solid rgba(229, 198, 151, 0.16); }
.rd-rail-foot .rd-ring { width: 56px; height: 56px; }
.rd-rail-foot .rd-ring-seg { stroke: rgba(229, 198, 151, 0.2); stroke-width: 9; }
.rd-rail-foot .rd-ring-seg.is-done { stroke: var(--gold-light); }
.rd-rail-foot .rd-ring-seg.is-current { stroke: var(--light-cream); }
.rd-rail-foot p { margin: 0; font-size: 0.8rem; line-height: 1.45; color: rgba(250, 249, 246, 0.66); }
.rd-rail-foot strong { display: block; font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.25rem; color: var(--light-cream); }

/* Phones: a ring with the question number replaces the rail. */
.rd-ring { position: relative; width: 96px; height: 96px; }
.rd-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rd-ring-seg { fill: none; stroke: rgba(145, 117, 81, 0.2); stroke-width: 7; stroke-linecap: round; transition: stroke 400ms ease; }
.rd-ring-seg.is-done { stroke: var(--gold-dark); }
.rd-ring-seg.is-current { stroke: var(--dark-green); }
.rd-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; font-family: 'Playfair Display', serif; font-size: 1.8rem; line-height: 1; color: var(--dark-green); }
.rd-ring-text small { margin-top: 0.3rem; font-family: 'Montserrat', sans-serif; font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.rd-form.is-stepped .rd-stage-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(1.6rem, 3.4vw, 2.6rem); }
.rd-back {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.8rem 0.4rem; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--text-muted); transition: color 200ms ease;
}
.rd-back svg { width: 15px; height: 15px; }
.rd-back:hover { color: var(--dark-green); }
.rd-back:disabled { visibility: hidden; }
.rd-back:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 8px; }
.rd-keys { margin: 0; font-size: 0.8rem; color: var(--text-muted); text-align: center; }
@media (hover: none) { .rd-keys { visibility: hidden; } }
.rd-next:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.rd-next:disabled:active { transform: none; }
.rd-form.is-stepped:not(.is-last) .rd-stage-nav .rd-submit:not(.rd-next) { display: none; }
.rd-form.is-stepped.is-last .rd-next { display: none; }
.rd-form.is-stepped .rd-submit-row { display: none; }

/* ---------- Welcome: "How it works", opening the stage ---------- */
.rd-welcome { max-width: 640px; margin: 0 auto; text-align: center; }
.rd-welcome .section-tag { margin-bottom: 0.9rem; }
.rd-welcome-title { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; color: var(--dark-green); margin-bottom: 1.1rem; }
.rd-welcome-title em { font-style: italic; color: var(--gold-dark); }
.rd-welcome .rd-underline { margin: 0 auto 1.4rem; }
.rd-welcome-lede { font-size: 1rem; line-height: 1.8; color: var(--text-muted); margin: 0 auto 2rem; max-width: 32em; }
.rd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; list-style: none; margin: 0 0 2.2rem; padding: 0; counter-reset: rd-step; text-align: left; }
.rd-steps li { counter-increment: rd-step; padding: 1.2rem 1.1rem 1.1rem; border-radius: 12px; background: var(--light-cream); border: 1px solid rgba(145, 117, 81, 0.22); }
.rd-steps li::before { content: '0' counter(rd-step); display: block; margin-bottom: 0.7rem; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--gold-dark); }
.rd-steps strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--dark-green); margin-bottom: 0.3rem; }
.rd-steps span { display: block; font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); }

/* ---------- Result ---------- */
.rd-result {
  padding: 10px 10px clamp(1.6rem, 3.6vw, 2.6rem); border-radius: 18px;
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(145, 117, 81, 0.28);
  box-shadow: 0 24px 48px -36px rgba(12, 30, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.rd-result:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .rd-result.is-shown { animation: rd-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .rd-result.is-shown #js-rd-dial-value { transition: stroke-dashoffset 1200ms cubic-bezier(0.16, 1, 0.3, 1) 200ms; }
}
@keyframes rd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* The score opens on dark green, as the site's dark bands do. */
.rd-result-top {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.4rem; align-items: center; margin-bottom: 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 12px; background: var(--dark-green); color: var(--light-cream);
}
.rd-result-top .section-tag { color: var(--gold-light); }
.rd-dial { position: relative; width: 180px; height: 180px; }
.rd-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rd-dial circle { fill: none; stroke-width: 8; }
.rd-dial-track { stroke: rgba(229, 198, 151, 0.18); }
#js-rd-dial-value { stroke: var(--gold-light); stroke-linecap: round; }
.rd-dial-text { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 60px; margin: 0; font-family: 'Playfair Display', serif; color: var(--light-cream); }
.rd-dial-text #js-rd-total { font-size: 3.4rem; line-height: 1; }
.rd-dial-text small { font-size: 1.05rem; color: var(--gold-light); margin-left: 0.3rem; }
.rd-band { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; color: var(--light-cream); margin: 0 0 1.2rem; }
.rd-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.rd-scale li { padding-top: 0.6rem; border-top: 2px solid rgba(229, 198, 151, 0.2); font-size: 0.72rem; line-height: 1.4; color: rgba(250, 249, 246, 0.6); }
.rd-scale li.is-current { border-top-color: var(--gold-light); color: var(--light-cream); }
.rd-scale-range { display: block; font-weight: 700; letter-spacing: 0.04em; }
.rd-scale li.is-current .rd-scale-range { color: var(--gold-light); }

.rd-warning { margin: 0 clamp(0.4rem, 2.6vw, 2rem) 2rem; }
.rd-warning ul { margin: 0.6rem 0 0 1.1rem; font-size: 0.92rem; color: var(--dark-green); line-height: 1.7; }

.rd-columns { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.4rem; margin: 0 clamp(0.4rem, 2.6vw, 2rem) 2.2rem; text-align: left; }
.rd-columns h3 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.35rem; color: var(--dark-green); margin-bottom: 1rem; }
.rd-areas { list-style: none; margin: 0; padding: 0; }
.rd-area { display: grid; grid-template-columns: minmax(0, 1fr) 56px 6.6em; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(145, 117, 81, 0.16); font-size: 0.88rem; color: var(--dark-green); }
.rd-area-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.rd-area-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.rd-area-meter i { height: 6px; border-radius: 3px; background: rgba(145, 117, 81, 0.18); }
.rd-area--in-place .rd-area-meter i { background: var(--dark-green); }
.rd-area--partly .rd-area-meter i:first-child { background: var(--gold-dark); }
.rd-area-status { font-size: 0.76rem; font-weight: 600; text-align: right; color: var(--text-muted); }
.rd-area--in-place .rd-area-status { color: var(--dark-green); }
.rd-area--partly .rd-area-status { color: var(--gold-dark); }
.rd-area--gap .rd-area-status { color: #7C4048; }

.rd-priorities { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.rd-priority { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0.9rem; padding: 1.05rem 1.1rem; border-radius: 12px; background: var(--light-cream); border: 1px solid rgba(145, 117, 81, 0.22); }
.rd-priority.is-critical { border-color: rgba(124, 64, 72, 0.32); }
.rd-priority-rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold-dark); border: 1px solid rgba(145, 117, 81, 0.4); }
.rd-priority-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.94rem; color: var(--dark-green); margin-bottom: 0.3rem; }
.rd-priority-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(145, 117, 81, 0.14); color: var(--gold-dark); }
.rd-priority.is-critical .rd-priority-tag { background: rgba(124, 64, 72, 0.1); color: #7C4048; }
.rd-priority-text { font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); }
.rd-priority-none { font-size: 0.94rem; color: var(--dark-green); }

.rd-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; padding-top: 1.8rem; border-top: 1px solid rgba(145, 117, 81, 0.16); margin: 0 clamp(0.4rem, 2.6vw, 2rem) 1.1rem; }
.rd-actions .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.95rem 1.6rem; border-radius: 999px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
  background: var(--dark-green); color: #FAF9F6; border: 1px solid var(--dark-green); box-shadow: 0 10px 24px -14px rgba(12, 30, 20, 0.7);
  transition: background-color 400ms ease, border-color 400ms ease, transform 160ms ease;
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.95rem 1.6rem; border-radius: 999px; text-decoration: none; text-align: center;
  font-family: 'Montserrat', sans-serif; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.45); color: var(--dark-green); border: 1px solid rgba(12, 30, 20, 0.2);
  transition: background-color 400ms ease, border-color 400ms ease, transform 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .rd-actions .btn-primary:hover { background: #163322; border-color: #163322; }
  .btn-outline:hover { background: rgba(255, 255, 255, 0.85); border-color: rgba(12, 30, 20, 0.4); }
}
.btn-outline:active, .rd-actions .btn-primary:active { transform: scale(0.98); }
.btn-outline:focus-visible, .rd-actions .btn-primary:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.rd-restart { display: block; margin: 0 auto; background: none; border: 0; color: var(--gold-dark); font: inherit; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.rd-disclaimer { margin-top: 2.4rem; font-size: 0.86rem; line-height: 1.7; color: var(--text-muted); border-top: 1px solid rgba(145, 117, 81, 0.2); padding-top: 1.3rem; text-align: center; }
.rd-noscript { padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid rgba(145, 117, 81, 0.28); background: rgba(255, 255, 255, 0.62); margin-bottom: 1.5rem; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 860px) {
  .rd-form.is-stepped { grid-template-columns: 1fr; padding: 0; }
  .rd-rail { display: none; }
  .rd-form.is-stepped .rd-stage-head { display: flex; justify-content: center; margin-bottom: 1.4rem; }
  .rd-stage-main { min-height: 0; }
}
@media (max-width: 760px) {
  .rd-steps { grid-template-columns: 1fr; }
  .rd-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; padding: 1rem 1.1rem; }
  .rd-steps li::before { grid-row: span 2; margin: 0; }
  .rd-columns { grid-template-columns: 1fr; }
  .rd-result-top { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.2rem; }
  .rd-scale { text-align: left; }
}
@media (max-width: 600px) {
  .rd-options { grid-template-columns: 1fr; gap: 10px; }
  .rd-option span { flex-direction: row; justify-content: flex-start; min-height: 64px; padding: 0.8rem 1.1rem; gap: 1rem; text-align: left; border-radius: 14px; }
  .rd-option span::before { width: 32px; height: 32px; }
  .rd-keys { display: none; }
  .rd-dial { width: 156px; height: 156px; }
  .rd-dial-text { padding-top: 50px; }
  .rd-scale { grid-template-columns: 1fr 1fr; row-gap: 0.7rem; }
  .rd-warning, .rd-columns, .rd-actions { margin-left: 0; margin-right: 0; }
  .rd-actions .btn-primary, .rd-actions .btn-outline { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-option span, .rd-submit, .rd-submit svg, .rd-actions .btn-primary, .btn-outline { transition-property: background-color, border-color, box-shadow, color; }
  .rd-option:hover input:not(:checked) + span, .rd-option:active span, .rd-submit:active, .rd-submit:hover svg { transform: none !important; }
}

/* ---------- Download My Results: a printed / saved-as-PDF results sheet ---------- */
.rd-print { display: none; }
@media print {
  @page { margin: 15mm; }
  body { background: #fff !important; }
  body > *:not(.rd-print) { display: none !important; }
  .rd-print { display: block !important; color: #111; font: 10pt/1.5 'Montserrat', Arial, sans-serif; }
  .rd-print-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #917551; padding-bottom: 8px; margin-bottom: 14px; }
  .rd-print-head img { width: 34px; height: 34px; }
  .rd-print h1 { font: 400 16pt 'Playfair Display', Georgia, serif; margin: 0; }
  .rd-print h2 { font: 400 12.5pt 'Playfair Display', Georgia, serif; margin: 14px 0 6px; }
  .rd-print .rd-print-score { font: 400 24pt 'Playfair Display', Georgia, serif; margin: 4px 0; }
  .rd-print .rd-print-warning { border: 1.5px solid #917551; border-left-width: 4px; padding: 8px 10px; margin: 10px 0; }
  .rd-print table { width: 100%; border-collapse: collapse; margin-top: 6px; }
  .rd-print th, .rd-print td { text-align: left; vertical-align: top; border-bottom: 1px solid #ddd; padding: 4px; font-size: 9pt; }
  .rd-print ol, .rd-print ul { list-style: revert; padding-left: 18px; margin: 4px 0; }
  .rd-print .rd-print-priorities li { margin-bottom: 4px; font-size: 9.5pt; }
  .rd-print .rd-print-foot { margin-top: 14px; font-size: 8.5pt; color: #555; }
}
