:root {
  color-scheme: dark;
  font-family: Arial, sans-serif;
  background: #0f1115;
  color: #f9fafb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(79, 140, 255, 0.09), transparent 32rem),
    #0f1115;
}

a {
  color: #7dd3fc;
}

.hidden {
  display: none !important;
}

.site-header {
  min-height: 70px;
  padding: 12px max(18px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #2b3040;
  background: rgba(21, 24, 33, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 2px;
  color: #9ca3af;
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: #252b3a;
  color: #7dd3fc;
}

.page-shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 54px 0 72px;
}

.page-heading {
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.08;
}

.lead {
  max-width: 700px;
  margin: 14px 0 0;
  color: #b8c0ce;
  font-size: 17px;
  line-height: 1.6;
}

.content-card {
  padding: 8px 28px;
  border: 1px solid #2b3040;
  border-radius: 16px;
  background: #151821;
}

.placeholder-section {
  padding: 21px 0;
  border-bottom: 1px solid #2b3040;
}

.placeholder-section:last-child {
  border-bottom: 0;
}

.placeholder-section h2 {
  margin: 0 0 9px;
  font-size: 19px;
}

.placeholder-section p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.5;
}

.summary-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #2b3040;
  border-radius: 16px;
  background: #151821;
}

.summary-item {
  min-width: 0;
}

.metric-label,
.detail-label {
  display: block;
  margin-bottom: 7px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-value {
  font-size: 17px;
  font-weight: 800;
}

.status-list {
  display: grid;
  gap: 14px;
}

.status-card {
  padding: 22px 24px;
  border: 1px solid #2b3040;
  border-radius: 16px;
  background: #151821;
}

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.status-card h2 {
  margin: 0;
  font-size: 21px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #2c3444;
  color: #d1d5db;
  font-size: 12px;
  font-weight: 800;
}

.status-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-operational {
  background: rgba(34, 197, 94, 0.13);
  color: #86efac;
}

.status-problems {
  background: rgba(239, 68, 68, 0.13);
  color: #fca5a5;
}

.status-stale {
  background: rgba(245, 158, 11, 0.13);
  color: #fcd34d;
}

.status-empty {
  background: rgba(156, 163, 175, 0.13);
  color: #d1d5db;
}

.status-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
}

.status-details div {
  min-width: 0;
}

.status-details dt,
.status-details dd {
  margin: 0;
}

.status-details dd {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.45;
}

.status-error {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid #2b3040;
}

.status-error dd {
  color: #fca5a5;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.source-card {
  padding: 22px;
  border: 1px solid #2b3040;
  border-radius: 16px;
  background: #151821;
}

.source-category {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.source-card h2 {
  margin: 0 0 15px;
  font-size: 19px;
}

.source-card a {
  font-size: 14px;
  font-weight: 700;
}

.source-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid #4f8cff;
  border-radius: 10px;
  background: #151821;
  color: #b8c0ce;
  line-height: 1.55;
}

.loading,
.error-message {
  padding: 28px;
  border: 1px solid #2b3040;
  border-radius: 16px;
  background: #151821;
  color: #b8c0ce;
  text-align: center;
}

.legal-card {
  padding: 10px 28px;
  border: 1px solid #2b3040;
  border-radius: 16px;
  background: #151821;
}

.legal-section {
  padding: 22px 0;
  border-bottom: 1px solid #2b3040;
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.legal-section h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.legal-section p,
.legal-section li {
  color: #b8c0ce;
  line-height: 1.62;
}

.legal-section ul {
  padding-left: 22px;
}

.legal-section code {
  color: #dbeafe;
}

.roadmap-list {
  display: grid;
  gap: 14px;
}

.roadmap-card {
  padding: 22px;
  border: 1px solid #2b3040;
  border-radius: 16px;
  background: #151821;
}

.roadmap-card h2 {
  margin: 5px 0 10px;
  font-size: 21px;
}

.roadmap-card p {
  margin: 0;
  color: #b8c0ce;
  line-height: 1.55;
}

.roadmap-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(79, 140, 255, .14);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cookie-consent-root {
  position: fixed !important;
  z-index: 100100;
  inset: 0 !important;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  contain: strict;
  isolation: isolate;
  pointer-events: none;
}
.cookie-consent {
  position: absolute;
  right: 50%;
  bottom: 18px;
  width: min(680px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid #40506a;
  border-radius: 16px;
  background: #151d2a;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .48);
  transform: translateX(50%);
  pointer-events: auto;
}

.cookie-copy strong { font-size: 14px; }
.cookie-copy p { margin: 5px 0 4px; color: #b7c3d5; font-size: 12px; line-height: 1.4; }
.cookie-copy a { font-size: 11px; font-weight: 750; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cookie-consent button,
.cookie-settings {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #40506a;
  border-radius: 10px;
  background: #222d3e;
  color: #e5edf8;
  font-weight: 750;
  cursor: pointer;
}
.cookie-consent .cookie-accept { border-color: #0284c7; background: #0369a1; }
.cookie-options { margin-top: 12px; padding-top: 12px; border-top: 1px solid #344158; }
.cookie-options label { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cookie-options label span { display: grid; gap: 2px; }
.cookie-options small { color: #91a0b7; font-size: 10px; }
.cookie-options input { width: 22px; height: 22px; accent-color: #0284c7; }
.cookie-options .cookie-save { margin-top: 10px; background: #26364d; }
.cookie-settings {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 38px;
  background: rgba(21, 29, 42, .94);
  font-size: 11px;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .page-shell {
    padding-top: 36px;
  }
}

@media (max-width: 640px) {
  .summary-card,
  .status-details,
  .source-list {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 5px 20px;
  }

  .legal-card {
    padding: 6px 20px;
  }

  .status-card {
    padding: 20px;
  }

  .cookie-consent {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-height: min(52dvh, 430px);
    overflow-y: auto;
    padding: 15px 14px calc(14px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: none;
  }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .cookie-actions button { min-width: 0; padding: 0 8px; }
}
