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

:root {
  --bg: #080b0f;
  --bg2: #0e1318;
  --bg3: #141c24;
  --border: rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.12);
  --blue: #00B4D8;
  --blue-dim: rgba(0,180,216,0.1);
  --blue-mid: rgba(0,180,216,0.18);
  --text: #eef2f7;
  --muted: #7a8fa6;
  --faint: #3a4a5c;
  --font-display: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body.light {
  --bg: #f5f6f8;
  --bg2: #ffffff;
  --bg3: #eceef2;
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.12);
  --blue: #0090b0;
  --blue-dim: rgba(0,144,176,0.08);
  --blue-mid: rgba(0,144,176,0.14);
  --text: #0d1117;
  --muted: #5a6a7a;
  --faint: #a0aab4;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

* { position: relative; z-index: 1; }

.nav-wrapper {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1160px;
  z-index: 100;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 18px 0 22px;
  border-radius: 100px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.06);
  gap: 20px;
}

body:not(.light) nav {
  background: rgba(13,18,24,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-mark {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  box-shadow: 0 0 12px var(--blue);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

body:not(.light) .logo img {
  filter: brightness(0) invert(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: #3a3a4a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 100px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

body:not(.light) .nav-links a { color: #b8c8d8; }

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-dim);
}

/* ── SOLUTIONS DROPDOWN ── */
.nav-links > li.has-dropdown-item { position: relative; }
.nav-links > li.has-dropdown-item::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
}
.dropdown-trigger { display: inline-flex; align-items: center; gap: 8px !important; }
.nav-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-left: 2px; border-radius: 999px;
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.07);
  opacity: 0.9; transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  flex-shrink: 0;
}
body:not(.light) .nav-arrow { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.nav-arrow svg { width: 12px; height: 12px; display: block; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-links > li.has-dropdown-item:hover .nav-arrow,
.nav-links > li.has-dropdown-item:focus-within .nav-arrow {
  transform: translateY(1px) rotate(180deg); opacity: 1;
  background: var(--blue-dim); border-color: rgba(0,180,216,0.22); color: var(--blue);
}
.nav-links li { position: relative; }
.nav-links li .dropdown {
  display: block; position: absolute; top: calc(100% + 10px); left: 0;
  transform: translateY(8px);
  background: rgba(255,255,255,0.98); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px; width: 560px; padding: 12px; z-index: 220;
  box-shadow: 0 22px 60px rgba(0,0,0,0.14);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
body:not(.light) .nav-links li .dropdown {
  background: rgba(14,19,24,0.98); border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
}
.nav-links li:hover .dropdown,
.nav-links li:focus-within .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-links li .dropdown::before {
  content: ''; position: absolute; top: -7px; left: 30px; width: 14px; height: 14px;
  background: inherit; border-left: 1px solid rgba(0,0,0,0.08); border-top: 1px solid rgba(0,0,0,0.08);
  transform: rotate(45deg);
}
body:not(.light) .nav-links li .dropdown::before { border-left-color: rgba(255,255,255,0.09); border-top-color: rgba(255,255,255,0.09); }
.solutions-dropdown { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav-links li .dropdown a.solution-menu-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 112px; padding: 16px; color: #334155;
  background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px; text-decoration: none; white-space: normal;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
body:not(.light) .nav-links li .dropdown a.solution-menu-card {
  color: #d7e1ea; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.nav-links li .dropdown a.solution-menu-card:hover {
  color: var(--text); background: var(--blue-dim); border-color: rgba(0,180,216,0.24);
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.solution-menu-title { display: block; font-size: 14px; font-weight: 700; color: inherit; line-height: 1.3; }
.solution-menu-desc { display: block; font-size: 12px; font-weight: 400; line-height: 1.55; color: var(--muted); }
.nav-links li .dropdown a.solution-menu-card::after {
  content: '↗'; position: absolute; top: 14px; right: 14px;
  font-size: 11px; opacity: 0.4; transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-links li .dropdown a.solution-menu-card:hover::after { opacity: 0.9; transform: translate(1px, -1px); }

/* ── MOBILE ACTIONS ── */
.mobile-actions { display: none; align-items: center; gap: 10px; margin-left: auto; }
.mobile-nav-toggle-btn { width: 34px; height: 34px; border-radius: 999px; }

@media (max-width: 860px) {
  .nav-right { display: none; }
  .mobile-actions { display: flex; }
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

body:not(.light) .theme-toggle-btn { border-color: rgba(255,255,255,0.18); }

.theme-toggle-btn:hover {
  background: var(--blue-dim);
  border-color: var(--blue);
  color: var(--blue);
}

.nav-cta,
.btn-primary {
  background: var(--blue);
  color: #001018;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 100px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,180,216,0.28);
  background: #00cff5;
}

main { width: 100%; padding-top: 110px; }

.article-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 0;
}

/* breadcrumb trail */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.18s, gap 0.18s;
}
.article-back svg { flex-shrink: 0; transition: transform 0.18s; }
.article-back:hover { color: var(--blue); gap: 4px; }
.article-back:hover svg { transform: translateX(-2px); }

/* header text block — no image */
.article-header {
  max-width: 820px;
  padding-bottom: 36px;
}

/* standalone image banner below header — no text overlay */
.article-banner {
  width: 100%;
  aspect-ratio: 21 / 8;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

.card-tag,
.article-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-dim);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  max-width: 860px;
  margin-bottom: 18px;
}

.hero-summary {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 22px;
}

.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.article-body,
.article-sidebar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 28px;
}

.article-body { padding: 52px; }

.article-sidebar {
  padding: 26px;
  height: fit-content;
  position: sticky;
  top: 110px;
}

.article-body p {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.82;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 44px 0 16px;
  color: var(--text);
  position: relative;
  scroll-margin-top: 108px;
}

/* ── ANCHOR LINKS on headings ── */
.anchor-link {
  display: inline-block;
  opacity: 0;
  margin-left: 9px;
  color: var(--blue);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.6em;
  letter-spacing: 0;
  vertical-align: middle;
  transition: opacity 0.18s;
}
.article-body h2:hover .anchor-link { opacity: 1; }

/* ── LIST STYLES ── */
.article-body ul,
.article-body ol {
  margin: 0 0 24px 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.article-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.75;
}

.article-body ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.article-body ol { counter-reset: list-counter; }
.article-body ol > li { counter-increment: list-counter; }
.article-body ol > li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  line-height: 2;
}

.article-body blockquote {
  margin: 36px 0;
  padding: 26px 28px;
  border-left: 3px solid var(--blue);
  background: var(--blue-dim);
  border-radius: 18px;
  color: var(--text);
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  position: relative;
}
.article-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 20px;
  font-size: 64px;
  color: var(--blue);
  opacity: 0.25;
  font-family: Georgia, serif;
  line-height: 1;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-note,
.sidebar-copy { color: var(--muted); }

.toc,
.related-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.toc a,
.related-links a {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  text-decoration: none;
}

.toc a:hover,
.related-links a:hover {
  border-color: rgba(0,180,216,0.22);
  background: var(--blue-dim);
}

.sidebar-block + .sidebar-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-primary {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* ── NEWSLETTER STRIP ── */
.newsletter-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}
.newsletter-strip::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.09) 0%, transparent 65%);
  right: -100px; top: -200px;
  pointer-events: none;
}
.newsletter-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.newsletter-strip-text { flex: 1 1 340px; }
.newsletter-strip-text h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1.15;
}
.newsletter-strip-text p { font-size: 15px; color: var(--muted); max-width: 400px; }
.newsletter-strip .newsletter-form { flex: 1 1 340px; margin-top: 0; }
.newsletter-form { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 220px; min-width: 0;
  padding: 15px 16px; border-radius: 14px;
  border: 1px solid var(--border2);
  background: transparent; color: var(--text); font: inherit;
}
.newsletter-form input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.14);
}
.newsletter-form button {
  border: 0; cursor: pointer;
  padding: 15px 20px; border-radius: 14px; font: inherit;
  background: var(--blue); color: #001018; font-weight: 700;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
}
.newsletter-form button:hover {
  background: #00cff5;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,180,216,0.28);
}
@media (max-width: 900px) {
  .newsletter-strip-inner { padding: 36px 20px; flex-direction: column; gap: 24px; justify-content: flex-start; }
  .newsletter-strip-text { flex: 0 0 auto; }
  .newsletter-strip .newsletter-form { flex: 0 0 auto; width: 100%; flex-direction: column; }
  .newsletter-strip .newsletter-form input { flex-basis: auto; width: 100%; }
  .newsletter-strip .newsletter-form button { width: 100%; }
}

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 13px;
  color: var(--faint);
  margin-top: 12px;
  font-style: italic;
  font-weight: 300;
  max-width: 240px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--faint);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--faint);
  font-weight: 300;
}

.footer-bottom a {
  color: var(--faint);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--text); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 24px 28px;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 99;
  border-top: 1px solid var(--border);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); }

.mobile-nav .mobile-cta {
  display: block;
  margin-top: 20px;
  background: var(--blue);
  color: #001018;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 100px;
  text-align: center;
  font-size: 15px;
  border: none;
  text-decoration: none;
}

body.menu-open { overflow: hidden; }

/* ── READING PROGRESS BAR ── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #00e5ff);
  z-index: 99999;
  box-shadow: 0 0 10px rgba(0,180,216,0.55);
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── TOC ACTIVE STATE ── */
.toc a.active {
  border-color: rgba(0,180,216,0.32);
  background: var(--blue-dim);
  color: var(--blue);
  font-weight: 500;
}
.toc a {
  font-size: 14px;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #001018;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.22,1,0.36,1), background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,180,216,0.28);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  background: #00cff5;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,180,216,0.42);
}

/* ── ARTICLE END CTA ── */
.article-cta {
  margin-top: 56px;
  padding: 44px 40px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(0,180,216,0.13), transparent 55%),
    var(--bg3);
  border: 1px solid var(--border2);
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin-bottom: 12px;
}
.article-cta p {
  color: var(--muted) !important;
  font-size: 16px !important;
  margin-bottom: 26px !important;
  max-width: 460px;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.7 !important;
}
.article-cta .btn-primary {
  display: inline-flex;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  text-decoration: none;
  border: 0;
}

/* ── MOBILE TOC (above article on small screens) ── */
.mobile-toc-wrap {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 28px;
}
.mobile-toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.mobile-toc-toggle:hover {
  border-color: rgba(0,180,216,0.3);
  background: var(--bg3);
}
.mobile-toc-toggle svg { transition: transform 0.22s; flex-shrink: 0; }
.mobile-toc-toggle.open svg { transform: rotate(180deg); }
.mobile-toc-list {
  display: none;
  padding: 10px 2px 2px;
}
.mobile-toc-list.open { display: block; }
.mobile-toc-list ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 6px;
}
.mobile-toc-list ul li::before { display: none; }
.mobile-toc-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.mobile-toc-list a:hover,
.mobile-toc-list a.active {
  border-color: rgba(0,180,216,0.25);
  background: var(--blue-dim);
  color: var(--blue);
}

/* ── HERO META SEPARATOR ── */
.hero-meta span + span::before {
  content: '·';
  margin-right: 12px;
  color: var(--faint);
}

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .mobile-toc-wrap { display: none; }
}

@media (max-width: 860px) {
  .nav-wrapper {
    top: 0; left: 0; right: 0;
    width: 100%; max-width: 100%; transform: none;
  }
  nav {
    border-radius: 0;
    min-height: 68px;
    padding: 0 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  }
  .nav-right { display: none !important; }
  .hamburger { display: flex; }
  main { padding-top: 68px; }
}

@media (max-width: 720px) {
  .article-hero,
  .article-layout,
  .mobile-toc-wrap,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-hero { padding-top: 24px; padding-bottom: 0; }
  .mobile-toc-wrap { padding-bottom: 20px; }
  .article-header { padding-bottom: 24px; }

  .article-banner { aspect-ratio: 16 / 9; border-radius: 16px; }

  .hero-title { font-size: clamp(26px, 7vw, 42px); letter-spacing: -0.8px; }
  .hero-summary { font-size: 16px; }

  .article-body h2 { font-size: 21px; letter-spacing: -0.4px; margin: 36px 0 12px; }

  /* strip card on mobile — content flows on page background */
  .article-body {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 24px 0;
  }

  .article-body p { font-size: 16px; }
  .article-body li { font-size: 16px; }

  /* sidebar: plain, no box */
  .article-sidebar {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }

  /* hide "In This Article" TOC on mobile — keep Related Posts */
  .article-sidebar .sidebar-block:first-child { display: none; }

  .toc a,
  .related-links a { padding: 10px 12px; font-size: 13px; }

  .article-cta { padding: 28px 22px; }
  .article-cta h3 { font-size: 21px; }
  .article-cta p { font-size: 15px !important; }

  #back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }

  footer { padding-top: 40px; padding-bottom: 40px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-links { flex-wrap: wrap; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; margin-top: 28px; }
}
