/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: #f0ede6;
  color: #1a1a1a;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ===== MASTHEAD ===== */
.masthead { background: #1a1a1a; color: #fff; padding: 0 24px; }

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #333;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #777;
}
.top-bar b { color: #c0392b; }

.masthead-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
}

.site-name {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1;
}
.site-name span { color: #c0392b; }

.tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
}

.live-badge {
  background: #c0392b;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 7px 14px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ===== NAV ===== */
.nav { background: #111; padding: 0 24px; border-bottom: 2px solid #c0392b; }
.nav-inner { display: flex; }
.nav a {
  color: #888;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 11px 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-right: 1px solid #222;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.nav a:hover, .nav a.active {
  color: #fff;
  background: #c0392b;
}

/* ===== MAIN LAYOUT ===== */
.main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ===== BREAKING TICKER ===== */
.breaking {
  background: #c0392b;
  color: #fff;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  overflow: hidden;
}
.breaking b {
  letter-spacing: 2px;
  border-right: 1px solid rgba(255,255,255,0.35);
  padding-right: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker {
  white-space: nowrap;
  animation: scroll-ticker 40s linear infinite;
}
@keyframes scroll-ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== CONFLICT TRACKER ===== */
.conflict-strip {
  background: #fff;
  border: 0.5px solid #ddd;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.conflict-strip h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.conflicts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.conflict-item { text-align: center; }
.conflict-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin: 0 auto 5px;
  animation: pulse 2s ease-in-out infinite;
}
.conflict-dot.high { background: #c0392b; }
.conflict-dot.med  { background: #e67e22; }
.conflict-dot.low  { background: #f1c40f; }
.conflict-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: #555;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.conflict-status {
  font-size: 10px;
  color: #aaa;
  margin-top: 2px;
  font-family: 'IBM Plex Mono', monospace;
}

/* ===== TOP GRID ===== */
.top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ===== HERO ===== */
.hero { background: #fff; border: 0.5px solid #ddd; overflow: hidden; }

.hero-img {
  width: 100%;
  height: 240px;
  background: linear-gradient(160deg, #1a0808 0%, #2e1111 45%, #161629 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(192,57,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.region-tag {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.hero-body { padding: 18px 20px; }
.hero-body p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 12px;
}

.meta {
  display: flex;
  gap: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #aaa;
  margin-bottom: 12px;
}

.read-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #c0392b;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}
.read-more:hover { opacity: 0.7; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 14px; }

.story-card {
  background: #fff;
  border: 0.5px solid #ddd;
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.story-card:hover { border-color: #c0392b; }
.story-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin: 6px 0 6px;
}
.story-card p { font-size: 12px; color: #555; line-height: 1.55; }
.story-card .meta { margin-top: 8px; margin-bottom: 0; }
.story-card a.read-more { font-size: 10px; display: inline-block; margin-top: 6px; }

/* ===== BOTTOM GRID ===== */
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.region-section { background: #fff; border: 0.5px solid #ddd; padding: 16px; }
.region-section h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  padding-bottom: 8px;
  border-bottom: 2px solid #c0392b;
  margin-bottom: 12px;
}

.mini-story {
  padding: 10px 0;
  border-bottom: 0.5px solid #eee;
}
.mini-story:last-child { border-bottom: none; }
.mini-story h5 {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 4px;
}
.mini-story h5 a:hover { color: #c0392b; }
.mini-story .meta { margin: 0; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid #ddd;
  padding-top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #999;
  line-height: 1.7;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .top-grid { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .site-name { font-size: 28px; }
  .nav-inner { flex-wrap: wrap; }
  .conflicts { grid-template-columns: repeat(3, 1fr); }
}
