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

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #060b14;
  --bg-secondary: #0a1020;
  --bg-card: #0e1628;
  --bg-elevated: #162033;
  --bg-sidebar: #0c1522;
  --border: #404040;
  --border-subtle: #2e2e2e;
  --border-control: #5a6a82;   /* form control outlines: 3:1 against page and card backgrounds */
  --amber: #f59e0b;
  --amber-subtle: rgba(245, 158, 11, 0.1);
  --amber-dim: rgba(245, 158, 11, 0.3);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #7a8fa8;
  --teal: #06d6a0;
  --teal-hover: #00f0b5;
  --teal-dim: rgba(6, 214, 160, 0.65);
  --teal-glow: rgba(6, 214, 160, 0.12);
  --teal-subtle: rgba(6, 214, 160, 0.06);
  --cat-data: #3b82f6;
  --cat-data-bg: rgba(59, 130, 246, 0.12);
  --cat-trends: #22c55e;
  --cat-trends-bg: rgba(34, 197, 94, 0.12);
  --cat-tools: #f97316;
  --cat-tools-bg: rgba(249, 115, 22, 0.12);
  --cat-startups: #fb7185;
  --cat-startups-bg: rgba(251, 113, 133, 0.12);
  --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; sizes the sticky feed so it ends where the footer starts */
  --nav-height: 66px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

/* ===== 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: rgba(6,11,20,0.92);
  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; }

/* ===== 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(34px, 5vw, 56px); font-weight: 700;
  color: var(--text-primary); line-height: 1.08;
  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 { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 28px; }
.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; align-items: center; justify-content: space-between; 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-dim);
  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; }
.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: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.3);
  border-radius: 100px; font-size: 10px; font-weight: 600;
  color: #f97316; 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-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: var(--text-primary); line-height: 1.2; letter-spacing: -0.03em; 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; }

/* 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-dim); 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-size: 30px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; margin-bottom: 8px; }
.page-header p { font-size: 15px; color: var(--text-secondary); max-width: 540px; line-height: 1.6; }

/* ===== 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-dim); }
.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-dim);
  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-dim); 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-dim); 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-dim); 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-dim); 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-dim); 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: collapse to the hamburger earlier (eight icon tabs do not fit on one line below ~1400px) ===== */
@media (max-width: 1400px) {
  .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(--teal-subtle); border: 1px solid var(--teal-dim); 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: #b066f8;
  --cat-ai-bg: rgba(176, 102, 248, 0.12);
  --cat-architecture: #fb923c;
  --cat-architecture-bg: rgba(251, 146, 60, 0.12);
  --cat-engineering: #38bdf8;
  --cat-engineering-bg: rgba(56, 189, 248, 0.12);
  --cat-modeling: #e879f9;
  --cat-modeling-bg: rgba(232, 121, 249, 0.12);
  --cat-quality: #4ade80;
  --cat-quality-bg: rgba(74, 222, 128, 0.12);
  --cat-strategy: #facc15;
  --cat-strategy-bg: rgba(250, 204, 21, 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(176,102,248,0.55); color: var(--cat-ai); }
.filter-btn[data-cat="ai"].active { color: var(--cat-ai); background: var(--cat-ai-bg); border-color: rgba(176,102,248,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(251,146,60,0.55); color: var(--cat-architecture); }
.filter-btn[data-cat="architecture"].active { color: var(--cat-architecture); background: var(--cat-architecture-bg); border-color: rgba(251,146,60,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(56,189,248,0.55); color: var(--cat-engineering); }
.filter-btn[data-cat="engineering"].active { color: var(--cat-engineering); background: var(--cat-engineering-bg); border-color: rgba(56,189,248,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(232,121,249,0.55); color: var(--cat-modeling); }
.filter-btn[data-cat="modeling"].active { color: var(--cat-modeling); background: var(--cat-modeling-bg); border-color: rgba(232,121,249,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(74,222,128,0.55); color: var(--cat-quality); }
.filter-btn[data-cat="quality"].active { color: var(--cat-quality); background: var(--cat-quality-bg); border-color: rgba(74,222,128,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(250,204,21,0.55); color: var(--cat-strategy); }
.filter-btn[data-cat="strategy"].active { color: var(--cat-strategy); background: var(--cat-strategy-bg); border-color: rgba(250,204,21,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-dim); }
.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); }
.tools-digest-divider { width: 48px; height: 2px; margin: 4px 0 20px; background: var(--teal-dim); border-radius: 1px; }
.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: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.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-elevated); border: 1px solid var(--border-control); border-radius: var(--radius-lg); }
.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: #f8fafc; margin: 0 0 8px; }
.arch-detail-head h2:focus { outline: none; }
.arch-detail-head p { color: #cbd5e1; 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: #b6c2d4; }
.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: #b6c2d4; max-width: 78ch; }
.arch-facts a { color: var(--teal); white-space: nowrap; }
.arch-details { grid-area: more; align-self: start; padding: 18px 22px; background: #223451; border: 1px solid #40567a; box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset; 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: #dbe4f0; }
.arch-details { padding: 6px 22px; }
.arch-acc + .arch-acc { border-top: 1px solid #40567a; }
.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: rgba(6, 214, 160, 0.14); 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: #f8fafc; }
.arch-acc-chev { width: 9px; height: 9px; border-right: 2px solid #b6c2d4; border-bottom: 2px solid #b6c2d4; 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: #dbe4f0; }
.arch-details a { color: #f1f5f9; text-underline-offset: 3px; }
.arch-goto { background: none; border: 0; padding: 0; cursor: pointer; font: 500 14px var(--font-sans); color: #f1f5f9; 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: #b6c2d4; }
.arch-stage-learn { margin: 6px 0 22px; padding: 14px 20px; max-width: 78ch; background: #223451; border: 1px solid #40567a; 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: #d4dcea; }
.arch-stage-learn a { color: #f1f5f9; text-underline-offset: 3px; }
.arch-type-name h3 { font: 600 16px/1.3 var(--font-sans); color: #f8fafc; margin: 0 0 4px; }
.arch-type-name p { font-size: 13.5px; line-height: 1.55; color: #b6c2d4; 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-dim); }
.arch-tag { font: 500 11.5px var(--font-sans); font-style: normal; color: #b6c2d4; 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-dim); }
.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: #b6c2d4 !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: rgba(226, 232, 240, 0.04); transition: border-color var(--transition), background var(--transition); }
.arch-tool-group:hover { border-color: var(--teal); background: rgba(6, 214, 160, 0.06); }
.arch-tool-group.is-primary { border-color: var(--teal-dim); background: rgba(6, 214, 160, 0.07); }
.arch-tool { display: flex; align-items: flex-start; gap: 12px; flex: 1; padding: 12px 14px 10px 12px; color: #d4dcea; 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: rgba(226, 232, 240, 0.09); color: #e2e8f0; 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: rgba(6, 214, 160, 0.09); }
.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: #eef2f8; }
.arch-tool-group.is-primary .arch-tool-name { font-weight: 600; color: #f8fafc; }
.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: #e2e8f0; 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: #f1f5f9; }
.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: #e2e8f0; transition: background var(--transition), border-color var(--transition); }
.arch-place:hover, .arch-place:focus-visible { background: rgba(6, 214, 160, 0.16); 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: #f1f5f9; }
.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 rgba(6, 214, 160, 0.25); }
@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 rgba(6, 214, 160, 0.25); } 50% { box-shadow: 0 0 0 8px rgba(6, 214, 160, 0.05); } }

/* 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: #dcf5ee; color: #0b6b56; }
.arch-tool-info { font: 400 12.5px/1.4 var(--font-sans); color: #b6c2d3; }
.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: #dbe4f0; }
.arch-why-text:not([hidden]) { display: grid; gap: 8px; }
.arch-why-text p { margin: 0; }
.arch-why-text .arch-more-why { color: #f1f5f9; }
.arch-why-text a { color: var(--teal); text-underline-offset: 3px; }
.arch-why-text .arch-goto { font-size: 13px; color: var(--teal); }
