/* One-day special — STEM Nonfiction (/special/stem). Page-only stylesheet, linked only
   by specials/stem and stubbed out of application.css. Ported from the delivered design:
   its CSS carried rules from another landing template, so only the rules that matched
   this page's DOM were kept, then every selector was scoped under .stem-page (:root and
   body became .stem-page). Mobile card fixes and the discount dialog are at the end. */
html:has(.stem-page) { scroll-behavior: smooth; }

/* Baseline: the site's global CSS sets a 13px root font, weight-400 headings, zero
   paragraph margins and no list markers, while the design was built on browser
   defaults. Restore those defaults inside .stem-page (lowest specificity here, so every
   design rule below still wins). rem values in the design were converted to px (x16)
   because the site root is 13px. */
.stem-page { font-size: 16px; }
.stem-page :is(h1, h2, h3, h4) { font-weight: 700; line-height: inherit; }
.stem-page :is(b, strong) { font-weight: 700; }
.stem-page p { margin: 1em 0; }
.stem-page :is(ul, ol) { margin: 1em 0; padding-left: 40px; }
.stem-page ul { list-style: disc; }
.stem-page ol { list-style: decimal; }
.stem-page li { list-style: inherit; }
.stem-page { --blue: #0755ce; --deep: #062765; --ink: #14223a; --muted: #60708a; --pale: #edf5ff; --line: #dce5f1; --white: #fff; --mint: #b8f1db; --orange: #ffcd8b; }
.stem-page * { box-sizing: border-box; }
.stem-page { margin: 0px; color: var(--ink); font-family: "DM Sans", "Noto Sans KR", sans-serif; line-height: 1.65; background: rgb(255, 255, 255); }
.stem-page a { text-decoration: none; color: inherit; }
.stem-page img { max-width: 100%; }
.stem-page .wrap { width: min(1160px, 100% - 40px); margin: auto; }
.stem-page .eyebrow { font-size: 12px; letter-spacing: 0.17em; font-weight: 800; color: var(--blue); text-transform: uppercase; }
.stem-page .section { padding: 100px 0px; }
.stem-page .section-head { max-width: 710px; margin-bottom: 38px; }
.stem-page .section-head h2 { font-size: clamp(30px, 4vw, 49px); line-height: 1.25; letter-spacing: -0.045em; margin: 13px 0px 15px; word-break: keep-all; }
.stem-page .section-head p { font-size: 17px; color: var(--muted); margin: 0px; word-break: keep-all; }
.stem-page .stem-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 12px 23px; border-radius: 12px; font-weight: 800; transition: 0.2s; border: 1px solid transparent; cursor: pointer; text-align: center; }
.stem-page .stem-btn:hover { transform: translateY(-2px); box-shadow: rgba(12, 62, 150, 0.125) 0px 12px 25px; }
.stem-page .stem-btn-primary { background: var(--blue); color: rgb(255, 255, 255); }
.stem-page .stem-btn-outline { border-color: rgb(202, 216, 237); color: var(--deep); background: rgb(255, 255, 255); }
.stem-page .announcement { background: rgb(7, 58, 153); color: rgb(255, 255, 255); text-align: center; padding: 9px 18px; font-size: 13px; font-weight: 700; }
.stem-page .announcement b { color: rgb(201, 247, 229); }
.stem-page .nav { position: sticky; top: 0px; z-index: 20; background: rgba(255, 255, 255, 0.933); backdrop-filter: blur(14px); border-bottom: 1px solid rgb(233, 238, 246); }
.stem-page .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 76px; }
.stem-page .logo { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-weight: 900; color: var(--deep); font-size: 24px; letter-spacing: -0.08em; }
.stem-page .logo i { color: rgb(231, 164, 39); font-style: normal; }
.stem-page .logo small { font-size: 11px; letter-spacing: 0.1em; color: rgb(81, 100, 129); font-weight: 800; }
.stem-page .nav-links { display: flex; gap: 22px; font-size: 13px; font-weight: 700; color: rgb(65, 81, 107); }
.stem-page .nav-actions { display: flex; gap: 8px; }
.stem-page .nav-actions .stem-btn { min-height: 39px; padding: 8px 14px; font-size: 12px; border-radius: 9px; }
.stem-page .hero { background: radial-gradient(circle at 70% 5%, rgb(212, 232, 255) 0px, transparent 40%), linear-gradient(145deg, rgb(247, 251, 255) 8%, rgb(237, 245, 255) 70%, rgb(225, 240, 255)); overflow: hidden; }
.stem-page .hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 58px; align-items: center; min-height: 630px; padding: 66px 0px 77px; }
.stem-page .hero h1 { font-size: clamp(43px, 5.3vw, 73px); line-height: 1.17; letter-spacing: -0.065em; margin: 17px 0px 23px; word-break: keep-all; }
.stem-page .hero p { font-size: 18px; color: rgb(83, 101, 126); max-width: 560px; margin: 0px 0px 29px; word-break: keep-all; }
.stem-page .hero .actions { display: flex; gap: 11px; flex-wrap: wrap; }
.stem-page .hero-note { font-size: 12px !important; margin-top: 17px !important; color: rgb(100, 118, 142) !important; }
.stem-page .visual { height: 465px; position: relative; display: grid; place-items: center; }
.stem-page .visual::before { content: ""; position: absolute; width: 410px; height: 410px; border-radius: 50%; background: rgb(198, 224, 255); right: -15px; top: 4px; }
.stem-page .soft { background: rgb(247, 250, 255); }
.stem-page .steps { display: grid; gap: 12px; }
.stem-page .step { display: flex; gap: 16px; background: rgb(255, 255, 255); border: 1px solid var(--line); border-radius: 15px; padding: 19px; }
.stem-page .step b { width: 31px; height: 31px; border-radius: 9px; background: var(--blue); color: rgb(255, 255, 255); display: grid; place-items: center; flex: 0 0 auto; font-size: 13px; }
.stem-page .step strong { display: block; }
.stem-page .step p { color: var(--muted); font-size: 13px; margin: 3px 0px 0px; }
.stem-page .dark { background: rgb(9, 43, 105); color: rgb(255, 255, 255); }
.stem-page .dark .eyebrow { color: rgb(149, 212, 255); }
.stem-page .dark .section-head p { color: rgb(185, 204, 235); }
.stem-page .faq { max-width: 820px; }
.stem-page .faq details { border-bottom: 1px solid var(--line); padding: 18px 0px; }
.stem-page .faq summary { font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.stem-page .faq summary::after { content: "+"; font-size: 24px; color: var(--blue); font-weight: 400; line-height: 1; }
.stem-page .faq p { color: var(--muted); font-size: 14px; margin: 12px 30px 3px 0px; }
@media (max-width: 1000px) {
.stem-page .nav-links { display: none; }
.stem-page .hero-grid { gap: 25px; }
}
@media (max-width: 700px) {
.stem-page .wrap { width: min(100% - 34px, 510px); }
.stem-page .section { padding: 70px 0px; }
.stem-page .announcement { font-size: 11px; }
.stem-page .nav-inner { min-height: 65px; }
.stem-page .logo { font-size: 21px; }
.stem-page .logo small { font-size: 9px; }
.stem-page .hero-grid, .stem-page .split, .stem-page .outcome { grid-template-columns: 1fr; }
.stem-page .hero-grid { padding: 50px 0px 55px; gap: 24px; }
.stem-page .hero h1 { font-size: clamp(39px, 9vw, 56px); }
.stem-page .hero p { font-size: 15px; }
.stem-page .visual { height: 332px; }
.stem-page .visual::before { width: 290px; height: 290px; right: 5px; }
.stem-page .section-head h2 { font-size: 34px; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}
.stem-page .stem-hero { background: radial-gradient(circle at 83% 8%, rgba(41, 152, 216, 0.18), transparent 34%), linear-gradient(145deg, rgb(251, 253, 255) 5%, rgb(238, 248, 253) 62%, rgb(248, 245, 236) 100%); }
.stem-page .stem-hero .hero-grid { grid-template-columns: 0.92fr 1.08fr; min-height: 650px; }
.stem-page .stem-hero .visual { height: auto; }
.stem-page .stem-pill { display: inline-flex; align-items: center; gap: 8px; background: rgb(255, 255, 255); border: 1px solid rgb(217, 234, 244); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 800; color: var(--deep); margin: 0px 7px 8px 0px; }
.stem-page .stem-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.stem-page .stem-pill-row .stem-pill { margin: 0; }
.stem-page .book-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.stem-page .book-meta span { font-size: 11px; font-weight: 800; color: rgb(80, 101, 125); background: rgb(242, 248, 252); border-radius: 999px; padding: 6px 9px; }
.stem-page .theme-panel { background: linear-gradient(135deg, rgb(12, 49, 87), rgb(22, 77, 123)); color: white; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 38px; align-items: center; }
.stem-page .theme-panel .eyebrow { color: rgb(158, 220, 255); }
.stem-page .theme-panel h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.05em; margin: 12px 0px 16px; }
.stem-page .theme-panel p { color: rgb(213, 231, 244); font-size: 16px; }
.stem-page .question-stack { display: grid; gap: 12px; }
.stem-page .question { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; padding: 18px 20px; font-weight: 800; }
.stem-page .skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stem-page .skill-card { background: rgb(255, 255, 255); border: 1px solid var(--line); border-radius: 18px; padding: 25px; }
.stem-page .skill-card h4 { font-size: 18px; line-height: 1.35; margin: 0px 0px 8px; color: var(--deep); }
.stem-page .skill-card p { font-size: 15px; color: var(--muted); margin: 0px; }
.stem-page .skill-grid-title { color: rgb(255, 255, 255); font-size: 20px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; }
.stem-page .skill-closing { margin: 26px 0 0; color: rgb(232, 223, 240); font-size: 16px; font-weight: 600; line-height: 1.6; }
/* KR breaks at word boundaries ("파악하기" stays whole); no effect on EN. */
.stem-page .skill-card h4, .stem-page .skill-card p, .stem-page .skill-grid-title, .stem-page .skill-closing { word-break: keep-all; overflow-wrap: break-word; }
.stem-page .class-box { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stem-page .class-info { background: rgb(255, 255, 255); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.stem-page .class-info h3 { margin: 0px 0px 18px; font-size: 22px; color: var(--deep); }
.stem-page .fact-list { display: grid; gap: 10px; }
.stem-page .fact-list div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0px; border-bottom: 1px solid var(--line); }
.stem-page .fact-list div:last-child { border-bottom: 0px; }
.stem-page .fact-list span { color: var(--muted); font-size: 13px; }
.stem-page .fact-list strong { color: var(--deep); font-size: 14px; text-align: right; }
@media (max-width: 900px) {
.stem-page .stem-hero .hero-grid { grid-template-columns: 1fr; min-height: auto; }
.stem-page .book-grid, .stem-page .skill-grid { grid-template-columns: 1fr 1fr; }
.stem-page .theme-panel, .stem-page .class-box { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
.stem-page .book-grid, .stem-page .skill-grid { grid-template-columns: 1fr; }
.stem-page .theme-panel { padding: 28px 22px; }
}
.stem-page .book-list-web { display: grid; gap: 18px; }
.stem-page .book-row-card { display: grid; grid-template-columns: 130px minmax(0px, 1fr); gap: 24px; align-items: start; background: rgb(255, 255, 255); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: rgba(12, 49, 87, 0.05) 0px 10px 30px; }
.stem-page .book-cover-link img { display: block; width: 100%; max-width: 112px; height: auto; border-radius: 7px; border: 1px solid rgb(215, 223, 230); box-shadow: rgba(12, 49, 87, 0.12) 0px 8px 18px; }
.stem-page .book-copy .grade-tag { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 9px; }
.stem-page .g12 .grade-tag, .stem-page .g12 .book-topic-link { color: rgb(46, 123, 168); }
.stem-page .g34 .grade-tag, .stem-page .g34 .book-topic-link { color: rgb(92, 138, 79); }
.stem-page .g56 .grade-tag, .stem-page .g56 .book-topic-link { color: rgb(232, 150, 30); }
.stem-page .book-topic-link { display: block; font-size: 18px; font-weight: 900; line-height: 1.35; margin-bottom: 6px; text-decoration: underline; text-underline-offset: 3px; }
.stem-page .book-copy h3 { font-size: 16px; font-style: italic; font-weight: 500; color: rgb(123, 133, 142); line-height: 1.45; margin: 0px 0px 5px; }
.stem-page .book-copy .book-by { font-size: 14px; color: rgb(79, 94, 109); margin: 0px 0px 10px; }
.stem-page .book-copy > p:last-of-type { font-size: 15px; color: var(--ink); line-height: 1.75; margin: 0px 0px 13px; }
.stem-page .book-copy strong { color: rgb(166, 36, 58); }
@media (max-width: 620px) {
.stem-page .book-row-card { grid-template-columns: 86px minmax(0px, 1fr); gap: 15px; padding: 18px; }
.stem-page .book-cover-link img { max-width: 80px; }
.stem-page .book-topic-link { font-size: 16px; }
.stem-page .book-copy h3 { font-size: 13px; }
.stem-page .book-copy .book-by { font-size: 13px; }
.stem-page .book-copy > p:last-of-type { font-size: 14px; line-height: 1.65; }
}
.stem-page .stem-hero .hero-grid { grid-template-columns: 0.94fr 1.06fr; align-items: center; }
.stem-page .stem-hero .visual { display: flex; align-items: center; justify-content: center; min-height: 560px; }
@media (max-width: 980px) {
.stem-page .stem-hero .hero-grid { grid-template-columns: 1fr; }
.stem-page .stem-hero .visual { min-height: auto; margin-top: 22px; }
}
.stem-page .stem-hero .hero-grid { grid-template-columns: 0.88fr 1.12fr; gap: 38px; align-items: center; }
.stem-page .hero-inserted-image-wrap { width: 100%; max-width: 700px; margin: 0px auto; }
.stem-page .hero-inserted-image { width: 100%; height: auto; display: block; border-radius: 28px; box-shadow: rgba(12, 49, 87, 0.12) 0px 26px 60px; border: 1px solid rgba(12, 49, 87, 0.06); }
.stem-page .stem-hero h1 { line-height: 1.03; }
.stem-page .stem-hero p { font-size: 18px; line-height: 1.75; max-width: 620px; }
@media (max-width: 980px) {
.stem-page .stem-hero .hero-grid { grid-template-columns: 1fr; gap: 24px; }
.stem-page .hero-inserted-image-wrap { max-width: 640px; }
}
@media (max-width: 620px) {
.stem-page .stem-hero .wrap { padding-top: 24px; }
.stem-page .stem-hero h1 { font-size: clamp(34px, 10vw, 52px); line-height: 1.04; }
.stem-page .stem-hero p { font-size: 15px; line-height: 1.7; }
.stem-page .hero-inserted-image { border-radius: 18px; }
}
.stem-page #concept .theme-panel h2 { white-space: normal; font-size: clamp(32px, 4vw, 50px); }
.stem-page #books .section-head h2 { font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
@media (max-width: 620px) {
.stem-page #concept .theme-panel h2 { font-size: 32px; }
.stem-page #books .section-head h2 { font-size: 38px; }
}
.stem-page .promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 0px auto; }
.stem-page .promo-card { background: rgb(255, 255, 255); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: rgba(12, 49, 87, 0.06) 0px 12px 34px; }
.stem-page .promo-card-accent { background: linear-gradient(145deg, rgb(255, 250, 241), rgb(255, 255, 255)); border-color: rgb(240, 213, 169); }
.stem-page .promo-kicker { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.stem-page .promo-card h3 { margin: 0px 0px 12px; font-size: 42px; line-height: 1; color: var(--deep); }
.stem-page .promo-card p { color: var(--muted); line-height: 1.75; font-size: 15px; }
.stem-page .promo-card ol { padding-left: 20px; color: rgb(73, 97, 121); line-height: 1.9; font-size: 14px; }
.stem-page .promo-note { margin-top: 18px; display: inline-block; border-radius: 10px; background: var(--deep); color: rgb(255, 255, 255); padding: 9px 12px; font-size: 12px; font-weight: 800; }
.stem-page .promo-steps-simple { display: grid; gap: 10px; margin-top: 18px; }
.stem-page .promo-steps-simple div { display: flex; align-items: center; gap: 10px; }
.stem-page .promo-steps-simple b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pale); color: var(--deep); font-size: 12px; }
.stem-page .promo-steps-simple span { color: rgb(73, 97, 121); font-size: 14px; }
@media (max-width: 760px) {
.stem-page .promo-grid { grid-template-columns: 1fr; }
.stem-page .promo-card { padding: 24px; }
.stem-page .promo-card h3 { font-size: 36px; }
}
@media (max-width: 760px) {
.stem-page { font-size: 17px; line-height: 1.7; }
.stem-page .wrap { padding-left: 20px !important; padding-right: 20px !important; }
.stem-page .section { padding-top: 58px !important; padding-bottom: 58px !important; }
.stem-page .eyebrow, .stem-page .promo-kicker, .stem-page .grade-tag, .stem-page .book-copy .grade-tag { font-size: 13px !important; letter-spacing: 0.09em !important; line-height: 1.35 !important; }
.stem-page .section-head h2, .stem-page #books .section-head h2, .stem-page #concept .section-head h2, .stem-page #skills .section-head h2, .stem-page #teacher .section-head h2, .stem-page #promo .section-head h2 { font-size: 36px !important; line-height: 1.08 !important; letter-spacing: -0.04em !important; margin-bottom: 16px !important; }
.stem-page .section-head p, .stem-page #concept p, .stem-page #skills p, .stem-page #promo p, .stem-page .theme-panel p { font-size: 17px !important; line-height: 1.75 !important; }
.stem-page .stem-hero { padding-top: 22px !important; padding-bottom: 46px !important; }
.stem-page .stem-hero h1 { font-size: 42px !important; line-height: 1.02 !important; letter-spacing: -0.045em !important; margin-bottom: 18px !important; }
.stem-page .stem-hero p { font-size: 17px !important; line-height: 1.7 !important; }
.stem-page .stem-pill { font-size: 13px !important; padding: 9px 12px !important; }
/* Six pills in two rows of three; EN labels ("12 Reading Skills") wrap to two lines inside the pill. */
.stem-page .stem-pill-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stem-page .stem-pill-row .stem-pill { display: flex; justify-content: center; text-align: center; white-space: normal; word-break: keep-all; overflow-wrap: break-word; line-height: 1.25; min-height: 40px; padding: 8px 6px !important; font-size: 12px !important; }
.stem-page .hero-note { font-size: 14px !important; }
.stem-page .stem-hero .stem-btn { min-height: 52px !important; font-size: 16px !important; padding: 14px 18px !important; }
.stem-page #concept .theme-panel { padding: 28px 22px !important; border-radius: 22px !important; }
.stem-page #concept .theme-panel h2 { font-size: 36px !important; line-height: 1.05 !important; }
.stem-page .question { font-size: 16px !important; line-height: 1.45 !important; padding: 16px 17px !important; }
.stem-page .skill-card { padding: 24px 20px !important; }
.stem-page .skill-card h4 { font-size: 22px !important; line-height: 1.25 !important; margin-bottom: 10px !important; }
.stem-page .skill-card p { font-size: 16px !important; line-height: 1.7 !important; }
.stem-page .class-info { padding: 24px 20px !important; }
.stem-page .class-info h3 { font-size: 24px !important; }
.stem-page .step strong { font-size: 17px !important; }
.stem-page .step p { font-size: 15px !important; line-height: 1.65 !important; }
.stem-page .fact-list span, .stem-page .fact-list strong { font-size: 15px !important; }
.stem-page .book-row-card { grid-template-columns: 108px minmax(0px, 1fr) !important; gap: 16px !important; padding: 20px 16px !important; }
.stem-page .book-cover-link img { max-width: 108px !important; width: 108px !important; }
.stem-page .book-topic-link { font-size: 19px !important; line-height: 1.3 !important; }
.stem-page .book-copy h3 { font-size: 15px !important; line-height: 1.5 !important; }
.stem-page .book-copy .book-by { font-size: 14px !important; line-height: 1.55 !important; }
.stem-page .book-copy > p:last-of-type { font-size: 16px !important; line-height: 1.7 !important; }
.stem-page .book-meta span { font-size: 12px !important; padding: 7px 9px !important; }
.stem-page .promo-card { padding: 26px 22px !important; }
.stem-page .promo-card h3 { font-size: 44px !important; line-height: 1 !important; }
.stem-page .promo-card p, .stem-page .promo-card ol, .stem-page .promo-steps-simple span { font-size: 16px !important; line-height: 1.75 !important; }
.stem-page .promo-note { font-size: 13px !important; line-height: 1.45 !important; padding: 11px 13px !important; }
.stem-page .faq details summary { font-size: 17px !important; line-height: 1.45 !important; }
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px !important; line-height: 1.75 !important; }
}
.stem-page { --blue: #D8A62A; --deep: #16213A; --ink: #20252E; --muted: #6E716F; --pale: #F7F2E7; --line: #E7E0D3; --white: #FFFFFF; --mint: #DCEBDD; --orange: #E8892E; --ivory: #FBF8F1; --gold: #D8A62A; --green: #5F8B5B; --red: #C9473F; }
.stem-page { background: var(--ivory) !important; color: var(--ink) !important; }
.stem-page .nav { background: rgba(251, 248, 241, 0.94) !important; border-bottom-color: var(--line) !important; }
.stem-page .soft { background: rgb(245, 240, 230) !important; }
.stem-page .section { background: transparent; }
.stem-page .card, .stem-page .course, .stem-page .class-info, .stem-page .skill-card, .stem-page .book-row-card, .stem-page .promo-card { border-color: var(--line) !important; box-shadow: rgba(58, 48, 31, 0.06) 0px 8px 28px !important; }
.stem-page .announcement { background: rgb(22, 33, 58) !important; color: rgb(255, 248, 232) !important; }
.stem-page .announcement b { color: rgb(242, 196, 90) !important; }
.stem-page .stem-btn-primary { background: rgb(216, 166, 42) !important; color: rgb(22, 33, 58) !important; border-color: rgb(216, 166, 42) !important; }
.stem-page .stem-btn-primary:hover { box-shadow: rgba(216, 166, 42, 0.22) 0px 12px 25px !important; }
.stem-page .stem-btn-outline { background: rgb(255, 253, 248) !important; color: rgb(22, 33, 58) !important; border-color: rgb(217, 208, 193) !important; }
.stem-page .stem-hero { background: radial-gradient(circle at 83% 10%, rgba(216, 166, 42, 0.16), transparent 34%), radial-gradient(circle at 10% 84%, rgba(95, 139, 91, 0.1), transparent 28%), linear-gradient(145deg, rgb(255, 253, 248) 6%, rgb(247, 242, 231) 64%, rgb(242, 232, 215) 100%) !important; }
.stem-page .stem-pill { background: rgb(255, 253, 248) !important; border-color: rgb(221, 212, 197) !important; color: rgb(59, 58, 53) !important; }
.stem-page .eyebrow { color: rgb(181, 126, 19) !important; }
.stem-page .dark .eyebrow { color: rgb(241, 202, 110) !important; }
.stem-page .theme-panel { background: linear-gradient(135deg, rgb(43, 47, 53), rgb(74, 67, 55)) !important; color: rgb(255, 255, 255) !important; }
.stem-page .theme-panel .eyebrow { color: rgb(242, 196, 90) !important; }
.stem-page .question { background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.14) !important; }
.stem-page .dark { background: rgb(39, 42, 47) !important; color: rgb(255, 255, 255) !important; }
.stem-page .dark .section-head p { color: rgb(216, 210, 200) !important; }
.stem-page .skill-card { background: rgb(255, 252, 247) !important; }
.stem-page .skill-card h4 { color: rgb(34, 42, 55) !important; }
.stem-page .step b { background: rgb(216, 166, 42) !important; color: rgb(23, 32, 51) !important; }
.stem-page .book-meta span { background: rgb(244, 239, 228) !important; color: rgb(94, 91, 84) !important; }
.stem-page .g12 .grade-tag, .stem-page .g12 .book-topic-link { color: rgb(95, 139, 91) !important; }
.stem-page .g34 .grade-tag, .stem-page .g34 .book-topic-link { color: rgb(208, 135, 46) !important; }
.stem-page .g56 .grade-tag, .stem-page .g56 .book-topic-link { color: rgb(154, 90, 60) !important; }
.stem-page .promo-card { background: rgb(255, 253, 249) !important; }
.stem-page .promo-card-accent { background: linear-gradient(145deg, rgb(255, 245, 217), rgb(255, 253, 249)) !important; border-color: rgb(227, 197, 123) !important; }
.stem-page .promo-note { background: rgb(22, 33, 58) !important; color: rgb(255, 255, 255) !important; }
.stem-page { --purple: #2E1748; --purple-2: #3A2257; --purple-3: #5A3D73; --lavender: #F4F0F8; --lavender-2: #FAF8FC; --accent-red: #F04B48; --accent-orange: #F57C45; --deep: #2E1748; --ink: #302A37; --muted: #746D79; --pale: #F4F0F8; --line: #E7E0EB; --ivory: #FCFAFD; --orange: #F57C45; --green: #6A8B71; }
.stem-page { background: rgb(255, 255, 255) !important; color: var(--ink) !important; }
.stem-page .nav { background: rgba(255, 255, 255, 0.97) !important; border-bottom: 1px solid rgb(238, 232, 242) !important; }
.stem-page .announcement { background: var(--purple) !important; color: rgb(255, 255, 255) !important; }
.stem-page .announcement b { color: rgb(255, 255, 255) !important; }
.stem-page .soft { background: rgb(248, 245, 250) !important; }
.stem-page .stem-hero h1, .stem-page .section-head h2, .stem-page #books .section-head h2, .stem-page #concept .section-head h2, .stem-page .class-info h3, .stem-page .book-copy h3, .stem-page .skill-card h4, .stem-page .promo-card h3 { color: var(--purple) !important; }
.stem-page .eyebrow { color: rgb(108, 75, 130) !important; }
.stem-page .stem-hero { background: radial-gradient(circle at 84% 12%, rgba(90, 61, 115, 0.13), transparent 34%), linear-gradient(145deg, rgb(255, 255, 255) 0%, rgb(250, 248, 252) 62%, rgb(243, 238, 247) 100%) !important; }
.stem-page .stem-pill { background: rgb(255, 255, 255) !important; border-color: rgb(232, 224, 238) !important; color: var(--purple) !important; }
.stem-page .stem-btn-primary { background: linear-gradient(135deg,var(--accent-red),var(--accent-orange)) !important; color: rgb(255, 255, 255) !important; border-width: medium !important; border-style: none !important; border-color: currentcolor !important; border-image: none !important; box-shadow: rgba(240, 75, 72, 0.2) 0px 8px 22px !important; }
.stem-page .stem-btn-primary:hover { box-shadow: rgba(240, 75, 72, 0.28) 0px 12px 28px !important; }
.stem-page .stem-btn-outline { background: rgb(255, 255, 255) !important; color: var(--purple) !important; border: 1px solid rgb(220, 210, 227) !important; }
.stem-page .dark, .stem-page .theme-panel { background: var(--purple) !important; color: rgb(255, 255, 255) !important; }
.stem-page .dark .section-head h2, .stem-page .theme-panel h2 { color: rgb(255, 255, 255) !important; }
.stem-page .dark .section-head p, .stem-page .theme-panel p { color: rgb(232, 223, 240) !important; }
.stem-page .dark .eyebrow, .stem-page .theme-panel .eyebrow { color: rgb(214, 195, 229) !important; }
.stem-page .question { background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.16) !important; }
.stem-page .skill-card, .stem-page .class-info, .stem-page .book-row-card, .stem-page .promo-card { background: rgb(255, 255, 255) !important; border-color: rgb(230, 223, 234) !important; box-shadow: rgba(46, 23, 72, 0.06) 0px 8px 28px !important; }
.stem-page .step b { background: rgb(239, 232, 245) !important; color: var(--purple) !important; }
.stem-page .book-meta span { background: rgb(244, 240, 248) !important; color: rgb(93, 82, 102) !important; }
.stem-page .g12 .grade-tag, .stem-page .g12 .book-topic-link { color: rgb(95, 127, 103) !important; }
.stem-page .g34 .grade-tag, .stem-page .g34 .book-topic-link { color: rgb(198, 126, 53) !important; }
.stem-page .g56 .grade-tag, .stem-page .g56 .book-topic-link { color: rgb(154, 91, 76) !important; }
.stem-page .promo-card-accent { background: linear-gradient(145deg, rgb(255, 247, 242), rgb(255, 255, 255)) !important; border-color: rgb(241, 212, 196) !important; }
.stem-page .promo-note { background: var(--purple) !important; color: rgb(255, 255, 255) !important; }
.stem-page, .stem-page :not(input):not(textarea):not(select) { user-select: none; }
.stem-page img, .stem-page a img { -webkit-user-drag: none; pointer-events: auto; }
.stem-page .stem-hero .visual::before, .stem-page .stem-hero .visual::after, .stem-page .stem-hero .hero-inserted-image-wrap::before, .stem-page .stem-hero .hero-inserted-image-wrap::after, .stem-page .stem-hero .hero-book-stage::before, .stem-page .stem-hero .hero-book-stage::after { content: none !important; display: none !important; }
.stem-page .stem-hero .visual { background: none !important; overflow: visible !important; }
.stem-page .hero-inserted-image-wrap { position: relative; z-index: 2; background: transparent !important; }
.stem-page .hero-inserted-image { position: relative; z-index: 3; }
.stem-page .stem-hero h1 { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) {
.stem-page .stem-hero h1 { gap: 6px; }
}
.stem-page .stem-hero h1, .stem-page .stem-hero h1 span { visibility: visible !important; opacity: 1 !important; transform: none !important; }
@media (max-width: 420px) {
.stem-page .stem-hero h1 span:first-child { font-size: 28px !important; }
.stem-page .stem-hero h1 span:last-child { font-size: 23px !important; }
}
.stem-page .eyebrow, .stem-page .promo-kicker, .stem-page .grade-tag, .stem-page .book-copy .grade-tag { font-size: 15px !important; font-weight: 900 !important; letter-spacing: 0.08em !important; line-height: 1.35 !important; }
.stem-page .eyebrow { display: inline-block !important; margin-bottom: 12px !important; text-transform: uppercase !important; }
.stem-page .theme-panel .eyebrow { font-size: 16px !important; margin-bottom: 14px !important; }
@media (max-width: 760px) {
.stem-page .eyebrow, .stem-page .promo-kicker, .stem-page .grade-tag, .stem-page .book-copy .grade-tag { font-size: 14px !important; letter-spacing: 0.06em !important; }
.stem-page .theme-panel .eyebrow { font-size: 15px !important; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}
@media (max-width: 700px) {
.stem-page .section { padding: 62px 0px; }
.stem-page .section-head h2 { font-size: clamp(29px, 7.7vw, 34px); line-height: 1.34; letter-spacing: -0.04em; }
.stem-page .section-head p { font-size: 15px; line-height: 1.75; }
.stem-page .hero h1 { font-size: clamp(36px, 9vw, 49px); line-height: 1.23; }
.stem-page .hero-note { font-size: 13px !important; line-height: 1.55; }
.stem-page .faq summary { line-height: 1.5; }
.stem-page .faq p { line-height: 1.7; }
}
@media (max-width: 420px) {
.stem-page .hero h1 br, .stem-page .section-head h2 br { display: none; }
.stem-page .wrap { width: calc(100% - 32px); }
.stem-page .hero-grid { padding-top: 42px; }
.stem-page .hero h1 { font-size: clamp(35px, 9.3vw, 39px); line-height: 1.25; }
.stem-page .section-head h2 { font-size: 29px; line-height: 1.35; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}
@media (max-width: 700px) {
.stem-page .hero .hero-grid > div:first-child { grid-row: 2; }
.stem-page .hero-grid { gap: 28px; }
}
@media (max-width: 700px) {
.stem-page .hero h1 { font-size: clamp(30px, 8vw, 43px); }
.stem-page .section-head h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.35; }
.stem-page .hero p, .stem-page .section-head p { font-size: 16px; line-height: 1.8; word-break: normal; text-wrap: pretty; }
}
@media (max-width: 700px) {
.stem-page .example-grid, .stem-page .report-cards { grid-template-columns: 1fr; }
}
.stem-page .faq details p { line-height: 1.8; }
@media (max-width: 700px) {
.stem-page .faq details p, .stem-page .faq details ul { font-size: 16px; word-break: normal; text-wrap: pretty; }
}
.stem-page .section-head h2 { font-family: Pretendard, "Noto Sans KR", sans-serif; font-size: clamp(29px, 2.65vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.stem-page .section-head { max-width: 850px; }
.stem-page .section-head h2 { margin: 13px 0px 19px; }
@media (max-width: 700px) {
.stem-page .section-head h2 { font-size: clamp(24px, 6.2vw, 29px); line-height: 1.55; letter-spacing: -0.035em; }
}

/* Print deterrent (delivered design), scoped like the ESL landing. */
@media print {
  .stem-page > * { display: none !important; }
  .stem-page::after { content: attr(data-print-notice); display: block; padding: 40px; color: #14223a; font: 18px sans-serif; }
}

/* Discount dialog — the delivered template's consultation-dialog styles. */
.stem-page .faq details[open] summary:after { content:'−' }
.stem-page #stem-discount-dialog { width:min(560px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:20px;padding:26px;color:var(--ink);box-shadow:0 25px 80px #06276540 }
.stem-page #stem-discount-dialog::backdrop { background:#06276580 }
.stem-page #stem-discount-dialog h2 { font-size:24px;margin:0 0 12px }
.stem-page #stem-discount-dialog label { display:block;margin:13px 0;font-size:15px;font-weight:700 }
.stem-page #stem-discount-dialog input, .stem-page #stem-discount-dialog textarea { width:100%;font:inherit;font-size:16px;border:1px solid #cbd8e9;border-radius:10px;padding:12px;color:var(--ink);margin-top:6px;user-select:text }
.stem-page #stem-discount-dialog .dialog-actions { display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:18px }
.stem-page #stem-discount-dialog .dialog-note { font-size:13px;color:var(--muted) }

/* Promo CTA + copyright footnote (port additions). */
.stem-page .stem-promo-cta { text-align: center; margin: 28px 0 0; }
.stem-page .stem-footnote { max-width: 1160px; margin: 0 auto; padding: 18px 20px 28px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Mobile cards (design §5): the delivered layout kept "image left + text right" at
   375px, squeezing the text column to ~130px. Books: a compact header (small cover
   beside grade/topic/title/author) with the description and tags full width below.
   (The teacher cards moved to shared/teacher_cards 2026-10-08.) !important because the
   delivered mobile rules above already use it. */
@media (max-width: 640px) {
  .stem-page .book-row-card { grid-template-columns: 84px minmax(0, 1fr) !important; column-gap: 14px !important; row-gap: 4px !important; padding: 16px 14px !important; align-items: start; }
  .stem-page .book-row-card .book-copy { display: contents; }
  .stem-page .book-row-card .book-cover-link { grid-column: 1; grid-row: 1 / span 4; width: 84px; }
  .stem-page .book-row-card .book-cover-link img { width: 100% !important; height: auto !important; }
  .stem-page .book-row-card .book-copy > * { grid-column: 2; margin-top: 0; margin-bottom: 0; }
  .stem-page .book-row-card .book-copy > p:not(.book-by), .stem-page .book-row-card .book-copy > .book-meta { grid-column: 1 / -1; margin-top: 10px; }
  .stem-page .book-row-card .book-copy > p:not(.book-by) { font-size: 15px; line-height: 1.6; }
  .stem-page .book-list-web { margin-left: -6px; margin-right: -6px; }
}


/* Discount dialog fixes: center it (the site CSS resets dialog margins) and style the
   two selects like the text inputs; 44px touch targets. */
.stem-page #stem-discount-dialog { margin: auto; inset: 0; }
.stem-page #stem-discount-dialog select { display: block; width: 100%; min-height: 46px; font: inherit; font-size: 16px; border: 1px solid #cbd8e9; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: #fff; margin-top: 6px; }
.stem-page #stem-discount-dialog .stem-btn { min-height: 44px; }
/* Phones: the form is taller than the screen, so keep the action buttons pinned to the
   bottom of the scrolling dialog and tighten the spacing. */
@media (max-width: 640px) {
  .stem-page #stem-discount-dialog { padding: 20px 18px 0; max-height: 90dvh; }
  .stem-page #stem-discount-dialog h2 { font-size: 21px; margin-bottom: 8px; }
  .stem-page #stem-discount-dialog label { margin: 9px 0; font-size: 14px; }
  .stem-page #stem-discount-dialog input, .stem-page #stem-discount-dialog textarea { padding: 10px 12px; margin-top: 4px; }
  .stem-page #stem-discount-dialog select { min-height: 44px; padding: 9px 12px; margin-top: 4px; }
  .stem-page #stem-discount-dialog .dialog-actions { position: sticky; bottom: 0; z-index: 1; background: #fff; margin: 12px -18px 0; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
  .stem-page #stem-discount-dialog .dialog-actions .stem-btn { flex: 1 1 auto; justify-content: center; }
  .stem-page #stem-discount-dialog .stem-dialog-success { padding-bottom: 4px; }
}

/* Discount dialog: server send states. */
.stem-page .stem-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stem-page .stem-dialog-error { flex: 1 1 100%; margin: 0 0 4px; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #b42318; font-size: 14px; font-weight: 600; }
.stem-page .stem-dialog-success h2 { font-size: 22px; margin: 0 0 10px; }
.stem-page #stem-discount-dialog .stem-btn[disabled] { opacity: .7; cursor: progress; }

/* Accessibility pass (2026-10-07 review). Last in the file so it wins over the
   delivered palette layers above.
   - CTA gradient darkened so white text reaches 4.5:1 (was 2.7–3.6:1; owner OK'd).
   - Teacher credentials / grade tags darkened to ≥4.5:1 on white.
   - Visible keyboard focus: the site's global button:focus { outline: 0 } hid it.
   - Header CTA (the sign-up link): one line, 44px. Motion respects the OS. */
.stem-page { --accent-red: #C8352F; --accent-orange: #BF5420; }
.stem-page .g12 .grade-tag, .stem-page .g12 .book-topic-link { color: #4E6B55 !important; }
.stem-page .g34 .grade-tag, .stem-page .g34 .book-topic-link { color: #9A5A1E !important; }
.stem-page :is(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--purple) !important; outline-offset: 3px; }
.stem-page :is(.dark, .theme-panel) :is(a, button, summary):focus-visible { outline-color: #fff !important; }
.stem-page .nav-actions .stem-btn { min-height: 44px; white-space: nowrap; }
.stem-page #stem-discount-dialog::backdrop { background: rgba(46, 23, 72, 0.55); }
.stem-page .stem-dialog-error, .stem-page #stem-discount-dialog .dialog-note { -webkit-user-select: text; user-select: text; }
.stem-page .stem-promo-cta { text-align: left; margin: 18px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .stem-page .stem-btn, .stem-page .stem-btn:hover { transition: none; transform: none; }
}

/* Header on phones: the one-line sign-up CTA (KR keeps its full label) needs the room the
   logo tagline takes, so drop the tagline up to 420px. */
@media (max-width: 420px) {
  .stem-page .nav .logo small { display: none; }
}

/* Revision 2 (2026-10-08): the hero image links home; the footnote carries Terms/Privacy;
   the site footer is hidden, so the page itself must clear the fixed mobile bottom nav
   (h-16 + safe area, shown below 768px). */
.stem-page a.hero-inserted-image-wrap { display: block; border-radius: 28px; }
.stem-page a.hero-inserted-image-wrap:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.stem-page .stem-footnote-links { display: block; margin-top: 4px; }
.stem-page .stem-footnote-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767.98px) {
  .stem-page { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* Review fixes (2026-10-08): the #skills group heading must outrank its h4 cards on phones (the
   site-wide h3 rule forces 18px under 768px); the hero link's focus ring follows the image radius;
   the first footnote link sits flush left; KR hero copy breaks at word boundaries on phones. */
@media (max-width: 760px) {
  .stem-page .skill-grid-title { font-size: 22px !important; line-height: 1.3 !important; }
  .stem-page .stem-hero p, .stem-page .hero-note { word-break: keep-all; overflow-wrap: break-word; }
}
@media (max-width: 620px) {
  .stem-page a.hero-inserted-image-wrap { border-radius: 18px; }
}
.stem-page .stem-footnote-links a:first-child { margin-left: -4px; }

/* Revision 3: the announcement breaks after "STEM NONFICTION" on phones so "1-DAY CLASS · …" stays
   on one line; the header sign-up button shows its short label there (full label from 761px up). */
.stem-page .announcement-break { display: none; }
.stem-page .nav-actions .cta-short { display: none; }
@media (max-width: 760px) {
  .stem-page .announcement-break { display: inline; }
  .stem-page .nav-actions .cta-full { display: none; }
  .stem-page .nav-actions .cta-short { display: inline; }
}
