body.admin-bar .main-nav {
  top: 32px;
}

.main-nav {
  position: sticky;
  top: 0;
}

.nav-inner {
  position: relative;
}

.nav-links {
  align-items: stretch;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 72px;
  padding: 0;
}

.nav-links > .nav-item {
  align-self: stretch;
  display: flex;
  list-style: none;
  position: relative;
}

.nav-links > .nav-item > a,
.submenu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-width: 0;
  padding: 0 22px;
  position: relative;
  white-space: nowrap;
}

.submenu-toggle span {
  font-size: 15px;
  margin-left: 7px;
  transition: transform 0.18s;
}

.nav-links > .nav-item:hover > a,
.nav-links > .nav-item:hover > .submenu-toggle,
.nav-links > .nav-item:focus-within > a,
.nav-links > .nav-item:focus-within > .submenu-toggle {
  background: rgba(255, 255, 255, 0.08);
}

.nav-links > .nav-item > a::after,
.nav-links > .nav-item > .submenu-toggle::after {
  background: var(--yellow);
  border-radius: 3px;
  bottom: 13px;
  content: "";
  height: 3px;
  left: 22px;
  opacity: 0;
  position: absolute;
  right: 22px;
  transform: scaleX(0.35);
  transition: opacity 0.18s, transform 0.18s;
}

.nav-links > .nav-item:hover > a::after,
.nav-links > .nav-item:focus-within > a::after,
.nav-links > .nav-item:hover > .submenu-toggle::after,
.nav-links > .nav-item:focus-within > .submenu-toggle::after,
.nav-links > .is-current > a::after,
.nav-links > .is-current > .submenu-toggle::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-item-has-children.is-submenu-open .submenu-toggle span {
  transform: rotate(180deg);
}

.sub-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  min-width: 245px;
  opacity: 0;
  overflow: hidden;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 100%;
  transform: translateY(-5px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  visibility: hidden;
  z-index: 50;
}

.nav-item-has-children:hover .sub-menu,
.nav-item-has-children:focus-within .sub-menu,
.nav-item-has-children.is-submenu-open .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.sub-menu li {
  list-style: none;
}

.sub-menu a {
  border-radius: 10px;
  color: var(--navy);
  display: block;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 14px;
}

.sub-menu a:hover,
.sub-menu a:focus-visible,
.sub-menu a[aria-current="page"] {
  background: var(--mist);
  color: var(--blue);
}

.sub-menu a::after {
  display: none;
}

.page-hero,
.events-hero {
  background:
    radial-gradient(circle at 88% 15%, rgba(242, 201, 76, 0.26) 0 125px, transparent 126px),
    linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff;
  padding: 92px 0 96px;
}

.page-hero h1,
.events-hero h1 {
  color: #fff;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
  max-width: 900px;
}

.page-hero > .shell > p:not(.section-kicker),
.events-hero > .shell > p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  margin: 24px 0 0;
  max-width: 760px;
}

.page-hero .button {
  margin-top: 32px;
}

.events-section {
  background: var(--mist);
}

.event-preview {
  background: var(--mist);
}

.event-preview-intro > p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 22px;
}

.event-preview-intro .button {
  width: fit-content;
}

.event-preview-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.event-preview-photo {
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(6, 20, 73, 0.12);
  grid-column: span 4;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.event-preview-photo:first-child {
  grid-column: span 8;
}

.event-preview-photo:nth-child(4) {
  grid-column: span 8;
}

.event-preview-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  width: 100%;
}

.event-preview-photo::after {
  background: linear-gradient(transparent 45%, rgba(3, 10, 37, 0.78));
  content: "";
  inset: 0;
  position: absolute;
}

.event-preview-photo span {
  bottom: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  left: 20px;
  position: absolute;
  right: 20px;
  z-index: 1;
}

.event-preview-photo:hover img {
  transform: scale(1.035);
}

.event-list {
  display: grid;
  gap: 42px;
}

.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 12px 36px rgba(6, 20, 73, 0.09);
  padding: 38px;
}

.event-card-heading {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.event-card-heading .section-kicker {
  margin-bottom: 10px;
}

.event-card-heading h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

.event-count {
  background: var(--mist);
  border-radius: 999px;
  color: var(--blue-dark);
  flex: none;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 14px;
}

.event-excerpt {
  color: var(--muted);
  font-size: 17px;
  margin: -10px 0 28px;
}

.event-content {
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 800px;
}

.event-content > *:first-child {
  margin-top: 0;
}

.event-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}

.event-photo {
  background: var(--navy);
  border: 0;
  border-radius: 18px;
  cursor: zoom-in;
  grid-column: span 4;
  height: 300px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.event-photo:first-child {
  grid-column: span 8;
}

.event-photo img {
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s, transform 0.45s;
  width: 100%;
}

.event-photo:hover img {
  opacity: 0.82;
  transform: scale(1.035);
}

.event-photo span {
  background: rgba(6, 20, 73, 0.86);
  bottom: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  padding: 7px 10px;
  position: absolute;
  right: 12px;
  transform: translateY(5px);
  transition: opacity 0.18s, transform 0.18s;
}

.event-photo:hover span,
.event-photo:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.event-lightbox {
  background: transparent;
  border: 0;
  height: 100%;
  max-height: none;
  max-width: none;
  padding: 32px;
  width: 100%;
}

.event-lightbox::backdrop {
  background: rgba(3, 10, 37, 0.94);
}

.event-lightbox[open] {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-lightbox img {
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  max-height: calc(100vh - 110px);
  max-width: min(1100px, 100%);
  object-fit: contain;
}

.event-lightbox p {
  color: #fff;
  font-size: 13px;
  margin: 12px 0 0;
}

.lightbox-close {
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
  font-size: 27px;
  height: 44px;
  line-height: 1;
  position: fixed;
  right: 24px;
  top: 24px;
  width: 44px;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 54px;
  text-align: center;
}

.empty-state h2 {
  font-size: 34px;
  margin: 0 0 12px;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
}

.prose {
  max-width: 840px;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2,
.prose h3 {
  color: var(--navy);
  line-height: 1.2;
}

.prose h2 {
  font-size: 36px;
  margin-top: 48px;
}

.prose h3 {
  font-size: 26px;
  margin-top: 36px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 17px;
}

.prose ul,
.prose ol {
  margin: 1.2em 0;
  padding-left: 1.5em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose a:not(.button) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-page {
  background: var(--mist);
}

.contact-page-grid {
  align-items: start;
  display: grid;
  gap: 70px;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-page-copy h2 {
  color: var(--ink);
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

.contact-page-copy > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 17px;
  margin: 24px 0 30px;
}

.contact-page-details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: grid;
  font-style: normal;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.contact-page-details div {
  border-bottom: 1px solid var(--line);
  min-height: 154px;
  padding: 30px;
}

.contact-page-details div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.contact-page-details div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.contact-page-details span {
  color: var(--blue);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.contact-page-details a,
.contact-page-details strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.contact-page-details a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-page {
  background: #fff;
}

.detail-page-grid {
  align-items: start;
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.detail-page-copy h2,
.program-detail-card h2,
.program-page-cta h2 {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

.detail-page-copy h3 {
  color: var(--navy);
  font-size: 28px;
  margin: 40px 0 12px;
}

.detail-page-copy > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 17px;
}

.detail-page-copy .detail-lead {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}

.detail-page-copy .button {
  margin-top: 20px;
}

.detail-fact-card {
  background: var(--navy);
  border-radius: 26px;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 38px;
  position: sticky;
  top: 106px;
}

.detail-fact-card span {
  color: var(--yellow);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-fact-card strong {
  display: block;
  font-size: 66px;
  line-height: 1;
  margin: 12px 0 22px;
}

.detail-fact-card p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.page-values,
.program-detail-section {
  background: var(--mist);
}

.page-value-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-value-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 26px;
}

.page-value-grid span,
.program-detail-number {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.page-value-grid strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.35;
  margin-top: 20px;
}

.team-heading {
  margin-bottom: 40px;
  max-width: 640px;
}

.team-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  padding: 38px;
}

.team-initials {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: var(--yellow);
  display: flex;
  flex: none;
  font-size: 22px;
  font-weight: 900;
  height: 72px;
  justify-content: center;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
  width: 72px;
}

.team-card h3 {
  color: var(--navy);
  font-size: 25px;
  line-height: 1.25;
  margin: 0;
}

.team-role {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 12px 0 0;
  text-transform: uppercase;
}

.team-text {
  color: var(--muted);
  font-size: 16px;
  margin: 18px 0 0;
}

.program-detail-list {
  display: grid;
  gap: 22px;
}

.program-detail-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  display: grid;
  gap: 28px;
  grid-template-columns: 58px 1fr;
  padding: 38px;
}

.program-detail-card .section-kicker {
  margin-bottom: 10px;
}

.program-detail-card h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}

.program-detail-card p:last-child {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 0;
}

.program-page-cta {
  background: var(--blue);
  color: #fff;
}

.program-page-cta-inner {
  align-items: center;
  display: grid;
  gap: 70px;
  grid-template-columns: 1.2fr 0.8fr;
}

.program-page-cta h2 {
  color: #fff;
}

.program-page-cta p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  margin-bottom: 0;
}

.program-page-actions {
  display: grid;
  gap: 12px;
}

.content-featured-image {
  border-radius: 26px;
  margin-bottom: 38px;
}

.post-list {
  display: grid;
  gap: 24px;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
}

.post-card h2 {
  color: var(--navy);
  font-size: 30px;
  margin: 0;
}

.post-card p:last-child {
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 18px;
}

/*
 * The search panel belongs to the header. Keep the entire header stacking
 * context above the sticky menu so results can never be hidden behind it.
 */
.site-header {
  z-index: 80;
}

.site-search {
  z-index: 81;
}

.site-search:focus-within {
  z-index: 90;
}

.search-results {
  max-height: min(520px, 62vh);
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  z-index: 100;
}

.search-results a {
  gap: 4px;
}

.search-results a:hover,
.search-results a:focus-visible {
  background: var(--mist);
}

.search-result-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.search-result-heading strong {
  color: var(--ink);
}

.search-result-type {
  color: var(--blue);
  flex: none;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result-description {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 782px) {
  body.admin-bar .main-nav {
    top: 46px;
  }
}

@media (max-width: 820px) {
  .search-results {
    max-height: min(480px, 58vh);
    top: calc(100% + 8px);
  }

  .nav-links {
    align-items: stretch;
    min-height: 0;
  }

  .nav-links > .nav-item {
    display: block;
    width: 100%;
  }

  .nav-links > .nav-item > a,
  .submenu-toggle {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    justify-content: space-between;
    min-height: 50px;
    padding: 0 10px;
    width: 100%;
  }

  .nav-links > .nav-item > a::after,
  .nav-links > .nav-item > .submenu-toggle::after {
    display: none;
  }

  .sub-menu {
    background: var(--blue-dark);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
    min-width: 0;
    opacity: 1;
    padding: 4px 8px 10px 20px;
    pointer-events: auto;
    position: static;
    transform: none;
    visibility: visible;
  }

  .nav-item-has-children.is-submenu-open .sub-menu {
    display: block;
  }

  .sub-menu a {
    color: #fff;
    padding: 11px 12px;
  }

  .sub-menu a:hover,
  .sub-menu a:focus-visible,
  .sub-menu a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.09);
    color: var(--yellow);
  }

  .page-hero,
  .events-hero {
    padding: 72px 0;
  }

  .contact-page-grid {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .detail-page-grid,
  .program-page-cta-inner {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .detail-fact-card {
    position: static;
  }

  .page-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .event-preview-photo,
  .event-preview-photo:first-child,
  .event-preview-photo:nth-child(4) {
    grid-column: span 6;
    height: 260px;
  }

  .event-card {
    padding: 28px;
  }

  .event-photo,
  .event-photo:first-child {
    grid-column: span 6;
    height: 270px;
  }
}

@media (max-width: 580px) {
  .page-hero,
  .events-hero {
    padding: 58px 0 64px;
  }

  .page-hero h1,
  .events-hero h1 {
    font-size: 43px;
  }

  .event-card {
    border-radius: 22px;
    padding: 20px;
  }

  .event-card-heading {
    align-items: start;
    flex-direction: column;
  }

  .event-photo,
  .event-photo:first-child {
    grid-column: span 12;
    height: 290px;
  }

  .event-lightbox {
    padding: 16px;
  }

  .contact-page-details {
    grid-template-columns: 1fr;
  }

  .contact-page-details div,
  .contact-page-details div:nth-child(odd),
  .contact-page-details div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 0;
    padding: 24px;
  }

  .contact-page-details div:last-child {
    border-bottom: 0;
  }

  .page-value-grid {
    grid-template-columns: 1fr;
  }

  .program-detail-card {
    gap: 16px;
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .team-card {
    border-radius: 22px;
    padding: 26px;
  }

  .team-initials {
    font-size: 19px;
    height: 62px;
    margin-bottom: 20px;
    width: 62px;
  }

  .event-preview-photo,
  .event-preview-photo:first-child,
  .event-preview-photo:nth-child(4) {
    grid-column: span 12;
    height: 280px;
  }

  .lightbox-close {
    right: 14px;
    top: 14px;
  }
}
