.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown > a span {
  color: var(--lime);
  font-size: 11px;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  min-width: 190px;
  padding: 9px;
  background: var(--ink);
  border: 1px solid #ffffff2b;
  box-shadow: 0 18px 40px #0008;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: -19px;
  height: 19px;
}

.nav-submenu a {
  display: block;
  padding: 11px 12px;
  white-space: nowrap;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: block;
}

.class-grid article {
  scroll-margin-top: 24px;
}

.health-details {
  margin: 18px 0 24px;
  border: 1px solid #ffffff42;
}

.health-details summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--lime);
  font-weight: 800;
  list-style-position: inside;
}

.health-details summary:hover,
.health-details summary:focus-visible {
  background: #ffffff12;
}

.health-content {
  padding: 0 16px 18px;
}

.health-content p {
  margin: 0 0 8px;
}

.health-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.5;
}

.health-content li {
  position: relative;
  padding: 0 0 8px 18px;
}

.health-content li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--lime);
}

.class-grid .health-source {
  display: inline-block;
  margin-top: 10px;
  color: var(--lime);
  font-size: 14px;
}

.class-location-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
}

.class-location-actions a {
  margin-top: 0;
  border-bottom: 1px solid var(--lime);
  padding-bottom: 4px;
}

.class-location-actions a:hover,
.class-location-actions a:focus-visible {
  color: var(--lime);
}

nav {
  gap: clamp(12px, 1.6vw, 32px);
}

@media (max-width: 1100px) and (min-width: 761px) {
  .nav {
    padding-right: 3vw;
    padding-left: 3vw;
  }

  nav {
    gap: 12px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .nav-dropdown > a {
    justify-content: space-between;
  }

  .nav-submenu {
    display: flex;
    position: static;
    flex-direction: column;
    min-width: 0;
    margin: 10px 0 2px 10px;
    padding: 2px 0 2px 14px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--lime);
    box-shadow: none;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-submenu a {
    padding: 8px 0;
    color: var(--muted);
    font-size: 13px;
  }
}

.nav nav a,
.nav .menu {
  color: #ffe94d;
}

.nav .nav-cta,
.nav .menu {
  border-color: #ffe94d;
}

.nav nav a:hover,
.nav nav a:focus-visible {
  color: #fff;
}

/* Keep the slim header and open navigation from its right edge. */
.nav .menu {
  display: block;
  padding: 10px 16px;
  border: 2px solid #ffe94d;
  background: rgba(16, 15, 18, .82);
  color: #ffe94d;
  font-size: 14px;
  letter-spacing: .12em;
  cursor: pointer;
}

.nav .menu:hover,
.nav .menu:focus-visible,
.nav .menu[aria-expanded="true"] {
  background: #ffe94d;
  color: #100f12;
}

.nav nav {
  display: none;
  position: absolute;
  top: 78px;
  right: 0;
  left: auto;
  width: min(390px, calc(100vw - 20px));
  max-height: calc(100vh - 78px);
  overflow-y: auto;
  padding: 14px 18px 22px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  font-size: 14px;
  background: #151318;
  border-left: 3px solid #ffe94d;
  border-bottom: 3px solid #ffe94d;
  box-shadow: -16px 18px 40px #000b;
}

.nav nav.open {
  display: flex;
}

.nav nav > a,
.nav-dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 45px;
  padding: 11px 10px;
  border-bottom: 1px solid #ffe94d47;
}

.nav nav > a:hover,
.nav nav > a:focus-visible,
.nav-dropdown > a:hover,
.nav-dropdown > a:focus-visible {
  background: #ffe94d18;
}

.nav-submenu {
  display: flex;
  position: static;
  flex-direction: column;
  min-width: 0;
  margin: 4px 0 8px 10px;
  padding: 2px 0 2px 14px;
  background: transparent;
  border: 0;
  border-left: 2px solid #ffe94d;
  box-shadow: none;
}

.nav-submenu::before {
  display: none;
}

.nav-submenu a {
  padding: 8px 0;
}

.nav-media summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 45px;
  padding: 11px 10px;
  border-bottom: 1px solid #ffe94d47;
  color: #ffe94d;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.nav-media summary::-webkit-details-marker {
  display: none;
}

.nav-media summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.nav-media[open] summary::after {
  content: "−";
}

.nav-media summary:hover,
.nav-media summary:focus-visible {
  background: #ffe94d18;
}

.nav-media-links {
  display: flex;
  flex-direction: column;
  margin: 4px 0 8px 10px;
  padding-left: 14px;
  border-left: 2px solid #ffe94d;
}

.nav-media-links a {
  padding: 9px 0;
}

@media (max-width: 760px) {
  .nav nav {
    top: 68px;
    max-height: calc(100vh - 68px);
  }
}

.events {
  border-top: 1px solid #ffffff2b;
  background: radial-gradient(circle at 85% 50%, #321522 0%, var(--ink) 55%);
  scroll-margin-top: 24px;
}

.events h2 {
  margin-bottom: 18px;
}

.events > p:not(.kicker) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.events .text-link {
  display: inline-flex;
  margin-top: 32px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin-top: 32px;
}

.event-grid article {
  min-width: 0;
  background: #1a171e;
  border: 1px solid #ffffff2b;
}

.event-poster {
  display: block;
  overflow: hidden;
}

.event-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.event-poster:hover,
.event-poster:focus-visible {
  outline: 3px solid #ffe94d;
  outline-offset: -3px;
}

.event-caption {
  padding: 18px 20px 22px;
}

.event-caption h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
}

.event-caption p {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}
