.alphabet-table > h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.alphabet-help, .alphabet-note { margin: .75rem 0 1.25rem; color: var(--muted); }
.alphabet-help { margin-bottom: .5rem; color: inherit; font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 700; text-align: center; }
.letter-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem; margin-bottom: 1rem; }
.letter-section .letter-heading h3 { margin: 0; }
.alphabet-table .audio-status { display: block; min-width: 0; min-height: 1.6em; margin: 0; overflow: hidden; color: var(--muted); font-size: .875rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.alphabet-table .audio-status:empty { display: block; }
.alphabet-panel { padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--border); border-radius: 1.25rem; }
.letter-section { --letter-color: #6a9bff; --letter-background: #101c32; --letter-hover: #192d4b; }
.letter-section.vowels { --letter-color: #36d577; --letter-background: #0d2118; --letter-hover: #153b29; }
.letter-section.digraphs { --letter-color: #bd74ff; --letter-background: #1b142b; --letter-hover: #302044; }
.letter-section + .letter-section { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.letter-section h3 { margin: 0 0 1rem; color: var(--letter-color); font-size: 1.25rem; font-weight: 500; }
.letter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; margin: 0; padding: 0; list-style: none; }
.vowels .letter-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.letter-grid li { min-width: 0; }
.letter-tile { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 4rem; padding: .75rem .25rem; border: 0; border-radius: .875rem; background: var(--letter-background); color: var(--letter-color); font-size: 1.5rem; font-weight: 650; transition: background 150ms ease, box-shadow 150ms ease; }
.letter-tile svg { width: 1rem; height: 1rem; flex: none; fill: currentColor; }
.letter-tile:hover { background: var(--letter-hover); }
.letter-tile.is-playing { background: var(--letter-hover); box-shadow: inset 0 0 0 2px currentColor; }
.letter-tile:focus-visible { outline-color: var(--letter-color); outline-offset: 2px; }
.alphabet-note { margin-top: 1.25rem; }
.pronunciation-lesson { margin-top: 2rem; }
.pronunciation-lesson > h2 { margin-bottom: .5rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.pronunciation-topic .lesson-content { padding: .75rem 1rem 1rem; }
.pronunciation-topic .native-title { margin: 0; }
.sq-pronunciation { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; vertical-align: middle; }
.sq-pronunciation > [lang="sq"] { color: #a5e3ff; font-weight: 600; }
.sq-pronunciation .speak-button { flex: none; margin: 0; }
.hero-heading h1 .sq-pronunciation { gap: .75rem; }
.hero-heading h1 .sq-pronunciation > [lang="sq"] { color: inherit; font-weight: inherit; }
.hero-audio-status { grid-column: 1 / -1; }
.hero { row-gap: .75rem; }
.hero .audio-status, .pronunciation-topic .audio-status { display: block; min-width: 0; height: 1.6em; margin: .35rem 0; overflow: hidden; color: var(--muted); font-size: .875rem; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.hero .audio-status:empty, .pronunciation-topic .audio-status:empty { display: block; }
.pronunciation-topic .lesson-table { min-width: 32rem; }
.pronunciation-topic .lesson-table td { padding: .35rem .65rem; }
.pronunciation-topic .lesson-table th { padding: .45rem .65rem; }
.pronunciation-topic .lesson-table td:first-child { white-space: nowrap; }
.pronunciation-topic .lesson-table-wrap { margin: .65rem 0; }
.pronunciation-topic .letter-note-heading { padding-inline-start: calc(.65rem + 1px); }
@media (prefers-reduced-motion: reduce) {
  .letter-tile { transition: none; }
}
@media (max-width: 600px) {
  .letter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vowels .letter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .letter-tile { min-height: 3.5rem; }
  .letter-section + .letter-section { margin-top: 1.25rem; padding-top: 1.25rem; }
}
@media (max-width: 360px) {
  .vowels .letter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .letter-section .letter-heading h3 { font-size: 1rem; }
}
