@import url(https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap);

:root {
  --ink: #1B1B1F;
  --ink-soft: #5F5868;
  --paper: #F4F1F8;
  --card: #ffffff;
  --accent: #7B2CBF;
  --accent-2: #9D4EDD;
  --border: #D8CBE6;
  --link: #5A189A;
  --link-hover: #7B2CBF;
  --accent-dark: #5A189A;
  --accent-light: #9D4EDD;
  --outline: #1B1B1F;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(244, 240, 248, 0.62), rgba(203, 200, 212, 0.58)),
    #F4F1F8;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(157, 78, 221, 0.22), rgba(157, 78, 221, 0) 62%),
    radial-gradient(780px 480px at 86% 18%, rgba(90, 24, 154, 0.18), rgba(90, 24, 154, 0) 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 241, 248, 0.9) 48%, rgba(232, 224, 240, 0.82));
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-pending-alert {
  width: min(1120px, calc(100vw - 24px));
  margin: 10px auto -2px;
  padding: 10px 14px;
  border: 1px solid rgba(31, 111, 74, 0.28);
  border-radius: 12px;
  background: rgba(234, 248, 240, 0.92);
  color: #1f6f4a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

.auth-gate-shell {
  max-width: 100%;
  margin: 0 auto;
}

.auth-gate-card {
  color: #475467;
  line-height: 1.55;
}

.auth-gate-card h1 {
  margin: 0 0 10px;
  color: #5A189A;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.1;
}

.auth-gate-card p {
  margin: 0 0 10px;
}

.auth-gate-card strong {
  color: #5A189A;
}

.auth-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.auth-gate-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(123, 44, 191, 0.24);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-gate-actions .btn-primary {
  background: #7B2CBF;
  color: #ffffff;
  border-color: #7B2CBF;
  box-shadow: 0 10px 20px rgba(90, 24, 154, 0.16);
}

.auth-gate-actions .btn-primary:hover,
.auth-gate-actions .btn-primary:focus-visible {
  background: #5A189A;
  color: #ffffff;
  border-color: #5A189A;
}

.auth-gate-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: #5A189A;
}

.auth-gate-actions .btn-secondary:hover,
.auth-gate-actions .btn-secondary:focus-visible {
  background: #ffffff;
  color: #5A189A;
  border-color: rgba(123, 44, 191, 0.42);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  height: 90px;
  max-height: 90px;
  padding: 3px 1rem 0;
  background: transparent;
  position: relative;
  overflow: visible;
  z-index: 2;
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 6px 0;
  background:
    linear-gradient(90deg, #050507 0%, #141118 32%, #34114f 66%, #5A189A 100%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
  transform: scaleX(1);
  transform-origin: center center;
  transition: transform 320ms ease, background-color 320ms ease, height 320ms ease;
}

.hero:has(.header-menu a:hover)::after,
.hero:has(.header-menu a:focus-visible)::after {
  background: rgba(255, 255, 255, 0.92);
  height: 1px;
  animation: none;
}

@keyframes headerLineGrow {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.nav {
  position: relative;
  z-index: 2;
  height: 90px;
  max-height: 90px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: visible;
}

.brand {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  transform: translateY(0);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
  padding-bottom: 0;
  box-sizing: border-box;
  margin-left: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  display: block;
  position: relative;
  z-index: 4;
  transform: translateY(20px);
}

.brand-logo img {
  width: clamp(192px, 20.4vw, 251px);
  max-width: 41vw;
  height: auto;
  object-fit: contain;
}

.title-auth {
  position: absolute;
  top: 8px;
  right: 0;
  margin-left: 0;
  width: max-content;
  display: grid;
  grid-template-columns: auto auto;
  align-items: flex-start;
  justify-content: flex-end;
  justify-items: end;
  gap: 0.75rem;
  padding-top: 0;
  z-index: 6;
  text-align: right;
}

.title-auth .header-auth-link {
  text-align: right;
  justify-self: end;
}

.title-auth .header-auth-link:hover,
.title-auth .header-auth-link:focus-visible {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.site-auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 3000;
}

.site-auth-modal.open {
  display: flex;
}

.site-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 18, 28, 0.62);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  cursor: pointer;
}

.site-auth-modal__panel {
  position: relative;
  width: min(820px, 100%);
  height: min(980px, calc(100vh - 12px));
  min-height: min(650px, calc(100vh - 24px));
  transition: height .1s ease-out;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.site-auth-modal__panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color-scheme: normal;
}

.site-auth-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.site-auth-modal__close:hover,
.site-auth-modal__close:focus-visible {
  color: #E7D7F7;
  outline: none;
}

.site-contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 3000;
}

.site-contact-modal.open {
  display: flex;
}

.site-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 18, 28, 0.62);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  cursor: pointer;
}

.site-contact-modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 2px solid rgba(90, 24, 154, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(245, 242, 248, 0.92) 48%, rgba(232, 226, 239, 0.94) 100%),
    linear-gradient(180deg, rgba(123, 44, 191, 0.12), rgba(90, 24, 154, 0.08));
  box-shadow: 0 0 0 1px rgba(255,255,255,.74) inset, 0 24px 70px rgba(17, 12, 25, 0.34);
  color: #1B1B1F;
  padding: 22px;
}

.site-contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  border: 1px solid rgba(90, 24, 154, 0.34);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #3d2454;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.site-contact-modal__head {
  padding-right: 76px;
  margin-bottom: 16px;
}

.site-contact-modal__head h2 {
  margin: 0 0 6px;
  color: #2d1744;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.site-contact-modal__head p {
  margin: 0;
  color: #5d5268;
  line-height: 1.45;
}

.site-contact-form {
  display: grid;
  gap: 12px;
}

.site-contact-form__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-contact-form label {
  display: grid;
  gap: 6px;
  color: #33233f;
  font-size: .86rem;
  font-weight: 700;
}

.site-contact-form input,
.site-contact-form select,
.site-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(90, 24, 154, 0.22);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  color: #1B1B1F;
  padding: 10px 11px;
  font: inherit;
}

.site-contact-form select option {
  color: #1B1B1F;
}

.site-contact-form textarea {
  resize: vertical;
  min-height: 116px;
}

.turnstile-wrap {
  margin-top: 12px;
  min-height: 65px;
}

.turnstile-wrap:empty {
  display: none;
}

.site-contact-form input:focus,
.site-contact-form select:focus,
.site-contact-form textarea:focus {
  outline: 2px solid rgba(123, 44, 191, 0.24);
  border-color: rgba(90, 24, 154, 0.62);
  background: #fff;
}

.site-contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}

.site-contact-form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-contact-form__submit,
.site-contact-form__cancel {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.site-contact-form__submit {
  border: 1px solid rgba(90, 24, 154, 0.72);
  background: #5A189A;
  color: #fff;
}

.site-contact-form__submit:disabled {
  cursor: wait;
  opacity: .72;
}

.site-contact-form__cancel {
  border: 1px solid rgba(90, 24, 154, 0.28);
  background: rgba(255,255,255,.62);
  color: #3d2454;
}

.site-contact-form__status {
  min-height: 20px;
  color: #4b4055;
  font-weight: 700;
}

.site-contact-form__status.ok {
  color: #4c1d95;
}

.site-contact-form__status.error {
  color: #fecaca;
}

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

  .mission-split__donate {
    order: -1;
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 0.35rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
  }

  .mission-split__donate .eyebrow {
    font-size: 0.7rem;
  }

  .mission-split__donate h3 {
    font-size: 1.15rem;
  }

  .mission-split__donate .donate-qr-link,
  .mission-split__donate .donate-qr-image,
  .donate-option--qr .donate-qr-link,
  .donate-option--qr .donate-qr-image {
    width: min(100%, 320px);
  }

  .mission-split__donate p:not(.eyebrow) {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .mission-split__donate .btn {
    width: auto;
    justify-self: start;
    min-height: 38px;
    padding: 0.55rem 0.75rem;
  }

  .site-auth-modal {
    padding: 10px;
  }

  .site-auth-modal__panel {
    height: calc(100vh - 12px);
    min-height: min(600px, calc(100vh - 12px));
    border-radius: 16px;
  }

  .site-contact-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow-y: auto;
    background:
      radial-gradient(circle at 20% 10%, rgba(157, 78, 221, 0.22), transparent 32%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 224, 238, 0.9));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .site-contact-modal.open {
    display: block;
  }

  .site-contact-modal__backdrop {
    display: none;
  }

  .site-contact-modal__panel {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    overflow: visible;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 14px 28px;
  }

  .site-contact-modal__head {
    padding-right: 50px;
  }

  .site-contact-form__grid {
    grid-template-columns: 1fr;
  }
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

.hero__content {
  width: min(1068px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid #7B2CBF;
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  padding: clamp(0.9rem, 2.2vw, 1.4rem);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.38), 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: riseIn 700ms ease-out;
}

.hero__content p,
.hero__content h1,
.hero__content .eyebrow {
  max-width: 100%;
}

.header-menu {
  max-width: none;
  margin: 0;
  transform: translateY(17px);
  display: flex;
  justify-content: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.header-menu__link {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.15rem 0.5rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: none;
}

.header-menu__link:hover,
.header-menu__link:focus-visible {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.header-menu__link-button,
.mobile-menu__link-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.header-menu__link-button {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.15rem 0.5rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: none;
}

.header-menu__link:hover,
.header-menu__link-button:hover,
.header-menu__link:focus-visible,
.header-menu__link-button:focus-visible {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.mobile-menu__link-button {
  width: 100%;
  text-align: left;
  color: #1B1B1F;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(27, 27, 31, 0.12);
  font-weight: 800;
}

.header-menu__dropdown {
  position: relative;
  display: flex;
  justify-content: flex-start;
}

.header-menu__dropdown::after {
  content: "";
  position: absolute;
  left: -0.35rem;
  right: -0.35rem;
  top: 100%;
  height: 0.55rem;
}

.header-menu__trigger {
  width: 100%;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.15rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: none;
}

.header-menu__trigger::after {
  content: " v";
  font-size: 0.72rem;
}

.header-menu__dropdown:hover .header-menu__trigger,
.header-menu__dropdown:focus-within .header-menu__trigger {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.header-menu__dropdown-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.35rem);
  transform: translateX(-50%);
  min-width: 210px;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #D8CBE6;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(31, 17, 53, 0.22);
  z-index: 20;
}

.header-menu__dropdown:hover .header-menu__dropdown-panel,
.header-menu__dropdown:focus-within .header-menu__dropdown-panel,
.header-menu__dropdown.is-open .header-menu__dropdown-panel {
  display: flex;
}

.header-menu__dropdown-panel a {
  text-decoration: none;
  color: #1B1B1F;
  padding: 0.55rem 0.65rem;
  border-bottom: 0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.header-menu__dropdown-panel a:hover,
.header-menu__dropdown-panel a:focus-visible {
  color: #1B1B1F;
  background: #eadcf8;
  text-decoration: none;
}

.header-menu__dropdown-divider {
  width: calc(100% - 0.6rem);
  height: 1px;
  margin: 0.35rem auto;
  background: rgba(90, 24, 154, 0.28);
}

.profile-menu {
  position: relative;
  margin-left: auto;
  align-self: center;
  padding-top: 0;
}

.profile-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  width: 46px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
}

.profile-menu__icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 22px;
}

.profile-menu__caret {
  display: block;
  width: 12px;
  height: 8px;
  flex: 0 0 12px;
  overflow: visible;
}

.profile-menu__caret path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 190px;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.45rem;
  background: rgba(255,255,255,.97);
  border: 1px solid #D8CBE6;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(31, 17, 53, 0.22);
  z-index: 25;
}

.profile-menu.is-open .profile-menu__panel {
  display: flex;
}

.profile-menu__panel a,
.profile-menu__panel button {
  width: 100%;
  color: #1B1B1F;
  background: transparent;
  border: 0;
  text-align: left;
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.profile-menu__panel a:hover,
.profile-menu__panel a:focus-visible,
.profile-menu__panel button:hover,
.profile-menu__panel button:focus-visible {
  color: #5A189A;
  background: #eef7f1;
}

.profile-menu__name {
  padding: 0.45rem 0.65rem;
  color: #5F5868;
  font-size: 0.8rem;
  border-bottom: 1px solid #D8CBE6;
  margin-bottom: 0.25rem;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(27, 18, 42, 0.98);
  display: none;
  z-index: 3000;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu__close {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  z-index: 2;
  display: block;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
}

.mobile-menu__panel {
  position: absolute;
  inset: calc(max(0.85rem, env(safe-area-inset-top)) + 3rem) 0 0;
  height: auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem max(5rem, calc(env(safe-area-inset-bottom) + 4rem));
}

.mobile-menu__panel > * {
  flex: 0 0 auto;
}

.mobile-menu__panel a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  transition: none;
}

.mobile-menu__panel a:hover {
  color: #ffffff;
}

.mobile-menu__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.mobile-menu__label {
  color: #E7D7F7;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-menu__divider {
  width: min(260px, 78vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.cookie-learn-more {
  color: #7B2CBF;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-learn-more:hover {
  color: #5A189A;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

h1,
h2 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.2;
}

.hero__content p {
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

main {
  max-width: 1100px;
  margin: 1.1rem auto 2rem;
  padding: 0 1rem;
  width: 100%;
  flex: 1 0 auto;
}

.policy-page {
  max-width: 1100px;
  margin: 1.1rem auto 2rem;
  padding: 0 1rem;
}

.policy-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1.5px solid #7B2CBF;
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.32), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.policy-card h1,
.policy-card h2 {
  color: #5A189A;
}

.policy-card h2 {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.policy-card p,
.policy-card li {
  font-size: 0.95rem;
  line-height: 1.45;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid #7B2CBF;
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  padding: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.32), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.card--highlight {
  background: linear-gradient(135deg, rgba(237, 247, 242, 0.82), rgba(245, 239, 255, 0.82));
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.notice-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid #D8CBE6;
  border-radius: 8px;
  padding: 1rem;
}

.notice-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(27, 27, 31, 0.16);
  background: #eef0f4;
  margin: 0 0 0.85rem;
}

.article-body-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(27, 27, 31, 0.16);
  margin: 0.8rem 0;
}

.notice-card--wide {
  margin-bottom: 1rem;
}

.mission-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 0.95fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

.mission-split__statement h2,
.mission-split__statement p {
  margin-top: 0;
}

.mission-split__donate {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1.5px solid rgba(90, 24, 154, 0.38);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(238,240,244,.72));
  box-shadow: 0 14px 34px rgba(27, 27, 31, 0.14), 0 0 22px rgba(123, 44, 191, 0.12);
}

.mission-split__donate h3,
.mission-split__donate p {
  margin: 0;
}

.mission-split__donate h3 {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.donate-box-title-link,
.donate-qr-link,
.donate-venmo-enlarge {
  display: block;
  justify-self: center;
  color: inherit;
  text-decoration: none;
}

.donate-box-title-link:focus-visible,
.donate-qr-link:focus-visible,
.donate-venmo-enlarge:focus-visible {
  outline: 3px solid rgba(90, 24, 154, 0.35);
  outline-offset: 4px;
}

.mission-split__donate .btn {
  width: 100%;
  justify-content: center;
}

.donate-box-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
  width: 100%;
}

.donate-qr-link {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.donate-qr-image,
.donate-venmo-qr {
  display: block;
  width: min(100%, 150px);
  height: auto;
  justify-self: center;
  border-radius: 10px;
  background: #fff;
}

.donate-method-label,
.donate-venmo-handle {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
}

.donate-venmo-handle {
  color: #0b7fd3;
}

.donate-page {
  display: grid;
  gap: 1.25rem;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.donate-option {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1.5px solid rgba(27, 27, 31, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 30px rgba(27, 27, 31, 0.12);
}

.donate-option h2,
.donate-option p {
  margin: 0;
}

.donate-option .btn {
  width: 100%;
  justify-content: center;
}

.donate-option--qr,
.donate-option--venmo {
  justify-items: center;
  text-align: center;
}

.donate-option--qr .donate-qr-image,
.donate-option--venmo .donate-venmo-qr {
  width: min(100%, 260px);
}

.donate-option--venmo .donate-venmo-handle {
  font-size: 1.1rem;
}

.donate-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
}

.donate-qr-modal:target {
  display: flex;
}

.donate-qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.74);
}

.donate-qr-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  width: min(100%, 620px);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(0.75rem, 3vw, 1.1rem);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.donate-qr-modal__close {
  justify-self: end;
  color: #2f1f46;
  font-weight: 800;
  text-decoration: none;
}

.donate-qr-modal__image {
  display: block;
  width: min(100%, 560px);
  height: auto;
  border-radius: 10px;
}

.site-purpose {
  display: grid;
  gap: 0.8rem;
  border-color: rgba(123, 44, 191, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(237, 247, 242, 0.78));
}

.site-purpose h3 {
  margin: 0;
  color: #5A189A;
}

.site-purpose > p {
  max-width: 980px;
}

.site-purpose__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
}

.site-purpose__grid div {
  border-left: 3px solid #4f8f63;
  padding-left: 0.75rem;
}

.site-purpose__grid h4 {
  margin: 0 0 0.25rem;
  color: #5A189A;
  font-size: 0.98rem;
}

.site-purpose__grid p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.notice-card__meta {
  color: #5F5868;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.notice-card__meta span {
  display: inline-block;
  margin-left: 0.45rem;
  color: #667085;
  font-weight: 700;
}

.notice-card h3 {
  margin: 0.25rem 0 0.45rem;
  color: #5A189A;
}

.notice-card h3 a {
  color: inherit;
  text-decoration: none;
}

.notice-card h3 a:hover {
  text-decoration: underline;
}

.notice-card p,
.notice-card__body {
  margin: 0;
  line-height: 1.45;
}

.bb-u {
  text-decoration: underline;
}

.notice-card__read-more,
.article-archive-link {
  display: inline-flex;
  margin-top: 0.85rem;
}

.notice-card__read-more {
  color: #5A189A;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.notice-card__read-more:hover {
  text-decoration: underline;
}

.article-page {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
}

.article-archive {
  display: grid;
  gap: 1.1rem;
}

.article-archive__header {
  margin-bottom: 0.2rem;
}

.article-detail {
  display: grid;
  gap: 1rem;
  max-width: 980px;
}

.article-detail__header {
  display: grid;
  gap: 0.72rem;
}

.article-detail__title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.95rem;
}

.article-detail__title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.02;
}

.article-published-date {
  color: #5b616d;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.article-detail__meta {
  color: #5b616d;
  font-size: 0.92rem;
  font-weight: 650;
}

.article-detail__meta span {
  display: inline-block;
  margin-left: 0.5rem;
  color: #777d89;
}

.article-category-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 0.24rem 0.58rem;
  border: 1px solid rgba(123, 44, 191, 0.38);
  border-radius: 999px;
  background: rgba(245, 237, 255, 0.92);
  color: #5A189A;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-detail__image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 16px;
  border: 1.5px solid rgba(27, 27, 31, 0.24);
  box-shadow: 0 18px 42px rgba(27, 27, 31, 0.16);
}

.article-detail__excerpt {
  margin: 0;
  color: #3f4652;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.article-detail__body {
  color: #24242a;
  line-height: 1.68;
}

.article-detail__body p {
  margin: 0 0 1rem;
}

.article-more-heading {
  border-top: 1px solid rgba(27, 27, 31, 0.16);
  padding-top: 1rem;
}

.article-more-heading h2 {
  margin: 0;
}

.article-list {
  display: grid;
  gap: 0.9rem;
}

.article-list-row {
  display: grid;
  grid-template-columns: minmax(118px, 152px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: clamp(0.9rem, 2vw, 1.1rem);
  border: 1.5px solid rgba(27, 27, 31, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(241, 242, 245, 0.62));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42) inset,
    0 14px 34px rgba(27, 27, 31, 0.13),
    0 0 22px rgba(123, 44, 191, 0.11);
}

.article-list-row__image {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(27, 27, 31, 0.18);
  background: #eef0f4;
}

.article-list-row__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-list-row__content {
  min-width: 0;
}

.article-list-row__content:only-child {
  grid-column: 1 / -1;
}

.article-card-meta {
  margin-bottom: 0.38rem;
}

.article-list-row h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: clamp(1.12rem, 2.1vw, 1.42rem);
  line-height: 1.18;
}

.article-list-row h3 a {
  color: inherit;
  text-decoration: none;
}

.article-list-row h3 a:hover {
  text-decoration: underline;
}

.article-title-date {
  display: inline-block;
  margin-left: 0.45rem;
  color: #667085;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}

.article-list-row p,
.article-list-row__body {
  margin: 0;
  color: #424852;
  line-height: 1.48;
}

.article-empty {
  border: 1px solid rgba(27, 27, 31, 0.18);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.62);
}

.document-page {
  display: grid;
  gap: 1.4rem;
}

.document-page__header {
  display: grid;
  gap: 0.55rem;
  border-bottom: 1px solid rgba(27, 27, 31, 0.14);
  padding-bottom: 1rem;
}

.document-page__header p {
  margin: 0;
}

.document-section {
  display: grid;
  gap: 0.85rem;
}

.document-section h2 {
  margin: 0;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
}

.document-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.document-card {
  display: grid;
  min-height: 86px;
  gap: 0.55rem;
  border: 1px solid rgba(27, 27, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 24px rgba(27, 27, 31, 0.08);
}

.document-card__top {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: start;
  gap: 0.65rem;
  text-align: center;
}

.document-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  justify-content: center;
}

.document-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.document-action__size {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.document-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  text-align: center;
}

.document-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.document-card a.document-button {
  align-self: center;
  white-space: nowrap;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #ffffff;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  font-size: 0.86rem;
}

.document-card a.document-button:hover,
.document-card a.document-button:focus-visible {
  background: linear-gradient(180deg, #4ba978, #235c44);
  color: #ffffff;
}

.document-card a.document-button--pto {
  background: #ffffff;
  color: #5A189A;
  border: 1px solid rgba(123, 44, 191, 0.42);
}

.document-card a.document-button--pto:hover,
.document-card a.document-button--pto:focus-visible {
  background: #EFE4FA;
  color: #5A189A;
  border-color: rgba(123, 44, 191, 0.72);
}

.status {
  display: block;
  background: rgba(255, 255, 255, 0.55);
  color: #5A189A;
  border: 1px solid #ccbce7;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.status-line + .status-line {
  margin-top: 0.25rem;
}

.section {
  margin-top: 1.3rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid #7B2CBF;
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  padding: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.32), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.section--mini {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.calendar-info-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.85rem;
}

.calendar-info-copy {
  display: grid;
  align-content: center;
  gap: 0.25rem;
}

.calendar-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.calendar-info-grid div {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex: 1 1 220px;
  border-left: 3px solid #7B2CBF;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  padding: 0.45rem 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(123, 44, 191, 0.14);
}

.calendar-info-grid strong {
  color: #5A189A;
  font-size: 0.88rem;
}

.calendar-info-grid span {
  color: #3f3f46;
  font-size: 0.84rem;
  line-height: 1.3;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.calendar-nav {
  display: grid;
  grid-template-columns: 36px minmax(180px, auto) auto 36px;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto 0.45rem;
}

.calendar-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #7B2CBF;
  background: #E6D2F7;
  color: #5A189A;
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(90, 24, 154, 0.12);
}

.calendar-subscribe-btn:hover,
.calendar-subscribe-btn:focus-visible {
  background: #ddccff;
  color: #5A189A;
  box-shadow: 0 7px 18px rgba(90, 24, 154, 0.18);
}

#calendar .section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 14px 14px 6px 6px;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.96) 0%, rgba(27, 27, 31, 0.94) 48%, rgba(90, 24, 154, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 26px rgba(27, 27, 31, 0.22);
}

#calendar .section__header > h2,
#calendar .calendar-nav {
  grid-column: 2;
}

#calendar .calendar-subscribe-btn {
  grid-column: 3;
  justify-self: end;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.92);
  color: #1B1B1F;
  box-shadow: 0 8px 18px rgba(27, 27, 31, 0.22);
}

.calendar-nav-title {
  text-align: center;
  font-family: "Libre Bodoni", Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: #fff;
  min-width: max-content;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.calendar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.calendar-nav-main {
  display: inline-grid;
  grid-template-columns: 34px max-content 34px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: max-content;
  max-width: 100%;
}

.calendar-nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.36rem;
  width: 100%;
  margin-top: 0.05rem;
}

.calendar-nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.calendar-nav-btn:hover,
.calendar-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

.calendar-nav-today {
  width: auto;
  min-width: 50px;
  height: 23px;
  padding: 0 0.54rem;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.94);
  color: #1B1B1F;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 8px 18px rgba(27, 27, 31, 0.18);
}

.calendar-nav-print {
  min-width: 46px;
}

.calendar-nav-link.calendar-subscribe-btn {
  width: auto;
  min-width: 50px;
  height: 23px;
  min-height: 23px;
  padding: 0 0.54rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 8px 18px rgba(27, 27, 31, 0.18);
}

.calendar-nav-link.calendar-district-link {
  min-width: 112px;
}

.calendar-action-tooltip {
  position: fixed;
  z-index: 1400;
  max-width: 340px;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(27, 27, 31, 0.96);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 0.08s ease, transform 0.08s ease;
}

.calendar-action-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

#calendar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(238, 240, 244, 0.64));
  border-color: rgba(27, 27, 31, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.44) inset,
    0 10px 24px rgba(27, 27, 31, 0.16),
    0 0 24px rgba(123, 44, 191, 0.08);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar__head {
  text-align: center;
  font-weight: 800;
  color: #1B1B1F;
  background: linear-gradient(180deg, #ffffff, #e8ebf0);
  border: 1px solid rgba(27, 27, 31, 0.28);
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 0.5rem 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 7px 14px rgba(27, 27, 31, 0.1);
}

.calendar__day {
  min-height: 124px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(27, 27, 31, 0.18);
  border-radius: 9px;
  padding: 0.55rem;
  position: relative;
  overflow: visible;
  box-shadow: 0 8px 18px rgba(27, 27, 31, 0.08);
}

.calendar__day.day-no-school {
  background: #e5e7eb;
  border-color: #c3c8d0;
  color: #5e6673;
  box-shadow: none;
}

.calendar__day.day-summer-break {
  background: #dde2e9;
  border-color: #b8c0cb;
  box-shadow: none;
}

.calendar__day.day-half-day::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(158, 163, 170, 0.34) 50%,
    rgba(158, 163, 170, 0.34) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.calendar__day--empty {
  background: rgba(224, 228, 235, 0.62);
  border-color: rgba(148, 158, 171, 0.35);
  box-shadow: none;
}

.calendar__week-row {
  display: contents;
}

.calendar__weekend-stack {
  display: grid;
  grid-template-rows: minmax(59px, 1fr) minmax(59px, 1fr);
  gap: 0.34rem;
}

.calendar__weekend-stack .calendar__day {
  min-height: 59px;
  padding: 0.34rem;
  background: rgba(218, 224, 233, 0.86);
  border-color: rgba(148, 158, 171, 0.45);
  color: #6b7280;
  box-shadow: none;
}

.calendar__weekend-stack .calendar__day p {
  display: none;
}

.calendar__weekend-stack .calendar__day.event-day {
  background: #f8f9fb;
  border-color: rgba(27, 27, 31, 0.26);
  color: #1B1B1F;
}

.day-outside-month {
  background: #eef1f5;
  border-color: #d5dbe3;
  box-shadow: none;
}

.day-outside-month .date {
  color: #7a828d;
}

.calendar__day.day-today {
  border-color: #16a34a;
  background: linear-gradient(180deg, #f2fff6 0%, #ffffff 72%);
  box-shadow: inset 0 0 0 3px rgba(34, 197, 94, 0.42), 0 0 0 3px rgba(187, 247, 208, 0.8), 0 14px 28px rgba(22, 163, 74, 0.22);
}

.calendar__day.event-day {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(27, 27, 31, 0.28);
}

.calendar__day.event-day:not(.day-no-school):not(.day-summer-break) {
  box-shadow: inset 0 0 0 1px rgba(90, 24, 154, 0.08), 0 9px 20px rgba(27, 27, 31, 0.1);
}

.calendar__day.day-today.event-day:not(.day-no-school):not(.day-summer-break),
.calendar__day.day-today:not(.day-no-school):not(.day-summer-break) {
  border-color: #16a34a;
  box-shadow: inset 0 0 0 3px rgba(34, 197, 94, 0.42), 0 0 0 3px rgba(187, 247, 208, 0.8), 0 14px 28px rgba(22, 163, 74, 0.22);
}

.calendar__day.day-today .date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(220, 252, 231, 0.95), 0 6px 14px rgba(22, 163, 74, 0.28);
}

.calendar__day .date {
  font-weight: 700;
  font-size: 0.9rem;
}

.calendar__day-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.calendar__day p {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  line-height: 1.28;
  color: #273927;
  position: relative;
  z-index: 2;
}

.calendar-event-box {
  display: block;
  margin: 0.45rem 0 0;
  border-radius: 7px;
  padding: 0.34rem 0.42rem;
  border: 1px solid #28aeb3;
  background: #ecfdff;
  color: #0f5d62;
  font-weight: 500;
  box-shadow: 0 5px 12px rgba(15, 93, 98, 0.08);
}

.calendar-event-link {
  text-decoration: none;
}

.calendar-event-link:hover,
.calendar-event-link:focus-visible {
  text-decoration: underline;
}

.calendar-event-event {
  border-color: #28aeb3;
  background: #ecfdff;
  color: #0f5d62;
  font-weight: 500;
}

.calendar-event-sports {
  border-color: #4169a9;
  background: #eef5ff;
  color: #183d72;
  font-weight: 700;
}

.calendar-event-pto {
  border-color: #7B2CBF;
  background: #f5edff;
  color: #4c137c;
  font-weight: 800;
}

.calendar-event-holiday {
  border-color: #8c3b3b;
  background: #f5eeee;
  color: #4b1b1b;
  font-weight: 900;
}

.calendar-event-half-day {
  border-color: #b5752c;
  background: #fff6e8;
  color: #68400e;
  font-weight: 800;
}

.calendar-event-lunch {
  border-color: #c9879a;
  background: #fff1f4;
  color: #7a3347;
  font-weight: 700;
}

.calendar-event-breakfast {
  border-color: #d8b26a;
  background: #fffaf0;
  color: #765728;
  font-weight: 700;
}

.calendar-menu-summary {
  position: relative;
  cursor: pointer;
  z-index: 3;
  isolation: isolate;
}

.calendar__day:hover,
.calendar__day:focus-within {
  z-index: 500;
}

.calendar-menu-summary:hover,
.calendar-menu-summary:focus,
.calendar-menu-summary:focus-within {
  z-index: 1000;
}

.calendar-menu-summary:focus-visible {
  outline: 2px solid rgba(90, 24, 154, 0.45);
  outline-offset: 2px;
}

.calendar-menu-tooltip {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: min(230px, 78vw);
  max-width: min(300px, 82vw);
  z-index: 5000;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(27, 27, 31, 0.96);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 600;
  text-align: left;
  opacity: 1;
}

.calendar-menu-tooltip span {
  display: block;
}

.calendar-menu-tooltip span + span {
  margin-top: 0.28rem;
}

.calendar-menu-summary:hover .calendar-menu-tooltip,
.calendar-menu-summary:focus .calendar-menu-tooltip,
.calendar-menu-summary:focus-within .calendar-menu-tooltip {
  display: block;
}

.calendar__day .summer-break-label {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #4b5563;
}

.lunch-chip {
  margin-top: 0;
  border: 1px solid #7B2CBF;
  background: #E6D2F7;
  color: #5A189A;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.1;
  display: block;
  width: fit-content;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
}

.lunch-chip:focus-visible {
  outline: 2px solid #5e8dff;
  outline-offset: 1px;
}

.lunch-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 26px;
  background: #E6D2F7;
  color: #5A189A;
  border: 1px solid #7B2CBF;
  border-radius: 8px;
  padding: 0.42rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: nowrap;
  max-width: none;
  z-index: 12;
  box-shadow: 0 8px 18px rgba(31, 17, 53, 0.18);
}

/* Keep hover scoped only to the Lunch chip, not the entire day cell. */
.lunch-tooltip.show {
  display: block;
}

.lunch-tooltip-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lunch-tooltip-list li {
  margin: 0;
  padding: 0;
}

.lunch-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.52);
  z-index: 60;
}

.lunch-modal-backdrop.open {
  display: flex;
}

.lunch-modal {
  width: min(560px, 100%);
  max-height: 75vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 0.95rem 0.95rem 1.2rem;
  position: relative;
}

.lunch-modal-close {
  position: absolute;
  right: 10px;
  top: 6px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lunch-modal h3 {
  margin: 0.3rem 0 0.6rem;
}

.lunch-modal ul {
  margin: 0;
  padding-left: 1.1rem;
}

.calendar-print-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(24, 12, 38, 0.42);
  backdrop-filter: blur(4px);
}

.calendar-print-modal-backdrop.open {
  display: flex;
}

.calendar-print-modal {
  width: min(520px, 100%);
  border: 1px solid rgba(123, 44, 191, 0.22);
  border-radius: 16px;
  background: #fff;
  color: #1B1B1F;
  padding: 1.2rem;
  box-shadow: 0 22px 60px rgba(28, 10, 48, 0.28);
  position: relative;
}

.calendar-print-modal h3 {
  margin: 0 2rem 1rem 0;
  color: #5A189A;
  font-size: 1.35rem;
}

.calendar-print-modal-close {
  position: absolute;
  right: 0.75rem;
  top: 0.65rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #EFE4FA;
  color: #5A189A;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-print-field {
  margin-top: 0.95rem;
}

.calendar-print-week-field[hidden] {
  display: none;
}

.calendar-print-week-select {
  width: 100%;
  border: 1px solid rgba(123, 44, 191, 0.24);
  border-radius: 10px;
  background: #faf7ff;
  color: #1B1B1F;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-weight: 700;
}

.calendar-subscribe-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(24, 12, 38, 0.42);
  backdrop-filter: blur(4px);
}

.calendar-subscribe-modal-backdrop.open {
  display: flex;
}

.calendar-subscribe-modal {
  width: min(540px, 100%);
  border: 1px solid rgba(123, 44, 191, 0.22);
  border-radius: 16px;
  background: #fff;
  color: #1B1B1F;
  padding: 1.2rem;
  box-shadow: 0 22px 60px rgba(28, 10, 48, 0.28);
  position: relative;
}

.calendar-subscribe-modal h3 {
  margin: 0 2rem 0.55rem 0;
  color: #5A189A;
  font-size: 1.35rem;
}

.calendar-subscribe-modal p {
  margin: 0 0 0.85rem;
  color: #4d405b;
  line-height: 1.45;
}

.calendar-subscribe-field {
  margin: 0.9rem 0 0.75rem;
}

.calendar-subscribe-modal-close {
  position: absolute;
  right: 0.75rem;
  top: 0.65rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #EFE4FA;
  color: #5A189A;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-subscribe-options {
  display: grid;
  gap: 0.55rem;
  margin: 0.9rem 0;
}

.calendar-subscribe-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(123, 44, 191, 0.34);
  border-radius: 12px;
  background: #f7f1ff;
  color: #5A189A;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.calendar-subscribe-option:hover,
.calendar-subscribe-option:focus-visible {
  background: #ede0ff;
  border-color: rgba(123, 44, 191, 0.58);
}

.calendar-subscribe-copy {
  display: grid;
  gap: 0.35rem;
  margin: 0.95rem 0 0.75rem;
  color: #5A189A;
  font-size: 0.84rem;
  font-weight: 800;
}

.calendar-subscribe-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
}

.calendar-subscribe-copy input {
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(123, 44, 191, 0.28);
  border-radius: 10px;
  background: #fbf8ff;
  color: #1B1B1F;
  padding: 0 0.65rem;
  font: inherit;
  font-size: 0.82rem;
}

.calendar-subscribe-copy button {
  height: 40px;
  border: 1px solid rgba(123, 44, 191, 0.42);
  border-radius: 10px;
  background: #7B2CBF;
  color: #fff;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.calendar-subscribe-note {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.calendar-print-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #7B2CBF;
  font-weight: 800;
}

.calendar-print-choice-row,
.calendar-print-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.calendar-print-choice-row label,
.calendar-print-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(123, 44, 191, 0.24);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: #faf7ff;
  color: #1B1B1F;
  font-weight: 700;
  cursor: pointer;
}

.calendar-print-choice-row input,
.calendar-print-checks input {
  accent-color: #7B2CBF;
}

.calendar-print-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.calendar-print-submit,
.calendar-print-cancel {
  border: 1px solid #7B2CBF;
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.calendar-print-submit {
  background: #7B2CBF;
  color: #fff;
}

.calendar-print-cancel {
  background: #fff;
  color: #7B2CBF;
}

.event-day {
  background: #e8f3ec;
  border-color: #E7D7F7;
}

.info-list {
  margin: 0;
  padding-left: 1rem;
}

.school-contact {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 0.9rem;
  align-items: stretch;
}

.school-contact__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 150px;
  max-height: 210px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.55rem;
  border: 2px solid rgba(27, 27, 31, 0.72);
  background: #111;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 10px 22px rgba(27, 27, 31, 0.22);
}

.school-contact__details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.school-contact p {
  margin: 0.2rem 0;
  line-height: 1.4;
}

.school-contact__address {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.school-contact__address span {
  display: inline-block;
}

.school-contact__name {
  font-weight: 800;
  color: #5A189A;
}

.school-contact__school-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.card a.card-inline-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.school-contact a.school-contact__link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.school-contact a.school-contact__link:hover,
.school-contact a.school-contact__link:focus-visible {
  color: inherit;
  text-decoration: underline;
}

footer {
  margin-top: auto;
  padding: 0 1rem;
  color: #ffffff;
  font-size: 0.88rem;
  flex: 0 0 auto;
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.94) 0%, rgba(20, 17, 24, 0.92) 32%, rgba(52, 17, 79, 0.9) 66%, rgba(90, 24, 154, 0.9) 100%);
  border-radius: 0.45rem 0.45rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(27, 27, 31, 0.8);
  border-right: 1px solid rgba(90, 24, 154, 0.62);
  box-shadow: 0 -8px 22px rgba(27, 27, 31, 0.18);
}

.footer-inner p {
  margin: 0;
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  color: #ffffff;
  border-radius: 999px;
}

.footer-social svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

footer a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .school-contact {
    grid-template-columns: 1fr;
  }

  .school-contact__image {
    max-height: 180px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
  }

  .footer-copy {
    gap: 0.35rem;
  }
}

@media (max-width: 1024px) {
  .hero,
  main,
  footer {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .brand-logo img {
    width: clamp(184px, 21.85vw, 253px);
  }

  .header-menu {
    margin-top: 0;
    transform: translateY(15px);
    gap: 0.65rem;
  }
}

@media (max-width: 760px) {
  html,
  body {
    min-height: 100dvh;
  }

  body {
    background-attachment: scroll;
  }

  .hero {
    padding-top: 0.35rem;
    padding-bottom: 0.45rem;
    background: #7B2CBF;
  }

  .hero::before {
    inset: 0;
  }

  .hero::after {
    bottom: 0;
  }

  .nav {
    align-items: center;
    width: 100%;
  }

  .brand {
    position: relative;
    width: 100%;
    min-height: 52px;
    gap: 0;
    align-items: center;
    justify-content: center;
  }

  .brand-logo {
    display: block;
    position: absolute;
    left: 50%;
    top: calc(50% + 13px);
    transform: translate(-50%, -50%);
    z-index: 7;
  }

  .brand-logo img {
    width: clamp(178px, 57.5vw, 248px);
    max-width: 67vw;
  }

  .brand-text {
    width: 100%;
    align-items: center;
    justify-content: center;
    height: auto;
    padding-bottom: 0;
  }

  .title-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    min-height: 52px;
    align-items: center;
    padding-right: 0.2rem;
  }

  .title-auth {
    display: none;
  }

  .header-menu {
    display: none;
    transform: none;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
  }

  .lunch-modal-backdrop {
    align-items: center;
    padding: 0.9rem;
  }

  .lunch-modal {
    width: min(560px, 94vw);
    max-height: 82vh;
    border-radius: 18px;
    padding: 1rem 1rem 1.2rem;
  }

  .hero__content {
    width: calc(100% - 1.6rem);
    margin-top: 0.85rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    padding: 0.8rem;
  }

  .hero__content p,
  .hero__content h1,
  .hero__content .eyebrow {
    max-width: 100%;
  }

  h1 {
    font-size: 1.25rem;
  }

  main {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .document-card__top {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .document-card__actions {
    justify-content: center;
  }

  .document-card a.document-button {
    justify-self: start;
  }

  .calendar-info-panel {
    gap: 0.55rem;
  }

  .calendar-info-grid div {
    flex-basis: 100%;
    padding: 0.5rem 0.65rem;
  }

  .calendar {
    grid-template-columns: 1fr;
  }

  #calendar .section__header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.65rem;
  }

  #calendar .section__header > h2,
  #calendar .calendar-nav,
  #calendar .calendar-subscribe-btn {
    grid-column: 1;
  }

  #calendar .calendar-subscribe-btn {
    justify-self: center;
  }

  .calendar-nav-actions {
    flex-wrap: wrap;
  }

  .calendar__head {
    display: none;
  }

  .calendar__day {
    min-height: 92px;
    padding: 0.6rem;
  }

  .lunch-tooltip {
    display: none !important;
  }

}

@media (max-width: 480px) {
  .section,
  .card {
    border-radius: 12px;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mission Trail home polish */
body {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: -24px;
  z-index: -2;
  pointer-events: none;
  background-image: url("/assets/branding/mission-trail-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(5px);
  transform: scale(1.025);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(27, 27, 31, 0.1), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(123, 44, 191, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, rgba(242, 243, 246, 0.78) 48%, rgba(222, 225, 231, 0.78) 100%);
}

main {
  max-width: 1120px;
  margin: 1.35rem auto 2.25rem;
  padding: 0 1rem;
}

.card-grid,
.notice-grid,
.site-purpose__grid {
  display: grid;
  gap: 1rem;
}

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

.card--mission {
  grid-column: 1 / -1;
  padding: 1.15rem 1.25rem;
}

.card--mission h2 {
  margin-bottom: 0.45rem;
}

.card--mission p {
  max-width: 96ch;
  margin: 0;
  color: #2f3036;
  font-size: 1rem;
  line-height: 1.55;
}

.card--mission .mission-disclaimer {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(27, 27, 31, 0.18);
  color: #494b53;
  font-size: 1rem;
}

.card--mission .mission-disclaimer a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.volunteer-hero h1 {
  margin: 0.35rem 0 0.55rem;
  color: #1B1B1F;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.05;
}

.volunteer-gate {
  text-align: center;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.58rem 0.95rem;
  border: 1px solid #5A189A;
  border-radius: 999px;
  background: #5A189A;
  color: #fff !important;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

a.btn-link,
button.btn-link {
  color: #fff !important;
}

.btn-link--secondary {
  background: rgba(255, 255, 255, 0.78);
  color: #5A189A !important;
}

a.btn-link--secondary,
button.btn-link--secondary {
  color: #5A189A !important;
}

.btn-link--disabled,
.btn-link:disabled {
  border-color: rgba(27, 27, 31, 0.22);
  background: rgba(229, 231, 235, 0.8);
  color: #6b7280 !important;
  cursor: not-allowed;
}

.volunteer-alert {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 750;
}

.volunteer-alert--success {
  border: 1px solid #86c69b;
  background: rgba(240, 253, 244, 0.9);
  color: #166534;
}

.volunteer-alert--error {
  border: 1px solid #f1a5a5;
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
}

.volunteer-empty {
  display: grid;
  gap: 0.85rem;
  align-items: start;
}

.volunteer-empty p {
  margin: 0;
  color: #344054;
  line-height: 1.55;
}

.volunteer-interest-form {
  margin: 0;
}

.volunteer-list-heading {
  width: min(var(--container), calc(100% - 2rem));
  margin: clamp(1.25rem, 3vw, 2rem) auto 0.75rem;
}

.volunteer-list-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.volunteer-list {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1rem;
}

.volunteer-event {
  padding: clamp(1.05rem, 2.5vw, 1.45rem);
  border: 1.5px solid rgba(90, 24, 154, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 246, 250, 0.78));
  box-shadow:
    0 16px 34px rgba(27, 27, 31, 0.12),
    0 0 22px rgba(123, 44, 191, 0.12);
  overflow: hidden;
  position: relative;
}

.volunteer-event__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.volunteer-event__summary {
  display: grid;
  justify-items: center;
  min-width: 118px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(90, 24, 154, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #344054;
  text-align: center;
  box-shadow: 0 8px 18px rgba(27, 27, 31, 0.08);
}

.volunteer-event__summary strong {
  color: #5A189A;
  font-size: 1.5rem;
  line-height: 1;
}

.volunteer-event__summary span {
  color: #1B1B1F;
  font-size: 0.86rem;
  font-weight: 800;
}

.volunteer-event__summary small {
  color: #667085;
  font-size: 0.75rem;
  font-weight: 700;
}

.volunteer-event h3 {
  margin: 0;
  color: #1B1B1F;
  font-size: 1.2rem;
}

.volunteer-event__meta,
.volunteer-event__description {
  color: #4b5563;
}

.volunteer-slots {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.volunteer-slots-collapse {
  margin-top: 1rem;
  border: 1.5px solid rgba(90, 24, 154, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.volunteer-slots-collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  color: #1B1B1F;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.volunteer-slots-collapse summary::-webkit-details-marker {
  display: none;
}

.volunteer-slots-collapse summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 24, 154, 0.34);
  color: #5A189A;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 900;
}

.volunteer-slots-collapse[open] summary::after {
  content: "-";
}

.volunteer-slots-collapse summary small {
  margin-left: auto;
  color: #667085;
  font-size: 0.86rem;
  font-weight: 750;
}

.volunteer-slots-collapse .volunteer-slots {
  margin: 0;
  padding: 0 1rem 1rem;
}

.volunteer-slots-empty {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(27, 27, 31, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: #667085;
  font-weight: 700;
}

.volunteer-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(27, 27, 31, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.volunteer-slot.is-mine {
  border-color: rgba(90, 24, 154, 0.58);
  background: rgba(245, 239, 255, 0.82);
}

.volunteer-slot h4 {
  margin: 0 0 0.25rem;
  color: #24242a;
}

.volunteer-slot p {
  margin: 0.15rem 0;
  color: #4b5563;
}

.volunteer-slot__count {
  display: inline-flex;
  margin-top: 0.2rem;
  color: #5A189A;
  font-size: 0.86rem;
  font-weight: 800;
}

.volunteer-slot__mine {
  display: inline-flex;
  margin: 0.2rem 0 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(22, 101, 52, 0.28);
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.88);
  color: #166534;
  font-size: 0.84rem;
  font-weight: 800;
}

.volunteer-slot__form {
  margin: 0;
}

.pto-events-hero {
  display: grid;
  gap: 0.75rem;
}

.pto-events-hero h1 {
  margin: 0;
  color: #1B1B1F;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.pto-events-hero p {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.pto-events-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.pto-events-grid {
  width: min(var(--container), calc(100% - 2rem));
  margin: clamp(2.75rem, 5vw, 4.5rem) auto clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.pto-month-card {
  min-height: 220px;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 2px solid rgba(27, 27, 31, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(27, 27, 31, 0.14), 0 0 24px rgba(123, 44, 191, 0.12);
}

.pto-month-card h2 {
  margin: 0 0 0.85rem;
  color: #5A189A;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1;
  text-align: center;
}

.pto-month-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.pto-month-card li {
  color: #1B1B1F;
  line-height: 1.42;
}

.pto-month-card li strong {
  color: #111827;
}

@media (max-width: 760px) {
  .volunteer-list-heading,
  .volunteer-list {
    width: min(100%, calc(100% - 1rem));
  }

  .volunteer-slot {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .volunteer-event__head {
    display: grid;
  }

  .volunteer-event__summary {
    justify-items: start;
    text-align: left;
  }

  .volunteer-slots-collapse summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .volunteer-slots-collapse summary small {
    flex-basis: 100%;
    margin-left: 0;
  }

  .volunteer-slot__form .btn-link {
    width: 100%;
  }

  .pto-events-grid {
    grid-template-columns: 1fr;
    width: min(100%, calc(100% - 1rem));
  }

  .pto-month-card {
    min-height: 0;
  }

  .article-detail__title-row {
    display: grid;
    gap: 0.35rem;
  }

  .article-list-row {
    grid-template-columns: 1fr;
  }

  .article-list-row__image img {
    aspect-ratio: 16 / 9;
  }

  .article-title-date {
    display: block;
    margin: 0.22rem 0 0;
  }
}

.notice-grid,
.site-purpose__grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.notice-card,
.section,
.policy-card,
.document-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(241, 242, 245, 0.58));
  border: 1.5px solid rgba(27, 27, 31, 0.56);
  backdrop-filter: blur(13px) saturate(132%);
  -webkit-backdrop-filter: blur(13px) saturate(132%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.46) inset,
    0 0 26px rgba(123, 44, 191, 0.14),
    0 22px 48px rgba(27, 27, 31, 0.2);
}

.card,
.notice-card {
  border-radius: 14px;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.section {
  border-radius: 16px;
  margin-top: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
}

.section__header h2,
.section h2,
.card h2,
.notice-card h3,
.policy-card h1,
.policy-card h2,
.document-card h3 {
  color: var(--ink);
}

.card a,
.section a,
.notice-card a {
  color: #2b2d33;
  font-weight: 750;
}

.site-purpose {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(238, 240, 244, 0.6));
}

.site-purpose__grid div {
  border-left: 4px solid rgba(90, 24, 154, 0.42);
  padding-left: 0.85rem;
}

.school-contact__image {
  object-fit: cover;
  object-position: center;
  background: #111;
  padding: 0;
}

.status {
  background: rgba(255, 255, 255, 0.64);
  color: #2b2d33;
  border-color: rgba(27, 27, 31, 0.22);
}

.school-contact__name,
.school-contact strong {
  color: var(--ink);
}

.school-contact a.school-contact__link {
  color: #30333a;
}

.notice-card__meta,
.card p,
.section p,
.policy-card p,
.document-card p {
  color: #424852;
}

.calendar-subscribe-btn {
  background: rgba(255, 255, 255, 0.86);
  color: #2b2d33;
  border-color: rgba(27, 27, 31, 0.28);
}

.pending-registration-page {
  width: min(980px, calc(100% - 2rem));
  margin: clamp(1.5rem, 4vw, 3rem) auto;
}

.pending-registration-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(27, 27, 31, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(239, 241, 246, 0.78)),
    radial-gradient(circle at 18% 18%, rgba(123, 44, 191, 0.12), transparent 36%);
  box-shadow:
    0 20px 54px rgba(27, 27, 31, 0.16),
    0 0 34px rgba(123, 44, 191, 0.16);
  padding: clamp(1.35rem, 4vw, 2.5rem);
}

.pending-registration-card .eyebrow {
  margin: 0 0 0.5rem;
  color: var(--purple-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pending-registration-card h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.02;
}

.pending-registration-lede,
.pending-registration-note {
  max-width: 760px;
  color: #424852;
  font-size: 1.02rem;
  line-height: 1.6;
}

.pending-registration-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.35rem 0;
}

.pending-registration-steps div {
  border: 1px solid rgba(27, 27, 31, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  padding: 1rem;
}

.pending-registration-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--purple-dark);
  color: #fff;
  font-weight: 800;
}

.pending-registration-steps p {
  margin: 0.65rem 0 0;
  color: #2f333a;
  line-height: 1.45;
}

.pending-registration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 760px) {
  main {
    margin-top: 1rem;
    padding: 0 0.85rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 1rem;
  }

  .pending-registration-page {
    width: min(100%, calc(100% - 1rem));
    margin-top: 1rem;
    padding: 0;
  }

  .pending-registration-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mission-split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mission-split__donate {
    order: -1;
    width: 100%;
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: start;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
  }

  .mission-split__donate .btn {
    width: auto;
    justify-self: start;
  }
}
