@font-face {
  font-family: "Oswald Local";
  src: url("assets/oswald.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans Local";
  src: url("assets/work-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #2433c7;
  --blue-deep: #111858;
  --paper: #eff1ed;
  --ink: #111111;
  --orange: #ff5a1f;
  --yellow: #dfff3f;
  --sky: #9ee9ff;
  --rule: rgba(239, 241, 237, 0.34);
  --tune-angle: -48deg;
  color-scheme: light;
  font-family: "Work Sans Local", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--orange) var(--blue-deep);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--blue);
  color: var(--paper);
}

body::-webkit-scrollbar {
  width: 11px;
}

body::-webkit-scrollbar-track {
  background: var(--blue-deep);
}

body::-webkit-scrollbar-thumb {
  border: 3px solid var(--blue-deep);
  background: var(--orange);
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.station-header {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--paper);
}

.station-id {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 15px;
  width: max-content;
  padding: 0 28px;
  color: var(--paper);
  font-family: "Oswald Local", sans-serif;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.station-id b {
  color: var(--yellow);
  font-weight: 650;
}

.station-mark {
  width: 42px;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.station-mark i {
  display: block;
  width: 6px;
  background: var(--orange);
  animation: signal 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.station-mark i:nth-child(1) { height: 8px; }
.station-mark i:nth-child(2) { height: 22px; animation-delay: 100ms; }
.station-mark i:nth-child(3) { height: 15px; animation-delay: 180ms; }
.station-mark i:nth-child(4) { height: 26px; animation-delay: 260ms; }

@keyframes signal {
  from { height: 2px; }
}

.broadcast-date {
  margin: 0;
  font-family: "Oswald Local", sans-serif;
  font-size: 0.86rem;
  font-weight: 520;
  letter-spacing: 0.12em;
}

.broadcast-date span {
  color: var(--sky);
}

.set-toggle {
  justify-self: end;
  align-self: stretch;
  min-width: 155px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-left: 1px solid var(--paper);
  padding: 0 24px;
  background: transparent;
  color: var(--paper);
  font-family: "Oswald Local", sans-serif;
  font-weight: 560;
  letter-spacing: 0.06em;
}

.set-toggle strong {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.set-toggle[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--ink);
}

.set-toggle[aria-pressed="true"] strong {
  color: var(--ink);
}

.tuning-console {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) 2.1fr;
  min-height: 230px;
  border-bottom: 1px solid var(--paper);
}

.tuning-console h1 {
  display: flex;
  align-items: center;
  margin: 0;
  border-right: 1px solid var(--paper);
  padding: 25px 5vw 28px 28px;
  color: var(--paper);
  font-family: "Oswald Local", sans-serif;
  font-size: clamp(3.4rem, 5.4vw, 6rem);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 0.84;
  text-transform: uppercase;
}

.control-bank {
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) minmax(190px, 1fr) 150px;
  align-items: stretch;
}

.search-control,
.filter-control {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border-right: 1px solid var(--rule);
  padding: 28px;
}

.search-control > span:first-child,
.filter-control > span:first-child,
.signal-readout span,
.now-playing span,
.day-label span,
.track-category,
.detail-station,
.fact-label {
  font-family: "Oswald Local", sans-serif;
  font-size: 0.76rem;
  font-weight: 570;
  letter-spacing: 0.1em;
}

.search-field,
.select-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.search-field input,
.select-shell select {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 2px solid var(--paper);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  caret-color: var(--yellow);
  font-size: 1rem;
  font-weight: 580;
  outline: 0;
}

.search-field input {
  padding: 8px 8px 8px 38px;
}

.search-field input::placeholder {
  color: #c5caf0;
  opacity: 1;
}

.select-shell select {
  appearance: none;
  padding: 8px 40px 8px 0;
}

.select-shell option {
  background: var(--paper);
  color: var(--ink);
}

.select-shell svg {
  position: absolute;
  right: 0;
  width: 22px;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.search-field:focus-within input,
.select-shell:focus-within select {
  border-bottom-color: var(--yellow);
}

.signal-readout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: var(--orange);
  color: var(--ink);
  text-align: center;
}

.signal-readout strong {
  font-family: "Oswald Local", sans-serif;
  font-size: 4.6rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.signal-readout small {
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.broadcast-board {
  display: grid;
  grid-template-columns: minmax(305px, 0.78fr) 2.1fr;
  align-items: start;
}

.broadcast-dial {
  position: sticky;
  top: 0;
  min-height: 770px;
  overflow: hidden;
  border-right: 1px solid var(--paper);
  padding: 28px;
  background: var(--blue-deep);
}

.dial-copy {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--sky);
}

.dial-copy p {
  margin: 0;
  font-family: "Oswald Local", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.dial-copy strong {
  color: var(--paper);
  font-family: "Oswald Local", sans-serif;
  font-size: clamp(3.7rem, 5.6vw, 5.6rem);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 0.84;
  text-align: right;
}

.dial {
  position: relative;
  width: min(36vw, 430px);
  aspect-ratio: 1;
  margin: 58px 0 24px -30%;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent 0 17px,
    rgba(158, 233, 255, 0.11) 18px 19px
  );
}

.dial::before,
.dial::after,
.dial-ring-one,
.dial-ring-two {
  position: absolute;
  border: 1px solid var(--paper);
  border-radius: 50%;
  content: "";
}

.dial::before { inset: 10%; }
.dial::after { inset: 22%; border-color: var(--orange); }
.dial-ring-one { inset: 34%; border-color: var(--sky); }
.dial-ring-two { inset: 44%; background: var(--blue); }

.dial-needle {
  position: absolute;
  z-index: 3;
  top: 49.6%;
  left: 49.6%;
  width: 49%;
  height: 3px;
  transform: rotate(var(--tune-angle));
  transform-origin: left center;
  background: var(--yellow);
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dial-needle::after {
  position: absolute;
  right: -8px;
  top: -7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.dial-center {
  position: absolute;
  z-index: 4;
  inset: 41%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
}

.dial-center span {
  font-family: "Oswald Local", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 650;
  line-height: 1;
}

.dial-center small {
  max-width: 70px;
  overflow: hidden;
  font-size: 0.48rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.now-playing span {
  color: var(--yellow);
}

.now-playing p {
  max-width: 25ch;
  margin: 0;
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 610;
  line-height: 1.35;
}

.broadcast-note {
  position: absolute;
  bottom: 28px;
  left: 28px;
  margin: 0;
  color: #b8c0ea;
  font-size: 0.68rem;
}

.program-shell {
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
}

.program-heading {
  min-height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 2px solid var(--ink);
  padding: 26px 28px 20px;
}

.program-heading h2 {
  margin: 0;
  font-family: "Oswald Local", sans-serif;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.8;
}

.program-heading p {
  max-width: 40ch;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: right;
}

.program-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.day-column + .day-column {
  border-left: 2px solid var(--ink);
}

.day-label {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding: 16px 22px;
  background: var(--ink);
  color: var(--paper);
}

.day-label h3 {
  margin: 0;
  font-family: "Oswald Local", sans-serif;
  font-size: 2.1rem;
  font-weight: 570;
  letter-spacing: -0.02em;
  line-height: 1;
}

.day-label span {
  color: var(--yellow);
}

.track-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-row {
  position: relative;
  border-bottom: 1px solid var(--ink);
}

.event-row[data-saved="true"]::after {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.open-track {
  width: 100%;
  min-height: 129px;
  display: grid;
  grid-template-columns: 47px 1fr;
  gap: 13px;
  border: 0;
  padding: 17px 18px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition:
    background-color 180ms ease-out,
    color 180ms ease-out;
}

.open-track:hover,
.open-track:focus-visible {
  background: var(--sky);
}

.track-number {
  font-family: "Oswald Local", sans-serif;
  font-size: 2rem;
  font-weight: 350;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.track-copy {
  min-width: 0;
}

.track-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.track-category {
  color: var(--blue);
}

.track-price {
  font-size: 0.68rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.track-title {
  display: block;
  margin: 8px 0 10px;
  padding-right: 8px;
  font-size: 1rem;
  font-weight: 710;
  line-height: 1.12;
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #333333;
  font-size: 0.68rem;
  font-weight: 540;
  line-height: 1.35;
}

.track-meta .time {
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.track-meta .dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
}

.loading-state,
.empty-state,
.error-state {
  grid-column: 1 / -1;
  min-height: 540px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 40px;
  text-align: center;
}

.empty-state,
.error-state {
  align-content: center;
  gap: 18px;
  background: var(--yellow);
}

.empty-state strong,
.error-state strong {
  max-width: 12ch;
  font-family: "Oswald Local", sans-serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
}

.empty-state p,
.error-state p {
  max-width: 42ch;
  margin: 0;
  line-height: 1.5;
}

.reset-button,
.retry-button {
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 13px 19px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 750;
}

.reset-button:hover,
.retry-button:hover {
  background: var(--blue);
}

.station-footer {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--paper);
  padding: 22px 28px;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 650;
}

.station-footer p {
  margin: 0;
}

.station-footer p:first-child {
  font-family: "Oswald Local", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.station-footer span {
  display: inline-block;
  margin-left: 5px;
  padding: 3px 7px;
  background: var(--ink);
  color: var(--yellow);
}

.noscript-message {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 50;
  padding: 16px;
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
}

.detail-dialog {
  width: min(980px, calc(100vw - 48px));
  max-height: min(820px, calc(100vh - 48px));
  margin: auto;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(6, 8, 35, 0.38);
}

.detail-dialog::backdrop {
  background: rgba(17, 24, 88, 0.82);
}

.detail-layout {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.55fr);
}

.detail-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  padding: 28px;
  background: var(--orange);
}

.detail-side::after {
  position: absolute;
  right: -125px;
  bottom: 20px;
  width: 320px;
  height: 320px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent 0 19px,
    rgba(17, 17, 17, 0.22) 20px 21px
  );
  content: "";
}

.detail-station {
  position: relative;
  z-index: 1;
}

.detail-track-number {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Oswald Local", sans-serif;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 610;
  letter-spacing: -0.04em;
  line-height: 0.78;
}

.detail-day {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Oswald Local", sans-serif;
  font-size: 1.7rem;
  font-weight: 590;
  line-height: 1;
}

.detail-content {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-color: var(--blue) var(--paper);
}

.detail-toolbar {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  padding: 12px 18px 12px 28px;
}

.detail-category {
  font-family: "Oswald Local", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.close-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 760;
}

.close-detail svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.detail-main {
  padding: 36px 44px 42px;
}

.detail-main h2 {
  max-width: 12ch;
  margin: 0 0 30px;
  font-family: "Oswald Local", sans-serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.detail-body {
  max-width: 67ch;
  font-size: 0.96rem;
  line-height: 1.6;
}

.detail-body p {
  margin: 0 0 1em;
}

.detail-body p + p {
  border-top: 1px solid var(--ink);
  padding-top: 1em;
  font-weight: 620;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 32px 0;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.detail-fact {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 14px;
}

.fact-label {
  color: var(--blue);
}

.detail-fact strong {
  font-size: 0.86rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.save-item {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 14px 18px;
  background: var(--blue);
  color: var(--paper);
  font-weight: 750;
  text-align: left;
}

.save-item:hover {
  background: var(--blue-deep);
}

.save-item[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--ink);
}

.save-item svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.save-item[aria-pressed="true"] svg {
  fill: currentColor;
}

@media (max-width: 980px) {
  .tuning-console,
  .broadcast-board {
    grid-template-columns: minmax(250px, 0.72fr) 2fr;
  }

  .control-bank {
    grid-template-columns: 1fr 1fr;
  }

  .signal-readout {
    grid-column: 1 / -1;
    min-height: 74px;
    flex-direction: row;
    gap: 12px;
  }

  .signal-readout strong {
    font-size: 2.5rem;
  }

  .dial-copy {
    display: block;
  }

  .dial-copy p {
    margin-bottom: 15px;
  }

  .program-heading p {
    display: none;
  }

  .program-days {
    grid-template-columns: 1fr;
  }

  .day-column + .day-column {
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .station-header {
    min-height: 66px;
    grid-template-columns: 1fr auto;
  }

  .station-id {
    gap: 9px;
    padding: 0 15px;
    font-size: 1rem;
  }

  .station-mark {
    width: 28px;
    transform: scale(0.8);
    transform-origin: left center;
  }

  .broadcast-date {
    display: none;
  }

  .set-toggle {
    min-width: 116px;
    gap: 10px;
    padding: 0 14px;
    font-size: 0.75rem;
  }

  .set-toggle strong {
    min-width: 31px;
    min-height: 31px;
  }

  .tuning-console {
    display: block;
    min-height: 0;
  }

  .tuning-console h1 {
    min-height: 154px;
    border-right: 0;
    border-bottom: 1px solid var(--paper);
    padding: 22px 16px 24px;
    font-size: clamp(3.7rem, 17vw, 5.2rem);
  }

  .control-bank {
    grid-template-columns: 1fr 96px;
  }

  .search-control,
  .filter-control {
    grid-column: 1;
    min-width: 0;
    border-right: 1px solid var(--paper);
    padding: 17px 16px;
  }

  .search-control {
    border-bottom: 1px solid var(--rule);
  }

  .signal-readout {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    gap: 0;
    padding: 10px;
  }

  .signal-readout strong {
    font-size: 3.8rem;
  }

  .broadcast-board {
    display: block;
  }

  .broadcast-dial {
    position: relative;
    min-height: 225px;
    display: grid;
    grid-template-columns: 1fr 148px;
    grid-template-rows: 1fr auto;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--paper);
    padding: 20px 16px;
  }

  .dial-copy {
    display: block;
  }

  .dial-copy p {
    margin-bottom: 14px;
    font-size: 0.8rem;
  }

  .dial-copy strong {
    font-size: 3.7rem;
  }

  .dial {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 210px;
    margin: 0 -82px 0 0;
  }

  .now-playing {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 11px;
  }

  .now-playing p {
    max-width: 23ch;
    font-size: 0.76rem;
  }

  .broadcast-note {
    display: none;
  }

  .program-heading {
    min-height: 88px;
    padding: 22px 16px 15px;
  }

  .program-heading h2 {
    font-size: 3.2rem;
  }

  .day-label {
    min-height: 72px;
    padding: 14px 16px;
  }

  .open-track {
    min-height: 123px;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 16px;
  }

  .track-number {
    font-size: 1.75rem;
  }

  .track-title {
    max-width: 26ch;
  }

  .station-footer {
    align-items: flex-start;
    gap: 20px;
    padding: 20px 16px;
  }

  .station-footer p:last-child {
    max-width: 18ch;
    text-align: right;
  }

  .detail-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    overflow-y: auto;
  }

  .detail-layout {
    min-height: 100dvh;
    display: block;
  }

  .detail-side {
    min-height: 184px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
    padding: 18px 16px;
  }

  .detail-side::after {
    right: -82px;
    bottom: -105px;
    width: 250px;
    height: 250px;
  }

  .detail-track-number {
    grid-row: 2;
    align-self: end;
    font-size: 6.2rem;
  }

  .detail-day {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    max-width: 8ch;
    text-align: right;
  }

  .detail-content {
    max-height: none;
    overflow: visible;
  }

  .detail-toolbar {
    position: sticky;
    z-index: 5;
    top: 0;
    min-height: 60px;
    padding: 9px 8px 9px 16px;
    background: var(--paper);
  }

  .detail-main {
    padding: 28px 16px 34px;
  }

  .detail-main h2 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .detail-facts {
    margin: 26px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
