/* Shared passenger pages */
:root {
  --red: #981c2e;
  --line: #dedbd5;
  --muted: #68615e;
}
body {
  line-height: 1.5;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid #9b6415;
  outline-offset: 4px;
}
header {
  border-bottom: 1px solid var(--line);
}
.navrow {
  height: 82px;
}
.navrow nav {
  gap: clamp(18px, 2.4vw, 36px);
}
.navrow nav a {
  font-size: 14px;
}
.contact {
  border-radius: 3px;
  font-weight: 400;
}
.topbar {
  background: #831323;
}
.inside {
  padding-top: 20px;
}
.inside h1 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 8px 0 14px;
}
.backhome {
  margin-bottom: 22px;
}
.inside > p {
  font-size: 15px;
}
.operator-home {
  padding-top: 24px;
}
.finder {
  background: #f6f3eb;
  border-top-width: 3px;
}
.finder-copy {
  padding: clamp(28px, 3.5vw, 50px);
}
.finder h1 {
  font-size: clamp(42px, 4.5vw, 66px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.finder label {
  font-weight: 400;
}
.road-photo {
  min-height: 330px;
}
.searchform {
  min-height: 52px;
}
.searchform button {
  background: var(--red);
}
.notice:hover {
  box-shadow: none;
  background: #f9f4e7;
}
.local-columns h2 {
  font-size: 28px;
  letter-spacing: -0.025em;
  border-bottom-width: 1px;
}
.depot-links strong {
  font-size: 18px;
  letter-spacing: -0.015em;
}
.routecard {
  border: 1px solid var(--line);
  border-top: 2px solid #981c2e;
  border-radius: 0;
  padding: 20px 22px;
}
.routecard h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.4;
}
.routecard p {
  font-size: 14px;
}
.routecard .badge {
  border-radius: 0;
  min-width: 44px;
  text-align: center;
}
.routecard .action {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.service-group > h2 {
  font-size: 24px;
  color: var(--ink);
  border-bottom: 2px solid #e6bc38;
}
.articleupdate {
  border: 0;
  border-left: 3px solid #981c2e;
  border-radius: 0;
  padding: 6px 0 12px 24px;
  margin-top: 30px;
}
.articleupdate h2 {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.articleupdate p {
  max-width: 70ch;
}
.older {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  max-width: 850px;
}
.smt-info {
  padding: 12px 0 48px;
  max-width: 1120px;
}
.smt-infohero {
  padding: 12px 0 32px;
}
.smt-infohero h1 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.smt-infohero p {
  font-size: 17px;
  line-height: 1.65;
}
.smt-infohero img,
.smt-map iframe {
  border-radius: 2px;
}
.smt-section {
  padding: 30px 0;
}
.smt-section h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.smt-section p,
.smt-section li,
.smt-section dd {
  max-width: 70ch;
}
footer {
  background: #751321;
  padding-top: 34px;
}
.site-credit {
  opacity: 1;
  color: #eddcde;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.concept-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.concept-footer {
  font-size: 11px;
}

/* Live map and departure boards */
.inside .tracking-intro {
  margin: 0 0 22px;
  max-width: 65ch;
  color: var(--muted);
}
#tracking-root {
  margin-top: 0;
}
#tracking-root .tracking-toolbar {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
#tracking-root .tracking-status {
  font-size: 13px;
}
#tracking-root .tracking-toolbar button {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 3px;
  min-height: 36px;
  font-weight: 400;
}
#tracking-root .tracking-toolbar button:hover {
  background: #f6f3ed;
  border-color: #a89487;
}
#tracking-root .track-service-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
  padding: 10px 0 14px;
  gap: 12px;
  font-weight: 600;
}
#tracking-root .track-service-filter select {
  min-width: 240px;
  font-weight: 400;
  font-size: 14px;
  padding: 9px 32px 9px 10px;
  border-color: #bcb5af;
  border-radius: 3px;
}
#tracking-root .track-service-coverage {
  margin: -7px 0 14px;
  color: var(--muted);
  font-size: 12px;
}
#tracking-root .tracking-layout {
  border-radius: 0;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 31%);
  border-color: #d4cec7;
}
#tracking-root .tracking-mapwrap {
  border: 0;
  border-radius: 0;
}
#tracking-root .tracking-sidebar {
  background: #fff;
  padding: 20px;
  border-left: 1px solid #d4cec7;
}
#tracking-root .tracking-sidebar h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
#tracking-root .tracking-sidebar h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}
#tracking-root .tracking-sidebar p {
  font-size: 14px;
  line-height: 1.6;
}
#tracking-root .tracking-bus-search {
  font-size: 12px;
  color: #655a54;
}
#tracking-root .tracking-bus-search input {
  border-color: #bcb5af;
  border-radius: 3px;
}
#tracking-root .track-bus {
  padding: 14px 3px;
  min-height: 66px;
}
#tracking-root .track-bus strong {
  font-size: 14px;
  font-weight: 600;
}
#tracking-root .track-bus small {
  font-size: 12px;
}
#tracking-root .tracking-brand {
  border-radius: 2px;
  box-shadow: none;
  padding: 4px 7px 4px 4px;
  gap: 5px;
  font-size: 9px;
}
#tracking-root .tracking-brand img {
  width: 23px;
  height: 23px;
  border-radius: 2px;
}
#tracking-root .tracking-brand strong {
  font-size: 12px;
}
#tracking-root .tracking-note {
  font-size: 11px;
  color: #77706b;
}
#tracking-root .track-journeys {
  border: 0;
  border-top: 2px solid #831323;
  border-radius: 0;
  background: #f7f5ef;
  padding: 22px;
  margin-top: 22px;
}
#tracking-root .track-nearby h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 0 6px;
}
#tracking-root [data-location] {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
#tracking-root .track-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#tracking-root .track-journeys button {
  font-size: 13px;
  font-weight: 400;
  border-color: #b7a69b;
  color: #831323;
}
#tracking-root [data-locate] {
  background: #831323;
  color: white;
  border-color: #831323;
}
#tracking-root [data-dismiss] {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}
#tracking-root [data-stop-pane] {
  border-top: 1px solid #d9d2c9;
  margin-top: 18px;
  padding-top: 14px;
}
#tracking-root [data-stop-pane] summary {
  font-size: 15px;
  font-weight: 600;
}
#tracking-root [data-stop-pane] label {
  font-size: 13px;
  display: block;
  margin-top: 14px;
}
#tracking-root [data-stop-filter] {
  font: inherit;
  font-size: 16px;
  border: 1px solid #bcb5af;
  border-radius: 3px;
  margin: 5px 0 12px;
}
#tracking-root .track-stop-row {
  border: 0;
  border-bottom: 1px solid #ddd4cb;
  border-radius: 0;
  margin: 0;
  padding: 12px 0 !important;
  background: transparent;
}
#tracking-root .track-stop-row:hover {
  background: #eee9df;
}
#tracking-root .departure-row {
  background: white;
  margin-bottom: 2px;
}
#tracking-root .departure-row[data-state="due"] {
  background: #fff6d8;
}
#tracking-root .departure-row[data-state="late"],
#tracking-root .departure-row[data-state="cancelled"] {
  background: #fff5f3;
}
#tracking-root .departure-route {
  border-radius: 2px;
  background: #831323;
}
#tracking-root .journey-key {
  gap: 6px 14px;
  line-height: 1.5;
}
#tracking-root .tracking-mobile-tabs {
  border: 0;
  border-bottom: 1px solid #d4cec7;
  border-radius: 0;
  background: white;
  gap: 0;
  padding: 0;
}
#tracking-root .tracking-mobile-tabs button {
  border-radius: 0;
  border-bottom: 3px solid transparent;
  font-size: 14px;
}
#tracking-root .tracking-mobile-tabs button[aria-selected="true"] {
  background: #faf6ed;
  border-bottom-color: #981c2e;
  box-shadow: none;
  color: #831323;
}

/* Session notice uses the same colours and type as the passenger pages. */
.concept-notice {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: 1px solid #cbbdb4;
  border-top: 5px solid #831323;
  border-radius: 3px;
  padding: 30px;
  color: #30292a;
  background: #fffdf8;
  font-family: inherit;
  box-shadow: 0 12px 45px #25131535;
}
.concept-notice::backdrop {
  background: #261a20b8;
}
.concept-notice-label {
  font-size: 12px;
  color: #7b5e32;
  font-weight: 600;
  margin-bottom: 10px;
}
.concept-notice h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #831323;
  margin: 0 0 18px;
}
.concept-notice p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.concept-notice-actions {
  border-top: 1px solid #ded7cb;
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.concept-notice-actions a {
  color: #831323;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 5px 0;
}
.concept-notice-actions button {
  background: #831323;
  color: white;
  border: 1px solid #831323;
  border-radius: 3px;
  padding: 12px 18px;
  min-height: 46px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.concept-notice-actions button:hover {
  background: #64101d;
}
html:has(.concept-notice[open]) {
  overflow: hidden;
}
@media (max-width: 740px) {
  .navrow {
    height: 60px;
  }
  .operator-home {
    padding-top: 12px;
  }
  .finder-copy {
    padding: 20px 16px 10px;
  }
  .finder h1 {
    font-size: 38px;
  }
  .local-columns h2 {
    font-size: 24px;
  }
  .inside h1,
  .smt-infohero h1 {
    font-size: 32px;
  }
  .smt-infohero p {
    font-size: 16px;
  }
  .smt-infohero {
    padding-bottom: 24px;
  }
  .smt-info nav {
    margin-bottom: 20px;
  }
  .smt-section {
    padding: 24px 0;
  }
  .smt-section h2 {
    font-size: 21px;
  }
  .routecard {
    padding: 16px;
  }
  .articleupdate {
    padding-left: 16px;
  }
  .site-credit {
    gap: 7px;
  }
  .phone-nav a {
    font-size: 11px;
  }
  .inside .tracking-intro {
    font-size: 13px;
    margin-bottom: 15px;
  }
  #tracking-root .tracking-toolbar {
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
  }
  #tracking-root .tracking-toolbar > div {
    gap: 5px;
  }
  #tracking-root .tracking-toolbar button {
    min-height: 40px;
    padding: 7px 10px;
  }
  #tracking-root .track-service-filter {
    gap: 6px;
    padding: 7px 0 14px;
    display: grid;
    font-size: 12px;
  }
  #tracking-root .track-service-filter select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
    min-height: 44px;
  }
  #tracking-root .tracking-layout {
    border: 0;
  }
  #tracking-root .tracking-mapwrap {
    border: 1px solid #d4cec7;
  }
  #tracking-root .tracking-sidebar {
    border: 0;
    border-top: 2px solid #831323;
    border-radius: 0;
    padding: 18px 0;
  }
  #tracking-root .track-journeys {
    padding: 18px 14px;
  }
  #tracking-root .track-location-actions button {
    min-height: 44px;
  }
  #tracking-root .track-save-stop,
  #tracking-root .track-share-stop {
    min-height: 44px;
  }
  #tracking-root .track-journeys .track-stop-row {
    min-height: 48px;
  }
  #tracking-root .track-nearby h2 {
    font-size: 21px;
  }
  body:has(#tracking-root) .site-credit {
    color: #685b55;
  }
  .concept-notice {
    padding: 24px 20px;
  }
  .concept-notice h2 {
    font-size: 25px;
  }
  .concept-notice p {
    font-size: 14px;
  }
}
