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

   A CUSTOM section: a full-bleed band with a heading, an intro, a "view
   supplement facts" disclosure, and a drag-scrolling rail of ingredient cards
   with its own dot rail. Same reasoning as benefits - no stock Dawn section
   pairs a scroller with dots, and the card has no product behind it.

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

   IT REUSES THE THEME'S SLIDER TEMPLATE, so the rail carries `ragazzi-slider`.
   In the static the template is scoped to
   `:is(.reviews, .athletes, .blog, .benefits, .ingredients)` and the theme
   collapsed that list into one class - `.ingredients` was IN that list, so the
   static's rail was covered for free and ours would not be (playbook §8.5).

   ZERO `nth-child` in this file - checked. Unlike benefits, nothing here encodes
   a card count, so there was no frame census to unpick.

   PAGE DEFAULTS from css/pdp-gels-page.css are scoped onto the section root
   below, and the page-level slider override from css/pdp-gels-components.css is
   carried at the end - a disabled arrow stays VISIBLE on this page, which the
   shared template otherwise hides.
============================================================================ */

/* ---------------------------------------------------------------------------
   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-ingredients.ragazzi-ingredients {
  --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-ingredients.ragazzi-ingredients {
    --text-body: clamp(14px, calc(14px + (var(--max-vw) - 768px) * 0.025), 20px);
  }
}

@media (min-width: 1024px) {
  .ragazzi-ingredients.ragazzi-ingredients {
    --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-ingredients.ragazzi-ingredients {
  --color-ink-900:      #161616;
  --color-ink-navy:     #040817;
  --color-nav-ring:     #e8e1d4;
  --color-dot-inactive: #d4cdbc;
  --color-dot-active:   #1a1a1a;
  --color-border-3:     #dddddd;
  --text-body-sm:       clamp(12px, calc(14px + (var(--max-vw) - 375px) * 0.015), 29px);
}

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

@media (min-width: 1024px) {
  .ragazzi-ingredients.ragazzi-ingredients {
    --text-body-sm: clamp(9px, calc(16px * (var(--max-vw) / var(--vw-base))), 16px);
  }
}

/* ---------------------------------------------------------------------------
   BLEED FRAME — moved here from the page's old base.css on 2026-08-15.

   The SITE base.css gives `.container--bleed` only `padding-inline: 0`; this
   page's base also gave it `max-width: none` plus a generic
   `.container--bleed > [class$="__content"]` child rule. Neither could be
   hoisted: taken site-wide, that child rule (0,2,0) out-specifies other pages'
   own `__content` rules and imposes this page's gutter on them — the exact
   poisoning css/pages/home.css already documents. So it comes to the two
   sections that are actually bleed, `ingredients` and `reviews`, which is also
   where Shopify needs it: the rule travels with the section.

   SPECIFICITY AND ORDER ARE THE POINT. The child selector is left at (0,2,0),
   NOT tightened to `.ragazzi-ingredients.container--bleed > …` (0,3,0) — that would
   start winning against `.ragazzi-ingredients .ingredients__content` below and put the
   page gutter back on a section that deliberately runs 0 / 116px. Same
   specificity, earlier in the file: the section still wins, exactly as it did
   when this lived in base.css.
--------------------------------------------------------------------------- */
.ragazzi-ingredients.ragazzi-ingredients.container--bleed {
  max-width: none;
}

.container--bleed > .ingredients__content {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---------------------------------------------------------------------------
   Section-scoped token. The ingredient card title is D 25 / M 20 and matches NO
   page token: `--text-h4` is D 25 / M 16 (that M-base belongs to the FAQ
   question alone). Same desktop value, different mobile value — the same
   "cannot be collapsed" case brief-page.md §4.3 already documents for
   body-lg vs body. Section-scoped on purpose: it never goes into tokens.css.
--------------------------------------------------------------------------- */
.ragazzi-ingredients.ragazzi-ingredients {
  /* D 13 / 25 / 25 · M 17 / 20 / 41 · weight 500 · lh 110% both layers */
  --ing-card-title: clamp(17px, calc(20px + (var(--max-vw) - 375px) * 0.015), 41px);

  /* card geometry, both layers (content-box widths — see .slide-wrapper) */
  --ing-card-w: clamp(222px, calc(260px + (var(--max-vw) - 375px) * 0.015), 532px);
  --ing-card-gap: clamp(9px, calc(10px + (var(--max-vw) - 375px) * 0.015), 20px);
  --ing-card-pad: clamp(17px, calc(20px + (var(--max-vw) - 375px) * 0.015), 41px);
  --ing-card-stack: clamp(9px, calc(10px + (var(--max-vw) - 375px) * 0.015), 20px);

  /* mobile nav cluster — FIXED px, never fluid (D-6). Every dimension in
     3100:3134 is a round number x 0.899 (32.352 = 36x.899, 17.973 = 20x.899,
     8.987 = 10x.899, 16.176 = 18x.899, 12.581 = 14x.899): one component
     uniformly scaled to 89.9%. Ship the literal Figma px, NOT the round
     pre-scale numbers — a 32.352px hit target that grows to 66px at 767 is not
     in the design. Colours come from the page tokens the driver added to §4.4
     (`--color-nav-ring` / `--color-dot-inactive` / `--color-dot-active`); they
     are NOT redefined here. */
  --ing-nav-btn: 32.352px;
  --ing-nav-gap: 17.973px;
  --ing-nav-pad: 70.771px;
  --ing-dot: 8.987px;
  --ing-nav-h: 57.324px;

  /* mobile: NO fill (transparent) + a 1px #dddddd hairline on the BOTTOM edge
     only. `strokeWidths` on 3100:3108 is {top:0,right:0,bottom:1,left:0}, so a
     scalar `border: 1px` would lie on three sides. This hairline is the
     section's only visual separator on mobile and must span the full 375px —
     which is exactly why the section is B-edge and full-bleed here. */
  border-bottom: 1px solid var(--color-border-3);
}

/* B-edge: ALL four paddings live on `.__content`, never on the `.container`
   element (a `padding` shorthand there wipes the gutter). base.css gives
   `.container--bleed > [class$="__content"]` the page gutter; this section needs
   116px desktop / 0 mobile instead, so both sides are re-stated as LONGHANDS at
   equal specificity and later source order. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* section stack gap: head -> cards -> nav. M 20 (17/41) · D 45 (24) */
  gap: clamp(17px, calc(20px + (var(--max-vw) - 375px) * 0.015), 41px);
  padding-top: clamp(34px, calc(40px + (var(--max-vw) - 375px) * 0.015), 82px);
  padding-bottom: clamp(34px, calc(40px + (var(--max-vw) - 375px) * 0.015), 82px);
  /* full-bleed on mobile: the head carries its own 20px gutter and the slider
     rail carries `5px 20px`, so the track can touch both viewport edges. */
  padding-left: 0;
  padding-right: 0;
}

/* --- Head ---------------------------------------------------------------- */
/* ONE block on both layers. Mobile nests the facts link inside the Title frame
   at gap 10; desktop lifts it out as a sibling at gap 45. Same distance, two
   nestings — expressed in CSS (25px stack + 20px margin above the link = 45),
   never by forking the markup. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(9px, calc(10px + (var(--max-vw) - 375px) * 0.015), 20px);
  /* the ONLY horizontal gutter on mobile (Figma 3100:3109 padding [0,20,0,20]) */
  padding-inline: var(--container-pad);
  text-align: left;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__title {
  font-size: var(--text-h2);
  font-weight: 500;
  /* mobile is a GENUINE explicit 110%: 2 x 32 x 1.1 = 70.4 ~ the drawn 70px box.
     Desktop is Figma AUTO and is overridden to `normal` below — see the 1024
     block and FD-88. */
  line-height: var(--lh-tight);
  color: var(--color-ink-900);
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__intro {
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: var(--lh-body);
  /* #040817 on mobile, #161616 on desktop — a real per-layer colour difference
     (3100:3111 vs 3100:1647), not drift. Both values are built. */
  color: var(--color-ink-navy);
}

/* Not an invented `nowrap`: it is required BY THE FIGMA LAYOUT. A hyphen is a
   soft break opportunity, so `GLP-1` splits across lines in the browser and not
   in Figma — measured at 375, where the mobile intro came out as
   "…its role in GLP-" / "1 activation…" against Figma's
   "…its role in" / "GLP-1 activation…". Scoped to that one token, never to the
   paragraph (which must keep wrapping to its 3 drawn lines). */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__nb {
  white-space: nowrap;
}

/* INTERACTIVE on both layers (BA-2): underlined bold copy whose label names an
   action. A <button>, not decorative text and not an <a href="#">. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__facts {
  width: 100%;
  padding: 0;
  font-size: var(--text-body-lg);
  font-weight: 700;
  line-height: var(--lh-body);
  color: var(--color-ink-navy);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  cursor: pointer;
}

/* --- The supplement facts MODAL ------------------------------------------
   Was a panel in the flow. The body is now the label photo, and a facts table
   at full section width between the intro and the card rail pushes the whole
   band apart — so it opens over the page instead.

   `position: fixed` and nothing in the way: `.ragazzi-ingredients` sets
   `transform: none` on itself (see the two rules further down), so no ancestor
   turns into a containing block and swallows the viewport positioning.

   Above --z-drawer (200), because the header bar is fixed and would otherwise
   sit on top of the veil. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer, 200) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  /* the gutter the dialog can never cross, so the close button stays reachable
     with a thumb on a short phone */
  padding: clamp(16px, 4vw, 40px);
}

/* `[hidden]` is the closed state and the only one. Dawn's reset gives every
   element `display` from its own rules, and this one declares `flex` — which
   beats the UA's `[hidden] { display: none }`. Restating it here is what keeps
   the attribute meaningful. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal[hidden] {
  display: none;
}

/* --- OPEN / CLOSE ANIMATION ---
   `[hidden]` still is the closed state; `is-open` is the PAINTED state, and the
   gap between them is the whole animation. The JS drops `hidden` first, forces
   a reflow, then adds `is-open` — a transition cannot run from `display: none`,
   so without that reflow the modal simply appears.

   Closing runs it backwards and `hidden` goes back on only after the transition
   (240ms in the JS, which is why the two numbers here are the numbers there).

   Fading the WRAPPER carries the veil and the dialog together; the dialog gets
   its own small rise on top of it, so the card arrives rather than blinks. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal {
  opacity: 0;
  /* the closing modal is still on the page for the length of the fade, and a
     transparent sheet that still swallows clicks is a dead page */
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal.is-open {
  pointer-events: auto;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal.is-open {
  opacity: 1;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal .ingredients__modal-dialog {
  transform: translateY(14px) scale(0.985);
  transition: transform 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal.is-open .ingredients__modal-dialog {
  transform: none;
}

/* The theme's standing answer to reduced motion: the state still changes, the
   movement does not happen. */
@media (prefers-reduced-motion: reduce) {
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__modal,
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__modal .ingredients__modal-dialog {
    transition: none;
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__modal .ingredients__modal-dialog {
    transform: none;
  }
}

/* `display: block` IS LOAD-BEARING. Dawn's base.css hides every empty element
   (`a, ul, dl, div, section, article, p, h1..h6 :empty { display: none }`), and
   a dimming layer is by definition an empty div — measured here first: the
   dialog opened over an UNDIMMED page and the veil's box was 0 x 0 with no
   rule anywhere setting its display. Dawn hits the same trap and answers it the
   same way, at `.cart-drawer__overlay:empty`. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-veil {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  /* 1200 and not a comfortable 900: the label is 1194px wide at native size and
     its small print is ~10px THERE. Any narrower and the modal renders the one
     thing it exists to show below the size it was typeset at. The body scrolls
     instead — a facts table that is legible and scrolls beats one that fits and
     cannot be read. */
  width: min(100%, 1200px);
  /* the dialog never outgrows the viewport; the BODY scrolls, not the page */
  max-height: 100%;
  background: var(--color-white);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-dialog:focus {
  outline: none;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--color-ink-900, #161616);
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-body {
  /* THE scroll container — and the one exception the JS page-lock looks for,
     so a drag over a long label still moves the label and not the page. */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(14px, 3vw, 24px);
}

/* The image is a <button> (see the section file): it is the zoom control. It
   has to look like nothing at all — no chrome, no background, no padding. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-zoom {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-zoom[aria-pressed='true'] {
  /* the button grows WITH the image it holds, so the scroll container measures
     a real box instead of an overflowing child */
  width: max-content;
  min-width: 100%;
  cursor: zoom-out;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

/* ZOOMED: the label goes to its native 1194px and the BODY pans, which is why
   the body is the scroll container and not the dialog. `min-width` and not
   `width`, so on a desktop already showing it at 1137 the zoom is a small step
   up rather than a jump backwards. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-zoom[aria-pressed='true'] .ingredients__modal-img {
  width: auto;
  min-width: 1194px;
  max-width: none;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-text {
  margin-top: clamp(12px, 2vw, 20px);
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--color-ink-navy);
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__modal-text > * + * {
  margin-top: 0.6em;
}

/* --- Slider wrapper (mobile) / grid wrapper (desktop) --------------------- */
/* The track and the control row are 20px apart on mobile, exactly like the rest
   of the section stack (Figma: track ends y=658, nav starts y=678). */
.ragazzi-ingredients.ragazzi-ingredients .slides-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(17px, calc(20px + (var(--max-vw) - 375px) * 0.015), 41px);
}

/* --- The track (mobile: a real slider) ------------------------------------ */
.ragazzi-ingredients.ragazzi-ingredients .slides-blocks {
  /* the template ships `margin-top: 20px` and `padding: 0 10px` demo chrome */
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--ing-card-gap);
  /* Figma 3100:3113 padding [5,20,5,20] */
  padding: clamp(4px, calc(5px + (var(--max-vw) - 375px) * 0.015), 10px)
           clamp(17px, calc(20px + (var(--max-vw) - 375px) * 0.015), 41px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  /* FD-73: the track has a 20px left gutter. With mandatory snap and
     `scroll-snap-align: start`, slide 1's snap point otherwise sits BEHIND that
     gutter and the first card can never settle flush. */
  scroll-padding-left: clamp(17px, calc(20px + (var(--max-vw) - 375px) * 0.015), 41px);
  /* The mirror of the above, for `scroll-snap-align: end` on the last slide.
     Without it the snapport's END edge is the raw container edge, so the final
     snap point lands 20px BEFORE `maxScroll`: the last card jams flush against
     the viewport (the track's own right gutter never appears) and `atEnd()` in
     slider.js never becomes true, so the `next` arrow can never reach its
     disabled state. Measured before the fix: scrollLeft settled at 1267 against
     a maxScroll of 1287, with `next.disabled === false` at the end of the rail. */
  scroll-padding-right: clamp(17px, calc(20px + (var(--max-vw) - 375px) * 0.015), 41px);
  /* AUTO, never `smooth`: CSS-level smooth fights mandatory snap (the scroller
     reads back at its old position, so the arrows look dead) and it also breaks
     screenshot audits. slider.js passes `behavior:'smooth'` per call, so no
     animation is lost. */
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* D-9: Figma says alignItems MIN and draws all cards at 422 because all four
     hold identical copy. `stretch` reproduces 422 for the drawn copy AND
     survives real copy of differing length once BA-1 lands. */
  align-items: stretch;
  /* NEVER an explicit width. Figma declares the frame 1793px but its content
     ends at 1090 — the 703px tail is a dragged artifact (D-8). A width cap is
     the documented dead-slider bug: the litmus is
     `scrollWidth > clientWidth` at 375. */
}

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

/* MUST-APPLY (FD-72). `.slides-blocks.is-dragging` in the template is (0,2,0);
   `.ragazzi-ingredients .slides-blocks` above is ALSO (0,2,0) and loads later, so it
   silently outranks the template's own state variant and snap stays mandatory
   for the whole drag — the track then comes out in steps instead of following
   the cursor. Nothing errors; the state simply stops existing. Re-stated here
   at (0,3,0). js/ingredients.js reuses the same class for dot navigation. */
.ragazzi-ingredients.ragazzi-ingredients .slides-blocks.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* --- Card ---------------------------------------------------------------- */
/* `content-box` is deliberate: Figma's stroke is `strokeAlignment: OUTSIDE`, so
   the 0.5px border must NOT eat the 260 / 510 content width (the media pane is
   exactly 260x260 mobile and 189x192 desktop). The drawn card is 261 / 511
   including the stroke, which is what Figma renders too. */
.ragazzi-ingredients.ragazzi-ingredients .slide-wrapper {
  box-sizing: content-box;
  flex: 0 0 var(--ing-card-w);
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  background: var(--color-white);
  border: 0.5px solid var(--color-ink-900);
  /* the cards are square: `cornerRadius` is absent on every card, media pane
     and text pane in both cache files. The template ships 12px/20px. */
  border-radius: 0;
  /* the template ships `overflow: hidden`; nothing here needs clipping and a
     clip would hide a real defect from every audit stage */
  overflow: visible;
  scroll-snap-align: start;
}

/* Without `end` the final slide's snap point lands past `maxScroll` and the last
   card is unreachable — every attempt to reach it is pulled back to the nearest
   earlier point (slider/ADAPT.md, measured on nooa-landing). */
.ragazzi-ingredients.ragazzi-ingredients .slide-wrapper:last-child {
  scroll-snap-align: end;
}

/* --- Card media pane ------------------------------------------------------ */
/* COVER, not Figma's CROP — and this reverses what this file used to say.

   The note here read: "CROP, not cover. Figma's fill is `scaleMode: CROP` with a
   per-layer `imageTransform`; the desktop crop keeps only ~65% of the source's
   width, so shipping the raw file WITHOUT the crop renders a visibly different
   photo." That observation was true, and it was about THE PHOTO IN THE MOCK.
   The transform it produced —
     mobile   width 100.21% height 100.9% left -0.16% top 0.16%
     desktop  width 152.7%  height 100.9% left -45.54% top -0.44%
   — is a pan-and-zoom chosen for one specific image. `block.settings.photo` is
   an image picker: the merchant changes the photo and those percentages frame
   someone else's subject, sliding the desktop card's image nearly half its own
   width off to the left.

   So the BOX is reproduced (1/1 on mobile, 189-wide and row-height on desktop)
   and `object-fit: cover` places whatever picture is in it. Framing stays
   adjustable, from the image picker rather than from here: the section passes
   Shopify's per-image focal point through as an inline `object-position`. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__media {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;   /* mobile 260 x 260 */
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__media img {
  position: absolute;
  inset: 0;
  /* base.css caps every img at `max-width: 100%`; this box sets its own size */
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ing-pos, 50% 50%);
}

/* --- Card copy ----------------------------------------------------------- */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: var(--ing-card-stack);
  padding: var(--ing-card-pad);
  text-align: left;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__card-title {
  font-size: var(--ing-card-title);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--color-ink-900);
}

/* D-11: the MOBILE title carries an AUTHORED break ("Appetite &" /
   "Craving Control"). Natural wrapping in the 220px content box would break as
   "Appetite & Craving" / "Control" — not the same. Desktop has no authored
   break and wraps naturally to 2 lines, so the <br> is switched off at 1024.
   PLACEHOLDER-DEPENDENT: when BA-1 delivers real ingredient names, delete the
   <br> in sections/ingredients.html and this rule with it. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__card-text {
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-ink-900);
}

/* --- Mobile control row (3100:3134) --------------------------------------- */
/* FD-84: the template ships NO dots strip and pins `.carousel-controls` as an
   absolute, pointer-events:none overlay centred OVER the slides. Figma puts the
   row in normal flow BELOW the track. Overridden scoped; `js/slider.js` and
   `css/templates/slider.css` are untouched. */
.ragazzi-ingredients.ragazzi-ingredients .carousel-controls {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  pointer-events: auto;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: var(--ing-nav-gap);
  min-height: var(--ing-nav-h);
  /* Figma's own 70.771px side padding, exact at and above the 375 design width.
     The `min()` is a GUARD, not a redesign: the cluster's intrinsic width is
     2x32.352 + 2x17.973 + 11x8.987 = 199.51px, so below ~375 a hard 70.771px
     would push it past the viewport — and html/body use `overflow-x: clip`,
     which would HIDE the overflow from every audit stage instead of showing it.
     At 375 the guard evaluates to (375-199.51)/2 = 87.7 -> 70.771 exactly. */
  padding-inline: min(var(--ing-nav-pad), calc((100% - 199.51px) / 2));
}

/* The template pins each button absolutely at left/right 30px with a #DED6D8
   fill and a 44px circle. Figma draws a 32.352px transparent ring. */
.ragazzi-ingredients.ragazzi-ingredients .carousel-btn {
  position: static;
  top: auto;
  transform: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ing-nav-btn);
  height: var(--ing-nav-btn);
  padding: 0.899px;
  background: transparent;
  border: 0.899px solid var(--color-nav-ring);
  border-radius: var(--radius-pill);
}

.ragazzi-ingredients.ragazzi-ingredients .carousel-btn.prev,
.ragazzi-ingredients.ragazzi-ingredients .carousel-btn.next {
  left: auto;
  right: auto;
}

/* the template's demo hover repaints the button #cfc7c9 */
.ragazzi-ingredients.ragazzi-ingredients .carousel-btn:hover {
  background: transparent;
}

/* FD-86, re-asserted at section scope. `slider.css` line 148 hides a disabled
   arrow unconditionally, and `slider.js` force-sets `prev.disabled = true`
   BEFORE its first `updateButtons()` — so the prev arrow is missing on first
   paint and the row is un-centred until the user scrolls. `css/components.css`
   already carries the page-level counter-rule; this repeat only makes the intent
   local and cascade-proof. Figma draws BOTH arrows identically at rest and gives
   no muted state to copy, so NO dimming is invented — `:disabled` stays
   meaningful to assistive tech without a visual change. Do not re-hide it. */
.ragazzi-ingredients.ragazzi-ingredients .carousel-controls .carousel-btn:disabled {
  display: flex;
  opacity: 1;
  cursor: default;
}

/* the template sizes every arrow glyph 9x15 */
.ragazzi-ingredients.ragazzi-ingredients .carousel-btn img {
  width: 16.176px;
  height: 12.581px;
  flex: 0 0 auto;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__dots {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--ing-dot);
}

/* D-4: ONE dot per slide (6 today, N after BA-1), first active at rest, updated
   from the track's scroll position and CLICKABLE — a dot rail that only reports
   state is half a control. Figma draws 8 dots named `Button - Card 1..8 of 12`
   over a 4-card track in a section headed "Eleven Ingredients": four different
   numbers, and the names are a verbatim paste from the `reviews` Judge.me widget
   (`Button - Previous review` / `Button - Next review` sit either side). Eight
   hardcoded dots over six slides would leave two permanently dead. */
.ragazzi-ingredients.ragazzi-ingredients .ingredients__dot {
  flex: 0 0 auto;
  width: var(--ing-dot);
  height: var(--ing-dot);
  padding: 0;
  background: var(--color-dot-inactive);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.ragazzi-ingredients.ragazzi-ingredients .ingredients__dot[aria-current="true"] {
  background: var(--color-dot-active);
}

/* ============================================================================
   PSEUDO-TABLET 768-1023 — the MOBILE PRESENTATION HOLDS (D-14).
   There is no tablet layer. The switch is at 1024, not 768: this is not a split
   layout but a slider-vs-grid MODE change, and the grid needs 3x272 + 2x17 =
   850px of content, which only exists once the desktop gutters take over. At 768
   the three-up would collapse to one-up, i.e. a WORSE slider with no controls.
   Only the vertical paddings and the type interpolate here.
============================================================================ */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .ragazzi-ingredients.ragazzi-ingredients {
    --ing-card-title: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 25px);
    --ing-card-w: clamp(260px, calc(260px + (var(--max-vw) - 768px) * 0.025), 510px);
    --ing-card-gap: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 32px);
    --ing-card-pad: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 20px);
    --ing-card-stack: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 20px);
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__content {
    gap: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 45px);
    padding-top: clamp(40px, calc(40px + (var(--max-vw) - 768px) * 0.025), 64px);
    padding-bottom: clamp(40px, calc(40px + (var(--max-vw) - 768px) * 0.025), 64px);
    /* horizontal stays 0 — the slider presentation holds through this band */
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__head {
    gap: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 25px);
  }

  .ragazzi-ingredients.ragazzi-ingredients .slides-wrapper {
    gap: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 45px);
  }

  .ragazzi-ingredients.ragazzi-ingredients .slides-blocks {
    padding: clamp(5px, calc(5px + (var(--max-vw) - 768px) * 0.025), 5px)
             clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 20px);
    scroll-padding-left: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 20px);
    scroll-padding-right: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 20px);
  }
}

/* ============================================================================
   DESKTOP 1024+ — the slider DISENGAGES and becomes a static wrapping grid.
   `3 x 510 + 2 x 32 = 1594` centred in 1688 gives exactly the drawn 47px side
   margins (Figma row 1 y=0, row 2 y=224 = 192 + 32).
   Sanity at the 1024 floor: content 1024 - 2x62 = 900; cards 3x272 + 2x17 = 850
   (853 with the outside strokes) <= 900. The wrap holds at every desktop width,
   and every token is constant above --vw-base (1920), so it holds at 2560 too.
============================================================================ */
@media (min-width: 1024px) {
  .ragazzi-ingredients.ragazzi-ingredients {
    --ing-card-title: clamp(13px, calc(25px * (var(--max-vw) / var(--vw-base))), 25px);
    --ing-card-w: clamp(272px, calc(510px * (var(--max-vw) / var(--vw-base))), 510px);
    --ing-card-gap: clamp(17px, calc(32px * (var(--max-vw) / var(--vw-base))), 32px);
    /* Every card in 3100:1705 is 510 x 192 — both rows, all six. The card states
       that as a RATIO (see `aspect-ratio` below), so no height token is needed. */
    --ing-card-pad: clamp(11px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px);
    --ing-card-stack: clamp(11px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px);
    /* desktop frame 3100:1644 has an explicit #ffffff fill and NO stroke */
    background: var(--color-white);
    border-bottom: 0;
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__content {
    gap: clamp(24px, calc(45px * (var(--max-vw) / var(--vw-base))), 45px);
    padding-top: clamp(34px, calc(64px * (var(--max-vw) / var(--vw-base))), 64px);
    padding-bottom: clamp(34px, calc(64px * (var(--max-vw) / var(--vw-base))), 64px);
    /* 116px, NOT the page default 100 -> content 1688. The 0 -> 62px step at
       1024 is intentional and verified (D-14): it coincides exactly with the
       slider -> grid switch. Do not "smooth" it. */
    padding-left: clamp(62px, calc(116px * (var(--max-vw) / var(--vw-base))), 116px);
    padding-right: clamp(62px, calc(116px * (var(--max-vw) / var(--vw-base))), 116px);
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__head {
    /* h2 -> intro is 25; intro -> link is 45 = this 25 + the 20 below */
    gap: clamp(13px, calc(25px * (var(--max-vw) / var(--vw-base))), 25px);
    padding-inline: 0;
    text-align: center;   /* the per-layer flip — mobile is left */
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__title {
    /* FD-88 / D-1. The cache says `fontSize 65, lineHeight "100%"` and draws an
       83px box: 65 x 1.0 = 65 != 83, and 83/65 = 1.277 = Onest's intrinsic
       leading. `figma_export.py` cannot distinguish Figma's AUTO from a real
       100% and renders both as "100%", so taking the cache literally shrinks
       this heading by 27.7%. The live node emits `leading-[normal]` here and
       explicit `leading-[1.1]` / `leading-[1.2]` for every other text node in
       the section. GATE_DOM grounds on the same contaminated cache, so a
       line-height delta reported on 3100:1646 is the ORACLE being wrong — do
       not "fix" this back to 1. */
    /* MERGE 2026-08-15: was `var(--lh-auto)`, a one-use token whose value was
       the keyword `normal` in every band. A constant is not a token. */
    line-height: normal;
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__intro {
    color: var(--color-ink-900);
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__facts {
    /* 25 (stack) + 20 (this) = the 45px Figma gap between the intro and the
       link, which is a SIBLING of the title frame on desktop and the 3rd CHILD
       of it on mobile. One markup, two nestings. */
    margin-top: clamp(11px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px);
    line-height: var(--lh-tight);
  }


  /* ---- the grid (3100:1705) — NOT a slider ---- */
  .ragazzi-ingredients.ragazzi-ingredients .slides-blocks {
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    align-items: stretch;
    gap: var(--ing-card-gap);
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
  }

  /* slider.js unconditionally writes `scroller.style.cursor = 'grab'` inline on
     every `.slides-blocks` it finds, including this one. An inline declaration
     can only be beaten by `!important`, and a grab cursor over a static grid is
     a visible lie about what the element does. Scoped and deliberate. */
  .ragazzi-ingredients.ragazzi-ingredients .slides-blocks {
    cursor: default !important;
  }

  /* THE CARD'S HEIGHT IS A RATIO, NOT ITS COPY. `flex-wrap: wrap` with
     `align-items: stretch` stretches each item to ITS OWN LINE's cross size, and
     a wrapped flex line is sized by its tallest item — so the two rows measured
     themselves independently and came out 193.8 and 147.1, a 46.7px step, with
     the photo pane shrinking along with the card (it takes its height from
     `align-self: stretch`).

     3100:1705 draws every card 510 x 192, so the card carries that proportion
     directly: width comes from `--ing-card-w`, height follows at 510/192 = 2.656
     and lands on 192 at 1920 and on the token's 272 floor / 102.4 at 1024. The
     rows are then equal by construction at every width, and neither one can be
     resized by an editor typing a longer sentence. */
  .ragazzi-ingredients.ragazzi-ingredients .slide-wrapper {
    flex: 0 0 var(--ing-card-w);
    aspect-ratio: 510 / 192;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    scroll-snap-align: none;
  }

  /* the card's two children are REVERSED on desktop: mobile media -> body,
     desktop body -> media. `order` rather than `row-reverse` because the card
     has no free main-axis space (321 + 189 = 510 exactly) and `order` reads
     unambiguously. */
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__card-body {
    order: -1;
    flex: 1 1 auto;
    /* the flexbox automatic minimum size, not a sizing mask: without it a flex
       item refuses to shrink below its min-content width, so at the 1024 floor
       a long unbreakable word in the card copy would push the 189px media pane
       out of the 272px card instead of wrapping. */
    min-width: 0;
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__media {
    /* 189 x 192 — a different aspect from mobile's 1/1, and a different crop.
       `align-self: stretch` (from the card) supplies the height, so the
       aspect-ratio is released here rather than fighting the equal-height row. */
    aspect-ratio: auto;
    align-self: stretch;
    width: auto;
    flex: 0 0 clamp(101px, calc(189px * (var(--max-vw) / var(--vw-base))), 189px);
  }

  .ragazzi-ingredients.ragazzi-ingredients .ingredients__media img {
    object-position: var(--ing-pos-desktop, var(--ing-pos, 50% 50%));
  }

  /* No band-specific image rule any more: the base cover fill serves both
     layers, and only the BOX differs between them (above). */

  /* D-11: no authored break on desktop — 3100:1708 wraps naturally to 2 lines */
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__br {
    display: none;
  }

  /* Desktop has ZERO navigation. There is no control node in 3100:1644 at all:
     the section's vertical auto-layout arithmetic closes without one
     (64 + 132 + 45 + 22 + 45 + 416 + 64 = 788 = the frame height). */
  .ragazzi-ingredients.ragazzi-ingredients .carousel-controls {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   PORT - carried from ragazzi-site/pdp-gels/css/pdp-gels-components.css, the
   PAGE file that overrides the shared slider for this whole page: a DISABLED
   arrow stays visible and simply stops responding, where the template hides it.
   `slider.js` disables `prev` at scroll 0, so without this the left arrow
   disappears on load. Scoped to the SECTION rather than the static's
   `:where(.page-pdp-gels)`, so the home rails keep the template's own behaviour.
--------------------------------------------------------------------------- */
.ragazzi-ingredients.ragazzi-ingredients .carousel-controls .carousel-btn:disabled {
  display: flex;
  opacity: 1;
  cursor: default;
}

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