.stem-page { --pine:#244b46; --line:#c9c8b8; --cream:#fffbf3; }
.stem-page .stem-inner { grid-template-columns:1fr 1.02fr; gap:clamp(22px,4vw,56px); padding-block:28px; }
.stem-page .stem-photo { overflow:hidden; border-radius:12px; box-shadow:0 10px 26px #163b331a; }
.stem-page .stem-photo img { aspect-ratio:1.88; object-fit:cover; }
.stem-page .stem-hero-links { display:inline-grid; grid-template-columns:auto auto; align-items:stretch; gap:8px; max-width:100%; }
.stem-hero-links .button { display:grid; place-items:center; text-align:center; padding:10px 15px; line-height:1.3; }
.stem-page .stem-hero-links .curriculum-button { background:#f9faf0; border:1px solid #527770; color:var(--pine); }
.stem-page .stem-experiment { padding-block:clamp(28px,4vw,48px); }
.stem-experiment h2 { margin:5px 0 16px; line-height:1.2; }
.stem-experiment > p { margin-block:0 18px; }
.stem-page .stem-kit-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
.stem-kit-grid article { grid-column:span 2; display:flex; flex-direction:column; border-radius:10px; box-shadow:0 4px 12px #3e402509; }
.stem-kit-grid article:nth-last-child(-n+2) { grid-column:span 3; display:grid; grid-template-columns:35% 1fr; }
.stem-kit-grid article:nth-last-child(-n+2) img { height:100%; aspect-ratio:auto; }
.stem-kit-grid article div { display:flex; flex-direction:column; flex:1; }
.stem-kit-grid small { margin-top:auto; padding-top:12px; border-top:1px solid var(--line); }
.stem-kit-grid p { margin-bottom:12px; }
#weekly-builds { scroll-margin-top:80px; }
#weekly-builds > p { margin-bottom:26px; }
.stem-page .stem-series-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
.stem-series-grid article,.stem-series-grid article:nth-child(2) { border:0; border-top:2px solid #69958b; border-radius:0; background:none; padding:20px 18px 0 0; position:relative; }
.stem-series-grid article::before { content:""; width:10px; height:10px; border-radius:50%; position:absolute; top:-6px; left:0; background:var(--pine); box-shadow:0 0 0 3px #f6eddb; }
.assessment-band { background:#234742; color:#f8f4e8; }
.assessment-layout { display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(20px,5vw,60px); align-items:center; }
.stem-page .assessment-band :is(h2,h3) { color:#fffaf0; }
.stem-page .assessment-band .section-label { color:#f6c38d; }
.assessment-intro p { line-height:1.55; }
.assessment-agenda { background:#183a36; border-radius:12px; padding:18px 24px; }
.assessment-agenda h3 { margin:0 0 8px; font-size:19px; }
.assessment-agenda ol { padding:0; margin:0; list-style:none; }
.assessment-agenda li { display:flex; gap:18px; align-items:center; padding:8px 0; border-top:1px solid #91b1a84d; }
.assessment-agenda li span { color:#f6c38d; min-width:3.3em; font-variant-numeric:tabular-nums; }
.stem-resource-grid article { padding:18px; background:var(--cream); border:1px solid var(--line); border-radius:8px; }
.stem-resource-grid svg { color:#3a6e65; margin-bottom:7px; }
.stem-enrollment > div { display:grid; grid-template-rows:1fr auto; background:var(--cream); border-radius:10px; overflow:hidden; border:1px solid var(--line); }
.stem-fees { height:100%; font-variant-numeric:tabular-nums; }
.stem-fees tbody td { font-size:clamp(16px,1.5vw,20px); }
.stem-fee-note { display:grid; grid-template-columns:1fr 1.15fr; gap:16px; padding:16px; background:#f4eddd; }
.stem-fee-note p { margin:0; font-size:14px; line-height:1.45; }
.stem-fee-note strong { display:block; color:var(--pine); margin-bottom:3px; }
.stem-open-house { display:flex; flex-direction:column; gap:12px; }
.stem-open-house p { margin:0; }
.event-registration { margin-top:auto; padding-top:12px; border-top:1px solid #ffffff40; }
.stem-page .event-registration .button { margin-top:10px; }
@media(max-width:500px) { .stem-fee-note { grid-template-columns:1fr; gap:10px; } }
.stem-open-house .event-heading { display:flex; align-items:center; gap:14px; }
.event-date { display:grid; text-align:center; color:#254641; background:#fff2d9; border-radius:5px; overflow:hidden; font-size:11px; font-weight:700; min-width:46px; border-top:4px solid #d38950; }
.event-date b { font-size:22px; line-height:1.1; padding-bottom:4px; }
@media(max-width:850px) {
 .stem-page .stem-kit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .stem-kit-grid article,.stem-kit-grid article:nth-last-child(-n+2) { grid-column:auto; display:flex; }
 .stem-kit-grid article:nth-last-child(-n+2) img { height:auto; aspect-ratio:2.45; }
 .stem-page .stem-series-grid { grid-template-columns:1fr 1fr; gap:24px 0; }
}
@media(max-width:700px) {
 .stem-page .stem-inner,.assessment-layout,.stem-page .stem-kit-grid { grid-template-columns:1fr; }
 .stem-page .stem-inner { gap:18px; padding-block:20px; }
 .stem-kit-grid article img { max-height:180px; }
 .stem-hero-links .button { font-size:13px; padding:10px; }
}
@media(max-width:480px) {
 .stem-page .stem-series-grid { grid-template-columns:1fr; gap:0; }
 .stem-series-grid article,.stem-series-grid article:nth-child(2) { border-top:0; border-left:2px solid #69958b; padding:0 0 18px 18px; }
 .stem-series-grid article::before { top:4px; left:-6px; }
}

.stem-kit-grid article img { aspect-ratio:1.75; }
.stem-kit-grid article:nth-last-child(-n+2) { display:flex; }
.stem-kit-grid article:nth-last-child(-n+2) img { height:auto; aspect-ratio:2.15; }
.esp-course { background:#dfebe3; border-block:1px solid #c3d0c5; }
.esp-layout { display:grid; grid-template-columns:1fr 1.1fr; align-items:center; gap:clamp(20px,4vw,48px); }
.esp-layout > img { display:block; width:100%; border-radius:10px; }
.esp-layout p,.esp-layout li { font-size:15px; line-height:1.55; }
.esp-layout ol { margin:14px 0 0; padding-left:1.5em; }
.esp-layout li { padding:6px 0 6px 4px; }
.esp-layout li::marker { color:#335d54; font-weight:700; }
@media(max-width:700px) { .esp-layout { grid-template-columns:1fr; } .esp-layout > img { max-height:240px; object-fit:cover; } }
.stem-kit-grid article[id],#esp32-course { scroll-margin-top:84px; }

.stem-page .stem-photo { overflow:visible; box-shadow:none; }
.stem-photo img { border-radius:12px; }
.stem-photo figcaption { position:relative; margin:-24px 12px 0; }
.hero-event { display:flex; align-items:center; gap:12px; background:#fff9ed; color:#24463e; padding:11px 14px; border:1px solid #cabfa9; border-radius:9px; box-shadow:0 4px 12px #1b382014; text-decoration:none; }
.hero-event:hover,.hero-event:focus-visible { border-color:#6a8479; }
.hero-event-date { display:grid; place-items:center; flex:none; width:43px; border-radius:5px; border-top:3px solid #c78650; padding:4px 0; background:#eee4cd; color:#3a493c; font:bold 10px/1.2 system-ui,sans-serif; letter-spacing:.06em; }
.hero-event-date b { font-size:21px; }
.hero-event-info { display:grid; gap:1px; font-size:13px; line-height:1.4; }
.hero-event-info strong { font-size:17px; }
.hero-event-arrow { margin-left:auto; color:#47665c; }
@media(max-width:420px) { .hero-event { gap:8px; padding:10px; } .stem-photo figcaption { margin-inline:6px; } }
