/* Self-hosted fonts (no Google CDN) */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/sora-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --text: #15181e;
  --muted: #5c6570;
  --line: #e2e5ea;
  --chip: #eef0f3;
  --chip-hover: #e4e7ec;
  --accent: #1f4b7a;
  --radius: 8px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— Solid top bar; hamburger dropdown still anchors under the chip —— */
.site-header {
  --header-pad-x: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 var(--header-pad-x);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  max-width: calc(100% - 3.25rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--display, "Sora", sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text, #15181e);
  text-align: center;
  pointer-events: none;
}

.lesson-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
}

.site-header.lesson-chrome {
  --header-pad-x: 0.55rem;
  gap: 8px;
  min-height: 38px;
  padding: 0 var(--header-pad-x);
  position: relative;
  border-bottom: 0;
}

.lesson-chrome .panel-burger {
  width: 30px;
  height: 30px;
}

.lesson-chrome .panel-burger svg {
  width: 17px;
  height: 17px;
}

.panel-menu-wrap {
  position: relative;
  z-index: 50;
  align-self: flex-start;
}

.panel-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 52;
}

.panel-burger:hover,
.panel-burger[aria-expanded="true"] {
  background: var(--chip);
  text-decoration: none;
  color: var(--text);
}

.panel-burger svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.panel-menu {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: min(300px, 100vw);
  max-height: 100vh;
  max-height: 100dvh;
  overflow: auto;
  padding: 6px;
  border-radius: 0 0 10px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 0;
  border-top: 0;
  box-shadow: 0 10px 28px rgba(20, 28, 40, 0.14);
  scrollbar-width: thin;
}

.panel-menu-head {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.panel-menu-head > .panel-opt {
  flex: 1;
  min-width: 0;
}

.panel-menu-close {
  appearance: none;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted, #5c6570);
  font: 600 1.25rem/1 var(--font);
  cursor: pointer;
}

.panel-menu-close:hover {
  background: var(--chip);
  color: var(--text);
}

.panel-menu.open,
.panel-menu:not([hidden]).open {
  display: grid;
  gap: 2px;
}

.panel-menu[hidden] {
  display: none !important;
}

.panel-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 500 13px/1.25 var(--font);
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
}

.panel-opt:hover {
  background: var(--chip);
  text-decoration: none;
  color: var(--text);
}

.panel-opt.is-current {
  background: var(--chip);
  color: var(--accent);
  font-weight: 600;
}

.panel-opt.is-current-branch {
  color: var(--accent);
}

/* Category labels: light until expanded */
.panel-opt-file {
  font-weight: 400;
}

.panel-opt-file.is-open,
.panel-file-sub .panel-opt-file.is-open {
  font-weight: 700;
}

.panel-opt-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--line);
  pointer-events: none;
}

.panel-opt-file .chev {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform 140ms ease;
  flex-shrink: 0;
}

.panel-opt-file.is-open .chev {
  transform: rotate(180deg);
}

.panel-file-sub {
  display: none;
  gap: 2px;
  padding: 0 0 2px 0;
}

.panel-file-sub.open {
  display: grid;
}

.panel-file-sub .panel-opt {
  font-size: 12px;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 500;
}

.panel-file-sub .panel-opt:hover {
  color: var(--text);
}

.panel-file-sub .unit-opt {
  color: var(--text);
  font-weight: 400;
  font-size: 12.5px;
}

.lesson-sub .panel-opt {
  font-size: 12px;
  padding: 8px 10px;
  justify-content: flex-start;
  gap: 0;
}

.lesson-link-text {
  display: block;
  min-width: 0;
  text-align: left;
  line-height: 1.3;
}

.nav-tree {
  display: grid;
  gap: 2px;
}

.nav-block,
.nav-unit-block {
  display: grid;
  gap: 2px;
}

.lesson-chrome .home-chip {
  flex-shrink: 0;
}

.header-lesson {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-code {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-right: 0.35em;
  min-width: 2.35em;
}

.panel-opt .lesson-code,
.index-list .lesson-code {
  color: #15181e;
}

.header-lesson .lesson-code {
  color: inherit;
}

.site-header.lesson-chrome.has-photo .header-lesson .lesson-code,
.site-header.lesson-chrome.has-gradient .header-lesson .lesson-code {
  color: #ffe566;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.part-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0.15rem 0.55rem 0.3rem;
  background: var(--panel);
}

.part-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.part-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}

.part-arrow:hover:not(:disabled),
.part-arrow:active:not(:disabled),
.part-arrow:focus {
  background: transparent;
  outline: none;
}

.part-arrow:disabled {
  opacity: 0.22;
  cursor: default;
}

.part-select {
  flex: 0 0 auto;
  width: auto;
  max-width: min(85vw, 32rem);
  height: 28px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0.45rem;
  font: 500 0.82rem/1 var(--font);
  letter-spacing: -0.01em;
  color: var(--text);
  cursor: pointer;
  box-sizing: border-box;
}

.part-select::-ms-expand {
  display: none;
}

.part-select:focus {
  outline: none;
}

.subpart-preamble {
  margin: 0 0 0.85rem;
}

.subpart-preamble > :last-child {
  margin-bottom: 0;
}

.subpart-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 0 1rem;
  padding: 0.35rem 0.5rem;
  background: var(--chip);
  border-radius: 8px;
}

.subpart-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.subpart-arrow svg {
  width: 13px;
  height: 13px;
  display: block;
}

.subpart-arrow:disabled {
  opacity: 0.22;
  cursor: default;
}

.subpart-arrow:hover:not(:disabled),
.subpart-arrow:focus {
  background: transparent;
  outline: none;
}

.subpart-select {
  flex: 0 0 auto;
  height: 26px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0.35rem;
  font: 500 0.8rem/1 var(--font);
  color: var(--text);
  cursor: pointer;
}

.subpart-select:focus {
  outline: none;
}

.subpart-panel[hidden] {
  display: none !important;
}

.part-progress {
  width: 100%;
  height: 3px;
  background: #e6e8ec;
  overflow: hidden;
}

.part-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #1a6bb8 0%,
    #2f4fc4 25%,
    #6b3aad 50%,
    #2f4fc4 75%,
    #1a6bb8 100%
  );
  background-size: 200% 100%;
  box-shadow: 0 0 6px rgba(47, 79, 196, 0.35), 0 0 10px rgba(107, 58, 173, 0.28);
  transition: width 180ms ease;
  animation: part-progress-shift 12s linear infinite;
}

@keyframes part-progress-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .part-progress-bar {
    animation: none;
  }
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 2.75rem;
  text-align: left;
}

.page-hero {
  padding: 0.2rem 0 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.home-hero {
  border-bottom: none;
  margin-bottom: 0;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-family: var(--display);
}

.list-block {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-block li {
  border-top: 1px solid var(--line);
}

.list-block li:last-child {
  border-bottom: 1px solid var(--line);
}

.list-block a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.1rem;
  color: var(--text);
}

.list-block a:hover {
  color: var(--accent);
  text-decoration: none;
}

.list-block .meta {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.lesson-body > h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.tab-panels {
  min-height: 10rem;
}

.tab-panel[hidden] {
  display: none !important;
}

/* Part title lives in the dropdown — keep h2 for structure only */
.tab-panel > h2:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tab-panel h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.02rem;
}

.tab-panel p {
  margin: 0 0 0.85rem;
}

.tab-panel ul,
.tab-panel ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.tab-panel li {
  margin: 0.2rem 0;
}

.tab-panel blockquote {
  margin: 0 0 0.9rem;
  padding: 0.55rem 0.8rem;
  border-left: 3px solid #c5d0dd;
  background: #eef1f5;
  color: var(--muted);
  border-radius: 0 6px 6px 0;
}

.tab-panel pre,
.lesson-body pre {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #eef1f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  overflow: auto;
  margin: 0 0 0.9rem;
}

.figure {
  margin: 0.9rem 0 1.1rem;
}

.figure img,
.figure video {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef1f5;
}

.callout {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.85rem;
  background: #e8f0f8;
  border: 1px solid #d0dde9;
  border-radius: var(--radius);
}

.stub-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--panel);
}

.stub-box p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}

.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff;
}

.prose p {
  margin: 0 0 0.85rem;
}

@media (max-width: 720px) {
  .wrap {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .lesson-chrome {
    padding: 8px;
  }
}


/* --- webscrapedfit: Weebly content in light chrome --- */
.weebly-light img,
.weebly-light .figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.75rem auto;
  border-radius: 0;
}
.weebly-light table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95em;
}
.weebly-light td, .weebly-light th {
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  padding: 0.4rem 0.55rem;
  vertical-align: top;
}
.weebly-light .wsite-image,
.weebly-light div.paragraph {
  margin: 0.65rem 0;
}
.weebly-light .wsite-multicol-table-wrap {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.weebly-light .wsite-multicol-col {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 2.5rem;
}
.year-card {
  display: block;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
  background: color-mix(in oklab, var(--paper) 88%, var(--accent, #3d6b8c) 12%);
}
.year-card:hover { border-color: color-mix(in oklab, var(--ink) 35%, transparent); }
.year-id { font-family: var(--font-display, Sora, sans-serif); font-weight: 650; }
.year-role { font-size: 0.9em; opacity: 0.75; margin-top: 0.25rem; }
.index-list { line-height: 1.7; }
.overview-year { margin: 1.75rem 0; }
.unit-block { margin: 0.85rem 0 1.25rem; }

/* --- Lesson title-bar backgrounds (same height; image is cover bg only) --- */
.site-header.lesson-chrome.has-photo,
.site-header.lesson-chrome.has-gradient {
  position: relative;
  background-color: #152033;
  /* do NOT set overflow:hidden — it clips the hamburger dropdown */
}
.site-header.lesson-chrome.has-photo::before,
.site-header.lesson-chrome.has-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.site-header.lesson-chrome.has-photo::before {
  background: linear-gradient(
    90deg,
    rgba(10, 16, 28, 0.72) 0%,
    rgba(10, 16, 28, 0.48) 55%,
    rgba(10, 16, 28, 0.35) 100%
  );
}
.site-header.lesson-chrome.has-gradient::before {
  background: rgba(255, 255, 255, 0.28);
}
.site-header.lesson-chrome.has-photo .header-lesson,
.site-header.lesson-chrome.has-photo .panel-menu-wrap,
.site-header.lesson-chrome.has-gradient .header-lesson,
.site-header.lesson-chrome.has-gradient .panel-menu-wrap {
  position: relative;
  z-index: 2;
}
.site-header.lesson-chrome.has-photo .header-lesson-nav,
.site-header.lesson-chrome.has-gradient .header-lesson-nav {
  z-index: 2;
}
.site-header.lesson-chrome.has-photo .panel-menu-wrap {
  z-index: 60;
}
.site-header.lesson-chrome.has-photo .header-lesson {
  color: #f7f4ef;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.site-header.lesson-chrome.has-photo .panel-burger {
  color: #f7f4ef;
  background: transparent !important;
}
.site-header.lesson-chrome.has-photo .panel-burger:hover,
.site-header.lesson-chrome.has-photo .panel-burger[aria-expanded="true"] {
  background: transparent !important;
  color: #f7f4ef;
}

/* Home: Weebly earth-from-space hero (scrolls away) */
.home-hero-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: clamp(12rem, 42vw, 22rem);
  margin: 0;
  padding: 0;
  background-color: #0b1524;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}
.home-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 26, 0.15) 0%,
    rgba(8, 14, 26, 0.55) 70%,
    rgba(8, 14, 26, 0.72) 100%
  );
  pointer-events: none;
}
.home-hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.15rem 1.75rem;
  box-sizing: border-box;
}
.home-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, Sora, sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(247, 244, 239, 0.82);
}
.home-hero-copy h1 {
  margin: 0;
  font-family: var(--font-display, Sora, sans-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #f7f4ef;
}

/* Compact shared header + hamburger (home + lessons) */
.site-header {
  --header-pad-x: 0.35rem;
  min-height: 30px;
  padding: 0 var(--header-pad-x);
  gap: 6px;
}
.header-brand {
  font-size: 0.78rem;
}
.site-header.lesson-chrome {
  --header-pad-x: 0.35rem;
  min-height: 30px;
  padding: 0 var(--header-pad-x);
  justify-content: flex-start;
}
.panel-burger {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent !important;
}
.panel-burger svg {
  width: 14px;
  height: 14px;
}
.panel-burger:hover,
.panel-burger:focus,
.panel-burger[aria-expanded="true"] {
  background: transparent !important;
  color: inherit;
  box-shadow: none;
}
.lesson-chrome .panel-burger {
  width: 24px;
  height: 24px;
}
.lesson-chrome .panel-burger svg {
  width: 14px;
  height: 14px;
}
.site-header.lesson-chrome.has-photo .panel-burger,
.site-header.lesson-chrome.has-photo .panel-burger:hover,
.site-header.lesson-chrome.has-photo .panel-burger:focus,
.site-header.lesson-chrome.has-photo .panel-burger[aria-expanded="true"] {
  color: #f7f4ef;
  background: transparent !important;
}
.header-lesson-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: calc(100% - 3.25rem);
  z-index: 2;
  pointer-events: none;
}
.header-lesson {
  position: static;
  left: auto;
  transform: none;
  flex: none;
  width: auto;
  max-width: min(70vw, 28rem);
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.15;
  pointer-events: none;
}
.lesson-adj {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  padding: 0.1rem 0.15rem;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}
.lesson-adj:hover {
  background: color-mix(in oklab, var(--chip, #e8ecf0) 80%, transparent);
  text-decoration: none;
}
.lesson-adj.is-disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}
.site-header.lesson-chrome.has-photo .header-lesson-nav,
.site-header.lesson-chrome.has-photo .lesson-adj {
  color: #f7f4ef;
}
.site-header.lesson-chrome.has-photo .lesson-adj:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Photo/gradient lesson headers: taller by default; click bg to collapse */
.site-header.lesson-chrome.has-photo,
.site-header.lesson-chrome.has-gradient {
  min-height: clamp(7rem, 20vw, 11rem);
  transition: min-height 240ms ease;
  cursor: zoom-out;
  background-size: cover;
  background-position: center;
}
.site-header.lesson-chrome.has-photo:not(.is-thin),
.site-header.lesson-chrome.has-gradient:not(.is-thin) {
  align-items: flex-start;
}
.site-header.lesson-chrome.has-photo:not(.is-thin) .header-lesson-nav,
.site-header.lesson-chrome.has-gradient:not(.is-thin) .header-lesson-nav {
  top: 50%;
  transform: translate(-50%, -50%);
}
.site-header.lesson-chrome.has-photo:not(.is-thin) .header-lesson,
.site-header.lesson-chrome.has-gradient:not(.is-thin) .header-lesson {
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  font-weight: 650;
  max-width: min(88vw, 36rem);
  line-height: 1.2;
  white-space: normal;
}
.site-header.lesson-chrome.has-photo:not(.is-thin) .lesson-adj,
.site-header.lesson-chrome.has-gradient:not(.is-thin) .lesson-adj {
  font-size: 1.45rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}
.site-header.lesson-chrome.has-photo.is-thin,
.site-header.lesson-chrome.has-gradient.is-thin {
  min-height: 30px;
  cursor: zoom-in;
  align-items: center;
}
.part-nav {
  gap: 0;
  padding: 0.05rem 0.4rem 0.12rem;
}
.part-arrow {
  width: 16px;
  height: 20px;
}
.part-arrow svg {
  width: 12px;
  height: 12px;
}
.part-select {
  min-height: 22px;
  height: 22px;
  padding: 0 1.1rem 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.15;
}
.part-progress {
  height: 2px;
  margin: 0;
}
.panel-menu {
  left: 0;
  top: 0;
  width: min(260px, 100vw);
  max-height: 100vh;
  max-height: 100dvh;
  padding: 3px;
  border-radius: 0 0 7px 0;
  border-left: 0;
  border-top: 0;
  gap: 1px;
  box-shadow: 0 6px 18px rgba(20, 28, 40, 0.12);
}
.panel-menu-close {
  width: 24px;
  height: 24px;
  font-size: 1.1rem;
}
.panel-menu.open,
.panel-menu:not([hidden]).open {
  gap: 1px;
}
.panel-opt {
  font: 500 12px/1.2 var(--font);
  padding: 5px 8px;
  border-radius: 4px;
  gap: 6px;
}
.panel-opt-sep {
  margin: 2px 4px;
}
.panel-opt-file {
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 400;
}
.panel-opt-file.is-open,
.panel-file-sub .panel-opt-file.is-open {
  font-weight: 700;
}
.panel-file-sub {
  padding: 0 0 1px 0;
  margin: 0 0 1px;
}
.panel-file-sub .panel-opt {
  padding: 4px 7px;
  font-size: 11.5px;
}
.unit-opt {
  padding: 4px 7px;
  font-size: 11.5px;
}
.lesson-sub {
  padding-left: 0;
}
.lesson-sub .panel-opt {
  padding: 3px 7px;
  font-size: 11px;
  justify-content: flex-start;
  gap: 0;
}
.panel-opt-file .chev {
  width: 10px;
  height: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.panel-search-wrap {
  display: block;
  margin: 2px 0 4px;
  padding: 0 2px;
}
.panel-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in oklab, var(--panel) 92%, var(--ink) 8%);
  color: var(--text);
  font: 500 12px/1.2 var(--font);
  outline: none;
}
.panel-search::placeholder {
  color: color-mix(in oklab, var(--text) 45%, transparent);
  opacity: 1;
}
.panel-search:focus {
  border-color: color-mix(in oklab, var(--accent, #3d6b8c) 55%, var(--line));
  background: var(--panel);
}
.nav-search-results {
  display: grid;
  gap: 1px;
  max-height: min(52vh, 360px);
  overflow: auto;
  margin: 0 0 2px;
  padding: 0;
  scrollbar-width: thin;
}
.nav-search-results[hidden] {
  display: none !important;
}
.nav-search-hit {
  font-size: 11.5px;
  padding: 5px 8px;
  line-height: 1.25;
}
.nav-search-empty {
  padding: 8px;
  font-size: 11.5px;
  color: color-mix(in oklab, var(--text) 55%, transparent);
}
.nav-tree[hidden] {
  display: none !important;
}

/* YouTube / embed players from Weebly */
.weebly-light iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 12rem;
  margin: 0.85rem 0 1.1rem;
  border: 0;
  background: #0b1524;
}
.weebly-light .wsite-youtube,
.weebly-light .wsite-video,
.weebly-light .embed-container {
  margin: 0.85rem 0 1.1rem;
}

/* Home / overview: Weebly intro copy + images */
.page-intro {
  margin: 0 0 1.75rem;
  max-width: 48rem;
}
.page-intro-wide {
  max-width: none;
}
/* Overview tables need room — don't trap them in the lesson 720px wrap */
body[data-mode="overview"] .wrap {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
body[data-mode="overview"] .page-hero {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.page-intro-wide > .wsite-section-wrap,
.page-intro-wide > .paragraph,
.page-intro-wide h2 {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.page-intro h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display, Sora, sans-serif);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.page-intro .paragraph,
.page-intro p {
  margin: 0 0 0.9rem;
  line-height: 1.55;
  color: color-mix(in oklab, var(--text) 92%, transparent);
}
.page-intro .figure {
  margin: 1rem 0 1.25rem;
}
.page-intro .figure img {
  max-width: min(100%, 420px);
  margin-left: 0;
}

/* Overview curriculum matrices (HTML instead of screenshot) */
.curriculum-matrices {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 0.75rem;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 0.65rem 0.5rem;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.curriculum-matrix {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  font-size: clamp(0.78rem, 1.05vw, 1rem);
  line-height: 1.3;
  table-layout: fixed;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.curriculum-matrix th,
.curriculum-matrix td {
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  padding: 0.45rem 0.4rem;
  vertical-align: middle;
  text-align: center;
  font-size: inherit;
  line-height: 1.3;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.curriculum-matrix a.matrix-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.12em;
}
.curriculum-matrix a.matrix-link:hover {
  color: var(--accent, #2a5a7a);
}
.curriculum-matrix thead th {
  background: #f0f0f0;
  font-weight: 650;
  font-size: 1.05em;
}
.curriculum-matrix .matrix-label {
  font-weight: 650;
  text-align: left;
  width: 9.5rem;
  white-space: normal;
}
/* Row colors follow first-column category */
.curriculum-matrix .matrix-row-theory { background: #e6d5f2; }
.curriculum-matrix .matrix-row-skills { background: #d5e6f2; }
.curriculum-matrix .matrix-row-capstone { background: #d5f2e6; }
.curriculum-matrix-short td:not(.matrix-label):not(:empty) {
  font-weight: 550;
}
