﻿/* ============================================================
   NBC 7 SAN DIEGO — Design System
   Dark news site theme — placeholder branding for developer
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700;900&family=Playfair+Display:wght@400;600;700&display=swap');

/* --- Variables --- */
:root {
  --bg:           #0e0e0e;
  --bg-card:      #1a1a1a;
  --bg-card-hover:#222222;
  --bg-section:   #141414;
  --bg-nav:       #0a0a0a;
  --bg-sidebar:   #161616;
  --nbc-blue:     #0076CE;
  --nbc-blue-lt:  #1a8fe0;
  --nbc-red:      #e31837;
  --nbc-yellow:   #f4c430;
  --text:         #f0f0f0;
  --text-muted:   #9a9a9a;
  --text-dim:     #666;
  --border:       #2a2a2a;
  --border-lt:    #333;
  --tag-local:    #0076CE;
  --tag-crime:    #c0392b;
  --tag-weather:  #27ae60;
  --tag-sports:   #8e44ad;
  --tag-traffic:  #e67e22;
  --tag-politics: #2c3e50;

  --font-ui:      'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-article: 'Playfair Display', Georgia, serif;

  --max-w:  1280px;
  --gutter: 1.25rem;
  --nav-h:  52px;
  --util-h: 36px;
  --t:      all 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }

/* --- Utility --- */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   UTILITY BAR (very top)
   ============================================================ */
.util-bar {
  background: #050505;
  border-bottom: 1px solid var(--border);
  height: var(--util-h);
  display: flex;
  align-items: center;
}
.util-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.util-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.util-live-dot {
  width: 7px; height: 7px;
  background: var(--nbc-red);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.util-live a { color: var(--nbc-blue); margin-left: 0.4rem; }
.util-live a:hover { color: var(--nbc-blue-lt); }
.util-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.util-right a {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--t);
}
.util-right a:hover { color: var(--text); }
.util-right .util-watch {
  background: var(--nbc-blue);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--t);
}
.util-right .util-watch:hover { background: var(--nbc-blue-lt); }

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(135deg, #002060 0%, #003a9e 55%, #0058c8 100%);
  border-bottom: 3px solid var(--nbc-blue);
  height: var(--nav-h);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.main-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}
.nav-logo-peacock,
.nav-logo-text,
.nav-logo-nbc,
.nav-logo-city,
.nav-logo-sub { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
  overflow: hidden;
}
.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--t);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; border-bottom-color: rgba(255,255,255,.7); }

.nav-watch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--nbc-blue);
  color: #fff !important;
  padding: 0.4rem 1rem !important;
  border-radius: 3px;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  height: auto !important;
  border-bottom: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-watch:hover { background: var(--nbc-blue-lt) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--util-h) + var(--nav-h));
  left: 0; right: 0;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  z-index: 899;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.85rem var(--gutter); font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border); letter-spacing: 0.04em; transition: var(--t); }
.mobile-nav a:hover { color: #fff; padding-left: calc(var(--gutter) + 6px); }

/* ============================================================
   TRENDING BAR
   ============================================================ */
.trending-bar {
  background: #111;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  overflow: hidden;
}
.trending-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.trending-inner::-webkit-scrollbar { display: none; }
.trending-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nbc-blue);
  flex-shrink: 0;
}
.trending-pills { display: flex; gap: 0.5rem; flex-wrap: nowrap; }
.trending-pill {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-lt);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: var(--t);
}
.trending-pill:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* ============================================================
   BREAKING NEWS BANNER
   ============================================================ */
.breaking-banner {
  background: var(--nbc-red);
  padding: 0.5rem 0;
}
.breaking-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.breaking-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.breaking-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breaking-text a { color: #fff; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--nbc-blue);
}
.section-hdr h2 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.section-hdr-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--nbc-blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-hdr-link:hover { color: var(--nbc-blue-lt); }

/* ============================================================
   CATEGORY TAGS
   ============================================================ */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.4rem;
}
.tag-local    { background: var(--tag-local);   color: #fff; }
.tag-crime    { background: var(--tag-crime);   color: #fff; }
.tag-weather  { background: var(--tag-weather); color: #fff; }
.tag-sports   { background: var(--tag-sports);  color: #fff; }
.tag-traffic  { background: var(--tag-traffic); color: #fff; }
.tag-politics { background: var(--tag-politics);color: #fff; }
.tag-community{ background: #2980b9; color: #fff; }
.tag-breaking { background: var(--nbc-red); color: #fff; }
.tag-fire     { background: #d35400; color: #fff; }
.tag-national { background: #34495e; color: #fff; }

/* ============================================================
   ARTICLE CARD — STANDARD
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--border-lt); }
.card:hover .card-img img { transform: scale(1.04); }

.card-img {
  position: relative;
  overflow: hidden;
  background: #111;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-img-ratio-16-9  { aspect-ratio: 16/9; }
.card-img-ratio-4-3   { aspect-ratio: 4/3; }
.card-img-ratio-3-2   { aspect-ratio: 3/2; }

.card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.card-body h3 a:hover { color: var(--nbc-blue-lt); }
.card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: auto;
}
.card-meta .location { color: var(--nbc-blue); font-weight: 700; }
.card-meta .sep { color: var(--border-lt); }

/* ============================================================
   CARD — HERO (large featured)
   ============================================================ */
.card-hero {
  position: relative;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.card-hero:hover .card-hero-img img { transform: scale(1.03); }
.card-hero-img { position: relative; overflow: hidden; }
.card-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-hero-img-ratio { aspect-ratio: 16/9; }
.card-hero-img-ratio-tall { aspect-ratio: 3/4; }

.card-hero-body {
  padding: 1.25rem;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.95));
}
.card-hero-body.overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.95) 100%);
}
.card-hero-body h2 {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.5rem;
}
.card-hero-body h2 a:hover { color: #ddd; }
.card-hero-body p { font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-bottom: 0.6rem; }
.card-hero-body .card-meta { color: rgba(255,255,255,0.5); }
.card-hero-body .card-meta .location { color: var(--nbc-blue-lt); }

/* ============================================================
   CARD — COMPACT (sidebar/most read)
   ============================================================ */
.card-compact {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--t);
}
.card-compact:last-child { border-bottom: none; }
.card-compact:hover { background: rgba(255,255,255,0.02); }
.card-compact-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--border-lt);
  line-height: 1;
  width: 28px;
  flex-shrink: 0;
  padding-top: 2px;
}
.card-compact-img {
  width: 90px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #111;
}
.card-compact-img img { width: 100%; height: 100%; object-fit: cover; }
.card-compact-body { flex: 1; min-width: 0; }
.card-compact-body h4 { font-size: 0.88rem; font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 0.3rem; }
.card-compact-body h4 a:hover { color: var(--nbc-blue-lt); }
.card-compact-body .card-meta { font-size: 0.68rem; }

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.hero-section { padding: 1.25rem 0 0; background: var(--bg-section); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.hero-grid .card-hero { border-radius: 0; border: none; }

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: none;
  overflow: hidden;
}
.secondary-grid .card { border-radius: 0; border: none; }
.secondary-grid .card-img { aspect-ratio: 16/9; }

/* ============================================================
   MAIN LAYOUT (2-col: content + sidebar)
   ============================================================ */
.page-body { padding: 2rem 0; }
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.content-area {}
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* ============================================================
   NEWS GRID LAYOUTS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 1.25rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }

.card-img.h-180 { height: 180px; }
.card-img.h-200 { height: 200px; }
.card-img.h-220 { height: 220px; }
.card-img.h-260 { height: 260px; }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section { padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.content-section:last-child { border-bottom: none; }
.content-section.dark-bg { background: var(--bg-section); }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.widget-hdr {
  background: var(--nbc-blue);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.widget-hdr h3 {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.widget-hdr a { font-size: 0.68rem; color: rgba(255,255,255,0.75); font-weight: 600; }
.widget-hdr a:hover { color: #fff; }
.widget-body { padding: 1rem; }

/* Weather Widget */
.weather-widget {}
.weather-current {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.weather-temp {
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  line-height: 1;
}
.weather-temp span { font-size: 1.2rem; color: var(--text-muted); }
.weather-info { flex: 1; }
.weather-condition { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.weather-location { font-size: 0.75rem; color: var(--text-muted); }
.weather-icon { font-size: 2rem; }
.weather-forecast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
}
.forecast-day { text-align: center; }
.forecast-day .day  { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.2rem; }
.forecast-day .icon { font-size: 1.2rem; margin: 0.2rem 0; }
.forecast-day .hi   { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.forecast-day .lo   { font-size: 0.75rem; color: var(--text-muted); }

/* Border Wait Times Widget */
.border-widget {}
.border-crossing { margin-bottom: 0.75rem; }
.border-crossing:last-child { margin-bottom: 0; }
.border-crossing-name { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 0.4rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.border-row { display: flex; justify-content: space-between; align-items: center; padding: 0.2rem 0; }
.border-row .lane { font-size: 0.75rem; color: var(--text-muted); }
.border-row .wait { font-size: 0.75rem; font-weight: 700; }
.wait.low    { color: #27ae60; }
.wait.medium { color: var(--nbc-yellow); }
.wait.high   { color: var(--nbc-red); }

/* ============================================================
   SECTION PAGE HERO
   ============================================================ */
.section-hero {
  background: linear-gradient(135deg, var(--nbc-blue) 0%, #004d8a 100%);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.section-hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section-hero h1 {
  font-family: var(--font-ui);
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}
.section-hero p { font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-top: 0.3rem; }
.section-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.section-hero-breadcrumb a { color: rgba(255,255,255,0.75); }
.section-hero-breadcrumb a:hover { color: #fff; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page { padding: 2rem 0; }
.article-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.article-header { margin-bottom: 1.5rem; }
.article-header .tag { margin-bottom: 0.75rem; }
.article-title {
  font-family: var(--font-article);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}
.article-deck {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-left: 3px solid var(--nbc-blue);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.article-byline-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--nbc-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.article-byline-info { flex: 1; }
.article-byline-author { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.article-byline-date   { font-size: 0.75rem; color: var(--text-muted); }
.article-byline-share  { display: flex; gap: 0.5rem; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-lt);
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--t);
}
.share-btn:hover { background: var(--bg-card-hover); color: var(--text); }

.article-lead-img { margin-bottom: 1.5rem; border-radius: 4px; overflow: hidden; }
.article-lead-img img { width: 100%; }
.article-lead-caption { font-size: 0.72rem; color: var(--text-dim); padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

.article-body { max-width: 720px; }
.article-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #d8d8d8;
  margin-bottom: 1.25rem;
  font-family: var(--font-ui);
}
.article-body h3 {
  font-family: var(--font-article);
  font-size: 1.3rem;
  color: #fff;
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
}
.article-body .pullquote {
  border-left: 4px solid var(--nbc-blue);
  margin: 1.75rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(0,118,206,0.06);
  border-radius: 0 4px 4px 0;
}
.article-body .pullquote p {
  font-family: var(--font-article);
  font-size: 1.15rem;
  font-style: italic;
  color: #e0e0e0;
  margin: 0;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.article-tag-link { font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.75rem; background: var(--bg-card); border: 1px solid var(--border-lt); border-radius: 50px; color: var(--text-muted); transition: var(--t); }
.article-tag-link:hover { color: var(--nbc-blue-lt); border-color: var(--nbc-blue); }

/* ============================================================
   WEATHER PAGE
   ============================================================ */
.weather-hero {
  background: linear-gradient(135deg, #0a2240 0%, #0076CE 100%);
  padding: 2.5rem 0;
}
.weather-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.weather-hero-main { display: flex; align-items: center; gap: 1.5rem; }
.weather-hero-temp { font-size: 5rem; font-weight: 200; color: #fff; line-height: 1; }
.weather-hero-temp span { font-size: 2rem; }
.weather-hero-detail h2 { font-size: 1.5rem; color: #fff; font-weight: 700; }
.weather-hero-detail p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.weather-hero-icon { font-size: 5rem; text-align: center; }
.weather-stats { display: flex; gap: 2rem; margin-top: 1rem; }
.weather-stat .label { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.weather-stat .value { font-size: 1.1rem; font-weight: 700; color: #fff; }
.forecast-extended { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; background: rgba(0,0,0,0.2); padding: 1rem; border-radius: 4px; }
.forecast-card { text-align: center; padding: 0.5rem; border-radius: 3px; }
.forecast-card .day { font-size: 0.65rem; font-weight: 900; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.35rem; }
.forecast-card .icon { font-size: 1.5rem; margin: 0.3rem 0; }
.forecast-card .hi  { font-size: 1rem; font-weight: 700; color: #fff; }
.forecast-card .lo  { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand h3 {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); max-width: 260px; line-height: 1.6; margin-top: 0.75rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  width: 34px; height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--t);
}
.footer-social a:hover { background: var(--nbc-blue); border-color: var(--nbc-blue); }
.footer-col h4 { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.8rem; color: var(--text-dim); transition: var(--t); }
.footer-col ul a:hover { color: var(--text); padding-left: 3px; }
.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.72rem; color: var(--text-dim); }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { font-size: 0.72rem; color: var(--text-dim); transition: var(--t); }
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 2rem 0; }
.page-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 3px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); transition: var(--t); }
.page-btn:hover { background: var(--bg-card-hover); color: var(--text); }
.page-btn.active { background: var(--nbc-blue); border-color: var(--nbc-blue); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .weather-hero-grid { grid-template-columns: 1fr; }
  .forecast-extended { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: 1rem; }
  .util-bar { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-watch { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .secondary-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-hero-body.overlay h2 { font-size: 1.1rem; }
  .forecast-extended { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .secondary-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .trending-pills { gap: 0.4rem; }
  .article-title { font-size: 1.5rem; }
}
