:root {
  color-scheme: light;
  --ink: #30423c;
  --muted: #5f746d;
  --blue: #217e69;
  --navy: #0d394c;
  --paper: #f7f4ec;
  --line: #e0ddd2;
  --peach: #78e0be;
  --white: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box }
body { margin: 0; background: var(--paper); color: var(--ink); min-height: 100vh }
a { color: inherit }
button, input, select, textarea { font: inherit }
:focus-visible { outline: 3px solid #96601b; outline-offset: 4px }
.skip { position: absolute; left: -999px }
.skip:focus { left: 1rem; top: 1rem; z-index: 3; background: white; color: var(--ink); padding: 1rem }

.top { position: fixed; inset: 0 auto 0 0; width: 175px; display: flex; flex-direction: column; gap: 16px; padding: 26px 19px; background: #eee9de; color: var(--ink); border-right: 1px solid #e0dacd; overflow-y: auto }
.brand { display: inline-flex; align-items: center; font-family: Georgia, serif; font-size: 28px; font-weight: 700; letter-spacing: -1.4px; text-decoration: none; white-space: nowrap }
.top .brand { padding: 0 }
.brand span:last-child { color: #43c4a3 }
.top .brand span:last-child { color: #43c4a3 }
.logo { display: grid; place-items: center; width: 35px; height: 35px; margin-right: 9px; border-radius: 11px; background: var(--peach); color: var(--navy) }
.rail-label, .eyebrow, .badge { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase }
.rail-label { margin-top: 18px; color: #5f746d; font-size: 9px }
.top nav { display: grid; gap: 5px; margin-top: 12px }
.top nav a { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #dcd8cd; border-radius: 0; text-decoration: none; font-size: 12px; font-weight: 700; color: #5c6e63 }
.top nav a span { width: 17px; text-align: center; font-size: 16px }
.top nav a[aria-current] { color: #17826b; background: transparent }
.top nav a:hover:not([aria-current]) { color: #17826b; background: #e6e2d7 }
.rail-meta { margin-top: auto; padding-top: 20px; border-top: 1px solid #dcd8cd; display: grid; gap: 7px }
.rail-meta small { color: var(--muted) }
main, footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 32px; border-top: 1px solid var(--line); background: var(--paper); font-size: 12px; color: var(--muted) }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 32px clamp(20px, 3vw, 42px) 48px }

.row, .actions, .tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.button, button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 11px 15px; background: #fefcf7; color: var(--ink); font-weight: 750; font-size: 13px; cursor: pointer; text-decoration: none; min-height: 42px }
.button:hover, button:hover { border-color: var(--blue) }
.primary { background: var(--navy); border-color: var(--navy); color: white }
.ghost { background: transparent; color: inherit; border-color: #9fb4e8 }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 34px 0 16px }
.section-head h2, .page-title { margin: 8px 0; font-family: Georgia, serif; font-size: clamp(30px, 3.8vw, 42px); font-weight: 400; line-height: 1.16; letter-spacing: -1.3px }
.eyebrow { color: var(--blue) }
.muted { color: var(--muted); line-height: 1.55 }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.tile, .panel, .group { background: #fefcf7; border: 1px solid var(--line); border-radius: 2px }
.tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 17px; min-height: 96px; text-decoration: none }
.tile:hover { border-color: var(--blue); box-shadow: 0 4px 14px #24387216 }
.tile .icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #e5f8f0; color: #268f76; font-size: 20px }
.tile h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.3; font-family: Georgia, serif; font-weight: 400 }
.tile small { font-size: 12px; color: var(--muted) }
.tile .arrow { font-size: 20px; color: var(--blue) }
.band { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; border-block: 1px solid var(--line); background: transparent }
.band span { padding: 12px 15px; color: var(--muted); font-size: 13px }
.band span + span { border-left: 1px solid #dedbd1 }
.band strong { display: block; color: var(--ink); font-family: Georgia, serif; font-size: 26px; font-weight: 400 }

.crumb { margin: 0 0 22px; font-size: 14px; color: var(--muted) }
.group { margin: 14px 0; padding: 20px }
.group h2 { margin: 0 0 10px; font-size: 19px }
.lesson-link { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; text-decoration: none; border-top: 1px solid var(--line) }
.lesson-link:hover { color: var(--blue); text-decoration: underline }
.lesson-link small { flex-shrink: 0; color: var(--muted) }
.panel { max-width: 850px; margin: 18px 0; padding: clamp(20px, 3vw, 34px); line-height: 1.8 }
.panel li { margin: .55em 0 }
.panel p { margin: 1em 0 }
.panel h2 { line-height: 1.2 }
.tabs a[aria-current] { background: #e8f8f0; border-color: #bee4d8; color: var(--blue) }
.flash { display: grid; place-content: center; gap: 14px; min-height: 254px; width: 100%; padding: 24px; border-color: #bee4d8; border-radius: 17px; background: linear-gradient(145deg, #fff, #eaf9f3); color: #153c4c; font-size: clamp(21px, 3vw, 29px); line-height: 1.45; text-align: center }
.flash small { display: block; margin-bottom: 12px; color: #268d74; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase }
.counter { font-variant-numeric: tabular-nums }
.field { display: grid; gap: 6px; margin: 12px 0; font-weight: 700 }
#search { width: min(100%, 460px) }
input, select, textarea { border: 1px solid #bdcdc6; background: white; border-radius: 8px; color: var(--ink); padding: 10px 12px; max-width: 100% }
textarea { width: 100%; min-height: 120px }
.choice { display: block; border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin: 8px 0; cursor: pointer }
.choice:has(input:checked) { background: #edfaf3; border-color: var(--blue) }
.choice input { margin-right: 10px; accent-color: var(--blue) }
.feedback { background: #edfaf3; border-radius: 10px; padding: 12px 17px; margin-top: 14px }
figure { margin-inline: 0 }
.figure { width: min(100%, 460px); height: auto; background: #f0f5ef; border-radius: 8px; padding: 8px }
.figure text { font: 12px system-ui; fill: var(--ink) }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 4%; border-top: 1px solid var(--line); background: white; font-size: 14px; color: var(--muted) }
footer p { margin: 0 }
button:disabled { opacity: .45; cursor: default }

@media (max-width: 700px) {
  .top { position: static; width: auto; padding: 14px 20px; gap: 14px; overflow: visible; flex-direction: row; justify-content: space-between; align-items: center; border-right: 0; border-bottom: 1px solid var(--line) }
  .rail-label, .rail-meta { display: none }
  .top .brand { padding: 0 }
  .top nav { display: flex; flex-wrap: wrap; margin: 0; gap: 4px }
  .top nav a { padding: 7px; border: 0; font-size: 11px }
  main, footer { margin-left: 0 }
  .wrap { padding: 24px 20px 40px }
}
@media (max-width: 580px) {
  .grid { grid-template-columns: 1fr }
  .top nav { gap: 3px }
  .top nav a { font-size: 12px; padding: 7px 6px; gap: 4px }
  .top nav a span { font-size: 13px; width: auto }
  .band { grid-template-columns: repeat(2, 1fr) }
  .band span:nth-child(3) { border-left: 0 }
  .band span:nth-child(n+3) { border-top: 1px solid #dedbd1 }
  .section-head { align-items: start }
  .tile { min-height: 72px; padding: 12px }
  footer { align-items: start; flex-direction: column }
}

details.group > summary { cursor: pointer; font-weight: 750; padding-block: 4px }
details.group[open] > summary { margin-bottom: 10px }
.pagination { margin: 18px 0 26px }
#filter-lesson { width: min(100%, 320px) }

.revision-notes h2 { margin: 0 0 .7rem; font-size: clamp(21px, 3vw, 27px); letter-spacing: -.025em }
.revision-notes section + section { margin-top: 1.8rem }
.revision-notes p { margin: .75rem 0; max-width: 68ch }
.revision-notes figure { margin-block: 1.3rem 0 }
.revision-notes figcaption { margin-top: .6rem; color: var(--muted); max-width: 63ch }
.revision-notes figcaption p { margin: .25rem 0 0 }
.revision-notes .remember { border-top: 1px solid var(--line); padding-top: 1.5rem }
.revision-notes .remember ul { padding-left: 1.35rem; margin-bottom: 0 }
.revision-notes .remember li::marker { color: var(--blue) }
.revision-notes .remember li p { margin: .18rem 0 .75rem }
.worked-note { background: #fff3e8; border-left: 4px solid #b86531; border-radius: 0 10px 10px 0; padding: 1rem 1.2rem }
.worked-note p:last-child { margin-bottom: 0 }
.graph-guide { fill: none; stroke: #6479b5; stroke-dasharray: 4 4 }
.note-flow { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem 1.65rem; margin: 0 }
.note-flow li { position: relative; margin: 0; padding: .55rem .75rem; border-radius: .5rem; background: #edfaf3; color: var(--navy); font-weight: 700 }
.note-flow li:not(:last-child)::after { content: '→'; position: absolute; left: calc(100% + .35rem); color: var(--blue) }

.syllabus-detail { border-top: 1px solid var(--line); padding-top: 1.45rem }
.syllabus-detail .eyebrow { margin: 0 0 .65rem }
.syllabus-table { border-collapse: collapse; margin: 1.3rem 0; font-size: .92rem }
.syllabus-table caption { text-align: left; font-weight: 750; margin-bottom: .45rem }
.syllabus-table td, .syllabus-table th { border: 1px solid var(--line); text-align: left; padding: .45rem .6rem; overflow-wrap: anywhere }
.syllabus-table th { background: #edfaf3 }
.coverage-row { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: .65rem 0; border-top: 1px solid var(--line) }
.coverage-link { display: block; color: var(--blue) }

.flash-text { white-space: pre-line }

.practice-chapters { margin: 24px 0 }
.question-id { color: var(--muted); font-size: 12px }
.case-study { background: #edfaf3; border-left: 3px solid var(--blue); padding: 14px; border-radius: 8px; margin: 14px 0 }
.case-study p { margin-bottom: 0 }
.mark-scheme { white-space: pre-line; margin-top: 12px }



.editorial { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; padding: 24px 0; margin-top: 18px; border-block: 1px solid #dedbd1 }
.hero-copy h1 { font-family: Georgia, serif; font-size: clamp(34px, 3.7vw, 48px); font-weight: 400; line-height: 1.14; letter-spacing: -1.8px; margin: 12px 0 16px }
.hero-copy p { margin: 17px 0; max-width: 52ch; font-size: 14px; line-height: 1.8 }
.journal-art { position: relative; overflow: hidden; min-height: 225px; padding: 20px; background: #28524b; color: #ddf6df; display: flex; flex-direction: column; justify-content: space-between }
.journal-art::after { content: ""; width: 190px; height: 190px; border-radius: 50%; border: 1px solid #91dbb5; position: absolute; right: -55px; bottom: -95px; box-shadow: 0 0 0 30px #ffffff12, 0 0 0 65px #ffffff09 }
.journal-art b { font: 400 65px Georgia, serif }
.journal-art small { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; z-index: 1 }
.paths-title { font: 400 28px Georgia, serif; margin: 26px 0 14px; letter-spacing: -.6px }
.study-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.study-tool { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fefcf7; border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 170px }
.study-tool:hover { border-color: #279a7c; background: #f9fcf4 }
.study-tool .symbol { height: 36px; width: 36px; display: grid; place-items: center; background: #e5f8f0; color: #268f76; border-radius: 9px; font-size: 20px }
.study-tool .muted { font-size: 12px }
.study-tool em { margin-top: auto; font-size: 12px; font-weight: 750; color: #238b71; font-style: normal }
.note-layout { display: grid; grid-template-columns: minmax(0, 1fr) 205px; align-items: start; gap: 18px }
.note-layout .revision-notes { min-width: 0; max-width: none }
.study-aside { background: #eee9df; border-radius: 10px; padding: 18px; margin-top: 18px }
.study-aside h2 { font: 400 22px/1.3 Georgia, serif }
.study-aside p { font-size: 13px; line-height: 1.8 }
.study-aside .button { display: flex; margin-block: 10px; font-size: 12px }
.revision-notes h2 { font-family: Georgia, serif; font-weight: 400 }
.flash.reveal { background: linear-gradient(130deg, #123a4a, #1c6a58); color: white }
.flash.reveal small { color: #9eecd4 }
#deck { max-width: 720px; margin-inline: auto; background: transparent; border: 0; padding-inline: 0 }
#deck .row { justify-content: center }
#deck .counter { text-align: center }
.case-study { background: #edfaf3 }
@media (max-width: 1050px) {
  .note-layout { grid-template-columns: minmax(0, 1fr) }
  .study-aside { margin-top: 0 }
}
@media (max-width: 700px) {
  .editorial { grid-template-columns: minmax(0, 1fr) }
  .journal-art { min-height: 145px }
  .section-head { flex-wrap: wrap }
}
@media (max-width: 460px) {
  .study-tools { grid-template-columns: minmax(0, 1fr) }
  .study-tool { min-height: 0 }
  .top { flex-wrap: wrap }
  .top nav { width: 100%; justify-content: space-between }
  .lesson-link { flex-wrap: wrap }
  .coverage-row { grid-template-columns: 4em minmax(0, 1fr) }
  .syllabus-table { width: 100%; font-size: 12px }
}


.practice-filters { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--line); background: #fefcf7 }
.practice-filters .row { align-items: end }
.practice-filters .field { flex: 1 1 160px; min-width: 0 }
.practice-filters select { width: 100% }
.practice-filters .question-search { flex: 1 1 300px; margin-bottom: 0 }
.practice-workspace { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 22px; align-items: start }
.question-browser { position: sticky; top: 20px; border: 1px solid var(--line); background: #fefcf7; padding: 14px; min-width: 0 }
.question-browser #question-count { margin: 0; font-weight: 750; color: var(--ink) }
.navigator-hint { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 8px 0 14px }
#question-list { max-height: 58vh; overflow-y: auto; display: grid; gap: 5px; padding: 3px }
#question-list button { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 8px; padding: 10px 8px; text-align: left; border: 1px solid transparent; background: transparent; font-size: 12px }
#question-list button:hover { background: #f0f5ef; border-color: var(--line) }
#question-list button[aria-current] { background: #e5f8f0; border-color: #57ac91 }
#question-list strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.5 }
#question-list small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px }
.question-number { background: #eee9df; border-radius: 5px; text-align: center; padding: 2px }
.navigator-pages { justify-content: space-between; margin-top: 12px; gap: 6px }
.navigator-pages button { font-size: 11px; padding: 7px 9px; min-height: 36px }
.question-work { min-width: 0; scroll-margin-top: 16px }
.question-work .panel { margin: 12px 0 0; max-width: none }
.question-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 }
.jump-label { font-size: 12px; display: flex; align-items: center; gap: 6px }
.jump-label input { width: 76px; padding: 8px; text-align: center }
.question-work h2 { font-size: clamp(20px, 2.3vw, 25px) }
.question-work .choice { font-size: 14px; line-height: 1.65 }
.question-work textarea { min-height: 220px }
@media(max-width:900px) {
  .practice-workspace { grid-template-columns: minmax(0, 1fr) }
  .question-browser { position: static }
  #question-list { max-height: 210px; grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media(max-width:480px) {
  #question-list { grid-template-columns: minmax(0, 1fr); max-height: 190px }
  .practice-filters { padding: 12px }
  .question-toolbar { justify-content: center }
  .jump-label { order: -1; width: 100%; justify-content: center }
}

main.practice-page { display: block; margin-left: 175px; padding: 0; border-top: 0; font-size: 15px; color: var(--ink) }
@media (max-width: 700px) { main.practice-page { margin-left: 0 } }

/* Notes and recall collections */
main.learning-page { display: block; margin-left: 175px; padding: 0; border: 0; font-size: 15px; color: var(--ink) }
.learning-page .wrap { width: min(1240px, 100%); padding: 36px clamp(22px, 3.5vw, 48px) 64px }
body:has(main.learning-page) footer { margin-left: 175px }
.study-hero { display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: 36px; padding: 24px 0 38px; border-bottom: 1px solid var(--line) }
.study-hero h1 { font: 400 clamp(38px, 4.4vw, 60px)/1.06 Georgia, serif; letter-spacing: -2px; margin: 18px 0 }
.study-hero h1 em { color: #267c65; font-weight: 400 }
.study-intro { max-width: 53ch; font-size: 15px; line-height: 1.85; color: var(--muted) }
.study-stats { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; font-size: 12px; color: var(--muted) }
.study-stats strong { color: var(--ink); font-size: 16px; margin-right: 4px }
.study-art { isolation: isolate; position: relative; height: 280px; border-radius: 22px; background: #e0e9df; overflow: hidden }
.card-art { background: #e6dfd2 }
.art-orbit { position: absolute; border: 1px solid #9daf9b; width: 240px; height: 240px; border-radius: 50%; left: 48%; top: -40px; box-shadow: 0 0 0 30px #ffffff26, 0 0 0 62px #ffffff18 }
.art-sheet { position: absolute; width: 150px; height: 185px; border-radius: 9px; left: calc(50% - 75px); top: 35px; background: #f9f6ec; border: 1px solid #d9dfd2; box-shadow: 0 12px 25px #294a3820 }
.sheet-back { transform: rotate(-14deg); background: #b0cbb8; left: calc(50% - 89px) }
.sheet-front { transform: rotate(9deg); display: flex; flex-direction: column; justify-content: center; padding: 20px; color: #255849; font: 55px Georgia, serif }
.sheet-front i { font: italic 13px/1.5 Georgia, serif; margin-top: 16px }
.study-art > small { position: absolute; bottom: 18px; left: 12px; right: 12px; text-align: center; color: #486651; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase }
.collection-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 20px; margin: 30px 0 24px }
.collection-toolbar > div { margin-right: auto }
.collection-toolbar h2 { font: 400 27px/1.2 Georgia, serif; letter-spacing: -.6px; margin: 8px 0 0 }
.collection-toolbar .eyebrow { margin: 0; font-size: 10px }
.study-search, .chapter-select { display: grid; gap: 8px; font-size: 11px; font-weight: 700; color: var(--muted) }
.study-search { flex: 0 1 340px }
.study-search input, .chapter-select select { min-height: 46px; border-color: #d8dfd5; background: #fffef9; font-size: 13px; width: 100% }
.learning-page #search { width: 100% }
.chapter-collection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px }
.chapter-cover { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 25px; background: #fffdf7; border: 1px solid #dedfd3; border-top: 5px solid var(--chapter-tint); border-radius: 16px; text-decoration: none; transition: transform .18s, box-shadow .18s }
.chapter-cover:hover { transform: translateY(-3px); box-shadow: 0 12px 24px #30423c0d; border-color: #acc1ad }
.cover-top, .cover-bottom { display: flex; justify-content: space-between; gap: 10px; align-items: center }
.cover-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--chapter-tint); font: 23px Georgia, serif }
.cover-arrow { color: #728474; font-size: 20px }
.chapter-cover small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1.3px }
.chapter-cover h2 { font: 400 23px/1.2 Georgia, serif; letter-spacing: -.5px; margin: 10px 0 0 }
.cover-bottom { border-top: 1px solid var(--line); padding-top: 16px; font-size: 11px; color: #466d59 }
.cover-bottom span:last-child { font-weight: 700 }
.learning-page .crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; line-height: 1.6; margin-bottom: 24px }
.learning-page .crumb a { text-decoration-color: #bec9b9; text-underline-offset: 4px }
.lesson-heading { max-width: 850px; padding-bottom: 12px }
.lesson-heading .eyebrow { display: inline-block; background: #e8eee3; border-radius: 6px; padding: 7px 10px; font-size: 10px; margin: 0 }
.lesson-heading h1 { font: 400 clamp(32px, 4vw, 46px)/1.14 Georgia, serif; letter-spacing: -1.4px; margin: 18px 0 14px }
.lesson-heading > p:last-child { color: var(--muted); line-height: 1.8; max-width: 70ch; font-size: 14px }
.learning-page .lesson-study-tabs { margin: 12px 0 30px; border-bottom: 1px solid var(--line); gap: 25px }
.lesson-study-tabs .button { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 14px 0; color: var(--muted); font-size: 13px }
.lesson-study-tabs .button[aria-current] { background: transparent; color: #217e69; border-color: #217e69 }
.learning-page .note-layout { grid-template-columns: minmax(0, 1fr) 225px; gap: 28px }
.learning-page .revision-notes { background: #fffef9; border: 1px solid #e0e2d7; border-radius: 18px; margin: 0; padding: clamp(24px, 3vw, 40px); font-size: 15px; line-height: 1.9; box-shadow: 0 8px 25px #30423c04 }
.learning-page .revision-notes h2 { font-size: clamp(24px, 2.7vw, 31px); line-height: 1.25; margin-bottom: 18px }
.learning-page .revision-notes p { margin: 1em 0; max-width: 66ch }
.learning-page .revision-notes section { scroll-margin-top: 25px }
.learning-page .revision-notes section + section { margin-top: 36px }
.learning-page .syllabus-detail { padding-top: 32px }
.learning-page .revision-notes .remember { border: 1px solid #dbe5d8; background: #eef4e9; border-radius: 14px; padding: 24px }
.learning-page .remember ul { padding-left: 20px }
.learning-page .remember li { padding-left: 5px; margin-block: 20px }
.learning-page .remember li strong { color: #245a47 }
.learning-page .remember li p { font-size: 14px; margin: 6px 0 }
.learning-page .worked-note { background: #faf0de; border: 1px solid #eddfc6; border-left: 4px solid #b69d66; border-radius: 12px; padding: 25px }
.learning-page .revision-notes figure { background: #f5f7f0; border: 1px solid #e5e9dc; border-radius: 14px; padding: 18px; overflow-x: auto }
.learning-page .revision-notes .figure { display: block; margin-inline: auto; background: transparent; max-width: 100% }
.learning-page .revision-notes figcaption { font-size: 12px; line-height: 1.7; padding-top: 10px; border-top: 1px solid #e1e6da }
.learning-page .study-aside { position: sticky; top: 28px; padding: 0; margin: 0; background: transparent; border-radius: 0 }
.study-aside > .eyebrow { font-size: 10px; margin: 8px 0 14px }
.study-aside nav { display: grid; gap: 4px; border-left: 1px solid #d9e1d2; padding-left: 10px }
.study-aside nav button { border: 0; background: transparent; justify-content: start; text-align: left; padding: 10px 6px; gap: 9px; font-size: 12px; font-weight: 500; line-height: 1.5 }
.study-aside nav button:hover { background: #e8eee1 }
.study-aside nav button span { color: #71947b; font-size: 10px }
.aside-recall { background: #e7eedf; padding: 22px; border-radius: 15px; margin: 24px 0 18px }
.mini-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; background: #d7e5cf; border-radius: 10px; color: #386548; font-size: 19px }
.aside-recall h2 { margin: 16px 0 10px }
.aside-recall p { margin-bottom: 18px }
.aside-recall .primary { background: #285844; border-color: #285844 }
.text-link { color: #287657; font-size: 12px; font-weight: 700; text-decoration: none; line-height: 1.6 }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px }
.lesson-end { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 32px 0 20px; padding: 24px 0; border-bottom: 1px solid var(--line) }
.lesson-end p { color: var(--muted); margin-bottom: 0; font-size: 13px }
.lesson-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 18px }
.lesson-sibling { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fbfaf3 }
.lesson-sibling:last-child { text-align: right }
.lesson-sibling:hover { border-color: #90b09c }
.lesson-sibling small { color: #65856f; font-size: 10px; text-transform: uppercase; letter-spacing: .8px }
.lesson-sibling span { font: 18px/1.4 Georgia, serif }
.chapter-lessons { display: grid; gap: 18px; margin-top: 20px }
.chapter-topic { display: grid; grid-template-columns: .7fr 1.3fr; gap: 28px; padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: #fffdf7 }
.topic-heading { display: flex; gap: 12px; align-items: start }
.topic-heading > span { color: #649478; font: 22px Georgia, serif }
.topic-heading h2 { font: 24px/1.25 Georgia, serif; margin: 0 }
.chapter-topic .lesson-link { padding: 16px 0; align-items: center; font-size: 14px; line-height: 1.5 }
.chapter-topic .lesson-link:first-child { border-top: 0; padding-top: 0 }
.chapter-topic .lesson-link small { background: #eef2e8; padding: 5px 7px; border-radius: 5px; font-size: 10px }
.deck-filters .study-search { flex: 1 1 230px; max-width: 330px }
.chapter-select { flex: 1 1 200px; max-width: 250px; min-width: 0 }
.collection-count { color: var(--muted); font-size: 12px; margin: 0 0 28px }
.deck-chapter { margin: 0 0 36px }
.deck-chapter-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px }
.chapter-tag { color: #679078; font: 25px Georgia, serif }
.deck-chapter-heading h2 { margin: 0; font: 26px/1.3 Georgia, serif; letter-spacing: -.5px }
.deck-chapter-heading > span:last-child { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap }
.deck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.deck-cover { position: relative; display: flex; flex-direction: column; align-items: start; gap: 12px; min-height: 230px; padding: 23px; border: 1px solid #dce1d5; border-radius: 16px; background: #fffef9; text-decoration: none; transition: transform .18s, box-shadow .18s }
.deck-cover:hover { transform: translateY(-3px); border-color: #8fb69e; box-shadow: 0 10px 20px #2846340a }
.deck-cover-icon { display: grid; place-items: center; background: #edf2e7; color: #41765a; height: 35px; width: 35px; border-radius: 9px; font-size: 22px }
.deck-cover > small { color: #7c897a; text-transform: uppercase; letter-spacing: 1.2px; font-size: 9px }
.deck-cover h3 { font: 400 21px/1.3 Georgia, serif; margin: 0 0 12px; letter-spacing: -.35px }
.deck-cover > div { display: flex; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: #55715d; font-size: 11px }
.deck-cover > div span:last-child { font-weight: 700; color: #287657 }
.glossary-banner { display: flex; align-items: center; gap: 24px; border: 1px solid #dedfcf; border-radius: 16px; padding: 26px; background: #ececdd; margin-top: 32px }
.glossary-banner > div { flex: 1 }
.glossary-banner h2 { font: 26px Georgia, serif; margin: 0 0 10px }
.glossary-banner p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0 }
.glossary-banner .button { white-space: nowrap }
.collection-empty { padding: 40px; text-align: center; border: 1px dashed #b7c7b1; border-radius: 14px; color: var(--muted) }
.recall-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 30px; align-items: start }
.learning-page #deck { width: 100%; max-width: none; margin: 0; padding: 0 }
.deck-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px }
.learning-page #deck .counter { margin: 0; font-size: 10px; text-align: left }
.deck-download { font-size: 11px; padding: 8px 12px; min-height: 36px; background: #faf9f0; border-radius: 8px }
.deck-progress { height: 4px; border-radius: 4px; background: #dfe7d7; margin: 0 0 24px; overflow: hidden }
.deck-progress span { display: block; height: 100%; background: #478769; border-radius: inherit; transition: width .2s }
.learning-page .flash { min-height: 340px; padding: 36px; border: 1px solid #cddac7; border-radius: 22px; background: #fffdf5; color: #2d4937; box-shadow: 0 7px 0 -2px #e5e9dc, 0 14px 0 -5px #eff0e5, 0 18px 32px #30423c09; font: 400 clamp(22px, 2.7vw, 31px)/1.5 Georgia, serif }
.learning-page .flash small { font: 700 10px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 1.3px; color: #76917b; margin-bottom: 24px }
.learning-page .flash.reveal { color: #f2f5e8; background: #285540; border-color: #285540 }
.learning-page .flash.reveal small { color: #c7ddbe }
.deck-hint { text-align: center; color: #74836e; font-size: 11px; line-height: 1.6; margin: 28px 0 18px }
.deck-controls { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.deck-controls button { padding: 12px 16px; font-size: 12px }
.deck-controls .primary { background: #285540; border-color: #285540 }
.recall-guide { padding: 24px; background: #e9edde; border-radius: 16px; margin-top: 54px }
.recall-guide .eyebrow { margin: 16px 0 10px; font-size: 9px }
.recall-guide h2 { font: 26px/1.25 Georgia, serif; letter-spacing: -.5px; margin: 0 0 20px }
.recall-guide ol { padding-left: 18px; font-size: 12px; line-height: 1.8; color: var(--muted) }
.recall-guide li { padding-left: 4px; margin: 12px 0 }
@media (max-width: 1100px) {
  .chapter-collection, .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .learning-page .note-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 20px }
  .recall-layout { grid-template-columns: minmax(0, 1fr) }
  .recall-guide { margin-top: 0 }
  .recall-guide ol { display: flex; flex-wrap: wrap; gap: 8px 30px }
}
@media (max-width: 900px) {
  .study-hero { grid-template-columns: 1fr .7fr; gap: 20px }
  .study-art { height: 250px }
  .learning-page .note-layout { display: flex; flex-direction: column }
  .learning-page .study-aside { position: static; width: 100%; order: -1; padding: 15px 18px; background: #edf0e5; border-radius: 12px }
  .study-aside nav { display: flex; flex-wrap: wrap; border: 0; padding: 0; gap: 5px 15px }
  .study-aside .aside-recall, .study-aside > .text-link { display: none }
  .chapter-topic { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 700px) {
  main.learning-page, body:has(main.learning-page) footer { margin-left: 0 }
  .learning-page .wrap { padding: 28px 20px 45px }
  .study-hero h1 { font-size: 43px }
  .study-hero { gap: 16px }
  .study-art { height: 230px }
  .art-sheet { width: 115px; height: 155px; left: calc(50% - 57px); font-size: 43px }
  .sheet-back { left: calc(50% - 68px) }
  .sheet-front i { font-size: 11px }
  .lesson-pagination { gap: 10px }
  .lesson-sibling { padding: 15px }
  .glossary-banner { flex-wrap: wrap }
  .glossary-banner > div { flex-basis: 70% }
}
@media (max-width: 480px) {
  .study-hero { grid-template-columns: 1fr; padding-top: 0 }
  .study-art { display: none }
  .study-hero h1 { font-size: 43px }
  .study-stats { gap: 12px }
  .collection-toolbar { align-items: start }
  .study-search, .deck-filters .study-search, .chapter-select { flex-basis: 100%; max-width: none }
  .chapter-collection, .deck-grid { grid-template-columns: minmax(0, 1fr) }
  .chapter-cover { min-height: 230px }
  .deck-cover { min-height: 200px }
  .deck-chapter-heading h2 { font-size: 23px }
  .deck-chapter-heading { gap: 8px; align-items: start }
  .deck-chapter-heading > span:last-child { display: none }
  .lesson-heading h1 { font-size: 33px }
  .learning-page .lesson-study-tabs { gap: 18px }
  .lesson-study-tabs .button { font-size: 12px }
  .learning-page .revision-notes { padding: 22px; font-size: 15px }
  .learning-page .revision-notes .remember { padding: 18px }
  .learning-page .flash { padding: 25px; min-height: 300px; font-size: 23px }
  .deck-controls { justify-content: center }
  .deck-controls button { flex: 1 1 auto; padding: 12px 10px }
  .deck-controls .primary { order: -1; flex-basis: 100% }
  .lesson-end { align-items: start; flex-direction: column; gap: 14px }
  .lesson-sibling span { font-size: 16px }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-cover, .deck-cover, .deck-progress span { transition: none }
}

/* Economics revision navigation and hub */
.top #revision-notes-index { display: block; margin: 0; }
.notes-index summary { cursor: pointer; overflow-wrap: anywhere; }
.notes-index > summary { font-size: 13px; font-weight: 750; color: #25463e; padding: 8px 0; }
.notes-chapter { border-top: 1px solid var(--line); }
.notes-chapter > summary { font-size: 12px; line-height: 1.4; font-weight: 650; padding: 9px 0; }
.notes-group { margin: 6px 0 12px; padding-left: 9px; border-left: 2px solid #d1dbcb; }
.notes-group p { margin: 0 0 2px; color: #495e52; font-size: 11px; font-weight: 750; }
.top .notes-group a { display: block; padding: 6px 4px; border: 0; font-size: 11px; line-height: 1.4; }
.top .notes-group a[aria-current] { color: #10483c; background: #dcebe0; border-radius: 4px; }
.revision-hero { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px; padding: clamp(24px, 5vw, 62px); border-radius: 24px; background: linear-gradient(115deg, #142f40, #214f51); color: #f9f8ee; }
.revision-hero .eyebrow { color: #b1e5cf; }
.revision-hero h1 { margin: 8px 0 12px; font: 400 clamp(36px, 6vw, 74px)/1 Georgia, serif; letter-spacing: -.045em; }
.revision-hero p:last-child { max-width: 45ch; margin: 0; color: #e2eee8; }
.revision-edition { border: 1px solid #7aa89d; border-radius: 24px; padding: 7px 12px; color: #e0f4ea; font-size: 12px; }
.revision-tool-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: 32px; }
.revision-tool-group { display: grid; grid-template-rows: auto 1fr 1fr; gap: 14px; --card-accent: #dcefe4; }
.revision-tool-group:nth-child(2) { --card-accent: #e4ebf5; }
.revision-tool-group:nth-child(3) { --card-accent: #f2e7d4; }
.revision-tool-group h2 { margin: 0; font: 400 24px/1.2 Georgia, serif; }
.revision-tool-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; min-height: 182px; padding: 19px; border: 1px solid #d9dfd3; border-radius: 16px; background: #fffdf7; text-decoration: none; }
.revision-tool-card:hover { border-color: #658a78; box-shadow: 0 8px 22px #25453612; }
.revision-tool-card h3, .revision-tool-card p { margin: 0; }
.revision-tool-card h3 { font: 400 22px/1.18 Georgia, serif; }
.revision-tool-card p { color: var(--muted); font-size: 13px; }
.revision-tool-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--card-accent); color: #173e3e; font-size: 21px; }
.revision-tool-arrow { justify-self: end; color: #1c6755; font-size: 19px; }
@media (max-width: 900px) {
  .revision-tool-groups { grid-template-columns: 1fr; }
  .revision-tool-group { grid-template: auto 1fr / repeat(2, minmax(0, 1fr)); }
  .revision-tool-group h2 { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .top #revision-notes-index { width: 100%; }
  .notes-index { max-height: 48vh; overflow: auto; }
}
@media (max-width: 440px) {
  .revision-tool-group { grid-template: auto / 1fr; }
  .revision-tool-card { min-height: auto; }
}
