/*
Theme Name: AnaData Insights
Theme URI: https://insights.anadata.com
Description: AnaData editorial publication — shares the AnaData design system with anadata.com
Version: 1.0
Author: AnaData
*/

/* ─────────────────────────────────────────────────────────────
   AnaData Design System — shared with anadata.com
   Navy #0A2540 · Brand orange #E8472A · Inter + JetBrains Mono
   ───────────────────────────────────────────────────────────── */

:root {
  --ink:          #0A2540;
  --ink2:         #1A3A5F;
  --mute:         #2F4560;
  --dim:          #6E7E91;
  --line:         #D8E0EB;
  --line2:        #C6D1DF;
  --soft:         #F5F7FA;
  --soft2:        #EBF0F6;
  --paper:        #FFFFFF;
  --brand:        #E8472A;
  --brand-d:      #C53618;
  --brand-l:      #FF7755;
  --brand-soft:   #FDEDE7;
  --accent-y:     #F5C518;
  --accent-y-soft:#FEF6D8;
  --accent-g:     #1FAE4B;
  --accent-g-soft:#E6F7EC;
  --navy:         #0A2540;
  --navy2:        #0F2D4D;
  --ok:           #1FAE4B;
  --ez-soft:      cubic-bezier(.32,.72,.27,1);
  --ez-snap:      cubic-bezier(.16,1,.3,1);
}

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: 'cv11' on, 'ss01' on;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}
::selection { background: var(--brand); color: white; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── TYPOGRAPHY ─── */
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brand-d);
  font-weight: 500;
  text-transform: uppercase;
}
.section-h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--navy);
  margin: 0;
}
.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 14px; font-weight: 500; color: var(--brand-d);
  transition: color .15s;
}
.text-link:hover { color: var(--brand); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.7rem 1.15rem; min-height: 40px;
  background: var(--brand); color: white;
  font-size: 13px; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--brand);
  cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--brand-d); border-color: var(--brand-d); transform: translateY(-1px); box-shadow: 0 6px 20px -6px rgba(232,71,42,0.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.7rem 1.15rem; min-height: 40px;
  background: var(--paper); color: var(--navy);
  font-size: 13px; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--line2);
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--soft); border-color: var(--line); transform: translateY(-1px); }

.btn-on-dark {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.7rem 1.15rem; min-height: 40px;
  background: transparent; color: white;
  font-size: 13px; font-weight: 600;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; transition: background .15s, border-color .15s;
  text-decoration: none;
}
.btn-on-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* ─── SCROLL PROGRESS ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0%;
  background: var(--brand);
  transition: width 80ms linear;
  pointer-events: none;
}

/* ─── HEADER ─── */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, border-color .3s;
}
#site-header.is-scrolled {
  box-shadow: 0 4px 24px -6px rgba(10,37,64,0.12);
  border-bottom-color: var(--line2);
}
.brand-logo { display: block; height: 64px; width: auto; user-select: none; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--mute);
  padding: 0.55rem 0.85rem; border-radius: 6px;
  transition: color .15s, background .15s; text-decoration: none;
  display: inline-block;
}
.nav-link:hover { color: var(--navy); background: var(--soft); }
.nav-link.is-active { color: var(--navy); font-weight: 600; }
.drawer-link {
  display: block; padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 600; color: var(--navy);
  letter-spacing: -0.01em; text-decoration: none;
  transition: color .15s;
}
.drawer-link:hover { color: var(--brand); }

/* ─── EDITORIAL SUBNAV ─── */
.insights-subnav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 88px; z-index: 40;
}
.insights-subnav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 0;
  height: 44px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.insights-subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dim); padding: 0 16px; height: 44px;
  display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap; text-decoration: none;
}
.subnav-link:hover { color: var(--navy); }
.subnav-link.is-active { color: var(--brand-d); border-bottom-color: var(--brand); }
.subnav-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.subnav-search input {
  width: 180px; height: 28px;
  border: 1px solid var(--line2); border-radius: 6px;
  padding: 0 10px; font-size: 12px; font-family: inherit;
  color: var(--navy); background: var(--soft);
  outline: none; transition: border-color .15s, width .25s;
}
.subnav-search input:focus { border-color: var(--brand); width: 220px; }
.subnav-search input::placeholder { color: var(--dim); }
.subnav-search button {
  background: none; border: none; cursor: pointer;
  color: var(--dim); display: flex; align-items: center;
  padding: 0; transition: color .15s;
}
.subnav-search button:hover { color: var(--brand); }

/* ─── FOOTER ─── */
.site-footer { background: var(--navy2); color: rgba(255,255,255,0.8); }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 64px 20px 48px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand-col { grid-column: 1; }
@media (max-width: 1024px) { .footer-brand-col { grid-column: 1 / -1; } }
.footer-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5); margin: 0 0 14px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-list li, .footer-list a {
  font-size: 13px; color: rgba(255,255,255,0.65);
  transition: color .15s; text-decoration: none;
}
.footer-list a:hover { color: var(--brand); }
.footer-social {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  transition: color .15s, border-color .15s, background .15s;
  text-decoration: none;
}
.footer-social:hover { color: white; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-copy, .footer-legal a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4); text-decoration: none;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: white; }

/* ─── CONTAINER ─── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ─── INSIGHTS INDEX HERO ─── */
.insights-hero {
  background: var(--paper);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.insights-hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background:
    radial-gradient(ellipse 55% 70% at 90% 20%, rgba(232,71,42,0.05), transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 85%, rgba(10,37,64,0.04), transparent 70%);
  pointer-events: none;
}
.insights-hero-title {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 800; letter-spacing: -0.035em;
  color: var(--navy); line-height: 1.03; margin: 12px 0 0;
}
.insights-hero-sub {
  font-size: 17px; color: var(--mute); line-height: 1.6;
  margin: 20px 0 0; max-width: 600px;
}

/* ─── FEATURED ARTICLE ─── */
.featured-article {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; background: var(--paper);
  transition: box-shadow .3s, transform .3s;
  text-decoration: none;
}
.featured-article:hover { box-shadow: 0 24px 56px -20px rgba(10,37,64,0.15); transform: translateY(-3px); }
@media (max-width: 768px) { .featured-article { grid-template-columns: 1fr; } }
.featured-img { position: relative; min-height: 340px; overflow: hidden; background: var(--soft2); }
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-article:hover .featured-img img { transform: scale(1.03); }
.featured-img-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,37,64,0.3) 0%, transparent 60%); z-index: 1; }
.featured-img-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  display: flex; align-items: center; justify-content: center;
}
.featured-img-placeholder::after {
  content: '';
  width: 80px; height: 80px;
  border: 2px solid rgba(232,71,42,0.3); border-radius: 12px;
  background: rgba(232,71,42,0.08);
}
.featured-content { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 768px) { .featured-content { padding: 28px 24px; } }
.article-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--brand); margin-bottom: 12px;
}
.featured-title {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700; letter-spacing: -0.025em;
  color: var(--navy); line-height: 1.2; margin: 0;
}
.featured-excerpt { font-size: 14px; color: var(--mute); line-height: 1.65; margin: 14px 0 0; }
.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em;
}
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.featured-read-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  margin-top: 20px; transition: gap .2s; text-decoration: none;
}
.featured-read-link:hover { gap: 10px; }

/* ─── ARTICLE GRID ─── */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; background: var(--paper);
  text-decoration: none; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .3s, transform .3s;
  position: relative;
}
.article-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,71,42,0.04) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 0;
}
.article-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(10,37,64,0.13); }
.article-card:hover::before { opacity: 1; }

.article-thumb { height: 200px; overflow: hidden; position: relative; background: var(--soft2); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink2) 100%);
  display: flex; align-items: center; justify-content: center;
}
.article-thumb-placeholder::after {
  content: ''; width: 40px; height: 40px;
  border: 1px solid rgba(232,71,42,0.3); border-radius: 8px;
}

.article-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.article-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); line-height: 1.3; margin: 8px 0 0; }
.article-excerpt { font-size: 13px; color: var(--mute); line-height: 1.6; margin: 10px 0 0; flex: 1; }
.article-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.article-read {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand);
  display: inline-flex; align-items: center; gap: 5px; transition: gap .2s;
}
.article-card:hover .article-read { gap: 8px; }
.article-read-time {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim);
}

/* ─── TOPIC GRID ─── */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1024px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .topic-grid { grid-template-columns: repeat(2, 1fr); } }

.topic-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; background: var(--paper);
  text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, background .2s, transform .2s;
}
.topic-card:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.topic-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--soft2); display: grid; place-items: center;
  color: var(--brand); transition: background .2s;
}
.topic-card:hover .topic-icon { background: rgba(232,71,42,0.15); }
.topic-label { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.topic-count {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim);
}

/* ─── NEWSLETTER STRIP ─── */
.newsletter-strip {
  background: var(--soft); border: 1px solid var(--line); border-radius: 20px;
  padding: 48px 52px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 768px) { .newsletter-strip { grid-template-columns: 1fr; padding: 32px 28px; } }
.nl-form { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-input {
  flex: 1; min-width: 220px; height: 44px;
  border: 1px solid var(--line2); border-radius: 8px; padding: 0 14px;
  font-size: 14px; font-family: inherit; color: var(--navy);
  background: var(--paper); outline: none; transition: border-color .2s;
}
.nl-input::placeholder { color: var(--dim); }
.nl-input:focus { border-color: var(--brand); }
.nl-btn {
  height: 44px; padding: 0 22px;
  background: var(--navy); color: white;
  border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s; white-space: nowrap;
}
.nl-btn:hover { background: var(--brand); }

/* ─── SINGLE POST ─── */
.post-hero { padding: 60px 0 0; border-bottom: 1px solid var(--line); }
.post-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.post-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.post-breadcrumb a { color: var(--dim); transition: color .15s; text-decoration: none; }
.post-breadcrumb a:hover { color: var(--navy); }
.post-breadcrumb-sep { color: var(--line2); }
.post-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.035em;
  color: var(--navy); line-height: 1.08; margin: 12px 0 0;
}
.post-byline {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 20px 0 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em;
}
.post-byline-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.post-featured-image {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; border-radius: 12px 12px 0 0;
  margin-top: 32px; background: var(--soft2);
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* ─── PROSE ─── */
.prose-anadata {
  max-width: 760px; margin: 0 auto; padding: 56px 20px 80px;
}
.prose-anadata p { font-size: 16px; color: var(--mute); line-height: 1.78; margin: 0 0 18px; }
.prose-anadata h2 {
  font-size: 22px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.022em; margin: 48px 0 14px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.prose-anadata h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.prose-anadata h3 { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.018em; margin: 36px 0 12px; }
.prose-anadata h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.prose-anadata a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(232,71,42,0.4); }
.prose-anadata a:hover { color: var(--brand-d); }
.prose-anadata strong { color: var(--navy); font-weight: 600; }
.prose-anadata em { font-style: italic; }
.prose-anadata ul, .prose-anadata ol { margin: 8px 0 18px; padding-left: 0; list-style: none; }
.prose-anadata ul li, .prose-anadata ol li {
  font-size: 15px; color: var(--mute); line-height: 1.7;
  padding: 4px 0 4px 24px; position: relative;
}
.prose-anadata ul li::before { content: '—'; position: absolute; left: 0; color: var(--brand); font-size: 12px; top: 7px; }
.prose-anadata ol { counter-reset: item; }
.prose-anadata ol li { counter-increment: item; }
.prose-anadata ol li::before { content: counter(item) '.'; position: absolute; left: 0; color: var(--brand); font-size: 13px; font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.prose-anadata blockquote {
  border-left: 3px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 8px 8px 0;
  padding: 16px 20px; margin: 24px 0;
}
.prose-anadata blockquote p { margin: 0; font-style: italic; font-size: 15px; }
.prose-anadata pre {
  background: var(--navy); color: rgba(255,255,255,0.88);
  padding: 24px; border-radius: 10px; overflow-x: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6;
  margin: 24px 0;
}
.prose-anadata code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  background: var(--soft2); color: var(--brand-d);
  padding: 2px 6px; border-radius: 4px;
}
.prose-anadata pre code { background: none; color: inherit; padding: 0; border-radius: 0; }
.prose-anadata img { border-radius: 10px; width: 100%; height: auto; margin: 24px 0; }
.prose-anadata figure { margin: 24px 0; }
.prose-anadata figcaption { font-size: 12px; color: var(--dim); text-align: center; margin-top: 8px; font-style: italic; }
.prose-anadata table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose-anadata th { text-align: left; font-weight: 600; color: var(--navy); padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); }
.prose-anadata td { padding: 10px 14px; color: var(--mute); border: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.prose-anadata hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* ─── POST TAGS ─── */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.post-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--mute); padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, color .15s; text-decoration: none;
}
.post-tag:hover { border-color: var(--brand); color: var(--brand); }

/* ─── SHARE ROW ─── */
.post-share {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 8px 0 40px;
}
.post-share-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim);
  margin-right: 4px;
}
.post-share-btn {
  height: 32px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 12px; font-weight: 500; color: var(--mute);
  background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s, color .15s; text-decoration: none; font-family: inherit;
}
.post-share-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ─── PREV/NEXT NAV ─── */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 760px; margin: 0 auto; padding: 0 20px 80px;
}
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px;
  text-decoration: none; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s, transform .2s;
}
.post-nav-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-nav-dir {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim);
}
.post-nav-title { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.post-nav-next { text-align: right; }

/* ─── RELATED POSTS ─── */
.related-posts { background: var(--soft); padding: 64px 0; }
.related-posts .container { display: flex; flex-direction: column; gap: 32px; }

/* ─── ARCHIVE HERO ─── */
.archive-hero {
  background: var(--soft); border-bottom: 1px solid var(--line);
  padding: 56px 0 52px;
}
.archive-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.035em;
  color: var(--navy); line-height: 1.08; margin: 12px 0 0;
}
.archive-count {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim);
  margin-top: 10px;
}

/* ─── PAGINATION ─── */
.wp-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 48px 0;
}
.wp-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600;
  color: var(--mute); text-decoration: none; transition: all .15s;
}
.wp-pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.wp-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: white; }
.wp-pagination .page-numbers.dots { border: none; width: auto; }

/* ─── SEARCH ─── */
.search-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 48px 0; }
.search-form-insights {
  display: flex; gap: 8px; max-width: 520px; margin-top: 24px;
}
.search-form-insights input {
  flex: 1; height: 48px; border: 1px solid var(--line2); border-radius: 10px;
  padding: 0 16px; font-size: 15px; font-family: inherit; color: var(--navy);
  background: var(--paper); outline: none; transition: border-color .2s;
}
.search-form-insights input:focus { border-color: var(--brand); }
.search-form-insights button {
  height: 48px; padding: 0 20px; background: var(--navy); color: white;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.search-form-insights button:hover { background: var(--brand); }

/* ─── 404 ─── */
.error-404 { padding: 120px 0; text-align: center; }
.error-404-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 800; letter-spacing: -0.05em;
  color: var(--line); line-height: 1; margin-bottom: 16px;
}

/* ─── REVEAL ANIMATIONS ─── */
[data-reveal] { opacity: 0; transform: translateY(14px); }

/* ─── UTILITIES ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.sr-only:focus { position: fixed; top: 12px; left: 12px; z-index: 9999; width: auto; height: auto; padding: 8px 16px; margin: 0; overflow: visible; clip: auto; white-space: normal; background: var(--brand); color: white; border-radius: 6px; font-size: 13px; font-weight: 600; }
