/* edu.css — classroom worksheet + educator CTA styling for the physics cluster.
   Linked only on pages that carry a worksheet (injected by scripts/edu/build-edu.mjs)
   and on the standalone printable /worksheet/ pages. Kept separate from shared.css
   so injecting it never forces a cache-bust of the shared stylesheet. */

.edu-worksheet{
  margin:2.5rem 0;padding:1.5rem 1.75rem;border:1px solid #d7dee8;border-radius:14px;
  background:#f8fafc;color:#1f2937;line-height:1.6;
}
.edu-worksheet h2{margin:0 0 .35rem;font-size:1.35rem;color:#0f172a}
.edu-worksheet .edu-sub{margin:0 0 1.1rem;color:#475569;font-size:.95rem}
.edu-worksheet h3{margin:1.3rem 0 .5rem;font-size:1.05rem;color:#1e3a8a;
  border-left:3px solid #2563eb;padding-left:.6rem}
.edu-worksheet ul,.edu-worksheet ol{margin:.3rem 0 .3rem 1.2rem;padding:0}
.edu-worksheet li{margin:.3rem 0}
.edu-worksheet .edu-meta{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem}
.edu-worksheet .edu-tag{font-size:.78rem;background:#e0e7ff;color:#3730a3;
  padding:.2rem .6rem;border-radius:999px;font-weight:600}
.edu-worksheet .edu-answers{margin-top:1rem;border-top:1px dashed #cbd5e1;padding-top:.8rem}
.edu-worksheet .edu-answers summary{cursor:pointer;font-weight:600;color:#1e3a8a}
.edu-worksheet .edu-actions{margin-top:1.2rem;display:flex;gap:.6rem;flex-wrap:wrap}
.edu-worksheet .edu-btn{display:inline-block;padding:.55rem 1rem;border-radius:10px;
  font-weight:600;font-size:.9rem;text-decoration:none;border:1px solid transparent}
.edu-worksheet .edu-btn-primary{background:#2563eb;color:#fff}
.edu-worksheet .edu-btn-ghost{background:#fff;color:#1e3a8a;border-color:#c7d2fe}
.edu-worksheet .edu-note{font-size:.82rem;color:#64748b;margin-top:.8rem}

/* Educator CTA banner on the physics hub */
.edu-cta{margin:2rem 0;padding:1.4rem 1.6rem;border:1px solid #c7d2fe;border-radius:14px;
  background:linear-gradient(135deg,#eef2ff,#f8fafc);color:#1f2937}
.edu-cta h2{margin:0 0 .4rem;font-size:1.25rem;color:#1e3a8a}
.edu-cta p{margin:0 0 .9rem;line-height:1.55;max-width:60ch}
.edu-cta .edu-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.edu-cta .edu-btn{display:inline-block;padding:.55rem 1rem;border-radius:10px;
  font-weight:600;font-size:.9rem;text-decoration:none}
.edu-cta .edu-btn-primary{background:#2563eb;color:#fff}
.edu-cta .edu-btn-ghost{background:#fff;color:#1e3a8a;border:1px solid #c7d2fe}

/* Worksheets index page */
.wl-wrap{max-width:1000px;margin:0 auto;padding:2rem 1.25rem;color:#1f2937;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.wl-wrap h1{font-size:1.9rem;color:#0f172a;margin:0 0 .4rem}
.wl-wrap .wl-intro{color:#475569;line-height:1.6;max-width:65ch;margin:0 0 1.6rem}
.wl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}
.wl-card{border:1px solid #d7dee8;border-radius:12px;padding:1rem 1.1rem;background:#f8fafc}
.wl-card .wl-name{display:block;font-weight:700;color:#0f172a;margin-bottom:.5rem;font-size:1.02rem}
.wl-card .wl-links{display:flex;gap:.5rem;flex-wrap:wrap;font-size:.85rem}
.wl-card .wl-links a{color:#1e3a8a;text-decoration:none;font-weight:600;
  border:1px solid #c7d2fe;border-radius:8px;padding:.25rem .55rem}
.wl-card .wl-links a.primary{background:#2563eb;color:#fff;border-color:#2563eb}
.wl-card .wl-links a.sim{background:#15803d;color:#fff;border-color:#15803d}

/* Standalone printable worksheet page */
.ws-page{max-width:820px;margin:0 auto;padding:2rem 1.5rem;color:#111827;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.6}
.ws-page header{border-bottom:2px solid #1e3a8a;padding-bottom:.8rem;margin-bottom:1.2rem}
.ws-page h1{margin:0 0 .2rem;font-size:1.6rem;color:#0f172a}
.ws-page .ws-src{font-size:.85rem;color:#475569}
.ws-page .ws-fields{margin:.8rem 0 1.2rem;font-size:.9rem;color:#334155}
.ws-page h2{font-size:1.1rem;color:#1e3a8a;margin:1.4rem 0 .5rem;
  border-left:3px solid #2563eb;padding-left:.6rem}
.ws-page ol,.ws-page ul{margin:.3rem 0 .3rem 1.3rem}
.ws-page li{margin:.4rem 0}
.ws-page .ws-blank{border-bottom:1px solid #94a3b8;display:block;height:1.4rem;margin:.5rem 0}
.ws-page footer{margin-top:2rem;border-top:1px solid #cbd5e1;padding-top:.6rem;
  font-size:.8rem;color:#64748b}
.ws-page .ws-answers{margin-top:1.5rem;background:#f8fafc;border:1px solid #e2e8f0;
  border-radius:10px;padding:1rem 1.2rem}
.ws-page .ws-answers h2{margin-top:0}
.ws-page .ws-actions{margin:1rem 0 1.4rem;display:flex;gap:.6rem;flex-wrap:wrap}
.ws-page .ws-actions a{display:inline-block;padding:.5rem .95rem;border-radius:10px;
  font-weight:600;font-size:.9rem;text-decoration:none;background:#2563eb;color:#fff}
.ws-page .ws-actions a.ghost{background:#fff;color:#1e3a8a;border:1px solid #c7d2fe}

@media print{
  .edu-worksheet .edu-actions,.edu-worksheet .edu-answers,.edu-cta,.ws-page .ws-actions{display:none!important}
  .ws-page{max-width:100%;padding:0}
  .ws-page .ws-answers{page-break-before:always}
  a[href]:after{content:""}
}

/* [hidden]-guard (2026-09-29): an author display rule must never beat the hidden attribute (bit 4x: weather, timer, whats-my-ip, image converters). */
[hidden] { display: none !important; }
