/* Site maps (ADR 0059): mobile first, the map on top and the places below; side by side from
   900 px. In a frame (a location page) the page header is hidden. */
.campus {
  margin: 0;
  --marker: #007373;
  --transit: #00557c;
  --assembly: #00805a;
  --on-marker: #ffffff;
}

:root[data-scheme="dark"] .campus {
  --marker: #00cccc;
  --transit: #ffd732;
  --assembly: #00ffb9;
  --on-marker: #000028;
}

:root[data-framed="true"] .top {
  display: none;
}

.sites {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.sites .button {
  min-height: 36px;
  padding: 4px 12px;
  font-size: 14px;
  border-color: #00c1b6;
  background: transparent;
  color: #ffffff;
}

.sites .button[aria-current="page"] {
  background: #00c1b6;
  color: #000028;
}

.sites .button:focus-visible {
  outline-color: #ffffff;
}

.layout {
  display: grid;
  grid-template-areas: "map" "panel";
}

.map-wrap {
  grid-area: map;
  position: relative;
  height: 58vh;
  min-height: 320px;
}

.map {
  position: absolute;
  inset: 0;
}

.panel {
  grid-area: panel;
  padding: 12px 16px 24px;
}

.site-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.intro {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.status {
  min-height: 1.4em;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.details {
  margin: 0 0 12px;
  padding: 12px;
  border: 2px solid var(--petrol-dark);
  border-radius: 6px;
  background: var(--sand);
}

.details h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.details p {
  margin: 0 0 4px;
  font-size: 14px;
}

.details .button {
  margin-top: 8px;
  min-height: 40px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--petrol-dark);
}

.places h3 {
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.places ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.place {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.place:hover {
  border-color: var(--line);
}

.place:focus-visible {
  outline: 2px solid var(--petrol-dark);
  outline-offset: 1px;
}

.place[aria-pressed="true"] {
  border-color: var(--petrol-dark);
  background: var(--sand);
}

.place-name {
  font-weight: 600;
}

.place-sub {
  color: var(--muted);
  font-size: 13px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--marker);
  color: var(--on-marker);
  font-size: 11px;
}

.dot.ring {
  box-shadow: 0 0 0 3px var(--text);
}

.dot.transit {
  background: var(--transit);
}

.dot.assembly {
  background: var(--assembly);
}

.source {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.source a {
  color: var(--petrol-dark);
}

@media (min-width: 900px) {
  .campus {
    height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .layout {
    flex: 1;
    min-height: 0;
    grid-template-columns: 380px 1fr;
    grid-template-areas: "panel map";
  }

  .panel {
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }

  .map-wrap {
    height: auto;
    min-height: 0;
  }
}
