:root {
  --bg: #0b0d12;
  --panel: #131821;
  --panel-2: #19202b;
  --border: #263040;
  --muted: #9aa5b8;
  --text: #f4f6fb;
  --gold: #d4af37;
  --red: #df5055;
  --blue: #78a6ff;
  --green: #86d48c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #080a0f 0, var(--bg) 430px);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: inherit; }
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 15, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.site-header nav a, .button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  background: #0f141c;
  color: var(--text);
  text-decoration: none;
}
.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 3rem;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.crumbs a { color: var(--gold); text-decoration: none; }
.hero, .atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 1.5rem;
  align-items: start;
  border-bottom: 2px solid var(--border);
  padding: 1rem 0 1.75rem;
}
.atlas-hero {
  display: block;
  max-width: 900px;
}
.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
}
.dek {
  color: #cbd3df;
  max-width: 780px;
  font-family: var(--serif);
  font-size: 1.12rem;
}
figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
figcaption {
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--serif);
}
.tags, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  font-size: 0.75rem;
  font-weight: 800;
}
.button.primary {
  background: var(--gold);
  color: #080a0f;
  border-color: var(--gold);
  font-weight: 900;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.5rem;
}
.hero, .related-links {
  grid-column: 1 / -1;
}
.article-body {
  min-width: 0;
  color: #d0d7e3;
  font-family: var(--serif);
  font-size: 1.08rem;
}
.article-body p {
  margin: 0 0 1.15rem;
}
.article-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #080a0f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: #e8edf6;
}
.fact-panel {
  align-self: start;
  position: sticky;
  top: 86px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
}
.fact-panel h2, .related-links h2, .atlas-group h2, .case-footer h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  color: var(--gold);
}
.fact-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.fact-panel li {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.fact-panel span, .fact-panel strong {
  display: block;
}
.fact-panel span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.fact-panel strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.9rem;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--panel);
  font-family: var(--sans);
  font-size: 0.85rem;
}
th, td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--panel-2);
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.72rem;
}
.related-links {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.related-links div, .atlas-group > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.related-links a, .atlas-group a {
  display: grid;
  gap: 0.35rem;
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.85rem;
  text-decoration: none;
}
.related-links a:hover, .atlas-group a:hover {
  border-color: var(--gold);
}
.atlas-group {
  margin-top: 2rem;
}
.atlas-group h2 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.atlas-group small {
  color: var(--muted);
  line-height: 1.35;
}
.case-footer {
  border-top: 2px solid var(--border);
  background: #080a0f;
  padding: 2rem clamp(1rem, 3vw, 2rem) 3rem;
}
.case-footer p {
  max-width: 980px;
  margin: 0 auto 0.75rem;
  color: #b9c2d0;
  font-size: 0.9rem;
}
.case-footer h2 {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 860px) {
  .site-header, .hero {
    grid-template-columns: 1fr;
  }
  .site-header {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }
  .site-header nav {
    justify-content: flex-start;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .fact-panel {
    position: static;
  }
  .related-links div, .atlas-group > div {
    grid-template-columns: 1fr;
  }
}
