:root {
  --lisa-ink-950: #0d151d;
  --lisa-panel-900: #14212c;
  --lisa-panel-blue: #18324a;
  --lisa-cyan: #8a3e4a;
  --lisa-cyan-bright: #b96070;
  --lisa-blue: #18324a;
  --lisa-amber: #9b6219;
  --lisa-red: #943f4d;
  --lisa-green: #247a55;
  --ivory: #f4f0e8;
  --ivory-deep: #e9e2d5;
  --paper: #fbf8f2;
  --ink: #17202b;
  --navy: #18324a;
  --burgundy: #8a3e4a;
  --muted: #61646a;
  --line: #cfc8ba;
  --white: #fffdf8;
  color-scheme: light;
}

html[data-theme="dark"] {
  --lisa-cyan: #d17886;
  --lisa-cyan-bright: #f0a9b5;
  --lisa-blue: #a9c6dc;
  --lisa-amber: #e2aa62;
  --lisa-red: #f28b9b;
  --lisa-green: #70c79a;
  --ivory: #0d151d;
  --ivory-deep: #111d27;
  --paper: #14212c;
  --ink: #eef1f3;
  --navy: #a9c6dc;
  --burgundy: #d17886;
  --muted: #abb3ba;
  --line: #34424e;
  --white: #fffdf8;
  color-scheme: dark;
}

body {
  background:
    radial-gradient(circle at 82% 6%, color-mix(in srgb, var(--lisa-cyan-bright) 10%, transparent), transparent 25rem),
    var(--ivory);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  box-shadow: 0 .6rem 2rem rgba(7, 20, 30, .08);
}

.header-rule {
  background: var(--lisa-cyan);
}

.header-rule span {
  background: var(--lisa-cyan-bright);
  box-shadow: 0 0 .8rem color-mix(in srgb, var(--lisa-cyan-bright) 70%, transparent);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.projects-nav-menu > summary.is-current {
  color: var(--lisa-cyan);
}

.now-page {
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 26%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 26%, transparent) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

.now-tool-nav {
  border: 1px solid var(--line);
  border-top: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  padding: .55rem;
}

.now-tool-nav a {
  min-height: 2.5rem;
  border-left: 2px solid transparent;
  display: inline-flex;
  align-items: center;
}

.now-tool-nav a:first-child,
.now-tool-nav a:hover,
.now-tool-nav a:focus-visible {
  border-left-color: var(--lisa-cyan);
  background: color-mix(in srgb, var(--lisa-cyan) 10%, transparent);
  color: var(--lisa-cyan);
}

.now-heading {
  padding-top: clamp(1.6rem, 4vw, 3.2rem);
}

.lisa-heading-cluster {
  display: grid;
  grid-template-columns: 3.65rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.lisa-mark {
  display: grid;
  place-items: center;
  width: 3.65rem;
  height: 3.65rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
}

.lisa-mark svg {
  width: 2.6rem;
  height: 2.6rem;
}

.lisa-heading-copy {
  min-width: 0;
}

.now-heading .lisa-heading-copy h1 {
  margin: .15rem 0 0;
  font-family: var(--font-interface), Arial, sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  font-weight: 760;
  letter-spacing: .08em;
  line-height: .92;
}

.lisa-expanded {
  margin: .55rem 0 0;
  color: var(--ink) !important;
  font-size: clamp(.84rem, 1.2vw, 1.02rem) !important;
  font-weight: 650;
}

.lisa-descriptor {
  display: block;
  margin-top: .22rem;
  color: var(--lisa-cyan);
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.now-live-row {
  color: var(--lisa-cyan);
}

.now-live-dot.online {
  background: var(--lisa-green);
  box-shadow: 0 0 0 .28rem color-mix(in srgb, var(--lisa-green) 20%, transparent);
}

.now-updated,
.now-refresh-toggle {
  font-variant-numeric: tabular-nums;
}

.now-notice,
.dashboard-command-grid,
.dashboard-visual-grid,
.analyst-workspace,
.now-metrics,
.now-evidence,
.cf-section,
.global-coverage,
.dashboard-deep-links a,
.now-about-points article,
.now-pipeline-flow li {
  border-color: var(--line);
  border-radius: .45rem;
}

.now-notice,
.dashboard-command-grid > .analyst-pulse,
.dashboard-kpi-stack > .analyst-metric,
.dashboard-visual-grid > .analyst-geo,
.dashboard-visual-grid > .geopolitical-context,
.analyst-workspace,
.now-metrics,
.now-evidence,
.cf-section,
.global-coverage,
.dashboard-deep-links a {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 .9rem 2.4rem rgba(7, 20, 30, .08);
}

.dashboard-command-grid,
.dashboard-visual-grid {
  gap: .65rem;
  border: 0;
  background: transparent;
}

.dashboard-command-grid {
  align-items: stretch;
}

.dashboard-command-grid > .analyst-pulse,
.dashboard-kpi-stack {
  min-width: 0;
  height: 100%;
}

.dashboard-kpi-stack > .analyst-metric {
  overflow: visible;
}

.now-panel-title,
.analyst-panel-title,
.institutional-heading,
.cf-section > .now-panel-title {
  border-color: var(--line);
}

.now-label,
.now-panel-title p,
.section-kicker,
.eyebrow {
  color: var(--lisa-cyan);
}

.now-map,
.convergence-map,
.convergence-graph {
  background:
    radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--lisa-cyan) 18%, transparent), transparent 17rem),
    linear-gradient(145deg, var(--lisa-panel-blue), var(--lisa-ink-950) 74%);
}

.now-map-grid,
.convergence-map::before,
.convergence-graph::before {
  opacity: .22;
}

.now-sparkline polyline,
.trend-line,
.l7-trend-line {
  stroke: var(--lisa-cyan);
}

.source-dot.operational,
.status-dot.operational,
.status-dot.ok {
  background: var(--lisa-green);
}

.source-dot.degraded,
.status-dot.degraded,
.status-dot.warning {
  background: var(--lisa-amber);
}

.source-dot.unavailable,
.status-dot.unavailable,
.status-dot.critical {
  background: var(--lisa-red);
}

.now-timeline-cta,
.feed-event-links a,
.event-links a,
.dashboard-deep-links a:hover,
.dashboard-deep-links a:focus-visible {
  color: var(--lisa-cyan);
}

/*
 * Dashboard operations use the interface face and tabular figures. Editorial
 * typography remains available to long-form L.I.S.A. pages, but never carries
 * measurements or status values.
 */
.now-page .now-gauge strong,
.now-page .analyst-metric > strong,
.now-page .event-day-summary strong,
.now-page .institutional-summary-card strong,
.now-page .institutional-kpi > strong,
.now-page .geopolitical-pressure strong,
.now-page .geopolitical-summary strong,
.now-page .timeline-bar-value,
.now-page .cf-rank {
  font-family: var(--font-interface), Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 400;
  letter-spacing: -.02em;
}

.dashboard-scope-control button:hover,
.dashboard-scope-control button:focus-visible {
  color: var(--lisa-cyan);
}

.dashboard-scope-control button.is-active,
html[data-theme="dark"] .dashboard-scope-control button.is-active {
  border-color: var(--lisa-cyan-bright);
  background: var(--lisa-panel-blue);
  box-shadow: inset 0 -.2rem 0 var(--lisa-cyan-bright);
  color: var(--white);
}

html[data-theme="dark"] .dashboard-scope-control button.is-active {
  color: var(--lisa-cyan-bright);
}

.now-page :focus-visible {
  outline-color: var(--lisa-cyan-bright);
}

.theme-toggle {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.theme-toggle:hover {
  border-color: var(--lisa-cyan);
  color: var(--lisa-cyan);
}

html[data-theme="dark"] .site-header {
  background: rgba(13, 21, 29, .96);
}

html[data-theme="dark"] .site-footer {
  background: #080d12;
}

html[data-theme="dark"] .now-notice,
html[data-theme="dark"] .dashboard-command-grid > .analyst-pulse,
html[data-theme="dark"] .dashboard-kpi-stack > .analyst-metric,
html[data-theme="dark"] .dashboard-visual-grid > .analyst-geo,
html[data-theme="dark"] .dashboard-visual-grid > .geopolitical-context,
html[data-theme="dark"] .analyst-workspace,
html[data-theme="dark"] .now-metrics,
html[data-theme="dark"] .now-evidence,
html[data-theme="dark"] .cf-section,
html[data-theme="dark"] .global-coverage,
html[data-theme="dark"] .dashboard-deep-links a {
  background: rgba(20, 33, 44, .96);
  box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .now-page {
  background-color: var(--lisa-ink-950);
  background-image:
    linear-gradient(rgba(209, 120, 134, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 120, 134, .035) 1px, transparent 1px);
}

html[data-theme="dark"] .now-notice,
html[data-theme="dark"] .dashboard-command-grid > .analyst-pulse,
html[data-theme="dark"] .dashboard-kpi-stack > .analyst-metric,
html[data-theme="dark"] .dashboard-visual-grid > .analyst-geo,
html[data-theme="dark"] .dashboard-visual-grid > .geopolitical-context,
html[data-theme="dark"] .analyst-workspace,
html[data-theme="dark"] .now-metrics,
html[data-theme="dark"] .now-evidence,
html[data-theme="dark"] .cf-section,
html[data-theme="dark"] .global-coverage {
  background: rgba(20, 33, 44, .96);
}

html[data-theme="dark"] .dashboard-kpi-stack,
html[data-theme="dark"] .dashboard-visual-grid {
  background: var(--line);
}

@media (max-width: 820px) {
  .lisa-heading-cluster {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .lisa-mark {
    width: 3rem;
    height: 3rem;
  }

  .lisa-mark svg {
    width: 2.15rem;
    height: 2.15rem;
  }
}

@media (max-width: 520px) {
  .lisa-expanded {
    max-width: 18rem;
  }

  .lisa-descriptor {
    max-width: 17rem;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-option {
    transition: none;
  }
}
