/* ─── BLOG LISTING ─── */
.blog-hero {
  padding: 120px 8% 64px;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-600);
  max-width: 520px;
}

.blog-grid {
  padding: 0 8% 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-100);
  border: 2px solid var(--gray-100);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.blog-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  position: relative;
  transition: background 0.25s;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.blog-card:hover {
  background: var(--paper);
}

.blog-card-category {
  display: inline-block;
  background: var(--black);
  color: white;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-dark-raised);
  width: fit-content;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 12px;
}

.blog-card p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-600);
  flex: 1;
  margin-bottom: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.8);
}

.blog-card-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.blog-card-read {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}

.blog-card-read::before {
  content: '· ';
  color: var(--gray-200);
}

.blog-card-cta {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-cta svg {
  width: 11px;
  height: 11px;
  transition: transform 0.2s;
}

.blog-card:hover .blog-card-cta svg {
  transform: translateX(3px);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  padding: 96px 8% 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a,
.breadcrumb span {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.breadcrumb a {
  color: var(--gray-400);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--black);
}

.breadcrumb .sep {
  color: var(--gray-200);
}

.breadcrumb .current {
  color: var(--gray-600);
}

/* ─── ARTICLE HEADER ─── */
.article-header {
  padding: 40px 8% 60px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.article-category {
  background: var(--black);
  color: white;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  box-shadow: var(--shadow-dark-raised);
}

.article-date,
.article-readtime {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.article-readtime::before {
  content: '· ';
  color: var(--gray-200);
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 24px;
}

.article-intro {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 36px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  width: fit-content;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-dark-raised);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
}

.author-role {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gray-400);
}

/* ─── TABLE OF CONTENTS ─── */
.toc-card {
  background: var(--paper);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 88px;
}

.toc-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray-600);
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.toc-list li a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--black);
}

.toc-list li a.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--black);
  font-weight: 500;
}

.toc-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  color: var(--gray-200);
  flex-shrink: 0;
  width: 16px;
}

.toc-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.8);
}

.toc-cta p {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.btn-toc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--black);
  color: white;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: var(--shadow-dark-raised);
  transition: transform 0.15s;
}

.btn-toc:hover {
  transform: translateY(-1px);
}

.btn-toc svg {
  width: 11px;
  height: 11px;
}

/* ─── ARTICLE BODY ─── */
.article-body {
  padding: 0 8% 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 32px;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--gray-100);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.section-num {
  font-family: 'DM Mono', monospace;
  /* font-size: 0.6rem; */
  letter-spacing: 0.15em;
  color: var(--gray-400);
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1.25;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 36px 0 14px;
}

.article-content p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.article-content p strong {
  font-weight: 600;
  color: var(--black);
}

.pullquote {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--paper);
  border-left: 3px solid var(--black);
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow-card);
}

.pullquote p {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--black);
  margin: 0;
  font-style: italic;
}

.stat-callout {
  margin: 40px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--black);
  color: white;
  border-radius: 12px;
  box-shadow: var(--shadow-dark-raised);
  position: relative;
  overflow: hidden;
}

.stat-callout::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.callout-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  letter-spacing: -0.03em;
}

.callout-text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.callout-text strong {
  color: white;
  font-weight: 500;
}

.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.styled-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-600);
}

.list-dot {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--paper);
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  box-shadow: var(--shadow-raised);
}

.list-dot svg {
  width: 9px;
  height: 9px;
  stroke: var(--black);
  fill: none;
  stroke-width: 2.5;
}

.tip-box {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.tip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tip-icon {
  width: 28px;
  height: 28px;
  background: var(--black);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-dark-raised);
  flex-shrink: 0;
}

.tip-icon svg {
  width: 13px;
  height: 13px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.tip-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.tip-box p {
  margin: 0;
  font-size: 0.9rem;
}

/* ─── LEGAL PAGES ─── */
.legal-content h2 {
  margin-top: 52px;
}
.legal-content h2:first-child {
  margin-top: 0;
}

.article-image {
  margin: 36px 0;
  border-radius: 12px;
  aspect-ratio: 16/7;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── SIDEBAR ─── */
.article-sidebar {
  position: sticky;
  top: 88px;
}

.share-widget {
  background: var(--paper);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.widget-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 7px;
  cursor: pointer;
  box-shadow: var(--shadow-raised);
  transition: box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.share-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--gray-600);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.share-btn span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-600);
}

.related-card {
  background: var(--paper);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-top: 20px;
}

.related-title-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.related-item {
  display: block;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: opacity 0.15s;
}

.related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-item:hover {
  opacity: 0.75;
}

.related-item-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 5px;
}

.related-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.4;
}

/* ─── ARTICLE FOOTER ─── */
.article-footer {
  padding: 0 8%;
  border-top: 1px solid var(--gray-100);
  background: var(--paper);
  box-shadow: var(--shadow-pressed);
}

.article-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 48px 0;
}

.author-bio {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.bio-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  box-shadow: var(--shadow-dark-raised);
}

.bio-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.bio-role {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.bio-text {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-600);
}

.cta-bloc {
  background: var(--black);
  border-radius: 14px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-dark-raised);
}

.cta-bloc h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.cta-bloc p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: var(--black);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.15s;
}

.btn-cta-white:hover {
  transform: translateY(-1px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-header {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .toc-card {
    position: static;
  }

  .article-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: static;
  }

  .related-card {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 100px 5% 48px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    margin: 0 5%;
    margin-bottom: 80px;
    padding: 0;
  }

  .breadcrumb {
    padding: 88px 5% 0;
  }

  .article-header {
    padding: 28px 5% 48px;
  }

  .article-body {
    padding: 0 5% 60px;
  }

  .article-footer {
    padding: 0 5%;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .stat-callout {
    grid-template-columns: 1fr;
  }

  .cta-bloc {
    flex-direction: column;
    gap: 20px;
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    margin: 0 0 80px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ═══════════════════════════════════════════
   DARK MODE — BLOG & ARTICLES
   ═══════════════════════════════════════════ */

/* ─ BLOG CARD SHIMMER ─ */
[data-theme="dark"] .blog-card::before {
  background: rgba(255, 255, 255, 0.04);
}

/* ─ CATEGORY PILLS — keep dark surface, fix text ─ */
[data-theme="dark"] .blog-card-category,
[data-theme="dark"] .article-category {
  background: #1a1815;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ─ BLOG CARD META DIVIDER ─ */
[data-theme="dark"] .blog-card-meta {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06);
}

/* ─ TOC CARD ─ */
[data-theme="dark"] .toc-title {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .toc-cta {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04);
}

/* ─ TOC HOVER / ACTIVE ─ */
[data-theme="dark"] .toc-list li a:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .toc-list li a.active {
  background: rgba(255, 255, 255, 0.06);
}

/* ─ TOC CTA BUTTON — keep dark ─ */
[data-theme="dark"] .btn-toc {
  background: #252320;
}

/* ─ SECTION DIVIDER LINE ─ */
[data-theme="dark"] .section-divider-line {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ─ AUTHOR / BIO AVATAR — keep dark, keep white text ─ */
[data-theme="dark"] .author-avatar,
[data-theme="dark"] .bio-avatar {
  background: #252320;
}

/* ─ STAT CALLOUT — deep dark ─ */
[data-theme="dark"] .stat-callout {
  background: #0a0908;
}

/* ─ TIP BOX ICON — keep dark ─ */
[data-theme="dark"] .tip-icon {
  background: #252320;
}

/* ─ SHARE WIDGET & RELATED SECTION DIVIDERS ─ */
[data-theme="dark"] .share-label,
[data-theme="dark"] .related-label {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ─ CTA BLOC — deep dark ─ */
[data-theme="dark"] .cta-bloc {
  background: #0a0908;
}

/* ─ BTN CTA WHITE — fix invisible text on white bg inside dark bloc ─ */
[data-theme="dark"] .btn-cta-white {
  color: #0f0e0d;
}