.quarto-title-block {
  display: none;
}

/* Quarto adds its page-column grid to raw HTML blocks. Reset it for this page. */
.research-map-page.page-columns {
  display: block;
}

.research-map-page.page-columns > * {
  grid-column: auto !important;
}

.research-map-page {
  position: relative;
  left: 50%;
  width: min(1080px, calc(100vw - 2rem));
  margin: 0;
  transform: translateX(-50%);
}

#research-map {
  position: relative;
  width: 100%;
  height: clamp(430px, 54vw, 590px);
  box-sizing: border-box;
  overflow: hidden;
  color: var(--body);
  background: #e3e9e8;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  isolation: isolate;
}

.map-loading,
.map-error {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
}

#research-map:focus-visible {
  outline: 3px solid var(--osu-scarlet);
  outline-offset: -3px;
}

/* Critical Leaflet layout styles are kept locally so the map cannot explode
   when a third-party stylesheet is blocked. */
#research-map .leaflet-pane,
#research-map .leaflet-tile,
#research-map .leaflet-marker-icon,
#research-map .leaflet-marker-shadow,
#research-map .leaflet-tile-container,
#research-map .leaflet-pane > svg,
#research-map .leaflet-pane > canvas,
#research-map .leaflet-zoom-box {
  position: absolute !important;
  top: 0;
  left: 0;
}

#research-map .leaflet-pane {
  z-index: 400;
}

#research-map .leaflet-tile-pane {
  z-index: 200;
}

#research-map .leaflet-overlay-pane {
  z-index: 400;
}

#research-map .leaflet-shadow-pane {
  z-index: 500;
}

#research-map .leaflet-marker-pane {
  z-index: 600;
}

#research-map .leaflet-tooltip-pane {
  z-index: 650;
}

#research-map .leaflet-popup-pane {
  z-index: 700;
}

#research-map .leaflet-map-pane canvas {
  z-index: 100;
}

#research-map .leaflet-map-pane svg {
  z-index: 200;
}

#research-map .leaflet-tile,
#research-map .leaflet-marker-icon,
#research-map .leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

#research-map .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  visibility: hidden;
}

#research-map .leaflet-tile-loaded {
  visibility: inherit;
}

#research-map .leaflet-marker-icon,
#research-map .leaflet-interactive {
  cursor: pointer;
}

#research-map .leaflet-control-container {
  font-family: var(--sans);
}

#research-map .leaflet-top,
#research-map .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

#research-map .leaflet-top {
  top: 0;
}

#research-map .leaflet-right {
  right: 0;
}

#research-map .leaflet-bottom {
  bottom: 0;
}

#research-map .leaflet-left {
  left: 0;
}

#research-map .leaflet-control {
  position: relative;
  z-index: 800;
  float: left;
  clear: both;
  pointer-events: auto;
}

#research-map .leaflet-right .leaflet-control {
  float: right;
}

#research-map .leaflet-top .leaflet-control {
  margin-top: 10px;
}

#research-map .leaflet-left .leaflet-control {
  margin-left: 10px;
}

#research-map .leaflet-bottom .leaflet-control {
  margin-right: 8px;
  margin-bottom: 7px;
}

#research-map .leaflet-control-attribution {
  padding: 0 5px;
  color: #4b5052;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  line-height: 1.45;
}

#research-map .leaflet-control-attribution a {
  color: var(--osu-scarlet-dark);
  text-decoration: none;
}

#research-map .leaflet-bar {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(33, 35, 37, 0.18);
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(33, 35, 37, 0.22);
}

#research-map .leaflet-bar a {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font: 700 20px/32px var(--sans);
  text-align: center;
  text-decoration: none;
}

#research-map .leaflet-bar a:last-child {
  border-bottom: 0;
}

#research-map .leaflet-bar a:hover,
#research-map .leaflet-bar a:focus {
  color: var(--osu-scarlet);
  background: #f7edef;
}

#research-map .leaflet-bar a.leaflet-disabled {
  color: #a7adaf;
  background: #f3f4f4;
  cursor: default;
}

.research-marker-wrap {
  background: transparent;
  border: 0;
}

.research-route-arrow-wrap {
  background: transparent;
  border: 0;
  pointer-events: none;
}

.research-route-arrow {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 6px;
  height: 6px;
  background: #171717;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform-origin: 3px 3px;
}

.research-marker {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--osu-scarlet);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(33, 35, 37, 0.55);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.research-marker-wrap:hover .research-marker,
.research-marker-wrap:focus .research-marker,
.research-marker-wrap:focus-visible .research-marker {
  background: var(--osu-scarlet-dark);
  box-shadow: 0 0 0 4px rgba(186, 12, 47, 0.22), 0 2px 7px rgba(33, 35, 37, 0.45);
  transform: scale(1.18);
}

.research-marker-wrap--academic .research-marker {
  background: var(--osu-info);
}

.research-marker-wrap--academic:hover .research-marker,
.research-marker-wrap--academic:focus .research-marker,
.research-marker-wrap--academic:focus-visible .research-marker {
  background: var(--osu-info-dark);
  box-shadow: 0 0 0 4px rgba(65, 182, 230, 0.25), 0 2px 7px rgba(33, 35, 37, 0.45);
}

.research-marker-wrap:focus,
.research-marker-wrap:focus-visible {
  outline: none;
}

#research-map .leaflet-tooltip {
  position: absolute;
  padding: 0;
  color: var(--body);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  white-space: normal;
  pointer-events: none;
  user-select: none;
}

#research-map .research-tooltip::before {
  display: none;
}

.map-tooltip-card {
  width: min(255px, calc(100vw - 70px));
  padding: 0.72rem 0.8rem 0.76rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(33, 35, 37, 0.14);
  border-radius: 7px;
  box-shadow: 0 5px 18px rgba(33, 35, 37, 0.22);
  text-align: left;
}

.map-tooltip-place,
.map-tooltip-meta,
.map-tooltip-headline {
  display: block;
}

.map-tooltip-place {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.25;
}

.map-tooltip-meta {
  margin-top: 0.22rem;
  color: var(--osu-scarlet);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

.map-tooltip-headline {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

#research-map .leaflet-popup {
  position: absolute;
  margin-bottom: 18px;
  text-align: center;
}

#research-map .leaflet-popup-content-wrapper {
  padding: 1px;
  background: var(--white);
  border-radius: 7px;
  box-shadow: 0 5px 20px rgba(33, 35, 37, 0.24);
  text-align: left;
}

#research-map .leaflet-popup-content {
  width: min(250px, calc(100vw - 90px)) !important;
  min-height: 1px;
  margin: 0.85rem 1rem 0.95rem;
}

#research-map .leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 40px;
  height: 20px;
  margin-top: -1px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

#research-map .leaflet-popup-tip {
  width: 17px;
  height: 17px;
  margin: -10px auto 0;
  padding: 1px;
  background: var(--white);
  box-shadow: 3px 3px 8px rgba(33, 35, 37, 0.16);
  transform: rotate(45deg);
}

#research-map .leaflet-popup-close-button {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  padding: 3px 4px 0 0;
  color: #707679;
  background: transparent;
  border: 0;
  font: 20px/22px Tahoma, Verdana, sans-serif;
  text-align: center;
  text-decoration: none;
}

#research-map .leaflet-popup-close-button:hover,
#research-map .leaflet-popup-close-button:focus {
  color: var(--osu-scarlet);
  text-decoration: none;
}

.map-popup-kicker {
  margin: 0 0 0.28rem;
  color: var(--osu-scarlet);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.map-popup-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.map-popup-headline {
  margin: 0.42rem 0 0;
  color: var(--body);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 600px) {
  .research-map-page {
    width: calc(100vw - 1.5rem);
  }

  #research-map {
    height: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-marker {
    transition: none;
  }
}

@media print {
  .research-map-page {
    left: auto;
    width: auto;
    transform: none;
  }

  #research-map {
    height: 5.3in;
  }
}
