/* Skilark — Dark Tech Dashboard Theme */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  /* Foundation */
  --cream: #0F1117;
  --warm-white: #1A1D27;
  --ink: #E2E8F0;
  --stone: #94A3B8;
  --pebble: #2D3348;

  /* Accents */
  --sage: #10B981;
  --sage-light: #064E3B;
  --blossom: #F43F5E;
  --blossom-light: #4C1D2E;
  --sky: #06B6D4;
  --golden: #F59E0B;
  --earth: #D97706;
  --clay: #EF4444;

  /* Semantic */
  --positive: #10B981;
  --positive-bg: #064E3B;
  --negative: #EF4444;
  --negative-bg: #4C1D1D;

  /* Aliases (used in Find My Fit and trends) */
  --amber: #F59E0B;
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --text-primary: #E2E8F0;
  --emerald: #10B981;
  --card-bg: #1A1D27;

  /* System */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-pill: 100px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
  --cream: #F8F9FA;
  --warm-white: #FFFFFF;
  --pebble: #D1D5DB;
  --ink: #1F2937;
  --stone: #6B7280;
  --sage: #059669;
  --sage-light: #D1FAE5;
  --blossom: #E11D48;
  --blossom-light: #FFE4E6;
  --sky: #0891B2;
  --golden: #D97706;
  --positive: #059669;
  --positive-bg: #D1FAE5;
  --negative: #DC2626;
  --negative-bg: #FEE2E2;
  --amber: #D97706;
  --text: #1F2937;
  --text-muted: #6B7280;
  --text-primary: #1F2937;
  --emerald: #059669;
  --card-bg: #FFFFFF;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
}

/* Keep top nav dark in both themes (scope to body > nav to avoid breadcrumb nav) */
[data-theme="light"] body > nav {
  background: #1A1D27;
  border-bottom-color: #2D3348;
}
[data-theme="light"] body > nav .brand { color: #E2E8F0; }
[data-theme="light"] body > nav a { color: #94A3B8; }
[data-theme="light"] body > nav a:hover { color: #E2E8F0; }
[data-theme="light"] body > nav a.active { color: #10B981; border-bottom-color: #10B981; }
[data-theme="light"] body > nav .nav-beta { color: #F59E0B; border-color: #F59E0B; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--sage); }
a:visited { color: var(--sage); }

/* Focus */
*:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Navigation ─── */
nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--pebble);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.12em;
  margin-right: auto;
  text-transform: uppercase;
}
nav .brand-icon { flex-shrink: 0; }
nav .brand-ark { color: #F97316; }
nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--stone);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
  position: relative;
}
nav a:hover { color: var(--ink); }
nav a.active {
  color: var(--sage);
  border-bottom-color: var(--sage);
  font-weight: 500;
}
nav .nav-beta {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: var(--radius-pill);
  padding: 1px 5px;
  margin-left: 2px;
  vertical-align: super;
  letter-spacing: 0.05em;
}

/* ─── Layout ─── */
.container { max-width: 1080px; margin: 0 auto; padding: 24px; }
h1 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* ─── Page header with decorative rule ─── */
.page-header {
  padding: 48px 0 24px;
}
.breadcrumb + .page-header {
  padding-top: 12px;
}
.page-header h1 {
  margin-bottom: 8px;
}
.page-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
  margin-top: 12px;
  opacity: 0.5;
}

/* ─── Page intro text ─── */
.page-intro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 75ch;
}

/* ─── Stat cards ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:nth-child(2) { border-top-color: var(--sky); }
.stat-card:nth-child(3) { border-top-color: var(--golden); }
.stat-card:nth-child(4) { border-top-color: var(--blossom); }
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 1px rgba(16, 185, 129, 0.1);
}
.stat-card .label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.stat-card .value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}
.stat-card .subtitle {
  font-size: 0.8125rem;
  color: var(--stone);
  margin-top: 4px;
}

/* ─── Chart cards ─── */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.chart-card {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease-out;
}
.chart-card:hover {
  border-color: var(--sage);
}
.chart-card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

/* ─── Tables ─── */
.table-card {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  transition: border-color 0.25s ease-out;
}
.table-card:hover {
  border-color: var(--sage);
}
.table-card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
.table-footer {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 12px;
  margin-bottom: 0;
}
.table-footer a {
  color: var(--sage);
  text-decoration: none;
  font-weight: 500;
}
.table-footer a:hover {
  text-decoration: underline;
}
.chart-note {
  font-size: 0.8125rem;
  color: var(--stone);
  margin-top: 12px;
  font-style: italic;
}
table { width: 100%; border-collapse: collapse; }
th {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--pebble);
}
td {
  font-size: 0.9rem;
  color: var(--ink);
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--pebble) 50%, transparent);
}
tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--pebble) 25%, transparent);
}
tbody tr:hover {
  background: var(--sage-light);
}

/* Clickable skill rows */
tr[data-skill] {
  cursor: pointer;
  transition: background 0.15s ease;
}
tr[data-skill].selected {
  background: var(--sage-light);
  font-weight: 500;
}

/* ─── Skill detail panel ─── */
.skill-detail {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}
.skill-detail h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--sage-light);
  color: var(--sage);
}

.badge-new {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(96, 165, 250, 0.12);
  color: #60A5FA;
}

/* ─── Delta badges ─── */
.delta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}
.delta.positive { color: var(--positive); background: var(--positive-bg); }
.delta.negative { color: var(--negative); background: var(--negative-bg); }
.delta.neutral { color: var(--stone); background: var(--pebble); }

/* ─── Role tabs ─── */
.role-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.role-tab {
  font-family: var(--font-body);
  padding: 8px 16px;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-pill);
  background: var(--warm-white);
  color: var(--stone);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 400;
  transition: all 0.2s ease-out;
}
.role-tab:hover {
  color: var(--sage);
  border-color: var(--sage);
  background: var(--sage-light);
}
.role-tab.active {
  background: var(--sage);
  color: var(--cream);
  border-color: var(--sage);
  font-weight: 500;
}
.role-tab .tab-count {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 4px;
}

/* ─── Trend columns ─── */
.trend-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

/* ─── Analyst take ─── */
.analyst-take {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-left: 3px solid var(--sage);
  border-radius: 4px 12px 12px 4px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.analyst-take .take-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.analyst-take p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--ink);
}

/* ─── Page editorial ─── */
.page-editorial {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-left: 3px solid var(--sage);
  border-radius: 4px 12px 12px 4px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  max-width: 75ch;
}
.page-editorial h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-editorial p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--ink);
  font-size: 0.95rem;
}
.page-editorial p:last-child {
  margin-bottom: 0;
}
.page-editorial a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  transition: border-color 0.2s ease-out;
}
.page-editorial a:hover {
  border-bottom-color: var(--sage);
}

/* ─── Notable callout (landing page) ─── */
.notable-callout {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-left: 2px solid var(--sage);
  border-radius: 4px 8px 8px 4px;
  padding: 24px;
  margin-bottom: 40px;
  max-width: 75ch;
}
.notable-callout .take-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.notable-callout ul {
  list-style: none;
  padding: 0;
}
.notable-callout li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--ink);
  font-size: 0.95rem;
  padding-left: 16px;
  position: relative;
}
.notable-callout li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}
.notable-callout a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.9rem;
  transition: border-color 0.2s ease-out;
}
.notable-callout a:hover {
  border-bottom-color: var(--sage);
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--stone);
  font-size: 0.95rem;
  font-style: italic;
}

/* ─── Placeholder page ─── */
.placeholder {
  text-align: center;
  padding: 4rem 1rem;
}
.placeholder h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.placeholder p { color: var(--stone); }

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--stone);
  font-size: 0.8125rem;
  margin-top: 48px;
  position: relative;
}
footer::before {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--sage), var(--sky));
  border-radius: 1px;
  margin: 0 auto 24px;
  opacity: 0.6;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 400;
  transition: color 0.2s ease-out;
}
.footer-links a:hover { color: var(--sage); }
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--stone);
  opacity: 0.7;
  max-width: 56ch;
  margin: 0 auto 8px;
  line-height: 1.5;
}
.footer-disclaimer a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}
.footer-disclaimer a:hover {
  border-bottom-color: var(--sage);
}
.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--stone);
  margin-bottom: 8px;
}

.theme-toggle-footer {
  background: none;
  border: none;
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s ease-out;
  padding: 0;
}
.theme-toggle-footer:hover { color: var(--sage); }

/* ─── Prose content (legal pages) ─── */
.prose {
  max-width: 68ch;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--ink);
}
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
}
.prose p { margin-bottom: 16px; }
.prose ul {
  margin-bottom: 16px;
  padding-left: 24px;
}
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--sage); }
.prose a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  transition: border-color 0.2s ease-out;
}
.prose a:hover { border-bottom-color: var(--sage); }
.prose strong { font-weight: 600; color: var(--ink); }

/* ─── Hiring Map ─── */
.map-container {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
  overflow: hidden;
}
.map-container svg {
  width: 100%;
  height: auto;
  display: block;
}
.map-tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  max-width: 240px;
}
.map-tooltip.visible { opacity: 1; }
.map-tooltip .tt-city {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.map-tooltip .tt-count {
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 6px;
}
.map-tooltip .tt-company {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  color: var(--stone);
  font-size: 0.75rem;
}
.map-tooltip .tt-company span:last-child {
  font-weight: 500;
  color: var(--ink);
}

/* ─── Entrance animations ─── */
@media (prefers-reduced-motion: no-preference) {
  .chart-card, .table-card, .analyst-take, .page-editorial, .editorial-cta {
    opacity: 0;
    transform: translateY(8px);
    animation: gentle-rise 0.5s ease-out forwards;
  }
  .chart-card { animation-delay: 0.3s; }
  .table-card { animation-delay: 0.35s; }
  .analyst-take, .page-editorial { animation-delay: 0.15s; }
  .editorial-cta { animation-delay: 0.4s; }
}
@keyframes gentle-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .charts-grid { grid-template-columns: 1fr; }
  .trend-columns { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 16px; }
  nav {
    gap: 16px;
    padding: 12px 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  nav .brand { flex-shrink: 0; margin-right: 16px; }
  nav a { flex-shrink: 0; white-space: nowrap; }
  .stat-card .value { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0;
  padding-top: 24px;
}
.breadcrumb a {
  color: var(--sage);
  text-decoration: none;
  transition: opacity 0.15s;
}
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb span { color: var(--ink); }

/* Table intro text */
.table-intro {
  font-size: 0.9rem;
  color: var(--stone);
  margin-bottom: 1rem;
}

/* ─── Editorial page ─── */
.editorial-meta {
  font-size: 0.875rem;
  color: var(--stone);
  margin-bottom: 24px;
  font-weight: 400;
}
.editorial-stats {
  margin-bottom: 32px;
}
.editorial-prose {
  max-width: 72ch;
  margin-bottom: 40px;
}
.editorial-prose h2 {
  margin-top: 36px;
}
.editorial-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
.editorial-cta {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-left: 3px solid var(--sage);
  border-radius: 4px 12px 12px 4px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.editorial-cta p {
  font-size: 0.95rem;
  color: var(--stone);
  margin-bottom: 12px;
}
.editorial-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.editorial-links a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--sage);
  text-decoration: none;
  transition: all 0.2s ease-out;
}
.editorial-links a:hover {
  background: var(--sage-light);
  border-color: var(--sage);
}

/* ─── Editorial showcase cards ─── */
.editorial-showcase {
  margin: 32px 0 0;
}
.editorial-showcase h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.editorial-showcase .section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.editorial-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.editorial-card {
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.25s ease-out;
}
.editorial-card:hover {
  border-color: var(--sage);
}
.editorial-card .ed-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--sage);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  margin-bottom: 12px;
  width: fit-content;
}
.editorial-card .ed-badge.latest {
  background: var(--sage);
  color: var(--cream);
}
.editorial-card .ed-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}
.editorial-card .ed-date {
  font-size: 0.78rem;
  color: var(--stone);
  margin-bottom: 10px;
}
.editorial-card .ed-desc {
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.55;
  flex: 1;
}
.editorial-card .ed-read {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage);
  margin-top: 14px;
}

/* ─── Find My Fit: search section ─── */
.search-section {
  margin-bottom: 32px;
}
.search-input-wrap {
  display: flex;
  gap: 8px;
  max-width: 640px;
}
.search-input-wrap input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-sm);
  background: var(--warm-white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease-out;
}
.search-input-wrap input:focus {
  border-color: var(--sage);
}
.search-input-wrap input::placeholder {
  color: var(--stone);
}
.search-input-wrap button {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--sage);
  color: var(--cream);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease-out, transform 0.15s ease-out;
}
.search-input-wrap button:hover {
  background: #0ea572;
  transform: translateY(-1px);
}
.search-hint {
  font-size: 0.8125rem;
  color: var(--stone);
  margin-top: 10px;
  max-width: 640px;
}
.hint-example {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--stone) 40%, transparent);
  transition: color 0.15s, border-color 0.15s;
}
.hint-example:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.hint-sep {
  color: var(--pebble);
  margin: 0 2px;
}

/* ─── Find My Fit: loading & error ─── */
.loading-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--stone);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--pebble);
  border-top-color: var(--sage);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.error-state {
  background: var(--negative-bg);
  border: 1px solid var(--negative);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: var(--negative);
  font-size: 0.9rem;
}

/* ─── Find My Fit: title pills ─── */
.titles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.title-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--warm-white);
}

/* ─── Homepage CTA ─── */
.fit-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: 28px;
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-left: 3px solid var(--amber);
  border-radius: 4px 10px 10px 4px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
  box-shadow: var(--shadow-card);
}
.fit-cta:hover {
  border-left-color: var(--sage);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.fit-cta-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.fit-cta-text {
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}
.fit-cta-text strong { color: var(--ink); }
.fit-cta-arrow {
  font-size: 1.1rem;
  color: var(--stone);
  flex-shrink: 0;
  transition: transform 0.2s ease-out;
}
.fit-cta:hover .fit-cta-arrow { transform: translateX(3px); }

/* ─── Find My Fit: compact 4-col charts ─── */
.fit-charts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.fit-charts-row .chart-card {
  padding: 16px;
}
.fit-charts-row .chart-card h2 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}
@media (max-width: 1000px) {
  .fit-charts-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fit-charts-row { grid-template-columns: 1fr; }
}

/* Skill-role heatmap */
.heatmap-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.heatmap-table th { text-align: center; padding: 8px 6px; font-weight: 500; color: var(--sage); white-space: nowrap; }
.heatmap-table th:first-child { text-align: left; }
.heatmap-table td { text-align: center; padding: 6px; }
.heatmap-table td:first-child { text-align: left; font-weight: 500; color: var(--text); white-space: nowrap; }
.heatmap-cell { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; min-width: 40px; }

/* ─── Find My Fit: expandable company cards ─── */
.company-expand {
  border-bottom: 1px solid rgba(45, 51, 72, 0.5);
}
.company-expand:last-child { border-bottom: none; }
.company-expand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.company-expand-header:hover { background: rgba(16, 185, 129, 0.05); }
.company-expand-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sage);
  text-decoration: none;
}
.company-expand-name:hover { text-decoration: underline; }
.company-expand-count {
  font-size: 0.8rem;
  color: var(--stone);
  margin-right: auto;
}
.company-careers-link {
  font-size: 0.8rem;
  color: var(--sky);
  text-decoration: none;
  white-space: nowrap;
}
.company-careers-link:hover { text-decoration: underline; }
.company-expand-chevron {
  font-size: 0.65rem;
  color: var(--stone);
  transition: transform 0.2s ease;
}
.company-expand.expanded .company-expand-chevron {
  transform: rotate(180deg);
}
.company-expand-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 4px 0 16px;
}
.company-expand.expanded .company-expand-body {
  max-height: 600px;
  padding: 4px 4px 12px 16px;
}
.company-listing {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 51, 72, 0.3);
}
.company-listing:last-child { border-bottom: none; }
a.company-listing:hover { color: var(--sage); }
.listing-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.listing-location {
  font-size: 0.75rem;
  color: var(--stone);
}
.listing-posted {
  font-size: 0.7rem;
  color: var(--stone);
}
.listing-new-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--sage);
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.company-fill-tag {
  font-size: 0.7rem;
  color: var(--stone);
  cursor: help;
  white-space: nowrap;
}
.fit-methodology {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--stone);
  border-left: 2px solid rgba(16, 185, 129, 0.3);
  line-height: 1.5;
}
.fit-methodology summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ─── Role Analysis: section navigation ─── */
.section-nav {
  display: inline-flex;
  gap: 4px;
  margin: 2rem 0;
  padding: 4px;
  background: color-mix(in srgb, var(--pebble) 30%, var(--cream));
  border-radius: var(--radius);
  border: none;
  flex-wrap: wrap;
}
.section-nav a {
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  color: var(--stone);
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  border-radius: calc(var(--radius) - 4px);
  border: none;
}
.section-nav a:hover {
  color: var(--ink);
}
.section-nav a.active {
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ─── Role Analysis: sections ─── */
.section {
  scroll-margin-top: 2rem;
}
.section:not(.section-visible) { display: none; }
.section.section-visible { display: block; }
.section-header {
  margin: 2rem 0 1.5rem;
  padding-top: 0;
  border-top: none;
}
.section:first-of-type .section-header {
  margin-top: 1rem;
  border-top: none;
}
.section-intro {
  color: var(--stone);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ─── Role Analysis: role grid and cards ─── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.role-card {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}
.role-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}
.role-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--ink);
}
.role-card .role-count {
  color: var(--stone);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.role-card .role-trend {
  font-size: 0.85rem;
  font-weight: 600;
}
.role-card .role-trend.positive { color: var(--positive); }
.role-card .role-trend.negative { color: var(--negative); }
.role-card .role-trend.neutral { color: var(--stone); }

/* ─── Role Analysis: detail panel ─── */
#role-detail-panel {
  display: none;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-sm);
}
#role-detail-panel h2 {
  margin-top: 0;
}
.detail-section {
  margin: 2rem 0;
}
.detail-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.skills-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.skills-compact .badge {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}
.back-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--pebble);
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.back-btn:hover {
  background: var(--sage);
  color: var(--cream);
}
.delta-summary {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--stone);
}

/* ─── Find My Fit: tabs ─── */
.fit-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fit-tab {
  padding: 10px 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.fit-tab:hover { color: var(--text-primary); }
.fit-tab.active {
  color: var(--emerald);
  border-bottom-color: var(--emerald);
}

/* ─── Find My Fit: upload zone ─── */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.04);
}
.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone .upload-link {
  color: var(--emerald);
  cursor: pointer;
  text-decoration: underline;
}
.upload-zone .upload-hint {
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.5;
}
.upload-filename {
  margin-top: 12px;
  color: var(--emerald);
  font-weight: 500;
}
#resume-submit {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
#resume-submit:disabled { opacity: 0.4; cursor: not-allowed; }
#resume-submit:not(:disabled):hover { opacity: 0.9; }
.upload-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0.6;
}

/* ─── Find My Fit: profile summary card ─── */
.profile-summary-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-top: 2px solid var(--emerald);
}
.profile-summary-card h2 { font-size: 1rem; margin-bottom: 12px; color: var(--text-primary); }
.profile-summary-card .profile-detail { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.profile-summary-card .profile-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.profile-summary-card .profile-skill-pill {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ─── Find My Fit: skill gap card ─── */
.skill-gap-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  border-top: 2px solid var(--golden);
}
.skill-gap-card h2 { font-size: 1rem; margin-bottom: 12px; color: var(--text-primary); }
.skill-gap-card .gap-summary { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.skill-gap-card .gap-section { margin-bottom: 16px; }
.skill-gap-card .gap-section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); opacity: 0.6; margin-bottom: 8px; }
.skill-gap-card .gap-skill-list { display: flex; flex-direction: column; gap: 8px; }
.skill-gap-card .gap-skill-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
}
.skill-gap-card .gap-importance {
  font-weight: 700; font-size: 0.7rem; min-width: 24px; text-align: center;
  padding: 2px 4px; border-radius: 4px; flex-shrink: 0;
}
.skill-gap-card .gap-importance.critical { color: var(--blossom); background: rgba(244,63,94,0.12); }
.skill-gap-card .gap-importance.important { color: var(--golden); background: rgba(245,158,11,0.12); }
.skill-gap-card .gap-importance.nice { color: var(--sage); background: rgba(16,185,129,0.12); }
.skill-gap-card .gap-skill-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; white-space: nowrap; }
.skill-gap-card .gap-reason { color: var(--text-muted); font-size: 0.8rem; }
.skill-gap-card .gap-recommendation { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px; margin-top: 4px; }
.skill-gap-card .gap-recommendation p:last-child { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.skill-gap-card .gap-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-gap-card .gap-pill {
  background: rgba(245, 158, 11, 0.1);
  color: var(--golden);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ─── Command Palette ─── */
.cmd-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  pointer-events: none;
}
.cmd-backdrop.visible { opacity: 1; pointer-events: auto; }

.cmd-dialog {
  position: fixed;
  top: 20%; left: 50%;
  transform: translate(-50%, -8px);
  width: 92%; max-width: 560px;
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  overflow: hidden;
}
.cmd-dialog.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pebble);
  gap: 10px;
}
.cmd-input-wrap svg { flex-shrink: 0; color: var(--stone); }
.cmd-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.cmd-input::placeholder { color: var(--stone); }
.cmd-kbd {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--stone);
  border: 1px solid var(--pebble);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.cmd-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: background 0.1s;
}
.cmd-item:hover, .cmd-item.active {
  background: color-mix(in srgb, var(--pebble) 30%, transparent);
}
.cmd-item-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink);
}
.cmd-item-type {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone);
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--pebble) 25%, transparent);
}

.cmd-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--stone);
  font-size: 0.875rem;
}

.cmd-feedback { padding: 16px; }
.cmd-feedback textarea {
  width: 100%;
  min-height: 80px;
  background: var(--cream);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  resize: vertical;
  outline: none;
}
.cmd-feedback textarea:focus { border-color: var(--sage); }
.cmd-feedback-btn {
  margin-top: 10px;
  padding: 8px 20px;
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cmd-feedback-btn:hover { opacity: 0.85; }
.cmd-feedback-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cmd-feedback-thanks {
  padding: 24px 16px;
  text-align: center;
  color: var(--sage);
  font-weight: 500;
}

/* ─── Home: Trending Skills ─── */
.home-trending {
  margin: 0 0 40px;
}
.home-trending h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.trending-item:hover {
  background: color-mix(in srgb, var(--pebble) 25%, transparent);
}
.trending-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--stone) 60%, transparent);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}
.trending-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.trending-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone);
  padding: 2px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--pebble) 25%, transparent);
}
.trending-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sage);
  width: 48px;
  text-align: right;
  flex-shrink: 0;
}

/* ─── Home: Refreshers CTA ─── */
.home-refreshers-cta {
  margin: 2.5rem 0;
  padding: 2rem;
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--pebble) 8%, var(--cream));
}
.refreshers-cta-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.refreshers-cta-content p {
  color: var(--stone);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.refreshers-cta-btn {
  display: inline-block;
  padding: 8px 20px;
  background: transparent;
  color: var(--sage);
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.refreshers-cta-btn:hover {
  background: var(--sage);
  color: var(--cream);
}

/* ─── Home: Cmd+K hint ─── */
.cmd-k-hint {
  text-align: center;
  color: var(--stone);
  font-size: 0.75rem;
  padding: 24px 0 8px;
  opacity: 0.6;
}
.cmd-k-hint kbd {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--stone);
  border: 1px solid var(--pebble);
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 2px;
}

/* ─── Home: Inline stats ─── */
.stats-inline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.stat-item {
  font-size: 0.9375rem;
  color: var(--stone);
  font-weight: 400;
}
.stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}
.stat-sep {
  color: var(--pebble);
  font-size: 0.875rem;
  user-select: none;
}

/* ─── Home: Act dividers ─── */
.act-divider {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--pebble) 40%, transparent);
  margin: 56px 0;
}

/* ── Daily Brief ── */
.daily-brief-section { margin: 1.5rem 0; }
.daily-brief-intro { color: var(--stone); font-size: 0.9rem; margin: 0.25rem 0 0; }

.brief-card {
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 0.75rem;
}

.brief-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.brief-title { font-size: 1.05rem; font-weight: 600; color: var(--ink); }

.brief-source {
  font-size: 0.75rem; color: var(--stone); text-decoration: none;
  white-space: nowrap; padding: 2px 8px;
  background: color-mix(in srgb, var(--pebble) 30%, transparent); border-radius: 4px;
}
.brief-source:hover { color: var(--sage); }

.brief-text { color: var(--ink); line-height: 1.65; font-size: 0.92rem; margin-bottom: 0.75rem; }

.brief-code {
  background: var(--cream); border: 1px solid var(--pebble);
  border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 0.75rem;
  overflow-x: auto; font-size: 0.82rem; line-height: 1.6;
}
.brief-code code { font-family: 'JetBrains Mono', monospace; color: var(--ink); }

.brief-callout {
  color: var(--ink); font-size: 0.92rem; line-height: 1.65;
  margin-bottom: 0.75rem; padding-left: 0.75rem;
  border-left: 3px solid var(--sage);
}

.brief-actions {
  display: flex; align-items: center; gap: 0.5rem;
  padding-top: 0.5rem; border-top: 1px solid var(--pebble);
}

.brief-btn {
  background: none; border: 1px solid var(--pebble); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; font-size: 0.85rem; color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.brief-btn:hover {
  background: color-mix(in srgb, var(--pebble) 30%, transparent);
  border-color: var(--sage);
}
.brief-btn-active {
  background: color-mix(in srgb, var(--pebble) 30%, transparent);
  border-color: var(--sage);
}

.brief-more { margin-left: auto; font-size: 0.82rem; color: var(--sage); text-decoration: none; }
.brief-more:hover { text-decoration: underline; }

.brief-personalize { margin-top: 0.75rem; }
.brief-personalize-toggle {
  background: none; border: none; color: var(--stone);
  font-size: 0.78rem; cursor: pointer; padding: 0;
}
.brief-personalize-toggle:hover { color: var(--sage); }
.brief-personalize-panel { margin-top: 0.5rem; }
.brief-personalize-hint { font-size: 0.78rem; color: var(--stone); margin-bottom: 0.5rem; }
.brief-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.brief-chip {
  background: color-mix(in srgb, var(--pebble) 30%, transparent);
  border: 1px solid var(--pebble);
  border-radius: 6px; padding: 4px 10px; font-size: 0.78rem;
  color: var(--ink); cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.brief-chip:hover { border-color: var(--sage); }
.brief-chip-active { background: var(--sage); color: var(--cream); border-color: var(--sage); }

/* ── Docs pages ── */
.docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.docs-card {
  display: block;
  padding: 24px;
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
.docs-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}
.docs-card h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--ink); }
.docs-card p { margin: 0 0 12px; color: var(--stone); font-size: 0.95rem; line-height: 1.5; }
.docs-card code { font-size: 0.85rem; background: var(--pebble); padding: 2px 6px; border-radius: 4px; }

.breadcrumb { font-size: 0.85rem; color: var(--stone); margin-bottom: 8px; }
.breadcrumb a { color: var(--sage); }
.prose .lead { font-size: 1.15rem; color: var(--stone); margin-bottom: 24px; }

.prose .tool-section {
  margin: 24px 0;
  padding: 20px;
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: 8px;
}
.prose .tool-section h3 { margin-top: 0; }

.prose .param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.9rem;
}
.prose .param-table th,
.prose .param-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pebble);
}
.prose .param-table th { color: var(--stone); font-weight: 500; }

/* Code blocks */
.prose pre {
  background: var(--cream);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 12px 0 16px;
  position: relative;
}
.prose pre code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink);
  background: none;
  padding: 0;
  border-radius: 0;
}
.prose pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone);
  opacity: 0.7;
}
/* JSON syntax colors */
.prose pre .str { color: #10B981; }
.prose pre .key { color: #06B6D4; }
.prose pre .comment { color: var(--stone); font-style: italic; }
[data-theme="light"] .prose pre .str { color: #059669; }
[data-theme="light"] .prose pre .key { color: #0891B2; }

/* Inline code */
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--pebble);
  padding: 2px 6px;
  border-radius: 4px;
}
.prose pre code { font-size: 0.85rem; }

/* Config blocks */
.prose .config-block {
  margin: 20px 0;
  padding: 20px;
  background: var(--warm-white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius);
}
.prose .config-block h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
}
.prose .config-block p { margin-bottom: 8px; }
.prose .config-block pre {
  margin: 8px 0 0;
  background: var(--cream);
}

.prose .example-prompts { list-style: none; padding: 0; }
.prose .example-prompts li {
  padding: 8px 0;
  border-bottom: 1px solid var(--pebble);
  color: var(--stone);
  font-style: italic;
}
.prose .example-prompts li::before { content: "\2192 "; color: var(--sage); font-style: normal; }

.prose .cmd-section { margin: 24px 0; }
.prose .cmd-section h3 { margin-bottom: 4px; }
.prose .cmd-section h3 code { font-size: 1rem; }
.prose .cmd-section p { margin: 4px 0; }
