﻿:root {
  --bg: #0b0f14;
  --surface: #111820;
  --surface-2: #161f29;
  --text: #e8eaed;
  --muted: #6b7280;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --good: #10b981;
  --warning: #f59e0b;
  --risk: #dc2626;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --shadow: 0 12px 30px rgba(1, 4, 9, 0.3);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #182434 0%, var(--bg) 46%), var(--bg);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.9rem;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.95);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: "Outfit", "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-logo {
  width: clamp(122px, 16vw, 170px);
  height: auto;
  border-radius: 0;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Inter, sans-serif;
  font-size: 0.92rem;
}

.primary-nav a {
  color: var(--text);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
}

.primary-nav a[aria-current="page"],
.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--accent-soft);
  text-decoration: none;
}

.hero {
  padding: 3.2rem 0 2rem;
}

.hero-home {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding: 4.2rem 0 3.3rem;
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(180deg, rgba(4, 8, 12, 0.76) 0%, rgba(8, 13, 19, 0.9) 100%),
    radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.32), rgba(37, 99, 235, 0) 52%),
    url("/images/middle-east-map.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 11, 0.55) 0%, rgba(2, 6, 11, 0.18) 55%, rgba(2, 6, 11, 0.45) 100%);
}

.hero-home-inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.hero-home .lead {
  max-width: 74ch;
  color: #dbe5f3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-home .meta-row {
  color: #c6d4e7;
}

.hero-home .breadcrumbs a {
  color: #d9e8ff;
}

.hero-home .breadcrumbs li::after {
  color: rgba(217, 232, 255, 0.72);
}

.hero-home .kicker {
  color: #93c5fd;
}

.hero-home + .surface {
  margin-top: 1.15rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--good);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: "Outfit", "Space Grotesk", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-top: 2.2rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.4rem;
}

h4 {
  font-size: 1.05rem;
  margin-top: 1rem;
}

p,
li,
td,
th,
figcaption,
label,
input,
button,
textarea,
summary {
  font-size: 1.02rem;
}

.muted {
  color: var(--muted);
}

.surface {
  background: linear-gradient(160deg, rgba(22, 31, 41, 0.75), rgba(17, 24, 32, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.breadcrumbs {
  font-family: Inter, sans-serif;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--muted);
}

.breadcrumbs li:last-child::after {
  content: "";
}

.lead {
  font-size: 1.15rem;
  color: #d8dce2;
  max-width: 78ch;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
}

.status-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.status-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  background: rgba(12, 18, 25, 0.75);
}

.status-item strong {
  display: block;
  font-family: Inter, sans-serif;
  margin-bottom: 0.35rem;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
}

.bar-green span { background: var(--good); }
.bar-yellow span { background: var(--warning); }
.bar-red span { background: var(--risk); }
.bar-blue span { background: var(--accent); }

.dashboard-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: #ccd3dd;
}

.card small {
  margin-top: 0.9rem;
  font-family: Inter, sans-serif;
  color: var(--accent);
  font-weight: 600;
}

.card-large {
  grid-column: span 12;
}

.card-medium {
  grid-column: span 12;
}

.card-small {
  grid-column: span 12;
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1.4rem 0 2rem;
}

.stat {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(14, 20, 28, 0.8);
}

.stat strong {
  display: block;
  font-family: "Outfit", sans-serif;
  color: var(--good);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
}

.stat span {
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 0.86rem;
}

.analysis-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.article-shell {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

.article-main {
  min-width: 0;
}

.toc {
  align-self: start;
}

.toc nav {
  position: sticky;
  top: 85px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li + li {
  margin-top: 0.35rem;
}

.toc a {
  display: inline-block;
  padding: 0.2rem 0;
  color: #c6d3e7;
  font-family: Inter, sans-serif;
  font-size: 0.92rem;
}

.toc a.active {
  color: var(--accent);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.2rem;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 0.6rem;
  vertical-align: top;
}

.data-table th {
  background: rgba(59, 130, 246, 0.14);
  font-family: Inter, sans-serif;
  text-align: left;
}

.spec-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

figure {
  margin: 1rem 0;
}

.feature-image {
  margin: 1.2rem 0 1.35rem;
}

.feature-image picture {
  display: block;
}

.feature-image img {
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 0.8rem 0.9rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  margin: 1.1rem 0;
}

.callout strong {
  color: #d7e5ff;
}

.callout-risk {
  border-left-color: var(--risk);
  background: rgba(220, 38, 38, 0.11);
}

.details-list details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0.7rem 0;
  padding: 0.6rem 0.75rem;
  background: rgba(17, 24, 32, 0.88);
}

.details-list summary {
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-weight: 600;
}

.engagement-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.engagement-tools button {
  border: 1px solid var(--border);
  background: rgba(17, 24, 32, 0.95);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-family: Inter, sans-serif;
  cursor: pointer;
}

.engagement-tools button:hover,
.engagement-tools button:focus-visible {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.16);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.newsletter {
  margin-top: 2rem;
}

.newsletter form {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}

input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(9, 14, 20, 0.85);
  color: var(--text);
}

button[type="submit"],
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-family: Inter, sans-serif;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover,
.btn:hover,
button[type="submit"]:focus-visible,
.btn:focus-visible {
  filter: brightness(1.1);
  text-decoration: none;
}

.footer {
  margin-top: 2.8rem;
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.8rem;
  color: #c3ccd8;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.footer-brand:hover,
.footer-brand:focus-visible {
  text-decoration: none;
}

.footer-logo {
  width: clamp(130px, 19vw, 170px);
  height: auto;
  border-radius: 0;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li + li {
  margin-top: 0.4rem;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-family: Inter, sans-serif;
  font-size: 0.87rem;
  color: var(--muted);
}

.timeline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.3rem;
}

.timeline-controls button {
  border: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.95);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-family: Inter, sans-serif;
  cursor: pointer;
}

.timeline-controls button.active,
.timeline-controls button:hover,
.timeline-controls button:focus-visible {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.timeline {
  position: relative;
  padding-left: 1.2rem;
  border-left: 2px solid rgba(59, 130, 246, 0.28);
}

.timeline-event {
  position: relative;
  margin: 0 0 1.2rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(16, 24, 33, 0.88);
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: -1.58rem;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-event[data-category="military"]::before { background: var(--risk); }
.timeline-event[data-category="nuclear"]::before { background: var(--warning); }
.timeline-event[data-category="diplomatic"]::before { background: var(--accent); }
.timeline-event[data-category="economic"]::before { background: var(--good); }

.timeline-event time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

.timeline-tag {
  display: inline-block;
  margin-left: 0.55rem;
  font-size: 0.74rem;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #dbe6fb;
  background: rgba(59, 130, 246, 0.2);
  padding: 0.16rem 0.35rem;
  border-radius: 5px;
}

.map-wrapper {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(8, 13, 19, 0.9);
}

.map-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (min-width: 760px) {
  .card-large {
    grid-column: span 8;
    min-height: 240px;
  }

  .card-medium {
    grid-column: span 4;
    min-height: 240px;
  }

  .card-small {
    grid-column: span 6;
  }

  .newsletter form {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 990px) {
  .article-shell {
    grid-template-columns: 1fr 290px;
  }
}

@media (max-width: 720px) {
  .hero-home {
    padding: 3.3rem 0 2.5rem;
  }

  .brand-text {
    display: none;
  }

  .primary-nav ul {
    gap: 0.45rem;
  }

  .primary-nav a {
    padding: 0.28rem 0.38rem;
    font-size: 0.82rem;
  }

  .meta-row {
    gap: 0.5rem;
  }
}

