:root {
  /* Base surfaces */
  --bg: #ffffff;
  --bg-alt: #fafafa; /* Softer off-white */
  --surface-raised: #ffffff;
  --border: #eaeaea; /* Very subtle border */
  /* Text */
  --text: #111111; /* Near black for sharp contrast */
  --text-dim: #666666; /* Neutral gray */
  /* Brand / accent - Minimalist B&W */
  --accent: #000000; /* Black primary */
  --accent-600: #000000;
  --accent-500: #333333;
  --accent-soft: #f4f4f4; /* Light grey soft bg */
  /* Links */
  --link: var(--accent-600);
  /* Misc */
  --radius: 8px; /* Slightly softer corners */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono',
    monospace;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  /* Legacy naming compatibility */
  --oat-100: #f7f9fb;
  --oat-300: #e4ebf1;
  --ink-900: #1c2731;
  --ink-500: #5a6b79;
  --nav-bg: #ffffff; /* light nav */
  /* Spacing scale */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;
  --nav-h: 0px;
  /* Hero now flat (no gradient) */
  --hero-bg: #ffffff;
  --focus-ring: 0 0 0 3px rgba(0, 0, 0, 0.15);
  /* Unified scroll offset for sticky header (used by scrollspy + CSS) */
  --scroll-offset: 140px;
  /* Sticky in-page nav top offset (cheatsheets/learning paths) */
  --nav-sticky-top: 80px;
  /* Panels */
  --panel-tint: #ffffff; /* pure white panel */
  --panel-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --panel-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
}
/* Force a light theme even for dark OS preference (override any prior dark rules) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --border: #eaeaea;
    --text: #111111;
    --text-dim: #666666;
    --link: var(--accent-600);
    --accent: #000000;
    --nav-bg: #ffffff;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7; /* Increased for readability */
  letter-spacing: -0.01em; /* Tighter tracking for modern feel */
  -webkit-font-smoothing: antialiased;
}
body.home main {
  padding-top: 8px;
}
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-500);
  text-decoration: none; /* Clean hover */
}
/* Global button (shared across pages; marketing overrides are scoped) */
.button {
  display: inline-block;
  background: var(--accent, #000000);
  color: #fff;
  border-radius: 4px;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover {
  background: var(--accent-500, #333333);
  color: #fff;
  text-decoration: none;
}
/* Container utility to align hero with main width */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}

/* Scroll offset for anchor links to account for sticky header */
section[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* Hero & site header (imported from original, lightly simplified) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85); /* Glass effect */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--text);
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 160ms ease, background 160ms ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); /* Softer shadow for glass */
}
@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(255, 255, 255, 0.92); /* slightly more opaque in dark mode force-light */
  }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.brand {
  display: flex;
  align-items: center; /* Center items vertically */
  gap: var(--s-2);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #333333, #000000);
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}
.brand-mark::before {
  top: 10px;
  opacity: 0.95;
}
.brand-mark::after {
  top: 18px;
  opacity: 0.7;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.1; /* Tighter line height for two lines */
  font-size: 1.05rem; /* Slightly smaller for compactness */
}
.nav-links {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  font-weight: 600; /* baseline for all items */
}
.nav-links a:not(.button) {
  display: inline-flex; /* match dropdown-trigger for equal height */
  align-items: center;
  color: var(--text-dim);
  font-weight: 600 !important;
  padding: 6px 10px;
  border-radius: 6px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:not(.button):hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}
.nav-links a:not(.button).active {
  color: var(--text);
}
/* Highlight underline for active desktop nav items (temporarily disabled)
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-500));
}
*/
/* Dropdown (desktop) */
.dropdown {
  position: relative;
}
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 600 !important; /* match anchors across UA defaults */
  padding: 6px 10px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  font: inherit; /* match anchors */
  line-height: inherit; /* match anchors */
  -webkit-appearance: none;
  appearance: none;
}
.dropdown-trigger:hover,
.dropdown.open .dropdown-trigger {
  background: var(--bg-alt);
  color: var(--text);
}
.dropdown .chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
  margin-top: 2px; /* nudge for optically centered caret */
}
.dropdown.open .chevron {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--panel-shadow);
  padding: 8px;
  display: none;
  z-index: 1100;
}
.dropdown.open .dropdown-menu {
  display: block;
}
.dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 600;
}
.dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}
.dropdown-menu a.active {
  color: var(--text);
  background: var(--bg-alt);
}
/* Active underline indicator for dropdown trigger */
/* Active underline for dropdown trigger (temporarily disabled)
.nav-links .dropdown .dropdown-trigger.active {
  color: var(--text);
}
.nav-links .dropdown .dropdown-trigger.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px; 
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-500));
}
*/
/* Desktop: open dropdown on hover for pointer devices */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  .dropdown:hover .dropdown-trigger {
    background: var(--bg-alt);
    color: var(--text);
  }
}
/* Mobile submenu inside off-canvas */
/* Mobile: make collapsible look like normal links (no heavy card) */
.mobile-menu .mobile-collapsible {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 4px 0;
  background: transparent;
  box-shadow: none;
}
.mobile-menu .mobile-collapsible summary {
  cursor: pointer;
  display: block;
  font-weight: 600;
  color: var(--text-dim);
  list-style: none;
  padding: 10px 4px;
  border-radius: 6px;
}
.mobile-menu .mobile-collapsible[open] summary {
  background: var(--bg-alt);
  color: var(--text);
  margin-bottom: 4px;
}
.mobile-menu .mobile-collapsible summary:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.mobile-menu .mobile-submenu a {
  display: block;
  padding: 8px 10px 8px 20px; /* slight indent */
  border-radius: 6px;
}
/* Override global details styling inside mobile menu */
.mobile-menu details {
  border: 0;
  background: transparent;
  margin-top: 0;
  box-shadow: none;
}
.mobile-menu details summary::before {
  color: var(--text-dim);
}
.nav-toggle {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  align-self: center;
  position: absolute;
  right: var(--s-3);
  top: 10px;
  line-height: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  background: #ffffff;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: -2px 0 14px rgba(15, 30, 45, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1);
  z-index: 3010;
  pointer-events: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 16px;
  display: block;
  padding: 10px 4px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu a:hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}
.mobile-menu a.active {
  color: var(--text);
  background: var(--bg-alt);
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 39, 49, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3000;
}
.mobile-menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.hero-section {
  background: var(--hero-bg);
  color: var(--text);
  margin-top: 0;
  padding: var(--s-8) 0 var(--s-7); /* More vertical space */
  border-bottom: 0; /* Remove border */
}
.hero {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 0;
}
.hero-inner {
  max-width: 800px;
}
.hero h1 {
  margin: 0 0 var(--s-4);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text); /* Solid color */
}
.hero p {
  margin: 0 auto var(--s-6);
  color: var(--text-dim);
  max-width: 65ch;
  font-size: 1.2rem;
  line-height: 1.6;
}
.hero-lead {
  font-size: 1.25rem;
  margin: 0 auto var(--s-5) !important;
}
.hero-subtext {
  margin-top: var(--s-4) !important;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.hero-subtext a {
  color: var(--accent-600);
  font-weight: 500;
}
.primary-cta {
  display: inline-block;
  background: var(--accent-600);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.primary-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  text-decoration: none;
}
}
/* High-order visual grouping */
.group-block {
  margin-top: 50px;
  padding: 40px 42px 48px;
  background: var(--panel-tint); /* now solid white */
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  box-shadow: var(--panel-shadow);
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.group-block:first-of-type {
  margin-top: 48px;
}
.group-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 4px; /* slimmer solid bar */
  width: 100%;
  background: var(--accent-600); /* removed gradient */
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.group-block > .group-header h2 {
  margin-top: 0;
  /* Reduced ~30% for a lighter visual weight */
  font-size: clamp(1.33rem, 1.54vw + 0.7rem, 1.68rem);
  line-height: 1.15;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text; /* standard property for compatibility */
  color: transparent;
  letter-spacing: 0.32px; /* scaled down from 0.5px to suit smaller size */
}
.group-block > .group-header p.lead {
  font-size: 1rem;
}
/* If there is no lead paragraph, tighten space below the heading */
.group-block > .group-header:not(:has(p.lead)) h2 {
  margin-bottom: 0.35rem;
}
.group-block section {
  margin-top: 40px;
}
/* Auto divider between consecutive sections inside a group */
.group-block section + section {
  border-top: 1px solid var(--border);
  padding-top: 40px; /* space after divider */
  margin-top: 56px; /* extra spacing before divider line */
}
.group-block h3 {
  margin-top: 0;
  font-size: 1.2rem; /* larger for clearer hierarchy */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.group-block h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 18px;
  background: linear-gradient(180deg, var(--accent-600), var(--accent-500));
  border-radius: 2px;
}
@media (max-width: 720px) {
  .group-block {
    padding: 32px 24px 40px;
  }
}
.group-block:hover {
  box-shadow: var(--panel-shadow-hover);
  transform: translateY(-2px);
}
/* Group & subsection headings */
h3 {
  margin: 28px 0 4px;
  font-size: 1.05rem;
}
.level-picker {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--s-3);
}
.level-btn {
  background: var(--bg);
  color: var(--text);
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}
.level-btn:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg); /* Invert for strong hover */
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.level-btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.level-btn.primary:hover {
  background: var(--accent); /* Blue on hover */
  border-color: var(--accent);
  color: #fff;
}
.level-btn.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Completion note shown at the bottom of learning-path pages */
.completion-note {
  margin: 32px auto;
  padding: 18px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 980px; /* align with .container */
}
.completion-note p {
  margin: 0;
}
.completion-note a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.completion-note a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .nav {
    position: relative;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
}
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}
/* Section spacing only inside main content (avoid affecting hero-section) */
main > section {
  margin-top: 40px;
}
main > section:first-of-type {
  margin-top: 24px;
}
h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
p.lead {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
/* For descriptions inside details blocks */
.details-desc {
  margin: 0 0 8px 0;
  color: var(--text-dim);
  font-size: 0.97rem;
  background: #fff; /* remove grey tint */
  padding: 6px 12px;
  border-radius: 4px;
  font-style: italic;
  display: block;
}
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-tint);
  margin-top: 16px;
  box-shadow: 0 1px 2px rgba(15, 30, 45, 0.03);
}
details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center; /* vertical centering of arrow + text */
  gap: 8px;
  padding: 8px 12px; /* remove left offset now that arrow is inline */
  font-weight: 600;
  position: relative;
}
details[open] summary {
  border-bottom: 1px solid var(--border);
}
/* Toggle arrow indicator */
details summary::before {
  content: '▸';
  position: static; /* inline within flex */
  font-size: 16px; /* larger toggle icon */
  line-height: 1; /* tighter box for centering */
  color: var(--text-dim);
  transition: transform 0.18s ease;
}
details[open] summary::before {
  content: '▾';
}
ul.resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.resource-list li {
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.kind {
  /* base pill: compact size, darker text */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 10px; /* reverted smaller size */
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f3f6f9;
  color: #0f2333; /* darker for contrast */
  white-space: nowrap;
  line-height: 1.1;
  align-self: flex-start;
  display: inline-block;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.kind-course {
  background: #e4edfb;
  border-color: #b2d1f3;
  color: #153759;
}
.kind-project {
  background: #e2f5f0;
  border-color: #b0e1d5;
  color: #0d3f33;
}
.kind-post {
  background: #efe7ff;
  border-color: #cbbef5;
  color: #352262;
}
.kind-youtube {
  /* YouTube-branded red variant */
  background: #fff0f0; /* soft red tint */
  border-color: #ff0000; /* strong red border */
  color: #8a0000; /* dark red text for contrast */
}
.kind-cert {
  background: #fff3c9;
  border-color: #ffd264;
  color: #5a4200;
}
.kind:hover {
  background: #e1e9f1;
}

/* Brand tweaks */
.brand a.brand-link {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: inherit;
}
.brand a.brand-link:hover .brand-mark {
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}
.brand-tagline {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

.meta {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 2px;
}
.title {
  margin: 0;
  font-weight: 500;
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 20px 16px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.top-link {
  position: fixed;
  bottom: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}
.toc a {
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
code {
  font-family: var(--mono);
  background: var(--bg-alt);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.85em;
}
.compact-note {
  font-size: 0.9rem; /* increased for readability */
  color: var(--text-dim);
  margin-top: 4px;
}
/* Featured project heading (better contrast than gradient on dark) */
.featured-project-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-600); /* solid color ensures contrast */
}
@media (prefers-color-scheme: dark) {
  .featured-project-title {
    color: var(--link);
  }
}
.cheatsheet-content h3,
.cheatsheet-content section,
.learning-grid .group-block > .group-header h2,
.learning-grid .group-block,
.learning-grid .group-block section {
  scroll-margin-top: var(--scroll-offset);
}
/* Additional styles for contact section */
.section-header {
  margin-bottom: var(--s-4);
}
.card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: none;
}
.card p {
  margin: 0 0 var(--s-4);
  color: var(--text);
}
.card p:last-child {
  margin-bottom: 0;
}
/* Starting point tiles */
.start-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 0; /* Removed padding/bg */
  background: transparent;
  border: 0;
}
.start-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.start-tile:hover {
  background: var(--bg);
  transform: translateY(-2px);
  text-decoration: none;
  border-color: var(--accent-600);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.start-tile .stage {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.start-tile .blurb {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dim);
}
@media (prefers-color-scheme: dark) {
  .start-grid {
    background: transparent;
  }
  .start-tile {
    background: var(--bg);
  }
  .start-tile:hover {
    background: var(--bg);
  }
}
/* Optional manual section divider (for explicit breaks) */
hr.section-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 56px 0 40px;
}
@media (prefers-color-scheme: dark) {
  hr.section-divider {
    border-top-color: #2f3a44;
  }
}
.hide-it {
  display: none !important;
}
/* Loading spinner */
.loader {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  padding: 24px 4px;
}
.loader .spin {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-600);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Make a <details> block non-toggleable but keep its summary text (hides arrow & disables click) */
details.no-toggle > summary::before {
  display: none; /* remove custom arrow glyph */
}
details.no-toggle > summary {
  cursor: default; /* no pointer cursor */
  pointer-events: none; /* prevent toggle */
}
details.no-toggle[open] > summary {
  border-bottom: 0; /* remove border that normally shows when open */
}
/* Variant: completely hide the summary line (content always shown). Add both 'open' attribute & class */
details.no-toggle-hide-summary > summary {
  display: none;
}

/* =============================

PDF Cheatsheet opt-in form 

============================= */

/*
.pdf-cta {
  background: var(--accent-soft);
  border: 1px solid var(--accent-600);
  border-radius: 12px;
  padding: 24px;
  margin: 36px 0;
  text-align: center;
}
*/
.pdf-cta {
  margin: 10px 0;
  text-align: center;
}

/* When CTA is moved to the bottom after the cheatsheet content */
.cheatsheet-grid + .pdf-cta,
.container > .pdf-cta:last-child,
main > .container:last-child > .pdf-cta {
  /*margin-top: 56px;*/
  /*margin-top: 26px;*/
  margin-bottom: 8px;
  padding: 22px 24px;
}
@media (max-width: 900px) {
  .cheatsheet-grid + .pdf-cta,
  .container > .pdf-cta:last-child,
  main > .container:last-child > .pdf-cta {
    margin-top: 40px;
    margin-bottom: 6px;
    padding: 20px;
  }
}
.pdf-cta h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--accent-600);
}
.pdf-cta p {
  margin: 0 auto 16px;
  max-width: 60ch;
  color: var(--text-dim);
}

/* Inline Mailchimp form (cheatsheet CTA) */
.pdf-cta form.mc-inline {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}
.pdf-cta form.mc-inline label {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.pdf-cta form.mc-inline .mc-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.pdf-cta form.mc-inline input[type='email'] {
  border: 1px solid var(--border, #d9e2ea);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  height: 44px;
  border-radius: 10px;
  font: inherit;
}
.pdf-cta form.mc-inline input[type='email']:focus {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--accent-600);
}
.pdf-cta form.mc-inline .button {
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 2px solid var(--accent, #2563eb);
  background: var(--accent, #2563eb);
  color: #fff;
}
.pdf-cta form.mc-inline .button:hover {
  background: var(--accent-600, #1d4ed8);
  border-color: var(--accent-600, #1d4ed8);
  color: #fff;
}
.pdf-cta .mc-message {
  font-size: 0.9rem;
  margin-top: 8px;
  text-align: center;
}
@media (max-width: 560px) {
  .pdf-cta form.mc-inline .mc-controls {
    grid-template-columns: 1fr;
  }
  .pdf-cta form.mc-inline .button {
    width: 100%;
  }
}

.privacy-note {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 6px;
}
