@font-face {
  font-family: Sarabun;
  src: url("assets/fonts/Sarabun-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Sarabun;
  src: url("assets/fonts/Sarabun-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
.portal-nav, .portal-home {
  font-family: Sarabun, Tahoma, sans-serif;
  font-weight: 400;
}
.portal-home h2, .portal-home strong, .portal-actions a { font-weight: 600; }

.portal-nav, .portal-home, .portal-destination {
  --forest: #174f36;
  --mint: #dcefe4;
  --coral: #ff6b56;
  --panel-padding-inline: clamp(12px, 2.5vw, 36px);
}
.portal-destination {
  --sidebar-width: minmax(150px, 28%);
  --panel-gap: clamp(12px, 2.2vw, 28px);
}
.portal-nav {
  background: #1e4938;
  padding: 11px var(--panel-padding-inline);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 6px 15px;
}
body:has(.portal-home:not([hidden])) { background: #f7faf5; }
body:has(.portal-home:not([hidden])) .portal-nav { background: #145a3c; }
body:has(.portal-home:not([hidden])) .portal-nav [aria-current="page"] {
  background: #b9e769; color: #145a3c;
}
.portal-home { --forest: #145a3c; --mint: #eaf4e2; }
.portal-nav a, .portal-nav span { color: #fff; text-decoration: none; padding: 7px 1ch; }
.portal-nav [aria-current="page"] { color: #153522; background: #b2df9a; border-radius: 30px; font-weight: 600; }
.portal-nav [aria-disabled="true"] { color: #c2d7ca; }
.portal-membership-button {
  border: 1px solid #b2df9a; border-radius: 30px; padding: 7px 12px;
  background: #b2df9a; color: #153522; font-weight: 600;
}
.portal-membership-button:hover { background: #dcefe4; }
.portal-member-link {
  border: 0;
  padding: 7px 1ch;
  background: transparent;
  color: #fff;
}
.portal-member-link:hover { text-decoration: underline; }
.membership-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: 88dvh;
  border: 1px solid #bdd0c5;
  border-radius: 18px;
  padding: clamp(14px, 3vw, 24px);
  color: #174f36;
  font-family: Sarabun, Tahoma, sans-serif;
}
.membership-dialog::backdrop { background: #102b24a8; }
.membership-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.membership-dialog h2 { margin: 0; }
.membership-content form:not([method="dialog"]), .membership-content label { display: grid; gap: .55em; }
.membership-content form { margin-top: 1em; }
.membership-content label :is(input, select) {
  min-width: 0;
  width: 100%;
  padding: .55em;
  border: 1px solid #b3c7ba;
  border-radius: 8px;
  background: #fff;
}
.membership-content dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; }
.membership-content dd { margin: 0; overflow-wrap: anywhere; }
.membership-applications { list-style: none; padding: 0; }
.membership-applications li { border-top: 1px solid #bdd0c5; padding: .75em 0; }
.membership-applications li > a, .membership-applications li > span { display: block; }
.membership-status:empty { display: none; }
.portal-home, .portal-destination { max-width: 1280px; margin: auto; color: var(--forest); padding: 16px clamp(16px, 4vw, 48px) 50px; }
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 22px;
  background: var(--mint);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 38px);
}
.portal-slideshow { min-width: 0; }
.portal-slide-frame { display: grid; gap: 5px; color: var(--forest); text-decoration: none; }
.portal-slide-frame :is(img, .portal-slide-text) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 14px;
  background: white;
}
.portal-slide-frame .portal-slide-text {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .3em;
  padding: 1em;
  background: #19463d;
  color: #fff;
}
.portal-slide-text strong { font-size: clamp(1.75rem, 5vw, 4.5rem); }
.portal-slide-text span { color: #ffec3d; font-size: clamp(1rem, 2.5vw, 2rem); }
.portal-slide-text small { font-size: clamp(.9rem, 1.5vw, 1.25rem); }
.portal-slide-caption { font-weight: 600; }
.portal-slide-frame:hover .portal-slide-caption { text-decoration: underline; }
.portal-slide-frame [hidden] { display: none; }
.portal-hero h1 { margin: 10px 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.1; font-weight: 600; }
.portal-hero p { max-width: 440px; margin: 13px 0; }
.portal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-actions a { padding: 8px 18px; background: white; color: var(--forest); border: 1px solid #308656; border-radius: 22px; text-decoration: none; font-weight: 500; }
.portal-actions a:first-child { background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 600; }
.portal-home h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 12px; }
.portal-shortcuts { margin: 25px 0 36px; }
.portal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.portal-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
  background: #fff;
  border: 1px solid #bdd8c8;
  border-radius: 15px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}
.portal-card:hover, .portal-card:focus-visible { border-color: #247647; box-shadow: 0 3px 12px #174f3626; }
.portal-card small { color: #476456; }
.portal-card[data-home-reading-example] { text-align: start; }
.reading-player-toolbar, .reading-player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block: 12px;
}
.reading-player-toolbar label, .reading-player-controls label { display: flex; align-items: center; gap: 6px; }
.reading-player-toolbar select { min-height: 40px; font: inherit; }
.reading-player-toolbar [role="status"] { font-weight: 600; }
.reading-player-toolbar [hidden], .reading-player-controls[hidden], .reading-list .reading-row[hidden] { display: none; }
.one-syllable-entry { display: inline-block; margin-bottom: 10px; text-decoration: none; }
.portal-destination:is(.one-syllable-page, .portal-video-page) {
  width: 100%; max-width: none; padding: 14px var(--panel-padding-inline);
  font-family: Sarabun, Tahoma, sans-serif;
}
.one-syllable-page > a { display: none; }
.one-syllable-page > h1 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.one-syllable-page > p:empty { display: none; }
.one-syllable-page [data-section-content], .portal-video-layout {
  display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: var(--panel-gap);
}
.one-syllable-sidebar { min-height: 0; display: flex; flex-direction: column; background: #aaf0dc; border: 1px solid #294457; border-radius: 16px; padding: 12px; }
.one-syllable-back { align-self: start; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.one-syllable-sidebar h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 2.6vw, 2rem); }
.one-syllable-picker .reading-player-toolbar { margin: 0 0 10px; }
.one-syllable-picker select { max-width: 100%; }
.one-syllable-sidebar nav { display: grid; min-height: 0; gap: 7px; overflow: auto; overscroll-behavior: contain; }
.one-syllable-sidebar button { min-height: 40px; border: 1px solid #294457; border-radius: 9px; background: white; color: #183732; }
.one-syllable-sidebar button[aria-current] { background: #007b61; color: white; border-color: white; }
.one-syllable-sidebar.reading-practice-sidebar { padding-top: 8px; }
.reading-practice-sidebar h2 { margin-bottom: 2px; }
.reading-part-description { margin: 0 0 8px; font-size: .85rem; }
.reading-format-buttons {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px;
}
.reading-format-buttons[hidden] { display: none; }
.reading-part-buttons {
  display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center;
  gap: 6px; margin-bottom: 8px; padding-block: 3px 12px;
  min-width: 0; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; overscroll-behavior-inline: contain;
}
.reading-practice-sidebar :is(.reading-part-buttons, .reading-format-buttons) button {
  min-height: 32px; padding: 4px; font-size: clamp(.7rem, 1.25vw, .9rem);
}
.reading-practice-sidebar .reading-part-buttons button {
  flex: none; min-height: 40px; padding: 6px 12px;
  font-size: 1rem; line-height: 1.2; white-space: nowrap;
}
.reading-part-buttons button:focus-visible { outline-offset: -3px; }
.one-syllable-page .reading-practice-sidebar button[aria-pressed="true"] {
  background: #007b61; border-color: white; color: white;
}
.reading-practice-sidebar nav { grid-template-columns: minmax(0, 1fr); }
.reading-practice-sidebar [data-reading-lesson] { min-width: 0; }
.reading-practice-sidebar [data-reading-lesson] > span {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reading-practice-sidebar [data-reading-lesson] small { font-size: .85em; }
.reading-practice-sidebar [data-reading-lesson]:focus-visible > span {
  white-space: normal; overflow-wrap: anywhere;
}
.reading-practice-sidebar [data-reading-lesson][hidden] { display: none; }
.reading-practice-board { grid-template-rows: auto minmax(0, 1fr); }
.reading-practice-board .one-syllable-board-body { min-height: 0; overflow: auto; align-items: center; padding-top: 0; }
.reading-list .reading-consonant-reference {
  display: block; min-width: 0; padding: 0; border: 0; background: transparent;
}
.reading-list.consonant-reference-full { font-size: clamp(1rem, 2.3vw, 2rem); }
.consonant-reference-full table { table-layout: fixed; }
.consonant-reference-full thead th:first-child { width: 17%; }
.consonant-reference-full thead th:nth-child(2) { width: 43%; }
.consonant-reference-full :is(thead, td:last-child) { font-size: .72em; }
.consonant-reference-full tbody td:nth-child(2) { font-weight: 600; }
.consonant-reference-full .consonant-cell { display: block; white-space: nowrap; line-height: 1.4; }
.reading-list.consonant-reference-full .reading-consonant-reference { margin: 0 0 .7em; max-width: none; }
.reading-practice-board:has(.consonant-reference-full) .one-syllable-board-body {
  align-items: start;
}
.reading-consonant-reference table { width: 100%; border-collapse: collapse; text-align: start; }
.reading-consonant-reference caption { text-align: start; font-size: 1.2em; font-weight: 600; margin-bottom: 8px; }
.reading-consonant-reference :is(th, td) {
  padding: 8px; border: 1px solid #a8c9c4; text-align: start; overflow-wrap: anywhere;
}
.reading-consonant-reference thead { background: #21564c; color: #fff; }
.reading-consonant-reference tbody tr:nth-child(even) { background: #eef7f4; }
.consonant-slide {
  min-width: 0; min-height: 0; overflow: auto; padding: clamp(10px, 3vw, 40px);
  background: #000; color: #fff;
}
.consonant-slide h3, .consonant-slide p { margin: 0 0 .45em; max-width: none; }
.consonant-slide h3, .consonant-slide mark { color: #ffec3d; background: transparent; }
.consonant-equation { font-size: clamp(1.25rem, 5vw, 4.5rem); line-height: 1.2; overflow-wrap: anywhere; }
.consonant-equation strong { color: #c8ff65; }
.consonant-examples { border-top: 2px dashed #fff; padding-top: .35em; font-size: clamp(1rem, 3vw, 2.4rem); }
.consonant-pictures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 10px; }
.consonant-pictures figure { margin: 0; text-align: center; }
.consonant-pictures img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; max-height: 26dvh; display: block; }
.reading-blend-card {
  padding: clamp(6px, 2vw, 24px); border: 2px solid #235661; border-radius: 16px;
  background: linear-gradient(155deg, #4dccdb, #d9fbff);
}
.reading-practice-board:has(.reading-blend-slide) .one-syllable-board-body {
  align-items: stretch;
}
.reading-practice-board:has(.reading-blend-slide:not([hidden])) .one-syllable-board-body {
  overflow: visible;
}
.reading-practice-board .reading-blend-slide:not([hidden]) {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch;
  width: 100%; max-width: none; padding: 0; margin: 0; border: 0;
}
.reading-blend-slide .reading-blend-card {
  --reading-table-font: clamp(1rem, min(3.6vw, 6dvh), 3.5rem);
  display: grid; align-content: start; gap: clamp(5px, 1.3dvh, 12px);
  padding: clamp(6px, 1.4vw, 18px);
}
.reading-blend-slide .reading-blend-title {
  margin: 0; font-size: clamp(1.05rem, min(3vw, 5dvh), 2.9rem);
}
.reading-blend-slide .reading-blend-card tr { height: clamp(2rem, 8dvh, 5rem); }
.reading-blend-slide .reading-blend-card td {
  padding: 4px;
  font-size: var(--reading-table-font);
  line-height: 1.12; white-space: nowrap;
}
.reading-blend-slide .reading-blend-card .reading-blend-result {
  width: 40%; padding-inline: clamp(6px, 1.6vw, 22px);
}
.reading-blend-slide h3 { margin: 0; text-align: center; }
.reading-blend-title {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline;
  gap: .22em; min-width: 0; height: 1.5em; line-height: 1.3; white-space: nowrap;
  margin: 0 0 8px; font-size: clamp(1rem, 2.4vw, 2rem); font-weight: 600;
}
.reading-blend-meaning {
  min-width: 0; padding-inline-end: .16em;
  font-size: .66em; font-weight: 500; line-height: 1.45;
}
.reading-blend-card tr { height: clamp(2.4rem, 12dvh, 7rem); }
.reading-blend-card table {
  width: 100%; table-layout: fixed; border-spacing: 5px; border: 2px solid #21434a;
  border-radius: 12px; background: #f1f4f5;
}
.reading-blend-card td { padding: 6px 2px; text-align: center; font-size: clamp(.9rem, 2.6vw, 2rem); }
.reading-blend-piece, .reading-blend-result { border-radius: 8px; background: #fff; }
.reading-blend-piece:not(.reading-blend-spacer):nth-child(2) { color: #ac1455; font-weight: 700; }
.reading-blend-card:has(.split-vowel-table) { background: #fff; border-color: transparent; }
.reading-blend-card .split-vowel-title { background: #f0f0f0; padding-inline: .3em; align-content: center; }
.reading-blend-card .split-vowel-table { border: 0; border-spacing: 2px; background: #fff; }
.reading-blend-card .split-vowel-table td { background: #f0f0f0; color: #000; border-radius: 0; }
.reading-blend-card .split-vowel-table .reading-blend-piece:nth-child(2) { color: #d00000; }
.reading-blend-card .reading-blend-result { width: 54%; text-align: start; padding-inline: 5px; }
.reading-blend-result label { display: flex; align-items: center; gap: 3px; }
.reading-blend-result input {
  width: 100%; min-width: 0; padding: 4px; border: 1px solid #75958b; border-radius: 4px;
  font: inherit; color: #173632;
}
.reading-blend-result input::placeholder { font-size: .65em; }
.reading-blend-status { min-height: 1.4em; margin: 6px 0 0; font-size: .85rem; }
.one-syllable-stage { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.one-syllable-stage:fullscreen {
  box-sizing: border-box; padding: 12px; background: #f5f4ed; overflow: auto;
}
.one-syllable-stage:fullscreen .lesson-frame-space { flex: 1; min-height: 0; }
.one-syllable-stage h2 { margin: 0; text-align: start; font-size: clamp(1.15rem, 2.5vw, 2.1rem); }
.one-syllable-stage .reading-player-controls { margin: 9px 0 0; }
.one-syllable-stage .reading-player-controls a { text-decoration: none; }
.one-syllable-stage .reading-player-controls .btn { background: #007b61; color: white; }
.one-syllable-stage .reading-player-controls .btn:disabled { opacity: .55; }
.one-syllable-board {
  flex: 1; min-height: 0; display: grid; grid-template-rows: auto 1fr; gap: 10px;
  border: clamp(4px, .55vw, 8px) solid #111; border-radius: 28px;
  padding: clamp(10px, 2vw, 28px); background: white;
}
.one-syllable-board-body { min-width: 0; display: grid; align-items: start; padding-top: clamp(6px, 3dvh, 28px); }
.one-syllable-board .reading-list { width: 100%; padding: 0; margin: 0; }
.one-syllable-board .one-syllable-word {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 0; padding: 0; margin: 0; max-width: none;
}
.one-syllable-overlay-board { padding: 0; display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; background: #000; }
.one-syllable-overlay-board > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.one-syllable-overlay-board .one-syllable-board-body { padding: 0; min-height: 0; align-items: stretch; }
.one-syllable-overlay-board .reading-list { display: grid; min-height: 0; }
.reading-stage > .one-syllable-board { flex: none; aspect-ratio: 16 / 9; }
.reading-stage > .one-syllable-overlay-board { box-sizing: content-box; }
.reading-stage .one-syllable-board-body { min-height: 0; overflow: auto; }
.reading-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: clamp(10px, 2vw, 24px); text-align: center; color: #fff; background: #19463d;
}
.reading-cover[hidden] { display: none; }
.reading-list .reading-text-slide:not([hidden]) {
  display: flex;
  justify-content: safe center;
  max-width: none;
  margin: 0;
  border: 0;
  overflow: auto;
}
.reading-suffix-cover {
  justify-content: safe center;
  overflow: auto;
}
.reading-suffix-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr));
  gap: .35em .8em;
  width: min(100%, 48em);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: start;
}
.reading-suffix-examples li {
  padding: .35em .6em;
  border-radius: 6px;
  background: #ffffff15;
}
.reading-suffix-examples mark { color: #ffec3d; background: transparent; }
.reading-list .reading-ed-slide:not([hidden]) {
  display: flex;
  justify-content: safe center;
  max-width: none;
  margin: 0;
  border: 0;
  overflow: auto;
  container-type: inline-size;
}
.reading-ed-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 14px);
  width: 100%;
  margin: 0;
}
.reading-ed-columns > div {
  padding: clamp(4px, 2cqi, 20px);
  border-radius: 8px;
  background: #ffffff15;
  overflow-wrap: anywhere;
}
.reading-ed-columns dt { font-size: clamp(.66rem, 2.5cqi, 1.2rem); }
.reading-ed-columns dd { margin: .3em 0 0; font-size: clamp(.9rem, 5cqi, 3rem); font-weight: 600; }
.reading-ed-pronunciation { display: block; margin-top: .35em; font-size: clamp(.85rem, 3.8cqi, 2.1rem); }
.reading-ed-front { container-type: inline-size; }
.reading-ed-front h3, .reading-ed-header h3 { font-size: clamp(1.15rem, 4.5cqi, 2.8rem); }
.reading-ed-header { width: 100%; margin-bottom: .6em; }
.reading-cover .reading-ed-rule {
  max-width: 38em;
  margin: .4em auto;
  font-size: clamp(.95rem, 2.9cqi, 1.55rem);
  line-height: 1.45;
}
.reading-cover .reading-ed-endings {
  max-width: 35em;
  margin: .25em auto;
  color: #ffec3d;
  font-size: clamp(1.05rem, 3.5cqi, 1.9rem);
  line-height: 1.4;
}
.reading-ed-front .reading-ed-columns dt { font-size: clamp(1rem, 4.5cqi, 2.5rem); font-weight: 600; }
.reading-ed-front .reading-ed-columns dd { font-size: clamp(.85rem, 3.8cqi, 2.1rem); }
.reading-ed-slide .reading-ed-meaning { font-size: clamp(1rem, 4cqi, 2.5rem); font-weight: 600; }
.reading-ed-columns mark { color: #ffec3d; background: transparent; }
.lesson-overview { min-height: 0; overflow: auto; justify-content: safe center; }
.lesson-overview-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 820px); gap: clamp(4px, 1vw, 12px);
}
.lesson-overview-grid button {
  min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 9px;
  background: #fff; color: #402919; font-size: clamp(.7rem, 1.1vw, 1rem);
}
.lesson-overview-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 19dvh; }
.lesson-overview-grid span { display: block; padding: 4px; }
@media (max-width: 540px) {
  .lesson-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.picture-typing {
  position: relative; display: grid; min-width: 0; min-height: 0;
  aspect-ratio: 16 / 9; overflow: hidden; color: #fff;
}
.picture-typing[hidden] { display: none; }
.one-syllable-board-body:has(.picture-typing) { grid-template-rows: minmax(0, 1fr); }
.picture-typing img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.picture-typing-progress, .picture-typing-answer {
  position: absolute; display: flex; gap: 8px; align-items: center;
}
.picture-typing-progress { inset: 8px 8px auto; justify-content: space-between; }
.picture-typing-progress span, .picture-typing-answer p:not(:empty) {
  margin: 0; padding: 4px 10px; border-radius: 8px; background: #132e2a;
}
.picture-typing-answer { inset: auto 5% 5%; flex-direction: column; }
.picture-typing-answer p:empty { display: none; }
.picture-typing-answer #picture-typing-meaning {
  box-sizing: border-box; width: max-content; max-width: 100%; min-width: 0;
  text-align: center; white-space: nowrap;
  font-size: clamp(.9rem, 2.1vw, 1.65rem); font-weight: 600; line-height: 1.35;
}
.picture-typing-answer input {
  box-sizing: border-box; width: min(100%, 9ch); padding: .12em .28em;
  border: 2px solid #006e59; border-radius: 12px; background: #fff; color: #183732;
  font: 600 clamp(1.3rem, 5.5vw, 4rem)/1.2 Sarabun, sans-serif; text-align: center;
}
.picture-typing-answer input::placeholder { font-size: .45em; opacity: 1; }
.picture-typing-answer input:focus-visible { outline: 3px solid #ffec3d; outline-offset: 2px; }
@media (min-width: 761px) and (min-height: 620px) {
  .picture-typing { aspect-ratio: auto; }
}
.reading-cover :is(h3, p, figure) { margin: 0; }
.reading-cover h3 { font-size: clamp(1rem, 2.7vw, 2.3rem); }
.reading-cover-vowel { font-size: clamp(3.5rem, min(13vw, 21dvh), 10rem); color: #ffec3d; font-weight: 600; line-height: .95; }
.reading-cover-consonants { font-size: clamp(1.5rem, 7vw, 5.5rem); }
.reading-cover-vowel.reading-cover-split-vowel {
  font-size: clamp(1.4rem, min(5vw, 11dvh), 3.8rem);
  line-height: 1.4;
  margin-bottom: .2em;
}
.reading-cover-gallery {
  display: grid; grid-template-columns: repeat(var(--cover-columns), minmax(0, 1fr));
  gap: clamp(4px, 1vw, 12px); width: min(100%, 760px);
}
.reading-cover-gallery img {
  display: block; width: 100%; height: auto; max-height: 18dvh;
  aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px;
}
.reading-typing-content:has(> .reading-front-cover) { display: grid; }
.reading-practice-board:has(.reading-typing-content > .reading-front-cover) .one-syllable-board-body { align-items: stretch; }
.reading-blend-practice:has(.reading-typing-content > .reading-front-cover) { display: grid; }
.reading-practice-board:has(.reading-front-cover:not([hidden])) {
  padding: 0; gap: 0; grid-template-rows: minmax(0, 1fr); overflow: hidden;
}
.reading-practice-board:has(.reading-front-cover:not([hidden])) > h2 {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.reading-practice-board:has(.reading-front-cover:not([hidden])) .one-syllable-board-body {
  align-items: stretch;
}
.reading-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(100%, 560px); }
.reading-preview-grid img { width: 100%; aspect-ratio: 16/9; max-height: 15dvh; display: block; object-fit: cover; border-radius: 8px; }
.reading-preview-word {
  width: 100%; aspect-ratio: 16/9; max-height: 15dvh; display: grid; place-items: center;
  border-radius: 8px; background: #2b6154; color: #ffec3d;
}
.reading-preview-grid figcaption { font-weight: 600; }
.one-syllable-overlay-board .one-syllable-photo-slide {
  grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch; gap: 0; border-radius: 0; min-height: 0;
}
.one-syllable-photo { position: relative; min-height: 0; }
.one-syllable-photo-slide .one-syllable-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center top; border: 0; border-radius: 0;
}
.one-syllable-photo-label {
  position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end;
  padding: 0 5% 2%; color: white;
  font-size: clamp(1rem, 3vw, 2.4rem); font-weight: 600;
  -webkit-text-stroke: .09em #16232b; paint-order: stroke fill;
}
.one-syllable-photo-label strong {
  font-size: clamp(2.7rem, min(9.7vw, 16dvh), 8.5rem);
  line-height: 1;
  color: #51f1ff;
  transform: translateY(-.08em);
}
.one-syllable-photo-slide mark { color: #ffec3d; background: transparent; }
.lesson-frame-space {
  --lesson-frame-border: clamp(4px, .55vw, 8px);
  display: grid; justify-items: center; align-items: start; min-width: 0; min-height: 0;
}
.lesson-frame-space > .one-syllable-board { width: 100%; }
.lesson-frame-space > .one-syllable-overlay-board {
  box-sizing: content-box;
  border-width: var(--lesson-frame-border);
  width: calc(100% - 2 * var(--lesson-frame-border));
  aspect-ratio: 16 / 9;
}
.one-syllable-overlay-board .sentence-source-slide {
  position: relative; display: block; min-height: 0; border-radius: 0; container-type: inline-size;
}
.one-syllable-overlay-board .sentence-source-slide img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; min-height: 0; max-width: none;
  object-fit: contain; object-position: center; background: #000; border: 0; border-radius: 0;
}
.sentence-lesson-sidebar .reading-player-toolbar { display: grid; gap: 4px; margin-bottom: 8px; }
.sentence-lesson-sidebar .reading-player-toolbar label { display: grid; gap: 4px; }
.sentence-lesson-sidebar .reading-player-toolbar select { width: 100%; min-width: 0; }
.sentence-lesson-sidebar [data-reading-position] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82em; }
.sentence-narrator { margin: 0 0 8px; font-size: .82rem; }
.sentence-source-options { margin-top: 8px; font-size: .8rem; overflow-wrap: anywhere; }
.sentence-display-options {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px; margin-bottom: 8px;
}
.one-syllable-sidebar .sentence-display-options button {
  min-width: 0; min-height: 36px; padding: 4px 2px;
  font-size: clamp(.65rem, 1vw, .88rem); line-height: 1.15; overflow-wrap: anywhere;
}
.one-syllable-sidebar .sentence-display-options button[aria-pressed="true"] { background: #007b61; color: white; border-color: white; }
.sentence-overlay-caption {
  position: absolute; inset: auto 0 0; height: 23%;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  padding-inline: 5%; color: #fff;
  text-align: center; font-size: clamp(.75rem, 6.1cqi, 4.75rem); font-weight: 600;
}
.sentence-overlay-caption[hidden] { display: none; }
.sentence-hide-reading .sentence-caption-thai { display: none; }
.sentence-typing-form {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  gap: .35em;
  text-align: center;
}
.sentence-typing-form[hidden] { display: none; }
.sentence-typing-form p { margin: 0; font-size: clamp(1rem, 2vw, 1.45rem); font-weight: 600; }
.sentence-typing-form input {
  width: 100%;
  text-align: center;
  min-height: 40px;
  padding: .45em .7em;
  border: 1px solid var(--section-edge, #7d9291);
  border-radius: 8px;
  background: #fff;
}
.reading-table-typing-form {
  width: 100%;
  text-align: start;
}
.reading-game-result {
  order: -1;
  flex: 0 0 100%;
  margin: 0;
  font-weight: 600;
}
.reading-game-result [data-game-time] {
  display: inline-block;
  margin-inline-end: .8em;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-variant-numeric: tabular-nums;
}
.reading-player-controls:has(> .reading-slide-typing-form:not([hidden])) {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, max-content)) minmax(0, 1fr);
  justify-items: start;
}
.reading-slide-typing-form {
  grid-column: 1 / -1;
  justify-self: stretch;
  grid-template-columns: subgrid;
  align-items: center;
  padding-inline-start: calc(4% + clamp(4px, .55vw, 8px));
  text-align: start;
}
.reading-slide-typing-form input { grid-column: 1 / 5; min-width: 0; text-align: start; }
.reading-slide-typing-form [role="status"] { grid-column: 5; text-align: center; overflow-wrap: anywhere; }
.reading-table-typing-form [data-sentence-model] { display: none; }
.reading-table-typing-form input {
  font-size: var(--reading-table-font, clamp(1rem, 4vw, 3rem));
  padding: .12em 7px;
  text-align: start;
}
.reading-blend-card .reading-table-typing-form input { min-height: 32px; line-height: 1.12; }
.reading-blend-card .reading-table-typing-form [role="status"]:empty { display: none; }
.reading-blend-card:has(.split-vowel-table) .reading-table-typing-form input { padding-inline-start: 3px; }
.reading-blend-result [data-reading-equals]:has(+ [role="status"]:not(:empty)),
.reading-blend-result [role="status"]:empty { display: none; }
.reading-blend-result [role="status"]:not(:empty) {
  color: #145a3c;
  font-size: .48em;
  font-weight: 600;
  margin-inline-end: .2em;
}
.reading-list .reading-row:has(> .reading-table-typing-form):not([hidden]) { display: flex; }
.reading-row > .reading-table-typing-form { flex: none; }
.sentence-overlay-caption .one-syllable-meaning {
  max-width: none; margin: 0; line-height: 1.15; white-space: nowrap;
}
.sentence-overlay-caption mark { background: transparent; color: #ffec3d; }
.sentence-overlay-caption .sentence-plural-ending { color: #fff; }
.sentence-overlay-caption .sentence-dislike-caption { color: #fff; }
.sentence-overlay-caption .sentence-dislike-caption .sentence-plural-ending { color: #51f1ff; }
.sentence-overlay-caption.sentence-caption-bilingual {
  height: 24%;
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: .16em;
  padding-block: 0 .16em;
  background: transparent;
  font-size: clamp(.75rem, 6.2cqi, 4.85rem);
}
.sentence-overlay-caption :is(.one-syllable-meaning, .sentence-caption-thai) {
  -webkit-text-stroke: .055em #171b19;
  paint-order: stroke fill;
  text-shadow: 0 1px 2px #000, 0 2px 5px rgb(0 0 0 / 85%);
}
.sentence-caption-bilingual .one-syllable-meaning {
  align-self: start;
  line-height: 1.02;
}
.sentence-caption-bilingual .sentence-caption-thai {
  max-width: none;
  margin: 0;
  font-size: clamp(.43rem, 3.08cqi, 2.42rem);
  line-height: 1.25;
  white-space: nowrap;
}
.sentence-source-options :is(label, a) { display: block; margin: 5px 0; }
.lesson-frame-space .sentence-practice-card:not([hidden]) {
  display: flex;
  max-width: none;
  margin: 0;
  border: 0;
  justify-content: safe center;
  overflow: auto;
}
.sentence-practice-group {
  position: absolute;
  inset: 4% auto auto 4%;
  padding: .25em .65em;
  border-radius: .4em;
  background: #19463d;
  color: #fff;
}
.sentence-sublessons { display: grid; gap: 5px; }
.sentence-lesson-sidebar nav [hidden] { display: none; }
.sentence-part-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 10px;
  flex: none;
}
.portal-destination .sentence-part-buttons button {
  min-width: 0;
  min-height: 32px;
  padding-inline: .15em;
  text-align: center;
  font-size: clamp(.68rem, 1.15vw, .95rem);
}
.one-syllable-page .sentence-part-buttons button[aria-pressed="true"] {
  background: var(--section-ink, #007b61);
  color: #fff;
}
.one-syllable-sidebar .sentence-sublessons button {
  display: grid; grid-template-columns: 2.5ch minmax(0, 1fr); align-items: center;
  column-gap: .5em; min-height: 36px; padding: 4px 8px; text-align: start;
}
.sentence-sublessons button span:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.one-syllable-picker .reading-player-toolbar label { min-width: 0; }
.one-syllable-photo-slide .one-syllable-meaning {
  --caption-size: clamp(1rem, 3.5vw, 2.75rem);
  min-width: 0; max-width: none; margin: 0; padding-inline: 4%; color: white; white-space: nowrap;
  background: #000; font-size: var(--caption-size); line-height: calc(var(--caption-size) * 1.8);
}
.one-syllable-photo-slide .one-syllable-meaning span { color: #51f1ff; }
.one-syllable-sidebar, .portal-video-sidebar {
  border-color: #648980;
  background: linear-gradient(155deg, #e8f9f4, #a8d1c8 48%, #c8e4dd 50%, #91b6ae);
  box-shadow: inset 0 1px 2px #fff, inset 0 -2px 3px #53796f70, 0 3px 7px #1f3b352e;
}
.one-syllable-page .one-syllable-sidebar button,
.portal-video-page .portal-video-sidebar button,
.one-syllable-page .reading-player-controls .btn,
.one-syllable-page .one-syllable-picker select {
  border: 1px solid #7d9291;
  border-radius: 9px;
  background: linear-gradient(#fcffff, #e0e9e8 48%, #c9d5d4 50%, #eef4f4);
  color: #173632;
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px #627b7959, 0 2px 3px #193f3838;
}
.one-syllable-page .one-syllable-sidebar button[aria-current],
.portal-video-page .portal-video-sidebar button[aria-pressed="true"],
.one-syllable-page .reading-player-controls [data-reading-play] {
  border-color: #136856;
  background: linear-gradient(#409982, #197d68 48%, #096a56 50%, #125b4c);
  color: #fff;
  box-shadow: inset 0 1px 1px #aef3e090, inset 0 -1px 2px #05342b85, 0 2px 3px #193f3838;
}
.one-syllable-page .one-syllable-sidebar button:active,
.one-syllable-page .reading-player-controls .btn:active {
  box-shadow: inset 0 2px 4px #193f3869;
}
.one-syllable-board, .portal-video-screen {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(150deg, #f5fafa, #8a9b9f 28%, #dce5e6 48%, #64777c 73%, #bccbce) border-box;
  box-shadow: 0 3px 8px #1c343636;
}
.one-syllable-overlay-board {
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(150deg, #f5fafa, #8a9b9f 28%, #dce5e6 48%, #64777c 73%, #bccbce) border-box;
}
.portal-destination[data-palette="blue"] { --section-hue: 214; --section-saturation: 62%; }
.portal-destination[data-palette="purple"] { --section-hue: 269; --section-saturation: 49%; }
.portal-destination[data-palette="pink"] { --section-hue: 334; --section-saturation: 55%; }
.portal-destination[data-palette="earth"] { --section-hue: 27; --section-saturation: 39%; }
#vocabulary-preview {
  --vocab-navy: #142d55;
  --vocab-edge: #5879a6;
  --vocab-light: #eaf1fc;
  color: var(--vocab-navy);
}
.one-syllable-page #vocabulary-preview {
  grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; padding: 0; min-height: 0;
  display: grid;
}
#vocabulary-preview[hidden] { display: none; }
.vocab-player-layout {
  display: grid; grid-template-columns: var(--sidebar-width, minmax(150px, 28%)) minmax(0, 1fr);
  gap: var(--panel-gap, 16px); min-height: 0;
}
.vocab-board {
  flex: none;
  grid-template-rows: auto;
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(150deg, #eaf1fc, var(--vocab-edge) 28%, #b9cde9 48%, var(--vocab-navy) 73%, #87a4ce) border-box;
}
.vocab-board:has(form:not([hidden])) { gap: 0; }
#vocabulary-player :is(.vocab-player-content, .reading-player-controls button)[hidden] { display: none; }
.vocab-player-content {
  position: relative; min-height: 0; text-align: center;
  container-type: inline-size; aspect-ratio: 16 / 9;
}
.vocab-player-content img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain;
}
.vocab-player-content img[hidden], #vocabulary-player [data-category-menu] button[hidden] { display: none; }
.vocab-player-content:has(img[hidden]) .vocab-caption { inset: 0; display: grid; align-content: center; }
.vocab-caption {
  position: absolute; inset: auto 0 0; padding: 1% 5% 2%; color: white;
  font-size: clamp(.66rem, 2.65cqi, 1.55rem); font-weight: 600; overflow-wrap: anywhere;
  -webkit-text-stroke: .055em #131c29; paint-order: stroke fill;
  text-shadow: 0 1px 2px #000, 0 2px 5px #000;
}
.vocab-caption :is(h3, p) { margin: 2px auto; }
.vocab-caption h3 { font-size: clamp(.85rem, 5.3cqi, 3.75rem); }
.vocab-word-detail [data-meaning] { color: #ffeb54; }
.vocab-phrase-caption h3 { color: #ffeb54; }
.vocab-board form { padding: 8px; text-align: center; background: var(--vocab-light); }
#vocabulary-preview button {
  border: 1px solid var(--vocab-edge);
  background: linear-gradient(#fff, var(--vocab-light));
  color: var(--vocab-navy);
}
#vocabulary-preview button[aria-pressed="true"],
#vocabulary-preview button[aria-current="true"],
#vocabulary-player .btn.teal {
  background: var(--vocab-navy);
  color: #fff;
}
#vocabulary-player .one-syllable-sidebar {
  background: linear-gradient(155deg, #116da9, var(--vocab-navy)); color: #fff;
}
.vocab-word-picker { display: grid; gap: 4px; margin-bottom: 8px; }
.vocab-word-picker select { width: 100%; min-width: 0; padding: 6px 9px; }
.portal-destination[data-palette]:not([data-palette=""]) {
  --section-light: hsl(var(--section-hue) var(--section-saturation) 96%);
  --section-mid: hsl(var(--section-hue) var(--section-saturation) 81%);
  --section-edge: hsl(var(--section-hue) var(--section-saturation) 62%);
  --section-dark: hsl(var(--section-hue) var(--section-saturation) 34%);
  --section-ink: hsl(var(--section-hue) var(--section-saturation) 21%);
  color: var(--section-ink);
}
[data-palette]:not([data-palette=""]) :is(.one-syllable-sidebar, .portal-video-sidebar) {
  border-color: var(--section-edge);
  background: linear-gradient(155deg, var(--section-light), var(--section-mid));
}
[data-palette]:not([data-palette=""]) :is(.one-syllable-board, .portal-video-screen) {
  --frame-surface: #fff;
  background: linear-gradient(var(--frame-surface), var(--frame-surface)) padding-box,
    linear-gradient(150deg, var(--section-light), var(--section-edge) 28%,
      var(--section-light) 48%, var(--section-dark) 73%, var(--section-mid)) border-box;
}
[data-palette]:not([data-palette=""]) .one-syllable-overlay-board { --frame-surface: #000; }
.portal-destination[data-palette]:not([data-palette=""]) :is(
  .one-syllable-sidebar button, .portal-video-sidebar button,
  .one-syllable-picker select, .reading-player-controls .btn, .portal-video-player .btn
) {
  border-color: var(--section-edge);
  color: var(--section-ink);
  background: linear-gradient(#fff, var(--section-mid));
}
.portal-destination[data-palette]:not([data-palette=""]) :is(
  .one-syllable-sidebar button[aria-current], .one-syllable-sidebar button[aria-pressed="true"],
  .portal-video-sidebar button[aria-pressed="true"], .reading-player-controls [data-reading-play]
) {
  border-color: var(--section-dark);
  color: #fff;
  background: linear-gradient(var(--section-dark), var(--section-ink));
}
@media (min-width: 761px) and (min-height: 620px) {
  body.one-syllable-active { height: 100dvh; display: flex; flex-direction: column; }
  .portal-destination.one-syllable-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .one-syllable-page [data-section-content] { flex: 1; min-height: 0; }
  .reading-stage > :is(.reading-practice-board, .one-syllable-board:has(.reading-ed-slide)) {
    flex: 1 1 0;
    aspect-ratio: auto;
  }
  .reading-stage > .reading-player-controls { flex: none; }
  .reading-practice-board:has(.reading-blend-slide:not([hidden])) .one-syllable-board-body { container-type: size; }
  .reading-blend-slide .reading-blend-card {
    --reading-table-font: clamp(1rem, min(3.6vw, 13cqh), 3.5rem);
    gap: clamp(5px, 2cqh, 12px);
  }
  .reading-blend-slide .reading-blend-title { font-size: clamp(1.05rem, min(3vw, 11cqh), 2.9rem); }
  .reading-blend-slide .reading-blend-card tr { height: clamp(2rem, 20cqh, 5rem); }
  .one-syllable-stage:fullscreen .lesson-frame-space { container-type: size; }
  .one-syllable-stage:fullscreen .lesson-frame-space > .one-syllable-overlay-board {
    width: min(
      calc(100cqw - 2 * var(--lesson-frame-border)),
      calc((100cqh - 2 * var(--lesson-frame-border)) * 16 / 9)
    );
  }
}
@media (max-width: 760px), (max-height: 619px) {
  .reading-stage > .reading-practice-board:has(.reading-blend-slide:not([hidden])) { aspect-ratio: auto; }
}
@media (max-width: 760px) {
  .portal-destination { --sidebar-width: minmax(105px, 30%); --panel-gap: 8px; }
  .one-syllable-sidebar { padding: 8px; position: sticky; top: 0; align-self: start; max-height: 85dvh; }
  .one-syllable-sidebar h2 { font-size: 1rem; }
  .one-syllable-picker .reading-player-toolbar { font-size: .8rem; }
  .one-syllable-picker label { display: grid; gap: 3px; }
  .one-syllable-picker select { width: 100%; }
  .one-syllable-board .one-syllable-word { grid-template-columns: minmax(0, 1fr); }
}
.portal-icon { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: #268656; border-radius: 50%; font-size: 21px; margin-bottom: 4px; }
.portal-band { margin: 0 0 20px; padding: clamp(14px, 2vw, 24px); border-radius: 8px; background: var(--band); }
.portal-band .portal-card { border-color: color-mix(in srgb, var(--band), #466254 25%); }
.portal-band .portal-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f8faf9; border-radius: 8px; }
.portal-band .portal-grid { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.portal-featured-band { padding: 0; }
.portal-featured-band > header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-bottom: 12px; padding: 8px 14px;
  border-radius: 14px; background: #eaf4e2;
}
.portal-featured-band > header h2 { margin: 0; }
.portal-featured-band > header a {
  border: 1px solid currentColor; border-radius: 20px; padding: 3px 12px;
  color: var(--forest); text-decoration: none;
}
.portal-featured-band .portal-rail {
  grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 28px) / 3); overflow-x: auto;
  scrollbar-width: thin; overscroll-behavior-inline: contain;
}
.portal-rail-controls { display: flex; gap: 8px; align-items: center; }
.portal-rail-controls button {
  border: 1px solid currentColor; border-radius: 50%; width: 2em; height: 2em;
  color: var(--forest); background: white; font: inherit; cursor: pointer;
}
.portal-card-preview { position: relative; aspect-ratio: 16 / 9; }
.portal-card-preview [hidden] { display: none; }
.portal-card-cover {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 12px; background: #174638; color: white; font-weight: 600;
}
.portal-card-preview-caption {
  position: absolute; inset: auto 0 0; padding: 5px 10px;
  text-align: center; background: #15362de6; color: white;
}
.portal-featured-band .portal-card { padding: 0; overflow: hidden; text-align: start; border-color: #dce7d9; }
.portal-featured-band .portal-card img { display: block; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.portal-featured-copy { padding: 10px 12px; display: grid; gap: 4px; }
.portal-featured-copy span {
  justify-self: start; padding: 2px 9px; border-radius: 16px;
  color: #145a3c; background: #b9e769; font-size: .8rem; font-weight: 600;
}
@media (max-width: 540px) {
  .portal-featured-band .portal-rail { grid-auto-columns: 100%; }
}
.portal-destination p { max-width: 650px; }
.portal-video-page > :is(a, p) { display: none; }
.portal-video-page > h1 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.portal-video-layout {
  font-family: Sarabun, Tahoma, sans-serif; font-weight: 400;
}
.portal-video-layout h2 { margin: 0 0 10px; font-size: 1.2rem; }
.portal-video-sidebar { padding: 12px; border: 1px solid #648980; border-radius: 16px; min-width: 0; }
.portal-video-sidebar ul {
  list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px;
  max-height: 62dvh; overflow: auto; scrollbar-width: thin;
}
.portal-video-sidebar li[hidden] { display: none; }
.portal-video-sidebar button {
  display: grid; gap: 4px; width: 100%; padding: 9px;
  border: 1px solid #a7c2b4; border-radius: 8px; background: white; color: #174f36;
  text-align: start; overflow-wrap: anywhere;
}
.portal-video-sources { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.portal-video-sidebar .portal-video-sources button {
  display: block; width: auto; padding: 5px 9px; font-size: .83rem; border-radius: 20px;
}
.portal-video-cover {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 6px; background: #183f31; color: white; font-size: 1.35rem;
}
.portal-video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal-video-cover img[hidden] { display: none; }
.portal-video-sidebar > a { font-size: .85rem; }
.portal-video-screen {
  border: clamp(4px, .55vw, 8px) solid transparent; border-radius: 28px; overflow: hidden;
}
.portal-video-screen :is(video, iframe, .portal-video-fallback) {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; background: #141d19;
}
.portal-video-screen .portal-video-fallback { position: relative; display: grid; place-items: center; overflow: hidden; }
.portal-video-fallback img { position: absolute; width: 100%; height: 100%; object-fit: contain; opacity: .65; }
.portal-video-fallback a { position: relative; }
.portal-video-layout .portal-video-player h2 { margin: 10px 0 0; }
.portal-video-player [data-portal-video-link] > a { display: inline-block; margin-top: 8px; }
.portal-video-player a { text-decoration: none; }
@media (max-width: 640px) {
  .one-syllable-page [data-section-content], .portal-video-layout, .vocab-player-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .one-syllable-page .one-syllable-sidebar { position: static; max-height: 42dvh; }
  .portal-video-sidebar ul { max-height: 32dvh; }
}
.portal-destination :is(.one-syllable-sidebar, .portal-video-sidebar) {
  text-align: start;
}
.portal-destination :is(.one-syllable-sidebar, .portal-video-sidebar) :is(h2, button, select),
.portal-destination .reading-part-description {
  padding-inline: 1ch;
  text-align: start;
}
.portal-destination { padding-bottom: 10px; }
.portal-destination a { color: inherit; }
.portal-home[hidden], .portal-destination[hidden], .shell[hidden], .shell section[hidden] { display: none !important; }
@media (max-width: 760px) {
  .portal-nav { justify-content: flex-start; gap: 3px 11px; font-size: 14px; }
  .portal-hero { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body select, body select option {
  background: #fff;
}
.one-syllable-page .one-syllable-picker select,
.portal-destination[data-palette]:not([data-palette=""]) .one-syllable-picker select {
  background: #fff;
}
@media (max-width: 420px) { .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
