/* Roya Consult Quizzes — scoped under .rq-root so theme styles do not leak in.
   Brand colors and fonts are fixed here rather than read from the theme, so the quiz looks the same on any site. */

.rq-root {
  --rq-navy: #0f3065;
  --rq-navy-deep: #0a2349;
  --rq-royal: #073d96;
  --rq-ink: #181818;
  --rq-gold: #eec995;
  --rq-gold-tint: #f1e0c8;
  --rq-linen: #f8f5f2;
  --rq-grey: #515151;
  --rq-white: #ffffff;
  --rq-ink-soft: #3a3a3a;
  --rq-line: #e2dbd0;
  --rq-line-soft: #ece6dc;
  --rq-surface-alt: #f8f0e4;
  --rq-gold-text: #a5793a;
  --rq-gold-hover: #e6b97a;
  --rq-urgent: #a33a2a;
  --rq-urgent-bg: #f9ece8;
  --rq-note-bg: #f1e0c8;
  --rq-note-line: #eec995;
  --rq-note-ink: #5c451c;
  --rq-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --rq-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ui-font: var(--rq-body);
  --rq-r: 8px;
  --rq-r-btn: 12px;

  /* Shared component kit (clinical-ui.css), re-pointed at this palette so the
     question flow uses the same components as the practice's other apps while
     staying patient-facing in scale. Scoped here, so the kit's own defaults are
     untouched anywhere else on the page. */
  --ui-surface: var(--rq-white);
  --ui-surface-alt: var(--rq-surface-alt);
  --ui-bg: var(--rq-linen);
  --ui-border: var(--rq-line-soft);
  --ui-border-strong: var(--rq-line);
  --ui-accent: var(--rq-navy);
  --ui-accent-strong: var(--rq-royal);
  --ui-accent-dim: var(--rq-gold-tint);
  --ui-text: var(--rq-ink);
  --ui-text-mid: var(--rq-ink-soft);
  --ui-text-muted: var(--rq-grey);
  --ui-text-dim: var(--rq-grey);
  --ui-red: var(--rq-urgent);
  --ui-red-dim: var(--rq-urgent-bg);
  --ui-r-sm: 6px;
  --ui-r-md: var(--rq-r);
  font-family: var(--rq-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--rq-ink);
  box-sizing: border-box;
}
.rq-root *, .rq-root *::before, .rq-root *::after { box-sizing: border-box; }
.rq-root p { margin: 0; }
.rq-root h3, .rq-root h4 {
  margin: 0; font-family: var(--rq-display); font-weight: 600; line-height: 1.2;
  letter-spacing: .01em; color: var(--rq-navy); text-wrap: balance;
}
.rq-root button {
  appearance: none; -webkit-appearance: none; font: inherit; letter-spacing: normal;
  text-transform: none; box-shadow: none; margin: 0; line-height: inherit; border-radius: 0;
}
/* the reset above outranks the kit's own rules, so give kit buttons their shape back,
   at the size a patient taps rather than the kit's dense internal-tool size */
.rq-root .ui-btn {
  border-radius: var(--rq-r-btn); font-size: .95rem; font-weight: 500;
  padding: .9rem 1.5rem; line-height: 1.2; display: inline-flex; align-items: center; gap: .5rem;
}
.rq-root .ui-btn-sm { padding: .5rem .9rem; font-size: .85rem; border-radius: var(--ui-r-sm); }
.rq-root .ui-btn-primary { box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.rq-root .ui-btn-gold { background: var(--rq-gold); color: var(--rq-navy); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.rq-root .ui-btn-gold:hover { background: var(--rq-gold-hover); color: var(--rq-navy); }
.rq-root :focus-visible { outline: 2px solid var(--rq-gold); outline-offset: 3px; }
.rq-root a { text-decoration: none; }
.rq-label {
  font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------------- launchers ---------------- */
/* one card per line, centered column; each card is a self-contained call to action */
.rq-cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }

.rq-card {
  position: relative; overflow: hidden; box-sizing: border-box; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: .75rem; width: 100%; text-align: center;
  background: var(--rq-white); color: var(--rq-ink);
  border: 1px solid var(--rq-line); border-radius: 14px;
  padding: clamp(2rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.8rem) clamp(1.8rem, 4vw, 2.3rem);
  box-shadow: 0 2px 4px rgba(10, 35, 73, .04), 0 10px 28px rgba(10, 35, 73, .08);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
/* gold bar across the top of every card */
.rq-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--rq-gold-text), var(--rq-gold) 50%, var(--rq-gold-text));
}
.rq-card:hover, .rq-card:focus-visible {
  transform: translateY(-4px); border-color: var(--rq-gold); background: var(--rq-white);
  box-shadow: 0 4px 8px rgba(10, 35, 73, .06), 0 18px 40px rgba(10, 35, 73, .16), 0 0 0 3px rgba(238, 201, 149, .35);
}
.rq-card:focus-visible { outline: none; }
.rq-card > span { display: block; }
.rq-card .rq-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rq-gold-text);
}
.rq-card .rq-kicker::before, .rq-card .rq-kicker::after { content: ""; width: 22px; height: 2px; background: var(--rq-gold); }
.rq-card .rq-ttl {
  font-family: var(--rq-display); font-weight: 600; font-size: clamp(1.75rem, 3.6vw, 2.25rem);
  line-height: 1.15; color: var(--rq-navy); text-wrap: balance; max-width: 26ch;
}
.rq-card .rq-p { font-size: 1rem; line-height: 1.55; color: var(--rq-ink-soft); max-width: 48ch; }
.rq-card .rq-meta {
  margin-top: .2rem; padding: .35rem .85rem; border-radius: 999px;
  background: var(--rq-surface-alt); border: 1px solid var(--rq-line);
  font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--rq-gold-text);
}
.rq-card .rq-go {
  margin-top: .6rem; padding: .95rem 1.9rem; border-radius: 999px;
  background: var(--rq-navy); color: var(--rq-white);
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(15, 48, 101, .25);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.rq-card:hover .rq-go, .rq-card:focus-visible .rq-go { background: var(--rq-gold); color: var(--rq-navy); box-shadow: 0 8px 20px rgba(165, 121, 58, .35); }
@media (prefers-reduced-motion: reduce) { .rq-card, .rq-card .rq-go { transition: none; } .rq-card:hover { transform: none; } }

.rq-inline { display: inline-block; }
.rq-textlink { background: none; border: 0; padding: 0; color: var(--rq-royal); text-decoration: underline; cursor: pointer; font: inherit; }
.rq-textlink:hover { color: var(--rq-navy); }

/* ---------------- buttons ---------------- */
.rq-btn {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 500;
  padding: .9rem 1.5rem; border-radius: var(--rq-r-btn); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.rq-btn-primary { background: var(--rq-navy); color: var(--rq-white); }
.rq-btn-primary:hover { background: var(--rq-royal); color: var(--rq-white); }
.rq-btn-gold { background: var(--rq-gold); color: var(--rq-navy); }
.rq-btn-gold:hover { background: var(--rq-gold-hover); color: var(--rq-navy); }
.rq-btn-ghost { background: transparent; border-color: var(--rq-line); color: var(--rq-royal); box-shadow: none; }
.rq-btn-ghost:hover { border-color: var(--rq-royal); color: var(--rq-royal); }

/* ---------------- modal ---------------- */
html.rq-lock { overflow: hidden; }
.rq-scrim {
  position: fixed; inset: 0; z-index: 100000; display: none;
  align-items: flex-start; justify-content: center;
  padding: clamp(.5rem, 4vw, 3rem); overflow-y: auto;
  background: rgba(10, 22, 44, .58); backdrop-filter: blur(3px);
}
.rq-scrim.rq-open { display: flex; }
.rq-quiz {
  width: min(680px, 100%); position: relative; overflow: hidden;
  background: var(--rq-linen); border: 1px solid var(--rq-line); border-radius: var(--rq-r);
  box-shadow: 0 20px 50px rgba(10, 35, 73, .25);
}
/* Branded header band — the same navy the result screen opens with, so the whole
   quiz reads as one piece rather than a plain dialog. On the result step the band
   and the result's own navy panel meet and simply continue. */
.rq-head {
  display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem;
  background: var(--rq-navy); border-bottom: 0;
}
.rq-title {
  font-size: .72rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rq-title b { color: var(--rq-gold); font-weight: 600; }
@media (max-width: 480px) { .rq-title .rq-org { display: none; } }
.rq-root .rq-x {
  margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: none; border: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .85);
  font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0;
  transition: var(--ui-transition, all .12s ease);
}
.rq-root .rq-x:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .12); }
.rq-root .rq-skip {
  margin-left: auto; flex: none; background: none; border: 1px dashed #e9927f; color: #ffd9d0;
  border-radius: 999px; font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .7rem; cursor: pointer;
}
.rq-root .rq-skip + .rq-x { margin-left: 0; }
/* gold thread across the navy — the progress bar doubles as the divider */
.rq-progress { height: 3px; background: var(--rq-navy-deep); }
.rq-progress i { display: block; height: 100%; width: 0; background: var(--rq-gold); transition: width 320ms ease; }

.rq-body { padding: clamp(1.4rem, 4vw, 2.2rem); }
/* step marker picks up the brass of the result's eyebrow, with a short gold rule */
.rq-stepnum {
  display: flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: var(--rq-gold-text); margin-bottom: .9rem;
}
.rq-stepnum::before { content: ""; width: 22px; height: 2px; background: var(--rq-gold); flex: none; }
/* .rq-root-prefixed so the h3/p margin reset above does not cancel the spacing */
.rq-root .rq-qtext { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: .5rem; }
.rq-root .rq-qhelp { font-size: .92rem; color: var(--rq-grey); margin-bottom: 1.5rem; }
.rq-root .rq-qtext + .rq-opts { margin-top: 1.25rem; }

/* An answer is a full-width tap target, so it keeps its size — but it is built on the
   kit's surface, border, radius and transition tokens, and lights up in the kit accent. */
.rq-opts { display: flex; flex-direction: column; gap: .5rem; }
.rq-opt {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left;
  background: var(--ui-surface); color: var(--ui-text);
  border: 1px solid var(--ui-border-strong); border-radius: var(--ui-r-md);
  padding: .95rem 1.1rem; font-size: 1rem; cursor: pointer;
  transition: var(--ui-transition, all .12s ease);
}
.rq-opt:hover { border-color: var(--ui-accent); background: var(--ui-surface-alt); color: var(--ui-text); }
.rq-opt[aria-pressed="true"] { border-color: var(--ui-accent); background: var(--ui-accent-dim); }
.rq-dot { width: 10px; height: 10px; flex: none; border: 1px solid var(--ui-text-muted); border-radius: 50%; }
.rq-opt[aria-pressed="true"] .rq-dot { background: var(--ui-accent); border-color: var(--ui-accent); }
.rq-sub { display: block; font-size: .83rem; color: var(--rq-grey); margin-top: 2px; }

.rq-nav { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.rq-nav-result { margin-top: 1.75rem; flex-wrap: wrap; }
.rq-spacer { margin-left: auto; }
/* Back is now a kit ghost button; the step heading takes focus for screen readers
   on every step, and it is not tab-reachable, so it should not draw a focus ring. */
.rq-root h3[tabindex="-1"]:focus, .rq-root h3[tabindex="-1"]:focus-visible { outline: none; }

/* ---------------- contact step ---------------- */
.rq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.rq-field { display: flex; flex-direction: column; gap: .35rem; }
.rq-full { grid-column: 1 / -1; }
.rq-field label { font-size: .7rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; color: var(--rq-grey); margin: 0; }
.rq-root .rq-field input, .rq-root .rq-field select {
  font: inherit; font-size: 1rem; padding: .75rem .85rem; margin: 0; width: 100%;
  background: var(--ui-surface); border: 1px solid var(--ui-border-strong); border-radius: var(--ui-r-md); color: var(--ui-text);
  box-shadow: none; letter-spacing: normal;
  /* themes often fix a select's height, which clips its text */
  height: auto; min-height: 3.1rem; line-height: 1.4;
}
.rq-root .rq-field input:focus, .rq-root .rq-field select:focus { border-color: var(--rq-royal); outline: none; }
.rq-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rq-consent {
  grid-column: 1 / -1; display: flex; gap: .7rem; align-items: flex-start; margin: .3rem 0 0;
  font-size: .82rem; line-height: 1.5; color: var(--rq-grey); font-weight: 400;
  border-top: 1px solid var(--rq-line-soft); padding-top: 1rem;
}
.rq-root .rq-sms { grid-column: 1 / -1; border-top: 1px solid var(--rq-line-soft); padding-top: 1rem; margin-top: .3rem; }
.rq-root .rq-sms-h { font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--rq-grey); margin-bottom: .55rem; }
.rq-root .rq-sms-h span { text-transform: none; letter-spacing: normal; font-weight: 400; }
.rq-root .rq-check { display: flex; gap: .6rem; align-items: center; font-size: .9rem; color: var(--rq-ink); margin: .35rem 0; cursor: pointer; }
.rq-root .rq-check input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--rq-navy); }
.rq-root .rq-sms-fine { margin: .45rem 0 0; font-size: .76rem; color: var(--rq-grey); }
.rq-root .rq-legal { grid-column: 1 / -1; margin: .9rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--rq-grey); }
.rq-root .rq-legal a { color: var(--rq-royal); text-decoration: underline; }
.rq-root .rq-legal a:hover { color: var(--rq-navy); }
.rq-root .rq-consent input { margin: .25rem 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--rq-navy); }
.rq-err { grid-column: 1 / -1; color: var(--rq-urgent); font-size: .9rem; margin: 0; }
@media (max-width: 560px) { .rq-fields { grid-template-columns: 1fr; } }

/* ---------------- result ---------------- */
.rq-rhead { background: var(--rq-navy); color: var(--rq-white); padding: clamp(1.4rem, 4vw, 2.2rem); }
.rq-rhead .rq-eyebrow {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rq-gold);
}
.rq-rhead .rq-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--rq-gold); flex: none; }
.rq-rhead h3 { color: var(--rq-white); font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: .7rem; }
.rq-rhead p { color: #c9d3e6; font-size: 1rem; }

.rq-urgent {
  background: var(--rq-urgent-bg); border-left: 3px solid var(--rq-urgent); border-radius: 0 var(--rq-r) var(--rq-r) 0;
  padding: 1rem 1.2rem; margin-bottom: 1.4rem;
}
.rq-urgent h4 { color: var(--rq-urgent); font-size: 1.3rem; margin-bottom: .3rem; }
.rq-urgent p { font-size: .92rem; color: var(--rq-ink-soft); }
.rq-urgent-cta { margin-top: .8rem; }

.rq-findings { border-top: 1px solid var(--rq-line); }
.rq-finding { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.05rem 0; border-bottom: 1px solid var(--rq-line-soft); }
.rq-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--rq-gold); margin-top: .55rem; }
.rq-finding h4 { font-size: 1.3rem; margin-bottom: .25rem; }
.rq-finding p { font-size: .92rem; color: var(--rq-ink-soft); }

.rq-submitnote {
  background: var(--rq-note-bg); border: 1px solid var(--rq-note-line); border-left-width: 3px; border-radius: 0 var(--rq-r) var(--rq-r) 0;
  color: var(--rq-note-ink); font-size: .9rem; padding: .8rem 1rem; margin-top: 1.25rem;
}
.rq-recap { font-size: .8rem; line-height: 1.7; color: var(--rq-grey); border-top: 1px solid var(--rq-line); margin-top: 1.5rem; padding-top: 1rem; }
.rq-recap b { color: var(--rq-ink-soft); font-weight: 500; }

/* ---------------- testing tools ---------------- */
.rq-previewbar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .6rem 1.25rem;
  background: var(--rq-urgent-bg); border-bottom: 1px dashed var(--rq-urgent); color: var(--rq-urgent);
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
}
.rq-cycle,
.rq-backform { margin-left: auto; background: none; border: 1px solid var(--rq-urgent); color: var(--rq-urgent); border-radius: 999px; font: inherit; padding: .3rem .7rem; cursor: pointer; }
.rq-skipform-wrap { margin: .9rem 0 0; text-align: center; }
.rq-root .rq-skipform {
  background: none; border: 1px dashed var(--rq-urgent); color: var(--rq-urgent); border-radius: 999px;
  font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .85rem; cursor: pointer;
}
.rq-root .rq-skipform:hover { background: var(--rq-urgent-bg); }
.rq-payload { border-top: 1px solid var(--rq-line); background: var(--rq-surface-alt); padding: 1.1rem 1.25rem; }
.rq-payload summary { font-size: .7rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; color: var(--rq-grey); cursor: pointer; }
.rq-payload pre {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .72rem; line-height: 1.6; margin: .9rem 0 0;
  background: var(--rq-white); border: 1px solid var(--rq-line); border-radius: var(--rq-r); padding: .9rem; overflow-x: auto; color: var(--rq-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .rq-root * { transition-duration: .001ms !important; }
}

/* ---------------- quiz on its own page / [roya_quiz style="inline"] ---------------- */
.rq-quiz-page { padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem); }
.rq-page .rq-quiz { width: min(720px, 100%); margin: 0 auto; box-shadow: 0 6px 24px rgba(10, 35, 73, .10); }
.rq-page .rq-head { padding: 1.1rem 1.4rem; }
.rq-root.rq-page .rq-skip { margin-left: auto; }
.rq-root .rq-skip + .rq-exit { margin-left: 0; }

/* editor-only scenario shortcuts (quiz pages and the preview page) */
.rq-scen { max-width: 720px; margin: 1.5rem auto 0; padding: 1.25rem; border: 1px dashed #a33a2a; border-radius: 8px; background: #f9ece8; font-family: var(--rq-body, inherit); }
.rq-scen h2 { font-size: 1rem; margin: 0 0 .6rem; color: #a33a2a; font-family: inherit; letter-spacing: .06em; text-transform: uppercase; }
.rq-scen-group { margin-bottom: .9rem; }
.rq-scen-group h3 { font-size: .8rem; margin: 0 0 .4rem; color: #515151; font-family: inherit; text-transform: uppercase; letter-spacing: .1em; }
.rq-scen-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.rq-scen-btn { font: inherit; font-size: .85rem; background: #fff; color: #181818; border: 1px solid #e2dbd0; border-radius: 8px; padding: .45rem .8rem; cursor: pointer; letter-spacing: normal; text-transform: none; }
.rq-scen-btn:hover { border-color: #a33a2a; }
.rq-scen-btn .u { color: #a33a2a; font-size: .72rem; margin-left: .35rem; font-weight: 500; }
.rq-scen-note { margin: 0; font-size: .85rem; color: #515151; }

/* ---------------- site theme (Settings → Appearance → Match the website fonts and panels) ---------------- */
/* Roya Consult Quizzes — "site" theme (draft).
   Borrows royaoralsurgery.com's vocabulary: Poppins headings, DM Sans body, soft grey
   rounded panels, cream buttons with navy text, no gold ornament. Navy stays as the accent. */

.rq-root.rq-theme-site {
  --rq-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --rq-body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --rq-site-panel: #f7f7f7;
  --rq-site-cream: #f1e0c8;
  --rq-r: 12px;
  --rq-r-btn: 12px;
  --rq-linen: #ffffff;
  --rq-surface-alt: #f7f7f7;
  --rq-line: #e6e6e6;
  --rq-line-soft: #ededed;
  --rq-gold: #d9c2a0;
  --rq-gold-text: #0f3065;
  --ui-accent-dim: #eef2f8;
  font-size: 17px;
}
.rq-root.rq-theme-site h3, .rq-root.rq-theme-site h4 { font-family: var(--rq-display); font-weight: 500; letter-spacing: 0; color: #111; }

/* ---- intro card: a flat grey panel like the page's own content boxes ---- */
.rq-root.rq-theme-site .rq-cards { max-width: 900px; }
.rq-root.rq-theme-site .rq-card {
  background: var(--rq-site-panel); border: 0; border-radius: 20px; box-shadow: none;
  padding: clamp(2.2rem, 4vw, 3rem) clamp(1.4rem, 5vw, 3.5rem);
}
.rq-root.rq-theme-site .rq-card::before { display: none; }
.rq-root.rq-theme-site .rq-card:hover, .rq-root.rq-theme-site .rq-card:focus-visible {
  transform: none; background: #f3f3f3; box-shadow: 0 0 0 2px rgba(15, 48, 101, .12);
}
.rq-root.rq-theme-site .rq-card .rq-kicker { color: var(--rq-navy); letter-spacing: .12em; font-size: .78rem; font-weight: 600; }
.rq-root.rq-theme-site .rq-card .rq-kicker::before, .rq-root.rq-theme-site .rq-card .rq-kicker::after { display: none; }
.rq-root.rq-theme-site .rq-card .rq-ttl {
  font-family: var(--rq-display); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.2; color: #111; max-width: 30ch;
}
.rq-root.rq-theme-site .rq-card .rq-p { font-size: 1.1rem; line-height: 1.6; color: #181818; max-width: 52ch; }
.rq-root.rq-theme-site .rq-card .rq-meta {
  background: #fff; border-color: var(--rq-line); color: #515151; letter-spacing: .04em; text-transform: none; font-size: .85rem;
}
.rq-root.rq-theme-site .rq-card .rq-go {
  margin-top: .9rem; padding: .95rem 1.9rem; border-radius: 12px;
  background: var(--rq-site-cream); color: var(--rq-navy);
  font-family: var(--rq-body); font-size: 1.05rem; font-weight: 500; letter-spacing: 0; text-transform: none; box-shadow: none;
}
.rq-root.rq-theme-site .rq-card:hover .rq-go, .rq-root.rq-theme-site .rq-card:focus-visible .rq-go {
  background: var(--rq-navy); color: #fff; box-shadow: none;
}

/* ---- buttons everywhere inside the quiz ---- */
.rq-root.rq-theme-site .ui-btn, .rq-root.rq-theme-site .rq-btn { border-radius: 12px; font-size: 1rem; font-weight: 500; padding: .9rem 1.5rem; box-shadow: none; }
.rq-root.rq-theme-site .ui-btn-sm { padding: .55rem 1rem; font-size: .9rem; border-radius: 10px; }
.rq-root.rq-theme-site .ui-btn-primary, .rq-root.rq-theme-site .rq-btn-primary { background: var(--rq-navy); color: #fff; font-weight: 500; }
.rq-root.rq-theme-site .ui-btn-primary:hover, .rq-root.rq-theme-site .rq-btn-primary:hover { background: var(--rq-royal); opacity: 1; }
.rq-root.rq-theme-site .ui-btn-gold, .rq-root.rq-theme-site .rq-btn-gold { background: var(--rq-site-cream); color: var(--rq-navy); font-weight: 500; }
.rq-root.rq-theme-site .ui-btn-gold:hover, .rq-root.rq-theme-site .rq-btn-gold:hover { background: var(--rq-navy); color: #fff; }
.rq-root.rq-theme-site .ui-btn-ghost, .rq-root.rq-theme-site .rq-btn-ghost { border-color: #d8d8d8; color: #515151; }
.rq-root.rq-theme-site .ui-btn-ghost:hover, .rq-root.rq-theme-site .rq-btn-ghost:hover { border-color: var(--rq-navy); color: var(--rq-navy); }
.rq-root.rq-theme-site :focus-visible { outline-color: var(--rq-navy); }

/* ---- the quiz dialog ---- */
.rq-root.rq-theme-site .rq-quiz { background: #fff; border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(10, 35, 73, .28); }
.rq-root.rq-theme-site .rq-head { padding: 1.05rem 1.4rem; }
.rq-root.rq-theme-site .rq-title { font-size: .8rem; letter-spacing: .06em; text-transform: none; color: rgba(255, 255, 255, .78); }
.rq-root.rq-theme-site .rq-title b { color: #fff; font-weight: 600; }
.rq-root.rq-theme-site .rq-progress { background: #0a2349; }
.rq-root.rq-theme-site .rq-progress i { background: var(--rq-site-cream); }
.rq-root.rq-theme-site .rq-body { padding: clamp(1.5rem, 4vw, 2.4rem); }
.rq-root.rq-theme-site .rq-stepnum { color: var(--rq-navy); letter-spacing: .08em; font-size: .78rem; font-weight: 600; }
.rq-root.rq-theme-site .rq-stepnum::before { display: none; }
.rq-root.rq-theme-site .rq-qtext { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.25; }
.rq-root.rq-theme-site .rq-qhelp { font-size: 1rem; color: #515151; }

/* answers: white tiles on the white dialog, so give them the page's grey fill */
.rq-root.rq-theme-site .rq-opt { background: var(--rq-site-panel); border: 1px solid transparent; border-radius: 12px; padding: 1rem 1.15rem; font-size: 1.02rem; }
.rq-root.rq-theme-site .rq-opt:hover { background: #efefef; border-color: #d8d8d8; }
.rq-root.rq-theme-site .rq-opt[aria-pressed="true"] { background: #eef2f8; border-color: var(--rq-navy); }
.rq-root.rq-theme-site .rq-dot { border-color: #9a9a9a; }

/* contact step */
.rq-root.rq-theme-site .rq-field label { font-size: .85rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: #333; }
.rq-root.rq-theme-site .rq-field input, .rq-root.rq-theme-site .rq-field select { background: var(--rq-site-panel); border: 1px solid transparent; border-radius: 12px; min-height: 3.2rem; }
.rq-root.rq-theme-site .rq-field input:focus, .rq-root.rq-theme-site .rq-field select:focus { background: #fff; border-color: var(--rq-navy); }
.rq-root.rq-theme-site .rq-sms-h { font-size: .85rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: #333; }
.rq-root.rq-theme-site .rq-consent, .rq-root.rq-theme-site .rq-sms { border-top-color: #e6e6e6; }
.rq-root.rq-theme-site .rq-legal a, .rq-root.rq-theme-site .rq-sms-fine a { color: var(--rq-navy); }

/* result */
.rq-root.rq-theme-site .rq-rhead .rq-eyebrow { color: var(--rq-site-cream); letter-spacing: .08em; font-size: .78rem; font-weight: 600; }
.rq-root.rq-theme-site .rq-rhead .rq-eyebrow::before { display: none; }
.rq-root.rq-theme-site .rq-rhead h3 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.rq-root.rq-theme-site .rq-rhead p { color: #d6deed; font-size: 1.02rem; }
.rq-root.rq-theme-site .rq-findings { border-top: 0; display: grid; gap: .8rem; }
.rq-root.rq-theme-site .rq-finding { background: var(--rq-site-panel); border: 0; border-radius: 14px; padding: 1.05rem 1.2rem; }
.rq-root.rq-theme-site .rq-mark { background: var(--rq-navy); }
.rq-root.rq-theme-site .rq-finding h4 { font-size: 1.15rem; }
.rq-root.rq-theme-site .rq-finding p { font-size: .95rem; color: #333; }
.rq-root.rq-theme-site .rq-urgent { border-radius: 14px; border-left-width: 4px; }
.rq-root.rq-theme-site .rq-recap { border-top-color: #e6e6e6; }

/* ---------------- printable result (the "Print my result" button) ----------------
   #rq-print is appended to <body> only while printing. Nothing else on the page prints;
   the sheet is plain black on white in the brand serif + Roboto, whichever theme is on. */
#rq-print { display: none; }
@media print {
  html.rq-has-print, body.rq-has-print { background: #fff !important; height: auto !important; overflow: visible !important; }
  body.rq-has-print > :not(#rq-print) { display: none !important; }
  body.rq-has-print #rq-print { display: block; position: static; width: 100%; background: #fff; color: #1d2433; font: 400 11pt/1.5 Roboto, Arial, sans-serif; }
  #rq-print h1, #rq-print h2, #rq-print h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; color: #0f3065; margin: 0; }
  #rq-print h1 { font-size: 24pt; line-height: 1.15; }
  #rq-print .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 2px solid #0f3065; padding-bottom: 10px; margin-bottom: 14px; }
  #rq-print .top small { font-size: 9pt; color: #5b6475; text-align: right; line-height: 1.4; white-space: nowrap; }
  #rq-print .eyebrow { font-size: 8.5pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a6d2f; margin-bottom: 6px; }
  #rq-print .intro { margin: 0 0 14px; font-size: 11.5pt; }
  #rq-print h2 { font-size: 15pt; margin: 16px 0 8px; border-bottom: 1px solid #e3dace; padding-bottom: 3px; }
  #rq-print .urgent { border-left: 3px solid #b23b3b; padding: 6px 12px; margin: 12px 0; break-inside: avoid; }
  #rq-print .urgent h2 { color: #b23b3b; border: 0; margin: 0 0 3px; padding: 0; }
  #rq-print .urgent p { margin: 0; }
  #rq-print .finding { padding: 6px 0 8px; border-bottom: 1px solid #efeae0; break-inside: avoid; }
  #rq-print .finding h3 { font-size: 13pt; margin-bottom: 2px; }
  #rq-print .finding p { margin: 0; color: #3a4252; }
  #rq-print dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 0; font-size: 10pt; }
  #rq-print dt { color: #5b6475; }
  #rq-print dd { margin: 0; font-weight: 500; }
  #rq-print .foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid #e3dace; font-size: 9pt; color: #5b6475; }
  #rq-print .clinic { margin-top: 14px; padding-top: 10px; border-top: 2px solid #0f3065; font-size: 9.5pt; color: #1d2433; line-height: 1.5; text-align: center; }
  #rq-print .clinic b { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 13pt; color: #0f3065; }
  #rq-print .clinic span { display: block; }
  #rq-print a { color: inherit; text-decoration: none; }
}

/* Links to #quiz / #quiz-<slug> stop below the site's sticky header. */
.rq-root.rq-page, .rq-root.rq-cards, .rq-anchor { scroll-margin-top: 110px; }
.rq-anchor { display: block; height: 0; }
