/* ==========================================================================
   style.css – shared design for Georgia Skywarn & WX4PTC pages
   Author: Jack Parks (KQ4JP) <kq4jp@pm.me>
   Purpose: Unified, accessible, responsive design system using CSS Grid/Flexbox.
            Supports light/dark mode, mobile-first layout, and semantic styling.
   Change-log:
     • 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 {
  /* 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;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --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, #0066cc 0%, #005cb8 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: #ffffff;
  --nav-btn-color: #1a1a1a;
  --nav-btn-border: rgba(0, 0, 0, 0.1);
  --nav-btn-bg-hover: rgba(0, 102, 204, 0.15);
  --nav-btn-color-hover: #005cb8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --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;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --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, #0066cc 0%, #005cb8 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: #fff;
	--alert-desc-color: #d1d5db; /* Light gray for readability */
	--nav-btn-bg: rgba(15, 23, 42, 0.9);
    --nav-btn-color: #e2e8f0;
    --nav-btn-border: rgba(255, 255, 255, 0.1);
    --nav-btn-bg-hover: rgba(96, 165, 250, 0.2);
    --nav-btn-color-hover: #60a5fa;
	}
	.alert-item {
	    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1); /* Inner glow for depth in dark mode */
	  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

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; }

/* ==========================================================================
   ORIGINAL HEADER – SMALLER, CENTERED, CLEAN
   ========================================================================== */

.site-header {
  text-align: center;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--header-gradient);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-title {
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--title-grad-start), var(--title-grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.site-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: white;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}



/* ==========================================================================
   NAVIGATION – TWO-TIER SYSTEM
   ========================================================================== */

/* Shared navigation container styles */
.site-nav,
.page-nav {
  padding: 1rem 1.5rem;
  margin-bottom: 0;
}

.site-nav {
  background: var(--card-bg);
  border-bottom: 2px solid var(--card-border);
}

.page-nav {
  background: rgba(var(--card-bg), 0.5);
  border-bottom: 1px solid var(--card-border);
}

/* Mobile toggle button - base styles */
.nav-toggle {
  display: none;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

/* Site navigation toggle - blue */
.site-nav .nav-toggle {
  background: var(--accent-blue);
}

.site-nav .nav-toggle:hover {
  background: var(--accent-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Page navigation toggle - green */
.page-nav .nav-toggle {
  background: var(--accent-green);
}

.page-nav .nav-toggle:hover {
  background: var(--accent-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 211, 142, 0.3);
}

/* Navigation list base styles */
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

/* Site-nav links - colored buttons */
.site-nav .nav-list a {
  display: block;
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  background: var(--accent-blue);
  color: white;
  border: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.site-nav .nav-list a:hover,
.site-nav .nav-list a:focus {
  background: var(--accent-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Page-nav links - white/neutral buttons */
.page-nav .nav-list a {
  display: block;
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  background: var(--nav-btn-bg, var(--card-bg));
  color: var(--nav-btn-color, var(--text-primary));
  border: 1px solid var(--nav-btn-border, var(--card-border));
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.page-nav .nav-list a:hover,
.page-nav .nav-list a:focus {
  background: var(--nav-btn-bg-hover, rgba(0, 102, 204, 0.15));
  color: var(--nav-btn-color-hover, var(--accent-blue-dark));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Colored button modifiers for site-nav */
.nav-btn-alert {
  background: #e63946 !important;
  color: white !important;
}

.nav-btn-alert:hover,
.nav-btn-alert:focus {
  background: #c62828 !important;
}

.nav-btn-link {
  background: #5C6BC0 !important;
  color: white !important;
}

.nav-btn-link:hover,
.nav-btn-link:focus {
  background: #3f51b5 !important;
}

.nav-btn-green {
  background: var(--accent-green) !important;
  color: white !important;
}

.nav-btn-green:hover,
.nav-btn-green:focus {
  background: var(--accent-green-dark) !important;
}

.nav-btn-main {
  background: var(--header-gradient) !important;
  color: white !important;
}

.nav-btn-main:hover,
.nav-btn-main:focus {
  background: linear-gradient(135deg, #003366 0%, #004d99 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

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

.callout {
  background: var(--card-bg);
  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: #4caf50; border-right-color: #4caf50;   }

/* ---------- 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), var(--glow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* 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: #fff;
  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--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--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;
}

.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);
  }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent-blue);   /* default colour */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--btn-bg);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover,
.btn:focus {
  background: color-mix(in srgb, var(--btn-bg) 80%, #000);
  color: #000;  /* Black text on hover for all buttons */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* colour modifiers – just change the variable */
.btn-blue    { --btn-bg: var(--accent-blue); }
.btn-red     { --btn-bg: var(--accent-red); }
.btn-green   { --btn-bg: var(--accent-green); }
.btn-indigo  { --btn-bg: var(--accent-indigo); }
.btn-orange  { --btn-bg: var(--accent-orange); }
.btn-yellow  { --btn-bg: var(--accent-yellow); color: #000;}

/* ---------- 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);
}

/* ---------- 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 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 #4caf50;
}

/* Frequency column */
.repeater-table .freq {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--accent-blue);
  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-item {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 6px;
  border-left: 6px solid;
  background-color: #f9f9f9;
  font-size: 0.95rem;
  animation: fadeIn 0.5s ease-in;
}

.alert-warning {
  border-left-color: #e63946; /* 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: #4caf50;
  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;
}

/* ==========================================================================
   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 */
  .nav-toggle { display: block; }
  .nav-list   { display: none; flex-direction: column; width: 100%; margin-top: .5rem; }
  .nav-list.open { display: flex; }
  .nav-list a { width: 100%; text-align: center; }

  /* Buttons */
  .btn { width: 100%; max-width: 280px; }
  .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
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  /* 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 – Floating button to scroll to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  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: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

/* ==========================================================================
   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;
  }
}