:root {
  --black: #000;
  --charcoal: #303030;
  --white: #fff;
  --blue: #4dd3ff;
  --purple: #d105ff;
  --orange: #f15a24;
  --peach: #ffb182;
  --lavender: #c76be8;
  --slate-blue: #6ab5cc;
  --text-blue: #4176a8;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--white);
}

body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  color: #222;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 5;
  min-height: 120px;
  overflow: visible;
  padding: 10px clamp(16px, 3vw, 40px) 26px;
  background: var(--black);
}

.brand {
  display: block;
  width: 100px;
  height: 100px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.quick-links {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 10;
  width: min(430px, calc(100vw - 32px));
  border-bottom: 0;
  transform: translateX(-50%);
}

.quick-links details {
  position: relative;
  background: transparent;
}

.quick-links summary {
  padding: 8px 36px;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  font-size: clamp(1.12rem, 3.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1;
  list-style: none;
  text-align: center;
  text-transform: uppercase;
}

.quick-links summary::-webkit-details-marker {
  display: none;
}

.quick-links summary::after {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.55em;
  border-right: 0.12em solid currentColor;
  border-bottom: 0.12em solid currentColor;
  content: "";
  transform: translateY(-0.18em) rotate(45deg);
  transition: transform 180ms ease;
}

.quick-links summary:hover,
.quick-links summary:focus-visible {
  color: var(--blue);
}

.quick-links summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.quick-links details[open] summary {
  color: var(--purple);
}

.quick-links details[open] summary::after {
  transform: translateY(0.12em) rotate(225deg);
}

.quick-links-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: min(430px, calc(100vw - 32px));
  max-height: min(72vh, 680px);
  overflow-y: auto;
  padding: 24px 18px 30px;
  background: var(--charcoal);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateX(-50%) translateY(-8px) scaleY(0.98);
  transform-origin: top center;
}

.quick-links details[open] .quick-links-panel {
  animation: quickLinksDrop 320ms ease-out forwards;
}

@keyframes quickLinksDrop {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-links details[open] .quick-links-panel {
    animation: none;
  }

  .quick-links-panel {
    opacity: 1;
    transform: translateX(-50%);
  }
}

.quick-links-group {
  max-width: 620px;
  margin: 0 auto;
}

.quick-links-group + .quick-links-group {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #666;
}

.quick-links-heading {
  margin: 0 0 10px;
  color: #73d2fb;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.quick-links ul {
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.quick-links li + li {
  margin-top: 7px;
}

.quick-links li {
  text-align: center;
}

.quick-links a {
  display: block;
  padding: 4px;
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.quick-links .quick-links-heading a {
  display: inline;
  padding: 0;
  color: #73d2fb;
  font-size: inherit;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  color: #d619ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quick-links a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

main {
  flex: 1;
  padding: 34px 16px 58px;
  background: #f6f9fb;
}

.current-date {
  width: min(100%, 940px);
  margin: 0 auto 14px;
  color: #b51631;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.home-events {
  width: min(100%, 940px);
  margin: 0 auto;
}

.home-events-heading {
  text-align: center;
}

.home-kicker {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main h1 {
  margin: 0;
  color: var(--text-blue);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.08;
}

.home-events-intro {
  width: min(100%, 660px);
  margin: 12px auto 0;
  color: #42606f;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.home-events-intro a {
  color: #0000ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.events-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 14px;
  text-align: left;
}

.events-toolbar label {
  display: grid;
  gap: 6px;
  color: #293f49;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.events-toolbar select,
.events-toolbar input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 10px;
  border: 1px solid #a9bbc4;
  border-radius: 4px;
  background: #fff;
  color: #1f2e35;
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.events-toolbar input[type="search"] {
  padding-right: 10px;
}

.events-toolbar input[type="search"]::placeholder {
  color: #718792;
}

.events-toolbar select:focus-visible,
.events-toolbar input[type="search"]:focus-visible {
  border-color: var(--text-blue);
  outline: 3px solid rgba(77, 211, 255, 0.42);
  outline-offset: 1px;
}

.events-summary {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #526a73;
  font-size: 0.88rem;
  font-weight: 700;
}

.events-list {
  display: grid;
  gap: 12px;
}

.event-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-left: 5px solid var(--purple);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(36, 56, 66, 0.12);
  text-align: left;
}

.event-date {
  display: grid;
  min-height: 78px;
  align-content: center;
  justify-items: center;
  border-radius: 4px;
  background: linear-gradient(135deg, #bb70e1 0%, #9afce0 100%);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.event-date span {
  max-width: 80px;
  font-size: 1.05rem;
}

.event-date small {
  margin-top: 6px;
  color: #073b78;
  font-size: 0.74rem;
}

.event-body {
  min-width: 0;
}

.event-meta,
.event-source {
  margin: 0;
  color: #6c7d84;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.event-body h3 {
  margin: 5px 0 7px;
  color: #0000ff;
  font-size: 1.24rem;
  line-height: 1.25;
}

.event-body h3 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-body h3 a:hover,
.event-body h3 a:focus-visible {
  color: var(--purple);
}

.event-body h3 a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.event-details,
.event-description {
  margin: 0;
  color: #263940;
  font-size: 0.96rem;
  line-height: 1.48;
}

.event-description {
  margin-top: 7px;
  color: #405760;
}

.event-source {
  margin-top: 10px;
  color: #759734;
  font-size: 0.74rem;
}


.events-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.events-more-button {
  min-height: 42px;
  padding: 10px 22px;
  border: 1px solid #92aebc;
  border-radius: 4px;
  background: #dff4ff;
  color: #1d3b4a;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background-color 220ms ease, box-shadow 500ms ease, transform 500ms ease;
}

.events-more-button:hover,
.events-more-button:focus-visible {
  background: #f1dcff;
  box-shadow: 5px 5px 0 rgba(30, 30, 30, 0.22);
  transform: translate(-2px, -2px);
}

.events-more-button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.events-empty {
  margin: 18px 0 0;
  padding: 22px;
  border: 1px solid #cfdce2;
  border-radius: 4px;
  background: #fff;
  color: #405760;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.site-footer {
  padding-top: 38px;
  background: var(--blue);
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 10vw, 120px);
}

.site-footer nav a {
  padding: 8px 16px;
  color: #e91fff;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 300;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.site-footer p {
  margin: 24px 16px 16px;
  color: var(--white);
  font-size: 0.7rem;
  line-height: 1.5;
}

.footer-stripes {
  display: grid;
  height: 36px;
  grid-template-rows: repeat(3, 12px);
}

.footer-stripes span:nth-child(1) {
  background: var(--peach);
}

.footer-stripes span:nth-child(2) {
  background: var(--lavender);
}

.footer-stripes span:nth-child(3) {
  background: var(--slate-blue);
}

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

  .events-summary {
    display: grid;
    justify-content: stretch;
  }

  .event-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .event-date {
    min-height: 70px;
  }

  .event-date span {
    max-width: 62px;
    font-size: 0.92rem;
  }

  .event-body h3 {
    font-size: 1.08rem;
  }
}

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

  .event-date {
    width: 100%;
    min-height: 54px;
    grid-auto-flow: column;
    justify-content: center;
    gap: 10px;
  }

  .event-date span {
    max-width: none;
  }

  .event-date small {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-links summary::after {
    transition: none;
  }
}


.site-header-search {
  position: absolute;
  top: 42px;
  right: clamp(16px, 3vw, 40px);
  z-index: 12;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: stretch;
  justify-content: flex-end;
}

.site-header-search-input {
  width: 0;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: width 260ms ease, padding 260ms ease, border-color 260ms ease, opacity 160ms ease;
}

.site-header-search.is-open {
  width: min(390px, calc(100vw - 176px));
}

.site-header-search.is-open .site-header-search-input {
  width: calc(100% - 42px);
  padding: 0 12px;
  border-color: #98aab3;
  opacity: 1;
  pointer-events: auto;
}

.site-header-search-input:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.site-search-trigger {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #1d1d1d;
  color: var(--blue);
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.site-header-search.is-open .site-search-trigger {
  border-radius: 0 4px 4px 0;
}

.site-search-trigger svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-search-trigger:hover,
.site-search-trigger:focus-visible {
  border-color: var(--purple);
  background: #303030;
  color: var(--purple);
}

.site-search-trigger:focus-visible,
.site-search-close:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

body.search-open {
  overflow: hidden;
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  padding: clamp(22px, 7vh, 72px) 14px;
  background: rgba(0, 0, 0, 0.76);
}

.site-search-overlay[hidden] {
  display: none;
}

.site-search-dialog {
  width: min(100%, 760px);
  min-height: 220px;
  margin: 0 auto;
  border-top: 6px solid var(--purple);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
}

.site-search-dialog-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 12px 20px;
  background: var(--charcoal);
  color: var(--white);
}

.site-search-dialog-header h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.site-search-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.site-search-close:hover {
  background: #444;
  color: var(--purple);
}

#site-search-results {
  padding: 20px;
  text-align: left;
}

#site-search-results .pagefind-ui__form {
  width: min(100%, 440px);
  margin: 0 auto;
}

#site-search-results .pagefind-ui__search-input {
  min-height: 48px;
  border: 1px solid #98aab3;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

#site-search-results .pagefind-ui__search-clear {
  border-radius: 4px;
}

#site-search-results .pagefind-ui__result {
  padding: 18px 0;
}

#site-search-results .pagefind-ui__result-link {
  color: #0000ff;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#site-search-results .pagefind-ui__result-excerpt,
#site-search-results .pagefind-ui__message {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
}

#site-search-results mark {
  background: #fff1a8;
}

.site-search-notice {
  max-width: 540px;
  margin: 8px auto;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 700px) {
  .site-header {
    min-height: 132px;
  }

  .brand {
    width: 68px;
    height: 68px;
  }

  .brand img {
    width: 100%;
    height: 100%;
  }

  .site-header-search {
    top: 39px;
    right: 14px;
  }

  .site-search-dialog-header h2 {
    font-size: 0.95rem;
  }

  #site-search-results {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header-search-input,
  .site-search-trigger {
    transition: none;
  }
}
