.controls {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

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

.controls select,.controls input {
  width: 100%;
  min-height: 44px;
  display: block;
  margin-top: 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0 22px;
}

.actions a {
  margin-left: auto;
}

.overview {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
}

.finding,.locator {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.finding h2 {
  color: var(--accent);
  margin: 0 0 14px;
}

.finding p:not(.overline) {
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 49ch;
}

.finding p:last-child,.locator p {
  margin-bottom: 0;
}

.finding button {
  margin-top: 8px;
  display: block;
}

.locator {
  display: grid;
  grid-template-columns: minmax(130px,1fr) 1fr;
  align-content: center;
  align-items: center;
  gap: 6px 16px;
}

.surface {
  grid-row: span 2;
  position: relative;
  aspect-ratio: 2/1;
  border: 1px solid var(--line);
  overflow: hidden;
}

.surface img {
  width: 100%;
  height: 100%;
  display: block;
}

.surface span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #ffe2a2;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #172127;
  transform: translate(-50%,-50%);
}

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

.night {
  padding: 30px 0;
}

.night p {
  line-height: 1.5;
  color: var(--muted);
  margin: 9px 0;
}

.scroll {
  overflow-x: auto;
}

.night table {
  min-width: 700px;
  table-layout: auto;
}

.night th,.night td {
  vertical-align: middle;
  width: auto;
}

.night th {
  font-size: .87rem;
}

.night td {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.night tr.window {
  background: #263c35;
}

.night tr.window th,.night tr.window td:nth-child(6) {
  color: #c4f3d1;
}

.night th[scope=row] {
  background: transparent;
  color: var(--ink);
}

#weather-note,#source-times {
  font-size: .9rem;
}

.night button {
  margin-top: 4px;
}

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

  .locator {
    grid-template-columns: 125px auto;
    justify-content: start;
  }

  .controls {
    grid-template-columns: 1fr 1fr;
  }

  .controls label:first-child {
    grid-column: 1/-1;
  }

  .nav-inner div {
    gap: 12px;
  }

}

@media(max-width:520px) {
  .controls {
    gap: 12px;
  }

  .actions a {
    margin-left: 0;
  }

  .finding,.locator {
    padding: 16px;
  }

  .night td:nth-child(2),.night th:nth-child(2) {
    display: table-cell;
  }

  .mast p {
    line-height: 1.4;
  }

}
