/* Club Sessions page only: session day cards, family/venue info, photo
   filmstrip and footnote. Loads after base.css. */

/* ================= PAGE HEADER PHOTO ================= */
/* Photo on base.css's .page-header: right-aligned, full header height, no tint,
   with a slanted left edge. */
.page-header-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 32rem; /* wide enough to show the whole bat with a margin inside the slant */
  height: 100%;
  object-fit: cover;
  object-position: 100% 40%;
  filter: saturate(1.15) contrast(1.05);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Venue address link in the page header, same pattern as the Contact section's */
.page-header .page-header-body { margin-bottom: 1rem; }
.sessions-address {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.sessions-address svg { width: 16px; height: 16px; color: var(--white); flex-shrink: 0; }
.sessions-address:hover,
.sessions-address:focus-visible { border-bottom-color: var(--white); }

/* ================= SESSIONS ================= */
.sessions { padding: 3.5rem 0; background: rgba(29, 78, 216, 0.045); }

/* Intro row: welcome copy beside the venue facilities card */
.sessions-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.25rem;
}
.sessions-lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1rem 0;
}
.sessions-intro-body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(11, 18, 32, 0.75);
  margin: 0 0 0.9rem 0;
}
.sessions-intro-body:last-child { margin-bottom: 0; }
/* Club name styled as in the About section on the homepage (home.css) */
.sessions-intro-body .about-highlight {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--royal-blue);
}
.sessions-intro-body a {
  color: var(--royal-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}
.sessions-intro-body a:hover,
.sessions-intro-body a:focus-visible { color: var(--royal-blue-dark); text-decoration-thickness: 2px; }
.sessions-venue {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.08);
}
/* Short accent bar above the label (replaces a thick side border) */
.sessions-venue::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--royal-blue);
  margin-bottom: 0.9rem;
}
.sessions-venue .sessions-info-label { margin: 0 0 0.5rem 0; }
.sessions-venue .sessions-info-text { font-size: 1rem; }

/* One "broadcast panel" per day: a dark scoreboard-style block holding the
   day, time and details, butted against a carousel by a shared diagonal.
   Rows alternate which side the photos sit on. Deliberately unlike the Home
   About blocks (plain text beside a notched 16:9 carousel). In the DOM the
   text comes first, so stacked on mobile the carousel follows the details. */
.sessions-features { margin: 0 0 3.25rem; display: flex; flex-direction: column; gap: 2.5rem; }
.session-feature {
  --slant: 3.5rem;
  --accent: var(--royal-blue);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
  filter: drop-shadow(0 10px 22px rgba(11, 18, 32, 0.12));
}
.session-feature--lunch { --accent: var(--red); }
.session-feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.session-feature:nth-child(even) .session-body { order: 2; }
.session-feature:nth-child(even) .session-media { order: 1; }

.session-body {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: var(--white);
  color: var(--ink);
  padding: 2.5rem calc(var(--slant) + 1.25rem) 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
/* Thin accent line running down the diagonal edge */
.session-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  clip-path: polygon(calc(100% - 4px) 0, 100% 0, calc(100% - var(--slant)) 100%, calc(100% - var(--slant) - 4px) 100%);
}
.session-feature:nth-child(even) .session-body::after {
  clip-path: polygon(var(--slant) 0, calc(var(--slant) + 4px) 0, 4px 100%, 0 100%);
}
.session-feature:nth-child(even) .session-body {
  padding: 2.5rem 2.25rem 2.5rem calc(var(--slant) + 1.25rem);
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}
/* Oversized faint day code watermark */
.session-ghost {
  position: absolute;
  right: calc(var(--slant) + 0.5rem);
  bottom: -0.2em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 7.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(29, 78, 216, 0.07);
  pointer-events: none;
  user-select: none;
}
.session-feature:nth-child(even) .session-ghost { right: 0.5rem; }
.session-feature--lunch .session-ghost { color: rgba(220, 38, 38, 0.07); }
.session-note {
  position: relative;
  margin: 0 0 0.4rem 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.6);
}
.session-day {
  position: relative;
  margin: 0 0 0.75rem 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 0.95;
  color: var(--ink);
}
.session-time {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  margin: 0 0 1.25rem 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--royal-blue);
  font-variant-numeric: tabular-nums;
}
.session-feature--lunch .session-time { background: rgba(220, 38, 38, 0.1); color: var(--red); }
.session-time svg { width: 18px; height: 18px; flex-shrink: 0; }
.session-copy {
  position: relative;
  margin: 0 0 0.7rem 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(11, 18, 32, 0.75);
}
.session-copy:last-child { margin-bottom: 0; }

.session-media { margin-left: calc(0.4rem - var(--slant)); }
.session-feature:nth-child(even) .session-media { margin-left: 0; margin-right: calc(0.4rem - var(--slant)); }
/* This row's media runs under the text card, so keep the dots clear of it or the last ones are hidden */
.session-feature:nth-child(even) .group-dots { padding-right: calc(var(--slant) + 0.25rem); }
.session-media .group-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}
.session-feature:nth-child(even) .group-carousel {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
/* Soft crossfade, slow zoom-out and dash dots: same mechanics as the Home
   carousels (js/main.js drives any .group-carousel), restyled for this page. */
.group-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0s 1.6s; }
.group-slide.is-active { opacity: 1; z-index: 1; transition: opacity 1.6s ease-in-out; }
.group-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transform-origin: 50% 40%; }
.group-slide.is-active .group-slide-img,
.group-slide.is-leaving .group-slide-img {
  animation: groupZoom calc(var(--gc-interval, 7800ms) + 1.6s) ease-out forwards;
}
@keyframes groupZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.group-dots { display: flex; justify-content: flex-end; gap: 0.25rem; margin-top: 0.4rem; padding-right: 0.25rem; }
.group-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.group-dot::before, .group-dot::after {
  content: "";
  grid-area: 1 / 1;
  width: 28px;
  height: 6px;
  background: rgba(11, 18, 32, 0.22);
  transform: skewX(-30deg);
  transition: background 0.3s, width 0.3s, transform 0.15s var(--ease-sharp);
}
.group-dot:hover::before { background: rgba(29, 78, 216, 0.55); }
.group-dot::after { opacity: 0; transition: none; }
.session-feature .group-dot::after { background: var(--accent); }
.group-dot.is-active::before, .group-dot.is-active::after { width: 40px; }
.group-dot.is-active::before { background: rgba(11, 18, 32, 0.2); }
.group-dot.is-active::after { opacity: 1; }
.group-dot.is-counting::after { transform-origin: left center; animation: groupCountdown var(--gc-interval, 7800ms) linear forwards; }
@keyframes groupCountdown { from { transform: skewX(-30deg) scaleX(0); } to { transform: skewX(-30deg) scaleX(1); } }
.group-dot:focus-visible { outline: 2px solid var(--royal-blue); outline-offset: -4px; }

.sessions-info-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.66);
  margin-bottom: 0.5rem;
}
.sessions-info-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(11, 18, 32, 0.75);
  margin: 0;
}
.sessions-info-text a {
  color: var(--royal-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}
.sessions-info-text a:hover,
.sessions-info-text a:focus-visible { color: var(--royal-blue-dark); text-decoration-thickness: 2px; }

.sessions-footnote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(11, 18, 32, 0.75);
  max-width: 680px;
  margin: 0 0 1.75rem 0;
}

/* Too narrow to sit beside the text: faint full-width backdrop */
@media (max-width: 1000px) {
  .page-header-image { width: 100%; opacity: 0.22 !important; clip-path: none; }
}

@media (max-width: 860px) {
  .sessions-intro { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
  /* Stacked: details first, then that day's carousel */
  .session-feature, .session-feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .session-feature .session-body,
  .session-feature:nth-child(even) .session-body {
    order: 0;
    padding: 1.75rem 1.5rem 2.25rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 1.25rem));
  }
  .session-feature .session-media,
  .session-feature:nth-child(even) .session-media { order: 1; margin: 0; }
  .session-feature:nth-child(even) .group-dots { padding-right: 0.25rem; }
  .session-feature .group-carousel,
  .session-feature:nth-child(even) .group-carousel { clip-path: polygon(0 1.25rem, 100% 0, 100% 100%, 0 100%); margin-top: -1.25rem; }
  .session-ghost, .session-feature:nth-child(even) .session-ghost { right: 0.75rem; font-size: 6rem; }
  .session-body::after, .session-feature:nth-child(even) .session-body::after { clip-path: polygon(0 0, 100% 0, 100% 4px, 0 4px); }
}

@media (max-width: 520px) {
  .session-feature .group-carousel { aspect-ratio: 4 / 3; }
}
