@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #070a0e;
  --bg-secondary: #0d1218;
  --bg-surface: #111822;
  --bg-card: #151f2c;
  --bg-elevated: #1a2636;
  --border-subtle: #1e2b3b;
  --border-medium: #2a3b50;
  --border-accent: #dc2626;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #627285;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.12);
  --accent-amber: #f59e0b;
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.12);
  --font-serif: "Newsreader", Charter, Georgia, Cambria, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Institutional Top Masthead Strip */
.top-masthead {
  background: #040608;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0.4rem 1.5rem;
}
.masthead-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.masthead-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.masthead-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

/* Reading Progress Bar */
#reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}
#reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-amber), var(--accent-cyan));
  transition: width 0.1s ease-out;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

/* Main Site Header */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 10, 14, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}
.brand-badge .watchdog-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-red);
}
.brand-badge .brand-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand-badge .brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-left: 1px solid var(--border-subtle);
  padding-left: 0.85rem;
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  text-decoration: none;
}

/* Tip Line Button */
.tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary) !important;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.15s ease;
}
.tip-badge:hover {
  border-color: var(--accent-red);
  color: #fff !important;
  background: var(--accent-red-glow);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

/* Hero Section */
.hero-banner {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-block;
  margin-bottom: 0.95rem;
  font-weight: 600;
}
.hero-banner h1 {
  font-family: var(--font-serif);
  font-size: 3.35rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
  color: #fff;
}
.hero-banner p.lead {
  font-size: 1.22rem;
  color: var(--text-secondary);
  max-width: 860px;
  line-height: 1.68;
  font-weight: 400;
}

/* Institutional Alert Banner */
.alert-banner {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.07) 0%, rgba(239, 68, 68, 0.02) 100%);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-left: 3px solid var(--accent-red);
  border-radius: 4px;
  padding: 1.35rem 1.65rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.05);
}
.alert-banner .alert-title {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-red);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.alert-banner p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interactive Filter & Search Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.95rem 1.35rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-subtle);
}
.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.4rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.38rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover {
  border-color: var(--border-medium);
  color: #fff;
}
.filter-btn.active {
  background: var(--accent-red-glow);
  border-color: var(--accent-red);
  color: #fff;
  font-weight: 600;
}
.search-box {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 260px;
}
.search-box input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  padding: 0.45rem 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.search-box input:focus {
  border-color: var(--accent-cyan);
}
.search-box input::placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.85rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}
.section-heading h2 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
}
.section-heading .count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Investigation Cards Grid */
.investigations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.85rem;
  margin-bottom: 4rem;
}

.investigation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2.35rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-subtle);
}
.investigation-card:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card-meta {
  display: flex;
  gap: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  align-items: center;
}
.card-meta .tag-risk {
  color: var(--accent-red);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.card-meta .tag-statute {
  color: var(--accent-amber);
}

.investigation-card h3 {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  line-height: 1.2;
  margin-bottom: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.investigation-card h3 a {
  color: #fff;
}
.investigation-card h3 a:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}

.investigation-card p.excerpt {
  color: var(--text-secondary);
  font-size: 1.04rem;
  margin-bottom: 1.65rem;
  line-height: 1.68;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.35rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.read-more {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.read-more:hover {
  color: #7dd3fc;
}

/* Article Page Layout with Sticky Sidebar */
.article-page-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 800px) 270px;
  gap: 3.5rem;
  align-items: start;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.article-header {
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1.16;
  margin-bottom: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
}
.article-lede {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 1.65rem;
}
.article-meta-bar {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.article-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Sticky Table of Contents Sidebar */
.article-sidebar {
  position: sticky;
  top: 5.5rem;
  padding: 1.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-subtle);
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.toc-list li a {
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  transition: color 0.15s ease;
}
.toc-list li a:hover {
  color: var(--accent-cyan);
}
.toc-list li.active a {
  color: #fff;
  font-weight: 600;
  border-left: 2px solid var(--accent-red);
  padding-left: 0.65rem;
  margin-left: -0.75rem;
}

.article-content {
  font-size: 1.12rem;
  line-height: 1.82;
  color: #e2e8f0;
}
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 500;
  margin: 3.35rem 0 1.35rem;
  color: #fff;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.55rem;
  scroll-margin-top: 5.5rem;
  letter-spacing: -0.015em;
}
.article-content h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.35rem 0 0.95rem;
  color: #cbd5e1;
  scroll-margin-top: 5.5rem;
}
.article-content p {
  margin-bottom: 1.6rem;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.75rem;
}
.article-content li {
  margin-bottom: 0.65rem;
}
.article-content blockquote {
  border-left: 3px solid var(--accent-red);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.35rem 1.85rem;
  margin: 2.25rem 0;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
  color: #e2e8f0;
  border-radius: 0 4px 4px 0;
}

.statutory-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.65rem 1.95rem;
  margin: 2.35rem 0;
  box-shadow: var(--shadow-subtle);
}
.statutory-callout .callout-header {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Responsive Table Wrapper */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 2.35rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-surface);
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-subtle);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.94rem;
}
.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}
.data-table th:last-child, .data-table td:last-child {
  border-right: none;
}
.data-table th {
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
}
.data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Author / Governance Disclosure Box */
.author-disclosure-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.65rem 1.95rem;
  margin: 3.5rem 0 2.5rem;
}
.disclosure-header {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  margin-bottom: 0.65rem;
  font-weight: 600;
}
.author-disclosure-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.author-disclosure-box p:last-child {
  margin-bottom: 0;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 3rem;
  background: #040608;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-info {
  max-width: 560px;
}
.footer-info p {
  margin-top: 0.7rem;
  line-height: 1.65;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-secondary);
}
.footer-nav a:hover {
  color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 980px) {
  .article-page-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .article-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  .hero-banner h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .top-masthead {
    display: none;
  }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }
  .hero-banner h1 {
    font-size: 2.1rem;
  }
  .article-header h1 {
    font-size: 2rem;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
}
