.resource-hero { display:grid; grid-template-columns:1fr; gap:.75rem; padding:4rem 0 2rem; }
.resource-hero h1 { max-width:16ch; margin:0; font-size:clamp(2.5rem,6vw,5rem); }
.resource-hero > p:not(.eyebrow) { max-width:46rem; margin:.5rem 0 0; font-size:1.1rem; line-height:1.65; }
.resource-hero.page-heading { max-width:none; margin:2rem 0; padding:clamp(1.5rem,4vw,3rem); border:1px solid #d5e5df; border-radius:1.5rem; background:linear-gradient(115deg,#edf7f2,#f7fafc); }
.resource-hero.page-heading .eyebrow { margin:0 0 .25rem; }
.resource-hero.page-heading h1 { max-width:24ch; font-size:clamp(2rem,4.2vw,3.5rem); line-height:1.12; letter-spacing:-.04em; }
.resource-hero.page-heading > p:not(.eyebrow) { color:var(--muted); font-size:1rem; }
.resource-hero__facts { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.75rem; }
.resource-hero__facts > span { display:inline-flex; align-items:center; gap:.5rem; padding:.5rem .8rem; border:1px solid #d5e5df; border-radius:999px; background:#fff; color:var(--brand-deep); font-size:.8rem; font-weight:650; line-height:1.5; }
.resource-hero__facts > span::before { content:""; flex:0 0 .4rem; height:.4rem; border-radius:50%; background:var(--brand); }
.resource-course-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); align-items:stretch; gap:1.25rem; padding-bottom:4rem; }
.resource-course-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--line); border-top:4px solid var(--brand); border-radius:1rem; padding:1.5rem; background:#fff; box-shadow:0 .4rem 1.5rem rgba(23,32,51,.04); transition:border-color .15s ease,box-shadow .15s ease; }
.resource-course-card .eyebrow { margin:0 0 .7rem; font-size:.7rem; line-height:1.6; }
.resource-course-card h2 { margin:0 0 1.4rem; font-size:1.4rem; line-height:1.35; letter-spacing:-.025em; overflow-wrap:anywhere; }
.resource-course-card h2 a { color:var(--ink); text-decoration:none; }
.resource-course-card h2 a:hover { color:var(--brand-deep); text-decoration:underline; text-underline-offset:.2em; }
.resource-course-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:auto 0 1.25rem; padding:1rem 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.resource-course-card dl > div { display:flex; flex-direction:column; gap:.35rem; min-width:0; }
.resource-course-card dt { color:var(--muted); font-size:.8rem; line-height:1.5; }
.resource-course-card dd { order:-1; margin:0; color:var(--ink); font-size:1.65rem; font-weight:750; line-height:1.2; font-variant-numeric:tabular-nums; }
.resource-course-card > .button { width:100%; min-height:2.8rem; align-items:center; font-size:.9rem; }
.resource-course-card:hover,.resource-course-card:focus-within { border-color:var(--brand); box-shadow:0 .6rem 1.6rem rgba(23,32,51,.09); }
.resource-course-card > .button:hover { background:var(--brand); }
@media (prefers-reduced-motion:reduce) { .resource-course-card { transition:none; } }
.resource-type-columns { display:grid; grid-template-columns:repeat(auto-fit,minmax(18rem,1fr)); gap:1.25rem; padding-bottom:5rem; }
.resource-type-columns > section { min-width:0; }
.resource-lesson-list { display:grid; gap:1rem; }
.resource-lesson-card,.download-panel,.upload-panel,.submission-history { border:1px solid var(--line); border-radius:1rem; padding:1.4rem; background:#fff; box-shadow:0 .7rem 2rem rgba(23,32,51,.05); }
.resource-lesson-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:1.5rem; margin-bottom:1.25rem; }
.resource-lesson-card h2,.download-panel h2,.upload-panel h2 { margin-top:0; }
.resource-link-card { display:grid; grid-template-columns:2.4rem minmax(0,1fr); grid-template-rows:auto auto; column-gap:.85rem; margin:.7rem 0; padding:.9rem; border:1px solid var(--line); border-radius:.75rem; color:var(--ink); text-decoration:none; background:#f8fbfa; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.resource-link-card > span { grid-row:1 / 3; display:grid; place-items:center; width:2.4rem; height:2.4rem; border-radius:50%; color:#fff; background:var(--brand); font-weight:800; }
.resource-link-card > strong,.resource-link-card > small { min-width:0; overflow-wrap:anywhere; }
.resource-link-card > strong { line-height:1.35; }
.resource-link-card > small { margin-top:.2rem; color:var(--muted); }
.resource-link-card--print { background:#fffaf1; }
.resource-link-card:hover,.resource-link-card:focus-visible { border-color:var(--brand); box-shadow:0 .55rem 1.3rem rgba(23,32,51,.1); transform:translateY(-1px); }
.worksheet-shell { width:min(920px,calc(100% - 2rem)); margin-inline:auto; padding:3rem 0 5rem; }
.worksheet-header { display:grid; grid-template-columns:minmax(0,1fr); gap:.85rem; margin-bottom:2rem; }
.worksheet-header .eyebrow,.worksheet-header .prose > :first-child { margin-top:0; }
.worksheet-header .eyebrow,.worksheet-header .prose > :last-child { margin-bottom:0; }
.worksheet-header h1 { max-width:none; font-size:clamp(2rem,4vw,3.25rem); line-height:1.12; overflow-wrap:anywhere; }
.worksheet-header .prose { max-width:46rem; padding-bottom:0; }
.worksheet-question { display:block; min-width:0; margin:1rem 0; border:1px solid var(--line); border-radius:.8rem; padding:clamp(1rem,3vw,1.5rem); background:#fff; }
.worksheet-question > strong { display:flex; align-items:baseline; gap:.75rem; line-height:1.6; }
.worksheet-question > strong > span { flex:0 0 2rem; text-align:center; border-radius:50%; color:#fff; background:var(--brand); line-height:2rem; }
.worksheet-question textarea,.worksheet-question input[type=text] { display:block; width:100%; min-width:0; margin-top:1rem; border:1px solid #aebdb9; border-radius:.5rem; padding:.75rem; font:inherit; line-height:1.6; }
.worksheet-question textarea { min-height:7rem; resize:vertical; }
.worksheet-question textarea:focus-visible,.worksheet-question input:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.worksheet-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin:1.5rem 0; }
.printable-workflow { display:grid; gap:1.25rem; }
.worksheet-shell .upload-panel label { display:block; margin-block:1rem; font-weight:600; }
.worksheet-shell .upload-panel input[type=file],.worksheet-shell .upload-panel textarea { display:block; width:100%; min-width:0; max-width:100%; margin-top:.5rem; font:inherit; }
.worksheet-shell .upload-panel textarea { min-height:6rem; padding:.75rem; border:1px solid #aebdb9; border-radius:.5rem; resize:vertical; }
.worksheet-shell .upload-panel :is(input,textarea):focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.worksheet-saved-uploads { margin-top:1.5rem; padding:clamp(1rem,3vw,1.5rem); border:1px solid var(--line); border-radius:1rem; background:#f3f9f7; overflow-wrap:anywhere; }
.worksheet-saved-uploads h2 { margin-top:0; }
.worksheet-saved-uploads ul { padding-left:1.25rem; }
.worksheet-saved-uploads li+li { border-top:1px solid var(--line); margin-top:1rem; padding-top:1rem; }
.notice--success { border-left:.3rem solid #198754; background:#eaf7ef; }
.notice--warning { border-left:.3rem solid #b7791f; background:#fff7e6; }
@media (max-width:44rem) {
  .resource-lesson-card > header { align-items:flex-start; flex-direction:column; }
  .resource-type-columns { grid-template-columns:1fr; }
}
@media print { .site-header,.site-footer,.worksheet-actions,.step-navigation { display:none!important; } .worksheet-shell { width:100%; padding:0; } }
