/* TeacherBoard Lesson Library. One stylesheet; fonts are bundled in assets/fonts (SIL Open Font License). */
@font-face{font-family:"Manrope";src:url("assets/fonts/manrope.woff2") format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:"DM Sans";src:url("assets/fonts/dm-sans.woff2") format("woff2");font-weight:100 1000;font-display:swap}
:root{
  --paper:#faf8f2;--panel:#f0f1e9;--white:#fff;--ink:#203e39;--muted:#4b5b53;--line:#dcded4;
  --green:#294f45;--lime:#e3ebbf;--orange:#ad5934;--science:#2f6a8f;--social:#9a4f2c;
  --head:"Manrope","Segoe UI",system-ui,Arial,sans-serif;--body:"DM Sans","Segoe UI",system-ui,Arial,sans-serif;
  --radius:12px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--paper);color:var(--ink);font:18px/1.65 var(--body)}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{font-family:var(--head);letter-spacing:-.02em}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1240px;margin-inline:auto;padding-inline:40px}
.skip{position:absolute;left:16px;top:-100px;background:var(--ink);color:#fff;padding:10px 14px;z-index:20;border-radius:8px}
.skip:focus{top:12px}

/* buttons */
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;border-radius:10px;border:2px solid transparent;font-weight:600;font-size:18px;text-decoration:none;transition:background .15s,border-color .15s}
.button.small{min-height:44px;padding:0 18px;font-size:16px}
.button.primary{background:var(--ink);color:#fff}
.button.primary:hover{background:var(--green)}
.button.ghost{border-color:var(--line);background:var(--white)}
.button.ghost:hover{border-color:var(--ink)}

/* header */
.site-header{max-width:1240px;margin-inline:auto;display:flex;align-items:center;gap:28px;padding:18px 40px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--ink);color:var(--paper);font:800 20px var(--head);flex:none}
.brand-name{font:800 21px/1.15 var(--head)}
.brand-name small{display:block;font:500 15px var(--body);color:var(--muted)}
nav{display:flex;gap:24px;margin-left:auto;font-weight:600;font-size:17px}
nav a{text-decoration:none;padding:6px 0}
nav a:hover{color:var(--orange)}
.header-actions{display:flex;gap:10px}

/* hero */
.hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:56px;align-items:center;padding-block:64px 56px}
.eyebrow{font-weight:700;font-size:17px;color:var(--orange)}
.hero h1{font-size:clamp(44px,5.2vw,68px);line-height:1.05;font-weight:700;letter-spacing:-.035em;margin:14px 0 22px}
.hero h1 em{font-style:normal;color:var(--orange)}
.lede{font-size:21px;line-height:1.6;color:var(--muted);max-width:34em}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.hero-art{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:0 18px 40px #203e3914}
.hero-art img{border-radius:8px;width:100%}
.hero-art figcaption{font-size:16px;color:var(--muted);padding:12px 6px 2px}

/* stats strip */
.collection-strip{background:var(--panel);border-block:1px solid var(--line)}
.collection-strip .wrap{display:flex;flex-wrap:wrap;gap:12px 40px;align-items:baseline;padding-block:18px;font-size:17px;color:var(--muted)}
.collection-strip strong{font:800 24px var(--head);color:var(--ink);margin-right:4px}

/* sections */
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:32px}
.section-heading h2,.how h2,.diff-intro h2{font-size:40px;line-height:1.15;font-weight:700}
.section-heading p{color:var(--muted);max-width:30em}
.benefits,.library,.how{padding-block:80px}
.num{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--lime);font:800 18px var(--head);margin-bottom:14px}
.benefit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.benefit-grid h3,.steps h3{font-size:22px;font-weight:700;margin-bottom:8px}
.benefit-grid p,.steps p{color:var(--muted)}
.ownership{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:40px;margin-top:56px;padding:36px 40px;border-radius:var(--radius);background:#e9efdc}
.ownership h3{font-size:30px;font-weight:700}
.ownership .note{font-size:16px;color:var(--muted);margin-top:12px}

/* library */
.library{border-top:1px solid var(--line)}
.grade-browser{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-bottom:16px}
.grade-choice{border:2px solid var(--line);background:var(--white);border-radius:10px;padding:12px 10px;text-align:center;min-height:64px;display:flex;flex-direction:column;justify-content:center;line-height:1.25}
.grade-choice strong{font:700 17px var(--head)}
.grade-choice span{font-size:14px;color:var(--muted)}
.grade-choice.soon strong{color:var(--muted)}
.grade-choice:hover{border-color:var(--ink)}
.grade-choice.active{background:var(--ink);border-color:var(--ink);color:#fff}
.grade-choice.active span,.grade-choice.active.soon strong{color:#dfe8dc}
.filters{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:12px}
.search,.select{display:flex;align-items:center;gap:12px;background:var(--white);border:2px solid var(--line);border-radius:10px;padding:0 16px;min-height:56px}
.search:focus-within,.select:focus-within{border-color:var(--ink)}
.search input,.select select{flex:1;border:0;background:none;outline:none;font-size:18px;min-height:52px}
.select select{cursor:pointer}
.collection-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0 8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:2px solid var(--line);background:var(--white);border-radius:999px;padding:8px 18px;font-weight:600;font-size:16px}
.chip:hover{border-color:var(--ink)}
.chip.active{background:var(--ink);border-color:var(--ink);color:#fff}
#count{color:var(--muted);font-size:16px}
.grade-section{padding-top:40px}
.grade-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.grade-number{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--lime);font:800 19px var(--head)}
.grade-heading h3{font-size:28px;font-weight:700}
.grade-count{margin-left:auto;color:var(--muted);font-size:16px}
.grade-note{color:var(--muted);margin:-8px 0 16px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #203e3914}
.card-image{position:relative;display:block;width:100%;border:0;padding:0;background:#e3e8da}
.card-image img{width:100%;aspect-ratio:16/9;object-fit:cover}
.image-tag{position:absolute;right:10px;bottom:10px;background:#ffffffee;border-radius:6px;padding:2px 8px;font-size:14px;font-weight:600}
.card-body{padding:18px 20px 16px;display:flex;flex-direction:column;flex:1}
.card-meta{display:flex;gap:12px;align-items:center;font-size:15px;color:var(--muted)}
.subject-tag{font-weight:700;color:var(--social)}
.card[data-subject="Science"] .subject-tag{color:var(--science)}
.card h3{font-size:22px;line-height:1.3;font-weight:700;margin:6px 0 8px}
.card-body>p:not(.card-meta){color:var(--muted);font-size:17px;margin-bottom:16px}
.card-bottom{margin-top:auto;border-top:1px solid #e9ebe3;padding-top:12px;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.formats{font-size:15px;color:var(--muted)}
.view-button{border:0;background:none;font-weight:700;font-size:17px;padding:8px 0;white-space:nowrap}
.view-button:hover{color:var(--orange)}
.soon-note{margin-top:40px;padding:18px 22px;border:2px dashed var(--line);border-radius:var(--radius);color:var(--muted)}
.soon-note strong{color:var(--ink)}
.empty{text-align:center;padding:48px 0}
.empty h3{font-size:26px;margin-bottom:6px}
.empty p{color:var(--muted);margin-bottom:18px}

/* differentiation */
.differentiate{background:var(--ink);color:#f2f5ee;padding-block:80px}
.diff-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:end;margin-bottom:36px}
.diff-intro p{color:#d6e0d6}
.diff-options{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.diff-options article{border:1px solid #ffffff2a;border-radius:var(--radius);padding:28px;background:#ffffff0d;display:flex;flex-direction:column}
.version{color:#e3ebbf;font-weight:700;font-size:16px}
.diff-options h3{font-size:26px;margin:6px 0 8px}
.diff-options p:not(.version){color:#d6e0d6;margin-bottom:20px}
.diff-options a{margin-top:auto;font-weight:700;text-decoration:none;border-top:1px solid #ffffff2a;padding-top:14px}
.diff-options a:hover{color:#e3ebbf}

/* how it works */
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.steps a{font-weight:700}
.help{margin-top:40px;border-block:1px solid var(--line);padding:16px 0}
.help summary{font:700 19px var(--head);cursor:pointer}
.help div{display:grid;gap:12px;color:var(--muted);padding-top:12px;max-width:52em}

/* footer */
footer{background:var(--panel);border-top:1px solid var(--line);padding-block:32px}
footer .wrap{display:flex;gap:40px;align-items:center;justify-content:space-between}
.credits{font-size:16px;color:var(--muted);max-width:40em}
.credits button{border:0;background:none;padding:0;font-weight:700;text-decoration:underline;color:var(--ink)}

/* lesson dialog */
dialog{width:min(1120px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:16px;background:var(--paper);color:var(--ink)}
dialog::backdrop{background:#1d2b28b3}
body.modal-open{overflow:hidden}
.dialog-top{position:sticky;top:0;display:flex;justify-content:flex-end;padding:12px 12px 0;z-index:2;pointer-events:none}
.close{pointer-events:auto;width:48px;height:48px;border-radius:50%;border:2px solid var(--line);background:var(--white);font-size:20px}
.dialog-main{padding:0 40px 36px;margin-top:-36px}
.dialog-meta{font-weight:600;color:var(--muted);font-size:17px}
#dialog-title{font-size:36px;line-height:1.15;font-weight:700;margin:6px 0 10px}
.dialog-description{font-size:20px;color:var(--muted);max-width:44em}
.board-preview{margin-top:24px}
.sample-tabs{display:flex;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.sample-tab{display:flex;flex-direction:column;gap:6px;align-items:center;border:2px solid var(--line);background:var(--white);border-radius:10px;padding:6px 6px 4px;font-weight:600;font-size:15px}
.sample-tab img{width:150px;aspect-ratio:16/10;object-fit:cover;border-radius:5px;background:#dfe5e9}
.sample-tab[aria-pressed="true"]{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
.sample-frame{background:#d6dde4;border-radius:10px;overflow:hidden;border:1px solid #c4ced8}
.sample-frame img{width:100%;max-height:62vh;object-fit:contain}
.preview-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;font-size:16px;color:var(--muted)}
.preview-controls a{font-weight:700;color:var(--ink)}
.preview-step{border:2px solid var(--line);background:var(--white);border-radius:10px;padding:8px 16px;font-weight:600;font-size:16px}
.preview-step:disabled{opacity:.4;cursor:default}
.preview-explainer,.file-note{font-size:16px;color:var(--muted);margin-top:10px}
.no-samples{margin-top:20px;padding:18px 22px;background:var(--white);border:1px solid var(--line);border-radius:10px}
.dialog-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;margin-top:32px}
.dialog-columns h3{font-size:22px;margin-bottom:12px}
.dialog-topics{margin:0;padding-left:22px;color:var(--muted)}
.dialog-topics li{margin-bottom:6px}
.resource-links{display:grid;gap:10px}
.resource-link{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;border:2px solid var(--line);border-radius:10px;background:var(--white);text-decoration:none}
.resource-link b{display:block;font-size:18px}
.resource-link small{display:block;font-size:15px;color:var(--muted)}
.resource-link:hover{border-color:var(--ink)}
.resource-link.main{background:var(--ink);border-color:var(--ink);color:#fff}
.resource-link.main small{color:#d6e0d6}
.source-notes{margin-top:20px;border-top:1px solid var(--line);padding-top:12px}
.source-notes summary{font-weight:700;cursor:pointer}
.source-notes p{white-space:pre-line;font-size:15px;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}
.page-notes{margin-top:12px}

/* tablet */
@media (max-width:1100px){
  nav{display:none}
  .header-actions{margin-left:auto}
  .hero{grid-template-columns:1fr;gap:36px;padding-block:48px}
  .benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grade-browser{grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* phone */
@media (max-width:700px){
  body{font-size:17px}
  .wrap{padding-inline:20px}
  .site-header{padding:14px 20px;gap:12px;flex-wrap:wrap}
  .header-actions{width:100%;margin-left:0}
  .header-actions .button{flex:1;padding:0 10px;font-size:15px;white-space:nowrap}
  .section-heading{flex-direction:column;align-items:flex-start;gap:8px}
  .section-heading h2,.how h2,.diff-intro h2{font-size:32px}
  .benefits,.library,.how,.differentiate{padding-block:56px}
  .benefit-grid,.steps,.diff-options,.diff-intro,.ownership,.dialog-columns{grid-template-columns:1fr}
  .ownership{padding:26px 22px;gap:14px}
  .grade-browser{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters{grid-template-columns:1fr}
  footer .wrap{flex-direction:column;align-items:flex-start;gap:16px}
  .dialog-main{padding:0 20px 28px}
  #dialog-title{font-size:28px}
  .sample-tab img{width:96px}
  .preview-controls{flex-wrap:wrap;justify-content:center}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
