/* =========================================================
   Sponsor Us page (prefix sp-)
   ========================================================= */

/* ---------- Opening (page option "sp-intro": side or center) ---------- */
.sp-o { display: none; }
html[data-sp-intro="side"] .sp-o--side { display: grid; }
html[data-sp-intro="center"] .sp-o--center { display: block; }
.sp-open__btns { margin-top: 10px; }
.sp-o--center .intro-center h2 { margin-bottom: 18px; }
.sp-o--center .lead { margin-bottom: 16px; }

/* ---------- Why sponsor: three columns, each with a large red number ---------- */
.sp-reasons { list-style: none; margin: 0; padding: 0; counter-reset: sp-r; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.sp-reasons li { counter-increment: sp-r; }
.sp-reasons li::before { content: counter(sp-r, decimal-leading-zero); display: block; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); font: 600 clamp(40px, 4.4vw, 54px)/1 var(--font-head); color: var(--red); }
.sp-reasons h3 { font-size: 22px; margin-bottom: 10px; }
.sp-reasons p { margin: 0; color: var(--muted); }

/* ---------- Prototype only: order of Where funds go and Sponsorship levels (page option "sp-order") ----------
   The first of the two is white and the second gray, so the page always alternates:
   Opening white · Why gray · (first) white · (second) gray · Join us white. */
.sp-flow { display: flex; flex-direction: column; }
.sp-flow > .section { padding: 104px 0; }
html[data-sp-order="funds"] .sp-levels,
html[data-sp-order="levels"] .sp-funds { background: var(--surface); }
html[data-sp-order="levels"] .sp-levels { order: -1; }
.sp-join { padding-top: 104px; }

/* ---------- Where funds go: like Event Day's "What to bring" ---------- */
.sp-funds-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.sp-funds-list .section-head { margin-bottom: 0; }
.sp-list { padding-top: 24px; border-top: 2px solid var(--ink); }
.sp-list__intro { margin: 0; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-weight: 600; }
.sp-list ul { list-style: none; margin: 0; padding: 0; }
.sp-list li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.sp-list li:last-child { border-bottom: 0; }
.sp-list li::before { content: ""; position: absolute; left: 4px; top: calc(12px + .68em); width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* ---------- Sponsorship levels (page option "sp-levels-look": cols or headed) ---------- */
.sp-tiers .pc h3 { margin-bottom: 6px; }
.sp-tiers .pc p.sp-amt { font: 600 34px/1.1 var(--font-head); color: var(--red); margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sp-tiers .pc p.sp-incl { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.sp-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-perks li { position: relative; padding-left: 18px; color: var(--muted); line-height: 1.45; }
.sp-perks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* "headed": bordered boxes with a colored top band, like the officers' tier sheet (no icons).
   Divi: each column gets a border, and its Heading module a background color and padding. */
html[data-sp-levels-look="headed"] .sp-tiers { gap: 24px; border-top: 0; }
html[data-sp-levels-look="headed"] .sp-tiers .pc { padding: 0 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
html[data-sp-levels-look="headed"] .sp-tiers .pc > :not(h3) { margin-left: 28px; margin-right: 28px; }
html[data-sp-levels-look="headed"] .sp-tiers .pc h3 { margin: 0 0 24px; padding: 20px 28px; color: #fff; font-size: 21px; background: #7A808A; }
html[data-sp-levels-look="headed"] .sp-tier--2 { border-color: var(--red) !important; }
html[data-sp-levels-look="headed"] .sp-tier--2 h3 { background: var(--red) !important; }
html[data-sp-levels-look="headed"] .sp-tier--3 h3 { background: var(--second) !important; }
html[data-sp-levels-look="headed"] .sp-tiers .pc p.sp-amt { color: var(--ink); }
html[data-sp-levels-look="headed"] .sp-tier--2 p.sp-amt { color: var(--red) !important; }

/* ---------- Join us (closing section) ---------- */
.sp-join-head { margin-inline: auto; text-align: center; max-width: 720px; margin-bottom: 44px; }
.sp-join-head .eyebrow { justify-content: center; }

/* Past sponsors: a name with an optional logo
   (Divi, "Row": a row with 3 columns, one Blurb each, class sp-sponsor; Use Icon off, image optional) */
.sp-past-label {
  margin: 0 0 18px; text-align: center; color: var(--muted);
  font: 700 13px/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.sp-past-label .placeholder-note { margin-left: 8px; letter-spacing: normal; text-transform: none; }
.sp-past { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 960px; }
.sp-sponsor {
  min-height: 196px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-align: center;
}
.sp-sponsor__logo {
  width: 150px; aspect-ratio: 5 / 2; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed #C9CED6; border-radius: 4px;
  color: #A3AAB5; font: 700 12.5px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
}
.sp-sponsor__logo svg { width: 22px; height: 22px; fill: #D5D9DF; }
.sp-sponsor__name { font: 600 19px/1.3 var(--font-head); color: var(--ink); }
.sp-sponsor--text .sp-sponsor__name { font-size: 23px; }
.sp-sponsor__note { margin-top: -6px; font-size: 14.5px; color: var(--muted); }

/* Get in touch */
.sp-join-cta { margin-top: 44px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.sp-join-cta p { margin: 0; color: var(--muted); font-size: 15.5px; }
.sp-join-cta p a { color: var(--ink); font-weight: 600; text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent); text-underline-offset: 3px; }
.sp-join-todo { max-width: 960px; margin: 48px auto 0; }

@media (max-width: 980px) {
  html[data-sp-levels-look="headed"] .sp-tiers .pc + .pc { padding-top: 0; border-top: 1px solid var(--line); }
  .sp-reasons { grid-template-columns: 1fr; gap: 36px; }
  .sp-funds-list { grid-template-columns: 1fr; gap: 28px; }
  .sp-past { gap: 14px; }
  .sp-sponsor { min-height: 172px; padding: 20px 16px; }
  .sp-sponsor__logo { width: 120px; }
}
@media (max-width: 640px) {
  .sp-flow > .section, .sp-join { padding: 76px 0; }
  .sp-join-head { margin-bottom: 32px; }
  .sp-past-label .placeholder-note { margin: 6px auto 0; display: table; }
  .sp-past { grid-template-columns: 1fr; }
  .sp-sponsor { min-height: 148px; }
  .sp-join-cta { margin-top: 32px; }
  .sp-join-cta .btn { width: 100%; justify-content: center; }
}
