@font-face {
  font-family: "MiReader Noto Serif";
  src: url("/fonts/NotoSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MiReader Noto Serif";
  src: url("/fonts/NotoSerif-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "MiReader Roboto Condensed";
  src: url("/fonts/RobotoCondensed-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MiReader Roboto Condensed";
  src: url("/fonts/RobotoCondensed-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "MiReader Roboto Condensed";
  src: url("/fonts/RobotoCondensed-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #111;
  --paper: #fff;
  --muted: #555;
  --line: #111;
  --soft: #e8e8e8;
  --ui: "MiReader Noto Serif", Georgia, serif;
  --ui-condensed: "MiReader Roboto Condensed", "Avenir Next Condensed", "DIN Condensed", sans-serif-condensed, sans-serif;
  --digits: "MiReader Noto Serif", Georgia, serif;
  --dashboard-base-width: 1500px;
  --dashboard-base-height: 840px;
  --dashboard-scale: 1;
  --dashboard-fit-width: var(--dashboard-base-width);
  --dashboard-fit-height: var(--dashboard-base-height);
  --dashboard-scale-mode: contain;
  --hour-temp-size: 13px;
  --hour-time-size: 9px;
  --hour-rain-size: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
}

body {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
}

.dashboard-frame {
  position: relative;
  width: var(--dashboard-fit-width);
  height: var(--dashboard-fit-height);
  margin: 0 auto;
  overflow: hidden;
}

.board {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--dashboard-base-width);
  height: var(--dashboard-base-height);
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 14px clamp(12px, 1.2vw, 18px);
  display: grid;
  grid-template-columns: 240px minmax(430px, 1fr) minmax(400px, 0.9fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "topline weather hours"
    "transport transport transport";
  grid-gap: 12px;
  gap: 12px;
  overflow: hidden;
  transform: scale(var(--dashboard-scale));
  transform-origin: top left;
}

.board > *,
.weather,
.weather-current,
.weather-grid,
.transport,
.stops,
.stop,
.direction-grid,
.direction,
.departure {
  min-width: 0;
}

.topline {
  grid-area: topline;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border: 3px solid var(--line);
  padding: 12px;
}

.eyebrow,
.label,
.route,
.kind {
  font-family: var(--ui-condensed);
  letter-spacing: 0;
}

.eyebrow,
.label {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.9;
  font-family: var(--digits);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.panel {
  border: 3px solid var(--line);
  padding: 12px;
}

.weather {
  grid-area: weather;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 0;
  align-items: stretch;
}

.time-current,
.weather-current {
  display: grid;
  align-content: start;
}

.weather-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  justify-self: stretch;
  box-sizing: border-box;
  grid-column-gap: 8px;
  column-gap: 8px;
  width: 100%;
  font-size: 70px;
  font-family: var(--digits);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.current-temp {
  display: inline-block;
  align-self: center;
  justify-self: center;
  min-width: 0;
  line-height: 0.9;
  white-space: nowrap;
}

.current-temp small {
  margin-left: 0.16em;
  font-size: 28px;
  line-height: 0;
  vertical-align: baseline;
}

.summary {
  display: inline-block;
  align-self: center;
  justify-self: center;
  width: 0.86em;
  height: 0.86em;
  color: var(--ink);
  font-size: 1em;
  line-height: 1;
  text-align: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.weather-icon-clear { background-image: url("/icons/weather/sun.svg"); }
.weather-icon-partly { background-image: url("/icons/weather/cloud-sun.svg"); }
.weather-icon-cloud { background-image: url("/icons/weather/cloud.svg"); }
.weather-icon-fog { background-image: url("/icons/weather/cloud-fog.svg"); }
.weather-icon-rain { background-image: url("/icons/weather/cloud-rain.svg"); }
.weather-icon-storm { background-image: url("/icons/weather/cloud-lightning.svg"); }
.weather-icon-unavailable { background-image: url("/icons/weather/circle.svg"); }

.weather-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 2px solid var(--line);
}

.weather-grid div {
  display: grid;
  align-content: center;
  min-width: 0;
  border-right: 2px solid var(--line);
  padding: 8px 10px;
}

.weather-grid div:last-child {
  border-right: 0;
}

.weather-grid b {
  display: block;
  font-family: var(--ui-condensed);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.05;
}

.weather-grid b small {
  font-family: var(--ui-condensed);
  font-size: 0.58em;
  font-weight: 700;
  line-height: 1;
}

.weather-grid span {
  display: block;
  color: var(--muted);
  font-family: var(--ui-condensed);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hours {
  grid-area: hours;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border: 3px solid var(--line);
}

.hour {
  min-width: 0;
  border-right: 2px solid var(--line);
  padding: 7px 5px;
  text-align: center;
  font-family: var(--ui-condensed);
}

.hour:last-child {
  border-right: 0;
}

.hour b,
.hour span {
  display: block;
}

.hour b {
  font-family: var(--ui-condensed);
  font-size: var(--hour-time-size);
  font-variant-numeric: tabular-nums;
}

.hour .deg {
  font-family: var(--ui-condensed);
  font-size: var(--hour-temp-size);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hour span:last-child {
  font-size: var(--hour-rain-size);
}

.stops {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  min-height: 0;
}

.transport {
  grid-area: transport;
  display: grid;
  min-height: 0;
}

.skeleton {
  color: var(--ink);
}

.skel-line {
  display: block;
  width: 58%;
  height: 0.72em;
  margin: 0.12em 0;
  background: transparent;
  border: 0;
  color: transparent;
  overflow: hidden;
}

.skel-line.mid {
  width: 72%;
}

.skel-line.wide {
  width: 80%;
}

.skel-line.long {
  width: 88%;
}

.train-headsign .skel-line {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.skeleton-stops .skel-line {
  height: 12px;
  margin-top: 2px;
}

.skeleton-route-block,
.skeleton-route-pill,
.skeleton-due,
.skeleton-mini-due {
  display: block;
  background: transparent;
  border: 0;
  color: transparent;
}

.skeleton-route-block {
  width: 28px;
  height: 18px;
}

.skeleton-route-pill {
  width: 20px;
  height: 16px;
}

.skeleton-due {
  width: 50px;
  height: 36px;
}

.skeleton-mini-due {
  justify-self: end;
  width: 34px;
  height: 18px;
  border-width: 1px;
}

.skeleton-primary {
  background: transparent;
}

.skeleton-stops {
  display: grid;
  align-items: stretch;
  padding-right: 58px;
}

.skeleton-stop-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  height: 100%;
  min-height: 36px;
  border-top: 0;
}

.skeleton-stop-map span {
  position: relative;
  height: 100%;
}

.skeleton-stop-map span::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  background: transparent;
}

.skeleton-stop-map span:nth-child(even)::before {
  top: auto;
  bottom: -4px;
}

.skeleton-secondary .train-next-row {
  grid-template-columns: 22px minmax(0, 1fr) 38px;
}

.skeleton .skeleton-desktop-extra {
  display: none;
}

.skeleton-direction {
  --skeleton-direction-rows: 4;
  grid-template-rows: auto minmax(0, 1fr);
}

.skeleton-direction .direction-body {
  grid-template-rows: repeat(var(--skeleton-direction-rows), minmax(0, 1fr));
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--soft) calc(100% - 1px));
  background-repeat: repeat-y;
  background-size: 100% calc(100% / var(--skeleton-direction-rows));
}

.skeleton-departure {
  border-bottom: 0;
  color: transparent;
}

.skeleton-departure .skel-line {
  align-self: center;
  height: 10px;
  margin: 0;
}

.hours.skeleton .hour {
  color: transparent;
}

.hours.skeleton .hour b,
.hours.skeleton .hour span {
  display: block;
  height: 9px;
  background: transparent;
  border: 0;
  color: transparent;
}

.hours.skeleton .hour b {
  width: 58%;
}

.hours.skeleton .hour .deg {
  width: 42%;
  height: 16px;
}

.hours.skeleton .hour span:last-child {
  width: 76%;
}

.stop {
  border: 3px solid var(--line);
  min-width: 0;
}

.stop.directional {
  --direction-route-col: max-content;
  --direction-due-col: 42px;
  --direction-row-gap: 4px;
  --direction-row-min-height: 32px;
  --direction-row-padding: 5px 8px;
  --direction-route-size: 14px;
  --direction-dest-size: 13px;
  --direction-due-size: 21px;
  --direction-line-height: 1.05;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  min-height: 128px;
  overflow: hidden;
}

.direction {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border-right: 2px solid var(--line);
  overflow: hidden;
}

.direction:last-child {
  border-right: 0;
}

.direction-body {
  display: grid;
  grid-template-rows: repeat(4, minmax(32px, 1fr));
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.direction-body.has-column-notice {
  grid-template-rows: minmax(128px, 1fr);
}

.direction-title {
  display: none;
}

.direction-notice {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  align-content: center;
  min-height: 72px;
  grid-column-gap: 8px;
  gap: 8px;
  padding: 10px 12px;
  font-family: var(--ui-condensed);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.board-notice {
  grid-column: 1 / -1;
  min-height: 128px;
}

.column-notice {
  min-height: 128px;
}

.direction-notice span {
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  font-family: var(--digits);
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.stop-head {
  padding: 7px 8px;
  border-bottom: 2px solid var(--line);
  display: flex;
  justify-content: space-between;
  column-gap: 6px;
}

.stop-name {
  font-family: var(--ui);
  font-size: 18px;
  font-weight: 700;
}

.kind {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 750;
  text-align: right;
  text-transform: uppercase;
}

.train-board-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  grid-column-gap: 8px;
  column-gap: 8px;
}

.train-alert-ticker {
  height: 18px;
  min-width: 0;
  overflow: hidden;
  font-family: var(--ui-condensed);
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.train-alert-item {
  display: none;
  height: 18px;
  overflow: hidden;
  white-space: nowrap;
}

.train-alert-item.is-active {
  display: block;
}

.train-alert-badge {
  display: inline-block;
  margin-right: 4px;
  border: 1px solid var(--line);
  padding: 0 3px;
  font-size: 11px;
  line-height: 14px;
  vertical-align: 1px;
}

.departure {
  display: grid;
  grid-template-columns: 42px 1fr 44px;
  grid-column-gap: 6px;
  gap: 6px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--soft);
  min-height: 48px;
}

.departure.compact {
  grid-template-columns: 34px 1fr 52px;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px;
}

.stop.directional .departure.compact {
  grid-template-columns: var(--direction-route-col) minmax(0, 1fr) var(--direction-due-col);
  grid-column-gap: var(--direction-row-gap);
  gap: var(--direction-row-gap);
  height: 100%;
  min-height: 0;
  padding: var(--direction-row-padding);
  overflow: hidden;
}

.stop.directional .route {
  font-size: var(--direction-dest-size);
  line-height: var(--direction-line-height);
}

.stop.directional .dest {
  font-size: var(--direction-dest-size);
  line-height: var(--direction-line-height);
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}

.stop.directional .due {
  justify-self: end;
  width: var(--direction-due-col);
  min-width: var(--direction-due-col);
  overflow: visible;
  font-size: var(--direction-due-size);
  line-height: 1;
  white-space: nowrap;
}

.departure.is-empty {
  color: transparent;
}

.departure:last-child {
  border-bottom: 0;
}

.train-platforms {
  display: grid;
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.metro {
  grid-column: 4 / span 2;
  grid-row: 1;
}

.light_rail {
  grid-column: 4 / span 2;
  grid-row: 2;
}

.train-platforms .stop-head {
  align-items: baseline;
}

.platform-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: 0;
  overflow: hidden;
}

.platform-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.platform-card:nth-child(3n) {
  border-right: 0;
}

.platform-card:nth-last-child(-n+3) {
  border-bottom: 0;
}

.platform-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 5px 7px;
  grid-column-gap: 7px;
  column-gap: 7px;
  gap: 7px;
}

.platform-number {
  font-family: var(--digits);
  font-size: 32px;
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
}

.platform-kind,
.line-badge,
.service-badge {
  font-family: var(--ui-condensed);
  font-weight: 900;
  text-transform: uppercase;
}

.platform-kind {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.05;
  overflow: hidden;
  white-space: nowrap;
}

.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  border: 1px solid var(--line);
  padding: 0 2px;
  font-size: 13px;
  height: 17px;
  line-height: 1;
  vertical-align: middle;
}

.train-primary {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 7px;
  column-gap: 7px;
  grid-column-gap: 7px;
  grid-row-gap: 4px;
  gap: 4px 7px;
}

.train-primary-placeholder {
  align-content: center;
}

.train-main {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  padding-right: 66px;
  grid-column-gap: 4px;
  column-gap: 4px;
}

.train-main .service-badge {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 2;
  margin-left: 0;
  transform: translateY(-50%);
}

.train-primary .route {
  font-size: 18px;
}

.train-headsign {
  min-width: 0;
  overflow: hidden;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  height: 15px;
  padding: 0 4px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.service-badge.is-hidden {
  visibility: hidden;
}

.service-badge.small {
  justify-self: start;
  color: var(--muted);
  border-color: var(--soft);
  font-size: 8px;
}

.train-destination {
  grid-column: 1;
  min-width: 0;
  font-family: var(--ui);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.04;
  overflow: hidden;
}

.train-stop-ticker {
  --train-stop-row-height: 16px;
  position: relative;
  grid-column: 1;
  min-width: 0;
  height: 80px;
  padding-right: 52px;
  overflow: hidden;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
}

.train-stop-track {
  position: absolute;
  top: 0;
  right: 52px;
  left: 0;
  transform: none;
  animation-name: train-stop-scroll;
  animation-iteration-count: infinite;
}

.train-stop {
  height: var(--train-stop-row-height);
  overflow: hidden;
  white-space: nowrap;
}

@keyframes train-stop-scroll {
  0% { top: 0; }
  100% { top: var(--stop-scroll-distance); }
}

.train-due {
  position: absolute;
  right: 7px;
  bottom: 7px;
  font-family: var(--ui-condensed);
  font-size: 38px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 0.82;
  text-align: right;
}

.train-due small {
  font-size: 0.46em;
  line-height: 1;
}

.platform-secondary {
  border-top: 1px solid var(--soft);
}

.train-next-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto 38px;
  align-items: center;
  min-width: 0;
  min-height: 28px;
  padding: 4px 7px;
  border-bottom: 1px solid var(--soft);
  grid-column-gap: 5px;
  column-gap: 5px;
  gap: 5px;
}

.train-next-row:last-child {
  border-bottom: 0;
}

.train-next-row.is-empty {
  color: transparent;
}

.train-next-row .route,
.train-next-row .dest {
  font-size: 11px;
  line-height: 1.02;
}

.train-next-row .dest {
  white-space: nowrap;
}

.platform-empty {
  align-self: center;
  text-align: center;
}

.platform-status {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-self: stretch;
  align-items: center;
  min-width: 0;
  padding: 7px;
  grid-column-gap: 6px;
  column-gap: 6px;
  font-family: var(--ui-condensed);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.status-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  font-family: var(--digits);
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.route {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.dest {
  min-width: 0;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  overflow: hidden;
}

.platform {
  color: var(--muted);
  font-size: 11px;
  font-family: var(--ui-condensed);
}

.due {
  font-family: var(--ui-condensed);
  text-align: right;
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.due small {
  font-family: var(--ui-condensed);
  font-size: 0.62em;
  font-weight: 900;
  line-height: 1;
}

.empty,
.error {
  padding: 10px;
  font-family: var(--ui);
  font-weight: 700;
}

.error {
  border: 3px solid var(--line);
  background: repeating-linear-gradient(45deg, #fff, #fff 7px, #eee 7px, #eee 14px);
}

@media (min-width: 1201px) {
  :root {
    --hour-temp-size: clamp(18px, 1.18vw, 21px);
    --hour-time-size: clamp(13px, 0.83vw, 15px);
    --hour-rain-size: clamp(11px, 0.7vw, 13px);
  }

  .board {
    grid-template-columns: 220px minmax(390px, 0.78fr) minmax(460px, 1.22fr);
  }

  .eyebrow,
  .label {
    font-size: 14px;
    line-height: 1;
  }

  .topline {
    padding: 12px;
  }

  h1 {
    font-size: 74px;
    line-height: 0.86;
  }

  .panel {
    padding: 13px 14px;
  }

  .weather {
    grid-template-columns: minmax(185px, 0.82fr) minmax(0, 1.18fr);
  }

  .weather.panel {
    padding: 0;
  }

  .weather-current {
    align-content: center;
    padding: 13px 14px;
  }

  .weather-main {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-column-gap: 8px;
    column-gap: 8px;
    font-size: 70px;
    line-height: 0.88;
  }

  .current-temp small {
    font-size: 27px;
  }

  .weather-grid b {
    font-size: 25px;
    line-height: 1;
  }

  .weather-grid span {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1;
  }

  .weather-grid {
    align-self: stretch;
    height: 100%;
  }

  .weather-grid div {
    align-content: center;
    justify-items: center;
    padding: 8px 8px;
    text-align: center;
  }

  .hour b {
    font-size: var(--hour-time-size);
    line-height: 1;
  }

  .hour .deg {
    font-size: var(--hour-temp-size);
    line-height: 1.06;
  }

  .hour span:last-child {
    font-size: var(--hour-rain-size);
    line-height: 1;
  }

  .hour {
    display: grid;
    grid-template-rows: repeat(3, auto);
    align-content: center;
    justify-items: center;
    row-gap: 3px;
    min-height: 100%;
    padding: 0 6px;
  }

  .hours.skeleton .hour b {
    height: 12px;
  }

  .hours.skeleton .hour .deg {
    height: 20px;
  }

  .hours.skeleton .hour span:last-child {
    height: 11px;
  }

  .skeleton-stop-map {
    min-height: 70px;
  }

  .skeleton-route-block {
    width: 34px;
    height: 22px;
  }

  .skeleton-due {
    width: 62px;
    height: 44px;
  }

  .skeleton-mini-due {
    width: 42px;
    height: 22px;
  }

  .skeleton .skeleton-desktop-extra {
    display: grid;
  }

  .skeleton-secondary {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .skeleton-direction .direction-body {
    --skeleton-direction-rows: 8;
  }

  .stop.directional {
    --direction-due-col: clamp(76px, 4.8vw, 88px);
    --direction-row-gap: 7px;
    --direction-row-min-height: 37px;
    --direction-row-padding: 2px 10px;
    --direction-route-size: clamp(16px, 1.05vw, 18px);
    --direction-dest-size: clamp(18px, 1.18vw, 21px);
    --direction-due-size: clamp(33px, 2.2vw, 38px);
    --direction-line-height: 1;
  }

  .direction-notice {
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.12;
  }

  .stop-name {
    font-size: 21px;
    line-height: 1.02;
  }

  .kind {
    font-size: 11px;
    line-height: 1;
  }

  .stop-head {
    align-items: baseline;
    padding: 9px 10px;
  }

  .train-board-head {
    display: flex;
    align-items: center;
    padding: 9px 10px;
  }

  .train-platforms .train-board-head {
    align-items: center;
  }

  .train-alert-ticker {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 20px;
    font-size: 15px;
    line-height: 20px;
  }

  .train-alert-badge {
    display: inline-flex;
    align-items: center;
    height: 16px;
    margin-right: 6px;
    padding: 0 5px;
    font-size: 11px;
    line-height: 1;
    vertical-align: 0;
  }

  .train-alert-track {
    width: 100%;
    min-width: 0;
  }

  .train-alert-item {
    align-items: center;
    justify-content: center;
    height: 20px;
    line-height: 20px;
  }

  .train-alert-item.is-active {
    display: flex;
  }

  .platform-card-head {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 7px 9px;
    grid-column-gap: 8px;
    column-gap: 8px;
  }

  .platform-card {
    grid-template-rows: auto minmax(0, 1fr) minmax(calc(var(--secondary-row-count, 2) * 38px), auto);
  }

  .platform-number {
    font-size: 36px;
    line-height: 0.88;
  }

  .platform-kind,
  .line-badge {
    font-size: 14px;
  }

  .line-badge {
    height: 18px;
    padding: 0 3px;
  }

  .train-main {
    grid-template-columns: 30px minmax(0, 1fr);
    padding-right: 72px;
    grid-column-gap: 6px;
    column-gap: 6px;
  }

  .train-primary {
    padding: 9px;
    grid-row-gap: 5px;
    row-gap: 5px;
  }

  .train-primary .route {
    font-size: 18px;
    line-height: 1;
  }

  .train-headsign {
    font-size: 14px;
    line-height: 1;
  }

  .service-badge {
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
  }

  .service-badge.small {
    font-size: 8px;
  }

  .train-destination {
    font-size: 20px;
    line-height: 1.06;
  }

  .train-stop-ticker {
    --train-stop-row-height: 20px;
    align-self: stretch;
    height: auto;
    min-height: 0;
    font-size: 18px;
    line-height: var(--train-stop-row-height);
  }

  .train-stop {
    height: var(--train-stop-row-height);
  }

  .train-due {
    right: 9px;
    bottom: 8px;
    font-size: 41px;
  }

  .platform-secondary {
    display: grid;
    min-height: calc(var(--secondary-row-count, 2) * 38px);
  }

  .train-next-row {
    grid-template-columns: 30px minmax(0, 1fr) 52px;
    min-height: 38px;
    padding: 4px 10px;
    grid-column-gap: 7px;
    column-gap: 7px;
  }

  .train-next-row .service-badge {
    display: none;
  }

  .train-next-row .route,
  .train-next-row .dest {
    font-size: 18px;
    line-height: 1;
  }

  .train-next-row .due {
    font-size: 30px;
    line-height: 0.9;
  }

  .platform-status {
    grid-template-columns: 25px minmax(0, 1fr);
    padding: 8px 9px;
    font-size: 14px;
    line-height: 1.08;
  }

  .status-mark,
  .direction-notice span {
    width: 25px;
    height: 25px;
    font-size: 19px;
    line-height: 21px;
  }

  .route,
  .dest {
    font-size: 15px;
    line-height: 1.08;
  }

  .platform {
    font-size: 12px;
    line-height: 1;
  }

  .due {
    font-size: 24px;
    line-height: 0.96;
  }
}

@media (min-width: 561px) and (max-width: 1200px) {
  :root {
    --dashboard-base-width: 758px;
    --dashboard-base-height: 960px;
    --dashboard-scale-mode: width;
    --hour-temp-size: 15px;
    --hour-time-size: 11px;
    --hour-rain-size: 10px;
  }

}

@media (max-width: 1200px) {
  body {
    overflow-y: auto;
  }

  .board {
    max-width: none;
    height: var(--dashboard-base-height);
    min-height: 0;
    overflow: hidden;
    padding: 8px 10px;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "topline weather"
      "hours hours"
      "transport transport";
    grid-column-gap: 6px;
    grid-row-gap: 5px;
    column-gap: 6px;
    row-gap: 5px;
  }

  .panel,
  .topline,
  .hours,
  .stop {
    border-width: 2px;
  }

  .topline {
    grid-area: topline;
    display: grid;
    align-items: center;
    height: 76px;
    border: 2px solid var(--line);
    padding: 8px 10px;
  }

  .time-current {
    align-content: center;
    justify-content: center;
    grid-row-gap: 4px;
    row-gap: 4px;
  }

  .eyebrow,
  .label {
    font-size: 11px;
    line-height: 1;
  }

  .eyebrow {
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  h1 {
    margin-top: 0;
    font-size: 48px;
    line-height: 0.76;
  }

  .weather {
    grid-area: weather;
    grid-template-columns: 124px minmax(0, 1fr);
    height: 76px;
    padding: 0;
  }

  .weather-current {
    display: grid;
    align-content: center;
    justify-content: stretch;
    min-width: 0;
    padding: 0;
    border-right: 1px solid var(--line);
  }

  .weather-current .label {
    display: none;
  }

  .weather-main {
    position: static;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    grid-column-gap: 8px;
    column-gap: 8px;
    padding: 0 10px;
    margin-top: 0;
    font-size: 38px;
    line-height: 0.82;
    transform: none;
  }

  .current-temp small {
    font-size: 15px;
  }

  .summary {
    align-self: center;
    justify-self: center;
    font-size: 1em;
    line-height: 1;
  }

  .panel {
    padding: 6px 8px;
  }

  .weather.panel {
    padding: 0;
  }

  .weather-grid {
    border-left: 0;
  }

  .weather-grid div {
    justify-items: center;
    padding: 8px 5px;
    border-right-width: 1px;
    text-align: center;
  }

  .weather-grid b {
    font-size: 22px;
    line-height: 0.9;
  }

  .weather-grid span {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1;
  }

  .hours {
    grid-area: hours;
  }

  .hour {
    padding: 4px;
    border-right-width: 1px;
  }

  .hour b {
    font-size: 11px;
  }

  .hour .deg {
    font-size: 15px;
  }

  .hour span:last-child {
    font-size: 10px;
  }

  .hours.skeleton .hour b {
    height: 11px;
  }

  .hours.skeleton .hour .deg {
    height: 15px;
  }

  .hours.skeleton .hour span:last-child {
    height: 10px;
  }

  .transport {
    grid-area: transport;
  }

  .stops {
    align-content: start;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    grid-template-rows: max-content max-content;
    grid-gap: 7px;
    gap: 7px;
  }

  .stop {
    display: grid;
    grid-template-columns: 126px 1fr;
  }

  .stop.train-platforms {
    grid-column: 1 / -1;
    grid-row: auto;
    display: block;
  }

  .metro,
  .light_rail {
    grid-column: auto;
    grid-row: auto;
  }

  .train-platforms .stop-head {
    display: flex;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 5px 8px;
  }

  .train-platforms .train-board-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    grid-column-gap: 6px;
    column-gap: 6px;
  }

  .train-alert-ticker {
    font-size: 11px;
  }

  .platform-board {
    grid-template-rows: repeat(2, minmax(116px, 1fr));
  }

  .platform-card-head {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 4px 6px;
    grid-column-gap: 5px;
    column-gap: 5px;
    gap: 5px;
  }

  .platform-number {
    font-size: 26px;
  }

  .platform-kind {
    font-size: 11px;
  }

  .line-badge {
    margin-left: 3px;
    padding: 0 1px;
    font-size: 11px;
    height: 15px;
    line-height: 1;
  }

  .train-primary {
    padding: 5px 6px;
  }

  .skeleton-route-block {
    width: 22px;
    height: 15px;
  }

  .skeleton-route-pill {
    width: 17px;
    height: 13px;
  }

  .skeleton-due {
    width: 38px;
    height: 28px;
  }

  .skeleton-mini-due {
    width: 28px;
    height: 15px;
  }

  .skeleton-stop-map {
    min-height: 32px;
  }

  .skeleton-secondary .train-next-row {
    grid-template-columns: 18px minmax(0, 1fr) 30px;
  }

  .train-primary .route {
    font-size: 15px;
  }

  .train-main {
    grid-template-columns: 22px minmax(0, 1fr);
    padding-right: 48px;
    grid-column-gap: 3px;
    column-gap: 3px;
  }

  .train-headsign {
    font-size: 11px;
  }

  .service-badge {
    height: 13px;
    padding: 0 3px;
    font-size: 7px;
    line-height: 1;
  }

  .train-destination {
    font-size: 15px;
    line-height: 1.02;
  }

  .train-stop-ticker {
    --train-stop-row-height: 16px;
    font-size: 14px;
    line-height: 16px;
  }

  .train-due {
    right: 6px;
    bottom: 5px;
    font-size: 31px;
  }

  .train-next-row {
    grid-template-columns: 18px minmax(0, 1fr) 34px;
    min-height: 23px;
    padding: 3px 6px;
    grid-column-gap: 4px;
    column-gap: 4px;
    gap: 4px;
  }

  .train-next-row .service-badge {
    display: none;
  }

  .train-next-row .route,
  .train-next-row .dest {
    font-size: 10px;
  }

  .platform-status {
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 5px 6px;
    grid-column-gap: 5px;
    column-gap: 5px;
    font-size: 11px;
    line-height: 1.05;
  }

  .status-mark {
    width: 20px;
    height: 20px;
    font-size: 15px;
    line-height: 16px;
  }

  .direction-notice span {
    width: 20px;
    height: 20px;
    font-size: 15px;
    line-height: 16px;
  }

  .stop.directional {
    --direction-route-col: 26px;
    --direction-due-col: 44px;
    --direction-row-gap: 4px;
    --direction-row-min-height: 29px;
    --direction-row-padding: 4px 6px;
    --direction-route-size: 12px;
    --direction-dest-size: 12px;
    --direction-due-size: 17px;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    display: grid;
  }

  .stop.directional .direction-grid {
    grid-column: 1;
    grid-row: 2;
  }

  .stop-head {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    display: block;
  }

  .stop.directional .stop-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 5px 8px;
  }

  .stop.directional .stop-name {
    font-size: 16px;
  }

  .stop.directional .kind {
    font-size: 9px;
  }

  .direction-notice {
    padding-top: 0;
    padding-bottom: 0;
  }

  .departure {
    grid-template-columns: 42px 1fr 42px;
    min-height: 38px;
    padding: 5px 7px;
  }

  .direction .departure {
    grid-template-columns: 26px 1fr 44px;
    grid-column-gap: 4px;
    gap: 4px;
    align-items: center;
    min-height: 29px;
    padding: 4px 6px;
  }

  .direction-grid,
  .board-notice,
  .column-notice {
    min-height: 116px;
  }

  .direction-body {
    grid-template-rows: repeat(4, minmax(29px, 1fr));
  }

  .direction-body.has-column-notice {
    grid-template-rows: minmax(116px, 1fr);
  }

  .direction {
    border-right-width: 1px;
  }

  .stop.directional .route,
  .stop.directional .dest,
  .direction .route,
  .direction .dest {
    font-size: 12px;
    line-height: 1.05;
  }

  .stop.directional .due,
  .direction .due {
    width: auto;
    min-width: 44px;
    font-size: 17px;
    line-height: 1;
  }

  .stop.light_rail .direction .departure,
  .stop.light_rail .direction .departure.compact {
    grid-template-columns: 18px minmax(0, 1fr) 40px;
    grid-column-gap: 2px;
    gap: 2px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .stop.light_rail .direction .route {
    font-size: 12px;
    font-weight: 800;
  }

  .stop.light_rail .direction .dest {
    font-size: 10px;
  }

  .stop.light_rail .direction .due {
    min-width: 40px;
  }

}

@media (min-width: 561px) and (max-width: 1200px) {
  body {
    display: block;
    overflow-x: hidden;
    place-items: initial;
  }

  .dashboard-frame {
    width: 100% !important;
    max-width: none;
    height: auto !important;
    min-height: 100vh;
    margin: 0 auto;
    overflow: visible;
  }

  .board {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 100vh;
    margin: 0 auto;
    transform: none;
  }

  .transport {
    display: block;
  }

  .stops {
    align-content: normal;
    height: auto;
    grid-template-rows: none;
  }

  .stop.train-platforms {
    display: block;
  }

  .platform-board {
    height: auto;
    min-height: 0;
  }

  .metro,
  .light_rail,
  .stop.directional,
  .stop.directional .direction-grid {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --dashboard-base-width: 390px;
    --dashboard-base-height: auto;
    --dashboard-scale-mode: width;
  }

  body {
    display: block;
    overflow-y: auto;
    place-items: initial;
  }

  .dashboard-frame {
    width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: visible;
  }

  .board {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    transform: none;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "topline weather"
      "hours hours"
      "transport transport";
  }

  .topline {
    height: 92px;
    min-height: 0;
  }

  .weather {
    grid-template-columns: 96px minmax(0, 1fr);
    height: 92px;
    min-height: 0;
  }

  .weather-current {
    padding: 7px 7px;
    border-right: 1px solid var(--line);
  }

  .weather-main {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 5px;
    padding: 0;
    font-size: 28px;
  }

  .current-temp small {
    font-size: 11px;
  }

  .weather-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 0;
  }

  .weather-grid div {
    display: grid;
    align-content: center;
    justify-items: center;
    min-width: 0;
    min-height: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 4px;
    text-align: center;
  }

  .weather-grid div:nth-child(2n) {
    border-right: 0;
  }

  .weather-grid div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .weather-grid b {
    font-size: 16px;
  }

  .weather-grid span {
    margin-top: 3px;
    font-size: 8px;
  }

  .hours {
    grid-template-columns: repeat(4, 1fr);
  }

  .hours.skeleton .hour {
    row-gap: 3px;
  }

  .hours.skeleton .hour b {
    width: 64%;
    height: 8px;
  }

  .hours.skeleton .hour .deg {
    width: 48%;
    height: 13px;
  }

  .hours.skeleton .hour span:last-child {
    width: 82%;
    height: 8px;
  }

  .hour:nth-child(4n) {
    border-right: 0;
  }

  .hour:nth-child(n+5) {
    border-top: 1px solid var(--line);
  }

  .transport,
  .stops {
    display: block;
  }

  .stop,
  .stop.directional {
    display: block;
    margin-bottom: 8px;
  }

  .stop:last-child {
    margin-bottom: 0;
  }

  .platform-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(128px, auto));
  }

  .skeleton-route-block {
    width: 20px;
    height: 14px;
  }

  .skeleton-route-pill {
    width: 16px;
    height: 12px;
  }

  .skeleton-due {
    width: 34px;
    height: 25px;
  }

  .skeleton-mini-due {
    width: 25px;
    height: 14px;
  }

  .skeleton-stop-map {
    min-height: 26px;
  }

  .skeleton-secondary .train-next-row {
    grid-template-columns: 17px minmax(0, 1fr) 26px;
  }

  .platform-card:nth-child(3n) {
    border-right: 2px solid var(--line);
  }

  .platform-card:nth-child(2n) {
    border-right: 0;
  }

  .platform-card:nth-last-child(-n+3) {
    border-bottom: 2px solid var(--line);
  }

  .platform-card:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}
