@import './tokens.css';

.ar-muted, .ar-departure small { color: var(--ar-muted); }
.ar-button, .ar-select {
  font: inherit;
  padding: var(--ar-space-2) var(--ar-space-3);
  border: 1px solid var(--ar-line);
  border-radius: 12px;
  min-height: 44px;
  color: var(--ar-ink);
  background: var(--ar-surface);
}
.ar-button { cursor: pointer; font-weight: 700; }
.ar-button--primary { color: white; background: var(--ar-teal); border-color: var(--ar-teal); }
.ar-button--journey {
  width: 100%;
  display: grid;
  gap: var(--ar-space-2);
  padding: var(--ar-space-3);
  text-align: left;
  font-weight: 400;
}
.ar-button--journey:hover { background: var(--ar-mint); }
.ar-button:focus-visible, .ar-select:focus-visible, .ar-navigation a:focus-visible {
  outline: 3px solid var(--ar-teal);
  outline-offset: 3px;
}
.ar-search, .ar-field { display: grid; gap: var(--ar-space-2); }
.ar-search { gap: var(--ar-space-3); }
.ar-field { font-size: 14px; font-weight: 700; }
.ar-select { width: 100%; }
.ar-time { font-variant-numeric: tabular-nums; }
.ar-option-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ar-space-2); }
.ar-button--journey strong { font-size: 1.4rem; }
.ar-route-list, .ar-service, .ar-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ar-space-2); }
.ar-route, .ar-status {
  display: inline-block;
  padding: var(--ar-space-1) var(--ar-space-2);
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 750;
}
.ar-route { background: var(--ar-sun); }
.ar-route--coral { background: var(--ar-coral); }
.ar-status { background: #ecf0ea; }
.ar-status--estimated { background: var(--ar-mint); color: #09534c; }
.ar-status--stale, .ar-status--offline, .ar-notice { background: #fff0bc; color: #674510; }
.ar-status--cancelled { background: #ffe1d5; color: #842e25; }
.ar-step { padding: var(--ar-space-2) var(--ar-space-3); border-left: 3px solid var(--ar-teal); }
.ar-step--transfer { background: #fff0bc; border-color: #b98515; }
.ar-departure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--ar-space-1) var(--ar-space-2);
  padding: var(--ar-space-2) 0;
  border-bottom: 1px solid var(--ar-line);
}
.ar-departure-time { display: grid; text-align: right; }
.ar-departure .ar-status { justify-self: start; }
.ar-notice { padding: var(--ar-space-3); border-radius: 9px; }
.ar-navigation a { color: var(--ar-teal); padding: var(--ar-space-2); }
.ar-navigation a[aria-current] { font-weight: 750; }
