/* ==========================================================================
   style.css – shared design for Georgia Skywarn & WX4PTC pages
   Author: Georgia SKYWARN Development Team
   Purpose: Unified, accessible, responsive design system using CSS Grid/Flexbox.
            Supports light/dark mode, mobile-first layout, and semantic styling.
   Change-log:
     • 2026-01-03b – CRITICAL FIX: Fixed alert text readability in dark mode
       - Changed --alert-desc-color from var(--border-secondary) to var(--text-secondary)
       - Border-secondary was 92% transparent (invisible), text-secondary is readable
       - Fixes unreadable alerts in dark mode on dashboard
     • 2026-01-02 – Added yellow gradient and card-header--yellow for three-level
       spotter activation urgency system (RED/YELLOW/GREEN).
     • 2025-11-05 – Full refactor: mobile-first, Grid/Flexbox, ARIA-ready,
       reduced specificity, removed unused legacy styles.
     • 2025-11-05 – Merged "What to Report" grid (no table), NWS resources grid,
       improved .include-list, added --event-bg.
     • 2025-11-07 – CLEANUP: Fixed card headers & buttons, removed dead code,
       consolidated media queries, introduced --btn-bg variable, ensured
       scroll-hint visibility in dark mode.
     • 2025-11-07 – Added styles for NWS resources grid to fix messed up columns:
       3-column desktop layout (logo + links + social), stacks on mobile,
       with proper alignment and spacing.
   ========================================================================== */

/* ---------- CSS Custom Properties (Light / Dark) ---------- */
:root {
  /* Base colors */
  --white: #ffffff;
  --black: #000000;
  --slate-400: #94a3b8;
  --blue-400: #60a5fa;
  --green-500: #4caf50;

  /* Light mode defaults */
  --bg-body: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #444;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.1);
  --accent-blue: #0066cc;
  --accent-blue-dark: #005cb8;
  --accent-red: #e63946;
  --accent-red-dark: #cf333e;
  --accent-green: #4ad38e;
  --accent-green-dark: #42ba7f;
  --accent-indigo: #5C6BC0;
  --accent-indigo-dark: #90CAF9;
  --accent-orange: #FF9800;
  --accent-orange-dark: #FFB74D;
  --accent-yellow: #FFC107;
  --accent-yellow-dark: #E0A800;
  --accent-pink: #ec4899;
  --accent-pink-dark: #f472b6;

  /* Enhanced shadow system - graduated levels */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
  --shadow: var(--shadow-md); /* Backward compatibility */

  /* Additional backgrounds for layering */
  --bg-primary: #f8f9fa;
  --bg-secondary: var(--white);
  --bg-tertiary: #f3f4f6;

  /* Border system */
  --border-primary: #e2e8f0;
  --border-secondary: #d1d5db;

  /* Text variations */
  --text-muted: #6b7280;

  --glow: 0 0 15px rgba(0, 102, 204, 0.2);
  --header-gradient: linear-gradient(135deg, #001f3f 0%, #003366 100%);
  --header-gradient-red: linear-gradient(135deg, #FB2C36 0%, #FF6467 100%);
  --header-gradient-green: linear-gradient(135deg, #116045 0%, #075F5A 100%);
  --header-gradient-blue: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
  --header-gradient-yellow: linear-gradient(135deg, #D4A800 0%, #FFC107 100%);
  --header-gradient-th: linear-gradient(135deg, #111140 0%, #112840 100%);
  --title-grad-start: #99ACAF;
  --title-grad-end: #99A1AF;
  --title-solid: #381aff;
  --radius: 20px;
  --transition: all 0.3s ease;
  --alert-warning-bg: #ffe6e6;
  --alert-watch-bg: #fff4e6;
  --alert-other-bg: #e3f2fd;
  --alert-header-color: #333;
  --alert-desc-color: var(--text-secondary);
  --nav-btn-bg: var(--white);
  --nav-btn-color: var(--text-primary);
  --nav-btn-border: rgba(0, 0, 0, 0.1);
  --nav-btn-bg-hover: rgba(0, 102, 204, 0.15);
  --nav-btn-color-hover: var(--accent-blue-dark);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-body: #0f172a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --card-bg: rgba(15, 23, 42, 0.85);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-blue: #60a5fa;
    --accent-blue-dark: #5495e1;
    --accent-red: #f87171;
    --accent-red-dark: #df6565;
    --accent-green: #4ad38e;
    --accent-green-dark: #42ba7f;
    --accent-indigo: #5C6BC0;
    --accent-indigo-dark: #90CAF9;
    --accent-orange: #FF9800;
    --accent-orange-dark: #FFB74D;
    --accent-yellow: #FFC107;
    --accent-yellow-dark: #E0A800;
    --accent-pink: #f9a8d4;
    --accent-pink-dark: #fbcfe8;

    /* Enhanced shadows for dark mode */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.5);
    --shadow: var(--shadow-md); /* Backward compatibility */

    /* Additional backgrounds */
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #22293a;

    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-muted: #6b7280;

    --glow: 0 0 20px rgba(96, 165, 250, 0.3);
    --header-gradient: linear-gradient(135deg, #0a3d62 0%, #1e40af 100%);
    --header-gradient-red: linear-gradient(135deg, #FB2C36 0%, #FF6467 100%);
    --header-gradient-green: linear-gradient(135deg, #116045 0%, #075F5A 100%);
    --header-gradient-blue: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    --header-gradient-yellow: linear-gradient(135deg, #D4A800 0%, #FFC107 100%);
    --header-gradient-th: linear-gradient(135deg, #18185D 0%, #112840 100%);
    --title-grad-start: #99ACAF;
    --title-grad-end: #99A1AF;
    --title-solid: #7a5fff;
	--alert-warning-bg: rgba(230, 57, 70, 0.25); /* Muted red with transparency */
	--alert-watch-bg: rgba(244, 162, 97, 0.25); /* Muted orange with transparency */
	--alert-other-bg: rgba(96, 165, 250, 0.25); /* Muted blue with transparency */
	--alert-header-color: var(--white);
	--alert-desc-color: var(--text-secondary); /* Light gray for readability */
	--nav-btn-bg: rgba(15, 23, 42, 0.9);
    --nav-btn-color: var(--border-primary);
    --nav-btn-border: rgba(255, 255, 255, 0.1);
    --nav-btn-bg-hover: rgba(96, 165, 250, 0.2);
    --nav-btn-color-hover: var(--blue-400);
	}
	.alert-item {
	    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1); /* Inner glow for depth in dark mode */
	  }

	  /* Fix header and navigation visibility in dark mode */
	  .logo-text h1 {
	    color: var(--white) !important;
	  }

	  .logo-text p {
	    color: var(--text-secondary) !important;
	  }

	  #desktopNav a {
	    color: var(--text-primary) !important;
	  }

	  #desktopNav a:hover,
	  #desktopNav a:focus {
	    color: var(--blue-400) !important;
	  }

	  .mobile-menu-btn {
	    color: var(--text-primary) !important;
	  }

	  #themeToggle,
	  #themeToggleMobile {
	    color: var(--text-primary) !important;
	  }

	  #themeToggle svg,
	  #themeToggleMobile svg {
	    stroke: var(--text-primary) !important;
	  }

	  .page-nav .nav-list a {
	    color: var(--text-primary) !important;
	  }

	  .page-nav .nav-list a:hover,
	  .page-nav .nav-list a:focus {
	    color: var(--white) !important;
	  }

	  /* Fix footer visibility in dark mode */
	  .footer-content {
	    color: var(--text-secondary) !important;
	  }

	  .footer-section p {
	    color: var(--text-secondary) !important;
	  }

	  .footer-nav a {
	    color: var(--text-secondary) !important;
	  }

	  .footer-nav a:hover {
	    color: var(--blue-400) !important;
	  }

	  .footer-bottom p {
	    color: var(--text-secondary) !important;
	  }
}

/* ---------- Manual Theme Override (takes precedence over system preference) ---------- */
html[data-theme="light"] {
  --bg-body: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #444;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.1);
  --accent-blue: #0066cc;
  --accent-blue-dark: #005cb8;
  --accent-red: #e63946;
  --accent-red-dark: #cf333e;
  --accent-green: #4ad38e;
  --accent-green-dark: #42ba7f;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
  --bg-primary: #f8f9fa;
  --bg-secondary: var(--white);
  --bg-tertiary: #f3f4f6;
  --border-primary: #e2e8f0;
  --border-secondary: #d1d5db;
  --text-muted: #6b7280;
  --alert-warning-bg: #ffe6e6;
  --alert-watch-bg: #fff4e6;
  --alert-other-bg: #e3f2fd;
  --alert-header-color: #333;
  --alert-desc-color: var(--text-secondary);
}

/* Restore original light mode colors for header, nav, and footer */
html[data-theme="light"] .logo-text h1 {
  color: var(--border-primary) !important;
}

html[data-theme="light"] .logo-text p {
  color: var(--slate-400) !important;
}

html[data-theme="light"] #desktopNav a {
  color: var(--border-primary) !important;
}

html[data-theme="light"] #desktopNav a:hover,
html[data-theme="light"] #desktopNav a:focus {
  color: var(--blue-400) !important;
}

html[data-theme="light"] .mobile-menu-btn {
  color: var(--border-primary) !important;
}

html[data-theme="light"] #themeToggle,
html[data-theme="light"] #themeToggleMobile,
html[data-theme="light"] #site-search-button {
  color: var(--border-primary) !important;
}

html[data-theme="light"] #themeToggle svg,
html[data-theme="light"] #themeToggleMobile svg,
html[data-theme="light"] #site-search-button svg {
  stroke: var(--border-primary) !important;
}

html[data-theme="light"] #site-search-button:hover {
  color: var(--blue-400) !important;
}

html[data-theme="light"] #site-search-button:hover svg {
  stroke: var(--blue-400) !important;
}

html[data-theme="light"] .page-nav .nav-list a {
  color: var(--border-primary) !important;
}

html[data-theme="light"] .page-nav .nav-list a:hover,
html[data-theme="light"] .page-nav .nav-list a:focus {
  color: var(--white) !important;
}

html[data-theme="light"] .footer-content {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .footer-section p {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .footer-nav a {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .footer-nav a:hover {
  color: var(--accent-blue) !important;
}

html[data-theme="light"] .footer-bottom p {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] {
  --bg-body: #0f172a;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --card-bg: rgba(15, 23, 42, 0.85);
  --card-border: rgba(255, 255, 255, 0.1);
  --accent-blue: #60a5fa;
  --accent-blue-dark: #5495e1;
  --accent-red: #f87171;
  --accent-red-dark: #df6565;
  --accent-green: #4ad38e;
  --accent-green-dark: #42ba7f;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.5);
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #22293a;
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(255, 255, 255, 0.08);
  --text-muted: #6b7280;
  --alert-warning-bg: rgba(230, 57, 70, 0.25);
  --alert-watch-bg: rgba(244, 162, 97, 0.25);
  --alert-other-bg: rgba(96, 165, 250, 0.25);
  --alert-header-color: var(--white);
  --alert-desc-color: var(--text-secondary);
}

/* Fix header and navigation visibility in manual dark mode */
html[data-theme="dark"] .logo-text h1 {
  color: var(--white) !important;
}

html[data-theme="dark"] .logo-text p {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] #desktopNav a {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] #desktopNav a:hover,
html[data-theme="dark"] #desktopNav a:focus {
  color: var(--blue-400) !important;
}

html[data-theme="dark"] .mobile-menu-btn {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] #themeToggle,
html[data-theme="dark"] #themeToggleMobile,
html[data-theme="dark"] #site-search-button {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] #themeToggle svg,
html[data-theme="dark"] #themeToggleMobile svg,
html[data-theme="dark"] #site-search-button svg {
  stroke: var(--text-primary) !important;
}

html[data-theme="dark"] #site-search-button:hover {
  color: var(--accent-blue) !important;
}

html[data-theme="dark"] #site-search-button:hover svg {
  stroke: var(--accent-blue) !important;
}

html[data-theme="dark"] .page-nav .nav-list a {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .page-nav .nav-list a:hover,
html[data-theme="dark"] .page-nav .nav-list a:focus {
  color: var(--white) !important;
}

/* Fix footer visibility in manual dark mode */
html[data-theme="dark"] .footer-content {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .footer-section p {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .footer-nav a {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .footer-nav a:hover {
  color: var(--blue-400) !important;
}

html[data-theme="dark"] .footer-bottom p {
  color: var(--text-secondary) !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  scroll-padding-top: 200px; /* Offset for sticky header + page-nav on desktop */
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 100px; /* Offset for sticky header on mobile */
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 1rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p, li, td, th {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: var(--accent-blue);
  text-decoration: underline;
  word-break: break-word;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--accent-blue-dark);
  outline: none;
}

.center { text-align: center; }

/* ==========================================================================
   HEADER COMPONENT - Sticky header with logo, nav, theme toggle
   Based on atlantahamradio.org header design
   ========================================================================== */

.header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* Logo - left side */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.85;
}

.logo-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px var(--shadow-md);
  background: var(--bg-body);
  padding: 0.25rem;
}

.logo-text h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: var(--border-primary);
}

.logo-text p {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin: 0.25rem 0 0;
  line-height: 1.3;
}

/* Desktop navigation - right side */
#desktopNav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

#desktopNav a {
  color: var(--border-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

#desktopNav a:hover,
#desktopNav a:focus {
  color: var(--blue-400);
  background: rgba(96, 165, 250, 0.1);
}

/* Theme toggle in nav */
#themeToggle,
#themeToggleMobile {
  transition: var(--transition);
  color: var(--border-primary) !important; /* Ensure icons are always visible */
}

#themeToggle svg,
#themeToggleMobile svg {
  stroke: var(--border-primary); /* Explicit stroke color for sun/moon icons */
}

#themeToggle:hover {
  color: var(--blue-400);
  transform: scale(1.1);
}

#themeToggle:hover svg {
  stroke: var(--blue-400);
}

/* Mobile hamburger button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--border-primary);
  cursor: pointer;
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile navigation overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98); /* More opaque dark background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  padding-top: 80px;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a,
.mobile-nav button {
  color: var(--white); /* Always white text on dark mobile menu */
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1.25rem 2rem;
  width: 100%;
  text-align: center;
  background: rgba(30, 41, 59, 0.6); /* Semi-transparent dark background */
  border-bottom: 1px solid rgba(71, 85, 105, 0.5);
  transition: all 0.3s;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav button:hover,
.mobile-nav button:active {
  background: rgba(59, 130, 246, 0.25);
  color: var(--blue-400);
}

/* Ensure theme toggle icons in mobile menu are white */
.mobile-nav button svg {
  stroke: var(--white);
}

.mobile-nav button:hover svg {
  stroke: var(--blue-400);
}

/* Responsive behavior */
@media (max-width: 768px) {
  #desktopNav {
    display: none;
  }

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

  .logo-image {
    width: 48px;
    height: 48px;
  }

  .logo-text {
    max-width: calc(100vw - 180px); /* Leave room for logo image + hamburger */
  }

  .logo-text h1 {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .logo-text p {
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: normal; /* Allow wrapping */
    word-wrap: break-word;
  }

  .header-content {
    padding: 0.75rem 1rem;
    gap: 0.75rem; /* Reduce gap on mobile */
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* ==========================================================================
   MODAL SYSTEM
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  max-width: 42rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 1.5rem;
  background: var(--header-gradient-red);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Ensure all text elements in modal headers are white with consistent styling */
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

/* Standardized modal header color variants */
/* Used by both alert modals and HWO modal */
.modal-header--red {
  background: var(--header-gradient-red);
}

.modal-header--yellow {
  background: var(--header-gradient-yellow);
}

.modal-header--blue {
  background: var(--header-gradient-blue);
}

.modal-header--green {
  background: var(--header-gradient-green);
}

.modal-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  color: var(--text-secondary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ==========================================================================
   SITEWIDE SEARCH MODAL
   ========================================================================== */

/* Special styling for search modal */
.modal-content--search {
  max-width: 48rem;
}

#searchModal.open {
  display: flex;
}

/* Search input container inside modal */
.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 0.75rem;
}

.search-input-container .search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
}

.search-input-container input {
  flex: 1;
  padding: 0.875rem 8rem 0.875rem 3rem;
  font-size: 1.1rem;
  border: 2px solid var(--card-border);
  border-radius: 12px;
  background: var(--bg-body);
  color: var(--text-primary);
  transition: var(--transition);
  font-family: inherit;
}

.search-input-container input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.15);
}

.search-input-container .search-shortcut {
  position: absolute;
  right: 1rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Search results header */
.search-results-header {
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1rem;
}

.search-results-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Search results list */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* Search result item (clickable card) */
.search-result-item {
  display: block;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.search-result-item:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.search-result-page {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.search-result-preview {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Match badges */
.match-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.match-badge--heading {
  background: rgba(92, 107, 192, 0.15);
  color: var(--accent-indigo);
}

.match-badge--keyword {
  background: rgba(0, 128, 0, 0.15);
  color: var(--accent-green);
}

.match-badge--content {
  background: rgba(255, 165, 0, 0.15);
  color: var(--accent-orange);
}

/* Highlighted search terms */
.search-result-item mark {
  background: rgba(255, 255, 0, 0.3);
  color: inherit;
  font-weight: 600;
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
}

/* No results message */
.search-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.search-no-results p {
  margin: 0.5rem 0;
}

.search-no-results p:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.search-tip {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
}

/* Dark mode adjustments for search */
[data-theme="dark"] .search-result-item mark {
  background: rgba(255, 255, 0, 0.2);
}

[data-theme="dark"] .search-input-container input {
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .search-input-container input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 1rem;
  }

  .search-input-container .search-shortcut {
    display: none;
  }

  .search-result-item {
    padding: 0.875rem;
  }

  .search-result-title {
    font-size: 1rem;
  }

  .search-result-preview {
    font-size: 0.85rem;
  }

  .search-results-list {
    max-height: 60vh;
  }
}

/* ==========================================================================
   ENHANCED SEARCH BOX
   ========================================================================== */

.search-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-container input[type="text"],
.search-container input[type="search"] {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-primary);
  border-radius: 12px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  transition: var(--transition);
  font-family: inherit;
}

.search-container input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-container::before {
  content: "🔍";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  z-index: 2;
}

.search-clear.visible {
  display: flex;
}

.search-clear:hover {
  background: var(--accent-red-dark);
  transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
   PAGE NAVIGATION - Sticky horizontal bar (below header)
   ========================================================================== */

.page-nav {
  position: sticky;
  top: 90px; /* Stick below the header (header height ~90px) */
  z-index: 998;
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
}

/* Page-nav list - horizontal layout */
.page-nav .nav-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0 1rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Page-nav links - horizontal buttons */
.page-nav .nav-list a {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.15);
  color: var(--border-primary);
  border: 1px solid rgba(96, 165, 250, 0.3);
  transition: var(--transition);
  text-align: center;
  font-size: 0.9rem;
  white-space: nowrap;
}

.page-nav .nav-list a:hover,
.page-nav .nav-list a:focus {
  background: rgba(96, 165, 250, 0.25);
  border-color: rgba(96, 165, 250, 0.5);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* Mobile adjustments for page-nav - hamburger menu */
@media (max-width: 768px) {
  .page-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  /* Page-nav toggle button (hamburger) */
  .page-nav::before {
    content: "☰ PAGE";
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
  }

  .page-nav::before:active {
    transform: scale(0.95);
    box-shadow: 0 3px 12px rgba(22, 163, 74, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  /* Page-nav list - hidden by default on mobile */
  .page-nav .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85); /* More transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 997;
    overflow-y: auto; /* Allow scrolling if needed */
  }

  /* Menu header - "Jump to Section" - same size as buttons */
  .page-nav .nav-list::before {
    content: "Jump to Section";
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    font-size: 1.15rem; /* Same as buttons */
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1.25rem 2.5rem 1.25rem 3.5rem; /* Extra left padding for icon */
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.25) 0%, rgba(59, 130, 246, 0.35) 100%);
    border: 2px solid rgba(96, 165, 250, 0.5);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1rem; /* Extra space below header */
    position: relative;
  }

  /* Heroicon bolt icon as background */
  .page-nav .nav-list::after {
    content: "";
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* Show menu when active */
  .page-nav.active .nav-list {
    transform: translateX(0);
  }

  .page-nav .nav-list a {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1.25rem 2.5rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.1) 100%);
    border: 2px solid rgba(96, 165, 250, 0.35);
    border-radius: 16px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
  }

  /* Shimmer effect on buttons */
  .page-nav .nav-list a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
  }

  .page-nav .nav-list a:active::before {
    left: 100%;
  }

  .page-nav .nav-list a:active {
    transform: scale(0.97);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3) 0%, rgba(59, 130, 246, 0.25) 100%);
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

/* ==========================================================================
   CALLOUT – <aside class="callout"> for tips, warnings, notes
   ========================================================================== */

.callout {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 6px solid var(--accent-blue);
  border-right: 6px solid var(--accent-blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.callout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, transparent, rgba(0, 102, 204, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.callout:hover::before {
  opacity: 1;
}

.callout::after {
  content: "";
  position: absolute;
  top: 0.75rem; right: 1rem;
  font-size: 1.8rem;
  opacity: 0.2;
  pointer-events: none;
}

/* Variants – only change left border */
.callout.tip       { border-left-color: var(--accent-green); border-right-color: var(--accent-green); }
.callout.warning   { border-left-color: var(--accent-red); border-right-color: var(--accent-red);   }
.callout.note      { border-left-color: #9c27b0; border-right-color: #9c27b0;  }
.callout.success   { border-left-color: var(--green-500); border-right-color: var(--green-500);   }

/* ---------- Card Component (Reusable) ---------- */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--glow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Shared header core – applies to every card header */
.card-header {
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--header-gradient);   /* default */
}

/* Header title – keep one rule */
.card-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
}

/* Color modifiers – only the background changes */
/* -------------------------------------------------
   Card header – base + color modifiers (BEM style)
   .card-header         → base
   .card-header--red    → red background
   .card-header--green  → green background
   .card-header--blue   → blue background
   .card-header--yellow → yellow background
   .card-header--indigo → indigo background
   ------------------------------------------------- */
.card-header--red    { background: var(--header-gradient-red); }
.card-header--green  { background: var(--header-gradient-green); }
.card-header--blue   { background: var(--header-gradient-blue); }
.card-header--yellow { background: var(--header-gradient-yellow); }
.card-header--indigo { background: var(--header-gradient); }

.card-img {
  width: 100%;
  height: auto;
  max-height: 70vh;           /* prevent huge images on tall screens */
  display: block;
  margin: 0 auto;             /* horizontal center */
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: contain;        /* show full image, no cropping */
  background: var(--card-bg); /* fallback bg if image has transparency */
}

.card-body {
  padding: 1.5rem;
}

/* ---------- Links List Component ---------- */
.links-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.link-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Section subheaders for visual separation */
.section-subheader {
  margin: 1.5rem 0 1rem 0;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 102, 204, 0.12));
  border-left: 4px solid var(--accent-blue);
  border-radius: 8px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.025em;
}

.section-subheader:first-of-type {
  margin-top: 0;
}

.link-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.link-description {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.link-url {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  word-break: break-word;
}

.link-url:hover,
.link-url:focus {
  color: var(--accent-blue-dark);
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .links-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Content Buttons (refined to match nav buttons) ---------- */
.btn {
  --btn-bg: var(--accent-blue);
  --btn-bg-hover: var(--accent-blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--white);
  background: var(--btn-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.btn:hover,
.btn:focus {
  background: var(--btn-bg-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Color modifiers with hover variants */
.btn-blue    { --btn-bg: var(--accent-blue); --btn-bg-hover: var(--accent-blue-dark); }
.btn-red     { --btn-bg: var(--accent-red); --btn-bg-hover: var(--accent-red-dark); }
.btn-green   { --btn-bg: var(--accent-green); --btn-bg-hover: var(--accent-green-dark); }
.btn-indigo  { --btn-bg: var(--accent-indigo); --btn-bg-hover: var(--accent-indigo-dark); }
.btn-orange  { --btn-bg: var(--accent-orange); --btn-bg-hover: var(--accent-orange-dark); }
.btn-yellow  { --btn-bg: var(--accent-yellow); --btn-bg-hover: var(--accent-yellow-dark); color: var(--black);}
.btn-yellow:hover,
.btn-yellow:focus { color: var(--black); }

/* ---------- Contact Grid Component ---------- */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 102, 204, 0.05));
  border-radius: 50%;
}

.contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.contact-role {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover,
.contact-link:focus {
  color: var(--accent-blue-dark);
  text-decoration: underline;
  transform: translateX(3px);
}

/* ---------- Forecast Maps Component (About Page) ---------- */
.forecast-maps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .forecast-maps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.forecast-map-link {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-map-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.forecast-map-link img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

/* NWS Offices List (replaces second forecast image) */
.nws-offices-list {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.nws-office-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nws-office-item {
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nws-office-item a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nws-office-item a strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.office-coverage {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Color-coded offices to match forecast map graphic */
.nws-office-ffc {
  background: linear-gradient(135deg, rgba(92, 107, 192, 0.15), rgba(92, 107, 192, 0.05));
  border-color: rgba(92, 107, 192, 0.3);
}

.nws-office-ffc:hover {
  background: linear-gradient(135deg, rgba(92, 107, 192, 0.25), rgba(92, 107, 192, 0.1));
  border-color: rgba(92, 107, 192, 0.5);
  transform: translateX(4px);
}

.nws-office-jax {
  background: linear-gradient(135deg, rgba(255, 235, 59, 0.2), rgba(255, 235, 59, 0.08));
  border-color: rgba(255, 193, 7, 0.4);
}

.nws-office-jax:hover {
  background: linear-gradient(135deg, rgba(255, 235, 59, 0.3), rgba(255, 235, 59, 0.15));
  border-color: rgba(255, 193, 7, 0.6);
  transform: translateX(4px);
}

.nws-office-tae {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(233, 30, 99, 0.05));
  border-color: rgba(233, 30, 99, 0.3);
}

.nws-office-tae:hover {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.25), rgba(233, 30, 99, 0.1));
  border-color: rgba(233, 30, 99, 0.5);
  transform: translateX(4px);
}

.nws-office-cae {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.05));
  border-color: rgba(255, 152, 0, 0.3);
}

.nws-office-cae:hover {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 152, 0, 0.1));
  border-color: rgba(255, 152, 0, 0.5);
  transform: translateX(4px);
}

.nws-office-chs {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  border-color: rgba(76, 175, 80, 0.3);
}

.nws-office-chs:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.1));
  border-color: rgba(76, 175, 80, 0.5);
  transform: translateX(4px);
}

.nws-office-gsp {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
  border-color: rgba(33, 150, 243, 0.3);
}

.nws-office-gsp:hover {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(33, 150, 243, 0.1));
  border-color: rgba(33, 150, 243, 0.5);
  transform: translateX(4px);
}

/* ---------- SKYWARN Information Styles ---------- */
.skywarn-intro {
  margin-bottom: 2rem;
}

.skywarn-intro h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.skywarn-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.callout h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

/* ---------- Resource Grid Component ---------- */
.resource-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.resource-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: var(--transition);
}

.resource-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15);
  transform: translateY(-3px);
}

.resource-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 102, 204, 0.05));
  border-radius: 50%;
}

.resource-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.resource-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.resource-note {
  margin: 0;
  color: var(--text-secondary);
  opacity: 0.8;
}

.resource-item .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ==========================================================================
   REPEATER SEARCH – FILTER AND SEARCH FUNCTIONALITY
   ========================================================================== */

.search-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-primary);
  transition: var(--transition);
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.search-clear {
  white-space: nowrap;
  flex-shrink: 0;
}

.search-results-count {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
}

/* Highlight matching text in search results */
.search-highlight {
  background-color: rgba(255, 193, 7, 0.3);
  font-weight: 600;
  padding: 0 2px;
  border-radius: 2px;
}

/* Hidden row when filtered out */
.repeater-table tbody tr.hidden {
  display: none;
}

/* No results message */
.no-results-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius);
  margin: 1rem 0;
}

/* ==========================================================================
   REPEATER BADGE SYSTEM - Multi-tag support
   ========================================================================== */

/* Badge container - displays below location for all viewing modes */
.repeater-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

/* Base badge styling - shared properties */
.badge-hub,
.badge-wx4ptc,
.badge-peach-state,
.badge-cherry-blossom {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: white;
  transition: var(--transition);
}

/* Hub badge - green (primary network hub) */
.badge-hub {
  background: var(--accent-green);
}

/* WX4PTC badge - red (official NWS station) */
.badge-wx4ptc {
  background: var(--accent-red);
}

/* Peach State Intertie - orange */
.badge-peach-state {
  background: var(--accent-orange);
}

/* Cherry Blossom Intertie - pink */
.badge-cherry-blossom {
  background: var(--accent-pink);
}

/* ==========================================================================
   REPEATER TABLES – UNIFORM, RESPONSIVE, BEAUTIFUL
   ========================================================================== */

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.repeater-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--card-bg);
}

.repeater-table th {
  background: var(--header-gradient-th);
  color: white;
  font-weight: 700;
  text-align: left;
  padding: 0.9rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.repeater-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
  transition: background 0.2s ease;
}

.repeater-table tbody tr:hover {
  background: rgba(0, 102, 204, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Zebra striping */
.repeater-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

/* Pinned (important) rows */
.repeater-table tr.pinned {
  background: rgba(76, 175, 80, 0.1);
  font-weight: 600;
}
.repeater-table tr.pinned td {
  border-top: 3px solid var(--green-500);
}

/* Frequency column */
.repeater-table .freq {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Links */
.repeater-table a {
  color: var(--accent-blue);
  text-decoration: underline;
  font-weight: 600;
}
.repeater-table a:hover {
  color: var(--accent-blue-dark);
}
.repeater-table tbody tr td:first-child strong {
    /* example: change colour or weight */
    color: var(--accent-blue);
    font-weight: 700;   
}

/* Scroll hint */
.scroll-hint {
  font-size: 0.8rem;
  color: var(--text-primary);
  text-align: center;
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* Color coding: Red = Warning, Orange = Watch */

/* Base enhancements for the alert card */
.alert-card {
  box-shadow: var(--shadow), 0 0 20px rgba(0, 0, 0, 0.15); /* Stronger shadow for more pop */
  border: 1px solid var(--card-border); /* Subtle outline */
  transition: var(--transition);
}

.alert-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), var(--glow); /* Enhanced hover for visibility */
}

/* Alert container - ensure proper layout */
#alerts-container {
  display: block;
  width: 100%;
  overflow: visible;
  position: relative;
}

.alert-item {
  display: block;
  width: 100%;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 6px;
  border-left: 6px solid;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.95rem;
  animation: fadeIn 0.5s ease-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  clear: both;
  position: relative;
}

.alert-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.alert-more {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-align: right;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.alert-item:hover .alert-more {
  opacity: 1;
}

.alert-warning {
  border-left-color: var(--accent-red); /* Red */
  background-color: var(--alert-warning-bg);
}

.alert-watch {
  border-left-color: #f4a261; /* Orange */
  background-color: var(--alert-watch-bg);
}

.alert-other {
  border-left-color: #42a5f5; /* Blue */
  background-color: var(--alert-other-bg);
}

.alert-header {
  color: var(--alert-header-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.alert-description {
  color: var(--alert-desc-color);
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* No alerts message – ensure visibility */
.no-alerts {
  color: var(--text-primary);
  font-weight: 600;
}

/* Alert status bar - combined info line */
.alert-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 102, 204, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--accent-red);
  border-right: 4px solid var(--accent-red);
}

.alert-status-text {
  font-weight: 600;
  color: var(--text-primary);
}

.alert-status-text a {
  color: var(--accent-blue);
  text-decoration: underline;
  font-weight: 600;
}

.alert-status-divider {
  color: var(--text-secondary);
  opacity: 0.5;
  font-weight: 300;
}

.alert-status-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.alert-status-time {
  font-style: italic;
  font-weight: 500;
}

.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

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

/* ==========================================================================
   REPORTING REQUIREMENTS – IMPROVED LAYOUT
   ========================================================================== */

/* Top row: Please Include + Detailed Guide (side by side) */
.report-top-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .report-top-row {
    grid-template-columns: 1fr 1fr;
  }
}

.report-include,
.report-guide {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}

.report-include:hover,
.report-guide:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.report-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-blue);
}

.report-guide p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.report-guide .btn {
  width: 100%;
}

/* Bottom section: What to Report (full width) */
.report-what-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--card-border);
}

.report-items-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .report-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .report-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.report-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid;
  padding: 1rem;
  border-radius: 0 12px 12px 0;
  transition: var(--transition);
}

.report-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.report-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Color-coded left border */
.report-item.tornado   { border-left-color: #d32f2f; }
.report-item.hail      { border-left-color: #f57c00; }
.report-item.wind      { border-left-color: #fbc02d; }
.report-item.flood     { border-left-color: #1976d2; }
.report-item.winter    { border-left-color: #5e35b1; }
.report-item.lightning { border-left-color: #7cb342; }


/* ==========================================================================
   NWS RESOURCES SECTION – Compact & Professional
   ========================================================================== */

.nws-resources-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

/* Logo Section */
.nws-logo-section {
  text-align: center;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nws-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}

.nws-logo-link:hover {
  transform: scale(1.05);
}

.nws-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
}

.nws-logo-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-blue);
  white-space: nowrap;
}

/* Section Columns */
.nws-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nws-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--card-border);
}

.nws-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nws-links li {
  margin: 0;
}

.nws-links a {
  display: block;
  padding: 0.4rem 0;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nws-links a:hover {
  color: var(--accent-blue-dark);
  transform: translateX(3px);
}

/* More Resources Section */
.nws-more-resources {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.nws-more-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  font-weight: 500;
}

/* Tablet Layout - 2 columns with logo on top */
@media (min-width: 600px) and (max-width: 767px) {
  .nws-resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .nws-logo-section {
    grid-column: 1 / -1;
    padding: 0.5rem 0 1rem 0;
  }

  .nws-logo {
    max-width: 150px;
  }
}

/* Larger desktop - slightly bigger logo */
@media (min-width: 1200px) {
  .nws-logo {
    max-width: 180px;
  }
}

/* -------------------------------------------------
   Green check‑boxes for the "Please Include" list
   ------------------------------------------------- */

/* Target the specific list – keeps the rule scoped */
.include-col .include-list,
.report-include .include-list {
  list-style: none;               /* remove the default bullet */
  margin: 0;
  padding: 0;
}

/* List items with checkmarks */
.include-col .include-list li,
.report-include .include-list li {
  position: relative;             /* needed for absolute positioning of ::after */
  padding-left: 2rem;             /* space for the checkmark icon */
  margin-bottom: 0.6rem;          /* vertical rhythm */
}

.include-col .include-list li::after,
.report-include .include-list li::after {
  content: "\2714"; /* Checkmark */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--green-500);
  font-size: 1.3rem;
  line-height: 1;
}
/* Optional: give ordered lists the same left‑padding as the UL version */
.numbered {
  counter-reset: item;
  pading-left: 2rem;       /* same space you gave the UL */
}
.numbered li {
  display: block;
  position: relative;
  margin-bottom: 0.6rem;
}
.numbered li::before {
  content: counter(item) ". ";
  counter-increment: item;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  border-radius: 2px;
  font-weight: bold;
  color: var(--accent-blue);
}

/* ==========================================================================
   SYSTEM ACTIONS – SCALABLE, RESPONSIVE BUTTONS
   ========================================================================== */

.system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  padding: 0 1rem;
}

/* Base button – let it grow with content */
.system-actions .btn {
  min-width: auto;
  width: auto;
  max-width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.4;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Device label – smaller, subtle */
.system-actions .device-label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* ==========================================================================
   ACTION BUTTONS – HORIZONTAL GROUP (Responsive)
   ========================================================================== */

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 0 1rem;
}

.action-buttons .btn {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 0.9rem 1.2rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  text-align: center;
  white-space: normal;
}

.action-buttons small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* ==========================================================================
   MAP GRID - Dashboard Quick Maps
   ========================================================================== */

.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 768px) {
  .map-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.map-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.map-card:hover,
.map-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(92, 107, 192, 0.05) 100%);
}

.map-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  border-radius: 12px;
  color: white;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.map-card:hover .map-card-icon,
.map-card:focus .map-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.map-card-content {
  flex: 1;
  min-width: 0;
}

.map-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.map-card-desc {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ==========================================================================
   CHANGELOG GRID - Recent Updates Display
   ========================================================================== */

.changelog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .changelog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.changelog-month-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.changelog-month-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.changelog-month-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid;
}

.changelog-month-header--green {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

.changelog-month-header--blue {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.changelog-month-header--indigo {
  color: var(--accent-indigo);
  border-bottom-color: var(--accent-indigo);
}

.changelog-month-header--orange {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.changelog-month-header--red {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

.changelog-month-header--yellow {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.changelog-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

.changelog-list li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE MAP BUTTONS – Show only one per device
   ========================================================================== */

.map-link {
  width: 100%;
  max-width: 580px;
  margin: 0.5rem auto;
  text-align: center;
}

.device-label {
  font-size: 0.7rem;
  opacity: 0.6;
  display: block;
  margin-top: 0.25rem;
}

/* ==========================================================================
   SPOTTER RESOURCES – LEFT BUTTON, RIGHT TEXT (Responsive)
   ========================================================================== */

.spotter-resources {
  margin: 2rem 0;
}

.section-title {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* Each pair: Button (left) + Text (right) */
.resource-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
  align-items: center;
}

/* Button Column */
.resources-button {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resources-button .btn {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  white-space: normal;
  text-align: center;
}

.resources-button .device-label {
  font-size: 0.75rem;
  opacity: 0.8;
  display: block;
  margin-top: 0.25rem;
}

/* Text Column */
.resources-text {
  flex: 2;
  min-width: 300px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.site-footer {
  display: flex;
  flex-direction: column;      /* stack the <p> elements vertically */
  align-items: center;         /* <-- horizontally centre everything */
  justify-content: center;     /* optional – centre vertically within its own height */
  padding: 1rem 0;
}

/* ==========================================================================
   ABOUT DIAGRAM – Clean, responsive, monospace, card-integrated
   ========================================================================== */
.about-diagram-wrapper {
  margin: 1.5rem 0;
  overflow-x: auto;
  display: flex;
  justify-content: center;   /* horizontal centering */
  align-items: center; 
}

.about-diagram {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 auto;
  white-space: pre;
  min-width: 500px;           /* prevents squishing */
  overflow-x: auto;
}

/* Show only on desktop – hide on mobile */
.desktop-only { display: inline-flex; }
/* ---------- Map button visibility ---------- */
.map-mobile { display: none; }
@media (min-width: 768px) { .map-desktop { display: inline-flex; } }
@media (max-width: 767px)  { .map-mobile  { display: inline-flex; } .map-desktop { display: none; } }

/* ==========================================================================
   MOBILE RESPONSIVE (<768px) - Consolidated
   ========================================================================== */
@media (max-width: 767px) {
  /* Layout */
  .site-main { padding: 0 .5rem; }
  .desktop-only { display: none; }
  .site-header {
    min-height: 25vh;
    padding: 1rem;
  }

  /* Navigation */
  .site-nav .nav-toggle { display: block; }
  .site-nav .nav-list   { display: none; flex-direction: column; width: 100%; margin-top: .5rem; }
  .site-nav .nav-list.open { display: flex; }
  .site-nav .nav-list a {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  /* Page nav - always visible, smaller on mobile */
  .page-nav .nav-list {
    gap: 0.5rem;
  }
  .page-nav .nav-list a {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  /* Buttons - consistent sizing on mobile */
  .btn {
    width: 100%;
    max-width: 280px;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
  .system-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  /* Action buttons */
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  .action-buttons .btn {
    width: 100%;
    max-width: 340px;
  }

  /* Alert status bar */
  .alert-status-bar {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
  .alert-status-divider {
    display: none;
  }

  /* Resource pairs */
  .resource-pair {
    flex-direction: column;
    text-align: center;
  }
  .resources-button,
  .resources-text {
    max-width: 100%;
  }
  .resources-button .btn {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  body { padding: .5rem; }
  h1   { font-size: 2rem; }
  h2   { font-size: 1.5rem; }
  .card-header h2 { font-size: 1.2rem; }
}

/* ==========================================================================
   DESKTOP/TABLET RESPONSIVE (≥768px) - Consolidated
   ========================================================================== */
@media (min-width: 768px) {
  /* Grid layouts - 2 columns */
  .links-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  /* NWS Resources - 3 columns */
  .nws-resources-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
  }

  .nws-logo-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .nws-logo-link {
    height: 100%;
    justify-content: flex-start;
    padding-top: 1rem;
  }

  .nws-logo {
    max-width: 160px;
  }

  .nws-more-resources {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  /* Resource pairs */
  .resource-pair {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .resources-button {
    margin-right: 1rem;
  }
}

/* ==========================================================================
   LOADING SKELETON – Modern loading animation
   ========================================================================== */
.skeleton-loader {
  background: linear-gradient(
    90deg,
    rgba(200, 200, 200, 0.2) 25%,
    rgba(200, 200, 200, 0.4) 50%,
    rgba(200, 200, 200, 0.2) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 8px;
  height: 100px;
  margin: 1rem 0;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   DARK MODE - Consolidated (respects manual theme toggle)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Callouts */
    .callout {
      background: rgba(15, 23, 42, 0.9);
    }

    /* Contact items */
    .contact-item {
      background: rgba(255, 255, 255, 0.03);
    }
    .contact-item:hover {
      background: rgba(255, 255, 255, 0.08);
      box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    }
    .contact-icon {
      background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 102, 204, 0.1));
    }

    /* Resource items */
    .resource-item {
      background: rgba(255, 255, 255, 0.03);
    }
    .resource-item:hover {
      background: rgba(255, 255, 255, 0.08);
      box-shadow: 0 6px 16px rgba(0, 102, 204, 0.25);
    }
    .resource-icon {
      background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 102, 204, 0.1));
    }

    /* Search components */
    .search-input {
      background: rgba(255, 255, 255, 0.05);
    }
    .search-highlight {
      background-color: rgba(255, 193, 7, 0.25);
    }
    .no-results-message {
      background: rgba(255, 255, 255, 0.03);
    }

    /* Repeater tables */
    .repeater-table tbody tr:nth-child(even) {
      background: rgba(255, 255, 255, 0.03);
    }
    .repeater-table tr.pinned {
      background: rgba(76, 175, 80, 0.2);
    }

    /* NWS logo */
    .nws-logo-link:hover {
      opacity: 0.9;
    }

    /* Loading skeleton */
    .skeleton-loader {
      background: linear-gradient(
        90deg,
        rgba(100, 100, 100, 0.2) 25%,
        rgba(100, 100, 100, 0.4) 50%,
        rgba(100, 100, 100, 0.2) 75%
      );
    }

    /* Back to top button */
    .back-to-top {
      background: rgba(96, 165, 250, 0.85);
    }
  }
}

/* ==========================================================================
   BACK TO TOP BUTTON – Floating button to scroll to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(0, 102, 204, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--accent-blue-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* ==========================================================================
   ENHANCED FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  margin-top: 3rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 1.5rem;
  text-align: left;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   PRINT STYLESHEET – Optimized for printing
   ========================================================================== */
@media print {
  /* Hide navigation and interactive elements */
  .nav-toggle,
  .nav-list,
  #footer-placeholder,
  .action-buttons,
  .back-to-top,
  .system-actions,
  .btn {
    display: none !important;
  }

  /* Optimize layout for print */
  body {
    background: white;
    color: black;
    font-size: 10pt;
    padding: 0;
  }

  .site-header {
    background: none;
    color: black;
    box-shadow: none;
    padding: 0.5rem;
    min-height: auto;
  }

  .site-title {
    color: black;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .site-subtitle {
    color: black;
  }

  /* Optimize cards for print */
  .card {
    page-break-inside: avoid;
    border: 1px solid #000;
    box-shadow: none;
    margin-bottom: 1rem;
  }

  .card-header {
    background: #f0f0f0 !important;
    color: black !important;
    border-bottom: 2px solid #000;
  }

  .card-body {
    padding: 0.5rem;
  }

  /* Optimize tables for print */
  .repeater-table {
    font-size: 8pt;
    page-break-inside: avoid;
  }

  .repeater-table th {
    background: #e0e0e0 !important;
    color: black !important;
  }

  .repeater-table td {
    border: 1px solid #ccc;
  }

  /* Hide scroll hints */
  .scroll-hint {
    display: none;
  }

  /* Ensure links show URLs */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666;
  }

  /* Don't show URLs for internal links */
  a[href^="#"]:after,
  a[href^="/"]:after {
    content: "";
  }

  /* Alert items */
  .alert-item {
    border: 2px solid #000;
    page-break-inside: avoid;
  }

  /* Callouts */
  .callout {
    border: 1px solid #000;
    background: #f9f9f9;
    page-break-inside: avoid;
  }
}