/* ============================================================
   Baseline Process Book — Shared Design System
   Matches Baseline platform visual language exactly
   ============================================================ */

:root {
  --primary:       #1a3a8a;
  --primary-mid:   #1d4ed8;
  --primary-light: #3b82f6;
  --accent:        #dbeafe;
  --accent-dark:   #bfdbfe;
  --bg:            #ffffff;
  --surface:       #f8fafc;
  --surface-hover: #f1f5f9;
  --border:        #e2e8f0;
  --text:          #0f172a;
  --text-body:     #1e293b;
  --text-muted:    #64748b;
  --text-subtle:   #94a3b8;
  --green:         #059669;
  --red:           #dc2626;
  --yellow:        #d97706;

  --radius:    0.75rem;
  --radius-sm: 0.5rem;
  --shadow:       0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1),  0 8px 28px rgba(0,0,0,0.07);

  --max-w:         1100px;
  --max-w-content: 780px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   NAVIGATION
   ============================ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: white;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 1.5rem;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  line-height: 1;
}
.nav-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.nav-brand-sub {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1px;
}

.nav-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.125rem;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-links a:hover  { color: var(--primary); background: var(--accent); }
.nav-links a.active { color: var(--primary); background: var(--accent); font-weight: 600; }

.nav-action { margin-left: auto; }
.nav-action a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-action a:hover { background: var(--primary); color: white; }

/* ============================
   LAYOUT
   ============================ */
.page { min-height: calc(100vh - 60px); }

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

/* ============================
   HERO (homepage)
   ============================ */
.hero {
  padding: 5rem 2rem 3.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .quarter-q {
  font-size: 1.05rem;
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 1.5rem;
  max-width: 660px;
  line-height: 1.55;
  padding: 1rem 1.25rem;
  background: var(--accent);
  border-left: 3px solid var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

/* ============================
   SECTION CARDS (homepage)
   ============================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-dark);
}
.card-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}
.card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================
   PAGE HEADERS
   ============================ */
.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}
.page-header .kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}
.page-header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.page-header p {
  font-size: 0.95rem;
  color: var(--text-body);
  max-width: 700px;
  line-height: 1.8;
}

/* ============================
   PROCESS BLOG INDEX
   ============================ */
.blog-list {
  list-style: none;
  counter-reset: entry;
}
.blog-entry {
  counter-increment: entry;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  border-bottom: 1px solid var(--border);
}
.blog-entry::before {
  content: counter(entry);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-align: right;
  padding-top: 1.1rem;
}
.blog-entry-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.blog-entry-link:hover { background: var(--surface); border-color: var(--border); }

.entry-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.m-tag {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.date-tag {
  font-size: 0.73rem;
  color: var(--text-subtle);
}
.entry-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.entry-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.tag-chips {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.chip {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.chip-resist  { background: #fef2f2; color: #b91c1c; }
.chip-shift   { background: #eff6ff; color: #1d4ed8; }
.chip-default { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================
   INDIVIDUAL SESSION PAGE
   ============================ */
.session-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-bottom: 0.875rem;
}
.breadcrumb a { color: var(--primary-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; }

.session-hero h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.session-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.session-content {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  padding-bottom: 4rem;
}

.session-body { }
.session-aside { }

.s-section { margin-bottom: 2.25rem; }
.s-section h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.s-section p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 0.875rem;
}
.s-section p:last-child { margin-bottom: 0; }

.s-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.s-section ul li {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}
.s-section ul li::before { content: "—"; position: absolute; left: 0; color: var(--text-subtle); }

.resist-block {
  border-left: 3px solid var(--red);
  background: #fef2f2;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
}
.resist-block .tag { font-size: 0.63rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin-bottom: 0.35rem; display: block; }
.resist-block p { font-size: 0.875rem; color: #7f1d1d; line-height: 1.65; margin-bottom: 0; }

.shift-block {
  border-left: 3px solid var(--primary-mid);
  background: #eff6ff;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
}
.shift-block .tag { font-size: 0.63rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-mid); margin-bottom: 0.35rem; display: block; }
.shift-block p { font-size: 0.875rem; color: #1e3a8a; line-height: 1.65; margin-bottom: 0; }

.default-block {
  border-left: 3px solid var(--border);
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
}
.default-block .tag { font-size: 0.63rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.35rem; display: block; }
.default-block p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0; }

/* Aside */
.aside-card {
  background: linear-gradient(135deg, var(--surface) 0%, #fafbfc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}
.aside-card:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.aside-card h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 1rem;
}
.aside-card p, .aside-card li {
  font-size: 0.83rem;
  color: var(--text-body);
  line-height: 1.7;
}
.aside-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.aside-card ul li { padding-left: 1rem; position: relative; }
.aside-card ul li::before { content: "▸"; position: absolute; left: 0.25rem; color: var(--primary-light); font-size: 0.6rem; }

/* Session nav */
.session-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.session-nav-bar a {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.session-nav-bar a:hover { border-color: var(--primary); background: var(--accent); }

/* ============================
   SYSTEM MAPS
   ============================ */
.map-block {
  margin-bottom: 4.5rem;
  scroll-margin-top: 80px;
}
.map-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.map-block .map-intro {
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 720px;
}
.diagram-wrap {
  background: linear-gradient(135deg, var(--surface) 0%, #fafbfc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.diagram-caption {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--text-subtle);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* ============================
   RECORDS OF RESISTANCE
   ============================ */
.ror-list { display: flex; flex-direction: column; gap: 2.5rem; }

.ror-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ror-card-header {
  background: var(--surface);
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.ror-num {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.ror-resist-tag {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.ror-session {
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.ror-date { font-size: 0.75rem; color: var(--text-subtle); margin-left: auto; }

.ror-card-body { padding: 1.5rem; }
.ror-card-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.ror-field { margin-bottom: 1.25rem; }
.ror-field:last-child { margin-bottom: 0; }
.ror-field h3 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}
.ror-field p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
}
.ror-field blockquote {
  background: var(--surface);
  border-left: 3px solid var(--border);
  padding: 0.875rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
}

/* ============================
   LEVERAGE POINTS
   ============================ */
.lp-list { display: flex; flex-direction: column; gap: 3rem; }

.lp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lp-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  padding: 1.25rem 1.5rem;
  color: white;
}
.lp-header h2 { font-size: 1.05rem; font-weight: 700; color: white; margin-bottom: 0.3rem; }
.lp-header p  { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

.lp-versions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.lp-version {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  min-height: auto;
}
.lp-version:last-child { border-right: none; }
.lp-v-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 0.2rem;
}
.lp-v-milestone {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-bottom: 0.875rem;
}
.lp-version p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.lp-version p:last-child { margin-bottom: 0; }
pre {
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.875rem;
  overflow-x: auto;
  margin: 0.875rem 0;
  font-size: 0.7rem;
}
code {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.7rem;
  color: #e2e8f0;
  line-height: 1.6;
}
p code, li code {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.85em;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
}

/* ============================
   M6 FINAL
   ============================ */
.m6-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}
.m6-toc h3 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-subtle); margin-bottom: 0.75rem; }
.m6-toc ol { list-style: decimal; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.m6-toc ol li { font-size: 0.875rem; }
.m6-toc ol li a { color: var(--primary-light); text-decoration: none; font-weight: 500; }
.m6-toc ol li a:hover { text-decoration: underline; }

.m6-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.m6-section:last-child { border-bottom: none; }
.m6-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.m6-section p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.m6-section p:last-child { margin-bottom: 0; }

/* Process arc table */
.arc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.855rem;
  margin: 1.5rem 0;
}
.arc-table th {
  text-align: left;
  padding: 0.6rem 0.875rem;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.arc-table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
  color: var(--text-body);
}
.arc-table tr:last-child td { border-bottom: none; }
.arc-table td:first-child { font-weight: 700; color: var(--primary); white-space: nowrap; }
.arc-table td:nth-child(2) { font-size: 0.8rem; color: var(--text-muted); }

/* Five Questions */
.five-q { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0; }
.q-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.q-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.q-num {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.q-head h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.q-body { padding: 1.25rem; }
.q-body p { font-size: 0.875rem; color: var(--text-body); line-height: 1.75; margin-bottom: 0.875rem; }
.q-body p:last-child { margin-bottom: 0; }
.placeholder-note {
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.82rem;
  color: #92400e;
  font-style: italic;
}

/* Disclosure */
.disclosure-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-body);
}
.disclosure-box p { margin-bottom: 0.875rem; }
.disclosure-box p:last-child { margin-bottom: 0; }

/* Checklist */
.m6-checklist { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin: 1rem 0; }
.m6-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.m6-checklist li.done { color: var(--text-body); }
.check { width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; flex-shrink: 0; }
.uncheck { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }

/* ============================
   HOMEPAGE — HERO EXTENSIONS
   ============================ */
.hero-inner { max-width: var(--max-w-content); }

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 0.875rem;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.hero-question {
  font-size: 1rem;
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
  max-width: 640px;
  line-height: 1.6;
  padding: 1rem 1.25rem;
  background: var(--accent);
  border-left: 3px solid var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  background: var(--primary);
  padding: 0.65rem 1.375rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.btn-primary:hover { background: var(--primary-mid); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.65rem 1.375rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--accent); }

/* Stats strip */
.stats-strip {
  background: var(--primary);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat { }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Section cards */
.section-cards-area { padding: 4rem 0 3rem; }
.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.section-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.375rem 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.section-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-dark);
}
.section-card-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.section-card-content { flex: 1; }
.section-card-content h3 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.section-card-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.section-card-meta {
  font-size: 0.7rem;
  color: var(--primary-light);
  font-weight: 600;
}
.section-card-arrow {
  font-size: 1rem;
  color: var(--text-subtle);
  flex-shrink: 0;
  align-self: center;
  transition: transform 0.15s;
}
.section-card:hover .section-card-arrow { transform: translateX(3px); color: var(--primary); }

/* Timeline */
.timeline-section { padding: 4rem 0; background: var(--surface); }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.375rem 0;
  position: relative;
}
.timeline-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.timeline-marker {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  background: var(--primary);
  flex-shrink: 0;
  position: relative;
  left: -3rem;
  z-index: 1;
  box-shadow: 0 0 0 3px white;
}
.timeline-marker.m1 { background: #6366f1; }
.timeline-marker.m2 { background: var(--primary-light); }
.timeline-marker.m3 { background: var(--primary-mid); }
.timeline-marker.m4 { background: var(--primary); }
.timeline-marker.m5 { background: var(--green); }
.timeline-marker.m6 { background: #8b5cf6; }

.timeline-body { padding-top: 0.25rem; margin-left: -1.25rem; }
.timeline-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.timeline-dates {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}
.timeline-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* About section */
.about-section { padding: 4rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.about-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.about-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.875rem;
}
.about-content p:last-child { margin-bottom: 0; }

.about-tests { display: flex; flex-direction: column; gap: 0.75rem; }
.test-card-mini {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.test-icon { font-size: 1.25rem; flex-shrink: 0; }
.test-card-mini > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.test-card-mini > div strong {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text);
}
.test-card-mini > div span {
  font-size: 0.72rem;
  color: var(--text-subtle);
}
.badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.badge-live { background: #dcfce7; color: #166534; }
.badge-m5   { background: var(--accent); color: var(--primary); }

/* Footer brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
}
.footer-brand-sub {
  font-size: 0.72rem;
  color: var(--text-subtle);
}
.footer-meta {
  font-size: 0.775rem;
  color: var(--text-subtle);
}

/* ============================
   FOOTER
   ============================ */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer p, footer a { font-size: 0.775rem; color: var(--text-subtle); }
footer a { text-decoration: none; }
footer a:hover { color: var(--primary-light); }

/* ============================
   UTILITIES
   ============================ */
hr.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 3.5rem 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .session-content { grid-template-columns: 1fr; }
  .session-aside { display: none; }
  .lp-versions { grid-template-columns: 1fr; }
  .lp-version { border-right: none; border-bottom: 1px solid var(--border); }
  .lp-version:last-child { border-right: none; border-bottom: none; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 2.1rem; }
  .page-header h1 { font-size: 1.75rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .container, .container-narrow { padding: 0 1.25rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
}

/* ============================
   NAV EXTRAS + MOBILE (added)
   ============================ */
.nav-toggle { display: none; }
.nav-mobile-only { display: none; }
.nav-action { display: flex; align-items: center; gap: 0.5rem; }
.nav-action a.nav-back { color: var(--text-muted); border-color: var(--border); }
.nav-action a.nav-back:hover { background: var(--surface-hover); color: var(--primary); border-color: var(--primary); }
.footer-meta a { color: var(--text-muted); text-decoration: underline; }

/* Milestone jump bar (process blog) */
.milestone-jump {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  margin: -1.5rem 0 2rem;
  padding: 0.6rem 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.milestone-jump::-webkit-scrollbar { display: none; }
.milestone-jump a {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  background: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.milestone-jump a:hover { background: var(--accent-dark); }
[id^="m"][data-milestone] { scroll-margin-top: 130px; }

@media (max-width: 900px) {
  /* keep the session sidebar cards: show them below the write-up instead of hiding them */
  .session-aside { display: block; position: static; margin-top: 2rem; }
}
@media (max-width: 700px) {
  nav { position: sticky; }
  .nav-inner { padding: 0 1rem; height: 56px; gap: 0.75rem; }
  .nav-sep, .nav-action { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; margin-right: -8px; padding: 0 10px;
    background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--primary); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
  nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; flex: none;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15,23,42,0.08);
    padding: 0.5rem 1rem 1rem;
  }
  nav.open .nav-links { display: flex; }
  .nav-links a { font-size: 0.95rem; padding: 0.9rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.nav-mobile-only { display: block; }
  .nav-links a.nav-mobile-only:first-of-type { margin-top: 0; }

  .page-header { padding: 2.25rem 0 1.75rem; margin-bottom: 2rem; }
  .page-header p { font-size: 0.9rem; line-height: 1.7; }
  .blog-entry { grid-template-columns: 1.5rem 1fr; gap: 0.25rem; }
  .blog-entry-link { padding: 0.75rem 0.5rem; }
  .milestone-jump { top: 56px; margin-left: -1.25rem; margin-right: -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  [id^="m"][data-milestone] { scroll-margin-top: 120px; }

  .session-hero h1 { font-size: 1.6rem; line-height: 1.2; }
  .session-meta-row { flex-wrap: wrap; gap: 0.5rem; }
  .session-nav-bar { gap: 0.75rem; }
  .session-nav-bar a { flex: 1; text-align: center; padding: 0.75rem 0.5rem; }
  .session-nav-bar a:only-child { flex: 0 1 50%; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  pre, code { overflow-wrap: anywhere; }
  pre { overflow-x: auto; white-space: pre-wrap; }
  img, video { max-width: 100%; height: auto; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 700px) {
  .about-section { padding: 2.5rem 0; }
  .test-card-mini { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { text-align: center; }
}
