@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Gabarito:wght@700;800;900&display=swap');

/* Palette pulled directly from the SiBRP slide deck: cardinal red header bar,
   cream background, charcoal headings, and a teal/gold/cardinal badge cycle
   for numbered items (see "Three Domains of Life", "Three Common Types of Cells"). */
:root {
  --cardinal: #8e1918;
  --cardinal-dark: #6c1312;
  --cardinal-tint: #f6e6e5;
  --gold: #e2a53d;
  --gold-dark: #a97a1e;
  --gold-tint: #fbf1dc;
  --teal: #1b6b56;
  --teal-dark: #124a3b;
  --teal-tint: #e3f0ec;
  --cream: #ffffff;
  /* SynBase logo colors (sampled directly from assets/img/site/logo.png) + a
     Khan Academy-style supporting palette, used on about.html, the site
     header, and the primary button color — kept separate from the
     cardinal/gold/teal slide-deck palette above, which the curriculum pages
     still use for module chips. */
  --syn-green: #0f5f38;
  --syn-green-dark: #0a4527;
  --syn-green-tint: #e1f2e7;
  --syn-purple: #7851b3;
  --syn-purple-dark: #5c3d8a;
  --syn-purple-tint: #ece5f7;
  --syn-blue: #2f8fd6;
  --syn-blue-tint: #ddf0fe;
  --syn-pink: #e85fac;
  --syn-pink-tint: #fce4f1;
  --syn-yellow: #f2b93d;
  --syn-yellow-tint: #fef1d0;
  --ink-black: #191918;
  --charcoal: #191918;
  --ink: #191918;
  --ink-soft: #6b665c;
  --bg: #f6f6f4;
  --card: #ffffff;
  --border: #e6e5e1;
  --danger: #8e1918;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(40, 30, 10, 0.06);
  --shadow-hover: 0 8px 24px rgba(40, 30, 10, 0.12);
  --font-body: 'Figtree', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Gabarito', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-family: var(--font-body);
  font-size: 17px;
}

* { box-sizing: border-box; }

/* Bold display font for every heading site-wide, matching the reference design's
   Gabarito headlines + Figtree body text pairing. */
h1, h2, h3 { font-family: var(--font-display); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--syn-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  color: var(--ink);
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
}
.site-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--charcoal);
}
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--syn-purple); }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-wordmark-img { height: 26px; width: auto; display: block; }
.brand:hover { text-decoration: none; opacity: 0.85; }
.brand-suffix, .auth-brand .brand-suffix {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.72em;
  opacity: 0.65;
  margin-left: 6px;
}
.header-nav { display: flex; align-items: center; gap: 24px; font-size: 0.9rem; font-weight: 600; justify-content: center; }
.header-nav a { color: var(--ink); }
.header-nav a:hover { color: var(--syn-green); text-decoration: none; }

/* ---------- SiBRP split nav item (direct link + dropdown for secondary links) ---------- */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav-dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle:hover { color: var(--syn-green); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  min-width: 190px;
  padding: 6px;
  z-index: 60;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.header-nav .nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
}
.header-nav .nav-dropdown-menu a:hover { background: var(--bg); color: var(--syn-green); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.header-actions .btn { border-radius: 999px; }
.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--syn-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.header-avatar:hover { background: var(--syn-green-dark); text-decoration: none; }
.header-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.header-progress-pill {
  background: var(--syn-green-tint);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--syn-green);
  font-weight: 600;
}
/* ---------- Layout helpers ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Decorative brand mark (echoes the red/gold bar on every slide) ---------- */
.brand-mark {
  position: absolute;
  top: 22px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.brand-mark .bar1 { width: 64px; height: 5px; border-radius: 3px; background: var(--syn-green); }
.brand-mark .bar2 { width: 42px; height: 5px; border-radius: 3px; background: var(--syn-purple); }
@media (max-width: 640px) { .brand-mark { display: none; } }

/* ---------- Module accent chip (teal / gold / cardinal cycle) ---------- */
.module-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.chip-teal { background: var(--teal); }
.chip-gold { background: var(--gold); }
.chip-cardinal { background: var(--cardinal); }
.chip-locked { background: #d9d3c1; color: #8a8570; }
.chip-green { background: var(--syn-green); }
.chip-purple { background: var(--syn-purple); }
.chip-blue { background: var(--syn-blue); }

/* ---------- Course header (Khan-Academy-style course overview) ---------- */
.course-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  position: relative;
}
.course-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.course-header h1 { font-size: 2.5rem; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.8px; line-height: 1.15; color: var(--charcoal); }
.course-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--syn-green);
  margin-bottom: 16px;
}
.course-intro { color: var(--ink-soft); max-width: 680px; margin: 0 0 26px; font-size: 1.02rem; }
.jump-row { display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap; }
.jump-pills { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; flex: 1; }
.pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}
.pill:hover { border-color: var(--syn-green); color: var(--syn-green); text-decoration: none; }

/* ---------- Legend ---------- */
.legend-wrap { background: var(--bg); border-bottom: 1px solid var(--border); }
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 24px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-item svg { flex-shrink: 0; color: var(--ink-soft); }

/* ---------- Up next (gold callout banner, matching the slides' highlight boxes) ---------- */
.up-next-mount { margin: 24px 0 0; }
.up-next-card {
  background: var(--syn-purple-tint);
  border: 1px solid var(--syn-purple);
  border-left: 5px solid var(--syn-purple);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.up-next-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--syn-purple-dark);
  margin-bottom: 4px;
}
.up-next-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 12px; color: var(--charcoal); }

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
}
.progress-track .fill {
  height: 100%;
  background: var(--syn-green);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress-track.light { background: #e8e8e4; }

/* ---------- Unit accordion (homepage) ---------- */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 40px 0 16px;
}
.unit-accordion { margin-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.unit {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 76px;
}
.unit-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  user-select: none;
}
.unit-summary::-webkit-details-marker { display: none; }
.unit-chevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.unit[open] > .unit-summary .unit-chevron { transform: rotate(180deg); }
.unit-heading { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.unit-title-group { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.unit-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.unit-title { font-size: 1.1rem; font-weight: 700; color: var(--charcoal); }
.unit-progress { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.unit-progress-pct { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); min-width: 34px; text-align: right; }
.live-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--syn-green);
  background: var(--syn-green-tint);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.progress-track.small { height: 7px; width: 90px; }
.unit-body { padding: 0 20px 20px; border-top: 1px solid var(--border); }
.unit-desc { color: var(--ink-soft); font-size: 0.9rem; margin: 14px 0 16px; }
.syllabus-subhead {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 14px 0 6px;
}
.syllabus-subhead:first-of-type { margin-top: 16px; }
.syllabus-list { margin: 0 0 4px; padding-left: 20px; font-size: 0.9rem; color: var(--ink); }
.syllabus-list li { margin-bottom: 4px; }
.lesson-part-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 16px 0 4px;
}
.lesson-part-label:first-child { margin-top: 4px; }
.lesson-group { border-top: 1px solid var(--border); }
.lesson-group:last-of-type { margin-bottom: 16px; }
.lesson-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  color: var(--ink);
  font-size: 0.92rem;
}
.lesson-row:hover { background: var(--bg); text-decoration: none; }
.lesson-icon { flex-shrink: 0; color: var(--ink-soft); display: flex; }
.lesson-title { flex: 1; }
.lesson-status { flex-shrink: 0; color: var(--ink-soft); display: flex; }
.lesson-status.is-done { color: var(--syn-green); }
.unit-open-btn { margin-top: 4px; }

/* ---------- Locked module (homepage card + module page gate) ---------- */
.unit-locked .unit-summary { cursor: default; }
.unit-locked .unit-title, .unit-locked .unit-label { opacity: 0.55; }
.unit-locked .unit-body { padding: 0 20px 18px; }
.unit-locked .unit-desc { margin: 14px 0 0; }
.locked-panel {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  margin: 22px 0;
}
.locked-panel .locked-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.locked-panel h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--charcoal); }
.locked-panel p { color: var(--ink-soft); max-width: 440px; margin: 0 auto 18px; font-size: 0.94rem; }

.btn {
  display: inline-block;
  text-align: center;
  background: var(--syn-green);
  color: #fff;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--syn-green-dark); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--syn-green); border: 1.5px solid var(--syn-green); }
.btn.secondary:hover { background: var(--syn-green-tint); }
.btn.small { padding: 6px 12px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- Module page ---------- */
.module-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 14px;
  position: relative;
}
.breadcrumb { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 6px; }
.module-hero h1 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; color: var(--charcoal); }
.module-hero .module-chip-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.module-hero .lede { color: var(--ink-soft); max-width: 700px; margin: 0 0 10px; font-size: 0.88rem; }
.module-progress-bar-wrap { display: flex; align-items: center; gap: 14px; max-width: 520px; }
.module-progress-bar-wrap .progress-track { flex: 1; height: 10px; }
.module-progress-bar-wrap .pct { font-weight: 700; font-size: 0.85rem; min-width: 60px; }

.video-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.video-block h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--charcoal); }
.video-block .hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 14px; }
.video-placeholder {
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(135deg, #f2f2ef, #f2f2ef 10px, #e8e8e4 10px, #e8e8e4 20px);
  border: 2px dashed #c9c9c4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
  text-align: center;
  padding: 20px;
}
.video-placeholder .icon { font-size: 2.2rem; }
.video-placeholder code {
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.8rem;
}
.video-block video { width: 100%; border-radius: 10px; display: block; }
.watched-toggle { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }

/* ---------- Multi-page module viewport (Khan Academy-style lesson flow) ---------- */
.page-nav-mount { margin: 24px 0 4px; }
.page-part-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.page-dot-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.page-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #e0ded6;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.page-dot:hover { transform: scale(1.25); }
.page-dot.done { background: var(--syn-green); }
.page-dot.current { background: var(--syn-purple); width: 15px; height: 15px; }
.page-dot.locked { cursor: not-allowed; opacity: 0.5; }
.page-dot.locked:hover { transform: none; }

#page-viewport { scroll-margin-top: 80px; }
.page-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 30px;
  margin: 14px 0;
  animation: page-card-in 0.22s ease;
}
@keyframes page-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-card h2 { margin: 0 0 14px; font-size: 1.35rem; color: var(--charcoal); letter-spacing: -0.3px; }
.page-practice h2 { font-size: 1.1rem; margin: 0 0 12px; }
.page-practice .quiz-box { margin-top: 0; background: transparent; border: none; padding: 0; }

/* ---------- Matching exercise ---------- */
.matching-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 6px; }
.matching-item {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}
.matching-item:hover:not(.matched) { border-color: var(--syn-green); }
.matching-item.selected { border-color: var(--syn-purple); background: var(--syn-purple-tint); font-weight: 600; }
.matching-item.matched { border-color: var(--syn-green); background: var(--syn-green-tint); color: var(--syn-green); font-weight: 700; cursor: default; }
.matching-item.wrong { border-color: #b9302c; background: #fbe9e8; animation: matching-shake 0.3s ease; }
@keyframes matching-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.matching-status { margin: 4px 0 0; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 640px) { .matching-columns { grid-template-columns: 1fr; } }

.page-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 30px;
}
.page-footer-nav [data-page-back]:disabled { visibility: hidden; }
.page-footer-nav [data-page-continue]:disabled { cursor: not-allowed; }

/* ---------- Topic article ---------- */
.topic-article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 22px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.topic-article-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 0;
}
.topic-index {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.topic-index.tint-teal { background: var(--teal-tint); color: var(--teal); }
.topic-index.tint-gold { background: var(--gold-tint); color: var(--gold-dark); }
.topic-index.tint-cardinal { background: var(--cardinal-tint); color: var(--cardinal); }
.topic-article.is-complete .topic-index { background: var(--cardinal); color: #fff; }
.topic-article-header h2 { font-size: 1.2rem; margin: 0; color: var(--charcoal); }
.topic-body { padding: 14px 22px 22px; }
.topic-figure {
  margin: 4px 0 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f7f4ea;
}
.topic-figure figcaption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.topic-text p { margin: 0 0 12px; font-size: 0.96rem; }
.topic-text ul { margin: 0 0 12px; padding-left: 22px; font-size: 0.96rem; }
.topic-text strong { color: var(--charcoal); }
.topic-text h4 { margin: 18px 0 6px; font-size: 1rem; color: var(--charcoal); }

.topic-callout {
  margin: 4px 0 16px;
  padding: 14px 16px;
  background: #f7f4ea;
  border: 1px solid var(--border);
  border-left: 4px solid var(--syn-green);
  border-radius: 8px;
}
.topic-callout-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--syn-green);
  margin-bottom: 6px;
}
.topic-callout p, .topic-callout ul { margin: 0 0 8px; font-size: 0.92rem; }
.topic-callout p:last-child, .topic-callout ul:last-child { margin-bottom: 0; }

.topic-match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 4px 0 16px;
}
.topic-match-grid h5 { margin: 0 0 6px; font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.topic-match-grid ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.topic-match-grid ul li { margin-bottom: 4px; }
@media (max-width: 640px) {
  .topic-match-grid { grid-template-columns: 1fr; }
}

.topic-source-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  columns: 2;
  column-gap: 24px;
}
.topic-source-list li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 640px) {
  .topic-source-list { columns: 1; }
}

/* ---------- Quiz ---------- */
.quiz-box {
  margin-top: 18px;
  background: #f7f4ea;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.quiz-box .quiz-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--syn-green);
  margin-bottom: 6px;
}
.quiz-question { font-weight: 600; margin: 0 0 12px; font-size: 0.98rem; color: var(--charcoal); }
.quiz-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.92rem;
}
.quiz-option:hover { border-color: var(--syn-green); }
.quiz-option input { accent-color: var(--syn-green); }
.quiz-option.correct { border-color: var(--syn-green); background: var(--syn-green-tint); font-weight: 700; color: var(--syn-green); }
.quiz-option.incorrect { border-color: #b9b2a0; background: #efece2; color: var(--ink-soft); }
.quiz-actions { display: flex; align-items: center; gap: 12px; }
.quiz-feedback { font-size: 0.9rem; font-weight: 600; }
.quiz-feedback.correct { color: var(--syn-green); }
.quiz-feedback.incorrect { color: var(--ink-soft); }
.quiz-explanation {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: #fff;
  border-left: 3px solid var(--syn-purple);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  display: none;
}
.quiz-explanation.show { display: block; }

/* ---------- Curriculum content images ---------- */
.topic-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 14px 0;
}
.topic-image-caption {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: -8px 0 14px;
}

/* ---------- Raw sequence display (Module 4 TATA-box activity, etc.) ---------- */
.sequence-block {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  word-break: break-all;
  background: #f4f4f2;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
  color: var(--ink);
}

/* ---------- Short-answer ---------- */
.short-answer-input {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.short-answer-input:focus { outline: none; border-color: var(--syn-green); }
.short-answer-input.correct { border-color: var(--syn-green); background: var(--syn-green-tint); }
.short-answer-input.incorrect { border-color: #b9302c; background: #fbe9e8; }

/* ---------- Ordering exercise ---------- */
.ordering-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; margin-bottom: 4px; }
.ordering-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}
.ordering-item:hover:not(.picked) { border-color: var(--syn-green); }
.ordering-item.picked { border-color: var(--syn-green); background: var(--syn-green-tint); color: var(--syn-green); font-weight: 700; cursor: default; }
.ordering-item.wrong { border-color: #b9302c; background: #fbe9e8; animation: matching-shake 0.3s ease; }
.ordering-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--syn-green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ordering-status { margin: 4px 0 0; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- Free-response (AI feedback) ---------- */
.free-response-box {
  margin-top: 18px;
  background: #f7f4ea;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.free-response-box .free-response-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--syn-purple);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.free-response-box .fr-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}
.free-response-question { font-weight: 600; margin: 0 0 12px; font-size: 0.98rem; color: var(--charcoal); }
.free-response-done { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.free-response-done p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.fr-badge-done { color: #fff; background: var(--syn-green); border-color: var(--syn-green); }
.free-response-note { font-size: 0.78rem; font-style: italic; color: var(--ink-soft); margin: -6px 0 12px; }
.free-response-input {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.free-response-input:focus { outline: none; border-color: var(--syn-purple); }
.free-response-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.free-response-status { font-size: 0.9rem; font-weight: 600; }
.free-response-status.correct { color: var(--syn-purple); }
.free-response-status.incorrect { color: var(--danger); }

/* ---------- Discussion board (anonymous class responses) ---------- */
.discussion-board { margin-top: 16px; }
.discussion-board-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--syn-green);
  margin-bottom: 8px;
}
.discussion-board-locked,
.discussion-board-empty {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}
.discussion-board-locked {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.discussion-board-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.discussion-board-entry {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.discussion-board-entry-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.discussion-board-entry-text {
  font-size: 0.9rem;
  color: var(--ink);
  white-space: pre-wrap;
}

/* ---------- Footer / module nav ---------- */
.module-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 10px;
  flex-wrap: wrap;
}
.site-footer {
  padding: 30px 24px 50px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.site-footer a { color: var(--ink-soft); text-decoration: underline; }

@media (max-width: 600px) {
  .course-header h1 { font-size: 1.9rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .about-hero h1 { font-size: 2rem; }
  .module-hero h1 { font-size: 1.7rem; }
  .narrative-section h2, .pillar-heading h2 { font-size: 1.6rem; }
  .stat-big .num { font-size: 2.4rem; }
  .site-header .header-inner { display: flex; flex-wrap: wrap; height: auto; padding: 12px 0; justify-content: space-between; row-gap: 10px; }
  .header-nav { order: 3; width: 100%; justify-content: center; gap: 10px; }
  .header-actions { order: 2; }
  .header-progress-pill { display: none; }
  .unit-progress { min-width: 0; }
  .progress-track.small { width: 60px; }
}

/* ---------- Auth pages (login / signup) ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--cream);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--syn-green) 0 65%, var(--syn-purple) 65% 100%);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.auth-brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--syn-purple); }
.auth-subtitle { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 24px; }
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.auth-field input, .auth-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.auth-field input:focus, .auth-field select:focus { outline: none; border-color: var(--syn-green); }
.auth-error {
  background: var(--cardinal-tint);
  border: 1px solid var(--cardinal);
  color: var(--cardinal-dark);
  font-size: 0.86rem;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}
.auth-error.show { display: block; }
.auth-success {
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  font-size: 0.86rem;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}
.auth-success.show { display: block; }
.auth-success a { color: var(--teal-dark); text-decoration: underline; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Generic public-page hero (About / Beyond SiBRP) ---------- */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  position: relative;
}
.page-hero h1 { font-size: 2.3rem; font-weight: 800; margin: 0 0 12px; color: var(--charcoal); letter-spacing: -0.7px; line-height: 1.15; }
.page-hero p.lede { color: var(--ink-soft); max-width: 680px; margin: 0; font-size: 1.05rem; }
.page-hero-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.page-hero-title-row h1 { margin: 0; }
.page-hero-mascot { height: 56px; width: auto; flex-shrink: 0; }

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin: 26px 0;
}
.content-card h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--charcoal); }
.content-card p { font-size: 0.96rem; margin: 0 0 14px; }
.content-card p:last-child { margin-bottom: 0; }
.placeholder-note {
  display: inline-block;
  background: var(--gold-tint);
  border: 1px dashed var(--gold);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

/* ---------- Portfolio grid (Beyond SiBRP) ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 26px 0 48px;
}
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.portfolio-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
.portfolio-thumb {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.portfolio-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.portfolio-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}
.portfolio-body h3 { margin: 0; font-size: 1.05rem; color: var(--charcoal); }
.portfolio-student { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.portfolio-body p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); flex: 1; }
.portfolio-link { font-size: 0.86rem; font-weight: 700; margin-top: 4px; }
.unit-empty-state, .explore-empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--ink-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 26px 0 48px;
  grid-column: 1 / -1;
}
.portfolio-empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--ink-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 26px 0 48px;
}

/* ---------- Story detail page (project.html) ---------- */
.story-back { margin: 6px 0 18px; font-size: 0.9rem; font-weight: 600; }
.story-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.story-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.story-thumb-initials { color: #fff; font-weight: 800; font-size: 3rem; letter-spacing: 0.02em; }
.story-title { font-size: 1.9rem; margin: 12px 0 6px; color: var(--charcoal); letter-spacing: -0.4px; }
.story-student { font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 20px; }
.story-lede { font-size: 1.1rem; color: var(--charcoal); font-weight: 600; margin: 0 0 22px; line-height: 1.5; }
.story-body { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 32px; white-space: pre-wrap; }
.story-body p { margin: 0 0 16px; }
.story-anecdote { margin: 0 0 32px; }

/* ---------- Admin dashboard ---------- */
.admin-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 26px 0 16px;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 48px;
}
.admin-pagination-label { color: var(--ink-soft); font-size: 0.84rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 720px; }
.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-name { font-weight: 700; color: var(--charcoal); }
.admin-email { color: var(--ink-soft); font-size: 0.84rem; }
.admin-education { color: var(--ink-soft); font-size: 0.78rem; margin-top: 2px; }
.admin-stats-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.admin-stat-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.admin-stat-chip strong { color: var(--charcoal); }
.admin-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--syn-green);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.admin-pct-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.admin-pct-cell .progress-track { width: 60px; height: 6px; }

/* ---------- Profile page ---------- */
.profile-header { display: flex; align-items: center; gap: 18px; }
.profile-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--syn-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.profile-header h2 { margin: 0 0 4px; }
.profile-avatar-lg img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.avatar-picker-option {
  border: 2px solid var(--border);
  border-radius: 50%;
  padding: 0;
  width: 64px;
  height: 64px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s;
}
.avatar-picker-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-picker-option:hover { border-color: var(--syn-green); }
.avatar-picker-option.selected { border-color: var(--syn-green); box-shadow: 0 0 0 2px var(--syn-green-tint); }
.avatar-picker-status { font-size: 0.82rem; color: var(--ink-soft); margin-top: 8px; min-height: 1.2em; }
.profile-email { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 6px; }
.profile-overall { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.profile-overall .progress-track { flex: 1; height: 10px; }
.profile-overall-pct { font-weight: 700; color: var(--charcoal); white-space: nowrap; }
.profile-module-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.profile-module-row:last-child { border-bottom: none; }
.profile-module-title { flex: 1; font-weight: 600; color: var(--charcoal); font-size: 0.92rem; }
.profile-module-row .progress-track { width: 100px; height: 7px; }
.profile-module-pct { font-size: 0.85rem; color: var(--ink-soft); width: 38px; text-align: right; }
.admin-overall { font-weight: 700; }
.admin-reset-btn { white-space: nowrap; }

/* ---------- About page (Khan-Academy-style long-form marketing page) ---------- */
.about-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
  position: relative;
  text-align: center;
}
.about-hero .container { max-width: 860px; }
.about-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--syn-purple);
  margin: 0 0 14px;
}
.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--charcoal);
  letter-spacing: -0.8px;
}
.about-hero .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto; }

.stats-band { background: #fff; padding: 12px 24px 20px; }
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.stat-big { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 160px; border-radius: 20px; padding: 28px 20px; color: var(--ink-black); }
.stat-big.tint-green { background: var(--syn-green-tint); }
.stat-big.tint-purple { background: var(--syn-purple-tint); }
.stat-big.tint-blue { background: var(--syn-blue-tint); }
.stat-big .num { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.stat-big .label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* ---------- SynBase wordplay (hover definitions) ---------- */
.synbase-word-section { padding: 56px 24px 92px; background: #fff; }
.synbase-word-section .container { display: flex; align-items: center; justify-content: flex-start; gap: 48px; max-width: 1080px; }
.synbase-word-image { width: 220px; height: auto; flex: none; margin-left: 32px; }
.synbase-word-content { text-align: left; }
.synbase-word { font-family: var(--font-display); font-size: 4.8rem; font-weight: 900; color: var(--charcoal); margin: 0; letter-spacing: -1px; cursor: default; line-height: 1; }
.synbase-word .ltr { display: inline-block; padding-bottom: 6px; border-bottom: 8px solid transparent; transition: border-color 0.15s ease; }
.synbase-word-content:has(.synbase-def-brick[data-def="syn"]:hover) .ltr[data-range~="syn"],
.synbase-word-content:has(.synbase-def-brick[data-def="syn"]:focus-visible) .ltr[data-range~="syn"] {
  border-bottom-color: var(--syn-green-dark);
}
.synbase-word-content:has(.synbase-def-brick[data-def="synb"]:hover) .ltr[data-range~="synb"],
.synbase-word-content:has(.synbase-def-brick[data-def="synb"]:focus-visible) .ltr[data-range~="synb"] {
  border-bottom-color: var(--syn-purple-dark);
}
.synbase-word-content:has(.synbase-def-brick[data-def="base"]:hover) .ltr[data-range~="base"],
.synbase-word-content:has(.synbase-def-brick[data-def="base"]:focus-visible) .ltr[data-range~="base"] {
  border-bottom-color: var(--syn-blue);
}
.synbase-word-content:has(.synbase-def-brick[data-def="ase"]:hover) .ltr[data-range~="ase"],
.synbase-word-content:has(.synbase-def-brick[data-def="ase"]:focus-visible) .ltr[data-range~="ase"] {
  border-bottom-color: #a83c78;
}
.synbase-word-hint { color: var(--ink-soft); font-size: 1.2rem; margin: 0 0 36px; }
.synbase-defs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin: 8px 0 0;
}
@media (max-width: 760px) {
  .synbase-word-section .container { flex-direction: column; text-align: center; gap: 24px; }
  .synbase-word-content { text-align: center; }
  .synbase-defs { justify-content: center; }
  .synbase-word-image { width: 170px; }
}
.synbase-def-brick {
  position: relative;
  display: inline-block;
  width: 130px;
  height: 78px;
  background: none;
  border: none;
  padding: 0;
  margin: 8px 0 4px;
  color: var(--syn-green-dark);
  font-weight: 700;
  font-family: inherit;
  cursor: default;
  font-size: 1.05rem;
}
.synbase-def-brick:nth-child(2) { color: var(--syn-purple-dark); }
.synbase-def-brick:nth-child(3) { color: var(--syn-blue); }
.synbase-def-brick:nth-child(4) { color: #a83c78; }
.synbase-def-brick-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.synbase-def-label {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.synbase-def-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-6px);
  width: 280px;
  background: #fff;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 0 4px 0 0 currentColor;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 14px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
.synbase-def-brick:hover .synbase-def-tooltip,
.synbase-def-brick:focus-visible .synbase-def-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 640px) {
  .synbase-word { font-size: 3rem; }
  .synbase-def-tooltip { width: 220px; font-size: 0.9rem; }
}

.narrative-section { padding: 56px 24px; }
.narrative-section.tint { background: var(--bg); }
.narrative-section .container { max-width: 900px; text-align: center; }
.narrative-section h2 { font-size: 2.4rem; font-weight: 800; margin: 0 0 22px; color: var(--charcoal); letter-spacing: -0.5px; }
.narrative-section p { font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 20px; line-height: 1.65; text-align: left; }
.narrative-section p:last-child { margin-bottom: 0; }
.narrative-section .btn { margin-top: 8px; }

.pillar-section { padding: 48px 24px 8px; background: #fff; }
.pillar-section .container { max-width: 1000px; }
.pillar-heading { text-align: left; max-width: 720px; margin: 0; }
.pillar-heading h2 { font-size: 2rem; font-weight: 800; margin: 0 0 12px; color: var(--ink-black); letter-spacing: -0.5px; }
.pillar-heading p { color: var(--ink-soft); margin: 0; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.pillar-card { text-align: left; }
.pillar-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.pillar-card h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--charcoal); }
.pillar-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.quote-section { padding: 60px 24px; background: #fff; }
.quote-card { max-width: 720px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: Georgia, 'Times New Roman', serif; font-size: 3rem; line-height: 1; color: var(--syn-purple); font-weight: 800; margin-bottom: 8px; }
.quote-text { font-size: 1.3rem; font-style: italic; color: var(--ink-black); line-height: 1.5; margin: 0 0 16px; }
.quote-attribution { font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }
.quote-attribution .placeholder-note { display: block; margin: 10px auto 0; width: fit-content; }

.team-section { padding: 56px 24px; background: #fff; }
.team-section .container { max-width: 1000px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.team-card {
  text-align: center;
  padding: 22px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar.is-placeholder { background: var(--bg); border: 1.5px dashed var(--border); color: var(--ink-soft); }
.team-card h3 { font-size: 0.98rem; margin: 0 0 4px; color: var(--ink-black); }
.team-card p { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

.cta-banner {
  background: linear-gradient(135deg, var(--syn-green) 0%, var(--syn-purple) 100%);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.cta-banner h2 { font-size: 1.8rem; margin: 0 0 12px; }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 24px; }
.cta-banner .btn { background: #fff; color: var(--syn-purple-dark); }
.cta-banner .btn:hover { background: #f2f0fc; }
.cta-banner .btn.secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.7); }
.cta-banner .btn.secondary:hover { background: rgba(255,255,255,0.15); }

/* ---------- Congratulations page ---------- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 500;
}
.congrats-mascot { height: 110px; width: auto; margin: 0 auto 12px; display: block; }
.congrats-hero h1 { font-size: 2.2rem; margin: 0 0 12px; }

/* ---------- Mini confetti (module-complete celebrate button) ---------- */
.mini-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 500;
}
.celebration-card { text-align: center; padding: 48px 28px; }
.celebration-mascot { height: 130px; width: auto; margin: 0 auto 18px; display: block; }
.celebration-card h2 { font-size: 1.6rem; margin: 0 0 8px; }
.celebration-card p { color: var(--ink-soft); margin: 0 0 22px; }

/* ---------- Landing hero (split layout, about.html) ---------- */
/* ---------- Centered hero variant (Stanford iGEM Team page) ---------- */
.landing-hero.centered .container { grid-template-columns: 1fr; text-align: center; max-width: 720px; }
.landing-hero.centered .lede { margin: 0 auto 26px; }
.landing-hero.centered .landing-hero-ctas { justify-content: center; }

/* ---------- Timeline ---------- */
.timeline-section { padding: 56px 24px; background: #fff; }
.timeline-section .container { max-width: 760px; }
.timeline { position: relative; margin-top: 32px; padding-left: 30px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -37px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.timeline-year { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; color: var(--syn-green); }
.timeline-item h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--ink-black); }
.timeline-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Team roster groups ---------- */
.team-group-title { font-size: 1.1rem; font-weight: 800; color: var(--ink-black); margin: 32px 0 4px; }
.team-group-title:first-child { margin-top: 0; }
.team-group-note { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- Callout card (SiBRP tie-in) ---------- */
.callout-section { padding: 0 24px 56px; background: #fff; }
.callout-card {
  max-width: 940px;
  margin: 0 auto;
  background: var(--syn-green-tint);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
}
.callout-card h2 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 800; color: var(--ink-black); }
.callout-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.callout-card-ctas { display: flex; flex-direction: column; gap: 10px; }
.btn-square { padding: 22px 28px; border-radius: 10px; font-size: 1.05rem; }
@media (max-width: 700px) {
  .callout-card { grid-template-columns: 1fr; text-align: center; }
}

.landing-hero { background: #fff; padding: 28px 24px; }
.landing-hero .container {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.landing-hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--syn-purple-dark);
  background: var(--syn-purple-tint);
  border: 1px solid var(--syn-purple);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.landing-hero h1 { font-size: 2.6rem; font-weight: 900; line-height: 1.12; letter-spacing: -1px; color: var(--ink-black); margin: 0 0 16px; }
.landing-hero .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 480px; margin: 0 0 26px; }
.landing-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.landing-hero-ctas .btn:only-child { padding: 13px 28px; font-size: 1rem; }
.landing-hero-art { display: flex; align-items: center; justify-content: center; }
.landing-hero-art img { width: 100%; height: auto; }
.hero-stats-mini { display: flex; gap: 22px; flex-wrap: wrap; }
.stat-mini { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; border-left: 3px solid; }
.stat-mini.tint-green { border-color: var(--syn-green); }
.stat-mini.tint-purple { border-color: var(--syn-purple); }
.stat-mini.tint-blue { border-color: var(--syn-blue); }
.stat-mini .num { font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.5px; color: var(--ink-black); }
.stat-mini .label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
@media (max-width: 860px) {
  .landing-hero .container { grid-template-columns: 1fr; text-align: center; }
  .landing-hero .lede { margin-left: auto; margin-right: auto; }
  .landing-hero-ctas { justify-content: center; }
  .hero-stats-mini { justify-content: center; }
  .stat-mini { align-items: flex-start; }
  .landing-hero-art { max-width: 420px; margin: 0 auto; }
}

/* ---------- Primary CTA band (Start Learning / See How It Works) ---------- */
.cta-band { background: #fff; padding: 12px 24px 20px; }
.cta-band-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; max-width: 780px; margin: 0 auto; }
.cta-band-main { display: flex; flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }
.cta-band-label { margin: 0; flex: 0 1 auto; text-align: left; font-size: 1.4rem; font-weight: 700; line-height: 1.3; color: var(--ink-soft); }
.cta-band-label strong { color: var(--syn-green-dark); }
.cta-band-arrow { display: flex; align-items: center; flex-shrink: 0; color: var(--syn-green); }
.btn-lg {
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  padding: 30px 24px;
  border-radius: 20px;
  font-size: 1.25rem;
  font-weight: 800;
}

/* ---------- Decorative mascot illustrations scattered across the home page ---------- */
.section-intro-row { display: flex; align-items: center; gap: 36px; margin-bottom: 8px; }
.section-intro-row.reverse { flex-direction: row-reverse; }
.steps-section .section-intro-row { margin-bottom: 28px; justify-content: center; }
.steps-section .section-intro-row > div { max-width: 420px; }
.explore-section .section-intro-row { margin-bottom: 32px; }
.section-intro-row img { width: 440px; height: auto; flex: none; }
@media (max-width: 900px) {
  .section-intro-row img { width: 320px; }
}
@media (max-width: 700px) {
  .section-intro-row, .section-intro-row.reverse { flex-direction: column; text-align: center; gap: 16px; }
  .section-intro-row img { width: 260px; }
}

/* ---------- Explore modules grid ---------- */
.explore-section { padding: 22px 24px; background: #fff; }
.explore-section .container { max-width: 1000px; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 32px; }
.explore-card { display: block; padding: 22px; border-radius: 16px; border: 1px solid transparent; position: relative; }
.explore-card:hover { text-decoration: none; border-color: currentColor; }
.explore-card.tint-teal { background: var(--teal-tint); color: var(--teal-dark); }
.explore-card.tint-gold { background: var(--gold-tint); color: var(--gold-dark); }
.explore-card.tint-cardinal { background: var(--cardinal-tint); color: var(--cardinal-dark, var(--cardinal)); }
.explore-card.tint-green { background: var(--syn-green-tint); color: var(--syn-green-dark); }
.explore-card.tint-purple { background: var(--syn-purple-tint); color: var(--syn-purple-dark); }
.explore-card.tint-blue { background: var(--syn-blue-tint); color: var(--syn-blue); }
.explore-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.explore-card-arrow { position: absolute; top: 20px; right: 20px; opacity: 0.55; }
.explore-card h3 { font-size: 1.02rem; margin: 0 0 6px; color: var(--ink-black); }
.explore-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- Steps ("How it works") ---------- */
.steps-section { padding: 56px 24px; background: #fff; }
#how-it-works { padding: 22px 24px; }
.steps-section .container { max-width: 1100px; }
.step-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); max-width: 760px; margin: 0 auto; }
.step-row:last-child { border-bottom: none; }
.step-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.step-copy h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--ink-black); }
.step-copy p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Highlights (Beyond SiBRP intro) ---------- */
.highlights-section { padding: 22px 24px; background: #fff; }
.highlights-section .container { max-width: 1100px; }
.highlights-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.highlights-head h2 { margin: 0 0 18px; font-size: 2.1rem; font-weight: 800; color: var(--ink-black); }

/* ---------- Interactive trial quiz ---------- */
.trial-section { padding: 22px 24px; background: var(--syn-blue-tint); }
.trial-section .container { max-width: 900px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.trial-copy h2 { font-size: 1.7rem; font-weight: 800; margin: 0 0 12px; color: var(--ink-black); }
.trial-copy p { color: var(--ink-soft); margin: 0 0 20px; }
@media (max-width: 760px) { .trial-section .container { grid-template-columns: 1fr; } }

/* ---------- Split CTA ---------- */
.split-cta-section { padding: 56px 24px; background: #fff; }
.split-cta-row { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-cta-card { padding: 32px; border-radius: 18px; }
.split-cta-card.tint-teal { background: var(--teal-tint); }
.split-cta-card.tint-cardinal { background: var(--cardinal-tint); }
.split-cta-card.tint-green { background: var(--syn-green-tint); }
.split-cta-card.tint-purple { background: var(--syn-purple-tint); }
.split-cta-card h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--ink-black); }
.split-cta-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 640px) { .split-cta-row { grid-template-columns: 1fr; } }

/* ---------- Landing footer (about.html only — other pages keep .site-footer) ---------- */
.landing-footer { background: var(--ink-black); color: #cfcdc5; padding: 48px 24px 28px; }
.landing-footer .container { max-width: 1100px; }
.landing-footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px;
  padding-bottom: 28px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.landing-footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.landing-footer-logo { height: 150px; width: auto; flex: none; align-self: flex-start; }
.landing-footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: #8f8c82; margin: 0 0 12px; }
.landing-footer-col a { display: block; color: #cfcdc5; font-size: 0.9rem; margin-bottom: 8px; }
.landing-footer-col a:hover { color: #fff; text-decoration: none; }
.landing-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: #8f8c82;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #cfcdc5;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.18); color: #fff; }
.footer-social svg { width: 15px; height: 15px; }

/* ---------- Application form (student + admin question builder) ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
.form-field textarea { min-height: 110px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--syn-green); }

.answer-block { margin-bottom: 20px; }
.answer-block:last-child { margin-bottom: 0; }
.answer-block .question { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.answer-block .answer { font-size: 0.98rem; color: var(--charcoal); white-space: pre-wrap; }

.submitted-banner {
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 22px;
}

/* Admin question builder rows */
.question-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.question-row:last-child { border-bottom: none; }
.question-row-main { flex: 1; min-width: 0; }
.question-row-prompt { font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.question-row-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 999px;
}
.question-row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.question-row-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
  background: var(--ink-soft);
}
.question-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.add-question-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 4px;
}
.add-question-form .form-field { margin-bottom: 0; flex: 1; min-width: 220px; }
.window-form {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.window-form input[type="datetime-local"] {
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}

/* ---------- Admin application tabs (Google-Forms-style Questions/Responses) ---------- */
.app-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.app-tab {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.app-tab:hover { color: var(--syn-green); }
.app-tab.active { color: var(--syn-green); border-bottom-color: var(--syn-green); }

.app-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.app-subtab {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-subtab:hover { color: var(--charcoal); }
.app-subtab.active { color: var(--charcoal); border-bottom-color: var(--syn-purple); }
.app-subtab-count {
  background: var(--syn-green-tint);
  color: var(--syn-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
.app-panel-note { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 8px; }

/* ---------- Response viewer (Google Forms-style: one response at a time) ---------- */
.response-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.response-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}
.response-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.response-nav-btns { display: flex; align-items: center; gap: 10px; }
.response-counter { font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.response-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
}
.response-nav-btn:hover:not(:disabled) { border-color: var(--syn-green); color: var(--syn-green); }
.response-nav-btn:disabled { opacity: 0.35; cursor: default; }
.response-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--ink-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.add-question-form select {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}
.edit-question-prompt, .edit-question-type {
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}

/* ---------- Speaker Series ---------- */
.upload-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.upload-form-grid .form-field { margin-bottom: 0; }
.upload-form-grid .form-field.full { grid-column: 1 / -1; }

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin: 26px 0 48px;
}
.speaker-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.speaker-thumb-link { display: block; }
.speaker-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.speaker-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speaker-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  opacity: 0.92;
  transition: opacity 0.15s, transform 0.15s;
}
.speaker-thumb-link:hover .speaker-play-overlay { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
.speaker-card-body { padding: 16px 18px 18px; }
.speaker-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--charcoal); }
.speaker-title-link:hover h3 { text-decoration: underline; }
.speaker-card .speaker-name { font-size: 0.85rem; font-weight: 700; color: var(--syn-green); margin-bottom: 8px; }
.speaker-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 12px; }
.speaker-empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--ink-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 26px 0 48px;
}

/* ---------- Feedback widget ---------- */
#feedback-widget { position: fixed; right: 22px; bottom: 22px; z-index: 400; }
.feedback-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--syn-green);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.feedback-toggle:hover { background: var(--syn-green-dark); }
.feedback-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.feedback-panel-title { font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.feedback-panel-hint { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.4; }
.feedback-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--ink);
  resize: vertical;
  margin-bottom: 10px;
}
.feedback-input:focus { outline: none; border-color: var(--syn-green); }
.feedback-actions { display: flex; align-items: center; gap: 10px; }
.feedback-status { font-size: 0.78rem; }
.feedback-status.correct { color: var(--syn-green-dark); }
.feedback-status.incorrect { color: #b3372c; }

/* ---------- SiBRP application: "not yet open" page ---------- */
.not-open-card { text-align: left; }
.not-open-card h2 { margin: 12px 0 10px; }
.not-open-card h3 { margin: 26px 0 8px; font-size: 1rem; color: var(--charcoal); }
.not-open-card p { color: var(--ink-soft); line-height: 1.6; }
.not-open-list { margin: 0 0 4px; padding-left: 20px; color: var(--ink-soft); line-height: 1.7; }
.not-open-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.not-open-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--syn-green-dark);
  background: #fff;
  border: 1px solid var(--syn-green);
  border-radius: 999px;
  padding: 3px 11px;
}
