/* Focused pages, with the existing NINE colors and result artwork. */
.journey-header { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 24px; }
.journey-page { width: min(900px, calc(100% - 40px)); margin: 64px auto 80px; }
.birthday-page { max-width: 480px; }
.journey-intro { text-align: center; margin-bottom: 32px; }
.journey-intro .eyebrow { justify-content: center; }
.journey-intro h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; margin-bottom: 20px; }
.journey-intro > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 600px; margin: 0 auto; }
.birthday-page .discovery-card { min-height: 0; border-radius: 10px; }
.birthday-page .card-content { padding: 32px; }
.birthday-page label { font-size: 15px; }
.birthday-page .input-help { font-size: 13px; }
.birthday-page .primary-button { width: 100%; font-size: 16px; }
.birthday-page .journey-text-link { display: block; text-align: center; margin-top: 24px; }
.journey-footnote { text-align: center; font-size: 13px; color: var(--muted); line-height: 1.5; margin: 24px 0 0; }
.journey-back, .journey-text-link { color: var(--deep); font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
button.journey-back { border: 0; background: none; padding: 0; cursor: pointer; }
.choice-page { margin-top: 32px; }
.choice-page > .journey-back { margin-bottom: 18px; }
.choice-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.choice-card { background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: 30px; display: flex; flex-direction: column; }
.choice-card h2 { font-size: 28px; line-height: 1.15; margin-bottom: 16px; }
.choice-card p { font-size: 16px; line-height: 1.6; color: var(--muted); flex: 1; margin-bottom: 28px; }
.choice-skip-card { border-color: var(--teal); background: #edf3f0; }
.choice-skip, .choice-answer { min-height: 56px; height: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; text-decoration: none; font-size: 16px; font-weight: 700; border-radius: 4px; line-height: 1.4; }
.choice-answer { background: var(--deep); color: #fffdf8; }
.choice-answer:hover { background: var(--teal); }
.result-page-actions { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.save-status { font-size: 14px; line-height: 1.5; color: #8b321f; }
.save-status:empty { display: none; }
body:not([data-page="results"]) footer { padding-top: 24px; }
body[data-page="questions"] .trait-section { padding-top: 0; }
.question-toolbar { position: sticky; top: 0; z-index: 25; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; margin-bottom: 32px; background: var(--paper); border-bottom: 1px solid var(--line); }
.question-toolbar .trait-button { font-size: 14px; min-height: 48px; }
.question-toolbar .primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
body[data-page="questions"] .trait-questionnaire-heading { margin-top: 24px; }
#form-title:focus, #choice-title:focus { outline: none; }
@media (max-width: 600px) {
  .journey-header { min-height: 72px; }
  .journey-page { margin-top: 36px; margin-bottom: 48px; width: calc(100% - 32px); }
  .birthday-page .card-content { padding: 24px; }
  .choice-options { grid-template-columns: 1fr; gap: 16px; }
  .choice-card { padding: 22px; }
  .choice-card p { margin-bottom: 20px; }
  .choice-page > .journey-back { margin-bottom: 18px; }
  .question-toolbar { gap: 8px; margin-bottom: 20px; }
  .question-toolbar .trait-button { padding: 10px; font-size: 13px; }
}

.trait-section h1 { font-size: clamp(31px, 4.3vw, 52px); line-height: 1.08; }

/* Keep a personal introduction readable, including long unbroken names. */
.result-kicker { grid-column: 1 / -1; max-width: 32ch; margin: 0; color: #fcfaf3; font: 600 clamp(26px, 3.2vw, 40px)/1.25 "DM Sans", sans-serif; letter-spacing: -.02em; text-transform: none; overflow-wrap: anywhere; }

/* Keep the global language choice reachable on every screen and at 320px. */
.journey-header .language-control { flex-shrink: 0; }
html:lang(zh-Hant) .result-kicker { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; line-height: 1.45; letter-spacing: 0; }
html:lang(zh-Hant) .journey-intro h1 { font-size: clamp(30px, 4vw, 44px); }
@media (max-width: 600px) {
  .journey-header { gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .journey-header .language-control { display: grid; grid-template-columns: auto auto auto; gap: 0 2px; }
  .journey-header .language-control select { grid-column: 1 / -1; justify-self: end; margin: 2px 0 0; }
}
