/* ─── About page ──────────────────────────────────────────────
   Page-scoped components: prose, pillar grid, stats grid,
   and a closing CTA block. Reuses ch-section-head for headers.
   ─────────────────────────────────────────────────────────── */

/* Prose — intro / story paragraphs */
.ch-prose {
  max-width: 760px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.ch-prose p {
  margin: 0 0 18px;
}

.ch-prose p:last-child {
  margin-bottom: 0;
}

/* ── Split layout (image + text, magazine-style) ───────────
   Pairs a placeholder/image media block alongside text within
   a section. Use .ch-split--reverse to flip image to the right
   side on desktop (e.g. for alternating rhythm down the page).
   ─────────────────────────────────────────────────────────── */
.ch-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ch-split--reverse .ch-split__media {
  order: 2;
}

.ch-split__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(145deg, var(--primary-soft) 0%, var(--primary-dark) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.ch-split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent 60%);
}

.ch-split__placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.ch-split__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ch-split__text {
  display: flex;
  flex-direction: column;
}

.ch-split__tagline {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--secondary-dark);
  text-transform: uppercase;
}

.ch-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* Dark-on-light ghost button variant for the standard section */
.ch-btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.ch-btn--ghost-dark:hover,
.ch-btn--ghost-dark:focus-visible {
  background: rgba(20, 35, 63, 0.04);
  border-color: var(--ink);
}

@media (max-width: 760px) {
  .ch-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ch-split--reverse .ch-split__media {
    order: 0;
  }
}

/* ── Full-bleed image band ────────────────────────────────
   Editorial photo break between sections. Lives inside a
   full-bleed Divi section, so no viewport-width hacks needed.
   ───────────────────────────────────────────────────────── */
.ch-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  background:
    linear-gradient(145deg, var(--primary-soft) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.ch-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

.ch-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ch-banner__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 760px) {
  .ch-banner {
    height: 220px;
  }
}

/* Divi 5 native parallax sections — breathing room above/below.
   Used on /about/ and /prospects/ banner bands. Divi 5 sections
   don't expose a `spacing.margin` attribute, so this rule is the
   only path to apply margin around a parallax band. */
.et_pb_section_parallax {
  margin: 48px 0 !important;
}

@media (max-width: 760px) {
  .et_pb_section_parallax {
    margin: 32px 0 !important;
  }
}

/* ── Venue info list (Home Ice section)
   Definition-list-style key/value rows. Used inside a .ch-split__text
   block to display address / website / hours below the prose.
   ────────────────────────────────────────────────────── */
.ch-venue-info {
  display: flex;
  flex-direction: column;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.ch-venue-info__row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ch-venue-info__row:last-child {
  border-bottom: none;
}

.ch-venue-info__label {
  flex-shrink: 0;
  margin: 0;
  min-width: 110px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tertiary-dark);
}

.ch-venue-info__value {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.ch-venue-info__value a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.ch-venue-info__value a:hover {
  color: var(--tertiary-dark);
}

@media (max-width: 600px) {
  .ch-venue-info__row {
    flex-direction: column;
    gap: 4px;
  }
  .ch-venue-info__label {
    min-width: 0;
  }
}

/* ── Stats row ─────────────────────────────────────────────── */
.ch-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ch-stat {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
}

.ch-stat:last-child {
  border-right: none;
}

.ch-stat__value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--primary);
}

.ch-stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Staff grid ────────────────────────────────────────────
   Card grid for /staff/. Each card has a gradient photo placeholder
   with role initials displayed in display type (until photos are added).
   ───────────────────────────────────────────────────────── */
.ch-staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.ch-staff-card {
  flex: 1 1 280px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--secondary);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ch-staff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(20, 35, 63, 0.25);
}

/* Photo placeholder: gradient + role initials.
   When a real photo is added (background-image inline style on the
   element), the gradient sits behind it and the initials can be
   removed by an editor. */
.ch-staff-card__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(145deg, var(--primary-soft) 0%, var(--primary-dark) 100%);
  background-size: cover;
  background-position: center top;
  color: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.ch-staff-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent 60%);
}

.ch-staff-card__initials {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Real photo — overlays the gradient when a URL is supplied */
.ch-staff-card__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

.ch-staff-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
}

.ch-staff-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tertiary-dark);
}

.ch-staff-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.ch-staff-card__bio {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.ch-staff-card__email {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--tertiary-dark);
  text-decoration: none;
  word-break: break-all;
}

.ch-staff-card__email:hover,
.ch-staff-card__email:focus-visible {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .ch-staff-card {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* ── Ops list (low-maintenance role/name rows) ──────────
   Used on /staff/ for Hockey Operations where photos +
   bios would just sit out of date. Compact, role-on-left,
   name-on-right, thin dividers.
   ──────────────────────────────────────────────────────── */
.ch-ops-list {
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

.ch-ops-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ch-ops-list__row:last-child {
  border-bottom: none;
}

.ch-ops-list__role {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tertiary-dark);
  min-width: 200px;
}

.ch-ops-list__name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

/* Optional @handle next to a name (used for photo credits) */
.ch-ops-list__handle {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--tertiary-dark);
}

a.ch-ops-list__handle {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a.ch-ops-list__handle:hover,
a.ch-ops-list__handle:focus-visible {
  color: var(--ink);
}

@media (max-width: 600px) {
  .ch-ops-list__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .ch-ops-list__role {
    min-width: 0;
  }
}

/* ── Game pair (last + next side-by-side) ────────────────── */
.ch-game-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ch-game-pair__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--secondary);
}

.ch-game-pair__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tertiary-dark);
}

@media (max-width: 760px) {
  .ch-game-pair {
    grid-template-columns: 1fr;
  }
}

/* ── CTA block ────────────────────────────────────────────── */
.ch-cta-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px;
  background: var(--primary);
  color: var(--on-primary);
  border-left: 4px solid var(--secondary);
}

.ch-cta-block__text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
}

.ch-cta-block__tagline {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--secondary);
  text-transform: uppercase;
}

.ch-cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.ch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ch-btn--primary {
  background: var(--secondary);
  color: var(--on-secondary);
}

.ch-btn--primary:hover,
.ch-btn--primary:focus-visible {
  background: var(--secondary-light);
}

.ch-btn--ghost {
  background: transparent;
  color: var(--on-primary);
  border-color: rgba(255, 255, 255, 0.4);
}

.ch-btn--ghost:hover,
.ch-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--on-primary);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .ch-pillars {
    grid-template-columns: 1fr;
  }

  .ch-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ch-stat:nth-child(2) {
    border-right: none;
  }

  .ch-stat:nth-child(1),
  .ch-stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .ch-stats {
    grid-template-columns: 1fr;
  }

  .ch-stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .ch-stat:last-child {
    border-bottom: none;
  }

  .ch-cta-block {
    padding: 28px 22px;
  }

  .ch-cta-block__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ch-btn {
    justify-content: center;
  }
}
