:root {
  --bg: #eef3ee;
  --card: #f9fbf6;
  --ink: #163124;
  --muted: #5c7368;
  --line: #c7d5ca;
  --accent: #245a45;
  --accent-soft: #d8e8dc;
  --shadow: 0 18px 40px rgba(17, 42, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(199, 218, 203, 0.65), transparent 32%),
    linear-gradient(180deg, #f5f8f2 0%, var(--bg) 100%);
  color: var(--ink);
}

a {
  color: var(--accent);
}

.page {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.card {
  background: rgba(249, 251, 246, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}

.banner-kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--muted);
}

.banner h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.banner-copy {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  max-width: 68ch;
  color: var(--muted);
}

.banner-side {
  align-self: end;
  background: linear-gradient(180deg, #eff6ee 0%, #dfeadf 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.note-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.note-value {
  margin-top: 0.45rem;
  font-weight: 700;
}

.controls {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
}

.control-row + .control-row {
  margin-top: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  min-width: 150px;
}

label.wide {
  flex: 1 1 320px;
}

label span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

select,
input[type="range"],
button {
  font: inherit;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}

button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.button-strip {
  display: flex;
  gap: 0.65rem;
}

.status-pill {
  margin-left: auto;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.station-viewer {
  display: block;
}

.station-card {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.station-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.75rem;
}

.station-title-wrap h2 {
  margin: 0;
  font-size: 1.35rem;
}

.station-title-wrap p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.station-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-content: start;
  justify-content: end;
}

.station-links a {
  font-size: 0.92rem;
  text-decoration: none;
}

.station-body {
  padding: 0 1.1rem 1.1rem;
}

.station-image-link,
.station-image-link img {
  display: block;
  width: 100%;
}

.station-image-link {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f1f5ef;
  max-height: 590px;
  cursor: zoom-in;
}

.station-image-link img {
  height: auto;
}

.station-image-link.expanded {
  max-height: none;
  cursor: zoom-out;
}

.station-image-link.expanded img {
  height: auto;
}

.placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(221, 232, 222, 0.4), rgba(242, 247, 241, 0.9));
  color: var(--muted);
  padding: 1.5rem;
}

.resources {
  margin-top: 1rem;
}

.resource-card {
  padding: 1rem 1.25rem 1.25rem;
}

.resource-card h2 {
  margin: 0 0 0.8rem;
}

.resource-links {
  display: grid;
  gap: 0.7rem;
}

.legacy-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fcfdf9;
}

.legacy-link strong {
  display: block;
}

.legacy-link span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .banner {
    grid-template-columns: 1fr;
  }

  .status-pill {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 1rem, 100%);
  }

  .station-header {
    flex-direction: column;
  }

  .station-links {
    justify-content: start;
  }

  .button-strip {
    width: 100%;
  }

  .button-strip button {
    flex: 1 1 0;
  }
}
