/* ============================================================================
   ragazzi-footer.css — CARRIED from ragazzi-site/css/sections/footer.css.

   Host is DAWN'S OWN `sections/footer.liquid`, restyled in place — no fork, no
   parallel custom section. Every Dawn construct is carried verbatim: the block
   loop, `render 'social-icons'`, `payment_type_svg_tag` over
   `shop.enabled_payment_types`, the policy list, `powered_by_link`, the two
   localization forms and the newsletter `{% form 'customer' %}`. Features the
   design has no slot for are switched OFF through their existing settings in
   `footer-group.json`, never deleted.

   NO RENAME, and that is not an oversight: Dawn's footer root is ALSO `.footer`,
   and its children (`__content-top`, `__content-bottom`, `__column`,
   `__payment`, `__copyright`, `__list-social`) do not collide with a single one
   of the static's (`__content`, `__brand`, `__social*`, `__nav*`, `__legal`,
   `__copy`, `__pay*`). Checked name by name. This is the first section in the
   port where the static and the host agree on the root, so the carried
   selectors land on Dawn's markup as they are.

   THE 1920 CAP WAS NOT IN THIS FILE. It lived in the page-level
   `css/pages/home.css`, which is exactly the blind spot §10.4 of the playbook
   warns about — a section stylesheet read on its own looks like it has no cap at
   all. Carried below under PORT, with the `:where(.page-home)` scope dropped
   because a theme footer is global. Note the shape: the BAND stays full-bleed
   (`max-width: none`) and the CONTENT is capped and centred. A black footer band
   that stops at 1920 with page colour either side is not a thing storefronts do.

   Load order: this file is linked AFTER Dawn's `section-footer.css` and after the
   section's inline `{% style %}`, so every equal-specificity tie goes to it.

   ADAPTATION rules are at the END under their own banner. Everything above it is
   the static's, verbatim — edit the static and re-carry.
============================================================================ */
/* stitched from part3/css/sections/footer.css — unchanged except the token renames
   listed in css/tokens.css. Edit the PART, not this copy. */
/* ---------------------------------------------------------------------------
   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.
--------------------------------------------------------------------------- */

.footer {
  --font-display:  "Advercase", "Playfair Display", Georgia, serif;
  --gap-block:     clamp(34px, calc(40px + (var(--max-vw) - 375px) * 0.015), 82px);
  --text-link:     clamp(12px, calc(14px + (var(--max-vw) - 375px) * 0.015), 29px);
  --text-wordmark: clamp(54px, calc(63.46px + (var(--max-vw) - 375px) * 0.015), 130px);
}

@media (min-width: 768px) {
  .footer {
    --gap-block:     clamp(40px, calc(40px + (var(--max-vw) - 768px) * 0.025), 60px);
    --text-link:     clamp(14px, calc(14px + (var(--max-vw) - 768px) * 0.025), 18px);
    --text-wordmark: clamp(45px, calc(63.46px + (var(--max-vw) - 768px) * 0.025), 63.46px);
  }
}

@media (min-width: 1024px) {
  .footer {
    --gap-block:     clamp(32px, calc(60px * (var(--max-vw) / var(--vw-base))), 60px);
    --text-link:     clamp(10px, calc(18px * (var(--max-vw) / var(--vw-base))), 18px);
    --text-wordmark: clamp(24px, calc(45px * (var(--max-vw) / var(--vw-base))), 45px);
  }
}

/* ============================================================================
   footer.css — ragazzs-home Part 3, section 11 of 11
   Figma: desktop 3080:13839 (1920 x 550.111) · mobile 3080:14368 (375 x 568)

   Mobile-first. Base = mobile (375), then the MANDATORY pseudo-tablet band
   768-1023 (has-tablet-layer: false), then desktop at 1024.
   The layout switches at 1024, NOT 768 (D-F8): the 768-1023 band keeps the
   MOBILE shape (social first, 2-column link list, stacked legal, wordmark
   last) and only the tokens interpolate. Measured-safe at both ends — at 1024
   the desktop single-row list needs 838px inside a 917.3px content box.

   Section-local tokens live on `.footer`, never in :root — the global frame
   belongs to PAGE-SCAFFOLD. Everything shared (--container-pad, --section-py,
   --gap-block, --text-logo, --text-link, --text-body, --color-black,
   --color-white, --font-display, --font-body) is REUSED from css/tokens.css.

   FD-71 naming guard: css/templates/slider.css is linked page-wide and defines
   BARE .title / .slider-container / .slide-wrapper / .carousel-btn / .play-btn
   / .video-wrapper. Every class below is BEM-prefixed `footer__`. This section
   uses NO template (D-F2 — verified node-by-node, no row overflows its box).
============================================================================ */

.footer {
  /* --- Social row (§2 section-local tokens) ------------------------------ */
  --footer-social-box-w: clamp(27px, calc(32px + (var(--max-vw) - 375px) * 0.015), 65px);
  --footer-social-box-h: clamp(27px, calc(32px + (var(--max-vw) - 375px) * 0.015), 65px);
  --footer-social-glyph-h: clamp(21px, calc(24.033px + (var(--max-vw) - 375px) * 0.015), 49px);
  /* YouTube is the one glyph bounded by WIDTH, not height: 29.392 x 20.653 (M)
     / 37.272 x 26.191 (D) against 24.033 / 30.476 for the other four. Its own
     token, or a uniform height overflows the 32px hit box on mobile. The
     ratio 0.8594 is identical on both layers — measured, not fudged. */
  --footer-social-glyph-h-wide: clamp(18px, calc(20.653px + (var(--max-vw) - 375px) * 0.015), 42px);
  --footer-social-gap: clamp(20px, calc(23.657px + (var(--max-vw) - 375px) * 0.015), 48px);

  /* --- Nav link list ----------------------------------------------------- */
  /* colgap/rowgap are MOBILE-SHAPE-ONLY tokens (the desktop row is
     space-between with gap 0), so they have no D-base and keep their mobile
     clamp across the pseudo-tablet band. */
  --footer-nav-colgap: clamp(34px, calc(40px + (var(--max-vw) - 375px) * 0.015), 82px);
  --footer-nav-rowgap: clamp(4px, calc(5px + (var(--max-vw) - 375px) * 0.015), 10px);

  /* --- Payment badges ---------------------------------------------------- */
  --footer-pay-w: clamp(32px, calc(38px + (var(--max-vw) - 375px) * 0.015), 78px);
  --footer-pay-h: clamp(20px, calc(24px + (var(--max-vw) - 375px) * 0.015), 49px);
  --footer-pay-gap: clamp(9px, calc(10px + (var(--max-vw) - 375px) * 0.015), 20px);

  /* Pattern B-edge (D-F3): the black band IS the <footer> and reaches the
     viewport edges (x=0, width=frame width on both layers). The
     [100,100,100,100] / [40,20,40,20] padding goes on .footer__content, which
     base.css already gutters via `.container--bleed > [class$="__content"]`. */
  background: var(--color-black);
  color: var(--color-white);
}

.footer__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* Difference 1 + 2 (D-F9): on mobile the wordmark is the LAST block and the
     social row is a standalone FIRST block. Grid AREAS, not `order`, so the
     source (= desktop) order and the focus order stay intact. */
  grid-template-areas:
    "social"
    "nav"
    "legal"
    "brand";
  row-gap: var(--gap-block); /* 40 mobile — 3080:14368.gap */
  /* Vertical only: horizontal is base.css's --container-pad. NEVER a `padding`
     shorthand here — it would wipe the gutter. */
  padding-block: var(--section-py); /* 40 mobile / 100 desktop */
}

/* ----------------------------------------------------------------------------
   Wordmark — 3080:13841 (D) / 3080:14495 (M). Figma names both frames `Link`.
   Face = the SUBSTITUTED display stack (page-decisions.md, binding). Its text
   metrics can never match the Figma raster; only its block geometry can.
   --text-logo runs BACKWARDS across the band (63.46 mobile -> 45 desktop) —
   measured on both layers, not drift.
   D-F10: Figma hugs this to 329 inside a 335 box; ships at 100%, left-aligned.
---------------------------------------------------------------------------- */
.footer__brand {
  grid-area: brand;
  font-family: var(--font-display);
  font-size: var(--text-wordmark);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-white);
  text-align: left;
  /* QA-FIX P1-3 (2026-08-09). `white-space: nowrap` unconditionally is the same
     defect the responsive stage found on `.blog__title`, in the section that
     sweep did not cover. At 320px the wordmark's ink ran to 359.77 against a
     320 viewport and rendered "Ragazzi int" — clipped mid-word by
     `overflow-x: clip`, which is why `documentElement.scrollWidth` still read
     320 and every earlier stage passed it. Measured threshold: 365px.
     This is NOT the Advercase->Playfair substitution residual; the real face
     clips at 320 too. Letting it wrap keeps the whole wordmark; `nowrap`
     resumes at 366 — one pixel above the measured clip threshold and BELOW the
     drawn 375 frame, which must keep its single line. (380 was the first value
     written here and it was wrong: it would have wrapped the wordmark at 375,
     changing a drawn layer to fix a defect that only exists below 366.) */
  white-space: normal;
}

@media (min-width: 366px) {
  .footer__brand {
    white-space: nowrap; /* one word-pair; `whitespace-nowrap` in the live render */
  }
}

/* ----------------------------------------------------------------------------
   Social row — 3080:13843 (D) / 3080:14369 (M). Five SEPARATE links, five
   SEPARATE SVGs (D-F11): the exporter collapses the row into one
   `role: graphic` cluster and a baked strip cannot be five focus targets.
   D-F5: Figma draws boxes 1 and 4 at 40.635 tall and 2/3/5 at 40.0 (y 0.635);
   all five ship at one uniform box — max deviation 0.635px, uniform target.
---------------------------------------------------------------------------- */
.footer__social {
  grid-area: social;
  display: flex;
  align-items: flex-end; /* Figma alignItems: MAX on both layers */
  gap: var(--footer-social-gap);
  justify-self: start;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--footer-social-box-w);
  height: var(--footer-social-box-h);
  transition: opacity 150ms ease;
}

.footer__social-icon {
  height: var(--footer-social-glyph-h);
  width: auto;
}

.footer__social-icon--wide {
  height: var(--footer-social-glyph-h-wide);
}

/* ----------------------------------------------------------------------------
   Nav link list — 3080:13871 (D) / 3080:14396 (M).
   Difference 3 (D-F9): mobile column A = desktop items 5,6,7,4 and column B =
   1,2,3,8. That is NOT a column-fill of the desktop order, so `column-count`
   or a bare `grid-auto-flow: column` produces 1,2,3,4 | 5,6,7,8 — wrong.
   One <ul> in desktop order + explicit `order` per item, reset at >=1024.
---------------------------------------------------------------------------- */
.footer__nav {
  grid-area: nav;
}

.footer__nav-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  column-gap: var(--footer-nav-colgap); /* 40 — 3080:14396.gap */
  row-gap: var(--footer-nav-rowgap);    /* 5  — 3080:14397/14406.gap */
  justify-content: start;               /* columns hug at the left gutter */
  align-items: center;
}

.footer__nav-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-link);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--color-white);
  white-space: nowrap; /* per layer, mandatory — see the slice's §5.3 */
}

/* Mobile column fill order (Figma-measured, both columns top -> bottom):
   col A: Terms & Conditions, Privacy Policy, Shipping & Returns, Subscription
   col B: About Us, Community, Contact, Blog                                  */
.footer__nav-item--terms        { order: 1; }
.footer__nav-item--privacy      { order: 2; }
.footer__nav-item--shipping     { order: 3; }
.footer__nav-item--subscription { order: 4; }
.footer__nav-item--about        { order: 5; }
.footer__nav-item--community    { order: 6; }
.footer__nav-item--contact      { order: 7; }
.footer__nav-item--blog         { order: 8; }

/* ----------------------------------------------------------------------------
   Legal block — 3080:13888 (D) / 3080:14415 (M).
   D-F10: Figma hugs the mobile wrapper to 330 inside a 335 box; ships at 100%
   with its children left-aligned (Figma centres them inside the narrower hug,
   so the shift is 1-3px).
---------------------------------------------------------------------------- */
.footer__legal {
  grid-area: legal;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-block); /* 40 — 3080:14415.gap */
}

.footer__copy {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--color-white);
}

/* Payment badges — 3080:13891 (D) / 3080:14417 (M). Decorative-static (D-F4):
   <li><img>, never <a>. Difference 4 (D-F9): different ORDER per layer, and
   the row re-wraps 10-in-1-row (D) -> 7+3 (M). One <ul> in desktop order; the
   mobile `order` below plus the 335px content box forces the break after 7
   (7x38 + 6x10 = 326 fits; an 8th would need 374). */
.footer__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--footer-pay-gap);
}

.footer__pay-item {
  flex: 0 0 auto;
}

.footer__pay-icon {
  width: var(--footer-pay-w);
  height: var(--footer-pay-h);
}

/* Mobile badge order, read left-to-right off the live mobile render. */
.footer__pay-item--amex       { order: 1; }
.footer__pay-item--shoppay    { order: 2; }
.footer__pay-item--applepay   { order: 3; }
.footer__pay-item--unionpay   { order: 4; }
.footer__pay-item--diners     { order: 5; }
.footer__pay-item--visa       { order: 6; }
.footer__pay-item--discover   { order: 7; }
.footer__pay-item--gpay       { order: 8; }
.footer__pay-item--maestro    { order: 9; }
.footer__pay-item--mastercard { order: 10; }

/* ----------------------------------------------------------------------------
   States (BA-F3). Figma draws exactly one state per element, so hover styling
   is a documented default; a keyboard-visible focus ring is not optional.
   base.css's global focus ring is --color-ink on a pure-black band — invisible
   here — so these three scoped rules re-colour it white. Scoped, never global.
---------------------------------------------------------------------------- */
.footer__brand:hover,
.footer__brand:focus-visible,
.footer__nav-link:hover,
.footer__nav-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__social-link:hover {
  opacity: 0.7;
}

.footer__brand:focus-visible,
.footer__nav-link:focus-visible,
.footer__social-link:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* ============================================================================
   PSEUDO-TABLET 768-1023 — MANDATORY (has-tablet-layer: false).
   TOKENS ONLY. The LAYOUT stays mobile-shaped here (D-F8): without this band
   the desktop formula would fire at 768 and return value x 768/1920 = 40%.
   Accepted consequence, not a defect: the mobile wordmark is drawn to fill the
   335px gutter box but holds its 63.46px floor from 768 to 1023, so it stops
   filling. That is the band working as designed (FD-28) — do not raise it.
============================================================================ */
@media (min-width: 768px) {
  .footer {
    --footer-social-box-w: clamp(32px, calc(32px + (var(--max-vw) - 768px) * 0.025), 41px);
    --footer-social-box-h: clamp(32px, calc(32px + (var(--max-vw) - 768px) * 0.025), 40.635px);
    --footer-social-glyph-h: clamp(24.033px, calc(24.033px + (var(--max-vw) - 768px) * 0.025), 30.476px);
    --footer-social-glyph-h-wide: clamp(20.653px, calc(20.653px + (var(--max-vw) - 768px) * 0.025), 26.191px);
    --footer-social-gap: clamp(23.657px, calc(23.657px + (var(--max-vw) - 768px) * 0.025), 30px);

    --footer-pay-w: clamp(38px, calc(38px + (var(--max-vw) - 768px) * 0.025), 48.254px);
    --footer-pay-h: clamp(24px, calc(24px + (var(--max-vw) - 768px) * 0.025), 30.476px);
    --footer-pay-gap: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 20px);
  }
}

/* ============================================================================
   DESKTOP 1024+ — the layout actually changes here, not at 768.
============================================================================ */
@media (min-width: 1024px) {
  .footer {
    --footer-social-box-w: clamp(22px, calc(41px * (var(--max-vw) / var(--vw-base))), 41px);
    --footer-social-box-h: clamp(22px, calc(40.635px * (var(--max-vw) / var(--vw-base))), 40.635px);
    --footer-social-glyph-h: clamp(16px, calc(30.476px * (var(--max-vw) / var(--vw-base))), 30.476px);
    --footer-social-glyph-h-wide: clamp(14px, calc(26.191px * (var(--max-vw) / var(--vw-base))), 26.191px);
    --footer-social-gap: clamp(16px, calc(30px * (var(--max-vw) / var(--vw-base))), 30px);

    /* D-F7: the 31.111px nav band ships as MIN-height, never height. The items
       are 22px tall inside it (align-items: center, y 4.556); re-stating a
       content-derived height as a hard input is the FD-29 silent-clip trap.
       The 9.111px of slack reproduces the 152.111px row height on its own. */
    --footer-nav-minh: clamp(17px, calc(31.111px * (var(--max-vw) / var(--vw-base))), 31.111px);

    --footer-pay-w: clamp(26px, calc(48.254px * (var(--max-vw) / var(--vw-base))), 48.254px);
    --footer-pay-h: clamp(16px, calc(30.476px * (var(--max-vw) / var(--vw-base))), 30.476px);
    --footer-pay-gap: clamp(11px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px);

    --footer-legal-maxw: clamp(303px, calc(568.889px * (var(--max-vw) / var(--vw-base))), 568.889px);
  }

  /* Row 1 pairs wordmark + social (space-between); nav and legal are full
     width. row-gap 0 — every gap on this layer is carried by the rows' own
     padding, which is how 100 + 50 + 152.111 + 148 + 100 = 550.111 balances. */
  .footer__content {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand social"
      "nav    nav"
      "legal  legal";
    row-gap: 0;
    column-gap: 0;
  }

  .footer__brand {
    justify-self: start;
    align-self: center;
  }

  .footer__social {
    justify-self: end;
    align-self: center;
  }

  /* D-F12: the 1px rule is DESKTOP-ONLY (3080:13870, strokeAlignment INSIDE,
     strokeWidths {top:0,right:0,bottom:1,left:0} — bottom side only). Mobile
     has no rule anywhere; do not balance it with a second one. Not fluid. */
  .footer__nav {
    padding-block: var(--gap-block); /* 60 — 3080:13870.padding [60,0,60,0] */
    border-bottom: 1px solid var(--color-white);
  }

  /* D-F10: 3080:13871 is 1716.825 inside a 1720 content box — a 0.18% hug
     artifact (left edge flush at x 0, only the right falls short). Ships at
     100%; `Blog` then sits 3.175px further right than Figma. */
  .footer__nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--footer-nav-minh);
    column-gap: 0;
    row-gap: 0;
  }

  /* Flex honours `order` too, so the mobile column fill MUST be reset here. */
  .footer__nav-item {
    order: 0;
  }

  /* D-F10 again: 3080:13888 is 1716.825 wide — ships at 100%. */
  .footer__legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end; /* Figma alignItems: MAX — NOT stretch */
    gap: 0;
    padding-top: var(--gap-block); /* 60 — 3080:13888.padding [60,0,0,0] */
  }

  /* A real Figma max-width on the wrapper 3080:13889, not a hug. Without it
     the paragraph flows to one line and the space-between row collapses. */
  .footer__copy {
    max-width: var(--footer-legal-maxw);
  }

  .footer__pay {
    flex-wrap: nowrap;
    /* ten badges are 662.5 wide; as a shrinkable flex item the row was squeezed
       to what the copyright left and the badges ran off the right edge */
    flex-shrink: 0;
  }

  .footer__pay-item {
    order: 0;
  }
}


/* ============================================================================
   PORT — carried from the static's PAGE file, css/pages/home.css, not from its
   section file. Read the section file alone and this component looks uncapped.

   The band is deliberately full-bleed and the content box is what stops at 1920
   and centres. `:where(.page-home)` is dropped: a theme footer is not scoped to
   the home template. The `> ` child combinator is kept — it is what makes the
   rule land on the design's own content box and nothing nested deeper.
   ============================================================================ */

.footer {
  max-width: none;
}

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

/* ============================================================================
   ADAPTATION — Dawn reconciliation only. One specificity pass over the whole
   component, written up front rather than one rule per bug report; the reference
   note is explicit that a layer which grows past about a dozen reactive rules
   should be rebuilt instead.

   Grouped by what is being reconciled, and every value that exists in the design
   is taken from the carried custom properties above rather than restated as a
   number, so this block never becomes a second source of truth.
   ============================================================================ */

/* 1. Dawn draws a hairline above the footer and a second one above its bottom
      row, both from the colour scheme. The design has neither; its only rule is
      the white line under the nav, which the carried file draws. */
.footer {
  border-top: 0;
}

/* 2. Dawn's own vertical rhythm. `section-{id}-padding` is emitted from an inline
      `{% style %}` inside the section, so it would win on source order against a
      head stylesheet — but this file is linked from the section too, and after
      it. Both padding sliders are ALSO set to 0 in footer-group.json, which is
      the honest fix; this rule is the belt to that braces. */
.footer.section-footer-padding,
.footer[class*='-padding'] {
  padding-block: 0;
}

/* 3. Collapse Dawn's layout wrappers so the design's grid can own the layout.
      `display: contents` removes the box while keeping the DOM node — which
      matters because Dawn hangs its `scroll-trigger` / `data-cascade` animation
      hooks on exactly these elements. Deleting them would take the reveal with
      them. */
.footer__content-top,
.footer__blocks-wrapper,
.footer-block--newsletter {
  display: contents;
}

/* 4. The link-list block is NOT collapsed — it is the design's `.footer__nav`,
      and it needs a real box for its padding and its bottom rule.

      It also has to be UNSQUEEZED. Dawn assumes a lone footer block is a centred
      text column and ships
        `.footer-block:only-child:last-child { text-align: center; max-width: 76rem;
         margin: 0 auto }`
      at (0,3,0). This design has exactly one block, so it always matches: measured
      on the live store the nav sat at x 381 and 760px wide inside a 1361px content
      box, centred, instead of spanning it. The eight links are laid out with
      `justify-content: space-between`, so the squeeze is what makes them look
      bunched — the flex rule was doing its job inside a box that was too narrow.

      Answered at (0,4,0) rather than by source order, so a Dawn upgrade that
      reorders its stylesheets cannot bring the squeeze back. Verified after the fix:
      nav x 80 with the first link at the gutter and the last link's right edge at
      1441, exactly the content box's inner right edge.

      Dawn's `.footer-block.grid__item` margin is answered by the same rule;
      `grid__item` is additionally dropped from the markup because this footer uses
      no Dawn grid. */
.footer .footer__content .footer__nav.footer-block {
  max-width: none;
  width: auto;
  margin: 0;
  text-align: left;
}

/* 5. Social icons. The `social-icons` snippet is SHARED with the announcement
      bar, so it is left untouched and the design's classes arrive through its
      `class` parameter on the <ul> only. That leaves four Dawn declarations
      reaching the parts the parameter cannot label:
        `.list-social__link`      padding 1.1rem, colour from the scheme
        `.svg-wrapper`            a hard 20x20 box
        `.svg-wrapper > svg`      100%/100%, which would distort the aspect
        `.list-social__link:hover .icon`  a 1.07 scale the design does not have
      The design's own `:hover { opacity: .7 }` does land, because that class IS
      on the <a>. */
.footer__social .list-social__link {
  padding: 0;
  color: inherit;
}

.footer__social .svg-wrapper {
  width: auto;
  height: var(--footer-social-glyph-h);
}

.footer__social .svg-wrapper > svg {
  width: auto;
  height: 100%;
}

.footer__social .list-social__link:hover .icon {
  transform: none;
}

/* 6. Payment badges. Dawn's data wins over the design's fixed strip of ten: this
      renders the shop's REAL `shop.enabled_payment_types`, so the badges are the
      ones the store actually accepts. Consequently the design's per-brand
      `order:` rules have nothing to match and are dead — the order is Shopify's.
      `list-payment` and `list-payment__item` are dropped from the markup; only
      the svg needs holding, because it carries Dawn's `icon` class. */
.footer__pay .footer__pay-icon {
  width: var(--footer-pay-w);
  height: var(--footer-pay-h);
}

/* 7. The copyright line. Dawn's `.footer__copyright` is centred, and a
      (0,3,0) rule right-aligns it inside a wrapper this footer no longer emits —
      the wrapper divs were flattened away in the markup, so that selector cannot
      match and only the base rule needs answering. `.copyright__content` also
      forces 1.1rem, which the design's `--text-body` replaces. */
.footer .footer__copy {
  margin-top: 0;
  text-align: left;
}

.footer .footer__copy .copyright__content {
  font-size: inherit;
}

/* 7b. The store-name link inside the copyright went INVISIBLE on hover. Dawn ships
      three rules for it in `section-footer.css`:
        .copyright__content a       { color: rgba(var(--color-foreground), .75) }
        .copyright__content a:hover { color: rgb(var(--color-foreground)); … }
        .copyright__content a       { color: currentColor; text-decoration: none }
      The third wins at rest, which is why the resting state was correctly white —
      but the `:hover` rule is (0,2,1) and beats it whatever the order, and
      `--color-foreground` on this scheme is 18,18,18. Near-black type on the
      design's black band. Confirmed by reading the rules off the live CDN file
      rather than inferring them.

      Answered at (0,3,1). The hover treatment is the design's own — the same
      underline and offset `.footer__brand` and `.footer__nav-link` use — and the
      colour simply inherits, so it follows the band whatever scheme is set. */
.footer .footer__copy a,
.footer .footer__copy a:hover,
.footer .footer__copy a:focus-visible {
  color: inherit;
}

.footer .footer__copy a:hover,
.footer .footer__copy a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* 7c. Dawn fills a link-list block's heading with "Quick links" by default, and the
      design has no heading in the nav at all. Clearing the field in the editor is
      the match; this rule only makes the heading look native if a merchant keeps
      one, instead of leaving Dawn's own footer-block heading type on a black band. */
.footer .footer__nav .footer-block__heading {
  font-family: var(--font-body);
  font-size: var(--text-link);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--color-white);
  margin: 0 0 var(--footer-nav-rowgap);
}

/* 8. Dawn's empty localization column. Both selectors are switched off in
      footer-group.json, so the div renders empty and the base layer's
      `div:empty { display: none }` already hides it — but that rule is (0,0,1)
      and `.footer__column` sets `width: 100%`, which would make an empty flex
      item claim a whole row if a merchant ever turns a selector back on inside
      this design. Hidden explicitly, and left in the markup so the forms keep
      working the moment the design gains a slot for them. */
.footer__legal .footer__localization:empty {
  display: none;
}