/* =========================================================
   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-sm);
  font-weight: 600;
  color: var(--green-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  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;
  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;
}

/* === 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; }

/* === 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(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.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; }
  .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-4);
  background: var(--green-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-200);
  margin-top: var(--space-4);
}
.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-sm);
  font-weight: 600;
  color: var(--green-900);
}
.featured-interview-mini .interview-info span {
  font-size: var(--text-xs);
  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;
  }

  .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 ---
     Force fresh pages for key sections. Appendix (standards) can be bisected. */
  #video-summary,
  #timeline,
  #timeline-10min,
  #detailed-plan,
  #detailed-plan-10min,
  #outcomes,
  #standards,
  #alternatives {
    page-break-before: always;
  }

  /* 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);
  }
}
