.flyer-content {
  padding-top: 48px;
  padding-bottom: 64px;
}

.flyer-heading .lead {
  max-width: 760px;
  margin-bottom: 24px;
}

.flyer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.flyer-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  white-space: normal;
}

.flyer-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flyer-file-info {
  color: #555;
  font-size: 14px;
}

.flyer-file-info {
  margin: 12px 0 0;
}

.flyer-plan {
  margin-top: 40px;
}

.flyer-content h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.flyer-plan figure img {
  display: block;
  height: auto;
  width: 100%;
}

.flyer-content h1,
.flyer-content h2 {
  letter-spacing: 0;
}

.standplan-viewer {
  background: #f4f5f4;
  border: 1px solid #cdd5ce;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.standplan-toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #cdd5ce;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  padding: 10px 12px;
  position: relative;
  z-index: 2;
}

.standplan-views,
.standplan-tools {
  align-items: center;
  display: flex;
  flex-shrink: 0;
}

.standplan-views {
  border: 1px solid #cdd5ce;
  border-radius: 4px;
  overflow: hidden;
}

.standplan-viewer button {
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 0;
  color: #285d2f;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
  min-height: 44px;
}

.standplan-views button {
  padding: 10px 16px;
}

.standplan-views button + button {
  border-left: 1px solid #cdd5ce;
}

.standplan-views button[aria-pressed="true"] {
  background: #285d2f;
  color: #fff;
}

.standplan-tools {
  gap: 6px;
}

.standplan-viewer .standplan-tool {
  align-items: center;
  border: 1px solid #cdd5ce;
  border-radius: 4px;
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.standplan-viewer button:hover:not(:disabled) {
  background: #eaf0e9;
  color: #183b1d;
}

.standplan-viewer button:disabled {
  cursor: default;
  opacity: 0.45;
}

.standplan-scale {
  color: #344238;
  flex: 0 0 56px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 56px;
}

.standplan-stage {
  align-items: center;
  display: flex;
  height: 680px;
  height: min(72svh, 760px);
  justify-content: center;
  min-height: 340px;
  overflow: hidden;
  position: relative;
  touch-action: auto;
}

.standplan-stage .standplan-image {
  aspect-ratio: auto;
  display: block;
  flex: 0 0 100%;
  height: auto;
  margin: 0;
  max-height: none;
  max-width: none;
  pointer-events: none;
  user-select: none;
  width: 100%;
  -webkit-user-drag: none;
}

.standplan-stage.is-panning {
  cursor: grabbing !important;
}

.standplan-status {
  background: #fff;
  color: #555;
  font-size: 15px;
  margin: 0;
  padding: 12px;
}

.standplan-viewer.is-fullscreen,
.standplan-viewer:fullscreen {
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  inset: 0;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  position: fixed;
  width: 100%;
  z-index: 5000;
}

.standplan-viewer.is-fullscreen .standplan-toolbar {
  flex: 0 0 auto;
}

.standplan-viewer.is-fullscreen .standplan-stage {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

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

body.standplan-fullscreen-open .visitor-info-dock {
  display: none;
}

.flyer-content a:focus-visible,
.standplan-viewer button:focus-visible,
.standplan-stage:focus-visible {
  outline: 3px solid #a98426;
  outline-offset: 5px;
}

.standplan-viewer button:focus-visible {
  outline-offset: -3px;
}

.standplan-stage:focus-visible {
  outline-offset: -4px;
}

@media (max-width: 575.98px) {
  .flyer-content {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .flyer-content .page-title {
    font-size: 36px;
  }

  .flyer-heading .lead {
    font-size: 18px;
    line-height: 1.5;
  }

  .flyer-actions {
    gap: 8px;
  }

  .flyer-download {
    width: 100%;
    font-size: 16px;
  }

  .flyer-view {
    padding: 0 4px;
  }

  .flyer-content h2 {
    font-size: 24px;
  }

  .standplan-toolbar {
    gap: 8px;
    padding: 8px;
  }

  .standplan-views {
    flex: 1 0 100%;
  }

  .standplan-views button {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 6px;
  }

  .standplan-tools {
    justify-content: space-between;
    width: 100%;
  }

  .standplan-stage {
    height: 460px;
    height: min(65svh, 560px);
    min-height: 320px;
  }
}
