/* ============================================================
   PORT ST. LUCIE WEATHER CENTER — Master Stylesheet
   Drudge-inspired editorial impact + coastal sophistication
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Barlow:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --navy-900: #050D18;
  --navy-800: #0A1628;
  --navy-700: #0F2440;
  --navy-600: #153358;
  --blue-700: #145A8A;
  --blue-600: #1565A0;
  --blue-500: #1B6CA8;
  --blue-400: #2E86C1;
  --blue-300: #5DADE2;
  --blue-200: #AED6F1;
  --blue-100: #D6EAF8;
  --blue-50: #EBF5FB;
  --teal-600: #1F8C7F;
  --teal-500: #2A9D8F;
  --teal-400: #3DB8A5;
  --teal-300: #63CCBC;
  --teal-200: #A3E4D7;
  --teal-100: #D1F2EB;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #6B7280;
  --gray-500: #9CA3AF;
  --gray-400: #D1D5DB;
  --gray-300: #E5E7EB;
  --gray-200: #F3F4F6;
  --gray-100: #F9FAFB;
  --white: #FFFFFF;
  --alert-red: #DC2626;
  --alert-red-dark: #991B1B;
  --alert-orange: #EA580C;
  --alert-yellow: #CA8A04;
  --alert-green: #16A34A;
  --gold: #D4A012;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --max-width: 1400px;
  --nav-height: 56px;
  --ticker-height: 38px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-500); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
iframe { border: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; color: var(--gray-900); }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-upper { text-transform: uppercase; }
.font-condensed { font-family: var(--font-condensed); }

/* ============================================================
   LIVE TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--navy-900);
  height: var(--ticker-height);
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid var(--blue-600);
  z-index: 1000;
}
.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--alert-red);
  color: var(--white);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
}
.ticker-label::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  border-style: solid;
  border-width: 19px 0 19px 12px;
  border-color: transparent transparent transparent var(--alert-red);
}
.ticker-label .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 130px;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 28px;
  color: var(--gray-300);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
}
.ticker-item strong {
  color: var(--white);
  font-weight: 600;
  margin-right: 6px;
}
.ticker-item .value {
  color: var(--teal-400);
  font-weight: 600;
}
.ticker-divider {
  width: 4px;
  height: 4px;
  background: var(--blue-500);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--navy-800);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-brand-sub {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 14px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--teal-500);
}
.nav-links a.nav-command {
  color: var(--teal-400);
  font-weight: 700;
  gap: 6px;
}
.nav-links a.nav-command .live-dot {
  width: 6px;
  height: 6px;
  background: var(--alert-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.nav-links a.nav-command:hover {
  color: var(--teal-300);
}

/* Mobile Command Center button — always visible on mobile */
.nav-command-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: var(--white) !important;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(42, 157, 143, 0.3);
  animation: cmd-glow 3s ease-in-out infinite;
}
.nav-command-mobile .cmd-dot {
  width: 5px;
  height: 5px;
  background: var(--alert-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes cmd-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(42, 157, 143, 0.25); }
  50% { box-shadow: 0 0 16px rgba(42, 157, 143, 0.45); }
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
@media (max-width: 900px) {
  .nav-command-mobile { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-800);
    flex-direction: column;
    padding: 80px 0 40px;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    width: 100%;
    padding: 0 30px;
    height: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 800;
  }
  .nav-overlay.open { display: block; }
}

/* ============================================================
   HERO / RADAR SECTION
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 100%);
  padding: 0;
  position: relative;
}
.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 480px;
}
.hero-radar {
  position: relative;
  min-height: 480px;
}
.hero-radar iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-radar-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 11px;
  color: var(--teal-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(42, 157, 143, 0.3);
}
.hero-radar-label .live-indicator {
  width: 6px;
  height: 6px;
  background: var(--alert-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-sidebar {
  background: var(--navy-900);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.hero-conditions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-location {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-update-time {
  font-size: 11px;
  color: var(--gray-600);
}
.hero-temp-display {
  text-align: center;
  padding: 20px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.hero-temp-value {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 72px;
  color: var(--white);
  line-height: 1;
  letter-spacing: -2px;
}
.hero-temp-value sup {
  font-size: 28px;
  font-weight: 400;
  color: var(--gray-500);
  vertical-align: super;
  letter-spacing: 0;
}
.hero-temp-desc {
  font-size: 16px;
  color: var(--gray-400);
  margin-top: 4px;
  font-weight: 400;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-label {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.hero-stat-value {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}
.hero-stat-value small {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-500);
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-radar { min-height: 350px; }
  .hero-sidebar { padding: 24px 20px; }
  .hero-temp-value { font-size: 56px; }
  .hero-stats { gap: 12px; }
}

/* ============================================================
   ALERTS BANNER
   ============================================================ */
.alerts-banner {
  background: linear-gradient(90deg, var(--alert-red-dark), var(--alert-red));
  padding: 0;
  overflow: hidden;
  display: none;
}
.alerts-banner.has-alerts { display: block; }
.alerts-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alerts-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.alerts-banner-text {
  color: var(--white);
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.alerts-banner-text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   SECTION LAYOUTS
   ============================================================ */
.section {
  padding: 48px 0;
}
.section--dark {
  background: var(--navy-800);
  color: var(--white);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--alt { background: var(--white); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h2 { color: var(--white); }

.section-header {
  margin-bottom: 32px;
}
.section-label {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section--dark .section-label { color: var(--teal-400); }
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.15;
}
.section--dark .section-title { color: var(--white); }
.section-title--impact {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
  margin-top: 12px;
  border-radius: 2px;
}
.section-desc {
  font-size: 17px;
  color: var(--gray-600);
  margin-top: 12px;
  max-width: 680px;
  line-height: 1.7;
}
.section--dark .section-desc { color: var(--gray-400); }

/* ============================================================
   HEADLINES GRID (Drudge-inspired)
   ============================================================ */
.headlines-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}
.headlines-main {}
.headline-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-300);
}
.headline-item:first-child { padding-top: 0; }
.section--dark .headline-item { border-bottom-color: rgba(255,255,255,0.08); }
.headline-tag {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.headline-tag--hurricane { color: var(--alert-orange); }
.headline-tag--climate { color: var(--blue-400); }
.headline-tag--marine { color: var(--teal-400); }
.headline-tag--alert { color: var(--alert-red); }
.headline-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.headline-item h3 a {
  color: var(--gray-900);
  transition: color var(--transition);
}
.headline-item h3 a:hover { color: var(--blue-500); }
.section--dark .headline-item h3 a { color: var(--white); }
.section--dark .headline-item h3 a:hover { color: var(--teal-400); }
.headline-item p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}
.section--dark .headline-item p { color: var(--gray-500); }

/* Featured headline */
.headline-item--featured h3 {
  font-size: 28px;
  font-weight: 900;
}
.headline-item--featured p {
  font-size: 15px;
}

/* Sidebar quicklinks */
.headlines-sidebar {}
.quicklinks-box {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.section--dark .quicklinks-box {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.quicklinks-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  background: var(--navy-700);
  padding: 10px 16px;
}
.quicklinks-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition), color var(--transition);
}
.quicklinks-list a:last-child { border-bottom: none; }
.quicklinks-list a:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}
.section--dark .quicklinks-list a {
  color: var(--gray-300);
  border-bottom-color: rgba(255,255,255,0.06);
}
.section--dark .quicklinks-list a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--teal-400);
}
.quicklinks-list .ql-arrow {
  margin-left: auto;
  color: var(--gray-500);
  font-size: 12px;
}

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

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.section--dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-200);
}
.card-body {
  padding: 20px;
}
.card-tag {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.card-tag--hurricane { color: var(--alert-orange); }
.card-tag--climate { color: var(--blue-500); }
.card-tag--marine { color: var(--teal-500); }
.card-tag--alert { color: var(--alert-red); }
.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--blue-500); }
.section--dark .card-title { color: var(--white); }
.card-excerpt {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 12px;
}
.card-meta {
  font-family: var(--font-condensed);
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   LIVE MAP EMBED CONTAINERS
   ============================================================ */
.map-embed {
  position: relative;
  background: var(--navy-900);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-embed iframe {
  width: 100%;
  display: block;
}
.map-embed-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 11px;
  color: var(--teal-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(42, 157, 143, 0.25);
}
.map-embed-label .live-dot {
  width: 5px;
  height: 5px;
  background: var(--alert-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Maps grid for command center */
.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .maps-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   COMMAND CENTER
   ============================================================ */
.command-hero {
  background: var(--navy-900);
  padding: 32px 0 0;
  border-bottom: 2px solid var(--blue-600);
}
.command-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
}
.command-title {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 28px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.command-title .status-badge {
  background: var(--alert-green);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
.command-timestamp {
  font-family: var(--font-condensed);
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.5px;
}
.command-stats-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.command-stat {
  flex: 1;
  min-width: 140px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.command-stat:last-child { border-right: none; }
.command-stat-label {
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.command-stat-value {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}
.command-stat-value small {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-500);
}
.command-section {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.command-section:last-child { border-bottom: none; }
.command-section-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  color: var(--teal-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.command-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--teal-500);
  border-radius: 2px;
}

/* Data panels */
.data-panels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.data-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 20px;
}
.data-panel-title {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.data-panel-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.data-panel-value small {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
}
.data-panel-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
}

/* ============================================================
   HUB PAGES
   ============================================================ */
.hub-hero {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(27, 108, 168, 0.15) 0%, transparent 60%);
}
.hub-hero .container { position: relative; z-index: 1; }
.hub-breadcrumb {
  font-family: var(--font-condensed);
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hub-breadcrumb a { color: var(--gray-500); }
.hub-breadcrumb a:hover { color: var(--teal-400); }
.hub-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}
.hub-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  max-width: 640px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .hub-hero { padding: 36px 0 32px; }
  .hub-title { font-size: 30px; }
}

/* ============================================================
   ARTICLE PAGES
   ============================================================ */
.article-hero {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  padding: 48px 0 40px;
}
.article-meta {
  font-family: var(--font-condensed);
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.article-meta-tag {
  background: rgba(42, 157, 143, 0.15);
  color: var(--teal-400);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.article-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  max-width: 800px;
}
.article-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  margin-top: 16px;
  max-width: 680px;
  line-height: 1.6;
}
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-900);
}
.article-content h2:first-of-type { border-top: none; padding-top: 0; }
.article-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.article-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.article-content a {
  color: var(--blue-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover { color: var(--teal-500); }
.article-content blockquote {
  border-left: 3px solid var(--teal-500);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--blue-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--gray-700);
}
.article-content figure {
  margin: 32px 0;
}
.article-content figure img {
  width: 100%;
  border-radius: var(--radius-md);
}
.article-content figcaption {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 8px;
  font-style: italic;
}
@media (max-width: 768px) {
  .article-title { font-size: 28px; }
  .article-content { padding: 32px 20px 48px; }
  .article-content h2 { font-size: 24px; }
  .article-content p { font-size: 16px; }
}

/* Definition Box / FAQ */
.definition-box {
  background: linear-gradient(135deg, var(--blue-50), var(--teal-100));
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0;
}
.definition-box-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue-600);
  margin-bottom: 8px;
}
.definition-box p {
  font-size: 15px !important;
  color: var(--gray-700) !important;
  margin-bottom: 0 !important;
}

.faq-section { margin: 40px 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.faq-question {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  padding-right: 40px;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}
.contact-form {}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.1);
}
.form-textarea {
  min-height: 160px;
  resize: vertical;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27, 108, 168, 0.3);
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
  color: var(--gray-700);
}
.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
  border-top: 2px solid var(--blue-600);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 320px;
}
.footer-heading {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: var(--gray-600);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 12px;
  color: var(--gray-600);
}
.footer-legal a:hover { color: var(--gray-400); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   COOL ARTICLES
   ============================================================ */
.cool-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .cool-articles-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS & EFFECTS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Data refresh indicator */
.refresh-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-condensed);
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.5px;
}
.refresh-indicator .dot {
  width: 6px;
  height: 6px;
  background: var(--alert-green);
  border-radius: 50%;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   COMMAND CENTER — DASHBOARD LAYOUT
   ============================================================ */

/* Main display — hero-sized radar */
.cmd-main-display {
  margin-bottom: 24px;
}
.cmd-main-display .map-embed {
  border: 1px solid rgba(42, 157, 143, 0.2);
  box-shadow: 0 0 40px rgba(42, 157, 143, 0.08);
}
.cmd-main-display .map-embed-label {
  font-size: 13px;
  padding: 7px 16px;
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid rgba(42, 157, 143, 0.35);
}

/* Mixed row: map + data side by side */
.cmd-mixed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.cmd-mixed-row--wide-left {
  grid-template-columns: 1.4fr 1fr;
}
.cmd-mixed-row--wide-right {
  grid-template-columns: 1fr 1.4fr;
}
@media (max-width: 768px) {
  .cmd-mixed-row,
  .cmd-mixed-row--wide-left,
  .cmd-mixed-row--wide-right {
    grid-template-columns: 1fr;
  }
}

/* Data column for placing panels next to a map */
.cmd-data-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Wire feed — Reuters tickertape */
.cmd-wire-feed {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
}
.cmd-wire-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cmd-wire-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 11px;
  color: var(--teal-400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmd-wire-title .wire-dot {
  width: 5px;
  height: 5px;
  background: var(--alert-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.cmd-wire-source {
  font-family: var(--font-condensed);
  font-size: 10px;
  color: var(--gray-600);
  letter-spacing: 0.5px;
}
.cmd-wire-list {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-600) transparent;
}
.cmd-wire-list::-webkit-scrollbar { width: 4px; }
.cmd-wire-list::-webkit-scrollbar-track { background: transparent; }
.cmd-wire-list::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 2px; }
.cmd-wire-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
}
.cmd-wire-item:hover {
  background: rgba(255,255,255,0.03);
}
.cmd-wire-item:last-child { border-bottom: none; }
.cmd-wire-time {
  font-family: var(--font-condensed);
  font-size: 11px;
  color: var(--gray-600);
  white-space: nowrap;
  min-width: 52px;
  padding-top: 2px;
  letter-spacing: 0.3px;
}
.cmd-wire-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-300);
  line-height: 1.45;
}
.cmd-wire-text a {
  color: var(--gray-300);
  text-decoration: none;
}
.cmd-wire-text a:hover { color: var(--teal-400); }
.cmd-wire-tag {
  display: inline-block;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1px 6px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.cmd-wire-tag--alert { background: var(--alert-red); color: var(--white); }
.cmd-wire-tag--forecast { background: var(--blue-600); color: var(--white); }
.cmd-wire-tag--marine { background: var(--teal-600); color: var(--white); }
.cmd-wire-tag--outlook { background: var(--navy-600); color: var(--gray-300); border: 1px solid rgba(255,255,255,0.1); }

/* Full-width standalone map */
.cmd-full-map {
  margin-bottom: 24px;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .ticker-wrap, .site-nav, .site-footer, .map-embed, iframe { display: none !important; }
  body { background: white; color: black; }
  .article-content { max-width: 100%; padding: 0; }
}
