/* ============================================================================
   ragazzi-benefits.css - CARRIED from
   ragazzi-site/pdp-gels/css/sections/benefits.css.

   A CUSTOM section: a heading over a drag-scrolling rail of photo cards, with
   prev/next arrows and a DOT rail between them. Dawn has no section that pairs a
   scroller with dot pagination, and the design's card is a photo with a title and
   a paragraph - no product behind it, so `featured-collection` and `multicolumn`
   both model the wrong thing.

   RENAMED, 1:1:  .benefits  ->  .ragazzi-benefits   (children unchanged)

   IT REUSES THE THEME'S SLIDER TEMPLATE, and that is the whole reason the rail
   works: `assets/ragazzi-slider.css` + `ragazzi-slider.js` are the static's
   shared slider, already carried for the home page and improved since (the
   drag/click swallower). In the STATIC that template is scoped to a list of
   section names - `.athletes, .benefits, .blog, .ingredients, .reviews` - and the
   theme collapsed that list into ONE class, `.ragazzi-slider`. So the rail here
   must carry `ragazzi-slider` or it silently loses every property this file does
   not restate, starting with `scrollbar-width: none`. Playbook §8.5 names this
   exact trap; `.benefits` was in that list, so the static's rail was covered and
   ours would not have been.

   PAGE DEFAULTS from css/pdp-gels-page.css are scoped onto the section root
   below, in that page's own mobile-first band shape.

   No `url()` anywhere in the file - the two arrows are `<img>` in the markup, and
   the card photo is per-block data.
============================================================================ */

/* ---------------------------------------------------------------------------
   WHY EVERY SELECTOR IN THIS FILE DOUBLES ITS ROOT CLASS
   (`.ragazzi-X.ragazzi-X ...` rather than `.ragazzi-X ...`).

   `ragazzi-slider.css` is a SHARED template that five sections link, and it
   carries one rail's own look baked in - card size, and `.carousel-controls`
   absolutely centred over the rail, which is how the HOME rails overlay their
   arrows. Its rules and this section's are both (0,2,0), so the winner is source
   order - and every section emits its OWN `<link>` for the template. Put two such
   sections on one page and the template appears twice, the second copy landing
   after the first section's stylesheet and flipping every tie it had won.

   Measured: adding `ingredients` below `benefits` resized the benefits cards from
   319.5x534.1 to 425x637 AND pulled the arrow row into the middle of the section
   instead of the bottom. EIGHT selectors collide, not one - `.slides-blocks`,
   `.slides-blocks.is-dragging`, its `::-webkit-scrollbar`, `.slide-wrapper`,
   `.carousel-controls`, `.carousel-btn`, `.carousel-btn img`, `.carousel-btn:hover`.

   Patching them one at a time is how the first attempt missed the arrows. Doubling
   the root instead lifts EVERY rule in the file to (0,3,0)+ in one mechanical
   pass: it matches exactly the same elements and it restores the static's own
   intent, where this file simply loaded after the template and always won.

   The better fix is to move the rail-specific rules OUT of the shared template,
   but reviews, blog and athletes all carry `ragazzi-slider` on the home page, so
   that needs its own verified pass. Flagged, not silently attempted.
--------------------------------------------------------------------------- */


/* ---------------------------------------------------------------------------
   PAGE DEFAULTS - PORT: they sit on `body.page-pdp-gels` in the static.
--------------------------------------------------------------------------- */
.ragazzi-benefits.ragazzi-benefits {
  --font-body: "Onest", system-ui, sans-serif;
  --text-body: clamp(12px, calc(14px + (var(--max-vw) - 375px) * 0.015), 29px);
}

@media (min-width: 768px) {
  .ragazzi-benefits.ragazzi-benefits {
    --text-body: clamp(14px, calc(14px + (var(--max-vw) - 768px) * 0.025), 20px);
  }
}

@media (min-width: 1024px) {
  .ragazzi-benefits.ragazzi-benefits {
    --text-body: clamp(11px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px);
  }
}

/* ---------------------------------------------------------------------------
   SECTION TOKENS — moved out of the page's tokens.css.

   Read by THIS block and nothing else on the site, so they belong here rather
   than in a site-wide :root. In Shopify a section can be dropped onto any
   template from the theme editor, so a section that reads a token from a
   page-level scope breaks the moment it is moved; scoped to the block's own
   class, it travels with it.

   EVERY band is carried verbatim from the old tokens.css, in that file's own
   order — so the cascade is unchanged whether the page was written
   desktop-first (base + max-width overrides) or mobile-first (base +
   min-width overrides). Verified by computed-style diff at
   375/768/1024/1440/1920.
--------------------------------------------------------------------------- */

.ragazzi-benefits.ragazzi-benefits {
  --color-ink:          #000000;
  --color-nav-ring:     #e8e1d4;
  --color-dot-inactive: #d4cdbc;
  --color-dot-active:   #1a1a1a;
  --text-eyebrow:       clamp(15px, calc(18px + (var(--max-vw) - 375px) * 0.015), 37px);
  --ls-eyebrow:         0em;
}

@media (min-width: 768px) {
  .ragazzi-benefits.ragazzi-benefits {
    --text-eyebrow: clamp(18px, calc(18px + (var(--max-vw) - 768px) * 0.025), 25px);
  }
}

@media (min-width: 1024px) {
  .ragazzi-benefits.ragazzi-benefits {
    --text-eyebrow: clamp(13px, calc(25px * (var(--max-vw) / var(--vw-base))), 25px);
    --ls-eyebrow:   0.0252em;
  }
}

/* --- Measured geometry, as fluid custom properties -------------------------
   Every number is from brief/benefits.md §2.4, which measured it off the node.
   Sub-pixel values (45.714 / 12.698 / 0.899) are kept exact and rounded only by
   the renderer — D-B11. The three nav colours are PAGE tokens
   (--color-nav-ring / --color-dot-inactive / --color-dot-active), added to
   brief-page.md §4.4 by the driver; they are used, never redeclared. */
.ragazzi-benefits.ragazzi-benefits {
  /* h2 block -> card row. NOT the same as the row -> nav gap on desktop: the
     Figma `Heading 3` frame is a FIXED 55.873px while its own 65px/110% text
     box is 72px, so the descender band eats into the drawn 60px gap. The
     measured invariant the audit checks is `.slides-blocks` top = 115.873px
     below the section's padding-box top; with a real 71.5px line box that
     leaves 44.373px of gap, not 60. Mobile needs no correction (frame 70 ==
     text 70). See brief/benefits.md §2.3. */
  --benefits-head-gap: clamp(17.07px, calc(20px + (var(--max-vw) - 375px) * 0.015), 40.91px);
  /* card row -> nav row */
  --benefits-nav-row-gap: clamp(17.07px, calc(20px + (var(--max-vw) - 375px) * 0.015), 40.91px);

  --benefits-card-w: clamp(221.87px, calc(260px + (var(--max-vw) - 375px) * 0.015), 531.79px);
  --benefits-card-gap: clamp(8.53px, calc(10px + (var(--max-vw) - 375px) * 0.015), 20.45px);
  --benefits-photo-h: clamp(296.11px, calc(347px + (var(--max-vw) - 375px) * 0.015), 709.73px);
  /* photo -> paragraph block */
  --benefits-media-gap: clamp(8.53px, calc(10px + (var(--max-vw) - 375px) * 0.015), 20.45px);
  /* card title -> card body */
  --benefits-text-gap: clamp(8.53px, calc(10px + (var(--max-vw) - 375px) * 0.015), 20.45px);

  --benefits-nav-h: clamp(48.92px, calc(57.324px + (var(--max-vw) - 375px) * 0.015), 117.25px);
  --benefits-nav-gap: clamp(15.34px, calc(17.973px + (var(--max-vw) - 375px) * 0.015), 36.76px);
  --benefits-arrow-size: clamp(27.61px, calc(32.352px + (var(--max-vw) - 375px) * 0.015), 66.17px);
  --benefits-arrow-bw: clamp(0.77px, calc(0.899px + (var(--max-vw) - 375px) * 0.015), 1.84px);
  --benefits-icon-w: clamp(13.8px, calc(16.176px + (var(--max-vw) - 375px) * 0.015), 33.09px);
  --benefits-icon-h: clamp(10.74px, calc(12.581px + (var(--max-vw) - 375px) * 0.015), 25.73px);
  --benefits-dot-size: clamp(7.67px, calc(8.987px + (var(--max-vw) - 375px) * 0.015), 18.38px);
  --benefits-dot-gap: clamp(7.67px, calc(8.987px + (var(--max-vw) - 375px) * 0.015), 18.38px);

  /* The mobile right bleed is EXACTLY the section's own right gutter, written
     as that gutter and not as a literal 20px, so the two can never drift apart
     under fluid scaling (D-B3). It is zeroed at 1024, where the 1720px content
     box already is the full track width. */
  --benefits-bleed: var(--container-pad);

  /* `.ragazzi-benefits` and `.container` are the SAME element — a `padding` SHORTHAND
     here would wipe the gutter (build-pitfalls). Longhand only, at every
     breakpoint. `--section-py` is the page default 40 / 100, which is exactly
     this section's measured padding. */
  padding-block: var(--section-py);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--benefits-head-gap);
  /* Pattern A (D-B9): the section fill #ffffff is the page background, so there
     is no visible band. No background is painted and no --bleed modifier. */
}

.benefits__title {
  /* NOT `.title` — `css/templates/slider.css` owns that bare class and would
     force #2C2C2C / 24px (FD-71, NAMING GUARD in components.css). */
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: var(--lh-tight); /* Figma 110% on BOTH layers — a real measured
                                   percentage, not an FD-88 `100%` placeholder */
  letter-spacing: 0;
  color: var(--color-ink);
  text-align: left;
}

/* --- The slider ------------------------------------------------------------
   `.slides-wrapper` / `.slides-blocks` / `.slide-wrapper` / `.carousel-controls`
   / `.carousel-btn` / `.prev` / `.next` are JS-BOUND contract classes that
   `js/slider.js` queries — copied verbatim, never renamed (slider/ADAPT.md).
   Only their VALUES are replaced here. */

.ragazzi-benefits.ragazzi-benefits .slides-wrapper {
  /* The section's own flex gap sits between h2 and this wrapper; the SECOND
     gap — track -> controls — has to be re-created INSIDE it. Two explicit
     gaps, because one flex gap cannot cover both (D-B8), and on desktop they
     are different values (44.373 vs 60). */
  display: flex;
  flex-direction: column;
  gap: var(--benefits-nav-row-gap);
  /* the template's `position: relative` is kept — harmless, and it is what the
     absolute-overlay variant of this template relies on elsewhere */
}

.ragazzi-benefits.ragazzi-benefits .slides-blocks {
  /* Scroll comes from overflow-x on THIS element, whose width is the VIEWPORT
     (355 mobile / 1720 desktop), never the content total (1070 / 2150).
     Litmus, asserted at 375/768/1024/1920/2560: scrollWidth > clientWidth.
     A width cap here is the anti-pattern that silently kills the slider. */
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;      /* Figma alignItems: MIN — written explicitly so
                                   a future copy change cannot stretch a card */
  gap: var(--benefits-card-gap);
  overflow-x: auto;
  /* No `overflow-y` is declared: with `overflow-x: auto` the other axis already
     computes to `auto`, and the track's height is content-driven, so nothing can
     overflow it vertically. Writing `hidden` here would only add a silent-clip
     risk if a future copy change made one card taller. */
  scroll-snap-type: x mandatory;
  /* `auto`, never `smooth`: CSS-level smooth fights mandatory snap and makes
     the prev/next buttons read dead. slider.js passes behavior:'smooth' per
     call, so nothing is lost (D-B2). */
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* No `touch-action` is set on purpose. The paired contract in
     build-pitfalls #5: `touch-action: pan-y` would block the native horizontal
     swipe, and slider.js implements MOUSE drag only — no touchmove handler. So
     the container stays at the default `auto` and the browser owns the swipe. */

  /* template resets */
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding: 0;                   /* template ships `padding: 0 10px` */

  /* Mobile one-gutter right bleed (D-B3): the viewport is 355 at x=20, i.e. it
     runs to the frame's right edge, which is what makes card 2 peek off-screen
     instead of being cut inside the gutter. Applied to `.slides-blocks` ONLY —
     the nav row is its sibling and must stay at 335. Width stays the VIEWPORT
     (335 + 20 = 355) while the content is 1070, so this is not the
     wrapper-stretch fake: scrollWidth > clientWidth still holds. */
  width: calc(100% + var(--benefits-bleed));
  margin-right: calc(-1 * var(--benefits-bleed));
}

/* `.ragazzi-benefits .slides-blocks` above is specificity (0,2,0) and loads AFTER the
   template, so it silently outranks the template's OWN state variant
   `.slides-blocks.is-dragging` — also (0,2,0). Re-state it here at (0,3,0) or
   snap stays mandatory for the whole drag and the track comes out in steps
   instead of following the cursor (slider/ADAPT.md, D-B2). `slider.js` toggles
   this class; do not rename it. */
.ragazzi-benefits.ragazzi-benefits .slides-blocks.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.ragazzi-benefits.ragazzi-benefits .slides-blocks::-webkit-scrollbar {
  display: none;
}

.ragazzi-benefits.ragazzi-benefits .slide-wrapper {
  /* Template demo values (281x400 / 425x637, radius 12-20px, overflow hidden,
     snap-align center) are DEMO ARTIFACTS — deleted, not carried over. This
     card has no radius, no border, no shadow and no clipping in Figma. */
  flex: 0 0 var(--benefits-card-w);
  width: var(--benefits-card-w);
  height: auto;
  border-radius: 0;
  overflow: visible;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--benefits-media-gap);
}

/* With mandatory snap, the LAST slide also needs the track's END as a snap
   point — otherwise its own start offset sits beyond maxScroll and the end of
   the list is unreachable (slider/ADAPT.md; desktop offsets 0/435/870/1305/1740
   against a maxScroll of 430). The mobile last VISIBLE slide is card 4, handled
   in the media query below. */
.ragazzi-benefits.ragazzi-benefits .slide-wrapper:last-child {
  scroll-snap-align: end;
}

.benefits__card-photo {
  /* Figma: a frame with an IMAGE fill, scaleMode FILL, no crop transform —
     i.e. object-fit: cover, object-position: center. ONE file shared by all 9
     photo nodes across both layers (identical imageHash), so this is the same
     src five times by design (D-B5), not a missed dedupe. */
  width: 100%;
  height: var(--benefits-photo-h);
  object-fit: cover;
  object-position: center;
  /* The two layers' box ratios differ by 0.2% (0.7493 vs 0.7509), so the height
     is set per layer rather than shared through one `aspect-ratio`. */
}

.benefits__card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--benefits-text-gap);
  width: 100%;
}

.benefits__card-title {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  line-height: var(--lh-tight);       /* Figma 110%, both layers */
  /* Per-layer difference that is NOT a rounding artefact: the mobile node
     reports letterSpacing "0%" and the desktop node "2.52%". `--ls-eyebrow` is
     the page token that already flips 0em -> 0.0252em at 1024. Figma % / 100 =
     em; never px. */
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;          /* Figma textCase: UPPER — the HTML keeps
                                         the source casing so a `characters`
                                         diff matches */
  color: var(--color-ink);
  /* Measured single line on both layers (glyphs 212 of a 260 box on mobile,
     305 of 410 on desktop) — and still single-line at the fluid minima
     (176.7 of 221.87, and 158.6 of 218.67). Required by brief §5.2: a wrap here
     would add a line to every card and break the measured card heights
     (438 mobile / 686 desktop). */
  white-space: nowrap;
}

.benefits__card-text {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);        /* Figma 120%, both layers */
  letter-spacing: 0;
  color: var(--color-ink);
}

/* --- Controls: prev · dots · next ------------------------------------------
   FD-84 / D-B8. The template pins `.carousel-controls` as an absolute,
   pointer-events:none overlay centred OVER the track, with the buttons
   absolutely placed at left/right 30px, a #DED6D8 fill, 44x44 and a 9x15 icon.
   Figma draws them in STATIC FLOW below the row, centred, flanking the dots,
   transparent with a #e8e1d4 ring. Every one of those values is replaced;
   only the class NAMES survive, because slider.js queries them. */
.ragazzi-benefits.ragazzi-benefits .carousel-controls {
  position: static;
  top: auto;
  left: auto;
  transform: none;           /* MUST be reset: `translate(-50%,-50%)` still
                                applies to a statically-positioned element and
                                would shift the whole row up and left */
  width: 100%;
  min-height: var(--benefits-nav-h);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;   /* Figma's `padding: [0,70.77,0,70.77]` on mobile
                                is INERT — its content (235.45) is wider than
                                the resulting content box (193.46), so Figma
                                centres past the padding and the result is
                                identical to plain centring. Desktop's
                                [0,100,0,100] is respected but invisible for the
                                same reason. Omitted on both layers. */
  gap: var(--benefits-nav-gap);
  pointer-events: auto;      /* template sets `none` for the overlay variant */
}

.ragazzi-benefits.ragazzi-benefits .carousel-btn {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;           /* same trap as above — the template's
                                `translateY(-50%)` survives `position: static` */
  flex: 0 0 auto;
  width: var(--benefits-arrow-size);
  height: var(--benefits-arrow-size);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--benefits-arrow-bw);   /* Figma inner pad == the ring width */
  background: transparent;             /* Figma emits NO fill; template ships
                                          #DED6D8 */
  border: var(--benefits-arrow-bw) solid var(--color-nav-ring);
  border-radius: var(--radius-pill);   /* Figma "fully round" — fixed, never
                                          scaled (D-B11) */
  transition: none;
}

/* Figma draws no hover variant for either arrow; the template's
   `background: #cfc7c9` would invent one. */
.ragazzi-benefits.ragazzi-benefits .carousel-btn:hover {
  background: transparent;
}

.ragazzi-benefits.ragazzi-benefits .carousel-btn img {
  /* template ships 9x15 */
  width: var(--benefits-icon-w);
  height: var(--benefits-icon-h);
  display: block;
}

/* NOTE — nothing here styles `.carousel-btn:disabled`. `slider.css` hides a
   disabled arrow unconditionally (`display: none`), contradicting slider.js's
   own contract and killing the PREV arrow on first paint; css/components.css
   already re-asserts `display: flex; opacity: 1` page-wide (FD-86). Figma draws
   both arrows at rest, identically, with no muted state — so per BA-4 the
   disabled arrow stays visible and unchanged. Do not re-hide or dim it. */

.benefits__dots {
  /* The slider template ships NO dot pagination at all (FD-84) — this strip and
     js/benefits.js are new, bound to the same scroller. */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--benefits-dot-gap);
}

.benefits__dot {
  /* Real <button>s, not <span>s: Figma names them `Button …` and they are
     focusable controls (D-B7). */
  flex: 0 0 auto;
  width: var(--benefits-dot-size);
  height: var(--benefits-dot-size);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-dot-inactive);
  cursor: pointer;
}

/* State, driven by js/benefits.js — NOT hardcoded on the third dot. Figma's
   `#1a1a1a` on dot 3 at scrollLeft 0 is a static mock of a mid-scroll state;
   the built page starts on dot 1 (D-B6). Hardcoding it would be a P1 (D-B7). */
.benefits__dot[aria-current="true"] {
  background: var(--color-dot-active);
}

/* ============================================================================
   PSEUDO-TABLET 768-1023 — mandatory, has-tablet-layer: false.
   Card COUNT follows the MOBILE branch (4) all the way to 1023 (D-B4), so the
   5th card and the 5th dot stay hidden here and the right bleed still applies.
============================================================================ */
@media (min-width: 768px) {
  .ragazzi-benefits.ragazzi-benefits {
    --benefits-head-gap: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 44.373px);
    --benefits-nav-row-gap: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 60px);
    --benefits-card-w: clamp(260px, calc(260px + (var(--max-vw) - 768px) * 0.025), 410px);
    --benefits-card-gap: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 25px);
    --benefits-photo-h: clamp(347px, calc(347px + (var(--max-vw) - 768px) * 0.025), 546px);
    --benefits-media-gap: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 20px);
    --benefits-text-gap: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 20px);
    --benefits-nav-h: clamp(57.324px, calc(57.324px + (var(--max-vw) - 768px) * 0.025), 81px);
    --benefits-nav-gap: clamp(17.973px, calc(17.973px + (var(--max-vw) - 768px) * 0.025), 25.397px);
    --benefits-arrow-size: clamp(32.352px, calc(32.352px + (var(--max-vw) - 768px) * 0.025), 45.714px);
    --benefits-arrow-bw: clamp(0.899px, calc(0.899px + (var(--max-vw) - 768px) * 0.025), 1.27px);
    --benefits-icon-w: clamp(16.176px, calc(16.176px + (var(--max-vw) - 768px) * 0.025), 22.857px);
    --benefits-icon-h: clamp(12.581px, calc(12.581px + (var(--max-vw) - 768px) * 0.025), 17.778px);
    --benefits-dot-size: clamp(8.987px, calc(8.987px + (var(--max-vw) - 768px) * 0.025), 12.698px);
    --benefits-dot-gap: clamp(8.987px, calc(8.987px + (var(--max-vw) - 768px) * 0.025), 12.698px);
  }
}

/* Below 1024 the 5th card and the 5th dot do not exist in the Figma mobile
   layer (4 cards: 3100:3072/3077/3082/3087). They stay in the DOM and are
   suppressed, so the measured mobile scrollWidth (4 x 260 + 3 x 10 = 1070) is
   reproduced exactly. Shipping 4 cards on BOTH layers would make the desktop
   scrollWidth 1720 — no overflow, dead arrows; shipping 5 on both would make
   mobile 1340 instead of 1070 (D-B4). */
@media (max-width: 1023px) {
  /* PORT: TWO RULES DROPPED HERE, and one re-expressed.

     `.slide-wrapper:nth-child(5) { display: none }` and its matching
     `.benefits__dot:nth-child(5)` were a FRAME CENSUS, not a rule: Figma drew
     five cards on the desktop layer and four on the mobile one, and the export
     turned that count into CSS. In a block-driven section it is actively wrong -
     with six cards it hides the FIFTH and shows the sixth, which means nothing -
     and a drag-scroller has no reason to hide a card at any width, because it
     scrolls. Every block now renders on every band, and the dot rail emits one
     dot per card. (Playbook §10.5.)

     The snap rule said "card 4 is the last one on this band", which was true only
     while card 5 was hidden. `:last-child` says the same thing about whatever the
     last card actually IS, so the rail still stops cleanly instead of dragging
     itself back mid-track once the count changes. */
  .ragazzi-benefits.ragazzi-benefits .slide-wrapper:last-child {
    scroll-snap-align: end;
  }
}

/* ============================================================================
   DESKTOP 1024+
   5 cards x 410 + 4 gaps x 25 = 2150 inside a 1720 clip -> 430px of scroll.
   Card 5 starts at 1740, i.e. 20px past the clip edge, so its peek is ZERO —
   the arrows and dots are the affordance here, not a peek. C(5) > V(4), so
   `slide-no-arrows` is NOT used; BA-4 keeps edge arrows visible, so
   `slide-no-active-arrows` is not used either.
============================================================================ */
@media (min-width: 1024px) {
  .ragazzi-benefits.ragazzi-benefits {
    --benefits-head-gap: clamp(23.67px, calc(44.373px * (var(--max-vw) / var(--vw-base))), 44.373px);
    --benefits-nav-row-gap: clamp(32px, calc(60px * (var(--max-vw) / var(--vw-base))), 60px);
    --benefits-card-w: clamp(218.67px, calc(410px * (var(--max-vw) / var(--vw-base))), 410px);
    --benefits-card-gap: clamp(13.33px, calc(25px * (var(--max-vw) / var(--vw-base))), 25px);
    --benefits-photo-h: clamp(291.2px, calc(546px * (var(--max-vw) / var(--vw-base))), 546px);
    --benefits-media-gap: clamp(10.67px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px);
    --benefits-text-gap: clamp(10.67px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px);
    --benefits-nav-h: clamp(43.2px, calc(81px * (var(--max-vw) / var(--vw-base))), 81px);
    --benefits-nav-gap: clamp(13.55px, calc(25.397px * (var(--max-vw) / var(--vw-base))), 25.397px);
    --benefits-arrow-size: clamp(24.38px, calc(45.714px * (var(--max-vw) / var(--vw-base))), 45.714px);
    --benefits-arrow-bw: clamp(0.68px, calc(1.27px * (var(--max-vw) / var(--vw-base))), 1.27px);
    --benefits-icon-w: clamp(12.19px, calc(22.857px * (var(--max-vw) / var(--vw-base))), 22.857px);
    --benefits-icon-h: clamp(9.48px, calc(17.778px * (var(--max-vw) / var(--vw-base))), 17.778px);
    --benefits-dot-size: clamp(6.77px, calc(12.698px * (var(--max-vw) / var(--vw-base))), 12.698px);
    --benefits-dot-gap: clamp(6.77px, calc(12.698px * (var(--max-vw) / var(--vw-base))), 12.698px);

    /* No bleed on desktop: the 1720px content box already IS the full track
       width (the scroll viewport is 1720 = 1920 - 2 x 100). */
    --benefits-bleed: 0px;
  }
}

/* ---------------------------------------------------------------------------
   PORT - carried from ragazzi-site/pdp-gels/css/pdp-gels-components.css, a
   PAGE-level file that overrides the shared slider template for this whole page.
   Missing it is what made the swap test disagree: the template hides a disabled
   arrow (`display: none`), and on pdp-gels a disabled arrow stays VISIBLE and
   simply stops responding. `slider.js` disables `prev` at scroll position 0, so
   without this the left arrow vanishes on load and the row re-centres.

   Scoped to the SECTION instead of the static's `:where(.page-pdp-gels)` - the
   theme has no such body class, and per-section is the better scope anyway: the
   HOME rails keep the template's own behaviour of hiding a dead arrow, which is
   what they were built and verified against.

   The static's third rule, `[data-content-needed] { color: #666; font-style:
   italic }`, is a build-pipeline placeholder marker and is NOT carried (§10.5).
--------------------------------------------------------------------------- */
.ragazzi-benefits.ragazzi-benefits .carousel-controls .carousel-btn:disabled {
  display: flex;
  opacity: 1;
  cursor: default;
}

.ragazzi-benefits.ragazzi-benefits .slides-wrapper.slide-no-active-arrows .carousel-controls .carousel-btn:disabled,
.ragazzi-benefits.ragazzi-benefits .slides-blocks.slide-no-active-arrows + .carousel-controls .carousel-btn:disabled {
  display: none;
}
