:root {
  /* ——— Warm ivory paper ——— */
  --bg: #F4EFE5;
  --bg-warm: #ECE6D9;
  --bg-deep: #DCD3BE;
  --surface: #FBF8F1;

  /* ——— Ink ——— */
  --ink: #14110C;
  --ink-soft: #3A332C;
  --muted: #82776A;
  --display: #14110C;

  /* ——— Refined accents ——— */
  --persimmon: #B85432;
  --persimmon-bright: #D27450;
  --persimmon-soft: #F0DBCC;
  --persimmon-warm: #F4E5D9;

  --navy: #1E2C56;
  --navy-bright: #34467E;
  --navy-soft: #D8DDE9;
  --navy-warm: #E6EAF1;

  --gold: #B79049;
  --gold-soft: #ECDDB8;
  --gold-warm: #F4EBD3;

  --sage: #5C7561;
  --sage-soft: #DAE0D7;
  --sage-warm: #E7ECE4;

  /* ——— Aliases used throughout the codebase ——— */
  --coral: var(--persimmon);
  --coral-bright: var(--persimmon-bright);
  --coral-soft: var(--persimmon-soft);
  --coral-warm: var(--persimmon-warm);

  --pink: var(--persimmon);
  --pink-soft: var(--persimmon-soft);
  --pink-warm: var(--persimmon-warm);

  --blue: var(--navy);
  --blue-deep: var(--navy);
  --blue-bright: var(--navy-bright);
  --blue-soft: var(--navy-soft);
  --blue-warm: var(--navy-warm);

  --yellow: var(--gold);
  --yellow-deep: var(--gold);
  --yellow-soft: var(--gold-soft);
  --yellow-warm: var(--gold-warm);

  --mint: var(--sage);
  --mint-deep: var(--sage);
  --mint-soft: var(--sage-soft);
  --mint-warm: var(--sage-warm);

  --teal: var(--navy);
  --teal-deep: var(--navy);
  --teal-bright: var(--navy-bright);
  --teal-soft: var(--navy-soft);
  --teal-warm: var(--navy-warm);

  --border: #D8CFBC;
  --border-soft: #E5DDC9;

  --shadow-sm: 0 1px 2px rgba(20, 17, 12, 0.04);
  --shadow-md: 0 1px 3px rgba(20, 17, 12, 0.05), 0 10px 28px rgba(20, 17, 12, 0.06);
  --shadow-lg: 0 2px 6px rgba(20, 17, 12, 0.06), 0 24px 56px rgba(20, 17, 12, 0.10);

  --sidebar-w: 256px;
  --content-max: 760px;

  --ink-handwritten: var(--persimmon);
}

/* === Hand-drawn underline (used inline as a span class) === */
.scribble {
  position: relative;
  display: inline-block;
}
.scribble::after {
  content: '';
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: -10px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 30 2, 60 7 T 120 6 T 180 7 T 198 5' stroke='%23B84A2C' stroke-width='2.6' stroke-linecap='round' fill='none' opacity='0.95'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.scribble.teal::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 6 Q 30 10, 60 5 T 120 7 T 180 5 T 198 7' stroke='%231F7A7A' stroke-width='2.6' stroke-linecap='round' fill='none' opacity='0.95'/></svg>");
}

/* === Marginalia (handwritten-feel margin notes) === */
.marginalia {
  position: absolute;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-handwritten);
  max-width: 180px;
  transform: rotate(-2.5deg);
  pointer-events: none;
  opacity: 0.85;
}
.marginalia::before {
  content: '';
  display: block;
  width: 28px;
  height: 18px;
  margin-bottom: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28' fill='none'><path d='M2 4 C 12 14, 22 14, 38 4' stroke='%237A3A26' stroke-width='1.5' stroke-linecap='round'/><path d='M30 2 L 38 4 L 36 12' stroke='%237A3A26' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  opacity: 0.7;
}
.marginalia.right {
  transform: rotate(2deg);
}
.marginalia.right::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28' fill='none'><path d='M38 4 C 28 14, 18 14, 2 4' stroke='%237A3A26' stroke-width='1.5' stroke-linecap='round'/><path d='M10 2 L 2 4 L 4 12' stroke='%237A3A26' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}

/* === Highlighter sweep === */
.highlight {
  background: linear-gradient(180deg, transparent 55%, var(--yellow-soft) 55%, var(--yellow-soft) 92%, transparent 92%);
  padding: 0 3px;
}
.highlight.teal {
  background: linear-gradient(180deg, transparent 55%, var(--mint-soft) 55%, var(--mint-soft) 92%, transparent 92%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  position: relative;
}

/* Paper grain — very subtle, fixed so it doesn't shift on scroll */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.23  0 0 0 0 0.20  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--yellow); color: var(--ink); }
button { font: inherit; cursor: pointer; }

/* === LAYOUT === */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* Backdrop is fixed + hidden by default; only displays on mobile when sidebar is open */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 33, 29, 0.4);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px dashed var(--border);
  background: var(--bg-warm);
  padding: 32px 20px 24px 38px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Filmstrip perforations down the left edge */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 22px;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 11px 14px, var(--bg-warm) 4px, transparent 4.5px),
    radial-gradient(circle at 11px 14px, transparent 0);
  background-size: 22px 28px;
  background-repeat: repeat-y;
}
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 22px;
  width: 1px;
  background: rgba(42, 33, 29, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--coral);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  box-shadow: var(--shadow-md);
}
.brand-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--display);
  letter-spacing: -0.01em;
  font-style: italic;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-text small {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  font-style: normal;
  margin-top: 3px;
  white-space: nowrap;
}

.progress-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.progress-summary .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 6px;
}
.progress-summary .count {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--display);
  line-height: 1;
  margin-bottom: 10px;
}
.progress-summary .count em {
  font-style: italic;
  color: var(--coral);
}
.progress-bar {
  height: 5px;
  background: var(--coral-warm);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: var(--coral);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}

.nav-section-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0 8px;
  margin: 6px 0 -4px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: grid;
  grid-template-columns: 22px 1fr 14px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  text-align: left;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item:hover { background: rgba(184, 74, 44, 0.06); color: var(--display); }
.nav-item.active {
  background: var(--surface);
  color: var(--display);
  box-shadow: var(--shadow-sm);
}
.nav-item.active .nav-num { color: var(--coral); }
.nav-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-check {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.nav-item.done .nav-check {
  background: var(--teal);
  border-color: var(--teal);
}
.nav-item.done .nav-check svg { color: white; }
.nav-item.done .nav-label { color: var(--muted); }

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-footer .reset-btn {
  background: transparent;
  border: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: var(--muted);
  text-align: left;
  padding: 6px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.sidebar-footer .reset-btn:hover { color: var(--coral); background: var(--coral-warm); }

/* === MAIN === */
.main {
  min-width: 0;
}
.main-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px 120px;
}

/* === COVER === */
header.cover {
  text-align: center;
  padding: 120px 40px 96px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.cover-shape {
  position: absolute;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.cover-shape.shape-rule {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: var(--gold);
  opacity: 0.7;
}
.cover-shape.shape-corner-tl {
  top: 32px;
  left: 40px;
  width: 28px;
  height: 28px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  opacity: 0.55;
}
.cover-shape.shape-corner-br {
  bottom: 32px;
  right: 40px;
  width: 28px;
  height: 28px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  opacity: 0.55;
}
header.cover > *:not(.cover-shape) { position: relative; z-index: 2; }
header.cover h1 .scribble::after { display: none; }
.ornament-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  color: var(--gold);
  opacity: 0.85;
}
.ornament-row svg { width: 16px; height: 16px; }
.ornament-row .line { width: 56px; height: 1px; background: currentColor; opacity: 0.6; }
header.cover .kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 36px;
  font-weight: 500;
  opacity: 0.85;
}
header.cover h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 68px;
  line-height: 1.04;
  color: var(--bg);
  margin: 0 auto 36px;
  max-width: 760px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
header.cover h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  display: inline-block;
}
header.cover h1 .scribble { white-space: nowrap; }
header.cover .subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--bg);
  max-width: 520px;
  margin: 0 auto 48px;
  font-style: italic;
  font-weight: 400;
  opacity: 0.75;
}
.meta-row {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(244, 239, 229, 0.2);
  padding: 8px 16px;
  border-radius: 99px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bg);
  white-space: nowrap;
  opacity: 0.8;
}
.meta-chip svg { width: 13px; height: 13px; color: var(--gold); opacity: 0.85; }
.meta-chip:nth-child(2) svg { color: var(--gold); }
.meta-chip:nth-child(3) svg { color: var(--gold); }

/* === BODY === */
p { margin: 0 0 22px; }
.lead { font-size: 19px; line-height: 1.7; color: var(--ink-soft); }
.lead::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 76px;
  line-height: 0.85;
  float: left;
  color: var(--teal-deep);
  margin: 8px 12px 0 0;
  font-weight: 600;
}
strong { color: var(--display); font-weight: 600; }
em { font-style: italic; }
a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal-soft);
  transition: border-color 0.2s, color 0.2s;
  font-weight: 500;
}
a:hover { color: var(--coral); border-bottom-color: var(--coral); }

.icon { display: inline-block; width: 24px; height: 24px; flex-shrink: 0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 32px; height: 32px; }

/* === DIVIDERS === */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 72px 0 56px;
  color: var(--coral);
  opacity: 0.5;
}
.divider svg { width: 20px; height: 20px; }
.divider .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.divider .dot.teal { background: var(--teal); }

/* === SECTION HEADERS === */
h2.section-h {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  line-height: 1.2;
  color: var(--display);
  margin: 72px 0 24px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* === STEP CARDS === */
.step {
  scroll-margin-top: 24px;
  margin: 64px 0;
}
.step-header {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: baseline;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 60px; height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
.step.done .step-header::after { width: 120px; background: var(--mint); }
.step-numeral {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 80px;
  line-height: 0.85;
  color: var(--coral);
  font-weight: 500;
  text-align: right;
  font-style: italic;
}
.step.done .step-numeral { color: var(--teal); }
.step-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.step-kicker::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--teal);
}
.step-kicker .est {
  margin-left: 6px;
  color: var(--muted);
}
.step-text h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  line-height: 1.15;
  color: var(--display);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.complete-btn {
  align-self: start;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 14px 8px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.complete-btn:hover { border-color: var(--teal); color: var(--teal); }
.complete-btn .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.step.done .complete-btn {
  background: var(--teal-warm);
  border-color: var(--teal);
  color: var(--teal-deep);
}
.step.done .complete-btn .dot {
  background: var(--teal);
  border-color: var(--teal);
}
.step.done .complete-btn .dot svg { color: white; }

h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  color: var(--ink);
  margin: 36px 0 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* === TOOL CARDS === */
.tools-grid { display: grid; gap: 14px; margin: 32px 0 40px; }
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
}
.tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--ink-soft);
}
.tool-card-head {
  display: block;
  margin-bottom: 4px;
}
.tool-card .tag {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--persimmon);
  background: var(--persimmon-warm);
  padding: 3px 9px;
  border-radius: 3px;
}
.tool-icon {
  width: 48px; height: 48px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.tool-card.optional .tool-icon { background: var(--persimmon); color: var(--bg); }
.tool-card.optional { background: var(--surface); }
.tool-card.optional .tag { color: var(--persimmon); background: var(--persimmon-warm); }

.tool-card.alt .tool-icon { background: var(--navy); color: var(--bg); }
.tool-card.alt { background: var(--surface); }
.tool-card.alt .tag { color: var(--navy); background: var(--navy-warm); }
.tool-card-body { padding-top: 2px; }
.tool-card .tool-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--display);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.005em;
  padding-right: 88px;
}
.tool-card:not(.optional) .tool-name { padding-right: 0; }
.tool-card .tool-url {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.tool-card .tool-url a {
  color: var(--muted);
  border-bottom: 1px dotted var(--border);
}
.tool-card .tool-url a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.tool-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* === CALLOUTS === */
.callout {
  background: var(--mint-warm);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 28px 0;
  border: 1px solid var(--border);
  border-left-width: 6px;
  border-left-color: var(--mint);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  box-shadow: var(--shadow-md);
}
.callout.coral { background: var(--coral-warm); border-left-color: var(--coral); }
.callout-icon { color: var(--teal-deep); margin-top: 2px; }
.callout.coral .callout-icon { color: var(--coral); }
.callout-body { padding-top: 0; }
.callout .callout-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 700;
  margin-bottom: 6px;
}
.callout.coral .callout-label { color: var(--coral); }
.callout p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.callout p + p { margin-top: 12px; }

/* === PRINCIPLES === */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}
.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 30px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.principle-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: var(--coral);
}
.principle-card:nth-child(2)::before {
  background: var(--blue);
}
.principle-card .principle-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.32em;
  color: var(--teal);
  font-style: italic;
  margin-bottom: 10px;
  font-weight: 500;
}
.principle-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--display);
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.principle-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* === PROMPT BLOCK === */
.prompt-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 28px 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.prompt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--yellow);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  padding: 14px 22px;
  border-bottom: 2px solid var(--ink);
}
.prompt-label .copy-btn {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border-soft);
  color: var(--coral);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.prompt-label .copy-btn:hover { background: white; color: var(--teal); }
.prompt-label .copy-btn.copied { color: var(--teal); background: white; }
.prompt-content {
  padding: 24px 26px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 380px;
  overflow-y: auto;
}
.prompt-content.expanded { max-height: none; }
.prompt-expand {
  width: 100%;
  background: var(--bg-warm);
  border: 0;
  border-top: 1px solid var(--border-soft);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--teal);
  padding: 10px;
  transition: background 0.2s;
}
.prompt-expand:hover { background: var(--teal-warm); }

/* === WATCH LIST === */
.watch-list { margin: 28px 0; display: grid; gap: 14px; }
.watch-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s, transform 0.2s;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  align-items: start;
}
.watch-item:hover { box-shadow: var(--shadow-md); transform: translate(-2px, -2px); }
.watch-icon {
  width: 40px; height: 40px;
  background: var(--pink);
  color: var(--bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.watch-item:nth-child(2) .watch-icon { background: var(--blue); }
.watch-item:nth-child(3) .watch-icon { background: var(--mint); color: var(--ink); }
.watch-item:nth-child(4) .watch-icon { background: var(--yellow); color: var(--ink); }
.watch-body { padding-top: 2px; }
.watch-item .watch-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--display);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.watch-item p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* === CHECK YOUR UNDERSTANDING === */
.checkup {
  background: var(--mint-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.checkup::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 3px;
  background: var(--teal);
}
.checkup-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkup-q {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  color: var(--display);
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 500;
}
.checkup-reveal {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal-deep);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.checkup-reveal:hover { background: var(--teal); color: white; }
.checkup-a {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--teal-soft);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-family: 'Lora', serif;
}
.checkup-a strong { color: var(--teal-deep); }

/* === ASK BOX === */
.ask-box {
  margin: 32px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.ask-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--mint);
}
.ask-head {
  padding: 18px 22px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ask-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.ask-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--display);
  font-style: italic;
  line-height: 1.2;
}
.ask-title small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.ask-form {
  padding: 0 22px 16px;
  display: flex;
  gap: 10px;
}
.ask-input {
  flex: 1;
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 11px 14px;
  resize: vertical;
  min-height: 44px;
  max-height: 200px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.ask-input:focus { border-color: var(--teal); background: white; }
.ask-input::placeholder { color: var(--muted); font-style: italic; }
.ask-submit {
  align-self: stretch;
  background: var(--teal);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.ask-submit:hover:not(:disabled) { background: var(--teal-deep); }
.ask-submit:disabled { opacity: 0.6; cursor: progress; }
.ask-suggestions {
  padding: 0 22px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.suggest-chip {
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
  transition: all 0.15s;
}
.suggest-chip:hover { background: var(--teal-warm); border-color: var(--teal-soft); color: var(--teal-deep); }
.ask-answer {
  border-top: 1px solid var(--border-soft);
  padding: 18px 22px 20px;
  background: var(--bg-warm);
}
.ask-q {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 6px;
}
.ask-q-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--display);
  margin-bottom: 14px;
  line-height: 1.35;
}
.ask-a-body {
  font-family: 'Lora', serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.ask-a-body p { margin: 0 0 12px; }
.ask-a-body p:last-child { margin-bottom: 0; }
.ask-a-body strong { color: var(--display); }
.ask-a-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  background: var(--coral-warm);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--display);
}
.ask-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
}
.ask-loading .spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ask-clear {
  margin-top: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
}
.ask-clear:hover { color: var(--coral); }

/* === RESOURCES === */
.resources {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  margin: 80px 0 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.resources::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: var(--coral);
}
.resources-head {
  text-align: center;
  margin-bottom: 28px;
}
.resources-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  margin: 0 0 6px;
  color: var(--display);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.resources-head .sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}
.res-section { margin-top: 28px; }
.res-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.res-section-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.res-section:nth-of-type(even) .res-section-label .dot { background: var(--teal); }
.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.res-link {
  display: grid;
  grid-template-columns: 36px 1fr 16px;
  gap: 14px;
  align-items: center;
  background: var(--bg-warm);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0;
  transition: all 0.2s;
}
.res-link:hover {
  background: white;
  border-color: var(--teal-soft);
  color: var(--display);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.res-link-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft);
}
.res-link.coral .res-link-icon { color: var(--coral); }
.res-link-text { min-width: 0; }
.res-link-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--display);
  letter-spacing: -0.005em;
}
.res-link-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: -0.02em;
  margin-top: 1px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.res-link-arrow {
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}
.res-link:hover .res-link-arrow { color: var(--teal); transform: translate(2px, -2px); }

/* === CLOSING === */
.closing {
  margin-top: 64px;
  padding: 56px 48px;
  background: var(--yellow-warm);
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.closing::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: var(--coral);
}
.closing .closing-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--display);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}
.closing p {
  font-family: 'Lora', serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 18px;
}
.closing .mantra {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--teal-deep);
  margin-top: 28px;
  line-height: 1.5;
  max-width: none;
}
.closing .mantra .coral { color: var(--coral); }

.completion-banner {
  margin-top: 32px;
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--teal-soft);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  text-align: left;
  box-shadow: var(--shadow-sm);
  animation: bannerIn 0.6s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.completion-banner .badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.completion-banner h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--display);
  margin: 0;
  font-weight: 600;
  font-style: italic;
}
.completion-banner p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
}

/* === MOBILE TOGGLE === */
.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  align-items: center;
  gap: 12px;
}
.mobile-bar .menu-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--display);
  display: flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.mobile-bar .progress-bar { flex: 1; }
.mobile-bar .pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1000px) {
  :root { --sidebar-w: 240px; }
  header.cover { padding: 80px 32px 64px; }
  header.cover h1 { font-size: 52px; }
  .main-inner { padding: 0 32px 96px; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 86vw;
    max-width: 320px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    display: block;
  }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  .mobile-bar { display: flex; }
  body { font-size: 17px; }
  header.cover { padding: 56px 22px 48px; }
  header.cover h1 { font-size: 36px; }
  header.cover .subtitle { font-size: 16px; }
  .main-inner { padding: 0 22px 80px; }
  .step-header {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }
  .step-header .complete-btn { grid-column: 1 / -1; justify-self: start; }
  .step-numeral { font-size: 52px; }
  .step-text h2 { font-size: 26px; }
  h2.section-h { font-size: 28px; }
  .principles-grid { grid-template-columns: 1fr; }
  .resources { padding: 28px 22px; }
  .res-grid { grid-template-columns: 1fr; }
  .closing { padding: 40px 24px; }
  .closing .closing-title { font-size: 24px; }
  .closing .mantra { font-size: 19px; }
  .prompt-content { font-size: 12px; padding: 18px; }
  .lead::first-letter { font-size: 60px; }
  .divider { margin: 56px 0 40px; }
  .tool-card { grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 22px; }
  .tool-icon { width: 40px; height: 40px; }
  .tool-card .tool-name { font-size: 22px; }
  .callout { grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 22px; }
  .ask-form { flex-direction: column; }
  .ask-submit { padding: 12px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Hardware & access notes block (used in NeedSection + EduToolkit)
   ============================================================ */
.hardware-block {
  margin: 36px 0 8px;
  padding: 28px 32px 26px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.hardware-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--navy);
  border-radius: 12px 12px 0 0;
}
.hardware-block-bare {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.hardware-block-bare::before { display: none; }

.hardware-block-head { margin-bottom: 22px; }
.hardware-block-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}
.hardware-block-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--display);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.hardware-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.hardware-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px dashed var(--border-soft);
}
.hardware-item:first-child,
.hardware-item:nth-child(2) { border-top: 0; padding-top: 4px; }
.hardware-item-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  padding-top: 3px;
}
.hardware-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--display);
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.25;
}
.hardware-item p {
  font-family: 'Lora', serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 760px) {
  .hardware-block { padding: 22px 22px 20px; }
  .hardware-grid { grid-template-columns: 1fr; }
  .hardware-item:nth-child(2) { border-top: 1px dashed var(--border-soft); padding-top: 12px; }
}

@media print {
  .hardware-block {
    background: white !important;
    border: 0.5pt solid #999 !important;
    page-break-inside: avoid;
  }
  .hardware-block::before { display: none !important; }
  .hardware-item-num { color: black !important; }
}
.edu-toolkit-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.print-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.print-btn:hover { background: var(--navy); }
.print-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.4;
}

@media print {
  /* Page setup */
  @page { margin: 14mm 16mm; size: letter; }
  :root {
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
  }
  html, body {
    background: white !important;
    color: black !important;
    font-size: 10.5pt;
  }
  body::before { display: none !important; } /* kill grain */

  /* Hide all interactive / decorative chrome */
  .sidebar, .sidebar-backdrop, .mobile-bar,
  .float-ask, .modal-scrim,
  .ask-box, .ask-box *,
  .complete-btn, .checkup-reveal,
  .prompt-label .copy-btn, .prompt-expand,
  .cover-shape, .ornament-row,
  .edu-toolkit-actions,
  .res-link-arrow {
    display: none !important;
  }

  /* Layout — single column, no sticky positioning */
  .app { display: block !important; }
  .main { display: block !important; }
  .main-inner {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Cover — black bar on print is wasteful; use a cleaner banner */
  header.cover {
    background: white !important;
    color: black !important;
    border-bottom: 2px solid black !important;
    padding: 0 0 18mm !important;
    text-align: left !important;
    overflow: visible !important;
  }
  header.cover h1 {
    color: black !important;
    font-size: 32pt !important;
    margin: 0 0 6mm !important;
    text-align: left !important;
    max-width: none !important;
  }
  header.cover h1 em { color: #555 !important; }
  header.cover .kicker { color: #555 !important; text-align: left !important; margin: 0 0 4mm !important; }
  header.cover .subtitle {
    color: #333 !important;
    text-align: left !important;
    max-width: none !important;
    font-size: 13pt !important;
    margin: 0 0 6mm !important;
    opacity: 1 !important;
  }
  .meta-row {
    display: flex !important;
    gap: 8mm !important;
    justify-content: flex-start !important;
  }
  .meta-chip {
    border: 0 !important;
    background: transparent !important;
    color: black !important;
    opacity: 1 !important;
    padding: 0 !important;
    font-size: 9pt !important;
  }

  /* Sections — flat, with bold headers */
  section, .resources, .references, .edu-toolkit, .edu-preface, .closing {
    background: white !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 8mm 0 !important;
    page-break-inside: auto;
  }
  .closing { border-top: 1px solid #999 !important; padding-top: 8mm !important; }

  /* Step blocks — print as lesson sections */
  .step { margin: 8mm 0 !important; page-break-inside: avoid; }
  .step-header {
    grid-template-columns: 18mm 1fr !important;
    border-bottom: 1.5pt solid black !important;
    padding-bottom: 4mm !important;
    page-break-after: avoid;
  }
  .step-header::after { display: none !important; }
  .step-numeral {
    font-size: 28pt !important;
    color: black !important;
    font-style: normal !important;
    text-align: right !important;
    padding-right: 4mm !important;
  }
  .step-text h2 { color: black !important; font-size: 18pt !important; }
  .step-kicker { color: #444 !important; }
  .step-objective {
    background: #f4f4f4 !important;
    border-left: 2.5pt solid black !important;
    border-radius: 0 !important;
    margin-top: 3mm !important;
    padding: 3mm 4mm !important;
  }
  .step-objective-label { color: black !important; }
  .step-objective-text { color: #222 !important; }

  /* Film frame — drop the perforations */
  .film-frame { border: 0 !important; box-shadow: none !important; margin: 4mm 0 !important; }
  .film-frame::before, .film-frame::after { display: none !important; }
  .film-frame-tape {
    background: transparent !important;
    border-bottom: 0.5pt solid #aaa !important;
    padding: 2mm 0 !important;
  }
  .film-frame-tape .frame-num { color: black !important; }
  .film-frame-body { padding: 3mm 0 !important; }

  /* Prompt blocks — preserve readable mono */
  .prompt-block {
    border: 0.5pt solid #999 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .prompt-label { background: #f0f0f0 !important; color: black !important; border-bottom: 0.5pt solid #999 !important; }
  .prompt-content { max-height: none !important; font-size: 9pt !important; padding: 4mm !important; }

  /* Cards — flat with thin borders */
  .tool-card, .principle-card, .watch-item, .callout, .checkup,
  .pitfall-card, .class-card, .edu-preface-card, .film-frame, .worked-example {
    background: white !important;
    border: 0.5pt solid #999 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .callout, .checkup { border-left-width: 2pt !important; }
  .tool-icon, .watch-icon, .ask-icon, .res-link-icon {
    background: transparent !important;
    color: black !important;
    border: 0.5pt solid #777 !important;
  }
  .tool-card .tag, .ref-item .ref-url, .step-kicker .est,
  .references-head .sub, .resources-head .sub, .edu-toolkit-head .sub {
    color: black !important;
  }

  /* Resources & references — keep numbered list legible */
  .ref-item { font-size: 9.5pt !important; padding-left: 9mm !important; }
  .ref-item::before { color: black !important; }
  .res-link { background: white !important; border: 0.5pt solid #ccc !important; padding: 2mm 3mm !important; }
  .res-grid { grid-template-columns: 1fr 1fr 1fr !important; gap: 2mm !important; }

  /* Rubric */
  .rubric-table { border-color: #777 !important; font-size: 9pt !important; }
  .rubric-row > * { border-color: #ccc !important; padding: 2.5mm !important; }
  .rubric-row-head > * { background: #eee !important; color: black !important; }
  .rubric-criterion-cell { background: #f5f5f5 !important; }

  /* Worked example — print as a URL not a thumbnail */
  .worked-example .video-frame {
    aspect-ratio: auto !important;
    background: white !important;
    border: 0.5pt solid #999 !important;
    padding: 4mm !important;
  }
  .worked-example .video-frame iframe { display: none !important; }
  .worked-example .video-frame::after {
    content: 'Watch the worked example: https://youtu.be/xsQeMryKvTc';
    font-family: 'JetBrains Mono', monospace;
    font-size: 9pt;
    color: black;
    display: block;
    padding: 2mm 0;
  }

  /* Closing — keep but compact */
  .closing { text-align: left !important; }
  .closing::before { display: none !important; }
  .completion-banner { display: none !important; }

  /* Hide all dividers, asterisms, paper-grain decorations */
  .divider { display: none !important; }
  .annot { color: black !important; }
  .annot-marker { color: black !important; }

  /* Highlight / scribble — flatten */
  .highlight, .highlight.teal { background: transparent !important; border-bottom: 0.5pt solid black !important; padding: 0 !important; }
  .scribble::after { display: none !important; }

  /* Page break hints */
  h2 { page-break-after: avoid; }
  .step, .principle-card, .tool-card, .watch-item, .callout, .checkup,
  .pitfall-card, .class-card, .edu-preface-card, .ref-group, .res-section,
  .edu-block, .prompt-block, .worked-example, .film-frame {
    page-break-inside: avoid;
  }

  /* When the page is being printed via .printing class, scroll to top first */
  body.printing { overflow: visible !important; }
}

/* ============================================================
   Filmstrip frame (storyboard motif used to wrap step content)
   ============================================================ */
.film-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 36px 0;
  box-shadow: var(--shadow-md);
}
.film-frame::before,
.film-frame::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background-color: var(--ink);
  background-image: radial-gradient(circle at 14px 7px, var(--bg-warm) 3.5px, transparent 4px);
  background-size: 28px 14px;
  background-repeat: repeat-x;
}
.film-frame::before { top: -14px; border-radius: 4px 4px 0 0; }
.film-frame::after  { bottom: -14px; border-radius: 0 0 4px 4px; }
.film-frame-tape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px dashed var(--border);
  background: var(--bg-warm);
}
.film-frame-tape .frame-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--coral);
  font-weight: 700;
}
.film-frame-tape .frame-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
}
.film-frame-body { padding: 24px 28px; }

/* ============================================================
   Color palette swatches
   ============================================================ */
.palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.swatch {
  aspect-ratio: 1 / 1.2;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.swatch-label {
  position: absolute;
  bottom: 4px;
  left: 5px; right: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
  font-weight: 600;
}
.swatch:nth-child(4) .swatch-label { color: var(--ink); text-shadow: none; }

/* ============================================================
   Step badge — clapperboard style
   ============================================================ */
.clapper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: var(--ink);
  padding: 6px 12px 6px 0;
  border-radius: 4px;
  font-weight: 600;
  overflow: hidden;
  position: relative;
}
.clapper-stripes {
  display: inline-block;
  width: 36px;
  height: 26px;
  background-image: repeating-linear-gradient(115deg,
    white 0 8px, var(--ink) 8px 16px);
  margin-right: 10px;
}
.clapper-scene { color: var(--coral-bright); margin-right: 6px; }

/* ============================================================
   Footnote / margin annotation block
   ============================================================ */
.annot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 22px 0;
  padding: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-handwritten);
  line-height: 1.45;
}
.annot-marker {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--coral);
  font-size: 22px;
  line-height: 1;
  padding-top: 2px;
}

/* ============================================================
   Floating "Ask the guide" pill
   ============================================================ */
.float-ask {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: var(--coral);
  color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), opacity 0.3s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.float-ask.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-ask.show:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.float-ask.show:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}
.float-ask .pulse {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
}
.float-ask .pulse::before {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ============================================================
   Modal — global ask
   ============================================================ */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(42, 33, 29, 0.45);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  animation: scrim 0.25s ease both;
}
@keyframes scrim {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--surface);
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes modalIn {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--coral);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-head h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.005em;
}
.modal-head .close {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-head .close:hover { color: var(--coral); background: var(--coral-warm); }
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px 22px;
}
.modal-foot {
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-warm);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .float-ask { bottom: 16px; right: 16px; padding: 12px 18px 12px 12px; }
  .float-ask span.label { display: none; }
  .palette { grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 8px; }
  .swatch-label { font-size: 8px; }
  .film-frame-body { padding: 18px 20px; }
}

/* ============================================================
   Worked example (video embed in Step 8)
   ============================================================ */
.worked-example {
  margin: 36px 0 8px;
  padding: 26px 28px 22px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.worked-example-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--persimmon);
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.worked-example-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--display);
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.worked-example-blurb {
  font-family: 'Lora', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-style: italic;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-md);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.worked-example-caption {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 0;
  text-align: right;
}
.worked-example-caption a {
  color: var(--muted);
  border-bottom: 1px dotted var(--border);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.worked-example-caption a:hover {
  color: var(--persimmon);
  border-bottom-color: var(--persimmon);
}

/* ============================================================
   References — editorial citation style
   ============================================================ */
.references {
  margin: 64px 0 0;
  padding: 40px 44px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.references-head {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
}
.references-head .sub {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--persimmon);
  font-weight: 600;
  margin-bottom: 8px;
}
.references-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--display);
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.references-intro {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
}
.ref-group {
  margin-bottom: 28px;
}
.ref-group:last-child { margin-bottom: 0; }
.ref-group-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ref-group-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--persimmon);
  flex-shrink: 0;
}
.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ref;
}
.ref-item {
  counter-increment: ref;
  font-family: 'Lora', Georgia, serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 10px 0 10px 32px;
  position: relative;
  border-top: 1px dashed var(--border-soft);
}
.ref-item:first-child { border-top: 0; }
.ref-item::before {
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--persimmon);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ref-item .ref-author {
  color: var(--display);
  font-weight: 600;
}
.ref-item .ref-year {
  color: var(--muted);
}
.ref-item .ref-title {
  font-style: italic;
  color: var(--ink);
}
.ref-item .ref-kind {
  color: var(--muted);
  font-style: normal;
}
.ref-item .ref-pub {
  color: var(--ink-soft);
}
.ref-item .ref-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--persimmon);
  border-bottom: 1px dotted var(--persimmon-soft);
  letter-spacing: -0.01em;
}
.ref-item .ref-url:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.ref-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
  padding-left: 32px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .worked-example { padding: 20px 22px 18px; }
  .worked-example-title { font-size: 21px; }
  .references { padding: 28px 24px 24px; }
  .references-head h2 { font-size: 26px; }
  .ref-item { font-size: 13.5px; padding-left: 28px; }
  .ref-note { padding-left: 28px; }
}

/* ============================================================
   Step-level learning objective (sits inside StepHeader)
   ============================================================ */
.step-objective {
  margin-top: 14px;
  padding: 10px 14px 10px 12px;
  background: var(--navy-warm);
  border-left: 3px solid var(--navy);
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.step-objective-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
}
.step-objective-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================================
   Educator's Preface (early in the page)
   ============================================================ */
.edu-preface {
  margin: 48px 0 24px;
  padding: 32px 36px 30px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
}
.edu-preface::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--navy);
  border-radius: 14px 14px 0 0;
}
.edu-preface-head { margin-bottom: 24px; }
.edu-preface-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}
.edu-preface h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--display);
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.edu-preface-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  max-width: 600px;
}
.edu-preface-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.edu-preface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  position: relative;
}
.edu-preface-card-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.6;
}
.edu-preface-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  line-height: 1.25;
  color: var(--display);
  margin: 0 0 10px;
  font-weight: 600;
  padding-right: 32px;
}
.edu-preface-card p {
  font-family: 'Lora', serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.edu-preface-anchors a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--persimmon);
  border-bottom: 1px dotted var(--persimmon-soft);
}
.edu-preface-anchors a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Sidebar — For educators group */
.nav-section-edu { color: var(--navy); }
.nav-item-edu .nav-num { color: var(--navy); }

/* ============================================================
   Educator's Toolkit (long block near bottom)
   ============================================================ */
.edu-toolkit {
  margin: 64px 0 0;
  padding: 40px 44px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.edu-toolkit::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--navy);
  border-radius: 12px 12px 0 0;
}
.edu-toolkit-head {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
.edu-toolkit-head .sub {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}
.edu-toolkit-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--display);
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.edu-toolkit-intro {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 auto;
  line-height: 1.6;
  max-width: 600px;
}

.edu-block {
  margin: 36px 0 0;
  scroll-margin-top: 24px;
}
.edu-block:first-of-type { margin-top: 0; }
.edu-block-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--display);
  font-weight: 700;
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.edu-block-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.edu-block-blurb {
  font-family: 'Lora', serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 12px 0 18px;
  font-style: italic;
}

/* === Rubric table === */
.rubric-table {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  font-family: 'Lora', serif;
  font-size: 13.5px;
  line-height: 1.5;
}
.rubric-row { display: contents; }
.rubric-row > * {
  padding: 14px 14px;
  border-top: 1px solid var(--border-soft);
}
.rubric-row-head > * {
  border-top: 0;
  background: var(--bg-warm);
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--display);
  text-align: center;
  padding: 12px 12px;
}
.rubric-row-head .rubric-level-cell.rubric-level-exemplary,
.rubric-row-head .rubric-level-cell:nth-child(2) { color: var(--persimmon); }
.rubric-criterion-cell {
  background: var(--bg-warm);
  border-right: 1px solid var(--border-soft);
}
.rubric-criterion-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--display);
  font-weight: 600;
  margin-bottom: 4px;
}
.rubric-criterion-blurb {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.rubric-level-cell {
  color: var(--ink-soft);
  border-left: 1px solid var(--border-soft);
}

/* === Class structure cards === */
.class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.class-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}
.class-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  color: var(--display);
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.class-card-list {
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
  font-family: 'Lora', serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.class-card-list li {
  padding: 6px 0;
  border-top: 1px dashed var(--border-soft);
}
.class-card-list li:first-child { border-top: 0; }
.class-card-list strong {
  color: var(--display);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

/* === Accessibility checklist === */
.a11y-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-family: 'Lora', serif;
  font-size: 14.5px;
  line-height: 1.55;
}
.a11y-list li {
  padding: 12px 16px 12px 38px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--ink-soft);
  position: relative;
}
.a11y-list li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid var(--navy);
  background: var(--bg);
}
.a11y-list li strong { color: var(--display); font-weight: 600; }

/* === Pitfalls grid === */
.pitfalls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pitfall-card {
  background: var(--persimmon-warm);
  border: 1px solid var(--persimmon-soft);
  border-radius: 10px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.pitfall-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--persimmon);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.pitfall-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--display);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
}
.pitfall-body p {
  font-family: 'Lora', serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* === Discussion prompts === */
.discussion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.discussion-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px dashed var(--border-soft);
}
.discussion-item:first-child { border-top: 0; }
.discussion-scene {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--persimmon);
  border-bottom: 1px dotted var(--persimmon-soft);
  padding-bottom: 2px;
  white-space: nowrap;
  text-decoration: none;
}
.discussion-scene:hover { color: var(--ink); border-bottom-color: var(--ink); }
.discussion-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--display);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 900px) {
  .edu-preface-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: 1fr; }
  .pitfalls-grid { grid-template-columns: 1fr; }
  .rubric-table {
    grid-template-columns: 1fr;
    font-size: 13px;
  }
  .rubric-row-head { display: none; }
  .rubric-row > * { border-left: 0 !important; }
  .rubric-criterion-cell { border-right: 0; padding-top: 18px; }
  .rubric-level-cell::before {
    content: attr(data-level);
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 4px;
  }
  .rubric-level-exemplary::before { content: 'Exemplary'; }
  .rubric-level-proficient::before { content: 'Proficient'; }
  .rubric-level-developing::before { content: 'Developing'; }
  .rubric-level-beginning::before { content: 'Beginning'; }
}
@media (max-width: 760px) {
  .edu-toolkit { padding: 28px 22px 24px; }
  .edu-toolkit-head h2 { font-size: 28px; }
  .edu-preface { padding: 24px 22px 22px; }
  .edu-preface h2 { font-size: 24px; }
  .discussion-item { grid-template-columns: 1fr; gap: 6px; }
  .discussion-prompt { font-size: 17px; }
  .step-objective { padding: 10px 12px; }
}
