/* The map workspace shares the typography and palette of the institutional site. */
body[data-site-page="drive-connect"] {
  --dc-edge: clamp(12px, 1.6vw, 24px);
  --dc-nav-height: 70px;
  --dc-panel-top: calc(var(--dc-nav-height) + 2 * var(--dc-edge));
  --dc-panel-shadow: 0 6px 30px rgb(7 26 53 / .14);
}

body[data-site-page="drive-connect"]:has([data-dc-map-active]) > .dp-header {
  position: absolute;
  inset: var(--dc-edge) var(--dc-edge) auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--dc-panel-shadow);
}

body[data-site-page="drive-connect"]:has([data-dc-map-active]) .dp-header__inner {
  width: auto;
  min-height: var(--dc-nav-height);
  padding-inline: clamp(12px, 2vw, 26px);
}

.dc-page {
  --dc-action: #ac360f;
  position: relative;
  isolation: isolate;
  color: var(--navy);
}

.dc-page[data-dc-map-active] {
  height: 100vh;
  height: 100dvh;
  background: #eef1ed;
}

.dc-page [hidden] {
  display: none !important;
}

.dc-overlay {
  width: min(680px, calc(100% - 2 * var(--dc-edge)));
  margin-inline: auto;
  padding-block: 24px 40px;
}

[data-dc-map-active] .dc-overlay {
  position: absolute;
  z-index: 2;
  inset-block-start: var(--dc-panel-top);
  inset-inline-start: var(--dc-edge);
  display: flex;
  flex-direction: column;
  width: min(620px, 45vw);
  max-height: calc(100% - var(--dc-panel-top) - var(--dc-edge));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--dc-panel-shadow);
}

.dc-hero {
  flex: 0 0 auto;
}

[data-dc-map-active] .dc-hero {
  padding: 6px 22px 15px;
}

.dc-hero h1 img {
  width: clamp(168px, 15vw, 220px);
  height: auto;
  margin-inline-start: -24px;
}

.dc-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.dc-hero__facts p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.dc-hero__facts svg {
  color: var(--dc-action);
}

.dc-hero svg,
.dc-event svg,
.dc-location svg,
.dc-map-marker svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dc-agenda {
  --dc-date-target: 76px;
  padding-block-start: 20px;
}

[data-dc-map-active] .dc-agenda {
  min-height: 0;
  padding: 16px 22px 20px;
  overflow: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scroll-padding-block-start: calc(var(--dc-date-target) + 16px);
  border-block-start: 1px solid var(--line);
  border-radius: 0 0 15px 15px;
}

.dc-agenda:focus-visible,
.dc-location:focus-visible {
  outline-offset: -3px;
}

.dc-day-picker {
  position: sticky;
  z-index: 2;
  top: 0;
  padding-block: 0 8px;
  background: #fff;
}

[data-dc-map-active] .dc-day-picker {
  box-shadow: 0 -16px #fff;
}

.dc-day-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dc-day-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  min-block-size: var(--dc-date-target);
  padding: 10px clamp(12px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}

.dc-day-tabs button:hover {
  border-color: #8b9bb0;
  background: #eef2f6;
}

.dc-day-tabs button:is([aria-selected="true"], [aria-current="date"]) {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.dc-day-tabs button:is([aria-selected="true"], [aria-current="date"])::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: clamp(12px, 2vw, 22px);
  width: 7px;
  height: 13px;
  border-inline-end: 2px solid #ff9874;
  border-block-end: 2px solid #ff9874;
  transform: translateY(-65%) rotate(45deg);
  content: '';
}

.dc-day-tab__date {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.dc-day-tab__number {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -.055em;
}

.dc-day-tab__month {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.dc-day-tab__month--short {
  display: none;
}

@media (max-width: 640px) {
  .dc-day-tab__month--full {
    display: none;
  }

  .dc-day-tab__month--short {
    display: inline;
  }
}

.dc-day-tabs button:focus-visible {
  outline-offset: 2px;
}

.dc-map {
  position: absolute;
  z-index: 0;
  inset: 0;
  isolation: isolate;
  background: #eef1ed;
  font-family: inherit;
}

.dc-map .maplibregl-ctrl-top-right {
  top: var(--dc-panel-top);
  right: var(--dc-edge);
}

.dc-map .maplibregl-ctrl-top-right > .maplibregl-ctrl {
  margin: 0;
}

.dc-map .maplibregl-ctrl-bottom-right {
  right: var(--dc-edge);
}

.dc-location {
  position: absolute;
  z-index: 1;
  inset: auto var(--dc-edge) 34px auto;
  display: flex;
  flex-direction: column;
  width: min(410px, 36vw);
  max-block-size: min(44dvh, 410px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--dc-panel-shadow);
}

.dc-location [data-dc-location-content] {
  min-block-size: 0;
  padding: 15px 16px 12px;
  overflow: auto;
  overscroll-behavior: contain;
}

.dc-location__profile {
  display: grid;
  gap: 8px;
}

.dc-location__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline-end: 34px;
}

.dc-location__heading svg {
  color: var(--dc-action);
}

.dc-location__heading h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.dc-location__address,
.dc-location__description,
.dc-map-fallback {
  font-size: 13px;
  line-height: 1.6;
}

.dc-location__address {
  margin-block-start: -4px;
}

.dc-location__media {
  margin: 2px 0;
}

.dc-location__media img {
  display: block;
  width: 100%;
  height: clamp(110px, 16dvh, 156px);
  border-radius: 8px;
  background: var(--surface);
  object-fit: cover;
}

.dc-location__media figcaption {
  padding-block-start: 3px;
  color: var(--muted);
  font-size: 11px;
}

.dc-location__media figcaption a:hover {
  text-decoration: underline;
}

.dc-location__close {
  position: absolute;
  z-index: 1;
  inset: 8px 8px auto auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}

.dc-location__close:hover {
  background: #e6edf4;
}

.dc-location__close:focus-visible {
  outline-offset: -2px;
}

.dc-location__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.dc-location__directions {
  min-height: 36px;
  white-space: nowrap;
}

.dc-map-fallback {
  margin-block-start: 12px;
}

.dc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dc-day {
  margin-block-start: 20px;
}

.dc-day__title {
  margin-block-end: 14px;
  font-size: 24px;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.dc-event {
  position: relative;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-margin-block-start: 8px;
}

.dc-event + .dc-event {
  margin-block-start: 10px;
}

@media (hover: hover) {
  .dc-event:hover {
    border-color: #dac4b7;
    background: #faf5f1;
  }
}

.dc-event:is(:focus-within, .is-selected) {
  border-color: #dac4b7;
  background: #fff6ef;
}

.dc-event__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dc-event__head > svg {
  color: var(--muted);
}

.dc-event:is(:hover, :focus-within, .is-selected) .dc-event__head > svg {
  color: var(--dc-action);
}

.dc-event__identity {
  flex: 1;
  min-width: 0;
}

.dc-event__media {
  position: relative;
  flex: 0 0 auto;
  width: clamp(96px, 10vw, 148px);
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: clip;
  border-radius: 7px;
  background: var(--surface);
}

.dc-event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dc-event__media figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 3px 4px;
  background: rgb(7 26 53 / .84);
  color: #fff;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.dc-event h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.035em;
}

.dc-event p, .dc-activities, .dc-timetable {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.dc-event__venue {
  margin-block-start: 4px;
  line-height: 1.6;
}

.dc-event p.dc-event__time {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  gap: 5px;
  margin-block-end: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #faeade;
  color: #9e3211;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.dc-event__time svg {
  width: 14px;
  height: 14px;
}

.dc-location__directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dc-action);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.dc-location__directions:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.dc-event__map-link::after {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  cursor: pointer;
  content: '';
}

.dc-event__map-link:focus-visible {
  outline: none;
}

.dc-event__map-link:focus-visible::after {
  outline: 2px solid #245ca0;
  outline-offset: -2px;
}

.dc-location__directions svg {
  width: 15px;
  height: 15px;
}

.dc-event__details {
  padding-block-start: 12px;
}

.dc-event__details > p + .dc-timetable {
  margin-block-start: 6px;
}

.dc-event__details .dc-event__note {
  margin-block-start: 6px;
  color: var(--dc-action);
}

.dc-timetable {
  width: 100%;
  border-collapse: collapse;
}

.dc-timetable :is(th, td) {
  padding-block: 6px;
  vertical-align: middle;
  text-align: start;
}

.dc-timetable th {
  width: 82px;
  padding-inline-end: 10px;
  color: var(--navy);
  white-space: nowrap;
}

.dc-timetable__time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 61px;
  min-block-size: 26px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e8eef5;
  color: #183553;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.dc-timetable tr + tr {
  border-block-start: 1px solid var(--line);
}

.dc-activities {
  margin: 0;
  padding-inline-start: 17px;
}

.dc-activities li + li {
  margin-block-start: 4px;
}

.dc-activities strong {
  font-weight: 600;
  color: var(--navy);
}

.dc-agenda__note {
  margin-block-start: 20px;
  font-size: 12px;
}

.dc-map .maplibregl-ctrl-group {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(7 26 53 / .14);
}

.dc-map .maplibregl-ctrl-group button {
  width: 36px;
  height: 36px;
}

.dc-map .maplibregl-ctrl-attrib {
  font-size: 10px;
}

.dc-map :is(.maplibregl-ctrl button, .maplibregl-canvas):focus-visible {
  outline: 2px solid #245ca0;
  outline-offset: -2px;
}

.dc-map-marker {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 2px 8px rgb(7 26 53 / .24);
  cursor: pointer;
}

.dc-map-marker[aria-pressed="true"] {
  z-index: 1;
  background: #ce3909;
}

.dc-map-marker__name {
  position: absolute;
  inset-inline-start: calc(100% + 5px);
  min-width: max-content;
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 1px 5px rgb(7 26 53 / .13);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.dc-map-marker--west .dc-map-marker__name {
  inset-inline: auto calc(100% + 5px);
}

.dc-map-marker[aria-pressed="true"] .dc-map-marker__name {
  color: var(--dc-action);
}

@media (prefers-reduced-motion: no-preference) {
  [data-dc-map-ready] .dc-day:not([hidden]),
  .dc-location__profile {
    animation: dc-content-enter 220ms cubic-bezier(.2, .65, .3, 1) both;
  }

  .dc-event,
  .dc-day-tabs button {
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  }
}

@keyframes dc-content-enter {
  from {
    opacity: .65;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  body[data-site-page="drive-connect"] {
    --dc-nav-height: 58px;
  }

  body[data-site-page="drive-connect"]:has([data-dc-map-active]) .dp-header[data-enhanced] .dp-header__panel {
    top: calc(100% + 6px);
    border-radius: 12px;
  }
}

@media (max-width: 900px) {
  [data-dc-map-active] .dc-overlay {
    inset-inline-end: var(--dc-edge);
    width: auto;
    max-height: min(40%, calc(100% - var(--dc-panel-top) - var(--dc-edge)));
  }

  [data-dc-map-active] .dc-hero {
    padding: 0 14px 12px;
  }

  [data-dc-map-active] .dc-agenda {
    padding-inline: 14px;
  }

  .dc-hero h1 img {
    width: 174px;
    margin-inline-start: -20px;
  }

  .dc-map .maplibregl-ctrl-top-right {
    top: calc(var(--dc-panel-top) + 40dvh + 10px);
  }

  .dc-location {
    inset-inline-start: var(--dc-edge);
    width: auto;
    max-block-size: 34dvh;
  }

  .dc-location__profile:has(.dc-location__media:not([hidden])) {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .dc-location__heading,
  .dc-location__address,
  .dc-location__links {
    grid-column: 1 / -1;
  }

  .dc-location__media img {
    height: 67px;
  }
}

@media (max-width: 480px) {
  .dc-agenda {
    --dc-date-target: 70px;
  }

  .dc-hero__facts {
    gap: 4px 10px;
  }

  .dc-hero__facts p {
    font-size: 12px;
  }

  .dc-hero__facts svg {
    width: 15px;
    height: 15px;
  }

  .dc-day__title {
    font-size: 22px;
  }

  .dc-event h4 {
    font-size: 18px;
  }

  .dc-event__head {
    gap: 10px;
  }

  .dc-event__media {
    width: 80px;
    aspect-ratio: 1;
  }

  .dc-event__media figcaption {
    font-size: 9px;
  }

  .dc-timetable th {
    width: 72px;
  }

  .dc-map-marker {
    width: 32px;
    height: 32px;
  }

  .dc-map-marker__name {
    font-size: 10px;
  }

}
