:root {
  color-scheme: dark;
  --bg: #090d13;
  --pane: #101721;
  --ink: #e9eef5;
  --muted: #9daaba;
  --edge: #2c3745;
  --accent: #b9ed77;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding: 1rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    1rem/1.6 system-ui,
    "Apple SD Gothic Neo",
    sans-serif;
}
a {
  color: var(--accent);
  text-underline-offset: 0.22em;
}
header {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 1.1rem max(5vw, 1rem);
  border-bottom: 1px solid var(--edge);
  background: #0d1117;
}
nav {
  display: flex;
  gap: 1.5rem;
}
header a {
  text-decoration: none;
}
nav a {
  color: #bdc8d5;
}
.brand {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.055em;
}
.brand b {
  font-weight: 450;
  color: var(--accent);
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 1.9rem max(4vw, 1rem) 4rem;
}
.intro,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.intro a {
  font-size: 0.9rem;
}
.intro p {
  max-width: 800px;
}
h1,
h2,
h3,
p {
  margin: 0.4em 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.06em;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1rem;
}
p,
li {
  color: #aebbc9;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
}
details {
  border-top: 1px solid var(--edge);
  padding: 0.3rem 0;
}
details p {
  margin: 0.6rem 0;
}
section {
  padding: 1.3rem 1.5rem;
  margin-top: 1.4rem;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--pane);
}
section > p {
  max-width: 90ch;
}
.section-heading span,
.sub,
#total {
  color: var(--muted);
  font-size: 0.875rem;
}
.download {
  white-space: nowrap;
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.2rem 0;
}
#brand-on-map {
  align-self: end;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #c4cfdc;
}
select,
input {
  background: #141d28;
  border: 1px solid #394553;
  border-radius: 0.4rem;
  padding: 0.55rem 0.6rem;
  color: var(--ink);
  font: inherit;
  max-width: 100%;
}
select {
  padding-right: 1.5rem;
}
input {
  width: 9rem;
}
.scroll {
  max-height: 36rem;
  overflow: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--edge);
  border-radius: 0.45rem;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
}
thead {
  background: #1e2935;
  position: sticky;
  top: 0;
  z-index: 1;
}
td,
th {
  padding: 0.55rem 0.65rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--edge);
}
.note {
  min-width: 15rem;
  max-width: 30ch;
  white-space: normal;
  color: #adbbca;
  line-height: 1.5;
}
td small {
  display: block;
  color: var(--muted);
}
td a {
  font-size: 0.85rem;
}
th {
  font-weight: 500;
}
.status {
  padding: 0.22rem 0.5rem;
  border-radius: 100px;
  background: #1d2b3b;
  color: #bad3f3;
  white-space: nowrap;
}
.approved {
  color: #c2ee83;
  background: #26351c;
}
.historical {
  color: #b5c1d0;
  background: #27303b;
}
.deferred {
  color: #f6c679;
  background: #45321c;
}
.dismissed {
  color: #f3b0a9;
  background: #472827;
}
.plot-area {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  background: #0b111a;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  overflow: hidden;
}
.plot-area > div {
  padding: 1rem;
}
.readout {
  border-left: 1px solid var(--edge);
}
.plot-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
#plot-interpolation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}
.contour-notice {
  flex-basis: 100%;
  color: #e1b084;
}
#plot-status {
  color: var(--muted);
  font-size: 0.875rem;
}
#plot {
  display: block;
  width: 100%;
  height: clamp(14rem, 32vw, 28rem);
}
#legend {
  min-width: 0;
  margin: 0;
  padding: 0.4rem 0.65rem 0.65rem;
  border: 1px solid var(--edge);
  border-radius: 0.4rem;
  font-size: 0.875rem;
}
#scan-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
}
#scan-options label {
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  width: auto;
  color: var(--scan-color);
}
#scan-options input {
  width: auto;
  accent-color: var(--scan-color);
}
#pattern-rows {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  font-size: 0.875rem;
}
#pattern-rows li {
  margin: 0.35rem 0;
}
.readout dt,
.readout dd {
  display: inline-block;
  width: 50%;
  margin: 0;
  padding: 0.3rem 0;
  border-bottom: 1px solid #26303b;
  font-size: 0.9rem;
}
.readout dt {
  color: var(--muted);
}
.readout dd {
  text-align: right;
  overflow-wrap: anywhere;
}
#family article,
#refs article {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--edge);
}
#attachments {
  max-height: 19rem;
  overflow: auto;
}
#plans,
#itu {
  padding: 0.6rem 0;
}
code {
  white-space: normal;
  color: #d0e0ef;
}
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#error:empty {
  display: none;
}
#error {
  color: #ffd29f;
}
@media (max-width: 750px) {
  header {
    gap: 1rem;
    justify-content: space-between;
  }
  nav {
    gap: 0.7rem;
  }
  main {
    padding-top: 0.8rem;
  }
  section {
    padding: 1rem;
  }
  .plot-area {
    grid-template-columns: 1fr;
  }
  .readout {
    border-top: 1px solid var(--edge);
    border-left: 0;
  }
  .intro {
    display: block;
  }
  .download {
    display: inline-flex;
  }
  .filters label {
    width: calc(50% - 0.6rem);
    min-width: 0;
  }
  .filters input {
    width: 100%;
  }
}
