/* Sampoorna — Insights article styles
   Shared across all /insights/*.html pages
   Uses design-tokens.css variables from the main site
   v2 — enhanced with animations, visualizations, GEO components */

/* ─── Site top nav (logo → home on all insights/state pages) ─── */
.site-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.site-topnav-brand:hover { color: var(--brand); }
.site-topnav-brand svg { width: 28px; height: 28px; display: block; }
.site-topnav-wordmark {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.site-topnav-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 600;
  margin-top: 4px;
}
.site-topnav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-topnav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.site-topnav-links a:hover { color: var(--brand); }
.site-topnav-links .site-topnav-cta {
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: var(--bg) !important;
  font-weight: 600;
}
.site-topnav-links .site-topnav-cta:hover {
  background: var(--brand-dark, var(--brand));
  color: var(--bg) !important;
}
@media (max-width: 720px) {
  .site-topnav { padding: 12px 16px; }
  .site-topnav-links a:not(.site-topnav-cta) { display: none; }
  .site-topnav-tag { display: none; }
}

/* ─── Reading progress bar ─── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  z-index: 9999;
  transition: width 80ms linear;
  box-shadow: 0 0 8px color-mix(in srgb, var(--brand) 40%, transparent);
}

/* ─── Answer box (AEO snippet) ─── */
.answer-box {
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink-1);
}
.answer-box strong {
  color: var(--brand);
}

/* ─── Article layout ─── */
.insights-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.insights-breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 32px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.insights-breadcrumb a {
  color: var(--ink-3);
  transition: color var(--dur) var(--ease);
}
.insights-breadcrumb a:hover { color: var(--brand); }
.insights-breadcrumb .sep { margin: 0 6px; opacity: 0.4; }
.insights-breadcrumb .current { color: var(--ink-2); }

/* Article header */
.article-header { margin-bottom: 48px; }

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-mute); }
.article-meta .read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.article-meta .read-time::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--ink-mute);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Article body */
.article-body { font-size: 17px; line-height: 1.7; color: var(--ink-2); }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 56px 0 20px;
  letter-spacing: -0.015em;
  scroll-margin-top: 100px;
  position: relative;
  padding-left: 16px;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--brand);
  border-radius: 2px;
  opacity: 0.6;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 40px 0 16px;
  scroll-margin-top: 100px;
}

.article-body p { margin: 0 0 24px; }

.article-body ul, .article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.article-body li { margin-bottom: 10px; line-height: 1.65; }

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.article-body a:hover { text-decoration-color: var(--brand); }

/* Blockquote */
.article-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

/* Callout box — enhanced */
.callout {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--brand) 4%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--brand) 15%, var(--line));
  border-radius: var(--r-lg);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 6%, transparent), transparent 70%);
  pointer-events: none;
}
.callout-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout-title::before {
  content: "💡";
  font-size: 16px;
  filter: grayscale(0.2);
}

/* Data table — enhanced */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-body th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 14px 16px;
  background: var(--surface-2);
  border-bottom: 2px solid var(--line);
}
.article-body td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  transition: background var(--dur) var(--ease);
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover { background: color-mix(in srgb, var(--brand) 3%, var(--surface)); }

/* ─── Stat highlight box ─── */
.stat-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 36px 0;
}
.stat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ─── Bar chart (CSS-only) ─── */
.bar-chart {
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.bar-label {
  color: var(--ink-2);
  font-weight: 500;
  text-align: right;
}
.bar-track {
  height: 24px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  width: 0;
  transition: width 1.2s var(--ease);
  position: relative;
}
.bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.bar-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.bar-chart.animate .bar-fill { width: var(--bar-width); }

/* ─── Section divider with ornament ─── */
.article-body hr {
  border: none;
  text-align: center;
  margin: 48px 0;
  height: 20px;
  position: relative;
}
.article-body hr::before {
  content: "❖";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: var(--ink-mute);
  background: var(--bg);
  padding: 0 16px;
}

/* ─── Key Takeaways box (GEO) ─── */
.key-takeaways {
  margin: 48px 0 32px;
  padding: 32px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 5%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 15%, var(--line));
  border-radius: var(--r-lg);
}
.key-takeaways h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.key-takeaways h3::before {
  content: "🎯";
  font-size: 20px;
}
.key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.key-takeaways li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.key-takeaways li:last-child { border-bottom: none; }
.key-takeaways li::before {
  content: "→";
  position: absolute;
  left: 0; top: 10px;
  color: var(--brand);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ─── FAQ section (GEO) ─── */
.faq-section {
  margin: 48px 0 32px;
}
.faq-section h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--ink-mute); }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.faq-question {
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  font-weight: 300;
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ─── Table of contents (sticky sidebar) ─── */
.toc {
  position: fixed;
  top: 120px;
  left: calc(50% - 460px);
  width: 200px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-3);
  z-index: 5;
}
.toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 8px; }
.toc a {
  color: var(--ink-3);
  display: block;
  padding: 3px 0 3px 12px;
  border-left: 2px solid transparent;
  transition: all var(--dur) var(--ease);
  line-height: 1.4;
}
.toc a:hover { color: var(--ink-2); }
.toc a.active {
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}

/* CTA at bottom — enhanced */
.article-cta {
  margin: 56px 0 0;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink) 90%, var(--brand)));
  border-radius: var(--r-xl);
  text-align: center;
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 15%, transparent), transparent 60%);
  pointer-events: none;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 14px;
  position: relative;
}
.article-cta p {
  font-size: 15px;
  color: color-mix(in srgb, var(--bg) 70%, transparent);
  margin-bottom: 28px;
  line-height: 1.55;
  position: relative;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.article-cta .cta-btn,
.engage-cta-actions .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brand);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  position: relative;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--brand) 30%, transparent);
  border: 1px solid transparent;
}
.article-cta .cta-btn:hover,
.engage-cta-actions .cta-btn:hover {
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--brand) 40%, transparent);
}
.engage-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.engage-cta-actions .cta-btn-secondary {
  background: transparent;
  color: var(--bg);
  border: 1px solid color-mix(in srgb, var(--bg) 55%, transparent);
  box-shadow: none;
}
.engage-cta-actions .cta-btn-secondary:hover {
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  border-color: var(--bg);
  color: var(--bg);
  box-shadow: none;
}
/* Sticky engage bar on article pages */
.engage-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  transform: translateY(110%);
  transition: transform 220ms var(--ease);
}
.engage-sticky.is-visible { transform: translateY(0); }
.engage-sticky-label {
  font-size: 13px;
  color: color-mix(in srgb, var(--bg) 75%, transparent);
  margin-right: 4px;
}
.engage-sticky .cta-btn {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.engage-sticky .cta-btn-secondary {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: var(--r-md);
  background: transparent;
  color: #fff;
  border: 1px solid color-mix(in srgb, #fff 45%, transparent);
  font-weight: 600;
  text-decoration: none;
}
body.has-engage-sticky { padding-bottom: 72px; }
@media (max-width: 640px) {
  .engage-sticky-label { display: none; }
}

/* Related articles — enhanced */
.related-articles {
  margin: 64px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.related-articles h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  padding: 12px 16px;
  border-radius: var(--r-md);
  transition: all var(--dur) var(--ease);
}
.related-list a:hover {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}
.related-list .arrow { color: var(--ink-mute); font-family: var(--font-mono); transition: transform var(--dur) var(--ease); }
.related-list a:hover .arrow { transform: translateX(4px); color: var(--brand); }

/* Footer (shared minimal) */
.insights-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.insights-footer a { color: var(--ink-3); transition: color var(--dur) var(--ease); }
.insights-footer a:hover { color: var(--brand); }

/* ─── Index page — enhanced ─── */
.insights-index {
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}
.insights-index h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.insights-index .index-subtitle {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.55;
}

/* Hub toolbar — search, segments, categories */
.hub-toolbar {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.hub-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}
@media (max-width: 640px) {
  .hub-search-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.hub-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hub-search:focus-within {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.hub-search-icon {
  display: inline-flex;
  color: var(--ink-3);
  flex-shrink: 0;
}
.hub-search input {
  flex: 1;
  border: none !important;
  outline: none;
  background: transparent !important;
  font-size: 15px;
  color: var(--ink);
  font-family: var(--font-body);
  min-width: 0;
  padding: 12px 0 !important;
  box-shadow: none !important;
}
.hub-search input::placeholder { color: var(--ink-3); }
.hub-result-meta {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}
.hub-count-wrap #hub-count,
.hub-result-meta #hub-count {
  color: var(--brand);
  font-weight: 700;
}

/* Override design-tokens button reset */
button.hub-clear,
button.hub-seg,
button.hub-cat {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  line-height: 1.2;
  margin: 0;
}

button.hub-clear {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
button.hub-clear:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hub-filter-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
}
.hub-filter-block:first-of-type,
.hub-search-row + .hub-filter-block {
  border-top: none;
  padding-top: 0;
}
.hub-filter-block--secondary {
  padding-top: 16px;
}
.hub-filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hub-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
button.hub-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
button.hub-seg:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 6%, var(--bg));
}
button.hub-seg.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 28%, transparent);
}
button.hub-seg.is-active:hover {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
  color: #fff;
}

.hub-category-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.hub-cat-select {
  width: 100%;
  max-width: 420px;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23757a7f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.hub-cat-select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.hub-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 42px;
}
button.hub-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
button.hub-cat .hub-cat-n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
}
button.hub-cat:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 6%, var(--bg));
}
button.hub-cat.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 28%, transparent);
}
button.hub-cat.is-active .hub-cat-n { color: rgba(255, 255, 255, 0.85); }

.hub-empty {
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
  padding: 48px 16px;
}
.insight-card.is-hidden { display: none !important; }

.hub-cta {
  margin-top: 64px;
  padding: 36px 32px;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
.hub-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.hub-cta p {
  color: var(--ink-2);
  margin: 0 0 20px;
  max-width: 520px;
  line-height: 1.55;
}
.hub-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hub-cta-secondary {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  padding-bottom: 2px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.insight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.insight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.insight-card:hover {
  border-color: var(--ink-mute);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.insight-card:hover::before { transform: scaleX(1); }
.insight-card .card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.insight-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}
.insight-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}
.insight-card .card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur) var(--ease);
}
.insight-card:hover .card-link { gap: 10px; }

/* ─── Scroll reveal animations ─── */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile responsiveness overrides ─── */
@media (max-width: 900px) {
  .insights-article,
  .insights-index {
    padding: 100px 20px 60px;
  }
  .insights-article h1,
  .insights-index h1 {
    font-size: clamp(28px, 7vw, 44px);
  }
  .article-visual img,
  .article-visual svg {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .insights-article,
  .insights-index {
    padding: 80px 16px 48px;
  }
  .insights-article h1,
  .insights-index h1 {
    font-size: 26px;
  }
  .insights-article h2 {
    font-size: 22px;
  }
  .insights-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .article-cta {
    padding: 32px 20px;
  }
  .insight-card {
    padding: 20px;
  }
}

@media (max-width: 380px) {
  .insights-article h1,
  .insights-index h1 {
    font-size: 24px;
  }
}
.reveal-up:nth-child(2) { transition-delay: 0.08s; }
.reveal-up:nth-child(3) { transition-delay: 0.16s; }
.reveal-up:nth-child(4) { transition-delay: 0.24s; }
.reveal-up:nth-child(5) { transition-delay: 0.32s; }
.reveal-up:nth-child(6) { transition-delay: 0.40s; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .toc { display: none; }
}
@media (max-width: 768px) {
  .insights-article { padding: 80px 16px 60px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 24px; }
  .insights-index { padding: 80px 16px 60px; }
  .insights-grid { grid-template-columns: 1fr; }
  .insights-footer { flex-direction: column; gap: 12px; text-align: center; }
  .index-stats { gap: 20px; padding: 20px; }
  .bar-row { grid-template-columns: 100px 1fr 50px; gap: 8px; font-size: 12px; }
  .article-cta { padding: 32px 24px; }
  .key-takeaways { padding: 24px 20px; }
  .stat-highlight { grid-template-columns: 1fr 1fr; }
}

/* ─── Print ─── */
@media print {
  .reading-progress, .toc, .article-cta, .related-articles, .insights-footer { display: none; }
  .insights-article { padding: 20px; max-width: 100%; }
  .article-body h2::before { display: none; }
  .callout, .key-takeaways { border: 1px solid #ccc; background: #fff; }
}
