/* ============================================================
   styles-v2.css — Full Enhancement Suite (20 features)
   Loads AFTER original styles.css
   ============================================================ */
:root {
  --bg-primary: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-alt: #F5F3EF;
  --bg-cream: #F9F8F2;
  --text-primary: #2B2A27;
  --text-secondary: #4A4843;
  --text-muted: #8A8780;
  --navy: #0B1D3A;
  --navy-light: #132D54;
  --blue: #1A5DAB;
  --blue-hover: #0D3A70;
  --gold: #C9A84C;
  --gold-light: #E4D08F;
  --red: #B83230;
  --border: rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --divider: #E0DDD6;
}
/* 9. DARK MODE */
html.dark-mode {
  --bg-primary: #141414; --bg-card: #1E1E1E; --bg-alt: #1A1A1A; --bg-cream: #1C1C1A;
  --text-primary: #E0DDD6; --text-secondary: #B0ADA6; --text-muted: #7A776F;
  --border: rgba(255,255,255,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3); --shadow-md: 0 4px 16px rgba(0,0,0,0.4); --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --divider: #333;
}
html.dark-mode body { background: var(--bg-primary); color: var(--text-primary); }
html.dark-mode .section-1 { background: linear-gradient(175deg, var(--navy) 0%, #091428 100%); }
html.dark-mode .section-2, html.dark-mode .section-post, html.dark-mode .section-6 { background: var(--bg-primary); }
html.dark-mode .section-5, html.dark-mode .timeline-section { background: var(--bg-alt); }
html.dark-mode .section-5 ol > li { background: var(--bg-card); border-color: var(--border); }
html.dark-mode .content-preview, html.dark-mode .content-preview.style-1, html.dark-mode .content-preview.style-2 { background: var(--bg-card); border-color: var(--border); }
html.dark-mode p { color: var(--text-secondary); }
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3, html.dark-mode h4, html.dark-mode h5 { color: var(--text-primary); }
html.dark-mode .highlight { background: #1A2433; border-color: #2A3A4F; }
html.dark-mode blockquote.trial-transcript, html.dark-mode blockquote.legal-citation { background: var(--bg-cream); border-color: var(--gold); }
html.dark-mode .article-screenshot a { border-color: var(--border); box-shadow: none; }
html.dark-mode .timeline-item .timeline-content { background: var(--bg-card); border-color: var(--border); }
html.dark-mode .fact-header h3 { color: var(--text-primary) !important; }
html.dark-mode .site-footer { background: #0A0A0A; }
html.dark-mode .drop-cap::first-letter { color: var(--gold); }
html.dark-mode .toc-link.active { color: var(--gold); }
html.dark-mode .timeline-item::before { border-color: var(--bg-primary); }

/* Base typography */
html { font-family: 'Source Sans 3', 'Roboto', sans-serif; scroll-behavior: smooth; scroll-padding-top: 64px; }
h1,h2,h3,h4,h5,h6 { font-family: 'Libre Baskerville', 'Oswald', Georgia, serif; letter-spacing: -0.01em; }
p { line-height: 1.7; color: var(--text-primary); }
a { color: var(--blue); transition: color 0.2s; }
a:hover { color: var(--blue-hover); }
a.red-color { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a.red-color:hover { color: var(--blue-hover); }

/* Skip link */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 10000; border-radius: 0 0 4px 4px; font-weight: 600; font-size: 0.85rem; }
.skip-link:focus { top: 0; }

/* Progress bar */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--gold), var(--blue)); z-index: 10001; transition: width 0.1s linear; }

/* 1. HEADER */
.site-header { position: fixed; top: 3px; left: 0; right: 0; z-index: 9999; background: rgba(11,29,58,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 2px solid var(--gold); transition: background 0.3s, box-shadow 0.3s; }
.site-header.scrolled { background: rgba(11,29,58,0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.site-header__inner { max-width: 1000px; margin: 0 auto; padding: 0.55rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.site-header__brand { font-family: 'Libre Baskerville', Georgia, serif; font-size: 0.95rem; color: var(--gold); text-decoration: none; }
.site-header__brand strong { color: #fff; }
.site-header__tag { font-family: 'Source Sans 3', sans-serif; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.4); margin-left: 0.5rem; vertical-align: middle; }
.site-header__nav { display: flex; align-items: center; gap: 0.1rem; }
.site-header__nav a { color: rgba(255,255,255,0.7); font-family: 'Source Sans 3', sans-serif; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.3rem 0.45rem; border-radius: 3px; text-decoration: none; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.site-header__nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* 18. Last updated */
.last-updated-bar { text-align: center; padding: 0.35rem; background: var(--navy); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-top: 48px; }

/* 15. HAMBURGER */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; flex-direction: column; gap: 4px; z-index: 10000; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 850px) {
  .hamburger { display: flex; }
  .site-header__nav { position: fixed; top: 0; right: -280px; width: 260px; height: 100vh; background: var(--navy); flex-direction: column; align-items: flex-start; padding: 4rem 1.5rem 2rem; gap: 0.25rem; transition: right 0.3s ease; box-shadow: -4px 0 20px rgba(0,0,0,0.3); }
  .site-header__nav.open { right: 0; }
  .site-header__nav a { font-size: 0.9rem; padding: 0.6rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* 9. Dark mode toggle */
.dark-mode-toggle { background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; color: var(--gold); transition: background 0.2s, border-color 0.2s; margin-left: 0.3rem; }
.dark-mode-toggle:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); }
.dm-icon-dark { display: none; }
html.dark-mode .dm-icon-light { display: none; }
html.dark-mode .dm-icon-dark { display: inline; }

/* 19. HERO PARALLAX */
.section-1 { background: linear-gradient(175deg, #EEF7FF 0%, #D8EAFA 100%); background-attachment: fixed; padding-top: 4rem; }
.section-1 h1 { color: var(--navy); line-height: 1.25; }
.section-1 .text-red.emphasis { color: var(--red); }
.section-1 .hero { box-shadow: var(--shadow-lg); border: 1px solid var(--border); border-radius: 4px; }

/* Sections */
.section-2 { padding-top: 6rem; padding-bottom: 2.5rem; background: var(--bg-primary); }
.section-2 p { font-size: 1.1rem; color: var(--text-secondary); max-width: 720px; margin-left: auto; margin-right: auto; }
.section-post { background: var(--bg-primary); }
.section-post h2 { color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 0.5rem; display: inline-block; }
.section-post h3 { color: var(--red); margin-top: 2rem; }
.section-post p img { border-radius: 4px; box-shadow: var(--shadow-sm); }

/* 5. SECTION DIVIDERS */
.section-2::after, .section-post::after, .section-5::after, .timeline-section::after { content: ''; display: block; width: 60px; height: 3px; margin: 0 auto; background: linear-gradient(90deg, var(--gold), var(--blue)); border-radius: 2px; }

/* 12. DROP CAP */
.drop-cap::first-letter { float: left; font-family: 'Libre Baskerville', Georgia, serif; font-size: 3.8rem; line-height: 0.85; font-weight: 700; color: var(--navy); margin-right: 0.15rem; margin-top: 0.08rem; }

/* FACTS SECTION + 3. STYLED BADGES */
.section-5 { background: var(--bg-alt); }
.section-5 > .content-large > h2 { color: var(--navy); }
.section-5 .text-red { color: var(--red); }
.section-5 ol > li { background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-md); border-radius: 8px; transition: box-shadow 0.3s; }
.section-5 ol > li:hover { box-shadow: var(--shadow-lg); }
.section-5 ol > li::after { content: counter(item); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
@media (min-width: 540px) { .section-5 ol > li::after { width: 2.8rem; height: 2.8rem; font-size: 1.4rem; } }

/* 11. ACCORDION (CSS-only, no wrapper divs) */
.fact-header { cursor: pointer; position: relative; padding-right: 2rem; }
.fact-header:hover h3 { color: var(--blue) !important; }
.accordion-arrow { font-size: 0.7rem; color: var(--text-muted); margin-left: 0.5rem; display: inline-block; transition: transform 0.3s ease; transform: rotate(-90deg); }
.section-5 ol > li.open .accordion-arrow { transform: rotate(0deg); }
.section-5 ol > li h3 { cursor: pointer; position: relative; }
/* Expand/collapse button */
.section-5 ol > li h3::after {
  content: '+ Read More';
  margin-top: 0.7rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: rgba(26,93,171,0.06);
  border: 1px solid rgba(26,93,171,0.15);
  border-radius: 3px;
  padding: 0.35rem 0.9rem;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.section-5 ol > li h3:hover::after {
  background: rgba(26,93,171,0.12);
}
.section-5 ol > li.open h3::after {
  content: '\2212  Collapse';
  color: var(--text-muted);
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
.section-5 ol > li > *:not(h3):not(.fact-header) { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.3s ease; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.section-5 ol > li.open > *:not(h3):not(.fact-header) { max-height: 5000px; opacity: 1; overflow: visible; margin-bottom: 2rem; }

/* 6. LEGAL CITATION PULL-QUOTES */
blockquote.legal-citation { border: none; border-left: 4px solid var(--gold); margin: 2rem 0; padding: 1.5rem 1.75rem; background: var(--bg-cream); border-radius: 0 8px 8px 0; position: relative; }
blockquote.legal-citation::before { content: '\201C'; position: absolute; top: -0.2rem; left: 0.5rem; font-family: 'Libre Baskerville', Georgia, serif; font-size: 4rem; color: var(--gold); opacity: 0.3; line-height: 1; }
blockquote.legal-citation p { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.05rem; font-style: italic; line-height: 1.6; color: var(--text-secondary); margin-bottom: 0; }

/* Trial transcripts */
blockquote.trial-transcript { border-left: 3px solid var(--gold); padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; background: var(--bg-cream); border-radius: 0 6px 6px 0; }
blockquote.trial-transcript p { font-size: 0.92rem; margin-bottom: 0.75rem; line-height: 1.7; color: var(--text-secondary); }
blockquote.trial-transcript p:last-child { margin-bottom: 0; }
blockquote.trial-transcript strong { color: var(--navy); }
blockquote.trial-transcript cite { font-style: italic; color: var(--text-muted); font-size: 0.82rem; }

/* 4. IMAGE ZOOM + LIGHTBOX */
img.zoomable { cursor: zoom-in; transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: 4px; }
img.zoomable:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.lightbox { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.lightbox__img { position: relative; max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 0 60px rgba(0,0,0,0.5); }

/* 7. TOC SIDEBAR */
.toc-sidebar { position: fixed; left: 1.2rem; top: 50%; transform: translateY(-50%); z-index: 9990; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.toc-sidebar.visible { opacity: 1; visibility: visible; }
.toc-sidebar__title { font-family: 'Source Sans 3', sans-serif; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 0.5rem; padding-left: 0.5rem; }
.toc-link { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); padding: 0.3rem 0.5rem; border-left: 2px solid transparent; text-decoration: none; transition: color 0.2s, border-color 0.2s; font-family: 'Source Sans 3', sans-serif; }
.toc-link:hover { color: var(--blue); }
.toc-link.active { color: var(--navy); border-left-color: var(--gold); font-weight: 700; }
@media (max-width: 1280px) { .toc-sidebar { display: none; } }

/* 16. SHARE BUTTONS — positioned below TOC */
.share-buttons { position: fixed; left: 1.2rem; bottom: 2.5rem; z-index: 9990; display: flex; flex-direction: column; gap: 0.4rem; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.share-buttons.visible { opacity: 1; visibility: visible; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.share-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-md); }
.share-btn--x { background: #000; color: #fff; }
.share-btn--fb { background: #1877F2; color: #fff; }
@media (max-width: 1280px) { .share-buttons { display: none; } }

/* 8. STYLED DONATE BUTTON */
.donate-btn-styled { display: inline-block; padding: 0.8rem 2rem; background: var(--gold); color: var(--navy) !important; font-family: 'Source Sans 3', sans-serif; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 4px; text-decoration: none !important; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 10px rgba(201,168,76,0.3); animation: donate-pulse 3s ease-in-out infinite; }
.donate-btn-styled:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.4); }
.donate-btn__icon { margin-right: 0.3rem; }
@keyframes donate-pulse { 0%,100% { box-shadow: 0 2px 10px rgba(201,168,76,0.3); } 50% { box-shadow: 0 4px 20px rgba(201,168,76,0.5); } }

/* 13. TIMELINE */
.timeline-section { padding: 4rem 1.5rem; background: var(--bg-primary); }
.timeline-heading { text-align: center; color: var(--navy); margin-bottom: 2.5rem; }
.timeline { position: relative; max-width: 700px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--gold), var(--blue)); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.35rem; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg-primary); box-shadow: 0 0 0 2px var(--gold); }
.timeline-date { font-family: 'Source Sans 3', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 0.3rem; }
.timeline-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; box-shadow: var(--shadow-sm); }
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--navy); text-align: left; }
.timeline-content p { font-size: 0.88rem; margin-bottom: 0; color: var(--text-secondary); line-height: 1.6; }

/* 14. FOOTER */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 3rem 1.5rem 1.5rem; }
.footer-grid { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-col__title { font-family: 'Source Sans 3', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.75rem; }
.footer-col p { font-size: 0.8rem; line-height: 1.5; color: rgba(255,255,255,0.5); margin-bottom: 0; }
.footer-col a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.6); padding: 0.2rem 0; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 880px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin: 0; }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); border: 2px solid var(--gold); font-size: 1.2rem; font-weight: bold; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; z-index: 9998; display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue); border-color: #fff; color: #fff; }

/* 2. FADE-IN ANIMATIONS */
.fade-in, .fade-in-card, .timeline-item { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.in-view, .fade-in-card.in-view, .timeline-item.in-view { opacity: 1; transform: translateY(0); }
.fade-in-card:nth-child(2) { transition-delay: 0.05s; }
.fade-in-card:nth-child(3) { transition-delay: 0.1s; }

/* 17. VIDEO */
.cctv { border-radius: 6px; box-shadow: var(--shadow-md); }

/* Misc existing overrides */
.content-preview { border-radius: 8px; box-shadow: var(--shadow-sm); border-color: var(--border); }
.article-screenshot a { border-radius: 6px; box-shadow: var(--shadow-md); overflow: hidden; }
.article-screenshot a:hover { box-shadow: var(--shadow-lg); }
.article-screenshot a .read-article { background: var(--navy); font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; border-top-left-radius: 6px; }
.article-screenshot a:hover .read-article { background: var(--blue); }
.highlight { background: #EDF4FB; border: 1px solid #C8DDF2; border-radius: 6px; box-shadow: var(--shadow-sm); }
.highlight h3 a { color: var(--blue) !important; }
.yellow-highlight { background-color: #FFF3B0; box-shadow: 0.75rem 0 0 #FFF3B0, -0.75rem 0 0 #FFF3B0; border-radius: 2px; }
.section-6 .disclaimer { display: none; }
#case-overview, #key-facts, #timeline-section, #conclusion, #main-content { scroll-margin-top: 64px; }

/* 20. PRINT */
@media print {
  .site-header, .progress-bar, .back-to-top, .toc-sidebar, .share-buttons, .hamburger, .dark-mode-toggle, .donate-btn-styled, .last-updated-bar, .accordion-arrow, .lightbox, .cctv, iframe, .site-footer { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  p, .fact-body { color: #000 !important; }
  h1,h2,h3 { color: #000 !important; page-break-after: avoid; }
  .fact-body { max-height: none !important; opacity: 1 !important; overflow: visible !important; }
  .section-5 ol > li { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .fade-in, .fade-in-card, .timeline-item { opacity: 1 !important; transform: none !important; }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .section-1 { padding-top: 2.5rem; }
  .section-1 h1 { font-size: 1.8rem; }
  .section-5 ol > li { padding: 1.5rem; padding-top: 5rem; }
  .article-screenshot a .read-article { font-size: 0.72rem; padding: 0.4rem 0.7rem; }
  .back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; }
  blockquote.trial-transcript, blockquote.legal-citation { padding: 1rem; margin: 1rem 0 1.5rem; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1rem; }
  .timeline-item::before { left: -1.85rem; }
  .donate-btn-styled { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
  .last-updated-bar { margin-top: 44px; }
}
