.station-page {
  color: var(--ink);
  background: var(--paper);
}

.station-page .mast-nav a[aria-current="page"] { color: var(--white); }

.station-hero {
  display: grid;
  min-height: min(620px, calc(100svh - 70px));
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .55fr);
  align-items: end;
  gap: clamp(60px, 8vw, 140px);
  padding: clamp(80px, 11vh, 130px) max(36px, calc((100vw - 1380px) / 2)) 74px;
  color: var(--white);
  background:
    radial-gradient(circle at 74% 42%, rgba(128, 212, 211, .09), transparent 28%),
    linear-gradient(115deg, #0a1114 0%, #111d21 61%, #17262b 100%);
  border-bottom: 1px solid var(--line-dark);
}

.station-hero-copy { max-width: 900px; }

.preview-stage {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  margin: 0 0 42px;
  color: #c6d0d1;
  border: 1px solid #425158;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.preview-stage i {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .13);
}

.station-hero h1 {
  margin: 0 0 27px;
  font-size: clamp(64px, 8.8vw, 138px);
  line-height: .82;
}

.station-hero h1 span {
  display: block;
  margin-bottom: 13px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1;
}

.station-hero-copy > p:not(.kicker):not(.preview-stage) {
  max-width: 700px;
  margin-bottom: 34px;
  color: #aebabc;
  font-size: 17px;
  line-height: 1.7;
}

.station-actions,
.boundary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.station-action,
.boundary-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 16px;
  color: #d6ddde;
  background: transparent;
  border: 1px solid #425158;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .025em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.station-action:hover,
.boundary-actions a:hover { color: var(--white); background: #1d2b30; border-color: #69777b; }

.station-action.is-primary { color: var(--night); background: var(--orange); border-color: var(--orange); font-weight: 600; }
.station-action.is-primary:hover { color: var(--night); background: #ff865e; border-color: #ff865e; }

.station-selector {
  padding: 26px;
  color: #b6c0c2;
  background: rgba(7, 12, 14, .5);
  border: 1px solid #3a494e;
  box-shadow: 15px 15px 0 rgba(0, 0, 0, .16);
}

.station-selector label {
  display: block;
  margin-bottom: 10px;
  color: #8f9da1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.station-selector select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  color: var(--white);
  background: #10191d;
  border: 1px solid #536268;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 13px;
}

.station-selector p { margin: 15px 0 0; color: #7f8e92; font-size: 12px; line-height: 1.6; }

.station-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: #c6d0d2;
  background: #131f23;
  border-bottom: 1px solid var(--line-dark);
}

.station-pulse > div { min-width: 0; padding: 23px max(22px, 3vw); border-right: 1px solid var(--line-dark); }
.station-pulse > div:last-child { border-right: 0; }
.station-pulse span,
.station-pulse small { display: block; color: #7f8d91; font-family: var(--mono); font-size: 11px; line-height: 1.4; }
.station-pulse span { margin-bottom: 8px; letter-spacing: .07em; text-transform: uppercase; }
.station-pulse b { display: block; overflow: hidden; margin-bottom: 4px; color: var(--white); font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.station-pulse b.is-aligned { color: var(--green); }
.station-pulse b.is-content-difference { color: var(--orange); }
.station-pulse b.is-source-lag { color: var(--yellow); }
.station-pulse b.is-incomplete,
.station-pulse b.is-error { color: var(--red); }

.station-evidence {
  padding: 105px max(36px, calc((100vw - 1380px) / 2)) 120px;
  color: var(--chalk);
  background: var(--night);
}

.station-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 50px;
}

.station-section-head h2 { max-width: 900px; font-size: clamp(52px, 6.6vw, 94px); }

.snapshot-control { display: grid; gap: 15px; justify-items: start; }
.snapshot-control p { margin: 0; color: #9ba8ac; font-size: 13px; line-height: 1.6; }
.snapshot-control button,
.evidence-label button,
.hash-block button {
  color: #bfc9ca;
  background: transparent;
  border: 1px solid #46555a;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.snapshot-control button { min-height: 42px; padding: 0 14px; }
.snapshot-control button:hover,
.evidence-label button:hover:not(:disabled),
.hash-block button:hover:not(:disabled) { color: var(--white); background: #1a272c; border-color: #68777b; }
.snapshot-control button:disabled,
.evidence-label button:disabled,
.hash-block button:disabled { cursor: not-allowed; opacity: .45; }

.station-noscript { padding: 18px; color: #cad2d3; background: #172429; border: 1px solid #415158; }
.station-noscript a { color: var(--orange); }

.station-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #3b4a4f;
  border-left: 1px solid #3b4a4f;
}

.station-source {
  display: grid;
  min-width: 0;
  grid-template-rows: auto auto minmax(200px, 1fr) auto;
  background: #111b1f;
  border-right: 1px solid #3b4a4f;
  border-bottom: 1px solid #3b4a4f;
}

.station-source > header { padding: 23px 21px; border-bottom: 1px solid #344349; }
.station-source > header > span { display: block; margin-bottom: 13px; color: var(--orange); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.station-source > header > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.station-source h3 { margin: 0; color: var(--white); font-family: var(--display); font-size: 25px; font-weight: 600; text-transform: uppercase; }

.path-state {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: #adbbbe;
  border: 1px solid #47565b;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.path-state.is-available { color: var(--green); border-color: rgba(147, 211, 176, .45); }
.path-state.is-degraded { color: var(--yellow); border-color: rgba(223, 198, 117, .45); }
.path-state.is-unavailable { color: var(--red); border-color: rgba(228, 123, 111, .45); }

.source-clocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid #344349; }
.source-clocks > div { min-width: 0; padding: 16px 13px; border-right: 1px solid #344349; }
.source-clocks > div:last-child { border-right: 0; }
.source-clocks dt { color: #7e8d91; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.source-clocks dd { overflow: hidden; margin: 7px 0 5px; color: #e0e5e5; font-family: var(--mono); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.source-clocks small { display: block; min-height: 30px; color: #718085; font-size: 11px; line-height: 1.45; }

.tac-block { display: flex; min-width: 0; flex-direction: column; padding: 19px 19px 20px; border-bottom: 1px solid #344349; }
.evidence-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.evidence-label span,
.hash-block span { color: #819095; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.evidence-label button { min-height: 32px; padding: 0 9px; }
.tac-block pre {
  min-height: 145px;
  padding: 15px;
  margin: 0;
  overflow: auto;
  color: #e4e8e7;
  background: #091013;
  border: 1px solid #29373c;
  scrollbar-color: #46555a #0b1316;
  white-space: pre-wrap;
  word-break: break-word;
}
.tac-block code { font-size: 13px; line-height: 1.7; }

.hash-block { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 17px 19px; }
.hash-block div { min-width: 0; }
.hash-block span { display: block; margin-bottom: 5px; }
.hash-block code { display: block; overflow: hidden; color: #aab6b8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hash-block button { min-height: 34px; padding: 0 9px; }

.station-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px;
  margin-top: 18px;
  color: #cbd3d4;
  background: #24191a;
  border: 1px solid #6e3f3d;
}
.station-error[hidden] { display: none; }
.station-error span { color: var(--red); font-family: var(--display); font-size: 23px; text-transform: uppercase; }
.station-error p { margin: 5px 0 0; color: #a99494; font-size: 13px; }
.station-error a { flex: 0 0 auto; color: #f0b2aa; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }

.station-finding {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(60px, 10vw, 160px);
  padding: 115px max(36px, calc((100vw - 1220px) / 2));
  color: var(--white);
  background: #182429;
}
.finding-summary h2 { max-width: 650px; font-size: clamp(52px, 6vw, 86px); }
.finding-summary > p:last-child { max-width: 590px; margin: 27px 0 0; color: #a4b0b2; font-size: 15px; line-height: 1.8; }
.finding-register { align-self: center; }
.finding-register dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid #415158; border-left: 1px solid #415158; }
.finding-register dl > div { min-width: 0; min-height: 105px; padding: 20px; border-right: 1px solid #415158; border-bottom: 1px solid #415158; }
.finding-register dt { margin-bottom: 8px; color: #839195; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.finding-register dd { margin: 0; color: #e2e6e5; font-size: 14px; line-height: 1.5; }
.variant-list { display: grid; margin-top: 14px; border-top: 1px solid #415158; }
.variant-list article { display: flex; align-items: baseline; justify-content: space-between; gap: 25px; padding: 13px 0; border-bottom: 1px solid #415158; }
.variant-list b { color: var(--orange); font-family: var(--mono); font-size: 11px; }
.variant-list span { color: #a7b2b4; font-size: 13px; text-align: right; }

.station-boundary {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(60px, 10vw, 160px);
  padding: 110px max(36px, calc((100vw - 1220px) / 2));
  background: var(--paper);
}
.station-boundary h2 { max-width: 590px; font-size: clamp(49px, 5.7vw, 80px); }
.station-boundary > div:last-child { align-self: end; }
.station-boundary > div:last-child > p { color: #4f5b60; font-size: 15px; line-height: 1.8; }
.boundary-actions { margin-top: 30px; }
.boundary-actions a { color: var(--ink); border-color: #9da4a2; }
.boundary-actions a:last-child { color: var(--night); background: var(--orange); border-color: var(--orange); font-weight: 600; }

.copy-announcement {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 15px;
  margin: 0;
  color: var(--night);
  background: var(--cyan);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .25);
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}
.copy-announcement.is-visible { opacity: 1; transform: none; }

.station-not-found {
  display: grid;
  min-height: calc(100svh - 70px);
  place-items: center;
  padding: 80px 36px;
  color: var(--white);
  background: var(--night);
}
.station-not-found > div { max-width: 920px; }
.station-not-found h1 { max-width: 900px; font-size: clamp(62px, 9vw, 125px); }
.station-not-found p:not(.kicker) { max-width: 560px; color: #9caaad; }
.station-not-found .station-actions { margin-top: 35px; }

@media (max-width: 1100px) {
  .station-hero { grid-template-columns: 1fr; align-items: end; gap: 55px; }
  .station-selector { width: min(540px, 100%); }
  .station-sources { grid-template-columns: 1fr; }
  .station-source { grid-template-rows: auto auto auto auto; }
  .tac-block pre { min-height: 0; }
}

@media (max-width: 850px) {
  .station-hero { min-height: auto; padding-inline: 24px; }
  .station-pulse { grid-template-columns: 1fr 1fr; }
  .station-pulse > div:nth-child(2) { border-right: 0; }
  .station-pulse > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-dark); }
  .station-section-head,
  .station-finding,
  .station-boundary { grid-template-columns: 1fr; gap: 45px; }
  .station-evidence,
  .station-finding,
  .station-boundary { padding-inline: 24px; }
}

@media (max-width: 560px) {
  .station-hero { padding: 68px 16px 55px; }
  .preview-stage { margin-bottom: 32px; }
  .station-hero h1 { font-size: clamp(54px, 18vw, 82px); }
  .station-actions { display: grid; }
  .station-action { width: 100%; }
  .station-selector { padding: 19px; box-shadow: 8px 8px 0 rgba(0, 0, 0, .16); }
  .station-pulse > div { padding: 18px 15px; }
  .station-pulse b { font-size: 20px; }
  .station-evidence,
  .station-finding,
  .station-boundary { padding: 78px 16px; }
  .station-section-head h2 { font-size: clamp(48px, 15vw, 68px); }
  .source-clocks { grid-template-columns: 1fr; }
  .source-clocks > div { padding: 13px 15px; border-right: 0; border-bottom: 1px solid #344349; }
  .source-clocks > div:last-child { border-bottom: 0; }
  .source-clocks small { min-height: 0; }
  .hash-block { grid-template-columns: 1fr; }
  .hash-block button { justify-self: start; }
  .station-error { display: grid; }
  .finding-register dl { grid-template-columns: 1fr; }
  .variant-list article { align-items: start; flex-direction: column; gap: 4px; }
  .variant-list span { text-align: left; }
  .boundary-actions { display: grid; }
  .boundary-actions a { width: 100%; }
}
