/* Additional surfaces reached from the atlas. */
.atlas-drawer, #spaces { --ui-line: #c5c9bb; }
.atlas-drawer {
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
  overscroll-behavior: contain;
  background: transparent;
  color: var(--ink);
}
.atlas-drawer[open] { display: flex; justify-content: flex-end; }
.drawer-shade { flex: 1; touch-action: none; }
.drawer-sheet {
  width: min(455px, 100%);
  height: 100%;
  border-left: 1px solid var(--ui-line);
  overflow: auto;
  background: var(--paper);
  box-shadow: -14px 0 60px #20271a1c;
  overscroll-behavior: contain;
}
.atlas-drawer::backdrop { background: rgb(26 32 21 / 18%); }
@media (prefers-reduced-motion: no-preference) {
  .atlas-drawer[open] .drawer-sheet { animation: atlas-drawer-in .28s cubic-bezier(.2,.75,.25,1); }
  @keyframes atlas-drawer-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
}
.drawer-head {
  min-height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--ui-line);
}
.drawer-head > span { font: 500 14px Unbounded, sans-serif; }
.drawer-head button { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.drawer-head button span { font-size: 26px; font-weight: 400; }
.drawer-content { padding: 31px 32px 50px; }
.drawer-content h2 { margin: 0 0 22px; font: 500 clamp(25px, 2.2vw, 32px)/1.22 Unbounded, sans-serif; letter-spacing: -.06em; }
.drawer-content h2:focus { outline: 0; }
.drawer-body { font-size: 16px; line-height: 1.55; }
.drawer-body p { margin: 0 0 17px; }
.atlas-contacts { display: grid; gap: 8px; font-style: normal; }
.atlas-contacts a, .atlas-resource-list a { width: fit-content; text-decoration: underline; text-underline-offset: 4px; }
.atlas-contacts p { margin: 9px 0 0; }
.atlas-timeline { margin: 0; }
.atlas-timeline div { padding: 17px 0; display: grid; grid-template-columns: 58px 1fr; gap: 16px; border-top: 1px solid var(--ui-line); }
.atlas-timeline dt { font: 400 15px/1.5 "IBM Plex Mono", monospace; color: var(--olive); }
.atlas-timeline dd { margin: 0; }
.atlas-resource-list { display: grid; gap: 16px; }
.rental-form { display: grid; gap: 19px; margin-block: 24px; }
.rental-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.rental-form :is(input,select,textarea) {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #a7af9f;
  border-radius: 0;
  color: var(--ink);
  background: #fffefb;
  font: 400 16px/1.4 Manrope, Arial, sans-serif;
}
.rental-form textarea { resize: vertical; }
.rental-chosen-room {
  padding: 12px 14px;
  border-left: 3px solid var(--olive);
  background: #eeeFe5;
  color: var(--olive);
  font-weight: 600;
}
.ui-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 18px;
  color: white;
  background: var(--olive);
  font: 700 15px/1.3 Manrope, Arial, sans-serif;
}
.ui-primary:hover { background: var(--button-hover); }
.ui-link { min-height: 44px; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.rental-result h3 { font-size: 18px; }
.rental-message { padding: 14px; border-left: 3px solid var(--olive); background: #efefe6; font: 14px/1.55 Manrope, Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.rental-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.copy-status { font-size: 13px; }
.rental-direct { margin-top: 26px; border-top: 1px solid var(--ui-line); }
.rental-direct summary { padding: 14px 0; cursor: pointer; font-size: 14px; font-weight: 700; }
.rental-form[hidden], .rental-result[hidden], .space-actions button[hidden] { display: none; }
#spaces { position: relative; background: var(--paper); scroll-margin-top: 65px; }
.space-inner { max-width: 1720px; margin: auto; padding: clamp(42px, 6vw, 90px) clamp(20px, 3vw, 64px) clamp(56px, 8vw, 120px); }
.space-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--ui-line); }
.space-heading h2 { margin: 0; font: 500 clamp(29px, 3.3vw, 54px)/1.18 Unbounded, sans-serif; letter-spacing: -.06em; }
.space-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.space-tabs button { min-height: 42px; padding: 8px 13px; border: 1px solid var(--ui-line); font-size: 14px; }
.space-tabs button[aria-pressed="true"] { color: #fff; background: var(--olive); border-color: var(--olive); }
.space-feature { display: grid; grid-template-columns: 1.04fr 1fr; min-height: 290px; margin-top: 24px; background: #eeeeE5; }
.space-feature figure { margin: 0; position: relative; overflow: hidden; min-height: 270px; }
.space-feature img { position: absolute; width: 100%; height: 100%; object-fit: cover; transform: scale(1.55); transform-origin: 62% 51%; }
#spaces[data-type="office"] .space-feature img { transform: scale(2.2); transform-origin: 24% 59%; }
#spaces[data-type="production"] .space-feature img { transform: none; }
.space-info { padding: clamp(20px, 4vw, 65px); display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 20px; }
.space-info h3 { margin: 0; font: 500 clamp(23px, 2vw, 35px)/1.15 Unbounded, sans-serif; letter-spacing: -.05em; }
.space-summary { margin: 0; line-height: 1.6; max-width: 42ch; }
.space-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (max-width: 700px) {
  .drawer-head { min-height: 62px; padding: 10px 20px; }
  .drawer-content { padding: 25px 20px; }
  .space-feature { grid-template-columns: 1fr; }
  .space-feature figure { aspect-ratio: 2.1; min-height: auto; }
  .space-heading { gap: 15px; }
  .space-summary { font-size: 15px; }
}
