/* ========== StartupYug — Bold Indian editorial system ========== */

:root {
  /* Warm paper palette */
  --bg: #fbf7f0;
  --bg-alt: #ffffff;
  --bg-deep: #f3ede0;
  --ink: #1a1410;          /* cocoa, near-black */
  --ink-2: #4a3f33;
  --ink-3: #7a6f60;
  --ink-4: #a89d8c;
  --line: #ece4d3;
  --line-2: #e3d9c2;
  --line-soft: #f5efde;

  /* Brand */
  --sun: #f5b800;          /* logo yellow */
  --sun-deep: #d99a00;
  --cocoa: #2a1a0a;

  /* Category accents */
  --c-fund: #1f7a3a;       /* funding green */
  --c-fund-soft: #e6f3ea;
  --c-job: #c1631a;        /* jobs amber */
  --c-job-soft: #fbeede;
  --c-learn: #6b3fb8;      /* courses violet */
  --c-learn-soft: #efe7fa;
  --c-founder: #b8336a;    /* founders pink */
  --c-founder-soft: #faeaf1;
  --c-invest: #1a4fb5;     /* investors blue */
  --c-invest-soft: #e3ecfa;
  --c-case: #0d6e6e;       /* case studies teal */
  --c-case-soft: #dcefef;
  --c-saas: #047893;       /* saas cyan */
  --c-saas-soft: #def0f4;
  --c-deal: #c0392b;       /* deals red */
  --c-deal-soft: #fae5e2;
  --c-agent: #7a5b1a;      /* agents bronze */
  --c-agent-soft: #f4ecd6;

  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums; /* v2: every number aligns (P1) */
}
/* v2: visible focus for every interactive element (§3.8) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-row1 {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}
.brand-tm {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--cocoa);
  margin-left: 2px;
  margin-top: 2px;
  letter-spacing: 0.5px;
  opacity: 0.7;
}
.brand-logo-footer {
  height: 38px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.brand-tm-footer {
  color: var(--sun);
  opacity: 0.9;
}

.search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-alt);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search input:focus {
  border-color: var(--cocoa);
  box-shadow: 0 0 0 3px rgba(245,184,0,0.2);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.header-link {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.header-link:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--cocoa);
  color: #fff8e7;
}
.btn-primary:hover { background: #1a0e02; }
.btn-sun {
  background: var(--sun);
  color: var(--cocoa);
}
.btn-sun:hover { background: var(--sun-deep); }
.btn-outline {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--cocoa); background: var(--bg-alt); }

/* Header row 2 — nav */
.header-row2 {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 0 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.nav {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav-item {
  position: relative;
}
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
  position: relative;
}
.nav-trigger .nav-icon {
  font-size: 13px;
  width: 14px;
  display: inline-flex;
  justify-content: center;
}
.nav-trigger::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 2px;
  background: var(--cocoa);
  transform: scaleX(0);
  transition: transform 0.15s;
  transform-origin: left;
}
.nav-item:hover .nav-trigger::after,
.nav-item:focus-within .nav-trigger::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}

/* Mega menu */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 720px;
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(42,26,10,0.18), 0 4px 12px -4px rgba(42,26,10,0.08);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 200px;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 50;
}
.nav-item:hover .megamenu,
.nav-item:focus-within .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.megamenu-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-3);
  margin: 0 0 10px;
  font-weight: 700;
}
.megamenu-col a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.megamenu-col a:hover { color: var(--sun-deep); }
.megamenu-col a .badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--c-fund-soft);
  color: var(--c-fund);
  font-weight: 700;
}
.mm-feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mm-feature .mm-thumb {
  height: 80px;
  border-radius: 6px;
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.mm-feature .mm-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--ink-3);
}
.mm-feature .mm-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.mm-feature .mm-meta {
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ========== Ticker ========== */
.ticker {
  background: var(--cocoa);
  color: #f5efde;
  overflow: hidden;
  border-bottom: 1px solid #000;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--cocoa), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--cocoa), transparent); }
.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--sun);
  color: var(--cocoa);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 5;
  gap: 6px;
}
.ticker-label .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-deal);
  animation: livepulse 1.4s infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  padding: 11px 0 11px 130px;
  animation: scroll 90s linear infinite;
  gap: 36px;
  font-size: 13px;
  font-weight: 500;
  width: max-content;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}
.ticker-item b { color: #fff; font-weight: 600; }
.ticker-item span { color: #b8a98e; font-size: 12px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stats strip */
.stats {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.stat {
  flex: 1;
  padding: 18px 22px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat:last-child { border-right: 0; }
.stat-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-3);
  font-weight: 700;
}
.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--cocoa);
  line-height: 1;
  margin-top: 4px;
}
.stat-meta {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
}
.stat-value .delta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-fund);
  margin-left: 6px;
}

/* ========== Section pattern ========== */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.section.alt { background: var(--bg-alt); }
.section.deep { background: var(--cocoa); color: #f5efde; }
.section.deep .section-title-row { color: #f5efde; }

.section-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--cocoa);
  margin: 0;
}
.section.deep .section-title { color: #fff8e7; }
.section-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.section.alt .section-count { background: var(--bg); }
.section-tail {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.view-all:hover { color: var(--sun-deep); }
.view-all .arr { transition: transform 0.15s; }
.view-all:hover .arr { transform: translateX(3px); }

/* Filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.chip {
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-alt);
  color: var(--ink-2);
  transition: all 0.15s;
}
.section.alt .chip { background: var(--bg); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.active {
  background: var(--cocoa);
  color: var(--bg);
  border-color: var(--cocoa);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Card base */
.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section.alt .card { background: var(--bg); }
.card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-3);
  box-shadow: 0 12px 24px -16px rgba(42,26,10,0.18);
}

/* === Funding round card === */
.fr-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-tile {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.fr-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.2;
}
.fr-sector {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.fr-amount {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--c-fund);
  line-height: 1;
}
.fr-stage {
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--c-fund);
  background: var(--c-fund-soft);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.fr-lead {
  font-size: 12px;
  color: var(--ink-2);
  border-top: 1px dashed var(--line-2);
  padding-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.fr-lead .ago { color: var(--ink-3); flex-shrink: 0; }

/* === Course card === */
.course-thumb {
  height: 120px;
  border-radius: 8px;
  position: relative;
  margin: -16px -16px 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.course-thumb .pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255,255,255,0.95);
  color: var(--cocoa);
  padding: 3px 8px;
  border-radius: 4px;
}
.course-thumb .bestseller {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--sun);
  color: var(--cocoa);
  padding: 3px 8px;
  border-radius: 4px;
}
.course-thumb .ico {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: -4px;
}
.course-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.course-instr { font-size: 12px; color: var(--ink-3); }
.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
}
.course-meta .rating { color: var(--ink); font-weight: 600; }
.course-meta .rating .star { color: var(--sun-deep); }
.course-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px dashed var(--line-2);
  padding-top: 9px;
}
.course-price .now {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.course-price .was {
  font-size: 12px;
  color: var(--ink-4);
  text-decoration: line-through;
}
.course-price .enrolled {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
}

/* === Job row === */
.jobs-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section.alt .jobs-list { background: var(--bg); }
.job-row {
  display: grid;
  grid-template-columns: 44px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.job-row:last-child { border-bottom: 0; }
.job-row:hover { background: var(--bg); }
.section.alt .job-row:hover { background: var(--bg-alt); }
.job-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job-title {
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.job-company {
  font-size: 12px; color: var(--ink-3);
}
.job-company b { color: var(--ink-2); font-weight: 600; }
.job-loc, .job-pay {
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.job-pay {
  font-weight: 600;
  color: var(--ink);
}
.job-pay .equity { color: var(--c-fund); font-weight: 600; font-size: 11.5px; display: block; }
.job-ago { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.job-row .btn-apply {
  padding: 7px 14px;
  font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-weight: 600;
  color: var(--ink);
}
.job-row:hover .btn-apply { background: var(--cocoa); color: #fff8e7; border-color: var(--cocoa); }

/* === Founder card === */
.founder-card { padding: 18px; }
.founder-head { display: flex; gap: 12px; align-items: flex-start; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  font-family: 'Fraunces', serif;
  color: var(--ink);
  font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.5px;
}
.founder-name { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.founder-role { font-size: 12px; color: var(--c-founder); font-weight: 600; margin-top: 2px; }
.founder-bio { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.founder-stats {
  display: flex; gap: 14px;
  border-top: 1px dashed var(--line-2);
  padding-top: 10px;
}
.founder-stats div {
  font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.founder-stats div b {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.5px;
  margin-top: 2px;
}

/* === Investor card === */
.inv-head { display: flex; gap: 12px; align-items: center; }
.inv-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.inv-type { font-size: 11.5px; color: var(--c-invest); font-weight: 600; margin-top: 2px; }
.inv-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.inv-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 2px 7px;
  border-radius: 999px;
}
.section.alt .inv-tag { background: var(--bg-alt); }
.inv-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px dashed var(--line-2);
  padding-top: 10px;
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.inv-meta b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
  font-weight: 700;
}

/* === Business for sale === */
.biz-tag {
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.biz-tag.sale { background: var(--c-deal-soft); color: var(--c-deal); }
.biz-tag.acqui { background: var(--c-job-soft); color: var(--c-job); }
.biz-tag.raise { background: var(--c-invest-soft); color: var(--c-invest); }
.biz-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.3px; }
.biz-cat { font-size: 11.5px; color: var(--ink-3); }
.biz-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; flex: 1; }
.biz-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--line-2);
  padding-top: 9px;
}
.biz-price { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.5px; }
.biz-rev { font-size: 11.5px; color: var(--ink-3); text-align: right; }
.biz-rev b { color: var(--c-fund); font-weight: 700; display: block; font-size: 13px; }

/* === Franchise card === */
.franchise-card {
  padding: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.franchise-card:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
}
.section.alt .franchise-card { background: var(--bg); }
.fr-brand-mark {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.franchise-card h3 { margin: 0; font-size: 15px; color: var(--ink); font-weight: 700; }
.franchise-card .ftype { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.franchise-card .fmeta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.franchise-card .foutlets { font-size: 11.5px; color: var(--ink-3); }
.franchise-card .finvest {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--cocoa);
  letter-spacing: -0.3px;
}

/* === Case studies === */
.case-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.case-feature {
  grid-row: span 2;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.15s;
}
.case-feature:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.section.alt .case-feature { background: var(--bg); }
.case-feature-thumb {
  height: 220px;
  background: var(--cocoa);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
}
.case-feature-thumb .featured-pill {
  position: absolute; top: 16px; left: 16px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--sun);
  color: var(--cocoa);
  padding: 4px 10px;
  border-radius: 4px;
}
.case-feature-thumb .case-co {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: rgba(255,255,255,0.95);
}
.case-feature-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.case-feature-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--cocoa);
  text-wrap: pretty;
}
.case-feature-meta { font-size: 12px; color: var(--ink-3); margin-top: auto; display: flex; gap: 14px; }
.case-feature-meta b { color: var(--ink-2); font-weight: 600; }

.case-mini {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s;
}
.case-mini:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.section.alt .case-mini { background: var(--bg); }
.case-mini-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--c-case);
}
.case-mini-title {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  line-height: 1.25;
  text-wrap: pretty;
}
.case-mini-meta {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: auto;
}

/* === Service tile === */
.svc-card { padding: 16px; }
.svc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--c-founder-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.svc-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.svc-vendor { font-size: 11.5px; color: var(--ink-3); }
.svc-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--line-2);
  padding-top: 9px;
}
.svc-price { font-family: 'Fraunces', serif; font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -0.3px; }
.svc-rating { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.svc-rating .star { color: var(--sun-deep); }
.svc-rating span { color: var(--ink-3); font-weight: 400; }

/* === SaaS tile === */
.saas-tile {
  padding: 22px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.15s;
}
.section.alt .saas-tile { background: var(--bg); }
.saas-tile:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.saas-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: -1px;
}
.saas-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.saas-cat { font-size: 11px; color: var(--ink-3); }

/* === Deals (dark strip) === */
.deals-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* v2: 6 tiles → even rows at 6/3/2/1 across breakpoints */
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.deal-tile {
  background: var(--cocoa);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.15s;
}
.deal-tile:hover { background: #1a0e02; }
.deal-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--sun);
  color: var(--cocoa);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.5px;
}
.deal-co { font-size: 13px; color: #f5efde; font-weight: 700; }
.deal-offer {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff8e7;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.deal-desc { font-size: 11.5px; color: #b8a98e; }
.deal-claim {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sun);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === Agent territories === */
.terr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.terr-tile {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s;
}
.section.alt .terr-tile { background: var(--bg); }
.terr-tile:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.terr-head {
  display: flex; justify-content: space-between; align-items: center;
}
.terr-city { font-size: 14px; font-weight: 700; color: var(--ink); }
.terr-status {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 2px 6px;
  border-radius: 3px;
}
.terr-status.active { background: var(--c-fund-soft); color: var(--c-fund); }
.terr-status.open { background: var(--c-job-soft); color: var(--c-job); }
.terr-status.soon { background: var(--bg-deep); color: var(--ink-3); }
.terr-meta { font-size: 11.5px; color: var(--ink-3); }
.terr-meta b { color: var(--ink-2); font-weight: 600; }

/* Agents earnings highlight strip */
.earn-strip {
  background: var(--sun);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 22px;
  color: var(--cocoa);
}
.earn-strip .es-stat {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1;
}
.earn-strip .es-stat span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
  opacity: 0.7;
}

/* ========== Footer ========== */
.footer {
  background: var(--cocoa);
  color: #b8a98e;
  padding: 60px 0 30px;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand .brand-name { color: #fff8e7; }
.footer-brand p {
  color: #8a7c63;
  font-size: 12.5px;
  margin-top: 10px;
  max-width: 240px;
  line-height: 1.5;
}
.footer-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sun);
  margin: 0 0 14px;
  font-weight: 800;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #b8a98e;
  padding: 4px 0;
}
.footer-col a:hover { color: #fff8e7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #8a7c63;
}
.footer-bottom a { color: #8a7c63; }
.footer-bottom a:hover { color: #fff8e7; }

/* ========== Mobile menu trigger (shown <980px) ========== */
.mobile-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.mobile-toggle span {
  width: 18px; height: 2px;
  background: var(--cocoa);
  position: relative;
  display: block;
}
.mobile-toggle span::before, .mobile-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--cocoa);
}
.mobile-toggle span::before { top: -6px; }
.mobile-toggle span::after { top: 6px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--bg);
  border-left: 1px solid var(--line-2);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  padding: 22px 24px 40px;
  box-shadow: -20px 0 40px -10px rgba(42,26,10,0.2);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(26,20,16,0.45);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  font-size: 18px;
  color: var(--ink);
}
.mobile-search {
  position: relative;
  margin-bottom: 22px;
}
.mobile-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-alt);
  font: inherit;
  font-size: 13.5px;
  outline: none;
}
.mobile-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3);
}
.mobile-nav-group {
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}
.mobile-nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group summary::after {
  content: '+';
  font-weight: 400;
  font-size: 18px;
  color: var(--ink-3);
}
.mobile-nav-group[open] summary::after { content: '−'; }
.mobile-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  padding: 4px 0 14px;
}
.mobile-nav-links a {
  font-size: 13px;
  color: var(--ink-2);
  padding: 5px 0;
  font-weight: 500;
}
.mobile-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 22px;
}
.mobile-actions .btn { width: 100%; justify-content: center; padding: 12px 16px; }

/* ========== Responsive breakpoints ========== */

/* Large desktop (default) — 1320px container, 4-col grids, full layout */

/* Mid desktop — keep desktop nav, slightly tighter */
@media (max-width: 1180px) {
  .container { padding: 0 24px; }
  .nav-trigger { padding: 14px 12px; font-size: 13px; }
  .megamenu { width: 640px; }
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet landscape — 980-1180. Collapse to mobile nav, keep search inline */
@media (max-width: 980px) {
  .container { padding: 0 22px; }
  .header-row2 { display: none; }
  .header-link { display: none; }
  .mobile-toggle { display: flex; }
  .header-actions .btn-sun { padding: 9px 14px; font-size: 13px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto; }
  .case-feature { grid-column: span 3; grid-row: span 1; }
  .case-feature-thumb { height: 180px; }
  .deals-strip { grid-template-columns: repeat(3, 1fr); }
  .terr-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 3; margin-bottom: 4px; }
  .stats-inner { flex-wrap: wrap; }
  .stat { flex: 1 1 33%; min-width: 33%; border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(n+4) { border-bottom: 0; }
  .stat:nth-child(3n) { border-right: 0; }
  .earn-strip { flex-wrap: wrap; gap: 18px; }
  .earn-strip .btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .header-row1 { gap: 14px; padding: 12px 0; }
  .search { display: none; }
  .brand-logo { height: 36px; }

  .ticker-track { animation-duration: 60s; padding-left: 110px; gap: 28px; }
  .ticker-label { padding: 0 12px; font-size: 10px; }

  .stat { flex: 1 1 50%; min-width: 50%; padding: 14px 16px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat-value { font-size: 21px; }

  .section { padding: 40px 0; }
  .section-title { font-size: 24px; letter-spacing: -0.5px; }
  .section-title-row { gap: 10px; margin-bottom: 16px; }
  .section-tail { width: 100%; margin-left: 0; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .case-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .case-feature { grid-column: span 2; }
  .case-feature-thumb { height: 160px; }
  .case-feature-title { font-size: 18px; }
  .deals-strip { grid-template-columns: repeat(2, 1fr); }
  .terr-grid { grid-template-columns: repeat(2, 1fr); }

  .chips { gap: 5px; margin-bottom: 16px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
           scrollbar-width: none; -ms-overflow-style: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex-shrink: 0; }

  .job-row {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .job-loc { display: none; }
  .job-pay { font-size: 12px; text-align: right; }
  .job-pay .equity { font-size: 10.5px; }
  .job-row .btn-apply { display: none; }
  .job-ago { display: none; }

  .earn-strip { padding: 18px 18px; }
  .earn-strip .es-stat { font-size: 22px; flex: 1 1 45%; }

  .footer { padding: 44px 0 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ====================================================================
   ================= v2 LAYER — Design System v2 =======================
   Per REDESIGN_BRIEF.md (2026-07-09). Neutral surfaces, demoted accents,
   no gradients, tabular numerals. New primitives: monogram v2, stat
   panel with deltas, index-table, editorial cover, gateway cards,
   trust strip, cta-band (canonical), skeletons, empty states.
   ==================================================================== */

/* Fix v1 specificity bug: .section.alt .chip (0,3,0) was overriding
   .chip.active (0,2,0), leaving cream text on a white pill. */
.chip.active, .section.alt .chip.active {
  background: var(--cocoa);
  color: var(--bg);
  border-color: var(--cocoa);
}

/* --- Eyebrow (11px caps, no dash decoration — §3.2) --- */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ink-3);
}

/* --- Monogram v2 (§3.3): flat, quiet, deliberate. Never a gradient. --- */
.mono {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  overflow: hidden;
}
.mono.round { border-radius: 50%; }
.mono img { width: 100%; height: 100%; object-fit: contain; }
.mono-24 { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
.mono-32 { width: 32px; height: 32px; font-size: 13px; }
.mono-40 { width: 40px; height: 40px; font-size: 16px; }
.mono-48 { width: 48px; height: 48px; font-size: 19px; }

/* --- Small category tag (accents demoted to metadata — §3.1) --- */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-deep);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag.fund   { background: var(--c-fund-soft);   color: var(--c-fund); }
.tag.job    { background: var(--c-job-soft);    color: var(--c-job); }
.tag.learn  { background: var(--c-learn-soft);  color: var(--c-learn); }
.tag.founder{ background: var(--c-founder-soft);color: var(--c-founder); }
.tag.invest { background: var(--c-invest-soft); color: var(--c-invest); }
.tag.case   { background: var(--c-case-soft);   color: var(--c-case); }
.tag.saas   { background: var(--c-saas-soft);   color: var(--c-saas); }
.tag.deal   { background: var(--c-deal-soft);   color: var(--c-deal); }
.tag.agent  { background: var(--c-agent-soft);  color: var(--c-agent); }

/* --- Command hero (§3.5.1) --- */
.hero-v2 { padding: 32px 0 40px; }
.hero-v2 .eyebrow { margin-bottom: 14px; }
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.02;
  color: var(--cocoa);
  margin: 0 0 14px;
  max-width: 820px;
}
.hero-sub {
  font-size: 15.5px;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 620px;
  line-height: 1.55;
}
.hero-search { position: relative; max-width: 720px; }
.hero-search input {
  width: 100%;
  height: 56px;
  padding: 0 84px 0 48px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-alt);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search input:focus {
  border-color: var(--cocoa);
  box-shadow: 0 0 0 3px rgba(245,184,0,0.25);
}
.hero-search .search-icon { left: 18px; }
.hero-search .search-kbd { right: 14px; }

/* --- Marquee stat panel with deltas (§3.5.1, §3.6) --- */
.stat-panel {
  margin-top: 36px;
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
}
.sp-cell {
  padding: 20px 22px 18px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sp-cell:last-child { border-right: 0; }
.sp-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--ink-3);
  white-space: nowrap;
}
.sp-value {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--cocoa);
  white-space: nowrap;
}
.sp-delta {
  font-size: 12px;
  font-weight: 650;
  color: var(--c-fund);
}
.sp-delta.flat { color: var(--ink-3); font-weight: 500; }

/* Stat panel 2x2 variant for module landings (§3.6) */
.stat-panel.sp-2x2 { grid-template-columns: 1fr 1fr; margin-top: 0; }
.stat-panel.sp-2x2 .sp-cell:nth-child(2n) { border-right: 0; }
.stat-panel.sp-2x2 .sp-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }

/* --- Trust strip (§3.5.2): quiet wordmarks, factual label --- */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.trust-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.trust-marks {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  min-width: 0;
}
.trust-mark {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.15s;
}
.trust-mark:hover { color: var(--ink); }

/* --- Index table (§3.4): the database look --- */
.index-table {
  --cols: 2.6fr 0.9fr 1fr 1.8fr 1fr 0.8fr;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section.alt .index-table { background: var(--bg); }
.it-head, .it-row {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 16px;
  align-items: center;
  padding: 12px 20px;
}
.it-head {
  padding: 10px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--ink-3);
}
.section.alt .it-head { background: var(--bg-deep); }
.it-row {
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.it-row:last-child { border-bottom: 0; }
.it-row:hover { background: var(--bg); }
.section.alt .it-row:hover { background: var(--bg-alt); }
.it-co { display: flex; align-items: center; gap: 12px; min-width: 0; }
.it-co-text { display: flex; flex-direction: column; min-width: 0; }
.it-co-name {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.it-co-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-cell { font-size: 13px; color: var(--ink-2); min-width: 0; }
.it-num {
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.it-when { font-size: 12px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.it-right { text-align: right; }

/* --- Editorial moment (§3.5.4 / §3.3 editorial cover) --- */
.edit-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.edit-cover {
  display: flex;
  flex-direction: column;
  background: var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  min-height: 360px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.edit-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -20px rgba(42,26,10,0.4);
}
.edit-cover .ec-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--sun);
}
.ec-title {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: #fff8e7;
  margin-top: auto;
  padding-top: 48px;
  text-wrap: pretty;
}
.ec-base {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 12.5px;
  color: #b8a98e;
}
.ec-base .mono {
  background: transparent;
  border-color: rgba(255,248,231,0.3);
  color: #fff8e7;
}
.ec-base b { color: #f5efde; font-weight: 600; }
.edit-side { display: flex; flex-direction: column; justify-content: stretch; }
.edit-line {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  transition: background 0.15s;
}
.edit-line:first-child { padding-top: 6px; }
.edit-line:last-child { border-bottom: 0; }
.el-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--c-case);
}
.el-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.edit-line:hover .el-title { color: var(--sun-deep); }
.el-meta { font-size: 12px; color: var(--ink-3); }

/* --- Directory gateway grid (§3.5.5) --- */
.gw-card {
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--gw, var(--line-2));
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.gw-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-3);
  border-top-color: var(--gw, var(--ink-3));
  box-shadow: 0 12px 24px -16px rgba(42,26,10,0.18);
}
.gw-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.gw-name {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--cocoa);
}
.gw-count { font-size: 12.5px; font-weight: 650; color: var(--ink-3); white-space: nowrap; }
.gw-desc { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.gw-rows { border-top: 1px solid var(--line-soft); margin-bottom: 14px; }
.gw-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.gw-row-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.gw-row-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.gw-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gw-card:hover .gw-cta { color: var(--sun-deep); }

/* --- CTA band (canonical v2: cocoa + cream, full stop — §3.1/§6) --- */
.cta-band {
  background: var(--cocoa);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.cta-band h2 {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: #fff8e7;
  margin: 0 0 8px;
}
.cta-band p { color: #b8a98e; font-size: 13.5px; margin: 0; max-width: 560px; line-height: 1.55; }
.cta-band .cta-btns { margin-left: auto; display: flex; gap: 12px; flex-shrink: 0; }
.cta-band .btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,248,231,0.28);
  color: #fff8e7;
}
.cta-band .btn-ghost:hover { border-color: #fff8e7; }

/* --- Skeletons (§3.8): paper-tone shimmer, one per card/row type --- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  border-radius: 6px;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  /* shimmer highlight — the one sanctioned moving surface besides the ticker */
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: sk-shimmer 1.4s infinite;
}
@keyframes sk-shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; margin: 6px 0; }
.sk-line.w80 { width: 80%; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-mono { width: 40px; height: 40px; border-radius: 8px; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.sk-row > div:last-child { flex: 1; }
@media (prefers-reduced-motion: reduce) {
  .skeleton::after, .ticker-track { animation: none; }
}

/* --- Empty state (§3.8): quiet, factual, one action. Never an empty grid. --- */
.empty-state {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  padding: 40px 24px;
  text-align: center;
}
.empty-state .es-icon {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 16px;
}
.empty-state p { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.empty-state .btn { margin: 0 auto; }

/* --- Footer trust layer (§3.7) --- */
.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
  color: #b8a98e;
}
.footer-stats b { color: #fff8e7; font-weight: 650; }
.footer-top.cols-5 { grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8a98e;
  transition: color 0.15s, border-color 0.15s;
}
.footer-social a:hover { color: #fff8e7; border-color: rgba(255,255,255,0.4); }
.footer-legal { font-size: 11.5px; color: #8a7c63; margin-top: 6px; }

/* --- v2 responsive --- */
@media (max-width: 1180px) {
  .hero-title { font-size: 52px; }
  .stat-panel { grid-template-columns: repeat(3, 1fr); }
  .sp-cell { border-bottom: 1px solid var(--line-soft); }
  .sp-cell:nth-child(3n) { border-right: 0; }
  .sp-cell:nth-child(n+4) { border-bottom: 0; }
  .footer-top.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-top.cols-5 .footer-brand { grid-column: span 3; }
}
@media (max-width: 980px) {
  .index-table { --cols: 2.6fr 0.9fr 1fr 0.8fr; }
  .it-md { display: none; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-cover { min-height: 300px; }
  .ec-title { padding-top: 36px; }
}
@media (max-width: 768px) {
  .hero-v2 { padding: 20px 0 28px; }
  .hero-title { font-size: 40px; letter-spacing: -1.2px; }
  .hero-sub { font-size: 14px; }
  .hero-search input { height: 50px; font-size: 14px; padding-left: 44px; }
  .hero-search .search-icon { left: 16px; }
  .stat-panel { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .sp-cell { padding: 14px 16px 12px; border-bottom: 1px solid var(--line-soft); }
  .sp-cell:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .sp-cell:nth-child(2n) { border-right: 0; }
  .sp-cell:nth-child(n+4) { border-bottom: 1px solid var(--line-soft); }
  .sp-cell:nth-child(n+5) { border-bottom: 0; }
  .sp-value { font-size: 26px; }
  .trust-strip { gap: 16px; flex-direction: column; align-items: flex-start; padding: 16px 0; }
  .trust-marks { gap: 14px 24px; }
  .trust-mark { font-size: 14px; }
  .index-table { --cols: 2.2fr 1fr 0.8fr; }
  .it-sm { display: none; }
  /* At this width "Investor firms & funds" / "Angels & individuals" truncate
     mid-word under the base rule's white-space:nowrap. Let the name wrap to
     a second line here instead — the row already has room for it. */
  .it-co-name { font-size: 14.5px; white-space: normal; overflow: visible; text-overflow: clip; }
  .it-num { font-size: 14px; }
  .ec-title { font-size: 26px; letter-spacing: -0.8px; }
  .edit-cover { padding: 22px; min-height: 240px; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }
  .cta-band .cta-btns { margin-left: 0; }
  .footer-top.cols-5 { grid-template-columns: 1fr 1fr; }
  .footer-top.cols-5 .footer-brand { grid-column: span 2; }
}
@media (max-width: 540px) {
  .hero-title { font-size: 34px; }
  .sp-value { font-size: 24px; }
  .sp-label { font-size: 9.5px; letter-spacing: 0.9px; }
  .sp-cell { padding: 12px 14px 10px; }
  .gw-card { padding: 16px 16px 14px; }
  .cta-band h2 { font-size: 24px; }
  .cta-band .cta-btns { flex-direction: column; width: 100%; }
  .cta-band .cta-btns .btn { width: 100%; justify-content: center; }
  .footer-top.cols-5 { grid-template-columns: 1fr; }
  .footer-top.cols-5 .footer-brand { grid-column: span 1; }
}

/* ====================================================================
   ===== v2.1 — storefront components (brief §0 positioning rework) ====
   The homepage is the storefront of six product lines. Each showcase
   states its offer (offer-line), proves it with live rows, and closes
   with a dual CTA. Craft rules from the v2 layer unchanged.
   ==================================================================== */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 118px; } /* clear the sticky header on intent-router jumps */

/* Intent router (hero): six quiet links routing each audience */
.intent-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.intent-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: border-color 0.15s, color 0.15s;
}
.intent-link .arr { color: var(--ink-4); transition: transform 0.15s, color 0.15s; }
.intent-link:hover { border-color: var(--ink-3); color: var(--ink); }
.intent-link:hover .arr { transform: translateX(2px); color: var(--sun-deep); }

/* Showcase header: accent-dotted eyebrow + offer line under the title */
.showcase-eyebrow { margin-bottom: 12px; }
.eyebrow-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  background: var(--m, var(--sun)); margin-right: 8px;
}
.offer-line {
  font-size: 15px; color: var(--ink-2);
  margin: -10px 0 22px; max-width: 680px; line-height: 1.55;
}
.section.deep .offer-line { color: #b8a98e; }
.section-tail .btn { padding: 8px 14px; font-size: 12.5px; }

/* Investor database showcase: sample rows + subscription panel */
.inv-split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.it-more {
  display: block; padding: 11px 20px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  background: var(--bg); border-top: 1px solid var(--line);
}
.it-more b { color: var(--ink); }
.plan-panel {
  background: var(--bg-alt);
  border: 1.5px solid var(--cocoa);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.pp-price { display: flex; align-items: baseline; gap: 6px; }
.pp-price b {
  font-family: 'Fraunces', serif; font-size: 34px; font-weight: 700;
  letter-spacing: -1px; color: var(--cocoa);
}
.pp-price span { font-size: 13px; color: var(--ink-3); }
.pp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pp-list li { font-size: 13.5px; color: var(--ink-2); padding-left: 22px; position: relative; }
.pp-list li::before { content: '✓'; position: absolute; left: 0; color: var(--c-fund); font-weight: 700; }
.pp-foot { font-size: 11.5px; color: var(--ink-3); }
.plan-panel .btn { justify-content: center; }

/* Course product card — editorial cover, merchandised (§3.3/§3.5) */
.grid-courses { grid-template-columns: repeat(3, 1fr); }
.course-v2 {
  background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.section.alt .course-v2 { background: var(--bg); }
.course-v2:hover { transform: translateY(-2px); border-color: var(--ink-3); box-shadow: 0 12px 24px -16px rgba(42,26,10,0.18); }
.cc-cover {
  background: var(--bg-deep); border-bottom: 1px solid var(--line-2);
  padding: 16px; min-height: 150px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.cc-cover .tag { background: var(--bg-alt); }
.cc-cover-title {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600;
  letter-spacing: -0.5px; line-height: 1.18; color: var(--cocoa);
  margin-top: auto; padding-top: 26px; text-wrap: pretty;
}
.cc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cc-instr { font-size: 12.5px; color: var(--ink-3); }
.cc-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.cc-meta .rating { color: var(--ink); font-weight: 600; }
.cc-meta .rating .star { color: var(--sun-deep); }
.cc-price { display: flex; align-items: baseline; gap: 8px; border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: auto; }
.cc-price .now { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--ink); }
.cc-price .was { font-size: 12px; color: var(--ink-4); text-decoration: line-through; }
.cc-price .len { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

/* Case-study feature inside Learn */
.learn-case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-top: 16px; }
.edit-cover.compact { min-height: 250px; padding: 24px; }
.edit-cover.compact .ec-title { font-size: 25px; letter-spacing: -0.8px; padding-top: 32px; }

/* Buy/Sell marketplace grid (3 cards, no orphans at any width) */
.grid-biz { grid-template-columns: repeat(3, 1fr); }

/* Vendor card — text-first (§3.3), with visible vetting mark (§4) */
.grid-vendors { grid-template-columns: repeat(4, 1fr); }
.vendor-card {
  background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.section.alt .vendor-card { background: var(--bg); }
.vendor-card:hover { transform: translateY(-2px); border-color: var(--ink-3); box-shadow: 0 12px 24px -16px rgba(42,26,10,0.18); }
.vc-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vc-head > span:not(.mono) { display: flex; flex-direction: column; min-width: 0; }
.vc-name { font-size: 15px; font-weight: 650; color: var(--ink); line-height: 1.2; }
.vc-vet { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--c-fund); margin-top: 2px; }
.vc-scope { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; flex: 1; }
.vc-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line-2); padding-top: 9px; }
.vc-price { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--ink); }
.vc-rating { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.vc-rating .star { color: var(--sun-deep); }
.vc-rating span { color: var(--ink-3); font-weight: 400; }

/* Mini strip — folds a sibling product (SaaS / deals / franchises) into one line */
.mini-strip {
  display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap;
  margin-top: 14px; padding: 13px 18px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13px; color: var(--ink-2);
}
.section.alt .mini-strip { background: var(--bg); }
.ms-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; color: var(--ink-3); flex-shrink: 0; }
.mini-strip b { font-weight: 650; color: var(--ink); }
.mini-strip .view-all { margin-left: auto; }

/* Earn — partner-program dark band */
.earn-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center; }
.earn-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: 26px; }
.earn-stat b {
  display: block; font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700;
  letter-spacing: -1px; color: #fff8e7;
}
.earn-stat span {
  display: block; margin-top: 5px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px;
  color: #b8a98e;
}
.earn-side {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.earn-side h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 650; color: #fff8e7; }
.earn-side .es-sub { font-size: 12px; color: #b8a98e; margin-bottom: 10px; }
.earn-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13.5px; color: #f5efde; font-weight: 600;
}
.earn-row span { font-size: 12px; color: #b8a98e; font-weight: 500; }
.earn-row:last-of-type { border-bottom: 0; }
.earn-side .btn { width: 100%; justify-content: center; margin-top: 14px; }

/* Investor sample table: Investor | Stage | Ticket | Portfolio */
.index-table.it-inv { --cols: 2.1fr 1.1fr 1fr 1fr; }
/* Startups (recently listed): Company | Stage | City | Listed */
.index-table.it-start { --cols: 2.4fr 1fr 1fr 0.8fr; }
/* Generic 3-col offer tables (composition / functions / categories / territories) */
.index-table.it-3col { --cols: 2.2fr 1fr 1.2fr; }
/* Flat nav (§0.1-B): plain links reuse the trigger style; hover underline on self */
.nav > a.nav-trigger:hover::after,
.nav > a.nav-trigger:focus-visible::after { transform: scaleX(1); }
/* Flat mobile drawer list */
.mobile-flat { border-top: 1px solid var(--line-soft); }
.mobile-flat a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-flat a .ct { font-size: 12px; font-weight: 650; color: var(--ink-3); }
/* Earn band: qualitative program facts (§0.1-A) */
.earn-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.earn-list li { font-size: 14.5px; color: #f5efde; padding-left: 24px; position: relative; line-height: 1.5; }
.earn-list li::before { content: '✓'; position: absolute; left: 0; color: var(--sun); font-weight: 700; }
.section.deep .eyebrow { color: #b8a98e; }
.section.deep .section-count { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); color: #fff8e7; }
.section.deep .view-all { color: var(--sun); }

/* v2.1 responsive */
@media (max-width: 1180px) {
  .inv-split { grid-template-columns: 1.35fr 1fr; }
}
@media (max-width: 980px) {
  .inv-split { grid-template-columns: 1fr; }
  .learn-case { grid-template-columns: 1fr; }
  .grid-vendors { grid-template-columns: repeat(2, 1fr); }
  .earn-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .offer-line { font-size: 14px; margin: -6px 0 18px; }
  .intent-link { padding: 7px 12px; font-size: 12.5px; }
  .grid-courses, .grid-biz { grid-template-columns: 1fr; }
  .cc-cover { min-height: 120px; }
  .cc-cover-title { font-size: 18px; }
  .earn-stats { gap: 16px 20px; }
  .earn-stat b { font-size: 26px; }
  .index-table.it-inv { --cols: 1.9fr 1fr 1fr; } /* stage (it-sm) hides */
  .index-table.it-start { --cols: 2fr 1fr 0.8fr; } /* stage (it-sm) hides */
}
@media (max-width: 540px) {
  .grid-vendors { grid-template-columns: 1fr; }
  .plan-panel { padding: 20px; }
  .mini-strip .view-all { margin-left: 0; }
}

/* ====================================================================
   ===== v2.2 — hero storefront tab panel (brief §3.5.1, owner) ========
   Tablist labels carry live counts; each panel is a fixed-height window
   of 3–4 real rows in that product's native format. SSR: without JS the
   panels stack; html.js enables the show/hide + fixed height.
   ==================================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hero-tabs {
  margin-top: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ht-list {
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.ht-list::-webkit-scrollbar { display: none; }
.ht-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 13px 13px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  border-right: 1px solid var(--line-soft);
}
.ht-tab .ct { font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.ht-tab:hover { color: var(--ink); }
.ht-tab[aria-selected="true"] { color: var(--ink); background: var(--bg-alt); }
.ht-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--sun);
}
.ht-panel { padding: 4px 18px 0; }
html.js .ht-panel {
  display: none;
  /* min-height (not height): a fixed height locked every tab to the
     tallest one's content, leaving a large blank gap under shorter tabs
     (e.g. Jobs) before the footer. min-height keeps the panel from
     collapsing on short tabs while letting taller ones grow to fit. */
  min-height: 320px;
  flex-direction: column;
  overflow: hidden;
}
html.js .ht-panel.active { display: flex; }
.hp-foot {
  /* Was margin-top:auto, which pushes the footer to the bottom of the
     panel's min-height regardless of how short the actual content is —
     that's what produced the visible gap on shorter tabs (e.g. Jobs). A
     fixed gap keeps some breathing room without artificially stretching it. */
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 2px 13px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-3);
}
/* embedded native formats lose their own chrome inside the window */
.ht-panel .index-table { border: 0; border-radius: 0; background: transparent; }
.ht-panel .it-head { background: transparent; padding-left: 2px; padding-right: 2px; }
.ht-panel .it-row { padding: 9px 2px; }
.ht-panel .jobs-list { border: 0; border-radius: 0; background: transparent; }
.ht-panel .job-row { padding: 10px 2px; }
/* Members tab: rows reuse the jobs list; the badge and skill chips are its own. */
.mem-avail {
  display: inline-block; vertical-align: 1px; margin-left: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; background: #e6f4ea; color: #1f7a3a;
}
.mem-skills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.mem-skills span { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--bg-deep); color: var(--ink-2); }
.hp-empty { padding: 18px 2px; font-size: 13.5px; color: var(--ink-3); }
.hp-foot a:not(.view-all) { color: inherit; text-decoration: none; }
.hp-foot a:not(.view-all) b { color: #1f7a3a; }
.hp-foot a:not(.view-all):hover b { text-decoration: underline; }
.ht-panel .edit-side { padding-top: 4px; }
.ht-panel .edit-line { padding: 11px 0; border-bottom-color: var(--line-soft); }
.ht-panel .edit-line:first-child { padding-top: 8px; }
.hp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 12px; }
.hp-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hp-card {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hp-card .hp-title { font-size: 14.5px; font-weight: 650; color: var(--ink); line-height: 1.25; }
.hp-card .hp-sub { font-size: 12px; color: var(--ink-3); }
.hp-card .hp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  border-top: 1px dashed var(--line-2);
  padding-top: 8px;
  margin-top: auto;
}
.hp-card .hp-price { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hp-card .hp-meta { font-size: 11.5px; color: var(--ink-3); text-align: right; }
.hp-card .vc-head { gap: 10px; }

/* slim sub-stat strip: only figures NOT already in the tab labels */
.hero-substats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
}
.hero-substats b { font-weight: 650; color: var(--ink); }
.hero-substats .delta { color: var(--c-fund); font-weight: 650; font-size: 12px; }

@media (max-width: 768px) {
  .ht-tab { padding: 11px 14px; font-size: 12.5px; }
  .ht-panel { padding: 2px 14px 0; }
  .hp-grid { gap: 10px; }
}
@media (max-width: 540px) {
  html.js .ht-panel { min-height: 384px; }
  .hp-grid, .hp-grid.cols-4 { grid-template-columns: 1fr; }
  .hp-grid > *:nth-child(n+3) { display: none; } /* phone: 2 cards per panel */
  .ht-panel .edit-line { padding: 7px 0; }
  .ht-panel .el-title { font-size: 14.5px; }
}

/* Phone */
@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .header-row1 { gap: 10px; padding: 10px 0; }
  .brand-logo { height: 30px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sun { padding: 8px 12px; font-size: 12.5px; }

  .ticker-label { display: none; }
  .ticker::before { display: none; }
  .ticker-track { padding-left: 16px; }

  .stat { flex: 1 1 50%; padding: 12px 14px; }
  .stat-label { font-size: 9.5px; }
  .stat-value { font-size: 19px; }
  .stat-meta { font-size: 11px; }

  .section { padding: 32px 0; }
  .section-title { font-size: 21px; }
  .section-count { font-size: 11px; padding: 3px 8px; }

  .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; gap: 10px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-feature { grid-column: span 1; }
  .case-feature-thumb { height: 140px; }
  .deals-strip { grid-template-columns: 1fr; }
  .terr-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .card { padding: 14px; }
  .course-thumb { height: 100px; margin: -14px -14px 4px; }
  .course-thumb .ico { font-size: 38px; }

  .fr-amount { font-size: 22px; }
  .biz-name { font-size: 16px; }
  .biz-price { font-size: 17px; }

  .job-row {
    grid-template-columns: 36px 1fr auto;
    padding: 11px 12px;
    gap: 9px;
  }
  .job-title { font-size: 13px; }
  .job-company { font-size: 11px; }
  .job-pay { font-size: 11.5px; font-weight: 700; }

  .earn-strip { padding: 16px 14px; gap: 14px; }
  .earn-strip .es-stat { font-size: 19px; flex: 1 1 45%; }
  .earn-strip .es-stat span { font-size: 10px; margin-top: 4px; }

  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand { grid-column: span 1; }
  .footer-brand p { max-width: 100%; }
  .mobile-drawer { width: 92vw; }
}

/* ================================================================
   APP PORT LAYER — everything below is app-specific (not in the
   design mock). v1-parity card additions + sanctioned blocks.
   ================================================================ */

.case-feature-stack {
  grid-column: 1;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.case-feature-stack .case-feature { flex: 1; grid-row: auto; }
.case-feature-stack .case-feature-thumb { height: 150px; }
.case-feature-excerpt {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.saas-loc { font-size: 11.5px; color: var(--ink-3); }
.saas-cta {
  margin-top: auto;
  font-size: 12px; font-weight: 700;
  color: var(--c-saas, #6b4e9e);
}
.deal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deal-badge {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--sun); border: 1px solid rgba(255,255,255,0.18);
  padding: 3px 9px; border-radius: 999px;
}

@media (max-width: 1180px) {
  .case-feature-stack { grid-column: span 3; grid-row: auto; flex-direction: row; }
  .case-feature-stack .case-feature-thumb { height: 160px; }
}

/* Flat nav active state (v2 port) — same underline the hover uses */
.nav > a.nav-trigger[aria-current="page"] { font-weight: 700; }
.nav > a.nav-trigger[aria-current="page"]::after { transform: scaleX(1); }

/* === Express+Nunjucks port: accent system via data-module attribute === */
[data-module="startups"]  { --m-accent: var(--c-founder); --m-soft: var(--c-founder-soft); }
[data-module="investors"] { --m-accent: var(--c-invest);  --m-soft: var(--c-invest-soft);  }
[data-module="jobs"]      { --m-accent: var(--c-job);     --m-soft: var(--c-job-soft);     }
[data-module="learn"]     { --m-accent: var(--c-learn);   --m-soft: var(--c-learn-soft);   }
[data-module="services"]  { --m-accent: var(--c-case);    --m-soft: var(--c-case-soft);    }
[data-module="earn"]      { --m-accent: var(--c-agent);   --m-soft: var(--c-agent-soft);   }

/* === Sprint 2.5 sanctioned: auth-aware user menu in header === */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}
.user-menu-trigger:hover { background: var(--bg-deep); }
.user-avatar-tile {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--c-founder), #7a214a);
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.user-caret { font-size: 10px; color: var(--ink-3); }
.user-menu-panel {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px -8px rgba(42,26,10,.18), 0 2px 8px -2px rgba(42,26,10,.08);
  overflow: hidden; z-index: 200;
}
.user-menu.open .user-menu-panel { display: block; }
.user-menu-panel a,
.user-menu-signout {
  display: block; width: 100%; text-align: left;
  padding: 10px 14px;
  font-size: 13px; color: var(--ink-2);
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
.user-menu-panel a:hover,
.user-menu-signout:hover { background: var(--bg-deep); color: var(--ink); }
.user-menu-panel a + a,
.user-menu-panel form { border-top: 1px solid var(--line-soft); }
.user-menu-signout { color: var(--c-deal); }
/* === end Sprint 2.5 sanctioned block === */

/* === Sprint 2.6 sanctioned: member sidebar layout + styling === */
.member-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  padding: 32px 0 64px;
  min-height: calc(100vh - 120px);
  align-items: start;
}
.member-main { padding-left: 32px; min-width: 0; }

/* Grace banner — a plan that has lapsed but still works for its seven-day grace window.
   Amber rather than red: nothing has been lost yet, and the member has something to do
   about it. Sits above the page content on every member route. */
.member-grace-banner {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #713f12;
  font-size: 14px;
  line-height: 1.55;
}
.member-grace-banner strong { display: block; margin-bottom: 2px; color: #78350f; }

/* One-time consent prompt. Neutral, not alarming: it is an invitation, not a warning,
   and it must not compete with the grace banner directly above it. */
.member-consent-prompt {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background: var(--bg-alt, #fff);
  font-size: 14px;
  line-height: 1.55;
}
.member-consent-prompt strong { display: block; margin-bottom: 4px; font-size: 15px; }
.member-consent-prompt p { margin: 0 0 14px; color: var(--m-text-muted, #6b7280); }
.member-consent-prompt .mcp-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Plan comparison matrix — a table, styled as one. Group rows carry the feature label;
   the first column is sticky so the row label stays visible while the plan columns scroll
   on a phone. Tick and dash are text, not icons, so they print and read aloud. */
.plan-matrix th[scope="row"] .pm-help { display: block; font-size: 12px; font-weight: 400; color: var(--m-text-muted, #6b7280); margin-top: 2px; line-height: 1.35; }
.plan-matrix td.partial span { font-size: 11.5px; font-weight: 600; color: #a3631a; }
.plan-matrix-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: var(--bg-alt, #fff); }
.plan-matrix { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.plan-matrix th, .plan-matrix td { padding: 10px 14px; border-bottom: 1px solid var(--line, #eee); text-align: center; vertical-align: middle; }
.plan-matrix thead th { font-weight: 700; font-size: 14px; background: var(--bg-deep, #f7f7f5); position: sticky; top: 0; }
.plan-matrix thead th span { display: block; font-weight: 500; font-size: 12.5px; color: var(--m-text-muted, #6b7280); margin-top: 2px; }
.plan-matrix th[scope="row"], .plan-matrix thead th:first-child { text-align: left; font-weight: 500; position: sticky; left: 0; background: var(--bg-alt, #fff); min-width: 220px; }
.plan-matrix .pm-group th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-text-muted, #6b7280); background: var(--bg-deep, #f7f7f5); padding-top: 14px; }
.plan-matrix td.yes { color: #1f7a3a; font-weight: 700; }
.plan-matrix td.no  { color: var(--m-text-muted, #9ca3af); }
.plan-matrix tbody tr:last-child td, .plan-matrix tbody tr:last-child th { border-bottom: 0; }

/* Inbox — one list over five message tables. Unread rows carry a left rule and a heavier
   sender line; nothing else changes, so a long list still scans as one object. */
.inbox-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, #e5e7eb); }
.inbox-item a { display: block; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line, #e5e7eb); border-left: 3px solid transparent; color: inherit; text-decoration: none; }
.inbox-item a:hover { background: var(--bg-deep, #f7f7f5); }
.inbox-item.unread a { border-left-color: #f59e0b; }
.inbox-item.unread .ib-from { font-weight: 700; }
.ib-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; color: var(--m-text-muted, #6b7280); }
.ib-chip { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 4px; background: var(--bg-deep, #eef2f7); color: var(--m-text-heading, #374151); }
.ib-listing { font-weight: 500; color: var(--m-text-heading, #111827); }
.ib-when { margin-left: auto; white-space: nowrap; }
.ib-from { margin-top: 5px; font-size: 14.5px; }
.ib-preview { margin-top: 2px; font-size: 13.5px; color: var(--m-text-muted, #6b7280); line-height: 1.5; }

/* Dashboard feed. Attention rows first (amber for the plan, neutral otherwise), then the
   two-column "new in your topics" block, then the counters under their own heading. */
.dash-attention { display: grid; gap: 8px; margin-bottom: 22px; }
.dash-attn { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--line, #e5e7eb); border-left: 4px solid var(--line-2, #cdd3cc); border-radius: 8px; background: var(--bg-alt, #fff); font-size: 14px; }
.dash-attn-plan { border-left-color: #f59e0b; background: #fffbeb; }
.dash-attn a { white-space: nowrap; font-weight: 600; }
.dash-feed { margin-bottom: 30px; }
.dash-feed-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-feed-head h2, .dash-section-title { font-size: var(--text-lg, 18px); font-weight: var(--weight-semibold, 600); color: var(--m-text-heading, #111827); margin: 0; }
.dash-section-title { margin-bottom: 12px; }
.dash-feed-topics { font-size: 12.5px; color: var(--m-text-muted, #6b7280); }
.dash-feed-empty { font-size: 14px; color: var(--m-text-muted, #6b7280); padding: 14px 16px; border: 1px dashed var(--line-2, #cdd3cc); border-radius: 8px; margin: 0; }
.dash-feed-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.dash-feed-cols h3 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--m-text-muted, #6b7280); margin: 0 0 6px; }
.dash-feed-cols ul { list-style: none; margin: 0; padding: 0; }
.dash-feed-cols li { padding: 8px 0; border-bottom: 1px solid var(--line, #eee); }
.dash-feed-cols li a { font-weight: 600; color: var(--m-text-heading, #111827); text-decoration: none; }
.dash-feed-cols li span { display: block; font-size: 12.5px; color: var(--m-text-muted, #6b7280); margin-top: 2px; }
.dash-feed-more { display: inline-block; margin-top: 8px; font-size: 13px; }
.member-grace-banner a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: #92400e;
  text-decoration: underline;
}
.member-sidebar {
  position: sticky;
  top: 112px;
  border-right: 1px solid var(--line);
  padding: 0 20px 24px 0;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
}
.member-sidebar-section { margin-bottom: 20px; }
.member-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 4px 8px;
}
.member-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .12s, color .12s;
  position: relative;
  line-height: 1.3;
}
.member-sidebar-link:hover { background: var(--bg-deep); color: var(--ink); }
.member-sidebar-link.active {
  background: var(--bg-deep);
  color: var(--cocoa);
  font-weight: 600;
}
.member-sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -1px; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--cocoa);
  border-radius: 0 2px 2px 0;
}
.member-sidebar-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
  opacity: .65;
}
.member-sidebar-link.active .member-sidebar-icon,
.member-sidebar-link:hover .member-sidebar-icon { opacity: 1; }
.member-sidebar-badge {
  margin-left: auto;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--ink-3);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.member-sidebar-badge-alert {
  background: var(--c-deal-soft);
  color: var(--c-deal);
  border-color: var(--c-deal-soft);
}
.member-sidebar-footer {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.member-sidebar-avatar {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--c-founder), #7a214a);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.member-sidebar-user-name {
  font-size: 12px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 110px;
}
.member-sidebar-logout {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--ink-3); border-radius: 4px;
  display: flex; align-items: center;
  transition: color .12s;
}
.member-sidebar-logout:hover { color: var(--c-deal); }
@media (max-width: 980px) {
  .member-shell { grid-template-columns: 1fr; padding-top: 16px; }
  .member-sidebar { display: none; }
  .member-main { padding-left: 0; }
}
/* === end Sprint 2.6 sanctioned block === */

/* === Editorial article typography (v2 port, 2026-07-10) — blog/case detail === */
.article-head  { max-width: 780px; }
.article-title {
  font-family: 'Fraunces', serif;
  font-size: 40px; font-weight: 600; line-height: 1.15;
  letter-spacing: -1px; color: var(--ink);
  margin: 10px 0 14px; text-wrap: pretty;
}
.article-meta { font-size: 13px; color: var(--ink-3); }
.article-body { max-width: 780px; }
.prose { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.prose h1, .prose h2 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600; letter-spacing: -0.5px; color: var(--ink); margin: 36px 0 12px; }
.prose h3, .prose h4 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.prose p  { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose a  { color: var(--c-invest); text-decoration: underline; text-underline-offset: 2px; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose blockquote {
  border-left: 3px solid var(--sun);
  background: var(--bg-deep);
  padding: 14px 20px; margin: 24px 0;
  border-radius: 0 10px 10px 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.prose td, .prose th { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; }
.prose iframe { max-width: 100%; }

/* Tags inside flex-column cards must not stretch full width */
.hp-card .tag, .hp-card .biz-tag { align-self: flex-start; }

/* === Pagination (v2 port, 2026-07-10) — design-token version of the BEM
       .pagination used by list pages moving onto ds/layout (partner-deals…) === */
.pagination { display: flex; justify-content: center; padding: 32px 0 8px; }
.pagination__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination__link {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); border: 1px solid var(--line-2); background: var(--bg-alt);
  transition: all 0.15s;
}
.pagination__link:hover { background: var(--bg-deep); color: var(--ink); }
.pagination__item--active .pagination__link {
  background: var(--cocoa); border-color: var(--cocoa);
  color: #fff8e7; pointer-events: none;
}
