/* eDiscoveryInsider.com - Shared Stylesheet */
:root {
  --ink: #0a0a0f;
  --ink-soft: #2a2a35;
  --ink-muted: #6b6b7a;
  --paper: #f5f3ee;
  --paper-warm: #ede9e0;
  --accent: #c8392b;
  --accent-dark: #9b2d22;
  --accent-gold: #d4a017;
  --white: #ffffff;
  --border: rgba(10,10,15,0.12);
  --shadow-sm: 0 2px 8px rgba(10,10,15,0.08);
  --shadow-md: 0 8px 32px rgba(10,10,15,0.12);
  --shadow-lg: 0 24px 64px rgba(10,10,15,0.16);
  --content-width: 760px;
  --site-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-nav {
  position: absolute; top: -100px; left: 1rem;
  background: var(--accent); color: white;
  padding: 0.75rem 1.5rem; border-radius: 4px;
  font-weight: 600; text-decoration: none; z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* NAV */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,243,238,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 0 2rem;
}
.nav-inner {
  max-width: var(--site-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav-logo-mark {
  width: 36px; height: 36px; background: var(--accent); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: 1.1rem; color: white; flex-shrink: 0;
}
.nav-logo-text { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.nav-logo-text span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent) !important; color: white !important; padding: 0.5rem 1.25rem; border-radius: 4px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--accent-dark) !important; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: white;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600;
  padding: 0.875rem 1.75rem; border-radius: 4px; text-decoration: none;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500;
  padding: 0.875rem 1.75rem; border-radius: 4px; text-decoration: none;
  border: 1.5px solid var(--border); transition: all 0.2s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--ink); }

/* FOOTER */
footer.site-footer { background: var(--ink); padding: 4rem 2rem 2rem; color: rgba(255,255,255,0.5); }
.footer-inner { max-width: var(--site-width); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ARTICLE LAYOUT */
.article-hero {
  background: var(--ink); padding: 8rem 2rem 5rem; margin-bottom: 0;
}
.article-hero-inner { max-width: var(--content-width); margin: 0 auto; }
.article-breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.8rem; }
.article-breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; }
.article-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.article-breadcrumb span { color: rgba(255,255,255,0.25); }
.article-tag {
  display: inline-block; background: rgba(200,57,43,0.25); border: 1px solid rgba(200,57,43,0.4);
  color: #ff8a7a; font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 3px; margin-bottom: 1.25rem;
  font-family: 'DM Mono', monospace;
}
.article-hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -1px; color: white; margin-bottom: 1.25rem;
}
.article-hero .lead {
  font-size: 1.15rem; color: rgba(255,255,255,0.65); line-height: 1.7;
  font-weight: 300; margin-bottom: 2rem; max-width: 640px;
}
.article-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ARTICLE BODY */
.article-layout {
  max-width: 1100px; margin: 0 auto; padding: 4rem 2rem;
  display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start;
}
.article-content h2 {
  font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.5px; margin: 2.5rem 0 1rem; line-height: 1.25;
}
.article-content h3 {
  font-family: 'DM Sans', sans-serif; font-size: 1.15rem; font-weight: 600;
  color: var(--ink); margin: 2rem 0 0.75rem;
}
.article-content p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1.5rem; font-weight: 300; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-content li { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 0.5rem; font-weight: 300; }
.article-content strong { font-weight: 600; color: var(--ink); }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--accent-dark); }

.callout {
  background: rgba(200,57,43,0.06); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 1.5rem 1.75rem; margin: 2rem 0;
}
.callout-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; font-family: 'DM Mono', monospace; }
.callout p { margin-bottom: 0; font-size: 0.95rem; }

.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9rem; }
.data-table th { background: var(--ink); color: white; padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; }
.data-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); color: var(--ink-soft); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: rgba(10,10,15,0.02); }
.bad-value { color: var(--accent); font-weight: 600; font-family: 'DM Mono', monospace; }
.good-value { color: #1a8a4a; font-weight: 600; font-family: 'DM Mono', monospace; }

/* SIDEBAR */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.sidebar-card h4 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.sidebar-card p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 1rem; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.toc-list a { font-size: 0.85rem; color: var(--ink-muted); text-decoration: none; padding: 0.35rem 0.75rem; border-left: 2px solid var(--border); display: block; transition: all 0.2s; }
.toc-list a:hover { color: var(--accent); border-left-color: var(--accent); }
.email-input-sm {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border);
  border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  color: var(--ink); background: var(--paper); margin-bottom: 0.75rem; transition: border-color 0.2s;
}
.email-input-sm:focus { outline: none; border-color: var(--accent); }

/* RELATED ARTICLES */
.related-section { background: var(--paper-warm); padding: 5rem 2rem; border-top: 1px solid var(--border); }
.related-inner { max-width: 1100px; margin: 0 auto; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.related-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem; text-decoration: none; color: inherit; transition: all 0.25s; display: block; }
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card .guide-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-family: 'DM Mono', monospace; }
.related-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0.5rem 0; }
.related-card p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .article-hero { padding: 6rem 1.25rem 3rem; }
  .article-layout { padding: 2rem 1.25rem; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
