:root {
  --paper: #f4efe6;
  --white: #fff;
  --ink: #352a23;
  --muted: #746e61;
  --line: #d9d2c4;
  --blue: #52634d;
  --gold: #ead19a;
  --soft: #e9e8dc;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #bf8e35;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button.primary,
.primary {
  background: var(--blue);
  color: #fff;
  border-radius: 9px;
  padding: 10px 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
  z-index: 25;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 600 27px var(--serif);
  margin: 0 10px 58px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--blue);
  border-radius: 12px;
  width: 43px;
  height: 46px;
  color: #f1d9a5;
  font-size: 28px;
}
.brand small {
  display: block;
  font: 9px/2 var(--sans);
  letter-spacing: 1.8px;
}
.nav-label,
.small-cap {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.nav-label {
  padding: 0 15px;
  margin-bottom: 15px;
  font-size: 12px;
  letter-spacing: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 9px;
  margin: 5px 0;
  font-size: 16px;
}
.nav-item small {
  font-size: 12px;
  margin-left: auto;
  color: var(--muted);
}
.nav-item:hover,
.nav-item.active {
  background: #e9e8dc;
  color: var(--blue);
}
.sidebar-bottom {
  margin: auto 14px 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.sidebar-bottom p {
  font: 23px/1.6 var(--serif);
  margin: 18px 0;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.shell {
  margin-left: 236px;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 48px;
  background: #ffffffa6;
  font-size: 14px;
  gap: 20px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-note {
  color: var(--muted);
  font: italic 15px Georgia;
}
.ai-top {
  font-size: 14px;
  color: var(--blue);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
main {
  max-width: 1490px;
  margin: auto;
  padding: 46px 58px 80px;
  min-height: calc(100vh - 145px);
}
.home-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 32px;
}
.eyebrow {
  color: #778897;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.home-heading h1 {
  font: 500 41px/1.45 var(--serif);
  letter-spacing: 1px;
}
.lede {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}
.issue-stamp {
  border-left: 1px solid #cdd6dc;
  padding: 18px 30px 18px 45px;
  display: flex;
  flex-direction: column;
  color: var(--muted);
}
.issue-stamp > span {
  letter-spacing: 6px;
  font-size: 12px;
}
.issue-stamp strong {
  font: 48px/1.7 Georgia;
  color: var(--blue);
}
.issue-stamp small {
  font-size: 12px;
}
.pathways {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin: 30px 0 42px;
}
.pathway {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pathway small {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.pathway h2 {
  font: 600 23px/1.7 var(--serif);
}
.pathway p {
  font-size: 13px;
  color: var(--muted);
}
.pathway > span:last-child {
  margin-left: auto;
  font-size: 23px;
}
.primary-path {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary-path small,
.primary-path p {
  color: #c9d9e3;
}
.path-icon {
  font: 27px Georgia;
  width: 45px;
  flex-shrink: 0;
  color: #dccba8;
}
.path-count {
  font: 32px Georgia;
  margin-left: auto;
}
.path-count small {
  font: 12px var(--sans);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}
.section-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 5px;
}
.section-heading h2 {
  font: 600 26px var(--serif);
}
.section-heading h2 span {
  font: 13px var(--sans);
  color: var(--muted);
  margin-left: 9px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 265px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 8px 12px;
}
.search input {
  border: 0;
  outline: none;
  min-width: 0;
  width: 100%;
  font-size: 13px;
  background: transparent;
}
.search span {
  font-size: 22px;
}
.month-tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.month-tabs button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 14px;
  color: #627382;
}
.month-tabs small {
  font-size: 11px;
  margin-left: 5px;
  color: #91a0ac;
}
.month-tabs button.active {
  background: #e5ecf1;
  color: var(--blue);
  font-weight: 600;
}
.month-tabs button:hover {
  background: #edf1f4;
}
.catalog-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 22px 23px 16px;
  min-height: 244px;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.course-card:hover {
  border-color: #9bacb8;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #233f550a;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.card-meta span:first-child {
  color: #927747;
}
.course-card h3 {
  font: 600 20px/1.6 var(--serif);
  margin-bottom: 12px;
}
.card-en {
  font: 14px/1.5 Georgia;
  color: #7b8792;
  margin-bottom: 22px;
}
.card-bottom {
  margin-top: auto;
  border-top: 1px solid #edf0f2;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.arrow {
  font-size: 19px;
  color: var(--blue);
}
.footer {
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
#ai-launcher {
  position: fixed;
  right: 23px;
  bottom: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #d3dde4;
  border-radius: 28px;
  background: white;
  box-shadow: 0 4px 22px #1f354313;
  padding: 13px 14px;
  font-size: 12px;
  z-index: 30;
}
#ai-launcher span {
  font-size: 24px;
  color: var(--blue);
}
.icon-button {
  font-size: 25px;
  line-height: 1.2;
  padding: 7px;
  border-radius: 6px;
}
.mobile-only {
  display: none;
}
[hidden] {
  display: none !important;
}
.ai-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  background: white;
  box-shadow: -10px 0 55px #243b5320;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 26px;
}
.ai-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-heading h2 {
  font: 600 28px var(--serif);
  margin-top: 10px;
}
.ai-model {
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ai-scroll {
  overflow: auto;
  flex: 1;
}
.ai-intro {
  padding: 30px 0;
}
.ai-intro h3 {
  font: 23px var(--serif);
  margin-bottom: 15px;
}
.ai-intro p {
  color: var(--muted);
  font-size: 14px;
}
.quick-prompts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.quick-prompts button {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 5px 10px;
  font-size: 12px;
}
#ai-question {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  padding: 12px;
  resize: vertical;
  font-size: 14px;
}
.ai-send-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}
#ai-state {
  color: var(--muted);
  font-size: 11px;
  flex: 1;
}
.ai-footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
dialog {
  width: min(940px, 92vw);
  height: 88vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  color: var(--ink);
}
dialog::backdrop {
  background: #132b456b;
}
.document-bar {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
#document-content {
  padding: 28px 36px;
}
.loading,
.empty {
  padding: 50px;
  text-align: center;
}
.empty h1 {
  font: 30px var(--serif);
  margin-bottom: 20px;
}
@media (min-width: 1700px) {
  .course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 205px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .shell {
    margin-left: 205px;
  }
  main {
    padding: 36px 30px 60px;
  }
  .topbar {
    padding: 0 30px;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pathways {
    grid-template-columns: 1fr 1fr;
  }
  .path-count {
    display: none;
  }
  .pathway {
    padding: 20px;
    gap: 12px;
  }
  .pathway p {
    font-size: 12px;
  }
  .issue-stamp {
    padding-left: 25px;
    padding-right: 0;
  }
  .home-heading h1 {
    font-size: 36px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 236px;
    box-shadow: 10px 0 30px #233f551a;
  }
  .sidebar.open {
    transform: none;
  }
  .shell {
    margin-left: 0;
  }
  .mobile-only {
    display: inline-block;
  }
  .topbar {
    height: 63px;
    padding: 0 20px;
  }
  .top-note {
    display: none;
  }
  main {
    padding: 30px 20px 60px;
  }
  .home-heading h1 {
    font-size: 32px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  .issue-stamp {
    display: none;
  }
  .lede {
    font-size: 13px;
  }
  .pathways {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
  }
  .pathway {
    padding: 18px 20px;
  }
  .pathway h2 {
    font-size: 22px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .month-tabs {
    gap: 4px;
  }
  .month-tabs button {
    padding: 6px 10px;
  }
  .course-grid {
    gap: 12px;
  }
  .course-card {
    padding: 18px;
    min-height: 250px;
  }
  .course-card h3 {
    font-size: 19px;
  }
  .card-meta {
    font-size: 10px;
  }
  .card-bottom {
    font-size: 10px;
  }
  .card-en {
    font-size: 13px;
  }
  .footer {
    padding: 20px;
    gap: 20px;
    font-size: 10px;
  }
  #ai-launcher {
    right: 13px;
    bottom: 18px;
  }
  .ai-panel {
    width: min(400px, 100vw);
    padding: 20px;
  }
  #document-content {
    padding: 20px;
  }
  .document-bar {
    padding: 14px 20px;
  }
}
@media (max-width: 480px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  .course-card {
    min-height: 210px;
  }
  .card-meta {
    font-size: 12px;
  }
  .card-bottom {
    font-size: 12px;
  }
  .card-en {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Reading surfaces share a restrained ink, paper and brass palette. */
.continue-strip {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 15px 20px;
  margin: -15px 0 30px;
  font-size: 13px;
}
.continue-strip > span {
  color: var(--muted);
  flex-shrink: 0;
}
.continue-strip > span:last-child {
  margin-left: auto;
  color: var(--blue);
}
.continue-strip strong {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-heading {
  margin: 15px 0 40px;
}
.page-heading h1,
.lesson-heading h1 {
  font: 500 38px/1.6 var(--serif);
}
.page-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  margin-top: 12px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.resource-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.resource-card > span {
  font-size: 13px;
  color: var(--muted);
}
.resource-card > span span {
  float: right;
}
.resource-card h2 {
  font: 24px/1.6 var(--serif);
  margin: 18px 0;
}
.resource-card p {
  color: var(--muted);
  font-size: 14px;
}
.back-link {
  font-size: 13px;
  color: var(--muted);
}
.lesson-kicker {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  margin: 30px 0 12px;
}
.lesson-kicker span:first-child {
  letter-spacing: 1.6px;
  color: #957744;
}
.lesson-heading h1 {
  font-size: 34px;
  max-width: 1000px;
}
.lesson-en {
  font: 19px/1.6 Georgia;
  color: #7c8994;
  margin: 12px 0 18px;
}
.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}
.lesson-meta a {
  border-bottom: 1px solid var(--line);
}
.crumb-divider {
  margin: 0 12px;
  color: #a8b4bd;
}
.lesson-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  margin: 30px 0 28px;
  overflow: auto;
  white-space: nowrap;
}
.lesson-tabs a {
  padding: 16px 0;
  border-bottom: 3px solid transparent;
  font-size: 15px;
}
.lesson-tabs small {
  font-size: 10px;
  margin-right: 10px;
  color: #99a5ad;
}
.lesson-tabs a.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}
.audio-player {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px 25px;
  background: #eaf0f4;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  margin-bottom: 28px;
  position: sticky;
  top: 10px;
  z-index: 10;
  box-shadow: 0 6px 20px #352a2306;
}
.play-button {
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  width: 47px;
  height: 47px;
  flex-shrink: 0;
  font-size: 17px;
}
.audio-track {
  flex: 1;
  min-width: 80px;
}
.audio-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 5px;
}
.audio-top strong {
  font-weight: 500;
}
.audio-top span {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-top: 2px;
}
.audio-options {
  display: flex;
  gap: 12px;
  align-items: center;
}
.audio-options button {
  font-size: 21px;
  white-space: nowrap;
  padding: 2px;
}
.audio-options small {
  font-size: 10px;
}
.audio-options select {
  border: 1px solid #cdd8e0;
  background: #f8fafb;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 12px;
}
#audio-seek {
  width: 100%;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
  margin: 0;
}
#audio-error {
  font-size: 12px;
  color: #a14e38;
}
.article-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 42px 36px;
}
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.article-toolbar .eyebrow {
  font-size: 10px;
  margin-bottom: 5px;
}
.article-toolbar h2 {
  font: 500 24px var(--serif);
}
.outline-button {
  border: 1px solid #d4dde3;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  background: #fff;
  display: inline-block;
  white-space: nowrap;
}
.outline-button:hover {
  background: var(--soft);
}
.accent-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
  gap: 3px;
}
.accent-switch button {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 5px;
}
.accent-switch .active {
  background: var(--blue);
  color: #fff;
}
.accent-switch button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.audio-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.article-title {
  font: 26px/1.5 Georgia;
  margin: 35px 0 35px;
  max-width: 780px;
  color: #2e414e;
}
.paragraph {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 15px;
  padding: 18px 0;
  scroll-margin-top: 135px;
}
.paragraph-id {
  font-size: 10px;
  letter-spacing: 1px;
  color: #9ba6ad;
  padding-top: 9px;
}
.english {
  font:
    21px/1.9 Georgia,
    "Times New Roman",
    serif;
  color: #314452;
  overflow-wrap: anywhere;
}
.english p + p {
  margin-top: 12px;
}
.translation {
  display: none;
  font-size: 15px;
  line-height: 1.9;
  color: #7f8992;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.show-translation .translation {
  display: block;
}
.article-more {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 10px;
}
.article-more > details > summary {
  padding: 20px 0;
  cursor: pointer;
  font: 21px var(--serif);
}
.article-more summary span {
  font: 12px var(--sans);
  float: right;
  color: var(--muted);
}
.article-more > a {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--blue);
}
.lesson-neighbors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0 0;
}
.lesson-neighbors a {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lesson-neighbors a:last-child {
  text-align: right;
}
.lesson-neighbors small {
  font-size: 12px;
  color: var(--muted);
}
.lesson-neighbors span {
  font-size: 14px;
}
.prose {
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.prose p {
  margin: 12px 0;
}
.prose h1 {
  font: 32px/1.6 var(--serif);
  margin: 22px 0;
}
.prose h2 {
  font: 27px/1.6 var(--serif);
  margin: 30px 0 16px;
}
.prose h3 {
  font: 600 21px/1.7 var(--serif);
  margin: 28px 0 12px;
}
.prose h4 {
  font-size: 17px;
  margin: 22px 0 12px;
}
.prose a {
  color: #326b8a;
  text-decoration: underline;
  text-decoration-color: #bdcdd7;
  text-underline-offset: 4px;
}
.prose ul,
.prose ol {
  padding-left: 25px;
  margin: 15px 0;
}
.prose li {
  margin: 8px 0;
}
.prose blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid #b6c8d4;
  background: #f0f5f8;
  font-family: Georgia, var(--sans);
  color: #365064;
}
.prose blockquote p {
  margin: 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prose th {
  text-align: left;
  font-weight: 500;
  background: #eef3f6;
  color: #566d7e;
}
.prose td,
.prose th {
  padding: 13px 16px;
  border: 1px solid var(--line);
  vertical-align: top;
  min-width: 80px;
}
.prose td:first-child {
  min-width: 65px;
}
.table-scroll {
  overflow: auto;
  margin: 24px 0;
  border-radius: 7px;
}
.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
}
.prose details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 22px;
  margin: 20px 0;
}
.prose details[open] {
  padding-bottom: 20px;
}
.prose summary {
  cursor: pointer;
  padding: 15px 0;
  font-size: 14px;
  color: var(--blue);
}
.prose code {
  font-size: 0.9em;
  background: #e9e8dc;
  padding: 2px 5px;
  border-radius: 3px;
}
.prose pre {
  overflow: auto;
  background: #e9e8dc;
  padding: 20px;
  border-radius: 8px;
}
.prose a[id] {
  scroll-margin-top: 85px;
}
.anchor-highlight {
  background: #fff4d7 !important;
  border-radius: 6px;
  box-shadow: 0 0 0 7px #fff4d7;
}
.review-intro,
.practice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 38px 0;
}
.review-intro h2,
.practice-header h2,
.exam-intro h2 {
  font: 500 29px/1.6 var(--serif);
}
.review-intro p,
.practice-header p,
.exam-intro > p:last-child {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.review-sequence {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #7d8b96;
  font-size: 12px;
}
.review-sequence span {
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 15px 10px;
  background: white;
}
.review-sequence i {
  font-style: normal;
}
.review-framework {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.review-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.review-title {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  background: #fdfefe;
}
.review-title > span {
  color: #ad9263;
  font: 24px Georgia;
}
.review-title h3 {
  font: 600 23px var(--serif);
}
.review-content {
  padding: 26px 30px;
}
.review-timeline {
  position: relative;
}
.timeline-node {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  padding: 10px 0 24px;
  position: relative;
}
.timeline-node:not(:last-child):before {
  content: "";
  position: absolute;
  left: 23px;
  width: 1px;
  background: #dee6eb;
  top: 45px;
  bottom: -8px;
}
.timeline-node > span {
  background: #edf3f6;
  color: #597489;
  border-radius: 6px;
  font-size: 12px;
  width: 48px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-top: 3px;
}
.timeline-node a {
  text-decoration: none;
}
.timeline-node h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #486274;
}
.timeline-node p {
  font-size: 15px;
  color: #6f7e89;
  margin: 0;
  line-height: 1.85;
}
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.vocab-card {
  padding: 16px 18px;
  background: #f7f9fa;
  border-radius: 8px;
}
.vocab-card > span {
  font-size: 11px;
  color: #a4afb7;
}
.vocab-card h4 {
  font: 19px/1.5 Georgia;
  margin: 7px 0 10px;
  color: #2f5166;
}
.vocab-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #72808b;
  margin: 0;
}
.review-2 .review-content > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.review-2 .review-content > ul > li {
  border-left: 2px solid #e5d5b2;
  padding-left: 15px;
  font-size: 14px;
  margin: 0;
}
.review-3 {
  background: #f0f5f7;
}
.review-3 .review-title {
  background: transparent;
}
.review-3 .review-content {
  font-size: 15px;
}
.practice-cta {
  margin: 26px 0;
  padding: 24px 30px;
  background: var(--blue);
  color: white;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.practice-cta > span {
  color: #cedce5;
}
.question-total {
  font: 42px/1 Georgia;
  color: #8fa6b5;
  text-align: center;
}
.question-total small {
  display: block;
  font: 12px/2.5 var(--sans);
  color: var(--muted);
  white-space: nowrap;
}
.question-group {
  font: 24px var(--serif);
  margin: 40px 0 22px;
}
.question-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 18px 0;
  padding: 26px 30px;
}
.question-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.question-heading > span {
  font: 23px Georgia;
  color: #b5a07a;
}
.question-heading h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.question-prompt {
  font-size: 16px;
}
.answer-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 8px;
}
.question-card textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dfe6eb;
  border-radius: 8px;
  background: #fafcfd;
  resize: vertical;
  font-size: 15px;
  line-height: 1.8;
  min-height: 100px;
}
.question-card textarea:read-only {
  background: #f6f8f9;
  color: #627988;
}
.answer-panel {
  border-left: 3px solid #aec7ba;
  background: #f0f6f3;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 0 7px 7px 0;
}
.answer-panel h5 {
  font-size: 13px;
  letter-spacing: 1px;
  color: #5d7d6c;
  margin: 0 0 12px;
}
.answer-panel .prose {
  font-size: 15px;
  color: #536f60;
}
.practice-summary {
  font-size: 14px;
  padding: 15px 20px;
  background: #ecf2f5;
  border-radius: 8px;
  color: #587084;
  scroll-margin-top: 20px;
}
.submit-bar {
  position: sticky;
  bottom: 15px;
  padding: 18px 24px;
  background: #fffffff2;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 30px #304e6512;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
  margin-top: 30px;
}
.submit-bar > span {
  font-size: 14px;
  color: var(--muted);
  margin-right: auto;
}
.exam-intro {
  margin: 38px 0 25px;
}
.exam-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}
.exam-tabs a {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
}
.exam-tabs .active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.exam-content {
  padding: 30px 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.method-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  background: #f0f4f7;
  border-radius: 7px;
  font-size: 12px;
  color: #6b8394;
  margin-bottom: 30px;
}
.method-strip span:not(:last-child):after {
  content: "→";
  margin-left: 8px;
  color: #a1b0ba;
}
.exam-content > h3 {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 35px;
}
.linked-exam-heading,
.exam-vocab-title {
  border-top: 2px solid #d7e3ea;
  padding-top: 40px;
  margin-top: 55px !important;
}
.chat-user {
  background: #edf3f7;
  padding: 14px 16px;
  border-radius: 12px 12px 2px 12px;
  font-size: 14px;
  margin: 20px 0 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-answer {
  font-size: 14px;
  margin-bottom: 25px;
}
.chat-answer h2,
.chat-answer h3 {
  font: 600 18px/1.6 var(--sans);
  margin: 18px 0 10px;
}
.chat-answer blockquote {
  padding: 10px 14px;
}
.chat-answer table {
  font-size: 12px;
}
.chat-error {
  color: #a35844;
  font-size: 13px;
}
#ai-quote {
  background: #f3f6f8;
  border-left: 2px solid #adc2d1;
  border-radius: 0 7px 7px 0;
  padding: 10px 12px;
  margin-top: 12px;
}
#ai-quote > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
#ai-quote button {
  font-size: 19px;
}
#ai-quote blockquote {
  margin: 4px 0 0;
  max-height: 90px;
  overflow: auto;
  font:
    13px/1.6 Georgia,
    var(--sans);
}
#selection-ask {
  position: fixed;
  background: var(--blue);
  color: white;
  z-index: 55;
  padding: 8px 13px;
  border-radius: 8px;
  box-shadow: 0 4px 16px #163e5425;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  background: #263f50;
  color: white;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  z-index: 70;
}
.login-card {
  max-width: 500px;
  margin: 70px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px;
}
.login-card h1 {
  font: 34px/1.6 var(--serif);
}
.login-card > p {
  font-size: 14px;
  color: var(--muted);
  margin: 15px 0 25px;
}
.login-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-card label {
  font-size: 13px;
  color: var(--muted);
}
.login-card input {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 7px;
}
.login-card form p {
  font-size: 13px;
  color: #a15b45;
}
.ai-open #ai-launcher {
  display: none;
}
.ai-send-row button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.ai-open .shell {
  margin-right: 400px;
}
@media (max-width: 1500px) {
  .ai-open .shell {
    margin-right: 0;
  }
  .ai-panel {
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 1180px) {
  .article-sheet {
    padding: 28px;
  }
  .vocab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-sequence {
    display: none;
  }
  .review-2 .review-content > ul {
    grid-template-columns: 1fr;
  }
  .lesson-tabs {
    gap: 25px;
  }
  .lesson-tabs small {
    display: none;
  }
  .lesson-heading h1 {
    font-size: 30px;
  }
  .audio-options {
    gap: 8px;
  }
  .audio-top {
    flex-wrap: wrap;
    gap: 3px 12px;
  }
  .audio-player {
    padding: 18px 20px;
    gap: 16px;
  }
}
@media (max-width: 760px) {
  .lesson-heading h1 {
    font-size: 27px;
  }
  .lesson-kicker {
    margin-top: 22px;
  }
  .lesson-en {
    font-size: 17px;
  }
  .lesson-tabs {
    gap: 24px;
    margin-top: 20px;
  }
  .lesson-tabs a {
    font-size: 14px;
  }
  .lesson-meta {
    gap: 12px;
    font-size: 11px;
  }
  .article-sheet {
    padding: 24px 20px;
  }
  .article-toolbar {
    align-items: flex-start;
  }
  .article-toolbar h2 {
    font-size: 21px;
  }
  .article-toolbar .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .article-toolbar .outline-button {
    padding: 7px 10px;
    font-size: 12px;
  }
  .article-title {
    font-size: 24px;
  }
  .paragraph {
    grid-template-columns: 24px 1fr;
    gap: 8px;
    padding: 15px 0;
  }
  .paragraph-id {
    font-size: 9px;
  }
  .english {
    font-size: 20px;
    line-height: 1.85;
  }
  .translation {
    font-size: 14px;
  }
  .audio-player {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
    top: 5px;
  }
  .play-button {
    width: 40px;
    height: 40px;
  }
  .audio-track {
    width: calc(100% - 65px);
  }
  .audio-options {
    margin-left: auto;
    width: 100%;
    justify-content: flex-end;
    margin-top: -4px;
  }
  .audio-top {
    font-size: 12px;
  }
  .audio-top span {
    font-size: 10px;
  }
  .audio-options button {
    font-size: 18px;
  }
  .audio-options select {
    font-size: 12px;
    padding: 2px 7px;
  }
  .lesson-neighbors {
    gap: 20px;
  }
  .lesson-neighbors span {
    font-size: 13px;
  }
  .review-intro h2,
  .practice-header h2,
  .exam-intro h2 {
    font-size: 25px;
  }
  .review-intro p,
  .practice-header p {
    font-size: 13px;
  }
  .review-title {
    padding: 20px;
    gap: 13px;
  }
  .review-title h3 {
    font-size: 22px;
  }
  .review-content {
    padding: 20px;
  }
  .timeline-node {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }
  .timeline-node > span {
    width: 40px;
    font-size: 11px;
  }
  .timeline-node p {
    font-size: 14px;
  }
  .vocab-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .vocab-card {
    padding: 12px;
  }
  .vocab-card h4 {
    font-size: 17px;
  }
  .vocab-card p {
    font-size: 13px;
  }
  .practice-cta {
    padding: 20px;
    flex-direction: column;
    gap: 12px;
  }
  .question-card {
    padding: 22px 20px;
  }
  .question-total {
    font-size: 33px;
  }
  .question-prompt {
    font-size: 15px;
  }
  .answer-panel {
    padding: 15px;
  }
  .submit-bar {
    padding: 14px;
    gap: 10px;
    bottom: 10px;
    flex-wrap: wrap;
  }
  .submit-bar > span {
    font-size: 12px;
  }
  .submit-bar .primary {
    font-size: 13px;
    padding: 9px 12px;
  }
  .exam-tabs {
    gap: 8px;
  }
  .exam-tabs a {
    font-size: 12px;
    padding: 9px 12px;
  }
  .exam-content {
    padding: 20px;
  }
  .prose {
    font-size: 15px;
  }
  .prose blockquote {
    padding: 12px 16px;
  }
  .prose table {
    font-size: 13px;
  }
  .prose details {
    padding-left: 15px;
    padding-right: 15px;
  }
  .method-strip {
    font-size: 11px;
    padding: 12px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .continue-strip {
    gap: 12px;
    font-size: 12px;
  }
  .continue-strip strong {
    max-width: 50%;
  }
  .login-card {
    padding: 28px;
    margin: 35px auto;
  }
  .login-card h1 {
    font-size: 29px;
  }
  .accent-switch button {
    padding: 5px 8px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .vocab-grid {
    grid-template-columns: 1fr;
  }
  .vocab-card h4 {
    font-size: 19px;
  }
  .vocab-card p {
    font-size: 14px;
  }
  .article-toolbar {
    gap: 12px;
  }
  .article-toolbar h2 {
    font-size: 19px;
  }
  .review-intro .eyebrow,
  .practice-header .eyebrow {
    font-size: 9px;
  }
  .ai-panel {
    overscroll-behavior: contain;
  }
}

@media (min-width: 1101px) {
  .ai-open .shell {
    margin-right: 400px;
  }
  .ai-open main {
    padding-left: 30px;
    padding-right: 30px;
  }
  .ai-open .top-note {
    display: none;
  }
  .ai-open .course-grid,
  .ai-open .vocab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ai-open .pathways {
    grid-template-columns: 1fr;
  }
  .ai-open .article-sheet {
    padding-left: 24px;
    padding-right: 24px;
  }
  .ai-open .lesson-tabs {
    gap: 18px;
  }
  .ai-open .lesson-tabs small {
    display: none;
  }
  .ai-open .audio-player {
    flex-wrap: wrap;
  }
  .ai-open .audio-options {
    margin-left: auto;
  }
  .ai-open .issue-stamp {
    display: none;
  }
}
