.education {
  --midnight: #102b37;
  --tide: #1a625d;
  --gold: #ffdb91;
  padding-bottom: clamp(36px, 6vw, 88px);
}
.education [hidden] { display: none !important; }
.edu-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d0d6d2; }
.edu-top > span, .edu-topic, .edu-next > span { font: 700 .77rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.edu-top > span { color: var(--tide); }
.edu-top a { display: inline-flex; align-items: center; gap: .35em; min-height: 48px; }
.edu-language { font-size: .88rem; font-weight: 600; }
.edu-intro { margin: clamp(26px, 4vw, 58px) 0 clamp(24px, 3vw, 42px); }
.education .edu-intro h1 { font-size: clamp(48px, 7vw, 96px); line-height: 1.02; }
.edu-intro p, .edu-story-head > p { max-width: 63ch; font-size: clamp(1.04rem, 1.6vw, 1.34rem); line-height: 1.52; margin: 12px 0 0; }
.edu-cards { display: grid; gap: 22px; }
.education a.edu-card { position: relative; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.2fr); align-items: stretch; isolation: isolate; overflow: hidden; border-radius: 4px; text-decoration: none; }
.edu-card-sun { color: #fff5db !important; background: var(--midnight); }
.edu-card-wind { background: #e9efe6; color: #153e3b !important; }
.edu-card-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(25px, 3.1vw, 48px); }
.edu-card .edu-topic { color: var(--tide); }
.edu-card-sun .edu-topic { color: var(--gold); }
.education .edu-card h2 { color: inherit; font-size: clamp(31px, 3.65vw, 53px); line-height: 1.05; margin: 12px 0; }
.edu-card p { margin: 2px 0 19px; font-size: clamp(1rem, 1.16vw, 1.1rem); line-height: 1.5; }
.edu-action { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; border-bottom: 1px solid currentColor; min-height: 38px; }
.edu-action b { font-size: 1.25em; }
.edu-card:hover .edu-action { gap: 20px; }
.edu-card > .edu-map, .edu-card > .edu-globe { width: 100%; align-self: center; }
.edu-card-wind { grid-template-columns: minmax(0,1.2fr) minmax(0,.85fr) !important; }
.edu-card-wind .edu-card-copy { grid-column: 2; grid-row: 1; }
.edu-card-wind .edu-map { grid-column: 1; grid-row: 1; }
.edu-globe, .edu-map { aspect-ratio: 720 / 380; position: relative; overflow: hidden; }
.edu-globe { background-color: #102b37; background-image: radial-gradient(ellipse at 63% 47%, #21444c 0%,#132f3b 45%,#102b37 76%); }
.edu-globe::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 25%,#e4edda 96%,transparent),radial-gradient(1px 1px at 87% 67%,#c1d7d8 90%,transparent),radial-gradient(.8px .8px at 57% 89%,#abcac5 95%,transparent); background-size: 121px 103px, 93px 149px, 83px 67px; opacity: .46; }
.edu-orbit { position: absolute; height: 97%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px dashed #82a7a64f; border-radius: 50%; }
.edu-orbit::before, .edu-orbit::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid #a7c0ac25; inset: -8%; }
.edu-orbit::after { inset: -18%; }
.edu-earth { position: absolute; height: 85.79%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; box-shadow: 0 0 2px 1px #b5c8b982, 5px 0 30px #819d8c2b, -8px 7px 30px #061c284f; }
.edu-earth img, .edu-earth canvas, .edu-map > img, .edu-overlay { display: block; width: 100%; height: 100%; }
.edu-earth img, .edu-earth canvas, .edu-overlay { position: absolute; inset: 0; }
.edu-overlay { pointer-events: none; }
.edu-stamp, .edu-map-stamp { position: absolute; top: 5%; left: 3%; display: inline-flex; align-items: center; gap: .37em; font: 700 clamp(.66rem,1.1vw,.86rem)/1.2 var(--sans); }
.edu-stamp { color: #ffdf9b; letter-spacing: .08em; }
.edu-stamp i { width: 8px; height: 8px; border-radius: 50%; background: #f8c76f; }
.edu-map-stamp { z-index: 1; left: 2%; top: 3%; padding: .4em .7em; color: #15534f; background: #fbfaf0ec; border: 1px solid #456e6155; }
.edu-globe-labels path { fill: none; stroke: #ffe2a1; stroke-width: 1.4; }
.edu-globe-labels circle { fill: #ffda88; stroke: #1c3138; stroke-width: 2; }
.edu-overlay text { font: 700 15px var(--sans); paint-order: stroke; stroke-linejoin: round; }
.edu-globe-labels text { fill: #fff6da; stroke: #18333b; stroke-width: 5px; }
.edu-map-labels text { fill: #103a3e; stroke: #e3e8cc; stroke-width: 4px; }
.edu-map-labels .sea-name { font: italic 18px var(--serif); text-anchor: middle; fill: #366c71; stroke: #c5e1d7; }
.edu-map-labels .edu-land-names text { font: italic 16px var(--serif); text-anchor: middle; fill: #564d39; stroke: #eadbb6; stroke-width: 3px; }
.edu-wind-flow { display: none; fill: none; stroke: #12646a; stroke-width: 4.5; stroke-linecap: round; }
.edu-map[data-season="0"] .flow-0, .edu-map[data-season="1"] .flow-1, .edu-map[data-season="2"] .flow-2 { display: inline; }
.map-leader { fill: none; stroke: #244840; stroke-width: 1.5; }
.map-cities circle { fill: #19423c; stroke: #fff1be; stroke-width: 2; }
.edu-story-head, .edu-prose { width: min(100%, 770px); margin-inline: auto; }
.edu-story-head { margin-block: clamp(32px,4.5vw,66px) clamp(28px,3.75vw,54px); }
.edu-story-head .edu-topic { color: var(--tide); }
.education .edu-story-head h1 { margin: 10px 0 14px; font-size: clamp(39px,5.5vw,76px); line-height: 1.04; }
.edu-figure { width: min(100%, 890px); margin: 0 auto; }
.edu-fig-head { margin-bottom: 14px; }
.education .edu-fig-head h2, .education .edu-prose h2 { font-size: clamp(27px,3vw,39px); }
.edu-fig-head p, .edu-notes p { margin: 6px 0 0; }
.edu-lab { border: 1px solid #b5c4c0; border-radius: 4px; overflow: hidden; background: #f4f5ed; }
.edu-sun-controls, .edu-readings, .edu-notes { padding: 14px clamp(16px,3vw,30px); }
.edu-sun-controls label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.edu-sun-controls output, .edu-angle, .edu-range-ends, .edu-stamp { font-variant-numeric: tabular-nums; }
.edu-sun-controls output { font-size: 1.2rem; }
.edu-sun-controls input { display: block; margin: 0; width: 100%; height: 44px; accent-color: var(--tide); cursor: pointer; }
.edu-range-ends { display: flex; justify-content: space-between; font: 600 .75rem var(--sans); color: #4d615f; }
.edu-readings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; border-top: 1px solid #bdc8be; background: #fcfaf2; }
.edu-readings > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; }
.edu-readings > div + div { border-left: 1px solid #cfd9cf; padding-left: 16px; }
.edu-angle { font-weight: 700; color: var(--tide); }
.edu-sky { grid-column: 1 / -1; font-size: .91rem; }
.edu-figure figcaption { color: #4c605f; margin: 9px 0 0; font: 400 .9rem/1.5 var(--sans); }
.edu-seasons { display: flex; gap: 6px; padding: 8px; flex-wrap: wrap; }
.edu-seasons button { padding: 8px 15px; min-height: 44px; border: 1px solid #9baea8; background: #fffefa; color: #1b4944; border-radius: 3px; cursor: pointer; font: 700 .9rem var(--sans); }
.edu-seasons button[aria-pressed="true"] { background: #1c5652; color: #fff; }
.education .edu-season-note h3 { font: 700 1.05rem/1.35 var(--sans); letter-spacing: 0; }
.edu-season-note + .edu-season-note { margin-top: 16px; }
.edu-seasons:not([hidden]) ~ .edu-notes .edu-season-note { margin-block: 0; }
.edu-prose { margin-block: 40px; }
.edu-prose > p { font: 400 clamp(18px,1.6vw,21px)/1.62 Georgia,serif; }
.edu-sources { border-block: 1px solid #bdc9c1; margin: 28px 0 18px; }
.edu-sources summary { cursor: pointer; padding: 14px 0; min-height: 48px; font-weight: 700; }
.edu-sources p { margin: 0 0 8px; }
.edu-sources ul { list-style: none; margin: 0 0 14px; padding: 0; }
.edu-sources a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.edu-next { width: min(100%,890px); margin: 25px auto 0; border-top: 2px solid var(--tide); padding: 14px 0 0; }
.edu-next > span { display: block; color: var(--tide); }
.edu-next a { display: inline-block; min-height: 44px; padding-block: 8px; font: 400 clamp(23px,2.5vw,34px)/1.2 var(--serif); }
@media (max-width: 740px) {
  .education a.edu-card { display: flex; flex-direction: column; }
  .edu-card > .edu-globe, .edu-card > .edu-map { order: -1; }
  .edu-card-copy { padding: 22px; }
  .edu-card h2 { max-width: 22ch; }
  .edu-overlay text { font-size: 23px; }
  .edu-map-labels .edu-land-names text { font-size: 19px; }
  .edu-map-labels .sea-name { font-size: 20px; }
  .edu-readings > div { display: flex; flex-direction: column; }
  .edu-seasons button { flex: 1 1 auto; padding-inline: 10px; }
}

/* The lead guide spans the index. The other questions form a browsable shelf. */
.edu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.education .edu-cards .edu-card { display: flex; flex-direction: column; justify-content: flex-start; border: 1px solid #c7d1c7; }
.education .edu-cards .edu-card > :last-child { order: -1; width: 100%; }
.education .edu-cards .edu-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: .86fr 1.14fr; background: #eae8dd; }
.education .edu-cards .edu-card:first-child > :last-child { order: 0; align-self: center; }
.edu-cards .edu-card:not(:first-child) .edu-card-copy { padding: clamp(20px, 2.3vw, 32px); flex: 1; justify-content: flex-start; }
.education .edu-cards .edu-card:not(:first-child) h2 { font-size: clamp(28px, 3.2vw, 42px); }
.edu-cards .edu-card .edu-action { margin-top: auto; }
.edu-card-roti { background: #e7eee1; color: #254d41 !important; }
.edu-card-power { background: #e7eeeb; }
.edu-card-bus { background: #f7edda; color: #533c32 !important; }
.edu-card-roof { background: #eceddf; }
.guide-stage { position: relative; width: 100%; overflow: hidden; }
.guide-art { width: 100%; height: auto; display: block; }
.guide-art .g-type { font: 700 20px var(--sans); }
.guide-art .g-number { font: 400 32px var(--serif); font-variant-numeric: tabular-nums; }
.guide-art .g-ticks { font: 600 18px var(--sans); }
.batik-art { color: #f8e9c8; }
.batik-art:not([data-stage="reveal"]) { color: #c58a41; }
.batik-art[data-stage="wax"] .bt-cloth { fill: url(#bt-cream); }
.batik-art:not([data-stage="reveal"]) .bt-lines { color: #c58a41; }
.batik-art .bt-canting { display: none; }
.batik-art[data-stage="wax"][data-waxed="true"] .bt-canting { display: inline; }
.batik-art[data-waxed="false"] .bt-lines { visibility: hidden; }
.guide-controls { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 15px clamp(14px, 3vw, 30px) 8px; align-items: center; }
.guide-slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; flex: 1 1 225px; font: 700 1rem/1.4 var(--sans); }
.guide-slider output { color: #18574f; font-variant-numeric: tabular-nums; }
.guide-slider input { grid-column: 1 / -1; width: 100%; min-width: 0; margin: 0; height: 44px; accent-color: var(--tide); cursor: pointer; }
.guide-steps { display: flex; gap: 5px; flex-wrap: wrap; }
.guide-steps button { font: 700 .94rem/1.25 var(--sans); cursor: pointer; min-height: 44px; padding: 8px 12px; border: 1px solid #8ca49b; background: #fffdf6; color: #204d47; border-radius: 3px; }
.guide-steps button[aria-pressed="true"] { background: #215954; color: #fff; }
.guide-check { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.guide-check input { accent-color: var(--tide); width: 18px; height: 18px; }
.guide-result { margin: 0; padding: 14px clamp(14px, 3vw, 30px); border-top: 1px solid #c3cec4; background: #fbf7eb; color: #233f38; font-weight: 600; }
.guide-lab canvas { position: absolute; left: 48%; top: 16%; width: 51%; height: 60%; pointer-events: none; }
@media (max-width: 740px) {
  .edu-cards { grid-template-columns: 1fr; }
  .education .edu-cards .edu-card:first-child { display: flex; }
  .education .edu-cards .edu-card:first-child > :last-child { order: -1; }
  .guide-art .g-type { font-size: 23px; }
  .guide-art .g-ticks { font-size: 21px; }
}
