/* School Prayer — ESA / Love INC */
:root {
  --sp-navy: #122559;
  --sp-gold: #edae26;
  --sp-gold-bright: #f5c040;
  --sp-white: #ffffff;
  --sp-paper: #f7f6f2;
  --sp-ink: #1a1f36;
  --sp-muted: #5c6578;
  --sp-line: rgba(18, 37, 89, 0.12);
  --sp-on: #122559;
  --sp-font: "Inter", "Open Sans", system-ui, sans-serif;
}

body.sp-active #content-wrap.container,
body.sp-active #content-wrap {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.sp-active #primary,
body.sp-active #content,
body.sp-active .single-page-article,
body.sp-active .entry,
body.sp-active .content-area {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.sp {
  font-family: var(--sp-font);
  color: var(--sp-ink);
  font-size: 1rem;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(237, 174, 38, 0.28), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(237, 174, 38, 0.1), transparent 45%),
    var(--sp-white);
  padding: 18px 0 36px;
  overflow-x: clip;
}

.sp *,
.sp *::before,
.sp *::after {
  box-sizing: border-box;
}

.sp-page {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.sp-hero {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.sp-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  order: -1;
}

.sp-bus {
  display: block;
  width: min(100%, 460px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(18, 37, 89, 0.22));
}

.sp-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8860b;
}

.sp-mark .sp-kicker {
  justify-content: center;
  margin: 14px 0 8px;
}

.sp-live {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e23b3b;
  flex-shrink: 0;
}

.sp-schools .sp-live-count {
  letter-spacing: 0;
  font-size: 15px;
  line-height: 1;
  color: var(--sp-navy);
}

@media (prefers-reduced-motion: no-preference) {
  .sp-live {
    box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.55);
    animation: sp-pulse 1.6s ease-out infinite;
  }
}

@keyframes sp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(226, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 59, 59, 0); }
}

.sp-total {
  display: none;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--sp-navy);
  font-weight: 800;
  font-size: 1.05rem;
}

.sp-total strong {
  font-size: 2.2rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.sp h1 {
  margin: 0 0 10px;
  font-size: 2.15rem !important;
  font-weight: 800;
  line-height: 1.05 !important;
  letter-spacing: -0.035em;
  color: var(--sp-navy) !important;
}

.sp h1 span {
  color: #c49212;
  background: linear-gradient(transparent 62%, rgba(237, 174, 38, 0.45) 62%);
}

.sp-lead {
  margin: 0 0 14px;
  color: var(--sp-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.sp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  appearance: none;
}

.sp-btn-gold,
.sp-btn-gold:hover {
  background: var(--sp-gold);
  color: var(--sp-on) !important;
  border-color: transparent;
  box-shadow: 0 8px 0 #c49212, 0 14px 28px rgba(196, 146, 18, 0.28);
}

.sp-btn-ghost {
  background: var(--sp-white);
  color: var(--sp-navy) !important;
  border-color: var(--sp-line);
}

.sp-schools {
  padding-bottom: 22px;
}

.sp-schools h2 {
  margin: 0 0 6px;
  font-size: 1.7rem !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sp-navy) !important;
  line-height: 1.15 !important;
}

#schools,
#coordinator {
  scroll-margin-top: 170px;
}

.sp-search {
  margin: 0 0 8px;
}

.sp-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sp-search input {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid rgba(18, 37, 89, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--sp-navy);
  font: inherit;
}

.sp-search input::placeholder {
  color: var(--sp-muted);
}

.sp-icons {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sp-scroll {
  min-height: 0;
}

.sp-board {
  background: linear-gradient(180deg, rgba(237, 174, 38, 0.18), var(--sp-paper));
  border: 1px solid rgba(237, 174, 38, 0.35);
  border-radius: 22px;
  padding: 14px 8px 16px;
  box-sizing: border-box;
}

.sp-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-row {
  display: flex;
  justify-content: center;
}

.sp-row + .sp-row {
  margin-top: -3px;
}

.sp-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  flex: 0 0 60px;
  margin: 0 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--sp-navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  overflow: hidden;
  line-height: 0;
  transform-origin: center center;
}

.sp-icon img {
  display: block;
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  margin: 0;
  object-fit: contain;
  border-radius: 50%;
  pointer-events: none;
}

.sp-icon .sp-initials {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sp-icon.sp-plain {
  background: radial-gradient(circle at 35% 30%, #3a6fd0, #122559 62%, #0c1838);
  color: #fff;
}

.elementor-kit-10 .sp button.sp-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  flex: 0 0 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  line-height: 0;
}

.elementor-kit-10 .sp button.sp-icon.sp-plain {
  background: radial-gradient(circle at 35% 30%, #3a6fd0, #122559 62%, #0c1838);
  color: #fff;
}

.sp-icon.is-selected {
  box-shadow: 0 0 0 3px #edae26;
}

.sp-empty {
  margin: 24px 16px;
  text-align: center;
  color: var(--sp-muted);
}

.sp-miss {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  margin: 16px auto 8px;
  text-align: center;
}

.sp-miss p {
  margin: 0 0 2px;
  color: var(--sp-navy);
  font-weight: 800;
  line-height: 1.4;
}

.sp-miss .sp-btn {
  height: auto;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.sp-pin {
  background: #fff;
  color: var(--sp-ink);
  border-radius: 18px;
  padding: 12px 12px 16px;
  overflow: auto;
}

.sp-pin[hidden],
.sp-scroll[hidden] {
  display: none !important;
}

.sp-pin-back {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sp-navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sp-pin h2,
.sp-pin h3,
.sp-pin p {
  color: var(--sp-navy);
}

.sp-pin h2,
.sp-pin h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.2;
}

.sp-pin p {
  margin: 0 0 8px;
}

.sp-pin-signup {
  margin-bottom: 8px;
}

.sp-pin-photo {
  display: block;
  width: 96px;
  height: 96px;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  margin: 8px 0;
}

.sp-pin-captain {
  display: block;
  width: 48px;
  height: 48px;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  border-radius: 8px;
  margin: 4px 0 8px;
}

.sp-pin-label {
  font-weight: 700;
}

.sp-pin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-pin-tags span {
  border: 1px solid #868686;
  border-radius: 6px;
  padding: 2px 8px;
  background: #fff;
  font-size: 15px;
}

.sp-pin hr {
  border: 0;
  border-top: 1px solid #c0c0c3;
  margin: 10px 0;
}

.sp-thanks {
  background: #fff;
  color: var(--sp-navy);
  border-radius: 24px;
  padding: 22px 20px 8px;
  margin: 0 0 18px;
  box-shadow: 0 18px 40px rgba(18, 37, 89, 0.12);
}

.sp-thanks h2 {
  margin: 0 0 12px;
  color: var(--sp-navy) !important;
  font-size: 1.8rem !important;
  line-height: 1.15 !important;
}

.sp-thanks p {
  margin: 0 0 14px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--sp-navy);
}

.sp-thanks-close {
  font-weight: 800;
}

.sp-invite {
  background: var(--sp-navy);
  color: #fff;
  border-radius: 24px;
  padding: 18px 16px;
  box-shadow: 0 18px 40px rgba(18, 37, 89, 0.2);
}

.sp-invite .sp-kicker {
  color: var(--sp-gold);
}

.sp-invite h2 {
  margin: 0 0 8px;
  font-size: 1.45rem !important;
  color: #fff !important;
  line-height: 1.2 !important;
}

.sp-invite p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
}

.sp-invite .sp-btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28);
}

.sp.is-open .sp-hero,
.sp.is-open .sp-schools > .sp-kicker,
.sp.is-open .sp-schools > h2,
.sp.is-open .sp-schools > .sp-lead,
.sp.is-open .sp-search,
.sp.is-open .sp-invite {
  display: none;
}

@media (max-width: 420px) {
  .sp-icon,
  .elementor-kit-10 .sp button.sp-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    margin: 0 2px;
    padding: 0;
  }

  .sp-icon img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
  }

  .sp-icon .sp-initials {
    font-size: 13px;
  }
}

@media (min-width: 860px) {
  .sp {
    padding: 28px 0 40px;
  }

  .sp-hero {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .sp-mark {
    order: 0;
  }

  .sp-mark .sp-total {
    display: flex;
    justify-content: center;
  }

  .sp-schools .sp-live-count {
    display: none;
  }

  .sp-bus {
    width: min(100%, 420px);
  }

  .sp h1 {
    font-size: clamp(2.15rem, 3.4vw, 2.8rem) !important;
    max-width: 14ch;
  }

  .sp-copy .sp-lead {
    font-size: 1.12rem;
    max-width: 46ch;
    margin-bottom: 16px;
  }

  .sp-copy .sp-actions,
  .sp-invite .sp-actions {
    max-width: 420px;
  }

  .sp .sp-btn,
  .sp .sp-pin-back {
    font-size: clamp(1.7rem, 3vw, 2.1rem) !important;
    font-weight: 800;
    line-height: 1.15 !important;
  }

  .sp .sp-btn {
    padding: 18px 24px;
  }

  .sp-schools h2 {
    font-size: clamp(1.7rem, 3vw, 2.1rem) !important;
  }

  .sp-scroll {
    max-height: min(70vh, 640px);
    overflow: auto;
  }

  .sp-pin {
    flex: none;
    width: min(420px, 100%);
    margin: 0 auto;
    max-height: min(70vh, 640px);
    border-radius: 22px;
  }
}

body.sp-active .sp .sp-btn {
  background-image: none;
  text-transform: none;
  letter-spacing: 0;
  height: auto;
}

body.sp-active .sp .sp-btn-gold,
body.sp-active .sp .sp-btn-gold:hover {
  background: var(--sp-gold);
  color: var(--sp-on);
  border-color: var(--sp-gold);
}
