@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --brand: #21bfaa;
  --brand-2: #0a2540;
  --ink: #10243e;
  --ink-soft: #425466;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --border: #dfe8f1;
  --line: #e4ebf2;
  --link: #21bfaa;
  --focus: #21bfaa;
  --card: #ffffff;
  --text: #10243e;
  --muted: #425466;
  --bg: #f6f9fc;
  --row-bg-start: #ffffff;
  --row-bg-end: #fbfdff;
  --panel-bg-start: #ffffff;
  --panel-bg-end: #f9fcff;
  --button-bg-start: #ffffff;
  --button-bg-end: #f6f9ff;
  --button-hover-bg: #edf3ff;
  --chip-bg: rgba(255, 255, 255, 0.65);
  --search-bg: rgba(255, 255, 255, 0.85);
  --shadow-soft: 0 10px 24px rgba(15, 34, 58, 0.08);
  --shadow-strong: 0 14px 30px rgba(15, 34, 58, 0.13);
  --shadow-panel: 0 10px 28px rgba(15, 34, 58, 0.09);
  --shadow-map: 0 10px 28px rgba(15, 34, 58, 0.14);
  --divider: rgba(16, 36, 62, 0.12);
  --modal-overlay: rgba(10, 27, 44, 0.45);
  --modal-bg: #ffffff;
  --modal-shadow: 0 20px 60px rgba(10, 27, 44, 0.35);
  --modal-border: rgba(16, 36, 62, 0.12);
  --map-placeholder-start: #f2f7ff;
  --map-placeholder-end: #ffffff;
  --green: #11865a;
  --amber: #ba7608;
  --red: #b53333;
  --gray: #67788d;
  --radius: 14px;
}

:root[data-theme="dark"] {
  --brand: #3cd7c2;
  --ink: #eff6ff;
  --ink-soft: #9bb1c8;
  --surface: #182634;
  --surface-soft: #0b1725;
  --border: #2a3c51;
  --line: #2a3c51;
  --link: #59d9c7;
  --focus: #59d9c7;
  --card: #182634;
  --text: #eff6ff;
  --muted: #9bb1c8;
  --bg: #081423;
  --row-bg-start: #162638;
  --row-bg-end: #1b2f44;
  --panel-bg-start: #162638;
  --panel-bg-end: #1a2d40;
  --button-bg-start: #1d3348;
  --button-bg-end: #182c40;
  --button-hover-bg: #243d55;
  --chip-bg: rgba(21, 37, 55, 0.9);
  --search-bg: rgba(14, 27, 41, 0.9);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.34);
  --shadow-strong: 0 14px 30px rgba(0, 0, 0, 0.45);
  --shadow-panel: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-map: 0 10px 28px rgba(0, 0, 0, 0.45);
  --divider: rgba(155, 177, 200, 0.3);
  --modal-overlay: rgba(5, 10, 15, 0.72);
  --modal-bg: #142234;
  --modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.56);
  --modal-border: rgba(155, 177, 200, 0.28);
  --map-placeholder-start: #0e1d2f;
  --map-placeholder-end: #162638;
  --green: #59d996;
  --amber: #e7b052;
  --red: #ef7f7f;
  --gray: #afbfce;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 18px 34px;
  animation: fade-in 360ms ease-out;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.title {
  margin: 0;
  letter-spacing: -0.03em;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.1;
}

.title-link {
  color: inherit;
  text-decoration: none;
}

.title-link:hover {
  text-decoration: none;
}

.page-intro {
  margin-bottom: 22px;
  padding: 0;
  border-radius: 20px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.page-intro .title {
  color: var(--text);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 6px;
}

.page-subtitle {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.92;
}

.meta-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.meta-chip {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  background: var(--chip-bg);
  border: none;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(4px);
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

input,
button {
  font: inherit;
}

.search {
  width: min(560px, 100%);
  padding: 12px 14px 12px 38px;
  border: none;
  border-radius: var(--radius);
  color: var(--text);
  caret-color: var(--text);
  -webkit-text-fill-color: var(--text);
  color-scheme: light dark;
  background: var(--search-bg);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2360778f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><line x1="16.65" y1="16.65" x2="21" y2="21"/></svg>');
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
  box-shadow: 0 4px 16px rgba(16, 36, 62, 0.06);
  margin-bottom: 14px;
}

.search::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.button {
  border: none;
  background: linear-gradient(180deg, var(--button-bg-start) 0%, var(--button-bg-end) 100%);
  color: var(--text);
  padding: 10px 13px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 36, 62, 0.08);
}

.button:hover {
  background: var(--button-hover-bg);
  border-color: var(--border);
}

.group {
  margin-bottom: 30px;
}

.group h2 {
  font-size: 0.78rem;
  margin: 0 0 8px 2px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.group-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.group-logo {
  width: auto;
  height: 24px;
  display: block;
}

.row-link {
  text-decoration: none;
  color: inherit;
}

.row {
  background: linear-gradient(180deg, var(--row-bg-start) 0%, var(--row-bg-end) 100%);
  border: none;
  border-radius: var(--radius);
  padding: 13px 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row-main strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.row-main .route {
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-main .status-text {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 7px;
}

.row .status-dot {
  margin-left: 8px;
  margin-top: 6px;
}

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

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.status-normal {
  color: var(--green);
}

.status-disrupted {
  color: var(--amber);
}

.status-cancelled {
  color: var(--red);
}

.status-unknown {
  color: var(--gray);
}

.status-dot.status-normal {
  background: var(--green);
}

.status-dot.status-disrupted {
  background: var(--amber);
}

.status-dot.status-cancelled {
  background: var(--red);
}

.status-dot.status-unknown {
  background: var(--gray);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--surface);
  box-shadow: inset 0 -1px 0 rgba(16, 36, 62, 0.04);
}

.panel {
  background: linear-gradient(180deg, var(--panel-bg-start) 0%, var(--panel-bg-end) 100%);
  border: none;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-panel);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 12px;
}

.location {
  padding: 0;
  background: transparent;
}

.location h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.grid .location:first-child {
  padding-top: 10px;
}

.departures-route {
  padding: 4px 0;
}

.departures-route h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.departure-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.95rem;
  padding: 4px 0;
}

.departure-dim {
  opacity: 0.5;
}

.departures-empty {
  margin: 0;
}

.inline-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-subtitle {
  font-size: 1.1rem;
  margin: 18px 0 10px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

.section-header .card-subtitle {
  margin: 0;
}

.date-picker {
  display: inline-flex;
  position: relative;
}

.date-input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 40px 8px 10px;
  background: var(--surface);
  color: var(--text);
  color-scheme: light;
}

.date-input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.date-input::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 36px;
  height: auto;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.date-input::-webkit-date-and-time-value {
  text-align: left;
}

.date-picker::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  background-color: var(--muted);
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"/><line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\"/><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\"/><line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\"/></svg>');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"/><line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\"/><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\"/><line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\"/></svg>');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

:root[data-theme="dark"] .date-input {
  color-scheme: dark;
}

.section-status {
  margin: 6px 0 0;
}

@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.operator-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.operator-logo {
  width: auto;
  height: 30px;
  display: block;
}

.panel-divider {
  height: 1px;
  background: var(--divider);
  margin: 14px -16px 0;
}

.service-summary {
  margin-bottom: 14px;
}

.map-shell {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-map);
}

.panel-map-bleed {
  margin: 12px -16px 0;
}

.panel-map-bleed .map-shell {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-frame {
  width: 100%;
  height: min(42vh, 320px);
  border: 0;
  display: block;
}

.map-mount {
  width: 100%;
  height: min(42vh, 320px);
}

.map-missing-key {
  width: 100%;
  height: min(42vh, 320px);
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(180deg, var(--map-placeholder-start) 0%, var(--map-placeholder-end) 100%);
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.gm-style .gm-style-iw-c {
  background: #ffffff;
  color: #10243e;
  border-radius: 12px;
  padding-top: 10px;
  padding-right: 10px;
}

.gm-style .gm-style-iw-d {
  color: inherit;
}

.gm-style .gm-style-iw-t::after {
  background: #ffffff;
}

.gm-style .gm-style-iw-t,
.gm-style .gm-style-iw-tc {
  filter: none !important;
  box-shadow: none !important;
}

.gm-style .gm-style-iw-tc::after {
  background: #ffffff;
  box-shadow: none !important;
}

.gm-style .gm-style-iw-tc::before {
  display: none !important;
  box-shadow: none !important;
}

.map-popup {
  font-family: Manrope, Avenir Next, Segoe UI, sans-serif;
  font-size: 0.88rem;
  line-height: 1.35;
  color: inherit;
  padding-right: 20px;
}

.map-popup-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.map-popup-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  opacity: 0.88;
}

.map-popup-dot {
  display: inline-block;
  margin: 0 4px;
}

.gm-style .gm-ui-hover-effect {
  top: 2px !important;
  right: 2px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 999px;
  background: rgba(16, 36, 62, 0.08);
}

.gm-style .gm-ui-hover-effect > span {
  margin: 1px !important;
}

:root[data-theme="dark"] .gm-style .gm-style-iw-c {
  background: #162638;
  color: #eff6ff;
}

:root[data-theme="dark"] .gm-style .gm-style-iw-d {
  color: #eff6ff;
}

:root[data-theme="dark"] .gm-style .gm-style-iw-t::after {
  background: #162638;
}

:root[data-theme="dark"] .gm-style .gm-style-iw-t,
:root[data-theme="dark"] .gm-style .gm-style-iw-tc {
  filter: none !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .gm-style .gm-style-iw-tc::after {
  background: #162638;
  box-shadow: none !important;
}

:root[data-theme="dark"] .gm-style .gm-ui-hover-effect {
  background: rgba(239, 246, 255, 0.18);
}

:root[data-theme="dark"] .gm-style .gm-ui-hover-effect > span {
  filter: invert(1);
}

.site-footer {
  margin-top: 28px;
  background: transparent;
  color: var(--text);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.site-footer h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.site-footer p {
  margin: 0;
  line-height: 1.45;
}

.site-footer .footer-links {
  margin-top: 8px;
}

.site-footer a {
  color: var(--link);
}

.policy {
  line-height: 1.62;
}

.policy-header {
  margin-bottom: 24px;
}

.policy-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.policy-header p {
  max-width: 720px;
}

.policy-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.policy section {
  padding-top: 18px;
  border-top: 1px solid var(--divider);
}

.policy section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.policy h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.policy p {
  margin: 0 0 14px;
}

.policy ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.policy li + li {
  margin-top: 5px;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.app-promo {
  margin-top: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.app-promo-shot {
  display: block;
  width: min(100%, 170px);
  height: auto;
  object-fit: contain;
  background: transparent;
  margin: 12px auto 4px;
}

.app-promo-content {
  padding: 14px 16px 16px;
  background: transparent;
  text-align: center;
}

.app-promo-content h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.app-promo-content p {
  margin: 0 0 12px;
  color: var(--muted);
}

.store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-links a {
  display: inline-block;
}

.store-links img {
  height: 44px;
  width: auto;
  display: block;
}

.content-with-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  padding-left: 0;
}

.primary-content {
  min-width: 0;
}

.promo-column {
  min-width: 0;
  position: sticky;
  top: 16px;
  align-self: start;
  padding-top: 98px;
  padding-bottom: 28px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1000;
}

.modal-panel {
  width: min(780px, 100%);
  max-height: min(82vh, 900px);
  overflow: auto;
  background: var(--modal-bg);
  border-radius: 14px;
  box-shadow: var(--modal-shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  background: var(--modal-bg);
  border-bottom: 1px solid var(--modal-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-content {
  padding: 14px;
}

.stats-hero .title {
  margin-bottom: 8px;
}

.stats-hero .page-subtitle {
  max-width: 760px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stats-metric {
  background: linear-gradient(180deg, var(--panel-bg-start) 0%, var(--panel-bg-end) 100%);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-panel);
}

.stats-metric-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.stats-metric-value {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.stats-metric-detail {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.stats-split-track {
  display: flex;
  overflow: hidden;
  min-height: 18px;
  border-radius: 999px;
  background: rgba(16, 36, 62, 0.08);
}

.stats-split-segment {
  min-width: 0;
}

.stats-split-ios {
  background: linear-gradient(90deg, #1b9aaa 0%, #21bfaa 100%);
}

.stats-split-android {
  background: linear-gradient(90deg, #0a2540 0%, #375a7d 100%);
}

.stats-legend {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.stats-legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.stats-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stats-bars {
  display: grid;
  gap: 12px;
}

.stats-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.stats-bar-copy {
  min-width: 0;
}

.stats-bar-copy strong,
.stats-bar-copy span {
  display: block;
}

.stats-bar-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.stats-bar-track {
  display: flex;
  overflow: hidden;
  min-height: 14px;
  border-radius: 999px;
  background: rgba(16, 36, 62, 0.08);
}

.stats-bar-fill {
  min-width: 0;
}

.stats-bar-fill-default {
  background: linear-gradient(90deg, #1b9aaa 0%, #21bfaa 100%);
}

.stats-bar-fill-warning {
  background: linear-gradient(90deg, #d78b17 0%, #eba63a 100%);
}

.stats-bar-fill-danger {
  background: linear-gradient(90deg, #b53333 0%, #e25d5d 100%);
}

.stats-bar-value {
  min-width: 2ch;
  text-align: right;
  font-weight: 700;
}

.stats-trend {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.stats-trend-day {
  min-width: 0;
  text-align: center;
}

.stats-trend-column {
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(16, 36, 62, 0.08);
  box-shadow: inset 0 0 0 1px rgba(16, 36, 62, 0.04);
}

.stats-trend-segment {
  display: block;
}

.stats-trend-normal {
  background: var(--green);
}

.stats-trend-disrupted {
  background: var(--amber);
}

.stats-trend-cancelled {
  background: var(--red);
}

.stats-trend-date,
.stats-trend-count {
  font-size: 0.78rem;
}

.stats-trend-date {
  margin-top: 8px;
  color: var(--muted);
}

.stats-trend-count {
  margin-top: 2px;
  font-weight: 700;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .header {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .page-intro {
    padding: 0;
    border-radius: 0;
  }

  .page-intro .title {
    font-size: 1.65rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-chip {
    min-height: 34px;
  }

  .store-links img {
    height: 40px;
  }

  .content-with-promo {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .promo-column {
    padding-top: 0;
    position: static;
    top: auto;
  }

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

  .stats-bar-row {
    grid-template-columns: 1fr;
  }

  .stats-bar-value {
    text-align: left;
  }

  .stats-trend {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

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

  .stats-legend-item {
    grid-template-columns: auto 1fr auto;
  }

  .stats-legend-item .muted {
    grid-column: 2 / -1;
    margin-left: 18px;
  }
}
