/* =========================================================
   BHOTEKOSHI FLOOD LIVE COVERAGE STYLESHEET
   Aesthetic: Clean Editorial White Background & Ink-Black Newsprint
   Fonts: Newsreader (Editorial Serif) + Plus Jakarta Sans + JetBrains Mono
   Features: Strict Zero-Horizontal-Overflow & 100% Screen-Fit Fixed Header
   ========================================================= */

:root {
  /* Color Palette - Clean, Human Newspaper Feel */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #ffffff;
  --bg-dark: #0f172a;
  
  --line: #e2e8f0;
  --line-strong: #0f172a;
  --line-soft: #f1f5f9;
  
  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;
  
  /* Signal Colors */
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fca5a5;
  
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  
  --green: #047857;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  
  --blue: #1d4ed8;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;

  /* Typography */
  --font-serif: 'Newsreader', Georgia, Cambria, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
}

/* Reset & Strict Viewport Containment */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: 100px; /* Offset for desktop header */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--text);
  color: #ffffff;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #1e3a8a;
}

.wrap {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-align {
  display: flex;
  align-items: center;
}

.flex-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 { gap: 4px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 18px; }

/* ---------------- Alert Background Notice Modal ---------------- */
.alert-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.alert-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.alert-modal-card {
  background: #ffffff;
  border: 2px solid var(--line-strong);
  border-top: 6px solid var(--red);
  border-radius: var(--radius-sm);
  max-width: 480px;
  width: 100%;
  padding: 22px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.alert-modal-backdrop.active .alert-modal-card {
  transform: translateY(0);
}

.alert-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.alert-modal-head h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.alert-modal-body {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 18px;
}

.alert-modal-highlight {
  background: var(--amber-bg);
  border-left: 4px solid var(--amber);
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  margin-top: 10px;
  font-size: 0.86rem;
  color: #78350f;
  font-weight: 600;
}

.alert-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-modal-primary {
  background: var(--line-strong);
  color: #ffffff !important;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-decoration: none;
}

.btn-modal-primary:hover {
  background: var(--red);
}

/* ---------------- Toast Notification Container ---------------- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 80000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  width: calc(100% - 32px);
  pointer-events: none;
}

.toast-message {
  background: var(--bg-dark);
  color: #ffffff;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-message.closing {
  animation: slideOutToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideOutToast {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ---------------- Guaranteed Fixed Masthead (Zero Cut-Off) ---------------- */
.masthead {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  z-index: 99999 !important;
  background: #ffffff !important;
  border-bottom: 2px solid var(--line-strong) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  will-change: transform;
  box-sizing: border-box;
}

.masthead-inner {
  padding: 0 12px;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.masthead-top {
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.masthead-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.date-issue {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.masthead-brand {
  text-align: center;
  flex: 1;
  min-width: 0; /* Allows text truncation if needed */
  padding: 0 4px;
}

.brand-link {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
}

.masthead-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-xs);
  padding: 5px 6px;
  cursor: pointer;
  flex-direction: column;
  gap: 3px;
}

.hamburger-btn .bar {
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s ease;
}

.hamburger-btn.active .bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Emergency Header Jump Button */
.btn-emergency-top {
  background: var(--red);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.1;
}

.btn-emergency-top:hover {
  background: #b91c1c;
  color: #ffffff !important;
  text-decoration: none;
}

/* Header Notification Button */
.btn-notif-header {
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  line-height: 1.1;
  transition: all 0.15s ease;
}

.btn-notif-header:hover {
  background: var(--line-strong);
  color: #ffffff;
}

.btn-notif-header.active {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-outline {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
}

.btn-sm {
  padding: 5px 8px;
  font-size: 0.76rem;
}

/* Nav Strip */
.nav-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0 8px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.nav-strip a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-strip a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-strip a.highlight-nav {
  color: var(--red);
  font-weight: 700;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 10px 12px 14px;
  max-height: 75vh;
  overflow-y: auto;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  animation: drawerSlideDown 0.2s ease;
}

@keyframes drawerSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.mobile-nav-item {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  display: block;
}

.mobile-nav-item:hover {
  background: var(--line-strong);
  color: #ffffff;
  text-decoration: none;
}

.mobile-nav-item.emergency-item {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-border);
  font-weight: 700;
  text-align: center;
}

.mobile-nav-item.btn-notif-mobile {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
}

.mobile-nav-item.btn-notif-mobile.active {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}

/* ---------------- Breaking / Latest Timeline Card ---------------- */
.breaking-card-wrap {
  margin: 16px 0 10px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-left: 6px solid var(--red);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  box-sizing: border-box;
}

.breaking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.breaking-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.35;
}

.breaking-card-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
  margin-top: 6px;
}

/* ---------------- Lead Story / Hero ---------------- */
.lead-story {
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--line);
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.update-stamp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}

.story-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 24ch;
}

.accent-red {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--red-border);
  text-underline-offset: 4px;
}

.story-lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: #334155;
  max-width: 56ch;
  margin-bottom: 20px;
}

.urgent-notice {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-left: 6px solid var(--red);
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  box-sizing: border-box;
}

.notice-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.70rem;
  background: var(--red);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.notice-body {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

/* ---------------- Sections ---------------- */
.page-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  width: 100%;
}

.section-heading {
  margin-bottom: 18px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.section-desc {
  font-size: 0.90rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------------- Emergency Contacts Section ---------------- */
.emergency-hotlines-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
  width: 100%;
}

.hotline-card {
  background: #ffffff;
  border: 2px solid var(--red);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1);
  box-sizing: border-box;
}

.hotline-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hotline-phone {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  display: block;
  line-height: 1.1;
}

.hotline-phone:hover {
  text-decoration: underline;
  color: #991b1b;
}

.emergency-grid-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.district-contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.district-contact-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  box-sizing: border-box;
}

.district-contact-card.rasuwa { border-top-color: #1e40af; }
.district-contact-card.nuwakot { border-top-color: #15803d; }
.district-contact-card.dhading { border-top-color: #6b21a8; }
.district-contact-card.chitwan { border-top-color: #c2410c; }
.district-contact-card.gorkha { border-top-color: #0f766e; }
.district-contact-card.tanahun { border-top-color: #b91c1c; }

.district-contact-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.contact-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.84rem;
  border-bottom: 1px dashed var(--line-soft);
  gap: 6px;
}

.contact-row-item:last-child {
  border-bottom: none;
}

.contact-role {
  color: var(--text-muted);
  font-size: 0.80rem;
}

.contact-tel {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-subtle);
  padding: 2px 5px;
  border-radius: 2px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.contact-tel:hover {
  background: var(--line-strong);
  color: #ffffff;
  text-decoration: none;
}

.emergency-footer-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 10px 14px;
  margin-top: 16px;
  border-radius: var(--radius-xs);
  text-align: center;
  font-size: 0.88rem;
  box-sizing: border-box;
}

/* ---------------- Stats Grid ---------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.stat-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--text);
  border-radius: var(--radius-xs);
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.stat-item.critical {
  border-top-color: var(--red);
  background: linear-gradient(180deg, var(--red-bg) 0%, #ffffff 75%);
}

.stat-item .stat-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-item .stat-value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  margin: 6px 0 4px;
  color: var(--text);
}

.stat-item.critical .stat-value {
  color: var(--red);
}

.stat-item .stat-meta {
  font-size: 0.76rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ---------------- Prime Minister Relief Fund Section ---------------- */
.fund-card-box {
  background: var(--bg-subtle);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.fund-card-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.fund-image-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.fund-image-wrap {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  box-sizing: border-box;
  width: 100%;
}

.fund-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-soft);
  display: block;
}

.img-caption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

.fraud-warning-box {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-left: 5px solid var(--amber);
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
  box-sizing: border-box;
}

.fw-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--amber);
  margin-bottom: 4px;
}

.fw-text {
  font-size: 0.90rem;
  color: #78350f;
  line-height: 1.45;
}

.fund-info-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  box-sizing: border-box;
}

.info-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  width: 160px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}

.info-val {
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}

/* ---------------- Summary Box ---------------- */
.summary-box {
  background: var(--bg-subtle);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-sizing: border-box;
  width: 100%;
}

.summary-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.summary-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.summary-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 10px;
}

.clean-list {
  list-style: none;
}

.clean-list li {
  font-size: 0.90rem;
  color: var(--text);
  padding: 6px 0 6px 12px;
  border-left: 3px solid var(--line-strong);
  margin-bottom: 6px;
  background: #ffffff;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------------- Highway Grid ---------------- */
.highway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.highway-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  box-sizing: border-box;
}

.highway-card.closed {
  border-left: 4px solid var(--red);
}

.highway-card.warning {
  border-left: 4px solid var(--amber);
}

.highway-card h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
}

.highway-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------------- Hydropower & Data Tables ---------------- */
.hydro-table-box, .source-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.data-table, .source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: #ffffff;
}

.data-table th, .source-table th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--line-strong);
  text-align: left;
  white-space: nowrap;
}

.data-table td, .source-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tr:hover, .source-table tr:hover {
  background: var(--bg-subtle);
}

/* ---------------- Hospital Survivors & Rescued Grid ---------------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.roster-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

/* ---------------- Timeline Section (Latest First) ---------------- */
.timeline-toolbar {
  margin-bottom: 18px;
  width: 100%;
}

.search-input-wrap {
  flex: 1;
}

.search-input-wrap input {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  width: 100%;
  max-width: 280px;
  outline: none;
  box-sizing: border-box;
}

.search-input-wrap input:focus {
  border-color: var(--line-strong);
}

.dropdown-filter {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.timeline-stream {
  position: relative;
  padding-left: 28px;
  width: 100%;
  box-sizing: border-box;
}

.timeline-stream::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--line-strong);
}

.timeline-row {
  position: relative;
  margin-bottom: 22px;
  width: 100%;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--line-strong);
  z-index: 2;
}

.timeline-row.latest .timeline-dot {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg);
}

.timeline-row.confirmed .timeline-dot {
  border-color: var(--green);
}

.timeline-entry {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  width: 100%;
}

.timeline-row.latest .timeline-entry {
  border-left: 5px solid var(--red);
  background: linear-gradient(180deg, var(--red-bg) 0%, #ffffff 50%);
}

.entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.entry-time-box {
  display: flex;
  flex-direction: column;
}

.entry-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.entry-badge-latest {
  background: var(--red);
  color: #ffffff;
  font-size: 0.66rem;
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.entry-location {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.entry-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.entry-detail {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

.entry-source {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}

/* Badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.tag-amber {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.tag-red {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.tag-blue {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

.tag-grey {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--line);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 36px 0;
  margin-top: 36px;
  border-top: 3px solid var(--red);
  width: 100%;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-text {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 4px;
  max-width: 52ch;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #e2e8f0;
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---------------- Mobile & Responsive Adjustments ---------------- */
@media (max-width: 960px) {
  body { padding-top: 86px; }
  .emergency-hotlines-bar { grid-template-columns: 1fr; }
  .emergency-grid-wrap { grid-template-columns: 1fr; }
  .district-contacts-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: 1fr; }
  .fund-card-grid { grid-template-columns: 1fr; }
  .highway-grid { grid-template-columns: 1fr; }
  .roster-grid { grid-template-columns: repeat(2, 1fr); }
  .desktop-only { display: none !important; }
  .hamburger-btn { display: flex; }
}

@media (max-width: 640px) {
  /* Strict 100% Mobile Viewport Fit */
  html, body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
  }

  body { 
    padding-top: 76px !important; 
  }
  
  .wrap { 
    padding: 0 10px !important; 
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  
  /* Strictly Fixed & Locked Mobile Masthead - Full Width Containment */
  .masthead {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 99999 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    box-sizing: border-box !important;
  }

  .masthead-inner { 
    padding: 0 8px !important; 
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  
  .masthead-top {
    padding: 5px 0 !important;
    gap: 4px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .masthead-left {
    gap: 4px;
    flex-shrink: 0;
  }

  .hamburger-btn {
    display: flex !important;
    padding: 5px 6px;
  }

  .masthead-brand {
    flex: 1 1 auto;
    text-align: center;
    padding: 0 2px;
    min-width: 0;
  }

  .brand-link {
    font-size: 0.96rem !important;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .date-issue {
    display: none !important;
  }

  /* Fixed Stack: Rescue Numbers + Enable Live Alerts aligned inside viewport */
  .masthead-actions-stack {
    margin-right: 0 !important;
    align-items: flex-end !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
  }

  .btn-emergency-top {
    padding: 3px 6px !important;
    font-size: 0.66rem !important;
    line-height: 1.1 !important;
  }

  .btn-notif-header {
    padding: 2px 5px !important;
    font-size: 0.62rem !important;
    line-height: 1.1 !important;
  }

  .stats-grid { grid-template-columns: 1fr; }
  .roster-grid { grid-template-columns: 1fr; }
  .breaking-bar { display: none; }
  .story-title { font-size: 1.65rem; }
  .mobile-nav-links { grid-template-columns: 1fr; }
  .timeline-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-input-wrap input { width: 100%; max-width: 100%; }
  .timeline-entry { padding: 12px 14px; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-label { width: 100%; }
  .timeline-stream { padding-left: 20px; }
  .timeline-stream::before { left: 4px; }
  .timeline-dot { left: -20px; width: 12px; height: 12px; top: 14px; }
}

/* ---------------- Kerung Safe Nepali Roster Gallery ---------------- */
.kerung-gallery-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.kerung-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.kerung-gallery-head h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin: 0;
}

.kerung-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.kerung-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kerung-img-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: zoom-in;
}

.kerung-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.25s ease;
  display: block;
}

.kerung-img-link:hover .kerung-img {
  transform: scale(1.03);
}

.kerung-card-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kerung-card-caption a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}


/* ---------------- Print Stylesheet ---------------- */
@media print {
  body {
    padding-top: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .masthead,
  .breaking-bar,
  .masthead-actions,
  .nav-strip,
  .mobile-nav-drawer,
  .timeline-toolbar,
  .btn,
  .toast-container,
  .site-footer button,
  .alert-modal-backdrop {
    display: none !important;
  }
  
  .wrap {
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .stat-item, .fund-card-box, .summary-box, .timeline-entry, .highway-card, .roster-card, .district-contact-card {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}
