/* Native disclosure keeps language links usable without JavaScript. */
.phonics-languages { display: flex; justify-content: flex-end; padding-block: 14px; line-height: 1.6; }
.phonics-language-picker { position: relative; max-width: 100%; z-index: 5; }
.phonics-language-picker summary { min-height: 44px; padding: 10px 16px; border: 1px solid #d4bee9; border-radius: 14px; background: #fffdf4; color: #51259d; cursor: pointer; font-weight: 800; overflow-wrap: anywhere; }
.phonics-language-picker summary:focus-visible { outline: 3px solid #17698e; outline-offset: 4px; }
.phonics-language-options { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: max-content; min-width: 100%; max-width: min(320px, calc(100vw - 40px)); max-height: 65vh; overflow-y: auto; padding: 8px; border: 1px solid #d4bee9; border-radius: 14px; background: #fffdf4; box-shadow: 0 10px 24px #21304026; }
.phonics-language-options a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #51259d; border-radius: 8px; text-decoration: none; }
.phonics-language-options a:hover, .phonics-language-options a:focus-visible { background: #f4eefb; }
.phonics-language-options a[aria-current="page"] { background: #eee5f9; font-weight: 800; }
.phonics-language-notice { font-weight: 700; }
.phonics-local-store-links .button { white-space: normal; text-align: center; max-width: 100%; }
.phonics-download .phonics-local-store-links { justify-content: center; }
.phonics-localized h1, .phonics-localized h2, .phonics-localized h3 { overflow-wrap: anywhere; }
.phonics-page.phonics-localized h1 { max-width: none; }
html[lang="ar"] .phonics-page, html[lang="ar"] .phonics-page :is(h1,h2,h3,.eyebrow,.button,.topnav a) { font-family: "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="th"] .phonics-page, html[lang="th"] .phonics-page :is(h1,h2,h3,.eyebrow,.button,.topnav a) { font-family: "Noto Sans Thai", system-ui, sans-serif; }
html:is([lang="ar"],[lang="th"]) .phonics-page :is(h1,h2,h3) { line-height: 1.5; letter-spacing: normal; }
html:is([lang="ar"],[lang="th"]) .phonics-page .eyebrow { letter-spacing: normal; }
html[lang="th"] .phonics-page h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
html[dir="rtl"] .phonics-page .phonics-hero-animation { direction: ltr; }
@media (max-width: 600px) {
    .phonics-local-store-links { gap: 16px; }
}
