.language-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 6px;
  font-family: system-ui, sans-serif;
}

.header > .language-switch {
  justify-content: flex-end;
  padding-inline: var(--gutter);
  border-top: 1px solid #ffffff28;
}

.reading-header > .language-switch {
  flex-basis: 100%;
  justify-content: flex-end;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 9px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}

.language-switch a:hover,
.language-switch a[aria-current="true"] {
  text-decoration: underline;
}

.header > .language-suggestion:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px var(--gutter);
  border-top: 1px solid #ffffff28;
  color: inherit;
  font: 600 13px/1.4 system-ui, sans-serif;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.localized-page .reading-header,
.localized-page .localized-cta {
  background: linear-gradient(105deg, rgba(64, 0, 5, .86), rgba(91, 0, 8, .83)), url("/assets/photos/ruby-satin.webp") center / cover;
  color: #fff;
}

.localized-page .reading-header small,
.localized-page .reading-book {
  color: #fff;
}

.localized-page .reading-header a:focus-visible {
  outline-color: #fff;
}

.localized-page .reading-book {
  border-color: #e2bcb9;
}

.localized-page .reading-nav [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.localized-page .reading-intro h1 {
  max-width: 24ch;
  overflow-wrap: anywhere;
}

.localized-related {
  margin-bottom: 32px;
}

.localized-related a:hover h3 {
  text-decoration: underline;
}

html[lang="ar"] .localized-page {
  font-family: system-ui, Arial, sans-serif;
}

html[dir="rtl"] .localized-page :is(h1, h2, h3, .reading-eyebrow, .reading-brand small) {
  font-family: inherit;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.45;
}

html[dir="rtl"] .localized-page .reading-breadcrumb li + li::before {
  margin-left: 11px;
  margin-right: 0;
}

@media (max-width: 760px) {
  .header > .language-switch,
  .reading-header > .language-switch {
    justify-content: center;
  }

  .reading-header:has(> .language-switch) {
    row-gap: 8px;
  }
}
