/* Public reference pages (/alphabet/, /alphabet/consonants/, /alphabet/vowels/, /tones/, /sample-lesson/).
   GENERATED by scripts/build_ref_pages.py: edit the script, not this file. Colour tokens are copied from styles.css. */
@font-face { font-family: 'Noto Sans Lao'; src: url('fonts/NotoSansLao.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0E81-0EDF, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Sans Lao Looped'; src: url('fonts/NotoSansLaoLooped.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0E81-0EDF, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Serif Lao'; src: url('fonts/NotoSerifLao.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0E81-0EDF, U+200C-200D, U+25CC; }
/* Light/dark as in styles.css: the device's setting unless the Display control (ref.js, or the app) picked Light or
   Dark (html[data-theme]). --lao-font: the app's default stack (settings.js FONTS.standard) until a choice is made. */
:root {
  --bg: #f5f7fb;
  --fg: #141a26;
  --muted: #566073;
  --card: #ffffff;
  --border: #d3d9e4;
  --accent: #12408f; --accent-fill: #12408f;
  --on-accent: #ffffff;
  --control-border: #838b9a;
  --danger: #b3261e;
  --ok: #1b7a43;
  --warm: #c8102e;
  --on-warm: #ffffff;
  color-scheme: light dark;
  --lao-font: 'Leelawadee UI', 'Noto Sans Lao', sans-serif;
  --lao-lh: 1.9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
  --bg: #0f1420; --fg: #e9edf5; --muted: #9ba6ba; --card: #182032; --border: #2f3a52; --accent: #86abff; --accent-fill: #6f97f5;
  --on-accent: #0a1630; --control-border: #66718a; --danger: #ff8a7a; --ok: #5fd08a; --warm: #ff7a8a; --on-warm: #2a0710;
  }
}
:root[data-theme='dark'] {
  --bg: #0f1420; --fg: #e9edf5; --muted: #9ba6ba; --card: #182032; --border: #2f3a52; --accent: #86abff; --accent-fill: #6f97f5;
  --on-accent: #0a1630; --control-border: #66718a; --danger: #ff8a7a; --ok: #5fd08a; --warm: #ff7a8a; --on-warm: #2a0710;
}
:root[data-theme='dark'] { color-scheme: dark; }
:root[data-theme='light'] { color-scheme: light; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent); }
[lang='lo'] { font-family: var(--lao-font); line-height: var(--lao-lh); }
.muted { color: var(--muted); }
/* the signed-out top bar, as styles.css .so-bar: fixed while the page scrolls; compact under 560px (logo only, icon
   Display button) so it fits in 320px */
html { scroll-padding-top: 72px; }
.site-head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--card) 90%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.site-head-in { display: flex; align-items: center; gap: 8px; max-width: 960px; margin: 0 auto; padding: 6px 16px; }
.head-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-tools > * { flex: none; white-space: nowrap; }
.display-button { gap: 6px; }
@media (max-width: 559px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .so-long { display: none; }
  .display-button { width: 44px; padding: 0; }
  .head-tools .btn.small { padding: 0 12px; }
  /* the panel hangs from the bar's right edge (.site-head is the positioned box), never off the left of the screen */
  .site-head .display-menu { position: static; }
  .site-head .display-panel { top: calc(100% + 4px); right: 16px; }
}
/* the five public pages as cards, under the breadcrumb; the current one is marked. Phones: 2 across, the fifth across
   the full width; from 560px 3 + 2 (a 6-column grid); from 900px all 5 in one row across the content column */
.ref-tabs ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 559px) { .ref-tabs li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 560px) {
  .ref-tabs ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ref-tabs li { grid-column: span 2; }
  .ref-tabs li:nth-child(4), .ref-tabs li:nth-child(5) { grid-column: span 3; }
}
@media (min-width: 900px) {
  .ref-tabs ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ref-tabs li, .ref-tabs li:nth-child(4), .ref-tabs li:nth-child(5) { grid-column: auto; }
}
.ref-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 2px 8px; border: 1px solid var(--control-border); border-radius: 12px; background: var(--card); color: var(--fg); font-weight: 600; font-size: 0.9rem; text-decoration: none; text-align: center; }
.ref-tab:hover { border-color: var(--accent); }
.ref-tab[aria-current] { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.tab-glyph { font-size: 1.15rem; color: var(--accent); line-height: 1.6; white-space: nowrap; }
/* the Display control (ref.js; markup from settings.js displayControls, styles as in styles.css) */
button.btn { font: inherit; font-weight: 600; background: var(--card); cursor: pointer; }
.display-menu { position: relative; }
.display-button[aria-expanded='true'] { border-color: var(--accent); }
.display-panel { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: min(300px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--fg); box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); }
.display-head { margin: 8px 0 4px; font-size: 0.875rem; font-weight: 600; }
.display-head:first-child { margin-top: 0; }
.display-panel .row { display: flex; flex-wrap: wrap; gap: 8px; }
.display-panel .col { display: grid; gap: 2px; }
.display-panel label { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 0.875rem; cursor: pointer; }
.display-panel label.pill { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.875rem; color: var(--fg); }
.display-panel label.check { padding: 6px 0; }
.display-panel input { accent-color: var(--accent); margin: 0; }
.font-sample { font-size: 1.3rem; margin-left: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex: none; color: var(--fg); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.crumbs, .ref-tabs, main, .site-foot { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.crumbs { padding-top: 12px; font-size: 0.875rem; color: var(--muted); }
main { padding-bottom: 24px; }
h1 { font-size: 1.75rem; line-height: 1.3; margin: 16px 0 12px; }
h2 { font-size: 1.35rem; margin: 32px 0 8px; }
h3 { font-size: 1.15rem; margin: 20px 0 8px; }
h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 8px 0; }
.lead { font-size: 1.1rem; }
.rom { color: var(--muted); font-weight: 400; }
h1 .lao-in, h2 .lao-in { font-weight: 600; }
h1 .rom, h2 .rom { font-size: 0.7em; }
/* Lao inside a line of English: line-height 1 keeps the taller Lao from pushing its line apart from the others; the
   paragraph's own line-height leaves room for the marks above and below */
.lao-in { font-size: 1.3em; padding-inline: 2px; line-height: 1; }
main p, main li { line-height: 1.75; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--control-border); text-decoration: none; color: var(--fg); font-weight: 600; }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn.small { min-height: 44px; padding: 0 12px; font-size: 0.875rem; }
.pill { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.cls-high { border-color: var(--warm); color: var(--warm); }
.cls-mid { border-color: var(--accent); color: var(--accent); }
.cls-low { border-color: var(--ok); color: var(--ok); }
.ref-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ref-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ref-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.glyph { font-size: 3rem; font-weight: 500; min-width: 1.4em; margin-right: 4px; }
.sounds { list-style: none; margin: 4px 0; padding: 0; }
.ex { margin: 6px 0; }
.ex-label { color: var(--muted); font-size: 0.875rem; }
.ex-lao { font-size: 1.5rem; }
.gloss::before { content: '“'; }
.gloss::after { content: '”'; }
.tip { margin: 8px 0 0; font-size: 0.94rem; color: var(--muted); }
.pair { border-top: 1px solid var(--border); }
.pair-cols { display: grid; gap: 12px; }
@media (min-width: 720px) { .pair-cols { grid-template-columns: 1fr 1fr; } .pair-cols .ref-grid { grid-template-columns: 1fr; } }
.cta { margin: 40px 0 8px; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; }
.cta h2 { margin-top: 0; }
.ref-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ref-nav a { display: inline-block; padding: 10px 0; }
.ref-nav a[aria-current] { color: var(--fg); font-weight: 600; text-decoration: none; }
.site-foot { border-top: 1px solid var(--border); padding-top: 12px; padding-bottom: 32px; font-size: 0.9rem; }
.counts li { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
th, td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--border); vertical-align: middle; }
thead th { border-top: 0; font-size: 0.875rem; color: var(--muted); }
.cell-lao { font-size: 1.9rem; }
.tone-mk { color: var(--accent); }
.tone-cell { white-space: nowrap; }
.tone-cell .muted { margin-left: 6px; font-size: 0.875rem; }
.tone-contour { width: 48px; height: 32px; vertical-align: middle; flex: none; }
.tone-frame { fill: color-mix(in srgb, var(--fg) 4%, transparent); stroke: var(--muted); stroke-width: 1.5; }
.tone-guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
.tone-line { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.tone-end { fill: var(--accent); }
.five { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.five li { display: flex; gap: 12px; align-items: center; }
.five .tone-contour { width: 72px; height: 48px; }
.pattern td { text-align: center; font-size: 0.8rem; }
.pattern td span { display: block; }
.pattern th[scope='col'] { text-align: center; }
.classes .lao-in { margin-right: 2px; }
.rule { border-top: 1px solid var(--border); }
.legend { list-style: none; padding: 0; margin: 8px 0; font-size: 0.94rem; }
.legend sup, .pattern sup { color: var(--accent); font-weight: 700; margin-left: 1px; }
.places { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.places .lao-in { font-size: 1.6em; }
.sources { font-size: 0.875rem; }
/* ---- the sample lesson (/sample-lesson/): a hero, then each lesson as a numbered run of step cards on a blue-to-red
   line (the landing's accent: Lao blue into Lao red) */
.grad-text { background: linear-gradient(120deg, var(--accent) 15%, var(--warm) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-hero { display: grid; gap: 20px; margin: 16px 0 8px; align-items: center; }
.sl-kicker { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warm); }
.sl-hero h1 { font-size: clamp(1.75rem, 5.2vw, 2.6rem); line-height: 1.15; margin: 6px 0 12px; letter-spacing: -0.01em; }
.sl-meta { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sl-meta li { font-size: 0.85rem; font-weight: 600; line-height: 1.4; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); }
.sl-hero-art { position: relative; overflow: hidden; text-align: center; padding: 22px 16px 20px; border-radius: 24px; border: 1px solid transparent;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--warm) 16%, transparent), transparent 60%) padding-box,
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--card)), var(--card)) padding-box,
    linear-gradient(135deg, var(--accent), var(--warm)) border-box;
  box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--accent) 70%, transparent); }
.sl-hero-cap { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sl-hero-lao { display: block; font-size: 5.5rem; font-weight: 600; line-height: 1.7; }
.sl-hero-rom { margin: 0; font-size: 1.1rem; font-weight: 600; }
.sl-toc ol { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sl-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--control-border); background: var(--card); color: var(--fg); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.sl-toc a:hover, .sl-toc a:focus-visible { border-color: var(--accent); }
.sl-lesson-head { margin: 44px 0 8px; }
.sl-lesson-tag { display: inline-block; margin: 0; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(120deg, #12408f, #c8102e); }
.sl-lesson-head h2 { margin: 8px 0 2px; font-size: 1.6rem; }
.sl-lesson-sum { margin: 0; color: var(--muted); }
.sl-steps { position: relative; list-style: none; margin: 0; padding: 0; }
.sl-steps::before { content: ''; position: absolute; left: 17px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--warm)); opacity: 0.45; }
.sl-step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; margin: 16px 0; }
.sl-num { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin-top: 14px; border-radius: 50%; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #12408f, #c8102e); box-shadow: 0 0 0 4px var(--bg); }
.sl-card { min-width: 0; display: grid; background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 16px 32px -28px rgb(0 0 0 / 0.35); }
.sl-art { display: grid; place-items: center; padding: 16px; min-height: 120px;
  background: radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--warm) 12%, transparent), transparent 65%), linear-gradient(150deg, color-mix(in srgb, var(--accent) 12%, var(--card)), var(--card)); }
.sl-glyph { font-size: 4.5rem; font-weight: 500; line-height: 1.6; color: var(--accent); }
.sl-phrase { font-size: 2.6rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.sl-body { padding: 14px 16px 16px; min-width: 0; }
.sl-kind { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sl-body h3 { margin: 2px 0 8px; font-size: 1.25rem; }
.sl-body p { margin: 8px 0; }
.sl-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sl-sound strong { font-size: 1.15rem; color: var(--accent); }
.sl-aside { font-size: 0.92rem; color: var(--muted); padding-left: 10px; border-left: 3px solid color-mix(in srgb, var(--accent) 35%, var(--border)); }
.sl-tone { display: flex; align-items: center; gap: 10px; }
.sl-tone .tone-contour { width: 60px; height: 40px; }
.sl-tone .muted { font-size: 0.9rem; }
.sl-eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.sl-tile { display: grid; justify-items: center; min-width: 60px; padding: 2px 10px 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.sl-tile-lao { font-size: 2.2rem; line-height: 1.7; }
.sl-tile-rom { min-height: 1.4em; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.sl-op { font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.sl-result { display: grid; justify-items: center; padding: 2px 20px 8px; border-radius: 16px; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--accent), var(--warm)) border-box; }
.sl-result-lao { font-size: 2.8rem; font-weight: 600; line-height: 1.7; color: var(--accent); }
.sl-result-rom { font-weight: 700; }
.sl-result-gloss { font-size: 0.85rem; color: var(--muted); }
.quiz-row { display: grid; gap: 12px; margin-top: 12px; }
.quiz { padding: 12px 14px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); }
.quiz-prompt { margin: 0 !important; font-weight: 700; }
.quiz-shown { text-align: center; }
.quiz-lao { font-size: 3rem; font-weight: 500; line-height: 1.7; }
.quiz-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quiz-opt { width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid var(--control-border); border-radius: 12px; background: var(--card); color: var(--fg); font: inherit; font-size: 1.05rem; font-weight: 600; cursor: pointer; }
.quiz-opt:disabled { cursor: default; color: var(--fg); opacity: 1; }
.quiz-opt:not(:disabled):hover { border-color: var(--accent); }
.quiz-opt[data-state='right'] { border: 2px solid var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--card)); }
.quiz-opt[data-state='right']::after { content: ' ✓'; color: var(--ok); }
.quiz-opt[data-state='wrong'] { border: 2px solid var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--card)); }
.quiz-opt[data-state='wrong']::after { content: ' ✗'; color: var(--danger); }
.quiz-status { min-height: 1.75em; margin: 8px 0 0 !important; font-weight: 700; }
.quiz-status[data-state='right'] { color: var(--ok); }
.quiz-status[data-state='wrong'] { color: var(--danger); }
.quiz-answer { margin: 4px 0; font-size: 0.92rem; }
.quiz-answer summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--accent); font-weight: 600; }
.quiz-again { min-height: 44px; padding: 0 14px; border: 1px solid var(--control-border); border-radius: 12px; background: var(--card); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; margin-bottom: 6px; }
.sl-wave { width: 150px; height: 60px; }
.sl-wave rect { fill: url(#sl-wave-grad); }
.sl-minis { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.sl-mini { padding: 4px 14px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); }
.sl-mini-lao { display: block; font-size: 2.6rem; line-height: 1.7; color: var(--accent); }
.sl-mini p { margin: 4px 0; font-size: 0.95rem; }
.sl-mini-snd { font-size: 0.85rem !important; color: var(--muted); }
.sl-mini-snd strong { color: var(--accent); font-size: 1.05rem; }
.sl-culture { margin: 12px 0 4px; padding: 10px 14px; border-radius: 12px; border-left: 4px solid var(--warm); background: color-mix(in srgb, var(--warm) 7%, var(--card)); }
.sl-culture p { margin: 4px 0; }
.sl-culture-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm); }
.sl-summary { text-align: center; padding: 14px 16px; border-radius: 16px; border: 2px solid transparent;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--card)), var(--card)) padding-box, linear-gradient(135deg, var(--accent), var(--warm)) border-box; }
.sl-sum-title { margin: 0 0 6px !important; font-size: 1.35rem; font-weight: 800; }
.sl-sum-label { margin: 10px 0 2px !important; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.sl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sl-chip-lao { display: inline-block; min-width: 52px; padding: 0 12px; font-size: 1.6rem; line-height: 1.8; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); }
.sl-sum-line { color: var(--muted); }
.sl-points { margin: 14px 0 0; padding-left: 20px; }
.sl-points li { margin: 6px 0; }
@media (min-width: 640px) {
  .quiz-row { grid-template-columns: 1fr 1fr; }
  .sl-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .sl-steps::before { left: 21px; }
  .sl-step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; margin: 20px 0; }
  .sl-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .sl-step:not(.sl-wide) .sl-card { grid-template-columns: 220px minmax(0, 1fr); }
  .sl-art { padding: 20px; }
  .sl-body { padding: 18px 22px 20px; }
  .sl-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; margin-top: 24px; }
  .sl-hero-lao { font-size: 6.5rem; }
  .sl-eq { gap: 12px; padding: 8px 0; }
  .sl-tile { min-width: 76px; }
  .sl-tile-lao { font-size: 2.8rem; }
  .sl-result-lao { font-size: 3.4rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .quiz-opt, .sl-toc a, .ref-tab { transition: border-color 0.15s ease, background-color 0.15s ease; }
  @supports (animation-timeline: view()) {
    .sl-card { animation: sl-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes sl-rise { from { opacity: 0.35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  }
}
@media (max-width: 480px) { h1 { font-size: 1.45rem; } .cell-lao { font-size: 1.5rem; } th, td { padding: 6px; } .tone-cell .muted { display: none; } }
