/* Inherits the light learning world of ch03/lesson-ui.css. */
:root {
  --page: #f7f7f2; --paper: #fffdf7; --ink: #302e29; --muted: #6c6e64;
  --line: #e5e5dc; --blue: #246aab; --blue-soft: #edf3f8; --green: #3e744a;
  --chalk: #2b2622; --ui: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 112px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.6 var(--ui); }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; touch-action: manipulation; }
button, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { color: #213b4a; background: #d5e8f6; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mascot { display: block; overflow: visible; flex: none; }
.mascot .joy { display: none; }
.skip-link { position: fixed; z-index: 20; top: -80px; left: 20px; padding: 12px 20px; border-radius: 8px; background: #fff; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--page); }
.header-inner { max-width: 1440px; height: 88px; margin: auto; padding: 0 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 650; line-height: 1.45; }
.brand small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.header-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.header-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 15px; border-radius: 11px; color: var(--ink); white-space: nowrap; }
.header-nav .icon { width: 19px; height: 19px; }
@media (hover: hover) {
  .header-nav a:hover { color: var(--blue); background: var(--blue-soft); }
}
.header-nav a[aria-current="page"] { background: var(--blue); color: white; font-weight: 700; }
.header-nav a:focus-visible { outline-offset: 2px; }
@media (forced-colors: active) {
  .header-nav a[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; text-decoration: underline; }
}
.catalog-main { max-width: 1440px; margin: auto; padding: 49px 52px 24px; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 43px; }
.welcome h1 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); font-weight: 650; line-height: 1.5; letter-spacing: -.025em; }
.welcome h1 span { color: var(--blue); }
.welcome p { margin: 13px 0 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.mobile-break { display: none; }
.welcome-note { display: flex; align-items: flex-start; gap: 12px; padding-right: 4px; }
.welcome-note p { margin: 0; color: #70664f; font: italic 500 19px/1.6 "Iowan Old Style", Palatino, Georgia, serif; }
.welcome-note small { display: block; margin-top: 4px; font: 12px/1.6 var(--ui); color: var(--muted); }
.note-dash { width: 23px; height: 1px; margin-top: 15px; background: #bca776; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 266px; gap: 34px; align-items: start; }
.course-library { min-width: 0; scroll-margin-top: 10px; }
.course-library:focus { outline: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.section-heading h2 { margin: 0; font-size: 17px; font-weight: 650; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.section-heading b { font-weight: 500; }
.textbook-source { margin: 0 0 18px; color: var(--muted); font-size: var(--type-support); line-height: 1.65; }
.course { border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: 0 8px 30px rgb(49 44 30 / 6%); scroll-margin-top: 0; }
.course + .course { margin-top: 24px; }
.course-overview { display: grid; grid-template-columns: .9fr 1.1fr; }
.course-art { display: flex; flex-direction: column; justify-content: space-between; background: #f5edd8; padding: 23px 25px 20px; min-width: 0; }
.art-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #75613c; font-size: 12px; }
.art-label > span:first-child { font-size: 14px; font-weight: 650; }
.course-art img { width: calc(100% + 20px); height: auto; margin: 10px -10px 0; display: block; transition: transform .25s ease-out; }
.course-art:hover img { transform: translateY(-4px); }
.art-caption { margin: 4px 0 0; text-align: center; color: #705d3e; font: italic 500 14px/1.7 "Iowan Old Style", Palatino, Georgia, serif; }
.course-copy { min-width: 0; padding: 27px 30px 23px; }
.course-status-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.course-part { color: var(--muted); font-size: 12px; }
.course-status { padding: 2px 7px; border-radius: 5px; background: var(--blue-soft); color: var(--blue); font-size: 12px; }
.course-status.finished { color: var(--green); background: #eaf1e4; }
.course-copy h3 { margin: 16px 0 17px; font-size: clamp(32px, 2.8vw, 43px); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.course-copy h3 a:hover { color: var(--blue); }
.course-description { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 0 0 18px; }
.course-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 0; margin: 0 0 23px; list-style: none; }
.course-topics li { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.course-topics .icon { width: 14px; height: 14px; color: #6a8561; }
.course-meta { display: flex; flex-wrap: wrap; gap: 17px; color: var(--muted); font-size: 12px; margin: 0 0 17px; }
.course-meta > span { display: flex; align-items: center; gap: 6px; }
.course-meta .icon { width: 15px; height: 15px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 9px; border-radius: 9px; padding: 10px 19px; color: white; background: var(--blue); font-size: 14px; font-weight: 600; transition: background .15s; }
.primary-button:hover { background: #1c568d; }
.primary-button:active { background: #174b7c; }
.primary-button .icon { width: 17px; height: 17px; }
.primary-button .action-arrow { margin-left: 19px; width: 16px; height: 16px; }
.course-position { margin: 11px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.course-details { border-top: 1px solid #e9e6dc; }
.course-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 25px; cursor: pointer; list-style: none; font-size: 12px; }
.course-details summary::-webkit-details-marker { display: none; }
.course-details summary:hover { color: var(--blue); background: #faf9f2; }
.details-count { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.details-count .icon { width: 16px; height: 16px; transition: transform .2s; }
.course-details[open] .details-count .icon { transform: rotate(180deg); }
.lesson-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0 25px 15px; gap: 0 26px; }
.lesson-links a { display: flex; align-items: center; gap: 13px; min-height: 72px; border-top: 1px solid var(--line); font-size: 13px; }
.lesson-links a:hover { color: var(--blue); }
.lesson-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.lesson-links small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.lesson-links .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.learning-sidebar { border-left: 1px solid var(--line); padding-left: 25px; }
.learning-sidebar .section-heading > .icon { width: 17px; height: 17px; color: var(--muted); }
.progress-summary { display: flex; align-items: center; gap: 14px; margin: 27px 0 29px; }
.progress-guide { width: 48px; height: 34px; }
.progress-summary p { margin: 0; font-size: 13px; font-weight: 600; }
.progress-summary span { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.progress-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.progress-caption strong { font-size: 15px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-total { font-size: 12px; font-weight: 400; color: var(--muted); }
#bookProgress { display: block; width: 100%; height: 5px; appearance: none; border: 0; border-radius: 4px; overflow: hidden; background: var(--line); color: var(--green); }
#bookProgress::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
#bookProgress::-webkit-progress-value { background: var(--green); border-radius: 4px; }
#bookProgress::-moz-progress-bar { background: var(--green); border-radius: 4px; }
.progress-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 10px 0 0; }
.study-reminder { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; display: flex; align-items: flex-start; gap: 10px; }
.study-reminder > .icon { margin-top: 3px; width: 17px; height: 17px; color: var(--blue); }
.study-reminder h3 { font-size: 12px; font-weight: 600; margin: 0; }
.study-reminder p { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 8px 0 0; }
.storage-note { font-size: 12px; color: var(--muted); margin: 24px 0 0 27px; }
.guide-invitation { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px; margin-top: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.guide-invitation > span:last-child { display: flex; align-items: center; gap: 10px; color: var(--blue); white-space: nowrap; }
.guide-invitation:hover > span:last-child { text-decoration: underline; }
.study-guide { max-width: 1100px; margin: 0 auto; padding-bottom: 40px; }
.study-guide:focus, .guide-intro h1:focus { outline: none; }
.guide-intro { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.guide-intro h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.5; margin: 0; font-weight: 650; letter-spacing: -.025em; }
.guide-intro h1 span { color: var(--blue); }
.guide-intro > p { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 0 0 4px; }
.guide-routes { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 16px; overflow: hidden; }
.guide-route { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-content: start; align-items: center; column-gap: 12px; padding: 28px 32px; }
.guide-route + .guide-route { border-left: 1px solid var(--line); }
.guide-route h2 { margin: 0; font-size: 21px; font-weight: 600; }
.guide-route p { grid-column: 1 / -1; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.guide-route .guide-link { grid-column: 1 / -1; justify-self: start; }
.guide-link { display: inline-flex; align-items: center; gap: 22px; min-height: 48px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--blue); }
.guide-link .icon { width: 17px; height: 17px; }
.guide-link:hover { text-decoration: underline; }
.guide-method { padding: 34px 0; }
.guide-method > h2, .parent-guide h2 { font-size: 18px; margin: 0 0 24px; font-weight: 600; }
.study-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px; list-style: none; margin: 0; padding: 0; }
.study-steps li { display: flex; align-items: flex-start; gap: 12px; }
.study-step-number { flex: none; font-size: 14px; line-height: 30px; width: 30px; text-align: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); font-variant-numeric: tabular-nums; }
.study-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; }
.study-icon .icon { width: 19px; height: 19px; }
.study-icon.blue { background: #e8eff5; color: var(--blue); }
.study-icon.ochre { background: #f2e9ce; color: #806320; }
.study-icon.green { background: #e9eee2; color: var(--green); }
.study-steps h3 { font-size: 14px; font-weight: 600; margin: 3px 0 8px; }
.study-steps p { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0; }
.parent-guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 35px; padding-top: 28px; border-top: 1px solid var(--line); }
.parent-guide h2 { margin: 8px 0 10px; }
.parent-guide > div > p { margin: 0; color: var(--muted); font-size: 13px; }
.guide-question { border-bottom: 1px solid var(--line); }
.guide-question summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 14px; }
.guide-question summary::-webkit-details-marker { display: none; }
.guide-question summary:hover { color: var(--blue); }
.guide-question summary .icon { width: 16px; height: 16px; transition: transform var(--motion-state) var(--motion-ease); }
.guide-question[open] summary .icon { transform: rotate(180deg); }
.guide-question[data-expanded="false"] summary .icon { transform: none; }
.guide-answer { padding: 0 25px 18px 0; }
.guide-answer p { margin: 0; max-width: 65ch; color: var(--muted); font-size: 14px; line-height: 1.9; }
.guide-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 32px; }
.guide-bottom > p { margin: 0; font-size: 14px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer a { display: flex; align-items: center; min-height: 44px; gap: 7px; }
.site-footer a:hover { color: var(--blue); }
.site-footer .icon { width: 13px; height: 13px; transform: rotate(-90deg); }
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .2s; }
@media (max-width: 1200px) {
  .header-inner { padding-inline: 32px; }
  .catalog-main { padding-inline: 32px; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 25px; }
  .learning-sidebar { padding-left: 20px; }
  .course-copy { padding: 25px 22px; }
  .course-art { padding-inline: 19px; }
  .art-label { flex-wrap: wrap; }
  .course-topics { grid-template-columns: 1fr; gap: 7px; }
  .course-copy h3 { font-size: 35px; }
  .study-steps { gap: 18px; }
}
@media (max-width: 960px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 30px; }
  .welcome-note { display: none; }
  .course-copy { padding: 30px; }
  .course-copy h3 { font-size: 42px; }
  .course-topics { grid-template-columns: 1fr 1fr; }
  .learning-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .learning-sidebar .section-heading { grid-column: 1 / -1; }
  .progress-summary { grid-row: 2 / 5; margin: 0; align-items: flex-start; padding-top: 5px; }
  .progress-note { margin-top: 8px; }
  .study-reminder, .storage-note { display: none; }
  .parent-guide { grid-template-columns: 210px minmax(0, 1fr); gap: 25px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 136px; }
  .header-inner { height: auto; padding: 10px 16px 8px; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 16px; gap: 9px; }
  .brand > svg { width: 37px; height: 27px; }
  .brand small { font-size: 12px; }
  .header-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 0; }
  .header-nav a { gap: 5px; padding-inline: 3px; }
  .header-nav .icon { width: 17px; height: 17px; }
  .catalog-main { padding: 30px 20px 18px; }
  .welcome { margin-bottom: 29px; }
  .welcome h1 { font-size: 28px; line-height: 1.5; }
  .welcome h1 span { display: block; }
  .welcome p { font-size: 12px; line-height: 1.9; margin-top: 12px; }
  .mobile-break { display: block; }
  .section-heading { gap: 10px; margin-bottom: 15px; }
  .section-heading h2 { font-size: 15px; }
  .section-heading > span { font-size: 12px; }
  .course { border-radius: 12px; }
  .course-overview { grid-template-columns: 1fr; }
  .course-art { display: grid; grid-template-columns: clamp(80px, 23vw, 128px) minmax(0, 1fr); align-content: center; justify-content: start; column-gap: 14px; padding: 10px 16px; }
  .art-label { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; }
  .art-label > span:first-child { font-size: 13px; }
  .art-label > span:last-child { font-size: 12px; }
  .course-art img { grid-column: 1; grid-row: 1 / 3; height: auto; width: 100%; object-fit: contain; margin: 0; }
  .art-caption { grid-column: 2; text-align: start; margin: 0; font-size: 12px; }
  .course-copy { display: flex; flex-direction: column; align-items: stretch; padding: 16px; }
  .course-copy .course-topics, .course-copy .course-meta { order: 1; margin: 12px 0 0; }
  .course-copy h3 { font-size: clamp(27px, 7.2vw, 35px); margin: 15px 0 15px; line-height: 1.2; }
  .course-copy h3 br { display: none; }
    .course-copy h3 a { display: block; }
  .course-description { font-size: 14px; }
  .course-topics { grid-template-columns: 1fr 1fr; gap: 10px 8px; margin-bottom: 21px; }
  .course-topics li { font-size: 12px; gap: 5px; }
  .course-topics .icon { width: 13px; height: 13px; }
  .course-meta { gap: 14px; font-size: 12px; }
  .primary-button { width: 100%; justify-content: flex-start; font-size: 14px; }
  .primary-button .action-arrow { margin-left: auto; }
  .course-position { font-size: 12px; text-align: center; }
  .course-details summary { padding-inline: 22px; font-size: 12px; }
  .details-count { gap: 8px; font-size: 12px; }
  .lesson-links { grid-template-columns: 1fr; padding-inline: 22px; gap: 0; }
  .lesson-links a { min-height: 70px; font-size: 13px; }
  .learning-sidebar { grid-template-columns: 1fr; gap: 0; padding-top: 22px; }
  .progress-summary { grid-row: auto; padding-top: 0; margin: 7px 0 21px; }
  .progress-caption { margin-bottom: 10px; }
  .progress-note { margin-top: 10px; font-size: 12px; }
  .guide-invitation { display: block; margin-top: 29px; padding: 20px 0; }
  .guide-invitation > span:last-child { margin-top: 8px; min-height: 44px; }
  .guide-intro { display: block; margin-bottom: 26px; }
  .guide-intro h1 { font-size: 28px; }
  .guide-intro p { font-size: 13px; margin-top: 14px; }
  .guide-routes { grid-template-columns: 1fr; border-radius: 12px; }
  .guide-route { padding: 24px; }
  .guide-route + .guide-route { border-left: 0; border-top: 1px solid var(--line); }
  .guide-route h2 { font-size: 20px; }
  .guide-route p { font-size: 13px; }
  .guide-route p br { display: none; }
  .guide-method { padding-block: 28px; }
  .study-steps { grid-template-columns: 1fr; gap: 23px; margin: 0; }
  .study-steps li { display: flex; gap: 14px; }
  .study-steps h3 { margin: 2px 0 5px; }
  .study-steps p { font-size: 13px; }
  .study-icon { width: 38px; height: 38px; }
  .parent-guide { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .guide-question summary { font-size: 13px; }
  .guide-answer p { font-size: 13px; }
  .guide-bottom { display: block; padding-top: 28px; }
  .guide-bottom > p { margin-bottom: 16px; }
  .site-footer { font-size: 12px; }
  .site-footer > span:nth-child(2) { display: none; }
}
@media (max-width: 359px) {
  .header-nav .icon { display: none; }
  .course-topics { grid-template-columns: 1fr; }
  .course-description br { display: none; }
  .course-copy h3 { font-size: 25px; }
  .course-details summary { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
