/* Nail Insider Club V9 — targeted polish on the approved V8 design.
   No WordPress or payment integrations; source images stay unchanged. */

/* First screen: preserve the orange course-education label and make the audience
   description a distinct, readable line on EVERY language and screen size. */
.hero .eyebrow .hero-kicker-second {
  color: #f7f5f2 !important;
  font-family: var(--sans);
  font-size: clamp(11px, .92vw, 14px);
  font-weight: 500;
  letter-spacing: .015em !important;
  line-height: 1.55;
  text-transform: none !important;
  margin-top: 5px;
}

/* Course pairs always share the same card bottom at rest, without fake empty paragraphs.
   When any accordion opens, return to natural independent card heights. */
@media (min-width: 701px) {
  .courses .course-grid:not(:has(.course-details[open])) { align-items: stretch !important; }
  .courses .course-grid:not(:has(.course-details[open])) .course-card {
    height: 100% !important;
    align-self: stretch !important;
  }
  .courses .course-grid:not(:has(.course-details[open])) .course-card .course-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }
  .courses .course-grid:not(:has(.course-details[open])) .course-card .course-details {
    margin-top: auto !important;
  }
  /* Align the opening inclusion descriptions in PRO/VIP despite differing term counts. */
  .price-plan-v5.vip-plan .term-options { padding-bottom: 59px !important; }
  /* V8's EN title was always two lines. Only on desktop do the words share a line. */
  html[lang="en"] .help-summary h2 .help-title-first,
  html[lang="en"] .help-summary h2 .help-title-second {
    display: inline !important;
  }
  html[lang="en"] .help-summary h2 .help-title-first::after { content: ' '; white-space: pre; }
  html[lang="en"] .help-summary h2 { white-space: nowrap; }
}

/* Reassign the price-plan names to a dedicated top-right column. */
.price-plan-v5 .plan-v5-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  min-height: 64px;
  gap: 12px;
}
.price-plan-v5 .plan-v5-top > div:first-child:not(.plan-heading-right) {
  flex: 1 1 auto;
  min-width: 0;
}
.price-plan-v5 .plan-heading-right {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  text-align: right;
}
.price-plan-v5 .plan-heading-right h3 {
  margin: 0 !important;
  font: 400 36px/1 var(--serif);
  color: #fff;
}
.price-plan-v5 .plan-heading-right .plan-stamp {
  display: block;
  margin: 0 !important;
  line-height: 1.3;
}

/* Highlight educators' actual teaching proof just as in the Russian version. */
html[lang="en"] .educator-highlights .orange-num,
html[lang="es"] .educator-highlights .orange-num { color: #ef904f; font-weight: 700; }

/* Mobile: preserve the approved one-column cards, photo position and spacing. */
@media (max-width: 700px) {
  .hero .eyebrow .hero-kicker-second {
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: .012em !important;
  }
  .price-plan-v5 .plan-heading-right h3 { font-size: clamp(33px, 8vw, 39px); }
  .price-plan-v5 .plan-heading-right .plan-stamp {
    font-size: clamp(9px, 2.3vw, 10px);
  }
  .price-plan-v5 .plan-v5-top { min-height: 56px; }
  html[lang="en"] .help-summary h2 .help-title-first,
  html[lang="en"] .help-summary h2 .help-title-second {
    display: block !important;
  }
}

/* Image zoom now behaves like a genuine pan-and-zoom viewer. Its canvas stays
   fixed; an enlarged image can be moved in all directions with one finger.
   The arrows always remain fixed, and closing is through the X control. */
#viewer.viewer-v8 .lightbox-image-area,
#viewer.viewer-v8 #viewer-image {
  touch-action: none !important;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#viewer.viewer-v8 #viewer-image {
  transform-origin: center center;
  will-change: transform;
  -webkit-user-drag: none;
}
#viewer.viewer-v8 .lightbox-arrow,
#viewer.viewer-v8 .viewer-close { touch-action: manipulation; }
