.site-main {
  width: min(1500px, 100%);
}

.site-masthead {
  gap: 18px 28px;
  flex-wrap: wrap;
}

.site-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px 40px;
  margin: 12px 0 26px;
}

.site-intro h1 {
  font-size: clamp(38px, 5.1vw, 70px);
  letter-spacing: -.075em;
}

.site-assumptions {
  color: #593f2d;
  background: #eee6d9;
  border-left: 2px solid #a87a56;
  padding: 12px 17px;
  max-width: 350px;
}

.site-assumptions strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.site-assumptions p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.site-project {
  display: grid;
  grid-template-columns: minmax(130px, .75fr) minmax(0, 3fr);
  align-items: start;
  gap: 10px clamp(16px, 3vw, 44px);
  margin-bottom: clamp(14px, 2vw, 26px);
  padding: 14px 18px;
  border: 1px solid #d3d9cc;
  border-radius: 8px;
  background: #edf1e9;
  color: var(--green-deep);
}

.site-project-head h2 {
  font-size: 17px;
}

.site-project-head p {
  margin: 3px 0 0;
  color: #526051;
  font-size: 12px;
}

#site-project-residences {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 11px;
  background: #dfe9dc;
  border-radius: 4px;
  color: #2d503e;
  font-size: 13px;
  font-weight: 730;
}

.site-project-metrics {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
}

.site-project-metrics > div {
  padding-left: 15px;
  border-left: 1px solid #cad4c6;
}

.site-project-metrics dt {
  color: #486052;
  font-size: 12px;
  font-weight: 650;
}

.site-project-metrics dd {
  margin: 2px 0 0;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.site-project-metrics #site-project-floors {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.45;
}

.site-project-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #385b48;
  font-size: 12px;
}

.site-project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  text-underline-offset: 3px;
}

.site-project-towers {
  grid-column: 1 / -1;
  border-top: 1px solid #cad4c6;
}

.site-project-towers summary {
  padding-block: 10px 4px;
  min-height: 40px;
  font-weight: 750;
  cursor: pointer;
}

.site-project-towers summary span {
  margin-inline-start: 5px;
  color: #526051;
  font-size: 12px;
}

.site-project-towers > p {
  margin: 0 0 8px;
  color: #526051;
  font-size: 12px;
}

.site-project-table-scroll {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #cad4c6;
  border-radius: 5px;
  background: var(--white);
}

.site-project-table-scroll table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.site-project-table-scroll :is(th, td) {
  padding: 6px clamp(9px, 2vw, 18px);
  text-align: right;
  white-space: nowrap;
}

.site-project-table-scroll th:first-child {
  text-align: left;
}

.site-project-table-scroll thead th {
  position: sticky;
  top: 0;
  background: #e3eadf;
}

.site-project-table-scroll tbody tr:nth-child(even) {
  background: #f1f4ed;
}

.site-project-table-scroll tfoot th, .site-project-table-scroll tfoot td {
  border-top: 1px solid #cad4c6;
  background: #e3eadf;
  font-weight: 750;
}

.site-project-table-scroll button {
  min-height: 32px;
  color: #31584a;
  font-size: 12px;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-type-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 10px 0 4px;
  font-size: 13px;
}

.site-type-areas div {
  display: flex;
  gap: 5px;
}

.site-type-areas dt { color: #526051; }
.site-type-areas dd { margin: 0; font-weight: 720; }

.site-plan-open {
  width: 100%;
  min-height: 42px;
  margin-bottom: 8px;
  padding: 7px 12px;
  border: 1px solid #9bab99;
  border-radius: 5px;
  background: #f3f5ec;
  color: #31584a;
  font-weight: 750;
  text-align: left;
}

.site-plan-dialog {
  width: min(1250px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 16px;
  border: 1px solid #cbd2c4;
  border-radius: 8px;
  background: #f8f6ef;
  color: var(--ink);
}

.site-plan-dialog::backdrop { background: #162219b8; }

.site-plan-header, .site-plan-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}

.site-plan-header h2 { font-size: 20px; }
.site-plan-header p { margin: 3px 0 0; color: #526051; font-size: 12px; }
.site-plan-header form { flex-shrink: 0; }

.site-plan-header button, .site-plan-tools button {
  min-height: 38px;
  padding: 5px 11px;
  border: 1px solid #a4b29f;
  border-radius: 4px;
  background: #fffdf8;
  font-weight: 720;
}

.site-plan-tools {
  justify-content: flex-end;
  margin: 10px 0;
  font-size: 12px;
}

.site-plan-tools a { text-underline-offset: 3px; }
.site-plan-tools [aria-pressed="true"] { color: #fffdf8; background: #31584a; }
.site-plan-image-scroll { max-height: calc(100dvh - 185px); overflow: auto; background: white; }
.site-plan-image-scroll img { display: block; width: 100%; height: auto; }
.site-plan-image-scroll.is-zoomed img { width: max(1800px, 150%); max-width: none; }
.site-plan-image-scroll p { padding: 20px; text-align: center; }

.site-project-towers .site-project-tower-source {
  margin: 6px 0 0;
  text-underline-offset: 3px;
}

.site-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  align-items: start;
  gap: clamp(14px, 2vw, 26px);
}

.site-figure, .site-residence {
  margin: 0;
  border: 1px solid #d3d9cc;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.site-figure-head, .site-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.site-figure-head {
  padding: 10px 15px 10px 18px;
  min-height: 57px;
}

.site-figure-head h2, .site-residence h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.035em;
}

.site-view-switch {
  display: flex;
  gap: 2px;
  border: 1px solid #d9ded2;
  border-radius: 6px;
  padding: 2px;
  background: #edf0e9;
}

.site-view-switch button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 9px;
  color: var(--green-deep);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.site-view-switch [aria-pressed="true"] {
  border-color: #c8d1c3;
  background: #fffdf8;
}

.site-stage {
  position: relative;
  height: clamp(420px, 52vw, 650px);
  background: #e4e9de;
  isolation: isolate;
  overflow: hidden;
}

.site-viewport, .site-markers {
  position: absolute;
  inset: 0;
}

.site-visual {
  position: absolute;
  inset: 0;
  background: #343b34;
}

.site-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-visual > a {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border: 1px solid #ffffff75;
  border-radius: 4px;
  background: #202923e8;
  color: #fffdf3;
  font-size: 12px;
  font-weight: 720;
  text-underline-offset: 3px;
}

.site-visual p {
  position: absolute;
  inset: auto 10px 10px;
  margin: 0;
  padding: 7px 9px;
  border-radius: 4px;
  background: #202923e8;
  color: #fffdf3;
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}

.site-viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.site-markers {
  z-index: 1;
  pointer-events: none;
}

.site-marker {
  position: absolute;
  transform: translate(-50%, calc(-100% - 8px));
  padding: 5px 11px;
  min-height: 37px;
  border: 1px solid #7b897d;
  border-radius: 5px;
  background: #fffdf7;
  box-shadow: 0 2px 7px #12342825;
  color: #254a3b;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}

.site-marker::after {
  position: absolute;
  width: 8px;
  height: 8px;
  content: "";
  left: calc(50% - 4px);
  bottom: -5px;
  background: inherit;
  border-bottom: inherit;
  border-right: inherit;
  transform: rotate(45deg);
}

.site-marker[aria-pressed="true"] {
  z-index: 1;
  color: #fffdf5;
  background: #244b3d;
  border-color: #244b3d;
}

.site-view-status {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px;
  gap: 5px;
  text-align: center;
  color: #2b4438;
  background: #e4e9de;
}

.site-view-status strong {
  font-size: 17px;
}

.site-view-status p {
  margin: 0;
  max-width: 260px;
}

.site-controls {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 1px;
  background: #d1d7cc;
  border: 1px solid #d1d7cc;
  border-radius: 6px;
}

.site-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 3px;
  color: #264136;
  background: #fffdf7;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.site-controls button:hover, .site-view-switch button:hover, .site-marker:hover {
  filter: brightness(.95);
}

.site-caption {
  padding: 9px 15px 10px 18px;
  color: #526051;
  font-size: 12px;
  min-height: 43px;
}

.site-caption p {
  margin: 0;
}

.site-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0 11px;
}

.site-sources a {
  color: inherit;
  text-underline-offset: 2px;
}

.site-residence {
  padding: 20px;
}

.site-residence-form {
  color: #455849;
  font-weight: 650;
  font-size: 13px;
  margin: 17px 0;
}

.site-building-list {
  border-bottom: 1px solid #e3e6db;
  margin-top: 8px;
  padding-bottom: 8px;
}

.site-building-list summary {
  min-height: 34px;
  padding-top: 5px;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.site-building-list summary span {
  margin-inline-start: 5px;
  color: #526051;
  font-size: 12px;
}

#site-building-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}

#site-building-buttons button {
  min-height: 36px;
  padding-inline: 3px;
  border: 1px solid #cad4c6;
  border-radius: 4px;
  background: #f6f7f0;
  font-size: 12px;
  font-weight: 700;
}

#site-building-buttons [aria-pressed="true"] {
  color: #fffdf5;
  border-color: #244b3d;
  background: #244b3d;
}

.site-residence select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 3px;
  padding: 5px 9px;
  color: #253b30;
  background: #faf9f2;
  border: 1px solid #cbd2c4;
  border-radius: 5px;
  font: inherit;
}

.site-residence-row {
  display: grid;
  grid-template-columns: minmax(72px, .6fr) minmax(0, 1.4fr);
  gap: 10px;
  margin-top: 10px;
}

.site-residence-summary {
  padding: 11px 0;
  border-block: 1px solid #e3e6db;
  margin-bottom: 17px;
}

.site-residence-summary p {
  margin: 0;
}

#site-selected-name {
  display: inline;
  color: var(--green-deep);
  font-weight: 750;
  letter-spacing: -.025em;
}

#site-bearing {
  display: inline-block;
  font-size: 11px;
  font-weight: 730;
  margin-inline-start: 5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #e4ebe2;
  color: #30513f;
}

#site-plan-note {
  padding-top: 4px;
  color: #526051;
  font-size: 12px;
}

.site-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  min-height: 48px;
  border-radius: 5px;
  color: #fffdf6;
  background: #315547;
  font-weight: 750;
  text-decoration: none;
}

.site-enter:hover {
  background: #24463a;
}

.site-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 10px;
}

.site-secondary a, .site-secondary button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 4px;
  color: #385b48;
  font-size: 12px;
  font-weight: 720;
  text-underline-offset: 3px;
}

.site-secondary button {
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.site-feedback {
  margin: 4px 0 0;
  color: #385b48;
  font-size: 12px;
}

.site-residence-jump { display: none; }

@media (max-width: 820px) {
  .site-workspace {
    grid-template-columns: 1fr;
  }

  .site-stage {
    height: clamp(300px, 62vw, 500px);
  }

  .site-residence-jump {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-weight: 740;
    text-underline-offset: .2em;
  }
}

@media (max-width: 550px) {
  .site-intro {
    display: grid;
    gap: 13px;
    margin: 6px 0 16px;
  }

  .site-assumptions {
    max-width: none;
    padding: 10px 12px;
  }

  .site-project {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
    gap: 8px;
  }

  .site-project-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 10px;
    flex-wrap: wrap;
  }

  .site-project-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
  }

  .site-project-metrics > div {
    padding-left: 9px;
  }

  .site-project-links {
    grid-column: auto;
  }

  .site-figure-head, .site-caption {
    padding-inline: 10px;
  }

  .site-residence {
    padding: 15px;
  }

  .site-controls {
    right: 8px;
    bottom: 8px;
  }
}
