/* ========================================
   ICE SHOOTING HUB - CSS Variables
   ======================================== */
:root {
  --ice-primary: #2563eb;
  --ice-primary-dark: #1d4ed8;
  --ice-danger: #dc2626;
  --ice-warning: #f59e0b;
  --ice-success: #10b981;
  --ice-gray-50: #f8fafc;
  --ice-gray-100: #f1f5f9;
  --ice-gray-200: #e2e8f0;
  --ice-gray-300: #cbd5e1;
  --ice-gray-400: #94a3b8;
  --ice-gray-500: #64748b;
  --ice-gray-600: #475569;
  --ice-gray-700: #334155;
  --ice-gray-800: #1e293b;
  --ice-gray-900: #0f172a;
}

/* ========================================
   BASE STYLES
   ======================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ice-gray-50);
  color: var(--ice-gray-700);
  line-height: 1.6;
}

/* ========================================
   HUB HEADER
   ======================================== */
.hub-header {
  background: var(--ice-gray-900);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hub-title {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-title .back,
.hub-title .back-sub {
  color: var(--ice-gray-500);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.8rem;
  padding-right: 12px;
  border-right: 1px solid var(--ice-gray-700);
  margin-right: 4px;
}

.hub-title .back:hover,
.hub-title .back-sub:hover {
  color: var(--ice-gray-400);
}

.hub-title-text {
  color: white;
}

.hub-badge {
  background: var(--ice-danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hub-header nav {
  display: flex;
  gap: 0;
}

.hub-header nav a {
  color: var(--ice-gray-500);
  text-decoration: none;
  padding: 17px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.hub-header nav a:hover {
  color: var(--ice-gray-400);
}

.hub-header nav a.cta {
  background: var(--ice-primary);
  color: white;
  border-radius: 6px;
  padding: 8px 16px;
  margin: auto 0 auto 12px;
  border-bottom: none;
}

.hub-header nav a.cta:hover {
  background: var(--ice-primary-dark);
}

@media (max-width: 1000px) {
  .hub-header {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }
  .hub-header nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hub-header nav a {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--ice-gray-900) 0%, var(--ice-gray-800) 50%, #1e3a5f 100%);
  padding: 48px 24px 60px;
  position: relative;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-part-of {
  font-size: 0.85rem;
  color: #5eead4;
  margin-bottom: 12px;
}

.hero-part-of a {
  color: inherit;
  text-decoration: none;
}

.hero-part-of a:hover {
  text-decoration: underline;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ice-gray-400);
  max-width: 750px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ice-gray-500);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item.live {
  color: var(--ice-danger);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 1rem; }
}

/* ========================================
   FEATURED TOOLS STRIP
   ======================================== */
.featured-tools {
  background: linear-gradient(135deg, var(--ice-gray-800) 0%, var(--ice-gray-900) 100%);
  padding: 48px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.featured-tools-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.featured-tools-header {
  text-align: center;
  margin-bottom: 32px;
}

.featured-tools-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6 0%, var(--ice-primary) 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.featured-tools-header h2 {
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.featured-tools-header p {
  color: var(--ice-gray-400);
  font-size: 1rem;
}

.featured-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.featured-tool-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.featured-tool-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--ice-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.3);
}

.featured-tool-card.money:hover {
  border-color: var(--ice-success);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.3);
}

.featured-tool-icon {
  font-size: 2rem;
}

.featured-tool-content h3 {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.featured-tool-content p {
  color: var(--ice-gray-400);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.featured-tool-action {
  color: var(--ice-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
}

.featured-tool-card.money .featured-tool-action {
  color: var(--ice-success);
}

@media (max-width: 1100px) {
  .featured-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .featured-tools-grid {
    grid-template-columns: 1fr;
  }
  .featured-tool-card {
    flex-direction: row;
    align-items: center;
  }
  .featured-tool-icon {
    font-size: 1.5rem;
  }
  .featured-tool-content {
    flex: 1;
  }
}

/* ========================================
   LIVE UPDATES STRIP
   ======================================== */
.live-updates {
  background: #fefce8;
  border-top: 3px solid #eab308;
  border-bottom: 1px solid #fde047;
  padding: 24px;
}

.live-updates-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.live-updates-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.live-badge {
  background: var(--ice-danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  animation: pulse 2s infinite;
}

.live-updates-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin: 0;
}

.live-date {
  font-size: 0.8rem;
  color: #a16207;
}

.live-updates-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.live-card {
  background: white;
  border: 1px solid #fde047;
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 220px;
  flex-shrink: 0;
}

.live-card.hot {
  border: 2px solid var(--ice-danger);
  background: linear-gradient(135deg, #fef2f2, white);
}

.live-card-tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.live-card.hot .live-card-tag {
  color: var(--ice-danger);
}

.live-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ice-gray-800);
  line-height: 1.4;
  margin-bottom: 8px;
}

.live-card-source a {
  font-size: 0.75rem;
  color: var(--ice-primary);
  text-decoration: none;
}

.live-card-source a:hover {
  text-decoration: underline;
}

/* ========================================
   MAIN LAYOUT WITH SIDEBAR
   ======================================== */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

@media (max-width: 1000px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  .sidebar-nav {
    display: none;
  }
}

/* Sidebar */
.sidebar-nav {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ice-gray-500);
  margin-bottom: 12px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-links a {
  color: var(--ice-gray-600);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-links a:hover {
  background: var(--ice-gray-100);
  color: var(--ice-primary);
}

.sidebar-links a.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--ice-primary);
  font-weight: 600;
}

/* Content */
.content {
  min-width: 0;
}

/* ========================================
   PAGE TABS
   ======================================== */
.page-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--ice-gray-200);
  margin-bottom: 32px;
  overflow-x: auto;
}

.page-tab {
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ice-gray-500);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.page-tab:hover {
  color: var(--ice-primary);
  background: var(--ice-gray-50);
}

.page-tab.active {
  color: var(--ice-primary);
  border-bottom-color: var(--ice-primary);
}

.page-tab.tool-tab {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(37, 99, 235, 0.1));
  border-radius: 8px 8px 0 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CONTENT TYPOGRAPHY
   ======================================== */
.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ice-gray-800);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ice-gray-200);
}

.content h2:first-of-type {
  margin-top: 0;
}

.content p {
  margin: 16px 0;
  font-size: 1rem;
  line-height: 1.8;
}

.content ul, .content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content li {
  margin: 8px 0;
  line-height: 1.7;
}

/* ========================================
   FOLDABLE CARDS (using details/summary)
   ======================================== */
.foldable-card {
  background: white;
  border: 1px solid var(--ice-gray-200);
  border-radius: 12px;
  margin: 16px 0;
  overflow: hidden;
}

.foldable-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--ice-gray-50);
  transition: all 0.2s;
  list-style: none;
}

.foldable-header::-webkit-details-marker {
  display: none;
}

.foldable-header:hover {
  background: var(--ice-gray-100);
}

.foldable-header::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ice-gray-400);
  transition: transform 0.3s;
}

details[open] .foldable-header::after {
  content: '−';
}

.foldable-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ice-gray-800);
}

.foldable-icon {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--ice-primary);
  color: white;
  border-radius: 4px;
}

.foldable-icon.confirmed {
  background: var(--ice-success);
}

.foldable-icon.disputed {
  background: var(--ice-warning);
}

.foldable-icon.pending {
  background: var(--ice-gray-500);
}

.foldable-icon.govt {
  background: var(--ice-gray-700);
}

.foldable-icon.local {
  background: var(--ice-primary);
}

.foldable-content {
  padding: 20px;
  border-top: 1px solid var(--ice-gray-200);
}

.foldable-content p {
  margin: 0 0 12px;
}

.foldable-content p:last-child {
  margin-bottom: 0;
}

/* ========================================
   KEY INSIGHT BOX
   ======================================== */
.key-insight {
  display: flex;
  gap: 16px;
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 2px solid var(--ice-primary);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

.key-insight-icon {
  font-size: 1.5rem;
}

.key-insight-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ice-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.key-insight-text {
  font-size: 1rem;
  color: var(--ice-gray-700);
  line-height: 1.6;
}

/* ========================================
   FACT LISTS
   ======================================== */
.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fact-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--ice-gray-100);
}

.fact-list li:last-child {
  border-bottom: none;
}

.fact-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ice-success);
  font-weight: 700;
}

.fact-list.disputed li::before {
  content: '⚠️';
}

/* Forensics Checklist */
.forensics-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.forensics-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--ice-gray-50);
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ice-gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -28px;
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--ice-gray-400);
  border-radius: 50%;
}

.timeline-item.critical .timeline-marker {
  background: var(--ice-danger);
  border-color: var(--ice-danger);
}

.timeline-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ice-gray-500);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 700;
  color: var(--ice-gray-800);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--ice-gray-600);
}

/* ========================================
   SHOT ANALYZER
   ======================================== */
.shot-analyzer-container {
  background: white;
  border: 2px solid var(--ice-gray-200);
  border-radius: 16px;
  overflow: hidden;
  margin: 24px 0;
}

.shot-analyzer-header {
  background: var(--ice-gray-900);
  color: white;
  padding: 20px 24px;
}

.shot-analyzer-header h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.shot-analyzer-header p {
  font-size: 0.85rem;
  color: var(--ice-gray-400);
  margin: 0;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ice-gray-200);
}

@media (max-width: 800px) {
  .shots-grid {
    grid-template-columns: 1fr;
  }
}

.shot-card {
  background: white;
  padding: 20px;
}

.shot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.shot-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ice-gray-800);
}

.shot-risk-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.shot-risk-badge.low {
  background: #dcfce7;
  color: #166534;
}

.shot-risk-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.shot-risk-badge.high {
  background: #fee2e2;
  color: #991b1b;
}

.shot-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shot-input label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ice-gray-500);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.shot-toggle {
  display: flex;
  gap: 4px;
}

.shot-toggle button {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--ice-gray-100);
  border: 1px solid var(--ice-gray-200);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ice-gray-600);
}

.shot-toggle button:hover {
  background: var(--ice-gray-200);
}

.shot-toggle button.active {
  background: var(--ice-primary);
  color: white;
  border-color: var(--ice-primary);
}

/* Global Factors */
.global-factors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 700px) {
  .global-factors-grid {
    grid-template-columns: 1fr;
  }
}

.global-factor label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ice-gray-700);
  margin-bottom: 8px;
}

/* Analyzer Output */
.analyzer-output {
  background: var(--ice-gray-50);
  padding: 24px;
  border-top: 1px solid var(--ice-gray-200);
}

.output-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ice-gray-800);
  margin-bottom: 16px;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .output-grid {
    grid-template-columns: 1fr;
  }
}

.output-card {
  background: white;
  border: 1px solid var(--ice-gray-200);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.output-card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.output-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ice-gray-500);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.output-card-value {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.output-card-value.low { color: var(--ice-success); }
.output-card-value.medium { color: var(--ice-warning); }
.output-card-value.high { color: var(--ice-danger); }

.output-card-case {
  font-size: 0.75rem;
  color: var(--ice-gray-500);
}

.output-explanation {
  background: white;
  border: 1px solid var(--ice-gray-200);
  border-radius: 8px;
  padding: 16px;
}

.output-explanation p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================================
   STANDARDS PYRAMID
   ======================================== */
.standards-pyramid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.standard-layer {
  background: white;
  border: 2px solid var(--ice-gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.standard-layer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--ice-gray-50);
  list-style: none;
}

.standard-layer-header::-webkit-details-marker {
  display: none;
}

.standard-layer-header::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ice-gray-400);
}

details[open] .standard-layer-header::after {
  content: '−';
}

.standard-layer-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layer-number {
  width: 28px;
  height: 28px;
  background: var(--ice-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.standard-layer.vehicle .layer-number { background: #8b5cf6; }
.standard-layer.policy .layer-number { background: var(--ice-warning); }
.standard-layer.criminal .layer-number { background: var(--ice-danger); }

.layer-name {
  font-weight: 600;
  color: var(--ice-gray-800);
}

.standard-layer-body {
  padding: 20px;
  border-top: 1px solid var(--ice-gray-200);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Case Cards */
.case-card, .policy-card {
  background: var(--ice-gray-50);
  border-radius: 10px;
  padding: 16px 20px;
}

.case-card.critical {
  background: #fef2f2;
  border: 1px solid var(--ice-danger);
}

.case-name, .policy-name {
  font-weight: 700;
  color: var(--ice-gray-800);
  margin-bottom: 8px;
}

.case-rule, .policy-rule {
  font-size: 0.95rem;
  color: var(--ice-gray-700);
  margin-bottom: 8px;
  padding: 12px;
  background: white;
  border-left: 3px solid var(--ice-primary);
  border-radius: 0 8px 8px 0;
}

.policy-key {
  font-size: 0.9rem;
  color: var(--ice-danger);
  font-weight: 600;
  margin-bottom: 8px;
}

.case-application {
  font-size: 0.9rem;
  color: var(--ice-gray-600);
  margin-bottom: 8px;
}

.case-link, .policy-link {
  font-size: 0.85rem;
  color: var(--ice-primary);
  text-decoration: none;
  font-weight: 600;
}

.case-link:hover, .policy-link:hover {
  text-decoration: underline;
}

.policy-warning {
  background: #fef3c7;
  border: 1px solid var(--ice-warning);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #92400e;
}

/* ========================================
   KEY TAKEAWAYS
   ======================================== */
.key-takeaways {
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  border: 2px solid var(--ice-warning);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
}

.key-takeaways-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 16px;
}

.key-takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.key-takeaways li {
  color: #78350f;
  padding: 6px 0;
  font-size: 0.95rem;
}

/* ========================================
   OUTCOME LANES
   ======================================== */
.pathways-lanes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.pathway-lane {
  background: white;
  border: 2px solid var(--ice-gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.lane-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--ice-gray-50);
  list-style: none;
}

.lane-header::-webkit-details-marker {
  display: none;
}

.lane-header::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ice-gray-400);
  margin-left: auto;
}

details[open] .lane-header::after {
  content: '−';
}

.lane-icon {
  font-size: 1.5rem;
}

.lane-header h4 {
  font-weight: 700;
  color: var(--ice-gray-800);
  margin: 0;
}

.pathway-lane.criminal { border-left: 4px solid var(--ice-danger); }
.pathway-lane.civil { border-left: 4px solid var(--ice-primary); }
.pathway-lane.admin { border-left: 4px solid var(--ice-gray-500); }

.lane-body {
  padding: 20px;
  border-top: 1px solid var(--ice-gray-200);
}

.lane-section {
  margin-bottom: 20px;
}

.lane-section:last-child {
  margin-bottom: 0;
}

.lane-section h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ice-gray-700);
  margin-bottom: 8px;
}

.lane-section ul {
  margin: 0;
  padding-left: 20px;
}

.lane-section li {
  font-size: 0.9rem;
  margin: 4px 0;
}

.lane-barrier {
  background: var(--ice-gray-100);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--ice-gray-600);
  margin-top: 16px;
}

/* ========================================
   CALCULATOR
   ======================================== */
.calculator-container {
  background: white;
  border: 2px solid var(--ice-gray-200);
  border-radius: 16px;
  overflow: hidden;
  margin: 24px 0;
}

.calculator-header {
  background: var(--ice-success);
  color: white;
  padding: 20px 24px;
}

.calculator-header h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.calculator-header p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
}

.calculator-body {
  padding: 24px;
}

.calculator-input {
  margin-bottom: 20px;
}

.calculator-input label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ice-gray-700);
  margin-bottom: 8px;
}

.calculator-input input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  border: 2px solid var(--ice-gray-200);
  border-radius: 8px;
}

.calculator-input input:focus {
  outline: none;
  border-color: var(--ice-primary);
}

.calculator-toggle {
  margin-bottom: 24px;
}

.calculator-toggle label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ice-gray-700);
  margin-bottom: 8px;
}

.calc-toggle-buttons {
  display: flex;
  gap: 8px;
}

.calc-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--ice-gray-100);
  border: 2px solid var(--ice-gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-btn:hover {
  background: var(--ice-gray-200);
}

.calc-btn.active {
  background: var(--ice-success);
  color: white;
  border-color: var(--ice-success);
}

.calculator-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .calculator-output {
    grid-template-columns: 1fr;
  }
  .calc-toggle-buttons {
    flex-direction: column;
  }
}

.calc-result {
  background: var(--ice-gray-50);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.calc-result.family {
  background: #dcfce7;
}

.calc-result-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ice-gray-500);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.calc-result-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ice-gray-800);
  margin-bottom: 4px;
}

.calc-result.family .calc-result-value {
  color: #166534;
}

.calc-result-note {
  font-size: 0.75rem;
  color: var(--ice-gray-500);
}

/* ========================================
   TABLES
   ======================================== */
.benchmarks-table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.benchmarks-table th,
.benchmarks-table td,
.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ice-gray-200);
}

.benchmarks-table th,
.comparison-table th {
  background: var(--ice-gray-100);
  font-weight: 700;
  color: var(--ice-gray-700);
}

.benchmarks-table tbody tr:hover,
.comparison-table tbody tr:hover {
  background: var(--ice-gray-50);
}

.benchmarks-disclaimer {
  margin-top: 12px;
  padding: 12px;
  background: var(--ice-gray-100);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--ice-gray-600);
}

/* ========================================
   TIMELINE FORECAST
   ======================================== */
.timeline-forecast {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-forecast-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-left: 2px solid var(--ice-gray-200);
  margin-left: 40px;
  padding-left: 20px;
  position: relative;
}

.timeline-forecast-item.current {
  border-left-color: var(--ice-primary);
}

.forecast-marker {
  position: absolute;
  left: -52px;
  width: 64px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ice-gray-500);
  text-align: right;
}

.timeline-forecast-item.current .forecast-marker {
  color: var(--ice-primary);
}

.forecast-title {
  font-weight: 700;
  color: var(--ice-gray-800);
  margin-bottom: 4px;
}

.forecast-desc {
  font-size: 0.85rem;
  color: var(--ice-gray-600);
}

/* ========================================
   UPDATE LOG
   ======================================== */
.update-log {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ice-gray-200);
}

.update-log-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ice-gray-500);
  margin-bottom: 16px;
}

.update-log-item {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  padding: 8px 0;
  color: var(--ice-gray-600);
}

.update-log-date {
  color: var(--ice-gray-500);
  font-weight: 600;
  min-width: 100px;
}

/* ========================================
   HUB ROUTING CARDS
   ======================================== */
.hub-routing {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--ice-gray-200);
}

.hub-routing-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ice-gray-500);
  margin-bottom: 20px;
}

.hub-routing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.hub-routing-card {
  background: white;
  border: 2px solid var(--ice-gray-200);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-routing-card:hover {
  border-color: var(--ice-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.hub-routing-card-icon {
  font-size: 1.5rem;
}

.hub-routing-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ice-gray-800);
}

.hub-routing-card-desc {
  font-size: 0.85rem;
  color: var(--ice-gray-500);
  line-height: 1.5;
  margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--ice-gray-900);
  padding: 40px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-text {
  color: var(--ice-gray-400);
  font-size: 0.9rem;
}

.footer-text a {
  color: inherit;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--ice-gray-400);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

/* ========================================
   MINI TABS (within sections)
   ======================================== */
.mini-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--ice-gray-200);
  margin: 24px 0 0;
  overflow-x: auto;
}

.mini-tab {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ice-gray-500);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.mini-tab:hover {
  color: var(--ice-primary);
  background: var(--ice-gray-50);
}

.mini-tab.active {
  color: var(--ice-primary);
  border-bottom-color: var(--ice-primary);
}

.mini-panel {
  display: none;
  padding: 20px;
  background: white;
  border: 1px solid var(--ice-gray-200);
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-bottom: 24px;
}

.mini-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ========================================
   NARRATIVES GRID
   ======================================== */
.narratives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .narratives-grid {
    grid-template-columns: 1fr;
  }
}

.narrative-card {
  background: var(--ice-gray-50);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--ice-gray-400);
}

.narrative-card.government {
  border-left-color: var(--ice-gray-700);
  background: linear-gradient(135deg, #f1f5f9, white);
}

.narrative-card.local {
  border-left-color: var(--ice-primary);
  background: linear-gradient(135deg, #eff6ff, white);
}

.narrative-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ice-gray-800);
  margin-bottom: 12px;
}

.narrative-card ul {
  margin: 0;
  padding-left: 20px;
}

.narrative-card li {
  font-size: 0.9rem;
  margin: 6px 0;
  color: var(--ice-gray-700);
}

/* ========================================
   OUTCOME SIMULATOR
   ======================================== */
.simulator-container {
  background: white;
  border: 2px solid var(--ice-gray-200);
  border-radius: 16px;
  overflow: hidden;
  margin: 24px 0;
}

.simulator-header {
  background: linear-gradient(135deg, #8b5cf6 0%, var(--ice-primary) 100%);
  color: white;
  padding: 20px 24px;
}

.simulator-header h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.simulator-header p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
}

.simulator-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 800px) {
  .simulator-body {
    grid-template-columns: 1fr;
  }
}

.simulator-inputs {
  padding: 24px;
  background: var(--ice-gray-50);
  border-right: 1px solid var(--ice-gray-200);
}

@media (max-width: 800px) {
  .simulator-inputs {
    border-right: none;
    border-bottom: 1px solid var(--ice-gray-200);
  }
}

.simulator-input-group {
  margin-bottom: 20px;
}

.simulator-input-group:last-child {
  margin-bottom: 0;
}

.simulator-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ice-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.simulator-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.simulator-slider input[type="range"] {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  background: var(--ice-gray-200);
  border-radius: 4px;
  outline: none;
}

.simulator-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--ice-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.simulator-slider-value {
  min-width: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ice-gray-800);
  text-align: right;
}

.simulator-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9rem;
  border: 2px solid var(--ice-gray-200);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.simulator-select:focus {
  outline: none;
  border-color: var(--ice-primary);
}

.simulator-outputs {
  padding: 24px;
}

.simulator-outputs-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ice-gray-500);
  margin-bottom: 16px;
}

.outcome-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outcome-bar {
  position: relative;
}

.outcome-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.outcome-bar-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ice-gray-700);
}

.outcome-bar-percent {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ice-gray-800);
}

.outcome-bar-track {
  height: 12px;
  background: var(--ice-gray-100);
  border-radius: 6px;
  overflow: hidden;
}

.outcome-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease, background 0.3s ease;
}

.outcome-bar-fill.criminal { background: var(--ice-danger); }
.outcome-bar-fill.civil { background: var(--ice-success); }
.outcome-bar-fill.policy { background: var(--ice-warning); }
.outcome-bar-fill.qi { background: var(--ice-primary); }

.outcome-bar-note {
  font-size: 0.75rem;
  color: var(--ice-gray-500);
  margin-top: 4px;
}

.simulator-summary {
  margin-top: 20px;
  padding: 16px;
  background: var(--ice-gray-50);
  border-radius: 10px;
  border: 1px solid var(--ice-gray-200);
}

.simulator-summary-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ice-gray-500);
  margin-bottom: 8px;
}

.simulator-summary-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ice-gray-700);
  margin: 0;
}

.settlement-range {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border-radius: 10px;
  border: 1px solid var(--ice-success);
}

.settlement-range-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #166534;
  margin-bottom: 8px;
}

.settlement-range-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #166534;
}

.settlement-range-note {
  font-size: 0.75rem;
  color: #166534;
  opacity: 0.8;
  margin-top: 4px;
}
