/* Y9 Biology — styles (CIS.SFP identity: colegiosfpaula.com) */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/raleway-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/raleway-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/raleway-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/raleway-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f2f4f7; --paper: #fff; --ink: #1a2c4a; --muted: #5b6573; --line: #dde3ea; --soft: #eaf0f6;
  --brand: #0063a3; --navy: #1a2c4a; --sky: #4495ce; --band: #5694c9;
  --uc: #0063a3; --ok: #1e8e3e; --bad: #c5221f; --warn: #b26a00;
  --cA: #2f6fdb; --cB: #8e44ad; --cC: #d35400; --cD: #16a085;
  --r: 16px; --shadow: 0 1px 2px rgba(26,44,74,.05), 0 4px 18px rgba(26,44,74,.06);
  --font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-variant-ligatures: no-common-ligatures; font-variant-numeric: lining-nums; }
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { line-height: 1.25; margin: 1.2em 0 .5em; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-top: .2em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h5 { font-size: .95rem; margin: .8em 0 .3em; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: #3a4a60; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--uc); margin: 0 0 .3em; }
[hidden] { display: none !important; }

/* topbar */
.topbar { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 1rem; margin: 12px max(12px, calc((100% - 1240px) / 2)) 0; padding: .6rem 1.1rem; background: #fff; border-radius: 10px; box-shadow: 0 4px 22px rgba(26,44,74,.10); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 12px; background: var(--bg); z-index: 19; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: .8rem; border-left: 2px solid var(--line); }
.brand-text strong { color: var(--brand); font-weight: 800; }
.brand-text small { color: var(--muted); font-size: .75rem; font-weight: 500; }
.topnav { display: flex; gap: .15rem; flex: 1; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { text-decoration: none; color: #6f7680; padding: .5rem .8rem; border-radius: 999px; font-size: .95rem; font-weight: 600; }
.topnav a:hover { color: var(--brand); }
.topnav a.on { background: var(--brand); color: #fff; }
.top-actions { display: flex; align-items: center; gap: .5rem; margin-left: .4rem; }
.lang-toggle { display: flex; gap: .1rem; }
.lang-toggle button { border: 0; background: none; padding: .3rem .4rem; font-weight: 600; font-size: .82rem; color: #333; border-bottom: 2px solid transparent; }
.lang-toggle button.on { color: var(--brand); font-weight: 800; border-bottom-color: var(--brand); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .25rem .6rem; font-size: 1.2rem; }

main { min-height: 70vh; }
.page { max-width: 1240px; margin: 0 auto; padding: 1.8rem 1.2rem 3.5rem; }
.loading { padding: 4rem; text-align: center; color: var(--muted); }
.footer { margin-top: 2rem; background: var(--navy); color: #fff; font-size: .9rem; border-radius: 50% 50% 0 0 / 56px 56px 0 0; padding-top: 2.4rem; }
.hero .hero-band { grid-column: 1 / -1; margin: .6rem -2.2rem -2.4rem; background: var(--band); color: #fff; font-weight: 700; text-align: center; padding: .6rem 1rem; }
.f-main { max-width: 1240px; margin: 0 auto; padding: 1.8rem 1.2rem 2.2rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem 2.5rem; align-items: center; }
.f-logo img { height: 70px; width: auto; display: block; }
.f-course { display: grid; }
.f-course strong { font-size: 1.25rem; }
.f-course span { color: #b9c6d8; }
.f-links { display: grid; gap: .3rem; justify-items: end; text-align: right; }
.f-links a { color: #fff; font-weight: 600; text-decoration: none; }
.f-links a:hover { text-decoration: underline; }
.f-links span { color: #b9c6d8; font-size: .82rem; }

/* home */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: center; background: linear-gradient(120deg, var(--navy) 0%, #12467a 55%, var(--brand) 100%); color: #fff; border-radius: 28px; padding: 2.4rem 2.2rem; }
.hero > * { position: relative; }
.hero .hero-mark { position: absolute; width: 420px; right: -90px; bottom: -110px; opacity: .13; pointer-events: none; }
.hero h1 { color: #fff; }
.hero .lead { color: #d6e3f2; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.hero .eyebrow { color: #9fcaf0; }
.now { display: grid; gap: .8rem; }
.now-card { display: grid; gap: .2rem; padding: 1.1rem 1.2rem; border-radius: var(--r); background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.18); text-decoration: none; color: var(--ink); border-left: 6px solid var(--uc); transition: transform .15s; }
.now-card:hover { transform: translateY(-2px); }
.now-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--uc); }
.now-title { font-size: 1.25rem; font-weight: 700; }
.now-meta { font-size: .85rem; color: var(--muted); }
.section-title { margin-top: 2rem; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.unit-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.2rem 1rem; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-top: 6px solid var(--uc); transition: transform .15s, box-shadow .15s; }
.unit-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.09); }
.unit-card.planned { opacity: .88; }
.uc-emoji { font-size: 2rem; }
.uc-num { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--uc); }
.uc-title { font-size: 1.2rem; font-weight: 700; }
.uc-topics { font-size: .9rem; color: #3c4a43; }
.uc-foot { margin-top: auto; padding-top: .5rem; font-size: .8rem; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin-top: 2rem; }
.quick-card { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 600; }
.quick-card span { font-size: 1.4rem; }

/* crumbs, cards */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--muted); }
.crumbs .sep { opacity: .5; }
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 1rem 1.2rem; }
.card h3 { margin-top: .2rem; }
.notice { background: #fff8e6; border: 1px solid #f3dca4; padding: .8rem 1rem; border-radius: 10px; }
.btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--uc); background: #fff; color: var(--uc); padding: .5rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.btn.primary { background: var(--uc); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.small { padding: .35rem .85rem; font-size: .88rem; }
.btn:hover { filter: brightness(.95); }
.pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--soft); border: 0; }
.pill.term { background: var(--navy); color: #fff; }
.crit { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 6px; color: #fff; font-weight: 800; font-size: .85rem; margin-right: .4rem; padding: 0 .3rem; background: #666; }
.crit-A { background: var(--cA); } .crit-B { background: var(--cB); } .crit-C { background: var(--cC); } .crit-D { background: var(--cD); }

/* framing */
.framing { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1.2rem 0; }
.fr { background: #fff; border-radius: 12px; padding: .7rem 1rem; box-shadow: var(--shadow); border-top: 4px solid var(--uc); }
.fr.soi { grid-column: 1 / -1; background: color-mix(in srgb, var(--uc) 8%, #fff); }
.fr-l { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--uc); }
.fr-v { font-weight: 600; }
.fr.soi .fr-v { font-size: 1.1rem; font-style: italic; }
.inquiry { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: .8rem 1.2rem; margin-bottom: 1.2rem; }
.inquiry summary { font-weight: 700; cursor: pointer; }
.iq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.iq h4 { margin: .6rem 0 .2rem; color: var(--uc); }
.iq ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }

/* unit page */
.unit-head { display: flex; gap: 1rem; align-items: center; }
.uh-emoji { font-size: 3.2rem; }
.unit-head h1 { margin: 0; }
.unit-cols { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
.topic { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: .4rem 1.2rem 1rem; margin-bottom: 1rem; }
.tnum { display: inline-block; background: var(--uc); color: #fff; font-size: .8rem; padding: .1rem .55rem; border-radius: 6px; margin-right: .3rem; vertical-align: middle; }
.topic-soi { font-size: .92rem; background: var(--soft); padding: .5rem .8rem; border-radius: 8px; }
.lesson-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.lesson-list li { display: flex; gap: .4rem; align-items: stretch; }
.lesson-list a.ll-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 2rem 1fr auto; gap: .7rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.lesson-list a.ll-main:hover { border-color: var(--uc); background: color-mix(in srgb, var(--uc) 5%, #fff); }
.ll-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--soft); font-weight: 700; }
.lesson-list .ready .ll-n { background: var(--uc); color: #fff; }
.lesson-list .done .ll-n { background: var(--ok); }
.ll-t { font-weight: 600; }
.ll-t small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.ll-s { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.lesson-list .planned a.ll-main { opacity: .75; }
.side-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: .5rem 1.1rem 1.1rem; margin-bottom: 1rem; }
.side-link { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .95rem; }
.side-link:last-child { border: 0; }

/* lesson */
.lesson-head h1 { margin-bottom: .2rem; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.4rem; }
.lesson-cols { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 2rem; align-items: start; }
.lesson-body { min-width: 0; }
.lesson-toc { position: sticky; top: 110px; }
.toc-inner { display: grid; gap: .1rem; font-size: .87rem; border-left: 3px solid var(--uc); padding-left: .8rem; }
.toc-inner a { text-decoration: none; color: var(--muted); padding: .2rem 0; display: flex; justify-content: space-between; gap: .5rem; }
.toc-inner a small { white-space: nowrap; font-variant-numeric: tabular-nums; }
.toc-t { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--uc); margin-bottom: .2rem; }
.toc-inner a:hover { color: var(--ink); }
.toc-soi { margin-top: 1rem; font-size: .8rem; color: var(--muted); font-style: italic; }
.obj-kw { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.objectives ul { padding-left: 1.2rem; margin: 0; }
.kw-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.kw { background: var(--soft); border-radius: 10px; padding: .25rem .7rem; font-size: .9rem; }
.kw[open] { flex-basis: 100%; background: color-mix(in srgb, var(--uc) 8%, #fff); }
.kw summary { cursor: pointer; font-weight: 600; list-style: none; }
.kw summary::-webkit-details-marker { display: none; }
.kw p { margin: .3rem 0 .2rem; }
.block-h { padding-top: .6rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.prose p { margin: .6em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: .8rem 0; font-size: .95rem; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.fig { margin: 1.2rem 0; text-align: center; }
.fig img { max-height: 520px; border-radius: 10px; background: #fff; cursor: zoom-in; box-shadow: var(--shadow); }
.fig figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.video { margin: 1.2rem 0; }
.yt, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; overflow: hidden; background: #000; padding: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 54px; border-radius: 14px; background: #e62117; color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.yt:hover .yt-play { transform: scale(1.06); }
.video figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
.watch { color: var(--ink); }
.callout { border-radius: 12px; padding: .7rem 1.1rem; margin: 1.2rem 0; border-left: 5px solid; background: #fff; }
.callout h4 { margin: .3rem 0; }
.callout.key { border-color: var(--uc); background: color-mix(in srgb, var(--uc) 8%, #fff); }
.callout.tip { border-color: var(--cA); background: #eef4fe; }
.callout.global { border-color: #0f9d8a; background: #e8f7f4; }
.callout.think { border-color: var(--cB); background: #f5eefa; }
.callout.safety { border-color: var(--bad); background: #fdeeee; }
.phase { border-radius: 16px; padding: .3rem 1.2rem 1rem; margin: 1.8rem 0; }
.phase.starter { background: #fff7e0; }
.phase.exit { background: #e9f2ff; }
.phase h2 { margin-top: .8rem; }
.lesson-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.lesson-nav a { text-decoration: none; font-weight: 600; max-width: 48%; }

/* activities */
.activity { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; margin: 1rem 0; box-shadow: var(--shadow); }
.act-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; }
.act-kind { color: var(--muted); font-weight: 600; }
.act-marks { margin-left: auto; font-weight: 700; color: var(--muted); }
.act-prompt p { margin: .5rem 0; }
.act-foot { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.fb { font-weight: 700; }
.fb.ok { color: var(--ok); } .fb.bad { color: var(--bad); }
.explain { margin-top: .6rem; background: #eef8f0; border-left: 4px solid var(--ok); padding: .5rem .9rem; border-radius: 10px; font-size: .95rem; }
.fb.shown { color: var(--brand); }
.hintbox { margin-top: .6rem; background: #fff7e0; border-left: 4px solid #e0a100; padding: .5rem .9rem; border-radius: 10px; font-size: .95rem; }
.hintbox strong { color: #8a5a00; }
.hintbox p { margin: .2rem 0; }
.explain > :first-child { margin-top: 0; } .explain > :last-child { margin-bottom: 0; }
.explain { padding: .6rem .9rem; }
.tf-hint { grid-column: 1 / -1; font-size: .9rem; color: #6b4a00; background: #fff7e0; border-radius: 8px; padding: .25rem .6rem; }
.activity.done .check { display: none !important; }
.activity.done .opt, .activity.done .tf-btns button, .activity.done .o-btns button { cursor: default; }
.opt:disabled { opacity: .75; cursor: not-allowed; }
.opts { display: grid; gap: .45rem; }
.opt { display: flex; gap: .7rem; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .8rem; }
.opt:hover { border-color: var(--uc); }
.opt-l { display: grid; place-items: center; min-width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--soft); font-weight: 800; font-size: .85rem; }
.opt.sel { border-color: var(--uc); background: color-mix(in srgb, var(--uc) 8%, #fff); }
.opt.right { border-color: var(--ok); background: #e7f6ea; }
.opt.right .opt-l { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: #fdecec; }
.opt p { margin: 0; }
.activity.k-mcq:not(.multi) .check { display: none; }
.activity.k-mcq.multi .check { display: inline-flex; }
.tf { display: grid; gap: .5rem; }
.tf-row { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; align-items: center; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; }
.tf-btns { display: flex; gap: .3rem; }
.tf-btns button { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: .25rem .7rem; font-size: .88rem; font-weight: 600; }
.tf-btns button.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.tf-row.right { border-color: var(--ok); background: #eef8f0; }
.tf-row.wrong { border-color: var(--bad); background: #fdf0f0; }
.tf-exp { grid-column: 1 / -1; font-size: .9rem; color: #33413a; }
.match { display: grid; gap: .5rem; }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: center; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 10px; }
.m-row select { width: 100%; padding: .4rem; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-size: .92rem; background: #fff; }
.m-row.right { border-color: var(--ok); background: #eef8f0; } .m-row.wrong { border-color: var(--bad); background: #fdf0f0; }
.order { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; counter-reset: o; }
.order li { counter-increment: o; display: grid; grid-template-columns: auto 1.6rem 1fr auto; align-items: center; gap: .5rem; padding: .45rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: grab; }
.order li::before { content: counter(o); font-weight: 800; color: var(--uc); }
.order li.dragging { opacity: .4; }
.order li.right { border-color: var(--ok); background: #eef8f0; } .order li.wrong { border-color: var(--bad); background: #fdf0f0; }
.grip { color: #aab; }
.o-btns { display: flex; gap: .2rem; }
.o-btns button { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 2rem; height: 2rem; font-size: .75rem; }
.hint { font-size: .85rem; color: var(--muted); margin: .3rem 0; }
.pool { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2.6rem; padding: .5rem; border: 2px dashed var(--line); border-radius: 12px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; }
.chip.sel { border-color: var(--uc); background: var(--uc); color: #fff; }
.chip.right { border-color: var(--ok); background: #e7f6ea; } .chip.wrong { border-color: var(--bad); background: #fdecec; }
.bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin-top: .6rem; }
.bin { border: 1.5px solid var(--line); border-radius: 12px; padding: .4rem .6rem .7rem; min-height: 6rem; background: var(--soft); cursor: pointer; }
.bin h5 { margin: .2rem 0 .4rem; text-align: center; }
.bin h5 p { margin: 0; }
.bin-items { display: flex; flex-wrap: wrap; gap: .3rem; }
.cloze { line-height: 2.3; }
.blank { font: inherit; border: 0; border-bottom: 2px solid var(--uc); background: color-mix(in srgb, var(--uc) 6%, #fff); padding: 0 .3rem; margin: 0 .15rem; border-radius: 4px 4px 0 0; min-width: 4rem; }
.blank.right { border-color: var(--ok); background: #e7f6ea; } .blank.wrong { border-color: var(--bad); background: #fdecec; }
.bank { margin-top: .6rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.bank-w { background: var(--soft); border-radius: 6px; padding: .1rem .5rem; }
.numeric { display: flex; align-items: center; gap: .5rem; }
.num-in { font: inherit; width: 9rem; padding: .4rem .6rem; border: 1.5px solid var(--line); border-radius: 8px; }
.num-in.right { border-color: var(--ok); } .num-in.wrong { border-color: var(--bad); }
.working { margin-top: .6rem; background: var(--soft); padding: .3rem .9rem; border-radius: 10px; }
.open-in { width: 100%; font: inherit; padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; resize: vertical; }
.open-in:focus, .num-in:focus, .blank:focus { outline: 2px solid color-mix(in srgb, var(--uc) 40%, transparent); }
.model { margin-top: .7rem; background: #eef8f0; border-radius: 10px; padding: .3rem 1rem .6rem; }
.model h5 { color: var(--ok); }
.ms li::marker { content: "✓ "; color: var(--ok); }

/* lab */
.rq { background: color-mix(in srgb, var(--uc) 10%, #fff); border-radius: 14px; padding: .8rem 1.2rem; border-left: 6px solid var(--uc); }
.rq span { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--uc); }
.rq p { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 600; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.lab-card { display: grid; gap: .3rem; padding: 1.2rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-top: 6px solid var(--uc); }
.lab-n { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--uc); }
.lab-t { font-size: 1.2rem; font-weight: 700; }
.lab-rq { font-size: .92rem; color: #3c4a43; font-style: italic; }
.lab-f { font-size: .8rem; color: var(--muted); }
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.materials ul { padding-left: 1.1rem; margin: 0; }
.steps { padding-left: 1.4rem; }
.steps li { margin: .35rem 0; }
.steps label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.steps input { margin-top: .35rem; transform: scale(1.2); accent-color: var(--uc); }
.steps input:checked + span { color: var(--muted); text-decoration: line-through; }
.kw-inline { font-size: .95rem; }

/* revision / reference */
.rev-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.rev-toc a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; text-decoration: none; color: var(--ink); font-size: .9rem; }
.rev-section h2 { display: flex; align-items: center; }
.search { width: 100%; max-width: 420px; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); font: inherit; margin: .5rem 0 1.2rem; }
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; }
.term-card { background: #fff; border-radius: 12px; padding: .6rem 1rem; box-shadow: var(--shadow); }
.term-card h3 { margin: .3rem 0; }
.term-card small, .gl small { color: var(--muted); font-weight: 400; }
.term-card p { margin: .2rem 0; font-size: .95rem; }
.crit-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: .8rem 1.2rem; margin: .8rem 0; }
.crit-card summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.strands li { margin: .2rem 0; }
.rubric { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rubric th, .rubric td { border: 1px solid var(--line); padding: .5rem .7rem; vertical-align: top; text-align: left; }
.rubric th { background: var(--soft); }
.rubric .band { font-weight: 800; white-space: nowrap; text-align: center; }
.rubric ol { margin: 0; padding-left: 1.2rem; }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .6rem; }
.gl { background: #fff; border-radius: 10px; padding: .5rem .9rem; box-shadow: var(--shadow); }
.gl dt { font-weight: 700; }
.gl dd { margin: .2rem 0 0; font-size: .93rem; }
.calendar { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.calendar td { padding: .5rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.calendar a { color: var(--ink); font-weight: 600; text-decoration: none; }
.calendar small { color: var(--muted); }
.cal-d { width: 150px; white-space: nowrap; }
.cal-s { color: var(--uc); text-align: right; }
.cal-unit td { background: var(--uc); color: #fff; font-weight: 700; }
.calendar tr.cur { background: color-mix(in srgb, var(--uc) 12%, #fff); }
.cal-ev td { background: #fafafa; color: var(--muted); font-size: .9rem; }
.cal-ev.exam td { background: #fff4e5; color: #8a4b00; }

/* popover, lightbox */
.popover { position: fixed; z-index: 60; max-width: 320px; background: var(--navy); color: #fff; padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.popover p { margin: .3rem 0 0; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 2rem; cursor: zoom-out; }
.lightbox img { max-height: 92vh; max-width: 95vw; background: #fff; border-radius: 8px; }

/* presentation */
body.presenting { overflow: hidden; }
.present { position: fixed; inset: 0; z-index: 50; background: #fff; display: grid; grid-template-rows: 6px 1fr auto; }
.p-bar { background: var(--soft); }
.p-bar div { height: 100%; background: var(--uc); transition: width .25s; }
.p-slide { overflow: auto; display: flex; padding: 2.5vh 5vw; font-size: clamp(19px, 1.9vw, 32px); }
.p-inner { margin: auto; width: 100%; max-width: 1400px; }
.p-slide.center .p-inner { text-align: center; }
.p-slide .s-logo { display: block; height: 2.6em; width: auto; margin: 0 auto 1.2em; }
.p-slide h1 { font-size: 2.3em; }
.p-slide h2 { font-size: 1.6em; margin-top: 0; color: var(--uc); }
.p-slide .eyebrow { font-size: .6em; }
.p-slide .big li { margin: .45em 0; }
.p-slide .s-soi { font-size: .85em; font-style: italic; max-width: 1000px; margin: 1.5em auto 0; padding: .7em 1em; border-radius: 12px; background: color-mix(in srgb, var(--uc) 8%, #fff); }
.p-slide .s-kw { margin-top: 1.5em; font-size: .85em; }
.p-slide .s-phase { font-weight: 800; color: var(--uc); margin: 0 0 .3em; font-size: .8em; text-transform: uppercase; letter-spacing: .05em; }
.p-slide .fig img { max-height: 62vh; }
.p-slide .fig figcaption { font-size: .5em; }
.p-slide .activity { font-size: .85em; box-shadow: none; border: 0; padding: 0; }
.p-slide .activity .act-head { font-size: .6em; }
.p-slide .act-prompt { font-size: 1.1em; font-weight: 500; }
.p-slide .callout { font-size: .85em; }
.p-slide .prose table { font-size: .7em; }
.p-slide.video-slide .p-inner { max-width: min(1400px, 150vh); }
.p-slide.video-slide figcaption { font-size: .6em; }
.p-slide.safety-slide h2 { color: var(--bad); }
.p-slide .open-in { font-size: .8em; }
.p-slide .model { font-size: .85em; }
.p-ctrl { display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; border-top: 1px solid var(--line); background: var(--bg); font-size: .9rem; }
.p-mark { height: 1.9rem; width: auto; }
.p-ctrl button { border: 1px solid var(--line); background: #fff; border-radius: 10px; min-width: 2.6rem; height: 2.4rem; font-weight: 700; font-size: 1rem; }
.p-ctrl button[data-p="next"], .p-ctrl button[data-p="prev"] { font-size: 1.5rem; line-height: 1; width: 3.2rem; }
.p-ctrl button[data-p="next"] { background: var(--uc); color: #fff; border-color: var(--uc); }
.p-title { flex: 1; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.present:fullscreen { background: #fff; }

/* responsive */
/* classes (55-minute sessions) */
.ll-present { display: flex; gap: .3rem; min-width: 6.3rem; justify-content: flex-end; }
.ll-present a { display: grid; place-items: center; min-width: 3rem; padding: 0 .6rem; border-radius: 12px; background: var(--uc); color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.ll-present a:hover { filter: brightness(.92); }
#classes { margin: 2rem 0 1.4rem; scroll-margin-top: 110px; }
.class-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.class-tabs a { flex: 1 1 220px; display: grid; gap: .1rem; padding: .7rem 1rem; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); }
.class-tabs a span { font-size: .92rem; }
.class-tabs a small { color: var(--muted); font-size: .78rem; }
.class-tabs a strong { color: var(--uc); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.class-tabs a.on { border-color: var(--uc); background: color-mix(in srgb, var(--uc) 8%, #fff); box-shadow: var(--shadow); }
.class-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.class-head h2 { margin: .1em 0 .4em; }
.class-go { display: flex; align-items: center; gap: .8rem; }
.clock { font-weight: 700; color: var(--uc); font-variant-numeric: tabular-nums; }
.plan-bar { display: flex; gap: 3px; border-radius: 10px; overflow: hidden; margin-top: .3rem; }
.pb { min-width: 0; display: flex; flex-direction: column; padding: .35rem .5rem; text-decoration: none; color: #fff; background: var(--uc); font-size: .75rem; line-height: 1.25; }
.pb1 { background: color-mix(in srgb, var(--uc) 72%, #000); }
.pb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-m { font-weight: 800; font-size: .85rem; }
.pb:hover { filter: brightness(1.1); }
.mins { font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--soft); padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.phase.homework { background: #f3effa; }
.next-class { margin-top: 2rem; text-align: right; }

/* glossary */
.gloss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin: 1.2rem 0 1.6rem; }
.gloss-card { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border-top: 5px solid var(--uc); text-decoration: none; color: var(--ink); transition: transform .15s; }
.gloss-card:hover { transform: translateY(-3px); }
.gc-emoji { font-size: 1.6rem; }
.gc-num { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--uc); }
.gc-title { font-weight: 700; font-size: 1.05rem; }
.gc-count { margin-top: auto; font-size: .8rem; color: var(--muted); }
.gloss-topic h2 a { text-decoration: none; }

/* slides: class decks */
.p-slide .s-class { font-size: 1.1em; margin: .3em 0; }
.p-slide .s-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 3vw; align-items: center; }
.p-slide.img-only .s-cols { grid-template-columns: 1fr; }
.p-slide .s-media .fig { margin: 0; text-align: center; }
.p-slide .s-media img, .p-slide.img-only img { max-height: calc(66vh * var(--fit, 1)); width: auto; margin: 0 auto; display: block; }
.p-slide .s-plan { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3vw; align-items: start; }
.p-slide .agenda { list-style: none; padding: 0; margin: 0; font-size: .85em; }
.p-slide .agenda li { display: flex; justify-content: space-between; gap: 1em; padding: .3em 0; border-bottom: 1px solid var(--line); }
.p-slide .agenda b { color: var(--uc); font-variant-numeric: tabular-nums; }
.p-slide h2 .cont { font-size: .55em; color: var(--muted); font-weight: 600; }
.p-slide.video-slide .yt, .p-slide.video-slide iframe { width: auto; max-width: 100%; height: calc((100vh - 190px) * var(--fit, 1)); margin: 0 auto; }
.p-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--uc); white-space: nowrap; }

@media (max-width: 1000px) {
  .lesson-cols, .unit-cols { grid-template-columns: 1fr; }
  .p-slide .s-cols, .p-slide .s-plan { grid-template-columns: 1fr; }
  .lesson-toc { display: none; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .topnav a { padding: .45rem .6rem; font-size: .9rem; }
  .brand-text { display: none; }
}
@media (max-width: 860px) {
  .brand-text { display: flex; }
  .menu-btn { display: block; }
  .topnav { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; flex-direction: column; padding: .6rem; border-radius: 10px; box-shadow: 0 8px 28px rgba(26,44,74,.16); }
  .f-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .f-links { justify-items: center; text-align: center; }
  .footer { border-radius: 50% 50% 0 0 / 28px 28px 0 0; }
  body.menu-open .topnav { display: flex; }
  .topnav a { padding: .6rem .9rem; }
  .framing, .iq-grid, .obj-kw { grid-template-columns: 1fr; }
  .m-row { grid-template-columns: 1fr; }
  .p-title { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .page { padding: 1rem .8rem 2.5rem; }
  .hero { padding: 1.3rem; }
  .hero .hero-band { margin: .4rem -1.3rem -1.3rem; font-size: .9rem; }
  .brand-text small { display: none; }
  .brand-logo { height: 36px; }
  .brand-text { padding-left: .6rem; font-size: .9rem; }
  .topbar { top: 8px; margin: 8px 8px 0; padding: .5rem .7rem; gap: .5rem; }
  body::before { height: 8px; }
  .hero .hero-mark { width: 300px; right: -80px; bottom: -90px; }
  .tf-row { grid-template-columns: 1fr; }
  .cal-d { width: auto; white-space: normal; }
}

/* print: lesson pages print as worksheets */
@media print {
  .topbar, .footer, .lesson-actions, .lesson-toc, .lesson-nav, .act-foot, .yt-play, .present, .crumbs { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page { max-width: none; padding: 0; }
  .lesson-cols { display: block; }
  .activity, .card, .callout, .fig { break-inside: avoid; box-shadow: none; }
  .explain, .model, .working, .hintbox, .tf-hint { display: none !important; }
  .open-in { min-height: 6em; border: 1px solid #999; }
}
/* descriptors already carry their own i./ii. numbering */
.strands, .rubric ol { list-style: none; padding-left: 0; }
/* long ordering lists on slides: two columns, read top to bottom */
.p-slide .order:has(> li:nth-child(8)) { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, auto); column-gap: .8rem; }
.p-slide .order:has(> li:nth-child(9)) { grid-template-rows: repeat(5, auto); }
.p-slide .order:has(> li:nth-child(11)) { grid-template-rows: repeat(6, auto); }
.p-slide .order:has(> li:nth-child(13)) { grid-template-rows: repeat(7, auto); }
.p-slide .order:has(> li:nth-child(15)) { grid-template-rows: repeat(8, auto); }
@media (max-width: 700px) { .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
