/* The island keeps its natural horizontal proportions, without an icon tile. */
:root {
  --page-gutter: clamp(20px, 5vw, 76px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  padding-inline: var(--page-gutter);
}

.hero {
  padding-inline: var(--page-gutter);
}

.workspace {
  margin-inline: var(--page-gutter);
}

body.map-fullscreen-open {
  overflow: hidden;
}

.map-fullscreen-toggle {
  display: grid;
  width: 42px;
  padding: 0;
  place-items: center;
}

.map-fullscreen-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-fullscreen-toggle .fullscreen-exit {
  display: none;
}

.map-fullscreen-toggle[aria-pressed="true"] .fullscreen-enter {
  display: none;
}

.map-fullscreen-toggle[aria-pressed="true"] .fullscreen-exit {
  display: block;
}

.quick-view-close {
  display: none;
}

@media (min-width: 741px) {
  .workspace.map-fullscreen {
    position: fixed;
    z-index: 1300;
    inset: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .workspace.map-fullscreen .map-side {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .workspace.map-fullscreen #map {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .workspace.map-fullscreen .panel {
    display: none !important;
  }

  .workspace.map-fullscreen.fullscreen-detail-open {
    grid-template-columns: minmax(0, 1fr) minmax(280px, min(38vw, 420px));
  }

  .workspace.map-fullscreen.fullscreen-detail-open .panel {
    position: relative;
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-top: 0;
    border-left: 1px solid var(--line);
    background: var(--paper);
  }

  .workspace.map-fullscreen .panel-head,
  .workspace.map-fullscreen .results {
    display: none !important;
  }

  .workspace.map-fullscreen .panel > .detail {
    display: block !important;
    grid-column: auto;
    grid-row: auto;
    width: auto;
    min-height: 0;
    max-height: none;
    padding: 24px 22px 30px;
    overflow: auto;
    border: 0;
  }

  .workspace.map-fullscreen.fullscreen-detail-open .quick-view-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #dce3d9;
    border-radius: 50%;
    background: #fffefa;
    color: #354a21;
    font: 26px/1 system-ui, sans-serif;
  }

  .workspace.map-fullscreen.fullscreen-detail-open .panel > .detail {
    padding-top: 58px;
  }
}

@media (max-width: 740px) {
  .workspace.map-fullscreen {
    position: fixed;
    z-index: 1300;
    inset: 0;
    display: block !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .workspace.map-fullscreen .map-side,
  .workspace.map-fullscreen #map {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .workspace.map-fullscreen .panel {
    display: none !important;
  }

  .workspace.map-fullscreen.fullscreen-detail-open .panel {
    position: absolute;
    z-index: 600;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex !important;
    height: min(48dvh, 480px);
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    background: var(--paper);
    box-shadow: 0 -8px 30px #263c3026;
  }

  .workspace.map-fullscreen .panel-head,
  .workspace.map-fullscreen .results {
    display: none !important;
  }

  .workspace.map-fullscreen .panel > .detail {
    display: block !important;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 54px 18px 24px;
    overflow: auto;
    border: 0;
  }

  .workspace.map-fullscreen.fullscreen-detail-open .quick-view-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #dce3d9;
    border-radius: 50%;
    background: #fffefa;
    color: #354a21;
    font: 24px/1 system-ui, sans-serif;
  }
}

@media (min-width: 741px) {
  .install-promo,
  .mojbrac-card,
  .contribute {
    margin-inline: var(--page-gutter);
  }

  .atlas-footer {
    padding-inline: var(--page-gutter);
  }

  .atlas-item-card .photo figcaption,
  .atlas-item-card .photo-gallery,
  .atlas-item-card .entry-bottom {
    padding-inline: var(--page-gutter);
  }

  .atlas-item-card .community-callout {
    margin-inline: var(--page-gutter);
  }
}
.topbar .logo {
  display: flex;
  align-items: center;
  width: 96px;
  height: auto;
  flex: 0 0 96px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}
.logo-mark,
.atlas-footer-logo {
  display: block;
  width: 96px;
  height: auto;
  aspect-ratio: 512 / 220;
  object-fit: contain;
  border-radius: 0;
}
.atlas-footer-logo {
  flex: 0 0 96px;
}
.brand-home,
.atlas-footer-brand-wrap {
  align-items: center;
  gap: 16px;
}
.brand-symbol-link {
  display: block;
  flex: none;
}
.brand-title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.topbar .brand {
  display: block;
}
.brand-stack {
  min-width: 0;
}
.brand-credit {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  font: 400 9px/1.4 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
}
.header-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: 0;
  text-align: right;
}
.header-credit {
  justify-self: end;
  padding-left: 20px;
  border-left: 1px solid #b6c7b933;
}
.header-credit .brand-author-wordmark,
.footer-credit .brand-author-wordmark {
  font-size: 15px;
}
.atlas-footer-brand .footer-credit {
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 4px;
  text-align: left;
}
.brand-credit-label {
  color: #b6c7b9;
}
.brand-credit .brand-author {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #fff9e9;
  text-decoration: none;
}
.header-credit .brand-author {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.atlas-footer-brand .brand-credit .brand-author {
  flex-direction: row;
}
.brand-author-wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.brand-author-accent {
  color: #fb6757;
}
.brand-author:hover .brand-credit-label,
.brand-author:hover .brand-author-wordmark {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.brand-symbol-link:focus-visible,
.brand-title-link:focus-visible,
.brand-author:focus-visible {
  outline: 2px solid #fff9e9;
  outline-offset: 4px;
  border-radius: 2px;
}
.topbar .brand,
.atlas-footer-brand {
  color: #fff9e9;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}
.atlas-name-base {
  color: #fff9e9;
}
.atlas-name-accent {
  color: #fff9e9;
}
.topbar .brand small,
.atlas-footer-brand small {
  display: block;
  margin-top: 4px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}
.topbar .brand small {
  letter-spacing: .12em;
}
.atlas-footer-brand small {
  color: #b6c7b9;
  letter-spacing: .01em;
  text-transform: none;
}
@media (max-width: 740px) {
  :root {
    --page-gutter: clamp(14px, 3vw, 20px);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 76px;
    padding: 14px 18px 12px;
    gap: 12px 20px;
    padding-inline: var(--page-gutter);
  }
  .hero {
    padding-inline: var(--page-gutter);
  }
  .workspace {
    margin-inline: var(--page-gutter);
  }
  .topbar .brand-home {
    grid-column: 1;
    grid-row: 1;
  }
  .topbar .header-credit {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 8px;
  }
  .header-credit .brand-author-wordmark {
    font-size: 13px;
  }
  .topbar .logo,
  .atlas-footer-logo {
    width: 88px;
    flex-basis: 88px;
  }
  .logo-mark {
    width: 88px;
  }
  .brand-home,
  .atlas-footer-brand-wrap {
    gap: 12px;
  }
  .topbar .brand,
  .atlas-footer-brand {
    font-size: 18px;
  }
  .topbar .brand small {
    font-size: 8px;
  }
}
@media (max-width: 480px) {
  .topbar {
    padding: 14px;
    column-gap: 16px;
  }
  .topbar .brand-home {
    gap: 10px;
  }
  .topbar .logo {
    width: 60px;
    flex-basis: 60px;
  }
  .topbar .logo-mark {
    width: 60px;
  }
  .topbar .brand {
    font-size: 16px;
  }
  .topbar .brand small {
    font-size: 7px;
    letter-spacing: .08em;
  }
}
@media (max-width: 360px) {
  .atlas-footer-brand {
    font-size: 16px;
  }
  .atlas-footer-logo {
    width: 80px;
    flex-basis: 80px;
  }
  .topbar {
    padding: 12px;
    column-gap: 10px;
    padding-inline: var(--page-gutter);
  }
  .topbar .brand-home {
    gap: 8px;
  }
  .topbar .logo {
    width: 44px;
    flex-basis: 44px;
  }
  .topbar .logo-mark {
    width: 44px;
  }
  .topbar .brand {
    font-size: 14px;
  }
  .topbar .brand small {
    font-size: 6.5px;
    letter-spacing: .06em;
  }
  .topbar .header-credit {
    font-size: 7px;
  }
  .header-credit .brand-author-wordmark {
    font-size: 12px;
  }
}
