:root {
  color-scheme:dark;
  --bg:#07080f;
  --surface:#101030;
  --surface-strong:#181848;
  --text:#fce4fc;
  --muted:#c0ccd8;
  --line:#242478;
  --accent:#60d8fc;
  --button-text:#07080f;
  --stage:#090c17;
  --highlight:#f060fc;
}
@media(prefers-color-scheme:light) {
  :root:not([data-theme]) {
    color-scheme:light;
    --bg:#f7f9fc;
    --surface:#fff;
    --surface-strong:#e9eef8;
    --text:#111827;
    --muted:#4f5f73;
    --line:#c9d4e8;
    --accent:#007aa3;
    --button-text:#fff;
    --stage:#e9eef8;
    --highlight:#b012b8;
  }
}
:root[data-theme=light] {
  color-scheme:light;
  --bg:#f7f9fc;
  --surface:#fff;
  --surface-strong:#e9eef8;
  --text:#111827;
  --muted:#4f5f73;
  --line:#c9d4e8;
  --accent:#007aa3;
  --button-text:#fff;
  --stage:#e9eef8;
  --highlight:#b012b8;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:1rem;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:1rem/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a {
  color:var(--accent);
  text-underline-offset:.22em;
}
a:hover {
  text-decoration-thickness:2px;
}
button,input,select {
  font:inherit;
}
button,select {
  cursor:pointer;
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
button {
  border-radius:6px;
  border:1px solid var(--line);
  padding:.7rem 1rem;
  min-height:44px;
}
input,select {
  background:var(--bg);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:6px;
  min-height:44px;
  padding:.65rem .8rem;
}
input:focus {
  border-color:var(--accent);
}
[hidden] {
  display:none!important;
}
.wrap {
  width:min(1120px,calc(100% - 2.5rem));
  margin-inline:auto;
}
.skip {
  position:absolute;
  top:-100px;
  background:var(--surface);
  padding:1rem;
  z-index:5;
}
.skip:focus {
  top:0;
}
.station-header {
  border-top:3px solid var(--accent);
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.header-inner {
  display:flex;
  align-items:center;
  gap:2rem;
  min-height:126px;
  padding-block:1.25rem;
}
.identity {
  display:flex;
  align-items:center;
  gap:1rem;
  text-decoration:none;
  color:var(--text);
  flex-shrink:0;
}
.identity strong {
  display:block;
  font-size:2rem;
  line-height:1.1;
}
.identity-sub {
  display:block;
  color:var(--muted);
  font-size:.9rem;
  margin-top:.35rem;
}
.station-logo {
  width:64px;
  height:64px;
  object-fit:contain;
  display:block;
}
.clocks {
  display:flex;
  gap:2rem;
  margin-left:auto;
}
.clocks>div {
  min-width:130px;
}
.clock-label {
  display:block;
  font-size:.8rem;
  color:var(--accent);
  overflow-wrap:anywhere;
}
.clocks time {
  display:block;
  font:1.65rem/1.4 "JetBrains Mono",Consolas,"Liberation Mono",monospace;
  font-variant-numeric:tabular-nums;
}
.clock-date {
  display:block;
  font-size:.8rem;
  color:var(--muted);
}
.theme-control {
  font-size:.8rem;
  color:var(--muted);
}
.theme-control select {
  display:block;
  font-size:.875rem;
  margin-top:.25rem;
  max-width:110px;
}
.toolbar {
  border-bottom:1px solid var(--line);
}
.tools-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
  padding-block:1.25rem;
}
form {
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:1rem;
  align-items:center;
}
form>label {
  font-weight:600;
  font-size:.9rem;
}
.search-controls {
  display:flex;
  gap:.5rem;
}
input {
  width:190px;
  font-family:Consolas,monospace;
  text-transform:uppercase;
}
.primary {
  background:var(--accent);
  color:var(--button-text);
  border-color:transparent;
  font-weight:700;
  white-space:nowrap;
}
.hint {
  grid-column:2;
  font-size:.8rem;
  color:var(--muted);
  margin-top:.35rem;
}
.quick-links {
  display:flex;
  gap:1.5rem;
  font-size:.9rem;
  flex-shrink:0;
}
.quick-links a {
  text-decoration:none;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  margin:2rem 0 1.25rem;
}
.eyebrow {
  font-size:.8rem;
  color:var(--accent);
  margin:0 0 .3rem;
  display:block;
}
h1,h2,p {
  margin-top:0;
}
h1 {
  font-size:1.8rem;
  line-height:1.2;
  margin-bottom:0;
}
h2 {
  font-size:1.15rem;
  line-height:1.3;
  margin:0;
}
.muted {
  color:var(--muted);
  font-size:.875rem;
}
.dashboard-grid {
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:1.25rem;
}
.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.25rem 1.25rem 0;
}
.panel-number {
  font:1.5rem Consolas,monospace;
  color:var(--muted);
  opacity:.6;
}
.panel-description {
  padding:0 1.25rem;
  font-size:.875rem;
  color:var(--muted);
  margin:.5rem 0 1rem;
}
.widget-stage {
  margin:0 1.25rem 1rem;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--stage);
  border-radius:4px;
  flex:1;
  padding:.75rem;
}
.widget-stage>a {
  display:block;
  max-width:100%;
}
.widget-image {
  display:block;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
.activity .widget-image {
  width:320px;
}
.widget-error {
  padding:1rem;
  color:var(--muted);
  text-align:center;
  margin:0;
}
.widget-error a {
  display:block;
  margin-top:.5rem;
}
.panel-footer {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.5rem;
  padding:.8rem 1.25rem;
  font-size:.8rem;
}
.panel-footer>a {
  text-decoration:none;
}
.widget-status {
  color:var(--muted);
  text-align:right;
}
.unavailable .widget-status {
  color:var(--highlight);
}
.source-note {
  font-size:.8rem;
  color:var(--muted);
  margin:1rem 0 2rem;
  max-width:92ch;
}
.reference {
  margin-bottom:3rem;
}
.reference .section-heading {
  margin-top:0;
}
.badge {
  font-size:.8rem;
  white-space:nowrap;
  color:var(--accent);
  border:1px solid var(--line);
  border-radius:30px;
  padding:.3rem .75rem;
}
.chart-details {
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
}
summary {
  padding:1.25rem;
  cursor:pointer;
  font-size:.95rem;
  font-weight:600;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  list-style:none;
}
summary::-webkit-details-marker {
  display:none;
}
.expand-mark {
  font-size:1.5rem;
  color:var(--accent);
  line-height:1;
}
.chart-details[open] .expand-mark {
  transform:rotate(45deg);
}
.chart-content {
  border-top:1px solid var(--line);
  padding:1.25rem;
}
.chart-content p {
  font-size:.875rem;
  color:var(--muted);
}
.chart-content img {
  display:block;
  width:100%;
  height:auto;
}
.page-footer {
  border-top:1px solid var(--line);
  padding:1.5rem 0 2rem;
  display:flex;
  justify-content:space-between;
  gap:1rem;
  font-size:.8rem;
  color:var(--muted);
}
.page-footer strong {
  color:var(--text);
}
.separator {
  margin:0 .6rem;
  color:var(--accent);
}
.notice {
  border:1px solid var(--line);
  padding:1rem;
  color:var(--muted);
}
@media(min-width:1000px) {
  .sunlight .widget-stage,.comparison .widget-stage {
    min-height:260px;
  }
}
@media(max-width:950px) {
  .header-inner {
    flex-wrap:wrap;
    gap:1rem;
  }
  .clocks {
    gap:1.25rem;
  }
  .tools-inner {
    align-items:flex-start;
    gap:1rem;
  }
  .quick-links {
    flex-direction:column;
    gap:.5rem;
  }
  form {
    grid-template-columns:1fr;
    gap:.4rem;
  }
  .hint {
    grid-column:1;
    margin:0;
  }
  .theme-control {
    margin-left:auto;
  }
  .panel-footer {
    flex-wrap:wrap;
  }
}
@media(max-width:650px) {
  .wrap {
    width:calc(100% - 2rem);
  }
  .header-inner {
    gap:1.25rem;
  }
  .identity strong {
    font-size:1.8rem;
  }
  .identity {
    gap:.75rem;
  }
  .clocks {
    order:3;
    width:100%;
    margin:0;
    border-top:1px solid var(--line);
    padding-top:1rem;
    justify-content:space-between;
  }
  .clocks>div {
    min-width:0;
  }
  .clocks time {
    font-size:1.5rem;
  }
  .tools-inner {
    flex-direction:column;
    gap:1rem;
  }
  form,.search-controls {
    width:100%;
  }
  input {
    width:100%;
    min-width:0;
  }
  .quick-links {
    flex-direction:row;
    gap:1.5rem;
  }
  .dashboard-grid {
    grid-template-columns:1fr;
  }
  .section-heading {
    align-items:flex-start;
  }
  .section-heading>.muted {
    max-width:130px;
    text-align:right;
  }
  .widget-stage {
    min-height:193px;
  }
  .page-footer {
    flex-direction:column;
    gap:.5rem;
  }
  .reference .section-heading {
    align-items:center;
  }
  .station-logo {
    width:52px;
    height:52px;
  }
  .theme-control select {
    max-width:100px;
  }
  .chart-content {
    padding:.75rem;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
}
/* One alpha-mask asset, explicitly colored with each theme's accent. */
.station-logo {
  background:var(--accent);
  mask:url('../images/signal-mast.png') center/contain no-repeat;
  -webkit-mask:url('../images/signal-mast.png') center/contain no-repeat;
  flex-shrink:0;
}
