html {
  font-size: 19px;
  height: 100%;
}

* {
  line-height: 1.3em;
}

body {
  --font-stack: helvetica, arial, sans-serif;
  font-family: var(--font-stack);
  padding: 0;
  margin: 0;

  --red: #e60000;
  --light-red: #ffb7b7;
  --green: #038631;
  --orange: #F4A02A;
  --light-orange: #ffe7c3;
  --blue: #0b306e;
  --black: #2f2f2f;
  --light-blue: #dcebff;

  --input-radius: 5px;

  color: var(--black);
}

body.has-map {
  height: 100%;
  display: flex;
  flex-direction: column;
}

a:link,
a.nv:visited {
  color: #086CAF;
}

a:visited {
  color: #4d09c2;
}

main,
.width {
  max-width: 35rem;
  margin: 0 auto;
}

header {
  background: var(--blue);
  padding: 15px 25px;
}

header .width {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.available {
  background: var(--green);
}

header.unavailable {
  background: var(--red);
}

header.unknown {
  background: var(--orange);
}

header.unknown a:link,
header.unknown a:hover,
header.unknown a:active,
header.unknown a:visited{
  color: var(--black);
}

header a:link,
header a:hover,
header a:active,
header a:visited {
  color: white;
  font-size: 1rem;
}

header a:focus {
  outline-color: currentColor;
}

a.home:link,
a.home:hover,
a.home:active,
a.home:visited {
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 700;
}

header a:hover,
header a.home:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
}

.testing-banner {
  padding: 10px 25px;
  background: var(--light-blue);
  border-bottom: 1px solid transparent;
}

main {
  padding: 25px;
}

main.full {
  padding: 0;
  max-width: none;
}

h1 {
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.2em;
}

.bold {
  font-weight: 700;
}

@media(max-width: 450px) {
  h1 {
    font-size: 1.5rem;
  }
}

h1 .station {
  font-weight: 700;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

h3 {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 1.2rem;
}

h4 {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1rem;
}

.station-results {
  font-size: 1.5rem;
  list-style-type: none;
  padding-left: 0;
}

.station-results li {
  margin-bottom: 0.5em;
}

.station-results a {
  display: block;
}

.lede {
  font-size: 1.25rem;
}

.lifts {
  list-style-type: none;
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.lift {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 1em;
}

.lift:before,
.lift:after {
  display: block;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1.25rem;
}

.lift--available:before {
  content: '';
  border: 0.2em solid currentColor;
  border-top: none;
  border-right: none;
  border-bottom-left-radius: 0.07em;
  width: 0.75em;
  height: 0.3em;
  color: var(--green);
  transform: rotate(-45deg);
}

.lift--unavailable:before,
.lift--unavailable:after {
  content: '';
  border-top: 0.2em solid currentColor;
  width: 1em;
  color: var(--red);
  transform: rotate(-45deg);
  top: 0.4em;
}

.lift--unavailable:after {
  transform: rotate(45deg);
}

.lift--unknown:before {
  content: '?';
  font-weight: 600;
  color: var(--orange);
  top: 0;
  left: 0.1em;
}

.overall {
  position: relative;
  text-align: center;
  padding: calc(3em + 15px) 20px 20px 20px;
  margin-bottom: 30px;
  border: 5px solid transparent;
  border-radius: var(--input-radius);
}

.overall--available {
  border-color: var(--green);
}

.overall--unavailable {
  border-color: var(--red);
  padding-top: calc(3.5em + 15px);
}

.overall--unknown {
  border-color: var(--orange);
}

.overall:before,
.overall:after {
  display: block;
  margin: 0 auto;
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  font-size: 3rem;
}

.overall--available:before {
  content: '';
  border: 0.2em solid var(--green);
  border-top: none;
  border-right: none;
  border-bottom-left-radius: 0.07em;
  width: 0.75em;
  height: 0.3em;
  transform: rotate(-45deg);
  margin-bottom: 0.5em;
}

.overall--unavailable:before,
.overall--unavailable:after {
  content: '';
  border-top: 0.2em solid var(--red);
  width: 1em;
  transform: rotate(-45deg);
  top: 2rem;
}

.overall--unavailable:after {
  transform: rotate(45deg);
}

.overall--unknown:before {
  content: '?';
  color: var(--orange);
  font-weight: 600;
  top: 1.5rem;
}

.tfl {
  margin-top: 1.5rem;
  padding: 25px;
  background: var(--light-blue);
  border-radius: var(--input-radius);
  border: 5px solid transparent;
}

.search-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.search-form input {
  display: block;
  font-family: var(--font-stack);
  font-size: 1rem;
  padding: 0.3em 0.5em;
  box-sizing: border-box;
  margin-bottom: 15px;
  border: 2px solid var(--black);
  border-radius: var(--input-radius);
  color: var(--black);
}

.search-form button {
  font-family: var(--font-stack);
  font-size: 1rem;
  padding: 0.3em 1em;
  border: 1px solid transparent;
  border-radius: var(--input-radius);
  color: white;
  background: var(--blue);
  box-shadow: inset 0 -3px 0 var(--black);
  cursor: pointer;
}

@media(max-width: 450px) {
  .search-form input,
  .search-form button {
    width: 100%;
  }
}

.hint {
  color: dimgray;
  margin-bottom: 5px;
}

a:focus,
input:focus,
button:focus,
main:focus {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

.last-checked {
  color: dimgray;
  font-size: 0.75rem;
  margin-top: 40px;
}

.vh {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media(min-width: 550px) {
  .tg-key {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
}

.tg-key-status {
  margin-bottom: 15px;
}

.tg-key-status {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.tg-key-s {
  width: 1.5em;
  height: 1.5em;
  clip-path: rect(0 100% 100% 0 round var(--input-radius));
}

.tl {
  display: flex;
  width: 100%;
  justify-content: space-between;
  color: dimgray;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 14px;
}

.tg {
  height: 28px;
  width: 100%;
  background: lightgray;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  clip-path: rect(0 100% 100% 0 round var(--input-radius));
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.tgs {
  padding: 0;
  margin: 0;
}

.tgs-available {
  background: var(--green);
}

.tgs-unavailable {
  background: var(--red);
  box-shadow: 0 4px 0 var(--red) inset, 0 6px 0 var(--light-red) inset, 0 -4px 0 var(--red) inset, 0 -6px 0 var(--light-red) inset;
}

.tgs-unknown {
  background: var(--orange);
  box-shadow: 0 4px 0 var(--orange) inset, 0 6px 0 var(--light-orange) inset, 0 10px 0 var(--orange) inset, 0 12px 0 var(--light-orange) inset, 0 -4px 0 var(--orange) inset, 0 -6px 0 var(--light-orange) inset, 0 -10px 0 var(--orange) inset, 0 -12px 0 var(--light-orange) inset;
}

.reliability {
  color: dimgray;
  margin-bottom: 10px;
  font-size: 16px;
}