/* ==========================================================================
   Zarrine Academy — shared styles
   ========================================================================== */

:root {
  --gold: #d3b183;
  --gold-dark: #c9a063;
  --gold-panel: #d5b183;
  --btn-gold: #d9a94e;
  --btn-gold-hover: #c8983f;
  --cream: #f5f0e8;
  --mint: #cfe0d6;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #d8d2c7;
  --accent: #e0538a;

  --header-h: 74px;
  --wrap: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
  display: flex;
  align-items: center;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 14px;
  color: #333;
  transition: color .2s ease;
}

.nav a:hover { color: var(--gold-dark); }
.nav a.is-active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  /* The skull PNG is a soft-edged cutout, so the page background has to sit at
     roughly the same value for the two to blend into one another. */
  background: #262320;
  background-image:
    linear-gradient(100deg, #1e1c1a 0%, #2c2825 45%, #322e2a 72%, #262320 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-media img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: right center;
}

/* Cut-out skull render: sized to leave breathing room and lit with a soft glow. */
.hero-media img[src$="hero-zygomatic-bone.png"] {
  height: 86%;
  margin-right: 8%;
  object-position: center;
  filter: drop-shadow(0 0 40px rgba(214, 171, 99, .18));
}

.hero-credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  pointer-events: auto;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-copy { max-width: 760px; padding: 60px 0; }

.hero h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.16;
  color: #fff;
  margin: 0 0 22px;
}

.hero p {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.6;
  color: #e8e4de;
  margin: 0 0 40px;
  max-width: 620px;
}

/* Pill button with circled arrow */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  color: #1a1a1a;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px 14px 26px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}

.btn-pill .circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--cream);
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-grid h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -.01em;
}

.footer-grid p,
.footer-grid address {
  margin: 0;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  color: #1f1f1f;
}

.footer-grid a:hover { color: var(--gold-dark); }

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #2a2a2a;
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease;
}

.social-icon:hover { background: #2a2a2a; color: #fff; }
.social-icon svg { width: 15px; height: 15px; }

.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid #cfc9be;
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #333;
}

/* Mint band under the footer */
.footer-band {
  background: var(--mint);
  height: 90px;
}

/* --------------------------------------------------------------------------
   Forms — shared
   -------------------------------------------------------------------------- */

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 8px;
}

.req { color: #e02b2b; }

.counter {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #8a8a8a;
  margin-bottom: 2px;
}

.input,
.textarea,
.select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: #2a2a2a;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input::placeholder,
.textarea::placeholder { color: #b3b3b3; }

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(211, 177, 131, .25);
}

.textarea { min-height: 118px; resize: vertical; }

.btn-solid {
  background: var(--btn-gold);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 11px 26px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease;
}

.btn-solid:hover { background: var(--btn-gold-hover); }

.error-msg {
  display: none;
  color: #d33;
  font-size: 12px;
  margin-top: 6px;
}

.field.has-error .input,
.field.has-error .textarea,
.field.has-error .dd-button { border-color: #d33; }

.field.has-error .error-msg { display: block; }

.form-note {
  margin-top: 16px;
  font-size: 14px;
  color: #2e7d4f;
  display: none;
}

.form-note.show { display: block; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-section {
  background: var(--mint);
  padding: 26px 0 40px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-start;
}

.contact-card {
  background: #fff;
  border-radius: 4px;
  padding: 40px 46px 46px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
}

/* --------------------------------------------------------------------------
   Assignment page
   -------------------------------------------------------------------------- */

.assignment {
  display: grid;
  grid-template-columns: 30% 1fr;
  align-items: stretch;
  background: var(--cream);
}

/* The intro panel only belongs to the first step; later steps run full width. */
.assignment.is-wide { grid-template-columns: 1fr; }
.assignment.is-wide .assignment-aside { display: none; }

.assignment-aside {
  background: var(--gold-panel);
  color: #fff;
  padding: 70px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.assignment-aside h2 {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 18px;
}

.assignment-aside p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: #fffaf3;
}

.assignment-main {
  padding: 40px 60px 60px;
  display: flex;
  flex-direction: column;
}

/* Stepper */
.stepper {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 0 0 34px;
}

.stepper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  height: 2px;
  background: #e6ded1;
}

.stepper-progress {
  position: absolute;
  left: 0;
  top: 46px;
  height: 2px;
  background: var(--gold-dark);
  transition: width .35s ease;
}

.step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.step .step-label {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: #c8bda9;
  margin-bottom: 10px;
  transition: color .25s ease;
}

.step .step-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e6ded1;
  margin: 0 auto;
  transition: background .25s ease, transform .25s ease;
}

.step.is-active .step-label,
.step.is-done .step-label { color: var(--gold-dark); }

.step.is-active .step-dot,
.step.is-done .step-dot { background: var(--gold-dark); }

.step.is-active .step-dot { transform: scale(1.15); }

.panel-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, .07);
  padding: 34px 38px 28px;
}

.panel { display: none; }
.panel.is-active { display: block; }

.panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.panel .panel-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}

.panel-placeholder {
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---- Image choice cards ---- */

.question {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 22px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 540px));
  gap: 24px;
  justify-content: start;
}

.choice {
  display: block;
  cursor: pointer;
}

.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice-media {
  display: block;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 5px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.choice-media img {
  width: 100%;
  border-radius: 5px;
}

.choice:hover .choice-media { border-color: var(--gold); }

.choice input:checked ~ .choice-media {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(211, 177, 131, .35);
}

.choice-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin: 12px 0 3px;
}

.choice-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Shown by main.js when a choice image is missing from /assets. */
.choice-media.is-missing {
  display: grid;
  place-items: center;
  min-height: 240px;
  border-style: dashed;
  border-color: var(--gold);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 20px;
}

.choice-media.is-missing img { display: none; }

/* ---- Text option cards ---- */

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 18px;
  justify-content: start;
}

.option { display: block; cursor: pointer; }

.option input { position: absolute; opacity: 0; pointer-events: none; }

.option-body {
  display: block;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #fff;
  padding: 20px 22px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.option:hover .option-body { border-color: var(--gold); }

.option input:checked ~ .option-body {
  border-color: var(--gold-dark);
  background: #fdf8f0;
  box-shadow: 0 0 0 3px rgba(211, 177, 131, .35);
}

.option-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.option-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---- Derived-answer callout ---- */

.callout {
  margin-top: 30px;
  border-left: 4px solid var(--gold-dark);
  background: #fdf8f0;
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
}

.callout-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.callout strong { font-size: 15px; }

/* ---- Decision output ---- */

.decision-head {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.decision-result {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  border-radius: 8px;
  padding: 16px 24px;
  margin: 0 0 8px;
}

/* Colours mirror the decision-tree diagram. */
.decision-result.is-crest { background: #ffff88; color: #1a1a1a; }
.decision-result.is-logette { background: #e83b3b; color: #fff; }

.decision-flag {
  margin: 14px 0 0;
  font-weight: 700;
  color: #7a1414;
}

.decision-path {
  margin: 30px 0 0;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.decision-path h4 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.decision-path dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
  font-size: 14px;
}

.decision-path dt { color: var(--muted); }
.decision-path dd { margin: 0; font-weight: 700; }

/* A step the answers made irrelevant. */
.step.is-skipped .step-label { text-decoration: line-through; opacity: .6; }

/* ---- Video block ---- */

.media-block { margin-top: 34px; }

.media-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
}

.media-video {
  display: block;
  width: 100%;
  max-width: 540px;
  background: #000;
  border-radius: 6px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

/* Keeps the right-hand button pinned right while Previous is hidden. */
.wizard-actions #nextBtn,
.wizard-actions #sendBtn { margin-left: auto; }

.btn-dark {
  background: #2b2b2b;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 9px 14px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s ease;
}

.btn-dark:hover { background: #444; }

.btn-round {
  background: var(--gold-panel);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 38px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease;
}

.btn-round:hover { background: var(--gold-dark); }

.btn-round.ghost {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
}

.btn-round.ghost:hover { background: #faf5ec; }

/* --------------------------------------------------------------------------
   Custom dropdown (matches the specialization menu)
   -------------------------------------------------------------------------- */

.dropdown { position: relative; }

.dd-button {
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: #2a2a2a;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 11px 38px 11px 14px;
  cursor: pointer;
}

.dd-button.is-placeholder { color: #b3b3b3; }

.dd-button::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8b7a5e;
  border-bottom: 2px solid #8b7a5e;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}

.dropdown.is-open .dd-button::after { transform: translateY(-20%) rotate(-135deg); }

.dropdown.is-open .dd-button {
  border-color: var(--gold-dark);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dd-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--gold-dark);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  display: none;
}

.dropdown.is-open .dd-list { display: block; }

.dd-list li {
  padding: 10px 14px;
  font-size: 14px;
  color: #b09468;
  cursor: pointer;
}

.dd-list li:hover { background: #dcdcdc; color: #2a2a2a; }

.dd-list li.is-selected {
  background: var(--gold-panel);
  color: #fff;
}

.dd-list li.is-selected:hover { background: var(--gold-dark); color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    transition: max-height .25s ease, padding .25s ease;
  }

  .nav.is-open { max-height: 320px; padding: 10px 28px 18px; }
  .nav a { padding: 12px 0; width: 100%; }

  .hero-media { width: 100%; opacity: .35; }
  .hero-copy { padding: 70px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .assignment { grid-template-columns: 1fr; }
  .assignment-aside { padding: 48px 28px; }
  .assignment-main { padding: 30px 22px 46px; }

  .stepper { grid-auto-flow: row; grid-auto-columns: auto; gap: 14px; }
  .stepper::before,
  .stepper-progress { display: none; }
  .step { display: flex; align-items: center; gap: 10px; text-align: left; }
  .step .step-label { margin: 0; font-size: 13px; }

  .panel-card { padding: 24px 20px; }
  .contact-card { padding: 30px 24px 34px; }

  /* Two cards side by side don't fit once the panel narrows. */
  .choice-grid,
  .option-grid { grid-template-columns: minmax(0, 1fr); }

  .decision-path dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .decision-path dd { margin-bottom: 10px; }
}
/* Client feedback: identity, references and complete implant assessments. */
[hidden] { display: none !important; }
:root { --header-h: 96px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.logo img { height: 48px; width: 48px; }
.logo span { color: #a77720; font-family: Georgia, serif; font-size: 17px; white-space: nowrap; }
.nav { gap: 26px; }
.nav a:first-child { border: 1px solid var(--gold); border-radius: 24px; padding: 10px 18px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #95712f; outline-offset: 4px; }
.option input:focus-visible + .option-body { outline: 3px solid #95712f; outline-offset: 3px; }
.field.has-error .select { border-color: #d33; }
.field-help { font-size: 13px; line-height: 1.7; color: #64605a; }
.resorption-option { max-width: 658px; margin-top: 18px; }
.reference-section { padding: 80px 0; background: #fff; scroll-margin-top: 112px; }
.reference-section .wrap { max-width: 1180px; }
.reference-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; margin-bottom: 40px; }
.eyebrow { color: #88642b; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.reference-intro h2 { font-family: Georgia, serif; font-size: clamp(30px, 3vw, 44px); margin: 16px 0; }
.reference-intro p, .article-card p { line-height: 1.7; }
.author-card { border-left: 3px solid var(--gold); padding-left: 28px; }
.author-card h3 { margin-top: 0; }
a.btn-dark { display: inline-block; padding: 12px 20px; }
.article-card { padding: 28px 32px; border: 1px solid var(--line); background: var(--cream); border-radius: 12px; }
.article-card h3 { max-width: 850px; font-size: 21px; line-height: 1.5; }
.reference-link { display: inline-block; color: #79531d; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; margin: 16px 0; }
.reference-figure { margin: 40px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.reference-figure figcaption { margin-bottom: 20px; font-weight: 700; }
.reference-figure img { width: 100%; height: auto; }
.reference-figure summary { cursor: pointer; margin-top: 18px; color: #79531d; font-size: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; line-height: 1.7; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 12px; }
thead { background: var(--cream); }
.assignment-main { min-width: 0; max-width: 1300px; width: 100%; margin: auto; }
.profile-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 13px; margin-bottom: 18px; }
.profile-bar span { margin-right: auto; overflow-wrap: anywhere; }
.text-button { font: inherit; color: #79531d; background: transparent; border: 0; padding: 5px 0; cursor: pointer; text-decoration: underline; }
.session-label { margin: 0 0 20px; font-size: 13px; font-weight: 600; color: #6d5838; }
.step .step-dot { display: block; }
.step .step-label { min-height: 30px; color: #716b60; }
.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.verdict-card { padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; }
.verdict-card span { display: block; font-size: 13px; margin-bottom: 12px; color: #625a4c; }
.verdict-card strong { display: block; font-size: 23px; }
.verdict-card p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; }
.verdict-card.is-housing { background: #f6ede1; border-color: #d8b47f; }
.verdict-card.is-crest { background: #edf4ef; border-color: #acc8b4; }
.video-pending { border: 1px dashed var(--line); border-radius: 8px; padding: 20px; color: #64605a; font-size: 14px; }
.other-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.btn-round { color: #332817; }
.btn-round.ghost { color: #79531d; }
.wizard-actions { flex-wrap: wrap; }
.implant-summary { background: var(--cream); border-radius: 8px; padding: 20px; margin: 12px 0; }
.implant-summary p { font-size: 14px; line-height: 1.7; margin: 10px 0 0; }
#sessionSummary { margin: 28px 0; }
#similarCount { max-width: 150px; }
@media (max-width: 900px) {
  .nav.is-open { max-height: 300px; }
  .nav a:first-child { border: 0; padding: 12px 0; }
  .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
  .step { display: block; text-align: center; }
  .step .step-label { font-size: 10px; margin-bottom: 8px; }
  .step .step-dot { margin: auto; }
  .reference-intro, .verdict-grid { grid-template-columns: 1fr; gap: 24px; }
  .reference-section { padding: 48px 0; }
  .reference-figure { padding: 14px; }
  .reference-figure img { min-width: 0; }
  .wizard-actions .btn-round { padding: 11px 22px; }
  .other-actions button { width: 100%; padding: 14px 20px; }
  .article-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* Introduction between the homepage and the assessment. */
.introduction { background: var(--cream); padding: 38px 0 64px; }
.introduction .wrap, .home-framework .wrap, .intro-start .wrap { max-width: 1180px; }
.back-link { display: inline-block; font-size: 13px; color: #79531d; margin-bottom: 32px; }
.back-link:hover { text-decoration: underline; }
.introduction h1 { font: 700 clamp(34px, 4.2vw, 58px)/1.13 'Playfair Display', Georgia, serif; max-width: 850px; margin: 18px 0 38px; letter-spacing: -.025em; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; }
.intro-copy p { font-size: 15px; line-height: 1.85; color: #514b42; margin: 0 0 24px; }
.intro-copy .intro-lead { font-size: 18px; line-height: 1.7; color: #28241e; }
.intro-copy .animation-availability { font-size: 13px; color: #79531d; margin-top: -10px; }
.intro-copy .clinical-context { font-size: 14px; border-left: 3px solid var(--gold-dark); padding: 4px 0 4px 20px; }
.intro-cta { margin-top: 8px; background: #292620; color: #fff; letter-spacing: .07em; }
.intro-cta .circle { background: var(--gold); color: #292620; }
.intro-overview { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.intro-overview .eyebrow { margin: 0 0 24px; }
.intro-overview ol { list-style: none; padding: 0; margin: 0; }
.intro-overview li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid #eee8de; }
.intro-overview li:last-child { padding-bottom: 0; }
.intro-overview li > span { font: 22px Georgia, serif; color: #ac813b; }
.intro-overview h2 { font: 600 15px/1.4 'Inter', sans-serif; margin: 0 0 8px; }
.intro-overview li p { font-size: 13px; line-height: 1.7; margin: 0; color: #6b6255; }
.intro-references { padding-top: 56px; }
.intro-references > .wrap > .author-card { margin-bottom: 40px; padding: 8px 0 8px 28px; }
.intro-references .author-card h3 { font: 600 28px Georgia, serif; margin-bottom: 12px; }
.intro-references .author-card p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.home-framework { background: #fff; padding: 48px 0; scroll-margin-top: 112px; }
.home-framework .wrap { display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.home-framework h2 { font: 600 28px/1.3 Georgia, serif; max-width: 560px; }
.home-framework p:not(.eyebrow) { font-size: 14px; color: #64605a; line-height: 1.7; max-width: 600px; }
.home-framework .reference-link { flex-shrink: 0; }
.intro-start { background: #2c2823; color: #fff; padding: 44px 0; }
.intro-start .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.intro-start .eyebrow { color: #d3b183; }
.intro-start h2 { font: 600 28px Georgia, serif; margin: 12px 0; }
.print-summary { display: none; }
@media (max-width: 900px) {
  .intro-layout { grid-template-columns: 1fr; gap: 32px; }
  .introduction { padding: 28px 0 40px; }
  .introduction h1 { margin-bottom: 28px; }
  .home-framework .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .intro-cta, .intro-start .btn-pill { font-size: 11px; letter-spacing: .03em; padding-left: 20px; }
  .wizard-actions { justify-content: flex-start; }
  .wizard-actions #sendBtn { margin-left: 0; }
}
/* A clean report, with a separate printed page for each assessed implant group. */
@page { size: A4; margin: 16mm; }
@media print {
  body.has-print-summary { color: #202020; background: white; font: 10pt/1.5 Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.has-print-summary > :not(.print-summary) { display: none !important; }
  body.has-print-summary .print-summary { display: block; }
  .report-page { break-after: page; overflow-wrap: anywhere; }
  .report-page:last-child { break-after: auto; }
  .report-header { display: flex; align-items: center; justify-content: space-between; gap: 12mm; border-bottom: 1.5pt solid #b58c46; padding-bottom: 5mm; margin-bottom: 5mm; }
  .report-header > div:last-child { text-align: right; font-size: 10pt; color: #5b5244; }
  .report-brand { display: flex; align-items: center; gap: 4mm; }
  .report-brand img { width: 10mm; height: 10mm; }
  .report-brand span { font: 13pt Georgia, serif; color: #896422; }
  .report-date { font-size: 8pt; color: #625c52; }
  .report-page h1 { font-size: 23pt; line-height: 1.2; margin: 5mm 0; }
  .report-page h1 span { color: #896422; margin-left: 5mm; }
  .report-page h2 { font-size: 11pt; margin: 6mm 0 3mm; break-after: avoid; }
  .report-page h3 { font-size: 9pt; font-weight: normal; color: #5b5244; margin: 0 0 3mm; }
  .report-clinician { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm 8mm; margin: 0; border-bottom: 1px solid #dfd8cb; padding-bottom: 5mm; }
  .report-clinician dt { font-size: 8pt; color: #625c52; }
  .report-clinician dd { margin: 0; font-weight: 600; }
  .report-verdict { display: grid; grid-template-columns: 1fr 1.2fr; border: 1px solid #c6b089; background: #f8f5ef; border-radius: 2mm; break-inside: avoid; }
  .report-verdict > div { padding: 5mm; }
  .report-verdict > div + div { border-left: 1px solid #c6b089; }
  .report-model { margin: 3mm 0 0; text-align: center; break-inside: avoid; background: #1e1b18; border-radius: 2mm; padding: 1.5mm; }
  .report-model img { display: block; margin: 0 auto; max-width: 100%; max-height: 60mm; }
  .report-split.has-model { display: grid; grid-template-columns: 1fr 76mm; gap: 6mm; align-items: end; }
  .report-split .report-model { margin: 0; }
  .report-model figcaption { font-size: 8pt; color: #d9cfbf; margin-top: 1mm; }
  .report-verdict strong { font-size: 14pt; line-height: 1.3; display: block; }
  .report-verdict p { margin: 3mm 0 0; font-size: 9pt; }
  .report-answers { font-size: 10pt; line-height: 1.5; margin: 0; }
  .report-answers th, .report-answers td { padding: 2.5mm 0; border-bottom: 1px solid #e4dfd5; }
  .report-answers th { width: 48%; color: #5b5244; font-weight: normal; padding-right: 5mm; }
  .report-answers tr { break-inside: avoid; }
  .report-reuse { font-size: 9pt; margin-top: 4mm; }
  .report-footer { margin-top: 7mm; border-top: 1pt solid #b58c46; break-inside: avoid; }
  .report-footer h2 { margin-top: 4mm; font-size: 9pt; }
  .report-footer p { font-size: 8pt; line-height: 1.5; margin: 2mm 0; }
  .report-footer a { color: #3d3a34; text-decoration: underline; }
  .report-context { color: #5b5244; padding-top: 2mm; }
  .report-number { text-align: right; color: #625c52; padding-top: 2mm; }
}

/* Legal links in the footer and the legal pages. */
.footer-legal { display: inline-block; margin-left: 12px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--gold-dark); }
.legal-page { background: var(--cream); padding: 48px 0 72px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font: 700 clamp(32px, 4vw, 48px)/1.15 'Playfair Display', Georgia, serif; margin: 12px 0 10px; }
.legal-page .legal-updated { font-size: 13px; color: #6b6255; margin: 0 0 36px; }
.legal-page h2 { font: 600 22px/1.3 Georgia, serif; margin: 40px 0 12px; }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.8; color: #3d382f; }
.legal-page ul { padding-left: 20px; }
.legal-page a { color: #79531d; text-decoration: underline; text-underline-offset: 3px; }
.legal-page address { font-style: normal; font-size: 15px; line-height: 1.8; color: #3d382f; }

/* Homepage: the two entry buttons sit side by side. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* Primary (gold) and secondary (outline) entry buttons. */
.btn-pill-gold { background: #d6ab63; color: #1a1a1a; }
.btn-pill-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.btn-pill-ghost .circle { background: #fff; color: #1a1a1a; }
@media (max-width: 760px) { .hero-actions .btn-pill { width: 100%; justify-content: space-between; } }
.hero-framework { margin-top: 44px; max-width: 520px; }
.hero .hero-framework h2 { font: 600 clamp(20px, 1.8vw, 26px)/1.35 Georgia, serif; color: #fff; margin: 0 0 12px; }
.hero .hero-framework p { font-size: 15px; line-height: 1.7; color: #cfc8bd; margin: 0; }

/* Country autocomplete. */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 240px; overflow-y: auto; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .12); }
.combo-list li { padding: 9px 16px; font-size: 14px; cursor: pointer; }
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--cream); color: #79531d; }
.citation a, #storageNote a { color: #79531d; text-decoration: underline; text-underline-offset: 3px; }
.assignment-aside a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.assignment-aside p + p { margin-top: 14px; }
.contact-card .field-help a { color: #79531d; text-decoration: underline; text-underline-offset: 3px; }

/* Test: 3D hero skull (js/hero3d.js). The still image shows until the model is ready, and stays if it fails. */
/* In 3D mode the still image stays hidden and only appears if the 3D cannot load (is-3d-failed),
   so it never flashes before the model. The model fades in once ready. */
.hero-3d { position: absolute; inset: 2% 3% 2% 14%; }
.hero-3d canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; filter: drop-shadow(0 0 40px rgba(214, 171, 99, .16)); }
.hero.is-3d-ready .hero-3d canvas { opacity: 1; }
.hero[data-hero="3d"] .hero-media img { opacity: 0; transition: opacity .4s ease; }
.hero[data-hero="3d"].is-3d-failed:not(.is-3d-ready) .hero-media img { opacity: 1; }
@media (max-width: 760px) { .hero-3d { inset: 0; } }

/* Hero background: soft gold and mint glows drifting slowly behind the model. Text stays on the darker left side. */
.hero-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-aurora span { position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen; will-change: transform; }
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; right: 6%; top: 8%; background: radial-gradient(circle, rgba(214, 171, 99, .62), transparent 66%); animation: aurora-a 22s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(2) { width: 38vw; height: 38vw; right: -6%; bottom: -14%; background: radial-gradient(circle, rgba(167, 214, 196, .42), transparent 66%); animation: aurora-b 28s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 34%; top: -12%; background: radial-gradient(circle, rgba(201, 132, 84, .45), transparent 66%); animation: aurora-c 34s ease-in-out infinite alternate; }
@keyframes aurora-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vw, 6vh) scale(1.15); } }
@keyframes aurora-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-10vw, -12vh) scale(.9); } }
@keyframes aurora-c { from { transform: translate(0, 0) scale(.9); } to { transform: translate(14vw, 18vh) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .hero-aurora span { animation: none; } }

/* Right / Left switch above the question animations. */
.media-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.media-head .media-title { margin: 0; }
.side-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.side-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 6px 16px; font: 600 13px Inter, sans-serif; color: #5b554b; cursor: pointer; }
.side-toggle button[aria-pressed="true"] { background: var(--gold); color: #1a1a1a; }
.side-toggle button:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.media-head { max-width: 540px; }

/* 3D model of the assessed situation (Suggested strategy step). */
.model-stage { position: relative; width: 100%; max-width: 720px; aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 40%, #3a332b 0%, #1e1b18 70%); border-radius: 10px; overflow: hidden; cursor: grab; touch-action: none; }
.model-stage:active { cursor: grabbing; }
.model-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.model-stage.is-ready canvas { opacity: 1; }
.model-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #d9cfbf; font-size: 14px; }
.model-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 720px; margin-top: 8px; font-size: 13px; color: #6b6255; }

/* Practitioner accounts. Text meant for one mode only: .only-accounts / .only-local (body.accounts-on is set by js/main.js). */
.only-accounts { display: none; }
body.accounts-on .only-accounts { display: revert; }
body.accounts-on .only-local { display: none; }
.only-guest, .only-backend { display: none; }
body.guest-on .only-guest, body.backend-on .only-backend { display: revert; }
body.guest-on .only-local { display: none; }
.auth-loading { color: #6b6255; font-size: 15px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin: 18px 0 6px; padding: 11px 16px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 999px; font: 500 15px/1.2 Inter, Arial, sans-serif; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.google-btn:hover { background: #f8f8f8; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.google-btn:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.google-btn svg { width: 20px; height: 20px; flex: none; }
.consent-field .checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #3d382f; cursor: pointer; }
.consent-field .checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: #b88a45; flex: none; }
input[readonly].input { background: #f4f1ec; color: #5b554b; }
#profileStatus:empty, #authStatus:empty { display: none; }
.profile-bar a.text-button { text-decoration: underline; }

/* My account page. */
.account-page { background: var(--cream); padding: 48px 0 72px; min-height: 60vh; }
.account-page .wrap { max-width: 900px; }
.account-page h1 { font: 700 clamp(30px, 4vw, 44px)/1.15 'Playfair Display', Georgia, serif; margin: 12px 0 24px; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; margin-bottom: 22px; }
.account-card h2 { font: 600 20px/1.3 Georgia, serif; margin: 0 0 14px; }
.account-card dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 15px; }
.account-card dt { color: #6b6255; }
.account-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.assessment-list { list-style: none; margin: 0; padding: 0; }
.assessment-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #eee8de; }
.assessment-list li:first-child { border-top: 0; }
.assessment-list strong { display: block; margin-bottom: 4px; }
.assessment-list p { margin: 0; font-size: 14px; color: #5b554b; line-height: 1.6; }
.danger-button { color: #a3322a !important; }
@media (max-width: 600px) { .account-card dl { grid-template-columns: 1fr; gap: 2px; } .account-card dd { margin-bottom: 10px; } .assessment-list li { flex-direction: column; } }
.consent-field .checkbox, .consent-field .checkbox span { font-weight: 400; }

/* Sign in / create account card (js/account.js renderAuth). */
.assignment.is-auth .stepper, .assignment.is-auth .session-label { display: none; }
.assignment.is-auth .panel-card { background: transparent; box-shadow: none; padding: 0; }
.assignment.is-auth .assignment-main { justify-content: center; }
.auth-panel { max-width: none; }
.auth-card { width: 100%; max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(43, 36, 28, .08); padding: 30px 34px 26px; }
.account-page .auth-card { margin: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f3eee6; border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button { border: 0; background: transparent; border-radius: 999px; padding: 10px 12px; font: 600 14px Inter, sans-serif; color: #6b6255; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.auth-tabs button[aria-selected="true"] { background: #fff; color: #1f1b16; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.auth-tabs button:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.auth-card .auth-title { font: 700 26px/1.2 'Playfair Display', Georgia, serif; margin: 0 0 6px; color: #1f1b16; }
.auth-card .auth-lead { font-size: 14px; line-height: 1.6; color: #6b6255; margin: 0 0 20px; }
.auth-card .google-btn { margin: 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: #8a8174; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card .field { margin-bottom: 16px; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth-forgot { font-size: 13px; padding: 0; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 70px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #79531d; font: 600 13px Inter, sans-serif; padding: 6px 8px; cursor: pointer; border-radius: 6px; }
.password-toggle:focus-visible { outline: 2px solid var(--gold-dark); }
.auth-hint { display: none; margin-top: 6px; }
.auth-card .auth-submit { width: 100%; padding: 13px 16px; border-radius: 999px; font: 600 15px Inter, sans-serif; margin-top: 4px; }
.auth-card .auth-submit:disabled { opacity: .6; cursor: progress; }
.auth-back { display: none; margin-top: 14px; font-size: 14px; }
.auth-status { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: #5b554b; }
.auth-status:empty { display: none; }
.auth-status.is-error { color: #a3322a; }
.auth-status.is-success { color: #2f6b4f; }
.auth-legal { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #eee8de; font-size: 12.5px; color: #8a8174; }
.auth-legal a { color: #79531d; text-decoration: underline; text-underline-offset: 3px; }
/* Per mode: sign-up shows the password rule; reset hides the password, Google and the forgot link. */
.auth-card[data-mode="signup"] .auth-forgot { display: none; }
.auth-card[data-mode="signup"] .auth-hint { display: block; }
.auth-card[data-mode="signup"] .has-error .auth-hint { display: none; }
.auth-card[data-mode="reset"] [data-auth-password], .auth-card[data-mode="reset"] .google-btn, .auth-card[data-mode="reset"] .auth-divider { display: none; }
.auth-card[data-mode="reset"] .auth-back { display: inline-block; }
@media (max-width: 600px) { .auth-card { padding: 24px 20px 20px; border-radius: 14px; } .auth-card .auth-title { font-size: 23px; } }

/* First screen: one easy question before the account (foot in the door). */
.profession-card .eyebrow { margin: 0 0 10px; }
.profession-options { display: grid; gap: 10px; margin: 6px 0 4px; }
.profession-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font: 600 15px Inter, sans-serif; color: #1f1b16; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.profession-option:hover { border-color: var(--gold-dark); background: #fbf8f3; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(43, 36, 28, .06); }
.profession-option:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.profession-option[aria-checked="true"] { border-color: var(--gold-dark); background: #f6efe3; box-shadow: inset 0 0 0 1px var(--gold-dark); }
.profession-arrow { color: #b88a45; font-size: 18px; transition: transform .15s ease; }
.profession-option:hover .profession-arrow { transform: translateX(3px); }
.profession-card #professionOtherField { margin: 14px 0 6px; }
.profession-card .auth-submit { margin-top: 8px; }

/* Continue without an account: a clear secondary button inside the account card. */
.auth-guest .auth-divider { margin: 18px 0 14px; }
.guest-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; background: #fff; border: 1.5px solid #b88a45; border-radius: 999px; font: 600 15px Inter, sans-serif; color: #4a3826; cursor: pointer; transition: background .15s ease, color .15s ease; }
.guest-button:hover { background: #f6efe3; }
.guest-button:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.guest-note { margin: 8px 0 0; font-size: 12.5px; color: #8a8174; text-align: center; }
.auth-card[data-mode="reset"] .auth-guest { display: none; }
.guest-option { max-width: 460px; margin: 14px auto 0; text-align: center; }
.guest-option .text-button { font-size: 13px; }
.auth-title:focus, .panel h3:focus { outline: none; }

/* Account icon and menu in the header (js/main.js renderAccountMenu). */
.site-header .wrap { gap: 22px; }
.site-header .nav { margin-left: auto; }
.account-menu { position: relative; flex-shrink: 0; }
.account-trigger { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: #fff; color: #79531d; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.account-trigger:hover { background: #fbf6ee; box-shadow: 0 2px 8px rgba(43, 36, 28, .1); }
.account-trigger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.account-trigger.is-signed-in { background: #d6ab63; border-color: #c9a063; color: #1f1b16; }
.account-trigger.is-signed-in:hover { background: #cfa257; }
.account-initials { font: 700 14px/1 Inter, sans-serif; letter-spacing: .02em; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(43, 36, 28, .14); padding: 8px; }
.account-dropdown[hidden] { display: none; }
.account-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid #eee8de; margin-bottom: 6px; }
.account-menu-head strong { display: block; font-size: 14px; color: #1f1b16; }
.account-menu-head span { display: block; margin-top: 2px; font-size: 12.5px; color: #8a8174; overflow-wrap: anywhere; }
.account-dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #3d382f; }
.account-dropdown a:hover, .account-dropdown a:focus-visible { background: #f6efe3; color: #1f1b16; outline: none; }
.account-dropdown .account-menu-signout { color: #a3322a; border-top: 1px solid #eee8de; margin-top: 6px; border-radius: 0 0 8px 8px; }
@media (max-width: 900px) {
  .account-menu { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; }
  .site-header .wrap { gap: 14px; }
}

/* Email preference, folded at the bottom of the account page. */
.email-preferences { margin-top: 18px; padding-top: 12px; border-top: 1px solid #eee8de; }
.email-preferences summary { display: inline-block; cursor: pointer; font-size: 12px; color: #a39a8d; list-style: none; }
.email-preferences summary::-webkit-details-marker { display: none; }
.email-preferences summary:hover { text-decoration: underline; }
.email-preferences .consent-field { margin: 12px 0 4px; }
.email-preferences .consent-field .checkbox { font-size: 13px; color: #6b6255; }

/* Clinical disclaimer: every footer, and under the PDF buttons on the last steps of the tool. */
.footer-disclaimer { margin: 36px 0 0; padding: 0; background: none; border: 0; max-width: 820px; font-size: 12.5px; line-height: 1.7; color: #6b6255; font-style: italic; }
.footer-disclaimer + .footer-bottom { margin-top: 28px; }
.tool-disclaimer { margin: 24px 0 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--gold-dark); background: none; font-size: 13.5px; line-height: 1.7; color: #4a443b; }
.tool-disclaimer[hidden] { display: none; }

/* Introduction: Start button top right; classification and article as two sections. */
.intro-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.intro-head h1 { margin-bottom: 38px; }
.intro-head .intro-cta { flex-shrink: 0; margin-top: 30px; }
.anchor { display: block; position: relative; top: -112px; visibility: hidden; }
.reference-section .section-title { font: 700 clamp(26px, 3vw, 38px)/1.2 'Playfair Display', Georgia, serif; margin: 10px 0 8px; }
.intro-classification .reference-figure:first-of-type { margin-top: 28px; }
.intro-article { background: var(--cream); }
.intro-article .article-card { margin-top: 28px; background: #fff; }
.intro-article .author-card { margin-top: 40px; padding: 8px 0 8px 28px; }
.intro-article .author-card h3 { font: 600 28px Georgia, serif; margin-bottom: 12px; }
.intro-article .author-card p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
@media (max-width: 900px) {
  .intro-head { flex-direction: column; gap: 0; }
  .intro-head h1 { margin-bottom: 18px; }
  .intro-head .intro-cta { margin: 0 0 32px; }
}

/* Test: sinus wall animation in 3D. */
.media-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.sinus-3d { position: relative; width: 100%; max-width: 540px; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 50% 45%, #2b2620 0%, #000 75%); border-radius: 6px; overflow: hidden; cursor: grab; touch-action: none; }
.sinus-3d:active { cursor: grabbing; }
.sinus-3d canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.sinus-3d.is-ready canvas { opacity: 1; }
.sinus-3d-hint { max-width: 540px; margin: 8px 0 0; font-size: 13px; color: #6b6255; }
.media-video[hidden], .sinus-3d[hidden], .sinus-3d-hint[hidden] { display: none; }

/* Details next to each question's animation (text taken from the tool and from Tables 1 and 2). */
.media-row { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 34px; }
.media-row > .media-block { margin-top: 0; }
.question-details .media-title { margin: 6px 0 12px; }
.question-details details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.question-details summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; color: #1f1b16; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.question-details summary::-webkit-details-marker { display: none; }
.question-details summary::after { content: "+"; color: #b88a45; font-size: 20px; line-height: 1; }
.question-details details[open] summary::after { content: "−"; }
.question-details details[open] summary { border-bottom: 1px solid #eee8de; }
.details-body { padding: 12px 16px 14px; font-size: 14px; line-height: 1.6; color: #3d382f; }
.details-body p { margin: 0 0 10px; }
.details-body p:last-child { margin-bottom: 0; }
.question-details.is-standalone { max-width: 760px; margin-top: 28px; }
@media (max-width: 1000px) { .media-row { grid-template-columns: 1fr; } }
