/* V2 Production Starter */
:root {
  --brand: #175c8e;
  --body: #1e2427;
  --bodybg: #f6f6f1;
  --link: #fff;
  --focus: #ffc547;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  background-color: var(--bodybg);
}

.skip-link {
  color: var(--brand);
  background: #fff;
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 1rem;
  z-index: 999;
}

site-header {
  display: block;
  background-color: var(--brand);
}

.site-header {
  margin: 0 auto;
  max-width: 84%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  /*border-bottom: 1px solid #ddd;*/
}

.main-nav {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  padding: 0.25rem 0.5rem;
  color: var(--link);
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--focus);
  text-decoration: underline;
}

.main-nav a[aria-current="page"] {
  color: var(--focus);
  text-decoration: underline;
  font-weight: 700;
}

a:focus-visible,
.hotspot:focus-visible {
  outline: 5px solid var(--focus);
  outline-offset: 3px;
}

main {
  padding-top: 2rem;
  color: var(--body);
  background-color: var(--bodybg);
}

.map-wrapper {
  position: relative;
  max-width: 70%;
  margin: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-wrapper.loaded {
  opacity: 1;
}

.map-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.building {
  fill: rgba(0, 59, 92, 0.12);
  stroke: #fff;
  stroke-width: 5;
  cursor: pointer;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease,
    filter 0.2s ease;
}

.map-overlay a:hover .building {
  fill: rgba(23, 92, 142, 0.5);
  stroke: #ffffff;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.map-overlay a:focus .building,
.map-overlay a:focus-visible .building {
  fill: rgba(23, 92, 142, 0.5);
  stroke: #ffffff;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
  stroke-width: 5;
}

.map-tooltip {
  opacity: 0;
  fill: white;
  font-size: 22px;
  font-weight: 700;
  pointer-events: none;
}

a:hover .map-tooltip,
a:focus .map-tooltip {
  opacity: 1;
}

.building:hover,
.building:focus {
  fill: rgba(0, 59, 92, 0.3);
  stroke-width: 5;
}

.video-wrapper {
  margin: 0 auto;
  max-width: 70%;
  position: relative;
  aspect-ratio: 16/9;
}

.video-wrapper details {
  font-size: 1.15rem;
}

.video-wrapper details summary {
  margin-top: 1rem;
  color: var(--body);
  cursor: pointer;
}

.video-wrapper details .transcript-content {
  margin-top: 1rem;
  padding: 1rem 2rem;
  background-color: #fff;
  border-radius: 0.5rem;
}

.site-footer {
  text-align: center;
  padding: 1rem;
  color: var(--body);
  background-color: var(--bodybg);
  /*border-top: 1px solid #ddd;*/
}

.sr-only {
  position: absolute;
  left: -9999px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

@media (max-width: 1300px) {
}

@media (max-width: 1760px) {
  .map-wrapper,
  .video-wrapper {
    max-width: 80%;
  }
}

@media (max-width: 1430px) {
  .site-header {
    flex-direction: column;
    max-width: unset;
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .map-wrapper,
  .video-wrapper {
    max-width: calc(100% - 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
