* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f3e9;
  color: #293a2d;
  font:
    18px/1.6 system-ui,
    sans-serif;
}
main {
  max-width: 700px;
  margin: auto;
  padding: 24px;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
}
button,
select {
  font: inherit;
  border: 1px solid #66816d;
  border-radius: 8px;
  padding: 12px;
  margin: 6px 0;
  max-width: 100%;
}
button {
  background: #285538;
  color: white;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #e38d27;
}
select {
  display: block;
  width: 100%;
}
video {
  width: 100%;
  max-height: 330px;
  background: #dfe8dc;
}
#status {
  padding: 16px;
  background: #dfe8dc;
  border-left: 4px solid #285538;
}
li {
  padding: 12px;
  border-bottom: 1px solid #b9c6b7;
  overflow-wrap: anywhere;
}
.review,
.rejected {
  color: #9e311e;
}
.accepted {
  color: #226037;
}
details {
  margin-top: 24px;
}
a {
  color: #285538;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
[hidden] {
  display: none;
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

button.secondary {
  background: transparent;
  color: #285538;
}
#when {
  font-weight: 600;
}
h2 {
  font-size: 1.3rem;
  margin-top: 28px;
}
summary {
  cursor: pointer;
  color: #4a5d4e;
}
/* Same look as the countdown on the race page. */
.start-countdown {
  margin: 0 0 16px;
  padding: 16px;
  background: #e7efe2;
  border: 1px solid #cdd9cb;
  border-radius: 16px;
}
.start-countdown[hidden] {
  display: none;
}
.start-countdown > p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #436049;
}
.start-countdown svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #2f5836;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.race-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  text-align: center;
}
.race-countdown > div {
  padding: 12px 2px;
  background: #fffef9;
  border: 1px solid #cdd9cb;
  border-radius: 10px;
}
.race-countdown strong {
  display: block;
  font-family: monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(25px, 7vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: #2f5836;
}
.race-countdown small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #436049;
}
