/* Science Explorers polish layer: a calmer "field notebook" look.
   Loaded last. Overrides the earlier activity-book styles and styles the newer components. */
:root {
  --ink: #1d2a3a;
  --muted: #5a6573;
  --paper: #f7f3ea;
  --card: #fffdf8;
  --line: #e3dccd;
  --line-strong: #cfc5b1;
  --blue: #2f6b3a;
  --blue-dark: #234f2b;
  --red: #d9533c;
  --lime: #f6c945;
  --accent: #e0a21c;
  --soft-shadow: 0 1px 2px rgba(29, 42, 58, 0.06), 0 8px 20px -12px rgba(29, 42, 58, 0.25);
  --radius: 14px;
  --heading-font: ui-rounded, "SF Pro Rounded", "Nunito", "Avenir Next", system-ui, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
body {
  background: var(--paper);
  background-image: none;
  color: var(--ink);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.brand,
.mission-number,
.lab-tile-code,
.world-card-code,
.change-card b,
.muddle-note b,
.day-counter {
  font-family: var(--heading-font);
}
h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2,
h3 {
  letter-spacing: -0.01em;
}
.eyebrow {
  text-transform: lowercase;
  letter-spacing: 0.01em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  filter: saturate(0.9) brightness(0.8);
}
.eyebrow::first-letter {
  text-transform: uppercase;
}
.pill {
  letter-spacing: 0.06em;
}

/* Header and navigation */
header {
  background: var(--card);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 14px 4%;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  color: var(--ink);
  font-size: 20px;
}
.brand-mark {
  box-shadow: none;
  transform: rotate(-4deg);
}
nav {
  background: none;
  gap: 2px;
  padding: 0;
  margin: 0 auto;
}
.nav {
  background: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.nav:hover {
  color: var(--ink);
  filter: none;
}
.nav.active {
  background: none;
  color: var(--ink);
  box-shadow: none;
  transform: none;
  border-bottom-color: var(--lime);
}
.nav-teach {
  color: var(--blue);
}
.level {
  color: var(--muted);
}
.level select {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
}

/* Page headings and cards */
main {
  max-width: 1240px;
  margin: 0 auto;
}
.heading {
  margin-bottom: 18px;
}
.heading h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.04;
}
.discovery {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transform: none;
}
.board-mission,
.lab-card,
.lab-tile,
.mission-card,
.journey-card,
.concept,
.challenge-teaser,
.table-card,
.brain-check,
.hunt-card,
.journal-entry,
.unit-card,
.lesson-card,
.teach-section,
.world-card {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow) !important;
}
.board-mission:hover,
.lab-tile:hover,
.world-card:hover,
.unit-card.ready:hover,
.lesson-card:hover,
.world-tile:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(29, 42, 58, 0.08),
    0 14px 26px -14px rgba(29, 42, 58, 0.35) !important;
}
.board-mission:active,
.lab-tile:active,
.world-card:active {
  transform: translateY(0);
}
.board-mission {
  background: var(--card) !important;
}
.board-mission:first-child {
  background: #fdf0c4 !important;
}
.lab-card,
.mission-card,
.journey-card {
  background: var(--card);
}
.job-card,
.change-card,
.discovery,
.hunt-card {
  transform: none;
}
.change-card {
  box-shadow: none;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--red);
  border-radius: 10px;
}
.job-card {
  background: #fdf0c4;
  border: 1px solid #ecd58e;
}
.hunt-card {
  background: #fdf0c4;
}

/* Buttons */
.primary,
.view-passport {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.12),
    0 4px 10px -4px rgba(36, 87, 197, 0.6);
  padding-left: 18px;
  padding-right: 18px;
}
.primary:hover,
.view-passport:hover {
  background: var(--blue-dark);
  filter: none;
}
.primary:active,
.view-passport:active {
  transform: translateY(1px);
  box-shadow: none;
}
.primary:disabled {
  background: #c9cfd8;
  color: #fff;
  box-shadow: none;
}
.state-buttons button,
.job-chip,
.match-word,
.match-meaning,
.task-option,
.atom-choices button,
.day-controls button:not(.primary) {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  color: var(--ink);
}
.state-buttons .active,
.atom-choices .active,
.job-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: none;
}
.task-option.correct,
.answer.correct,
.state-buttons button.right {
  background: #e3f3e8;
  border-color: #2f8f5b;
  color: #18492f;
}
.task-option.wrong,
.answer.wrong {
  background: #fbebe5;
  border-color: #c5684b;
  color: #6e2b16;
}
.task-option.chosen {
  border-color: var(--blue);
  background: #edf3e6;
  box-shadow: inset 0 0 0 1px var(--blue);
}
.feedback {
  border-radius: 10px;
  background: #f1ede3;
  border-left: 4px solid var(--line-strong);
}
.feedback.correct {
  background: #e3f3e8;
  border-left-color: #2f8f5b;
}
.feedback.retry {
  background: #fdf3d8;
  border-left-color: #c29018;
}
.link-button {
  color: var(--blue);
  text-underline-offset: 3px;
}

/* Tabs */
.segmented.world-tabs,
.detective-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  background: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  margin: 6px 0 20px;
}
.world-tabs button,
.detective-tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-weight: 750;
  font-size: 16px;
  min-height: 46px;
  padding: 0 2px;
  box-shadow: none;
}
.world-tabs .active,
.detective-tabs .active {
  background: none !important;
  color: var(--ink) !important;
  border-bottom-color: var(--accent);
  box-shadow: none !important;
}

/* Subject accents */
#explore,
#missions,
#lab,
#board {
  --accent: #d4930f;
}
#life {
  --accent: #2f8f5b;
}
#earth {
  --accent: #1f7d91;
}
#forces {
  --accent: #d9533c;
}
#skills {
  --accent: #6a4fbf;
}
#teach {
  --accent: var(--blue);
}

/* Chemistry sub-navigation */
.subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0 0 18px;
  font-size: 14px;
}
.subnav span {
  font-weight: 800;
  color: var(--muted);
  margin-right: 6px;
}
.subnav button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.subnav button[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Board: science area tiles */
.world-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 8px 0 12px;
}
.world-tile {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 18px;
  min-height: 112px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--soft-shadow);
  color: var(--ink);
  border-top: 6px solid var(--accent);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.world-tile b {
  font-family: var(--heading-font);
  font-size: 19px;
  line-height: 1.15;
}
.world-tile span {
  font-size: 13.5px;
  color: var(--muted);
}
.w-chem {
  --accent: #e0a21c;
}
.w-life {
  --accent: #2f8f5b;
}
.w-earth {
  --accent: #1f7d91;
}
.w-forces {
  --accent: #d9533c;
}
.w-skills {
  --accent: #6a4fbf;
}
.teacher-callout {
  margin: 6px 0 26px;
  color: var(--muted);
}
.board-h2 {
  font-size: 26px;
  margin: 10px 0 4px;
}

/* World pages */
.world-discovery {
  max-width: 340px;
}
.world-hint {
  color: var(--muted);
}
.world-big-idea {
  margin: 0 0 18px;
  background: var(--card) !important;
  border-left: 5px solid var(--accent) !important;
}
.world-big-idea h2 {
  font-size: 22px;
  margin: 6px 0;
}
.card-filter {
  margin: 0 0 14px;
}
.world-explore {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}
.world-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 108px;
  padding: 10px 12px;
  background: var(--card);
  text-align: left;
  color: var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.world-card.selected {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
.world-card.seen::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.world-card-code {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--cat, var(--ink));
}
.world-card-name {
  font-weight: 750;
  font-size: 14px;
  line-height: 1.2;
}
.world-card-tag {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--muted);
}
.world-detail {
  position: sticky;
  top: 90px;
  display: block !important;
  min-height: 0;
}
.world-detail .id-card {
  grid-template-columns: 1fr;
}
.world-symbol {
  font-size: 34px;
  background: var(--cat, #fdf0c4) !important;
  color: #fff !important;
}
.cat-mammal {
  --cat: #b5651d;
}
.cat-bird {
  --cat: #3f7d3a;
}
.cat-reptile {
  --cat: #5d8a2e;
}
.cat-amphibian {
  --cat: #2f9c74;
}
.cat-fish {
  --cat: #2f6b3a;
}
.cat-invertebrate {
  --cat: #8a5aa8;
}
.cat-plant {
  --cat: #2f8f5b;
}
.cat-fungus {
  --cat: #9c6b3e;
}
.cat-star {
  --cat: #d9930f;
}
.cat-rocky {
  --cat: #c4683a;
}
.cat-moon {
  --cat: #7d8794;
}
.cat-giant {
  --cat: #3a6f3e;
}
.cat-igneous {
  --cat: #9b3d2f;
}
.cat-sedimentary {
  --cat: #b88a3b;
}
.cat-metamorphic {
  --cat: #6b6f8c;
}
.cat-soil {
  --cat: #7a5230;
}
.cat-contact {
  --cat: #d9533c;
}
.cat-noncontact {
  --cat: #6a4fbf;
}
.cat-light {
  --cat: #d9930f;
}
.cat-energy {
  --cat: #1f7d91;
}
.cat-decision {
  --cat: #6a4fbf;
}
.cat-approach {
  --cat: #1f7d91;
}
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 4px 0 12px;
}
.skill-chips > span:first-child {
  font-weight: 800;
  color: var(--muted);
}
.skill-chip {
  border-radius: 999px;
  padding: 4px 10px;
  background: #efe9fb;
  color: #4a3790;
  font-weight: 700;
}
.order-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  margin: 12px 0 16px;
}
.order-strip li {
  counter-increment: step;
  flex: 1 1 140px;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-weight: 700;
}
.order-strip li::before {
  content: counter(step) ". ";
}
.order-strip li.placed {
  border: 1px solid #2f8f5b;
  background: #e3f3e8;
  color: #18492f;
}
.var-rows {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.var-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.var-row .state-buttons {
  margin: 0;
}
.var-row small {
  grid-column: 1 / -1;
  color: #8a3a1d;
  font-weight: 700;
}
.var-row.ok {
  border-color: #2f8f5b;
  background: #f1faf4;
}
.var-row.bad {
  border-color: #c5684b;
  background: #fdf3ef;
}
.cer-story {
  font-size: 18px !important;
  font-weight: 650;
  line-height: 1.45 !important;
  font-family: var(--body-font) !important;
}
.cer-hint {
  margin: -4px 0 6px;
  color: var(--muted);
  font-size: 14px;
}
.feature-options small {
  color: var(--muted);
}
.lab-bench {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.lab-tile-code {
  color: var(--ink);
}
.lab-tile-stamp {
  box-shadow: none;
}

/* Teach */
.teach-hero {
  max-width: 760px;
  margin-bottom: 8px;
}
.teach-hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  margin: 4px 0 8px;
}
.teach-hero p:last-child {
  font-size: 18px;
  color: var(--muted);
}
.year-chips {
  margin: 4px 0 16px;
}
.unit-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.unit-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 18px 20px;
  background: var(--card);
  color: var(--ink);
}
.unit-card.ready {
  border-top: 6px solid var(--blue) !important;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.unit-card.planned {
  background: #fbf8f1;
}
.unit-status {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--blue);
}
.planned .unit-status {
  color: var(--muted);
}
.unit-title {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 800;
}
.unit-sub,
.unit-focus {
  color: var(--muted);
}
.unit-q {
  font-style: italic;
}
.unit-card p {
  font-size: 14px;
  margin: 4px 0;
}
.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.app-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-height: 48px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
}
.app-link span {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
}
.teach-h2 {
  font-size: 24px;
  margin: 30px 0 10px;
}
.teach-note {
  color: var(--muted);
  font-size: 14.5px;
}
.lesson-flow {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lesson-flow li {
  display: grid;
  grid-template-columns: 70px 170px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
}
.flow-min {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
}
.flow-min small {
  font-size: 12px;
  margin-left: 2px;
  color: var(--muted);
}
.flow-stage {
  font-weight: 800;
}
.flow-detail {
  color: var(--muted);
  font-size: 14.5px;
}
.crumbs {
  margin: 0 0 8px;
}
.unit-head,
.lesson-head {
  max-width: 820px;
}
.unit-head h2,
.lesson-head h2 {
  font-size: 34px;
  margin: 2px 0 6px;
}
.unit-big-q,
.lesson-concept-lg {
  font-size: 19px;
  font-weight: 650;
}
.lesson-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lesson-card {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--card);
  text-align: left;
  color: var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.lesson-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 20px;
}
.lesson-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lesson-title {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 19px;
}
.lesson-concept {
  color: var(--muted);
}
.lesson-skill {
  font-size: 13.5px;
  font-weight: 800;
  color: #4a3790;
}
.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.lesson-meta span {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 700;
}
.lesson-meta b {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 800;
}
.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}
.lesson-actions button:not(.primary) {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-weight: 750;
  color: var(--ink);
}
.teach-section {
  background: var(--card);
  padding: 20px 24px;
  margin: 16px 0;
}
.teach-section h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.teach-section h3:not(:first-child) {
  margin-top: 18px;
}
.teach-section h4 {
  margin: 16px 0 4px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.two-col h3 {
  margin-top: 0 !important;
}
.two-col > div h3 + ul + h3 {
  margin-top: 18px !important;
}
.teach-list {
  padding-left: 20px;
  margin: 6px 0;
  display: grid;
  gap: 6px;
}
.vocab-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.vocab-list div {
  padding: 8px 12px;
  border-radius: 10px;
  background: #f4f0e6;
}
.vocab-list dt {
  font-weight: 800;
}
.vocab-list dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.claims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.claim {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-weight: 650;
}
.claim:first-child {
  border-left: 5px solid #e0a21c;
}
.claim:last-child {
  border-left: 5px solid #6a4fbf;
}
.exit-q {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.exit-q .example {
  color: #18492f;
  background: #f1faf4;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
}
.lesson-pager {
  display: flex;
  justify-content: space-between;
  margin: 18px 0;
}
.rubric td {
  font-size: 13.5px;
}
.sources-list a {
  color: var(--blue);
}
.teach-return {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
}

/* Present mode for projectors */
.present {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.present[hidden] {
  display: none !important;
}
body.presenting {
  overflow: hidden;
}
.present-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}
.present-close {
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 18px;
}
.present-slide {
  flex: 1;
  overflow: auto;
  padding: 3vh 6vw;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
}
.present-slide h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  margin: 0 0 2vh;
  outline: none;
}
.present-big {
  font-family: var(--heading-font);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.2;
}
.present-mid {
  font-size: clamp(22px, 2.7vw, 34px);
}
.present-recall,
.present-steps {
  display: grid;
  gap: 1.6vh;
  padding-left: 1.4em;
}
.present-recall li span {
  display: block;
}
.present-answer {
  display: block;
  color: #18492f;
}
.present-recall .link-button {
  font-size: 0.7em;
}
.present-q {
  margin-top: 2vh;
  padding: 1vh 1.2vw;
  border-left: 6px solid var(--blue);
  background: #eef2fb;
  border-radius: 8px;
}
.present .vocab-list dd {
  font-size: 0.75em;
}
.present .claim {
  font-size: 0.9em;
}
.present-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
}
.present-nav button:not(.primary) {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-weight: 800;
  font-size: 17px;
}
.present-nav .primary {
  min-height: 52px;
  font-size: 17px;
}
.present-timer {
  font-variant-numeric: tabular-nums;
}

/* Print: only the chosen sheet */
.print-sheet {
  display: none;
}
@media print {
  body.print-mode > *:not(.print-sheet) {
    display: none !important;
  }
  body.print-mode .print-sheet {
    display: block;
  }
  .print-page {
    font-family: var(--body-font);
    color: #000;
    page-break-after: always;
    font-size: 12pt;
  }
  .print-page h1 {
    font-size: 20pt;
    margin: 2pt 0 6pt;
  }
  .print-page h2 {
    font-size: 13pt;
    margin: 12pt 0 4pt;
  }
  .print-eyebrow {
    font-size: 9pt;
    color: #444;
    margin: 0;
  }
  .print-names {
    margin: 4pt 0 8pt;
  }
  .print-q {
    font-weight: 700;
  }
  .print-starter {
    margin: 4pt 0 0;
  }
  .print-line {
    border-bottom: 1px solid #999;
    height: 22pt;
  }
  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4pt;
  }
  .print-table th,
  .print-table td {
    border: 1px solid #555;
    padding: 4pt 6pt;
    height: 22pt;
    text-align: left;
    font-size: 10.5pt;
    vertical-align: top;
  }
  .rubric-grid td {
    height: 18pt;
    font-size: 9pt;
    color: #666;
  }
  .print-ticket {
    height: 48%;
  }
  .print-cut {
    border-top: 1px dashed #888;
    margin: 10pt 0;
    font-size: 9pt;
    color: #666;
  }
  .print-foot {
    margin-top: 10pt;
    font-size: 9pt;
    color: #444;
  }
}

/* Responsive */
@media (max-width: 1180px) {
  header {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .level {
    margin-left: auto;
  }
  .world-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .world-explore {
    grid-template-columns: 1fr;
  }
  .world-detail {
    position: static;
  }
  .two-col,
  .claims {
    grid-template-columns: 1fr;
  }
  .lesson-flow li {
    grid-template-columns: 56px 1fr;
  }
  .flow-detail {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .world-row {
    grid-template-columns: 1fr 1fr;
  }
  .var-row {
    grid-template-columns: 1fr;
  }
  .teach-section {
    padding: 16px;
  }
}
.eyebrow.keep-case {
  text-transform: none;
}
.teach-hero.compact h1 {
  font-size: 22px;
  margin: 0 0 4px;
}
.teach-hero.compact p:last-child {
  display: none;
}
.world-detail .id-card dd {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 700px) {
  header {
    position: static;
  }
  nav {
    flex-wrap: wrap;
    overflow: visible;
    gap: 0 4px;
  }
  .nav {
    padding: 8px 8px;
    font-size: 14.5px;
  }
}
html {
  scroll-padding-top: 150px;
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 0;
  }
}
