/* =========================================================================
   SHARKS — OUR PROGRAMS
   "Find your level" — full-width, connector-behind-cards variant.
   v1.2.0
   - Container is full-width (no horizontal padding on desktop)
   - Heading is font-weight 900
   - CTA sits below the body
   - Inner accent bar removed; numbered markers removed
   - Dashed connector runs vertically behind the cards (visible in the gaps)
   - Add-on variant: powder-blue tint, no dashed border
   - Optional pills row below body (Recreation divisions, Travel growth track)
   All selectors scoped under .sharks-op to avoid theme collisions.
   ========================================================================= */

.sharks-op.programs {
  background: var(--surface-white);
  padding: 0px;
  box-sizing: border-box;
  overflow-x: hidden;
}
.sharks-op.programs *,
.sharks-op.programs *::before,
.sharks-op.programs *::after {
  box-sizing: inherit;
}

/* Full-width container (max-width capped, but no horizontal padding). */
.sharks-op > .container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ----- Section head ----- */
.sharks-op .programs-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.sharks-op .programs-head .eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sharks-purple);
  margin: 0 0 14px;
}
.sharks-op .programs-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-ink);
  margin: 0 0 14px;
}
.sharks-op .programs-lede {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-slate);
  margin: 0;
}

/* =========================================================================
   LADDER — stack of cards with a continuous dashed connector behind them
   ========================================================================= */

.sharks-op .ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* The connector: a vertical dashed line behind the cards, drawn at z-index 0.
   It runs from inside the first card (top: 16px) to inside the last card
   (bottom: 16px), so the line is hidden by the rounded corners at the top
   of card 1 and bottom of the last card and only peeks through in the
   20px gaps between cards — giving the cards a "stitched together" feel. */
.sharks-op.has-connector .ladder::before {
  content: '';
  position: absolute;
  inset-inline-start: 28px;
  top: 16px;
  bottom: 16px;
  border-inline-start: 1.5px dashed var(--sharks-powder);
  z-index: 0;
  pointer-events: none;
}

/* =========================================================================
   RUNG (card)
   ========================================================================= */

.sharks-op .rung {
  position: relative;
  z-index: 1; /* sit on top of the connector */
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--surface-white);
  border: 1px solid var(--surface-stroke);
  border-radius: 16px;
  padding: 44px 48px;
  transition: border-color 180ms ease;
}
.sharks-op .rung:hover { border-color: var(--sharks-powder-mid); }

/* When a card has a visual (image or placeholder), use a 2-col layout.
   Image column is wider so the 4:3 photo lands at a comfortable size. */
.sharks-op .rung.has-visual {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
}

/* =========================================================================
   PHOTO COLUMN (image or striped placeholder)
   ========================================================================= */

.sharks-op .rung-photo {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.sharks-op .rung-photo-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.sharks-op .rung-photo--placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--sharks-powder-soft);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(61, 36, 128, 0.10) 0,
    rgba(61, 36, 128, 0.10) 1px,
    transparent 1px,
    transparent 9px
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px 18px;
}
.sharks-op .rung-photo--placeholder-label {
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(61, 36, 128, 0.45);
  text-align: end;
  line-height: 1.3;
}

/* =========================================================================
   CARD CONTENT
   ========================================================================= */

/* Eyebrow row: LEVEL · age pill · (start-here pill) */
.sharks-op .rung-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sharks-op .rung-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sharks-purple);
  margin: 0;
}
[dir="rtl"] .sharks-op .rung-eyebrow {
  text-transform: none;
  letter-spacing: 0.06em;
}

/* Pills (shared with eyebrow row + extras row + photo placeholder caption) */
.sharks-op .pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sharks-purple);
  background: transparent;
  border: 1.5px solid var(--sharks-powder-mid);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.sharks-op .pill.pill-solid {
  background: var(--sharks-powder-soft);
  color: var(--sharks-purple-dark);
  border-color: transparent;
}
[dir="rtl"] .sharks-op .pill {
  letter-spacing: 0.06em;
  text-transform: none;
}

/* Title — sits alone now (no CTA next to it). */
.sharks-op .rung-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-ink);
  margin: 0 0 12px;
}

/* Body */
.sharks-op .rung-body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-slate);
  margin: 0;
  max-width: 64ch;
}

/* =========================================================================
   EXTRAS ROW
   Two styles: divisions (flat row of rectangle pills) | pathway (steps + arrows)
   ========================================================================= */

.sharks-op .rung-extras {
  margin-top: 18px;
}

/* ---- Divisions: rectangle pills, smaller font, tighter spacing ---- */
.sharks-op .rung-extras--divisions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sharks-op .pill-block {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sharks-purple);
  background: var(--sharks-powder-soft);
  border: none;
  padding: 7px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
[dir="rtl"] .sharks-op .pill-block {
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ---- Pathway: powder-soft container bar, steps + arrows + final solid pill ---- */
.sharks-op .rung-extras--pathway {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--sharks-powder-soft);
  padding: 8px 14px;
  border-radius: 8px;
  max-width: 100%;
}
.sharks-op .pathway-step {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sharks-purple);
  padding: 6px 4px;
  white-space: nowrap;
}
.sharks-op .pathway-step--final {
  background: var(--sharks-purple);
  color: #ffffff;
  border-radius: 4px;
  padding: 7px 12px;
}
.sharks-op .pathway-arrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--sharks-purple);
  line-height: 1;
}
[dir="rtl"] .sharks-op .pathway-step,
[dir="rtl"] .sharks-op .pathway-arrow {
  letter-spacing: 0.04em;
  text-transform: none;
}
[dir="rtl"] .sharks-op .pathway-arrow { transform: scaleX(-1); display: inline-block; }

/* CTA — now below the body (and below extras), left-aligned. */
.sharks-op .rung-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--sharks-purple);
  text-decoration: none;
  white-space: nowrap;
}
.sharks-op .rung-cta span {
  display: inline-block;
  margin-inline-start: 6px;
  transition: transform 180ms ease;
}
.sharks-op .rung:hover .rung-cta span { transform: translateX(2px); }
[dir="rtl"] .sharks-op .rung-cta span { transform: scaleX(-1); }
[dir="rtl"] .sharks-op .rung:hover .rung-cta span { transform: scaleX(-1) translateX(2px); }
.sharks-op .rung-cta:focus-visible {
  outline: 2px solid var(--sharks-powder);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================================
   VARIANTS
   ========================================================================= */

/* ---- Start-here: full purple fill, white text ---- */
.sharks-op .rung.is-start-here {
  background: var(--sharks-purple);
  border-color: var(--sharks-purple);
}
.sharks-op .rung.is-start-here:hover {
  border-color: var(--sharks-purple-dark);
}
.sharks-op .rung.is-start-here .rung-eyebrow,
.sharks-op .rung.is-start-here .rung-title,
.sharks-op .rung.is-start-here .rung-body,
.sharks-op .rung.is-start-here .rung-cta {
  color: #ffffff;
}
.sharks-op .rung.is-start-here .pill {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}
.sharks-op .rung.is-start-here .pill.pill-solid {
  background: var(--sharks-powder-soft);
  color: var(--sharks-purple);
  border-color: transparent;
}
.sharks-op .rung.is-start-here .pill-block {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.sharks-op .rung.is-start-here .rung-extras--pathway {
  background: rgba(255, 255, 255, 0.14);
}
.sharks-op .rung.is-start-here .pathway-step { color: #ffffff; }
.sharks-op .rung.is-start-here .pathway-arrow { color: rgba(255, 255, 255, 0.7); }
.sharks-op .rung.is-start-here .pathway-step--final {
  background: #ffffff;
  color: var(--sharks-purple);
}
.sharks-op .rung.is-start-here .rung-photo--placeholder {
  background-color: rgba(255, 255, 255, 0.06);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.10) 0,
    rgba(255, 255, 255, 0.10) 1px,
    transparent 1px,
    transparent 9px
  );
}
.sharks-op .rung.is-start-here .rung-photo--placeholder-label {
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Add-on: powder-blue tint, NO dashed border ---- */
.sharks-op .rung.is-addon {
  background: var(--sharks-powder-soft);
  border: 1px solid transparent;
}
.sharks-op .rung.is-addon:hover {
  border-color: var(--sharks-powder);
}
.sharks-op .rung.is-addon .rung-eyebrow {
  color: var(--sharks-powder-mid);
}
.sharks-op .rung.is-addon .rung-title {
  color: var(--sharks-purple);
}
.sharks-op .rung.is-addon .rung-photo--placeholder {
  background-color: rgba(127, 170, 212, 0.18);
}

/* =========================================================================
   CLOSER
   ========================================================================= */

.sharks-op .programs-closer {
  margin-top: 56px;
  padding: 36px 40px;
  background: var(--surface-cream);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sharks-op .programs-closer h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--text-ink);
  margin: 0;
}
.sharks-op .programs-closer-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sharks-op .programs-closer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 22px;
  transition: background-color 180ms ease, color 180ms ease;
}
.sharks-op .programs-closer .btn-primary {
  background: var(--sharks-purple);
  color: #fff;
}
.sharks-op .programs-closer .btn-primary:hover,
.sharks-op .programs-closer .btn-primary:focus-visible {
  background: var(--sharks-purple-dark);
  color: #fff;
}
.sharks-op .programs-closer .btn-large { padding: 14px 26px; font-size: 15px; }
.sharks-op .programs-closer .text-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-ink);
  text-decoration: none;
}
.sharks-op .programs-closer .text-link span {
  display: inline-block;
  margin-inline-start: 4px;
  transition: transform 180ms ease;
}
.sharks-op .programs-closer .text-link:hover span { transform: translateX(2px); }
[dir="rtl"] .sharks-op .programs-closer .text-link span { transform: scaleX(-1); }
[dir="rtl"] .sharks-op .programs-closer .text-link:hover span { transform: scaleX(-1) translateX(2px); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 900px) {
  .sharks-op.programs { padding: 72px 0; }
  .sharks-op > .container { padding: 0 24px; }
  .sharks-op .programs-head { margin-bottom: 40px; }
  .sharks-op .programs-head h2 { font-size: 36px; }

  .sharks-op .rung { padding: 28px; gap: 24px; }
  .sharks-op .rung.has-visual {
    grid-template-columns: 1fr;
  }
  .sharks-op .rung-photo-img,
  .sharks-op .rung-photo--placeholder {
    aspect-ratio: 16 / 9;
  }
  .sharks-op .rung-title { font-size: 24px; }
  .sharks-op.has-connector .ladder::before { inset-inline-start: 22px; }
}

@media (max-width: 600px) {
  .sharks-op.programs {
    padding: 48px 0;
    overflow-x: hidden;
  }

  .sharks-op > .container {
    width: 100%;
    padding: 0 16px;
  }

  .sharks-op .programs-head {
    margin-bottom: 28px;
  }

  .sharks-op .programs-head h2 {
    font-size: 28px;
  }

  .sharks-op .rung {
    padding: 20px 18px;
    gap: 16px;
    border-radius: 12px;
  }

  .sharks-op .rung.has-visual {
    grid-template-columns: 1fr;
  }

  .sharks-op .rung-title {
    font-size: 21px;
  }

  .sharks-op .rung-body {
    font-size: 14.5px;
  }

  .sharks-op .rung-photo-img,
  .sharks-op .rung-photo--placeholder {
    aspect-ratio: 16 / 9;
    width: 100%;
  }

  .sharks-op .rung-extras--divisions {
    gap: 6px;
  }

  .sharks-op.has-connector .ladder::before {
    inset-inline-start: 18px;
  }

  .sharks-op .programs-closer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    margin-top: 32px;
  }

  .sharks-op .programs-closer h3 {
    font-size: 18px;
  }

  .sharks-op .programs-closer-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .sharks-op .programs-closer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .sharks-op .rung-cta span,
  .sharks-op .programs-closer .text-link span {
    transition: none;
  }
  .sharks-op .rung:hover .rung-cta span,
  .sharks-op .programs-closer .text-link:hover span {
    transform: none;
  }
  [dir="rtl"] .sharks-op .rung:hover .rung-cta span,
  [dir="rtl"] .sharks-op .programs-closer .text-link:hover span {
    transform: scaleX(-1);
  }
}
