/* Language disclosure: same type, hairline and smoked surface as the nav. */
.language-picker { position: relative; flex: 0 0 auto; }
.language-picker__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 64px;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--bone-dim);
  cursor: pointer;
}
.language-picker__code {
  font: 500 0.68rem "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.12em;
  direction: ltr;
}
.language-picker__trigger:hover,
.language-picker__trigger[aria-expanded="true"] { color: var(--bone); border-color: var(--bone-faint); }
.language-picker__menu {
  position: absolute;
  inset-block-start: calc(100% + 12px);
  inset-inline-end: 0;
  z-index: 20;
  width: 176px;
  padding: 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(14, 16, 22, 0.97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.language-picker__menu[hidden] { display: none; }
.language-picker__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bone-dim);
  font: 400 1.1rem "Cormorant Garamond", Georgia, serif;
  text-align: start;
  cursor: pointer;
}
.language-picker__option[lang="ar"] { font-family: "Amiri", "Geeza Pro", serif; }
.language-picker__option:hover,
.language-picker__option:focus-visible { background: rgba(240, 235, 225, 0.07); color: var(--bone); }
.language-picker__option[aria-pressed="true"] { color: var(--bone); }
.language-picker__option svg { opacity: 0; flex-shrink: 0; }
.language-picker__option[aria-pressed="true"] svg { opacity: 1; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.gate > .language-picker {
  position: absolute;
  z-index: 5;
  inset-block-start: max(1.25rem, env(safe-area-inset-top));
  inset-inline-end: max(1.25rem, env(safe-area-inset-right));
}
.site-nav__end { flex-shrink: 0; }
.site-nav__brand { min-width: 0; }
.hero__title, .chapter-view__title, .chapters__title, .fan-card__name {
  overflow-wrap: break-word;
}
:lang(la) { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] {
  --font-display: "Amiri", "Geeza Pro", serif;
  --font-body: "Amiri", "Geeza Pro", serif;
}
html[lang="ar"] body * { letter-spacing: normal; }
html[lang="ar"] .hero__title { line-height: 1.4; }
html[lang="ar"] .hero__title-line { padding-block: 0.15em; margin-block: -0.15em; }
html[lang="ar"] .site-nav__brand { transform-origin: right center; }
html[lang="ar"] .chapter-view__panel,
html[lang="ar"] .dawn__brand,
html[lang="ar"] .dawn__col,
html[lang="ar"] .dawn__honest { text-align: start; }
/* Artwork, card choreography and progress counters keep their physical order. */
.chapters__fan, .chapters__controls, .chapter-view__progress { direction: ltr; }
html[lang="ar"] .fan-card__body, html[lang="ar"] .fan-card__pill { direction: rtl; }
html[lang="ar"] .oath__ar { display: none; } /* Avoid duplicate Arabic subtitles. */
html[lang="ar"] .oath__caption { font-style: normal; }
@media (min-width: 861px) {
  html:not([lang="en"]):not([lang="ar"]) .hero__heading .hero__title {
    font-size: clamp(2.4rem, 5.3vw, 5.7rem);
  }
}
@media (max-width: 1100px) {
  .site-nav__links { display: none; }
}
@media (max-width: 600px) {
  .site-nav { gap: 0.5rem; padding-inline: 0.75rem; }
  .site-nav__wordmark { font-size: 0.82rem; letter-spacing: 0.12em; padding-left: 0; }
  .site-nav__brand { gap: 0.4rem; }
  .site-nav__end { gap: 0.4rem; }
  /* The identical action remains prominent in the hero. */
  .site-nav__cta { display: none; }
  .hero__title { font-size: clamp(2rem, 7vw, 3.4rem); }
  .hero__eyebrow { letter-spacing: 0.14em; line-height: 1.6; }
  .hero__footer { grid-template-columns: 1fr auto; gap: 0.8rem; }
  .hero__location { grid-column: 1 / -1; text-align: center; }
  .hero__dates { text-align: start; }
  .hero__scroll { justify-self: end; }
  .chapter-view__inner { padding-bottom: max(26vh, env(safe-area-inset-bottom)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .gate__copy { padding-block: 1rem; }
  .gate__line { font-size: clamp(1.5rem, 5vh, 2rem); }
}

/* Reserve the lazy fallback image’s space so chapter tap targets do not move. */
.voyage__fallback img { height: auto; }
