/* ==============================================
   THE BAND — design round 12 (November 8, 2026)
   Section 12 of the design canvas, built from the handoff README. Loads after
   hub-top.css on hubs whose registry entry says 'band' => true (anxiety first).
   Two bands replace the hero and the rows: a dark title band, then the people
   band over the hub's video behind a warm scrim. Markup: sp_hub_band_title()
   and sp_hub_band_render() in inc/hub-top-shortcodes.php.
   People-band selectors carry .sp-page because the band renders inside <div class="sp-page">,
   whose stylesheet recolors every p, a and img (service-page.css); the title band sits outside it.
   Links (tiles, gateway, calendar) carry #hub-band instead: service-page.css styles every <a>
   under .sp-page with a chain of :not() classes plus :hover, and only an id outranks that.
   ============================================== */

/* ─── TITLE BAND ─── */
.sp-band-title {
  position: relative;
  background: #2c2c2c;
  padding: 34px 30px 36px;
}
.sp-band-title::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #fb9000 0%, #e8724a 20%, #d94f6e 40%, #9b59b6 60%, #6cc8d7 80%, #4aae8c 100%);
}
/* 1040, not 1100: the page's text column is the 1100 container less its 30px padding, and the
   title and the band started 30px to its left (Brad, November 9: the seam under the band). */
.sp-band-title__inner {
  max-width: 1040px;
  margin: 0 auto;
}
.sp-band-title__eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fb9000;
}
.sp-band-title__h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 8px 0 6px;
}
.sp-band-title__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 720px;
  margin: 0;
}

/* ─── PEOPLE BAND ─── */
.sp-page .sp-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 100%);
  border-bottom: 1px solid #ece7e0;
  padding: 26px 30px 30px;
}
.sp-page .sp-band--poster {
  background-image: var(--sp-band-poster);
  background-size: cover;
  background-position: 50% 22%;
}
.sp-page .sp-band__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  z-index: 0;
}
/* The video should read as light and motion, not as a picture. Tune the alphas on
   staging; if it fights the tiles at .90, go to .94/.92 (handoff). */
.sp-page .sp-band__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.94) 0%, rgba(245, 240, 235, 0.90) 100%);
}
.sp-page .sp-band__inner {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}
@media (prefers-reduced-motion: reduce) {
  .sp-page .sp-band__video { display: none; } /* the poster frame stays, as the section's background */
}

/* ─── THE CARD ─── */
.sp-page .sp-band-card {
  background: linear-gradient(135deg, #2c2c2c 0%, #3a3a3a 100%);
  border-radius: 10px;
  overflow: hidden;
}
.sp-page .sp-band-card__bar {
  height: 3px;
  background: linear-gradient(90deg, #fb9000 0%, #e8724a 20%, #d94f6e 40%, #9b59b6 60%, #6cc8d7 80%, #4aae8c 100%);
}
.sp-page .sp-band-card__body {
  padding: 24px 22px 22px;
}
.sp-page .sp-band-card__heading {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 12px;
}
.sp-page .sp-band-card__process {
  font-family: var(--font-body);
  max-width: none;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 20px;
}
.sp-page .sp-band-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: #fb9000;
  color: #fff;
  border-radius: 6px;
  padding: 15px 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.sp-page .sp-band-card__btn:hover { background: #db7a05; color: #fff; }
.sp-page .sp-band-card__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sp-page .sp-band-card__btn-arrow { transition: transform 0.2s; }
.sp-page .sp-band-card__btn:hover .sp-band-card__btn-arrow { transform: translateX(2px); }
.sp-page .sp-band-card__note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5); /* ~5.3:1 on this surface; keep the surface that dark */
  margin-top: 10px;
}

/* ─── THE PEOPLE COLUMN ─── */
.sp-page .sp-band__people { min-width: 0; }
.sp-page .sp-band__heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: #7f6045;
}
.sp-page .sp-band__sentence {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: #4f4a44;
  margin: 4px 0 12px;
  text-wrap: pretty;
  transition: color 0.22s ease-out; /* the chips change this line; the tiles hold still, so the line shows it */
}
.sp-page .sp-band__sentence.is-updated { color: #7f6045; }
.sp-page .sp-band__sentence .sp-band__em { font-weight: 600; color: #2a2520; } /* the availability facts, bold in every state (Brad, November 9) */
@media (prefers-reduced-motion: reduce) {
  .sp-page .sp-band__sentence { transition: none; }
}
.sp-page .sp-band__tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.sp-page .sp-band--few .sp-band__tiles { grid-template-columns: repeat(2, 220px); }
#hub-band .sp-band-tile {
  display: block;
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
#hub-band .sp-band-tile:hover { border-color: #c5bfb8; }
#hub-band .sp-band-tile:focus-visible { outline: 2px solid #7f6045; outline-offset: 2px; }
#hub-band .sp-band-tile[hidden] { display: none; }
#hub-band .sp-band-tile--gateway { display: none; } /* the phone strip's last tile only */
/* Sort and soften (Brad, November 9): with a part of the day chosen, the people who could begin
   then slide to the front and everyone else recedes a step. Softened, not switched off: the
   name keeps its contrast and the tile stays a link. */
#hub-band .sp-band-tile .sp-band-tile__photo { transition: opacity 0.25s ease; }
#hub-band .sp-band-tile.is-soft .sp-band-tile__photo { opacity: 0.45; }
#hub-band .sp-band-tile.is-soft { border-color: #efe9e2; }
#hub-band .sp-band-tile.is-soft .sp-band-tile__name { color: #5a544d; }
@media (prefers-reduced-motion: reduce) {
  #hub-band .sp-band-tile .sp-band-tile__photo { transition: none; }
}
.sp-page .sp-band-tile__photo {
  position: relative;
  display: block;
  /* 12:11, not 4:3 (Brad, November 10: faces 15% larger). The headshots are 1200 x 959, so a
     4:3 box sized each one by its width and the faces came out small; a box this much taller
     sizes the photo by its height instead. Face and shoulders grow together, about 15%, and
     only white backdrop is trimmed at the sides. */
  aspect-ratio: 12 / 11;
  overflow: hidden;
  background: #fff; /* the headshots' own backdrop (pure white in every file): the 4% shift below uncovers
                       this strip, and the directory's warm gradient here read as a darker line along the
                       top of every photo (Brad, November 9) */
}
#hub-band .sp-band--few .sp-band-tile__photo { aspect-ratio: 1 / 1; }
/* The photo: the directory's warm base and multiply scrim, but NOT its per-photo zoom and
   shift. Those were solved for a portrait box, several headshots are cropped at the hairline
   in the file itself, and the zooms only made the six tiles disagree with each other (seen on
   staging, November 8).
   So: cover, anchored at the top, every photo shifted down the same 4% for a uniform margin,
   over a white box so the margin is the photo's own backdrop continued. */
.sp-page .sp-band-tile__img {
  position: absolute; /* fills the aspect-ratio box before it loads, so a lazy image has a box to intersect */
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 0%;
  transform: translateY(4%);
  filter: saturate(0.92) brightness(1.02);
}
.sp-page .sp-band-tile__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(180, 130, 70, 0.08), rgba(180, 130, 70, 0.08)),
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.08) 100%);
  mix-blend-mode: multiply;
}
.sp-page .sp-band-tile__photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e0d8;
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 600;
  color: #7f6045;
}
.sp-page .sp-band-tile__text {
  display: block;
  padding: 9px 10px 10px;
}
.sp-page .sp-band-tile__name {
  display: block;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
  text-wrap: balance;
}
.sp-page .sp-band-tile__cred {
  display: block;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 400; /* the theme's <a> rule would hand it 500 */
  color: #8e979b;
  margin-top: 2px;
}
#hub-band .sp-band__gateway {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: #7f6045;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(127, 96, 69, 0.35);
}
#hub-band .sp-band__gateway:hover { color: #5e4530; text-decoration-color: currentColor; }
#hub-band .sp-band__gateway[hidden] { display: none; } /* a roster of six or fewer has nothing more to show */
#hub-band .sp-band__gateway:focus-visible { outline: 2px solid #7f6045; outline-offset: 2px; border-radius: 2px; }

/* ─── TIMES THAT COULD WORK ─── */
.sp-page .sp-band__times {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ece7e0;
}
.sp-page .sp-band__times-lead {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #4f4a44;
  white-space: nowrap;
}
.sp-page .sp-band__times-lead-phone { display: none; }
.sp-page .sp-band__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.sp-page .sp-band-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #c5bfb8;
  background: #fff;
  color: #4f4a44;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.sp-page .sp-band-chip:hover { border-color: #7f6045; }
.sp-page .sp-band-chip:focus-visible { outline: 2px solid #7f6045; outline-offset: 2px; }
.sp-page .sp-band-chip[aria-pressed="true"] { border-color: #fb9000; background: #fb9000; color: #fff; }
.sp-page .sp-band-chip__check { display: none; font-size: 10px; }
.sp-page .sp-band-chip[aria-pressed="true"] .sp-band-chip__check { display: inline; }
.sp-page .sp-band__any {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: #8e979b;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sp-page .sp-band__any { white-space: nowrap; }
.sp-page .sp-band__any:hover { color: #7f6045; }
.sp-page .sp-band__any[hidden] { display: none; }
#hub-band .sp-band__calendar {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #7f6045;
  text-decoration: none;
  white-space: nowrap;
}
#hub-band .sp-band__calendar svg { width: 16px; height: 16px; flex-shrink: 0; }
#hub-band .sp-band__calendar:hover { color: #5e4530; text-decoration: underline; text-underline-offset: 3px; }
#hub-band .sp-band__calendar:focus-visible { outline: 2px solid #7f6045; outline-offset: 2px; border-radius: 2px; }

/* ─── TABLET (768–1023): one column, card first, tiles three across ─── */
@media (max-width: 1023px) {
  .sp-page .sp-band__inner { grid-template-columns: 1fr; gap: 22px; }
  .sp-page .sp-band__card-col { max-width: 520px; }
  .sp-page .sp-band__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-page .sp-band-tile__photo { aspect-ratio: 4 / 3; } /* three wide tiles a row: the faces are large already */
  .sp-page .sp-band__times { flex-wrap: wrap; }
  #hub-band .sp-band__calendar { margin-left: 0; width: 100%; }
}

/* ─── PHONE (<768): flat paper, the card, then a swipe strip of tiles ─── */
@media (max-width: 767px) {
  .sp-band-title { padding: 20px; }
  .sp-band-title__h1 { font-size: 24px; margin: 6px 0 0; }
  .sp-band-title__sub { display: none; }
  .sp-page .sp-band {
    padding: 14px 0 20px;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 100%);
    background-image: none;
  }
  .sp-page .sp-band--poster { background-image: none; }
  .sp-page .sp-band__video, .sp-band__scrim { display: none; }
  .sp-page .sp-band__inner { display: block; }
  /* Gutters are 20px, the title's and the page text's (they were 16, four pixels to the left). */
  .sp-page .sp-band__card-col { margin: 0 20px; max-width: none; }
  .sp-page .sp-band-card__heading { font-size: 20px; }
  .sp-page .sp-band-card__process { font-size: 13.5px; }
  .sp-page .sp-band-card__btn { padding: 15px 18px; }
  .sp-page .sp-band-card__note { font-size: 12px; }
  .sp-page .sp-band__people { padding: 20px 0 0; }
  .sp-page .sp-band__heading { font-size: 21px; padding: 0 20px; }
  .sp-page .sp-band__sentence { font-size: 14.5px; padding: 0 20px; margin: 4px 0 10px; }
  .sp-page .sp-band__tiles {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 20px 6px;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sp-page .sp-band__tiles::-webkit-scrollbar { display: none; }
  #hub-band .sp-band-tile { flex: 0 0 150px; scroll-snap-align: start; }
  /* Opened from the dashed tile: the strip becomes a two-column grid of everyone, and the
     dashed tile becomes a full-width "Show fewer" bar at the end. */
  .sp-page .sp-band__tiles.is-expanded {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
  #hub-band .sp-band__tiles.is-expanded .sp-band-tile { flex: none; }
  #hub-band .sp-band__tiles.is-expanded .sp-band-tile--gateway { grid-column: 1 / -1; flex: none; justify-content: center; text-align: center; min-height: 44px; }
  .sp-page .sp-band-tile__photo { aspect-ratio: 12 / 11; height: auto; } /* 150 x 137.5 in the strip (was 120 tall): the same 15% */
  #hub-band .sp-band-tile--gateway {
    display: flex;
    align-items: center;
    flex: 0 0 130px;
    background: transparent;
    border: 1px dashed #c5bfb8;
    padding: 12px;
  }
  .sp-page .sp-band-tile__gateway-text {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #7f6045;
  }
  #hub-band .sp-band__gateway { display: none; } /* the dashed tile carries it on a phone */
  .sp-page .sp-band__times {
    display: block;
    margin: 14px 20px 0;
    padding-top: 12px;
  }
  .sp-page .sp-band__times-lead { display: block; white-space: normal; margin-bottom: 8px; }
  .sp-page .sp-band__times-lead-desk { display: none; }
  .sp-page .sp-band__times-lead-phone { display: inline; }
  .sp-page .sp-band__chips { flex-wrap: wrap; }
  .sp-page .sp-band-chip { min-height: 36px; }
  #hub-band .sp-band__calendar {
    margin: 6px 0 0;
    min-height: 44px;
    width: 100%;
  }
}

/* ── The opening line under the band (Brad, November 9) ─────────────────────────
   The intro's first sentence, promoted by sp_hub_band_standfirst(): the bridge from the band
   to the text. The display face at a size between the band's heading and the page's H2s, in
   ink, so it reads as the start of the story and not as another section title. */
.sp-page .sp-zone--intro .sp-standfirst {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: #2a2520;
  margin: 2px 0 18px;
  max-width: 24em;
}
@media (max-width: 767px) {
  .sp-page .sp-zone--intro .sp-standfirst { font-size: 23px; margin-bottom: 14px; }
}
