/* Allow native scripts and longer translations to keep the mobile H5 readable. */
html:not(:lang(en)) h1,
html:not(:lang(en)) h2,
html:not(:lang(en)) h3,
html:not(:lang(en)) .button,
html:not(:lang(en)) .text-link { overflow-wrap: anywhere; hyphens: auto; }
.app-topnav a { text-align: center; }
.quick-topics a > span:last-child { min-width: 0; max-width: 100%; }
.quick-topics strong { overflow-wrap: anywhere; hyphens: auto; }
.feature-story-copy h3 br { display: initial; }
.home-event .event-date > span { overflow-wrap: anywhere; }
.anatomy-diagram { width: 100%; height: auto; }
.storage-targets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storage-targets > div { min-width: 0; }
.storage-targets strong { overflow-wrap: anywhere; hyphens: auto; }
.language-terms strong { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
html:not(:lang(en)) .hero-copy h1 { text-wrap: balance; }
html:lang(ja) { --sans: Arial, 'Noto Sans CJK JP', sans-serif; --serif: Georgia, 'Noto Serif CJK JP', serif; }
html:lang(ko) { --sans: Arial, 'Noto Sans CJK KR', sans-serif; --serif: Georgia, 'Noto Serif CJK KR', serif; }
html:lang(zh-Hant) { --sans: Arial, 'Noto Sans CJK TC', sans-serif; --serif: Georgia, 'Noto Serif CJK TC', serif; }
html:lang(th) { --sans: Arial, 'Noto Sans Thai', sans-serif; --serif: Georgia, 'Noto Serif Thai', serif; }
html:lang(hi) { --sans: Arial, 'Noto Sans Devanagari', sans-serif; --serif: Georgia, 'Noto Serif Devanagari', serif; }
:lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(zh-Hant) .eyebrow,
:lang(th) .eyebrow, :lang(hi) .eyebrow { letter-spacing: .035em; }
:lang(th) h1, :lang(th) h2, :lang(th) h3,
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.35; letter-spacing: 0; }
@media (min-width:701px) and (max-width:1100px) {
  html:not(:lang(en)) .app-topnav { gap: 15px; margin-right: 0; }
  html:not(:lang(en)) .app-header-inner { gap: 16px; }
}
@media (max-width:700px) {
  .section-heading { flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; }
  .section-heading > div { min-width: 0; flex: 1 1 185px; }
  .section-heading > a { white-space: normal; flex: 0 1 auto; max-width: 100%; }
  .bottom-nav-inner { min-height: 78px; height: auto; align-items: stretch; }
  .bottom-nav-inner a { min-height: 67px; font-size: .875rem; justify-content: flex-start; padding-top: 4px; }
  .bottom-nav-inner a > span { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; text-align: center; line-height: 1.15; padding-inline: 2px; }
  .bottom-nav-inner .app-icon { flex: 0 0 23px; }
  .home-hero .hero-copy { max-width: 100%; }
  .hero-copy h1 { overflow-wrap: anywhere; hyphens: auto; }
  .notes-invitation .button { flex-shrink: 1; }
  html:not(:lang(en)) .language-terms button { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  :lang(ja) h1, :lang(ko) h1, :lang(zh-Hant) h1 { line-height: 1.25; }
  :lang(ja) .hero-copy h1 { font-size: 2.2rem; line-height: 1.3; }
  :lang(hi) .hero-copy h1 { font-size: 2.4rem; }
  :lang(th) .hero-copy h1, :lang(hi) .hero-copy h1 { line-height: 1.35; }
}
