:root {
  color-scheme: light;
  --paper:#f5ecdb; --cream:#fffaf0; --deep:#162a3f; --ink:#15283c;
  --muted:#526474; --line:#d8cbb2; --amber:#ffbe46; --orange:#995408;
  font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  color:var(--ink); background:var(--paper); line-height:1.65;
}
* {box-sizing:border-box}
body {margin:0}
html {scroll-behavior:smooth;scroll-padding-top:18px}
a {color:inherit;text-underline-offset:4px}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible {outline:3px solid #cb6213;outline-offset:3px}
button {font:inherit;cursor:pointer}
img {display:block;width:100%;height:auto}
figure,p {margin:0}
h1,h2,h3 {line-height:1.15;margin:0;letter-spacing:-.045em}
.sr-only,.skip:not(:focus) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus {display:inline-block;padding:12px}
.mast {max-width:1200px;width:calc(100% - 52px);margin:auto;height:70px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand {text-decoration:none;font-weight:900;font-size:1.14rem}
.brand span {color:var(--cream);background:var(--ink);display:inline-grid;place-items:center;width:33px;height:33px;margin-right:5px;border-radius:50%}
.source-jump {font-size:.91rem;font-weight:750;color:var(--muted);padding-block:10px}
main,.notes {max-width:1200px;width:calc(100% - 52px);margin:auto}
.hero {padding:39px 0 26px;display:grid;grid-template-columns:.9fr 1.1fr;min-height:510px;gap:26px;align-items:center}
.eyebrow {font-weight:800;color:var(--orange);font-size:.94rem;margin-bottom:18px}
h1 {font-size:clamp(3.25rem,6.45vw,6.25rem);font-weight:950;line-height:.98}
h1 em {font-style:normal;color:var(--orange)}
.intro {max-width:30rem;color:var(--muted);margin:24px 0 23px;font-size:clamp(1rem,1.9vw,1.22rem)}
.primary {display:inline-flex;align-items:center;gap:18px;min-height:49px;padding:10px 18px;background:var(--ink);color:var(--cream);border-radius:7px;text-decoration:none;font-weight:820}
.primary span {color:var(--amber);font-size:1.2rem}
.flight {position:relative;overflow:hidden;border:1px solid #b3c1c5;border-radius:140px 10px 10px 10px;background:#a6c3d9}
.flight img {height:clamp(320px,45vw,515px);object-fit:cover;object-position:100% center}
.flight figcaption {position:absolute;bottom:14px;right:14px;background:var(--cream);padding:4px 12px;font-weight:750;font-size:.8rem;border-radius:4px}
.route {display:grid;grid-template-columns:repeat(4,1fr);margin:18px 0 26px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--cream)}
.route a {display:flex;align-items:center;justify-content:center;gap:11px;padding:15px 6px;border-right:1px solid var(--line);text-decoration:none;font-weight:850}
.route a:last-child {border:0}
.route a:hover,.route a:focus-visible {background:#fae4b8}
.route span {font-size:.85em;color:var(--orange);font-variant-numeric:tabular-nums}
.station {padding:clamp(28px,6.5vw,66px) 0}
.sep {border-block:1px solid var(--line)}
.station-heading {display:grid;grid-template-columns:auto 1fr;align-items:start;gap:16px;margin-bottom:24px}
.serial {display:grid;place-items:center;background:var(--amber);color:var(--ink);font-weight:900;width:47px;height:47px;border-radius:6px}
h2 {font-size:clamp(1.72rem,4.4vw,3.05rem);font-weight:900}
.station-heading p {margin-top:10px;color:var(--muted);max-width:48rem}
.sort-board,.fuel-pair {display:grid;grid-template-columns:.82fr 1.18fr;gap:20px;background:var(--cream);border:1px solid var(--line);padding:18px;border-radius:15px}
.oil-photo {position:relative;overflow:hidden;border-radius:8px;min-height:220px;background:#e1ceb0}
.oil-photo img {height:100%;object-fit:cover}
.oil-photo figcaption {position:absolute;bottom:9px;left:9px;background:#fffbef;border-radius:3px;padding:4px 8px;font-size:.76rem}
.sort-summary {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
#score {font-size:1.19rem;color:var(--orange)}
.text-button {background:transparent;color:var(--ink);border:0;text-decoration:underline;text-underline-offset:3px;font-weight:750;min-height:44px}
fieldset {min-width:0}
.sort-controls fieldset {border:1px solid var(--line);border-radius:8px;margin:0 0 9px;padding:8px 10px 11px}
.sort-controls fieldset:last-child {margin-bottom:0}
.sort-controls legend {font-weight:850;padding:0 5px}
.sort-controls fieldset button,.vehicle-switch button {
  color:var(--ink);background:#fffdf6;border:1px solid var(--line);border-radius:6px;padding:8px 12px;min-height:44px;font-weight:750;margin:2px 3px 2px 0
}
.sort-controls fieldset button[aria-pressed="true"],.vehicle-switch button[aria-pressed="true"] {background:var(--ink);color:white;border-color:var(--ink)}
.sort-controls fieldset[data-result="correct"] {border-color:#567746;background:#f2f6e7}
.sort-controls fieldset[data-result="retry"] {border-color:#b57245;background:#fff1dd}
.sort-answer {margin:6px 0 0;color:var(--ink);font-size:.9rem}
.sort-answer:empty {margin:0}
.process-lab {background:var(--deep);color:var(--cream);padding:clamp(14px,4vw,32px);border-radius:15px}
.stops {display:grid;grid-template-columns:repeat(4,1fr);gap:8px;position:relative}
.stop {display:flex;gap:8px;align-items:center;justify-content:center;min-height:52px;padding:8px 7px;color:var(--cream);background:#243e55;border:1px solid #648097;border-radius:7px;font-weight:770}
.stop b {color:var(--amber)}
.stop[aria-pressed="true"] {background:var(--amber);border-color:var(--amber);color:var(--ink)}
.stop[aria-pressed="true"] b {color:var(--ink)}
.stage-display {margin-top:16px;min-height:200px;padding:20px;border:1px solid #698094;border-radius:8px}
.stage-no {font-weight:850;color:var(--amber);font-size:.8rem;letter-spacing:.22em;margin-bottom:8px}
h3 {font-size:1.6rem}
.stage-display h3+p {margin-top:12px;max-width:46rem}
.stage-question {margin-top:14px;color:#ffda88;border-left:3px solid var(--amber);padding-left:10px}
details {background:var(--cream);padding:10px 16px 15px;border:1px solid var(--line);margin-top:15px;border-radius:9px}
summary {min-height:38px;padding-top:4px;cursor:pointer;font-weight:850}
details p {margin:8px 0;color:var(--muted)}
details .small {font-size:.86rem}
.fuel-pair {grid-template-columns:1.08fr .92fr;align-items:center}
.fuel-pair>img {border-radius:8px;aspect-ratio:1.4;object-fit:cover}
.fuel-control {padding:4px}
.vehicle-switch {display:flex;gap:4px;flex-wrap:wrap;margin-bottom:13px}
.fuel-control p {margin-top:12px;color:var(--muted)}
.fuel-control .keyline {background:#f9e6ba;color:var(--ink);padding:9px 11px;border-radius:6px;font-size:.91rem}
.carbon {border-top:1px solid var(--line)}
#carbon-ledger {border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
#carbon-ledger label {min-width:0;display:flex;align-items:flex-start;gap:8px;padding:13px;background:var(--cream);border:1px solid var(--line);border-radius:8px;cursor:pointer}
#carbon-ledger label:has(input:checked) {background:#ffedbd;border-color:#a76b26}
#carbon-ledger input {accent-color:#8c540e;width:19px;height:19px;flex:none;margin:5px 0 0}
#carbon-ledger b {display:block}
#carbon-ledger span {font-size:.92rem}
.meter {display:flex;align-items:center;gap:12px;margin:15px 0 8px}
progress {accent-color:var(--orange);width:min(420px,80%);height:14px}
output {font-weight:850;white-space:nowrap}
.carbon-result {min-height:3.2em;color:var(--ink)}
.notes {border-top:1px solid var(--line);padding:27px 0 43px;color:var(--muted);font-size:.9rem}
.notes h2 {font-size:1.1rem}
.notes ul {padding-left:20px}
.notes a {display:inline-block;padding-block:4px}
@media(max-width:660px){
  .mast,main,.notes {width:calc(100% - 32px)}
  .mast {height:56px}
  .hero {grid-template-columns:1fr;min-height:0;gap:24px;padding-top:33px}
  h1 {font-size:clamp(2.8rem,12.2vw,4.75rem)}
  .intro {margin:17px 0}
  .flight {border-radius:85px 9px 9px 9px}
  .flight img {height:auto;aspect-ratio:1.6;object-position:center}
  .route {grid-template-columns:repeat(2,1fr);margin:4px 0 22px}
  .route a {justify-content:flex-start;padding:12px 13px}
  .route a:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .route a:nth-child(2){border-right:0}
  .station-heading {gap:10px}
  .serial {width:35px;height:37px}
  .sort-board,.fuel-pair {grid-template-columns:1fr;padding:10px;gap:11px}
  .oil-photo {min-height:0}
  .oil-photo img {height:auto;aspect-ratio:1.8}
  .stops {grid-template-columns:repeat(2,1fr)}
  .stage-display {padding:14px}
  #carbon-ledger {grid-template-columns:repeat(2,1fr)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Airport activity booklet */
:root{
  --paper:#eaf5ff; --cream:#fffdf4; --deep:#164ba7; --ink:#142f58;
  --muted:#314d70; --line:#a4bde0; --amber:#ffd456; --orange:#a7471a;
}
body{
  background:radial-gradient(ellipse at 85% 0%,#fff3b6 0,transparent 26rem),
    radial-gradient(ellipse at 0 32rem,#c9e6ff 0,transparent 33rem),var(--paper);
}
.mast{height:66px;border-color:#9cbee6}
.brand{font-size:1.18rem}
.brand span{background:#1b57bd;color:#fff1ae}
.source-jump{color:#164aa8}
.hero{
  min-height:0;margin-top:24px;padding:clamp(14px,3vw,32px);
  grid-template-columns:.83fr 1.17fr;gap:18px;
  border:2px solid #3776ce;border-radius:28px;background:#fffae6;
  box-shadow:0 8px 0 #8abcec;overflow:hidden;isolation:isolate;
}
.hero-copy{padding:9px 7px}
.eyebrow{margin-bottom:12px;color:#25559d}
h1{font-size:clamp(3.15rem,6.2vw,6.22rem);letter-spacing:-.045em;line-height:1.04}
h1 em{color:#215ab8}
.intro{margin:15px 0 17px}
.primary{
  background:#235fc7;color:white;border:2px solid #134390;
  box-shadow:0 4px 0 #143e83;border-radius:14px;gap:14px
}
.primary:hover{background:#174aa6}
.primary span{color:#fff1b0}
.flight{border:2px solid #3d83d8;border-radius:18px;box-shadow:none}
.flight img{height:auto;aspect-ratio:1.48;object-fit:cover;object-position:50% 50%}
.flight figcaption{background:#fff7cf;color:#244675;border-radius:16px}
.pass{
  border:2px solid #79a8dc;background:#fffdf4;border-radius:20px;
  box-shadow:0 5px 0 #b2d3f4;margin-top:23px;overflow:hidden
}
.pass-title{
  display:flex;gap:8px;align-items:center;justify-content:space-between;
  padding:9px 15px;border-bottom:1px dashed #88addb;color:#214a88;
  background:#ecf6ff;font-weight:850;font-size:.94rem
}
#airport-progress{font-variant-numeric:tabular-nums;font-size:.84rem}
.route{margin:0;border:0;border-radius:0;background:transparent}
.route a{justify-content:flex-start;padding:11px 13px;gap:8px;min-height:54px}
.route a span{
  display:inline-grid;place-items:center;min-width:32px;height:31px;border-radius:10px;
  background:#ffe482;color:#673c17;font-weight:900;flex:none
}
.route a:hover{background:#edf7ff}
.route a[data-done="true"]{background:#dcefe0}
.route a[data-done="true"] span{background:#26764d;color:#fff}
.station{padding-block:clamp(29px,6vw,63px)}
.serial{background:#ffd45b;border:2px solid #d8972166;border-radius:13px;box-shadow:0 3px 0 #efae37}
h2{letter-spacing:-.03em}
.sort-board,.fuel-pair{border:2px solid #a5c3ee;border-radius:21px;box-shadow:0 5px 0 #c3ddfa}
.sort-controls fieldset{border-radius:12px;background:#f0f7ff;border-color:#b4cdeb}
.sort-controls fieldset legend{color:#1f477e}
.sort-controls fieldset button,.vehicle-switch button{border-radius:10px;border-color:#96b9ea}
.sort-controls fieldset button[aria-pressed="true"],.vehicle-switch button[aria-pressed="true"]{background:#225ab5;border-color:#225ab5}
#score{color:#2356a5}
.stage-display{background:#245aba;border-radius:14px}
.process-lab{border:2px solid #1c4691;border-radius:22px;box-shadow:0 6px 0 #a5c9ef}
.stop{border-radius:12px;background:#2e61af;border-color:#86a7d8}
.stage-question{color:#fff2a6}
details{border-radius:15px}
.fuel-control .keyline{background:#ffeb9c;border-radius:10px}
#carbon-ledger label{border-radius:15px;border:2px solid #a9c9ef}
#carbon-ledger label:has(input:checked){border-color:#3d75c5;background:#d8eaff}
#carbon-ledger input{accent-color:#235ab0}
progress{accent-color:#275cbb}
@media(max-width:660px){
  .mast{height:53px}
  .hero{grid-template-columns:1fr;margin-top:15px;padding:12px;gap:12px;border-radius:20px}
  h1{font-size:clamp(2.15rem,10.1vw,4.5rem)}
  .hero-copy{padding:5px 3px}
  .eyebrow{margin-bottom:7px;font-size:.83rem}
  .intro{margin:10px 0 13px}
  .flight{border-radius:14px}
  .flight img{aspect-ratio:1.65}
  .pass{margin-top:18px;border-radius:15px}
  .pass-title{padding:8px 10px}
  .route{margin:0}
  .route a{padding:7px 8px;min-height:45px}
  .route a span{min-width:27px;height:25px}
}

/* Extended course units */
.city-series{
  width:max-content;max-width:100%;margin:0 0 8px;padding:3px 8px;
  font-size:clamp(.75rem,2.4vw,.89rem);font-weight:850;line-height:1.35;
  border-radius:7px;background:#fff1af;color:#4c3a14;
}
.intro .intro-copy .city-series{color:#194c61;background:#d4f2f3;max-width:100%}
.order-header .city-series{margin:0 auto 8px;background:#ffe07d;color:#3e451b}
.lesson-map,.lesson-extra{
  margin-block:24px;
  border:2px solid #afc8db;border-radius:18px;
  background:#fbfdfd;color:inherit;
}
.lesson-map{padding:9px 15px}
.lesson-map summary{
  min-height:36px;display:list-item;padding:4px 0;
  font-size:1rem;font-weight:850;cursor:pointer;color:#1c5579
}
.lesson-map ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;list-style:none;padding:0;margin:9px 0 5px}
.lesson-map a{
  display:flex;align-items:center;gap:7px;padding:7px;min-height:44px;text-decoration:none;color:inherit;
  background:#edf4fc;border:1px solid #cfddea;border-radius:8px;font-size:.9rem;font-weight:760;
}
.lesson-map a:hover{background:#e1eef9}
.lesson-map a b{color:#235f8f;font-variant-numeric:tabular-nums}
.lesson-extra{padding:clamp(15px,3.5vw,32px)}
.lesson-extra h2{margin:8px 0 9px;font-size:clamp(1.45rem,4.8vw,2.45rem);line-height:1.15}
.lesson-marker{
  display:inline-block;padding:3px 9px;font-size:.81rem;font-weight:850;border-radius:8px;
  background:#ffebaa;color:#5b4020
}
.lesson-extra p{margin:10px 0}
.lesson-extra .extra-lead{max-width:58rem}
.lesson-extra .lesson-reference{font-size:.84rem;margin-top:16px}
.lesson-strip{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:11px;list-style:none;
  padding:0;margin:14px 0
}
.lesson-strip li{
  min-width:0;padding:12px 14px;border-radius:12px;
  background:#eaf4ff;border:1px solid #c4dbee;box-shadow:0 3px 0 #c0d7ed
}
.lesson-strip b{display:block;font-size:1.03rem;margin-bottom:3px}
.lesson-strip span{display:block;font-size:.93rem;line-height:1.5}
.extra-quiz{margin-top:14px;padding:15px;background:#fef5d9;border:1px solid #e6bc68;border-radius:13px}
.extra-quiz h3{font-size:1.1rem;margin:0 0 9px;line-height:1.38}
.extra-quiz>div{display:flex;flex-wrap:wrap;gap:8px}
.extra-quiz button{
  color:inherit;font:inherit;font-weight:800;min-height:43px;padding:8px 12px;cursor:pointer;
  border:2px solid #9bb9ce;border-radius:9px;background:#fffdf4;
  box-shadow:0 2px 0 #c0d5e3;text-align:left
}
.extra-quiz button[aria-pressed="true"]{background:#245d9c;color:white;border-color:#20517c}
.extra-quiz output{display:block;white-space:normal;overflow-wrap:anywhere;margin-top:12px;padding:7px 10px;background:#fffdf5;border-left:4px solid #c66d41;font-size:.94rem;font-weight:700}
.extra-quiz output[data-answer="true"]{background:#e6f3df;border-color:#478a59}
.extra-quiz output:empty{display:none}

@media(max-width:660px){
  .lesson-map ol{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lesson-map,.lesson-extra{margin-block:16px}
  .lesson-strip{grid-template-columns:1fr}
  .extra-quiz button{min-height:42px}
  .order-header .city-series{margin-left:0}
}
.lesson-extra,.lesson-map{background:#fffdf0;border-color:#99bde1;box-shadow:0 4px 0 #d1e7f7}