/*
 * .hero-card — side card "Focus : ON": caps label with an icon, a large title, a list with rhomb markers
 * (template-parts/global/hero-card.php).
 * Figma: About D 18:42308 (in the hero, bottom right) / M 18:49990 (block under the hero).
 *
 * Printed twice, like the webinar event facts: `--hero` in the hero's right column (the column itself is
 * shown from 1025 px, hero-inner.css), `--page` under the hero on phones and tablets (on white, 50 px above
 * and below, the 1 px line of the next section closes the block). The card is the same 335 × 320 in both.
 */

/* .hero-card--hero — Figma puts the card 3 px lower than the bottom of the buttons */
.hero-card--hero {
  margin-bottom: -0.1875rem;
}

/* .hero-card--page — page gutters, 50 px above and below the card; from 1025 px the hero shows its own copy */
.hero-card--page {
  padding: 3.125rem 1.25rem;

  /* @media (width >= 64.0625em) .hero-card--page */
  @media (width >= 64.0625em) {
    display: none;
  }

  /* .hero-card--page .hero-card__inner — fills the gutters on any phone (Figma M: 20 px both sides);
     335 px held it short on phones wider than 375 (Vlad, 2026-11-18) */
  & .hero-card__inner {
    max-width: none;
  }
}

/* .hero-card__inner — navy glass, 335 px; 320 px tall as in Figma (min-height: a longer list grows the card) */
.hero-card__inner {
  display: flex;
  flex-direction: column;
  max-width: 20.9375rem;
  min-height: 20rem;
  padding: 2.5rem 0.9375rem 2.34375rem;
  border-radius: var(--nv-radius-s);
  background-color: rgba(19, 33, 50, 0.75);
  backdrop-filter: blur(0.625rem);
  color: var(--nv-white);
}

/* .hero-card__label — 24 px icon + caps text in half-transparent green */
.hero-card__label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(168, 217, 95, 0.5);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* .hero-card__label-text — a long word wraps inside the card instead of running out of it */
.hero-card__label-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* .hero-card__icon — the SVG comes as an <img> */
.hero-card__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 0;

  & img {
    width: 100%;
    height: 100%;
  }
}

/* .hero-card__title — 50 px, "ON" (bold) in green; label → title 26 px ink to ink */
.hero-card__title {
  margin-top: calc(1.3625rem - 0.14em);
  font-weight: 400;
  font-size: 3.125rem;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;

  & strong {
    color: var(--nv-green);
    font-weight: inherit;
  }
}

/* .hero-card__title / .hero-card__list as the first block (no label, no title) — nothing to space from */
.hero-card__title:first-child,
.hero-card__list:first-child {
  margin-top: 0;
}

/* .hero-card__list — title → first item 39 px ink to ink; items 27 px apart */
.hero-card__list {
  gap: 0.6875rem;
  margin-top: calc(2rem - 0.14em);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* .hero-card__item — the rhomb is 8.5 px, 10 px before the text, level with the cap height */
.hero-card__item {
  padding-left: 1.15625rem;

  &::before {
    top: 0.14em;
    left: 0;
    width: 0.53rem;
    height: 0.53rem;
  }
}

/* .hero-card__item:first-child — the longest line is tracked tighter (Figma −3 %) */
.hero-card__item:first-child {
  letter-spacing: -0.03em;
}
