@import url("./study-palette.css");
@import url("./study-emphasis.css");
@import url("./pronunciation.css?v=20261113-vowels");
@import url("./learning-cards.css");

@font-face {
  font-family: "ODK Heading";
  src: url("./assets/fonts/study-heading.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: var(--study-paper);
  --cream: var(--study-cream);
  --card: var(--study-card);
  --ink: var(--study-ink);
  --muted: var(--study-muted);
  --green: var(--study-green);
  --green-dark: var(--study-green-dark);
  --green-pale: var(--study-green-pale);
  --gold: var(--study-gold);
  --ochre: #79531f;
  --line: var(--study-line);
  --wrong: #913f31;
  --radius: var(--study-radius);
  font-family: var(--study-font);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, textarea { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #875b26; outline-offset: 4px; }
img { display: block; max-width: 100%; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { color: var(--green-dark); line-height: 1.2; margin: 0 0 .55em; font-weight: 800; text-wrap: balance; }
h1 { font-family: "ODK Heading", var(--study-font); font-weight: 900; font-size: clamp(2.15rem, 6.6vw, 3.65rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.2rem, 3vw, 1.65rem); }
h3 { font-size: 1.22rem; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-180%); padding: .5rem 1rem; background: white; z-index: 5; }
.skip:focus { transform: none; }
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1152px;
  margin-inline: auto;
  padding: .6rem .8rem .65rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem .65rem;
}
.brand { display: inline-flex; align-items: center; justify-self: start; max-width: 100%; text-decoration: none; }
.brand-mark { display: block; width: clamp(7.75rem, 19vw, 10.5rem); max-width: 100%; aspect-ratio: 2172 / 508; overflow: hidden; }
.brand-mark img { width: 100%; height: auto; }
.tag { display: inline-block; width: fit-content; border-radius: 999px; background: #efe4ca; color: #6d491e; padding: .24rem .65rem; font-size: .76rem; font-weight: 750; }
.header-tools .student-entry { padding-inline: .8rem; white-space: nowrap; font-size: .83rem; }
.student-entry[aria-current] { box-shadow: inset 0 0 0 1px var(--green); background: var(--green-pale); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; min-width: 0; }
.room-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: .26rem; min-width: 44px; min-height: 44px; border: 1px solid #d8c49a; border-radius: 999px; background: #fbefd6; color: #644716; padding: .3rem .52rem; font-size: .83rem; font-weight: 850; text-decoration: none; }
.room-shortcut:hover, .room-shortcut[aria-current] { background: #f6e4b8; border-color: #9f7431; }
.reward-coin { display: inline-block; flex: none; width: 1.5rem; height: 1.5rem; background: url("./assets/learning-coin.svg") center / contain no-repeat; }
.daily-reward-row { flex: 1 0 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .9rem; border-top: 1px solid #c1cdbb; padding-top: .65rem; }
.daily-reward-row p { display: flex; align-items: center; gap: .4rem; margin: 0; color: #3c523f; font-size: .83rem; }
.daily-reward-row .text-link { white-space: nowrap; }
.reward-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reward-toast { position: fixed; z-index: 5; inset-inline-end: 1rem; inset-block-end: max(.9rem, env(safe-area-inset-bottom)); width: min(330px, calc(100% - 2rem)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .6rem .65rem .6rem .85rem; border: 1px solid #cbb788; border-radius: 16px; background: #fff7e3; box-shadow: 0 8px 28px #483e2522; }
.reward-toast strong { display: block; font-size: .93rem; color: var(--green-dark); }
.reward-toast button { border: 0; background: transparent; color: var(--green-dark); width: 44px; height: 44px; border-radius: 50%; font-size: 1.25rem; cursor: pointer; }
.reward-toast button:hover { background: #f2e6cd; }
@media (max-width: 365px) {
  .header-tools { gap: .25rem; }
  .header-tools .student-entry { padding-inline: .66rem; }
  .room-shortcut { padding-inline: .35rem; }
}
.primary-nav {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .15rem .22rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.primary-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .14rem;
  min-width: 0;
  min-height: 54px;
  padding: .16rem .1rem .2rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink);
  font-size: clamp(.74rem, 2.9vw, .82rem);
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.primary-nav a span { max-width: 100%; word-break: keep-all; overflow-wrap: anywhere; }
.primary-nav img { flex: none; width: 35px; height: 33px; object-fit: contain; }
.primary-nav a:hover { background: var(--cream); }
.primary-nav a[aria-current] { color: var(--green-dark); border-color: #bdcbb8; background: var(--green-pale); font-weight: 800; }
.container { width: min(100%, 1152px); margin: 0 auto; padding: 1.2rem 1rem 3rem; flex: 1 0 auto; }
.view { min-width: 0; }
.panel, .entry-card { border: 1px solid var(--line); border-radius: var(--radius); }
#view-home { display: grid; gap: clamp(.95rem, 2.4vw, 1.4rem); }
.home-welcome.page-intro { display: grid; grid-template-columns: minmax(0, 1fr) clamp(108px, 33vw, 322px); align-items: center; gap: .75rem clamp(.4rem, 2vw, 1.65rem); max-width: none; margin: 0; padding: clamp(.85rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.home-welcome h1 { font-size: clamp(1.65rem, 5.8vw, 3.2rem); overflow-wrap: anywhere; }
.home-welcome-copy { min-width: 0; }
.home-welcome-intro { max-width: 28rem; color: var(--muted); }
.home-welcome .home-primary { max-width: 100%; padding-inline: .88rem; font-size: .9rem; text-align: center; overflow-wrap: anywhere; }
.home-welcome .hero-image { width: 100%; height: auto; }
#view-home .daily-healing { display: grid; grid-template-columns: minmax(0, 1fr) clamp(66px, 20vw, 118px); gap: clamp(.4rem, 2vw, 1.35rem); align-items: center; padding: clamp(.7rem, 2vw, .95rem) clamp(.8rem, 3vw, 1.7rem); background: #f4eddf; }
.daily-healing blockquote { margin: 0; color: var(--ink); font-size: clamp(.95rem, 3.5vw, 1.23rem); font-weight: 750; line-height: 1.45; overflow-wrap: break-word; }
.daily-healing .daily-healing-translation { margin: .2rem 0 0; color: var(--muted); font-size: clamp(.8rem, 2.8vw, .92rem); line-height: 1.5; }
.daily-healing blockquote, .daily-healing .daily-healing-translation { white-space: pre-line; }
.daily-healing blockquote { word-break: keep-all; }
.daily-healing img { width: 100%; height: auto; }
.home-path-link { justify-self: start; }
.eyebrow { margin: 0 0 .65rem; font-weight: 800; letter-spacing: .085em; font-size: .78rem; color: var(--ochre); }
.button { min-height: 44px; display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: .25rem; border-radius: 999px; padding: .6rem 1.05rem; background: var(--green); border: 1px solid var(--green); color: #fffdf7; font-weight: 750; text-decoration: none; cursor: pointer; line-height: 1.45; }
.button:hover { background: var(--green-dark); }
.button.secondary, .button.quiet { background: var(--card); color: var(--green-dark); }
.button.quiet { border-color: transparent; background: transparent; }
.button.secondary:hover, .button.quiet:hover { background: var(--green-pale); }
.button:disabled { border-color: var(--line); background: #e9e4d8; color: #5b6056; cursor: default; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; margin: 1.8rem 0 .7rem; }
.section-heading h2 { margin-bottom: 0; }
.text-link { color: var(--green); font-size: .89rem; text-underline-offset: .2em; font-weight: 700; }
.panel, .entry-card { padding: clamp(1rem, 3vw, 1.65rem); background: var(--card); min-width: 0; }
.home-learning { display: grid; gap: .8rem; }
.home-learning > .section-heading { margin: 0; }
.home-learning > .panel + .panel { margin-top: 0; }
.home-task-header, .home-daily-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; }
.home-task-header .eyebrow { margin-bottom: .35rem; }
.home-task-header h3 { margin: 0; }
.home-student-tasks { border-color: #bfccb8; }
#student-tasks-status:not(:empty) { margin: .65rem 0 0; }
.home-student-signin { margin-top: .8rem; }
.home-daily-plan { background: var(--green-pale); border-color: #bfccb8; }
.home-daily-plan .tag { margin-bottom: .55rem; }
.home-daily-plan p:last-child { margin-bottom: 0; }
.today-sentence { display: grid; gap: .68rem; border-color: #c8d2ba; background: #fbf8ee; }
.today-sentence-prompt .eyebrow { margin: 0 0 .3rem; }
.today-sentence-prompt h3 { margin-bottom: .45rem; }
.today-sentence-question { margin: 0 0 .1rem; color: var(--green-dark); font-size: clamp(1.12rem, 4.6vw, 1.43rem); font-weight: 780; }
.today-sentence-meaning { margin: 0; color: var(--muted); font-size: .87rem; }
.today-sentence-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.32rem, 1.8vw, .6rem); }
.today-sentence-word { display: grid; justify-items: center; align-content: start; gap: .12rem; min-width: 0; padding: .34rem .22rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--green-dark); cursor: pointer; }
.today-sentence-word:hover, .today-sentence-word[aria-pressed="true"] { border-color: #758d70; background: var(--green-pale); }
.today-sentence-word[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #758d70; }
.today-sentence-word img { width: 100%; max-width: 108px; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.today-sentence-word strong { font-size: clamp(.88rem, 3.6vw, 1.03rem); overflow-wrap: anywhere; }
.today-sentence-word span { color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
.today-sentence-answer { display: grid; gap: .36rem; }
.today-sentence-answer label { color: var(--green-dark); font-size: .89rem; font-weight: 750; }
.today-sentence-answer textarea { width: 100%; min-width: 0; padding: .48rem .62rem; border: 1px solid #b8bea9; border-radius: 9px; background: var(--card); color: var(--ink); resize: vertical; }
.today-sentence-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem .8rem; }
.today-sentence-status { margin: 0; color: #894125; font-size: .83rem; }
.today-sentence-status:empty { display: none; }
.today-sentence-note { margin: 0; font-size: .82rem; }
@media (min-width: 820px) {
  .today-sentence { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .62rem 1.35rem; }
  .today-sentence-prompt, .today-sentence-choices { grid-column: 1; }
  .today-sentence-answer { grid-column: 2; grid-row: 1 / 3; align-content: center; }
}
.home-feedback, .home-homework { margin-top: .9rem; min-width: 0; }
.home-feedback h4, .home-homework h4, .home-homework-course h5 { color: var(--green-dark); margin: 0 0 .45rem; }
.home-feedback-item, .home-homework-course { padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.home-feedback-item + .home-feedback-item, .home-homework-course + .home-homework-course { margin-top: .5rem; }
.home-feedback-item summary { color: var(--green-dark); cursor: pointer; overflow-wrap: anywhere; }
.home-feedback-item summary span { display: block; padding-left: .9rem; color: var(--muted); font-size: .82rem; }
.home-feedback-item[open] summary { margin-bottom: .55rem; }
.home-feedback-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.home-homework-list { list-style: none; padding: 0; margin: 0; }
.home-homework-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .6rem; padding-block: .5rem; border-top: 1px solid var(--line); }
.home-homework-list li:last-child { padding-bottom: 0; }
.home-homework-list p, .home-homework-course p { font-size: .88rem; }
.home-student-tasks .button { font-size: .85rem; }
.email-shelf h2 { margin: 0; }
.email-study-form { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; margin-top: .9rem; }
.email-study-form div { flex: 1 1 14rem; max-width: 27rem; min-width: 0; }
.email-study-form label { display: block; font-size: .9rem; font-weight: 750; margin-bottom: .22rem; }
.email-study-form input { width: 100%; min-height: 44px; padding: .45rem .65rem; font: inherit; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; }
.email-study-form .email-remember { display: flex; align-items: center; gap: .4rem; margin-top: .45rem; }
.email-study-form .email-remember input { width: 1rem; min-height: 1rem; accent-color: var(--accent, #47644d); }
.email-welcome { margin: .55rem 0; font-size: 1.12rem; font-weight: 750; }
.email-shelf [role=status]:not(:empty), .email-course-list:not(:empty) { margin-top: .7rem; }
progress { display: block; width: 100%; height: .72rem; appearance: none; accent-color: var(--green); border: 0; border-radius: 999px; background: var(--green-pale); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--green-pale); }
progress::-webkit-progress-value { background: var(--green); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.page-intro { margin-bottom: 1.45rem; max-width: 50rem; }
.page-intro h1 { margin-bottom: .38em; }
.page-intro p:last-child, .subtle { color: var(--muted); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.cards + .panel, .panel + .cards, .panel + .panel, #library-content > * + * { margin-top: 1rem; }
.entry-card > .tag { margin-bottom: .55rem; }
details.panel[open] > summary { margin-bottom: .7rem; }
details.panel > summary { cursor: pointer; font-weight: 750; color: var(--green-dark); }
.continue-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.continue-links .text-link { align-self: center; }
.resource-feature { display: grid; align-items: center; gap: 1rem; max-width: 58rem; }
.resource-picture { display: block; width: 100%; height: auto; border-radius: 14px; }
.sample-sentence { font-weight: 750; color: var(--green-dark); font-size: clamp(1.2rem, 4vw, 1.7rem); }
.sample-meaning summary { padding-block: .4rem; color: var(--green); text-decoration: underline; cursor: pointer; }
.sample-meaning p { padding: .45rem .7rem; border-radius: 8px; background: var(--green-pale); width: fit-content; }
.study-material { max-width: 58rem; }
.study-material + *, .panel + .study-material, .material-section > .continue-links { margin-top: 1rem; }
.next-study { background: var(--cream); }

.sounds-start ol { padding-inline-start: 1.4em; margin-block: .55rem; }
.sounds-start li + li { margin-block-start: .45rem; }
.sounds-start p { margin-block-end: 0; color: var(--muted); }
.pronunciation-course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 20vw, 140px);
  column-gap: clamp(.5rem, 3vw, 1.4rem);
  align-items: center;
  background: var(--green-pale);
}
.pronunciation-course-copy h2 {
  margin: .15rem 0 .42rem;
  font-size: clamp(1.2rem, 4.4vw, 1.85rem);
}
.pronunciation-course-copy p { margin-block: 0; }
.pronunciation-course-copy .eyebrow { color: var(--ochre); }
.pronunciation-course-art { display: block; width: 100%; height: auto; object-fit: contain; }
.pronunciation-course-actions { grid-column: 1 / -1; align-items: center; }

.vocab-groups { display: grid; gap: .55rem; }
.vocab-groups > details, .vocab-notebook { min-width: 0; border: 1px solid var(--line); border-radius: 12px; }
.vocab-notebook { margin-block-end: .55rem; border-color: #bfcdb9; background: var(--green-pale); }
.vocab-groups summary, .vocab-notebook summary { min-height: 44px; padding: .55rem .65rem; color: var(--green-dark); font-weight: 750; cursor: pointer; }
.vocab-topic-count { float: inline-end; margin-inline-start: .4rem; color: var(--muted); font-size: .8rem; font-weight: 650; }
.vocab-topic-content { padding: 0 .65rem .65rem; }
.vocab-topic-note { margin: 0 0 .55rem; font-size: .82rem; }
.vocab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .4rem; }
.vocab-entry { display: grid; grid-template-rows: 1fr auto; gap: .2rem; min-width: 0; }
.vocab-word { display: grid; grid-template-rows: auto auto 1fr; align-items: start; justify-items: center; gap: .12rem; padding: .42rem .22rem; min-width: 0; min-height: 61px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--green-dark); text-align: center; overflow-wrap: anywhere; }
button.vocab-word { cursor: pointer; }
button.vocab-word:hover { background: var(--green-pale); }
.vocab-word:not(:has(.vocab-word-picture-slot)) { grid-template-rows: auto auto; align-content: center; }
.vocab-word:not(:has(.vocab-word-picture-slot)) .vocab-word-translation { min-block-size: 0; }
.vocab-word[data-playing] { border-color: var(--green); background: var(--green-pale); }
.vocab-word-title { font-size: clamp(.92rem, 2.7vw, 1.04rem); line-height: 1.35; }
.vocab-word-translation { min-block-size: 2.7em; font-size: .81rem; color: var(--muted); line-height: 1.35; }
.vocab-word-picture-slot { display: grid; place-items: center; width: min(100%, 112px); aspect-ratio: 1; }
.vocab-word-picture { display: block; position: relative; overflow: hidden; width: min(100%, calc(var(--art-ratio) * 100%)); aspect-ratio: var(--art-ratio); border-radius: 8px; }
.vocab-word-picture img { position: absolute; max-width: none; width: calc(var(--art-cols) * 100%); height: calc(var(--art-rows) * 100%); left: calc(var(--art-col) * -100%); top: calc(var(--art-row) * -100%); object-fit: fill; }
.vocab-mastery-control { min-height: 44px; padding: .25rem; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--green-dark); font-size: .8rem; font-weight: 750; cursor: pointer; }
.vocab-mastery-control:hover, .vocab-mastery-control[aria-pressed="true"] { border-color: var(--green); background: var(--green-pale); }
.vocab-mastery-control:disabled { color: var(--muted); cursor: default; }
#basic-vocab [role=status]:empty { margin: 0; }
#basic-vocab [role=status]:not(:empty) { margin-top: .65rem; }
.challenge-free, .challenge-account, .challenge-series-list { max-width: 42rem; }
.challenge-account { margin-top: 1.55rem; }
.challenge-switcher { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin-block: .85rem; }
.challenge-switcher .button { width: 100%; padding-inline: .25rem; font-variant-numeric: tabular-nums; }
.challenge-switcher a[aria-current], .challenge-switcher a[aria-current]:hover { background: var(--green); color: var(--card); }
.challenge-cover { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: .45rem .8rem; }
.challenge-cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.challenge-cover .button { font-size: .84rem; padding-inline: .7rem; }
.challenge-series + .challenge-series { margin-top: .7rem; }
.challenge-series-title { display: flex; align-items: center; justify-content: space-between; gap: .55rem; min-height: 48px; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--green-dark); font-weight: 800; cursor: pointer; list-style: none; }
.challenge-series-title::-webkit-details-marker { display: none; }
.challenge-series-title::after { content: '＋'; margin-left: .2rem; color: var(--muted); }
.challenge-series[open] > .challenge-series-title::after { content: '−'; }
.challenge-series-title .tag { margin-left: auto; }
.challenge-series .challenge-cover { margin-top: .65rem; }
.challenge-outline { margin-top: 1.15rem; }
.challenge-series[open] .challenge-outline { margin-bottom: 1.15rem; }
.challenge-week + .challenge-week { margin-top: 1.35rem; }
.challenge-week-title { display: flex; gap: .65rem; align-items: center; color: var(--muted); font-size: .98rem; margin-bottom: .55rem; }
.challenge-week-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.challenge-days { margin: 0; padding: 0; list-style: none; display: grid; gap: .42rem; }
.challenge-day { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .4rem .55rem; min-height: 48px; padding: .38rem .65rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
a.challenge-day:hover { border-color: var(--gold); }
.challenge-day-badge { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--cream); }
.challenge-day-num { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.challenge-day-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; font-weight: 700; }
.challenge-day-state { color: var(--ochre); font-size: .74rem; font-weight: 750; }
.challenge-reader { scroll-margin-top: .8rem; }
.challenge-reader > :not(:first-child) { margin-top: .9rem; }
#challenge-paid-frame, #challenge-practice-frame { display: block; width: 100%; height: 0; border: 0; scroll-margin-top: .8rem; }
#challenge-free-lesson > .continue-links { margin-top: .9rem; }
.challenge-trial-vocab { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .65rem .85rem; }
.challenge-trial-vocab li { display: grid; gap: .3rem; justify-items: start; }
.challenge-trial-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.challenge-trial-examples > summary { color: var(--green); cursor: pointer; text-decoration: underline; }
.challenge-trial-examples li + li { margin-top: .65rem; }
.challenge-trial-question { min-width: 0; margin: .7rem 0 0; padding: .65rem; border: 1px solid var(--line); border-radius: 12px; }
.challenge-trial-question legend { font-weight: 700; overflow-wrap: anywhere; }
.challenge-trial-choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.challenge-trial-choices button[aria-pressed="true"] { background: var(--green-pale); }
.challenge-trial-writing { display: grid; gap: .5rem; }
.challenge-trial-writing textarea { width: 100%; min-height: 6rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); resize: vertical; }
#view-travel { display: grid; gap: clamp(.7rem, 2vw, 1.15rem); max-width: 58rem; }
#view-travel .travel-intro, .travel-intro h1 { margin-bottom: 0; }
.travel-intro h1 { font-size: clamp(1.65rem, 5.8vw, 3.2rem); }
.travel-modes, .travel-topics { display: grid; gap: .35rem; }
.travel-modes { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); max-width: 38rem; }
.travel-modes .button, .travel-topics .button { width: 100%; padding: .4rem .15rem; border-radius: 11px; font-size: clamp(.76rem, 3.4vw, .92rem); white-space: nowrap; }
.travel-modes .button { border-color: transparent; background: transparent; }
.travel-modes .button:hover, .travel-topics .button:hover { background: var(--cream); }
.travel-modes a[aria-current], .travel-topics a[aria-current] { border-color: #bdcbb8; background: var(--green-pale); color: var(--green-dark); font-weight: 800; }
.travel-modes a[aria-current]:hover, .travel-topics a[aria-current]:hover { background: var(--green-pale); }
.travel-overview.panel { display: grid; grid-template-columns: minmax(0, 1fr) clamp(105px, 32vw, 245px); align-items: center; gap: clamp(.4rem, 2vw, 1.35rem); background: var(--cream); padding: clamp(.85rem, 3vw, 1.65rem); }
.travel-overview h2 { font-size: clamp(1.2rem, 4vw, 2rem); }
.travel-overview p { color: var(--muted); font-size: clamp(.82rem, 2.8vw, 1rem); }
.travel-overview .button { padding-inline: clamp(.6rem, 2.8vw, 1.05rem); font-size: clamp(.78rem, 2.8vw, .94rem); }
.travel-picture { width: 100%; height: auto; align-self: center; border-radius: clamp(12px, 3vw, 18px); }
.travel-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.travel-topics .button { border-color: var(--line); }
.travel-reader .notice { margin: 0; }
#travel-frame { display: block; width: 100%; height: 0; border: 0; }
#view-study-room .page-intro { margin-bottom: .2rem; }
#study-room-heading { margin-bottom: 0; font-size: clamp(1.65rem, 4vw, 2.5rem); }
#study-room-heading:focus { outline: none; }
#study-room-frame { display: block; width: 100%; height: 0; border: 0; }
.travel-storage-note { color: var(--muted); font-size: .86rem; }
#travel-places { max-width: 58rem; }
.travel-tool-fields, .travel-place-list { display: grid; gap: .8rem; }
.travel-tool-fields label { display: grid; gap: .28rem; font-weight: 700; }
.travel-tool-fields :is(input, select, textarea) { min-width: 0; width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500; }
.travel-tool-fields textarea { resize: vertical; }
.travel-tool-fields [aria-invalid] { border-color: var(--wrong); }
.travel-tool-actions { display: flex; flex-wrap: wrap; gap: .35rem .55rem; margin-top: .65rem; }
#travel-place-status:not(:empty) { margin-top: .65rem; }
#travel-place-status[data-error] { color: var(--wrong); }
.travel-place { background: var(--cream); overflow-wrap: anywhere; }
.travel-place h4 { color: var(--green-dark); font-size: 1.14rem; margin: 0 0 .35rem; }
.travel-place-note { white-space: pre-wrap; }
#sentence-lab { max-width: 58rem; }
#challenge-practice-extra { margin-top: 1.15rem; }
.challenge-sentence-source > summary { min-height: 44px; align-content: center; font-weight: 750; color: var(--green-dark); cursor: pointer; }
.challenge-practice-picker h3 { font-size: 1rem; }
.challenge-practice-paid { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.challenge-practice-days { list-style: none; display: grid; gap: .35rem; margin: 0; padding: 0; }
.challenge-practice-day {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .4rem .65rem;
  min-height: 45px;
  padding: .5rem .6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--green-dark);
  text-decoration: none;
}
.challenge-practice-day:hover { border-color: var(--green); background: var(--green-pale); }
.challenge-practice-day-number, .challenge-practice-day-status { font-size: .8rem; font-weight: 750; color: var(--muted); }
.challenge-practice-day-title { overflow-wrap: anywhere; }
.challenge-practice-level { padding: .45rem 0; }
.challenge-practice-level-summary { min-height: 44px; color: var(--green-dark); font-weight: 750; align-content: center; cursor: pointer; }
.challenge-practice-level[open] .challenge-practice-level-summary { margin-bottom: .35rem; }
.route-no { display: block; color: var(--ochre); font-weight: 850; font-size: .83rem; letter-spacing: .08em; margin-bottom: .55rem; }
.available { border-color: #aaba9f; background: #f6f8ee; }
.muted-tag { background: var(--green-pale); color: var(--green); }
.notice { background: #f3e8ce; padding: .8rem 1rem; color: #69471d; border-radius: 14px; }
.notice a { text-underline-offset: .2em; }
.activity-panel, .activity-cards, #library-content { max-width: 58rem; }
.activity-stages { padding-inline-start: 1.35rem; }
.activity-stages li + li { margin-top: .3rem; }
.activity-stages li span { color: var(--muted); font-size: .9rem; }
.mistake-list { margin: 0; padding-inline-start: 1.2rem; }
.mistake-list li + li { margin-top: .7rem; }
.mistake-list p { margin: .12rem 0; font-size: .88rem; }
.submitted-writing { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--cream); padding: .75rem; border-radius: 12px; }
.lesson-intro { margin-bottom: .95rem; }
.stage-nav { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding: 0; margin: 0 0 1rem; }
.stage-nav a, .stage-nav li > span { display: flex; min-height: 48px; gap: .25rem; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--line); border-radius: 13px; font-size: .86rem; padding: .35rem; font-weight: 700; text-decoration: none; background: var(--card); }
.stage-nav li > span { background: #ede9dd; color: var(--muted); }
.stage-nav a[aria-current] { color: var(--green-dark); background: var(--green-pale); border-color: var(--green); }
.stage-nav a:hover { border-color: var(--green); }
#lesson-frame { border: 0; display: block; width: 100%; height: 100px; margin: 0; background: transparent; }
.lesson-actions { display: flex; align-items: start; gap: .5rem 1rem; flex-direction: column; margin-top: .75rem; }
.lesson-actions p { margin: 0; }
.arrange { margin-bottom: .75rem; }
.word-area { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; min-height: 56px; padding: .35rem .45rem; }
.picked { background: var(--cream); border: 1px dashed var(--gold); border-radius: 12px; margin-bottom: .25rem; }
.word-chip { border: 1px solid #a0ae9e; color: var(--green-dark); background: var(--green-pale); font-weight: 750; min-height: 44px; border-radius: 10px; padding: .3rem .8rem; cursor: pointer; }
.word-chip:hover { border-color: var(--green); }
.arrange-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .6rem; }
.arrange-status { color: var(--green); margin-top: .45rem; }
.arrange-status[data-error] { color: var(--wrong); }
.site-footer { text-align: center; padding: 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (min-width: 480px) {
  .vocab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 550px) {
  .header-inner, .container { padding-inline: 1.6rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .resource-feature { grid-template-columns: 1fr 1fr; }
  .travel-tool-fields, .travel-place-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .primary-nav { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .vocab-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .container { padding-block-start: 2rem; }
  .route-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #student-tasks-content:has(.home-feedback) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .travel-topics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .page-intro { margin-bottom: 1.65rem; }
  .stage-nav { gap: .65rem; }
}
@media (min-width: 1024px) {
  .header-inner { padding-block: .7rem .75rem; row-gap: .55rem; }
  .primary-nav a { flex-direction: row; gap: .22rem; min-height: 48px; padding: .2rem .14rem; }
  .primary-nav img { width: 34px; height: 33px; }
}

.mouth-video-preview { margin-block: .8rem; padding: clamp(.7rem, 3vw, 1.1rem); border: 1px solid #d5decf; border-radius: 1rem; background: #edf1e6; }
.mouth-video-preview h3 { margin: .2rem 0; }
.mouth-video-preview p { margin: .3rem 0 .65rem; }
.mouth-video-buttons { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:.4rem; margin-block:.65rem; }
.mouth-video-buttons button { min-height:44px; border:1px solid #9caf9c; border-radius:.65rem; background:#fffcf5; color:#234535; font:inherit; font-weight:800; }
.mouth-video-buttons button[aria-pressed="true"] { background:#234535; color:#fffaf0; }
.mouth-video-preview video { display:block; width:100%; max-height:24rem; aspect-ratio:16 / 10; object-fit:contain; background:#f8f3e6; border-radius:.65rem; }
.mouth-video-preview .mouth-video-label { margin:.65rem 0 0; }

.mouth-video-purchase { margin-block-start: .8rem; }

.study-line-contact {
  position: fixed;
  z-index: 6;
  inset-inline-start: max(.75rem, env(safe-area-inset-left));
  inset-block-end: max(.75rem, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  min-width: 70px;
  border-radius: 28px 28px 12px 12px;
  text-decoration: none;
}
body:has(#view-home[hidden]) .study-line-contact { display: none; }
@media (width < 720px) {
  .mobile-menu-trigger[data-side="left"] + .study-line-contact {
    inset-inline-start: auto;
    inset-inline-end: max(.75rem, env(safe-area-inset-right));
  }
}
.study-line-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid #fffaf0;
  border-radius: 50%;
  background: #06c755;
  box-shadow: 0 3px 9px #1b392b36;
}
.study-line-badge > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 29px;
  margin-top: -3px;
  border-radius: 50%;
  background: white;
  color: #08753b;
  font: 900 11px/1 system-ui, sans-serif;
}
.study-line-badge > span::after {
  position: absolute;
  inset: auto auto -4px 13px;
  width: 9px;
  height: 9px;
  background: white;
  clip-path: polygon(0 0, 100% 0, 15% 100%);
  content: "";
}
.study-line-label {
  position: relative;
  margin-top: -3px;
  padding: 2px 7px 3px;
  border: 1px solid #b6c6b0;
  border-radius: 999px;
  background: #fffaf0;
  color: var(--green-dark);
  box-shadow: 0 2px 5px #1b392b20;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}
