/* mathscafe styles. Colours and fonts are set once, here, and used everywhere. */
:root {
  --navy: #0b2b3a;
  --teal: #12b5a6;
  --teal-head: #0e9f93;
  --teal-deep: #0c8277;
  --orange: #ff7a1a;
  --orange-deep: #c2500a;

  --bg: #ffffff;
  --text: #0b2b3a;
  --panel: #ffffff;
  --line: #cfe5e2;
  --on-navy: #ffffff;
  --mint: #f2fbf9;
  --mint-line: #bfe3de;

  --font-head: "Lexend", "Segoe UI", system-ui, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  --font-script: "Lobster Two", "Segoe Script", "Brush Script MT", cursive;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal-head: #12b5a6;
    --teal-deep: #2dd4bf;
    --orange-deep: #ff9a4d;
    --bg: #0f1c21;
    --text: #eaf4f3;
    --panel: #17272d;
    --mint: #12262b;
    --mint-line: #2a3f46;
    --line: #2a3f46;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--orange); color: var(--navy);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { background: var(--mint); color: var(--navy); border-bottom: 1px solid var(--mint-line); }
.top {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { height: 60px; width: 47px; flex: none; fill: var(--teal-deep); }
.brand .words { display: flex; flex-direction: column; line-height: 1; }
.brand .by {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: 0.95rem; color: var(--orange-deep); margin-bottom: 2px;
}
.brand .name {
  font-family: var(--font-script); font-style: italic; font-weight: 400;
  font-size: 2.4rem; color: var(--teal-deep); line-height: 1;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: rgba(255,255,255,.7); }
.site-nav a[aria-current] { background: #fff; color: #0b2b3a; }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--teal); }

/* ---------- layout ---------- */
main { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 34px 0; }
.lede { margin: 6px 0 20px; max-width: 62ch; opacity: 0.92; }
h2.sec { font-size: 1.7rem; }
.muted { opacity: 0.8; }

/* ---------- home hero ---------- */
.hero {
  display: grid; gap: 28px; align-items: center; padding-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.hero h1 {
  font-family: var(--font-script); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.05; color: var(--teal-head);
}
.hero p { max-width: 46ch; margin: 14px 0 20px; }

.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; background: var(--teal); color: var(--navy);
  padding: 12px 20px; border-radius: 10px; margin: 0 8px 8px 0;
}
.btn:hover { background: #2dd4bf; }
.btn.alt { background: transparent; color: var(--text); border: 2px solid var(--teal-deep); padding: 10px 18px; }

/* ---------- puzzle card ---------- */
.puzzle { background: var(--navy); color: var(--on-navy); border-radius: 16px; padding: 24px; }
.badge {
  display: inline-block; background: var(--orange); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  padding: 4px 12px; border-radius: 999px;
}
.puzzle h2, .puzzle h3 { font-size: 1.5rem; margin: 12px 0 10px; }
.puzzle ol { margin: 0 0 14px; padding-left: 1.3em; }
.puzzle ol li { margin: 2px 0; }
.puzzle p { margin: 0 0 10px; }
.puzzle details { margin-top: 8px; }
.puzzle summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--teal); padding: 6px 0; }
.puzzle details p { margin: 6px 0 0; background: rgba(255, 255, 255, 0.09); border-radius: 8px; padding: 10px 12px; }
.puzzle .more { display: inline-block; margin-top: 12px; color: var(--teal); font-weight: 600; }

/* ---------- tiles and cards ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.tile {
  display: block; text-decoration: none; background: var(--panel);
  border: 1px solid var(--line); border-left: 6px solid var(--teal);
  border-radius: 12px; padding: 16px 18px;
}
.tile:hover { border-color: var(--teal-deep); }
.tile h3 { font-size: 1.25rem; }
.tile span { display: block; font-size: 0.95rem; opacity: 0.85; margin-top: 4px; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.card p { margin: 0 0 10px; }
.card a.link { font-family: var(--font-head); font-weight: 700; color: var(--teal-deep); }
.card.calm { border-top: 5px solid var(--orange); }

/* ---------- inner pages ---------- */
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); color: var(--text); }
.page-head p { margin: 10px 0 0; max-width: 62ch; }
.crumb { font-size: 0.9rem; margin: 0 0 10px; opacity: 0.85; }

.yearnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.yearnav a {
  display: block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
}
.yearnav a:hover { border-color: var(--teal-deep); }
.yearnav a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

.topics { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.topic { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; border-top: 5px solid var(--teal); }
.topic h3 { font-size: 1.15rem; margin-bottom: 8px; }
.topic ul, .plain-list { margin: 0; padding-left: 1.1em; }
.topic li, .plain-list li { margin: 4px 0; }
.empty { margin: 0; font-size: 0.95rem; opacity: 0.75; font-style: italic; }
.note { font-size: 0.9rem; opacity: 0.8; }

.resources { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.resources .box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.resources h2 { font-size: 1.3rem; margin-bottom: 8px; }
.resources .box a { color: var(--teal-deep); font-weight: 600; }

.puzzle-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.strategies { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 0; padding: 0; list-style: none; }
.strategies li { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: 12px; padding: 14px 18px; }
.strategies strong { font-family: var(--font-head); display: block; margin-bottom: 2px; }

.example { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; border-top: 5px solid var(--orange); }
.example h2 { font-size: 1.3rem; margin-bottom: 8px; }
.example ol { padding-left: 1.3em; margin: 10px 0 0; }
.example li { margin: 6px 0; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--mint); color: var(--text); border-top: 1px solid var(--mint-line); margin-top: 30px; }
.site-footer .in { max-width: 1100px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .mark { height: 48px; width: 38px; fill: var(--teal-deep); flex: none; }
.site-footer p { margin: 0; font-size: 0.95rem; opacity: 0.92; }
.site-footer a { color: var(--teal-deep); }
.site-footer a.quiet { opacity: 0.75; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header nav, .skip, .yearnav, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}

/* text for screen readers only */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- home page v2: year finder beside the headline, smaller puzzle ---------- */
.hero { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.findyear { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.findyear h2 { font-size: 1.3rem; margin-bottom: 14px; }
.findyear .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.findyear .tile { padding: 12px 14px; background: var(--bg); }
.findyear .tile h3 { font-size: 1.1rem; }

.curios { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.curio { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: 12px; padding: 16px 20px; }
.curio:nth-child(even) { border-left-color: var(--teal); }
.curio h3 { font-size: 1.15rem; margin-bottom: 6px; }
.curio p { margin: 0; }

.yrs-intro { margin: -6px 0 14px; font-size: 0.98rem; }
.hero-solo { display: block; padding-bottom: 6px; }
.hero-solo p { max-width: 54ch; }
.findyear .tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 760px) { .findyear .tiles { grid-template-columns: repeat(3, 1fr); } }

.newsgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.newsgrid .box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; border-top: 5px solid var(--teal); }
.newsgrid h3 { font-size: 1.15rem; margin-bottom: 8px; }
.newsgrid a { color: var(--teal-deep); font-weight: 600; }

.booklist { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.book { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: 12px; padding: 16px 20px; }
.book:nth-child(even) { border-left-color: var(--orange); }
.book h3 { font-size: 1.1rem; }
.book .by { margin: 2px 0 6px; font-style: italic; opacity: 0.85; }
.book p:last-child { margin: 0; }

.hero p.hero-line { font-family: var(--font-script); font-style: italic; font-size: clamp(1.25rem, 3.2vw, 1.7rem); line-height: 1.3; max-width: 40ch; margin: 12px 0 8px; }
.site-nav a { padding: 8px 9px; font-size: 0.92rem; }
.top { gap: 10px 18px; }

/* Year units */
.units { display: grid; gap: 10px; margin-top: 16px; }
.unit { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 12px; }
.unit summary { cursor: pointer; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; font-weight: 700; list-style-position: inside; }
.unit summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.ucode { color: var(--teal-deep, #0C8277); font-variant-numeric: tabular-nums; }
.utitle { font-size: 1.1rem; }
.udur { margin-left: auto; font-weight: 400; font-size: .9rem; opacity: .75; }
.ubody { padding: 0 18px 18px; }
.ubody h4 { margin: 14px 0 6px; font-size: 1rem; }
.ubody ul, .ubody ol { margin: 0; padding-left: 1.2em; }
.ustate { font-size: 1.05rem; margin: 4px 0 10px; }
.umeta { font-size: .95rem; background: var(--mint); border: 1px solid var(--mint-line); border-radius: 10px; padding: 10px 12px; }
.uq { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.uobj { list-style: none; padding: 0 !important; }
.uobj li { margin: 5px 0; }
.ocode { display: inline-block; min-width: 3.2em; font-weight: 700; color: var(--teal-deep, #0C8277); font-variant-numeric: tabular-nums; }
.crit { margin-top: 18px; }
.crit dt { font-weight: 700; margin-top: 8px; }
.crit dd { margin: 0; }

/* MYP criteria and ATL cards */
.critgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 14px; }
.critcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; border-top: 5px solid var(--teal); }
.critcard h3 { font-size: 1.1rem; margin: 0 0 8px; }
.critcard p { margin: 6px 0; }
.critcard ul { margin: 4px 0; padding-left: 1.1em; }
.ckey { display: inline-block; min-width: 1.6em; padding: 0 .35em; margin-right: 4px; border-radius: 6px; background: var(--mint); border: 1px solid var(--mint-line); color: var(--teal-deep); text-align: center; }

/* year shortcuts strip */
.yrstrip { background: var(--navy); color: #fff; }
.yrstrip .in { max-width: 1100px; margin: 0 auto; padding: 6px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.9rem; }
.yrstrip .lbl { opacity: 0.8; margin-right: 6px; }
.yrstrip a { color: #fff; text-decoration: none; font-weight: 700; padding: 3px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); }
.yrstrip a:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.yrstrip a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.yrstrip a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media print { .yrstrip { display: none; } }

/* home hero: title and line on the left, instructions on the right */
.hero-solo { display: grid; gap: 18px 36px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.hero p.hero-line { font-family: var(--font-head); font-style: normal; font-weight: 500; font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.5; max-width: 38ch; margin: 14px 0 6px; color: var(--navy); }
.hero-do { list-style: none; margin: 0; padding: 18px 22px; background: var(--mint); border: 1px solid var(--mint-line); border-radius: 14px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.35; }
.hero-do li { padding: 6px 0 6px 30px; position: relative; color: var(--teal-deep); }
.hero-do li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--teal); }

/* year page: jump links, criteria boxes, ATL boxes, unit booklets */
.jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; }
.jump .lbl { font-weight: 700; margin-right: 4px; }
.jump a { text-decoration: none; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--mint); border: 1px solid var(--mint-line); color: var(--teal-deep); }
.jump a:hover { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.crit4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
@media (min-width: 760px) { .crit4 { grid-template-columns: repeat(2, 1fr); } }
.atl5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.critcard .ctop { display: flex; gap: 14px; align-items: center; min-height: 64px; margin-bottom: 8px; }
.critcard .ctop h3 { margin: 0; font-size: 1.05rem; line-height: 1.2; }
.critcard .ckey { flex: none; width: 52px; height: 52px; margin: 0; padding: 0; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: #fff; background: var(--teal-deep); border: 0; }
.crit4 .critcard:nth-child(1) { border-top-color: var(--teal); }
.crit4 .critcard:nth-child(2) { border-top-color: var(--orange); }
.crit4 .critcard:nth-child(2) .ckey { background: var(--orange-deep); }
.crit4 .critcard:nth-child(3) { border-top-color: var(--navy); }
.crit4 .critcard:nth-child(3) .ckey { background: var(--navy); }
.crit4 .critcard:nth-child(4) { border-top-color: #3f6e80; }
.crit4 .critcard:nth-child(4) .ckey { background: #3f6e80; }
.ctag { margin: 2px 0 0; font-style: italic; color: var(--teal-deep); font-weight: 600; }
.atlcard h3 { margin-bottom: 2px; }
.atl5 .critcard:nth-child(5n+1) { border-top-color: var(--teal); }
.atl5 .critcard:nth-child(5n+2) { border-top-color: var(--orange); }
.atl5 .critcard:nth-child(5n+3) { border-top-color: var(--navy); }
.atl5 .critcard:nth-child(5n+4) { border-top-color: #3f6e80; }
.atl5 .critcard:nth-child(5n) { border-top-color: var(--teal-deep); }
.ubadge { font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--mint); border: 1px solid var(--mint-line); color: var(--teal-deep); }
.ubook { margin: 6px 0 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.ubook .btn { margin: 0; padding: 9px 16px; font-size: .98rem; }

/* unit cards */
.ucard { display: flex; gap: 20px; background: var(--bg); border: 2px solid var(--mint-line); border-radius: 18px; padding: 22px 24px; }
.units { gap: 16px; }
.unum { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; }
.unum.c0 { background: var(--mint); color: var(--teal-deep); }
.unum.c1 { background: #ffeadb; color: var(--orange-deep); }
.unum.c2 { background: #e4edf1; color: #3f6e80; }
.ucbody { min-width: 0; flex: 1; }
.ukick { margin: 2px 0 4px; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--teal-deep); }
.ucard h3 { font-size: 1.5rem; margin: 0 0 4px; }
.uq1 { margin: 0 0 12px; font-size: 1.1rem; opacity: .85; }
.chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.chips li b { margin-right: 4px; }
.chips li.c0 { background: var(--mint); } .chips li.c0 b { color: var(--teal-deep); }
.chips li.c1 { background: #ffeadb; } .chips li.c1 b { color: var(--orange-deep); }
.chips li.c2 { background: #e4edf1; } .chips li.c2 b { color: #3f6e80; }
.umore { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.umore summary { cursor: pointer; font-weight: 700; color: var(--teal-deep); padding: 4px 0; }
.umore summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 560px) { .ucard { flex-direction: column; gap: 12px; padding: 18px; } .unum { width: 52px; height: 52px; font-size: 1.5rem; } .ucard h3 { font-size: 1.3rem; } }
@media (prefers-color-scheme: dark) { .unum.c1, .chips li.c1 { background: #3a2a1f; } .unum.c2, .chips li.c2 { background: #1f323b; } .chips li.c0, .unum.c0 { background: #123a38; } }

.sklist { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 10px 0 6px; }
.skl h4 { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; }
.skl h4 span { color: var(--teal-deep); margin-right: 4px; }
.skl ul { margin: 0; padding-left: 1.15em; }
.skl li { margin: 3px 0; }

/* unit boxes that open */
.unit { background: var(--bg); border: 2px solid var(--mint-line); border-left: 2px solid var(--mint-line); border-radius: 18px; overflow: hidden; }
.unit[open] { border-color: var(--teal); }
.unit > summary { list-style: none; cursor: pointer; display: flex; gap: 18px; align-items: center; padding: 18px 22px; }
.unit > summary::-webkit-details-marker { display: none; }
.unit > summary::after { content: ""; margin-left: auto; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--teal-deep); border-bottom: 3px solid var(--teal-deep); transform: rotate(45deg); transition: transform .15s; }
.unit[open] > summary::after { transform: rotate(-135deg); }
.unit > summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; border-radius: 16px; }
.usum { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.usum .ukick { font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--teal-deep); }
.usum .utitle { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.usum .uq1 { margin: 0; font-size: 1rem; opacity: .8; font-weight: 400; }
.ubody { padding: 4px 22px 22px; display: grid; gap: 14px; }
.ubox { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.ubox h4 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.3; }
.ubox h5 { margin: 10px 0 4px; font-size: .95rem; }
.uinfo { border-top: 5px solid var(--teal); }
.ulesson { border-top: 5px solid var(--orange); }
.ulesson:nth-of-type(3n+2) { border-top-color: var(--teal); }
.ulesson:nth-of-type(3n) { border-top-color: #3f6e80; }
.ulist { margin: 0; display: grid; gap: 0; }
.ulist > div { display: grid; grid-template-columns: 11rem 1fr; gap: 6px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.ulist dt { font-weight: 700; color: var(--teal-deep); }
.ulist dd { margin: 0; min-width: 0; }
.ulist ul { margin: 0; padding-left: 1.1em; }
.ulist li { margin: 2px 0; }
.soon { font-size: .92rem; opacity: .65; font-style: italic; }
@media (max-width: 560px) { .unit > summary { padding: 14px; gap: 12px; } .ubody { padding: 4px 12px 16px; } .ulist > div { grid-template-columns: 1fr; gap: 2px; } }
.uinfo .ubook { margin-top: 16px; }

/* summary: title, question beneath, small facts line; no number tile */
.usum { display: flex; flex-direction: column; gap: 4px; }
.usum > span { display: block; }
.usum .utitle { order: 1; }
.usum .uq1 { order: 2; }
.usum .ukick { order: 3; margin-top: 2px; }
.unit > summary { gap: 12px; }
.jump a { display: inline-block; }

/* I can statements as cards */
.icanlist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.icanlist li { background: var(--mint); border: 1px solid var(--mint-line); border-radius: 14px; padding: 16px 18px 16px 58px; position: relative; font-size: 1.05rem; line-height: 1.4; }
.icanlist li::before { content: "I can"; display: block; font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 2px; }
.icanlist li::after { content: ""; position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--teal-head); }
.atl5 + h3.sub { margin-top: 28px; }

/* approaches to learning as horizontal rows */
.atlrows { display: grid; gap: 12px; margin-top: 14px; }
.atlrow { display: grid; grid-template-columns: 11rem 1fr; gap: 8px 22px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: 12px; padding: 16px 20px; }
.atlrow h3 { margin: 0; font-size: 1.1rem; }
.atlrow ul { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 32px; }
.atlrow li { margin: 0 0 4px; break-inside: avoid; }
.atlrow:nth-child(5n+2) { border-left-color: var(--orange); }
.atlrow:nth-child(5n+3) { border-left-color: var(--navy); }
.atlrow:nth-child(5n+4) { border-left-color: #3f6e80; }
.atlrow:nth-child(5n) { border-left-color: var(--teal-deep); }
@media (max-width: 720px) { .atlrow { grid-template-columns: 1fr; } .atlrow ul { columns: 1; } }
.atlrows + h3.sub { margin-top: 32px; }

/* numbered exploration boxes */
.explist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.explist li { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 2px solid var(--mint-line); border-radius: 16px; padding: 18px 20px; }
.explist .exn { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-deep); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.explist .ext { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.explist a { color: inherit; }

.atlrow ul { columns: 1; }
.atlrow li { margin-bottom: 6px; }

h2.sec.script { font-family: var(--font-script); font-style: italic; font-weight: 400; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--teal-head); }
/* home hero: title on one line, thin script line beneath, one big "Be curious." */
.hero-solo { display: block; }
.hero h1 { white-space: nowrap; font-size: clamp(1.6rem, 7vw, 4.2rem); }
.hero p.hero-line { font-family: var(--font-script); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 3.4vw, 1.75rem); line-height: 1.3; max-width: 44ch; margin: 10px 0 14px; color: var(--navy); }
.hero p.hero-curious { font-family: "Caveat Brush", var(--font-script); font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1; color: var(--orange-deep); margin: 6px 0 0; transform: rotate(-2deg); transform-origin: left; display: inline-block; text-decoration: underline wavy var(--teal) 3px; text-underline-offset: 10px; }

/* page titles in the script font */
.page-head h1 { font-family: var(--font-script); font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; color: var(--teal-head); }

/* wider paragraphs on laptops */
.lede, .page-head p { max-width: 100ch; }
.hero p.hero-line { max-width: 60ch; }
.prose { max-width: 80ch; }

/* orange accent on every box: thick left edge on wide boxes, thick top edge on grid cards */
.topic, .newsgrid .box, .critcard, .crit4 .critcard, .atl5 .critcard, .uinfo, .ulesson, .card.calm, .example { border-top: 5px solid var(--orange) !important; }
.crit4 .critcard:nth-child(n), .atl5 .critcard:nth-child(n) { border-top-color: var(--orange) !important; }
.strategies li, .book, .curio, .atlrow, .atlrow:nth-child(n), .explist li, .icanlist li, .resources .box, .unit { border-left: 6px solid var(--orange) !important; }
.card { border-top: 5px solid var(--orange); }
.unit { border-top-color: var(--mint-line); border-right-color: var(--mint-line); border-bottom-color: var(--mint-line); }
.unit[open] { border-top-color: var(--teal); border-right-color: var(--teal); border-bottom-color: var(--teal); }
.icanlist li { border-radius: 14px; }
.page-head h1 { color: var(--orange-deep); }
.page-head h1 { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; color: var(--orange-deep); }

.page-head p.sub-year { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 1.4rem; color: var(--teal-deep); margin: 4px 0 10px; }
.icanlist li { padding-left: 18px; }
.icanlist li::after { display: none; }
.icanlist li::before { color: var(--orange-deep); }
/* tighter vertical rhythm */
section { padding: 18px 0; }
.lede { margin: 4px 0 12px; }
.page-head { padding: 22px 0 2px; }
.page-head p { margin: 6px 0 0; }
h2.sec { margin: 0 0 6px; }
.atlrows, .icanlist { margin-top: 10px; gap: 10px; }
.atlrows + h3.sub, .atl5 + h3.sub { margin-top: 18px; }
.atlrow { padding: 12px 18px; }
.atlrow li { margin-bottom: 3px; }
/* ATL box titles in the "Be curious" font */
.atlrow h3 { font-family: "Caveat Brush", var(--font-script); font-weight: 400; font-size: 1.7rem; line-height: 1.1; color: var(--orange-deep); }
/* "Be curious" font (Caveat Brush) as the small-heading voice */
.tile h3, .card h3, .curio h3, .findyear .tile h3, .atlrow h3, h3.sub {
  font-family: "Caveat Brush", var(--font-script); font-weight: 400; font-style: normal; letter-spacing: .01em; color: var(--orange-deep);
}
.tile h3, .card h3, .curio h3, h3.sub { font-size: 1.6rem; line-height: 1.1; }
.icanlist li::before { font-family: "Caveat Brush", var(--font-script); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; text-transform: none; line-height: 1; }
.exn { font-family: "Caveat Brush", var(--font-script); font-weight: 400; color: var(--orange-deep); }

.ulesson h4, .ulesson h4 .ocode { color: var(--orange-deep); }
.critcard .ckey, .crit4 .critcard:nth-child(n) .ckey { background: var(--orange-deep) !important; }
.hero h1 { color: var(--orange-deep); }
.hero h1 { font-family: var(--font-head); font-style: italic; font-weight: 500; line-height: 1.15; }
.hero p.hero-line { font-family: var(--font-head); font-style: italic; font-weight: 400; color: var(--teal-deep); font-size: clamp(1.05rem, 3vw, 1.4rem); line-height: 1.4; }
.hero p.hero-curious { display: block; width: fit-content; margin: 14px auto 0; transform-origin: center; }
/* spacing after hero, flags, world page */
.hero { padding-bottom: 28px; }
#wonder { margin-top: 12px; }
.flags { display: inline-flex; gap: 6px; vertical-align: middle; margin-right: 10px; }
.flags img { display: block; width: 32px; height: 24px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(11,43,58,.18); }
.worldlist { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 14px; }
.world { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: 12px; padding: 16px 20px; }
.world .wtop { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.world .wplace { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); }
.world h2 { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--orange-deep); margin: 0 0 6px; }
.world p { margin: 0; }
.world .wtop .flags { margin-right: 8px; }
.curio .flags { display: flex; margin: 0 0 8px; }
/* vertical timeline */
.timeline { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--teal); }
.tl { position: relative; padding: 0 0 22px 48px; }
.tl-dot { position: absolute; left: 6px; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--orange); }
.tl .world { margin: 0; }
.tl-when { margin: 0 0 4px; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--teal-deep); }
@media (min-width: 900px) {
  .timeline::before { left: 50%; margin-left: -2px; }
  .tl { width: 50%; padding: 0 44px 22px 0; }
  .tl:nth-child(even) { margin-left: 50%; padding: 0 0 22px 44px; margin-top: -110px; }
  .tl-dot { left: auto; right: -10px; }
  .tl:nth-child(even) .tl-dot { right: auto; left: -10px; }
  .tl:nth-child(odd) .world { text-align: left; }
}

/* brand more prominent; hero text in better proportion */
.brand { gap: 16px; }
.brand .mark { height: 96px; width: 75px; }
.brand .by { font-size: 1.35rem; margin-bottom: 4px; }
.brand .name { font-size: 3.6rem; }
.hero h1 { font-size: clamp(1.5rem, 5vw, 3rem); }
.hero p.hero-line { font-size: clamp(1rem, 2.4vw, 1.3rem); }
.hero p.hero-curious { font-size: clamp(1.8rem, 5vw, 2.6rem); }
@media (max-width: 560px) { .brand .mark { height: 72px; width: 56px; } .brand .name { font-size: 2.8rem; } .brand .by { font-size: 1.1rem; } }

/* second pass: brand bigger still, hero headline smaller */
.brand { gap: 20px; }
.brand .mark { height: 128px; width: 100px; }
.brand .by { font-size: 1.7rem; }
.brand .name { font-size: 5rem; }
.hero h1 { font-size: clamp(1.3rem, 4vw, 2.4rem); }
.hero p.hero-line { font-size: clamp(0.95rem, 2vw, 1.15rem); }
.hero p.hero-curious { font-size: clamp(1.6rem, 4vw, 2.2rem); }
@media (max-width: 560px) { .brand .mark { height: 88px; width: 69px; } .brand .name { font-size: 3.4rem; } .brand .by { font-size: 1.2rem; } }

/* third pass: brand is the focus */
.brand .mark { height: 150px; width: 117px; }
.brand .by { font-size: 2rem; }
.brand .name { font-size: 6.2rem; }
.hero h1 { font-size: clamp(1.2rem, 3.4vw, 2rem); }
.hero p.hero-line { font-size: clamp(0.95rem, 1.8vw, 1.1rem); }
.hero p.hero-curious { font-size: clamp(1.5rem, 3.4vw, 2rem); }
@media (max-width: 700px) { .brand .mark { height: 96px; width: 75px; } .brand .name { font-size: 3.8rem; } .brand .by { font-size: 1.3rem; } }

/* year buttons sit under the header; hero headline back up a little */
.yrstrip { background: var(--mint); color: var(--navy); border-bottom: 1px solid var(--mint-line); }
.yrstrip .lbl { opacity: 1; font-weight: 600; }
.yrstrip a { color: var(--teal-deep); background: #fff; border: 1px solid var(--teal); }
.yrstrip a:hover, .yrstrip a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.hero h1 { font-size: clamp(1.6rem, 5vw, 3.2rem); }
.hero p.hero-line { font-size: clamp(1rem, 2.4vw, 1.35rem); }
.hero p.hero-curious { font-size: clamp(1.8rem, 5vw, 2.6rem); }

/* Ms B's tucked close to the wordmark */
.brand .by { margin-bottom: -0.9rem; position: relative; z-index: 1; }
.brand .name { line-height: 0.9; }

.brand .by { font-size: 1.5rem; margin-bottom: -1.5rem; }
@media (max-width: 700px) { .brand .by { font-size: 1.1rem; margin-bottom: -0.9rem; } }

/* main nav as buttons; current page in orange */
.site-nav { gap: 8px; }
.site-nav a { background: #fff; color: var(--teal-deep); border: 2px solid var(--teal); border-radius: 999px; padding: 8px 18px; font-size: 1.05rem; font-weight: 700; box-shadow: none; }
.site-nav a:hover { background: var(--mint); }
.site-nav a[aria-current] { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; box-shadow: none; }
.site-nav a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.site-nav a { border-radius: 8px; padding: 8px 16px; }

/* nav boxes like the old selected Home: white, soft curve, thick teal base */
.site-nav a { background: #fff; color: var(--navy); border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 700; box-shadow: inset 0 -4px 0 var(--teal); }
.site-nav a:hover { background: #fff; box-shadow: inset 0 -4px 0 var(--orange); }
.site-nav a[aria-current] { background: var(--orange-deep); color: #fff; box-shadow: inset 0 -4px 0 #8f3a05; }

.site-nav a[aria-current] { background: #fff; color: var(--navy); box-shadow: inset 0 -4px 0 var(--orange); }

/* links on their own row, divided from the title, and smaller */
.site-header .top { row-gap: 14px; }
.site-nav { flex: 1 1 100%; border-top: 2px solid var(--mint-line); padding-top: 14px; gap: 6px; }
.site-nav a { font-size: 0.95rem; padding: 7px 14px; border-radius: 10px; box-shadow: inset 0 -3px 0 var(--teal); }
.site-nav a:hover { box-shadow: inset 0 -3px 0 var(--orange); }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--orange); }

/* Slide strip: scroll sideways through a lesson's slides */
.ustrip { border-top: 5px solid var(--orange); }
.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border: 2px solid var(--mint-line); border-radius: 14px; background: var(--bg); }
.strip:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.strip .slide { flex: 0 0 100%; position: relative; scroll-snap-align: start; }
@media (min-width: 700px) { .strip .slide { flex: 0 0 50%; border-right: 2px solid var(--mint-line); box-sizing: border-box; } }
.strip img { cursor: zoom-in; }
.strip img { width: 100%; height: auto; display: block; }
.strip .hot { position: absolute; display: block; border-radius: 6px; }
.strip .hot:hover, .strip .hot:focus-visible { background: rgba(255,122,26,.18); outline: 2px solid var(--orange); }
.stripbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.stripnum { font-weight: 700; color: var(--teal-deep); }
.stripbtn { font: inherit; font-weight: 700; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--orange); background: var(--bg); color: var(--ink, #24505f); }
.stripbtn:hover, .stripbtn:focus-visible { background: var(--orange); color: #fff; outline: none; }
.stripsheets { margin: 12px 0 0; }


/* Practice booklet link: light box */
.ubook .btn { background: var(--mint); color: var(--teal-deep); border: 2px solid var(--mint-line); font-weight: 600; }
.ubook .btn:hover, .ubook .btn:focus-visible { background: #fff1e6; border-color: var(--orange); color: var(--orange-deep); }

/* Slide strip: full width of the box so students can read it */
.ustrip .strip, .ustrip .stripbar { max-width: none; margin-left: 0; margin-right: 0; }
.ustrip .stripbar { margin-top: 10px; }

/* Lessons list in unit information */
.ulessons { margin-top: 14px; }
.ulessons ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.ulessons li { line-height: 1.4; }
.ulessons .ocode { font-weight: 700; color: var(--teal-deep); margin-right: 6px; }
.ustrip { scroll-margin-top: 16px; }

/* No orange top on the slideshow box */
.ubox.ustrip, .ustrip { border-top: 1px solid var(--line) !important; border-top-color: var(--mint-line) !important; }

/* Unit title: orange and larger */
.usum .utitle { color: #f26a0a; font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
@media (max-width: 560px) { .usum .utitle { font-size: 1.4rem; } }

/* Unit boxes: teal side edge */
.unit { border-left: 6px solid var(--teal) !important; }

/* extra MYP unit information */
.umore{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem 1.5rem;margin:1rem 0}
.umore h5{margin:0 0 .25rem}
.umore ul{margin:0;padding-left:1.1rem}
.topichead { margin: 18px 0 2px; font-size: 1.15rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em; }
.topichead:first-child { margin-top: 0; }

/* private revision area: plain fonts, no script lettering */
.plain .revbrand { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--teal-deep); text-decoration: none; padding: 14px 0; display: inline-block; }
.plain h1, .plain .page-head h1 { font-family: var(--font-head); font-style: normal; font-weight: 700; color: var(--navy); }
.plain h2, .plain h3, .plain h4, .plain h5, .plain .utitle { font-style: normal; }
.revlinks { margin: 8px 0 0; padding-left: 1.2em; }
.revlinks li { margin: 6px 0; }

/* revision notes text */
.revnotes { line-height: 1.6; }
.revnotes .revlead { font-size: 1.05rem; }
.revnotes h3 { margin: 1.6em 0 .4em; color: var(--teal-deep); font-size: 1.3rem; }
.revnotes h4 { margin: 1.2em 0 .3em; font-size: 1.05rem; }
.revnotes table { border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.revnotes th, .revnotes td { border: 1px solid var(--line); padding: 6px 12px; text-align: left; vertical-align: top; }
.revnotes th { background: var(--panel); }
.revnotes .qa li { margin: .6em 0; }
.revnotes details { margin-top: 4px; }
.revnotes summary { cursor: pointer; font-weight: 700; color: var(--teal-deep); }

.oitems { list-style: none; margin: 6px 0 10px; padding: 0; }
.oitems li { margin: 4px 0; }
.otag { display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 10px; margin-right: 6px; vertical-align: 1px; }
.otag.both { background: #e3f3f2; color: #0b6b6b; }
.otag.ext { background: #e8742a; color: #fff; }
.otag.std { background: #e3f3f2; color: #0b6b6b; }
.otag.enr { background: #ece6f5; color: #4b2f7d; }
.otag.core { background: #e3f3f2; color: #0b6b6b; }

/* Compact unit boxes on year pages */
.units { gap: 5px; }
.unit { border-width: 1px; border-left-width: 4px !important; border-radius: 8px; }
.unit > summary { padding: 5px 14px; gap: 8px; }
.unit .usum .utitle { font-size: .9rem; line-height: 1.2; }
.unit > summary::after { width: 9px; height: 9px; border-width: 2px; }
.topichead { margin: 18px 0 4px; }
@media (max-width: 560px) { .unit > summary { padding: 8px 12px; } }

/* Jump-to buttons match the size of the header year buttons */
.jump { gap: 4px 6px; margin: 10px 0 2px; }
.jump .lbl { font-size: .9rem; margin-right: 6px; }
.jump a { font-size: .9rem; font-weight: 700; padding: 3px 11px; }

/* Year page headings upright */
.page-head h1 { font-style: normal; }
/* The brush font (Caveat Brush) is only for "Be curious!" and the "Something to wonder about" questions. Everything else uses the clean fonts. */
.hero h1, .page-head h1, h2.sec.script { font-family: var(--font-head); font-style: normal; font-weight: 600; }
.hero h1 { font-size: clamp(1.5rem, 5.6vw, 3.2rem); letter-spacing: -.01em; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); letter-spacing: -.01em; }
h2.sec.script { font-size: clamp(1.5rem, 4vw, 2rem); }
.hero p.hero-line { font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: clamp(1.05rem, 2.6vw, 1.3rem); }
.tile h3, .card h3, .atlrow h3, h3.sub, .findyear .tile h3 { font-family: var(--font-head); font-weight: 600; font-style: normal; letter-spacing: 0; font-size: 1.2rem; line-height: 1.25; }
.icanlist li::before { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.exn { font-family: var(--font-head); font-weight: 600; }
.curio h3 { font-family: "Caveat Brush", var(--font-script); font-weight: 400; font-style: normal; font-size: 1.6rem; line-height: 1.1; }

.ustatus{font-size:.72rem;font-weight:700;color:var(--orange-deep);border:1px solid var(--orange);border-radius:999px;padding:1px 8px;margin-left:8px;white-space:nowrap}

/* I&S revision: notes tables, flash cards, quizzes */
.rtablewrap { overflow-x: auto; margin: 8px 0 14px; }
.rtable { border-collapse: collapse; width: 100%; font-size: .95rem; }
.rtable th, .rtable td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 7rem; }
.rtable th { background: var(--mint); color: var(--teal-deep); }
.fcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.fcard { min-height: 130px; padding: 14px; border: 2px solid var(--teal-deep); border-radius: 12px; background: #fff; color: var(--text); font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; }
.fcard .fcf { font-size: 1.15rem; font-weight: 700; color: var(--teal-deep); }
.fcard .fcb { font-size: .95rem; line-height: 1.4; }
.fcard.flipped { background: var(--mint); border-color: var(--orange); }
.fcard:focus-visible, .qopt:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.quiz { margin: 14px 0 22px; }
.qq { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 14px; margin: 0 0 12px; display: grid; gap: 8px; }
.qq legend { font-weight: 700; padding: 0 6px; }
.qopt { text-align: left; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; cursor: pointer; }
.qopt.right { border-color: var(--teal-deep); background: var(--mint); }
.qopt.wrong { border-color: var(--orange-deep); background: #fff1e6; }
.qfb { margin: 0; min-height: 1.2em; }
.qscore { font-weight: 700; font-size: 1.1rem; }

/* Longer home tagline: wrap instead of running off the page */
.hero h1 { white-space: normal; font-size: clamp(1.5rem, 4.6vw, 2.8rem); }

/* Home: smaller tagline, bigger Be curious with more space */
.hero h1 { font-size: clamp(1.3rem, 3.8vw, 2.3rem); }
.hero p.hero-curious { font-size: clamp(2.6rem, 8vw, 4.4rem); margin: 30px auto 0; }

/* Balance: teal for headings and box edges, orange kept for accents and buttons */
.hero h1, .page-head h1 { color: var(--teal-deep) !important; }
.strategies li, .book, .curio, .atlrow, .atlrow:nth-child(n), .explist li, .icanlist li, .resources .box, .unit, .world { border-left-color: var(--teal) !important; }
.curio h3, .world h3 { color: var(--teal-deep); }

/* Something to wonder about: clean card titles */
.curio h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.ucollapse { padding: 0; }
.ucollapse > summary { list-style: none; cursor: pointer; padding: 14px 20px; display: flex; align-items: center; gap: 10px; }
.ucollapse > summary::-webkit-details-marker { display: none; }
.ucollapse > summary::before { content: "\25B8"; color: var(--orange-deep); font-size: 1.1rem; transition: transform .15s; }
.ucollapse[open] > summary::before { transform: rotate(90deg); }
.ucollapse > summary h4 { margin: 0; }
.ucollapse > .cbody { padding: 0 20px 18px; }
.ucollapse > summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 14px; }
.ubox.ustrip.rsbox { border-top: 5px solid var(--teal) !important; }
.ucollapse.rsbox > summary h4 { color: var(--teal-deep); }

/* Revision notes as boxes: one idea per box, two across */
.ngrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 18px; }
.nbox { background: #fff; border: 2px solid #1a73e8; border-radius: 10px; padding: 14px 16px; font-size: 1.05rem; line-height: 1.5; }
.nbox.nmist { border-color: var(--orange); }
.nbox.next { border-color: var(--teal-deep); }
.nbox details summary { color: var(--teal-deep); font-weight: 700; cursor: pointer; margin-top: 8px; }
.nintro { margin: 4px 0 8px; }
@media (max-width: 640px) { .ngrid { grid-template-columns: 1fr; } }
.nbox .fig svg { display: block; width: 100%; height: auto; max-height: 110px; margin: 0 0 8px; }
.nbox .ln { margin: 0 0 6px; }
.nbox .exl { margin: 0 0 6px 18px; padding-left: 10px; border-left: 4px solid var(--teal-deep); color: #0b4f46; }
.nbox .exl span, .nbox .chk > span { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; color: var(--teal-deep); }
.nbox .chk { margin-top: 8px; padding: 8px 12px; background: #fff; border: 2px solid var(--orange); border-radius: 10px; font-size: .95rem; }
.nbox .chk > span { color: #c2570a; }
.nbox .chk b { color: var(--teal-deep); }
.nbox { display: flex; flex-direction: column; }
.nbox .chk.chk { margin-top: auto; }
.nbox .exl:last-child, .nbox .ln:last-child { margin-bottom: 12px; }
.nbox .chk:last-child { margin-bottom: 0; }
.nbox .chk.chk { margin-top: auto; }
/* How to revise: colourful, scannable layout */
.rv { --rv-blue: #1d73e0; --rv-teal: #0c8277; --rv-gold: #e3b80f; --rv-red: #d93c3c; --rv-orange: #e8750f; --rv-green: #2e9e4f;
  --rv-blue-t: #eaf2fd; --rv-teal-t: #e3f1ee; --rv-gold-t: #fdf6d8; --rv-red-t: #fce9e9; --rv-orange-t: #fdebdd; --rv-green-t: #e8f6ec; --rv-ink: #0b2b3a; }
@media (prefers-color-scheme: dark) { .rv { --rv-blue-t: #14304f; --rv-teal-t: #0f3a36; --rv-gold-t: #3d3512; --rv-red-t: #4a1f1f; --rv-orange-t: #4a2d12; --rv-green-t: #143a22; --rv-ink: #f2fbf9; } }
.rv > section { margin: 0 0 30px; }
.rv-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 14px; }
.rv-grid.rv-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.rv .rv-card { position: relative; background: var(--rv-blue-t); color: var(--rv-ink); border: 0 !important; border-left: 10px solid var(--rv-blue) !important; border-radius: 16px; padding: 18px 20px; }
.rv .rv-card.rv-c1 { background: var(--rv-teal-t); border-left-color: var(--rv-teal) !important; }
.rv .rv-card.rv-c2 { background: var(--rv-gold-t); border-left-color: var(--rv-gold) !important; }
.rv .rv-card.rv-c3 { background: var(--rv-green-t); border-left-color: var(--rv-green) !important; }
.rv .rv-card.rv-p1 { background: var(--rv-red-t); border-left-color: var(--rv-red) !important; }
.rv .rv-card.rv-p2 { background: var(--rv-orange-t); border-left-color: var(--rv-orange) !important; }
.rv .rv-card.rv-p3 { background: var(--rv-gold-t); border-left-color: var(--rv-gold) !important; }
.rv .rv-card.rv-p4 { background: var(--rv-green-t); border-left-color: var(--rv-green) !important; }
.rv .rv-card h3 { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.25; margin: 0 0 6px; }
.rv .rv-card p { margin: 0 0 8px; }
.rv .rv-card p:last-child { margin-bottom: 0; }
.rv .rv-sub { font-weight: 700; }
.rv-n { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--rv-teal); color: #fff; font-family: var(--font-head); font-weight: 700; flex: 0 0 auto; }
.rv-card .rv-n { margin-bottom: 8px; }
.rv .rv-band { background: var(--rv-teal-t); color: var(--rv-ink); border-left: 10px solid var(--rv-teal); border-radius: 16px; padding: 20px 22px; }
.rv .rv-band .sec, .rv .rv-band h3 { color: var(--rv-ink); }
.rv-h3 { font-family: var(--font-head); font-size: 1.25rem; margin: 0 0 6px; }
.rv-split { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center; margin: 10px 0 16px; }
.rv-fig { margin: 0; }
.rv-fig svg { width: 100%; height: auto; display: block; }
.rv-fig figcaption { font-size: 0.95rem; margin-top: 6px; }
.rv-svgbg { fill: #fff; }
.rv-axis { stroke: #4a5f7a; stroke-width: 2; }
.rv-curve { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rv-curve.rv-red, .rv-key.rv-red { stroke: #d93c3c; background: #d93c3c; }
.rv-curve.rv-green, .rv-key.rv-green { stroke: #0c8277; background: #0c8277; }
.rv-dot { fill: #0c8277; }
.rv-t { font: 600 13px var(--font-body); fill: #4a5f7a; }
.rv-tg { fill: #0c8277; }
.rv-key { display: inline-block; width: 1.4em; height: 0.5em; border-radius: 3px; margin: 0 0.4em 0 0.8em; vertical-align: middle; }
.rv-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.rv-steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); color: var(--text); border-radius: 12px; padding: 12px 14px; }
.rv-steps li strong { font-family: var(--font-head); display: block; margin-bottom: 2px; }
.rv-steps li > div { flex: 1 1 auto; }
.rv-steps li strong + span { display: block; }
.rv-note { margin-top: 14px; font-weight: 600; }
.rv-refs { margin: 12px 0 0; padding-left: 1.2em; }
.rv-refs li { margin: 6px 0; }

/* How to revise: priority 2x2 */
.rv-2x2 { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 14px; margin-top: 14px; }
.rv .rv-axis { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--bg, #fff) !important; color: var(--rv-ink); border: 3px solid var(--rv-blue) !important; border-radius: 16px; padding: 10px 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.rv .rv-corner { visibility: hidden; border: 0 !important; }
.rv-2x2 .rv-sub { display: none; }
@media (max-width: 720px) {
  .rv-2x2 { grid-template-columns: 1fr; }
  .rv .rv-axis:not(.rv-rowh) { display: none; }
  .rv-2x2 .rv-sub { display: block; }
}

/* Unit information: stacked coloured boxes */
.ubx { border-radius: 10px; border-left: 8px solid var(--teal); padding: 8px 14px; margin: 8px 0; background: var(--mint); }
.ubx h5 { margin: 0 0 3px; font-size: 1rem; }
.ubx p { margin: 2px 0; }
.ubx ul { margin: 0; padding-left: 1.2em; }
.soi { background: #FDEBDD; border-left-color: #E8750F; }
.uqlist { display: block; }
.qf { background: #EAF2FD; border-left-color: #1D73E0; }
.qc { background: #E3F1EE; border-left-color: #0C8277; }
.qd { background: #FDEBDD; border-left-color: #E8750F; }
.uatlh { margin: 12px 0 0; font-size: 1rem; }
.atlb.ac { background: #EAF2FD; border-left-color: #1D73E0; }
.atlb.as { background: #E3F1EE; border-left-color: #0C8277; }
.atlb.at { background: #FDEBDD; border-left-color: #E8750F; }
.atlb.ao { background: #F1ECFA; border-left-color: #7A55C9; }
.atlb.ar { background: #FCE9E9; border-left-color: #D93C3C; }
.uinfo { font-size: .92rem; }
.uinfo .uih { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; color: var(--teal-deep); }
.uinfo .ubx h5, .uinfo .uatlh { font-size: .92rem; }
.uinfo .ustate, .uinfo .umeta { font-size: .9rem; }
.qbox { background: #EAF2FD; border-left-color: #1D73E0; }
.qcols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.qcols.one { grid-template-columns: 1fr; }
@media (max-width: 640px) { .qcols { grid-template-columns: 1fr; } }
.qdeb { border-top: 1px solid #b9cdea; margin-top: 8px; padding-top: 6px; }
.atlbox { background: #E3F1EE; border-left-color: #0C8277; }
.atlr { margin: 6px 0 0; }
.atlr h6 { margin: 0; font-size: .92rem; color: var(--teal-deep); }
.ican { color: var(--orange); font-style: italic; font-size: 1.05em; }
.critcard .ckey, .crit4 .critcard:nth-child(n) .ckey { background: var(--orange) !important; color: var(--navy) !important; }
.cebox { background: #F1ECFA; border-left-color: #7A55C9; }
.cebox li { margin: 2px 0; }
.uinfo { font-size: .86rem; }
.uinfo .ubx h5, .uinfo .uatlh, .uinfo .atlr h6 { font-size: .86rem; }
.uinfo .umeta, .uinfo .ustate { font-size: .85rem; }
.uinfo .ulessons li, .uinfo .ulessons h5 { font-size: .9rem; }
.uinfo .uih { font-size: 1.7rem; margin: 0 0 8px; }
.uinfo { font-size: .8rem; }
.uinfo .ubx h5, .uinfo .uatlh, .uinfo .atlr h6 { font-size: .8rem; }
.uinfo .umeta, .uinfo .ustate { font-size: .78rem; }
.uinfo .ulessons li, .uinfo .ulessons h5 { font-size: .82rem; }
.uinfo .ubx { padding: 6px 12px; margin: 6px 0; }
.atlr { display: grid; grid-template-columns: 11rem 1fr; gap: 0 12px; align-items: start; }
.atlr h6 { margin: 2px 0 0; }
.atlr > div { min-width: 0; }
.atlr p { margin: 2px 0; }
@media (max-width: 640px) { .atlr { grid-template-columns: 1fr; } }
/* Calmer unit information: one panel style */
.uinfo .ubx, .uinfo .soi, .uinfo .qbox, .uinfo .atlbox, .uinfo .cebox { background: transparent; border-left: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 8px 2px; margin: 0; }
.uinfo .uih + .ubx { border-top: 0; }
.uinfo .umeta { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 8px 2px; margin: 0; }
.uinfo .qdeb { border-top: 0; margin-top: 6px; padding-top: 0; }
.uinfo .atlr h6 { color: var(--teal-deep); }
.cebox ul { margin: 0; }
/* Emphasis: statement of inquiry and lessons */
.uinfo .uih { font-size: 1.3rem; }
.uinfo .ubx.soi { background: #FDEBDD; border-left: 8px solid #E8750F; border-top: 0; border-radius: 10px; padding: 10px 16px; margin: 4px 0 8px; font-size: 1.05rem; line-height: 1.45; }
.uinfo .ubx.soi strong { color: inherit; }
.uinfo .ulessons { background: #E3F1EE; border-left: 8px solid #0C8277; border-radius: 10px; padding: 10px 16px; margin: 10px 0; }
.uinfo .ulessons h5 { margin-top: 0; font-size: .95rem; color: var(--teal-deep); }
.uinfo .ulessons li { font-size: .9rem; }
.uinfo .ulessons .ubook { margin: 8px 0 0; font-size: .85rem; }
.uinfo .ulessons .ubook a { font-weight: 700; color: var(--teal-deep); }
.uinfo .ubx h5, .uinfo .uatlh, .uinfo .umeta strong, .uinfo .ubx.soi strong { color: var(--teal-deep); }
.uinfo .atlbox { background: #E3F1EE; border-left: 8px solid #0C8277; border-radius: 10px; padding: 10px 14px; margin: 8px 0; border-top: 0; }
.uinfo .atlin { padding-bottom: 6px; }
.uinfo .cein { border-top: 1px solid #b7d6d0; padding-top: 8px; margin-top: 4px; }
.uinfo .cein ul { list-style: none; padding-left: 0; margin: 0; }
main:has(#units) .page-head h1 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
.uinfo .atlbox { background: #EAF2FD; border-left-color: #1D73E0; }
.uinfo .cein { border-top-color: #b9cdea; }
.uinfo .atlbox > .cein:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

/* Year 7 assessment criteria (laid out as on the Year 7 slides) */
.cwork { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 8px 28px; margin: 10px 0 14px; font-size: .92rem; }
.cwork h3 { margin: 0 0 4px; font-size: 1rem; color: var(--teal-deep); }
.cwork ul { margin: 0; padding-left: 1.2em; }
.cwork li { margin: 2px 0; }
.thumbkey { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.thumbkey .tk { white-space: nowrap; }
.ccrit > summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.ccrit > summary::-webkit-details-marker { display: none; }
.ccrit .ckey { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; background: var(--orange); color: var(--navy); }
.ccrit .ctitle { display: flex; flex-direction: column; line-height: 1.25; }
.ccrit .ctitle strong { color: var(--orange-deep); font-size: 1.05rem; }
.ccrit .ctitle em { color: var(--teal-deep); font-size: .9rem; }
.ccrit > summary::after { content: "\25BE"; margin-left: auto; color: var(--teal-deep); font-size: 1.2rem; }
.ccrit[open] > summary::after { content: "\25B4"; }
.ccrit .cbody { margin-top: 10px; font-size: .95rem; }
.ccrit .should { margin: 10px 0 4px; font-size: .95rem; color: var(--teal-deep); }
.ccrit .shouldl { margin: 0 0 8px; padding-left: 1.6em; }
.ccrit .shouldl li { margin: 2px 0; }
.strand { margin: 12px 0; }
.slead { margin: 0 0 4px; }
.spill { display: inline-block; background: var(--orange); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 1px 10px; font-size: .85rem; margin-right: 4px; }
.cnote { background: var(--mint); border-radius: 8px; padding: 6px 10px; margin: 10px 0; }
.lad { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 0 4px; }
.lrow { display: grid; grid-template-columns: 5.2rem repeat(var(--cols), auto); gap: 0 14px; align-items: baseline; justify-content: start; }
.lrow .lone { grid-column: 2 / -1; }
.thumbs { font-size: 1rem; letter-spacing: -2px; white-space: nowrap; }
@media (max-width: 640px) { .lrow { grid-template-columns: 4.6rem 1fr; } .lrow .lc:nth-child(n+3) { grid-column: 2; } }
.ccrit .ctitle strong { color: var(--navy); }
/* Stronger teal titles, softer strand labels */
.uinfo .ubx h5, .uinfo .uatlh, .uinfo .atlr h6, .uinfo .umeta strong, .uinfo .ubx.soi strong, .uinfo .ulessons h5 { font-size: 1rem; font-weight: 800; color: var(--teal-deep); }
.uinfo .atlr { grid-template-columns: 12.5rem 1fr; }
.cwork h3, .ccrit .should { font-size: 1.05rem; font-weight: 800; }
.spill { background: #FDE6D2; color: var(--navy); }
.uinfo .umeta strong, .uinfo .ubx.soi strong { font-size: inherit; }
.lvlpill { display: inline-block; background: #E3F1EE; color: var(--teal-deep); border-radius: 999px; padding: 1px 10px; font-size: .85rem; white-space: nowrap; text-align: center; }
.lvlpill strong { color: var(--navy); }
.lrow { grid-template-columns: 8rem repeat(var(--cols), auto); }
.lrow .lvlpill { justify-self: start; }
.lvlpill { background: none; border-radius: 0; padding: 0; font-style: italic; font-weight: 400; color: var(--teal-deep); font-size: .9rem; }
.lvlpill strong { font-weight: 400; color: inherit; }
.uinfo > .umeta:first-child { border-top: 0; }

/* IB learner profile */
.lprofile{margin-top:2.5rem}
.lp-intro{margin:0 0 .8rem;color:#44525a}
.lp-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem 2rem}
.lp-item h3{margin:0 0 .15rem;font-size:1.05rem;color:var(--teal,#0C8277)}
.lp-item p{margin:0;font-size:.92rem;line-height:1.5;color:#2b3a42}
@media(max-width:700px){.lp-grid{grid-template-columns:1fr}}
.lp-box{background:var(--panel);border:1px solid var(--line);border-left:6px solid var(--teal);border-radius:12px;padding:18px 22px}
.lp-box h2{font-size:1.3rem;margin:0 0 6px}
.atl-items .lp-item p{margin:.2rem 0}
.atl-items .ctag{font-style:italic;color:#44525a}
#atl{margin-top:2rem}
.critbox{margin-top:2rem}
.critbox .ccrit{margin:10px 0 0;background:#fff;border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:10px;padding:12px 16px}
/* tighter gaps between the large boxes */
.lprofile, #atl, .critbox { margin-top: 0 !important; }
section:has(> .lp-box), section.lprofile { padding: 6px 0; }
.lp-grid { gap: .35rem 2rem; }
.atl-items { gap: .1rem 2rem; }
.atl-items .lp-item p { margin: .1rem 0; }
.atl-items .lp-item h3 { margin-bottom: 0; }
.lp-item h3 { margin-bottom: .05rem; }

.uc{font-weight:300;font-style:italic;color:#6b6b6b;font-size:.85em;white-space:nowrap}

/* Unit layout: lesson buttons, booklet, small revise buttons, global context box */
.uinfo .ubx.soi { font-size: .9rem; padding: 7px 14px; line-height: 1.4; }
.lbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.lbtns .lbtn { margin: 0; padding: 9px 14px; font-size: .98rem; font-weight: 600; background: var(--mint); color: var(--teal-deep); border: 2px solid var(--mint-line); line-height: 1.3; text-align: left; }
.lbtns a.lbtn:hover, .lbtns a.lbtn:focus-visible { background: #fff1e6; border-color: var(--orange); color: var(--orange-deep); }
.lbtns .lbtn.off { background: #f4f6f6; color: #5a6b70; border-color: #dbe3e3; cursor: default; font-weight: 500; }
.ulessons .ubook { margin: 8px 0 4px; }
.ulessons .ubook .btn.bk { margin: 0; padding: 9px 14px; font-size: .98rem; font-weight: 600; background: var(--mint); color: var(--teal-deep); border: 2px solid var(--mint-line); line-height: 1.3; }
.urevrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 2px; }
.urevrow .url { font-size: .9rem; font-weight: 700; color: var(--teal-deep); margin-right: 2px; }
.urevrow .btn.sm { margin: 0; padding: 5px 11px; font-size: .85rem; font-weight: 600; background: #fff; color: var(--teal-deep); border: 2px solid var(--mint-line); }
.urevrow .btn.sm:hover, .urevrow .btn.sm:focus-visible { background: #fff1e6; border-color: var(--orange); color: var(--orange-deep); }
.gcbox h5 { margin-top: 0; }
.gcbox .umeta { margin: 6px 0; }
.gcbox .qbox, .gcbox .ubx.qbox { margin-top: 10px; }

/* Full page slide viewer */
.lbx { position: fixed; inset: 0; z-index: 1000; background: rgba(11,43,58,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px 48px; }
.lbx[hidden] { display: none; }
.lbx img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 8px; box-shadow: 0 6px 30px rgba(0,0,0,.4); }
.lbx-close { position: absolute; top: 12px; right: 16px; font: inherit; font-weight: 700; font-size: 1rem; padding: 8px 16px; border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.lbx-nav { position: absolute; top: 50%; transform: translateY(-50%); font: inherit; font-size: 1.6rem; font-weight: 700; width: 48px; height: 64px; border-radius: 12px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.lbx-prev { left: 8px; } .lbx-next { right: 8px; }
.lbx-close:hover, .lbx-close:focus-visible, .lbx-nav:hover, .lbx-nav:focus-visible { background: var(--orange); border-color: var(--orange); outline: none; }
.lbx-num { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; margin: 0; }
.stripbar .stripfull { margin: 0 auto; }
@media (max-width: 699px) { .lbx { padding: 56px 8px 48px; } .lbx-nav { width: 40px; } }

.uinfo .tbref { border-top: 0; padding-top: 0; }
.tbchip { display: inline-block; background: var(--teal-deep); color: #fff; font-weight: 800; font-size: 1rem; padding: 2px 12px; border-radius: 999px; }

details.unit.taught { background: #e6f4ef; border-color: #b9dccf; }
details.unit.taught > summary { background: #e6f4ef; }
details.unit.current { background: #fff1e6; border-color: #f2c9a3; }
details.unit.current > summary { background: #fff1e6; }
.progsw.cur { background: #fff1e6; border-color: #f2c9a3; }
.progkey { font-size: .95rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.progsw { width: 18px; height: 18px; border-radius: 4px; background: #e6f4ef; border: 1px solid #b9dccf; display: inline-block; }

.bkref { font-weight: 400; font-size: 1em; color: var(--teal-deep); }
.taught .bkref, .taught .bkref em { font-weight: 700; }
.bkref em { font-style: italic; font-weight: 400; }
.progyear .lbtns a.lbtn:hover, .progyear .lbtns a.lbtn:focus-visible { background: #fff1e6; }
.progyear .uinfo .ulessons { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 6px 0; }
.progyear .uinfo .ulessons h5 { display: none; }
.progyear .uinfo .umeta, .progyear .uinfo .umeta strong { font-size: .9rem; }
.progyear .uinfo .lbtns .lbtn { font-size: .9rem; font-weight: 600; padding: 2px 8px; line-height: 1.25; }
.progyear .uinfo .lbtns .lbtn .ocode { font-size: inherit; }

.progyear .uinfo { padding-top: 6px; padding-bottom: 6px; }
.progyear .uinfo .umeta { padding: 4px 2px; margin: 0; line-height: 1.3; }
.progyear .uinfo .ulessons { margin: 2px 0 0; }
.progyear .uinfo .lbtns { margin: 4px 0 2px; gap: 6px; }
.progyear .ubody { padding-top: 0; }

.progsw { width: 26px; height: 16px; border: 1px solid var(--mint-line); border-left: 4px solid var(--teal); border-radius: 8px; box-sizing: border-box; }

#u2-5 .lbtns { flex-direction: column; align-items: flex-start; }
