/* Website pages inside the app, in the app's own look. Copied by scripts/site-build.mjs from src/site-theme.css; edit there, not here. */

/* The website's pages inside the phone app (iOS and Android), in the app's own look.
   scripts/site-build.mjs uses this file in place of the website's styles when it builds the app (npm run build),
   so these pages look like the app's Home screen: the navy header with rounded corners, white rounded cards,
   round gold and pale-blue buttons and the app's type sizes. The website version of the app (npm run web) uses it
   for its Events tab too. It doesn't change the website: stverenas.com's own pages keep the website's styles.
   Class names are the website's with an "s-" prefix (see site-build.mjs). Parts the app adds to a page are marked
   .sp-app (src/site-ui.js, src/site-enhance.js, src/events-page.js) and use the app's own styles (src/styles.css).
   The colors, fonts and --radius come from src/styles.css. */

/* ---------- Page ---------- */
.sp {
  --sp-shadow: 0 1px 0 var(--line), 0 10px 28px -20px rgba(10, 31, 77, .45);
  --sp-navy-card: linear-gradient(160deg, var(--navy) 0%, var(--navy-d) 100%);
  --sp-hero: radial-gradient(120% 80% at 50% 0%, #163a85 0%, var(--navy) 55%, var(--navy-d) 100%);
  --sp-cream: linear-gradient(135deg, #fff 0%, #fff8e1 100%);
  --sp-cream-edge: inset 0 0 0 1.5px rgba(245, 196, 49, .55);
  min-height: 100%;
  padding-bottom: 28px;
  font: 15.5px/1.55 var(--sans);
  color: var(--ink);
  -webkit-user-select: text; user-select: text;
}
.sp .sp-nest { min-height: 0; padding: 0; }
.sp * { scroll-margin-top: 12px; }
.sp [hidden] { display: none !important; }
.sp img { max-width: 100%; height: auto; }
.sp a, .sp button, .sp summary, .sp label { -webkit-tap-highlight-color: rgba(10, 31, 77, .12); }
.sp :focus-visible { outline: 3px solid var(--gold-d); outline-offset: 2px; }

/* Text (not the parts the app adds) */
.sp :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote):where(:not(.sp-app, .sp-app *)) { margin: 0; }
.sp :where(p, ul, ol, dl, blockquote):where(:not(.sp-app, .sp-app *)) { margin-bottom: 10px; }
.sp :where(p, ul, ol, dl, blockquote):where(:not(.sp-app, .sp-app *)):last-child { margin-bottom: 0; }
.sp :where(ul, ol):where(:not(.sp-app, .sp-app *)) { padding-left: 1.3em; }
.sp :where(li):where(:not(.sp-app, .sp-app *)) { margin: 4px 0; }
.sp :where(h2):where(:not(.sp-app, .sp-app *)) { margin-bottom: 10px; font: 600 22px/1.2 var(--serif); color: var(--navy); }
.sp :where(h3):where(:not(.sp-app, .sp-app *)) { margin-bottom: 6px; font: 700 17px/1.25 var(--sans); color: var(--navy-d); }
.sp :where(h4, h5, h6):where(:not(.sp-app, .sp-app *)) { margin-bottom: 4px; font: 700 15.5px/1.3 var(--sans); color: var(--navy-d); }
.sp :where(a):where(:not(.sp-app, .sp-app *)) { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.sp :where(strong, b) { font-weight: 700; }
.sp :where(em) { font-style: italic; }
.sp :where(button):where(:not(.sp-app, .sp-app *)) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Read by screen readers, not shown */
.sp .s-sr, .sp .s-vh, .sp .s-cal-vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header: the Home screen's navy header ---------- */
.sp .s-pagehead {
  position: relative; overflow: hidden; padding: 24px 22px 28px; border-radius: 0 0 28px 28px;
  background: var(--sp-hero); color: #fff; text-align: center;
}
.sp .s-pagehead::before { content: ''; position: absolute; inset: auto -40% -60% -40%; height: 70%; background: radial-gradient(closest-side, rgba(245, 196, 49, .16), transparent); pointer-events: none; }
.sp .s-pagehead .s-wrap { position: relative; padding: 0; }
.sp .s-pagehead h1 { max-width: 340px; margin: 0 auto 8px; font: 600 28px/1.15 var(--serif); color: #fff; }
.sp .s-pagehead p { max-width: 340px; margin: 0 auto; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .82); }

/* ---------- Sections ---------- */
.sp > section, .sp > .s-rs, .sp > .s-hp { margin: 28px 0 0; padding: 0; background: none; }
.sp > .s-pagehead + section, .sp > .s-pagehead + .s-rs, .sp > .s-pagehead + .s-hp { margin-top: 20px; }
.sp .s-wrap { max-width: none; margin: 0; padding: 0 16px; }
.sp .s-wrap .s-wrap { padding: 0; }
.sp > section > .s-wrap + .s-wrap { margin-top: 28px; }
.sp .s-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.sp .s-prose h2 + p, .sp .s-prose p + p { margin-top: 0; }
.sp .s-prose > h2:not(:first-child) { margin-top: 24px; }
.sp .s-prose em { color: var(--muted); }
.sp :is(.s-lead, .s-rs-lead) { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.sp .s-values + .s-prose { margin-top: 18px; }
.sp .s-prose + .s-cats { margin-top: 22px; }

/* Small labels above a title */
.sp :where(.s-place, .s-sv-when, .s-rs-kicker, .s-hp-label, .s-rs-chiplab, .s-rlinks h4) {
  display: flex; align-items: center; gap: 6px; margin: 0 0 4px;
  font: 700 12px/1.3 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--blue);
}

/* Short tags (pills) */
.sp :where(.s-req, .s-ftag, .s-rs-tag, .s-teen, .s-hp-badge) {
  display: inline-flex; align-items: center; margin: 0; padding: 4px 9px; border-radius: 999px;
  background: var(--pale); color: var(--navy); font: 700 11.5px/1.3 var(--sans); letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.sp :is(.s-req, .s-hp-badge) { background: var(--navy); color: #fff; }
.sp .s-hp-badge { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .4px; font-size: 11px; }
.sp .s-teen { background: #fff4d1; color: #8a5a00; }
.sp :where(p.s-req, p.s-ftag, p.s-hp-badge) { display: flex; width: max-content; max-width: 100%; white-space: normal; }
.sp :is(.s-req, .s-ftag) { margin: 2px 0 10px; }
.sp .s-rs-tag.s-rs-c-free { background: #e3f5ea; color: #136c3c; }
.sp .s-rs-tag:is(.s-rs-c-sliding, .s-rs-c-income, .s-rs-c-low) { background: #fff4d1; color: #8a5a00; }
.sp .s-rs-tag.s-rs-c-call { background: #eef0f4; color: #6b7489; }
.sp .s-rs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }

/* ---------- Cards ---------- */
.sp :where(.s-ways > article, .s-rs-card, .s-hp-item, .s-opp, .s-values > div, .s-sv-cards > article, .s-reqs > article,
  .s-fgrid > article, .s-sv-cols > div, .s-cal-main, .s-cal-day, .s-done, form.s-apply > fieldset, .s-rs-filters) {
  position: relative; min-width: 0; margin: 0; padding: 16px; border: 0; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--sp-shadow); font-size: 14.5px; line-height: 1.5; overflow-wrap: break-word;
}
.sp :where(.s-ways, .s-rs-list, .s-hp-list, .s-values, .s-sv-cards, .s-reqs, .s-fgrid, .s-sv-cols, .s-opp-grid) {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none;
}
.sp :is(.s-rs-list, .s-hp-list) > li { margin: 0; }
.sp :where(.s-ways > article, .s-values > div, .s-sv-cards > article, .s-reqs > article, .s-fgrid > article, .s-opp) > :where(h3, h4) { margin-bottom: 6px; }

/* Callouts: the Home screen's cream card */
.sp :is(.s-partner, .s-belief) {
  margin: 0 0 14px; padding: 16px; border-radius: var(--radius);
  background: var(--sp-cream); box-shadow: var(--sp-cream-edge), 0 10px 28px -20px rgba(10, 31, 77, .45);
  font-size: 14.5px; line-height: 1.5; color: var(--ink);
}
.sp .s-partner :is(h2, h3) { margin: 0 0 6px; font: 700 16px/1.3 var(--sans); color: var(--navy-d); }
.sp .s-partner.s-fv-closed :is(h2, h3) { margin-bottom: 0; }
.sp .s-partner ul { margin-top: 6px; }
.sp .s-ways + .s-partner, .sp .s-steps + .s-partner { margin-top: 14px; }
.sp .s-belief { font: 600 18px/1.45 var(--serif); color: var(--navy); }
.sp .s-belief > span { display: block; margin-top: 10px; font: 400 15px/1.55 var(--sans); color: var(--ink); }

/* Notes: the app's pale-blue note */
.sp :is(.s-note, .s-rs-safe, .s-secure, .s-rs-empty, .s-hp-empty) {
  margin: 0 0 14px; padding: 12px 14px; border: 0; border-radius: 14px;
  background: var(--pale); color: var(--navy); font-size: 14px; line-height: 1.5;
}
.sp :is(.s-note, .s-rs-safe, .s-secure) strong { color: var(--navy-d); }
.sp .s-secure { display: flex; align-items: flex-start; gap: 10px; }
.sp .s-secure .s-lock { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--navy); }
.sp .s-secure .s-fv-btn { display: flex; width: max-content; max-width: 100%; }
.sp .s-secure span { display: block; }

/* Navy cards */
.sp :is(.s-rs-alert, .s-nh, .s-saint) {
  position: relative; margin: 0 0 14px; padding: 16px; border: 0; border-radius: var(--radius);
  background: var(--sp-navy-card); color: rgba(255, 255, 255, .86); font-size: 14.5px; line-height: 1.5;
  box-shadow: 0 14px 30px -18px rgba(6, 20, 51, .8);
}
.sp :is(.s-rs-alert, .s-nh, .s-saint) a:not(.s-btn) { color: var(--gold); }

/* ---------- Buttons: the app's round buttons ---------- */
.sp .s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin: 0;
  padding: 8px 18px; border: 0; border-radius: 999px; background: var(--navy); color: #fff;
  font: 700 15px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  -webkit-user-select: none; user-select: none; transition: transform .15s var(--ease), background .2s;
}
.sp .s-btn:active { transform: scale(.97); }
.sp .s-btn[disabled] { opacity: .6; pointer-events: none; }
.sp .s-btn.s-gold { background: var(--gold); color: var(--navy-d); box-shadow: 0 6px 16px -8px rgba(217, 165, 33, .9); }
.sp .s-btn.s-gold:active { background: var(--gold-d); }
.sp .s-btn.s-alt { background: var(--pale); color: var(--navy); }
.sp .s-btn.s-alt.s-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.sp .s-btn.s-store { flex-direction: column; gap: 1px; padding: 6px 12px; line-height: 1.1; }
.sp .s-btn.s-store small { font: 600 11px/1.15 var(--sans); }
.sp .s-btn.s-store b { font: 700 15.5px/1.15 var(--sans); }
.sp p > .s-btn:only-child { display: flex; width: 100%; }
.sp a.s-more { color: var(--navy); font-weight: 700; }

/* Rows of buttons: they share a row when they fit, and fill it */
.sp :is(.s-rs-go, .s-hp-go, .s-cta, .s-cta-row, .s-opp-actions, .s-go, .s-rs-alert-go, .s-rs-fgo, .s-nh-links, .s-sv-help, .s-vm-back, .s-hp-back) {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 14px 0 0;
}
.sp :is(.s-cta, .s-cta-row, .s-sv-help, .s-vm-back, .s-hp-back) > .s-btn { flex: 1 1 auto; }
/* Listings (Resources, Find help): the main action across the card, the others two to a row when their words fit
   (as on the Home screen), each across the card when they don't */
.sp :is(.s-rs-go, .s-hp-go, .s-rs-fgo) > .s-btn { flex: 1 1 0; min-width: fit-content; padding-left: 14px; padding-right: 14px; }
.sp :is(.s-rs-go, .s-hp-go, .s-rs-fgo) > .s-btn.s-gold:not(.s-store) { flex-basis: 100%; }
.sp .s-hp-go > .s-fv-btn { flex: none; margin: 0; }
.sp :is(.s-rs-alert-go, .s-nh-links) > .s-btn { flex: 1 1 0; min-width: fit-content; padding-left: 14px; padding-right: 14px; }
.sp .s-opp-actions > .s-btn, .sp .s-opp-actions > .s-more { flex: 1 1 100%; }
.sp .s-opp-actions > .s-gold { order: -1; }
.sp .s-opp-actions > .s-more { padding: 6px 0; text-align: center; }

/* ---------- Read more (folded text on phones) ---------- */
.sp .s-fv-closed .s-fv-x { display: none !important; }
.sp .s-fv-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 10px 0 0; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--pale); color: var(--navy);
  font: 700 13.5px/1.2 var(--sans); cursor: pointer;
}
.sp .s-fv-btn svg { width: 16px; height: 16px; flex: none; }
.sp .s-fv-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sp :is(.s-partner, .s-belief, .s-note, .s-rs-safe, .s-rs-feature) .s-fv-btn { background: #fff; }
.sp .s-saint .s-fv-btn { background: rgba(255, 255, 255, .14); color: #fff; }
.sp p > .s-fv-btn { display: flex; width: max-content; max-width: 100%; }
.sp .s-fv-btn + p { margin-top: 10px; }

/* ---------- Tabs: one control, the selected tab in navy ---------- */
.sp :is(.s-tabs, .s-rs-tablist, .s-hp-tablist) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 0 20px; padding: 4px;
  border: 0; border-radius: 24px; background: var(--pale);
}
.sp :is(.s-tabs, .s-rs-tablist, .s-hp-tablist) > button {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 42px; margin: 0;
  padding: 6px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--navy);
  font: 700 13.5px/1.2 var(--sans); text-align: center; text-wrap: balance; cursor: pointer;
}
.sp :is(.s-tabs, .s-rs-tablist, .s-hp-tablist) > button[aria-selected="true"] {
  background: var(--navy); color: #fff; box-shadow: 0 4px 10px -6px rgba(6, 20, 51, .8);
}
.sp :is(.s-evtabs, .s-rs-tablist) > button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sp:where([data-sp="church"]) .s-tabs > button:first-child { grid-column: 1 / -1; }
.sp .s-hp-tablist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp .s-hp-tablist > button { flex-direction: column; gap: 3px; min-height: 52px; }
.sp :is(.s-hp-tablist, .s-hp-subtabs, .s-hp-btns, .s-vm-cities) b, .sp .s-rs-n, .sp .sp-chips button b {
  display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: rgba(10, 31, 77, .1); color: var(--navy); font: 700 11.5px/1 var(--sans);
}
.sp :is([aria-selected="true"], [aria-pressed="true"]) > :is(b, .s-rs-n) { background: var(--gold); color: var(--navy-d); }

/* Pages that load before their buttons are ready show the website's links; the app hides them once ready. */
.sp :is(.s-rs-tabs, .s-rs-filters, .s-hp-tabs) { display: none; }
.sp .s-rs-ready :is(.s-rs-tabs, .s-rs-filters), .sp .s-hp-ready .s-hp-tabs { display: block; }
.sp .s-rs-ready .s-rs-jump, .sp .s-hp-ready .s-hp-jump { display: none; }

/* Chips: sub-sections, cities, filters */
.sp :where(.s-rs-jump, .s-hp-jump, .s-rs-subtabs, .s-hp-subtabs, .s-hp-btns, .s-rs-chips, .s-vm-cities, .s-cal-chips, .sp-chips, .s-rs-subnav ul, .s-hp-types ul) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none;
}
.sp :where(.s-vm-cities, .s-rs-subnav ul, .s-hp-types ul) > li { margin: 0; }
.sp :where(.s-rs-jump a, .s-hp-jump a, .s-rs-subtabs button, .s-hp-subtabs button, .s-hp-btns button, .s-rs-chip, .s-vm-cities a, .sp-chips button, .s-rs-subnav a, .s-hp-types a) {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; margin: 0; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy);
  font: 700 14px/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.sp :where(.s-rs-subtabs button, .s-hp-subtabs button, .s-hp-btns button, .s-rs-chip, .sp-chips button):is([aria-selected="true"], [aria-pressed="true"]) {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.sp :where(.s-rs-subtabs button.s-rs-zero, .s-hp-subtabs button[data-s-zero], .s-hp-btns button[data-s-zero]):not([aria-selected="true"]):not([aria-pressed="true"]) { opacity: .55; }
.sp :is(.s-rs-jump, .s-hp-jump) { margin: 0 0 16px; }
.sp :is(.s-rs-jump, .s-hp-jump) > span { width: 100%; font: 700 12px/1.3 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--blue); }

/* Two-way switch (All ages / Teens welcome): the app's segmented control */
.sp .s-vm-filter { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--pale); }
.sp .s-vm-filter button { flex: 1; min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); font: 700 13.5px/1.2 var(--sans); cursor: pointer; }
.sp .s-vm-filter button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 4px 10px -6px rgba(6, 20, 51, .8); }

/* Lists of facts (label above, value below), like the app's request details */
.sp :where(.s-sv-facts, .s-cbox dl, .s-rs-ffacts, .s-hp-facts) { margin: 0; }
.sp :where(.s-sv-facts, .s-cbox dl, .s-rs-ffacts, .s-hp-facts) > div { margin: 0; padding: 10px 0; }
.sp :where(.s-sv-facts, .s-cbox dl, .s-rs-ffacts, .s-hp-facts) > div + div { border-top: 1px solid var(--line); }
.sp :is(.s-sv-facts, .s-cbox, .s-rs-ffacts, .s-hp-facts, .s-rs-facts) dt {
  margin: 0; font: 700 11.5px/1.3 var(--sans); letter-spacing: .5px; text-transform: uppercase; color: var(--muted);
}
.sp :is(.s-sv-facts, .s-cbox, .s-rs-ffacts, .s-hp-facts, .s-rs-facts) dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); overflow-wrap: break-word; }
.sp .s-rs-facts { margin: 10px 0 0; }
.sp .s-rs-facts dt:not(:first-child) { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.sp .s-hp-facts { margin: 4px 0 0; }
.sp .s-hp-facts > div:first-child { padding-top: 4px; }
.sp .s-hp-pl { display: block; font-size: 13px; color: var(--muted); }

/* Rows of links (Our church links, Items we collect): the Home screen's Learn more list */
.sp :is(.s-rlinks, .s-cats) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0; }
.sp :is(.s-rlinks, .s-cats) > div { min-width: 0; }
.sp .s-cats h2 { margin: 0 0 10px; }
.sp :is(.s-rlinks, .s-cats) ul { margin: 0; padding: 2px 16px; list-style: none; border-radius: var(--radius); background: var(--card); box-shadow: var(--sp-shadow); }
.sp :is(.s-rlinks, .s-cats) li { margin: 0; }
.sp :is(.s-rlinks, .s-cats) li + li { border-top: 1px solid var(--line); }
.sp :is(.s-rlinks, .s-cats) li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 10px 0;
  color: var(--navy-d); font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.sp :is(.s-rlinks, .s-cats) li a::after {
  content: ''; flex: none; width: 18px; height: 18px; background: #9aa6c0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sp .s-rlinks h4 { margin: 0 0 8px 4px; }

/* ---------- About, Our church, St. Verena, Future, Internships, Items ---------- */
.sp .s-photos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.sp .s-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; border: 0; border-radius: var(--radius); box-shadow: var(--sp-shadow); }
.sp .s-photo:only-child { aspect-ratio: 16 / 9; }

/* Join us / Serve with us: the Home screen's header, with its two buttons */
.sp .s-next > .s-box {
  position: relative; overflow: hidden; margin: 0 16px; padding: 24px 20px; border-radius: var(--radius);
  background: var(--sp-hero); color: #fff; text-align: center; box-shadow: 0 14px 30px -18px rgba(6, 20, 51, .8);
}
.sp .s-next > .s-box::before { content: ''; position: absolute; inset: auto -40% -60% -40%; height: 70%; background: radial-gradient(closest-side, rgba(245, 196, 49, .16), transparent); pointer-events: none; }
.sp .s-next .s-box > * { position: relative; }
.sp .s-next h2 { margin: 0 0 6px; font: 600 24px/1.2 var(--serif); color: #fff; }
.sp .s-next p { max-width: 330px; margin: 0 auto; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.sp .s-next .s-cta { justify-content: center; margin-top: 18px; }
.sp .s-next .s-cta > .s-btn { flex: 1 1 0; max-width: 200px; }

/* St. Verena: the patron saint card */
.sp .s-saint { padding: 18px; }
.sp .s-saint .s-roundel { width: 76px; height: 76px; margin: 0 0 14px; border-radius: 50%; background: #fcfaf2 url("../img/verena-mark.webp") center / cover no-repeat; box-shadow: 0 0 0 3px var(--gold), 0 10px 22px -10px rgba(0, 0, 0, .6); }
.sp .s-saint h3 { margin: 0 0 4px; font: 700 12px/1.3 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.sp .s-saint p { margin: 0; color: rgba(255, 255, 255, .86); }
.sp .s-saint p + h3 { margin-top: 14px; }
.sp .s-sv-facts { padding: 4px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--sp-shadow); }
.sp .s-sv-cap { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.sp .s-sv-time { position: relative; margin: 0; padding: 0 0 0 24px; list-style: none; }
.sp .s-sv-time::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: linear-gradient(var(--gold), var(--gold-d)); }
.sp .s-sv-time > li { position: relative; margin: 0 0 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--sp-shadow); font-size: 14.5px; line-height: 1.5; }
.sp .s-sv-time > li:last-child { margin-bottom: 0; }
.sp .s-sv-time > li::before { content: ''; position: absolute; left: -24px; top: 18px; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--gold); }
.sp .s-sv-cols ul { margin: 4px 0 0; padding: 0; list-style: none; }
.sp .s-sv-cols li { margin: 0; padding: 10px 0; }
.sp .s-sv-cols li + li { border-top: 1px solid var(--line); }
.sp .s-sv-cols li:first-child { padding-top: 4px; }

/* Our church: the six churches, their schedules, links and the St. Mark icon under the history */
.sp .s-cbox { margin: 0 0 14px; padding: 2px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--sp-shadow); }
.sp .s-cbox a { color: var(--navy); }
.sp .s-ways .s-cbox { margin: 6px 0 0; padding: 0; background: none; box-shadow: none; }
.sp .s-ways .s-cbox dl > div:first-child { padding-top: 6px; }
.sp .s-tabpanel > .s-place { margin-bottom: 2px; }
.sp .s-tabpanel > h3 { margin: 22px 0 10px; font: 600 19px/1.25 var(--serif); color: var(--navy); }
.sp .s-sched { display: block; width: 100%; margin: 0 0 14px; padding: 4px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--sp-shadow); }
.sp .s-sched thead { display: none; }
.sp .s-sched tbody { display: block; }
.sp .s-sched tr { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 2px 10px; padding: 3px 0; }
.sp .s-sched tr.s-ds { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.sp .s-sched tr.s-ds:first-child { margin-top: 0; padding-top: 10px; border-top: 0; }
.sp .s-sched tr.s-de { padding-bottom: 10px; }
.sp .s-sched td { display: block; padding: 0; font-size: 14.5px; line-height: 1.4; }
.sp .s-sched tr.s-ds > td:first-child { grid-column: 1 / -1; margin-bottom: 4px; font: 700 12px/1.3 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--blue); }
.sp .s-sched tr:not(.s-ds) > td:first-child { display: contents; }
.sp .s-sched td:nth-child(2) { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.sp .s-hist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.sp .s-art { display: flex; flex-direction: column; align-items: center; margin: 0; text-align: center; }
.sp .s-art figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sp .s-iconframe {
  container-type: inline-size; position: relative; width: 100%; max-width: 240px; margin: 0 auto; overflow: hidden;
  border: 6px solid var(--gold); border-radius: 160px 160px 16px 16px; background: var(--navy);
  box-shadow: 0 0 0 3px var(--navy), 0 18px 36px -16px rgba(6, 20, 51, .6);
}
.sp .s-iconframe img { display: block; width: 100%; height: auto; }
.sp .s-ic-name {
  position: absolute; left: 8%; top: 17%; color: #000; line-height: 1.3; pointer-events: none;
  font-family: "Noto Sans Coptic", "Antinoou", "Segoe UI Historic", "Noto Serif Coptic", serif; font-weight: 400;
  -webkit-text-stroke: .45px #000; text-shadow: 0 0 .5em rgba(255, 246, 214, .95), 0 0 .2em rgba(255, 246, 214, .9);
}
.sp .s-ic-name b { display: block; font-weight: 400; font-size: 7cqw; letter-spacing: .05em; }
.sp .s-ic-name i { display: block; font-style: normal; font-size: 4.9cqw; letter-spacing: .04em; }
#s-churchtabs > .s-wrap > h2 + p { color: var(--muted); font-size: 15px; }

/* Internships: the app's numbered steps */
.sp ol.s-steps { margin: 0; padding: 16px 16px 4px; list-style: none; counter-reset: s; border-radius: var(--radius); background: var(--card); box-shadow: var(--sp-shadow); }
.sp ol.s-steps > li { position: relative; margin: 0; padding: 0 0 14px 40px; counter-increment: s; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.sp ol.s-steps > li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 13px/28px var(--sans); text-align: center; }
.sp ol.s-steps strong { display: block; color: var(--navy-d); font-size: 15.5px; }

/* ---------- Events ---------- */
.sp .s-tabpanel > h2 { margin-bottom: 10px; }
.sp .s-tabpanel > .s-ways + p { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.sp .s-tabpanel > .s-note + h3 { margin-top: 18px; }
.sp .s-ways > article { display: flex; flex-direction: column; }
.sp .s-ways > article > p:not([class]) strong:only-child { color: var(--navy-d); }
.sp .s-ways > article > .s-go { margin-top: 12px; }
.sp .s-ways > article > .s-fv-btn { align-self: flex-start; }
/* The app's part of a service's card: when it is next (above the title, as on the Home screen), Count me in,
   Calendar and Directions */
.sp .s-ways > article > .sp-ev { display: contents; }
.sp .s-ways > article > h3:first-child ~ .sp-ev > .sp-ev-when { order: -1; }
.sp .sp-ev-when { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font: 700 12px/1.3 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--blue); }
.sp .sp-ev-when .ic { width: 15px; height: 15px; flex: none; }
.sp .sp-ev-when.live { color: #136c3c; }
.sp .s-ways > article > .s-place ~ .sp-ev > .sp-ev-when { margin-top: 12px; }
.sp .sp-ev .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.sp .sp-ev .actions > .btn { flex: 1 1 0; min-width: fit-content; }
.sp .sp-ev .actions > .btn:first-child { flex-basis: 100%; }
.sp .s-ways > article > .sp-foot { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.sp .s-ways > article > .sp-foot:has(> a[href*="google.com/maps"])::before {
  content: ''; flex: none; width: 15px; height: 15px; margin-top: 1px; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sp .s-ways > article > .sp-foot a { color: var(--muted); font-weight: 500; }
.sp.sp-measure .s-ways > article > .sp-app { display: none !important; }
/* Internships and volunteer hours, under Youth volunteering */
.sp .s-opps.s-intab { margin-top: 18px; }
.sp .s-opps .s-box { padding: 16px; border-radius: var(--radius); background: var(--sp-cream); box-shadow: var(--sp-cream-edge), 0 10px 28px -20px rgba(10, 31, 77, .45); }
.sp .s-opps .s-opps-h { margin: 0 0 6px; font: 600 20px/1.2 var(--serif); color: var(--navy); }
.sp .s-opps .s-opps-lead { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.sp .s-opps .s-opp-t { margin: 0 0 6px; font: 700 16px/1.3 var(--sans); color: var(--navy-d); }
.sp .sp-hours { margin-top: 14px; }
.sp .sp-hours .btn-block { margin-top: 0; }
.sp .sp-hours-note { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

/* Calendar */
.sp .s-cal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; }
.sp .s-cal-main { padding: 12px; }
.sp .s-cal-chips { gap: 6px; margin: 0 0 12px; }
.sp .s-cal-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin: 0; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy);
  font: 700 13px/1.1 var(--sans); cursor: pointer;
}
.sp .s-cal-chip .s-sw { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.sp .s-cal-chip[aria-pressed="false"] { border-color: transparent; background: var(--pale); color: #6b7489; }
.sp .s-cal-chip[aria-pressed="false"] .s-sw { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.sp .s-cal-head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.sp .s-cal-head h3 { flex: 1; min-width: 0; margin: 0; font: 600 20px/1.2 var(--serif); color: var(--navy); text-align: center; }
.sp .s-cal-btn { display: grid; place-items: center; min-width: 40px; height: 40px; margin: 0; padding: 0 12px; border: 0; border-radius: 999px; background: var(--pale); color: var(--navy); font: 700 21px/1 var(--sans); cursor: pointer; }
.sp .s-cal-btn.s-cal-today { font-size: 13.5px; }
.sp .s-cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.sp .s-cal-dowc { padding: 4px 0; text-align: center; font: 700 11px/1 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.sp .s-cal-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; min-height: 52px; margin: 0; padding: 6px 2px;
  border: 0; border-radius: 12px; background: var(--pale); color: var(--navy); font: inherit; cursor: pointer;
}
.sp .s-cal-cell .s-n { min-width: 26px; padding: 4px 3px; border-radius: 999px; font: 700 14.5px/1 var(--sans); text-align: center; }
.sp .s-cal-cell.s-out { opacity: .4; }
.sp .s-cal-cell.s-today .s-n { background: var(--gold); color: var(--navy-d); }
.sp .s-cal-cell.s-sel { background: var(--navy); color: #fff; opacity: 1; box-shadow: 0 4px 10px -6px rgba(6, 20, 51, .8); }
.sp .s-cal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; }
.sp .s-cal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9); }
.sp .s-cal-note { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sp .s-cal-day { padding: 16px; }
.sp .s-cal-day > h3 { margin: 0 0 2px; font: 700 17px/1.25 var(--sans); color: var(--navy-d); }
.sp .s-cal-day > p { font-size: 14px; }
.sp .s-cal-sum { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.sp .s-cal-allbar { display: flex; justify-content: flex-end; }
.sp .s-cal-all { min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--blue); font: 700 13.5px/1 var(--sans); cursor: pointer; }
.sp .s-cal-ch { margin: 8px 0 0; padding: 0 0 0 12px; border-left: 4px solid var(--c); }
.sp .s-cal-ch > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; list-style: none; cursor: pointer; }
.sp .s-cal-ch > summary::-webkit-details-marker { display: none; }
.sp .s-cal-ch > summary::marker { content: ''; }
.sp .s-cal-ch > summary::after {
  content: ''; flex: none; width: 16px; height: 16px; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sp .s-cal-ch[open] > summary::after { transform: rotate(180deg); }
.sp .s-cal-ch[open] > summary { border-bottom: 1px solid var(--line); }
.sp .s-cal-ch .s-t { flex: 1; min-width: 0; }
.sp .s-cal-ch .s-nm { display: block; font: 700 15px/1.3 var(--sans); color: var(--navy-d); }
.sp .s-cal-ch .s-pl { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.sp .s-cal-cnt { flex: none; min-width: 26px; padding: 3px 8px; border-radius: 999px; background: var(--pale); color: var(--navy); font: 700 12px/1.2 var(--sans); text-align: center; }
.sp .s-cal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-size: 13.5px; }
.sp .s-cal-list { display: grid; gap: 8px; margin: 8px 0 6px; padding: 0; list-style: none; }
.sp .s-cal-list li { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); gap: 2px 10px; margin: 0; font-size: 14px; line-height: 1.35; }
.sp .s-cal-time { font-size: 13px; font-weight: 700; color: var(--navy); }
.sp .s-cal-sub { display: block; font-size: 12.5px; color: var(--muted); }
.sp .s-cal-back { display: inline-flex; align-items: center; min-height: 36px; margin: 14px 0 0; padding: 0 14px; border: 0; border-radius: 999px; background: var(--pale); color: var(--navy); font: 700 13.5px/1.2 var(--sans); cursor: pointer; }
@container (max-width: 360px){
  .sp .s-cal-head h3 { font-size: 17px; }
}
/* Wider screens list every church's day at once (src/events-page.js decides by the same width). The website version
   is always a phone-width column: its build turns this rule into a container rule that its column never meets, and
   its events-page.js always takes the phone layout. */
@container (min-width: 861px){
  .sp .s-cal-ch > summary { cursor: default; }
  .sp .s-cal-ch > summary::after, .sp .s-cal-cnt, .sp .s-cal-back { display: none; }
}

/* ---------- Resources ---------- */
.sp .s-rs-panel { margin: 0; }
.sp .s-rs-panel > h2 { margin: 4px 0 8px; }
.sp .s-rs-group { margin: 24px 0 0; }
.sp .s-rs-group > h3, .sp .s-hp-group > h3 { margin: 0 0 10px; font: 600 19px/1.25 var(--serif); color: var(--navy); }
.sp .s-rs-gnote, .sp .s-hp-tnote { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sp .s-rs-end { margin: 20px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.sp .s-rs-list { margin: 0; }
.sp .s-rs-subtabs, .sp .s-hp-subtabs { margin: 14px 0 0; }
.sp .s-rs-subnav { margin: 12px 0 0; }
/* Emergency (Call 911) and Need help: navy cards */
.sp .s-rs-alert p { margin: 0; }
.sp .s-rs-alert strong { display: block; margin: 0 0 4px; font: 600 20px/1.2 var(--serif); color: #fff; }
.sp .s-rs-alert .s-rs-alert-go { margin-top: 14px; }
.sp .s-needhelp { margin: 0 0 14px; padding: 0; background: none; }
.sp .s-nh { margin: 0; }
.sp .s-nh h3 { margin: 0 0 6px; font: 600 20px/1.2 var(--serif); color: #fff; }
.sp .s-nh p { margin: 0; }
/* The featured program (Fighting addiction) */
.sp .s-rs-feature {
  display: block; margin: 0 0 14px; padding: 16px; border-radius: var(--radius);
  background: var(--sp-cream); box-shadow: var(--sp-cream-edge), 0 10px 28px -20px rgba(10, 31, 77, .45);
  color: var(--ink); font-size: 14.5px; line-height: 1.5;
}
.sp .s-rs-feature h3 { margin: 0 0 2px; font: 600 22px/1.2 var(--serif); color: var(--navy); }
.sp .s-rs-kicker { color: var(--gold-d); }
.sp .s-rs-fsite { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.sp .s-rs-fdesc { margin: 0 0 4px; }
.sp .s-rs-ffacts { margin: 12px 0 0; padding: 2px 14px; border-radius: 14px; background: #fff; }
.sp .s-rs-fnote { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
/* Filters (city, search, free only) */
.sp .s-rs-filters { margin: 0 0 14px; padding: 14px; }
.sp .s-rs-search label { display: block; margin: 0 0 6px; font: 700 12px/1.3 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--blue); }
.sp .s-rs-sbox { display: flex; gap: 8px; }
.sp .s-rs-sbox input {
  flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--ink); font: 16px var(--sans); outline: none; -webkit-appearance: none; appearance: none;
}
.sp .s-rs-sbox input:focus { border-color: var(--blue); background: #fff; }
.sp .s-rs-clear { flex: none; min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--pale); color: var(--navy); font: 700 14px/1 var(--sans); cursor: pointer; }
.sp .s-rs-search + .s-rs-chips { margin-top: 12px; }
.sp .s-rs-chiplab { width: 100%; margin: 0; }
.sp .s-rs-chip { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.sp .s-rs-free { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font: 600 14px/1.35 var(--sans); color: var(--ink); cursor: pointer; }
.sp .s-rs-free input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.sp .s-rs-status { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.sp .s-rs-pick { margin: 0 0 14px; padding: 18px 16px; border: 1.5px dashed #c3cde3; border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.sp .s-rs-pick .s-rs-pick-t { margin: 0 0 4px; font: 700 16px/1.3 var(--sans); color: var(--navy-d); }
/* Listings */
.sp :is(.s-rs-card, .s-hp-item) > h4 { margin: 0 0 4px; font: 700 17px/1.25 var(--sans); color: var(--navy-d); }
.sp .s-rs-sub { margin: 0 0 8px; font: 700 13px/1.35 var(--sans); color: var(--blue); }
.sp .s-rs-desc { margin: 0; }
.sp .s-rs-desc > p { margin: 0 0 8px; }
.sp .s-rs-desc > :last-child { margin-bottom: 0; }
.sp .s-rs-desc .s-fv-btn { margin-top: 4px; }
.sp :is(.s-rs-go, .s-hp-go) { margin-top: 14px; }
/* App icons on the Apps and technology listings, next to the title */
.sp .s-rs-card.s-rs-app { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; align-content: start; }
.sp .s-rs-app > * { grid-column: 1 / -1; }
.sp .s-rs-app > .s-rs-ico { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(10, 31, 77, .1), 0 4px 10px -4px rgba(10, 31, 77, .35); }
.sp .s-rs-app > h4 { grid-column: 2; grid-row: 1; align-self: end; }
.sp .s-rs-app > .s-rs-sub { grid-column: 2; grid-row: 2; }
.sp .s-rs-star { box-shadow: inset 0 0 0 2px var(--gold), var(--sp-shadow); }

/* ---------- Find help ---------- */
.sp .s-hp-top { margin: 0 0 6px; }
.sp .s-hp-tabs .s-hp-label { margin-bottom: 8px; }
.sp .s-hp-tablist { margin-bottom: 16px; }
.sp .s-hp-filters { display: block; margin: 0 0 8px; }
.sp .s-hp-filters .s-hp-label { margin-bottom: 8px; }
.sp .s-hp-count { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.sp .s-hp-sec { margin: 20px 0 0; }
.sp .s-hp-sec > h2 { margin: 0 0 8px; }
.sp .s-hp-gap { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.sp .s-hp-group { margin: 22px 0 0; }
.sp .s-hp-what { margin: 0 0 4px; }
.sp .s-hp-chk { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: #fff4d1; color: #6b4600; font-size: 13.5px; line-height: 1.45; }
.sp .s-hp-end { margin-top: 22px; }
.sp .s-hp-back { margin-top: 14px; }

/* ---------- More ways to volunteer ---------- */
.sp .s-vm-top { display: grid; gap: 12px; margin: 0 0 10px; }
.sp .s-vm-cities b { margin-left: 2px; }
.sp .s-vm-count { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.sp .s-vm-city { margin: 24px 0 0; }
.sp .s-vm-city > h2 { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.sp .s-vm-city > h2 small { font: 700 12px/1.3 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: var(--blue); }
.sp .s-vm .s-place { justify-content: space-between; gap: 10px; }
.sp .s-vm .s-teen { flex: none; }
.sp .s-ages { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.sp .s-vm .s-partner { margin-top: 22px; }

/* ---------- Internship application: the app's form ---------- */
.sp .s-applysec .s-note { margin-bottom: 10px; }
.sp form.s-apply { display: grid; gap: 14px; margin: 14px 0 0; }
.sp form.s-apply > fieldset { min-width: 0; padding: 16px 16px 18px; }
.sp form.s-apply > fieldset > legend { float: left; width: 100%; margin: 0 0 2px; padding: 0; font: 600 20px/1.2 var(--serif); color: var(--navy); }
.sp form.s-apply > fieldset > legend + * { clear: both; }
.sp .s-apply .s-fgrid { display: block; }
.sp .s-apply .s-f { min-width: 0; margin: 14px 0 0; }
.sp .s-apply fieldset.s-f { margin: 14px 0 0; padding: 0; border: 0; }
.sp .s-apply .s-f > label, .sp .s-apply .s-gl { display: block; float: none; width: auto; margin: 0 0 6px; padding: 0; font: 600 13.5px/1.35 var(--sans); color: var(--muted); }
.sp .s-apply fieldset.s-f > .s-gl { float: left; width: 100%; }
.sp .s-apply fieldset.s-f > .s-gl + * { clear: both; }
.sp .s-apply :where(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  display: block; width: 100%; margin: 0; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: 16px/1.35 var(--sans); outline: none; -webkit-appearance: none; appearance: none;
}
.sp .s-apply select {
  padding-right: 34px; background-repeat: no-repeat; background-size: 5px 5px; background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
}
.sp .s-apply :is(input, select, textarea):focus { border-color: var(--blue); background-color: #fff; }
.sp .s-apply input[readonly] { color: var(--muted); background: var(--pale); }
.sp .s-apply textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.sp .s-apply .s-rq { color: #b42318; font-weight: 700; }
.sp .s-apply .s-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.sp .s-apply .s-err { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: #b42318; }
.sp .s-apply .s-bad :is(input, select, textarea) { border-color: #b42318; background-color: #fff8f6; }
.sp .s-apply .s-choices { display: grid; gap: 8px; }
@container (min-width: 480px){ .sp .s-apply .s-choices.s-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp .s-apply .s-choices label {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: 500 14.5px/1.4 var(--sans); cursor: pointer;
}
.sp .s-apply .s-choices input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy); -webkit-appearance: auto; appearance: auto; }
.sp .s-apply .s-choices label:has(input:checked) { border-color: var(--navy); background: var(--pale); }
.sp .s-apply .s-bad .s-choices label { border-color: #b42318; }
.sp .s-apply .s-consent { margin-top: 12px; }
.sp .s-apply .s-consent .s-err { margin: -2px 0 2px; }
.sp .s-apply .s-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sp .s-apply .s-actions { display: grid; gap: 10px; margin-top: 16px; }
.sp .s-apply .s-actions .s-btn { width: 100%; min-height: 54px; font-size: 16.5px; }
.sp .s-apply .s-fine { font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.sp .s-status { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--pale); color: var(--navy); font-size: 14px; font-weight: 600; }
.sp .s-status.s-error { background: #fdecea; color: #b42318; }
.sp .s-done { margin-top: 14px; }
.sp .s-done:focus { outline: none; }

/* ---------- Videos (open in YouTube) ---------- */
.sp .sp-video { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px; border-radius: var(--radius); background: var(--sp-navy-card); color: #fff; text-decoration: none; box-shadow: 0 14px 30px -18px rgba(6, 20, 51, .8); }
.sp .sp-play { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--gold); }
.sp .sp-play::after { content: ''; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--navy-d); }
.sp .sp-video-text { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.3; }
.sp .sp-video-text small { font-size: 13px; opacity: .8; }

/* ---------- Parts the app adds ---------- */
.sp .sp-app { font-family: var(--sans); font-size: 15px; line-height: 1.35; color: var(--ink); -webkit-user-select: none; user-select: none; }

/* Section bar that stays at the top of the screen (src/site-ui.js) */
.sp .sp-stick { position: sticky; top: 0; z-index: 6; height: 0; }
.sp .sp-stick-in { display: none; position: absolute; left: 0; right: 0; top: 0; gap: 6px; padding: 8px 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; background: rgba(248, 247, 242, .96); border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px -12px rgba(10, 31, 77, .45); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.sp .sp-stick-in::-webkit-scrollbar { display: none; }
.sp .sp-stick.show .sp-stick-in { display: flex; }
.sp .sp-stick button { flex: none; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.sp .sp-stick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* City buttons on Events → Youth and Adult volunteering */
.sp .sp-chips { margin: 0 0 14px; }
.sp .sp-chips-lab { width: 100%; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--blue); }

/* Search all resources (src/site-enhance.js) */
.sp .sp-search { margin: 0 0 16px; }
.sp .sp-search-box { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 16px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--sp-shadow); }
.sp .sp-search-box:focus-within { border-color: var(--blue); }
.sp .sp-search-ic { display: grid; place-items: center; flex: none; color: var(--navy); }
.sp .sp-search-ic svg, .sp .sp-search-x svg { width: 20px; height: 20px; }
.sp .sp-search-box input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font: 600 16px var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.sp .sp-search-box input::-webkit-search-cancel-button { display: none; }
.sp .sp-search-box input::placeholder { color: #7a86a3; font-weight: 500; }
.sp .sp-search-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--muted); background: var(--pale); }
.sp .sp-search-hint { margin: 8px 4px 0; font-size: 13px; color: var(--muted); }
.sp .s-rs.sp-searching .s-wrap > :not(.sp-search):not(.sp-hits) { display: none !important; }
.sp .s-rs.sp-searching .sp-search-hint { display: none; }
.sp .sp-hits { display: grid; gap: 16px; padding-bottom: 8px; }
.sp .sp-hits-count { font-size: 14px; font-weight: 700; color: var(--navy); }
.sp .sp-hits-none { font-size: 15px; line-height: 1.5; color: var(--ink); }
.sp .sp-hits-none a { color: var(--blue); font-weight: 700; }
.sp .sp-hit-where { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.sp .sp-hit-where svg { width: 16px; height: 16px; flex: none; }
.sp .sp-hit .sp-hit-list, .sp .sp-hit .s-hp-list { display: block; margin: 0; padding: 0; list-style: none; }
.sp .sp-hit :is(.s-rs-card, .s-rs-feature, .s-rs-alert, .s-hp-item) { margin: 0 !important; }

/* Listings on Resources and Find help (src/site-ui.js listingTools): Save, hours and address, Directions */
.sp .sp-save { float: right; position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: -6px -6px 6px 10px; padding: 0; border: 0; border-radius: 999px; background: var(--pale); color: var(--navy); cursor: pointer; }
.sp .s-rs-app > .sp-save { position: absolute; top: 10px; right: 10px; margin: 0; }
.sp .s-rs-app > :is(h4, .s-rs-sub) { padding-right: 44px; }
.sp .sp-save svg { width: 19px; height: 19px; }
.sp .sp-save[aria-pressed="true"] { background: var(--gold); color: var(--navy-d); box-shadow: 0 6px 14px -8px rgba(217, 165, 33, .9); }
.sp .sp-save[aria-pressed="true"] svg path { fill: currentColor; }
.sp :is(.s-rs-card, .s-hp-item) > :is(.s-rs-desc, .s-hp-what, .s-hp-facts, .s-rs-go, .s-hp-go) { clear: both; }
.sp .sp-quick { display: none; }
.sp .s-fv-closed .sp-quick { display: grid; gap: 6px; margin: 2px 0 8px; }
.sp .s-hp-item > .sp-quick { clear: both; }
.sp .sp-quick p { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }
.sp .sp-quick-ic { flex: none; display: grid; place-items: center; width: 18px; height: 19.6px; color: var(--blue); }
.sp .sp-quick-ic svg { width: 16px; height: 16px; }

/* Saved listings at the top of the Resources tab (src/site-enhance.js) */
.sp .sp-saved { margin: 0 0 18px; padding: 16px; border-radius: var(--radius); background: var(--sp-cream); box-shadow: var(--sp-cream-edge), 0 10px 28px -20px rgba(10, 31, 77, .45); }
.sp .sp-saved-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp .sp-saved-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 21px/1.2 var(--serif); color: var(--navy); }
.sp .sp-saved-head h2 b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--navy); color: #fff; font: 700 12.5px/1 var(--sans); }
.sp .sp-saved-ic { display: grid; place-items: center; color: var(--gold-d); }
.sp .sp-saved-ic svg { width: 22px; height: 22px; }
.sp .sp-saved-ic svg path { fill: var(--gold); }
.sp .sp-saved-tog { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 0 var(--line); }
.sp .sp-saved-note { margin: 6px 2px 12px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.sp .sp-saved-list { display: grid; gap: 12px; }
.sp .sp-saved-list[hidden] { display: none !important; }
.sp .sp-gone { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px dashed var(--line); }
.sp .sp-gone p { flex: 1; margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.sp .sp-gone a { color: var(--blue); font-weight: 700; }
.sp .sp-gone-x { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: #fdecea; color: #b42318; font-size: 14px; font-weight: 700; cursor: pointer; }

/* Your plans at the top of the Events tab (src/events-page.js) */
.sp .sp-plans { margin: 0 0 18px; padding: 16px 16px 6px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 2px var(--gold), var(--sp-shadow); }
.sp .sp-plans-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp .sp-plans-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 21px/1.2 var(--serif); color: var(--navy); }
.sp .sp-plans-head h2 .ic { width: 22px; height: 22px; color: #136c3c; }
.sp .sp-plans-n { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sp .sp-plan { padding: 14px 0 12px; }
.sp .sp-plan + .sp-plan { border-top: 1px solid var(--line); }
.sp .sp-plan .event-top { display: flex; gap: 14px; }
.sp .sp-plan .meta { margin-top: 6px; }
.sp .sp-plan .meta + .meta { margin-top: 4px; }
.sp .sp-plan .meta span { min-width: 0; overflow-wrap: anywhere; }
.sp .sp-plan .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sp .sp-plan .actions > .btn { flex: 1 1 0; min-width: fit-content; }
.sp .sp-plan .actions > .btn:first-child { flex-basis: 100%; }

/* ---------- Wider screens (tablets): the app's column ---------- */
@container (min-width: 720px){
  .view > .sp, .sheet-body > .sp { max-width: 640px; margin-left: auto; margin-right: auto; }
  .sp .s-pagehead { border-radius: 0 0 32px 32px; }
}
.sp{container-type:inline-size}
