/* ============================================================
   Cognetryx · Post stylesheet
   Canonical visual system for every page under /posts/ and any
   long-form content page that uses the article template.
   Source of truth. Edit here, the look propagates everywhere.
   Established 2026-05-28.
   ============================================================ */

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111114;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --text-muted: #6b6b70;
  --accent-primary: #00d4aa;
  --accent-secondary: #0088cc;
  --accent-gradient: linear-gradient(135deg, #00d4aa 0%, #0088cc 100%);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font-display: "Sora", sans-serif;
  --font-mono: "Space Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-primary); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--accent-primary); color: var(--bg-primary);
  padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0; font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.bg-pattern {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.08), transparent),
    repeating-linear-gradient(30deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(-30deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 60px);
}

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { height: 42px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-primary); text-decoration: none; font-size: 1.1rem; transition: color 0.3s ease, text-shadow 0.3s ease; }
.nav-links a:not(.nav-cta):hover { color: var(--text-primary); text-shadow: 0 0 10px rgba(0, 212, 170, 0.75), 0 0 20px rgba(0, 212, 170, 0.45); }
.nav-cta { background: var(--accent-gradient); color: var(--bg-primary) !important; padding: 0.6rem 1.25rem; border-radius: 8px; font-weight: 600; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(10, 10, 11, 0.98); padding: 1rem; border-bottom: 1px solid var(--border-subtle); }
.mobile-menu.active { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a { color: var(--text-secondary); text-decoration: none; padding: 0.75rem 1rem; border-radius: 8px; }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " \25BE"; font-size: 0.7em; opacity: 0.7; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: rgba(10,10,11,0.98); backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: 0.5rem 0; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35); z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { padding: 0.6rem 1.25rem; font-size: 1.05rem; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.05); }
.mobile-subitem { padding-left: 2.5rem !important; opacity: 0.85; }

/* ─── Layout ─── */
main { display: block; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

/* ─── Hero ─── */
.hero { padding: 9rem 2rem 2.5rem; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-primary);
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.12; margin-bottom: 1.25rem; }
.gradient-text { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p.lede { font-size: 1.25rem; color: var(--text-secondary); line-height: 1.7; }
.meta-row { display: flex; gap: 1.5rem; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-mono); flex-wrap: wrap; }
.meta-row .meta-author { color: var(--accent-primary); }

/* ─── Prose body ─── */
.prose { padding: 1.5rem 0 1rem; }
.prose h2 { font-size: 1.7rem; font-weight: 750; line-height: 1.25; margin: 2.75rem 0 1rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 0.6rem; }
.prose p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.25rem; }
.prose p strong { color: var(--text-primary); }
.prose ul, .prose ol { margin: 1rem 0 1.75rem; padding-left: 1.25rem; color: var(--text-secondary); }
.prose li { margin: 0.55rem 0; line-height: 1.7; font-size: 1.05rem; }
.prose a { color: var(--accent-primary); }
.prose a.btn-primary { color: var(--bg-primary); }
sup a { font-size: 0.7em; text-decoration: none; padding: 0 0.1em; }

/* ─── Key-finding callout ─── */
.key-finding {
  margin: 2.25rem 0; padding: 1.75rem;
  background: linear-gradient(135deg, rgba(0,212,170,0.08), rgba(0,136,204,0.08));
  border: 1px solid rgba(0,212,170,0.2); border-radius: 12px;
}
.key-finding .kf-title { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-primary); margin-bottom: 0.6rem; }
.key-finding p { margin: 0; color: var(--text-primary); font-size: 1.05rem; }

/* ─── Section label (eyebrow above h2) ─── */
.section-label { display: block; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-primary); margin: 2.75rem 0 0; }
.section-label + h2 { margin-top: 0.4rem; }

/* ─── FAQ accordion ─── */
.faq { margin: 1rem 0; }
.faq details {
  border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 0.25rem 1.25rem; margin-bottom: 0.75rem; background: var(--bg-card);
}
.faq summary {
  cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--text-primary);
  font-size: 1.05rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.8; padding-bottom: 1rem; margin: 0; }

/* ─── Hero figure (inline article image) ─── */
.hero-fig {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin: 2.5rem 0 0;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* ─── CTA band ─── */
.cta-band {
  background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,136,204,0.15));
  border: 1px solid rgba(0,212,170,0.25); border-radius: 16px;
  padding: 3rem 2rem; text-align: center; margin: 3.5rem 0;
}
.cta-band h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
.cta-band p { color: var(--text-secondary); max-width: 640px; margin: 0 auto 1.75rem; line-height: 1.7; }
.btn-primary {
  display: inline-block; background: var(--accent-gradient); color: var(--bg-primary);
  padding: 0.85rem 1.75rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,170,0.3); }
.btn-primary { transition: transform 0.3s ease, box-shadow 0.3s ease; }

/* ─── Section divider (the green bar) ─── */
.section-divider {
  position: relative; width: 100%; height: 1px; border: 0;
  margin: 4rem 0; background: rgba(0, 212, 170, 0.55);
  box-shadow: 0 0 18px -3px rgba(0, 212, 170, 0.5);
}
.section-divider::after {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 200px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(150, 255, 230, 0.95), transparent);
  box-shadow: 0 0 14px 2px rgba(0, 212, 170, 0.65);
  opacity: 0; transform: translateX(-220px);
  animation: dividerSweep 11s ease-in-out infinite;
}
@keyframes dividerSweep {
  0%   { transform: translateX(-220px); opacity: 0; }
  6%   { opacity: 1; }
  40%  { opacity: 1; }
  46%  { transform: translateX(100vw); opacity: 0; }
  100% { transform: translateX(100vw); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .section-divider::after { animation: none; opacity: 0; }
}

/* ─── Sources box ─── */
.sources { margin: 2.5rem 0; padding: 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: 12px; }
.sources h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.sources ol { margin: 0; padding-left: 1.25rem; }
.sources li { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.5rem; }
.sources a { color: var(--accent-primary); word-break: break-word; }

/* ─── Footer ─── */
footer { background: var(--bg-primary); border-top: 1px solid var(--border-subtle); padding: 4rem 2rem 2rem; margin-top: 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-grid h3 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; color: var(--text-primary); }
.footer-grid a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-grid a:hover { color: var(--accent-primary); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom .legal { display: flex; gap: 2rem; }
.footer-bottom .legal a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ─── Hero entrance animation ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 { animation: fadeInUp 0.8s ease-out 0.1s both; }
.hero p.lede { animation: fadeInUp 0.8s ease-out 0.2s both; }
.meta-row { animation: fadeInUp 0.8s ease-out 0.3s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   LEGACY ARTICLE MARKUP COMPATIBILITY
   The original /posts/ pages use article-header, article-content,
   article-cta, cta-button, related-section instead of the newer
   hero, wrap prose, cta-band, btn-primary, sources vocabulary.
   The rules below make the legacy markup render with the new
   visual treatment, so existing posts don't need a body rewrite.
   Auto-injects the green section-divider bar above every h2 in
   .article-content via ::before / ::after, so old posts get the
   sectional rhythm without any new markup.
   ============================================================ */

/* Article header (legacy) → behaves like .hero */
.article-header {
  padding: 9rem 2rem 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.article-header .article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  align-items: center;
}
.article-header .article-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
}
.article-header .article-date,
.article-header .article-read-time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.article-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}
.article-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Article content (legacy) → behaves like .wrap .prose */
.article-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 2rem 1rem;
}
.article-content h2 {
  font-size: 1.7rem;
  font-weight: 750;
  line-height: 1.25;
  position: relative;
  margin: 4rem 0 1rem;
  padding-top: 2.25rem;
  color: var(--text-primary);
}
.article-content > h2:first-of-type {
  margin-top: 2rem;
  padding-top: 0;
}
.article-content > h2:first-of-type::before,
.article-content > h2:first-of-type::after { display: none; }

/* Auto-injected green section bar before every h2 except the first */
.article-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 212, 170, 0.55);
  box-shadow: 0 0 18px -3px rgba(0, 212, 170, 0.5);
  pointer-events: none;
}
.article-content h2::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 200px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(150, 255, 230, 0.95), transparent);
  box-shadow: 0 0 14px 2px rgba(0, 212, 170, 0.65);
  opacity: 0;
  transform: translateX(-220px);
  animation: dividerSweep 11s ease-in-out infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .article-content h2::after { animation: none; opacity: 0; }
}

.article-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 0.6rem; color: var(--text-primary); }
.article-content p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.25rem; }
.article-content p strong { color: var(--text-primary); }
.article-content ul, .article-content ol { margin: 1rem 0 1.75rem; padding-left: 1.25rem; color: var(--text-secondary); }
.article-content li { margin: 0.55rem 0; line-height: 1.7; font-size: 1.05rem; }
.article-content a { color: var(--accent-primary); }
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 12px 12px 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text-primary);
}

/* Article hero figure (legacy) → behaves like .hero-fig */
.article-hero {
  margin: 2rem 0 0;
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.article-hero figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

/* CTA (legacy) → behaves like .cta-band */
.article-cta {
  background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,136,204,0.15));
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3.5rem auto;
  max-width: 820px;
}
.article-cta h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.article-cta h2::before, .article-cta h2::after { display: none; }
.article-cta p { color: var(--text-secondary); max-width: 640px; margin: 0 auto 1.75rem; line-height: 1.7; }

/* CTA button (legacy) → behaves like .btn-primary */
.cta-button {
  display: inline-block;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,170,0.3);
}
.article-content .cta-button,
.article-cta .cta-button,
.article-content a.cta-button { color: var(--bg-primary); }

/* Related Reading (legacy) */
.related-section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem 2rem 4rem;
  border-top: 1px solid var(--border-subtle);
}
.related-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 212, 170, 0.12);
}
.related-card .related-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}
.related-card .related-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .article-header { padding: 7rem 1.5rem 2rem; }
  .article-content { padding: 1rem 1.5rem; }
}

/* ============================================================
   POST-SPECIFIC COMPONENTS
   Additional component styles used by individual posts that
   weren't part of the original HIPAA template.
   ============================================================ */

/* Key finding title (legacy alias) */
.key-finding-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.6rem;
}

/* Callout box */
.callout {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.14), rgba(0, 136, 204, 0.10));
  border: 1px solid rgba(0, 212, 170, 0.25);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.08), 0 12px 30px rgba(0, 212, 170, 0.06);
}
.callout-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
}
.callout p { margin: 0; color: var(--text-primary); font-size: 1rem; line-height: 1.75; }

/* Stat highlight row */
.stat-highlight {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat-item { text-align: left; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--accent-primary);
}
.stat-label { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 768px) {
  .stat-highlight { grid-template-columns: 1fr; }
}

/* Source box (inline citation card) */
.source-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.source-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.source-box p:last-child { margin-bottom: 0; }
.source-box strong { color: var(--text-secondary); }
.source-box a { color: var(--accent-primary); word-break: break-word; }

/* Source list (end-of-article references) */
.source-list {
  margin: 3rem 0 2rem;
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.source-list h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.source-list ol { margin: 0; padding-left: 1.25rem; }
.source-list li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.source-list a { color: var(--accent-primary); word-break: break-word; }

/* Comparison tables */
.table-wrap {
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
table.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.comparison thead {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.10), rgba(0, 136, 204, 0.08));
}
table.comparison th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
table.comparison td {
  padding: 1rem 1.25rem;
  vertical-align: top;
  color: var(--text-secondary);
  line-height: 1.65;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
table.comparison tbody tr:last-child td { border-bottom: none; }
table.comparison tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
table.comparison td:first-child { color: var(--text-primary); font-weight: 600; }

/* Framing table (side-by-side compare grid) */
.framing-table {
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.framing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-subtle);
}
.framing-row:last-child { border-bottom: none; }
.framing-header {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
}
.framing-header.good {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.14), rgba(0, 136, 204, 0.10));
  color: var(--accent-primary);
}
.framing-cell {
  padding: 1.1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.7;
  border-left: 1px solid var(--border-subtle);
}
.framing-row > :first-child { border-left: none; }
.framing-cell.bad {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.01);
}
.framing-cell.good {
  color: var(--text-primary);
  background: rgba(0, 212, 170, 0.04);
}
@media (max-width: 640px) {
  .framing-row { grid-template-columns: 1fr; }
  .framing-cell { border-left: none; border-top: 1px solid var(--border-subtle); }
  .framing-row > :first-child { border-top: none; }
}

/* Author box */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin: 3rem 0;
  align-items: flex-start;
}
.author-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--bg-primary);
  font-size: 1.2rem;
}
.author-info { flex: 1; }
.author-info h4 { font-size: 1.05rem; margin-bottom: 0.2rem; color: var(--text-primary); font-weight: 600; }
.author-title {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}
.author-bio { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
@media (max-width: 640px) {
  .author-box { flex-direction: column; text-align: left; }
}

/* Regulation box (left-bar callout for regs and standards) */
.regulation-box {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 12px 12px 0;
}
.regulation-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.regulation-box p { font-size: 0.97rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 0; }
