/* Shared styles for the standalone pages (educators.html, about.html).
   Same palette and type as the simulation; plain document layout. */
:root { --ink: #1d2925; --paper: #f4f0e8; --acid: #d5ed57; --coral: #f07e66; --sky: #8fd0e8; --muted: #a5b19f; --mono: 'DM Mono', ui-monospace, Menlo, monospace; --serif: 'Fraunces', Georgia, 'Times New Roman', serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(135deg, #1d2925 0%, #25342e 55%, #394639 100%) fixed; color: var(--paper); font-family: var(--mono); font-size: 15px; line-height: 1.75; }
a { color: var(--acid); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.page-top { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding: 18px 5vw; border-bottom: 1px solid rgba(244,240,232,.18); font-size: 11px; letter-spacing: .11em; }
.page-top a { color: var(--paper); text-decoration: none; }
.page-top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.page-top nav a { color: #bcc8af; min-height: 44px; display: inline-flex; align-items: center; }
.page-top nav a:hover, .page-top nav a[aria-current] { color: var(--acid); }

main { max-width: 820px; margin: 0 auto; padding: 56px 22px 80px; }
.eyebrow { color: var(--acid); font-size: 11px; letter-spacing: .2em; margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(38px, 7vw, 64px); margin: 0 0 22px; }
h1 em { color: var(--acid); font-style: normal; }
h2 { font-size: 30px; margin: 56px 0 14px; }
h3 { font-size: 21px; margin: 28px 0 8px; color: var(--paper); }
.lede { font-size: 17px; color: #d6dccb; margin: 0 0 26px; }
p, li { color: #d6dccb; }
ul, ol { padding-left: 22px; }
li { margin: 0 0 8px; }

.note { border: 1px solid rgba(240,126,102,.55); border-left: 4px solid var(--coral); background: rgba(240,126,102,.09); padding: 16px 20px; margin: 26px 0; color: var(--paper); font-size: 14px; }
.card { border: 1px solid rgba(143,208,232,.4); border-left: 4px solid var(--sky); background: rgba(143,208,232,.06); padding: 22px 26px; margin: 22px 0; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(244,240,232,.18); color: #d6dccb; }
th { color: var(--acid); font-size: 11px; letter-spacing: .14em; font-weight: 500; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 20px; border: 1px solid rgba(244,240,232,.4); background: transparent; color: var(--paper); font: inherit; font-size: 12px; letter-spacing: .1em; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--acid); color: var(--acid); }
.btn.primary { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.btn.primary:hover { background: #e4ff6a; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }

/* embed generator */
.gen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 18px; margin: 18px 0; }
.gen label { display: block; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.gen select { width: 100%; margin-top: 6px; padding: 11px 12px; background: rgba(244,240,232,.07); color: var(--paper); border: 1px solid rgba(244,240,232,.3); font: inherit; font-size: 14px; }
.gen select option { color: #1d2925; }
.code { width: 100%; min-height: 110px; background: rgba(0,0,0,.28); color: #e8ffc4; border: 1px solid rgba(244,240,232,.25); font: inherit; font-size: 13px; line-height: 1.6; padding: 14px 16px; resize: vertical; }
.preview-frame { width: 100%; height: 640px; border: 1px solid rgba(244,240,232,.25); background: #1d2925; margin-top: 16px; }

.foot { border-top: 1px solid rgba(244,240,232,.18); padding: 30px 5vw 50px; font-size: 12px; color: var(--muted); text-align: center; }

.sources li { font-size: 14px; }
.small { font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  main { padding-top: 38px; }
  h2 { font-size: 25px; margin-top: 44px; }
  th, td { padding: 8px 6px; font-size: 13px; }
}

/* printable one-pager: educators.html prints only the .printable section */
@media print {
  body { background: #fff; color: #111; font-size: 11pt; line-height: 1.5; }
  .page-top, .foot, .no-print, .actions, .gen, .code, .preview-frame { display: none !important; }
  main { max-width: none; padding: 0; }
  h1, h2, h3, p, li, td, th { color: #111 !important; }
  h1 em { color: #111; text-decoration: underline; }
  .card, .note { background: none; border: 1px solid #999; border-left: 3px solid #111; }
  a { color: #111; }
  .only-print { display: block !important; }
}
.only-print { display: none; }

/* science library */
.toc { font-size: 13px; line-height: 2; margin: 18px 0 8px; }
.lib-search { width: 100%; margin-top: 6px; padding: 11px 12px; background: rgba(244,240,232,.07); color: var(--paper); border: 1px solid rgba(244,240,232,.3); font: inherit; font-size: 14px; }
.ref-card h3 { margin: 0 0 4px; }
.ref-facts { margin: 12px 0; }
.ref-facts dt { font-size: 11px; letter-spacing: .12em; color: var(--acid); margin-top: 10px; }
.ref-facts dd { margin: 3px 0 0; color: #d6dccb; font-size: 14px; }
.ref-links a { margin-inline-end: 14px; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll table { min-width: 720px; }
