: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 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-title {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.brand-subtitle {
  display: block;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.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;
}

.site-menu-toggle,
.site-menu-backdrop,
.site-nav-heading {
  display: none;
}

.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 {
    position: sticky;
    z-index: 1400;
    top: 0;
    min-height: calc(64px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .brand-link { min-height: 48px; }
  .brand-icon { width: 34px; height: 34px; }
  .brand-title { font-size: 21px; }
  .brand-subtitle { font-size: 10px; }

  html:not(.public-nav-ready) .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  html:not(.public-nav-ready) .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-menu-toggle {
    position: relative;
    z-index: 1420;
    width: 48px;
    height: 48px;
    margin-left: auto;
    flex: 0 0 auto;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid #344158;
    border-radius: 10px;
    background: #192130;
    color: #f4f7fb;
    cursor: pointer;
  }

  .site-menu-toggle span {
    grid-area: 1 / 1;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .site-menu-toggle span:nth-child(1) { transform: translateY(-7px); }
  .site-menu-toggle span:nth-child(3) { transform: translateY(7px); }

  .site-menu-toggle[aria-expanded="true"] {
    border-color: #4f8cff;
    background: #243553;
    color: #7dd3fc;
  }

  .site-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .site-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

  .site-menu-backdrop {
    position: fixed;
    z-index: 1360;
    top: calc(64px + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    visibility: hidden;
    background: rgba(3, 7, 18, .58);
    opacity: 0;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }

  .site-menu-backdrop.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  html.public-nav-ready .site-nav {
    position: fixed;
    z-index: 1410;
    top: calc(72px + env(safe-area-inset-top));
    right: 8px;
    width: min(344px, calc(100vw - 16px));
    max-height: calc(100dvh - 80px - env(safe-area-inset-top));
    overflow-y: auto;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #344158;
    border-radius: 12px;
    background: rgba(17, 24, 36, .98);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .46);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.985);
    transform-origin: top right;
    transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .22s;
  }

  html.public-nav-ready .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .site-nav-heading {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 7px 4px;
    border-bottom: 1px solid #293448;
  }

  .site-nav-brand { display: flex; align-items: center; gap: 9px; }
  .site-nav-brand img { border-radius: 8px; }
  .site-nav-brand > span { display: grid; gap: 2px; }
  .site-nav-heading strong { font-size: 15px; }
  .site-nav-heading small { color: #91a0b7; font-size: 10px; }
  .site-nav-heading button {
    width: 44px;
    height: 44px;
    border: 1px solid #344158;
    border-radius: 10px;
    background: #202a3b;
    color: #f4f7fb;
    font-size: 23px;
    cursor: pointer;
  }

  html.public-nav-ready .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #151d2a;
    font-size: 14px;
  }

  html.public-nav-ready .site-nav a.active {
    border-color: #3f6fb9;
    background: #243553;
  }

  .site-menu-toggle:focus-visible,
  .site-nav a:focus-visible,
  .site-nav-heading button:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
  }

  body.site-menu-open { overflow: hidden; }
  body.site-menu-open .cookie-settings {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

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

@media (max-width: 380px) {
  .brand-subtitle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-toggle span,
  .site-menu-backdrop,
  html.public-nav-ready .site-nav {
    transition-duration: .01ms;
  }
}

@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; }
}
.ct-build-version {
  display: block;
  margin-top: .35rem;
  font-size: .72rem;
  opacity: .65;
}

.ct-update-notice {
  position: fixed;
  z-index: 10050;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: .75rem .9rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: .75rem;
  color: #fff;
  background: #142033;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}

.ct-update-notice button { min-height: 2.75rem; white-space: nowrap; }

@media (max-width: 520px) {
  .ct-update-notice { left: .75rem; right: .75rem; bottom: .75rem; }
}
