:root {
  --bg: #FFFFFF;
  --bg-tint: #F3EEFB;
  --card-bg: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5B5570;
  --accent: #361A54;          /* AIMS brand purple */
  --accent-bright: #4D2670;
  --gold: #FDD633;            /* AIMS brand yellow */
  --gold-soft: rgba(253, 214, 51, 0.16);
  --accent-soft: rgba(54, 26, 84, 0.08);
  --border: rgba(54, 26, 84, 0.15);
  --max-w: 1100px;
  --prose-w: 70ch;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
a:hover { border-bottom-color: var(--accent); }

/* ---------- Header (purple bar, large white links) ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--accent);
  border-bottom: none;
  box-shadow: 0 2px 16px rgba(54, 26, 84, 0.28);
  z-index: 50;
}
.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 800;
  color: #fff;
  border-bottom: none;
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand:hover { border-bottom: none; }
.brand small {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--gold); }
.nav a.active { color: #fff; border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--accent);
    border-bottom: none;
    box-shadow: 0 10px 24px rgba(54, 26, 84, 0.32);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; width: 100%; font-size: 1.3rem; }
}

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 2rem; }
.hero h1 { margin-bottom: 0.5rem; }
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.hero-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.hero-photo.tall img { aspect-ratio: 3 / 4; }
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo.tall img { aspect-ratio: 4 / 3; }
}

/* ---------- Sections ---------- */
section { padding: 3rem 0; }

.section-eyebrow {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
  opacity: 0.75;
}
.section-title {
  text-align: left;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title.with-accent::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem 0 0;
}
.section-lead {
  text-align: left;
  max-width: 60ch;
  margin: 0 0 2.5rem;
  color: var(--text);
  font-size: 1.05rem;
  opacity: 0.85;
}

.intro {
  max-width: var(--prose-w);
  margin: 0 auto;
}

/* Floating intro card that visibly overlaps the hero photos */
.intro-overlap {
  position: relative;
  z-index: 5;
  margin-top: -7rem;
  padding-bottom: 2rem;
}
@media (max-width: 820px) {
  .intro-overlap { margin-top: -4rem; }
}
@media (max-width: 720px) {
  .intro-overlap { margin-top: -2.5rem; }
}
.intro-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(54, 26, 84, 0.14);
}
.intro-card .intro-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 1rem;
  opacity: 0.7;
}
.intro-card .intro-lede {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.45;
  margin: 0 0 1.25rem;
  letter-spacing: -0.005em;
}
.intro-card .intro-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  opacity: 0.88;
}
/* Continue exploring — list of quick links inside the intro card */
.intro-explore {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.intro-explore-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text);
  font-weight: 700;
  margin: 0 0 1rem;
  opacity: 0.55;
}
.intro-explore-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
@media (max-width: 540px) {
  .intro-explore-list { grid-template-columns: 1fr; }
}
.intro-explore-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.22s ease, border-color 0.22s ease;
}
.intro-explore-list a:hover {
  background: var(--accent-soft);
  border-color: var(--border);
  border-bottom-color: var(--border);
}
.intro-explore-list a svg {
  width: 16px;
  height: 16px;
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
}
.intro-explore-list a:hover svg {
  opacity: 1;
  transform: translateX(4px);
}

/* ---------- Threads (redesigned cards) ---------- */
.threads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 720px) { .threads { grid-template-columns: 1fr; } }

.thread-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
}
.thread-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at top right, var(--accent-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.thread-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(54, 26, 84, 0.12);
  border-color: rgba(54, 26, 84, 0.3);
}
.thread-card:hover::before { opacity: 1; }
.thread-card:hover .thread-icon-wrap {
  transform: scale(1.08) rotate(-4deg);
}
.thread-icon-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.thread-icon-wrap svg { width: 38px; height: 38px; }

/* Per-thread icon colours (light pastel tints) */
.thread-icon--learn   { background: #FFE9CC; color: #B86A1E; }
.thread-icon--teach   { background: #DCEFE0; color: #2D7740; }
.thread-icon--adapt   { background: #D8E5FF; color: #2F5BAE; }
.thread-icon--connect { background: #FBDAD6; color: #B23A2E; }
.thread-title {
  position: relative;
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.thread-card p {
  position: relative;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

/* ---------- Quick info strip (with icons) ---------- */
.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) { .quick-info { grid-template-columns: 1fr; } }
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(54, 26, 84, 0.08);
}
.info-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-icon-wrap svg { width: 24px; height: 24px; }
.info-card .label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.info-card .value {
  margin-top: 0.15rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1.3;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: #FEF6D2;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(253, 214, 51, 0.55);
}
.cta-banner .btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cta-banner .btn:hover {
  background: var(--accent-bright);
  color: #fff;
  border-color: var(--accent-bright);
}
.cta-banner img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner .body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.cta-banner .body h2 { margin-bottom: 0.25rem; }
@media (max-width: 720px) {
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner img { aspect-ratio: 16 / 9; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--gold);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid var(--gold);
  text-decoration: none;
  align-self: flex-start;
}
.btn:hover {
  background: #ffe06b;
  color: var(--accent);
  border-color: #ffe06b;
  border-bottom-color: #ffe06b;
}

/* ---------- Partners band ---------- */
.partners-band {
  padding: 3.5rem 0;
  background: var(--bg-tint);
  border-block: 1px solid var(--border);
  margin-top: 3rem;
}
.partners-band .label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Uniform logo tiles: equal width via grid, fixed inner height for visual consistency */
.partners-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
  align-items: stretch;
}
.partners-row--single {
  grid-template-columns: 1fr;
  max-width: 300px;
}
@media (max-width: 720px) {
  .partners-row { grid-template-columns: 1fr; max-width: 360px; }
}
.partners-row .logo {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 1.25rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.partners-row .logo:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(54, 26, 84, 0.08);
  border-bottom-color: var(--accent);
}
.partners-row .logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-cta {
  background: var(--accent);
  border: none;
  border-radius: 18px;
  padding: 2.5rem;
  margin: 2.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #fff;
}
.footer-cta h3 { margin: 0 0 0.4rem; font-size: 1.5rem; color: #fff; }
.footer-cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.footer-cta .email {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  border-bottom: none;
}
.footer-cta .email:hover { text-decoration: underline; border-bottom: none; }
.footer-cta .btn {
  background: var(--gold);
  color: var(--accent);
  border-color: var(--gold);
  font-weight: 800;
}
.footer-cta .btn:hover { background: #fff; color: var(--accent); border-color: #fff; }
.footer-cta .btn-pulse { animation-name: pulse-ring-gold; }
@keyframes pulse-ring-gold {
  0%   { box-shadow: 0 0 0 0 rgba(253, 214, 51, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(253, 214, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 214, 51, 0); }
}

/* Pulsing CTA button */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(54, 26, 84, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(54, 26, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 26, 84, 0); }
}
.btn-pulse {
  animation: pulse-ring 2.4s cubic-bezier(0.66, 0, 0, 1) infinite;
}
.btn-pulse:hover { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
}
.footer-utility {
  padding: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.footer-logos {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-logos img { max-height: 32px; width: auto; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-bottom: none;
}
.footer-links a:hover { color: var(--accent); border-bottom: none; }
.footer-links span { font-size: 0.95rem; }

/* ---------- Prose (single page fallback) ---------- */
.prose {
  max-width: var(--prose-w);
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.prose h2 { margin-top: 2.5rem; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* ---------- Schedule ---------- */
.schedule-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 2rem 0;
}
.schedule-grid th, .schedule-grid td {
  padding: 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.88rem;
}
.schedule-grid th:last-child, .schedule-grid td:last-child { border-right: 0; }
.schedule-grid tr:last-child td { border-bottom: 0; }
.schedule-grid th { background: var(--accent); color: white; }
.schedule-grid .time {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tint);
  width: 110px;
}
.schedule-grid .break {
  background: var(--bg-tint);
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
}
@media (max-width: 820px) {
  .schedule-grid { display: none; }
}

.day-cards { display: none; flex-direction: column; gap: 1rem; }
@media (max-width: 820px) { .day-cards { display: flex; } }
.day-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.day-card h3 { margin: 0 0 0.25rem; }
.day-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.day-card ul { margin: 0; padding-left: 1.25rem; }

.theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.theme-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.theme-card .day { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); }
.theme-card .name { margin: 0.25rem 0 0; color: var(--accent); font-weight: 700; }

/* ---------- Lectures dropdowns ---------- */
.day-details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.day-details summary {
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  color: var(--accent);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.day-details summary::-webkit-details-marker { display: none; }
.day-details summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.day-details[open] summary::after { content: "−"; }
.day-details[open] summary { border-bottom: 1px solid var(--border); }
.day-details .content { padding: 1.25rem 1.5rem; }
.day-details .content ul { margin: 0; padding-left: 1.25rem; }
.day-details .content ul li { margin-bottom: 0.4rem; }
.day-details .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ---------- Team ---------- */
.team-photo {
  width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0 2.5rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.person-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.person-card .info h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.person-card .info .role { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; line-height: 1.4; }
.person-card .info .tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.person-card .info a { font-size: 0.85rem; }

/* ---------- Steps (pre-workshop) ---------- */
.steps { display: grid; gap: 1rem; margin: 2rem 0; }
.step {
  position: relative;
  display: flex;
  gap: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.step .number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.step p { margin: 0; }

.callout {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.callout p { margin: 0; }

/* ---------- Checklist ---------- */
.bring-provide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (max-width: 720px) { .bring-provide { grid-template-columns: 1fr; } }
.bp-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.bp-card h3 { margin: 0 0 1rem; }
.bp-card ul { margin: 0; padding-left: 1.25rem; }
.bp-card li { margin-bottom: 0.4rem; }

.checklist { display: grid; gap: 0.6rem; margin: 1.5rem 0; }
.checklist .item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.checklist .box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---------- Resources ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  text-decoration: none;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(54, 26, 84, 0.10);
  border-color: var(--accent);
}
.resource-card h3 { margin: 0; transition: color 0.2s ease; }
.resource-card .desc { color: var(--text); opacity: 0.75; flex: 1; }
.resource-card .link {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  border-bottom: none;
}
.resource-card .link:hover { border-bottom: none; }
.resource-card .link svg { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.resource-card:hover .link svg { transform: translateX(4px); }

/* ---------- Code of conduct ---------- */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }
.principle-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.principle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(54, 26, 84, 0.08);
  border-color: rgba(54, 26, 84, 0.3);
}
.principle-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}
.principle-icon-wrap svg {
  width: 30px;
  height: 30px;
  display: block;
}
.principle-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.principle-card p {
  margin: 0;
  color: var(--text);
  opacity: 0.85;
  max-width: 32ch;
}

.role-callout {
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.role-callout h3 { color: white; margin: 0 0 0.5rem; }
.role-callout p { margin: 0; opacity: 0.92; }

/* ---------- About inset image ---------- */
.about-inset {
  float: right;
  width: 280px;
  margin: 0 0 1.5rem 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 720px) {
  .about-inset { float: none; width: 100%; margin: 1.5rem 0; }
}

/* ---------- Pre-workshop landing CTA (dark band) ---------- */
.pre-workshop-cta {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, #4a2d7a 100%);
  color: white;
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  margin: 4rem 0 0;
  text-align: center;
  overflow: hidden;
}
.pre-workshop-cta::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
}
.pre-workshop-cta::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 65%);
  pointer-events: none;
}
.pre-workshop-cta .inner { position: relative; z-index: 1; }
.pre-workshop-cta .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
  font-weight: 700;
}
.pre-workshop-cta h2 {
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.pre-workshop-cta p {
  max-width: 56ch;
  margin: 0 auto 2rem;
  opacity: 0.92;
  font-size: 1.05rem;
  line-height: 1.65;
}
.pre-workshop-cta .meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-light {
  background: var(--gold);
  color: var(--accent);
  border-color: var(--gold);
}
.btn-light:hover { background: #ffe06b; color: var(--accent); border-color: #ffe06b; }
.btn-light:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.fade-in-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.fade-in-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.fade-in-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.fade-in-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero .subtitle, .hero-meta { animation: float-in 0.6s ease-out both; }
.hero .subtitle { animation-delay: 0.1s; }
.hero-meta { animation-delay: 0.2s; }
.hero-photo { animation: float-in 0.7s ease-out both; animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-stagger > *,
  .hero h1, .hero .subtitle, .hero-meta, .hero-photo {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .thread-card:hover { transform: none; }
  .thread-card:hover .thread-icon-wrap { transform: none; }
}

/* ---------- Schedule colours + legend ---------- */
.schedule-grid td.cell-social { background: #FFF1C2; }
.schedule-grid td.cell-lecture { background: #D8E5FF; }
.schedule-grid td.cell-collab { background: #E8DAFB; }
.schedule-grid td.cell-hands { background: #D6F0DC; }
.schedule-grid td.cell-break {
  background: #EAEAEA;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin: 1.25rem 0 2rem;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text);
}
.legend-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.swatch-social { background: #FFF1C2; }
.swatch-lecture { background: #D8E5FF; }
.swatch-collab { background: #E8DAFB; }
.swatch-hands { background: #D6F0DC; }
.swatch-break { background: #EAEAEA; }

/* ---------- Schedule timetable (calendar grid) ---------- */
.timetable-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}
.timetable {
  display: grid;
  grid-template-columns: 54px repeat(5, minmax(155px, 1fr));
  grid-template-rows: auto repeat(32, 22px);
  gap: 3px;
  min-width: 860px;
}
.tt-corner { grid-column: 1; grid-row: 1; }
.tt-dayhead {
  border-top: 4px solid var(--accent);
  background: var(--bg-tint);
  border-radius: 8px 8px 0 0;
  padding: 0.55rem 0.7rem;
}
.tt-dayhead[data-theme="foundations"] { border-top-color: #E0A82E; }
.tt-dayhead[data-theme="teaching"] { border-top-color: #4E7FD6; }
.tt-dayhead[data-theme="delivery"] { border-top-color: #8A5BD4; }
.tt-dayhead[data-theme="hands-on"] { border-top-color: #3D9E5A; }
.tt-dayhead[data-theme="capstone"] { border-top-color: #2D1A4D; }
.tt-dayname { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.tt-dayname span { font-weight: 400; color: var(--text-muted); font-size: 0.76rem; }
.tt-daytitle { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }
.tt-time {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-align: right;
  padding-right: 0.5rem;
  transform: translateY(-0.5em);
  font-weight: 600;
}
.tt-sess {
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
  font-size: 0.72rem;
  line-height: 1.2;
  overflow: hidden;
  min-height: 0;
}
.tt-sess .sess-time {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
}
.tt-sess .sess-name { display: block; color: var(--text); font-weight: 500; }
.tt-sess.sess--lecture { background: #D8E5FF; }
.tt-sess.sess--collab { background: #E8DAFB; }
.tt-sess.sess--hands { background: #D6F0DC; }
.tt-sess.sess--social { background: #FFF1C2; }
.tt-sess.sess--break { background: #F0F0F0; }
.tt-sess.sess--break .sess-name { color: var(--text-muted); font-weight: 400; }

.tt-afterhours {
  display: grid;
  grid-template-columns: 54px repeat(5, minmax(155px, 1fr));
  gap: 3px;
  min-width: 860px;
  margin-top: 6px;
}
.tt-ah-label {
  grid-column: 1;
  font-size: 0.64rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  padding-right: 0.5rem;
  align-self: center;
  line-height: 1.1;
}
.tt-ah-cell {
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
}
.tt-ah-cell .sess-time { display: block; font-size: 0.6rem; color: var(--text-muted); font-weight: 600; }
.tt-ah-cell .sess-name { display: block; color: var(--accent); font-weight: 600; }

/* ---------- Work-in-progress badge ---------- */
.materials-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}
.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.wip-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E0A82E;
}
.resource-card--wip { opacity: 0.85; }

/* Apply category colours to day-card titles too */
.day-card[data-theme="foundations"] { border-top: 4px solid #FFD45C; }
.day-card[data-theme="teaching"] { border-top: 4px solid #6B96E5; }
.day-card[data-theme="delivery"] { border-top: 4px solid #A57FE8; }
.day-card[data-theme="hands-on"] { border-top: 4px solid #4FB36B; }
.day-card[data-theme="capstone"] { border-top: 4px solid #2D1A4D; }
.theme-card[data-theme="foundations"] { border-top: 4px solid #FFD45C; }
.theme-card[data-theme="teaching"] { border-top: 4px solid #6B96E5; }
.theme-card[data-theme="delivery"] { border-top: 4px solid #A57FE8; }
.theme-card[data-theme="hands-on"] { border-top: 4px solid #4FB36B; }
.theme-card[data-theme="capstone"] { border-top: 4px solid #2D1A4D; }

/* ---------- About page sections ---------- */
.about-header {
  padding: 1rem 0 3rem;
  margin-bottom: 2rem;
  text-align: center;
}
.about-header .section-eyebrow,
.about-header .section-title { text-align: center; }
.about-intro {
  max-width: 70ch;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
}
.about-intro p:first-child { margin-top: 0; }
.about-intro p:last-child { margin-bottom: 0; }

.about-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin: 4rem 0;
}
.about-section.reverse {
  grid-template-columns: 1.1fr 1fr;
}
.about-section.reverse .about-image { order: 2; }
@media (max-width: 820px) {
  .about-section,
  .about-section.reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin: 3rem 0;
  }
  .about-section.reverse .about-image { order: 0; }
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: 0 10px 30px rgba(54, 26, 84, 0.08);
}
.about-text .section-eyebrow {
  text-align: left;
  margin-bottom: 0.75rem;
}
.about-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.65;
}
.about-text ul {
  padding-left: 1.25rem;
  margin: 1rem 0 0;
}
.about-text li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

/* ---------- Callout (tentative note etc.) ---------- */
.callout-note {
  background: var(--bg-tint);
  border: 1px solid rgba(54, 26, 84, 0.18);
  border-left-width: 4px;
  border-left-color: var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout-note p { margin: 0; }
.callout-note p + p { margin-top: 0.4rem; }

/* ---------- Footer logos divider/label ---------- */
.footer-logos-divider {
  opacity: 0.4;
  font-size: 1rem;
}
.footer-logos-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
@media (max-width: 720px) {
  .footer-logos-divider { display: none; }
  .footer-logos-label { width: 100%; margin-top: 0.5rem; }
}

/* ---------- Texture utilities (grid + gradients) ---------- */
/* Very faint line grid, vignette mask so lines are strongest in the centre and gently fade toward all edges */
.with-grid {
  position: relative;
  isolation: isolate;
}
.with-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(54, 26, 84, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(54, 26, 84, 0.075) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at center, black 10%, transparent 95%);
          mask-image: radial-gradient(ellipse 85% 75% at center, black 10%, transparent 95%);
  pointer-events: none;
  z-index: -1;
}

/* Soft purple wash, anchored top (no yellow) */
.with-glow {
  position: relative;
  isolation: isolate;
}
.with-glow::before {
  content: "";
  position: absolute;
  inset: -20% 0 0 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(54, 26, 84, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Section that breaks the rhythm with a deeper tint */
.tint-section {
  background: linear-gradient(180deg, transparent 0%, rgba(243, 238, 251, 0.7) 30%, rgba(243, 238, 251, 0.7) 70%, transparent 100%);
  position: relative;
}

/* ============================================================
   Workshop Readiness Quiz
   ============================================================ */
.quiz-page { padding-top: 2.5rem; padding-bottom: 3.5rem; max-width: 820px; position: relative; }

/* ----- Persistent sound toggle (sticky toolbar, stays attached to content) ----- */
.quiz-topbar {
  position: sticky;
  top: 4.75rem;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.85rem;
  pointer-events: none;
}
.sound-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--accent);
  font: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(54, 26, 84, 0.12);
  transition: transform 0.08s ease, background 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sound-btn:hover { background: #fff; box-shadow: 0 6px 16px rgba(54, 26, 84, 0.18); }
.sound-btn:active { transform: scale(0.96); }
.sound-btn svg { display: block; flex: 0 0 auto; }
.sound-btn.is-off { color: var(--text-muted); }
.sound-btn .icon-off { display: none; }
.sound-btn.is-off .icon-on { display: none; }
.sound-btn.is-off .icon-off { display: block; }
.sound-label::after { content: " on"; }
.sound-btn.is-off .sound-label::after { content: " off"; }

/* ----- Intro hero: notched card (rounded by JS clip-path) ----- */
.quiz-hero {
  position: relative;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
}
.quiz-hero::before {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 200px; height: 200px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.14) 0 34px, transparent 35px),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.14) 0 34px, transparent 35px),
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.14) 0 34px, transparent 35px),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.14) 0 34px, transparent 35px);
  pointer-events: none; z-index: 0;
}
.quiz-hero > * { position: relative; z-index: 1; }

.quiz-badge {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255,255,255,0.14); color: #fff;
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.quiz-title { color: #fff; margin: 0.9rem 0 0.5rem; font-size: clamp(1.9rem, 5vw, 2.8rem); }
.quiz-sub { color: rgba(255,255,255,0.85); max-width: 48ch; margin: 0 0 1.2rem; }
.quiz-sub a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; border-bottom: none; }
.quiz-sub a:hover { color: #fff; opacity: 0.85; }
.quiz-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.quiz-chips span { font-size: 0.85rem; background: rgba(255,255,255,0.12); color: #fff; padding: 0.35rem 0.7rem; border-radius: 8px; }
.quiz-chips strong { font-weight: 700; }
.quiz-hero-foot { display: flex; align-items: center; gap: 1rem; }
.quiz-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: #fff; border-radius: 999px; transition: width 0.5s ease; }
.quiz-note { color: var(--text-muted); font-size: 0.9rem; margin: 0.9rem 0.25rem 0; }

/* ----- Buttons ----- */
/* white pill on the dark hero */
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--accent); border: none; border-radius: 999px;
  padding: 0.8rem 1.5rem; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 5px 0 #160b2b, 0 9px 16px rgba(0,0,0,0.25);
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-pill:hover { background: #fff7e6; }
.btn-pill:active { transform: translateY(5px); box-shadow: 0 0 0 #160b2b, 0 2px 6px rgba(0,0,0,0.25); }

/* respect the hidden attribute (display rules above would otherwise override it) */
.btn-press[hidden], .btn-pill[hidden] { display: none !important; }

/* purple pressable button with deep-purple shadow (the click effect) */
.btn-press {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 0.85rem 1.7rem; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 0 #190d31, 0 10px 18px rgba(54, 26, 84, 0.28);
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-press:hover { background: #3a2462; }
.btn-press:active { transform: translateY(6px); box-shadow: 0 0 0 #190d31, 0 2px 6px rgba(54, 26, 84, 0.3); }
.btn-press[disabled] { opacity: 0.45; cursor: default; box-shadow: 0 6px 0 #190d31; pointer-events: none; }
.btn-press.secondary {
  background: var(--card-bg); color: var(--accent); border: 2px solid var(--accent);
  box-shadow: 0 6px 0 rgba(54, 26, 84, 0.3), 0 10px 18px rgba(54, 26, 84, 0.14);
}
.btn-press.secondary:hover { background: var(--accent-soft); }
.btn-press.secondary:active { box-shadow: 0 0 0 rgba(54, 26, 84, 0.3); }
.btn-press.nudge { animation: pill-nudge 0.32s ease; }
@keyframes pill-nudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.link-btn { background: none; border: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 0.3rem 0; }
.link-btn:hover { text-decoration: underline; }

/* ----- Runner & review shared ----- */
.quiz-progress { height: 10px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; margin-bottom: 0.85rem; }
.quiz-progress span { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width 0.4s ease; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.q-topic { background: var(--accent-soft); color: var(--accent); font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; }

.quiz-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 10px 30px rgba(54, 26, 84, 0.06);
}
.card-in { animation: card-in 0.3s ease; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.q-type { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.5rem; }
.q-text { font-size: 1.2rem; font-weight: 600; color: var(--accent); margin: 0 0 1.25rem; line-height: 1.45; }
.q-code {
  background: #1f1535; color: #f3eefb; border-radius: 10px; padding: 0.9rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92rem; line-height: 1.5;
  overflow-x: auto; margin: 0 0 1.5rem;
}
.q-code code { white-space: pre; }

/* extra separation between the question and the options */
.quiz-options { display: grid; gap: 0.65rem; margin-top: 1.5rem; }
.opt {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left;
  padding: 0.9rem 1rem; background: #fff; border: 2px solid var(--border); border-radius: 12px;
  font: inherit; color: var(--text); cursor: pointer;
  box-shadow: 0 2px 0 rgba(54, 26, 84, 0.1);
  transition: transform 0.06s ease, box-shadow 0.06s ease, border-color 0.12s, background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover:not([disabled]):not([aria-disabled="true"]) { border-color: var(--accent); }
.opt:active:not([disabled]):not([aria-disabled="true"]) { transform: translateY(2px); box-shadow: none; }
.opt[disabled], .opt[aria-disabled="true"] { cursor: default; }
.opt-mark { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.opt-text { flex: 1; }
.opt-tag { display: inline-block; margin-left: 0.4rem; font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 999px; background: rgba(0,0,0,0.06); color: var(--text-muted); vertical-align: middle; }
.opt.selected { border-color: var(--accent); background: var(--accent-soft); }
.opt.selected .opt-mark { background: var(--accent); color: #fff; }
.opt.correct { border-color: #1f7a3d; background: #eafaef; }
.opt.correct .opt-mark { background: #1f7a3d; color: #fff; }
.opt.correct .opt-tag { background: #d6f0de; color: #166335; }
.opt.wrong { border-color: #c0392b; background: #fdecea; }
.opt.wrong .opt-mark { background: #c0392b; color: #fff; }
.opt.wrong .opt-tag { background: #f7d4cf; color: #9a2018; }
.opt.missed { border-color: #1f7a3d; border-style: dashed; background: #f3faf5; }
.opt.missed .opt-mark { background: #1f7a3d; color: #fff; }

/* feedback */
.quiz-feedback { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 12px; animation: card-in 0.25s ease; }
.quiz-feedback.ok { background: #eafaef; border: 1px solid #b6dcc1; }
.quiz-feedback.no { background: #fdecea; border: 1px solid #f1c3bd; }
.fb-head { font-weight: 700; margin: 0 0 0.3rem; }
.quiz-feedback.ok .fb-head { color: #166335; }
.quiz-feedback.no .fb-head { color: #9a2018; }
.fb-body { margin: 0; font-size: 0.96rem; }
.quiz-whys { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.quiz-whys li { display: flex; gap: 0.5rem; font-size: 0.9rem; line-height: 1.45; }
.quiz-whys .why-mark { flex: 0 0 auto; font-weight: 700; }
.quiz-whys .y .why-mark { color: #166335; }
.quiz-whys .n .why-mark { color: #9a2018; }
.topic-review { display: inline-block; margin-top: 0.7rem; font-size: 0.88rem; font-weight: 600; }

.quiz-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }
.quiz-actions.split { justify-content: space-between; }

/* ----- Results ----- */
.results-head { text-align: center; padding: 1rem 0 0.5rem; }
.results-eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin: 0; }
.score-num { font-size: clamp(3rem, 12vw, 4.5rem); font-weight: 800; color: var(--accent); line-height: 1; margin: 0.4rem 0; }
.score-detail { color: var(--text-muted); margin: 0 0 1rem; }
.band { display: inline-grid; gap: 0.2rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; max-width: 30rem; margin: 0 auto; }
.band-emoji { font-size: 1.8rem; }
.band-title { font-weight: 800; color: var(--accent); font-size: 1.2rem; }
.band-msg { color: var(--text-muted); font-size: 0.95rem; }
.band-ready { box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.18); }
.best-line { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin: 1rem 0 0; }

.results-sub { margin: 2.5rem 0 1rem; font-size: 1.3rem; }
.topic-breakdown { display: grid; gap: 1rem; }
.topic-row { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; }
.topic-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.topic-name { font-weight: 600; color: var(--accent); }
.topic-score { font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 0.9rem; }
.topic-bar { height: 8px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.topic-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.topic-done { display: inline-block; margin-top: 0.55rem; font-size: 0.85rem; color: #166335; font-weight: 600; }

.results-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.5rem; }

/* ----- Review stepper ----- */
.review-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.rev-counter { font-size: 0.85rem; color: var(--text-muted); text-align: right; }
.rev-status { display: inline-block; font-weight: 700; font-size: 0.9rem; padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1rem; }
.rev-status.ok { background: #eafaef; color: #166335; }
.rev-status.no { background: #fdecea; color: #9a2018; }

@media (max-width: 560px) {
  .quiz-topbar { top: 4rem; }
  .quiz-actions { justify-content: stretch; }
  .quiz-actions .btn-press { flex: 1; }
  .quiz-actions.split { gap: 0.6rem; }
  .quiz-meta { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .opt { padding: 0.8rem 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card-in, .quiz-feedback, .btn-press.nudge { animation: none; }
  .quiz-progress span, .quiz-bar span, .btn-press, .btn-pill, .opt { transition: none; }
}

/* ============================================================
   Schedule: day-by-day accordions + Google Calendar embed
   ============================================================ */
.day-accordions { display: grid; gap: 0.75rem; margin: 1.75rem 0 2.5rem; }
.day-acc {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(54, 26, 84, 0.06);
}
.day-acc[open] { box-shadow: 0 8px 28px rgba(54, 26, 84, 0.10); }
.day-acc-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  transition: background 0.15s;
}
.day-acc-summary::-webkit-details-marker { display: none; }
.day-acc-summary:hover { background: var(--accent-soft); }
.day-acc-day {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
  white-space: nowrap;
}
.day-acc-date { font-weight: 600; color: var(--text-muted); font-size: 0.85rem; }
.day-acc-title { flex: 1; color: var(--text); font-weight: 600; }
.day-acc-chevron { flex: 0 0 auto; color: var(--accent); transition: transform 0.2s ease; }
.day-acc[open] .day-acc-chevron { transform: rotate(180deg); }
.day-acc-body { padding: 0.25rem 1.25rem 0.75rem; border-top: 1px solid var(--border); }

.sess-list { list-style: none; margin: 0; padding: 0; }
.sess-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.sess-row:last-child { border-bottom: none; }
.sess-row .legend-swatch { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; }
.sess-row-time {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.9rem;
  min-width: 7rem;
  flex: 0 0 auto;
}
.sess-row-name { font-weight: 500; }
.sess-row--after .sess-row-name em { color: var(--text-muted); font-style: italic; font-weight: 400; }

.cal-embed-section { margin-top: 3rem; }
.cal-embed-section h2 { font-size: 1.6rem; }
.cal-embed-lead { color: var(--text-muted); margin-bottom: 1.25rem; }
.cal-add-btn { margin-bottom: 1.5rem; }
.cal-embed {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(54, 26, 84, 0.10);
}
.cal-embed iframe { display: block; width: 100%; height: 650px; border: 0; }
.cal-embed-placeholder {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-tint);
  color: var(--text-muted);
}
.cal-embed-placeholder p { margin: 0 0 0.6rem; }
.cal-embed-placeholder p:last-child { margin-bottom: 0; }
.cal-embed-placeholder code { background: rgba(54, 26, 84, 0.10); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.9em; }

@media (max-width: 600px) {
  .day-acc-summary { flex-wrap: wrap; gap: 0.35rem 0.75rem; }
  .day-acc-title { flex-basis: 100%; order: 3; font-size: 0.95rem; }
  .cal-embed iframe { height: 520px; }
}

/* Brand logo in the navbar */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 66px; width: auto; display: block; }
@media (max-width: 820px) { .brand-logo { height: 54px; } }

/* Distinct gold call-out (e.g. dietary / accessibility note) */
.callout-gold {
  background: var(--gold-soft);
  border: 1px solid rgba(253, 214, 51, 0.5);
  border-left: 4px solid var(--gold);
}
.callout-gold h3 { color: var(--accent); }

/* Inline text links (always underlined) e.g. Google Skills, Discord */
.gs-link, .text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  border-bottom: none;
}
.gs-link:hover, .text-link:hover { color: var(--accent-bright); border-bottom: none; }
/* On the dark purple CTA block, inline links must be white (purple is unreadable) */
.pre-workshop-cta .gs-link, .pre-workshop-cta .text-link { color: #fff; }
.pre-workshop-cta .gs-link:hover, .pre-workshop-cta .text-link:hover { color: var(--gold); }

/* Connector line linking the numbered set-up steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.5rem + 20px);
  top: calc(1.25rem + 40px);
  bottom: calc(-1rem - 1px);
  width: 2px;
  background: rgba(54, 26, 84, 0.3);
  transform: translateX(-1px);
}
.step .number { position: relative; z-index: 1; }
.step:not(:first-child) .number::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 1.25rem;
  background: rgba(54, 26, 84, 0.3);
  transform: translateX(-1px);
}

/* Workshop Readiness Quiz CTA card (pre-workshop page) */
.quiz-cta {
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.quiz-cta-text { flex: 1 1 22rem; }
.quiz-cta .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.4rem;
}
.quiz-cta h3 { color: #fff; font-size: 1.45rem; margin: 0 0 0.5rem; }
.quiz-cta p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 52ch; }
.quiz-cta .quiz-cta-btn { white-space: nowrap; flex-shrink: 0; align-self: center; }
.quiz-cta .btn-pulse { animation-name: pulse-ring-gold; }

/* ============================================================
   Accelerate Your Model quiz: equation block, Recall callout, Given block
   ============================================================ */
.quiz-given { margin: 0 0 1.25rem; }
.given-label { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--text-muted); margin-bottom: .4rem; }
.quiz-given .q-code { margin: 0; }
.quiz-calc {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: .8rem 1rem; margin: .85rem 0 0; white-space: pre; overflow-x: auto;
  font-size: .92rem; line-height: 1.55; color: var(--text);
}
.quiz-recall {
  margin-top: .85rem; background: var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: .7rem .9rem; line-height: 1.5; font-size: .95rem;
  white-space: pre-line;
}
.recall-label { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: #8a6d00; margin-bottom: .25rem; }

/* Land scrolls below the sticky header so the full question is visible */
#quiz-run, #quiz-results, #quiz-review { scroll-margin-top: 88px; }

/* ---------- Accelerate quiz: animated GPU chip on the intro ---------- */
.gpu-anim { display: flex; justify-content: center; margin: 0 0 1.3rem; }
.gpu { width: clamp(170px, 42vw, 240px); height: auto; filter: drop-shadow(0 12px 26px rgba(0,0,0,.35)); }
.gpu .board { fill: #2a1550; stroke: rgba(255,255,255,.14); stroke-width: 1.5; }
.gpu .mem { fill: var(--gold); opacity: .5; }
.gpu .die { fill: #1d0f38; stroke: rgba(255,255,255,.18); stroke-width: 1; }
.gpu .die-ring { fill: none; stroke: #46d6c8; stroke-width: 2; opacity: .65; }
.gpu .core { fill: #5b3f86; animation: gpu-core 1.8s ease-in-out infinite; }
@keyframes gpu-core { 0%, 100% { fill: #5b3f86; } 45% { fill: var(--gold); } }
@media (prefers-reduced-motion: reduce) { .gpu .core { animation: none; fill: var(--gold); opacity: .85; } }
