/**
 * DEFCON Level, Navigation & Banner
 * Navbar, dropdown menus, mega-menus, mobile toggle, hamburger animation, level dots, raised badges, and breaking news banner.
 *
 * Part of the Defcon site CSS (builds on engine base theme).
 * Load order managed by config/site.php → site_css array.
 */

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) 0;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
}

/* ads-mobile.css sets `.container { overflow-x: hidden }` for all containers at
   <=1024px (mobile viewport-overflow safety). Per CSS spec, overflow-x:hidden
   forces overflow-y from `visible` to `auto`, which gives the navbar's internal
   .container a vertical scrollbar AND clips the absolute-positioned .dropdown-menu
   that extends below it. Override here so navbar dropdowns escape the clip. */
.navbar > .container {
  overflow: visible;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* Ensure toggle can be positioned */
}

/* Ensure toggle is always clickable on mobile */
@media (max-width: 768px) {
  .navbar-content {
    gap: var(--space-3);
  }
}

.navbar-logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.navbar-logo:visited {
  color: var(--text-primary);
  border-bottom: none;
}

.navbar-logo:hover {
  color: var(--accent-primary);
  border-bottom: none;
}

.navbar-logo:active {
  color: var(--text-primary);
  border-bottom: none;
}

/* Space between logo and menu items (desktop only) */
@media (min-width: 769px) {
  .navbar-logo {
    margin-right: var(--space-4);
    flex-shrink: 0;
  }
}

.navbar-menu {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.navbar-link {
  color: var(--navbar-text);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-2);
  border-radius: 4px;
  transition: all var(--transition);
  background: none;
  border: none;
  border-bottom: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.navbar-link:visited {
  color: var(--navbar-text);
  border-bottom: none;
}

/* Ensure buttons with navbar-link class are styled like links */
button.navbar-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--navbar-text-hover);
  background: var(--navbar-hover-bg);
  border-bottom: none;
}

/* Home link - visible on mobile, subtle on desktop */
.navbar-link.home-link {
  /* Always visible but can be styled differently */
}

/* On desktop, home link can be more subtle since logo is prominent */
@media (min-width: 769px) {
  .navbar-link.home-link {
    /* Keep visible but match other links */
  }
}

/* On mobile, home link is important since logo might be smaller */
@media (max-width: 768px) {
  .navbar-link.home-link {
    /* Ensure it's prominent on mobile */
    font-weight: 600;
  }
}

/* Dropdown Toggle Button */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.dropdown-arrow {
  font-size: var(--text-xs);
  transition: transform var(--transition);
  display: inline-block;
}

.navbar-dropdown:hover .dropdown-arrow,
.navbar-dropdown:focus-within .dropdown-arrow,
.navbar-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.navbar-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navbar-bg);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: var(--space-2) 0;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 1000;
}

/* Right-align dropdown for last items so they don't overflow viewport */
.navbar-dropdown:last-child .dropdown-menu {
  left: auto;
  right: 0;
}

/* Create hover bridge - no gap between button and menu */
.navbar-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
}

/* Desktop (width >= 1024px): hover to open dropdown */
@media (min-width: 1024px) {

  .navbar-dropdown:hover .dropdown-menu,
  .navbar-dropdown:focus-within .dropdown-menu,
  .navbar-dropdown:hover::before,
  .navbar-dropdown:focus-within::before {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Active state for click-toggle (mobile and desktop fallback) */
.dropdown-menu.active,
.navbar-dropdown.active .dropdown-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.navbar-dropdown.active::before {
  display: block;
}

/* Keep menu open when hovering over dropdown arrow */
.navbar-dropdown:hover .dropdown-toggle,
.navbar-dropdown:focus-within .dropdown-toggle {
  background: var(--navbar-hover-bg);
}

.dropdown-header {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  /* Fixed size - smaller, professional */
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: default;
  line-height: 1.4;
}

.dropdown-header.clickable-header {
  cursor: pointer;
  transition: color 0.15s ease;
}

.dropdown-header.clickable-header:hover {
  color: var(--accent-primary);
  text-decoration: underline;
  /* Removed text-transform and letter-spacing - no size/growth change on hover */
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  color: var(--navbar-text);
  font-size: var(--text-sm);
}

.dropdown-menu a:visited {
  color: var(--navbar-text);
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--navbar-hover-bg);
  color: var(--navbar-text-hover);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-2) 0;
  border: none;
  padding: 0;
}

.dropdown-all {
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
}

/* Wide dropdown for Learn menu */
.dropdown-menu-wide {
  min-width: 280px;
}

.dropdown-menu-wide .dropdown-header {
  margin-top: var(--space-2);
}

.dropdown-menu-wide .dropdown-header:first-child {
  margin-top: 0;
}

/* Mega Menu for Regions */
.mega-menu {
  min-width: 600px;
  max-width: 800px;
  /* Dropdown menu width - not main site width */
  padding: var(--space-4) 0;
}

.mega-menu-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding: 0 var(--space-4);
}

/* Wide mega menus: position relative to navbar, not individual dropdown item.
   The parent .navbar-dropdown gets position:static so the absolute mega menu
   anchors to the next positioned ancestor (.navbar-content or .container). */
@media (min-width: 769px) {
  .navbar-dropdown:has(.learn-mega-menu) {
    position: static;
  }
}

/* Learn Mega Menu - 4 column layout (matches old site: full-width, single-column links per section) */
.learn-mega-menu {
  min-width: min(800px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  left: 0;
  right: 0;
  transform: none;
}

/* grid-template-columns set via inline style in navigation.php (auto-adapts to column count) */
.learn-mega-menu .mega-menu-content.learn-grid {
  gap: var(--space-4);
}

/* 4-column mega menu (Learn): single-column links per section.
   Old site uses plain <a> tags stacked vertically, engine wraps in .commands-grid-mini
   so we override the 2-column sub-grid to 1-column for menus with many long page titles.
   The 3-column Raised menu keeps its 2-column sub-grid (short abbreviations). */
.mega-cols-4 .commands-grid-mini {
  grid-template-columns: 1fr;
  gap: 0;
}

.learn-mega-menu .mega-menu-section a {
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  white-space: nowrap;
}

.learn-mega-menu .dropdown-header {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent-primary);
}

.mega-menu-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.commands-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.command-link-mini {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  transition: all var(--transition);
  font-size: var(--text-sm);
}

.command-link-mini:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.command-name-mini {
  flex: 1;
  font-weight: 500;
}

.raised-indicator {
  font-size: var(--text-xs);
  animation: pulse 2s infinite;
}

.raised-badge-nav {
  display: inline-block;
  background: var(--priority-critical);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  line-height: 1.2;
  min-width: 18px;
  text-align: center;
}

.raised-badge {
  display: inline-block;
  background: var(--priority-critical);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: var(--space-1);
}

.raised-alerts-notice {
  background: rgba(220, 38, 38, 0.1);
  border-left: 3px solid var(--priority-critical);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) var(--space-4) 0;
  border-radius: 4px;
  font-size: var(--text-sm);
}

.raised-alerts-notice strong {
  color: var(--priority-critical);
}

@media (max-width: 900px) {
  .learn-mega-menu {
    min-width: auto;
  }

  .learn-mega-menu .mega-menu-content.learn-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1023.98px) {

  /* Mobile dropdown positioning - relative to mobile menu container */
  .navbar-dropdown {
    width: 100%;
    position: relative;
  }

  .navbar-dropdown .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3) 0;
    min-height: 44px;
    /* iOS minimum touch target */
    touch-action: manipulation;
    /* Faster touch response */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  }

  /* Mobile dropdowns expand inline, not absolute */
  .dropdown-menu {
    display: none;
    position: static;
    width: 100%;
    min-width: auto;
    max-width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg-tertiary);
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-2);
  }

  /* Mobile dropdown ACTIVE state - show submenu */
  .dropdown-menu.active,
  .navbar-dropdown.active .dropdown-menu,
  .navbar-dropdown.active>.dropdown-menu,
  div.dropdown-menu.active,
  .mega-menu.active,
  .navbar-dropdown.active .mega-menu,
  .learn-mega-menu.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100%;
    background: var(--bg-tertiary);
    left: 0;
    transform: none;
  }

  .mega-menu {
    min-width: auto;
    max-width: 100%;
  }

  .mega-menu-content {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: 0;
  }

  .learn-mega-menu {
    left: 0;
    transform: none;
    min-width: auto;
  }

  .learn-mega-menu .mega-menu-content.learn-grid {
    grid-template-columns: 1fr;
  }

  .commands-grid-mini {
    grid-template-columns: 1fr;
  }

  /* Mega menu sections stack vertically on mobile */
  .mega-menu-section {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .mega-menu-section:last-child {
    border-bottom: none;
  }

  .dropdown-header {
    padding: var(--space-2) 0;
  }

  .dropdown-menu a {
    padding: var(--space-2) var(--space-2);
    /* 2026-05-26 (S859): center dropdown sub-items to match the centered
       top-level menu items. .dropdown-menu a is display:flex at base; default
       justify-content is flex-start, so sub-items left-aligned while their
       parent dropdown-toggle (e.g., "Alerts") was centered. Visual mismatch
       reported by user. Also center .dropdown-header (section labels) and
       .dropdown-divider via the parent .dropdown-menu text-align fallback. */
    justify-content: center;
  }

  .dropdown-menu .dropdown-header,
  .dropdown-menu {
    text-align: center;
  }

  .dropdown-all {
    margin-top: var(--space-2);
    text-align: center;
  }
}

.level-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.level-dot.level-1 {
  background: var(--level-1);
}

.level-dot.level-2 {
  background: var(--level-2);
}

.level-dot.level-3 {
  background: var(--level-3);
}

.level-dot.level-4 {
  background: var(--level-4);
}

.level-dot.level-5 {
  background: var(--level-5);
}

/* Mobile Toggle Button - Enhanced for visibility */
.navbar-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.1));
  border: 1px solid var(--accent-primary);
  border-radius: 6px;
  cursor: pointer;
  min-height: 44px;
  color: var(--accent-primary);
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(14, 165, 233, 0.2);
}

.navbar-toggle:hover,
.navbar-toggle:focus {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.2));
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-icon span {
  width: 18px;
  height: 2px;
  background: var(--accent-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hamburger animation when menu is open */
.navbar[data-menu-open="true"] .navbar-toggle {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.2));
}

.navbar[data-menu-open="true"] .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.navbar[data-menu-open="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.navbar[data-menu-open="true"] .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile-only: Browse All Pages link - Hidden on desktop */
.mobile-browse-all {
  display: none;
}

@media (max-width: 1023.98px) {

  /* Hide scrollbars in navbar area */
  .navbar,
  .navbar *,
  .navbar-content,
  .navbar-menu {
    overflow: visible;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .navbar::-webkit-scrollbar,
  .navbar *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  /* Mobile menu - fixed panel that breaks out of navbar stacking context */
  .navbar-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: var(--space-3);
    right: var(--space-3);
    background: var(--bg-secondary);
    padding: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    z-index: 999998;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Closed state, animated with transform for GPU compositing */
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s;
  }

  /* Show menu when nav has data-menu-open="true" */
  nav.navbar[data-menu-open="true"] .navbar-menu,
  nav.navbar[data-menu-open="true"] #main-menu,
  nav.navbar[data-menu-open="true"] div.navbar-menu,
  .navbar[data-menu-open="true"]>.container>.navbar-content>.navbar-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Backdrop overlay behind menu */
  .mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999997;
    opacity: 0;
    transition: opacity 0.25s ease-out;
  }

  .mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
  }

  .navbar-toggle {
    display: flex;
    z-index: 10000;
    min-height: 48px;
    min-width: 48px;
  }

  .navbar-toggle:active {
    transform: scale(0.95);
    background: rgba(14, 165, 233, 0.25);
  }

  /* Stacking-context fix: .navbar has backdrop-filter:blur(10px) which creates
     a new stacking context AND a containing block for fixed descendants. That
     traps .navbar-menu (z-index 999998) inside .navbar's outer z-index (200),
     so .mobile-menu-backdrop (appended to body, z-index 999997) renders ABOVE
     the entire navbar and intercepts every tap on menu items. Elevating the
     navbar above the backdrop ONLY while the menu is open restores clicks. */
  body.mobile-menu-open .navbar {
    z-index: 999999;
  }

  /* Scroll lock when menu is open. 2026-05-26 fix: dropped `position: fixed`
     because iOS Safari has a long-standing bug where position:fixed on body
     suppresses tap events on fixed-positioned descendants (the menu items).
     Result: visually the menu opens, but every tap is eaten. overflow:hidden
     alone gives us scroll-lock without the iOS quirk. The body.style.top
     trick in mobile-menu.js openMenu() is now redundant; left in for now
     because it is harmless without position:fixed (top has no effect on
     static-positioned bodies). */
  body.mobile-menu-open {
    overflow: hidden;
  }
  html.mobile-menu-open {
    overflow: hidden;
  }

  /* Respect reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    .navbar-menu,
    .mobile-menu-backdrop {
      transition: none;
    }
    .navbar-toggle:active {
      transform: none;
    }
  }

  /* Mobile navbar links, card-style items, centered + uniformly white.
     2026-05-26 fix: extends color/padding/cursor/touch-action to dropdown-toggles
     (which are descendants of .navbar-dropdown, not direct children of .navbar-menu)
     so they render the same white color as flat links. Also adds cursor:pointer +
     touch-action:manipulation + -webkit-tap-highlight-color so iOS Safari fires
     click events reliably on tap. */
  .navbar-menu>.navbar-link,
  .navbar-menu .navbar-dropdown>.dropdown-toggle {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
    font-size: var(--text-base);
    color: var(--text-primary);
    text-align: center;
    transition: background 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(14, 165, 233, 0.15);
  }

  /* Dropdown-toggle on mobile: keep flex layout so the arrow stays beside the
     label, but center the row instead of left-aligning. */
  .navbar-menu .navbar-dropdown>.dropdown-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
  }

  .navbar-menu>.navbar-link:hover,
  .navbar-menu .navbar-dropdown>.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .navbar-menu>.navbar-link.active,
  .navbar-menu .navbar-dropdown>.dropdown-toggle.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
  }

  .navbar-menu>.navbar-link:last-of-type {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
  }

  /* Dropdown arrow inherits parent color (white instead of muted grey). */
  .navbar-menu .navbar-dropdown .dropdown-arrow {
    color: inherit;
  }

  /* Mobile Browse All Pages - prominent CTA at top of mobile menu */
  .mobile-browse-all {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    margin: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.1));
    border: none;
    border-bottom: 1px solid var(--accent-primary);
    border-radius: 12px 12px 0 0;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: var(--text-base);
  }

  .mobile-browse-all:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.2));
  }

  /* Home link doesn't need to be first visible item */
  .navbar-menu>.home-link {
    display: none;
  }
}

/* ================================================================
   BREAKING BANNER
   Layout is inline-styled on the PHP template (matches old site pattern)
   to avoid CSS cascade conflicts with .container { display: block }.
   CSS here handles only: label badge, color modifiers, animations.
   ================================================================ */

/* pulse keyframes defined in transitions.css (canonical location).
   banner-pulse is a dedicated alias for banner elements. */
@keyframes banner-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── Breaking News Banner ──
   All banner styling lives here. JS only sets content, adds priority class, toggles display.
   No inline styles in breaking-banner.php, ever. */

#breaking-banner {
  display: none;
  position: relative;
  z-index: 100;
  color: white;
  font-size: 0.85rem;
  line-height: 1;
}

/* Override reset.css min-height: 44px on a/button, banner must be compact */
#breaking-banner a,
#breaking-banner button {
  min-height: 0;
}

.breaking-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  position: relative;
}

.breaking-banner__label {
  font-size: var(--text-xs);
  font-weight: 700;
  background: white;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  animation: banner-pulse 2s infinite;
  line-height: 1.4;
  flex-shrink: 0;
}

.breaking-banner__title {
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-bottom: none;
  line-height: 1.2;
}

.breaking-banner__title:hover,
.breaking-banner__title:visited {
  color: white;
  border-bottom: none;
  text-decoration: none;
}

.breaking-banner__count {
  font-size: var(--text-xs);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1.4;
}

.breaking-banner__count a {
  color: #fff;
  text-decoration: none;
  border-bottom: none;
  font-weight: 400;
}

.breaking-banner__close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.25rem;
  opacity: 0.7;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.breaking-banner__close:hover {
  opacity: 1;
}

/* Override global a:hover underline for all banner links */
#breaking-banner a,
#breaking-banner a:hover,
#breaking-banner a:visited {
  color: white;
  border-bottom: none;
  text-decoration: none;
}

/* Banner colors: hardcoded WCAG AA muted tones matching old site (not CSS variables). */
.breaking-banner--critical { background: #b91c1c; }
#breaking-banner.breaking-banner--critical .breaking-banner__label { color: #b91c1c; }

.breaking-banner--high { background: #b91c1c; }
#breaking-banner.breaking-banner--high .breaking-banner__label { color: #b91c1c; }

.breaking-banner--medium { background: #c2410c; }
#breaking-banner.breaking-banner--medium .breaking-banner__label { color: #c2410c; }

.breaking-banner--elevated { background: #b45309; }
#breaking-banner.breaking-banner--elevated .breaking-banner__label { color: #b45309; }

.breaking-banner--low { background: #15803d; }
#breaking-banner.breaking-banner--low .breaking-banner__label { color: #15803d; }

.breaking-banner--standard { background: #1d4ed8; }
#breaking-banner.breaking-banner--standard .breaking-banner__label { color: #1d4ed8; }

/* Breaking banner mobile */
@media (max-width: 768px) {
  .breaking-banner__inner {
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 0.75rem;
  }
  .breaking-banner__title {
    font-size: 0.8rem;
  }
  .breaking-banner__label {
    font-size: var(--text-xs);
    padding: 1px 5px;
  }
}

/* Regional Menu styles are now embedded in the partial (regional-menu.php) */

