/* Campaign identity for the two independent online experiences. */
.quiz-page,
.discover-page {
  --ink: #0a3542;
  --deep: #0a3542;
  --paper: #f5f2e8;
  --coral: #ff875d;
  --teal: #126b83;
}

.quiz-page {
  --quiz-surface: #fffdf7;
  --quiz-muted: #42616b;
  --quiz-line: #0a354226;
}

.quiz-page .quiz-header,
.discover-page .site-header {
  --header-color: var(--paper);
  color: var(--paper);
  background: var(--deep);
  border-bottom-color: #f5f2e829;
}

.quiz-page .quiz-language {
  border-color: #f5f2e850;
  border-radius: 4px;
}

.quiz-page .quiz-language button {
  color: var(--paper);
  border-radius: 2px;
}

.quiz-page .quiz-language button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
}

.quiz-page :is(.intro-copy h1, .question-aside h2, .result-overview h1, .share-heading h2, .care-heading h2),
.discover-page :is(.nearby-copy h1, .restoration-heading h2, .reef-discoveries-heading h2, .care-heading h2, .reef-guide h2) {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.quiz-page :is(.intro-copy h1, .question-aside h2, .result-overview h1, .share-heading h2, .care-heading h2) em,
.discover-page :is(.nearby-copy h1, .restoration-heading h2, .reef-discoveries-heading h2, .care-heading h2, .reef-guide h2) em {
  font: inherit;
  letter-spacing: inherit;
}

.quiz-page .intro-copy h1 {
  font-size: clamp(58px, 6.3vw, 84px);
}

.quiz-page .intro-copy h1:lang(zh) {
  font-size: clamp(46px, 5.3vw, 72px);
  line-height: 1.25;
  letter-spacing: 0;
}

.quiz-page .intro-copy h1:lang(zh) em { font: inherit; }
.quiz-page .intro-copy .match-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 24px;
}

.quiz-page .intro-specimens {
  background: var(--deep);
  border-radius: 4px;
  padding: 27px;
}

.quiz-page .specimen-heading,
.quiz-page .intro-specimens figcaption { color: #c6dee2; }
.quiz-page .specimen-heading { padding-inline: 0; }
.quiz-page .specimen { border-radius: 3px; }
.quiz-page .specimen > span { color: var(--ink); font-weight: 600; }
.quiz-page .intro-route li > span:first-child { color: var(--teal); font-weight: 800; }

.quiz-page :is(.match-primary, .match-secondary),
.quiz-page .result-quick-actions .match-secondary,
.quiz-page .share-actions button {
  border-radius: 4px;
  font-weight: 800;
}

.quiz-page .match-primary {
  border-color: var(--coral);
  color: var(--ink);
  background: var(--coral);
}

.quiz-page .match-primary:hover:not(:disabled) {
  color: var(--ink);
  background: #ff9d78;
  border-color: #ff9d78;
}

.quiz-page .match-secondary { border-color: var(--ink); }
.quiz-page .question-card { border-radius: 4px; box-shadow: none; }
.quiz-page .question-card h1 { font-weight: 700; line-height: 1.35; }
.quiz-page .answer-option { border-radius: 4px; background: var(--quiz-surface); }
.quiz-page .answer-option:hover { background: #edf4f1; }
.quiz-page .answer-option:has(input:checked) { background: #dbecef; }
.quiz-page .result-nav a { border-radius: 4px; }
.quiz-page .result-hero { border-radius: 4px; }
.quiz-page .result-specimen { border-radius: 4px; }
.quiz-page :is(.profile-details, .result-share, .result-care, .reef-discoveries, .other-matches) { border-radius: 4px; }
.quiz-page .result-share { background: #dbecef; }
.quiz-page .result-care { background: #e8ede9; }
.quiz-page .share-actions .match-primary { background: var(--coral); color: var(--ink); }
.quiz-page .share-actions .match-secondary { background: transparent; color: var(--ink); }
.quiz-page .site-footer { background: var(--deep); }

.discover-page .nearby-copy h1 { font-size: clamp(42px, 4.5vw, 64px); }
.discover-page :is(.restoration-heading h2, .reef-discoveries-heading h2, .care-heading h2) { font-size: clamp(36px, 4.2vw, 58px); }
.discover-page .reef-card-copy h3 { font-family: var(--sans); font-weight: 800; font-size: clamp(30px, 3.5vw, 43px); line-height: 1.12; letter-spacing: -.035em; }
.discover-page .reef-card-copy h3 em { font: inherit; }
.discover-page .nearby-map > svg { border-radius: 4px; }
.discover-page .nearby-map svg > rect { fill: #a8d8d9; rx: 4px; }
.discover-page .nearby-map svg > path:first-of-type,
.discover-page .nearby-map svg > g[fill="#e4e8d4"] { fill: var(--paper); }
.discover-page .nearby-map svg > g[fill="#c96e51"] { fill: var(--coral); stroke: var(--paper); }
.discover-page .nearby-map svg > g[fill="#fff9ee"] { fill: var(--ink); }
.discover-page .nearby-places li > span { background: var(--coral); color: var(--ink); font-weight: 800; }
.discover-page .restoration-stage-note { background: #dbecef; border-left-color: var(--teal); }
.discover-page .reef-fact-choices button { border-radius: 4px; font-weight: 700; }
.discover-page .reef-fact-choices button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.discover-page .reef-card-preview > img, .discover-page .reef-card-placeholder { border-radius: 4px; }
.discover-page :is(.restoration-primary, .care-campaign, .reef-fact-actions button, .reef-fact-actions > a) { border-radius: 4px; font-weight: 800; }
.discover-page :is(.restoration-primary, .care-campaign),
.discover-page .reef-fact-actions .reef-save-card { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.discover-page :is(.restoration-primary, .care-campaign):hover,
.discover-page .reef-fact-actions .reef-save-card:hover { background: #ff9d78; color: var(--ink); }

@media (max-width: 950px) {
  .quiz-page .intro-copy h1 { font-size: clamp(50px, 6.8vw, 64px); }
}

@media (max-width: 760px) {
  .quiz-page .quiz-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
  }
  .quiz-page .quiz-header .campaign-nav { grid-column: 1 / -1; grid-row: 2; }
  .quiz-page .quiz-language { grid-column: 2; grid-row: 1; }
}

@media (max-width: 950px) and (max-height: 600px) {
  .quiz-page .match-intro { align-items: start; min-height: 0; }
  .quiz-page .intro-copy { align-self: start; }
}

@media (max-width: 650px) {
  .quiz-page .intro-opening { display: block; }
  .quiz-page .intro-peek { display: none; }
  .quiz-page .intro-copy h1 { font-size: clamp(44px, 14vw, 62px); }
  .quiz-page .intro-copy h1:lang(zh) { font-size: clamp(36px, 10.5vw, 46px); }
  .quiz-page .intro-copy .match-lead { display: block; margin-top: 18px; font-size: 25px; }
  .quiz-page .intro-specimens { padding: 20px 16px; }
  .quiz-page .specimen-heading .eyebrow { font-size: 10px; }
  .quiz-page .result-overview h1 { font-size: clamp(34px, 9.5vw, 48px); }
  .quiz-page .share-heading h2 { font-size: 32px; }
  .quiz-page .care-heading h2 { font-size: 30px; }
  .discover-page .nearby-copy h1 { font-size: clamp(36px, 9.5vw, 48px); }
  .discover-page :is(.restoration-heading h2, .reef-discoveries-heading h2, .care-heading h2) { font-size: clamp(32px, 8.8vw, 44px); }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-page .match-primary:hover:not(:disabled) { transform: none; }
}
