/* =========================================================
   SFOA PG&E GREEN CAREER VIDEOS — INFOGRAPHIC STYLESHEET
   ========================================================= */

/* === BASE RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* === DESIGN TOKENS === */
:root {
  /* Typography */
  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* SFOA Palette — Clean Modern Greens (Coolors-inspired) */
  --green-900: #1A5632;
  --green-800: #22704A;
  --green-700: #2D8A5E;
  --green-600: #40916C;
  --green-500: #52B788;
  --green-400: #74C69D;
  --green-300: #95D5B2;
  --green-200: #B7E4C7;
  --green-100: #D8F3DC;
  --green-50:  #F0FBF4;

  --neutral-900: #1B1B28;
  --neutral-800: #2D2D3A;
  --neutral-700: #4A4A5A;
  --neutral-600: #6B6B7A;
  --neutral-500: #8A8A96;
  --neutral-400: #ADADB8;
  --neutral-300: #D1D1D8;
  --neutral-200: #E8E8EC;
  --neutral-100: #F4F4F6;
  --neutral-50:  #FAFAFA;

  --warm-50: #FFFDF7;
  --warm-100: #FFF9EB;
  --warm-200: #FFF0CC;

  --cream: #FFFFFF;
  --cream-warm: #F7FAF5;
  --cream-dark: #EDF2EA;

  /* Semantic */
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-alt: var(--green-50);
  --color-text: #1B1B28;
  --color-text-muted: #4A4A5A;
  --color-text-faint: #8A8A96;
  --color-primary: var(--green-700);
  --color-primary-hover: var(--green-800);
  --color-border: #E4E8E2;

  /* Activity type colors — high contrast */
  --type-discussion: #2D6A4F;     /* Forest green — primary green */
  --type-video: #3A7CA5;          /* Steel blue — clear contrast from green */
  --type-activity: #E07B39;       /* Warm orange — stands out vividly */
  --type-followup: #7B5EA7;       /* Purple/violet — distinct from all others */

  /* Shadows — softer, using neutral instead of green-tinted */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.03);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-max: 1060px;
  --content-wide: 1400px;
  --nav-width: 220px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

a {
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-color: rgba(45, 138, 94, 0.3);
  text-underline-offset: 2px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
a:hover {
  color: var(--green-800);
  text-decoration-color: var(--green-800);
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.2; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(82, 183, 136, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button { cursor: pointer; background: none; border: none; font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* === SIDE NAV === */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--nav-width);
  background: var(--green-900);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-toggle {
  display: none;
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 200;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.nav-content {
  padding: var(--space-8) var(--space-5) var(--space-6);
  overflow-y: auto;
  flex: 1;
}

.nav-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  padding-left: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1.4;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-weight: 500;
}

/* Main content offset */
body {
  margin-left: var(--nav-width);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--green-800) 0%, var(--green-600) 50%, var(--green-500) 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.08) 0%, transparent 45%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 86, 50, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-20) var(--space-8);
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  color: var(--green-200);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-8);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  line-height: 1.05;
}

.hero-x {
  font-weight: 400;
  opacity: 1;
  font-size: 0.65em;
  margin: 0 0.15em;
  color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--green-200);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}

.hero-version {
  font-size: var(--text-sm);
  color: var(--green-300);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero leaf decorations */
.hero-leaf {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.hero-leaf-1 {
  width: 180px;
  top: 10%;
  right: 5%;
  opacity: 0.7;
  transform: rotate(15deg);
}
.hero-leaf-2 {
  width: 120px;
  bottom: 15%;
  left: 3%;
  opacity: 0.5;
  transform: rotate(-20deg);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.btn-primary {
  background: #FFFFFF;
  color: var(--green-800);
}
.btn-primary:hover {
  background: var(--cream-warm);
  color: var(--green-900);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
  text-decoration: none;
}

/* === CONTAINER === */
.container {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* === SECTIONS === */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}
.section-alt {
  background: var(--green-50);
}

.section-header {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
  text-align: center;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: var(--space-4);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.01em;
}

.duration-label {
  font-weight: 400;
  font-size: 0.6em;
  color: var(--color-text-muted);
}

/* === INFO CARDS (Access & Logistics) === */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: var(--space-4);
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: var(--space-2);
}

.info-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.info-cards-wide {
  grid-template-columns: repeat(2, 1fr);
}

.info-card ol,
.info-card ul {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-left: var(--space-5);
  margin: 0;
}
.info-card ol li,
.info-card ul li {
  margin-bottom: var(--space-2);
}
.info-card ol li:last-child,
.info-card ul li:last-child {
  margin-bottom: 0;
}

/* === SUMMARY BLOCK (Video Summary) === */
.summary-block {
  max-width: 800px;
  margin: 0 auto;
}

.lead-text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 72ch;
}

.core-topics {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.core-topics h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: var(--space-4);
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.topic-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--green-50);
  color: var(--green-900);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--green-200);
}

/* === TABLES === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.styled-table thead {
  background: var(--green-800);
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
}

.styled-table thead th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  color: #FFFFFF;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--green-600);
}

.styled-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.styled-table tbody tr:last-child { border-bottom: none; }
.styled-table tbody tr:hover { background: var(--green-50); }

.styled-table td {
  padding: var(--space-4) var(--space-5);
  vertical-align: top;
  line-height: 1.55;
}

/* Activity type badges */
.type-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.type-discussion {
  background: var(--type-discussion);
  color: #fff;
}
.type-video {
  background: var(--type-video);
  color: #fff;
}
.type-activity {
  background: var(--type-activity);
  color: #fff;
}
.type-followup {
  background: var(--type-followup);
  color: #fff;
}

/* Timeline type backgrounds (subtle) */
.type-bg-discussion { border-left: 4px solid var(--type-discussion); }
.type-bg-video { border-left: 4px solid var(--type-video); }
.type-bg-activity { border-left: 4px solid var(--type-activity); }
.type-bg-followup { border-left: 4px solid var(--type-followup); }

/* === TIMELINE (1-Day Plan) === */
.timeline-wrapper {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: var(--space-12);
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-300), var(--green-500));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
}

.timeline-step {
  position: absolute;
  left: calc(-1 * var(--space-12) + 6px);
  top: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 0 4px #FFFFFF;
}

.timeline-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.timeline-duration {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.timeline-card p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

/* === LESSON CARDS (Detailed Plan) === */
.lesson-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.lesson-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--green-50);
  border-bottom: 1px solid var(--color-border);
}

.lesson-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
}

.lesson-card-header h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--green-900);
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lesson-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.lesson-card-header .type-badge {
  flex-shrink: 0;
}

.lesson-card-body {
  padding: var(--space-6);
}

.lesson-subsection {
  margin-bottom: var(--space-6);
}
.lesson-subsection:last-child {
  margin-bottom: 0;
}

.lesson-subsection h4 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lesson-subsection h4 svg {
  flex-shrink: 0;
  color: var(--green-500);
}

.subsection-note {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.lesson-subsection ul {
  list-style: none;
  padding: 0;
}

.lesson-subsection li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.lesson-subsection li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
}

.discussion-questions li::before {
  background: none;
  border: 2px solid var(--green-400);
  width: 8px;
  height: 8px;
  top: 0.55em;
}

.lesson-card-body p {
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}
.lesson-card-body p:last-child { margin-bottom: 0; }

/* === ACTIVITY PHASE HEADERS & INSTRUCTOR SCRIPT === */
.activity-phase {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--neutral-800);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.activity-phase:first-of-type {
  margin-top: var(--space-1);
}

.phase-time {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--neutral-600);
  background: var(--neutral-100);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.instructor-script {
  background: rgba(224, 123, 57, 0.07);
  border-left: 3px solid var(--type-activity);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--neutral-700);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.answer-key {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: var(--neutral-700);
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

/* === FEATURED INTERVIEW === */
.featured-interview {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--green-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-200);
}

.interview-photo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-200);
}

.interview-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.interview-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.interview-info strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--green-900);
}

.interview-info span:last-child {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* === RUBRIC === */
.rubric {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.rubric h4 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rubric h4 svg {
  color: var(--green-500);
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.rubric-item {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid;
}

.rubric-level {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.rubric-score {
  font-weight: 500;
  opacity: 0.7;
}

.rubric-item p {
  font-size: var(--text-xs);
  line-height: 1.55;
}

.rubric-emerging {
  background: #FFF8F0;
  border-color: #E8D5BE;
}
.rubric-emerging .rubric-level { color: #9A7B4F; }

.rubric-developing {
  background: #F8FAEF;
  border-color: var(--green-200);
}
.rubric-developing .rubric-level { color: var(--green-600); }

.rubric-proficient {
  background: #EFF5E5;
  border-color: var(--green-300);
}
.rubric-proficient .rubric-level { color: var(--green-800); }

/* === OUTCOMES === */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.outcome-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.outcome-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.outcome-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
}

/* Standards Callout */
.standards-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: 800px;
  margin: var(--space-10) auto 0;
  padding: var(--space-8);
  background: var(--green-100);
  border-radius: var(--radius-lg);
  border: 2px solid var(--green-400);
  box-shadow: var(--shadow-md);
}

.standards-callout-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
}

.standards-callout-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: var(--space-3);
}

.standards-callout-content p {
  font-size: var(--text-base);
  color: var(--green-800);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.btn-standards {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  background: var(--green-700);
  color: #fff;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn-standards:hover {
  background: var(--green-800);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 112, 74, 0.35);
}

@media print {
  .standards-callout {
    border: 1pt solid #ccc;
    box-shadow: none;
  }
}

/* === DELIVERY OPTIONS === */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.delivery-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.delivery-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.delivery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: var(--space-4);
}

.delivery-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: var(--space-3);
}

.delivery-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* === HANDOUTS === */
.handouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.handout-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--green-900);
}

.handout-item svg {
  flex-shrink: 0;
  color: var(--green-500);
}

/* === STANDARDS CROSSWALK TABLE === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.filter-bar-grade {
  margin-bottom: var(--space-6);
}

.filter-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green-700);
  margin-right: var(--space-2);
}

.filter-btn, .filter-btn-grade {
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-xl);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn-grade:hover {
  background: var(--green-100);
  color: var(--green-700);
  border-color: var(--green-300);
}

.filter-btn.active, .filter-btn-grade.active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}

.standards-table td:first-child {
  font-weight: 500;
  white-space: normal;
  font-size: var(--text-xs);
}

.standards-table td:nth-child(3) {
  font-weight: 600;
  white-space: nowrap;
  color: var(--green-700);
  font-family: var(--font-body);
}

/* Subject cell colors */
.subject-cell {
  font-size: var(--text-xs) !important;
  line-height: 1.3;
}

.subject-cte { color: var(--green-800); }
.subject-cte-energy { color: var(--green-600); }
.subject-ela { color: #6B4E8A; }
.subject-ela-rlst { color: #7B5E9A; }
.subject-ela-sl { color: #5E6BAA; }
.subject-ela-w { color: #8B5E8A; }
.subject-hss { color: #9A7B4F; }
.subject-ngss { color: #2E7D6A; }

/* Standards table column widths (screen) */
.standards-table {
  table-layout: fixed;
}
.standards-table th:nth-child(1),
.standards-table td:nth-child(1) { width: 20%; }
.standards-table th:nth-child(2),
.standards-table td:nth-child(2) { width: 8%; }
.standards-table th:nth-child(3),
.standards-table td:nth-child(3) { width: 12%; }
.standards-table th:nth-child(4),
.standards-table td:nth-child(4) { width: 60%; }

/* Row hidden by filter */
.standards-table tr.hidden { display: none; }

/* Subject group header rows */
.subject-group-header {
  background: var(--green-100) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--green-800);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--green-300);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Alternating groups */
.standards-table tbody tr:nth-child(even) {
  background: var(--green-50);
}
/* Group header rows should not use alternating background */
.subject-group-header-row {
  background: none !important;
}

/* === FOOTER === */
.site-footer {
  background: var(--green-900);
  padding: var(--space-12) 0;
  text-align: center;
}

.site-footer p {
  color: var(--green-300);
  font-size: var(--text-sm);
  max-width: none;
}

.footer-sub {
  margin-top: var(--space-2);
  font-size: var(--text-xs) !important;
  opacity: 0.7;
}

.footer-sub a {
  color: var(--green-200);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  :root {
    --nav-width: 0px;
  }

  body {
    margin-left: 0;
  }

  .side-nav {
    transform: translateX(-260px);
    width: 260px;
  }
  .side-nav.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }

  .side-nav .nav-content {
    padding-top: calc(var(--space-16) + var(--space-4));
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .timeline-wrapper {
    padding-left: var(--space-10);
  }

  .timeline-wrapper::before {
    left: 14px;
  }

  .timeline-step {
    left: calc(-1 * var(--space-10) + 2px);
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .lesson-card-header {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .lesson-card-header .type-badge {
    order: -1;
    flex-basis: auto;
  }

  .rubric-grid {
    grid-template-columns: 1fr;
  }

  .featured-interview {
    flex-direction: column;
    text-align: center;
  }

  .filter-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .hero { min-height: 70vh; }
  .hero-content { padding: var(--space-12) var(--space-4); }
  .hero-leaf { display: none; }
  .container { padding: 0 var(--space-4); }
  .info-cards { grid-template-columns: 1fr; }
  .info-cards-wide { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .handouts-grid { grid-template-columns: 1fr; }

  .styled-table { font-size: var(--text-xs); }
  .styled-table td, .styled-table th { padding: var(--space-3); }

  .lesson-step-num {
    width: 36px;
    height: 36px;
  }
}

/* === PLAN TOGGLE === */
.plan-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 3px;
  gap: 2px;
  margin-bottom: var(--space-8);
  border: 1px solid rgba(255,255,255,0.2);
}
.plan-toggle-btn {
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.plan-toggle-btn:hover {
  color: #fff;
}
.plan-toggle-btn.active {
  background: #fff;
  color: var(--green-800);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* === PLAN-SPECIFIC VISIBILITY === */
/* Hide 10-min content by default (but not toggle buttons) */
section[data-plan="tenmin"],
div.lesson-card[data-plan="tenmin"],
div.delivery-card[data-plan="tenmin"],
p[data-plan="tenmin"],
a.nav-link[data-plan="tenmin"],
tr[data-plan="tenmin"] { display: none; }
body.plan-tenmin section[data-plan="classroom"],
body.plan-tenmin div.delivery-card[data-plan="classroom"],
body.plan-tenmin a[data-plan="classroom"],
body.plan-tenmin p[data-plan="classroom"] { display: none !important; }
body.plan-tenmin a.nav-link[data-plan="tenmin"] { display: block !important; }
/* Keep toggle buttons always visible regardless of plan mode */
.plan-toggle .plan-toggle-btn { display: inline-flex !important; }
body.plan-tenmin [data-plan="tenmin"] { display: block !important; }
body.plan-tenmin section[data-plan="tenmin"] { display: block !important; }
body.plan-tenmin div[data-plan="tenmin"] { display: block !important; }
body.plan-tenmin p[data-plan="tenmin"] { display: block !important; }
body.plan-tenmin tr[data-plan="tenmin"] { display: table-row !important; }

/* === FEATURED INTERVIEWS ROW (10-min plan) === */
.featured-interviews-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--space-2) 0 0;
}
.featured-interview-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  flex: 0 0 auto;
}
.featured-interview-mini .interview-photo {
  width: 72px;
  height: 72px;
}
.featured-interview-mini .interview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.featured-interview-mini .interview-info strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--green-900);
}
.featured-interview-mini .interview-info span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* === PRINT STYLES === */
@media print {
  .no-print { display: none !important; }
  .plan-toggle { display: none !important; }
  /* Plan visibility in print — respect the body.plan-tenmin class set before PDF generation.
     Do NOT force all [data-plan] visible — that shows both plans. */

  /* --- Global resets for print --- */
  body {
    margin-left: 0 !important;
    font-size: 10pt;
    color: #000;
    background: #fff !important;
  }

  /* CRITICAL: Force all scroll-reveal elements visible in print.
     The JS scroll observer doesn't run during print, leaving elements at opacity:0. */
  .section-header,
  .info-card,
  .lesson-card,
  .timeline-item,
  .outcome-card,
  .delivery-card,
  .handout-item,
  .standards-callout {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Hide interactive/web-only elements */
  .side-nav,
  .nav-toggle,
  .mobile-nav-toggle,
  .hero-actions,
  .filter-bar,
  .hero-bg-pattern,
  .hero-overlay,
  .hero-leaf {
    display: none !important;
  }

  /* --- Hero: compact for print --- */
  .hero {
    min-height: auto;
    padding: 30pt 20pt;
    background: #22704A !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hero-badge { margin-bottom: 8pt; }
  .hero-title { font-size: 24pt; margin-bottom: 4pt; }
  .hero-subtitle { font-size: 12pt; margin-bottom: 2pt; color: var(--green-200); }
  .hero-version { font-size: 9pt; margin-bottom: 0; }

  /* --- Sections: compact padding, NO forced page breaks --- */
  .section {
    padding: 14pt 0;
    /* REMOVED: page-break-inside: avoid — sections are too large, causing blank pages */
  }

  .section-header {
    margin-bottom: 10pt;
    break-after: avoid;
    page-break-after: avoid;
  }

  .section-header h2 {
    font-size: 16pt;
  }

  .section-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 4pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .section-label {
    font-size: 7pt;
    margin-bottom: 2pt;
  }

  .section-alt {
    background: #f5f7f3 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* --- Container --- */
  .container {
    max-width: 100%;
    padding: 0 16pt;
  }

  /* --- Cards: compact, breakable --- */
  .info-card, .delivery-card, .outcome-card {
    box-shadow: none;
    border: 1pt solid #ccc;
    padding: 10pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .info-cards,
  .outcomes-grid,
  .delivery-grid,
  .handouts-grid {
    gap: 8pt;
  }

  .info-card h3,
  .delivery-card h3 {
    font-size: 11pt;
    margin-bottom: 3pt;
  }

  .info-card p,
  .delivery-card p {
    font-size: 9pt;
  }

  /* --- Lesson cards: avoid splitting across pages --- */
  .lesson-card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1pt solid #ccc;
    margin-bottom: 10pt;
  }

  .lesson-card-header {
    padding: 6pt 8pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    display: flex;
    align-items: center;
    gap: 6pt;
    flex-wrap: nowrap;
  }

  /* Step number first on the left */
  .lesson-card-header .lesson-step-num {
    order: -1;
    flex-shrink: 0;
  }

  /* Title + time fills the middle */
  .lesson-card-header > div:not(.lesson-step-num) {
    flex: 1;
    min-width: 0;
  }

  /* Type badge stays on the right */
  .lesson-card-header .type-badge {
    order: 1;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Remove the left-border type coloring in print — it creates uneven left spacing */
  .type-bg-discussion,
  .type-bg-video,
  .type-bg-activity,
  .type-bg-followup {
    border-left: none !important;
  }

  .lesson-card-header h3 {
    font-family: var(--font-body);
    font-size: 10pt;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .lesson-card-body {
    padding: 10pt;
  }

  .lesson-step-num {
    width: 32px;
    height: 32px;
    font-size: 11pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .lesson-subsection {
    margin-bottom: 8pt;
  }

  .lesson-subsection h4 {
    font-size: 8pt;
    margin-bottom: 4pt;
  }

  .lesson-subsection li,
  .lesson-card-body p {
    font-size: 9pt;
    line-height: 1.45;
  }

  /* --- Rubric: compact grid --- */
  .rubric {
    margin-top: 8pt;
    padding-top: 8pt;
  }

  .rubric-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6pt;
  }

  .rubric-item {
    padding: 6pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .rubric-level { font-size: 9pt; }
  .rubric-item p { font-size: 8pt; }

  .rubric-item h4 {
    display: flex;
    gap: 4pt;
    align-items: baseline;
  }
  .rubric-item h4 span {
    white-space: nowrap;
  }

  /* --- Timeline: compact, avoid-inside per item --- */
  .timeline-wrapper {
    max-width: 100%;
    padding-left: 36pt;
  }

  .timeline-wrapper::before {
    left: 14px;
  }

  .timeline-item {
    margin-bottom: 8pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .timeline-step {
    left: calc(-36pt + 2px);
    width: 24px;
    height: 24px;
    font-size: 7pt;
    box-shadow: 0 0 0 3px #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .timeline-card {
    padding: 8pt 10pt;
    box-shadow: none;
    border: 1pt solid #ccc;
  }

  .timeline-card p { font-size: 9pt; }

  /* --- Featured interview --- */
  .featured-interview {
    padding: 8pt;
    gap: 8pt;
  }
  .interview-photo {
    width: 56px;
    height: 56px;
  }

  /* --- Outcomes --- */
  .outcome-card {
    padding: 10pt;
  }
  .outcome-num {
    width: 28px;
    height: 28px;
    font-size: 9pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .outcome-card p { font-size: 9pt; }

  /* --- Standards callout --- */
  .standards-callout {
    padding: 10pt;
    margin-top: 10pt;
    gap: 8pt;
    border: 1pt solid var(--green-300);
    background: var(--green-100) !important;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .standards-callout-icon {
    width: 36px;
    height: 36px;
  }
  .standards-callout-content h3 { font-size: 11pt; }
  .standards-callout-content p { font-size: 9pt; }
  .btn-standards { display: none; }

  /* --- Standards crosswalk table --- */
  .standards-table tr.hidden { display: table-row !important; }
  .subject-group-header-row.hidden { display: table-row !important; }

  .subject-group-header {
    font-size: 8pt !important;
    padding: 4pt 3pt !important;
    background: var(--green-100) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .standards-table {
    font-size: 8pt;
    table-layout: fixed;
    width: 100%;
  }

  .styled-table thead {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .standards-table thead th {
    font-size: 7pt;
    padding: 4pt 3pt;
    white-space: nowrap;
    letter-spacing: 0.02em;
  }

  .standards-table th,
  .standards-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 4pt 3pt;
    font-size: 8pt;
    line-height: 1.35;
  }

  /* Column widths — wider subject area, prevent header word-break */
  .standards-table th:nth-child(1),
  .standards-table td:nth-child(1) { width: 26%; font-size: 7pt; }
  .standards-table th:nth-child(2),
  .standards-table td:nth-child(2) { width: 9%; white-space: nowrap; font-size: 7pt; }
  .standards-table th:nth-child(3),
  .standards-table td:nth-child(3) { width: 13%; white-space: nowrap; }
  .standards-table th:nth-child(4),
  .standards-table td:nth-child(4) { width: 54%; }

  /* Prevent subject area from overflowing into adjacent columns */
  .standards-table td:first-child {
    white-space: normal !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Allow table rows to break across pages */
  .table-responsive {
    overflow: visible;
    box-shadow: none;
    border: 1pt solid #ccc;
  }

  /* --- Type badges --- */
  .type-badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-size: 7pt;
    padding: 2pt 5pt;
  }

  /* --- Handouts --- */
  .handout-item {
    padding: 6pt 8pt;
    font-size: 9pt;
  }

  /* --- Links --- */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666;
  }
  a[href^="#"]::after {
    content: none;
  }

  /* --- Page break strategy ---
     Only force page breaks where content would otherwise be bisected across pages.
     Rule: pack sections together; only break before a section if it wouldn't fit
     entirely in the remaining space on the current page.
     #standards can share a page with S6 (Learning Outcomes). */
  #video-summary,
  #timeline,
  #timeline-10min,
  #detailed-plan,
  #outcomes,
  #alternatives {
    page-break-before: always;
  }
  /* #detailed-plan-10min: removed — 10-min timeline (S4) is small (~3 items),
     so the detailed plan can start on the same page without bisection risk.
     #alternatives: kept — S7 and S8 naturally share a well-filled page together;
     removing this break causes S7 to start mid-appendix-page, leaving S8 alone. */

  /* The 1-Day timeline — sized to fill one page */
  #timeline {
    padding: 12pt 0;
  }
  #timeline .section-header {
    margin-bottom: 10pt;
  }
  #timeline .section-header h2 {
    font-size: 16pt;
  }
  #timeline .section-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 4pt;
  }
  #timeline .section-label {
    font-size: 7pt;
  }
  #timeline .timeline-wrapper {
    padding-left: 34pt;
  }
  #timeline .timeline-item {
    margin-bottom: 5pt;
  }
  #timeline .timeline-step {
    width: 26px;
    height: 26px;
    font-size: 10pt;
    left: calc(-34pt + 2px);
    box-shadow: 0 0 0 2px #fff;
  }
  #timeline .timeline-card {
    padding: 6pt 10pt;
  }
  #timeline .timeline-card p {
    font-size: 9pt;
    line-height: 1.4;
  }
  #timeline .type-badge {
    font-size: 7pt;
    padding: 2pt 5pt;
  }
  #timeline .timeline-duration {
    font-size: 7pt;
  }

  /* --- Summary/lead text --- */
  .lead-text,
  .summary-block p,
  #video-summary p {
    font-size: 10pt;
    line-height: 1.55;
    margin-bottom: 10pt;
    max-width: 100% !important;
  }
  .summary-block {
    max-width: 100%;
  }

  .core-topics {
    box-shadow: none;
    border: 1pt solid #ccc;
    padding: 10pt;
  }

  .topic-tag {
    font-size: 8pt;
    padding: 2pt 6pt;
  }

  /* --- Footer --- */
  .site-footer {
    padding: 12pt 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .site-footer p { font-size: 8pt; }

  .featured-interviews-row {
    gap: 6pt;
    padding: 6pt;
  }
  .featured-interview-mini .interview-photo {
    width: 48px;
    height: 48px;
  }
}

/* === SCROLL REVEAL ANIMATION === */
@media (prefers-reduced-motion: no-preference) {
  .section-header,
  .info-card,
  .lesson-card,
  .timeline-item,
  .outcome-card,
  .delivery-card,
  .handout-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .section-header.visible,
  .info-card.visible,
  .lesson-card.visible,
  .timeline-item.visible,
  .outcome-card.visible,
  .delivery-card.visible,
  .handout-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   LOGIN / ENTRY SCREEN
   ========================================================= */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--green-50);
  margin-left: 0;
}

.login-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6);
}

.login-hero {
  text-align: center;
  padding: var(--space-12) var(--space-6) var(--space-8);
}

.login-hero-content {
  max-width: 500px;
  margin: 0 auto;
}

.login-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.1;
}

.login-x {
  color: var(--green-500);
  font-weight: 400;
}

.login-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--neutral-600);
  margin-top: var(--space-2);
}

.login-container {
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  border: 1px solid var(--green-200);
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow: 0 4px 24px rgba(26, 86, 50, 0.08);
}

.login-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: var(--space-6);
  text-align: center;
}

.login-description {
  text-align: center;
  color: var(--neutral-600);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

/* Role cards */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.role-card {
  background: var(--cream);
  border: 2px solid var(--green-200);
  border-radius: 12px;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  font-family: var(--font-body);
}

.role-card:hover {
  border-color: var(--green-500);
  box-shadow: 0 4px 16px rgba(26, 86, 50, 0.12);
  transform: translateY(-2px);
}

.role-card:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 2px;
}

.role-icon {
  color: var(--green-700);
  margin-bottom: var(--space-3);
}

.role-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: var(--space-2);
}

.role-card p {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  line-height: 1.4;
}

@media (max-width: 480px) {
  .role-cards { grid-template-columns: 1fr; }
}

/* Forms */
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-700);
}

.form-group input {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--neutral-300);
  border-radius: 8px;
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: border-color 0.2s;
  background: var(--cream);
}

.form-group input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--neutral-500);
}

.form-optional {
  font-weight: 400;
  color: var(--neutral-500);
}

.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  font-size: var(--text-sm);
}

.login-btn {
  width: 100%;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  margin-top: var(--space-2);
}

.login-switch {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.link-btn {
  background: none;
  border: none;
  color: var(--green-700);
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--green-900);
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  color: var(--neutral-600);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  cursor: pointer;
  margin-bottom: var(--space-4);
  padding: 0;
}

.login-back-link:hover {
  color: var(--green-700);
}

/* Student ID card */
.student-id-card {
  background: var(--green-50);
  border: 2px solid var(--green-300);
  border-radius: 12px;
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-4);
}

.student-id-label {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin-bottom: var(--space-2);
}

.student-id-value {
  font-family: 'Work Sans', monospace;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: 0.15em;
}

.student-id-hint {
  font-size: var(--text-xs);
  color: var(--neutral-500);
  margin-top: var(--space-2);
}

/* Login footer */
.login-footer {
  text-align: center;
  padding: var(--space-6);
  font-size: var(--text-xs);
  color: var(--neutral-500);
}

.login-footer a {
  color: var(--green-700);
}

/* =========================================================
   TOP NAV BAR (INSTRUCTOR PORTAL)
   ========================================================= */

body.dashboard-mode {
  margin-left: 0;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--green-900);
  color: #fff;
  padding: 0 var(--space-6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.top-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: var(--space-4);
}

.top-nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  white-space: nowrap;
  opacity: 0.85;
}

.top-nav-tabs {
  display: flex;
  gap: var(--space-1);
}

.top-nav-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.top-nav-tab:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.top-nav-tab.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 600;
}

.top-nav-signout {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.top-nav-signout:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
  .top-nav-brand { display: none; }
  .top-nav-signout span { display: none; }
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--neutral-900);
}

.dashboard-empty {
  text-align: center;
  padding: var(--space-10);
  color: var(--neutral-500);
  font-size: var(--text-sm);
}

/* Class list */
.class-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.class-card {
  background: var(--cream);
  border: 1px solid var(--green-200);
  border-radius: 12px;
  padding: var(--space-5);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.class-card:hover {
  border-color: var(--green-500);
  box-shadow: 0 4px 16px rgba(26,86,50,0.10);
}

.class-card.selected {
  border-color: var(--green-700);
  box-shadow: 0 0 0 2px var(--green-300);
}

.class-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2);
}

.class-card-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--neutral-900);
}

.class-card-code {
  font-family: 'Work Sans', monospace;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  color: var(--green-800);
  background: var(--green-100);
  padding: 2px 8px;
  border-radius: 6px;
}

.class-card-meta {
  font-size: var(--text-xs);
  color: var(--neutral-500);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
}

.status-active   { background: #D1FAE5; color: #065F46; }
.status-expired  { background: #FEF3C7; color: #92400E; }
.status-deactivated { background: var(--neutral-200); color: var(--neutral-600); }

/* Class detail */
.class-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--neutral-200);
}

.dashboard-stats {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.stat-card {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 10px;
  padding: var(--space-4) var(--space-5);
  flex: 1;
  min-width: 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--green-900);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--neutral-600);
  margin-top: var(--space-1);
}

.dashboard-select {
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--neutral-300);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: var(--cream);
}

/* Response table */
.response-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--cream);
}

.response-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.response-table th {
  background: var(--green-50);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--neutral-700);
  border-bottom: 2px solid var(--green-200);
  white-space: nowrap;
}

.response-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--neutral-100);
  color: var(--neutral-800);
  vertical-align: top;
}

.response-table tr:last-child td {
  border-bottom: none;
}

.response-table .response-text-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-table .response-text-cell:hover {
  white-space: normal;
  overflow: visible;
}

@keyframes row-flash {
  0%   { background: var(--green-100); }
  100% { background: transparent; }
}

.response-table tr.new-row {
  animation: row-flash 1.5s ease-out;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-4);
}

.modal {
  background: var(--cream);
  border-radius: 16px;
  padding: var(--space-8);
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--neutral-500);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--neutral-900);
}

/* Inline deactivate button (class detail header) */
.deactivate-btn {
  font-size: 12px !important;
  padding: 3px 12px !important;
  border-radius: 6px;
  background: none;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.deactivate-btn:hover {
  background: #FEF2F2;
  border-color: #F87171;
}

.deactivate-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Copy code button */
.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-50);
  border: 1px solid var(--green-300);
  color: var(--green-800);
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.copy-code-btn:hover {
  background: var(--green-100);
  border-color: var(--green-500);
}

.copy-code-btn.copied {
  background: var(--green-200);
  color: var(--green-900);
}

/* Stat card wide variant (RIASEC chart) */
.stat-card-wide {
  flex: 2;
  min-width: 280px;
}

/* RIASEC bar chart */
.riasec-chart {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.riasec-bar-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.riasec-bar-track {
  flex: 1;
  height: 22px;
  background: var(--neutral-100);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}

.riasec-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.riasec-bar-name {
  position: absolute;
  top: 0;
  left: 8px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.riasec-bar-name-dark {
  color: var(--neutral-900);
  text-shadow: none;
}

.riasec-bar-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--neutral-600);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* Score cell in response table */
.response-table .score-cell {
  font-size: 12px;
  white-space: nowrap;
}

/* =========================================================
   DASHBOARD — VIEW TOGGLE, TOOLBAR, CARDS
   ========================================================= */

/* Dashboard view toggle — light-bg variant of .plan-toggle */
.dashboard-view-toggle {
  margin-bottom: var(--space-4);
}

.dashboard-toggle {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
}

.dashboard-toggle .plan-toggle-btn {
  color: var(--neutral-600);
}

.dashboard-toggle .plan-toggle-btn:hover {
  color: var(--neutral-900);
}

.dashboard-toggle .plan-toggle-btn.active {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Dashboard toolbar */
.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.dashboard-search {
  flex: 1;
  min-width: 200px;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--neutral-300);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: var(--cream);
  transition: border-color 0.15s;
}

.dashboard-search:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

/* Export dropdown */
.export-dropdown {
  position: relative;
}

.export-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--cream);
  color: var(--neutral-700);
  border: 1.5px solid var(--neutral-300);
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.export-dropdown-btn:hover {
  border-color: var(--green-400);
  color: var(--green-800);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.export-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-1);
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 100;
  min-width: 150px;
  overflow: hidden;
}

.export-dropdown-item {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-4);
  border: none;
  background: none;
  text-align: left;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--neutral-800);
  cursor: pointer;
  transition: background 0.1s;
}

.export-dropdown-item:hover {
  background: var(--green-50);
}

/* Responsive toolbar */
@media (max-width: 600px) {
  .dashboard-search {
    flex-basis: 100%;
  }
}

/* Student cards list */
.student-cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Individual student card */
.student-card {
  background: var(--cream);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

.student-card:hover {
  border-color: var(--green-300);
  box-shadow: 0 2px 8px rgba(26, 86, 50, 0.08);
}

.student-card.expanded {
  border-color: var(--green-400);
  box-shadow: 0 4px 16px rgba(26, 86, 50, 0.1);
}

/* Collapsed row */
.student-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  flex-wrap: wrap;
}

.student-card-id {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--neutral-900);
  white-space: nowrap;
}

.student-card-school-id {
  font-size: var(--text-xs);
  color: var(--neutral-500);
  white-space: nowrap;
}

.student-card-fraction {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Progress bar (icon row) */
.student-progress-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.progress-step-icon {
  width: 28px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--neutral-300);
  background: var(--neutral-50);
  color: var(--neutral-400);
  transition: all 0.3s;
}

.progress-step-icon svg {
  width: 12px;
  height: 12px;
}

.progress-step-label {
  font-size: 9px;
  color: var(--neutral-400);
  white-space: nowrap;
  text-align: center;
}

/* Icon states */
.progress-step.completed .progress-step-icon {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

.progress-step.completed .progress-step-label {
  color: var(--green-700);
}

.progress-step.active .progress-step-icon {
  border-color: var(--green-500);
  color: var(--green-600);
  animation: step-pulse 1.5s ease-in-out infinite;
}

.progress-step.active .progress-step-label {
  color: var(--green-600);
  font-weight: 600;
}

@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 86, 50, 0.3); }
  50% { box-shadow: 0 0 0 4px rgba(26, 86, 50, 0.1); }
}

/* Chevron */
.student-card-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--neutral-400);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
}

.student-card.expanded .student-card-chevron {
  transform: rotate(180deg);
}

/* Card flash on realtime update */
.student-card.flash {
  animation: row-flash 1.5s ease-out;
}

/* Expanded body */
.student-card-body {
  display: none;
  padding: 0 var(--space-4) var(--space-4);
  border-top: 1px solid var(--neutral-100);
}

.student-card.expanded .student-card-body {
  display: block;
}

/* Activity tiles grid */
.activity-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

@media (max-width: 700px) {
  .activity-tiles {
    grid-template-columns: 1fr;
  }
}

.activity-tile {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 8px;
  padding: var(--space-3);
}

.activity-tile-header {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: var(--space-2);
}

.activity-tile-score {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: var(--space-1);
}

.activity-tile-text {
  font-size: var(--text-xs);
  color: var(--neutral-700);
  line-height: 1.5;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.activity-tile-time {
  font-size: 10px;
  color: var(--neutral-400);
  margin-top: var(--space-1);
}

/* Mini RIASEC chart (inside activity tile) */
.riasec-mini-chart {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-2);
}

.riasec-mini-bar-group {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.riasec-mini-bar-track {
  flex: 1;
  height: 16px;
  background: var(--neutral-100);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.riasec-mini-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.riasec-mini-bar-fill.dimmed {
  opacity: 0.35;
}

.riasec-mini-bar-name {
  position: absolute;
  top: 0;
  left: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1;
  pointer-events: none;
}

.riasec-mini-bar-value {
  font-size: 9px;
  font-weight: 600;
  color: var(--neutral-500);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* Survey Q&A list inside tile */
.survey-qa-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.survey-qa-item {
  font-size: var(--text-xs);
  color: var(--neutral-700);
  line-height: 1.4;
  padding: 2px 0;
  border-bottom: 1px solid var(--green-100);
}

.survey-qa-item:last-child {
  border-bottom: none;
}

.survey-qa-label {
  font-weight: 600;
  color: var(--neutral-800);
}

/* Search highlight and dim */
.student-card.search-dim {
  opacity: 0.3;
  transition: opacity 0.3s;
}

.student-card.search-highlight {
  box-shadow: 0 0 0 2px var(--green-500);
  transition: box-shadow 0.3s;
}

/* Table row dim/highlight for search */
.response-table tr.search-dim {
  opacity: 0.3;
  transition: opacity 0.3s;
}

.response-table tr.search-highlight {
  animation: row-flash 1.5s ease-out;
}

/* Table grouping */
.response-table .student-group-first td {
  border-top: 2px solid var(--neutral-200);
  padding-top: var(--space-4);
}

.response-table .student-group-row {
  background: rgba(240, 251, 244, 0.4);
}

.response-table .student-group-row:nth-child(even) {
  background: rgba(240, 251, 244, 0.2);
}

/* =========================================================
   STUDENT PORTAL
   ========================================================= */

.student-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--green-50);
  margin-left: 0;
}

/* Top bar */
.student-topbar {
  background: var(--green-900);
  color: #fff;
  padding: 0 var(--space-6);
}

.student-topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.student-topbar-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.85;
}

.student-topbar-id {
  font-family: 'Work Sans', monospace;
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

/* Progress dots (modeled on pge-training-slideshow.html) */
.student-progress {
  display: flex;
  justify-content: center;
  padding: var(--space-4) var(--space-4) 0;
}

.student-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.student-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-200);
  border: none;
  padding: 0;
  transition: background 0.2s, width 0.2s;
  cursor: default;
}

.student-dot.active {
  background: var(--green-700);
  width: 20px;
}

.student-dot.completed {
  background: var(--green-500);
}

@media (prefers-reduced-motion: reduce) {
  .student-dot { transition: none; }
}

/* Step container */
.student-container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-6) clamp(var(--space-6), 4vw, var(--space-12));
}

.student-step {
  background: var(--cream);
  border: 1px solid var(--green-200);
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow: 0 4px 24px rgba(26, 86, 50, 0.06);
}

.student-step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: var(--space-6);
  text-align: center;
}

.student-step-content {
  margin-bottom: var(--space-6);
}

.student-video-wrap {
  border: 1px solid var(--green-200);
  border-radius: 12px;
  background: var(--green-50);
  padding: var(--space-3);
  overflow: hidden;
}

/* Writing area */
.student-reflection-header {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--green-800);
  margin: 0 0 var(--space-3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.student-writing {
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.student-writing-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--neutral-700);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.student-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--neutral-300);
  border-radius: 10px;
  font-size: var(--text-base);
  font-family: var(--font-body);
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
}

.student-textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

/* Next/Submit button */
.student-next-btn {
  display: flex;
  width: 100%;
  max-width: 300px;
  margin: var(--space-6) auto 0;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

.student-next-btn.submitted {
  background: var(--green-600);
  cursor: default;
}

/* Completion */
.student-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.student-complete-icon {
  color: var(--green-600);
  margin-bottom: var(--space-6);
}

/* Survey placeholder */
.survey-placeholder {
  text-align: center;
  padding: var(--space-8);
  color: var(--neutral-500);
  font-size: var(--text-sm);
  background: var(--neutral-100);
  border-radius: 12px;
}

/* Video gate message */
.student-gate-msg {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--neutral-600);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 8px;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}

/* Dev skip button (temporary — remove before production) */
.dev-skip-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #E07B39;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.15s, transform 0.15s;
}

.dev-skip-btn:hover {
  background: #c46a2e;
  transform: translateY(-1px);
}

.dev-skip-btn:active {
  transform: translateY(0);
}
