/* === home_hero-banner.css — GFF homepage hero banner carousel (Swiper).
   Figma: wSIjX4283tMJp81SjyxMDK, node 376:285 ("hero banner"). Background
   (solid navy + dark gradient) lives on the shared outer section, not per
   slide — only the portrait image and text content card swap per slide.
   =========================================================================
   Component-scoped variables — every banner-specific size/color lives
   here, at the top, mapped to an existing project token wherever one
   exists. Nothing below this block should hardcode a raw value that's
   already named here.
   ========================================================================= */

.home_hero-banner {
  --home-hero-banner-bg: var(--clr-blue);
  --home-hero-banner-overlay: linear-gradient(180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0) 15%,
      rgba(0, 0, 0, 0) 56%,
      rgba(0, 0, 0, 0.8) 100%);
  --home-hero-banner-top-offset: var(--sp14);
  /* 70px — clears the fixed header */
  /* Figma Wrapper padding is "100px 0px 50px" (top/sides/bottom), but the
     50px belongs after the pagination dots, not after the row — see
     .home_hero-banner__swiper's own padding-bottom below. */
  --home-hero-banner-slide-padding: var(--sp18) 0 0;

  --home-hero-banner-image-w: 410px;
  /* Gap between .home_hero-banner__media and .home_hero-banner__content
     in their shared row — matches the reference HTML's own .stage gap
     (photo-to-panel). There was no real gap here before (0, just the
     cutout photo's own transparent edge reading as one); mobile's gap:0
     override stays relevant once stacked vertically there, not sideways. */
  --home-hero-banner-media-gap: clamp(16px, 3vw, 48px);

  --home-hero-banner-card-w: 660px;
  --home-hero-banner-card-h: 520px;
  --home-hero-banner-card-radius: 24px;
  --home-hero-banner-card-bg: linear-gradient(142deg, rgba(28, 80, 154, 1) 0%, rgba(37, 95, 153, 1) 0%, rgba(24, 48, 84, 1) 100%);
  --home-hero-banner-card-shadow: -40px 23px 90px -40px rgba(0, 0, 0, 0.55);
  /* Equal on every side, responsive (28px floor, 46px ceiling, 3.2vw in
     between) — matches the reference panel's own padding, replacing the
     prior fixed 100px/80px (sp18/sp13) Figma values. */
  --home-hero-banner-card-padding-y: clamp(28px, 3.2vw, 46px);
  --home-hero-banner-card-padding-x: clamp(28px, 3.2vw, 46px);
  /* #646:327's own gap - between the title-group and whatever comes after
     it (cta-row or progress-panel). Was 30px/.--sp8 pre-revision. */
  --home-hero-banner-card-gap: var(--sp6);
  /* 20px */
  /* #646:328's own gap - kicker/title/desc, new in this revision. */
  --home-hero-banner-title-gap: var(--sp5);
  /* 15px */

  --home-hero-banner-title-fs: var(--fs-50);
  /* unitless (line-height/font-size) so it scales with --fs-50 at smaller
     breakpoints (42px/34px in fonts-max-991/767.css) instead of staying a
     fixed px value once the font itself has shrunk. Figma: 50px/50px
     (ratio 1) as of this revision - was 60px/50px (1.2) before. */
  --home-hero-banner-title-lh: 1;

  --home-hero-banner-dot-size: 12px;
  --home-hero-banner-dot-gap: var(--sp6);
  /* 20px */
  --home-hero-banner-dot-color: var(--clr-teal-500);
  --home-hero-banner-dot-active-color: var(--clr-green-500);

  /* Scroll-down button's own icon-to-label gap (Figma node 376:299). */
  --home-hero-banner-scroll-icon-gap: 11px;

  /* Goal 1/Goal 2 cards (Figma node 646:332/646:333). #B6D9F5 (focus-
     area pill bg) has no existing token; named here since it's reused
     per-card. */
  --home-hero-banner-goal-card-radius: 20px;
  --home-hero-banner-goal-card-gap: 16px;
  --home-hero-banner-focus-pill-bg: #B6D9F5;
  /* Flat, matching the reference HTML's own .goal background exactly
     (not the old 90deg black-on-clr-blue overlay) — darker than
     --home-hero-banner-card-bg above so the card still reads as a
     distinct, recessed element against the panel's lighter navy
     gradient instead of blending into it. */
  --home-hero-banner-goal-card-bg: #132A4C;
  /* Reference HTML's own .goal:hover background — one step lighter. */
  --home-hero-banner-goal-card-hover-bg: #163158;
  /* Reference HTML's own .goal border value exactly. */
  --home-hero-banner-goal-card-hover-border-clr: rgba(255, 255, 255, 0.07);

  /* No-link goal card (.home_hero-banner__goal-card--static) - flat
     translucent card, no navy fill, matching the step-card treatment in
     GFF_FASTR_Slide_5_Compact_Options.html's "4 - Step strip" option
     (.st: rgba(255,255,255,.1) bg / rgba(255,255,255,.2) border). Separate
     tokens from the default card's own bg/hover-bg above - this card never
     uses those, has no hover state at all (nothing to hover on a <div>). */
  --home-hero-banner-goal-card-static-bg: rgba(255, 255, 255, 0.1);
  --home-hero-banner-goal-card-static-border-clr: rgba(255, 255, 255, 0.2);

  /* Mobile-only (<=767px, see home_hero-banner--mobile.css): the content
     card gets its own border-radius + top border once the image+content
     fuse into one unified rounded box there — kept as dedicated
     variables (not reusing --home-hero-banner-card-radius above, even
     though both happen to be 24px) since this is a visually distinct
     treatment specific to that breakpoint, not the same desktop card. */
  --home-hero-banner-content-radius: 24px;
  --home-hero-banner-content-border-clr: var(--clr-blue-400);

  position: relative;
  background-color: var(--home-hero-banner-bg);
  background-image: var(--home-hero-banner-overlay);
  padding-top: var(--home-hero-banner-top-offset);
  /* Minimum left/right floor so the section itself never lets content
     touch the viewport edge. padding-bottom is the real Figma value
     (100px, the outer "hero banner" frame's own padding-bottom, which
     applies after Highlights since it's the last in-flow child) — lives
     here on the section rather than on .hero-banner-bottom so it still
     applies even if Highlights content is ever empty/absent. */
  padding-right: var(--sp8);
  padding-bottom: var(--sec-v-p);
  padding-left: var(--sp8);
  overflow: hidden;
}

/* Decorative background motif (Figma node 377:203, "curve_layers_tint_1")
   — pure abstract gradient shape, no content meaning, so it's a CSS
   background per Hard Rule 11 rather than an <img>. Pinned top-left like
   the Figma frame; fixed pixel size since the source design has no
   responsive variant (hidden below 991px in home_hero-banner--tablet.css,
   same breakpoint the figure/card layout itself stacks at). */
.home_hero-banner__motif {
  position: absolute;
  top: 0;
  left: 0;
  width: 544px;
  height: 896px;
  max-height: 100%;
  background: url('/themes/custom/gff/templates/components/home_hero-banner/css/../images/hero-carousel-motif.svg') no-repeat left top / contain;
  pointer-events: none;
  z-index: 0;
}

/* === Swiper plumbing — mirrors theme-carousel.css's own fallback pattern
   so the carousel degrades to "first slide visible, no JS needed" if
   Swiper JS never initializes. === */
.home_hero-banner__swiper.swiper {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  /* Figma's Wrapper padding is "100px 0px 50px" (top/sides/bottom) on the
     frame that contains BOTH the image+card row AND the pagination dots
     as flow siblings (gap:20px between them) — the 50px belongs after
     the dots, not after the row. .home_hero-banner__slide only owns the
     row (pagination lives outside the per-slide swiper-wrapper, as it
     must for Swiper), so the bottom padding moved here instead; putting
     it on the slide too was double-counting with the pagination's own
     margin-top, stacking to 70px instead of Figma's 20px gap. */
  padding-bottom: var(--sp11);
}

.home_hero-banner__swiper .swiper-wrapper {
  display: flex;
  align-items: flex-end;
}

.home_hero-banner__swiper .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  visibility: hidden;
}

.home_hero-banner__swiper .swiper-slide-active {
  visibility: visible;
}

/* === Slide layout === */
.home_hero-banner__slide {
  /* display:flex + .home_hero-banner__inner's flex:1 below — without
     this, Swiper's own wrapper-level flex-stretch (no autoHeight: every
     slide's box height matches the TALLEST slide) only grows the
     .home_hero-banner__slide box itself; its child .home_hero-banner__inner
     would just sit at its own natural (shorter) height at the top,
     leaving empty space BELOW the image+card row instead of above it.
     flex:1 makes inner consume the slide's full stretched height, so its
     own align-items:flex-end then bottom-anchors correctly regardless of
     which slide is shortest — no autoHeight resize jump, no gap below. */
  display: flex;
  flex-direction: column;
  padding: var(--home-hero-banner-slide-padding);
}

.home_hero-banner__inner {
  /* Same box model as .hero-banner-bottom below (max-width:1300px +
     padding:0 var(--sp8) = 1240px effective content width) - both are
     independently centered via margin:0 auto, which lines up their
     CENTERS regardless of each one's own width, but the slide row's old
     fit-content width (~1070px: 410px image + 660px card + gap) was
     narrower than highlights' 1240px, so their LEFT edges didn't match
     even though they were centered on the same axis (reported live - the
     image's left edge sat further right than Highlights' own content).
     Matching the box model exactly makes both 1240px wide on the same
     center axis, so the edges align on their own. */
  display: flex;
  flex: 1;
  align-items: flex-end;
  /* flex-start, not center - the row's own content (image+card, ~1070px)
     is narrower than this new 1240px box, so it needs to hug the box's
     LEFT edge (matching Highlights' own content start) rather than
     floating centered within the extra width. */
  justify-content: flex-start;
  gap: var(--home-hero-banner-media-gap);
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--sp8);
}

.home_hero-banner__media {
  /* width fixed, height:auto (not the old fixed-height + object-fit:cover)
     — each slide's cutout photo has its own natural aspect ratio (slide
     1: 410x650, slide 2 per Figma node 395:369: 410x484) and cover would
     zoom/crop a shorter cutout to fill a taller box, cutting off the
     subject. Auto-height + align-items:flex-end on .home_hero-banner__inner
     keeps every slide's photo bottom-anchored at its own real height
     instead. */
  width: var(--home-hero-banner-image-w);
  flex-shrink: 0;
}

/* slide.banner_image_style == 'medium' — direct declaration on the
   element itself, so it wins over --home-hero-banner-image-w's inherited
   value from .home_hero-banner regardless of which breakpoint file (base
   410px / max-1600 360px / tablet 280px) last set it on the ancestor. */
.home_hero-banner__slide--image-medium .home_hero-banner__media {
  --home-hero-banner-image-w: 600px;
}

.home_hero-banner__media picture,
.home_hero-banner__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.home_hero-banner__content {
  position: relative;
  /* flex:1 1 660px (shrink AND grow, not flex-shrink:0) — the image
     (flex-shrink:0, always 360-410px) never shrinks, so a rigid
     660px card made the row's combined minimum ~1020px+padding wide
     with NO give between the 991px stack breakpoint and 1600px. Any
     viewport in that gap (e.g. 1024-1200px) overflowed the row past the
     section's own edge, and overflow:hidden on .home_hero-banner clipped
     whatever sat at the far right — the scroll-down button/label. Letting
     the card shrink (text reflows to more lines) instead of the row
     overflowing fixes that; min-width:0 overrides flex's own default
     min-width:auto, which would otherwise still block shrinking below
     the text's intrinsic content width.
     Grow was added back once .home_hero-banner__inner gained its own
     max-width:1300px (see above) - before that, the row had no width cap
     at all, so letting the card grow would have stretched it unboundedly
     wide on a big monitor. Now that the row itself is capped, growing
     just fills whatever's left of that 1240px content box instead of
     leaving a visible empty gap after the card (reported live on an
     ultra-wide screen - the card stopped at 660px with plain section
     background visible the rest of the way to the row's own edge). */
  flex: 1 1 var(--home-hero-banner-card-w);
  min-width: 0;
  /* min-height (not height) — Figma's 520px is the design-time content's
     actual size, not a hard cap. A fixed height here flex-shrinks every
     child (title/desc/button/scroll icon) once real CMS copy runs longer
     than the sample text — that's what was crushing the CTA button down
     to ~14px tall instead of 34px. */
  min-height: var(--home-hero-banner-card-h);
  /* Just a sizing slot in the image+card row now — .home_hero-banner__content-inner
     (its only child) carries the actual visual box (bg/border/radius/
     shadow/padding) and the title/goals/cta layout. display:flex here
     purely so that child can flex:1 + stretch to fill this box's real
     resolved height (which still comes from min-height above, or from
     the inner's own content when that's taller). */
  display: flex;
}

.home_hero-banner__content-inner {
  flex: 1 1 auto;
  /* .home_hero-banner__content (parent, a flex ROW with this as its only
     child) never sets its own align-items, so the default align-items:
     stretch was stretching this element's HEIGHT to match .content's own
     min-height (--home-hero-banner-card-h, 520px - the image/row's own
     floor) regardless of how much shorter the actual title/goals/cta
     content was, leaving a visible empty gap below the last item
     (reported, screenshot - the FASTR step-strip's own content is well
     under 520px). align-self:center opts this element back out of that
     stretch, sizing it to its own content and centering it vertically in
     whatever extra room is left instead - .content's own min-height is
     untouched, so the outer row/image height doesn't change, only this
     inner box shrinks to fit (and centers) when content is short. */
  align-self: center;
  min-width: 0;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--home-hero-banner-card-padding-y) var(--home-hero-banner-card-padding-x);
  background: var(--home-hero-banner-card-bg);
  border-radius: var(--home-hero-banner-card-radius);
  box-shadow: var(--home-hero-banner-card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--home-hero-banner-card-gap);
}

.home_hero-banner__content-inner>* {
  flex-shrink: 0;
}

/* No Goal 1/2 cards on this slide — nothing constrains the card to the
   660px Goal-card width anymore, so let it use the row's full available
   width instead of staying capped at 700px (shorter line-wraps for
   longer CMS copy, e.g. the French paragraph slide). */
.home_hero-banner__content-inner:not(:has(.home_hero-banner__goals)) {
  max-width: none;
}

/* Figma node 646:328 - kicker/title/desc, wrapped on its own so its 15px
   gap is independent of .home_hero-banner__content's own (now 20px) gap
   to whatever comes after (cta-row/progress-panel). */
.home_hero-banner__title-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: var(--home-hero-banner-title-gap);
}

.home_hero-banner__kicker {
  margin: 0;
  color: var(--clr-white);
  font-weight: var(--fw-normal);
  font-size: var(--fs-13);
  line-height: 24px;
}

.home_hero-banner__title {
  position: relative;
  margin: 0;
  color: var(--clr-white);
  font-weight: var(--fw-semibold);
  font-size: var(--home-hero-banner-title-fs);
  line-height: var(--home-hero-banner-title-lh);
  text-transform: capitalize;
}

/* field_title_description - only rendered when that field is set (twig),
   so .home_hero-banner__title never needs this row at all by default.
   title stays flex:none (its own font-size already sets the row's height)
   so a long description never squeezes it down. */
.home_hero-banner__title-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp5);
}

.home_hero-banner__title-row .home_hero-banner__title {
  flex: none;
}

.home_hero-banner__title-description {
  margin: 0;
  color: var(--clr-white);
  font-size: var(--fs-16);
  line-height: 1.45;
  /* Nudges the description's first line down to roughly the title's own
     cap-height baseline instead of its line-box top - the title's large
     font-size otherwise reads visually taller than the description sitting
     flush at align-items:flex-start. */
  padding-top: 6px;
}

/* .body-text-field-lg (same class on this element) sets 18px/no line-
   height of its own - this banner's copy is 21px/31px as of this
   revision, so re-declared as a compound selector for guaranteed higher
   specificity over the shared utility class regardless of stylesheet
   load order (both are single classes on the same element otherwise -
   same trap as the rest of this project's site-wide-CSS fixes). */
.home_hero-banner__desc.body-text-field-lg {
  position: relative;
  color: var(--clr-white);
  font-size: var(--fs-21);
  line-height: 31px;
}

.home_hero-banner__desc a {
  color: var(--clr-yellow-orange);
}

.home_hero-banner__desc a:hover {
  color: var(--clr-white);
  text-decoration: underline;
}

/* Prefix + CTA buttons share one row (not two stacked children) — align-
   self/flex-wrap live here (not on .home_hero-banner__cta-group below)
   since this row, not the group div, is the actual flex child of
   .home_hero-banner__content. */
.home_hero-banner__cta-row {
  position: relative;
  display: flex;
  align-items: center;
  align-self: flex-start;
  flex-wrap: wrap;
  gap: var(--sp4);
}

.home_hero-banner__prefix {
  position: relative;
  margin: 0;
  color: var(--clr-white);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Colon kept out of the translatable string itself (same reasoning as
   other punctuation-after-label patterns in this project) — appended via
   CSS instead of baked into slide.prefix_text. */
.home_hero-banner__prefix:after {
  content: ":";
}

/* prefix_text paired with goal/step cards (e.g. the FASTR step-strip's
   "All backed by capacity strengthening and data use support.") reads as
   a plain trailing note, not a short uppercase label like the primary
   hero slide's "EXPLORE TRANSFORM 2030:" - matches the reference's own
   .foot exactly (sentence case, --fw-medium, 0.88 opacity, no auto-
   appended colon - its own text supplies whatever trailing punctuation it
   needs, see home_hero-banner.stories.html's sample copy). */
.home_hero-banner__goals + .home_hero-banner__cta-row .home_hero-banner__prefix {
  text-transform: none;
  font-weight: var(--fw-medium);
  letter-spacing: normal;
  opacity: 0.88;
}

.home_hero-banner__goals + .home_hero-banner__cta-row .home_hero-banner__prefix:after {
  content: "";
}

/* Prefix + button pinned to the same line, button pushed to the row's far
   edge (not wrapping under the prefix like the base .cta-row's own
   flex-wrap:wrap allows) - the prefix's OWN text still wraps normally
   within whatever space justify-content:space-between leaves it (gap:30px
   below is the FLOOR, not fixed, between the two once that space runs
   out), it just never drags the button down with it anymore.
   .cta-group's flex-shrink:0 keeps the button at its natural width even
   as the prefix competes for the row's remaining space. */
.home_hero-banner__goals + .home_hero-banner__cta-row:has(.home_hero-banner__prefix) {
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 30px;
}

.home_hero-banner__goals + .home_hero-banner__cta-row:has(.home_hero-banner__prefix) .home_hero-banner__cta-group {
  flex-shrink: 0;
}

/* Wraps 1+ CTA buttons per slide (previously always exactly one) — reuses
   the shared .btn-grouping-list row pattern (elements/buttons/buttons.css)
   instead of inventing a new gap value. */
.home_hero-banner__cta-group {
  position: relative;
  flex-wrap: wrap;
}

/* Figma node 375:108 (default) / 375:110 (hover). Sizing (width/height/
   display/gap) still goes through btn-custom's own --icon-* custom-
   property mechanism (see elements/buttons/buttons.css's .btn-custom:after)
   — those never contain a url(), so they're safe. background-image is
   set directly below on .home_hero-banner__cta:after/:hover:after
   instead of through --icon/--icon-hover: a relative url() inside a
   custom property resolves against the stylesheet that USES the
   var() (buttons.css, at elements/buttons/), not the one that DECLARES
   the property's value (this file) — so --icon: url('/themes/custom/gff/templates/components/home_hero-banner/css/../images/...')
   here was actually being resolved as elements/images/... (404) once
   substituted into buttons.css's own background-image: var(--icon) rule.
   Declaring background-image directly here instead keeps the url()
   relative to this file, where it actually resolves correctly. */
.home_hero-banner__cta {
  position: relative;
  text-decoration: none;
  /* Figma's text layer is literally typed "LEARN MORE" — the Twig
     source string stays sentence-case ('Learn More'|t), same i18n
     reasoning as .home_hero-banner__scroll-label's own uppercase. */
  text-transform: uppercase;
  --btn-height: 34px;
  --btn-width: auto;
  --btn-x-padding: var(--sp6);
  --btn-border-radius: 999px;
  --btn-fs: var(--fs-12);
  /* Default bg — overriding --btn-primary-clr (not --bg-color directly)
     keeps btn-custom's own var chain intact (--bg-color: var(--btn-primary-clr)
     in elements/buttons/buttons.css), same pattern already used for the
     hover state below. */
  --btn-primary-clr: var(--clr-blue-300);
  --text-color: var(--clr-gray-950);
  --btn-active-bg-clr: var(--clr-teal-600);
  --btn-active-clr: var(--clr-gray-950);
  --icon-width: 22px;
  --icon-height: 12px;
  --icon-display: block;
  --icon-text-gap: 10px;
}

/* Figma's Hover variant (375:110) reuses the exact same icon as Default
   (375:108) — only the button's own background changes, the arrow
   doesn't — so both rules point at the same asset, not a separate
   yellow-stroked "hover" icon (that one's built for a different button
   that turns black on hover elsewhere in the project; it would clash
   with this button's teal hover bg). */
.home_hero-banner__cta:after,
.home_hero-banner__cta:hover:after {
  background-image: url('/themes/custom/gff/templates/components/home_hero-banner/css/../images/hero-carousel-cta-arrow.svg');
}

/* 2nd/4th/... button in a multi-button row swaps rest<->hover bg: starts
   in the default's own hover color (teal-600) and transitions to the
   default's own rest color (blue-300) on hover — rest and hover states
   reversed, not bg/text reversed. Text color is gray-950 in both states
   either way, so --text-color is untouched. */
.home_hero-banner__cta-group .home_hero-banner__cta:nth-child(even) {
  --btn-primary-clr: var(--clr-teal-600);
  --btn-active-bg-clr: var(--clr-blue-300);
}

/* === Goal 1/Goal 2 cards (Figma node 646:332/646:333) ===
   Optional, rendered when slide.goals is set. The "Country Progress"
   button below it (Figma's 646:346) isn't a separate element - it's
   just this slide's own cta, reusing the existing cta-row/btn-custom
   markup. These two rules are the only goals-specific thing applied to
   it: adjacent-sibling selector, so cta-row must render directly after
   .home_hero-banner__goals for this to match (see twig doc comment). */

/* Goal-card slides narrow/center the whole content column (title-group,
   goals, cta-row) instead of letting it fill the card's full width. */
.home_hero-banner__content-inner:has(.home_hero-banner__goals) > * {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* .home_hero-banner__desc reads as a secondary lead-in line here (e.g.
   "It helps countries strengthen ... through four approaches:" right
   above the goal/step cards), not the slide's own primary copy - the
   default body-text-field-lg size (--fs-21/31px line-height, below) was
   sized for THAT primary-copy role and reads oversized paired with cards
   this narrow. Matches the reference's own .sm2 (15.5px) for this exact
   pairing - --fs-15 is this project's nearest existing token. Slides
   without goals are completely unaffected (:has() only matches a
   .content-inner that actually contains .home_hero-banner__goals). */
.home_hero-banner__content-inner:has(.home_hero-banner__goals) .home_hero-banner__desc.body-text-field-lg {
  font-size: var(--fs-15);
  line-height: 1.45;
}

/* :not(:has(.home_hero-banner__prefix)) - the stretched/full-width/teal
   treatment below is specifically the ORIGINAL Figma "Country Progress"
   bar (2 goal cards, no prefix_text, nothing to its left). Once prefix_text
   IS present (e.g. the FASTR step-card slide's "All backed by ..." lead-
   in), stretching the button full-width leaves the prefix sitting alone
   on its own line above an oversized bar - reported bug, screenshot. That
   combination now falls through to the plain default cta-row/btn-custom
   styling instead (prefix left of button, same row, auto width/height/
   color) - exactly like every non-goal slide already renders it. */
.home_hero-banner__goals + .home_hero-banner__cta-row:not(:has(.home_hero-banner__prefix)) {
  align-self: stretch;
  width: 100%;
}

.home_hero-banner__goals + .home_hero-banner__cta-row:not(:has(.home_hero-banner__prefix)) .home_hero-banner__cta-group {
  flex: 1;
}

.home_hero-banner__goals + .home_hero-banner__cta-row:not(:has(.home_hero-banner__prefix)) .home_hero-banner__cta {
  --btn-width: 100%;
  --btn-height: 50px;
  --btn-border-radius: 999px;
  /* Figma's bar is teal (#1FA29C), not this button's own default
     --btn-primary-clr (blue-300) - .btn-custom already centers its
     text+icon (display:flex;justify-content:center), so no layout
     change needed here, just the color swap. --clr-teal-600 (the
     default --btn-active-bg-clr here) is NOT used as the hover for
     this one - it's #0FA29C vs this rest state's #1FA29C, a 1-digit
     hex difference that's practically invisible; the normal blue-300
     -> teal-600 default hover elsewhere in this file has real contrast
     because it's a hue change, not because teal-600 itself stands out
     against teal-500. --clr-blue-300 (same hover color as the goal
     cards right above it) gives this one real contrast instead. */
  --btn-primary-clr: var(--clr-teal-500);
  --btn-active-bg-clr: var(--clr-blue-300);
  --text-color: #1A1A1A;
}

.home_hero-banner__goals {
  display: flex;
  align-items: stretch;
  gap: var(--sp3);
  align-self: stretch;
}

.home_hero-banner__goal-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  gap: var(--home-hero-banner-goal-card-gap);
  padding: var(--sp6);
  background: var(--home-hero-banner-goal-card-bg);
  border: 1px solid transparent;
  border-radius: var(--home-hero-banner-goal-card-radius);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home_hero-banner__goal-card:hover {
  background: var(--home-hero-banner-goal-card-hover-bg);
  border-color: var(--home-hero-banner-goal-card-hover-border-clr);
}

/* No link_url (twig renders a <div>, not <a>, and drops the focus-count/
   arrow pill entirely - see home_hero-banner.html.twig) - flat translucent
   card instead of the default navy one, no hover state (nothing to hover,
   not interactive). Declared after the default :hover rule above so this
   own :hover override (same resting values - a no-op) wins on specificity
   ties via source order. */
.home_hero-banner__goal-card--static {
  background: var(--home-hero-banner-goal-card-static-bg);
  border-color: var(--home-hero-banner-goal-card-static-border-clr);
}

.home_hero-banner__goal-card--static:hover {
  background: var(--home-hero-banner-goal-card-static-bg);
  border-color: var(--home-hero-banner-goal-card-static-border-clr);
}

/* FASTR-style numbered step card (GFF_FASTR_Slide_5_Compact_Options.html's
   "4 - Step strip" option, .st/.st b) - an additional opt-in look for
   static/no-link cards whose own kicker is a short step number rather than
   a "Goal N" label. Stacked on top of --static (which already supplies the
   translucent bg/dropped link-area) instead of baked into it - a no-link
   card's kicker isn't always short enough to read well as a circle (e.g.
   "Goal 2"), so this stays a separate, explicit modifier.
   Padding/gap/min-height/title font-size below match the reference's own
   .st values exactly (padding:12px, gap:10px, min-height:92px, font-size:
   13px/500/1.35) - the default goal-card's own padding:24px/gap:16px/
   title font-size:16px (below) read oversized once 4 of these sit side by
   side in the same row instead of 2. */
.home_hero-banner__goal-card--step {
  gap: 10px;
  padding: 12px;
  min-height: 92px;
}

.home_hero-banner__goal-card--step .home_hero-banner__goal-title {
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  line-height: 1.35;
}

/* goal.section_description is rendered |raw (twig) - CMS rich text, so it
   can arrive wrapped in its own <p> (or similar) carrying a WYSIWYG
   default font-size that would otherwise override the 13px set just
   above. Forces every child back to the step card's own compact size
   instead of fighting it per rich-text tag. */
.home_hero-banner__goal-card--step .home_hero-banner__goal-title > * {
  font-size: inherit;
}

.home_hero-banner__goal-card--step .home_hero-banner__goal-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  align-self: flex-start;
  width: 26px;
  height: 26px;
  background: var(--clr-yellow-orange);
  color: #13253B;
  border-radius: 50%;
  font-size: var(--fs-13);
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
}

.home_hero-banner__goal-kicker {
  color: var(--clr-yellow-orange);
  font-weight: var(--fw-bold);
  font-size: var(--fs-14);
  line-height: 14px;
  text-transform: uppercase;
}

.home_hero-banner__goal-title {
  color: var(--clr-white);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-16);
  line-height: 24px;
}

.home_hero-banner__goal-focus {
  --btn-active-bg-clr: var(--clr-teal-600);
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: var(--sp3);
  height: 30px;
  padding: 0 var(--sp6);
  background: var(--home-hero-banner-focus-pill-bg);
  border-radius: 999px;
  color: #1A1A1A;
  font-weight: var(--fw-bold);
  font-size: var(--fs-12);
  line-height: 13px;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

/* Hovering the card lightens both the card's own background (above)
   and this inner pill together. */
.home_hero-banner__goal-card:hover .home_hero-banner__goal-focus {
  background: var(--btn-active-bg-clr);
}

/* Normal flow, right after .home_hero-banner__pagination (same shared,
   not-per-slide element either way) — .home_hero-banner__scroll-link
   below is already display:flex;flex-direction:column;align-items:center,
   which as a block-level flex box fills this element's own full width
   and centers its icon+label within that, so no extra centering needed
   here beyond the top gap. */
.home_hero-banner__scroll {
  margin-top: var(--sp6);
}

.home_hero-banner__scroll .home_hero-banner__scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--clr-white);
  text-decoration: none;
}

.home_hero-banner__scroll-icon-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  margin-bottom: var(--home-hero-banner-scroll-icon-gap);
}

.home_hero-banner__scroll-icon {
  display: block;
  width: 32px;
  height: 32px;
}

/* The real Figma icon (SVG) is a static mouse outline with one still
   line inside — the scroll-wheel bounce animation base.css's older
   CSS-only icon had got lost when that was swapped for the real asset.
   Restored as a small bar overlaid on the icon's own wheel-line position
   (x centered, y≈8px in the 32x32 icon). base.css's existing @keyframes e
   can't be reused as-is — its top:-55px/-40px values are absolute
   offsets tuned for that older icon's zero-height-div trick, not a
   relative delta, so applying it here would just snap this bar to
   top:-55px (outside this icon's real 32px box) instead of animating
   from its actual 8px resting position. Same opacity-fade-while-moving-
   down shape, recalibrated to this icon's own coordinates instead. */
.home_hero-banner__scroll-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  background: var(--clr-white);
  border-radius: 1px;
  animation: home-hero-banner-scroll-dot 2s infinite;
}

@keyframes home-hero-banner-scroll-dot {
  0% {
    opacity: 0;
    top: 8px;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    top: 18px;
  }
}

.home_hero-banner__scroll-label {
  margin: 0;
  color: var(--clr-white);
  font-family: var(--primary-ff);
  font-weight: var(--fw-semibold);
  font-size: 12px;
  line-height: 12px;
  text-align: center;
  white-space: nowrap;
  /* Figma's text layer is literally typed "SCROLL DOWN" — the Twig source
     string stays sentence-case ('Scroll Down'|t) so translators aren't
     handed an oddly-cased string to translate; this is what actually
     renders it uppercase visually. */
  text-transform: uppercase;
}

/* === Pagination dots === */
.home_hero-banner__pagination.swiper-pagination {
  position: relative;
  bottom: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--home-hero-banner-dot-gap);
  margin-top: var(--sp6);
}

.home_hero-banner__pagination .swiper-pagination-bullet {
  width: var(--home-hero-banner-dot-size);
  height: var(--home-hero-banner-dot-size);
  margin: 0;
  background: var(--home-hero-banner-dot-color);
  opacity: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 0 !important;
}

/* Not scoped to :not(.swiper-pagination-bullet-active) - hovering the
   already-active dot just re-applies its own existing color (a visual
   no-op), so excluding it would be unnecessary extra specificity. */
.home_hero-banner__pagination .swiper-pagination-bullet:hover {
  background: var(--home-hero-banner-dot-active-color);
}

.home_hero-banner__pagination .swiper-pagination-bullet:focus-visible {
  outline: 2px solid var(--clr-white);
  outline-offset: 2px;
}

.home_hero-banner__pagination .swiper-pagination-bullet-active {
  background: var(--home-hero-banner-dot-active-color);
}

/* === Highlights section container ===
   #highlights is also the .skip-intro scroll-down link's target.
   components/highlights__layout owns .highlights__layout's own styling
   (grid, cards, chart rings) but sets no outer width/centering/spacing of
   its own — that's this component's job: centered at max-width:1300px to
   match the "Numbers" row's own fixed Figma width (node 377:143, without
   this .highlights__items' grid would stretch edge-to-edge instead), and
   side padding matching the section's own minimum floor. No top margin —
   spacing above this block is whatever the carousel above it already
   ends on. The outer frame's 100px bottom padding lives on
   .home_hero-banner itself (see its own padding-bottom), not here. */
.hero-banner-bottom {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--sp8);
}

@media screen and (max-width:1600px) {
  .home_hero-banner__slide {
    padding-top: 0;
  }

}
