/* Club page "Membership Options" (template-parts/club-membership-options.php) */

.nysc-mo {
  --mo-dark: #3c3c3c;
  --mo-red: #ff0519;
  --mo-cyan: #02acd4;
  --mo-gray: #e8e8e8;
  --mo-yellow: #ffe100;
  --mo-font-black: "acumin-pro-condensed-black", "Arial", "Helvetica", sans-serif;
  --mo-font-black-italic: "acumin-pro-condensed-black-italick", "Arial", "Helvetica", sans-serif;
  --mo-font-bold: "acumin-pro-condensed-bold", "Arial", "Helvetica", sans-serif;
  --mo-font-body: "europa", "Arial", "Helvetica", sans-serif;
  background: var(--mo-dark);
  color: #fff;
  padding: 80px 0;
}

.nysc-mo__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ── Headline ─────────────────────────────────────────────── */

.nysc-mo__headline {
  text-align: center;
}

.nysc-mo__title {
  margin: 0;
  font-family: var(--mo-font-black-italic);
  font-style: italic;
  font-weight: 800;
  font-size: 64px;
  line-height: 64px;
  text-transform: uppercase;
  color: #fff;
}

.nysc-mo__subtitle {
  margin: 0;
  font-family: var(--mo-font-body);
  font-size: 20px;
  line-height: 28px;
  color: #fff;
}

/* ── Category tabs ────────────────────────────────────────── */

.nysc-mo__tabs {
  display: flex;
  gap: 16px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.nysc-mo__tabs::-webkit-scrollbar {
  display: none;
}

.nysc-mo__tab {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  min-width: 222px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--mo-font-bold);
  font-weight: 700;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.nysc-mo__tab.is-active {
  color: var(--mo-dark);
  font-size: 20px;
  letter-spacing: 0.8px;
}

/* Active tab's white fill, drawn by ::before instead of clip-path on the tab so the tab can
   size to its label while both 8px cuts (top-left, bottom-right) stay fixed, and the focus
   outline isn't clipped. Four half-size layers: the top-left and bottom-right ones carry the
   45° cut (transparent stop at 8px / √2 ≈ 5.66px), the other two are solid. */
.nysc-mo__tab.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 5.66px, #fff 5.66px) top left / 50.5% 50.5% no-repeat,
    linear-gradient(#fff, #fff) top right / 50.5% 50.5% no-repeat,
    linear-gradient(#fff, #fff) bottom left / 50.5% 50.5% no-repeat,
    linear-gradient(315deg, transparent 5.66px, #fff 5.66px) bottom right / 50.5% 50.5% no-repeat;
}

.nysc-mo__tab:focus-visible,
.nysc-mo__group-toggle:focus-visible,
.nysc-mo__select:focus-visible {
  outline: 2px solid var(--mo-cyan);
  outline-offset: 2px;
}

/* ── Category groups ──────────────────────────────────────── */

.nysc-mo__groups {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nysc-mo__group[hidden] {
  display: none;
}

.nysc-mo__group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px 6px;
  margin-bottom: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nysc-mo__group-name {
  font-family: var(--mo-font-bold);
  font-weight: 700;
  font-size: 36px;
  line-height: 36px;
  text-transform: uppercase;
}

.nysc-mo__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nysc-mo__group.is-collapsed .nysc-mo__chevron {
  transform: rotate(180deg);
}

.nysc-mo__group.is-collapsed .nysc-mo__grid {
  display: none;
}

.nysc-mo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

/* ── Card ─────────────────────────────────────────────────── */
/* 2px border in the contract colour with the bottom-right corner cut: a coloured layer
   behind a white layer inset by 2px, both clipped to the same chamfered shape. */

.nysc-mo__card {
  --mo-accent: var(--mo-cyan);
  --mo-cut: polygon(0 0, 100% 0, 100% calc(100% - 23px), calc(100% - 23px) 100%, 0 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  color: var(--mo-dark);
}

.nysc-mo__card::before,
.nysc-mo__card::after {
  content: "";
  position: absolute;
  clip-path: var(--mo-cut);
}

.nysc-mo__card::before {
  inset: 0;
  background: var(--mo-accent);
}

.nysc-mo__card::after {
  inset: 2px;
  background: #fff;
}

.nysc-mo__card > * {
  position: relative;
  z-index: 1;
}

.nysc-mo__card--red  { --mo-accent: var(--mo-red); }
.nysc-mo__card--cyan { --mo-accent: var(--mo-cyan); }
.nysc-mo__card--gray { --mo-accent: var(--mo-dark); }

.nysc-mo__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding-left: 24px;
  background: var(--mo-accent);
}

.nysc-mo__card--gray .nysc-mo__card-head {
  background: var(--mo-gray);
}

.nysc-mo__card-label {
  font-family: var(--mo-font-black);
  font-weight: 800;
  font-size: 24px;
  line-height: 24px;
  text-transform: uppercase;
  color: #fff;
}

.nysc-mo__card--gray .nysc-mo__card-label {
  color: var(--mo-dark);
}

.nysc-mo__best-value {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 162px;
  padding-left: 20px;
  background: var(--mo-yellow);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
  font-family: var(--mo-font-black-italic);
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--mo-dark);
  white-space: nowrap;
}

.nysc-mo__card-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 24px;
}

.nysc-mo__plan-name {
  margin: 0;
  font-family: var(--mo-font-black);
  font-weight: 800;
  font-size: 32px !important;
  line-height: 32px !important;
  letter-spacing: 1.28px;
  text-transform: uppercase;
  color: var(--mo-dark);
}

.nysc-mo__plan-note {
  margin: 0;
  font-family: var(--mo-font-body);
  font-size: 16px;
  line-height: 24px;
}

.nysc-mo__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.nysc-mo__price {
  margin: 0;
  font-family: var(--mo-font-black-italic);
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  line-height: 32px;
}

.nysc-mo__price span {
  font-family: var(--mo-font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.nysc-mo__promo {
  margin: 0;
  font-family: var(--mo-font-bold);
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.64px;
  text-transform: uppercase;
  color: var(--mo-cyan);
}

/* Pushed to the bottom so the Select buttons line up across a row of unequal cards. */
.nysc-mo__card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  padding: 0 24px;
}

.nysc-mo__tc {
  align-self: stretch;
  font-family: var(--mo-font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--mo-dark);
}

.nysc-mo__tc p {
  margin: 0;
}

/* The chamfered shape is drawn by ::before rather than clip-path on the button itself, so the
   button can size to its content/container (min-width, not a fixed width) while the 14px
   bottom-right cut stays the same size at any width — and the focus outline isn't clipped. */
.nysc-mo__select {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 160px;
  max-width: 100%;
  min-height: 48px;
  padding: 14px 32px;
  background: transparent;
  text-align: center;
  font-family: var(--mo-font-bold);
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff !important;
  transition: opacity 0.2s ease;
}

/* Dark fill with the bottom-right corner cut at 45°: the transparent stop sits 10px
   (≈ 14px / √2) in from the corner along the diagonal, i.e. a 14px × 14px cut. */
.nysc-mo__select::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 2px 2px 0 2px;
  background: linear-gradient(315deg, transparent 10px, var(--mo-dark) 10px);
}

.nysc-mo__select:hover,
.nysc-mo__select:focus {
  color: #fff;
  opacity: 0.85;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1023px) {
  .nysc-mo {
    padding: 56px 0;
  }

  .nysc-mo__container {
    gap: 32px;
  }

  .nysc-mo__title {
    font-size: 44px;
    line-height: 44px;
  }

  .nysc-mo__subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .nysc-mo__tabs {
    align-self: stretch;
    gap: 8px;
  }

  .nysc-mo__tab {
    min-width: 0;
    padding: 0 20px;
  }

  .nysc-mo__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .nysc-mo__group-name {
    font-size: 28px;
    line-height: 28px;
  }
}

@media (max-width: 575px) {
  .nysc-mo__title {
    font-size: 36px;
    line-height: 36px;
  }

  .nysc-mo__card-head {
    padding-left: 16px;
  }

  .nysc-mo__card-label {
    font-size: 20px;
    line-height: 20px;
  }

  .nysc-mo__best-value {
    width: 128px;
    font-size: 20px;
    line-height: 20px;
  }

  .nysc-mo__card-body,
  .nysc-mo__card-foot {
    padding: 0 16px;
  }

  .nysc-mo__plan-name {
    font-size: 24px !important;
    line-height: 26px !important;
  }

  .nysc-mo__price {
    font-size: 28px;
    line-height: 28px;
  }
}
