/* Shared blog article styles */
.article-hero { padding: 8rem 3rem 5rem; border-bottom: 1px solid var(--rule); }
.article-meta { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; flex-wrap: wrap; }
.art-tag { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: #fff; background: var(--teal); padding: 0.3rem 0.75rem; }
.art-tag-outline { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal); border: 1px solid var(--teal); padding: 0.3rem 0.75rem; }
.art-date { font-size: 0.72rem; color: var(--faint); letter-spacing: 0.06em; }
.art-read { font-size: 0.72rem; color: var(--faint); }
.article-hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.2rem, 3.5vw, 3.8rem); line-height: 1.07; color: var(--navy); margin-bottom: 1.5rem; max-width: 42ch; }
.article-hero-desc { font-size: 1rem; color: var(--muted); max-width: 52ch; line-height: 1.85; }
.article-layout { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--rule); }
.article-body { padding: 4rem 4rem 6rem; }
.article-sidebar { padding: 3rem 1.75rem; border-right: 1px solid var(--rule); position: sticky; top: 68px; height: fit-content; }
.sidebar-label { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.25rem; }
.sidebar-cta { background: var(--navy); padding: 1.75rem; margin-bottom: 2rem; }
.sidebar-cta p { font-size: 0.82rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 1rem; }
.sidebar-cta .btn { font-size: 0.68rem; padding: 0.7rem 1.25rem; }
.sidebar-related { margin-top: 2rem; }
.sidebar-related a { display: block; font-size: 0.8rem; color: var(--muted); padding: 0.7rem 0; border-bottom: 1px solid var(--rule); transition: color 0.2s; line-height: 1.45; }
.sidebar-related a:first-of-type { border-top: 1px solid var(--rule); }
.sidebar-related a:hover { color: var(--teal); }
.art-h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.6rem, 2.2vw, 2.2rem); line-height: 1.1; color: var(--navy); margin: 3rem 0 1.1rem; }
.art-h3 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin: 2.25rem 0 0.7rem; }
.art-p { font-size: 0.97rem; color: var(--muted); line-height: 1.95; margin-bottom: 1.3rem; max-width: 68ch; }
.art-p strong { color: var(--navy); font-weight: 500; }
.art-callout { background: var(--surface); border-left: 3px solid var(--teal); padding: 1.6rem 1.9rem; margin: 2rem 0; }
.art-callout-label { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.55rem; }
.art-callout p { font-size: 0.93rem; color: var(--muted); line-height: 1.85; margin: 0; }
.art-callout p strong { color: var(--navy); font-weight: 500; }
.art-dark { background: var(--navy); padding: 2.25rem 2.5rem; margin: 2.5rem 0; }
.art-dark .art-callout-label { color: rgba(255,255,255,0.4); }
.art-dark p { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 300; color: #fff; line-height: 1.6; margin: 0; }
.art-dark p strong { color: #fff; font-weight: 600; }
.art-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 2rem 0; }
.art-stat-cell { background: #fff; padding: 1.6rem 1.4rem; }
.art-stat-cell.surface { background: var(--surface); }
.art-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 300; color: var(--teal); line-height: 1; margin-bottom: 0.3rem; }
.art-stat-label { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.art-steps { list-style: none; counter-reset: steps; margin: 1.25rem 0 2rem; }
.art-steps li { counter-increment: steps; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.4rem 1.1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.art-steps li:first-child { border-top: 1px solid var(--rule); }
.art-steps li::before { content: counter(steps); font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; color: var(--rule); line-height: 1; padding-top: 0.1rem; grid-row: 1 / 3; }
.art-steps li strong { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 0; grid-column: 2; }
.art-steps li span { font-size: 0.9rem; color: var(--muted); line-height: 1.75; grid-column: 2; }
.art-table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.88rem; }
.art-table th { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); font-weight: 500; text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); background: var(--surface); }
.art-table td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--rule); color: var(--muted); line-height: 1.55; vertical-align: top; }
.art-table tr:last-child td { border-bottom: none; }
.art-table td:first-child { color: var(--navy); font-weight: 500; }
.art-cta { background: var(--navy); padding: 3rem; margin: 4rem 0 0; }
.art-cta .sec-label { color: rgba(255,255,255,0.4); }
.art-cta-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.5rem, 2vw, 2rem); color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.art-cta-body { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.8; max-width: 44ch; margin-bottom: 1.75rem; }
.btn-outline-white { display: inline-block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,0.35); padding: 0.8rem 1.75rem; transition: border-color 0.2s, background 0.2s; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.series-nav { border-top: 1px solid var(--rule); padding: 2.5rem 3rem; background: var(--surface); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.series-nav-label { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.5rem; }
.series-nav-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.series-nav-link { font-size: 0.78rem; color: var(--teal); border: 1px solid var(--rule); padding: 0.55rem 1.1rem; transition: border-color 0.2s; white-space: nowrap; }
.series-nav-link:hover { border-color: var(--teal); }
.series-nav-link.current { border-color: var(--teal); color: var(--navy); background: var(--teal-pale); }
@media (max-width: 900px) {
  .article-hero { padding: 6rem 1.5rem 1.5rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .article-body { padding: 3rem 1.5rem 4rem; border-right: none; }
  .art-stat-row { grid-template-columns: 1fr; }
  .series-nav { padding: 2rem 1.5rem; }
  .art-cta { padding: 2rem 1.5rem; }
  .art-dark { padding: 1.75rem 1.5rem; }
  .sidebar-cta { padding: 1.5rem; }
}

/* ON THIS PAGE SIDEBAR (use case pages) */
.article-sidebar-nav {
  position: sticky;
  top: 68px;
  height: fit-content;
}
.article-sidebar-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.25rem;
}
.article-sidebar-nav nav {
  position: static;
  display: block;
  padding: 0;
  background: none;
  backdrop-filter: none;
  border-bottom: none;
  z-index: auto;
  overflow: visible;
  top: auto;
  left: auto;
  right: auto;
  justify-content: initial;
  align-items: initial;
}
.article-sidebar-nav nav a {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.45rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.85rem;
  margin-left: -0.85rem;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.4;
}
.article-sidebar-nav nav a:visited { color: var(--muted); }
.article-sidebar-nav nav a:hover,
.article-sidebar-nav nav a.active {
  color: var(--teal);
  border-left-color: var(--teal);
}

/* MOBILE TOC */
.mobile-toc {
  display: none;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  margin-top: 2rem;
}
.mobile-toc-label {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.75rem;
}
.mobile-toc a {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--teal);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.85rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
  transition: border-color 0.2s;
}
.mobile-toc a:visited { color: var(--teal); }
.mobile-toc a:hover { border-color: var(--teal); }

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, border-color 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover { border-color: var(--teal); }
.back-to-top svg { width: 18px; height: 18px; stroke: var(--muted); }

/* SCROLLABLE TABLES (mobile) */
.comp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Use case section anchors */
.art-h2[id] { scroll-margin-top: 95px; }

@media (max-width: 900px) {
  .mobile-toc { display: block; }
  .mobile-toc a { scroll-margin-top: 80px; }
  .art-h2[id] { scroll-margin-top: 80px; }
   bottom: 1.25rem; right: 1.25rem; width: 36px; height: 36px; }
}
