/* Coaching page — "Filmroom Index".
 *
 * Loaded only by platform_whitelabel/coaching.page.html via its css_block, and
 * deliberately NOT registered in the ORDER list in platform_whitelabel/views.py,
 * so none of this reaches any other page.
 *
 * Everything is scoped under .coaching-page and built on the design tokens from
 * root.template.css, which are interpolated per tenant from PlatformSettings.
 * All derived colors come from color-mix() on those tokens — no new hex values —
 * so any tenant's brand, light or dark, themes the whole design.
 *
 * Accent inventory (closed list — do not add sites): rail active indicator,
 * section numerals, the offer system, owned & bundle-only tags, focus rings.
 * Hairlines always derive from text-primary, never from the accent.
 */

.coaching-page {
  --coaching-gutter: var(--spacing-md);
  --coaching-radius: var(--radius-16);
  --coaching-surface: color-mix(in srgb, var(--color-text-primary) 4%, var(--color-background-primary));
  --coaching-surface-raised: color-mix(in srgb, var(--color-text-primary) 8%, var(--color-background-primary));
  --coaching-hairline: color-mix(in srgb, var(--color-text-primary) 12%, transparent);
  --coaching-accent: var(--color-theme-primary);
  --coaching-accent-soft: color-mix(in srgb, var(--coaching-accent) 12%, transparent);
  --coaching-shadow: color-mix(in srgb, var(--color-black) 12%, transparent);
  --coaching-transition: 200ms cubic-bezier(0.2, 0.7, 0.3, 1);

  counter-reset: coaching-section;
  background-color: var(--color-background-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family-primary);
  display: block;
}

.coaching-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--coaching-gutter);
}

@media only screen and (min-width: 1200px) {
  /* Matches .wiistream-container so the page lines up with the navbar and footer. */
  .coaching-shell {
    width: calc(100% - 50px);
    padding: 0;
  }
}

/* -------------------------------------------------------- preview mode --- */
/* Shown only to superusers browsing the page while its tenant flag is off. */

.coaching-preview-banner {
  padding: var(--spacing-xs) var(--coaching-gutter);
  background: var(--coaching-accent-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--coaching-accent) 40%, transparent);
  color: var(--color-text-primary);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-600);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------------------------------------------------------------- hero --- */

.coaching-hero {
  position: relative;
  padding-top: var(--spacing-13xl);
  padding-bottom: var(--spacing-11xl);
  overflow: hidden;
  isolation: isolate;
}

/* 1a. With a hero image: cinematic grade. The image keeps a hint of its own
   color under the tenant-accent multiply, the tenant's background forms the
   legibility scrim, and an elliptical mask melts every edge of the photo into
   the page — "faded at the edges", per DubGAA. Browsers without mask support
   just show a sharp-edged photo under the same scrims. */
.coaching-hero--has-image {
  padding-top: var(--spacing-15xl);
  padding-bottom: var(--spacing-13xl);
}

.coaching-hero--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--coaching-hero-image);
  background-size: cover;
  background-position: center;
  filter: grayscale(0.7) contrast(1.06) brightness(0.96);
  -webkit-mask-image: radial-gradient(105% 92% at 50% 45%, black 35%, transparent 88%);
  mask-image: radial-gradient(105% 92% at 50% 45%, black 35%, transparent 88%);
}

.coaching-hero__tint {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--coaching-accent) 22%, transparent);
  pointer-events: none;
}

@supports (mix-blend-mode: multiply) {
  .coaching-hero__tint {
    background: color-mix(in srgb, var(--coaching-accent) 30%, transparent);
    mix-blend-mode: multiply; /* contained by the hero's isolation: isolate */
  }
}

.coaching-hero--has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--color-background-primary) 78%, transparent) 0%,
      color-mix(in srgb, var(--color-background-primary) 45%, transparent) 55%,
      transparent 100%
    ),
    linear-gradient(180deg, transparent 55%, var(--color-background-primary) 100%);
}

/* 1b. Without a hero image: a whisper of accent and one keyline. The 7% glow
   plus the 2px rule is the ceiling — stronger washes turn to mud or neon
   depending on the tenant palette. */
.coaching-hero:not(.coaching-hero--has-image)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      120% 90% at 50% -40%,
      color-mix(in srgb, var(--coaching-accent) 7%, transparent),
      transparent 70%
    ),
    var(--color-background-primary);
}

.coaching-hero:not(.coaching-hero--has-image)::after {
  content: none;
}

.coaching-hero:not(.coaching-hero--has-image) .coaching-hero__content {
  border-top: 2px solid var(--coaching-accent);
  padding-top: var(--spacing-lg);
}

.coaching-hero__content {
  max-width: 44rem;
}

.coaching-hero__title {
  margin: 0;
  font-family: var(--font-family-secondary);
  font-size: clamp(var(--font-size-38), 5.5vw, var(--heading-3xl-size));
  font-weight: var(--font-weight-700);
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--color-text-primary);
  text-wrap: balance;
  max-width: 16ch;
}

.coaching-hero__intro {
  margin: var(--spacing-lg) 0 0;
  max-width: 54ch;
  font-size: var(--font-size-18);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

/* Ruled meta row, not display numerals. */
.coaching-hero__stats {
  display: flex;
  gap: var(--spacing-4xl);
  margin: var(--spacing-3xl) 0 0;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--coaching-hairline);
}

.coaching-hero__stat {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
}

.coaching-hero__stat dt {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-700);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-text-primary);
}

.coaching-hero__stat dd {
  margin: 0;
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* ------------------------------------------------- section rail (nav) --- */

/* Near-solid rather than backdrop-blurred: blur under a sticky element
   re-samples the whole page every scrolled frame, which janks mid-tier
   devices and smears embedded-webview compositors. 96% of the tenant
   background reads the same at a fraction of the cost. */
.coaching-jumpbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  background: color-mix(in srgb, var(--color-background-primary) 96%, transparent);
  border-bottom: 1px solid var(--coaching-hairline);
}

.coaching-jumpbar__list {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--spacing-xl);
  /* The edge fades live in a bleed outside the shell, so the first and last
     labels stay aligned with the content column and fully legible. */
  margin: 0 calc(-1 * var(--spacing-lg));
  padding: 0 var(--spacing-lg);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    black var(--spacing-lg),
    black calc(100% - var(--spacing-lg)),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    black var(--spacing-lg),
    black calc(100% - var(--spacing-lg)),
    transparent
  );
}

.coaching-jumpbar__list::-webkit-scrollbar {
  display: none;
}

.coaching-jumpbar__list li {
  scroll-snap-align: start;
}

.coaching-jumpbar__link {
  display: inline-block;
  padding: var(--spacing-sm) 0;
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-600);
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.coaching-jumpbar__count {
  font-size: 0.72em;
  line-height: 0;
  margin-inline-start: 3px;
  color: var(--color-text-secondary); /* not accent — rationing rule */
  font-variant-numeric: tabular-nums;
}

.coaching-jumpbar__link:hover,
.coaching-jumpbar__link:focus-visible,
.coaching-jumpbar__link[aria-current="true"] {
  color: var(--color-text-primary);
}

.coaching-jumpbar__link[aria-current="true"] {
  box-shadow: inset 0 -2px 0 var(--coaching-accent); /* no layout shift */
}

.coaching-jumpbar__link:focus-visible {
  outline: 2px solid var(--coaching-accent);
  outline-offset: 4px;
}

/* Reading-progress line: kept in the markup for a future pass, but disabled.
   Scroll-linked compositor animation (animation-timeline: scroll(root)) inside
   a sticky element desynced frame production in embedded webviews during
   testing — a 1px decoration is not worth a rendering-pipeline risk. */
.coaching-jumpbar__progress {
  display: none;
}

/* ------------------------------------------------------------ sections --- */

.coaching-section {
  counter-increment: coaching-section;
  padding: var(--spacing-13xl) 0;
  scroll-margin-top: var(--spacing-15xl);
}

.coaching-section + .coaching-section {
  border-top: 1px solid var(--coaching-hairline);
}

.coaching-section__header {
  display: block;
  margin-bottom: var(--spacing-3xl);
}

.coaching-section__titlerow {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
}

.coaching-section__title {
  margin: 0;
  font-family: var(--font-family-secondary);
  font-size: clamp(var(--font-size-24), 2.2vw, var(--font-size-28));
  font-weight: var(--font-weight-700);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-text-primary);
}

.coaching-section__title::before {
  content: counter(coaching-section, decimal-leading-zero);
  margin-inline-end: var(--spacing-md);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-700);
  font-variant-numeric: tabular-nums;
  color: var(--coaching-accent); /* on the accent inventory */
}

/* The signature leader rule between title and count. */
.coaching-section__rule {
  flex: 1 1 auto;
  min-width: var(--spacing-3xl);
  border-top: 1px solid var(--coaching-hairline);
  align-self: center;
  transform: translateY(0.1em); /* optical midline nudge */
}

.coaching-section__count {
  font-size: var(--font-size-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.coaching-section__badge {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  align-self: center;
  border-radius: var(--radius-8);
  object-fit: contain; /* crests, never cover */
  background: var(--coaching-surface);
  border: 1px solid var(--coaching-hairline);
  padding: 2px;
  display: block;
}

.coaching-section__subtitle {
  margin: var(--spacing-xxs) 0 0;
  font-size: var(--font-size-16);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  max-width: 60ch;
}

/* ------------------------------------------------- offers (commercial) --- */

.coaching-offers__label {
  margin: 0 0 var(--spacing-xs);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coaching-accent);
  font-family: var(--font-family-secondary);
}

.coaching-offers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.coaching-offer {
  position: relative;
  overflow: hidden; /* clips the sheen */
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid color-mix(in srgb, var(--coaching-accent) 32%, transparent);
  border-radius: var(--radius-12); /* tighter than cards — different object class */
  background: color-mix(in srgb, var(--coaching-accent) 7%, var(--color-background-primary));
  box-shadow: inset 3px 0 0 var(--coaching-accent); /* left accent keyline */
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background-color var(--coaching-transition), border-color var(--coaching-transition),
    transform var(--coaching-transition);
}

.coaching-offer__count {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.coaching-offer__count-num {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-28);
  font-weight: var(--font-weight-700);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-text-primary); /* quiet voice, not accent */
}

.coaching-offer__count-label {
  font-size: var(--font-size-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.coaching-offer__name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-700);
}

/* The price is the site's one "buy" verb — a solid button pill, matching the
   priced card tag, so everything purchasable shares one visual verb. */
.coaching-offer__price {
  flex: 0 0 auto;
  padding: var(--spacing-xs) var(--spacing-lg);
  border-radius: var(--radius-24);
  background: var(--color-button-primary);
  color: var(--color-button-text-primary);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-700);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The one moment of theatre on the page: a sheen sweep, offers only. */
.coaching-offer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    color-mix(in srgb, var(--color-white) 18%, transparent) 50%,
    transparent 60%
  );
  transform: translateX(-130%);
  transition: transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.coaching-offer:hover::after,
.coaching-offer:focus-visible::after {
  transform: translateX(130%);
}

.coaching-offer:hover,
.coaching-offer:focus-visible {
  border-color: color-mix(in srgb, var(--coaching-accent) 60%, transparent);
  background: color-mix(in srgb, var(--coaching-accent) 11%, var(--color-background-primary));
  transform: translateY(-1px);
}

.coaching-offer:focus-visible {
  outline: 2px solid var(--coaching-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- grid --- */

.coaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

/* --------------------------------------------------------------- card --- */

.coaching-card {
  min-width: 0;
  container-type: inline-size;
}

.coaching-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--coaching-surface);
  border: 1px solid var(--coaching-hairline);
  border-radius: var(--coaching-radius);
  overflow: hidden;
  transition: transform var(--coaching-transition), border-color var(--coaching-transition),
    box-shadow var(--coaching-transition);
}

/* Media plate: blurred cover backdrop + contained foreground. Club crests and
   logos float on a tonal plate instead of being stretched; real 16:9 stills
   read as matted photographs. Worst case degrades to a clean brand plate. */
.coaching-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--coaching-accent) 10%, var(--coaching-surface-raised)),
    var(--coaching-surface-raised) 70%
  );
}

.coaching-card__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.12);
  filter: blur(28px) saturate(1.05);
  opacity: 0.5; /* hard cap — never raise it */
}

.coaching-card__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: color-mix(in srgb, var(--color-background-primary) 45%, transparent);
}

.coaching-card__image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  /* Full-bleed: coaching cards carry real 16:9 video frames, so cover fills
     the plate edge to edge. The blurred backdrop underneath still rescues any
     non-16:9 image a tenant uploads by hand. */
  object-fit: cover;
  display: block;
  transition: filter var(--coaching-transition), opacity var(--coaching-transition);
}

.coaching-card__duration {
  position: absolute;
  z-index: 3;
  inset-inline-end: var(--spacing-xs);
  inset-block-end: var(--spacing-xs);
  padding: 2px var(--spacing-xs);
  border-radius: var(--radius-4);
  background: color-mix(in srgb, var(--color-black) 72%, transparent);
  color: var(--color-white);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-600);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

/* Flat lock badge on locked media — the thumbnail scan path is where purchase
   intent forms. Flat on purpose: no blur, no border. The padlock is drawn in
   CSS (shackle + body): the repo's lock-icon.svg has a filled background
   circle, which masks to a blob rather than a glyph. */
.coaching-card__badge--lock {
  position: absolute;
  z-index: 3;
  inset-block-start: var(--spacing-xs);
  inset-inline-start: var(--spacing-xs);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--spacing-2xl);
  height: var(--spacing-2xl);
  border-radius: var(--radius-4);
  background: color-mix(in srgb, var(--color-black) 65%, transparent);
}

.coaching-card__badge--lock::before {
  /* shackle */
  content: "";
  width: 8px;
  height: 7px;
  border: 2px solid var(--color-white);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.coaching-card__badge--lock::after {
  /* body */
  content: "";
  width: 12px;
  height: 9px;
  border-radius: 2px;
  background: var(--color-white);
  margin-top: -1px;
}

/* Centered play on owned cards, revealed on hover/focus. */
.coaching-card__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: var(--spacing-5xl);
  height: var(--spacing-5xl);
  border-radius: 50%;
  background: var(--color-button-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 200ms cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.coaching-card__play::before {
  /* CSS triangle: the repo's play SVG is stroke-only and masks to an outline. */
  content: "";
  width: 0;
  height: 0;
  margin-inline-start: 3px;
  border-block: 9px solid transparent;
  border-inline-start: 14px solid var(--color-button-text-primary);
}

.coaching-card__inner[href]:hover .coaching-card__play,
.coaching-card__inner[href]:focus-visible .coaching-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------------------------------------------------------- card body --- */

.coaching-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--spacing-xxs);
  padding: var(--spacing-md);
}

.coaching-card__title {
  margin: 0;
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-600);
  line-height: 1.35;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3; /* the coach rides on the title line now */
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* One-line titles keep row rhythm with two-line neighbours. */
  min-height: calc(2 * 1.35 * var(--font-size-16));
}

/* The coach sits inline after the title, dash-separated, quieter than the
   title but on the same line — "Defensive Play — Stephen Lavin". */
.coaching-card__title-coach {
  font-weight: var(--font-weight-400);
  color: var(--color-text-secondary);
  /* No nowrap: inside the clamped title box it would clip long coach names
     mid-glyph on narrow cards instead of wrapping. */
}

.coaching-card__footer {
  margin-top: auto;
  padding-top: var(--spacing-sm);
}

/* ------------------------------------------------- the 4 access states --- */

.coaching-card__tag {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xxs) var(--spacing-sm);
  border: 1px solid transparent;
  border-radius: var(--radius-24);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-700);
  line-height: 1.6;
}

/* Owned: reads "ready", not a price. CSS play triangle, no icon file. */
.coaching-card__tag--owned {
  background: var(--coaching-accent-soft);
  border-color: color-mix(in srgb, var(--coaching-accent) 35%, transparent);
  color: var(--coaching-accent);
}

.coaching-card__tag--owned::before {
  content: "";
  border-block: 4px solid transparent;
  border-inline-start: 7px solid currentColor;
  margin-inline-end: var(--spacing-xxs);
}

/* Priced: the only filled button in the grid; matches the offer pill. */
.coaching-card__tag--price {
  background: var(--color-button-primary);
  color: var(--color-button-text-primary);
  font-variant-numeric: tabular-nums;
}

/* Bundle-only: information, not a price. Bundle names run long — ellipsis. */
.coaching-card__tag--bundle {
  background: transparent;
  border-color: color-mix(in srgb, var(--coaching-accent) 40%, transparent);
  color: var(--coaching-accent);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* Coming soon: borderless plain text — visibly inert, never button-shaped. */
.coaching-card__tag--soon {
  background: transparent;
  border: 0;
  padding-inline: 0;
  border-radius: 0;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-600);
}

.coaching-card--unavailable .coaching-card__inner {
  cursor: default;
}

/* Desaturation says "not yet"; the backdrop keeps its color so the page never
   reads broken. */
.coaching-card--unavailable .coaching-card__image {
  opacity: 0.8;
  filter: saturate(0.5);
}

/* ------------------------------------- hover / press / focus (clickable) --- */

.coaching-card__inner[href]:hover,
.coaching-card__inner[href]:focus-visible {
  transform: translateY(-2px); /* refined, not bouncy */
  border-color: color-mix(in srgb, var(--coaching-accent) 40%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-black) 10%, transparent),
    0 8px 24px var(--coaching-shadow);
}

/* No image zoom — brightness lift only. */
.coaching-card__inner[href]:hover .coaching-card__image,
.coaching-card__inner[href]:focus-visible .coaching-card__image {
  filter: brightness(1.05);
}

.coaching-card__inner[href]:active {
  transform: translateY(0);
  transition-duration: 80ms;
}

.coaching-card__inner:focus-visible {
  outline: 2px solid var(--coaching-accent);
  outline-offset: 3px;
}

/* -------------------------------------------------------- empty states --- */

.coaching-empty {
  grid-column: 1 / -1;
  padding: var(--spacing-7xl) var(--spacing-lg);
  border: 1px solid var(--coaching-hairline);
  border-radius: var(--coaching-radius);
  text-align: center;
}

.coaching-empty--page {
  margin: var(--spacing-15xl) 0;
}

.coaching-empty__title {
  margin: 0 0 var(--spacing-xs);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-600);
  color: var(--color-text-primary);
}

.coaching-empty__text {
  margin: 0;
  font-size: var(--font-size-16);
  color: var(--color-text-secondary);
}

/* ---------------------------------------------------- entrance reveal --- */
/* Gated behind the JS-added .js class so no-JS never hides content. */

@media (prefers-reduced-motion: no-preference) {
  .coaching-page.js .coaching-card {
    transition: opacity 240ms ease, transform 240ms ease;
    transition-delay: calc(var(--i, 0) * 30ms);
  }

  .coaching-page.js .coaching-card:not(.is-inview) {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* -------------------------------------------------------- responsive --- */

@media only screen and (max-width: 991px) {
  .coaching-hero {
    padding-top: var(--spacing-8xl);
    padding-bottom: var(--spacing-7xl);
  }

  /* Same source order beats the desktop has-image rule here, so the photo
     hero needs its own mobile padding or the edge fade gets no room. */
  .coaching-hero--has-image {
    padding-top: var(--spacing-11xl);
    padding-bottom: var(--spacing-9xl);
  }

  .coaching-hero__stats {
    gap: var(--spacing-4xl);
  }

  .coaching-section {
    padding: var(--spacing-8xl) 0;
  }
}

@media only screen and (max-width: 767px) {
  .coaching-grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: var(--spacing-sm);
  }

  .coaching-card__body {
    padding: var(--spacing-sm);
  }
}

/* Composed narrow cards without viewport math. */
@container (max-width: 200px) {
  .coaching-card__body {
    padding: var(--spacing-sm);
  }

  .coaching-card__title-coach {
    display: none;
  }
}

/* ---------------------------------------------------- reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  .coaching-page *,
  .coaching-page *::before,
  .coaching-page *::after {
    animation: none !important;
    transition-duration: 0.01ms !important; /* instant, nothing feels dead */
  }

  .coaching-card__inner[href]:hover,
  .coaching-card__inner[href]:focus-visible,
  .coaching-offer:hover,
  .coaching-offer:focus-visible {
    transform: none;
  }

  .coaching-offer::after {
    content: none; /* no sheen */
  }
}
