/*! MYT Inline CTA v2.4 (trial + event) | inline-cta.v2.4.css
 * Renders into the existing [inline-CTA-1] / [inline-CTA-2] positions on /articles/*.
 * All rules are scoped to .myt-icta so nothing else on the page is affected.
 */

.myt-icta.myt-active-cta {
  --icta-bg: #fdf1e8; /* #EE731B at 8% on white (Figma Frame 478) */
  --icta-ink: #2b1a0e; /* headline */
  --icta-sub: #6e4322; /* note text, 7:1+ on bg */
  --icta-label: #ad4a0b; /* eyebrow label, 4.5:1+ on bg */
  --icta-btn: #ee731b; /* MYT orange */
  --icta-btn-hover: #d9620f;
  --icta-btn-ink: #ffffff;
  --icta-media-bg: #f6dcc8;

  display: grid !important; /* beats the inline display:block legacy code may set */
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: center;
  gap: 28px;
  margin: 32px 0;
  padding: 32px 36px;
  background: var(--icta-bg);
  border: 0;
  border-radius: 10px;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  box-sizing: border-box;
  clear: both;
}

.myt-icta.myt-icta--no-media {
  grid-template-columns: minmax(0, 1fr);
}

.myt-icta *,
.myt-icta *::before,
.myt-icta *::after {
  box-sizing: border-box;
}

.myt-icta .myt-icta__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.myt-icta .myt-icta__label {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--icta-label);
}

.myt-icta .myt-icta__headline {
  display: block;
  margin: 0;
  font-family:
    "Mona Sans",
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--icta-ink);
  text-wrap: balance;
}

/* Event date row: calendar icon + date */
.myt-icta .myt-icta__date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--icta-ink);
}
.myt-icta .myt-icta__date svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--icta-label);
}

.myt-icta .myt-icta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column; /* note sits under the button */
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

/* Higher specificity than rich-text link styles (.article-body-content a, .w-richtext a) */
.myt-icta.myt-active-cta a.myt-icta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--icta-btn);
  color: var(--icta-btn-ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  box-shadow: none;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.myt-icta.myt-active-cta a.myt-icta__btn:hover {
  background: var(--icta-btn-hover);
  color: var(--icta-btn-ink);
  text-decoration: none;
}
.myt-icta.myt-active-cta a.myt-icta__btn:focus-visible {
  outline: 2px solid var(--icta-ink);
  outline-offset: 3px;
}

.myt-icta .myt-icta__note {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--icta-sub);
}

.myt-icta .myt-icta__media {
  width: 176px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--icta-media-bg);
}

/* Reset rich-text image styles (.w-richtext img, figure rules) */
.myt-icta .myt-icta__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

/* Tablet + mobile (Figma node 1:887): image on top, centred text, auto-width button */
@media (max-width: 767px) {
  .myt-icta.myt-active-cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 24px 0;
    padding: 32px 24px;
    text-align: center;
  }
  .myt-icta .myt-icta__media {
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 18px;
  }
  .myt-icta .myt-icta__body {
    align-items: center;
  }
  .myt-icta .myt-icta__headline {
    font-size: 20px;
  }
  .myt-icta .myt-icta__date {
    justify-content: center;
  }
  .myt-icta .myt-icta__actions {
    align-items: center;
  }
  .myt-icta.myt-active-cta a.myt-icta__btn {
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .myt-icta.myt-active-cta a.myt-icta__btn {
    transition: none;
  }
}
