/* Load after the component styles. Keep the illustrated scene and display titles intact. */
:root {
  --reading-body: 18px;
  --reading-instructions: 17px;
  --reading-support: 14px;
  --reading-label: 14px;
}

/* Main stories, visitor information and policy copy. */
#content-dialog .modal-copy > p:not(.eyebrow),
#content-dialog .modal-copy #modal-lead,
#content-dialog .visitor-information p,
#content-dialog .visitor-disclosure p,
#privacy-dialog p,
#explore-dialog .directory-intro {
  font-size: var(--reading-body);
  line-height: 1.7;
  letter-spacing: 0;
}

#content-dialog .visitor-information h4,
#content-dialog .visitor-disclosure h4 {
  font-size: 16px;
  line-height: 1.5;
}

#content-dialog .visitor-hours {
  font-size: 16px;
  line-height: 1.65;
}

#content-dialog .modal-copy #modal-visitor-note,
#content-dialog .visitor-information .visitor-note,
#content-dialog .visitor-disclosure .visitor-note,
#content-dialog .modal-disclosure p,
#content-dialog .modal-note,
#content-dialog .message-note,
#content-dialog .message-status,
#content-dialog .contact-direct,
#privacy-dialog .policy-updated {
  font-size: var(--reading-support);
  line-height: 1.65;
}

#content-dialog .modal-copy .eyebrow,
#content-dialog .message-card .message-card-kicker,
#content-dialog .experience-preview .experience-preview-eyebrow,
#explore-dialog > .eyebrow,
#privacy-dialog .eyebrow {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .09em;
}

/* Form copy and controls retain their existing colours and spacing. */
#content-dialog .message-card .message-card-intro,
#content-dialog .experience-preview p:not(.experience-preview-eyebrow),
#content-dialog .event-gallery-intro {
  font-size: var(--reading-body);
  line-height: 1.65;
}

#content-dialog .message-card label,
#content-dialog .wish-form label {
  font-size: var(--reading-label);
  line-height: 1.5;
}

#content-dialog .message-card input,
#content-dialog .message-card textarea {
  font-size: 16px;
  line-height: 1.6;
}

#content-dialog .modal-return,
#content-dialog .modal-disclosure summary,
#content-dialog .visitor-disclosure summary,
#content-dialog .visitor-content-link,
#content-dialog .modal-link,
#content-dialog .postcard-shortcuts button,
#content-dialog .message-card .message-submit,
#content-dialog .photobooth-launch {
  font-size: var(--reading-label);
  line-height: 1.5;
  min-height: 44px;
  white-space: normal;
}

#content-dialog .experience-preview-status {
  font-size: var(--reading-support);
  line-height: 1.4;
  letter-spacing: 0;
}

/* The gallery stays horizontal, with readable captions under each photograph. */
#content-dialog .event-gallery-caption,
#content-dialog .event-gallery-thumbnails span {
  font-size: var(--reading-label);
  line-height: 1.5;
  letter-spacing: 0;
}

#content-dialog .event-gallery-thumbnails span {
  min-height: 42px;
  overflow-wrap: break-word;
}

#content-dialog .event-gallery-thumbnails .photo-coming-soon {
  font-size: 14px;
  line-height: 1.4;
}

#content-dialog .event-gallery-thumbnails .photo-unavailable {
  font-size: 13px;
  line-height: 1.3;
}

/* The map wrapper's component stylesheet uses important font shorthands. */
#content-dialog .light-map-intro {
  font-size: var(--reading-body) !important;
  line-height: 1.7 !important;
}

#content-dialog .light-map-eyebrow,
#content-dialog .light-map-status,
#content-dialog .light-map-credit {
  font-size: var(--reading-support) !important;
  line-height: 1.6 !important;
  letter-spacing: 0;
}

#content-dialog .light-map-size,
#content-dialog .light-map-building,
#content-dialog .light-map-loading {
  font-size: var(--reading-label);
  line-height: 1.5;
}

#content-dialog .light-map-heading { flex-wrap: wrap; }

/* Photobooth choices, camera guidance and export information. */
.online-photobooth .opb-header > div > p:last-child {
  font-size: var(--reading-body);
  line-height: 1.65;
}

.online-photobooth .opb-studio h3,
.online-photobooth .opb-preview h3,
.online-photobooth .opb-frames legend,
.online-photobooth .opb-frame-copy strong,
.online-photobooth .opb-button,
.online-photobooth .opb-source-actions .opb-button,
.online-photobooth .opb-text-button {
  font-size: var(--reading-label);
  line-height: 1.5;
}

.online-photobooth .opb-eyebrow,
.online-photobooth .opb-frame-copy small,
.online-photobooth .opb-upload-hint,
.online-photobooth .opb-camera-placeholder p,
.online-photobooth .opb-shot-label,
.online-photobooth .opb-status,
.online-photobooth .opb-privacy,
.online-photobooth .opb-preview-tag,
.online-photobooth .opb-export-note {
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
}

.online-photobooth .opb-button,
.online-photobooth .opb-text-button { min-height: 44px; }
.online-photobooth .opb-frame-copy { min-width: 0; overflow-wrap: break-word; }
.online-photobooth .opb-preview-heading { flex-wrap: wrap; }

/* Read the instructions comfortably before and during the game. */
:is(#finding-santa, .flight-help-dialog) .flight-guide-step p,
:is(#finding-santa, .flight-help-dialog) .flight-guide-goal,
:is(#finding-santa, .flight-help-dialog) .flight-guide-extras,
:is(#finding-santa, .flight-help-dialog) .flight-rules p,
#finding-santa .flight-pause-panel > p:not(.flight-kicker),
.flight-help-dialog .flight-help-status {
  font-size: var(--reading-instructions);
  line-height: 1.6;
}

:is(#finding-santa, .flight-help-dialog) .flight-guide-step strong {
  font-size: 16px;
  line-height: 1.5;
}

#finding-santa .flight-header button,
#finding-santa .flight-header-actions button,
:is(#finding-santa, .flight-help-dialog) .flight-guide-switch button,
:is(#finding-santa, .flight-help-dialog) .flight-primary,
#finding-santa .flight-text-button,
#finding-santa[data-state="won"] .flight-result .flight-primary,
#finding-santa[data-state="won"] .flight-text-button,
#finding-santa .flight-howto summary,
#finding-santa .flight-nickname,
#finding-santa .flight-ranking-open,
.flight-ranking footer button {
  font-size: var(--reading-label);
  line-height: 1.5;
  min-height: 44px;
}

:is(#finding-santa, .flight-help-dialog) .flight-guide-space,
:is(#finding-santa, .flight-help-dialog) .flight-guide-fire {
  font-size: 14px;
  line-height: 1.3;
}

#finding-santa .flight-ready .flight-kicker,
#finding-santa .flight-ready .flight-best,
#finding-santa .flight-kicker,
#finding-santa .flight-best,
#finding-santa .flight-load-error,
#finding-santa .flight-rules small,
#finding-santa .flight-nickname > small,
#finding-santa .flight-play-count span,
#finding-santa .flight-result-score span,
#finding-santa .flight-result-score small,
.flight-help-dialog .flight-kicker,
.flight-ranking .flight-kicker,
.flight-ranking .flight-ranking-summary > span,
.flight-ranking .flight-ranking-summary p,
.flight-ranking .flight-ranking-note,
.flight-ranking .flight-ranking-message,
.flight-ranking td small {
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
}

#finding-santa .flight-record-status {
  font-size: 13px !important;
  line-height: 1.55 !important;
}

#finding-santa .flight-nickname input { font-size: 16px; min-height: 44px; }
.flight-ranking table { font-size: 16px; line-height: 1.5; }
.flight-ranking th { font-size: 13px; line-height: 1.5; letter-spacing: 0; }

/* Site directory, hints and text controls; icon-only buttons keep their sizes. */
#explore-dialog .directory-item small,
#explore-dialog footer,
.site-footer,
.site-footer button,
#tooltip,
#tooltip .tooltip-copy strong,
#tooltip .tooltip-copy small,
#toast,
.map-play-hint,
#snow-toggle,
#move,
#mobile-map {
  font-size: var(--reading-label);
  line-height: 1.5;
  letter-spacing: 0;
}

#explore-dialog .directory-item strong { line-height: 1.35; }
#explore-dialog footer { white-space: normal; }
.site-footer .footer-links { flex-wrap: wrap; row-gap: 8px; }
#tooltip .tooltip-copy small { font-size: 13px; }
#snow-toggle { min-height: 44px; }

@media (max-width: 600px) {
  :root { --reading-body: 16px; --reading-instructions: 16px; }
  #content-dialog .visitor-hours { font-size: 16px; }
  #explore-dialog .directory-item strong { font-size: 19px; }
  .online-photobooth .opb-frame-options { gap: 6px; }
}
