/* ===== FONTS ===== */

/* ===== CSS VARIABLES ===== */
:root {
  /* "The schematic" palette (owner brief 2026-12): warm ivory for reading, lilac surfaces, violet as the
     brand (deep violet #5A47B5 wherever it is text or a button, since #7865C9 is 4.3:1 on ivory), plum
     for the dark technical sections (body.theme-dark and .section-dark), sage as a quiet second accent.
     Token names are unchanged on purpose (other rules use them): --teal holds the deep violet accent. */
  --bg-primary: #F7F5F1;      /* paper */
  --bg-secondary: #EAE6F4;
  --bg-card: #FFFFFF;         /* raised: cards that are links */
  --bg-elevated: #EEEBF6;     /* hover */
  --bg-sidebar: #EAE6F4;
  --border: #DCD7E6;          /* rule */
  --border-subtle: #E8E4EE;
  --border-control: #8A84A3;  /* form control outlines: 3:1 against paper and cards */
  --amber: #B45309;
  --amber-subtle: rgba(180, 83, 9, 0.10);
  --amber-dim: rgba(180, 83, 9, 0.35);
  --text-primary: #1E1C2E;    /* ink */
  --text-secondary: #4A475E;
  --text-muted: #625E76;
  --teal: #5A47B5;            /* the accent: indigo (legacy name) */
  --teal-hover: #4A3A9E;
  --teal-dim: rgba(90, 71, 181, 0.45);
  --teal-glow: rgba(90, 71, 181, 0.12);
  --teal-subtle: rgba(90, 71, 181, 0.07);
  --lavender: #CFC6EE;
  --lavender-wash: #EAE6F4;
  --navy: #282638;
  --signal: #4E6B47;         /* deep sage: the "live" dot, hands-on steps (text-safe) */
  --violet: #7865C9;          /* brand violet: drawings, nodes, large shapes (not body text: 4.3:1) */
  --plum: #282638;            /* dark sections */
  --sage: #B7C8B0;            /* fills only (too pale for text on ivory) */
  --grid-dot: rgba(120, 101, 201, 0.18);  /* the schematic dot grid */          /* the "live" dot only */
  --cat-data: #1D55D0;
  --cat-data-bg: rgba(29, 85, 208, 0.10);
  --cat-trends: #15803D;
  --cat-trends-bg: rgba(21, 128, 61, 0.10);
  --cat-tools: #C2410C;
  --cat-tools-bg: rgba(194, 65, 12, 0.10);
  --cat-startups: #BE123C;
  --cat-startups-bg: rgba(190, 18, 60, 0.10);
  --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --bullet-size: 8px;   /* shared by list-item bullet marks (reach-out list, tools-digest items) */
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-width: 288px;
  --footer-height: 80px;   /* real height of .site-footer */
  --nav-height: 66px;
  --shadow: 0 4px 24px rgba(23, 21, 43, 0.08);
  --shadow-sm: 0 2px 8px rgba(23, 21, 43, 0.06);
  --transition: 0.2s ease;
  color-scheme: light;
}

/* Dark technical moments: plum. The Data Architecture page (body.theme-dark) and any .section-dark band
   redefine the tokens; components inside them were drawn for a dark ground. */
body.theme-dark, .section-dark {
  --bg-primary: #282638;
  --bg-secondary: #2F2D42;
  --bg-card: #34324A;
  --bg-elevated: #3D3A55;
  --bg-sidebar: #2F2D42;
  --border: #4A4766;
  --border-subtle: #3A3851;
  --border-control: #76719A;
  --amber: #F59E0B;
  --amber-subtle: rgba(245, 158, 11, 0.1);
  --amber-dim: rgba(245, 158, 11, 0.3);
  --text-primary: #F3F1FA;
  --text-secondary: #D2CEE6;
  --text-muted: #B1ACCB;
  --teal: #B3A6F0;
  --teal-hover: #C9BFF7;
  --teal-dim: rgba(179, 166, 240, 0.6);
  --teal-glow: rgba(179, 166, 240, 0.14);
  --teal-subtle: rgba(179, 166, 240, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  /* category and feed colours light enough for the navy ground */
  --cat-ai: #67D4E8; --cat-architecture: #FDA56B; --cat-engineering: #8CB4FF;
  --cat-modeling: #F39AC9; --cat-quality: #6EDB9A; --cat-strategy: #F2CF5B;
  --cat-data: #8CB4FF; --cat-trends: #6EDB9A; --cat-tools: #FDA56B; --cat-startups: #FF9BB1;
  --grid-dot: rgba(179, 166, 240, 0.16);
  --signal: #B7C8B0;
  color-scheme: dark;
  background: var(--bg-primary); color: var(--text-primary);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex; align-items: center;
  padding: 0 24px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 20px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; text-decoration: none;
}
.nav-logo { width: 42px; height: 42px; color: var(--teal); flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name {
  font-size: 18px; font-weight: 700; color: var(--teal);
  letter-spacing: -0.02em; font-family: var(--font-mono);
}
.nav-brand-author { font-size: 12px; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 6px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link.active { color: var(--teal); background: var(--teal-subtle); }
.nav-social { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}
.nav-social-link:hover, .nav-social-link[aria-current="page"] { color: var(--text-primary); background: var(--bg-elevated); border-color: var(--border); }
.nav-social-link svg { width: 18px; height: 18px; }
.nav-live { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px 0 11px; margin-right: 4px; border: 1.5px solid var(--cat-ai); border-radius: 999px; background: var(--lavender-wash); font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; animation: live-cycle 12s linear infinite; transition: background var(--transition); }
.nav-live:hover, .nav-live[aria-current="page"] { background: var(--bg-card); color: var(--teal); }
.nav-live:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* the dot and the outline move through the feed's five types (AI, Data, Trends, Tools, Startups): the
   colour says what is behind the link (owner request 2026-12); still when motion is reduced */
.nav-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat-ai); flex-shrink: 0; animation: live-cycle-dot 12s linear infinite; }
@keyframes live-cycle { 0%, 100% { border-color: var(--cat-ai); } 20% { border-color: var(--cat-data); } 40% { border-color: var(--cat-trends); } 60% { border-color: var(--cat-tools); } 80% { border-color: var(--cat-startups); } }
@keyframes live-cycle-dot { 0%, 100% { background: var(--cat-ai); } 20% { background: var(--cat-data); } 40% { background: var(--cat-trends); } 60% { background: var(--cat-tools); } 80% { background: var(--cat-startups); } }
@media (prefers-reduced-motion: reduce) { .nav-live, .nav-live-dot { animation: none; } .nav-live { border-color: var(--teal-dim); } .nav-live-dot { background: var(--signal); } }
.mobile-nav-link.mobile-nav-secondary { border-top: 1px solid var(--border-subtle); }
.mobile-nav-link.mobile-nav-secondary + .mobile-nav-link.mobile-nav-secondary { border-top: 0; }
/* Room for "Live feed" (2026-12): between 1001 and 1160px (six tabs still in the bar) GitHub and Reach
   out leave the header; on phones (480px and below) LinkedIn leaves too, so the header is the brand,
   Live feed and the menu button. GitHub is on About and Home's About strip, Reach out in the footer,
   LinkedIn in the About strip and on About. interaction_test.py fails if the menu button is pushed off. */
@media (min-width: 1001px) and (max-width: 1160px) {
  .nav-social-link[title="GitHub"], .nav-social-link[title="Reach out"] { display: none; }
}
@media (min-width: 1001px) and (max-width: 1060px) { .nav-social-link[title="LinkedIn"] { display: none; } }
@media (max-width: 340px) { .nav-brand-author { display: none; } }  /* the smallest phones */
@media (max-width: 520px) {
  .nav-live { padding: 0 10px; margin-right: 0; }
  .nav-social-link[title="GitHub"], .nav-social-link[title="Reach out"], .nav-social-link[title="LinkedIn"] { display: none; }
}

/* ===== PAGE LAYOUT ===== */
.page-wrapper { padding-top: var(--nav-height); min-height: 100vh; display: flex; flex-direction: column; }
.page-wrapper > .main-layout { flex: 1 0 auto; }
.main-layout {
  /* Full width: the sidebar sits on the right edge of the window and the
     content column is centered in the space left of it (no blank left margin). */
  display: flex; padding: 0; gap: 0;
}
.main-content {
  flex: 0 1 1160px; min-width: 0;
  margin: 0 auto;
  padding: 40px 32px 60px;
}
.main-sidebar {
  /* Stretches the full height of the page (down to the footer) so its edge line and background
     do not stop early; only the feed inside it is sticky. */
  width: var(--sidebar-width); flex-shrink: 0; align-self: stretch;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-subtle);
}
.main-sidebar .news-feed {
  position: sticky; top: var(--nav-height);
  height: calc(100vh - var(--nav-height) - var(--footer-height));
  overflow: hidden;
}

/* ===== SEARCH ===== */
.search-container { position: relative; margin-bottom: 40px; }
.search-input {
  width: 100%; padding: 14px 16px 14px 48px;
  background: var(--bg-card); border: 1px solid var(--border-control);
  border-radius: var(--radius-lg); color: var(--text-primary);
  font-size: 15px; font-family: var(--font-sans); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--teal-dim); box-shadow: 0 0 0 3px var(--teal-glow); }
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; width: 18px; height: 18px;
}
.search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-elevated); color: var(--text-muted);
  cursor: pointer; font-size: 14px;
  transition: color var(--transition), background var(--transition);
}
.search-clear:hover { background: var(--border); color: var(--text-primary); }
.search-clear.visible { display: flex; }

/* ===== HERO =====
   Owner decision 2026-10, from a design critique: no card wrapper (the old border was barely visible
   at 1.9:1 contrast anyway, and a boxed hero reads as template); single column, directly on the page
   background. Category links replace six identical rounded-square tiles (a named AI-slop pattern:
   same-sized cards, icon above label, repeated) with a quiet inline row; color is a hover accent only,
   never a filled shape (see build_categories.py's build_css -- PRODUCT.md principle 3). */
.hero {
  padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}
.hero-title {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(36px, 5.4vw, 62px); font-weight: 700; letter-spacing: -0.015em;
  color: var(--text-primary); line-height: 1.04;
  letter-spacing: -0.01em; margin: 0 0 18px; max-width: 16ch;
}
.hero-subtitle {
  font-size: 17px; color: var(--text-secondary);
  max-width: 62ch; line-height: 1.75; margin-bottom: 28px;
}

.hero-cat-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px; margin: 4px -14px 0; padding-top: 18px; border-top: 1px solid var(--border-subtle); }  /* the topics, on one line under the whole hero (owner decision 2026-12); wraps only on narrow screens */
@media (min-width: 1100px) { .hero-cat-row { flex-wrap: nowrap; } }
.hero-cat-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 9px;
  font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.hero-cat-link:hover, .hero-cat-link:focus-visible { color: var(--text-primary); }
.hero-cat-icon { width: 17px; height: 17px; flex-shrink: 0; }

/* The hero's CTA is the shared .cta-btn component, not a one-off -- same hero-scale override pattern
   already established by .game-hero .cta-btn (polish pass, 2026-10: caught during the critique
   follow-up, the first draft had invented a near-duplicate button with its own hover/focus/shape). */
.hero .cta-btn { padding: 16px 32px; font-size: 16px; }

/* ===== SECTION HEADERS =====
   The title used to carry a small decorative teal dot and, on Home only, an uppercase "kicker" label
   above it (Site / Tooling / Market / Reading) -- both cut (owner decision 2026-10): a design critique
   named the dot-before-every-heading and the kicker-above-every-heading as named AI-slop patterns.
   The heading carries its own weight now; nothing sits in front of or above it. */
.section-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 24px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.section-link {
  font-size: 13px; font-weight: 500; color: var(--teal);
  transition: color var(--transition); display: flex; align-items: center; gap: 4px;
}
.section-link:hover { color: var(--teal); }

/* Home section rhythm (owner decision 2026-10): a thin rule plus generous, varied top padding before
   each section, replacing a flat bottom margin repeated on every section (see design-system.md). Values
   are deliberately not identical: tools-digest is the densest block so it gets the most room before it;
   featured-section already has .search-container's own margin above it, so it needs less. */
.section-block { border-top: 1px solid var(--border-subtle); margin-top: 48px; padding-top: 48px; }
.hero + .section-block { border-top: 0; margin-top: 0; padding-top: 8px; }  /* the hero's own bottom rule already separates them */
.tools-digest.section-block { margin-top: 56px; padding-top: 56px; }
#featured-section.section-block { margin-top: 24px; padding-top: 24px; }

/* ===== ARTICLE CARDS ===== */
.articles-grid { display: grid; gap: 16px; }
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition); display: block;
}
.article-card:hover {
  border-color: var(--teal-dim); background: var(--bg-elevated);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.article-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.article-card-title {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  line-height: 1.35; margin-bottom: 8px; letter-spacing: -0.01em;
  transition: color var(--transition);
}
.article-card:hover .article-card-title { color: var(--teal); }
.article-card-excerpt {
  font-size: 14px; color: var(--text-secondary); line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.article-card-date { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.article-card-read { font-size: 12px; color: var(--text-muted); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; font-family: var(--font-mono);
}
.badge-data       { color: var(--cat-data);         background: var(--cat-data-bg); }
.badge-trends     { color: var(--cat-trends);       background: var(--cat-trends-bg); }
.badge-tools      { color: var(--cat-tools);        background: var(--cat-tools-bg); }

/* ===== FILTERS ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); background: var(--bg-card);
  border: 1px solid var(--border-control); transition: all var(--transition); cursor: pointer;
}
.filter-btn:hover { color: var(--text-primary); background: var(--bg-elevated); }
.filter-btn.active { color: var(--teal); background: var(--teal-subtle); border-color: var(--teal-dim); }

/* ===== NEWS FEED SIDEBAR ===== */
.news-feed {
  height: 100%; display: flex; flex-direction: column;
  padding: 20px 0 0; background: var(--bg-sidebar);
}
.news-feed-header { padding: 0 20px 14px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; }
.news-feed-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.news-feed-title-text {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--text-primary);
  letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono);
}
.live-dot {
  /* A plain solid dot, no glow and no continuous pulse (owner decision 2026-10, from a design critique:
     a glowing animated dot is a named AI-slop tell, and it was one of two ambient animations running at
     once on Home -- see the cognitive-load note on "one thing at a time" in that critique). */
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}
.paused-badge {
  display: none; align-items: center; gap: 5px;
  padding: 2px 8px;
  background: var(--cat-tools-bg); border: 1px solid var(--cat-tools);
  border-radius: 100px; font-size: 10px; font-weight: 600;
  color: var(--cat-tools); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-mono);
}
.paused-badge.visible { display: flex; }
.news-legend-row { display: flex; align-items: center; gap: 10px; }
.news-legend { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -9px; }
.legend-item { display: flex; align-items: center; gap: 5px; padding: 4px 9px; font: inherit; font-size: 13px; color: var(--text-secondary); font-weight: 700; background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: color var(--transition), background var(--transition), border-color var(--transition); }
.legend-item:hover { color: var(--text-primary); background: var(--bg-elevated); }
.legend-item.active { color: var(--text-primary); background: var(--bg-elevated); border-color: var(--border-control); }
.news-ticker.static { animation: none; }
.news-empty { padding: 20px; font-size: 13px; color: var(--text-muted); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.ai { background: var(--cat-ai); }
.legend-dot.data { background: var(--cat-data); }
.legend-dot.trends { background: var(--cat-trends); }
.legend-dot.tools { background: var(--cat-tools); }
.legend-dot.startups { background: var(--cat-startups); }

.news-ticker-container {
  flex: 1; overflow: hidden; position: relative; cursor: default;
}
.news-ticker-container::before,
.news-ticker-container::after {
  content: ''; position: absolute; left: 0; right: 0; height: 40px; z-index: 2; pointer-events: none;
}
.news-ticker-container::before { top: 0; background: linear-gradient(to bottom, var(--bg-sidebar), transparent); }
.news-ticker-container::after  { bottom: 0; background: linear-gradient(to top,   var(--bg-sidebar), transparent); }

.news-ticker { animation: ticker-scroll 40s linear infinite; padding: 20px 0; }
.news-ticker.paused { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.news-speed-row {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 0 1px; margin-top: 4px;
}
.news-speed-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text-muted); opacity: 0.7; flex-shrink: 0;
}
.news-reddit-row {
  display: flex; align-items: center; margin-top: 4px; padding: 2px 0;
}
.news-speed-btns { display: flex; gap: 4px; }
.news-speed-btn {
  font-size: 10px; font-weight: 600; letter-spacing: 0.03em;
  padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.news-speed-btn:hover { color: var(--text-secondary); border-color: var(--text-muted); }
.news-speed-btn.active {
  background: var(--teal-subtle); border-color: var(--teal-dim); color: var(--teal);
}
.news-item {
  padding: 13px 20px; border-bottom: 1px solid var(--border-subtle);
  cursor: pointer; transition: background var(--transition); display: block;
}
.news-item:hover { background: var(--bg-elevated); }
.news-item-category { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.news-item-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.news-item-cat-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; font-family: var(--font-mono);
}
.news-item-cat-label.ai    { color: var(--cat-ai); }
.news-item-dot.ai          { background: var(--cat-ai); }
.news-item-cat-label.data  { color: var(--cat-data); }
.news-item-dot.data        { background: var(--cat-data); }
.news-item-cat-label.trends{ color: var(--cat-trends); }
.news-item-dot.trends      { background: var(--cat-trends); }
.news-item-cat-label.tools { color: var(--cat-tools); }
.news-item-dot.tools       { background: var(--cat-tools); }
.news-item-cat-label.startups { color: var(--cat-startups); }
.news-item-dot.startups    { background: var(--cat-startups); }
.news-item-title {
  font-size: 12.5px; font-weight: 500; color: var(--text-secondary);
  line-height: 1.5; transition: color var(--transition);
}
.news-item:hover .news-item-title { color: var(--text-primary); }
.news-item-time { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 4px; }

/* ===== RESOURCES ===== */
.resources-section { margin-bottom: 48px; }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.resource-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: all var(--transition); display: block;
}
.resource-card:hover { border-color: var(--teal-dim); background: var(--bg-elevated); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.resource-card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; line-height: 1.35; transition: color var(--transition); }
.resource-card:hover .resource-card-title { color: var(--teal); }
.resource-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.resource-card-footer { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.resource-tag { font-size: 11px; font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.coming-soon-banner {
  background: var(--bg-card); border: 1px dashed var(--border);
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
}
.coming-soon-banner h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.coming-soon-banner p { font-size: 14px; color: var(--text-muted); max-width: 360px; margin: 0 auto; }
.coming-soon-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.coming-soon-chip { padding: 6px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; font-size: 12px; color: var(--text-muted); }

/* ===== ARTICLE PAGE ===== */
.article-page { max-width: 720px; margin: 0 auto; }
.article-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 40px; }
.article-header-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.article-title { font-family: var(--font-serif); font-optical-sizing: auto; font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; color: var(--text-primary); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 16px; }
.article-subtitle { font-size: 17px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 24px; }
.article-byline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.article-author { display: flex; align-items: center; gap: 10px; }
.article-author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-glow); border: 2px solid var(--teal-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--teal); font-family: var(--font-mono); flex-shrink: 0;
}
.article-author-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.article-author-sub  { font-size: 12px; color: var(--text-muted); }
.btn-linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: #0a66c2; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; color: white;
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn-linkedin:hover { background: #0854a0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(10,102,194,0.35); }
.btn-linkedin svg { width: 16px; height: 16px; }

/* ===== ARTICLE BODY ===== */
.article-body { font-size: 16px; line-height: 1.8; color: var(--text-secondary); }
.article-body h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 28px 0 12px; letter-spacing: -0.02em; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body code { font-family: var(--font-mono); font-size: 13.5px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; color: var(--teal); }
.article-body pre { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; overflow-x: auto; margin: 24px 0; }
.article-body pre code { background: none; border: none; padding: 0; font-size: 13.5px; color: var(--text-primary); line-height: 1.7; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { position: relative; padding: 20px 24px 20px 60px; background: var(--teal-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); margin: 24px 0; color: var(--text-primary); font-style: italic; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote::before { content: '\201C'; position: absolute; left: 20px; top: 6px; font: 400 48px/1 var(--font-serif); font-style: normal; color: var(--teal); }
.article-body a { color: var(--teal); text-decoration: underline; text-decoration-color: var(--teal-glow); }
.article-body a:hover { text-decoration-color: var(--teal); }
.article-download { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: var(--radius-lg); padding: 20px 24px; margin: 28px 0; }
.article-download p { margin: 0 0 12px; }
.article-body a.article-download-link { display: inline-block; padding: 8px 16px; border: 1px solid var(--teal); border-radius: 8px; text-decoration: none; font-weight: 600; }
.article-body a.article-download-link:hover { background: var(--teal-glow); }
.article-download summary { cursor: pointer; color: var(--teal); font-weight: 600; margin-top: 4px; }
.article-download pre { margin: 14px 0 0; max-height: 480px; overflow: auto; }
.article-download pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.article-body .h-icon { display: inline-block; width: 20px; height: 20px; margin-right: 10px; vertical-align: -3px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.article-figure { margin: 28px 0; }
.article-figure a { display: block; cursor: zoom-in; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-card); }
.article-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.article-callout { background: var(--teal-subtle); border: 1px solid var(--teal-glow); border-radius: var(--radius-lg); padding: 20px 24px; margin: 24px 0; }
.article-callout-title { font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); margin-bottom: 8px; }
.article-callout p { margin-bottom: 0; font-size: 14.5px; }

/* ===== ABOUT ===== */
.about-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 48px; }
.about-profile { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 28px; }
.about-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--teal-glow); border: 2px solid var(--teal-dim); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--teal); font-family: var(--font-mono); flex-shrink: 0; }
.about-name { font-size: 28px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; margin-bottom: 6px; }
.about-title-text { font-size: 15px; color: var(--teal); font-weight: 500; margin-bottom: 4px; }
.about-location { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.about-bio { font-size: 15.5px; color: var(--text-secondary); line-height: 1.75; }
.about-social { display: flex; gap: 10px; margin-top: 20px; }
.about-social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--text-secondary); transition: all var(--transition); }
.about-social-btn:hover { border-color: var(--teal-dim); color: var(--teal); background: var(--teal-subtle); }
.about-social-btn svg { width: 15px; height: 15px; }
.about-bio p { margin: 0 0 14px; }
.about-bio p:last-child { margin-bottom: 0; }
.about-hero .about-social { flex-wrap: wrap; margin-top: 28px; }
.about-hero:last-child { border-bottom: none; margin-bottom: 0; }  /* nothing follows it on About since 2026-12 */
.about-social-btn-primary { background: var(--teal); border-color: var(--teal); color: var(--bg-primary); font-weight: 700; }
.about-social-btn-primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: var(--bg-primary); }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--teal), var(--border)); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: -32px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-primary); border: 2px solid var(--teal); box-shadow: 0 0 8px var(--teal-glow); }
.timeline-year { font-size: 12px; font-family: var(--font-mono); color: var(--teal); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 4px; }
.timeline-role { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.timeline-company { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.timeline-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* Expertise cards */
.expertise-cards { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.expertise-card { display: block; color: inherit; border-top: 1px solid var(--border-subtle); padding: 20px 0 24px; }
.expertise-card:hover .expertise-card-title { color: var(--teal); }
.expertise-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; transition: color var(--transition); }
.expertise-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 46ch; }

/* Story box */
.story-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.story-box p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.story-box p:last-child { margin-bottom: 0; }

/* ===== PAGE HEADER ===== */
.page-header { padding: 40px 0 32px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 32px; }
.page-header h1 { font-family: var(--font-serif); font-optical-sizing: auto; font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; line-height: 1.1; color: var(--text-primary); letter-spacing: -0.015em; margin-bottom: 10px; }
.page-header p { font-size: 15px; color: var(--text-secondary); max-width: 540px; line-height: 1.6; }
/* ===== THE SCHEMATIC (owner brief 2026-12): a visual language drawn from the architecture map itself.
   Nodes on thin lines, annotations in mono, a faint dot grid. Used for page headers, section heads,
   progress and dark bands. Structure encodes real information (counts, order), never decoration. ===== */
.page-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: end; }
.page-header-text { min-width: 0; }
.page-spec { display: flex; align-items: center; gap: 22px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background-color: var(--bg-card); background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 12px 12px; }
.page-glyph { width: 112px; height: 72px; flex-shrink: 0; }
.page-glyph .g-line { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-glyph .g-node { fill: var(--bg-card); stroke: var(--violet); stroke-width: 1.8; }
.page-glyph .g-node.on { fill: var(--violet); }
.page-spec-list { display: grid; gap: 6px; margin: 0; }
.page-spec-row { display: flex; align-items: baseline; gap: 10px; }
.page-spec-row dt { font: 600 15px var(--font-mono); color: var(--text-primary); font-variant-numeric: tabular-nums; min-width: 4.5ch; }
.page-spec-row dd { margin: 0; font-size: 13px; color: var(--text-muted); }
@media (max-width: 860px) { .page-header { grid-template-columns: minmax(0, 1fr); } .page-spec { justify-self: start; } }
@media (max-width: 420px) { .page-glyph { width: 84px; height: 54px; } .page-spec { gap: 14px; padding: 12px 14px; } }
/* an annotation: <span class="annot"><b>02</b> Learning</span> */
.annot { display: inline-flex; align-items: baseline; gap: 10px; font: 500 11.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.annot b { color: var(--teal); font-weight: 600; }
/* a node rule: a section divider that starts with a node, like a stage on the rail */
.node-rule { position: relative; height: 1px; background: var(--border); margin: 0 0 0 10px; }
.node-rule::before { content: ""; position: absolute; left: -10px; top: -5px; width: 9px; height: 9px; border-radius: 50%; border: 1.8px solid var(--violet); background: var(--bg-primary); }
/* the dot grid, for dark bands and visual panels */
.dot-grid { background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 14px 14px; }

/* ===== BACK LINK ===== */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 32px; margin-top: 12px; transition: color var(--transition); }
.back-link:hover { color: var(--teal); }

/* ===== SHARE FOOTER ===== */
.share-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.share-footer h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.share-footer p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== RESULTS COUNT ===== */
.results-count { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; font-family: var(--font-mono); }
.results-count span { color: var(--teal); font-weight: 600; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); }
.empty-state a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--teal); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border-subtle); margin: 32px 0; }

/* ===== LIVE FEED OPEN BUTTON ===== */
.news-feed-open-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  color: var(--text-muted); background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer; flex-shrink: 0;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.news-feed-open-btn:hover { color: var(--teal); background: var(--teal-subtle); border-color: var(--teal-dim); }
.news-feed-open-btn svg { width: 16px; height: 16px; }
.news-feed-title-text { cursor: pointer; }
.news-feed-title-text:hover .news-feed-title-label { color: var(--teal); }
.news-feed-title-label { transition: color var(--transition); }

/* ===== FEED PANEL (slide-in from right) ===== */
.feed-panel-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.3s ease;
}
.feed-panel-overlay.open {
  background: rgba(0, 0, 0, 0.55);
  pointer-events: all;
}

.feed-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(560px, 92vw);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.feed-panel.open { transform: translateX(0); }

/* Panel header */
.feed-panel-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.feed-panel-title-row {
  display: flex; align-items: center; justify-content: space-between;
}
.feed-panel-page-link { margin-left: 14px; font-size: 12px; }
.feed-panel-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-mono);
}
.feed-panel-count {
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  background: var(--teal-subtle); color: var(--teal);
  border: 1px solid var(--teal-glow); border-radius: 100px;
  font-family: var(--font-mono);
}
.feed-panel-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius);
  color: var(--text-muted); cursor: pointer;
  border: 1px solid var(--border-subtle); background: transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  font-size: 16px; flex-shrink: 0;
}
.feed-panel-close:hover { color: var(--text-primary); background: var(--bg-elevated); border-color: var(--border); }

/* Panel search */
.feed-panel-search-wrap { position: relative; }
.feed-panel-search {
  width: 100%; padding: 10px 14px 10px 38px;
  background: var(--bg-card); border: 1px solid var(--border-control);
  border-radius: var(--radius); color: var(--text-primary);
  font-size: 13px; font-family: var(--font-sans); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feed-panel-search::placeholder { color: var(--text-muted); }
.feed-panel-search:focus { border-color: var(--teal-dim); box-shadow: 0 0 0 3px var(--teal-glow); }
.feed-panel-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; width: 14px; height: 14px;
}

/* Panel filter row */
.feed-panel-filters {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.feed-panel-filter {
  padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 600;
  color: var(--text-muted); background: var(--bg-card);
  border: 1px solid var(--border-control); cursor: pointer;
  transition: all var(--transition); font-family: var(--font-mono);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.feed-panel-filter:hover { color: var(--text-primary); background: var(--bg-elevated); }
.feed-panel-filter.active { color: var(--teal); background: var(--teal-subtle); border-color: var(--teal-dim); }
.feed-panel-filter-fav {
  margin-left: auto;
  display: flex; align-items: center; gap: 5px;
}
.feed-panel-filter-fav svg { width: 12px; height: 12px; }
.feed-reddit-switch {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
}
.feed-reddit-switch-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-secondary);
}
.feed-reddit-switch-track {
  position: relative; width: 32px; height: 18px; border-radius: 9px; padding: 0; appearance: none;
  background: var(--bg-elevated); border: 1px solid var(--border-control);
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.feed-reddit-switch-track:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.feed-reddit-switch-track.on {
  background: var(--teal-subtle); border-color: var(--teal-dim);
}
.feed-reddit-switch-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-secondary); transition: transform 0.2s, background 0.2s;
}
.feed-reddit-switch-track.on .feed-reddit-switch-thumb {
  transform: translateX(14px); background: var(--teal);
}

/* Panel list */
.feed-panel-body {
  flex: 1; overflow-y: auto; padding: 8px 0;
}
.feed-panel-body::-webkit-scrollbar { width: 4px; }
.feed-panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.feed-panel-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 24px; border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}
.feed-panel-item:hover { background: var(--bg-elevated); }

.feed-panel-item-left { flex: 1; min-width: 0; }
.feed-panel-item-cat {
  display: flex; align-items: center; gap: 5px; margin-bottom: 5px;
}
.feed-panel-item-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.feed-panel-item-dot.ai     { background: var(--cat-ai); }
.feed-panel-item-dot.data   { background: var(--cat-data); }
.feed-panel-item-dot.trends { background: var(--cat-trends); }
.feed-panel-item-dot.tools  { background: var(--cat-tools); }
.feed-panel-item-dot.startups { background: var(--cat-startups); }
.feed-panel-item-cat-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; font-family: var(--font-mono);
}
.feed-panel-item-cat-label.ai     { color: var(--cat-ai); }
.feed-panel-item-cat-label.data   { color: var(--cat-data); }
.feed-panel-item-cat-label.trends { color: var(--cat-trends); }
.feed-panel-item-cat-label.tools  { color: var(--cat-tools); }
.feed-panel-item-cat-label.startups { color: var(--cat-startups); }

.feed-panel-item-title {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 4px;
  text-decoration: none; display: block;
  transition: color var(--transition);
}
.feed-panel-item-title:hover { color: var(--teal); }
.feed-panel-item-time { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); }

/* Favorite button */
.feed-panel-fav-btn {
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; background: transparent;
  transition: all var(--transition); color: var(--text-muted);
  margin-top: 2px;
}
.feed-panel-fav-btn:hover { color: var(--amber); background: var(--amber-subtle); border-color: var(--amber-dim); }
.feed-panel-fav-btn.starred { color: var(--amber); background: var(--amber-subtle); border-color: var(--amber-dim); }
.feed-panel-fav-btn svg { width: 14px; height: 14px; }

/* Empty state inside panel */
.feed-panel-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 24px; text-align: center;
  color: var(--text-muted); gap: 10px;
}
.feed-panel-empty svg { width: 32px; height: 32px; opacity: 0.4; }
.feed-panel-empty p { font-size: 13px; line-height: 1.6; }

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.search-input:focus-visible,
.feed-panel-search:focus-visible {
  outline: none;
  border-color: var(--teal-dim);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

/* ===== MOBILE NAV (HAMBURGER) ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.nav-hamburger:hover { background: var(--bg-elevated); border-color: var(--border); }
.nav-hamburger span {
  display: block; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px 16px;
  z-index: 99;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 16px; font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.mobile-nav-link.active { color: var(--teal); background: var(--teal-subtle); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .main-sidebar { display: none; }
  .main-content { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 768px) {
  .main-layout { padding: 0 16px; }
  .main-content { padding: 24px 0 48px; }
  .hero { padding: 24px 0 36px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 16px; }
  .about-profile { flex-direction: column; }
  .resources-grid { grid-template-columns: 1fr; }
  .expertise-cards { grid-template-columns: 1fr 1fr; }
  .article-byline { flex-direction: column; align-items: flex-start; }
  .share-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .expertise-cards { grid-template-columns: 1fr; }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== CTA BUTTON ===== */
.cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--teal); color: var(--bg-primary); font-size: 14px; font-weight: 700; border-radius: var(--radius); transition: all var(--transition); }
.cta-btn:hover { background: var(--teal-hover); transform: translateY(-1px); }
.cta-btn:focus-visible { outline: 2px solid var(--teal-hover); outline-offset: 3px; }

/* ===== NEWSLETTER BOX ===== */
.newsletter-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--teal-subtle); border: 1px solid var(--teal-dim); border-radius: var(--radius-lg); padding: 24px 28px; margin: 40px 0; }
.newsletter-box[hidden] { display: none; }
.newsletter-box h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.newsletter-box p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; max-width: 460px; }

/* ===== ARTICLE PAGE ENHANCEMENTS ===== */
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; z-index: 300; pointer-events: none; }
.article-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 32px; }
.article-toc-title { font: 600 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.article-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; display: grid; gap: 6px; }
.article-toc li { counter-increment: toc; font-size: 14.5px; line-height: 1.5; }
.article-toc li::before { content: counter(toc) "."; color: var(--text-muted); font-family: var(--font-mono); font-size: 12.5px; margin-right: 8px; }
.article-toc a { color: var(--text-secondary); }
.article-toc a:hover { color: var(--teal); }
.article-body h2 { scroll-margin-top: calc(var(--nav-height) + 16px); }
.related-articles { margin-top: 48px; }

@media (max-width: 768px) {
  .service-row { grid-template-columns: 1fr; padding: 24px 0; }
  .expertise-cards { grid-template-columns: 1fr; }
}

/* ===== ACCESSIBILITY ===== */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 400; padding: 10px 16px; background: var(--teal); color: var(--bg-primary); font-weight: 700; font-size: 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--teal-hover); outline-offset: 2px; }
.main-content:focus { outline: none; }
@media (max-width: 768px) {
  /* touch targets: at least 44px tall */
  .filter-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; }
  .search-clear { width: 44px; height: 44px; }
  .feed-panel-close { width: 44px; height: 44px; }
  .feed-panel-filter { min-height: 44px; }
  .mobile-nav-link { min-height: 44px; display: flex; align-items: center; }
  .hero-cat-link { min-height: 44px; }
}

/* ===== READABLE LINE LENGTH (content column is wider on large screens) ===== */
.about-bio, .story-box p, .timeline-desc { max-width: 72ch; }

/* ===== HOMEPAGE PRE-LAUNCH ===== */
.search-container[hidden], #featured-section[hidden] { display: none; }
.home-intro { font-size: 16px; line-height: 1.75; color: var(--text-secondary); max-width: 72ch; margin: 0 0 32px; }
.home-intro p { margin: 0 0 14px; }
.home-intro p:last-child { margin-bottom: 0; }
.home-intro a { color: var(--teal); white-space: nowrap; }
.home-intro .home-positioning { color: var(--text-primary); font-weight: 500; }

.filters[hidden], .results-count[hidden] { display: none; }

.resources-section[hidden] { display: none; }

.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border-subtle); }
.demo-row:last-child { border-bottom: 1px solid var(--border-subtle); }
.demo-row-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.demo-row-status { font: 600 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border-control); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.demo-row-status.is-live { color: var(--teal); border-color: var(--teal-dim); }
a.demo-row:hover .demo-row-title { color: var(--teal); }

/* ===== LEARNING PATHS ===== */
.paths-list { margin-bottom: 40px; counter-reset: path; }
.path-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 8px 40px; padding: 32px 0; border-top: 1px solid var(--border-subtle); }
.path-row:last-child { border-bottom: 1px solid var(--border-subtle); }
.path-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.path-num { display: block; font: 600 12px var(--font-mono); color: var(--teal); letter-spacing: 0.08em; margin-bottom: 8px; }
.path-summary { font-size: 15.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; max-width: 62ch; }
.path-for { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; max-width: 62ch; }
.path-for strong, .path-companion strong { color: var(--text-secondary); font-weight: 600; }
.path-label { font: 600 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin: 16px 0 8px; }
.path-outcomes { list-style: none; display: grid; gap: 6px; }
.path-outcomes li { position: relative; padding-left: 24px; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.path-outcomes li::before { content: '\2713'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.path-steps { list-style: none; counter-reset: step; display: grid; gap: 16px; }
.path-steps li { counter-increment: step; position: relative; padding-left: 30px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.path-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border: 1px solid var(--border-control); border-radius: 50%; font: 600 11px/18px var(--font-mono); text-align: center; color: var(--text-muted); }
.path-steps a { color: var(--teal); }
.cat-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; margin-right: 0.45em; }
.badge .cat-icon { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
.expertise-card-title .cat-icon { width: 20px; height: 20px; margin-right: 10px; vertical-align: -4px; }
.path-cat { margin-bottom: 10px; }
.path-row { scroll-margin-top: calc(var(--nav-height) + 16px); }
.path-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 4px; padding: 8px 14px; background: transparent; border: 1px solid var(--border-control); border-radius: 999px; color: var(--text-secondary); font: 500 13.5px var(--font-sans); cursor: pointer; transition: color var(--transition), border-color var(--transition); }
.path-toggle:hover { color: var(--teal); border-color: var(--teal-dim); }
.path-toggle-chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--transition); }
.path-toggle[aria-expanded="true"] .path-toggle-chevron { transform: rotate(180deg); }
.path-detail { margin-top: 8px; }
.path-soon { margin-top: 4px; }
.path-row-soon .path-title { color: var(--text-secondary); }
.path-detail[hidden], .path-row[hidden] { display: none; }
.path-step-planned { color: var(--text-secondary); }
.path-steps li a + .path-step-meta { display: block; margin-top: 2px; }
.path-step-meta { font: 500 11.5px var(--font-mono); letter-spacing: 0.02em; color: var(--text-muted); }
.path-step-note { margin-top: 4px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; max-width: 62ch; }
.path-step-video { margin-top: 6px; font-size: 13px; color: var(--text-muted); line-height: 1.5; max-width: 62ch; }
.path-companion { margin-top: 18px; font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 768px) { .path-row { grid-template-columns: 1fr; padding: 24px 0; } }

/* ===== WEEKLY GAMES ===== */
.game-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; max-width: 760px; margin-bottom: 40px; }
.game-eyebrow { font: 600 11px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.game-title { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: 30px; line-height: 1.15; color: var(--text-primary); margin-bottom: 12px; }
.game-question { font-size: 21px; font-weight: 700; line-height: 1.35; color: var(--text-primary); }
.game-result-title { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--teal); margin-bottom: 12px; }
.game-intro { font-size: 15.5px; color: var(--text-secondary); line-height: 1.7; max-width: 62ch; margin-bottom: 18px; }
.game-title:focus, .game-question:focus, .game-result-title:focus { outline: none; }
.game-progress { height: 4px; background: var(--bg-elevated); border-radius: 2px; margin-bottom: 22px; }
.game-progress span { display: block; height: 100%; background: var(--teal); border-radius: 2px; }
.game-options { display: grid; gap: 10px; margin-top: 20px; }
.quiz-option { text-align: left; min-height: 48px; padding: 12px 18px; background: var(--bg-primary); border: 1px solid var(--border-control); border-radius: var(--radius); color: var(--text-primary); font-size: 15px; font-family: var(--font-sans); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.quiz-option:hover { border-color: var(--teal); background: var(--teal-subtle); }
.game-next { font-size: 14.5px; color: var(--text-secondary); margin: 18px 0; }
.game-next a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.game-btn { min-height: 44px; padding: 0 18px; background: transparent; border: 1px solid var(--border-control); border-radius: var(--radius); color: var(--text-primary); font-size: 14px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; transition: border-color var(--transition); }
.game-btn:hover { border-color: var(--teal); }
.game-copied { margin-top: 12px; font-size: 13px; color: var(--teal); }
.game-copied[hidden], #game-section[hidden], #games-archive[hidden], #fact-section[hidden], #facts-archive[hidden] { display: none; }
.games-list { margin-bottom: 40px; }
@media (max-width: 768px) { .game-card { padding: 20px; } .game-title { font-size: 26px; } }

/* ===== FUN DATA FACTS (reuses .game-card / .game-hero / .games-list / .demo-row) ===== */
.fact-eyebrow { display: flex; align-items: center; gap: 10px; font: 600 11px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.fact-icon {
  /* No glow, no continuous pulse (owner decision 2026-10, from a design critique: a named AI-slop tell,
     and one of two ambient animations running on Home at once) */
  width: 19px; height: 19px; flex-shrink: 0;
  fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.fact-text { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: 24px; line-height: 1.45; color: var(--text-primary); margin-bottom: 16px; }
.fact-text:focus { outline: none; }
.fact-source { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }
.fact-source a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.game-hero .fact-icon { width: 27px; height: 27px; }
.game-hero .fact-text { font-family: var(--font-sans); font-weight: 400; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }

/* ===== NAV: five primary tabs (owner decision 2026-12: Articles, Architecture, Learning, Resources, About;
   Live Feed and Play moved to the "Live" link, the footer and the phone menu). They fit on one line down to
   ~1000px, so laptops get real tabs; below that the hamburger takes over. ===== */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 16px; }
}

/* ===== NAV ICONS (rounded line style, same family as the logo) ===== */
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; }
.mobile-nav-link { display: flex; align-items: center; gap: 12px; }
.mobile-nav-link .nav-icon { width: 18px; height: 18px; }

/* ===== HOME: THIS WEEK'S GAME (below the hero) ===== */
/* No ambient drop shadow (owner decision 2026-10, from a design critique: a blurred colored glow on a
   dark background is a named AI-slop tell); the tint background and border already set it apart. */
/* margin-top (not just bottom) so spacing holds regardless of what precedes it -- #fact-section no
   longer always follows the intro directly (moved below "New on the site", owner decision 2026-10);
   standard margin collapsing means this never adds extra space on top of a larger existing gap */
.game-hero { background: var(--lavender-wash); border: 1px solid var(--lavender); border-radius: var(--radius-lg); padding: 24px 32px 32px; margin: 40px 0; }
.game-hero[hidden] { display: none; }
.game-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.game-hero-tag { font: 700 12px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bg-primary); background: var(--teal); border-radius: 999px; padding: 5px 14px; }
.game-hero .game-card { background: transparent; border: none; padding: 0; margin: 0; max-width: none; }
.game-hero .game-title { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; margin-bottom: 14px; }
.game-hero .game-intro { font-size: 17px; }
.game-hero .cta-btn { padding: 16px 32px; font-size: 16px; }
.game-hero .game-actions .cta-btn { padding: 12px 20px; font-size: 14px; } /* "Start" stays big; Share on LinkedIn (always inside .game-actions, alongside the smaller .game-btn buttons) reverts to normal size instead of inheriting the hero upsize meant for Start */
.game-hero .quiz-option { font-size: 16px; min-height: 52px; }
@media (max-width: 768px) { .game-hero { padding: 20px 18px 24px; } }

/* ===== PLAY PAGE: archives in a right sidebar, so today's game and fact get the focus ===== */
.play-sidebar { width: 300px; flex-shrink: 0; padding: 40px 32px 60px 0; }
.play-sidebar-section + .play-sidebar-section { margin-top: 40px; }
.play-sidebar-section[hidden] { display: none; }
.play-sidebar-title {
  font: 700 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2px;
}
.play-sidebar .demo-row { padding: 14px 0; gap: 10px; }
.play-sidebar .demo-row-title { font-size: 14px; line-height: 1.4; }
.play-sidebar .demo-row-status { font-size: 10px; padding: 3px 9px; }
.play-main { flex: 0 1 820px; }
@media (max-width: 1100px) {
  .play-layout { flex-direction: column; }
  .play-sidebar { width: auto; padding: 0 24px 60px; }
}
@media (max-width: 768px) {
  .play-sidebar { padding: 0 0 40px; }
}

/* ===== REACH OUT ===== */
.reach-list { list-style: none; display: grid; gap: 14px; margin-bottom: 40px; }
.reach-list li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.65; color: var(--text-secondary); max-width: 62ch; }
.reach-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: var(--bullet-size); height: var(--bullet-size); border-radius: 50%; background: var(--teal); }
.reach-list strong { color: var(--text-primary); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 480px; margin-bottom: 16px; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-field { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border-control);
  border-radius: var(--radius-lg); color: var(--text-primary);
  font-size: 15px; font-family: var(--font-sans); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--teal-dim); box-shadow: 0 0 0 3px var(--teal-glow); }
.form-textarea { resize: vertical; min-height: 120px; font-family: var(--font-sans); }
#contact-submit:disabled { opacity: 0.6; cursor: default; }
.form-status { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 56ch; }
.form-status.is-success { color: var(--teal); }
.form-status.is-error { color: var(--amber); }
.contact-alt { font-size: 14px; color: var(--text-secondary); margin-bottom: 40px; }
.contact-alt a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

.resource-card[hidden], .resources-section[hidden] { display: none; }

/* ===== FOOTER LINK ===== */
.footer-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-secondary); transition: color var(--transition); }
.footer-link:hover, .footer-link[aria-current="page"] { color: var(--teal); }

/* BEGIN GENERATED: categories */
/* Generated from scripts/categories.json by scripts/build_categories.py. Do not edit here. */
:root {
  --cat-ai: #0E7490;
  --cat-ai-bg: rgba(14, 116, 144, 0.12);
  --cat-architecture: #B03A0A;
  --cat-architecture-bg: rgba(176, 58, 10, 0.12);
  --cat-engineering: #1D4ED8;
  --cat-engineering-bg: rgba(29, 78, 216, 0.12);
  --cat-modeling: #BE185D;
  --cat-modeling-bg: rgba(190, 24, 93, 0.12);
  --cat-quality: #126B35;
  --cat-quality-bg: rgba(18, 107, 53, 0.12);
  --cat-strategy: #854D0E;
  --cat-strategy-bg: rgba(133, 77, 14, 0.12);
}
.badge-ai { color: var(--cat-ai); background: var(--cat-ai-bg); }
.hero-cat-link[data-cat="ai"]:hover, .hero-cat-link[data-cat="ai"]:focus-visible { border-color: var(--cat-ai); }
.expertise-card[data-cat="ai"] .cat-icon { color: var(--cat-ai); }
.filter-btn[data-cat="ai"]:hover { border-color: rgba(14,116,144,0.55); color: var(--cat-ai); }
.filter-btn[data-cat="ai"].active { color: var(--cat-ai); background: var(--cat-ai-bg); border-color: rgba(14,116,144,0.55); }
.badge-architecture { color: var(--cat-architecture); background: var(--cat-architecture-bg); }
.hero-cat-link[data-cat="architecture"]:hover, .hero-cat-link[data-cat="architecture"]:focus-visible { border-color: var(--cat-architecture); }
.expertise-card[data-cat="architecture"] .cat-icon { color: var(--cat-architecture); }
.filter-btn[data-cat="architecture"]:hover { border-color: rgba(176,58,10,0.55); color: var(--cat-architecture); }
.filter-btn[data-cat="architecture"].active { color: var(--cat-architecture); background: var(--cat-architecture-bg); border-color: rgba(176,58,10,0.55); }
.badge-engineering { color: var(--cat-engineering); background: var(--cat-engineering-bg); }
.hero-cat-link[data-cat="engineering"]:hover, .hero-cat-link[data-cat="engineering"]:focus-visible { border-color: var(--cat-engineering); }
.expertise-card[data-cat="engineering"] .cat-icon { color: var(--cat-engineering); }
.filter-btn[data-cat="engineering"]:hover { border-color: rgba(29,78,216,0.55); color: var(--cat-engineering); }
.filter-btn[data-cat="engineering"].active { color: var(--cat-engineering); background: var(--cat-engineering-bg); border-color: rgba(29,78,216,0.55); }
.badge-modeling { color: var(--cat-modeling); background: var(--cat-modeling-bg); }
.hero-cat-link[data-cat="modeling"]:hover, .hero-cat-link[data-cat="modeling"]:focus-visible { border-color: var(--cat-modeling); }
.expertise-card[data-cat="modeling"] .cat-icon { color: var(--cat-modeling); }
.filter-btn[data-cat="modeling"]:hover { border-color: rgba(190,24,93,0.55); color: var(--cat-modeling); }
.filter-btn[data-cat="modeling"].active { color: var(--cat-modeling); background: var(--cat-modeling-bg); border-color: rgba(190,24,93,0.55); }
.badge-quality { color: var(--cat-quality); background: var(--cat-quality-bg); }
.hero-cat-link[data-cat="quality"]:hover, .hero-cat-link[data-cat="quality"]:focus-visible { border-color: var(--cat-quality); }
.expertise-card[data-cat="quality"] .cat-icon { color: var(--cat-quality); }
.filter-btn[data-cat="quality"]:hover { border-color: rgba(18,107,53,0.55); color: var(--cat-quality); }
.filter-btn[data-cat="quality"].active { color: var(--cat-quality); background: var(--cat-quality-bg); border-color: rgba(18,107,53,0.55); }
.badge-strategy { color: var(--cat-strategy); background: var(--cat-strategy-bg); }
.hero-cat-link[data-cat="strategy"]:hover, .hero-cat-link[data-cat="strategy"]:focus-visible { border-color: var(--cat-strategy); }
.expertise-card[data-cat="strategy"] .cat-icon { color: var(--cat-strategy); }
.filter-btn[data-cat="strategy"]:hover { border-color: rgba(133,77,14,0.55); color: var(--cat-strategy); }
.filter-btn[data-cat="strategy"].active { color: var(--cat-strategy); background: var(--cat-strategy-bg); border-color: rgba(133,77,14,0.55); }
/* END GENERATED: categories */

/* ===== ARTICLE TYPE (demo) ===== */
.badge-demo { color: var(--teal); background: var(--teal-subtle); border: 1px solid var(--teal-dim); }
.filters-label { align-self: center; margin-right: 4px; font: 600 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); min-width: 64px; }
.article-demo { margin: 4px 0 24px; }

/* ===== COLLEAGUES' ARTICLES ===== */
.resource-pick { font: 600 10.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.resource-card-why { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.resource-card-why strong { color: var(--text-secondary); font-weight: 600; }
.resource-card-author { font-size: 12.5px; color: var(--text-muted); margin: -2px 0 8px; }
.resources-soon { font-size: 14px; color: var(--text-muted); padding: 4px 0 8px; }

/* ===== WHAT'S NEW (Home) ===== */
.whats-new { margin-bottom: 0; }
.whats-new[hidden] { display: none; }
.whats-new-list { list-style: none; border-top: 1px solid var(--border-subtle); }
.whats-new-item { display: grid; grid-template-columns: 112px 128px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); color: inherit; }
.whats-new-item:hover .whats-new-text { color: var(--teal); }
.whats-new-date { font: 500 12px var(--font-mono); color: var(--text-muted); }
.whats-new-page { font: 600 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.whats-new-text { font-size: 14.5px; color: var(--text-secondary); line-height: 1.5; transition: color var(--transition); }
@media (max-width: 640px) { .whats-new-item { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; } .whats-new-text { grid-column: 1 / -1; } }

/* ===== THIS WEEK IN TOOLS (Home) ===== */
.tools-digest { margin-bottom: 0; }
.tools-digest[hidden] { display: none; }
.tools-digest-list { border-top: 1px solid var(--border-subtle); }
.tools-digest-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--border-subtle); }
/* Group heading (2026-12): a node, the name, the count and a rule across the list. */
.tools-digest-group { display: flex; align-items: center; gap: 12px; margin: 28px 0 4px; font: 600 12.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.tools-digest-group:first-child { margin-top: 0; }
.tools-digest-group::before { content: ""; width: 11px; height: 11px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--violet); background: var(--violet); box-sizing: border-box; }
.tools-digest-group::after { content: ""; order: 3; flex: 1; height: 1.5px; background: var(--lavender); }
.tools-digest-group-count { order: 2; font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--text-muted); }
.tools-digest-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.tool-icon { width: 20px; height: 20px; flex-shrink: 0; fill: var(--text-secondary); }
.tools-digest-date { margin-top: 3px; font-size: 12.5px; color: var(--text-muted); }
.tools-digest-meta { margin-top: 4px; font: 500 12px var(--font-mono); color: var(--text-muted); }
.tools-digest-meta:empty { margin-top: 0; }
.tools-digest-items { list-style: none; display: grid; gap: 10px; }
.tools-digest-items li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.tools-digest-items li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: var(--bullet-size); height: 1px; background: var(--teal-dim); }
.tools-digest-items a { color: inherit; transition: color var(--transition); }
.tools-digest-items a:hover { color: var(--teal); }
.tools-digest-quiet { font-size: 14.5px; color: var(--text-muted); }
.tools-digest-row.is-quiet .tools-digest-name { color: var(--text-secondary); }
.tools-digest-more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--teal); }
@media (max-width: 640px) { .tools-digest-row { grid-template-columns: 1fr; } }

/* tag on a highlight in "This week in tools": the main idea of the news (ai or data) */
.digest-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 999px; font: 600 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 1px; }
.digest-tag.ai { color: var(--cat-ai); background: var(--cat-ai-bg); }
.digest-tag.data { color: var(--cat-data); background: var(--cat-data-bg); }

/* ===== STARTUP NEWS (Home) ===== */
.startup-news { margin-bottom: 0; }
.startup-news[hidden] { display: none; }
.startup-news-list { list-style: none; border-top: 1px solid var(--border-subtle); }
.startup-news-item { display: grid; grid-template-columns: 96px 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); color: inherit; }
.startup-news-item:hover .startup-news-title { color: var(--teal); }
.startup-news-date { font: 500 12px var(--font-mono); color: var(--text-muted); }
.startup-news-source { font: 600 11px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cat-startups); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.startup-news-title { font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); transition: color var(--transition); }
@media (max-width: 640px) { .startup-news-item { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; } .startup-news-title { grid-column: 1 / -1; } }

/* ===== LIVE FEED PAGE ===== */
.feed-page-search { position: relative; margin-bottom: 20px; }
.feed-page-search .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.filter-btn .legend-dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.feed-page-note { margin: 4px 0 12px; padding: 10px 14px; font-size: 13.5px; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border-control); border-radius: var(--radius); }
.feed-page-note[hidden] { display: none; }
.feed-page-count { margin: 16px 0 8px; font: 500 12px var(--font-mono); color: var(--text-muted); min-height: 16px; }
.feed-list { list-style: none; border-top: 1px solid var(--border-subtle); }
.feed-item { display: grid; grid-template-columns: 64px 84px minmax(0, 1fr) 36px; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.feed-item-date { font: 500 12px var(--font-mono); color: var(--text-muted); }
.feed-item-type { font: 600 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.feed-item-type.ai { color: var(--cat-ai); }
.feed-item-type.data { color: var(--cat-data); }
.feed-item-type.trends { color: var(--cat-trends); }
.feed-item-type.tools { color: var(--cat-tools); }
.feed-item-type.startups { color: var(--cat-startups); }
.feed-item-body { display: grid; gap: 4px; min-width: 0; }
.feed-item-body a { font-size: 15px; line-height: 1.5; color: var(--text-primary); transition: color var(--transition); }
.feed-item-body a:hover { color: var(--teal); }
.feed-item-meta { font: 500 12px var(--font-mono); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-empty { padding: 32px 0; font-size: 14.5px; color: var(--text-muted); }
.feed-page-more { margin: 24px 0 8px; }
.feed-item .feed-panel-fav-btn { justify-self: end; align-self: start; }
@media (max-width: 640px) {
  .feed-item { grid-template-columns: auto auto minmax(0, 1fr) 36px; gap: 4px 12px; }
  .feed-item-body { grid-column: 1 / -1; grid-row: 2; }
  .feed-item .feed-panel-fav-btn { grid-column: 4; grid-row: 1; }
}

/* country tag on startup news (Home and the Live Feed page); Israel is highlighted */
.country-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border: 1px solid var(--border-control); border-radius: 999px; font: 600 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); vertical-align: 1px; }
.industry-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border: 1px solid var(--border-control); border-radius: 4px; font: 600 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); background: var(--bg-elevated); vertical-align: 1px; }
.country-tag.is-focus { color: var(--teal); border-color: var(--teal-dim); background: var(--teal-subtle); }
.filters[hidden] { display: none; }

/* ===== DATA ARCHITECTURE PAGE (an editorial map: a rail with the stages, type names under each, the detail below) ===== */
.resource-card.is-linked { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-subtle); }
.main-content.page-wide { flex-basis: 1560px; }
.arch-map { margin: 8px 0 0; padding: 30px 32px 28px; overflow-x: auto; background-color: var(--bg-card); background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 14px 14px; border: 1px solid var(--border); border-radius: 16px; }
.arch-rail { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(460px, 3fr); gap: 0 28px; margin: 0; padding: 0; }
.arch-stage { position: relative; min-width: 0; padding-top: 46px; }
/* the rail: a line through every stage, a node above each name */
/* the fork: after the last stage the rail splits into parallel branches; none of them feeds the next */
.arch-fork { position: relative; display: grid; gap: 30px; padding-left: 44px; align-content: start; min-width: 0; }
.arch-stage::before { content: ''; position: absolute; top: 14px; left: 0; right: -28px; height: 2px; background: var(--teal-dim); opacity: 0.5; }
.arch-stage:last-child::before { right: 0; }
.arch-branch { position: relative; padding-top: 46px; min-width: 0; }
.arch-branch::before { content: ''; position: absolute; top: 14px; left: -44px; width: 44px; height: calc(100% + 30px); border-top: 2px solid var(--teal-dim); border-left: 2px solid var(--teal-dim); opacity: 0.5; box-sizing: border-box; }
.arch-branch:last-child::before { height: 0; }
.arch-branch .arch-stage-btn { min-height: 0; margin-bottom: 8px; }
.arch-branch-list { display: flex; flex-wrap: wrap; gap: 0 26px; }
.arch-type-list.arch-branch-list li { border-top: 0; }
.arch-branch-list .arch-type-btn { width: auto; }
.arch-stage-btn { display: flex; align-items: baseline; gap: 10px; min-height: 58px; padding: 0; margin: 0 0 8px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text-primary); font-family: inherit; }
.arch-stage-name { font: 600 22px/1.15 var(--font-serif); font-optical-sizing: auto; transition: color var(--transition); }
.arch-stage-btn:hover .arch-stage-name, .is-open > .arch-stage-btn .arch-stage-name { color: var(--teal); }
.arch-type-list { list-style: none; margin: 0; padding: 0; }
.arch-type-list li { border-top: 1px solid var(--border-subtle); }
.arch-type-btn { display: block; width: 100%; min-height: 34px; padding: 7px 0; margin: 0; background: none; border: 0; cursor: pointer; text-align: left; font: 500 14px/1.35 var(--font-sans); color: var(--text-secondary); transition: color var(--transition); }
.arch-type-btn:hover, .arch-type-btn.is-current { color: var(--teal); }
.arch-type-btn.is-current { font-weight: 600; }
.arch-stage-btn:focus-visible, .arch-type-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
/* the second rail: what runs across every stage */
/* the stage page: a second view that replaces the map. A lighter panel than the map's frame, brighter text, a clear back button */
.arch-map[hidden], .arch-detail[hidden], #arch-intro[hidden] { display: none; }
.arch-detail { margin: 8px 0 60px; padding: 28px 32px 40px; min-height: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; }
.arch-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px 0 16px; margin: 0 0 26px; background: var(--teal-glow); border: 1px solid var(--teal); border-radius: 999px; cursor: pointer; font: 600 15px var(--font-sans); color: var(--teal-hover); transition: background var(--transition), color var(--transition); }
.arch-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arch-back:hover { background: var(--teal); color: var(--bg-primary); }
.arch-back:focus-visible { outline: 2px solid var(--teal-hover); outline-offset: 3px; }
.arch-detail-head h2 { font: 700 36px/1.15 var(--font-serif); font-optical-sizing: auto; color: var(--text-primary); margin: 0 0 8px; }
.arch-detail-head h2:focus { outline: none; }
.arch-detail-head p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; max-width: 62ch; margin: 0 0 20px; }
.arch-type-row { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; grid-template-areas: 'name tools' 'name meta' 'more more'; gap: 12px 40px; padding: 18px 0; border-top: 1px solid var(--border); }
.arch-type-row.is-target { background: var(--teal-glow); margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: var(--radius); }
.arch-type-name { grid-area: name; }
.arch-type-tools { grid-area: tools; }
.arch-type-meta { grid-area: meta; margin-top: 4px; }
.arch-basis { margin: 0 0 6px; font-size: 12.5px; color: var(--text-muted); }
.arch-basis a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.arch-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.arch-facts li { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); max-width: 78ch; }
.arch-facts a { color: var(--teal); white-space: nowrap; }
.arch-details { grid-area: more; align-self: start; padding: 18px 22px; background: var(--bg-elevated); border: 1px solid var(--border);  border-radius: 12px; }
/* a type with text: the title on top, the tools underneath on the left, the text on the right */
.arch-type-row.has-details { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: 'name name' 'tools more' 'meta more'; grid-template-rows: auto auto 1fr; gap: 6px 48px; }
.arch-type-row.has-details .arch-type-name p { max-width: 70ch; }
.arch-type-row.has-details .arch-type-meta { margin-top: 10px; align-self: start; }
.arch-type-row.has-details .arch-type-tools { align-self: start; }
@media (max-width: 1050px) { .arch-type-row.has-details { grid-template-columns: 1fr; grid-template-areas: 'name' 'tools' 'meta' 'more'; grid-template-rows: auto; } }
.arch-details p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }
.arch-details { padding: 6px 22px; }
.arch-acc + .arch-acc { border-top: 1px solid var(--border); }
.arch-acc summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.arch-acc summary::-webkit-details-marker { display: none; }
.arch-acc summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.arch-acc-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); flex-shrink: 0; }
.arch-acc-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arch-acc-title { flex: 1; font: 700 17px/1.25 var(--font-sans); color: var(--text-primary); }
.arch-acc-chev { width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); }
.arch-acc[open] .arch-acc-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.arch-acc summary:hover .arch-acc-title { color: var(--teal); }
.arch-acc-body { padding: 0 0 16px 44px; }
.arch-acc-body p:last-child { margin-bottom: 0; }
.arch-details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.arch-details li { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.arch-details a { color: var(--text-primary); text-underline-offset: 3px; }
.arch-goto { background: none; border: 0; padding: 0; cursor: pointer; font: 500 14px var(--font-sans); color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.arch-goto:hover { color: var(--teal); }
.arch-lm-kind { display: inline-block; min-width: 96px; margin-right: 8px; font-size: 12px; color: var(--text-muted); }
.arch-stage-learn { margin: 6px 0 22px; padding: 14px 20px; max-width: 78ch; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; }
.arch-stage-learn h4 { margin: 0 0 4px; font: 600 12.5px var(--font-sans); letter-spacing: 0.04em; color: var(--teal); }
.arch-stage-learn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.arch-stage-learn li { font-size: 14px; color: var(--text-secondary); }
.arch-stage-learn a { color: var(--text-primary); text-underline-offset: 3px; }
.arch-type-name h3 { font: 600 16px/1.3 var(--font-sans); color: var(--text-primary); margin: 0 0 4px; }
.arch-type-name p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 0; max-width: 34ch; }
/* every tool is a frame of the same size, in a grid; More Info, News and Reddit sit inside it */
.arch-type-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 300px)); gap: 12px; align-content: start; justify-content: start; }
.arch-why { font: 600 12px var(--font-sans); color: var(--teal); text-decoration: none; padding: 1px 0; border-bottom: 1px dotted var(--teal-dim); }
.arch-why:hover { color: var(--teal-hover); border-bottom-style: solid; }
.arch-why:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.arch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--teal)); flex-shrink: 0; }
.arch-out { font-size: 11px; color: var(--teal); }
.arch-tag { font: 500 11.5px var(--font-sans); font-style: normal; color: var(--text-muted); padding: 0 7px; border: 1px solid var(--border-control); border-radius: 999px; line-height: 1.6; white-space: nowrap; }
.arch-group { font: 600 13px var(--font-sans); letter-spacing: 0.04em; color: var(--teal); margin: 30px 0 0; padding-top: 4px; }
.arch-group:first-of-type { margin-top: 6px; }
.arch-group-label { border-top: 0 !important; padding: 14px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--teal); }
.arch-type-list .arch-group-label:first-child { padding-top: 0; }
.arch-examples { margin-top: 8px !important; font-size: 12.5px !important; font-style: italic; color: var(--text-muted) !important; }
@media (prefers-reduced-motion: no-preference) { .arch-detail-head, .arch-type-row { animation: arch-in 0.28s cubic-bezier(0.25, 1, 0.5, 1) both; } }
@keyframes arch-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .arch-map { overflow-x: visible; padding: 22px 16px 18px; }
  .arch-detail { padding: 20px 18px 28px; }
  .arch-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 0; }
  .arch-stage { padding: 0 0 24px 46px; min-height: 30px; }
  .arch-stage-btn { min-height: 30px; align-items: center; }
  .arch-stage::before { top: 32px; bottom: -8px; left: 14px; right: auto; width: 2px; height: auto; }
  .arch-stage:last-child::before { bottom: 12px; }
  .arch-fork { padding-left: 58px; }
  .arch-branch { padding: 0 0 0 46px; min-height: 30px; }
  .arch-branch::before { top: 14px; }
  .arch-lane { padding: 16px 14px; }
  .arch-type-row { grid-template-columns: 1fr; grid-template-areas: 'name' 'tools' 'meta' 'more'; gap: 10px; }
  .arch-type-name p { max-width: none; }
}

/* icons: the rail nodes, the across band and the stage page title */
.arch-node { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-secondary); border: 2px solid var(--teal); color: var(--teal); transition: background var(--transition), color var(--transition); }
.arch-node .arch-icon { width: 16px; height: 16px; }
.arch-icon, .arch-title-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.arch-stage-btn:hover .arch-node { background: var(--teal); color: var(--bg-primary); }
.arch-title-icon { width: 30px; height: 30px; margin-right: 14px; color: var(--teal); vertical-align: -4px; }
/* what runs across every stage: a band above the flow, with an icon per kind of thing */
.arch-lane { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 14px 36px; align-items: center; margin: 0 0 38px; padding: 20px 24px; background: var(--teal-subtle); border: 1px dashed var(--teal-dim); border-radius: var(--radius); }
.arch-lane .arch-lane-head { position: relative; display: flex; align-items: center; gap: 14px; min-height: 30px; margin: 0; padding-left: 44px; text-align: left; }
.arch-lane .arch-node { top: 50%; transform: translateY(-50%); }
.arch-lane-title { display: flex; flex-direction: column; gap: 3px; }
.arch-lane-title .arch-stage-name { font-size: 20px; }
.arch-lane-blurb { font: 400 13px/1.45 var(--font-sans); color: var(--text-secondary); }
.arch-lane-list { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.arch-lane-list li { border-top: 0; }
.arch-lane-list .arch-type-btn { display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 38px; padding: 6px 12px; border-radius: 999px; }
.arch-lane-list .arch-type-btn .arch-icon { width: 18px; height: 18px; color: var(--teal); }
.arch-lane-list .arch-type-btn:hover { background: var(--teal-glow); }
@media (max-width: 1100px) { .arch-lane { grid-template-columns: 1fr; } }

/* Design: a band above "Across every stage", solid border (it is design-time, not a run-time layer) */
.arch-lane.arch-design { margin-bottom: 16px; border-style: solid; border-color: var(--teal-dim); background: transparent; }

/* a tool is a frame: logo (or initials), name, its line and small labels, and at the bottom More Info / News / Reddit */
.arch-tool-group { display: flex; flex-direction: column; min-height: 136px; border: 1px solid var(--border-control); border-radius: 12px; background: var(--bg-card); transition: border-color var(--transition), background var(--transition); }
.arch-tool-group:hover { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 6%, transparent); }
.arch-tool-group.is-primary { border-color: var(--teal-dim); background: color-mix(in srgb, var(--teal) 7%, transparent); }
.arch-tool { display: flex; align-items: flex-start; gap: 12px; flex: 1; padding: 12px 14px 10px 12px; color: var(--text-secondary); text-decoration: none; border-radius: 12px 12px 0 0; }
.arch-tool:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.arch-logo { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: var(--bg-elevated); color: var(--text-primary); flex-shrink: 0; }
.arch-logo svg { width: 20px; height: 20px; fill: currentColor; }
.arch-logo.is-mono { font: 700 12.5px var(--font-sans); letter-spacing: 0.02em; color: var(--teal); background: color-mix(in srgb, var(--teal) 9%, transparent); }
.arch-tool-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.arch-tool-name { font: 500 14.5px/1.25 var(--font-sans); color: var(--text-primary); }
.arch-tool-group.is-primary .arch-tool-name { font-weight: 600; color: var(--text-primary); }
.arch-tool-name .arch-out { margin-left: 6px; }
.arch-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.arch-credit { margin: 4px 0 40px; font-size: 12.5px; color: var(--text-muted); }
.arch-credit a { color: inherit; text-underline-offset: 3px; }
/* related types on one line */
.arch-details ul.arch-related { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* under a tile: More Info, and News when the Live Feed has something about the tool */
.arch-extras { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 14px 10px 60px; }
.arch-news { font: 600 11.5px var(--font-sans); color: var(--bg-primary); background: var(--teal); border-radius: 999px; padding: 2px 10px; text-decoration: none; }
.arch-news:hover { background: var(--teal-hover); }
.arch-news:focus-visible { outline: 2px solid var(--teal-hover); outline-offset: 2px; }
.arch-reddit { font: 600 11.5px var(--font-sans); color: var(--text-primary); background: transparent; border: 1px solid var(--border-control); border-radius: 999px; padding: 1px 10px; text-decoration: none; }
.arch-reddit:hover { border-color: var(--teal); color: var(--teal); }
.arch-reddit:focus-visible { outline: 2px solid var(--teal-hover); outline-offset: 2px; }

/* find a tool: a search box above the map, results with the places a tool is listed */
.arch-search { margin: 0 0 22px; max-width: 640px; }
.arch-search-label { display: block; margin: 0 0 6px; font: 600 13px var(--font-sans); color: var(--text-secondary); }
.arch-search-input { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--border-control); border-radius: 12px; background: var(--bg-secondary); color: var(--text-primary); font: 400 15.5px var(--font-sans); }
.arch-search-input::placeholder { color: var(--text-muted); }
.arch-search-input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-color: var(--teal); }
.arch-search-results:empty { display: none; }
.arch-search-results { margin-top: 10px; }
.arch-results { list-style: none; margin: 0; padding: 6px 4px; border: 1px solid var(--border-control); border-radius: 12px; background: var(--bg-secondary); }
.arch-result-head { padding: 8px 14px 4px; font: 600 12px var(--font-sans); letter-spacing: 0.04em; color: var(--teal); }
.arch-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 14px; }
.arch-result + .arch-result { border-top: 1px solid var(--border-subtle); }
.arch-result-name { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--font-sans); color: var(--text-primary); }
.arch-result-name .arch-logo { width: 30px; height: 30px; }
.arch-result-name .arch-logo svg { width: 17px; height: 17px; }
.arch-result-places { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.arch-place { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--teal-dim); border-radius: 999px; background: var(--teal-subtle); cursor: pointer; font: 500 13px var(--font-sans); color: var(--text-primary); transition: background var(--transition), border-color var(--transition); }
.arch-place:hover, .arch-place:focus-visible { background: color-mix(in srgb, var(--teal) 16%, transparent); border-color: var(--teal); outline: none; }
.arch-noresult { padding: 14px 16px; border: 1px solid var(--border-control); border-radius: 12px; background: var(--bg-secondary); font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.arch-noresult strong { color: var(--text-primary); }
.arch-noresult a { color: var(--teal); text-underline-offset: 3px; }
/* the tool a search led to */
.arch-tool-group.is-found { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
@media (prefers-reduced-motion: no-preference) { .arch-tool-group.is-found { animation: arch-found 1.4s ease-out 2; } }
@keyframes arch-found { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--teal) 5%, transparent); } }

/* logos sit in a light rounded square, like an app icon, so glyphs and coloured icons look alike */
.arch-logo { background: #eef2f7; color: #0b1220; }
.arch-logo svg { fill: #0b1220; }
.arch-logo.is-mono { background: var(--bg-secondary); color: var(--teal); }
.arch-tool-info { font: 400 12.5px/1.4 var(--font-sans); color: var(--text-muted); }
.arch-result-info { flex-basis: 100%; font: 400 13px/1.4 var(--font-sans); color: var(--text-secondary); }
.paths-planned { margin: 24px 0 8px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); max-width: 78ch; }
.paths-planned strong { color: var(--text-primary); }
button.arch-why { background: none; border-width: 0 0 1px; border-style: dotted; border-color: var(--teal-dim); cursor: pointer; }
button.arch-why[aria-expanded="true"] { border-bottom-style: solid; }
.arch-why-text { margin: 0; padding: 0 14px 12px 60px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.arch-why-text:not([hidden]) { display: grid; gap: 8px; }
.arch-why-text p { margin: 0; }
.arch-why-text .arch-more-why { color: var(--text-primary); }
.arch-why-text a { color: var(--teal); text-underline-offset: 3px; }
.arch-why-text .arch-goto { font-size: 13px; color: var(--teal); }


/* ===== HOME, THE SCHEMATIC (part 2, owner brief 2026-12) ===== */
/* Hero: oversized headline left, fig. 1 right (the real stages, tangled then settled). */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 0 56px; }
.hero-text { min-width: 0; }
.hero-title { font-size: clamp(44px, 6.2vw, 84px); line-height: 0.98; letter-spacing: -0.025em; margin-bottom: 22px; }
.hero-em { color: var(--teal); text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 3px; text-underline-offset: 0.14em; }
.hero-subtitle { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .cta-btn { padding: 14px 24px; font-size: 15px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 1.5px solid var(--text-primary); border-radius: var(--radius); font-size: 15px; font-weight: 600; color: var(--text-primary); transition: background var(--transition), color var(--transition); }
.ghost-btn:hover { background: var(--text-primary); color: var(--bg-primary); }
.ghost-btn:focus-visible, .cta-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font: 500 12.5px var(--font-mono); color: var(--text-muted); }
.hero-proof b { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }

.hero-map { margin: 0; min-width: 0; padding: 18px 18px 10px; border: 1px solid var(--border); border-radius: 16px;
  background-color: var(--bg-card); background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 14px 14px; }
.hero-map-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.hero-map-hint { font: 500 11.5px var(--font-mono); color: var(--text-muted); }
.hero-map-cap .annot b { white-space: nowrap; }
@media (max-width: 600px) { .hero-map { padding: 14px 10px 6px; } .hero-map-hint { display: none; } .hero-map-cap .annot { letter-spacing: 0.06em; } }
.hero-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-map-svg text { font-family: var(--font-sans); }
.hm-tangle { fill: none; stroke: var(--violet); stroke-width: 1.4; opacity: 0; }
.hm-flow circle { fill: var(--violet); }  /* no CSS opacity: it would beat opacity="0" and show each packet at the corner before its animation starts */
@media (prefers-reduced-motion: reduce) { .hm-flow { display: none; } }
.hm-draw { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; }
.hm-band rect { fill: var(--bg-secondary); stroke: var(--lavender); }
.hm-band-dash rect { fill: transparent; stroke: var(--violet); stroke-dasharray: 4 4; }
.hm-band-name { font-size: 13px; font-weight: 600; fill: var(--text-primary); }
.hm-node circle { fill: var(--bg-card); stroke: var(--violet); stroke-width: 2.2; transition: fill var(--transition), r var(--transition); }
.hm-num { font: 600 10.5px var(--font-mono); fill: var(--teal); }
.hm-name { font-size: 13px; font-weight: 600; fill: var(--text-primary); }
.hm-count { font: 500 10.5px var(--font-mono); fill: var(--text-muted); }
.hm-node:hover circle, .hm-node:focus-visible circle { fill: var(--violet); }
.hm-node:hover .hm-name, .hm-node:focus-visible .hm-name, .hm-band:hover .hm-band-name { fill: var(--teal); }
.hm-node:focus-visible, .hm-band:focus-visible { outline: none; }
.hm-node:focus-visible circle { stroke: var(--teal); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .hm-tangle { animation: hm-untangle 1.6s ease-out 0.2s both; }
  .hm-draw { stroke-dasharray: 900; animation: hm-draw 1.3s ease-out 0.9s both; }
  .hm-node, .hm-band { animation: hm-pop 0.45s ease-out both; animation-delay: calc(1.1s + var(--i, 0) * 0.07s); }
}
@keyframes hm-untangle { 0% { opacity: 0.55; } 60% { opacity: 0.35; } 100% { opacity: 0; } }
@keyframes hm-draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes hm-pop { from { opacity: 0; } to { opacity: 1; } }

/* Section numbers: the reading order of Home, set inline with the title (not a floating kicker). */
.sec-num { font: 600 0.62em var(--font-mono); color: var(--teal); margin-right: 14px; letter-spacing: 0.04em; vertical-align: 0.12em; }

/* Areas of expertise: a stack of layers joined by one rail, like a platform's layers. */
.layers { position: relative; display: grid; border-top: 1px solid var(--border); }
.layers::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 1.5px; background: var(--lavender); }
.layer { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr) 250px; gap: 6px 22px; align-items: baseline;
  padding: 18px 12px 18px 40px; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.layer::before { content: ""; position: absolute; left: 8px; top: 24px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--violet); background: var(--bg-primary); transition: background var(--transition); }
.layer:hover { background: var(--bg-elevated); }
.layer:hover::before, .layer:focus-visible::before { background: var(--violet); }
.layer:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.layer-name { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1.3 var(--font-serif); font-optical-sizing: auto; color: var(--text-primary); }
.layer-name .cat-icon { width: 18px; height: 18px; flex-shrink: 0; }
.layer-desc { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.layer-count { font: 500 12px var(--font-mono); color: var(--text-muted); text-align: right; }
@media (max-width: 860px) {
  .layer { grid-template-columns: minmax(0, 1fr); }
  .layer-count { text-align: left; }
}

/* Featured writing: editorial and asymmetric. The lead carries the article's own diagram. */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: stretch; }
.feature-side { display: grid; gap: 20px; align-content: start; }
.feature-item { display: flex; flex-direction: column; min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); }
.feature-item:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-item:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.feature-fig { display: block; padding: 18px; background: var(--plum); background-image: radial-gradient(rgba(179, 166, 240, 0.16) 1px, transparent 1.2px); background-size: 14px 14px; }
.feature-fig img { display: block; width: 100%; height: 220px; object-fit: contain; border-radius: 8px; }
.feature-side .feature-fig { padding: 12px; }
.feature-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 18px; flex: 1; }
.feature-meta { display: flex; align-items: center; gap: 10px; }
.feature-read { font: 500 12px var(--font-mono); color: var(--text-muted); }
.feature-title { font: 700 clamp(22px, 2.2vw, 27px)/1.2 var(--font-serif); font-optical-sizing: auto; letter-spacing: -0.01em; color: var(--text-primary); text-wrap: balance; }
.feature-lead .feature-title { font-size: clamp(24px, 2.6vw, 32px); }
.feature-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.feature-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font: 500 12px var(--font-mono); color: var(--text-muted); }
.feature-item:hover .feature-foot span:last-child { color: var(--teal); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0 36px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
}

/* ===== HOME, PART 3 (the schematic, owner brief 2026-12) ===== */
/* 03: the one plum band on Home, full width (the page has no sidebar, so 50vw is the viewport's middle). */
.home-arch { margin: 64px calc(50% - 50vw) 0; padding: 56px 32px 60px;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 18px 18px; }
.home-arch-inner { max-width: 1096px; margin: 0 auto; }
.ha-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.ha-label { font: 500 11.5px var(--font-mono); color: var(--text-muted); letter-spacing: 0.04em; margin: 0 0 8px; }
.ha-label + .ha-list { margin-bottom: 22px; }
.ha-list { position: relative; display: grid; }
.ha-list::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 1.5px; background: var(--border); }
.ha-pick { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 9px 10px 9px 28px; border-radius: 8px; color: var(--text-secondary); transition: background var(--transition), color var(--transition); }
.ha-pick::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--teal); background: var(--bg-primary); box-sizing: border-box; }
.ha-pick:hover { background: var(--bg-elevated); color: var(--text-primary); }
.ha-pick.is-on { background: var(--bg-card); color: var(--text-primary); }
.ha-pick.is-on::before { background: var(--teal); }
.ha-pick:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ha-num { font: 500 11.5px var(--font-mono); color: var(--text-muted); min-width: 16px; }
.ha-name { font-weight: 600; font-size: 15px; }
.ha-panels { min-width: 0; }
.ha-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 26px 28px 22px; }
.ha-panel[hidden] { display: none; }
.ha-panel-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; margin-bottom: 18px; }
.ha-icon { width: 34px; height: 34px; padding: 6px; border: 1.5px solid var(--teal); border-radius: 50%; color: var(--teal); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ha-title { font: 700 22px/1.2 var(--font-serif); font-optical-sizing: auto; }
.ha-blurb { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); max-width: 60ch; }
.ha-count { font: 500 12px/1.7 var(--font-mono); color: var(--text-muted); text-align: right; }
.ha-count b { color: var(--text-primary); font-weight: 600; }
.ha-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); margin-bottom: 16px; }
.ha-types li { border-bottom: 1px solid var(--border); }
.ha-types li:nth-child(odd) { border-right: 1px solid var(--border); }
.ha-type { display: grid; gap: 2px; padding: 12px 14px; transition: background var(--transition); }
.ha-type:hover { background: var(--bg-elevated); }
.ha-type:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.ha-type-name { font-weight: 600; font-size: 14.5px; color: var(--text-primary); }
.ha-type:hover .ha-type-name { color: var(--teal); }
.ha-type-tools { font: 400 12.5px var(--font-mono); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#home-arch + .section-block { border-top: 0; margin-top: 0; }
@media (max-width: 860px) {
  .home-arch { padding: 44px 20px 48px; }
  .ha-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ha-list { display: flex; flex-wrap: wrap; gap: 2px 4px; }
  .ha-pick { padding-right: 12px; }
  .ha-list::before { display: none; }
  .ha-label + .ha-list { margin-bottom: 12px; }
  .ha-types { grid-template-columns: minmax(0, 1fr); }
  .ha-types li:nth-child(odd) { border-right: 0; }
  .ha-panel { padding: 20px 18px 18px; }
  .ha-panel-head { grid-template-columns: auto minmax(0, 1fr); }
  .ha-count { grid-column: 2; text-align: left; }
}

/* 04: learning paths as step lines, Start here as a ruled list. */
.hl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
.hl-sub { font: 500 12px var(--font-mono); color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 10px; }
.hl-paths, .hl-res-list { border-top: 1px solid var(--border); margin-bottom: 16px; }
.hl-paths li, .hl-res-list li { border-bottom: 1px solid var(--border); }
.hl-path { display: grid; gap: 6px; padding: 18px 8px; transition: background var(--transition); }
.hl-path:hover, .hl-res:hover { background: var(--bg-elevated); }
.hl-path:focus-visible, .hl-res:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.hl-path-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hl-steps { font: 500 12px var(--font-mono); color: var(--text-muted); }
.hl-path-title { font: 700 20px/1.25 var(--font-serif); font-optical-sizing: auto; color: var(--text-primary); }
.hl-path:hover .hl-path-title { color: var(--teal); }
.hl-path-sum { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.hl-rail { position: relative; display: flex; justify-content: space-between; max-width: 320px; margin-top: 8px; }
.hl-rail::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; background: var(--lavender); }
.hl-rail i { position: relative; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--violet); background: var(--bg-primary); transition: background var(--transition) calc(var(--k) * 40ms); }
.hl-path:hover .hl-rail i { background: var(--violet); }
.hl-res { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 14px; padding: 14px 8px; transition: background var(--transition); }
.hl-res-kind { grid-row: span 2; font: 500 11.5px/1.9 var(--font-mono); color: var(--text-muted); }
.hl-res-title { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.hl-res:hover .hl-res-title { color: var(--teal); }
.hl-res-why { font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
@media (max-width: 860px) { .hl-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hl-res { grid-template-columns: minmax(0, 1fr); } .hl-res-kind { grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .hl-rail i { transition: none; } }

/* Take a break: the game as a plum card (the fact stays lilac). */
.game-hero.section-dark { background-color: var(--bg-primary); border-color: var(--border);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 16px 16px; }
.game-hero.section-dark .game-hero-tag { color: var(--bg-primary); }

/* About strip: closes Home with who writes this. */
.about-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
  margin-top: 48px; padding: 28px 0 8px; border-top: 1px solid var(--border); }
.about-strip-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender-wash); border: 1.5px solid var(--violet); font: 700 20px var(--font-serif); color: var(--teal); }
.about-strip-name { font: 700 19px/1.3 var(--font-serif); font-optical-sizing: auto; color: var(--text-primary); }
.about-strip-name span { margin-left: 10px; font: 500 12px var(--font-mono); color: var(--text-muted); }
.about-strip-line { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); max-width: 62ch; }
.about-strip-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.about-strip-links .ghost-btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 860px) { .about-strip { grid-template-columns: auto minmax(0, 1fr); } .about-strip-links { grid-column: 1 / -1; } }

/* ===== INNER PAGES, PART 4 (the schematic, owner brief 2026-12) ===== */
/* Resources: a ruled list on a rail, not a card grid. Same markup as before (renderResourceCard and
   resource_card() are unchanged): the title column, then the type, category and link on the right.
   A "Start here" pick has a filled node. */
.resources-grid { display: block; position: relative; border-top: 1px solid var(--border); }
.resources-grid::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 1.5px; background: var(--lavender); }
.resource-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px; column-gap: 28px;
  background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 20px 12px 20px 40px; }
.resource-card > * { grid-column: 1; }
.resource-card::before { content: ""; position: absolute; left: 4px; top: 26px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--violet); background: var(--bg-primary); box-sizing: border-box; transition: background var(--transition); }
.resource-card:has(.resource-pick)::before { background: var(--violet); }
.resource-card:hover { background: var(--bg-elevated); border-color: var(--border); transform: none; box-shadow: none; }
.resource-card:hover::before { background: var(--violet); }
.resource-card:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.resource-card.is-linked { border-color: var(--border); box-shadow: inset 0 0 0 2px var(--teal); }
.resource-card-title { font: 600 16px/1.35 var(--font-sans); margin-bottom: 4px; }
.resource-card-desc { font-size: 14px; max-width: 70ch; }
.resource-card-why { font-size: 13.5px; max-width: 70ch; }
.resource-card-footer { grid-column: 2; grid-row: 1 / span 6; align-self: start; margin-top: 2px; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 760px) {
  .resource-card { grid-template-columns: minmax(0, 1fr); padding-right: 8px; }
  .resource-card-footer { grid-column: 1; grid-row: auto; flex-direction: row; justify-content: flex-start; gap: 12px; margin-top: 12px; }
}

/* Learning paths: progress layers, one node per path on a rail; a path that is not built yet is a
   dashed node. */
.paths-list { position: relative; }
.paths-list::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 1.5px; background: var(--lavender); }
.path-row { position: relative; padding-left: 40px; }
.path-row::before { content: ""; position: absolute; left: 3px; top: 34px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--violet); background: var(--bg-primary); box-sizing: border-box; transition: background var(--transition); }
.path-row:not(.path-row-soon):hover::before, .path-row:has(.path-toggle[aria-expanded="true"])::before { background: var(--violet); }
.path-row-soon::before { border-style: dashed; border-color: var(--border-control); }
.path-title { font: 700 22px/1.25 var(--font-serif); font-optical-sizing: auto; letter-spacing: -0.01em; }
.path-row-soon .path-title { font-weight: 600; }
@media (max-width: 760px) { .path-row { grid-template-columns: minmax(0, 1fr); padding-left: 32px; } .paths-list::before { left: 7px; } .path-row::before { left: 1px; } }

/* Play: the game is a plum card (as on Home), the fact a lilac one. */
.game-card.section-dark { background-color: var(--bg-primary); border-color: var(--border);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 16px 16px; }
.play-main #fact-player { background: var(--lavender-wash); border-color: var(--lavender); }

/* About (2026-12): the closing line set as a quote-like line, then the LinkedIn invitation. */
.about-bio .about-closing { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); font: 600 19px/1.45 var(--font-serif); font-optical-sizing: auto; color: var(--text-primary); }
.about-bio .about-invite { margin-top: 10px; font-size: 15px; color: var(--text-muted); }

/* Home order (owner decision 2026-12): the About strip sits in the hero, above the category row, and
   search comes right after the hero, before Areas of expertise. */
.hero .about-strip { grid-column: 1 / -1; margin-top: 8px; padding: 22px 0 4px; }
.hero + .search-container { margin-top: 36px; margin-bottom: 8px; }
.search-container + #expertise { border-top: 0; margin-top: 24px; padding-top: 8px; }

/* ===== PHONES (2026-12 mobile pass) ===== */
@media (max-width: 600px) {
  /* fig. 1 is drawn at 560 units and shown at ~360px: bigger labels, no counts, so it stays readable */
  .hm-name { font-size: 18px; }
  .hm-num { font-size: 13px; }
  .hm-count { display: none; }
  /* the two hero actions share one full-width row; the proof line is a 2 x 2 grid */
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .cta-btn, .hero-actions .ghost-btn { justify-content: center; text-align: center; padding: 13px 12px; font-size: 14px; }
  .hero-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  /* About strip: small avatar beside the name, links in one row */
  .hero .about-strip { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
  .about-strip-avatar { width: 44px; height: 44px; font-size: 15px; }
  .about-strip-name span { display: block; margin: 2px 0 0; }
  .about-strip-links { gap: 10px; }
  .about-strip-links .cta-btn, .about-strip-links .ghost-btn { padding: 10px 16px; font-size: 14px; }
  /* topics: two left-aligned columns instead of a justified spread */
  .hero-cat-row { display: grid; grid-template-columns: 1fr 1fr; }
  /* Areas of expertise: name and counts only, the sentences stay on wider screens */
  .layer-desc { display: none; }
  .layer { gap: 4px; padding-top: 14px; padding-bottom: 14px; }
  .layer::before { top: 20px; }
  /* shorter lists on a phone: three "Start here" picks, two highlights per tool */
  .hl-res-list li:nth-child(n+4) { display: none; }
  .tools-digest-items li:nth-child(n+3) { display: none; }
  /* the star on the Live Feed page: a 44px touch target */
  .feed-item .feed-panel-fav-btn { min-width: 44px; min-height: 44px; }
}
