/* Resource feature: Featured card + Guide block.
   Sizes copied from the Learn design. Paddings and gaps that the design ties to
   the window (vw) follow this module's own width (cqw) where supported, since a
   HubSpot column is often narrower than the window. */
.ezl-rf { container: ezlrf / inline-size; }
.ezl-rf--featured { background: var(--ezl-cream-deep); }

.ezl-rf__wrap {
  max-width: 1240px; margin: 0 auto; box-sizing: border-box;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 40px);
}
.ezl-rf--featured .ezl-rf__wrap { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
@supports (width: 1cqw) {
  .ezl-rf__wrap { padding: clamp(64px, 8cqw, 104px) clamp(20px, 4cqw, 40px); }
  .ezl-rf--featured .ezl-rf__wrap { padding-top: clamp(56px, 7cqw, 88px); padding-bottom: clamp(56px, 7cqw, 88px); }
}

.ezl-rf__eyebrow {
  display: block; font-family: var(--ezl-font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ezl-blue); margin-bottom: 12px;
}
.ezl-rf__eyebrow--clay { color: var(--ezl-clay-dark); margin-bottom: 16px; }

/* ---------- drawn cover ---------- */
.ezl-rf__cover {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4; width: 100%;
  background: var(--ezl-blue); border-radius: 10px; box-shadow: 0 24px 50px rgba(0, 51, 255, 0.28);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 8% 9%; box-sizing: border-box;
}
.ezl-rf__cover--photo { padding: 0; background: var(--ezl-cream-deep); }
.ezl-rf__cover-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.ezl-rf__cover-glow { position: absolute; width: 130%; right: -55%; bottom: -35%; opacity: 0.55; pointer-events: none; }
.ezl-rf__cover-logo { position: relative; height: 13px; width: auto; align-self: flex-start; }
.ezl-rf__cover-logotext {
  position: relative; align-self: flex-start; font-family: var(--ezl-font-display);
  font-weight: 600; font-size: 13px; letter-spacing: -0.01em; line-height: 1; color: #fff;
}
.ezl-rf__cover-text { position: relative; }
.ezl-rf__cover-kicker {
  font-family: var(--ezl-font-display); font-size: 9px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ezl-blue-line);
}
.ezl-rf__cover-title {
  font-family: var(--ezl-font-display); font-weight: 600; font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.1; letter-spacing: -0.025em; color: #fff; margin-top: 10px;
}
@supports (width: 1cqw) {
  .ezl-rf__cover-title { font-size: clamp(18px, 2.1cqw, 26px); }
}

/* ---------- headings, text ---------- */
.ezl-rf__h2 {
  font-family: var(--ezl-font-display); font-weight: 600; font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.08; letter-spacing: -0.028em; color: var(--ezl-ink); margin: 0; text-wrap: balance;
}
.ezl-rf__p {
  font-size: 18px; line-height: 1.62; color: var(--ezl-body-soft);
  margin: 20px 0 0; max-width: 580px; text-wrap: pretty;
}
@supports (width: 1cqw) {
  .ezl-rf__h2 { font-size: clamp(32px, 3.8cqw, 46px); }
}

/* ---------- featured card ---------- */
.ezl-rf__card {
  display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--ezl-line);
  border-radius: 22px; overflow: hidden; box-shadow: 0 10px 28px rgba(12, 18, 38, 0.05);
}
.ezl-rf__cover-pane {
  flex: 1 1 320px; max-width: 100%; min-width: 0; box-sizing: border-box; background: var(--ezl-blue-tint);
  display: flex; align-items: center; justify-content: center; padding: clamp(32px, 4vw, 56px);
}
.ezl-rf__cover-box { width: min(100%, 240px); }
.ezl-rf__text-pane {
  flex: 1.6 1 420px; min-width: 0; box-sizing: border-box; padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
@supports (width: 1cqw) {
  .ezl-rf__cover-pane, .ezl-rf__text-pane { padding: clamp(32px, 4cqw, 56px); }
}
.ezl-rf__tag {
  font-family: var(--ezl-font-display); font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ezl-blue); background: var(--ezl-blue-tint);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.ezl-rf__h2--card { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.026em; margin: 20px 0 0; }
.ezl-rf__p--card { font-size: 17.5px; margin: 16px 0 0; max-width: 560px; }
@supports (width: 1cqw) {
  .ezl-rf__h2--card { font-size: clamp(28px, 3.4cqw, 40px); }
}
.ezl-rf__link {
  margin-top: 24px; font-family: var(--ezl-font-display); font-weight: 600; font-size: 16px;
  color: var(--ezl-blue); text-decoration: none;
}
.ezl-rf__link:hover { color: var(--ezl-blue-dark); }

/* ---------- guide ---------- */
.ezl-rf__guide { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 7vw, 104px); align-items: center; }
@supports (width: 1cqw) { .ezl-rf__guide { column-gap: clamp(40px, 7cqw, 104px); } }
.ezl-rf__guide-cover { flex: 1 1 280px; max-width: 360px; margin: 0 auto; }
.ezl-rf__guide-text { flex: 2 1 440px; min-width: 0; }
.ezl-rf__topics-label {
  display: block; font-family: var(--ezl-font-display); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ezl-clay-dark); margin: 30px 0 12px;
}
.ezl-rf__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ezl-rf__chip {
  font-size: 14px; color: var(--ezl-ink); background: #fff; border: 1px solid var(--ezl-line-warm);
  padding: 8px 14px; border-radius: 999px;
}
.ezl-rf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
.ezl-rf__note { font-size: 13.5px; color: var(--ezl-muted); }

.ezl-rf__link:focus-visible { outline: 2px solid var(--ezl-blue); outline-offset: 3px; border-radius: 4px; }
