/* GOVERNING 2071 — standalone build. Tactical Industrial Minimalism. */
:root {
  --bg-0: #070707; --bg-1: #0e0e0e; --bg-2: #141414; --bg-3: #1b1b1b;
  --line: #1f1f1f; --line-strong: #2b2b2b;
  --ink-0: #ffffff; --ink-1: #a3a3a3; --ink-2: #6b6b6b;
  --accent: #ff4500; --accent-dim: rgba(255,69,0,.12);
  --accent-green: #6f8a72; --accent-cyan: #6b7482;
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--ink-0);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { min-height: 100vh; }
#app > .col { height: calc(100vh - 34px) !important; height: calc(100dvh - 34px) !important; min-height: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button, input, select, textarea, .panel, .panel-2, .badge, table, th, td { border-radius: 0; }
.boot { padding: 40px; color: var(--ink-2); font-family: var(--font-mono); }

/* sharp corners globally for chrome */
.mono { font-family: var(--font-mono); }
.tac-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.tac-h1 { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.0; margin: 0; }
.tac-h2 { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; line-height: 1.08; margin: 0; }
.tac-h3 { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.meta-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.hairline { border-color: var(--line); }
.panel { background: var(--bg-1); border: 1px solid var(--line); }
.panel-2 { background: var(--bg-2); border: 1px solid var(--line); }
.tac-accent-l { border-left: 2px solid var(--accent); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px;
  border: 1px solid var(--line-strong); color: var(--ink-1); white-space: nowrap; background: var(--bg-1); }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
.badge.confirmed_fact .badge-dot { background: var(--accent); }
.badge.official_position .badge-dot { background: var(--ink-0); }
.badge.reported_claim .badge-dot { background: var(--accent); opacity: .55; }
.badge.assessment .badge-dot { background: var(--ink-1); }
.badge.hypothesis .badge-dot { background: transparent; border: 1px solid var(--ink-2); }
.badge.scenario .badge-dot { background: transparent; border: 1px dashed var(--ink-1); }

/* links / nav */
.navlink { color: var(--ink-2); }
.navlink:hover { color: var(--ink-0); }
.link-hover:hover { color: var(--ink-0) !important; }

/* buttons */
.btn { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-1); }
.btn:hover { border-color: var(--line-strong); color: var(--ink-0); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-primary { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.btn-cta { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 14px 28px; font-size: 13px; }

/* layout helpers */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.center { align-items: center; }
.between { justify-content: space-between; }
.flex1 { flex: 1; min-width: 0; }
.container { max-width: 1152px; margin: 0 auto; }
.scroll-y { overflow-y: auto; }
.hidden { display: none; }
.grid-px { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-px > * { background: var(--bg-1); }

/* app shell */
.app-header { display: flex; align-items: center; justify-content: space-between;
  height: 50px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg-0); flex: none; }
.tab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--ink-0); background: var(--bg-2); border-bottom-color: var(--accent); }

/* prose lists */
.li { display: flex; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-1); margin-bottom: 4px; }
.li .b { color: var(--ink-2); flex: none; }

/* table */
table { border-collapse: collapse; width: 100%; }
th { text-align: left; }

/* mapbox overrides */
.mapboxgl-popup-content { background: var(--bg-2) !important; color: var(--ink-0) !important;
  border: 1px solid var(--line-strong); border-radius: 0 !important; font-family: var(--font-sans); padding: 9px 11px !important; }
.mapboxgl-popup-tip { border-top-color: var(--bg-2) !important; border-bottom-color: var(--bg-2) !important; }
.mapboxgl-ctrl-group { border-radius: 0 !important; background: var(--bg-1) !important; border: 1px solid var(--line) !important; }
.mapboxgl-ctrl-group button { background: var(--bg-1) !important; }
.mapboxgl-ctrl-attrib, .mapboxgl-ctrl-logo { opacity: .35; }

/* evidence drawer */
.drawer-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(4,4,4,.6); }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(460px, 92vw); z-index: 51;
  background: var(--bg-1); border-left: 1px solid var(--line-strong); overflow-y: auto; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

@media (max-width: 820px) {
  .app-header { height: auto; min-height: 54px; padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .app-header > div:first-child { max-width: 100%; overflow: hidden; }
  .app-header > nav { width: 100%; overflow-x: auto; border-top: 1px solid var(--line); padding-top: 6px; }
  .app-header .meta-label { white-space: nowrap; }
  .container { max-width: 100%; }
  section > .container, main.container { padding-left: 16px !important; padding-right: 16px !important; }
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  header[style*="position: sticky"] { padding: 12px 16px !important; gap: 12px; flex-wrap: wrap; }
  header[style*="position: sticky"] > div { flex-wrap: wrap; }
  #app > .col > .row.flex1 { flex-direction: column; overflow-y: auto; }
  #app > .col > .row.flex1 > main { min-height: 58vh; flex: none; }
  #app > .col > .row.flex1 > aside { width: 100% !important; min-height: 360px; border-left: 0 !important; border-top: 1px solid var(--line); }
  #app .col > .row.center { flex-wrap: wrap; row-gap: 6px; padding-right: 8px !important; }
  .drawer { width: 100%; }
}

/* Institutional continuity */
.dcg-atlas-return{height:34px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 18px;border-bottom:1px solid var(--line);background:#f7f8f6;color:#171a1c;font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase}
.dcg-atlas-return a{color:#176b52}.dcg-atlas-return span{color:#68716d}
@media(max-width:680px){#app > .col{height:calc(100vh - 54px)!important;height:calc(100dvh - 54px)!important}.dcg-atlas-return{height:54px;min-height:54px;align-items:flex-start;justify-content:center;flex-direction:column;padding:10px 14px}.dcg-atlas-return span{display:none}}
