.media-loading {
  background-color: #d9ddcc;
}
.ed-hero-img {
  object-position: center 55%;
}
.exhibit,
.city-atlas,
.city-journal {
  color: #24372e;
}
.exhibit-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.76fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(28px, 4.7vw, 80px);
  margin: 28px 0 48px;
}
.exhibit h1,
.city-atlas h1,
.city-journal h1 {
  font: normal clamp(3.4rem, 6.2vw, 6.3rem)/0.98 var(--editorial);
  letter-spacing: -0.043em;
  margin: 15px 0 20px;
}
.exhibit-copy .ed-lead {
  max-width: 34ch;
  line-height: 1.55;
}
.exhibit-maker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 31px 0 18px;
}
.exhibit-maker small,
.exhibit-maker strong,
.clerk-welcome small {
  display: block;
}
.exhibit-maker small,
.exhibit-shops small,
.clerk-welcome small {
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4d6457;
  font-weight: 700;
}
.exhibit-maker strong {
  font-size: 1rem;
  margin-top: 3px;
}
.pin-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c53c2e;
  box-shadow: 0 0 0 5px #c65b4520;
}
.exhibit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 21px;
}
.exhibit-object {
  min-width: 0;
}
.world-shell.cube {
  height: clamp(420px, 38vw, 610px);
  border-radius: 10px 10px 0 0;
  border: 0;
  background: #203c35;
}
.cube .world-loading {
  background: linear-gradient(130deg, #203c35, #385e4c);
  color: #f5f4e8;
}
.cube .world-chip,
.cube .world-buttons button {
  border: 1px solid #d7e9d046;
  color: #fffbea;
  background: #1b342dd9;
  box-shadow: none;
}
.cube .world-chip:hover,
.cube .world-buttons button:hover {
  background: #375749;
}
.cube .world-help {
  background: transparent;
  color: #f4f3df;
  font-size: 0.73rem;
}
.cube .shop-float {
  background: #fcf6dc;
  color: #253e33;
  border-color: #b4b98d;
  font-size: 0.68rem;
  letter-spacing: 0.012em;
}
.specimen-caption {
  padding: 13px 16px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  background: #e8ebdf;
  border: 1px solid #d3d9ca;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  font-size: 0.78rem;
}
.specimen-caption span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.specimen-caption a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exhibit-directory {
  border-top: 1px solid #cbd2c4;
  padding-top: 37px;
  margin: 45px 0 15px;
}
.exhibit-directory h2 {
  font: normal clamp(2.35rem, 4.25vw, 4.3rem)/1.08 var(--editorial);
  margin: 8px 0;
}
.exhibit-shops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.exhibit-shops article {
  padding: 20px;
  border: 1px solid #cbd1c4;
  border-top: 3px solid var(--shop-color);
  border-radius: 4px;
  background: #faf9f1;
  display: flex;
  flex-direction: column;
}
.exhibit-shops article h3 {
  font: normal 1.85rem/1.04 var(--editorial);
  margin: 12px 0 7px;
}
.exhibit-shops article p {
  line-height: 1.5;
  margin: 0 0 18px;
}
.exhibit-shops article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}
.atlas-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  margin: 25px 0;
}
.atlas-heading h1 {
  margin-bottom: 0;
}
.map-modes {
  display: inline-flex;
  gap: 3px;
  border: 1px solid #bfc7b9;
  border-radius: 30px;
  background: #e8ecdf;
  padding: 4px;
}
.map-modes a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #3e5546;
  padding: 9px 15px;
  border-radius: 25px;
  font-size: 0.85rem;
}
.map-modes a[aria-current] {
  background: #234737;
  color: #fffdec;
}
.atlas-note {
  font-size: 0.93rem;
  color: #526357;
  margin: 12px 0;
}
.atlas-key {
  margin: 14px 0;
  padding: 12px 15px;
  border: 1px solid #cbd2c4;
  border-radius: 6px;
}
.atlas-key summary {
  cursor: pointer;
  font-weight: 700;
}
.atlas-key dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.atlas-key dt {
  font-weight: 700;
  margin-bottom: 4px;
}
.atlas-key dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.poi-label {
  position: absolute;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  font-size: 0.68rem;
  font-weight: 700;
  color: #25362c;
  background: #f6f6eacb;
  padding: 2px 4px;
  border-radius: 3px;
}
.poi-water {
  color: #1c586b;
}
.poi-park {
  color: #285931;
}
.poi-landmark {
  color: #663e22;
}
.world-labels [hidden],
.journal-entry[hidden],
.clerk-chat[hidden] {
  display: none !important;
}
.clerk-panel {
  margin: 13px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid #c6d0c0;
  background: #f0f2e7;
  border-radius: 9px;
}
.clerk-initial {
  display: grid;
  place-items: center;
  background: var(--clerk-color);
  color: white;
  text-shadow: 0 1px 3px #17251a;
  font: normal 1.9rem var(--editorial);
  border-radius: 50%;
  width: 53px;
  height: 53px;
  box-shadow: inset 0 0 0 1px #0002;
}
.clerk-welcome h2 {
  font: normal 1.85rem/1.1 var(--editorial);
  margin: 5px 0;
}
.clerk-welcome p,
.clerk-chat p {
  line-height: 1.55;
  margin: 4px 0;
}
.clerk-tools {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.clerk-chat {
  grid-column: 1/-1;
  border-top: 1px solid #c0cbbd;
  padding-top: 12px;
}
.clerk-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.clerk-prompts button {
  background: #fffdf4;
  color: #294635;
  border: 1px solid #abbcae;
  border-radius: 20px;
  padding: 8px 13px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
#clerk-form {
  display: flex;
  gap: 8px;
  max-width: 720px;
}
#clerk-form input,
.journal-filters input,
.journal-filters select {
  font: inherit;
  background: #fffdf5;
  border: 1px solid #aab8a9;
  border-radius: 5px;
  padding: 11px 12px;
  color: #23392b;
  min-width: 0;
}
#clerk-form input {
  flex: 1;
}
.clerk-answer:not(:empty) {
  margin-top: 14px;
  padding: 14px 17px;
  border-left: 3px solid var(--clerk-color);
  background: #fffdf5;
}
.city-journal > .ed-lead {
  max-width: 660px;
}
.journal-filters {
  display: flex;
  gap: 12px;
  margin: 27px 0 12px;
}
.journal-filters label {
  display: grid;
  gap: 5px;
  font-weight: 700;
  font-size: 0.84rem;
  max-width: 100%;
}
.journal-filters label:first-child {
  flex: 1;
  max-width: 520px;
}
.journal-filters select {
  min-width: 160px;
}
#journal-count {
  font-size: 0.82rem;
  color: #4d6251;
}
.journal-entry {
  border-top: 1px solid #c5cebf;
}
.journal-entry:last-child {
  border-bottom: 1px solid #c5cebf;
}
.journal-entry h2 {
  margin: 0;
}
.journal-entry h2 button {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 22px;
  background: transparent;
  border: 0;
  padding: 15px 3px;
  color: #243a2c;
  cursor: pointer;
}
.journal-entry h2 button:hover {
  background: #eaf0e450;
}
.journal-entry img {
  width: 90px;
  height: 65px;
  border-radius: 5px;
  object-fit: cover;
  flex: none;
}
.journal-entry h2 span {
  display: grid;
  gap: 4px;
}
.journal-entry h2 strong {
  font: normal clamp(1.65rem, 2.5vw, 2.6rem)/1.1 var(--editorial);
  letter-spacing: -0.02em;
}
.journal-entry h2 small {
  font:
    normal 0.89rem/1.48 'DM Sans',
    sans-serif;
  color: #4e6255;
}
.journal-entry h2 i {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid #c5cdba;
  border-radius: 50%;
  transition: transform 0.2s;
}
.journal-entry [aria-expanded='true'] i {
  transform: rotate(90deg);
  color: #f9faee;
  background: #315442;
}
.entry-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.25s ease;
}
.entry-body[inert] {
  grid-template-rows: 0fr;
}
.entry-body > div {
  overflow: hidden;
  min-height: 0;
}
.entry-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 35px;
  padding: 10px 6% 30px 115px;
}
.entry-content h3 {
  font: normal 1.55rem/1.15 var(--editorial);
  margin: 0 0 5px;
}
.entry-content p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #415347;
  margin: 0;
}
.entry-end {
  grid-column: 1/-1;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.world-shell .world-loading:before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: turn-load 0.85s linear infinite;
}
@keyframes turn-load {
  to {
    transform: rotate(360deg);
  }
}
.map-marker b {
  background: #c73e32 !important;
}
[data-motion='reduced'] .entry-body,
[data-motion='reduced'] .journal-entry i {
  transition: none;
}
[data-motion='reduced'] .world-loading:before {
  animation: none;
}
@media (max-width: 800px) {
  .exhibit-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 18px 0;
  }
  .exhibit-copy .ed-lead {
    max-width: 62ch;
  }
  .exhibit-maker {
    margin: 16px 0;
  }
  .exhibit-actions {
    margin-bottom: 12px;
  }
  .world-shell.cube {
    height: clamp(370px, 74vw, 490px);
  }
  .entry-content {
    padding-left: 20px;
  }
  .exhibit-shops {
    grid-template-columns: 1fr;
  }
  .clerk-tools .ed-button {
    white-space: normal;
  }
  .ed-hero-img {
    object-position: 62% center;
  }
}
@media (max-width: 550px) {
  .exhibit,
  .city-atlas,
  .city-journal {
    width: calc(100% - 28px);
  }
  .exhibit h1,
  .city-atlas h1,
  .city-journal h1 {
    font-size: 3.35rem;
  }
  .atlas-heading,
  .journal-filters {
    align-items: stretch;
    flex-direction: column;
  }
  .specimen-caption {
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
  }
  .clerk-panel {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
  }
  .clerk-tools {
    grid-column: 1/-1;
    display: flex;
    gap: 16px;
  }
  .journal-entry h2 button {
    gap: 12px;
  }
  .journal-entry img {
    width: 64px;
    height: 58px;
  }
  .entry-content {
    grid-template-columns: 1fr;
    padding: 8px 4px 20px;
  }
  .exhibit-directory .ed-section-head {
    display: block;
  }
  .exhibit-directory .ed-section-head > .ed-text {
    margin: 5px 0 10px;
  }
  .cube .world-help {
    max-width: 130px;
  }
  .city-atlas .world-minimap {
    width: 82px;
  }
  .city-atlas .world-minimap canvas {
    width: 100%;
  }
}
.recovery-links {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 9px auto 14px;
}
.world-fallback .recovery-links .ed-button {
  min-height: 32px;
  padding: 7px 12px;
}
.cube .world-minimap {
  width: 73px;
  opacity: 0.92;
  top: 55px;
  right: 12px;
  padding: 3px;
  background: #f2f4e1dd;
}
.cube .world-minimap canvas {
  width: 100%;
  height: auto;
}
.cube .world-minimap small {
  font-size: 0.55rem;
}

.city-atlas .world-shell {
  display: block;
  position: relative;
  width: 100%;
  height: clamp(380px, 55vw, 650px);
  min-height: 380px;
  overflow: hidden;
  isolation: isolate;
  background: #e1eae4;
}
.city-atlas .world-surface {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.city-atlas .world-surface:active {
  cursor: grabbing;
}
.city-atlas .atlas-vector,
.city-atlas .atlas-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.city-atlas .atlas-vector {
  background: #e1eae4;
}
.city-atlas .atlas-canvas[hidden] {
  display: block !important;
  opacity: 0;
  pointer-events: none;
}
.city-atlas .world-loading[hidden] {
  display: none !important;
}
.city-atlas .world-loading {
  inset: auto auto 51px 12px;
  flex-direction: row;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #fbf9edee;
  pointer-events: none;
}
.city-atlas .world-loading span {
  font: 600 0.75rem var(--sans);
}
.city-atlas .world-loading progress,
.city-atlas .world-loading b,
.city-atlas .world-loading:not(.pending):before {
  display: none;
}
.city-atlas .world-loading.pending:before {
  width: 12px;
  height: 12px;
}
@media (max-width: 620px) {
  .city-atlas .world-shell {
    height: clamp(380px, 60svh, 550px);
  }
  .city-atlas .world-help {
    max-width: 55%;
  }
}

.poi-monument {
  color: #423921;
  background: #fff4d8;
  border: 1px solid #ac9568;
}
.cube-monument {
  border-top: 1px solid #c9c9bb;
  padding: .75rem 0;
  color: #364638;
  font-size: .9rem;
}
.cube-monument summary { cursor: pointer; font-weight: 650; }
.cube-monument p { max-width: 62ch; line-height: 1.55; margin: .55rem 0 0; }
