/* Dylan Engelbrecht — personal site */

:root {
  --bg: #0c0e12;
  --bg-elevated: #141820;
  --text: #e8eaef;
  --text-muted: #8b93a7;
  --accent: #6ee7b7;
  --accent-dim: #34d399;
  --border: rgba(255, 255, 255, 0.08);
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --max-width: 68rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(110, 231, 183, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(52, 211, 153, 0.06), transparent);
  min-height: 100vh;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(12, 14, 18, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-sm) var(--space-md);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-toggle:hover {
  border-color: rgba(110, 231, 183, 0.35);
  color: var(--accent);
}

.nav-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm) var(--space-md);
  flex: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header.is-collapsed .nav {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 0 0 var(--space-sm);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
}

.hero-lead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 var(--space-md);
}

.canonical-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 48rem;
  margin: 0 0 var(--space-md);
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0.5rem;
}

.canonical-answer em {
  font-style: italic;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  color: var(--bg);
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(110, 231, 183, 0.35);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Sections */

.section {
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}

/* About */

.about-grid {
  display: grid;
  gap: var(--space-md);
  max-width: 52rem;
}

.about-grid p {
  margin: 0;
  color: var(--text-muted);
}

.about-grid em {
  color: var(--text);
  font-style: italic;
}

.about-grid a {
  color: var(--accent-dim);
  text-decoration: none;
}

.about-grid a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.endorsement-note a {
  color: var(--accent-dim);
}

.hero-lead a {
  color: var(--accent-dim);
  text-decoration: none;
}

.hero-lead a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Focus */

.focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.focus-list li {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.focus-label {
  font-weight: 600;
  color: var(--text);
}

.focus-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Publications */

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  counter-reset: pub;
}

.pub-list li {
  counter-increment: pub;
}

.pub-list a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pub-list a:hover {
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(20, 24, 32, 0.9);
}

.pub-title {
  font-weight: 600;
  color: var(--text);
}

.pub-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Selected work */

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.work-card {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.work-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-sm);
  margin-bottom: 0.5rem;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
}

.work-title a {
  color: inherit;
  text-decoration: none;
}

.work-title a:hover {
  color: var(--accent);
}

.work-role {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-size: 0.9375rem;
}

.work-meta {
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-dim);
  text-decoration: none;
}

.work-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.status-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.status-live {
  color: var(--accent);
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.25);
}

.status-archived {
  color: #a8b0c4;
  background: rgba(168, 176, 196, 0.1);
  border: 1px solid rgba(168, 176, 196, 0.2);
}

.status-discontinued {
  color: #c9a87c;
  background: rgba(201, 168, 124, 0.1);
  border: 1px solid rgba(201, 168, 124, 0.2);
}

/* Press page */

.press-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

.press-header {
  margin-bottom: var(--space-lg);
}

.press-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
}

.press-intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0;
}

.press-headshot {
  display: block;
  width: min(12rem, 100%);
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.press-section.press-photo {
  padding-top: 0;
  border-top: none;
}

.press-section {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

.press-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 var(--space-md);
}

.press-section p {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 var(--space-sm);
}

.press-facts {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.press-facts li {
  margin-bottom: 0.5rem;
}

.press-facts a {
  color: var(--accent-dim);
}

.press-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.press-links a {
  color: var(--accent-dim);
  font-weight: 500;
  text-decoration: none;
}

.press-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.press-email {
  font-size: 1.25rem;
  margin: var(--space-sm) 0 !important;
}

.press-email a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.press-email a:hover {
  color: var(--accent);
}

.press-note {
  font-size: 0.9375rem;
}

.press-note a {
  color: var(--accent-dim);
}

.press-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.press-event {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.press-event-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
}

.press-event-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.press-event p {
  margin: 0 0 var(--space-sm);
}

.press-coverage {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.press-coverage a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-dim);
  text-decoration: none;
}

.press-coverage a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* Domains (hub cards) */

.domain-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.domain-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.domain-card:hover {
  border-color: rgba(110, 231, 183, 0.35);
  transform: translateY(-2px);
}

.domain-label {
  font-weight: 600;
  color: var(--text);
  font-size: 1.0625rem;
}

.domain-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.domain-link-hint {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-dim);
  margin-top: 0.25rem;
}

/* Endorsements */

.endorsement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.endorsement-card {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.endorsement-quote {
  margin: 0 0 var(--space-sm);
  color: var(--text-muted);
  font-style: normal;
}

.endorsement-quote p {
  margin: 0 0 0.75rem;
}

.endorsement-quote p:last-child {
  margin-bottom: 0;
}

.endorsement-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.endorsement-author {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.endorsement-author:hover {
  color: var(--accent);
}

.endorsement-role {
  display: block;
  margin-top: 0.15rem;
}

.endorsement-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: var(--space-md) 0 0;
}

.endorsement-profile-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.endorsement-card--profile {
  border-style: dashed;
}

/* Investing page */

.metric-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-sm);
}

.disclaimer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 42rem;
  padding: var(--space-md);
  background: rgba(201, 168, 124, 0.08);
  border: 1px solid rgba(201, 168, 124, 0.2);
  border-radius: 0.5rem;
}

.disclaimer-section h2 {
  font-size: 1.125rem;
}

.hero-thesis {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  color: var(--text);
  max-width: 40rem;
  margin: 0 0 var(--space-sm);
  line-height: 1.5;
}

.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.8125rem;
}

.lang-switcher a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  border: 1px solid transparent;
}

.lang-switcher a:hover {
  color: var(--accent);
}

.lang-switcher a[aria-current="true"] {
  color: var(--accent);
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(110, 231, 183, 0.08);
}

@media (min-width: 720px) {
  .lang-switcher {
    margin-left: auto;
  }
}

/* Investing — participate */

.participate-intro {
  max-width: 42rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.participate-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.participate-card {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.participate-card--primary {
  border-color: rgba(110, 231, 183, 0.25);
}

.participate-label {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.participate-card p {
  margin: 0 0 var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.participate-card p:last-child {
  margin-bottom: 0;
}

/* Knowledge hub */

.insight-english-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: var(--space-sm) 0 0;
}

.insight-living-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: var(--space-sm) 0 0;
  line-height: 1.55;
}

.insight-attribution-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: var(--space-sm) 0 0;
  line-height: 1.55;
  font-style: italic;
}

.insights-page,
.article-page {
  max-width: 46rem;
}

/* Insights hub + article text links (avoid default browser blue) */

.insights-page :is(.category-more, .insight-hub-footer) a,
.article-page :is(.breadcrumb, .article-toc, .series-nav-links, .article-back) a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(110, 231, 183, 0.35);
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.insights-page :is(.category-more, .insight-hub-footer) a:hover,
.article-page :is(.breadcrumb, .article-toc, .series-nav-links, .article-back) a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent-dim);
}

.article-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(110, 231, 183, 0.4);
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.article-body a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent-dim);
}

.hub-notes {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  max-width: 42rem;
}

.hub-notes p {
  margin: 0 0 0.5rem;
}

.hub-notes p:last-child {
  margin-bottom: 0;
}

.hub-topics {
  margin: 0 0 var(--space-md);
}

.hub-topics-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dim);
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hub-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-topics-list a {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-elevated);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.hub-topics-list a:hover {
  color: var(--accent);
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(110, 231, 183, 0.06);
}

.insights-section {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.insights-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 var(--space-sm);
}

.insights-section-header {
  margin-bottom: var(--space-md);
}

.insights-series {
  margin-bottom: 0;
}

.series-meta {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.series-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-sm);
  line-height: 1.55;
  max-width: 42rem;
}

.series-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.series-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.series-link:hover {
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(110, 231, 183, 0.04);
}

.series-step {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dim);
  background: rgba(110, 231, 183, 0.1);
  border-radius: 999px;
}

.series-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.series-link-title {
  font-weight: 600;
  color: var(--text);
  font-size: 1.0625rem;
}

.series-link-tldr {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.category-more {
  margin: var(--space-sm) 0 0;
  font-size: 0.9375rem;
}

.insight-hub-footer {
  margin-top: var(--space-lg);
  font-size: 0.9375rem;
}

.insights-category {
  margin-bottom: 0;
}

.insight-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .insight-list {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  }
}

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.875rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.insight-card:hover {
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(110, 231, 183, 0.04);
}

.insight-card-title {
  font-weight: 600;
  color: var(--text);
  font-size: 1.0625rem;
}

.insight-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.insight-card-hint {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-dim);
  margin-top: 0.25rem;
}

.insight-hub-footer {
  margin-top: var(--space-lg);
  font-size: 0.9375rem;
}

/* Article pages */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.category-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dim);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.article-body {
  max-width: 42rem;
}

.entity-facts {
  display: grid;
  gap: 0.75rem 1.5rem;
  margin: 0 0 var(--space-md);
  max-width: 42rem;
}

.entity-facts div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
}

.entity-facts dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entity-facts dd {
  margin: 0;
}

.entity-related {
  margin: var(--space-md) 0 0;
}

.entity-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.faq-section {
  margin-top: var(--space-lg);
  max-width: 42rem;
}

.faq-item {
  margin: 0 0 var(--space-md);
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

.article-body p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.article-body h3,
.article-body h4 {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  scroll-margin-top: 5rem;
}

.article-body h3:first-child,
.article-body h4:first-child {
  margin-top: 0;
}

.article-body .code-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.article-body .article-code {
  margin: 0 0 1rem;
  padding: 1rem 1.125rem;
  background: var(--surface-elevated, #1a1a1a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  tab-size: 2;
}

.article-body .article-code code {
  font-family: inherit;
  white-space: pre;
}

.article-back {
  margin-top: var(--space-lg);
  font-size: 0.9375rem;
}

.article-toc {
  margin: 0 0 var(--space-md);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-elevated);
  max-width: 42rem;
}

.article-toc-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.article-toc-summary::-webkit-details-marker {
  display: none;
}

.article-toc-summary::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid var(--accent-dim);
  border-bottom: 1.5px solid var(--accent-dim);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.article-toc[open] > .article-toc-summary::before {
  transform: rotate(45deg);
}

.article-toc-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dim);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0 1rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.article-toc li + li {
  margin-top: 0.5rem;
}

.series-nav {
  margin: var(--space-lg) 0;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-elevated);
  max-width: 42rem;
}

.series-nav-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.series-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.related-articles {
  margin: var(--space-lg) 0;
  max-width: 42rem;
}

.related-articles h2 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.related-link {
  display: block;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.related-link:hover {
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(110, 231, 183, 0.04);
}

.related-link-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.related-link-desc {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive nav — hamburger below desktop; collapse-on-scroll everywhere */

@media (max-width: 1023px) {
  .site-header {
    /* Sticky + backdrop-filter repaints on every scroll frame on mobile. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }

  .nav {
    flex-wrap: nowrap;
    min-height: 3.25rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .site-header.is-collapsed .nav {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem var(--space-md) 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }

  .site-header.is-menu-open .nav-panel {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
}

@media (min-width: 1024px) {
  body:has(.insights-page) .nav-anchor,
  body:has(.article-page) .nav-anchor {
    display: none;
  }

  body:has(.insights-page) .site-header.is-menu-open .nav-anchor,
  body:has(.article-page) .site-header.is-menu-open .nav-anchor {
    display: list-item;
  }

  .site-header.is-collapsed .nav {
    flex-wrap: nowrap;
  }

  .site-header.is-collapsed .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-collapsed:not(.is-menu-open) .nav-panel {
    display: none;
  }

  .site-header.is-collapsed.is-menu-open .nav-panel {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem var(--space-md) 1rem;
    background: rgba(12, 14, 18, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }

  .site-header.is-collapsed.is-menu-open .nav-links {
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (min-width: 1100px) {
  .article-page {
    max-width: 64rem;
    display: grid;
    grid-template-columns: 15rem minmax(0, 42rem);
    column-gap: 2.5rem;
    align-items: start;
  }

  .article-page .breadcrumb {
    grid-column: 1 / -1;
  }

  .article-page article {
    display: contents;
  }

  .article-page .press-header,
  .article-page .article-body,
  .article-page .series-nav,
  .article-page .related-articles,
  .article-page .article-back {
    grid-column: 2;
  }

  .article-page .article-toc {
    grid-column: 1;
    grid-row: 2 / 4;
    position: sticky;
    top: 4.5rem;
    align-self: start;
    max-width: none;
    background: transparent;
    border: none;
    padding: 0;
  }

  .article-page .article-toc-summary {
    padding: 0 0 0.5rem;
    cursor: default;
    pointer-events: none;
  }

  .article-page .article-toc-summary::before {
    display: none;
  }

  .article-page .article-toc ul {
    padding: 0;
  }
}
