/* ==========================================================================
   Modern Public Service Media Blueprint - Stylesheet
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;

  /* Light Theme */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  --border-subtle: #e2e8f0;
  --border-focus: #3b82f6;

  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  --accent-surface: #e0f2fe;

  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-subtle: #172033;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border-subtle: #1f293d;
  --border-focus: #60a5fa;

  --accent-primary: #38bdf8;
  --accent-primary-hover: #7dd3fc;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #818cf8 100%);
  --accent-surface: #0c4a6e;

  --warning-bg: #1c1917;
  --warning-border: #451a03;
  --warning-text: #fde68a;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Reading Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-gradient);
  width: 0%;
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .site-header {
  background-color: rgba(17, 24, 39, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-surface);
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-cta {
  background: var(--accent-surface);
  color: var(--accent-primary) !important;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700 !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.nav-cta:hover {
  background: var(--accent-primary);
  color: #ffffff !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-theme {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-theme:hover {
  border-color: var(--accent-primary);
}

.btn-mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.btn-mobile-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 4.25rem;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mobile-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.nav-cta-mobile {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top center, var(--accent-surface) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.tag-accent {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
}

[data-theme="dark"] .tag-accent {
  color: #090d16;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 850px;
  margin-bottom: 2.5rem;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Content Layout (Sidebar + Article) */
.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

/* Sidebar TOC */
.sidebar {
  position: relative;
}

.sidebar-box {
  position: sticky;
  top: 6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 700;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.toc-link:hover, .toc-link.active {
  color: var(--accent-primary);
  background-color: var(--bg-subtle);
  font-weight: 600;
  padding-left: 0.75rem;
}

/* Article Body */
.article-body {
  max-width: 840px;
}

.content-block {
  margin-bottom: 4rem;
  scroll-margin-top: 5.5rem;
}

.block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.block-num {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  opacity: 0.85;
}

.block-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lead-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Cards & Components */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-card h3,
.info-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.warning-card {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.warning-card h3,
.warning-card h4 {
  color: var(--warning-text);
}

.warning-card p {
  color: var(--warning-text);
  opacity: 0.95;
}

.highlight-card {
  border-left: 4px solid var(--accent-primary);
}

.bullet-list {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bullet-list li {
  margin-bottom: 0.45rem;
}

/* Recommendation Item with Icon */
.recommendation-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.rec-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.rec-content h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.rec-content p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Comparison Table */
.table-wrapper {
  margin-top: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.table-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.comparison-table th {
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-subtle);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table td {
  color: var(--text-muted);
}

.comparison-table tr.preferred-row td {
  background: rgba(2, 132, 199, 0.06);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

[data-theme="dark"] .badge-success {
  color: #4ade80;
}

.badge-neutral {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

[data-theme="dark"] .badge-neutral {
  color: #fbbf24;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

[data-theme="dark"] .badge-danger {
  color: #f87171;
}

/* Comparison Box */
.comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.comp-col {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.comp-negative {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.25);
}

.comp-negative h3 {
  color: #dc2626;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

[data-theme="dark"] .comp-negative h3 {
  color: #f87171;
}

.comp-positive {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.25);
}

.comp-positive h3 {
  color: #16a34a;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

[data-theme="dark"] .comp-positive h3 {
  color: #4ade80;
}

.comp-col ul {
  list-style: none;
}

.comp-col li {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* Callout Card */
.callout-card {
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.callout-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.callout-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Step Guide */
.step-guide {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step-row {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.step-badge {
  background: var(--accent-gradient);
  color: #ffffff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.step-detail {
  flex: 1;
}

.step-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.step-detail h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-low {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .status-low {
  color: #fca5a5;
}

.status-mid {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .status-mid {
  color: #fcd34d;
}

/* Audit Overview Scorecard */
.audit-overview-card {
  margin-top: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.audit-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.audit-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.audit-overview-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.audit-total-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  text-align: center;
}

.audit-total-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #d97706;
  line-height: 1.1;
}

[data-theme="dark"] .audit-total-num {
  color: #fbbf24;
}

.audit-total-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.audit-intro {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.audit-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.audit-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.audit-bar-info a {
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.audit-bar-info a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.audit-pct {
  font-size: 0.8rem;
  font-weight: 600;
}

.pct-danger {
  color: #dc2626;
}

[data-theme="dark"] .pct-danger {
  color: #f87171;
}

.pct-warning {
  color: #d97706;
}

[data-theme="dark"] .pct-warning {
  color: #fbbf24;
}

.audit-track {
  width: 100%;
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 9999px;
  overflow: hidden;
}

.audit-fill {
  height: 100%;
  border-radius: 9999px;
}

.fill-danger {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.fill-warning {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.step-detail p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.step-detail p:last-child {
  margin-bottom: 0;
}

.kpi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kpi {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
}

/* Feature Card */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.feat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--accent-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.faq-toggle-icon {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer ol {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

.faq-answer li {
  margin-bottom: 0.6rem;
}

/* Call to Action Block */
.cta-block {
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.cta-header {
  margin-bottom: 1.5rem;
}

.cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-surface);
  color: var(--accent-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.cta-header h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.cta-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.cta-grid {
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.cta-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.cta-step {
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.cta-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.share-feedback {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-primary);
  min-height: 1.3rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Alert Block & Breaking Banner */
.alert-block {
  border: 2px solid #ef4444;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.15);
  margin-bottom: 3.5rem;
}

.breaking-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .breaking-banner {
  background: #450a0a;
  color: #fca5a5;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.nav-highlight {
  color: #ef4444 !important;
  font-weight: 700 !important;
}

.critical-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.crit-stat-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.crit-stat-card.crit-danger {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}

.crit-stat-card.crit-alert {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
}

.crit-num {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.crit-stat-card.crit-danger .crit-num {
  color: #dc2626;
}

[data-theme="dark"] .crit-stat-card.crit-danger .crit-num {
  color: #f87171;
}

.crit-stat-card.crit-alert .crit-num {
  color: #d97706;
}

[data-theme="dark"] .crit-stat-card.crit-alert .crit-num {
  color: #fbbf24;
}

.crit-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Responsive Queries */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .btn-mobile-menu {
    display: flex;
  }
}

@media (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    display: none;
  }

  .comparison-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .recommendation-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .alert-block,
  .cta-block {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Print Stylesheet for PDF / Parliamentary Brief Export */
@media print {
  .site-header,
  .sidebar,
  .progress-bar,
  .mobile-drawer,
  .cta-actions,
  .skip-link {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .content-layout {
    display: block !important;
    padding: 0 !important;
  }

  .article-body {
    max-width: 100% !important;
  }

  .faq-answer {
    display: block !important;
  }

  .content-block,
  .info-card,
  .recommendation-item,
  .step-row {
    break-inside: avoid;
    box-shadow: none !important;
  }
}
