/* ============================================================================
   Darts4You.lv — design system
   Built from the Claude Design handover, Foundations.dc.html (project
   86bd24b6-c7bd-4548-b767-4f1037974235). See docs/DARTS4YOU-REDESIGN.md.

   Layer order in layout/default:
     platform sections.css  ->  inline design_css  ->  THIS FILE
   so everything here wins. Section 12 re-skins the seed's own class names
   (btn, input, container, the account- and checkout- families) rather than
   replacing them, because the checkout and account pages are still seed Liquid
   and depend on them.

   NOTE: never let a star immediately followed by a slash appear inside a CSS
   comment - e.g. writing a glob such as "account-" plus star plus slash. That
   sequence closes the comment early and the parser then eats the next rule as
   part of a bogus selector. It silently destroyed the whole :root token block
   here on 2026-08-31: every var() fell back to nothing, while render_check
   still reported 200 with zero errors.
   ============================================================================ */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root{
  /* surfaces */
  --d4y-surface:#FFFFFF;
  --d4y-surface-alt:#FAFAF9;        /* stone-50  */
  --d4y-surface-sunken:#F5F5F4;     /* stone-100 */
  --d4y-dark-band:#292524;          /* stone-800 */
  --d4y-dark-band-deep:#1C1917;     /* stone-900 */

  /* text + lines */
  --d4y-text:#1C1917;               /* stone-900 · 17.49 AAA */
  --d4y-text-secondary:#57534D;     /* stone-600 ·  7.64 AAA */
  --d4y-text-tertiary:#79716B;      /* stone-500 ·  4.79 AA  */
  --d4y-text-disabled:#A9A8A7;      /* 38% blend             */
  --d4y-text-inverse-secondary:#D6D3D1; /* stone-300 · 10.18 AAA on the dark band */
  --d4y-dark-band-tint:#3B3735;     /* stone-800 lifted 8% — placeholder ground on dark */
  --d4y-hairline:#E7E5E4;           /* stone-200 */
  --d4y-hairline-strong:#D6D3D1;    /* stone-300 · decorative */

  /* brand — orange is action */
  --d4y-primary:#CA3500;            /* orange-700 · 5.22 AA */
  --d4y-primary-hover:#9F2D00;      /* orange-800 */
  --d4y-primary-pressed:#B53203;
  --d4y-primary-tint:#FFF7ED;       /* orange-50  */
  --d4y-primary-tint-strong:#FFEDD4;/* orange-100 */
  --d4y-brand-vivid:#F54900;        /* orange-600 · display only */
  --d4y-on-dark-accent:#FF8904;     /* orange-400 · on stone-800 */

  /* semantic */
  --d4y-sale:#E7000B;               /* red-600 · discounts ONLY */
  --d4y-error:#C10007;              /* red-700 · form errors    */
  --d4y-stock-ok:#008236;           /* green-700 */
  --d4y-stock-low:#FE9A00;          /* amber-500 */
  --d4y-stock-out:#79716B;          /* stone-500 · never red    */

  /* component-local fills lifted from Foundations */
  --d4y-tonal:#E7E5E4;
  /* §6's table steps the state layer WITH the surface (#EDEDEC on white, #E8E8E7 on
     stone-50). A control sitting inside a hovered card has #EDEDEC under it, not white,
     so its own hover is 8% of on-surface over that: #EDEDEC + 8% #1C1917 = #DCDCDB. */
  --d4y-hover-wash-on-wash:#DCDCDB;
  --d4y-tonal-hover:#D8D6D5;
  --d4y-tonal-pressed:#CDCBCA;
  --d4y-disabled-fill:#E4E3E3;
  --d4y-hover-wash:#EDEDEC;         /* neutral hover on white  */
  --d4y-pressed-wash:#E4E3E3;
  --d4y-primary-wash:#FBEFEB;       /* text-button hover       */
  --d4y-primary-wash-strong:#F9E7E0;
  --d4y-badge-new-bg:#FFF7ED;
  --d4y-badge-new-fg:#7E2A0C;
  --d4y-badge-low-bg:#FEF3C6;
  --d4y-badge-low-fg:#7B3306;
  --d4y-snackbar-action:#FFB86A;
  --d4y-histogram:#FFD6A7;

  /* type */
  --d4y-font-display:Archivo,"Archivo",system-ui,sans-serif;
  --d4y-font:"Instrument Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;

  /* shape + depth */
  --d4y-radius:8px;
  --d4y-radius-sm:4px;
  --d4y-radius-pill:999px;
  --d4y-shadow:0 4px 16px rgba(28,25,23,0.10);
  --d4y-shadow-menu:0 1px 3px rgba(28,25,23,0.12),0 4px 8px rgba(28,25,23,0.08);
  --d4y-shadow-strong:0 4px 16px rgba(28,25,23,0.20);
  --d4y-focus:0 0 0 2px #FFFFFF,0 0 0 4px var(--d4y-primary);

  /* layout */
  --d4y-container:1280px;
  --d4y-gutter:24px;
  --d4y-band:88px;                  /* vertical rhythm between bands */
  --d4y-usp-step:36px;              /* utility-strip row = window = keyframe distance */

  /* aliases the seed markup reads */
  --color-primary:var(--d4y-primary);
  --color-text:var(--d4y-text);
  --color-muted:var(--d4y-text-secondary);
  --color-bg:var(--d4y-surface);
  --color-surface:var(--d4y-surface-alt);
  --color-border:var(--d4y-hairline);
  --color-accent:var(--d4y-primary);
  --container:var(--d4y-container);
}

/* ---------- 2. Base ------------------------------------------------------ */
*,::before,::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--d4y-font);
  color:var(--d4y-text);
  background:var(--d4y-surface);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--d4y-primary);text-decoration:none}
a:hover{color:var(--d4y-primary-hover)}
:where(h1,h2,h3,h4){margin:0;line-height:1.2}
:where(p){margin:0}
button{font-family:inherit}
[hidden]{display:none!important}
:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--d4y-focus)}
@keyframes d4y-spin{to{transform:rotate(360deg)}}

.d4y-container{width:100%;max-width:var(--d4y-container);margin:0 auto;padding:0 var(--d4y-gutter)}
.d4y-band{padding-top:var(--d4y-band)}
.d4y-tabular{font-variant-numeric:tabular-nums}
.d4y-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- 3. Type scale ------------------------------------------------ */
/* Archivo carries a width axis; the display voice is condensed to 80%. */
.d4y-display-l,.d4y-display-m,.d4y-display-s,
.d4y-headline-l,.d4y-headline-m,.d4y-headline-s{
  font-family:var(--d4y-font-display);
  font-stretch:80%;
  font-weight:600;
  margin:0;
}
.d4y-display-l{font-size:57px;line-height:64px;letter-spacing:-0.25px;text-transform:uppercase}
.d4y-display-m{font-size:45px;line-height:52px;text-transform:uppercase}
.d4y-display-s{font-size:36px;line-height:44px}
.d4y-headline-l{font-size:32px;line-height:40px}
.d4y-headline-m{font-size:28px;line-height:36px}
.d4y-headline-s{font-size:24px;line-height:32px}

.d4y-title-l{font-size:22px;line-height:28px;font-weight:600}
.d4y-title-m{font-size:16px;line-height:24px;font-weight:600;letter-spacing:0.15px}
.d4y-title-s{font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.1px}

.d4y-body-l{font-size:16px;line-height:24px;letter-spacing:0.15px}
.d4y-body-m{font-size:14px;line-height:20px;letter-spacing:0.25px}
.d4y-body-s{font-size:12px;line-height:16px;letter-spacing:0.4px}

.d4y-label-l{font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px}
.d4y-label-m{font-size:12px;line-height:16px;font-weight:500;letter-spacing:0.5px}
.d4y-label-s{font-size:11px;line-height:16px;font-weight:500;letter-spacing:0.5px}

.d4y-muted{color:var(--d4y-text-secondary)}
.d4y-subtle{color:var(--d4y-text-tertiary)}

/* Wordmark — flat lockup, the only logo allowed on white. */
.d4y-wordmark{
  font-family:var(--d4y-font-display);font-stretch:80%;font-weight:700;
  letter-spacing:0.5px;text-transform:uppercase;color:var(--d4y-text);
  display:inline-block;
}
.d4y-wordmark .tld{color:var(--d4y-primary)}
.d4y-on-dark .d4y-wordmark,.d4y-dark-band .d4y-wordmark{color:#FFFFFF}
.d4y-on-dark .d4y-wordmark .tld,.d4y-dark-band .d4y-wordmark .tld{color:var(--d4y-on-dark-accent)}

/* ---------- 4. Buttons --------------------------------------------------- */
.d4y-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border:none;border-radius:var(--d4y-radius);
  font-family:var(--d4y-font);font-size:14px;font-weight:500;letter-spacing:0.1px;
  line-height:20px;text-decoration:none;cursor:pointer;
  transition:background-color .12s ease,border-color .12s ease,color .12s ease;
}
.d4y-btn:focus-visible{box-shadow:var(--d4y-focus)}
.d4y-btn[disabled],.d4y-btn[aria-disabled="true"]{cursor:not-allowed}

.d4y-btn--filled{height:48px;padding:0 24px;background:var(--d4y-primary);color:#FFFFFF}
.d4y-btn--filled:hover{background:var(--d4y-primary-hover);color:#FFFFFF}
.d4y-btn--filled:active{background:var(--d4y-primary-pressed)}
.d4y-btn--filled[disabled]{background:var(--d4y-disabled-fill);color:var(--d4y-text-disabled)}

.d4y-btn--tonal{height:44px;padding:0 20px;background:var(--d4y-tonal);color:var(--d4y-text)}
.d4y-btn--tonal:hover{background:var(--d4y-tonal-hover);color:var(--d4y-text)}
.d4y-btn--tonal:active{background:var(--d4y-tonal-pressed)}
.d4y-btn--tonal[disabled]{background:var(--d4y-disabled-fill);color:var(--d4y-text-disabled)}

.d4y-btn--outlined{height:44px;padding:0 20px;background:var(--d4y-surface);color:var(--d4y-text);border:1px solid var(--d4y-text-tertiary)}
.d4y-btn--outlined:hover{background:var(--d4y-hover-wash);color:var(--d4y-text)}
.d4y-btn--outlined:active{background:var(--d4y-pressed-wash)}
.d4y-btn--outlined[disabled]{border-color:var(--d4y-disabled-fill);color:var(--d4y-text-disabled);background:var(--d4y-surface)}

.d4y-btn--text{height:40px;padding:0 12px;background:transparent;color:var(--d4y-primary)}
.d4y-btn--text:hover{background:var(--d4y-primary-wash);color:var(--d4y-primary)}
.d4y-btn--text:active{background:var(--d4y-primary-wash-strong)}
.d4y-btn--text[disabled]{background:transparent;color:var(--d4y-text-disabled)}

.d4y-btn--block{width:100%}
.d4y-btn--card{height:44px;width:100%}

/* Loading — the spinner replaces the label. */
.d4y-btn.is-loading{cursor:wait}
.d4y-spinner{
  width:18px;height:18px;border-radius:50%;display:inline-block;flex:none;
  border:2px solid rgba(255,255,255,0.35);border-top-color:#FFFFFF;
  animation:d4y-spin .8s linear infinite;
}
.d4y-btn--tonal .d4y-spinner,.d4y-btn--outlined .d4y-spinner,.d4y-btn--text .d4y-spinner{
  border-color:rgba(28,25,23,0.25);border-top-color:var(--d4y-text);
}

/* Icon button — 44px hit target throughout. */
.d4y-icon-btn{
  width:44px;height:44px;padding:0;border:none;border-radius:50%;background:transparent;
  color:var(--d4y-text-secondary);cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;position:relative;
  transition:background-color .12s ease,color .12s ease;
}
.d4y-icon-btn:hover{background:var(--d4y-hover-wash);color:var(--d4y-text)}
.d4y-icon-btn:focus-visible{box-shadow:var(--d4y-focus)}
.d4y-icon-btn.is-active{background:var(--d4y-primary-tint-strong);color:var(--d4y-primary)}

/* Count badge (cart). Clamped to "99+" by the template. */
.d4y-count{
  position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 4px;
  background:var(--d4y-primary);color:#FFFFFF;border-radius:var(--d4y-radius-pill);
  font-size:11px;line-height:16px;font-weight:500;text-align:center;
  font-variant-numeric:tabular-nums;
}

/* Quantity stepper */
.d4y-qty{display:inline-flex;align-items:center;border:1px solid var(--d4y-text-tertiary);border-radius:var(--d4y-radius);height:44px}
.d4y-qty button{
  width:44px;height:44px;padding:0;border:none;background:transparent;font-size:18px;
  color:var(--d4y-text);cursor:pointer;line-height:1;
}
.d4y-qty button:first-child{border-radius:var(--d4y-radius) 0 0 var(--d4y-radius)}
.d4y-qty button:last-child{border-radius:0 var(--d4y-radius) var(--d4y-radius) 0}
.d4y-qty button:hover{background:var(--d4y-hover-wash)}
.d4y-qty button[disabled]{color:var(--d4y-text-disabled);cursor:not-allowed;background:transparent}
.d4y-qty .d4y-qty-value{
  width:40px;height:100%;align-self:stretch;padding:0;margin:0;box-sizing:border-box;
  text-align:center;font-family:var(--d4y-font);font-size:14px;line-height:20px;font-weight:500;
  font-variant-numeric:tabular-nums;border:none;background:transparent;color:var(--d4y-text);
  -moz-appearance:textfield;appearance:none;
}
.d4y-qty .d4y-qty-value::-webkit-outer-spin-button,
.d4y-qty .d4y-qty-value::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* ---------- 5. Inputs ---------------------------------------------------- */
/* Outlined field with a notched label sitting on the border. */
.d4y-field{position:relative;display:block}
.d4y-field > .d4y-field-label{
  position:absolute;top:-8px;left:12px;background:var(--d4y-surface);padding:0 4px;
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:0.5px;
  color:var(--d4y-text-secondary);pointer-events:none;z-index:1;
}
.d4y-input,.d4y-select,.d4y-textarea{
  width:100%;height:48px;padding:0 16px;
  border:1px solid var(--d4y-text-tertiary);border-radius:var(--d4y-radius);
  background:var(--d4y-surface);color:var(--d4y-text);
  font-family:var(--d4y-font);font-size:16px;line-height:24px;
  transition:border-color .12s ease;
}
.d4y-textarea{height:auto;min-height:120px;padding:12px 16px;resize:vertical}
.d4y-input::placeholder,.d4y-textarea::placeholder{color:var(--d4y-text-tertiary)}
.d4y-input:focus,.d4y-select:focus,.d4y-textarea:focus{
  outline:2px solid transparent;outline-offset:2px;border:2px solid var(--d4y-primary);padding:0 15px;
}
.d4y-textarea:focus{padding:11px 15px}
.d4y-field:focus-within > .d4y-field-label{color:var(--d4y-primary)}

.d4y-field.is-error .d4y-input,
.d4y-field.is-error .d4y-select,
.d4y-field.is-error .d4y-textarea{border:2px solid var(--d4y-error);padding:0 15px}
.d4y-field.is-error > .d4y-field-label{color:var(--d4y-error)}

.d4y-input[disabled],.d4y-select[disabled],.d4y-textarea[disabled]{
  border:1px solid var(--d4y-disabled-fill);background:var(--d4y-surface-alt);
  color:var(--d4y-text-disabled);cursor:not-allowed;
}
.d4y-field:has(.d4y-input[disabled]) > .d4y-field-label{color:var(--d4y-text-disabled)}

.d4y-help{font-size:12px;line-height:16px;letter-spacing:0.4px;color:var(--d4y-text-secondary);margin-top:4px;padding:0 16px}
.d4y-help--error{color:var(--d4y-error)}

/* Search field (header + filter sidebar) */
.d4y-search{
  display:flex;align-items:center;gap:12px;height:48px;padding:0 20px;
  border:1px solid var(--d4y-text-tertiary);border-radius:var(--d4y-radius);
  background:var(--d4y-surface);color:var(--d4y-text-tertiary);
}
.d4y-search svg{flex:none}
.d4y-search input{
  border:none;background:transparent;outline:2px solid transparent;outline-offset:2px;flex:1;min-width:0;align-self:stretch;
  padding:0;margin:0;-webkit-appearance:none;appearance:none;
  font-family:var(--d4y-font);font-size:14px;line-height:20px;color:var(--d4y-text);
}
.d4y-search input:focus-visible{box-shadow:none}
.d4y-search input::-webkit-search-decoration,
.d4y-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.d4y-search:hover{border-color:var(--d4y-text-secondary)}
.d4y-search:focus-within{border:2px solid var(--d4y-primary);padding:0 19px}
.d4y-search input::placeholder{color:var(--d4y-text-tertiary)}

/* ---------- 6. Chips + selection controls -------------------------------- */
.d4y-chip{
  height:32px;display:inline-flex;align-items:center;gap:8px;padding:0 16px;
  border:1px solid var(--d4y-text-tertiary);border-radius:var(--d4y-radius-pill);
  background:var(--d4y-surface);color:var(--d4y-text);
  font-size:14px;font-weight:500;letter-spacing:0.1px;cursor:pointer;
  text-decoration:none;transition:background-color .12s ease;
}
.d4y-chip:hover{background:var(--d4y-hover-wash);color:var(--d4y-text)}
.d4y-chip.is-selected{
  background:var(--d4y-primary-tint-strong);border-color:var(--d4y-primary-tint-strong);
  color:var(--d4y-primary);
}
/* `.d4y-chip:hover` sits ABOVE this at equal specificity, so a selected chip could not
   answer the pointer at all — the same fault as the current nav item earlier today.
   The styleguide's state table gives "+8% primary" over a selected orange-100 chip;
   #F7DEC6 is that pre-blend and is already what §39 uses for the equivalent menu row. */
.d4y-chip.is-selected:hover{background:#F7DEC6;border-color:#F7DEC6}
/* Applied-filter chip — filled, with a remove affordance. */
.d4y-chip--applied{background:var(--d4y-tonal);border-color:transparent;padding:0 12px 0 16px}
.d4y-chip--applied:hover{background:var(--d4y-tonal-hover)}
.d4y-chip--applied .d4y-chip-x{color:var(--d4y-text-secondary);cursor:pointer;font-size:14px;line-height:1}
/* Suggestion chip — recent searches. */
.d4y-chip--suggest{border-color:var(--d4y-hairline);color:var(--d4y-text-secondary)}

.d4y-check,.d4y-radio{display:flex;align-items:center;gap:12px;font-size:14px;line-height:20px;letter-spacing:0.25px;cursor:pointer}  /* Body M */
.d4y-check input,.d4y-radio input{position:absolute;opacity:0;width:0;height:0}
.d4y-check .box{
  width:18px;height:18px;flex:none;border:2px solid var(--d4y-text-tertiary);border-radius:2px;
  display:inline-flex;align-items:center;justify-content:center;background:var(--d4y-surface);
}
.d4y-check input:checked + .box{border-color:var(--d4y-primary)}
.d4y-check input:checked + .box::after{content:"";width:8px;height:8px;background:var(--d4y-primary);border-radius:1px}
.d4y-check input:indeterminate + .box{background:var(--d4y-primary);border-color:var(--d4y-primary)}
.d4y-check input:indeterminate + .box::after{content:"";width:8px;height:2px;background:#FFFFFF;border-radius:0}
.d4y-check input:focus-visible + .box{box-shadow:var(--d4y-focus)}
.d4y-check input[disabled] + .box{border-color:var(--d4y-hairline-strong);background:var(--d4y-surface-sunken)}
.d4y-check:has(input[disabled]){color:var(--d4y-text-disabled);cursor:default}

.d4y-radio .box{
  width:18px;height:18px;flex:none;border:2px solid var(--d4y-text-tertiary);border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;background:var(--d4y-surface);
}
.d4y-radio input:checked + .box{border-color:var(--d4y-primary)}
.d4y-radio input:checked + .box::after{content:"";width:9px;height:9px;background:var(--d4y-primary);border-radius:50%}
.d4y-radio input:focus-visible + .box{box-shadow:var(--d4y-focus)}

.d4y-facet-count{margin-left:auto;color:var(--d4y-text-tertiary);font-size:12px;line-height:16px;letter-spacing:0.4px;font-variant-numeric:tabular-nums}  /* Body S */

.d4y-switch{width:44px;height:24px;background:var(--d4y-hairline-strong);border-radius:var(--d4y-radius-pill);position:relative;display:inline-block;flex:none;cursor:pointer;border:none;padding:0;transition:background-color .12s ease}
.d4y-switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;background:#FFFFFF;border-radius:50%;transition:left .12s ease}
.d4y-switch[aria-checked="true"]{background:var(--d4y-primary)}
.d4y-switch[aria-checked="true"]::after{left:23px}
.d4y-switch:focus-visible{box-shadow:var(--d4y-focus)}

/* Connected button group (list / map) */
.d4y-segmented{display:inline-flex;gap:2px}
.d4y-segmented > *{
  height:40px;display:inline-flex;align-items:center;gap:6px;padding:0 20px;
  border:1px solid var(--d4y-text-tertiary);background:var(--d4y-surface);color:var(--d4y-text);
  /* line-height and tracking, not just size and weight: without them these inherit the
     body's 1.5 ratio and land on 14/21, which is not a role at all. Label L. */
  font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px;cursor:pointer;text-decoration:none;
}
.d4y-segmented > *:first-child{border-radius:var(--d4y-radius-pill) var(--d4y-radius) var(--d4y-radius) var(--d4y-radius-pill)}
.d4y-segmented > *:last-child{border-radius:var(--d4y-radius) var(--d4y-radius-pill) var(--d4y-radius-pill) var(--d4y-radius)}
.d4y-segmented > *:hover{background:var(--d4y-hover-wash)}
.d4y-segmented > .is-selected{background:var(--d4y-primary-tint-strong);border-color:var(--d4y-primary-tint-strong);color:var(--d4y-primary)}
/* §6's table: a SELECTED orange-100 control hovers to "+8% primary", not to the neutral
   on-white wash. And `.d4y-segmented > *:hover` above is the same specificity as
   `.is-selected`, which is declared after it — so the selected tab was answering a pointer
   with no change at all. Identical trap to the one fixed on `.d4y-chip.is-selected` in 6b. */
.d4y-segmented > .is-selected:hover{background:#F7DEC6;border-color:#F7DEC6}

/* ---------- 7. Badges + stock ------------------------------------------- */
.d4y-badge{
  display:inline-flex;align-items:center;height:24px;padding:0 8px;
  border-radius:var(--d4y-radius-sm);
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:0.5px;white-space:nowrap;
}
.d4y-badge--new{background:var(--d4y-badge-new-bg);color:var(--d4y-badge-new-fg)}
.d4y-badge--popular{background:var(--d4y-tonal);color:var(--d4y-text)}
.d4y-badge--sale{background:var(--d4y-sale);color:#FFFFFF;border-radius:var(--d4y-radius-pill);padding:0 10px;font-variant-numeric:tabular-nums}
.d4y-badge--low{background:var(--d4y-badge-low-bg);color:var(--d4y-badge-low-fg);border-radius:var(--d4y-radius-pill);padding:0 10px;font-variant-numeric:tabular-nums}

.d4y-stock{display:inline-flex;align-items:center;gap:8px;font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px}  /* Label L */
.d4y-stock--ok{color:var(--d4y-stock-ok)}
.d4y-stock--low{color:var(--d4y-text-secondary)}
.d4y-stock--backorder{color:var(--d4y-text-secondary)}
.d4y-stock--out{color:var(--d4y-stock-out)}

/* ---------- 8. Price ----------------------------------------------------- */
.d4y-price{display:flex;gap:8px;align-items:baseline;font-variant-numeric:tabular-nums}
.d4y-price .now{font-size:18px;line-height:24px;font-weight:600}
.d4y-price .was{font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.25px;color:var(--d4y-text-tertiary);text-decoration:line-through}
.d4y-price.is-sale .now{color:var(--d4y-sale)}
.d4y-price--pdp{gap:12px}
.d4y-price--pdp .now{font-size:28px;line-height:32px;font-weight:600}
.d4y-price--pdp .was{font-size:16px;line-height:24px;letter-spacing:0.15px}  /* Body L */
/* Omnibus — lowest price in the last 30 days. Legally required beside a discount. */
.d4y-omnibus{font-size:12px;line-height:16px;letter-spacing:0.4px;color:var(--d4y-text-secondary);margin-top:4px}

/* ---------- 9. Product card ---------------------------------------------- */
.d4y-card{
  position:relative;display:flex;flex-direction:column;
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  overflow:hidden;background:var(--d4y-surface);color:var(--d4y-text);
  /* background-color WAS missing from this list while :hover set one, so the wash
     snapped instantly while the border eased over 120ms — the client's "animations
     are not in sync" (2026-09-13). Every property the hover changes has to be here. */
  text-decoration:none;transition:border-color .12s ease,background-color .12s ease,box-shadow .12s ease;
}
/* §8 cards are outlined at elevation 0 and hover with an 8% state layer — §4b bans the lift
   outright ("no lift/scale") and §4 keeps shadows off resting page content entirely. */
a.d4y-card:hover,.d4y-card:hover{border-color:var(--d4y-hairline-strong);background:var(--d4y-hover-wash);color:var(--d4y-text)}
/* THE PICTURE TILE NEVER TINTS. I had the media take the card's hover wash, on the theory
   that §8's "one state layer over the card" covers the whole surface. On a square tile
   holding a NON-square photo that is visibly wrong: only two thirds of this library is
   square, so a 4:5 shot is painted ~230px wide in a 288px well and the 29px of well either
   side went grey while the photo's own ground stayed white — a grey frame around the
   picture, which is what the client saw ("no gray selected area around it, even if the
   picture doesn't fill the whole frame"). White well + white-shot product = the tile reads
   as one picture, whatever the photo's ratio.
   In M3 terms the layer belongs to the card's CONTAINER; the picture is content sitting on
   it, and content is not tinted. The two-tone worry that made me do this was really about
   the "Izvēlēties" button, and that button is gone. */
.d4y-card-media{transition:background-color .12s ease}
/* A STRICT square. `display:flex` + `height:100%` let a portrait source override the
   aspect-ratio (an 800x908 photo grew its card's media box to 288x319 while every square
   neighbour stayed 288x288), so the row's pictures came out different sizes. `display:block`
   with `overflow:hidden` pins the box; the image is sized against it, never the reverse.

   Ground is white, not the design's stone-50 image tile: 88 of 90 sampled catalogue photos
   are shot on white, so on stone-50 each one drew a visible white rectangle inside a grey
   box. On white the picture reads as filling the whole tile. `cover` would do that literally
   but clips the product on 28 of those 90 (worst case 73% lost) because only two thirds of
   the library is square — so `contain` on a matching ground, with no padding stealing size. */
.d4y-card-media{
  aspect-ratio:1/1;background:var(--d4y-surface);
  display:block;overflow:hidden;
  /* A GAP ROUND THE PICTURE. This was `padding:0`, on the reasoning that padding steals
     size from a `contain`-fitted photo — true, but it made the picture run flush into the
     card's own hairline on three sides, which reads as a cropping accident rather than a
     framed product. `box-sizing:border-box` keeps the well square, so the 1:1 tile is
     unchanged and only the picture inside it gives up 32px. */
  box-sizing:border-box;padding:16px 16px 0;
}
.d4y-card-media img{width:100%;height:100%;object-fit:contain;display:block}
.d4y-card.is-out .d4y-card-media{opacity:.6}
.d4y-card-body{padding:16px 16px 20px;flex:1;display:flex;flex-direction:column}
.d4y-card-brand{font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.1px}
.d4y-card-name{font-size:14px;line-height:20px;letter-spacing:0.25px;color:var(--d4y-text-secondary);margin-top:2px}  /* Body M */
.d4y-card-rating{font-size:12px;line-height:16px;color:var(--d4y-text-tertiary);font-variant-numeric:tabular-nums;margin-top:6px}
.d4y-card-rating .star{color:var(--d4y-text)}
.d4y-card .d4y-price{margin-top:auto;padding-top:14px}
.d4y-card.is-out .d4y-price .now{color:var(--d4y-text-tertiary)}
.d4y-card-stock{font-size:12px;line-height:16px;font-weight:500;letter-spacing:0.5px;margin-top:4px}  /* Label M */
.d4y-card-cta{margin-top:14px}
/* THE CARD IS ONE SURFACE, AND THE CONTROLS INSIDE IT SIT ON THAT SURFACE.
   The outlined button carried its own white fill, so on a hovered card it stayed a white
   rectangle on a #EDEDEC ground — the card and the button looking like two things, which is
   what the client kept reporting. Transparent, it is white at rest (the card is white) and
   washed with the card on hover. */
.d4y-card-cta{background:transparent}
/* And when the button itself is the target it has to get STRONGER than the card, not equal
   to it: `.d4y-btn--outlined:hover` is the on-white #EDEDEC, which on a hovered card is the
   card's own colour — so pointing at the primary action made it vanish into the card. The
   layer compounds over the ground that is actually there. A card's controls can only be
   hovered while the card is, so no `.d4y-card:hover` prefix is needed. */
.d4y-card .d4y-card-cta:hover{background:var(--d4y-hover-wash-on-wash)}
/* The heart is the exception: it is pinned over the picture tile, which stays white, so
   its ground is white and its layer is the plain on-white one. */
.d4y-card .d4y-card-fav:hover{background:var(--d4y-hover-wash)}
/* Badges pin to the media corner; they stack left-to-right. */
.d4y-card-badges{position:absolute;top:12px;left:12px;display:flex;gap:8px;z-index:1}
.d4y-card-fav{position:absolute;top:8px;right:8px;width:40px;height:40px;background:transparent;z-index:1}

/* ---------- 10. Variant selector (PDP) ----------------------------------- */
.d4y-variants{display:flex;gap:8px;flex-wrap:wrap}
.d4y-variant{
  height:44px;padding:0 20px;border:1px solid var(--d4y-text-tertiary);
  border-radius:var(--d4y-radius);background:var(--d4y-surface);color:var(--d4y-text);
  font-family:var(--d4y-font);font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px;  /* Label L */
  font-variant-numeric:tabular-nums;cursor:pointer;
}
.d4y-variant:hover{background:var(--d4y-hover-wash)}
.d4y-variant:focus-visible{box-shadow:var(--d4y-focus)}
.d4y-variant.is-selected{border:2px solid var(--d4y-primary);background:var(--d4y-primary-tint);color:var(--d4y-primary)}
/* Sold-out stays clickable and announces its own state — never hidden. */
.d4y-variant.is-out{border-color:var(--d4y-hairline);color:var(--d4y-text-tertiary);text-decoration:line-through}

/* ---------- 11. Listing chrome ------------------------------------------- */
.d4y-filters{width:280px;flex:none;display:flex;flex-direction:column}
.d4y-filter-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 0;border-bottom:1px solid var(--d4y-hairline);
  background:none;border-left:0;border-right:0;border-top:0;width:100%;
  font-size:16px;line-height:24px;font-weight:600;letter-spacing:0.15px;
  color:var(--d4y-text);cursor:pointer;text-align:left;
}
.d4y-filter-head .chev{color:var(--d4y-text-secondary);transition:transform .12s ease}
.d4y-filter-head[aria-expanded="false"] .chev{transform:rotate(180deg)}
.d4y-filter-body{padding:16px 0;display:flex;flex-direction:column;gap:12px;border-bottom:1px solid var(--d4y-hairline)}
.d4y-filter-more{font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px;color:var(--d4y-primary);cursor:pointer;background:none;border:none;padding:0;text-align:left}

.d4y-histogram{display:flex;align-items:flex-end;gap:2px;height:40px;margin-bottom:4px;padding:0 2px}
.d4y-histogram span{flex:1;background:var(--d4y-hairline)}
.d4y-histogram span.in-range{background:var(--d4y-histogram)}

.d4y-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.d4y-sort{
  display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;
  border:1px solid var(--d4y-text-tertiary);border-radius:var(--d4y-radius);
  background:var(--d4y-surface);font-size:14px;font-weight:500;cursor:pointer;color:var(--d4y-text);
}
.d4y-sort:hover{background:var(--d4y-hover-wash)}

.d4y-pagination{display:flex;gap:4px;align-items:center}
.d4y-pagination a,.d4y-pagination span{
  min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:var(--d4y-radius);font-size:14px;font-weight:500;
  font-variant-numeric:tabular-nums;color:var(--d4y-text);text-decoration:none;
}
.d4y-pagination a:hover{background:var(--d4y-hover-wash);color:var(--d4y-text)}
.d4y-pagination .is-current{background:var(--d4y-primary);color:#FFFFFF}
.d4y-pagination .gap{color:var(--d4y-text-tertiary)}

.d4y-grid{display:grid;gap:24px}
.d4y-grid--2{grid-template-columns:repeat(2,1fr)}
.d4y-grid--3{grid-template-columns:repeat(3,1fr)}
.d4y-grid--4{grid-template-columns:repeat(4,1fr)}

.d4y-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin-bottom:24px;flex-wrap:wrap}

/* Breadcrumb */
.d4y-breadcrumb{font-size:12px;line-height:16px;font-weight:500;letter-spacing:0.5px;color:var(--d4y-text-secondary);display:flex;gap:6px;flex-wrap:wrap}
.d4y-breadcrumb a{color:var(--d4y-text-secondary)}
.d4y-breadcrumb a:hover{color:var(--d4y-text)}

/* Snackbar */
.d4y-snackbar{
  position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:200;
  display:inline-flex;align-items:center;gap:24px;
  background:var(--d4y-dark-band);border-radius:var(--d4y-radius);
  padding:14px 20px;box-shadow:var(--d4y-shadow);
  font-size:14px;line-height:20px;color:#FFFFFF;
}
.d4y-snackbar a{font-weight:500;color:var(--d4y-snackbar-action)}
.d4y-snackbar[hidden]{display:none}

/* Dark band */
.d4y-dark-band{background:var(--d4y-dark-band);color:#FFFFFF}
.d4y-dark-band .d4y-muted{color:var(--d4y-hairline-strong)}

/* Placeholder — content the shop does not have yet. NEVER ships live;
   see docs/DARTS4YOU-REDESIGN.md decision 3. */
.d4y-placeholder{
  position:relative;background:var(--d4y-surface-alt);
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.d4y-placeholder svg{stroke:var(--d4y-hairline-strong);fill:none;stroke-width:1.5}
.d4y-placeholder-note{
  position:absolute;bottom:16px;left:24px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px;color:var(--d4y-text-tertiary);
}

/* ---------- 12. Seed-class compatibility --------------------------------- */
/* pages/checkout and pages/account/* are still seed Liquid. Re-skin, don't rename. */
.container{width:100%;max-width:var(--d4y-container);margin:0 auto;padding:0 var(--d4y-gutter)}
h1,h2,h3{line-height:1.2;margin:0 0 .5em}

.btn{line-height:20px;
  display:inline-flex;align-items:center;justify-content:center;
  height:48px;padding:0 24px;margin-top:1.5rem;
  background:var(--d4y-primary);color:#FFFFFF;border:none;
  border-radius:var(--d4y-radius);
  font-family:var(--d4y-font);font-size:14px;font-weight:500;letter-spacing:0.1px;
  cursor:pointer;text-decoration:none;
}
.btn:hover{background:var(--d4y-primary-hover);color:#FFFFFF;text-decoration:none;opacity:1}
.btn:focus-visible{box-shadow:var(--d4y-focus)}
.btn-secondary{background:var(--d4y-tonal);color:var(--d4y-text);border:none}
.btn-secondary:hover{background:var(--d4y-tonal-hover);color:var(--d4y-text)}

.input{
  padding:0 16px;height:48px;border:1px solid var(--d4y-text-tertiary);
  border-radius:var(--d4y-radius);font:inherit;font-size:16px;width:100%;
  background:var(--d4y-surface);color:var(--d4y-text);
}
.input:focus{outline:2px solid transparent;outline-offset:2px;border:2px solid var(--d4y-primary);padding:0 15px}
textarea.input{height:auto;min-height:120px;padding:12px 16px}
.label{font-size:12px;line-height:16px;font-weight:500;letter-spacing:0.5px;color:var(--d4y-text-secondary)}
.field-row{display:grid;gap:16px;grid-template-columns:1fr 1fr}
.check{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--d4y-text-secondary);margin:4px 0}
.check input{width:auto;flex:0 0 auto;accent-color:var(--d4y-primary)}

.card{padding:24px;border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);background:var(--d4y-surface)}
.grid{display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}
.narrow{max-width:34rem}
.content{padding:48px 0}
.error-page{padding:96px 0;text-align:center}
.alert{background:var(--d4y-badge-low-bg);border:1px solid #E6D9A8;color:var(--d4y-badge-low-fg);padding:12px 16px;border-radius:var(--d4y-radius);margin:16px 0}

.account-page h1{font-family:var(--d4y-font-display);font-stretch:80%;font-weight:600;font-size:28px;line-height:36px}
.account-form{display:flex;flex-direction:column;gap:8px;margin:20px 0}
.account-form .btn{margin-top:12px}
.account-divider{text-align:center;color:var(--d4y-text-tertiary);margin:24px 0;font-size:12px;line-height:16px;font-weight:500;text-transform:uppercase;letter-spacing:0.5px}  /* Label M */
.account-alt,.account-greeting{color:var(--d4y-text-secondary);font-size:14px;line-height:20px;letter-spacing:0.25px}  /* Body M */
.account-subhead{margin-top:40px;font-size:18px}
.account-table{width:100%;border-collapse:collapse;margin:16px 0}
.account-table th,.account-table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--d4y-hairline);font-size:14px}
.account-table th{font-size:12px;text-transform:uppercase;letter-spacing:0.5px;color:var(--d4y-text-tertiary);font-weight:500}
.account-tiles .card{color:var(--d4y-text)}
.account-tiles .card:hover{text-decoration:none;border-color:var(--d4y-primary)}
.account-tiles p{color:var(--d4y-text-secondary);font-size:14px;margin:0}

.checkout-summary{border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);padding:16px 20px;margin:20px 0;background:var(--d4y-surface-alt)}
.checkout-summary p{margin:4px 0}
.checkout-total{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.checkout-result{text-align:center;padding:80px 0}
.checkout-coupon .field-row{grid-template-columns:1fr auto;align-items:end}

.delivery-options{margin:20px 0}
.delivery-option{display:flex;align-items:center;gap:12px;border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);padding:12px 16px;margin:8px 0;cursor:pointer}
.delivery-option:hover{border-color:var(--d4y-text-tertiary)}
.delivery-option input[type=radio]{width:auto;padding:0;margin:0;flex:0 0 auto;accent-color:var(--d4y-primary)}
.delivery-option-body{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.delivery-option-label{font-weight:600;font-size:14px}
.delivery-option-desc{font-size:12px;color:var(--d4y-text-secondary)}
.delivery-option-desc:empty{display:none}
.delivery-option-price{flex:0 0 auto;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.delivery-option-price:empty::before{content:"—";color:var(--d4y-text-tertiary)}

.cart-table{width:100%;border-collapse:collapse}
.cart-table td{vertical-align:middle}
.cart-line-media img{width:56px;height:56px;object-fit:contain;border-radius:var(--d4y-radius)}
.cart-qty-form{display:inline-flex;align-items:center;gap:8px}
.cart-qty-btn{border:1px solid var(--d4y-hairline);background:var(--d4y-surface);border-radius:var(--d4y-radius-sm);width:32px;height:32px;cursor:pointer}
.cart-qty-btn:hover{background:var(--d4y-hover-wash)}
.cart-remove{border:0;background:none;font-size:18px;color:var(--d4y-text-tertiary);cursor:pointer}
.cart-subtotal{font-size:18px;margin-top:16px;font-variant-numeric:tabular-nums}

/* ---------- 13. Responsive ----------------------------------------------- */
@media(max-width:1100px){
  .d4y-grid--4{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .d4y-grid--3,.d4y-grid--4{grid-template-columns:repeat(2,1fr)}
  .d4y-filters{width:100%}
}
@media(max-width:640px){
  :root{--d4y-gutter:16px;--d4y-band:56px}
  .d4y-grid{gap:16px}
  .d4y-grid--2,.d4y-grid--3,.d4y-grid--4{grid-template-columns:repeat(2,1fr)}
  .field-row{grid-template-columns:1fr}
}
@media print{
  .d4y-snackbar,.d4y-icon-btn{display:none}
}

/* ---------- 14. Chrome (custom header + footer) --------------------------- */
/* Platform wraps every section in .sl-section; chrome must not inherit band padding. */
.d4y-chrome{padding:0;margin:0}

/* Utility strip */
.d4y-utility{background:var(--d4y-dark-band)}
/* The reel scrolls by exactly one row, so the row height, the window height and the
   keyframe distance must be the SAME number. They were 36 / 36 / 36 on desktop but
   32 / 36 / 32 on phones, which let 4px of the next message peek under the current
   one. It is one token now, and it grows where the copy needs more lines: the client's
   own USP lines (2026-09-10) are up to 88 characters and wrap to two rows on a phone. */
.d4y-utility-inner{min-height:var(--d4y-usp-step);display:flex;align-items:center;gap:24px}
.d4y-usp{flex:1;height:var(--d4y-usp-step);overflow:hidden;min-width:0}
.d4y-usp-reel{display:flex;flex-direction:column;animation:d4y-usp-rotate 12s cubic-bezier(.2,0,0,1) infinite}
.d4y-usp-reel span{
  height:var(--d4y-usp-step);flex:none;display:flex;align-items:center;justify-content:center;
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;color:var(--d4y-hairline-strong);
  text-align:center;
}
@keyframes d4y-usp-rotate{
  0%,28%{transform:translateY(0)}
  33%,61%{transform:translateY(calc(-1 * var(--d4y-usp-step)))}
  66%,94%{transform:translateY(calc(-2 * var(--d4y-usp-step)))}
  100%{transform:translateY(calc(-3 * var(--d4y-usp-step)))}
}
/* One message, or reduced motion: hold still rather than sliding to nothing. */
.d4y-usp-reel:has(span:only-child){animation:none}
@media(prefers-reduced-motion:reduce){.d4y-usp-reel{animation:none}}

.d4y-lang{display:flex;gap:4px;font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;flex:none}
.d4y-lang a{color:var(--d4y-text-inverse-secondary)}
.d4y-lang a:hover{color:#FFFFFF}
.d4y-lang .is-current{color:#FFFFFF}
.d4y-lang .sep{color:var(--d4y-text-secondary)}

/* Brand bar. Not sticky: the platform wraps the section in a div exactly as tall as the header,
   so position:sticky never engaged (QA 2026-10-11, Q-38). z-index 60 > the PDP / checkout
   sticky bars (50): the drawer, mini-cart and scrim live inside this stacking context and
   must paint over them (Q-05). */
.d4y-header{background:var(--d4y-surface);border-bottom:1px solid var(--d4y-hairline);position:relative;z-index:60}
.d4y-header-bar{height:88px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:40px}
.d4y-brand{justify-self:start;display:inline-flex;align-items:center;text-decoration:none}
.d4y-brand .d4y-wordmark{font-size:24px}
.d4y-header-search{width:600px;max-width:100%}
.d4y-header-actions{justify-self:end;display:flex;gap:16px;align-items:center}

/* Nav row + mega panels */
.d4y-navwrap{position:relative}
.d4y-nav{height:52px;display:flex;align-items:center;justify-content:center;gap:20px}
.d4y-nav-item{position:static;display:flex;align-items:center;align-self:stretch}
.d4y-nav-link{
  display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:var(--d4y-radius);
  font-size:14px;line-height:20px;font-weight:500;letter-spacing:.1px;color:var(--d4y-text);
}
.d4y-nav-link:hover{background:var(--d4y-hover-wash);color:var(--d4y-text)}
.d4y-nav-link.is-sale{color:var(--d4y-sale)}
.d4y-nav-link.is-sale:hover{background:#FEF2F2;color:var(--d4y-sale)}

/* Hover OR keyboard focus opens the panel — no JS, so it survives a script failure. */
.d4y-megapanel{
  display:none;position:absolute;top:100%;left:0;right:0;z-index:60;
  background:var(--d4y-surface);
  border-top:1px solid var(--d4y-hairline);border-bottom:1px solid var(--d4y-hairline);
  box-shadow:var(--d4y-shadow);
}
.d4y-nav-item.has-panel:hover .d4y-megapanel,
.d4y-nav-item.has-panel:focus-within .d4y-megapanel{display:block}
.d4y-megapanel-inner{padding:32px var(--d4y-gutter) 40px;display:grid;grid-template-columns:1fr 1fr 1fr 320px;gap:40px}
.d4y-megacol-title{font-size:16px;line-height:24px;font-weight:600;letter-spacing:.15px;margin-bottom:14px}
.d4y-megacol-links{display:flex;flex-direction:column;gap:4px}
.d4y-megacol-links a{font-size:14px;line-height:20px;color:var(--d4y-text-secondary);padding:6px 8px;margin:0 -8px;border-radius:var(--d4y-radius)}
.d4y-megacol-links a:hover{background:var(--d4y-hover-wash);color:var(--d4y-text)}
.d4y-megacol-more{font-weight:500;margin-top:8px;color:var(--d4y-primary)!important}
.d4y-megacol-more:hover{background:transparent!important;color:var(--d4y-primary-hover)!important}
.d4y-megacol-chips{display:flex;gap:8px;flex-wrap:wrap}
.d4y-megacol-chips .d4y-chip{height:32px;padding:0 14px;font-size:13px}

.d4y-megapromo{
  /* White, like every other slot that shows a product photo — on stone-50 the packshot
     drew its own white rectangle inside a grey card. */
  display:block;background:var(--d4y-surface);border:1px solid var(--d4y-hairline);
  border-radius:var(--d4y-radius);padding:20px;color:var(--d4y-text);
}
.d4y-megapromo:hover{color:var(--d4y-text);border-color:var(--d4y-hairline-strong)}
.d4y-megapromo-media{height:120px;margin-bottom:12px;overflow:hidden}
.d4y-megapromo-media img{width:100%;height:100%;object-fit:contain;display:block}
.d4y-megapromo .d4y-price{margin-top:10px;padding-top:0}

/* Footer — the client's reference footer, built from styleguide roles only.
   Ground = inverse-surface stone-800 (§4 "the dark band"), column headings = inverse-primary
   orange-400 (§3, 6.38 on that ground), reading lines = text-inverse-secondary stone-300
   (10.18 AAA). Hairlines and the icon-button hover are the §6 +8% white layer, pre-blended as
   --d4y-dark-band-tint, so nothing here is an ad-hoc rgba(). */
/* PADDING, NOT MARGIN. `margin-top:88px` put 88px of PAGE background between the last band
   and the footer. That was invisible while every page ended on white; the newsletter band is
   stone-50, so it showed as a white stripe under a tinted band (client, 2026-09-13). The same
   88px of rhythm, now inside the dark surface: 24 here + the grid's own 64. */
.d4y-footer{margin-top:0;padding-top:24px;background:var(--d4y-dark-band);color:var(--d4y-text-inverse-secondary)}
.d4y-footer-grid{padding-top:64px;padding-bottom:48px;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:48px}
/* HIERARCHY. These two were both 16/24 w600 — a column LABEL and the CONTENT it
   labels rendered at exactly the same level, with the white one out-ranking the
   orange one on a dark ground, so the child appeared to outweigh its parent. The
   client read the footer as having no hierarchy and was right.
   Three levels now, each a §2 role and each visibly distinct:
     column label   Label M 12/16 uppercase, orange-400  — a quiet signpost
     brand / links  Body M 14/20                          — the content
     company name   Title M 16/24 white                   — the most prominent thing
                                                            in its column, correctly */
.d4y-footer-col-title{
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;   /* Label M */
  text-transform:uppercase;margin-bottom:16px;
  color:var(--d4y-on-dark-accent);
}
.d4y-footer-company{font-size:16px;line-height:24px;font-weight:600;letter-spacing:.15px;color:#FFFFFF}
.d4y-footer-tagline{font-size:14px;line-height:20px;letter-spacing:0.25px;margin-top:8px;max-width:300px}  /* Body M */
.d4y-footer-contact{display:flex;flex-direction:column;gap:12px;margin-top:20px}
.d4y-footer-row{display:flex;align-items:flex-start;gap:10px;margin:0;font-size:14px;line-height:20px;letter-spacing:0.25px}  /* Body M */
.d4y-footer-ico{
  flex:none;display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;
  color:var(--d4y-on-dark-accent);
}
.d4y-footer-contact a{color:var(--d4y-text-inverse-secondary)}
.d4y-footer-contact a:hover{color:#FFFFFF}
.d4y-footer-links{display:flex;flex-direction:column;gap:10px}
.d4y-footer-links a{font-size:14px;line-height:20px;letter-spacing:0.25px;color:var(--d4y-text-inverse-secondary)}  /* Body M */
.d4y-footer-links a:hover{color:#FFFFFF}

/* Payment strip — one shade deeper than the footer, as in the reference. */
/* No band behind the badge strip. The client's reference footer draws it on a darker
   plate, which cuts a visible rectangle across the footer, and our first pass copied
   that — his note on 2026-09-13 was that it should be "something seamless, not a copy
   paste from what he requested". The reference showed WHICH marks to carry, not how to
   mount them. One ground for the whole footer; the hairline already separates the rows. */
.d4y-footer-pay{background:transparent;border-top:1px solid var(--d4y-dark-band-tint)}
.d4y-footer-pay-inner{
  padding-top:20px;padding-bottom:20px;
  display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;
}
.d4y-footer-pay-label{font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px}
.d4y-footer-pay-list{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.d4y-paybadge{
  height:28px;padding:0 12px;display:inline-flex;align-items:center;
  background:#FFFFFF;color:var(--d4y-text);border-radius:var(--d4y-radius-sm);
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;   /* Label M */
}
/* A logo badge is the same tile with no text padding: the mark already carries its own
   even margin, baked into the asset, so a 39:25 tile at 28px tall is 44x28. */
/* A logo strip is a common HEIGHT with natural widths. Forcing every mark into one
   56x36 box squeezed kurpirkt.lv — a 4.7:1 wordmark — down to about 39x8px of actual
   ink, which is what the client saw as "broken" on 2026-09-13. Each asset is now
   rendered to its own ratio at a shared content height, so the width simply follows. */
.d4y-paybadge--logo{padding:0;overflow:hidden;height:36px;width:auto;justify-content:center}
.d4y-paybadge--logo img{height:100%;width:auto;display:block}

/* Bottom bar — mark + copyright · socials · legal link. */
.d4y-footer-legal{border-top:1px solid var(--d4y-dark-band-tint)}
/* 1fr auto 1fr, not space-between: the reference centres the social row on the page, and
   three flex items of unequal width never land there. */
.d4y-footer-legal-inner{
  padding-top:24px;padding-bottom:32px;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;
}
.d4y-footer-legal-inner .d4y-footer-legal-link{justify-self:end}
.d4y-footer-legal-brand{display:flex;align-items:center;gap:14px;min-width:0}
.d4y-footer-copy{font-size:12px;line-height:16px;letter-spacing:0.4px}  /* Body S */
.d4y-footer-social{display:flex;align-items:center;gap:8px}
.d4y-social{
  width:44px;height:44px;border-radius:var(--d4y-radius-pill);
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--d4y-text-inverse-secondary);
}
.d4y-social:hover{background:var(--d4y-dark-band-tint);color:#FFFFFF}
.d4y-social:focus-visible{box-shadow:var(--d4y-focus)}
/* 12px text needs a real hit area: §8 wants 44px targets, and the deep audit flags anything
   under 24px. The label stays Label M; the box grows around it. */
.d4y-footer-legal-link{
  font-size:12px;line-height:16px;letter-spacing:0.4px;color:var(--d4y-text-inverse-secondary);  /* Body S */
  display:inline-flex;align-items:center;min-height:44px;padding:0 4px;margin:0 -4px;
}
.d4y-footer-legal-link:hover{color:#FFFFFF}

@media(max-width:1100px){
  /* Below the design width the fixed 600px field cannot hold, and `auto` in the middle of
     1fr auto 1fr collapses it to its own content (~225px at 1024) while the side columns keep
     their 1fr — the same lopsided bar, mirrored. Let the field take the slack instead. */
  .d4y-header-bar{gap:24px;grid-template-columns:auto minmax(0,1fr) auto}
  .d4y-header-search{width:100%;min-width:0}
  .d4y-megapanel-inner{grid-template-columns:1fr 1fr 260px;gap:32px}
  .d4y-megapanel-inner .d4y-megacol:nth-child(3){display:none}
}
@media(max-width:900px){
  .d4y-footer-grid{grid-template-columns:1fr 1fr;gap:32px}
  .d4y-megapanel-inner{grid-template-columns:1fr 1fr;gap:24px}
  .d4y-megapromo{display:none}
}
@media(max-width:760px){
  /* Superseded by section 29, which gives phones a real drawer nav instead of hiding it. */
  .d4y-footer-grid{grid-template-columns:1fr;gap:0}
  .d4y-footer-tagline{max-width:none}
  /* The mobile artboard separates the footer columns with rules rather than whitespace. */
  .d4y-footer-col{padding-top:20px;margin-top:24px;border-top:1px solid var(--d4y-dark-band-tint)}
  .d4y-footer-col:first-child{padding-top:0;margin-top:0;border-top:none}
  .d4y-footer-legal-inner{grid-template-columns:1fr;justify-items:center;text-align:center;gap:16px}
  .d4y-footer-legal-inner .d4y-footer-legal-link{justify-self:center}
  .d4y-footer-legal-brand{flex-direction:column;gap:10px;text-align:center}
}

/* ---------- 15. Card link (stretched) ------------------------------------ */
/* The whole card is clickable, but the wishlist button must stay separately
   clickable — so the link is stretched with ::after rather than wrapping the card. */
.d4y-card-link{display:block;color:inherit;text-decoration:none}
.d4y-card-link:hover{color:inherit}
.d4y-card-link::after{content:"";position:absolute;inset:0;z-index:1}
.d4y-card-link .d4y-card-brand,.d4y-card-link .d4y-card-name{display:block}
/* Only the CTA needs a positioning context here. .d4y-card-fav is already absolutely
   positioned in section 9; re-declaring position:relative at equal specificity later
   silently dropped it back into flow, which shoved the discount badge off the card.
   Raise its z-index, never its position. */
.d4y-card-fav{z-index:2}
.d4y-card-cta{position:relative;z-index:2}
.d4y-card-cta{margin-top:14px}
.d4y-card-cta form{margin:0}

/* ---------- 16. Home bands ------------------------------------------------ */
/* Hero — full-bleed 21:9 crossfade. Slides stack; JS toggles .is-active.
   With JS off the first slide stays visible, so the band is never blank. */
.d4y-hero{position:relative;aspect-ratio:21/9;overflow:hidden;background:var(--d4y-surface-sunken);border-bottom:1px solid var(--d4y-hairline)}
.d4y-hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .6s ease;display:flex;align-items:center;justify-content:center}
.d4y-hero-slide.is-active{opacity:1}
/* The slides are stacked absolutely, so the LAST one in the DOM sat on top of the visible one
   and swallowed the pointer: a click on the hero hit an invisible slide's link, and hover never
   reached the one on screen. Only the active slide is interactive. */
.d4y-hero-slide{pointer-events:none}
.d4y-hero-slide.is-active{pointer-events:auto;z-index:1}
.d4y-hero-slide:only-child{opacity:1}
.d4y-hero-slide img{width:100%;height:100%;object-fit:cover}
/* A linked slide puts an <a> between the slide and the image, and `height:100%` on the image
   then resolves against an auto-height flex item — i.e. against nothing, so it fell back to
   the image's own ratio and letterboxed the 4:3 phone band. The anchor has to carry the box. */
.d4y-hero-link{display:block;width:100%;height:100%}
/* §6 wants feedback on every interactive element. A photograph cannot take a state layer, so
   the slide dims slightly instead — opacity only, no transform (§4b). */
.d4y-hero-link{background:transparent}
.d4y-hero-link img{transition:opacity .15s ease}
/* M3 states a hover as a layer over the content, so the slide gets one: the link's ground goes
   to inverse-surface and the photograph drops to 90%, which IS that layer on a dark band —
   rather than a transform or a shadow, both banned on content (§4b/§9). */
.d4y-hero-link:hover{background:var(--d4y-dark-band)}
.d4y-hero-link:hover img{opacity:.9}
.d4y-hero-link:focus-visible{box-shadow:var(--d4y-focus);outline:2px solid transparent;outline-offset:2px}
.d4y-hero-slide.d4y-placeholder svg{height:70%;width:auto}
.d4y-hero-slide:nth-child(2).d4y-placeholder{background:var(--d4y-surface-alt)}
.d4y-hero-slide:nth-child(3).d4y-placeholder{background:var(--d4y-hover-wash)}
/* The artboard draws the slide indicator as a 32x4 bar. A 4px-tall button is an unusable tap
   target (§8 asks for 44px), so the BUTTON is a 40x44 transparent hit box and the bar is drawn
   as its ::before — the visible design is unchanged and the target is 11x taller. 40px boxes
   with no gap reproduce the artboard's 8px gap between 32px bars. */
.d4y-hero-dots{position:absolute;bottom:8px;left:0;right:0;display:flex;justify-content:center;gap:0;z-index:2}
.d4y-hero-dot{
  width:40px;height:44px;border:none;padding:0;cursor:pointer;background:transparent;
  display:flex;align-items:center;justify-content:center;
}
.d4y-hero-dot::before{
  content:"";display:block;width:32px;height:4px;border-radius:var(--d4y-radius-pill);
  background:var(--d4y-surface);box-shadow:inset 0 0 0 1px var(--d4y-hairline-strong);
  transition:background-color .2s ease;
}
.d4y-hero-dot:hover::before{background:var(--d4y-hairline-strong)}
.d4y-hero-dot.is-active::before{background:var(--d4y-primary)}
.d4y-hero-dot.is-active:hover::before{background:var(--d4y-primary-hover)}
.d4y-hero-dot:focus-visible{box-shadow:var(--d4y-focus)}
@media(prefers-reduced-motion:reduce){.d4y-hero-slide{transition:none}}

/* Feature band (Razma) */
.d4y-feature{margin-top:var(--d4y-band)}
.d4y-feature-inner{padding-top:72px;padding-bottom:72px;display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:center}
.d4y-feature.is-reverse .d4y-feature-copy{order:2}
.d4y-feature-accent{color:var(--d4y-primary)}
.d4y-dark-band .d4y-feature-accent{color:var(--d4y-on-dark-accent)}
.d4y-dark-band .d4y-display-m{color:#FFFFFF}
.d4y-feature-body{margin-top:16px;max-width:480px;color:var(--d4y-text-secondary)}
.d4y-dark-band .d4y-feature-body{color:var(--d4y-hairline-strong)}
.d4y-feature-cta{margin-top:32px;padding:0 28px}
.d4y-feature-media{border-radius:var(--d4y-radius);overflow:hidden;aspect-ratio:3/2;min-height:0;display:flex}
.d4y-feature-media img{width:100%;height:100%;object-fit:cover}
.d4y-feature-ph{flex:1;min-height:0;background:var(--d4y-surface-alt)}
.d4y-dark-band .d4y-feature-ph{background:var(--d4y-dark-band-deep)}
.d4y-dark-band .d4y-feature-ph svg{stroke:#44403B}
.d4y-feature-ph svg{width:50%;height:50%}

/* ---------- 17. Platform base overrides ----------------------------------- *
 * The platform stylesheet binds its base typography to .sl-body / .sl-section —
 * class selectors, which outrank a bare `body` or `h2`. Everything the design
 * system sets on an element selector has to be restated here at class strength
 * or the platform's Segoe/blue defaults win. Verified in a real browser: the
 * bare `body` rule in section 2 was being overridden outright.
 * ------------------------------------------------------------------------- */
body.sl-body{
  font-family:var(--d4y-font);
  color:var(--d4y-text);
  background:var(--d4y-surface);
  line-height:1.5;
}
.sl-body a{color:var(--d4y-primary)}
.sl-body a:hover{color:var(--d4y-primary-hover)}
/* Neutralise the platform heading font/margins; the d4y type scale owns these. */
.sl-body h1,.sl-body h2,.sl-body h3,.sl-body h4{font-family:inherit;margin:0}
.sl-body .d4y-display-l,.sl-body .d4y-display-m,.sl-body .d4y-display-s,
.sl-body .d4y-headline-l,.sl-body .d4y-headline-m,.sl-body .d4y-headline-s{
  font-family:var(--d4y-font-display);font-stretch:80%;font-weight:600;margin:0;
}
.sl-body .d4y-display-l{line-height:64px}
.sl-body .d4y-display-m{line-height:52px}
.sl-body .d4y-display-s{line-height:44px}
.sl-body .d4y-headline-l{line-height:40px}
.sl-body .d4y-headline-m{line-height:36px}
.sl-body .d4y-headline-s{line-height:32px}
.sl-body .d4y-wordmark{font-family:var(--d4y-font-display)}

/* The platform pads every section wrapper (padding-block: 76px). The design system
   owns its own vertical rhythm via .d4y-band, so opt these wrappers out and avoid
   stacking two spacings on every band. */
.sl-section.d4y-sec,.sl-section.d4y-chrome{padding-block:0}
.sl-section.d4y-sec--flush{padding:0}

/* Component link colours.
   The platform sets `.sl-body a { color: … }` — specificity 0,1,1, which outranks a plain
   component class like `.d4y-nav-link` (0,1,0) no matter how late it is declared. Chrome and
   card links are NOT body copy and must not inherit the action colour, so each is restated at
   matching strength. Symptom when this is missing: an all-orange navigation. */
.sl-body .d4y-nav-link{color:var(--d4y-text)}
.sl-body .d4y-nav-link.is-sale{color:var(--d4y-sale)}
.sl-body .d4y-megacol-links a{color:var(--d4y-text-secondary)}
.sl-body .d4y-megacol-links a:hover{color:var(--d4y-text)}
.sl-body .d4y-megacol-more{color:var(--d4y-primary)}
.sl-body .d4y-megapromo{color:var(--d4y-text)}
.sl-body .d4y-card-link{color:var(--d4y-text)}
.sl-body .d4y-card-link .d4y-card-name{color:var(--d4y-text-secondary)}
.sl-body .d4y-footer-links a{color:var(--d4y-text-inverse-secondary)}
.sl-body .d4y-footer-links a:hover{color:#FFFFFF}
.sl-body .d4y-footer-contact a{color:var(--d4y-text-inverse-secondary)}
.sl-body .d4y-footer-contact a:hover{color:#FFFFFF}
.sl-body .d4y-footer-legal-link{color:var(--d4y-text-inverse-secondary)}
.sl-body .d4y-footer-legal-link:hover{color:#FFFFFF}
.sl-body .d4y-social{color:var(--d4y-text-inverse-secondary)}
.sl-body .d4y-social:hover{color:#FFFFFF}
.sl-body .d4y-breadcrumb a{color:var(--d4y-text-secondary)}
.sl-body .d4y-breadcrumb a:hover{color:var(--d4y-text)}
.sl-body .d4y-lang a{color:var(--d4y-text-inverse-secondary)}
.sl-body .d4y-lang a:hover{color:#FFFFFF}
.sl-body .d4y-pagination a{color:var(--d4y-text)}
.sl-body .d4y-chip{color:var(--d4y-text)}
.sl-body .d4y-chip.is-selected{color:var(--d4y-primary)}
.sl-body .d4y-chip--suggest{color:var(--d4y-text-secondary)}
.sl-body .d4y-segmented > *{color:var(--d4y-text)}
.sl-body .d4y-segmented > .is-selected{color:var(--d4y-primary)}
.sl-body .d4y-brand{color:var(--d4y-text)}
/* Buttons are often <a>; the variant's own colour must survive. */
.sl-body a.d4y-btn--filled{color:#FFFFFF}
.sl-body a.d4y-btn--tonal,.sl-body a.d4y-btn--outlined{color:var(--d4y-text)}
.sl-body a.d4y-btn--text{color:var(--d4y-primary)}
.sl-body .d4y-snackbar a{color:var(--d4y-snackbar-action)}
/* Same trap for the seed `.btn` family the account/checkout Liquid still uses: an <a class="btn">
   inside .sl-body took the action colour and rendered #CA3500 on #CA3500 — an unreadable block
   (seen on /account/orders signed out). Restate at matching strength, as above. */
.sl-body a.btn{color:#FFFFFF}
.sl-body a.btn:hover{color:#FFFFFF}
.sl-body a.btn-secondary,.sl-body a.btn-secondary:hover{color:var(--d4y-text)}

/* ---------- 18. Re-token the platform section library --------------------- *
 * Every platform section (post-grid, faq, contact-form, testimonials, …) is driven by the
 * --sl-* tokens that the inline design_css block declares. Redefining them here — this file
 * loads after that inline style, at equal :root specificity — restyles the whole platform
 * library to the Darts4You palette in one move, instead of patching each section's classes.
 * ------------------------------------------------------------------------- */
:root{
  --sl-primary:#CA3500;
  --sl-primary-contrast:#FFFFFF;
  --sl-bg:#FFFFFF;
  --sl-surface:#FAFAF9;
  --sl-text:#1C1917;
  --sl-muted:#57534D;
  --sl-border:#E7E5E4;
  --sl-font-heading:Archivo,system-ui,sans-serif;
  --sl-font-body:"Instrument Sans",system-ui,-apple-system,sans-serif;
  --sl-radius:8px;
  --sl-btn-radius:8px;
  --sl-max-w:1280px;
  --sl-section-pad:88px;
}
/* Match the design's rhythm: bands are separated by space ABOVE them only, so two
   stacked platform sections do not double up to 176px. */
.sl-section{padding-block:var(--d4y-band) 0}
.sl-section.d4y-sec,.sl-section.d4y-chrome{padding-block:0}
.sl-section.d4y-sec--flush{padding:0}

/* Headings across BOTH libraries speak with the display voice. */
.sl-body h1,.sl-body h2,.sl-body h3,.sl-body h4{
  font-family:var(--d4y-font-display);font-stretch:80%;font-weight:600;margin:0;
}
/* A platform card is often an <a> wrapping its own text; the action colour must not bleed
   into the title and excerpt. */
.sl-body .sl-post-card,.sl-body .sl-card{color:var(--d4y-text)}
.sl-body .sl-post-title{color:var(--d4y-text);font-weight:600}
.sl-body .sl-post-excerpt{color:var(--d4y-text-secondary)}

/* ---------- 19. Product listing (PLP) ------------------------------------- */
.d4y-plp-head{padding-top:24px}
.d4y-plp-title{display:flex;align-items:baseline;gap:16px;margin-top:16px;flex-wrap:wrap}
.d4y-plp-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.d4y-chip--quick{height:36px}
.d4y-plp-layout{padding-top:32px;display:grid;grid-template-columns:264px 1fr;gap:40px;align-items:start}
.d4y-plp-main{min-width:0}
.d4y-plp-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  box-sizing:content-box;min-height:44px;padding-bottom:20px;
  border-bottom:1px solid var(--d4y-hairline);
}
.d4y-plp-applied{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:20px}
.d4y-plp-grid{margin-top:24px;gap:16px}
.d4y-plp-item{display:flex;min-width:0}
.d4y-plp-item > .d4y-card{flex:1}
.d4y-plp-empty{margin-top:48px;text-align:center;color:var(--d4y-text-secondary);font-size:16px}
.d4y-plp-foot{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-top:40px}
.d4y-pagination a,.d4y-pagination span{min-width:44px;height:44px}

/* Sort — styleguide §8 "Menus / exposed dropdown": a text trigger reading
   "Kārtot: Ieteicamie ▾", not a button and not a native <select>. The menu itself is §8.d4y-menu. */
.d4y-plp-toolbar .d4y-menu{margin-left:auto}

/* Facet rail */
/* Must resolve to exactly the same 65px as .d4y-plp-toolbar — the two rules read as one
   line across the page, so they are specified with identical box math, not by eye. */
.d4y-filter-toggle-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  box-sizing:content-box;min-height:44px;padding-bottom:20px;
  border-bottom:1px solid var(--d4y-hairline);
}
.d4y-filter-head{font-family:var(--d4y-font);padding:14px 0}
.d4y-filter-body{padding:14px 0 18px}
.d4y-range-inputs{display:flex;gap:12px;align-items:center}
.d4y-range-dash{color:var(--d4y-text-tertiary)}
.d4y-field--sm{flex:1;min-width:0}
.d4y-field--sm .d4y-input{height:44px;font-size:14px;padding:0 12px;font-variant-numeric:tabular-nums}
.d4y-field--sm .d4y-input:focus{padding:0 11px}
.d4y-filters .d4y-check{gap:12px}
.d4y-filters .d4y-check .box{flex:none}

@media(max-width:1100px){
  .d4y-plp-layout{grid-template-columns:232px 1fr;gap:28px}
  .d4y-plp-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .d4y-plp-layout{grid-template-columns:1fr;gap:24px}
  .d4y-filters{width:100%}
  .d4y-plp-grid{grid-template-columns:repeat(2,1fr)}
}

/* ---------- 20. Card affordances on hover --------------------------------- *
 * Foundations shows the wishlist toggle and the add-to-cart button as HOVER states
 * of the card, not as resting furniture — the PLP artboard's cards carry neither.
 * On touch there is no hover, so they stay visible there. A saved item always shows
 * its heart, or the visitor could not tell it was saved. */
@media(hover:hover){
  .d4y-card-fav{opacity:0;transition:opacity .12s ease}
  .d4y-card:hover .d4y-card-fav,
  .d4y-card-fav:focus-visible,
  .d4y-card-fav.is-active{opacity:1}
}

/* ---------- 21. Category index ------------------------------------------- */
.d4y-cat-intro{max-width:640px;margin-top:-8px;margin-bottom:32px}
.d4y-cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.d4y-cat-tile{
  display:flex;flex-direction:column;border:1px solid var(--d4y-hairline);
  border-radius:var(--d4y-radius);overflow:hidden;background:var(--d4y-surface);
  color:var(--d4y-text);transition:border-color .12s ease,box-shadow .12s ease;
}
.d4y-cat-tile:hover{border-color:var(--d4y-hairline-strong);background:var(--d4y-hover-wash);color:var(--d4y-text)}
/* The SAME fault as .d4y-card-media in round 1, left unfixed here until the client saw it
   on 2026-09-10: `display:flex` + `height:100%` lets the SOURCE drive the box, so a needle
   photographed 400x1200 grew its tile to a full screen tall while the square neighbours
   stayed 4:3, and the whole grid came apart. `display:block` + `overflow:hidden` pins the
   box and the image is sized against it, never the reverse. Padding removed for the same
   reason as the product card: the catalogue is shot on white, so padding on a white ground
   only makes the picture smaller. */
.d4y-cat-media{
  aspect-ratio:4/3;background:var(--d4y-surface);
  display:block;overflow:hidden;
  /* Same inset as the product card — the client asked for it on "all of these components". */
  box-sizing:border-box;padding:16px 16px 0;
}
.d4y-cat-media img{width:100%;height:100%;object-fit:contain;display:block}
/* The tile is a grid item, so it stretches to the tallest in its row; the body has to
   take that slack or the label floats and the hover layer paints a bare grey block
   under it. */
.d4y-cat-tile{height:100%}
.d4y-cat-body{padding:16px;display:flex;flex-direction:column;gap:4px;flex:1 1 auto}
.sl-body .d4y-cat-tile{color:var(--d4y-text)}
@media(max-width:1100px){.d4y-cat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.d4y-cat-grid{grid-template-columns:repeat(2,1fr)}}

/* ---------- 22. Product page --------------------------------------------- */
.d4y-pdp-crumbs{padding-top:24px}
.d4y-pdp{padding-top:24px;display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:start}

.d4y-pdp-stage{
  position:relative;aspect-ratio:1/1;background:var(--d4y-surface);
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  display:flex;align-items:center;justify-content:center;padding:64px;overflow:hidden;
}
.d4y-pdp-stage img{width:100%;height:100%;object-fit:contain}
.d4y-pdp-badge{position:absolute;top:16px;left:16px;z-index:1}
.d4y-pdp-thumbs{display:flex;gap:12px;margin-top:12px;flex-wrap:wrap}
.d4y-pdp-thumb{
  width:88px;height:88px;flex:none;background:var(--d4y-surface);
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  padding:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.d4y-pdp-thumb img{width:100%;height:100%;object-fit:contain}
.d4y-pdp-thumb:hover{border-color:var(--d4y-text-tertiary);background:var(--d4y-hover-wash)}
.d4y-pdp-thumb.is-active{border-color:var(--d4y-primary);box-shadow:inset 0 0 0 2px var(--d4y-primary)}
.d4y-pdp-thumb:focus-visible{box-shadow:var(--d4y-focus)}

.sl-body .d4y-pdp-brand{color:var(--d4y-primary)}
.d4y-pdp-title{margin-top:8px}
.d4y-pdp-price{margin-top:20px}
.d4y-pdp-vat{margin-top:4px}
.d4y-pdp-form{margin:0}
.d4y-pdp-axis{margin-top:28px;display:flex;gap:6px;align-items:baseline}
.d4y-pdp-axis .d4y-title-s::after{content:""}
.d4y-variants{margin-top:10px}
/* The variant control is a real radio inside the form, so choosing one works with no JS.
   The input itself is hidden; the label carries the visual state. */
.d4y-variant{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:0 22px}
.d4y-variant input{position:absolute;opacity:0;width:0;height:0}
.d4y-variant:has(input:focus-visible){box-shadow:var(--d4y-focus)}
.d4y-pdp-stock{margin-top:16px;display:flex;gap:12px;align-items:baseline}
.d4y-pdp-actions{display:flex;gap:12px;margin-top:20px;align-items:stretch}
.d4y-qty--lg{height:48px}
.d4y-qty--lg button{height:46px}
.d4y-qty--lg .d4y-qty-value{width:36px}
.d4y-pdp-add{flex:1}
.d4y-pdp-fav{padding:0;
  width:48px;height:48px;flex:none;border:1px solid var(--d4y-text-tertiary);
  border-radius:var(--d4y-radius);background:var(--d4y-surface);color:var(--d4y-text-secondary);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.d4y-pdp-fav:hover{background:var(--d4y-hover-wash)}
.d4y-pdp-fav:focus-visible{box-shadow:var(--d4y-focus)}
.d4y-pdp-fav.is-active{background:var(--d4y-primary-tint-strong);border-color:var(--d4y-primary-tint-strong);color:var(--d4y-primary)}

.d4y-pdp-promises{margin-top:28px;border-top:1px solid var(--d4y-hairline)}
.d4y-pdp-promise{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--d4y-hairline)}
.d4y-pdp-promise-icon{flex:none;margin-top:1px;color:var(--d4y-text-secondary);display:flex}
.d4y-pdp-promise-body{display:flex;flex-direction:column;font-size:14px;line-height:20px}
.d4y-pdp-promise-title{font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px}  /* Label L */
.d4y-pdp-promise-text{font-size:14px;line-height:20px;letter-spacing:0.25px;color:var(--d4y-text-secondary);margin-top:2px}  /* Body M */

.d4y-pdp-band{padding-top:64px}
.d4y-pdp-band > h2{margin-bottom:20px}
.d4y-pdp-prose{max-width:720px}
.d4y-pdp-prose p{margin:0 0 16px}
.d4y-pdp-prose p:last-child{margin-bottom:0}
.d4y-pdp-bundle{max-width:720px;line-height:28px}
.d4y-spec-table{max-width:720px}
.d4y-spec-row{display:grid;grid-template-columns:200px 1fr;padding:12px 0;border-bottom:1px solid var(--d4y-hairline);font-size:14px;line-height:20px;letter-spacing:0.25px}  /* Body M */
.d4y-spec-key{font-weight:600;letter-spacing:.1px}

@media(max-width:900px){
  .d4y-pdp{grid-template-columns:1fr;gap:28px}
  .d4y-pdp-stage{padding:32px}
  .d4y-spec-row{grid-template-columns:1fr;gap:2px}
  .d4y-spec-row .d4y-spec-key{color:var(--d4y-text-secondary);font-size:12px;line-height:16px}
}

/* ---------- 23. Cart ------------------------------------------------------ */
.d4y-cart-head{padding-top:40px}
.d4y-cart-title{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.d4y-cart-empty{padding-top:32px;display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.d4y-cart{padding-top:32px;display:grid;grid-template-columns:1fr 384px;gap:48px;align-items:start}
.d4y-cart-lines{min-width:0}
.d4y-cart-row{
  display:grid;grid-template-columns:1fr 140px 120px;gap:24px;align-items:center;
  padding:24px 0;border-bottom:1px solid var(--d4y-hairline);
}
.d4y-cart-row--head{padding:0 0 12px;border-bottom:1px solid var(--d4y-hairline-strong)}
.d4y-right{text-align:right}
.d4y-cart-item{display:flex;gap:16px;align-items:center;min-width:0}
.d4y-cart-thumb{
  width:88px;height:88px;flex:none;background:var(--d4y-surface);
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  display:flex;align-items:center;justify-content:center;padding:16px;
}
.d4y-cart-thumb img{width:100%;height:100%;object-fit:contain}
.d4y-cart-meta{min-width:0}
.d4y-cart-sub{margin-top:2px}
.d4y-cart-remove-form{margin:8px 0 0}
/* A remove/link action must be a real submit button, not an <a>, because it mutates. */
.d4y-linkbtn{
  border:none;background:none;padding:0;cursor:pointer;
  font-family:var(--d4y-font);font-size:14px;line-height:20px;font-weight:500;
  color:var(--d4y-primary);
}
.d4y-linkbtn:hover{color:var(--d4y-primary-hover);text-decoration:underline}
.d4y-linkbtn:focus-visible{box-shadow:var(--d4y-focus);border-radius:4px}
.d4y-qty--cart{width:132px;height:44px;margin:0}
.d4y-qty--cart button{height:42px}
.d4y-qty--cart .d4y-qty-value{width:42px;display:inline-block;line-height:42px}
.d4y-cart-linetotal{font-size:16px;line-height:24px;font-weight:600;text-align:right}
.d4y-cart-coupon{padding:20px 0}
.d4y-cart-cross{margin-top:40px}
.d4y-cart-cross > h2{margin-bottom:20px}

.d4y-cart-summary{
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  padding:24px;position:sticky;top:24px;
}
.d4y-ship-meter{margin-top:20px}
.d4y-ship-bar{height:4px;background:var(--d4y-hairline);border-radius:2px;margin-top:8px;overflow:hidden}
.d4y-ship-bar span{display:block;height:4px;width:0;background:var(--d4y-primary);transition:width .3s ease}
.d4y-sum-row{display:flex;justify-content:space-between;font-size:14px;line-height:20px;margin-top:10px}
.d4y-sum-row:first-of-type{margin-top:24px}
.d4y-sum-total{
  display:flex;justify-content:space-between;align-items:baseline;
  margin-top:16px;padding-top:16px;border-top:1px solid var(--d4y-hairline);
}
.d4y-cart-checkout{margin-top:20px}
.d4y-cart-keep{margin-top:12px}
.d4y-pay-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:20px;justify-content:center}
.d4y-pay-badge{
  height:24px;display:inline-flex;align-items:center;padding:0 10px;
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius-sm);
  font-size:11px;font-weight:500;color:var(--d4y-text-tertiary);
}
@media(max-width:1000px){
  .d4y-cart{grid-template-columns:1fr;gap:32px}
  .d4y-cart-summary{position:static}
}
@media(max-width:640px){
  .d4y-cart-row{grid-template-columns:1fr auto;gap:12px}
  .d4y-cart-row--head{display:none}
  .d4y-cart-item{grid-column:1 / -1}
  .d4y-cart-linetotal{text-align:left}
}

/* ---------- 24. Funnel chrome (checkout / success) ------------------------ */
body.d4y-funnel{background:var(--d4y-surface-alt)}
.d4y-funnel-head{background:var(--d4y-surface);border-bottom:1px solid var(--d4y-hairline)}
.d4y-funnel-bar{
  max-width:1140px;margin:0 auto;padding:0 var(--d4y-gutter);height:76px;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
}
.d4y-funnel-back{
  justify-self:start;display:inline-flex;align-items:center;gap:8px;
  font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px;color:var(--d4y-text-secondary);  /* Label L */
}
.sl-body .d4y-funnel-back{color:var(--d4y-text-secondary)}
.sl-body .d4y-funnel-back:hover{color:var(--d4y-text)}
.d4y-funnel-brand .d4y-wordmark{font-size:22px}
.sl-body .d4y-funnel-brand{color:var(--d4y-text)}
.d4y-funnel-secure{
  justify-self:end;display:inline-flex;align-items:center;gap:8px;
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;color:var(--d4y-text-secondary);
}
@media(max-width:640px){
  .d4y-funnel-bar{grid-template-columns:auto 1fr;height:60px;gap:12px}
  .d4y-funnel-secure{display:none}
}

/* ---------- 25. Checkout -------------------------------------------------- */
.d4y-funnel-wrap{max-width:1140px;margin:0 auto;padding:0 var(--d4y-gutter)}
.d4y-stepper-wrap{padding-top:32px}
.d4y-stepper{
  list-style:none;margin:0;padding:0;display:flex;align-items:center;justify-content:center;
  gap:12px;font-size:14px;line-height:20px;font-weight:500;flex-wrap:wrap;
}
.d4y-stepper li{display:inline-flex;align-items:center;gap:8px;color:var(--d4y-text-tertiary)}
.d4y-stepper li.is-current{color:var(--d4y-text)}
.d4y-stepper li + li::before{content:"";width:48px;height:1px;background:var(--d4y-hairline-strong);margin-right:12px}
.d4y-stepper .dot{
  width:24px;height:24px;border-radius:50%;border:1px solid var(--d4y-hairline-strong);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:12px;font-variant-numeric:tabular-nums;flex:none;
}
.d4y-stepper li.is-current .dot{background:var(--d4y-primary);color:#FFFFFF;border-color:var(--d4y-primary)}

.d4y-checkout{padding-top:32px;padding-bottom:88px;display:grid;grid-template-columns:1fr 384px;gap:48px;align-items:start}
.d4y-checkout-cards{display:flex;flex-direction:column;gap:24px;min-width:0}
.d4y-card-panel{background:var(--d4y-surface);border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);padding:28px}
.d4y-card-panel > h2{margin:0}
.d4y-panel-sub{margin-top:6px}
.d4y-checkout-form{display:flex;flex-direction:column;gap:24px;margin:0}
.d4y-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}
.d4y-field--wide{grid-column:1 / -1}
.d4y-checkout-empty{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-top:32px}

.d4y-alert{
  background:var(--d4y-badge-low-bg);border:1px solid #E6D9A8;color:var(--d4y-badge-low-fg);
  padding:12px 16px;border-radius:var(--d4y-radius);font-size:14px;line-height:20px;
}
.d4y-alert--info{background:var(--d4y-primary-tint);border-color:var(--d4y-primary-tint-strong);color:var(--d4y-badge-new-fg);margin-top:16px}

/* Radio choice rows — delivery and payment */
.d4y-choice-list{display:flex;flex-direction:column;gap:12px;margin-top:24px}
.d4y-choice{
  display:flex;align-items:center;gap:16px;padding:16px 20px;
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);cursor:pointer;
}
.d4y-choice:hover{border-color:var(--d4y-text-tertiary)}
.d4y-choice input{position:absolute;opacity:0;width:0;height:0}
.d4y-choice-radio{
  width:18px;height:18px;flex:none;border:2px solid var(--d4y-text-tertiary);border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
}
.d4y-choice:has(input:checked){border:2px solid var(--d4y-primary);background:var(--d4y-primary-tint);padding:15px 19px}
.d4y-choice:has(input:checked) .d4y-choice-radio{border-color:var(--d4y-primary)}
.d4y-choice:has(input:checked) .d4y-choice-radio::after{content:"";width:9px;height:9px;background:var(--d4y-primary);border-radius:50%}
.d4y-choice:has(input:focus-visible){box-shadow:var(--d4y-focus)}
.d4y-choice-body{flex:1;display:flex;flex-direction:column;min-width:0}
.d4y-choice-title{font-size:14px;line-height:20px;font-weight:600;letter-spacing:.1px}
.d4y-choice-note{font-size:12px;line-height:16px;color:var(--d4y-text-secondary);margin-top:2px}
.d4y-choice-price{font-size:14px;font-weight:600;flex:none}
.d4y-free{color:var(--d4y-stock-ok)}
.d4y-terms{padding:0 4px;align-items:flex-start}
.d4y-terms .box{margin-top:1px}
.d4y-coupon{display:flex;gap:16px;align-items:flex-end}
.d4y-coupon .d4y-field{flex:1}

.d4y-checkout-summary{
  background:var(--d4y-surface);border:1px solid var(--d4y-hairline);
  border-radius:var(--d4y-radius);padding:24px;position:sticky;top:24px;
}
.d4y-co-line{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid var(--d4y-hairline);align-items:center}
.d4y-co-thumb{
  position:relative;width:56px;height:56px;flex:none;background:var(--d4y-surface-alt);
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  display:flex;align-items:center;justify-content:center;padding:10px;
}
.d4y-co-thumb img{width:100%;height:100%;object-fit:contain}
.d4y-co-qty{
  position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;
  background:var(--d4y-text-secondary);color:#FFFFFF;border-radius:var(--d4y-radius-pill);
  font-size:11px;line-height:18px;font-weight:500;text-align:center;
}
.d4y-co-meta{flex:1;min-width:0}
.d4y-co-name{font-size:14px;line-height:20px;font-weight:500}
.d4y-co-price{font-size:14px;font-weight:600;flex:none}
.d4y-sum-row--fine{font-size:12px;line-height:16px;color:var(--d4y-text-tertiary)}
.d4y-co-pay{margin-top:20px;gap:6px}
.d4y-co-note{
  display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;
  font-size:12px;line-height:16px;color:var(--d4y-text-tertiary);text-align:center;
}
@media(max-width:1000px){
  .d4y-checkout{grid-template-columns:1fr;gap:28px}
  .d4y-checkout-summary{position:static}
}
@media(max-width:640px){
  .d4y-field-grid{grid-template-columns:1fr;gap:20px}
  .d4y-card-panel{padding:20px}
  .d4y-coupon{flex-direction:column;align-items:stretch}
  .d4y-stepper li + li::before{width:20px;margin-right:8px}
}

/* ---------- 26. Message pages (confirmation / 404) ------------------------ */
.d4y-message{max-width:720px;margin:0 auto;padding:72px var(--d4y-gutter) 96px;text-align:center}
.d4y-message-badge{
  width:96px;height:96px;margin:0 auto;border-radius:50%;
  background:var(--d4y-primary-tint);color:var(--d4y-primary);
  display:flex;align-items:center;justify-content:center;
}
.d4y-message-art{position:relative;width:180px;height:180px;margin:0 auto;color:var(--d4y-hairline-strong)}
.d4y-message-art .board{width:100%;height:100%}
.d4y-message-art .dart{position:absolute;width:64px;height:64px;top:-14px;right:-22px;transform:rotate(12deg);color:var(--d4y-primary)}
.d4y-message-title{margin-top:36px}
.d4y-message-body{color:var(--d4y-text-secondary);margin:16px auto 0;max-width:440px}
.d4y-message-body strong{color:var(--d4y-text)}
.d4y-message-actions{display:flex;gap:12px;justify-content:center;margin-top:32px;flex-wrap:wrap}
.d4y-btn--tall{height:48px;padding:0 24px}
@media(max-width:640px){
  .d4y-message{padding:48px var(--d4y-gutter) 64px}
  .d4y-message-art{width:140px;height:140px}
}

/* ---------- 27. Search + wishlist ----------------------------------------- */
.d4y-search-head{padding-top:40px}
.d4y-search-title{margin-top:16px}
.d4y-search-box{max-width:560px;margin-top:20px}
.d4y-search-count{margin-top:12px}
.d4y-search-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.d4y-search-tabs .d4y-chip{height:36px}
.d4y-search-body{padding-top:32px}
.d4y-search-pages{margin-top:48px;max-width:720px}
.d4y-search-pages > h2{margin-bottom:16px}
.d4y-search-page{display:block;padding:16px 0;border-bottom:1px solid var(--d4y-hairline)}
.d4y-search-page-title{
  display:block;font-size:16px;line-height:24px;font-weight:600;letter-spacing:.15px;color:var(--d4y-primary);
}
.d4y-search-page-desc{display:block;font-size:14px;line-height:20px;color:var(--d4y-text-secondary);margin-top:4px}
.d4y-search-help{
  margin-top:64px;max-width:720px;border:1px solid var(--d4y-hairline);
  border-radius:var(--d4y-radius);padding:32px;background:var(--d4y-surface-alt);
}
.d4y-search-help-body{margin-top:4px}
.d4y-wishlist-head{padding-top:40px}
.d4y-wishlist-note{margin-top:8px}
.d4y-wishlist-body{padding-top:32px}
.d4y-wishlist-empty{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:32px 0}

/* ---------- 28. Platform contact form ------------------------------------- *
 * Kontakti is composed from the PLATFORM contact-form section, not a custom one — it already
 * models the artboard's two columns (contact details beside the form). Only its classes are
 * restyled here, so the client keeps the section's own settings in the page designer. */
.sl-section--page-header .sl-container > h1{
  font-family:var(--d4y-font-display);font-stretch:80%;font-weight:600;
  font-size:36px;line-height:44px;margin:0;
}
/* The tracks were the wrong way round, and `order` does not move an item between tracks:
   with 7fr 5fr the DETAILS panel (order 1 -> track 1) took the 691px column and sat 230px
   tall, while the FORM (order 2 -> track 2) was squeezed into 493px and ran 623px. That is
   what the client saw as "completely broken" on 2026-09-10. Narrow track first, so the
   panel is the narrow left column and the form gets the width it needs. */
.sl-contact:not(.sl-contact--form-only){
  display:grid;grid-template-columns:5fr 7fr;gap:48px;align-items:start;
}
.sl-contact > div:first-child{order:2}      /* the artboard puts details first, form second */
/* TWO BOXES THAT DO NOT LINE UP ARE WORSE THAN ONE. The details panel and the form were
   both cards, but the form column carries a heading and an intro line above its card while
   the details card carried its heading INSIDE — so the two borders started 112px apart and
   the two headings 29px apart (measured at 1440). The client's "not aligned".

   The details are a list, not a control: the card comes off them, their heading moves up to
   the same role and the same line as "Uzraksti mums", and the only box left on the page is
   the one you can type into. Nothing now has anything to fail to line up with. */
/* The border/padding/background have to be RESET, not merely dropped from our rule: the
   platform's own stylesheet cards this panel too, and removing ours just uncovered it. */
.sl-contact__info{order:1;align-self:start;border:0;padding:0;background:transparent}
.sl-contact__form{
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  padding:28px;background:var(--d4y-surface);
}
.sl-contact__form{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.sl-contact__form > div{display:flex;flex-direction:column;gap:6px;min-width:0}
.sl-contact__field--full{grid-column:1 / -1}
.sl-contact__form label{
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;color:var(--d4y-text-secondary);
}
.sl-contact__form input,.sl-contact__form select,.sl-contact__form textarea{
  width:100%;height:48px;padding:0 16px;
  border:1px solid var(--d4y-text-tertiary);border-radius:var(--d4y-radius);
  background:var(--d4y-surface);color:var(--d4y-text);
  font-family:var(--d4y-font);font-size:16px;line-height:24px;
}
.sl-contact__form textarea{height:auto;min-height:140px;padding:14px 16px;resize:vertical}
.sl-contact__form input:focus,.sl-contact__form textarea:focus,.sl-contact__form select:focus{
  outline:2px solid transparent;outline-offset:2px;border:2px solid var(--d4y-primary);padding:0 15px;
}
.sl-contact__form textarea:focus{padding:13px 15px}
.sl-contact__info-row{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:20px;margin-top:14px}
.sl-contact__info-label{font-weight:500;color:var(--d4y-text-secondary);flex:none}
.sl-contact__info h2,.sl-contact__info h3{
  font-family:var(--d4y-font);font-size:22px;line-height:28px;font-weight:600;margin:0;
}
/* The platform's own button, in the design system's clothes. */
.sl-btn{
  display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 28px;
  border:none;border-radius:var(--d4y-radius);cursor:pointer;text-decoration:none;
  font-family:var(--d4y-font);font-size:14px;line-height:20px;font-weight:500;letter-spacing:.1px;
}
.sl-btn--primary{background:var(--d4y-primary);color:#FFFFFF}
.sl-btn--primary:hover{background:var(--d4y-primary-hover);color:#FFFFFF}
.sl-btn:focus-visible{box-shadow:var(--d4y-focus)}
.sl-contact__form .sl-btn{grid-column:1 / -1;justify-self:start;margin-top:4px}
/* The platform sets this intro's margin in em (1.2em = 19.2px), which is off the design's
   2px grid by construction. Roles are absolute pairs on this build, spacing included. */
.sl-body .sl-subheading{margin-bottom:20px;font-size:16px;line-height:24px;letter-spacing:0.15px}  /* Body L */

@media(max-width:900px){
  /* `:not(.sl-contact--form-only)` here too. The desktop rule is (0,2,0) and this was
     (0,1,0), so it lost on specificity inside its own media query — the page kept two
     columns at 390px and squeezed the form to 111px. Specificity beats source order, and
     a media query does not change that. */
  .sl-contact:not(.sl-contact--form-only){grid-template-columns:1fr;gap:24px}
  /* Stacked, the details lead. That is the order the desktop reads left-to-right, and on a
     phone the phone number is the thing most people came for — order:0 on both put the form
     first purely by DOM order. */
  .sl-contact__info{order:0}
  .sl-contact > div:first-child{order:1}
  .sl-contact__form{grid-template-columns:1fr}
}

/* ---------- 29. Mobile chrome --------------------------------------------- *
 * The desktop mega-menu cannot fold into a 390px column, so below the breakpoint the header
 * becomes: burger · wordmark · account + cart, with the search on its own row underneath and
 * the same nav rendered as a drawer. Matches the Mobile Home artboard. */
.d4y-burger{
  display:none;width:44px;height:44px;padding:0;flex:none;border:none;background:transparent;
  color:var(--d4y-text);cursor:pointer;align-items:center;justify-content:center;
  border-radius:50%;
}
.d4y-burger:hover{background:var(--d4y-hover-wash)}
.d4y-burger:focus-visible{box-shadow:var(--d4y-focus)}

.d4y-drawer-scrim{position:fixed;inset:0;background:rgba(28,25,23,.45);z-index:98;border:0}
.d4y-drawer{
  position:fixed;top:0;left:0;bottom:0;width:min(88vw,340px);z-index:99;
  background:var(--d4y-surface);border-right:1px solid var(--d4y-hairline);
  display:flex;flex-direction:column;overflow-y:auto;
  transform:translateX(-100%);transition:transform .22s ease;
}
.d4y-drawer.is-open{transform:translateX(0)}
.d4y-drawer-top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px;border-bottom:1px solid var(--d4y-hairline);
}
.d4y-drawer-top .d4y-wordmark{font-size:20px}
.d4y-drawer-search{margin:16px;height:44px}
.d4y-drawer-nav{list-style:none;margin:0;padding:0 16px}
.d4y-drawer-nav > li{border-bottom:1px solid var(--d4y-hairline)}
.d4y-drawer-nav > li:last-child{border-bottom:0}
.sl-body .d4y-drawer-link{
  display:block;padding:14px 0;font-size:16px;line-height:24px;font-weight:600;
  letter-spacing:.15px;color:var(--d4y-text);
}
.sl-body .d4y-drawer-link.is-sale{color:var(--d4y-sale)}
.d4y-drawer-sub{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:2px}
.sl-body .d4y-drawer-sub a{
  display:block;padding:8px 0 8px 12px;font-size:14px;line-height:20px;color:var(--d4y-text-secondary);
}
.sl-body .d4y-drawer-sub a:hover{color:var(--d4y-text)}
.d4y-drawer-foot{
  margin-top:auto;padding:16px;border-top:1px solid var(--d4y-hairline);
  display:flex;flex-direction:column;gap:12px;
}
.sl-body .d4y-drawer-util{font-size:14px;line-height:20px;font-weight:500;color:var(--d4y-text)}
.d4y-drawer-lang{display:flex;gap:12px;font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px;margin-top:4px}  /* Label L */
.d4y-drawer-lang .is-current{color:var(--d4y-primary)}
body.d4y-no-scroll{overflow:hidden}

@media(max-width:900px){
  .d4y-burger{display:flex}
  /* burger · brand · actions, with the search dropped onto its own row */
  /* Two rows: [burger | brand | actions] then the search spanning underneath.
     Every child is placed EXPLICITLY — with auto-placement the actions were pushed to a
     third row and ended up floating over the hero. */
  .d4y-header-bar{
    grid-template-columns:auto 1fr auto;
    grid-template-rows:64px auto;
    height:auto;gap:0 8px;
    padding-left:8px;padding-right:8px;
  }
  .d4y-burger{grid-row:1;grid-column:1}
  .d4y-brand{grid-row:1;grid-column:2;justify-self:center}
  .d4y-brand .d4y-wordmark{font-size:20px}
  .d4y-header-actions{grid-row:1;grid-column:3;gap:0}
  .d4y-header-search{
    grid-row:2;grid-column:1 / -1;width:auto;height:44px;margin:0 8px 12px;
  }
  .d4y-header{padding-bottom:0}
  .d4y-navwrap{display:none}
  .d4y-utility-inner{gap:12px}
  /* Two rows of 12/16, because the client's longest USP line wraps at this width. */
  :root{--d4y-usp-step:32px}
  .d4y-lang{display:none}          /* the drawer carries the language switcher on phones */
}
@media(max-width:760px){
  /* Section 14 hid the search outright; on a shop it belongs on every screen. */
  .d4y-header-search{display:flex}
}

/* The platform's `.sl-body a` rule (0,1,1) outranks `.d4y-icon-btn` (0,1,0), which turned the
   header's heart / account / cart icons the action colour. Restate at matching strength. */
.sl-body .d4y-icon-btn{color:var(--d4y-text-secondary)}
.sl-body .d4y-icon-btn:hover{color:var(--d4y-text)}
.sl-body .d4y-icon-btn.is-active{color:var(--d4y-primary)}

/* ---------- 30. Mobile refinements ---------------------------------------- */
@media(max-width:900px){
  /* The mobile artboard's header carries account + cart only; the wishlist lives in the
     drawer, where it has room for a label. */
  .d4y-header-actions [data-d4y-wishlist-link]{display:none}
}
@media(max-width:640px){
  /* A row marked "swipe sideways" becomes a snap rail, edge-to-edge, per Mobile Home. */
  .d4y-grid--rail{
    display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;
    scrollbar-width:none;
    margin-left:calc(var(--d4y-gutter) * -1);margin-right:calc(var(--d4y-gutter) * -1);
    padding:0 var(--d4y-gutter) 8px;
  }
  .d4y-grid--rail::-webkit-scrollbar{display:none}
  .d4y-grid--rail > *{width:200px;flex:none;scroll-snap-align:start}
  /* Section rhythm and card type step down on phones. */
  .d4y-section-head,.sl-body .sl-band-header-row{margin-bottom:16px}
  .d4y-card-body{padding:12px 14px 16px}
  .d4y-grid{gap:12px}
  /* Razma band: stacked, full-width button, 4:3 picture. */
  /* `padding-block`, not the `padding` shorthand: this element is also a `.d4y-container`,
     and the shorthand's second value zeroed the 16px side gutter — the copy ran edge to
     edge and clipped its last word. The shorthand is the trap; only the vertical value was
     ever meant to change here. */
  .d4y-feature-inner{padding-block:40px}
  .d4y-feature .d4y-display-m{font-size:28px;line-height:36px}
  .d4y-feature-media,.d4y-feature-ph{min-height:0;aspect-ratio:4/3}
  .d4y-feature-cta{width:100%}
}

/* ---------- 31. Player page ----------------------------------------------- */
.d4y-player-hero-inner{padding:64px 0;display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:center}
.d4y-breadcrumb--dark{color:var(--d4y-text-inverse-secondary)}
.sl-body .d4y-breadcrumb--dark a{color:var(--d4y-text-inverse-secondary)}
.sl-body .d4y-breadcrumb--dark a:hover{color:#FFFFFF}
.d4y-breadcrumb--dark [aria-current]{color:var(--d4y-hairline-strong)}
.d4y-player-name{margin-top:24px;color:#FFFFFF}
.d4y-player-lead{margin-top:16px;max-width:480px;color:var(--d4y-hairline-strong)}
.d4y-player-stats{display:flex;gap:32px;margin-top:32px;flex-wrap:wrap}
.d4y-player-stat-value{
  font-family:var(--d4y-font-display);font-stretch:80%;font-weight:600;
  font-size:32px;line-height:40px;color:var(--d4y-on-dark-accent);
}
.d4y-player-stat-label{font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;   /* Label M */color:var(--d4y-text-inverse-secondary);margin-top:4px}
.d4y-player-photo{align-self:stretch;aspect-ratio:3/2;min-height:0;border-radius:var(--d4y-radius);overflow:hidden;display:flex}
.d4y-player-photo img{width:100%;height:100%;object-fit:cover}
.d4y-player-ph{flex:1;background:var(--d4y-dark-band-tint)}
.d4y-player-ph svg{width:120px;height:120px;stroke:var(--d4y-text-secondary)}

.d4y-split{padding-top:72px;display:grid;grid-template-columns:7fr 5fr;gap:64px;align-items:start}
.d4y-split-main{max-width:640px}
.d4y-split-main h2{
  font-family:var(--d4y-font-display);font-stretch:80%;font-weight:600;
  font-size:32px;line-height:40px;margin:48px 0 20px;
}
.d4y-split-main h2:first-child{margin-top:0}
.d4y-split-main p{margin:0 0 16px}
.d4y-split-heading{margin-bottom:16px}
.d4y-minilist{display:flex;flex-direction:column;gap:12px}
.d4y-mini{
  display:flex;gap:14px;align-items:center;border:1px solid var(--d4y-hairline);
  border-radius:var(--d4y-radius);padding:14px;color:var(--d4y-text);
}
.sl-body .d4y-mini{color:var(--d4y-text)}
.d4y-mini:hover{border-color:var(--d4y-hairline-strong)}
.d4y-mini-thumb{
  width:64px;height:64px;flex:none;background:var(--d4y-surface);border-radius:var(--d4y-radius);
  display:flex;align-items:center;justify-content:center;padding:8px;
}
.d4y-mini-thumb img{width:100%;height:100%;object-fit:contain}
.d4y-mini-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.d4y-mini-price .now{font-size:18px}
.d4y-split-more{display:inline-block;margin-top:16px;color:var(--d4y-primary)}
@media(max-width:900px){
  .d4y-player-hero-inner{grid-template-columns:1fr;gap:32px;padding:40px 0}
  .d4y-player-hero .d4y-display-l{font-size:36px;line-height:44px;letter-spacing:0}   /* → Display S */
  .d4y-player-photo{min-height:0;aspect-ratio:4/3}
  .d4y-split{grid-template-columns:1fr;gap:40px;padding-top:48px}
  .d4y-split-main{max-width:none}
}

/* ---------- 32. Mini-cart -------------------------------------------------- */
.d4y-minicart{
  position:fixed;top:0;right:0;bottom:0;width:min(92vw,400px);z-index:99;
  background:var(--d4y-surface);border-radius:12px 0 0 12px;box-shadow:var(--d4y-shadow);
  display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .22s ease;
}
.d4y-minicart.is-open{transform:translateX(0)}
.d4y-minicart-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:20px 24px;border-bottom:1px solid var(--d4y-hairline);flex:none;
}
.d4y-minicart-body{flex:1;overflow-y:auto;padding:0 24px}
.d4y-minicart-line{display:flex;gap:14px;padding:20px 0;border-bottom:1px solid var(--d4y-hairline)}
.d4y-minicart-thumb{
  width:72px;height:72px;flex:none;background:var(--d4y-surface-alt);
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  display:flex;align-items:center;justify-content:center;padding:12px;
}
.d4y-minicart-thumb img{width:100%;height:100%;object-fit:contain}
.d4y-minicart-meta{flex:1;min-width:0}
.d4y-minicart-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.d4y-qty--mini{height:36px;margin:0}
.d4y-qty--mini button{width:36px;height:34px;font-size:16px}
.d4y-qty--mini .d4y-qty-value{width:28px;font-size:13px;display:inline-block;line-height:34px}
.d4y-minicart-total{font-size:16px;font-weight:600}
.d4y-minicart-remove{margin-top:8px}
.d4y-linkbtn--sm{font-size:12px;line-height:16px}
.d4y-minicart-cross{padding:20px 0}
.d4y-minicart-cross-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.d4y-minicart-x{
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);padding:12px;
  display:flex;flex-direction:column;color:var(--d4y-text);
}
.sl-body .d4y-minicart-x{color:var(--d4y-text)}
.d4y-minicart-x:hover{background:var(--d4y-surface-alt)}
.d4y-minicart-x-media{height:56px;display:flex;align-items:center;justify-content:center}
.d4y-minicart-x-media img{max-height:56px;width:auto;object-fit:contain}
.d4y-minicart-x-name{font-size:12px;line-height:16px;font-weight:500;margin-top:8px}
.d4y-minicart-x-price{font-size:14px;line-height:20px;font-weight:600;margin-top:4px}
.d4y-minicart-foot{border-top:1px solid var(--d4y-hairline);padding:20px 24px;flex:none}
.d4y-minicart-sum{display:flex;justify-content:space-between;align-items:baseline;margin-top:16px}
.d4y-minicart-subtotal{font-size:18px;font-weight:600}
.d4y-minicart-foot .d4y-btn--filled{margin-top:16px}
.d4y-minicart-view{margin-top:10px}
.d4y-minicart-empty{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:24px;text-align:center;gap:8px;
}
.d4y-minicart-empty svg{width:120px;height:120px;stroke:var(--d4y-hairline-strong);fill:none;stroke-width:1.5}
.d4y-minicart-empty .d4y-title-l{margin-top:16px}
.d4y-minicart-empty p{max-width:260px}
.d4y-minicart-empty .d4y-btn{margin-top:16px}

/* ---------- 33. Tap targets ------------------------------------------------ *
 * WCAG 2.5.8 asks for 24x24 on interactive controls. Standalone text links — the
 * "see all" links beside a section heading, footer links, teaser card links — were
 * 20-21px tall. Padding grows the hit area; the negative margin keeps the visual
 * rhythm exactly as designed, so nothing moves. */
.sl-body .d4y-section-head a,
.sl-body .d4y-footer-links a,
.sl-body .d4y-drawer-util,
.sl-body .d4y-split-more,
.sl-body .sl-band-link,
.sl-body .sl-post-card{
  padding-block:2px;margin-block:-2px;
}
.sl-body .d4y-footer-contact a{padding-block:2px;margin-block:-2px}
/* The breadcrumb's links sit inside a text line, which WCAG exempts, but the extra
   couple of pixels cost nothing. */
.sl-body .d4y-breadcrumb a{padding-block:2px;margin-block:-2px;display:inline-block}
/* The language switcher lives in a 36px strip; padding fills the strip's height without
   changing where the text sits. */
.sl-body .d4y-lang a,.d4y-lang .is-current{padding-block:10px;margin-block:-10px;display:inline-block}
/* Remaining standalone controls brought to the 24px minimum. Links that sit INSIDE a
   sentence (the checkout consent line, "Jau esi klients? Ienākt kontā") are deliberately
   left alone: WCAG 2.5.8 exempts them, and padding them would break the line rhythm. */
.sl-body .d4y-linkbtn,
.sl-body .d4y-filter-more,
.sl-body .d4y-label-l,
.sl-body .d4y-pdp-brand,
.sl-body .sl-contact__info-row a{
  padding-block:3px;margin-block:-3px;display:inline-block;
}
.sl-body .d4y-breadcrumb a{padding-block:4px;margin-block:-4px}
.d4y-filter-more{width:100%;text-align:left}
.sl-body .d4y-filter-more:hover{color:var(--d4y-primary-hover);text-decoration:underline}
.sl-body .d4y-funnel-back{padding-block:3px;margin-block:-3px}

/* ---------- 34. Mobile PLP ------------------------------------------------- */
/* Desktop: the rail is a plain column and the Filtri button does not exist. */
.d4y-filters-btn{display:none}
.d4y-filters-head,.d4y-filters-foot{display:none}
.d4y-filters-scroll{display:contents}

@media(max-width:900px){
  .d4y-plp-head{padding-top:20px}
  .d4y-plp-head .d4y-display-s{font-size:28px;line-height:36px}
  .d4y-plp-title{gap:12px;margin-top:12px}
  /* Quick chips scroll sideways rather than wrapping into a tall block. */
  .d4y-plp-chips{
    flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
    margin-left:calc(var(--d4y-gutter) * -1);margin-right:calc(var(--d4y-gutter) * -1);
    padding:0 var(--d4y-gutter);
  }
  .d4y-plp-chips::-webkit-scrollbar{display:none}
  .d4y-plp-chips > *{flex:none}

  /* The toolbar becomes the artboard's sticky [Filtri][Kārtot] pair. It sticks under the
     header, whose height on phones is the 32px utility strip + 64px bar + 56px search row. */
  .d4y-plp-toolbar{
    position:sticky;top:0;z-index:40;background:var(--d4y-surface);
    display:grid;grid-template-columns:1fr 1fr;gap:8px;
    margin:16px calc(var(--d4y-gutter) * -1) 0;
    padding:10px var(--d4y-gutter);
    border-bottom:1px solid var(--d4y-hairline);border-top:1px solid var(--d4y-hairline);
    min-height:0;
  }
  .d4y-plp-toolbar [data-d4y-range]{display:none}
  .d4y-filters-btn{line-height:20px;
    display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;
    border:1px solid var(--d4y-text-tertiary);border-radius:var(--d4y-radius);
    background:var(--d4y-surface);color:var(--d4y-text);cursor:pointer;
    font-family:var(--d4y-font);font-size:14px;font-weight:500;letter-spacing:.1px;
  }
  /* It never set padding, so it kept the UA's `1px 6px` — the fourth instance of this
     exact fault on this build (the header search, the quantity input, the icon buttons,
     the PDP favourite). And it had no hover state at all. Both found by widening the
     deep page audit to the category routes in round 5. */
  .d4y-filters-btn{padding:0 16px}
  .d4y-filters-btn:hover{background:var(--d4y-hover-wash);border-color:var(--d4y-text-secondary)}
  .d4y-filters-btn:focus-visible{box-shadow:var(--d4y-focus)}
  .d4y-filters-count{
    min-width:18px;height:18px;padding:0 5px;background:var(--d4y-primary);color:#FFFFFF;
    border-radius:var(--d4y-radius-pill);font-size:11px;line-height:18px;
    font-variant-numeric:tabular-nums;
  }
  .d4y-sort{
    height:44px;border:1px solid var(--d4y-text-tertiary);border-radius:var(--d4y-radius);
    display:inline-flex;align-items:center;justify-content:center;padding:0 28px 0 12px;
  }
  .d4y-sort::after{right:12px}

  .d4y-plp-applied{margin-top:12px;gap:8px}
  .d4y-plp-applied .d4y-chip{font-size:13px}
  .d4y-plp-grid{margin-top:16px}

  /* The facet rail becomes a drawer. It stays in the DOM either way, so the JS that fills
     it does not need to know which mode it is in. */
  .d4y-filters{
    position:fixed;top:0;right:0;bottom:0;width:min(92vw,360px);z-index:99;
    background:var(--d4y-surface);box-shadow:var(--d4y-shadow);
    display:flex;flex-direction:column;padding:0;
    transform:translateX(100%);transition:transform .22s ease;
  }
  .d4y-filters.is-open{transform:translateX(0)}
  .d4y-filters[hidden]{display:flex}          /* JS unhides on init; the transform hides it */
  .d4y-filters-head{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:16px 20px;border-bottom:1px solid var(--d4y-hairline);flex:none;
  }
  .d4y-filters-scroll{display:block;flex:1;overflow-y:auto;padding:0 20px}
  .d4y-filters-foot{display:block;padding:16px 20px;border-top:1px solid var(--d4y-hairline);flex:none}

  /* Pagination stacks and centres. */
  .d4y-plp-foot{flex-direction:column;align-items:center;gap:16px;padding:32px 0 48px;margin-top:0}
}
@media(max-width:640px){
  .d4y-plp-grid{grid-template-columns:1fr 1fr;gap:12px}
}

/* ---------- 35. Mobile PDP -------------------------------------------------- */
.d4y-pdp-rail{display:none}
.d4y-pdp-counter{display:none}
.d4y-pdp-sticky{display:none}

@media(max-width:900px){
  .d4y-pdp-crumbs{padding-top:20px}
  .d4y-pdp{padding-top:16px;gap:20px}
  /* Swipe rail replaces the stage + thumbnails. */
  .d4y-pdp-stage,.d4y-pdp-thumbs{display:none}
  .d4y-pdp-gallery{position:relative}
  .d4y-pdp-rail{
    display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
    border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
    background:var(--d4y-surface);
  }
  .d4y-pdp-rail::-webkit-scrollbar{display:none}
  .d4y-pdp-shot{
    flex:none;width:100%;aspect-ratio:1/1;scroll-snap-align:center;
    display:flex;align-items:center;justify-content:center;padding:32px;
  }
  .d4y-pdp-shot img{width:100%;height:100%;object-fit:contain}
  .d4y-pdp-counter{line-height:16px;
    display:inline-flex;align-items:center;position:absolute;bottom:12px;right:12px;
    height:24px;padding:0 10px;background:var(--d4y-surface);
    border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius-pill);
    font-size:12px;font-weight:500;letter-spacing:0.5px;color:var(--d4y-text-secondary);   /* Label M */
    font-variant-numeric:tabular-nums;
  }
  .d4y-pdp-badge{z-index:2}

  .d4y-pdp-title{font-size:24px;line-height:32px}
  .d4y-pdp-price .now{font-size:28px;line-height:32px}
  .d4y-pdp-band{padding-top:32px}
  .d4y-pdp-band > h2{font-size:20px;line-height:28px;margin-bottom:12px}
  .d4y-pdp-prose{font-size:14px;line-height:20px;letter-spacing:.25px}
  .d4y-spec-row{grid-template-columns:130px 1fr;font-size:13px;line-height:18px;padding:10px 0;gap:0}
  .d4y-spec-row .d4y-spec-key{color:var(--d4y-text);font-size:14px;line-height:20px;font-weight:600}
  .d4y-spec-row .d4y-spec-val{font-size:14px;line-height:20px;letter-spacing:0.25px}  /* Body M */

  /* The buy box's own button stays for no-JS and for keyboard order; the sticky bar is the
     thumb-reachable copy. */
  .d4y-pdp-sticky{
    display:flex;gap:12px;align-items:center;
    position:sticky;bottom:0;z-index:50;
    background:var(--d4y-surface);border-top:1px solid var(--d4y-hairline);
    padding:12px var(--d4y-gutter);
    padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));
  }
  .d4y-pdp-sticky-meta{flex:none}
  .d4y-pdp-sticky-price{font-size:18px;line-height:24px;font-weight:600}
  .d4y-pdp-sticky-sub{font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;color:var(--d4y-text-secondary)}  /* Label M */
  .d4y-pdp-sticky-add{flex:1}
}

/* ---------- 36. Mobile cart ------------------------------------------------ */
/* Desktop keeps the artboard's three columns; the thumb and name share the first. */
.d4y-cart-row{grid-template-columns:88px 1fr 140px 120px}
.d4y-cart-row--head{grid-template-columns:1fr 140px 120px}
.d4y-cart-meta{align-self:center}

@media(max-width:900px){
  .d4y-cart-head{padding-top:24px}
  .d4y-cart-head .d4y-display-s{font-size:28px;line-height:36px}
  .d4y-cart-row--head{display:none}
  /* thumb on the left spanning the block; name, then quantity + total, then remove. */
  .d4y-cart-row{
    grid-template-columns:80px 1fr;
    grid-template-areas:"thumb meta" "thumb qty";
    column-gap:14px;row-gap:12px;padding:20px 0;
  }
  .d4y-cart-thumb{grid-area:thumb;width:80px;height:80px;padding:14px;align-self:start}
  .d4y-cart-meta{grid-area:meta;align-self:start}
  .d4y-cart-row .d4y-qty--cart{grid-area:qty;justify-self:start}
  .d4y-cart-linetotal{grid-area:qty;justify-self:end;align-self:center;text-align:right}
  .d4y-cart-remove-form{margin-top:10px}
  .d4y-cart-sub{font-size:12px;line-height:16px}

  /* The cross-sell row swipes instead of squeezing three cards into 390px. */
  .d4y-cart-cross{margin-top:32px}
  .d4y-cart-cross > h2{font-size:20px;line-height:28px;margin-bottom:16px}
  .d4y-cart-cross .d4y-grid{
    display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;
    margin-left:calc(var(--d4y-gutter) * -1);margin-right:calc(var(--d4y-gutter) * -1);
    padding:0 var(--d4y-gutter) 8px;
  }
  .d4y-cart-cross .d4y-grid::-webkit-scrollbar{display:none}
  .d4y-cart-cross .d4y-grid > *{width:180px;flex:none}

  /* The figures keep the card; the buttons step outside it, as drawn. */
  .d4y-cart-summary{border:none;padding:0;position:static}
  .d4y-cart-figures{
    border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);padding:20px;
  }
  .d4y-cart-summary > .d4y-title-l{display:none}
  .d4y-cart-figures .d4y-sum-row:first-of-type{margin-top:20px}
  .d4y-cart-checkout{margin-top:16px}
  .d4y-pay-badges{margin-top:10px}
}

/* ---------- 37. Mobile checkout -------------------------------------------- */
.d4y-checkout-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.d4y-checkout-sticky{display:none}

@media(max-width:900px){
  .d4y-stepper-wrap{padding-top:24px}
  /* The title becomes visible and the stepper steps down to the artboard's smaller scale. */
  .d4y-checkout-title{
    position:static;width:auto;height:auto;margin:0 0 16px;padding:0;overflow:visible;
    clip:auto;white-space:normal;font-size:28px;line-height:36px;
  }
  .d4y-stepper{justify-content:flex-start;gap:8px;font-size:12px;line-height:16px}
  .d4y-stepper .dot{width:20px;height:20px;font-size:11px}
  .d4y-stepper li{gap:6px}
  .d4y-stepper li + li::before{width:24px;margin-right:8px}

  .d4y-checkout{padding-top:24px;padding-bottom:0;gap:16px}
  .d4y-checkout-cards{gap:16px}
  .d4y-card-panel{padding:20px}
  .d4y-card-panel > h2{font-size:20px;line-height:28px}
  .d4y-field-grid{grid-template-columns:1fr;gap:20px;margin-top:20px}
  .d4y-choice{padding:14px 16px;gap:12px}
  .d4y-choice:has(input:checked){padding:13px 15px}
  .d4y-checkout-summary{padding:20px}
  .d4y-checkout-summary .d4y-title-l{font-size:18px;line-height:24px}
  .d4y-co-thumb{width:48px;height:48px;padding:8px}
  .d4y-checkout-summary .d4y-co-pay,
  .d4y-checkout-summary .d4y-co-note{display:none}   /* the sticky bar carries these */

  .d4y-checkout-sticky{
    display:block;position:sticky;bottom:0;z-index:50;
    background:var(--d4y-surface);border-top:1px solid var(--d4y-hairline);
    padding:12px var(--d4y-gutter);
    padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));
    margin-top:24px;
  }
  .d4y-checkout-sticky .d4y-co-note{margin-top:10px}
}

/* ---------- 38. Account ----------------------------------------------------- */
.d4y-account{padding-top:24px;padding-bottom:64px;max-width:720px}
.d4y-account-title{margin-top:12px}
.d4y-account-lead{margin-top:12px}
.d4y-account-cta{margin-top:20px;align-self:flex-start}
.d4y-account-tabs{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.d4y-account-tabs .d4y-chip{height:36px}
.d4y-account-band{margin-top:32px}
.d4y-account-band > h2{font-size:20px;line-height:28px;margin-bottom:16px}
.d4y-order-list,.d4y-account-cards{display:flex;flex-direction:column;gap:12px}
.d4y-order{
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  padding:16px;display:flex;flex-direction:column;gap:10px;
}
.d4y-order-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.d4y-order-track{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.d4y-badge--pending{background:var(--d4y-badge-new-bg);color:var(--d4y-badge-new-fg)}
.d4y-badge--done{background:#DCFCE7;color:#016630}
.d4y-badge--off{background:var(--d4y-tonal);color:var(--d4y-text-secondary)}
.d4y-account-card{
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  padding:20px;display:flex;flex-direction:column;gap:14px;
}
.d4y-account-card-top{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.d4y-account-card-top h3{margin:0}
.d4y-field-pair{display:flex;flex-direction:column;gap:4px}
.d4y-account-dots{font-size:14px;line-height:20px;letter-spacing:2px}
.d4y-account-logout{margin:0}
@media(max-width:640px){
  .d4y-account{padding-bottom:48px}
  .d4y-account-title{font-size:28px;line-height:36px}
}


/* ---------- 39. Menu (exposed dropdown) ------------------------------------ *
   Styleguide §8 "Menus / exposed dropdown": sort, per-page count. The trigger is TEXT —
   "Kārtot: Ieteicamie ▾" — never a bordered button, and the list is ours, not the browser's
   native <select> popup, so the surface, the type scale and the selected row obey the system
   on every platform. §4 puts the surface at surface-container-high (stone-100 + shadow) and
   M3 elevation level 2; §8 sets Body L items with the selected row on orange-100; §9 gives
   menus 200ms in on the decelerate curve, 150ms out on accelerate.                         */
.d4y-menu{position:relative;display:inline-flex}
.d4y-menu-trigger{
  display:inline-flex;align-items:center;gap:6px;
  min-height:44px;padding:0;border:none;background:none;
  font-family:var(--d4y-font);font-size:14px;line-height:20px;font-weight:500;
  letter-spacing:.1px;color:var(--d4y-text);cursor:pointer;
}
.d4y-menu-trigger:hover{color:var(--d4y-text-secondary)}
.d4y-menu-trigger:focus-visible{box-shadow:var(--d4y-focus);border-radius:var(--d4y-radius-sm)}
.d4y-menu-value{font-weight:500}
.d4y-menu-chev{flex:none;transition:transform .2s cubic-bezier(0.2,0,0,1)}
.d4y-menu.is-open .d4y-menu-chev{transform:rotate(180deg)}

.d4y-menu-list{
  position:absolute;top:calc(100% + 4px);right:0;z-index:70;min-width:220px;
  margin:0;padding:8px 0;list-style:none;
  background:var(--d4y-surface-sunken);
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  box-shadow:var(--d4y-shadow-menu);
  opacity:0;transform:translateY(-4px);visibility:hidden;
  transition:opacity .15s cubic-bezier(0.3,0,1,1),transform .15s cubic-bezier(0.3,0,1,1),visibility 0s .15s;
}
.d4y-menu.is-open .d4y-menu-list{
  opacity:1;transform:none;visibility:visible;
  transition:opacity .2s cubic-bezier(0,0,0,1),transform .2s cubic-bezier(0,0,0,1);
}
.d4y-menu-list li{
  display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 16px;
  font-size:16px;line-height:24px;color:var(--d4y-text);cursor:pointer;
}
.d4y-menu-list li:hover{background:#E8E8E7}
.d4y-menu-list li.is-active{background:#E8E8E7}
.d4y-menu-list li[aria-selected="true"]{background:var(--d4y-primary-tint-strong);color:var(--d4y-badge-new-fg);font-weight:500}
.d4y-menu-list li[aria-selected="true"]:hover,
.d4y-menu-list li[aria-selected="true"].is-active{background:#F7DEC6}
.d4y-menu-check{width:18px;flex:none;color:var(--d4y-primary);visibility:hidden}
.d4y-menu-list li[aria-selected="true"] .d4y-menu-check{visibility:visible}

@media(prefers-reduced-motion:reduce){
  .d4y-menu-list,.d4y-menu.is-open .d4y-menu-list,.d4y-menu-chev{transition-duration:0s}
}

/* ---------- 40. Reviews band ----------------------------------------------- *
   Home artboard "Ko saka spēlētāji". Items come from the `reviews` collection, so the
   aggregate below the heading counts what is actually loaded — it never states a rating or a
   review count the site cannot show you.                                                    */
.d4y-reviews-agg{display:flex;align-items:baseline;gap:10px}
.d4y-stars{font-size:13px;letter-spacing:2px;color:var(--d4y-text);white-space:nowrap}
.d4y-stars .off{color:var(--d4y-hairline-strong)}
.d4y-reviews-agg-text{font-size:14px;line-height:20px;color:var(--d4y-text-secondary);font-variant-numeric:tabular-nums}
.d4y-reviews-agg-text strong{color:var(--d4y-text);font-weight:600}
.d4y-reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.d4y-review{
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  padding:24px;display:flex;flex-direction:column;background:var(--d4y-surface);
}
.d4y-review-body{font-size:14px;line-height:20px;letter-spacing:0.25px;margin:12px 0 0;flex:1}
.d4y-review-foot{margin-top:16px;padding-top:14px;border-top:1px solid var(--d4y-hairline)}
.d4y-review-who{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.d4y-review-name{font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.1px}  /* Title S */
.d4y-review-date{font-size:12px;line-height:16px;letter-spacing:0.4px;color:var(--d4y-text-tertiary);font-variant-numeric:tabular-nums}  /* Body S */
.d4y-review-product{display:inline-block;font-size:12px;line-height:16px;font-weight:500;letter-spacing:0.5px;margin-top:4px}  /* Label M */
/* A sample review names a product but must not link to one it cannot guarantee exists. */
.d4y-review-product.is-static{color:var(--d4y-text-secondary)}
.d4y-reviews-more{display:flex;justify-content:center;margin-top:24px}
.d4y-review.is-skeleton .d4y-review-body{display:flex;flex-direction:column;gap:8px}
.d4y-skel{display:block;height:12px;border-radius:var(--d4y-radius-sm);background:var(--d4y-surface-sunken)}
.d4y-skel--name{width:96px;height:14px}
.d4y-skel--date{width:64px;height:12px}
.d4y-reviews-note{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px;color:var(--d4y-text-tertiary);margin-top:16px;text-align:center;
}
@media(max-width:900px){
  .d4y-reviews-grid{grid-template-columns:1fr}
  .d4y-review{padding:20px}
}


/* ---------- 41. CMS + platform text on the type scale ---------------------- *
   Headings and body inside CMS rich text, and the platform's own post/heading/button
   components, arrive with the platform's rem sizes on a 1.2 ratio — 38.4/46, 24/29, 16.8/23.
   None of those are §2 roles. Map each to the nearest role so client-written copy is on the
   same scale as everything the theme draws itself. `:not([class*="d4y-"])` leaves anything
   the theme has already given a role strictly alone.                                        */
.sl-body h1:not([class*="d4y-"]),
.sl-body .sl-heading{font-size:36px;line-height:44px}                    /* Display S  */
.sl-body h2:not([class*="d4y-"]):not(.sl-heading){font-size:24px;line-height:32px;letter-spacing:0}  /* Headline S */
.sl-body h3:not([class*="d4y-"]){font-size:24px;line-height:32px;letter-spacing:0}        /* Headline S */
.sl-body h4:not([class*="d4y-"]){font-size:16px;line-height:24px;letter-spacing:.15px} /* Title M */
.sl-body .sl-post-title{font-size:16px;line-height:24px;letter-spacing:.15px}       /* Title M */
.sl-body .sl-post-excerpt{font-size:14px;line-height:20px;letter-spacing:.25px}     /* Body M  */
.sl-body .sl-post-meta,.sl-body .sl-card__meta{font-size:12px;line-height:16px}     /* Label M */
.sl-body .sl-post-more{font-size:14px;line-height:20px;font-weight:500;letter-spacing:.1px} /* Label L */

/* A platform BAND header is not prose: §2 puts "Home section headers" at Headline L, and every
   home band the theme draws itself (Populārākie, Akcijas, Ko saka spēlētāji) is 32/40. The h2
   rule above is for copy inside a page, so the two were reading a full role apart — "Padomi"
   sat at 24/32 next to 32/40 neighbours. Its "see all" link is Label L, per the artboard.
   The `:not()` pair above counts toward specificity — `.sl-body h2:not([class*="d4y-"]):not(.sl-heading)`
   is 0,3,1 — so the band rule has to carry the same guards to outrank it. */
.sl-body .sl-band-header-row h2:not([class*="d4y-"]):not(.sl-heading){font-size:32px;line-height:40px}
.sl-body .sl-band-link{font-size:14px;line-height:20px;font-weight:500;letter-spacing:.1px}
/* The theme's own band head reserves 24px under it (16 on phones); the platform's header row
   reserves nothing, so "Padomi" sat directly on its cards. Same rhythm for both libraries. */
.sl-body .sl-band-header-row{margin-bottom:24px}
@media(max-width:640px){
  .sl-body .sl-band-header-row h2:not([class*="d4y-"]):not(.sl-heading){font-size:28px;line-height:36px} /* → Headline M */
}

/* Headline L in the display voice, matching "Uzraksti mums" beside it. It was Title L in the
   UI voice, which is what the artboard drew when this line sat INSIDE a card — it is a column
   heading now, and a column heading that does not match its neighbour is the misalignment the
   client reported on 2026-09-13. `.sl-body h3.x` is (0,2,1) and has to be restated here,
   because the platform's own h3 rule outranks a bare component class. */
.sl-body h3.sl-contact__info-heading{
  font-family:var(--d4y-font-display);font-stretch:80%;
  font-size:32px;line-height:40px;font-weight:600;letter-spacing:normal;
}

/* Bold inside body copy is Title M's weight (600), not the browser's 700. */
.sl-body strong,.sl-body b,.d4y-rich strong,.d4y-rich b{font-weight:600}

@media(max-width:640px){
  .sl-body h1:not([class*="d4y-"]),
  .sl-body .sl-heading{font-size:28px;line-height:36px}                  /* → Headline M */
  .sl-body h2:not([class*="d4y-"]):not(.sl-heading){font-size:24px;line-height:32px}  /* → Headline S */
}

/* ---------- 42. Menu active row ------------------------------------------- *
   §6 forbids signalling state by colour alone. Keyboard movement through a listbox is
   aria-activedescendant, so the DOM focus stays on the list and no browser ring follows the
   active row — it gets the ring explicitly.                                                  */
.d4y-menu-list:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--d4y-shadow-menu),var(--d4y-focus)}
.d4y-menu-list:focus-visible li.is-active{box-shadow:inset 0 0 0 2px var(--d4y-primary)}
/* The ring is scoped to a focused list on purpose: keyboard movement is aria-activedescendant,
   so the row needs a focus indicator of its own. Opening with the mouse focuses nothing, and a
   ring following the pointer would read as a selection the user has not made. */


/* ---------- 43. Mobile type ladder (must be last) -------------------------- *
   These live at the very end on purpose. They share (0,2,0) specificity with the .sl-body
   line-height pins in §12, so whichever is written LAST wins — and when this block sat up in
   the responsive section, every heading on a phone took the correct font-size from here and
   the desktop leading from there: 24px text on 40px leading, 28 on 44, 36 on 64.             */
@media(max-width:640px){
  /* Every mobile size below is ANOTHER ROLE from §2, not a shrunk one — 26/32 and 30/36 were
     off-scale inventions. Each is restated at .sl-body specificity too: the platform-override
     block further down pins line-height at (0,2,0), which silently beat these and left phones
     rendering e.g. 26px text on a 44px desktop leading. */
  /* Display S's tracking is 0; Display L's is -0.25. A ramp that moves the size and
     leaves the tracking behind lands on no role at all. */
  .d4y-display-l,.sl-body .d4y-display-l{font-size:36px;line-height:44px;letter-spacing:0}   /* → Display S  */
  .d4y-display-m,.sl-body .d4y-display-m{font-size:32px;line-height:40px}   /* → Headline L */
  .d4y-display-s,.sl-body .d4y-display-s{font-size:28px;line-height:36px}   /* → Headline M */
  .d4y-headline-l,.sl-body .d4y-headline-l{font-size:24px;line-height:32px} /* → Headline S */
  .d4y-headline-m,.sl-body .d4y-headline-m{font-size:24px;line-height:32px} /* → Headline S */
  .d4y-headline-s,.sl-body .d4y-headline-s{font-size:24px;line-height:32px} /* → Headline S: the
     floor. Below this the display voice has no role and the UI voice takes over. */
}


/* ---------- 44. Brand logo -------------------------------------------------- *
   The real mark, lifted from the client's live site (the import missed it, and the artboards
   hot-link the shop's Facebook avatar — an external URL the standards forbid). Sized by height
   so the 900x243 source scales cleanly; width:auto keeps the aspect ratio.                    */
/* `.sl-body img{max-width:100%;height:auto}` in the platform sheet is 0,1,1 and outranked a
   plain `.d4y-logo` — so height:44px never applied and the mark was stretched to whatever its
   grid column happened to be (316x85 in the header, 435x118 in the footer). That oversized
   left column is what pushed the header out of balance. Restated at matching strength, as in
   section 17; sized by height so the 900x243 source keeps its ratio. */
.d4y-logo{display:block;height:56px;width:auto;max-width:100%}
.d4y-logo--footer{height:34px}
.sl-body .d4y-logo{height:56px;width:auto}
.sl-body .d4y-logo--footer{height:34px}
@media(max-width:900px){
  .d4y-logo,.sl-body .d4y-logo{height:38px}
  .d4y-logo--footer,.sl-body .d4y-logo--footer{height:32px}
}

/* ---------- 45. Platform card hover ----------------------------------------- *
   The post-grid ("Padomi") ships its own hover: a drop shadow and a tint. §4b bans the lift and
   §8 puts article cards on the same 8% layer as product cards, so it is restated here.        */
.sl-body .sl-post-card,.sl-body .sl-card{
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  box-shadow:none;transition:background-color .12s ease,border-color .12s ease;
}
.sl-body .sl-post-card:hover,.sl-body .sl-card:hover{
  box-shadow:none;transform:none;
  background:var(--d4y-hover-wash);border-color:var(--d4y-hairline-strong);
}

/* §4 puts a resting card on surface (white) and reserves stone-50 for image tiles and alt
   sections; the platform default filled the whole card with it, so the Padomi cards read as
   tinted panels instead of outlined cards. The artboard's card is white, hairline-outlined,
   with a 5:2 media tile and 24px of padding. */
.sl-body .sl-post-card{background:var(--d4y-surface)}
.sl-body .sl-post-body{padding:24px}
.sl-body .sl-post-media{aspect-ratio:5/2}
/* No photography exists for these articles yet (docs/DARTS4YOU-REDESIGN.md, decision 3), and
   with no image the platform emits no media element at all — so the tile is drawn here, in the
   same tinted-ground-plus-line-art language as the hero and portrait placeholders. */
.sl-body .sl-post-card:not(:has(.sl-post-media))::before{
  content:"";display:block;aspect-ratio:5/2;background:var(--d4y-surface-alt) center/64px no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23D6D3D1' stroke-width='1.2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9h7M7 13h10M7 17h5'/%3E%3C/svg%3E");
}


/* ---------- 46. Interaction gaps found by the deep page audit ---------------- *
   §6 asks for feedback on every interactive element. Text fields had none, and the platform's
   post card is a focusable link with no ring of its own.                                     */
.d4y-input:hover:not(:focus),.input:hover:not(:focus),.sl-body input:hover:not(:focus),
.sl-body textarea:hover:not(:focus){border-color:var(--d4y-text-secondary)}
.sl-body .sl-post-card:focus-visible,.sl-body .sl-card:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--d4y-focus)}


/* ---------- 47. Long-form content page ------------------------------------- *
   Every value below is a §2 role or a step on the design's 2px rhythm. The imported copy is a
   flat run of <p>/<h2>/<h3>/<ul> — nothing on the page carries a class — so this styles the
   ELEMENTS inside .d4y-prose. That is also what makes it reusable: any page whose body is a
   richtext block gets the same typography with no extra CSS.                                 */
.d4y-article-head{padding-top:40px}
.d4y-article-title{margin:16px 0 0}
.d4y-article-lead{
  font-size:16px;line-height:24px;letter-spacing:.15px;color:var(--d4y-text-secondary);
  margin:16px 0 0;max-width:62ch;
}
.d4y-article-updated{font-size:12px;line-height:16px;color:var(--d4y-text-tertiary);margin:12px 0 0}
.d4y-article-body{padding-top:32px;padding-bottom:var(--d4y-band);display:block}

/* A ~72ch measure. The platform's rich-text runs the full 1280px container, which is about 150
   characters a line — the single biggest reason these pages read as a wall. */
.d4y-prose{max-width:72ch}
.d4y-article.is-wide .d4y-prose{max-width:none}

/* Reset margins on the DIRECT CHILDREN only, then give every gap back through the sibling
   rule. Both selectors are (0,1,0) so the later one wins — an element-qualified reset like
   `.d4y-prose p{margin:0}` is (0,1,1) and would beat `> * + *` no matter where it sat, which
   is exactly how the paragraphs ended up with no spacing at all. */
.d4y-prose > *{margin:0}
.d4y-prose > * + *{margin-top:20px}
.d4y-prose p{font-size:16px;line-height:24px;letter-spacing:.15px;color:var(--d4y-text)}
.d4y-prose strong,.d4y-prose b{font-weight:600}
.d4y-prose em,.d4y-prose i{font-style:italic}
.d4y-prose a{color:var(--d4y-primary);text-decoration:none}
.d4y-prose a:hover{color:var(--d4y-primary-hover);text-decoration:underline}

/* Headings need space ABOVE them — that is the whole rhythm. `* + *` gives 20px; a heading
   asks for more, and the margin-top wins over the sibling rule because it is more specific. */
.d4y-prose h2{
  font-family:var(--d4y-font-display);font-stretch:80%;font-weight:600;
  font-size:28px;line-height:36px;color:var(--d4y-text);                 /* Headline M */
  margin:48px 0 0;padding-top:24px;border-top:1px solid var(--d4y-hairline);
}
/* The first heading opens the page — it needs no rule above it, and the rule would
   collide with the space under the lead. */
.d4y-prose > h2:first-child{padding-top:0;border-top:0}
.d4y-prose h3{
  font-family:var(--d4y-font);font-stretch:normal;font-weight:600;
  font-size:22px;line-height:28px;color:var(--d4y-text);margin:32px 0 0;
}
.d4y-prose h4{font-size:16px;line-height:24px;letter-spacing:.15px;font-weight:600;margin:24px 0 0}
/* §41's `.sl-body h3:not([class*="d4y-"])` is (0,2,1) and was beating the (0,1,1) rules above,
   so a prose h3 rendered 24/32 in the UI voice — Headline S's metrics on the wrong family, and
   therefore no role at all. Restated at matching specificity; §47 is later, so it wins. */
.sl-body .d4y-prose h2{font-family:var(--d4y-font-display);font-stretch:80%;font-size:28px;line-height:36px}
.sl-body .d4y-prose h3{font-family:var(--d4y-font);font-stretch:normal;font-size:22px;line-height:28px}
.sl-body .d4y-prose h4{font-family:var(--d4y-font);font-stretch:normal;font-size:16px;line-height:24px}
.d4y-prose h2 + *,.d4y-prose h3 + *,.d4y-prose h4 + *{margin-top:12px}
.d4y-prose h2:first-child,.d4y-prose h3:first-child{margin-top:0}
/* The import wrapped several headings in <strong>; the heading already carries the weight. */
.d4y-prose h2 strong,.d4y-prose h3 strong,.d4y-prose h4 strong{font-weight:inherit}

.d4y-prose ul,.d4y-prose ol{padding-left:24px}
.d4y-prose li{font-size:16px;line-height:24px;letter-spacing:.15px}
.d4y-prose li + li{margin-top:8px}
.d4y-prose li > ul,.d4y-prose li > ol{margin-top:8px}

.d4y-prose blockquote{
  border-left:2px solid var(--d4y-primary);padding-left:20px;
  color:var(--d4y-text-secondary);font-size:16px;line-height:24px;
}
.d4y-prose hr{border:0;border-top:1px solid var(--d4y-hairline);margin:32px 0 0}
.d4y-prose img{max-width:100%;height:auto;border-radius:var(--d4y-radius);display:block}
.d4y-prose figcaption{font-size:12px;line-height:16px;color:var(--d4y-text-tertiary);margin-top:8px}
.d4y-prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;
  background:var(--d4y-surface-sunken);border-radius:var(--d4y-radius-sm);padding:2px 6px;
}

/* Tables scroll inside their own box rather than pushing the page sideways. */
.d4y-prose .d4y-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.d4y-prose table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.d4y-prose th,.d4y-prose td{
  text-align:left;padding:12px 16px;border-bottom:1px solid var(--d4y-hairline);
  font-size:14px;line-height:20px;letter-spacing:.25px;vertical-align:top;
}
.d4y-prose th{font-weight:600;letter-spacing:.1px;color:var(--d4y-text);background:var(--d4y-surface-alt)}
.d4y-prose tbody tr:last-child td{border-bottom:0}
.d4y-prose-empty{color:var(--d4y-text-secondary)}

/* "On this page" — a plain list of links, revealed by JS once it has ids to point at. */
.d4y-toc{
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius);
  padding:20px 24px;margin-bottom:32px;max-width:72ch;
}
.d4y-toc[hidden]{display:none}
.d4y-toc-title{
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;
  color:var(--d4y-text-secondary);margin:0 0 12px;text-transform:none;
}
.d4y-toc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.d4y-toc-list a{
  font-size:14px;line-height:20px;font-weight:500;letter-spacing:.1px;
  color:var(--d4y-text);display:inline-block;padding-block:2px;margin-block:-2px;
}
.d4y-toc-list a:hover{color:var(--d4y-primary)}
.d4y-prose h2[id]{scroll-margin-top:120px}

@media(max-width:900px){
  .d4y-article-head{padding-top:24px}
  .d4y-article-body{padding-top:24px}
  .d4y-toc{padding:16px 20px;margin-bottom:24px}
  .d4y-prose h2{margin-top:32px;padding-top:20px}
  .d4y-prose h3{margin-top:24px}
  .d4y-prose th,.d4y-prose td{padding:10px 12px}
}

/* ---------- 48. Shopfront band (category menu + banner column) --------------
 * Client review round 5, 2026-09-10. His wireframe puts a vertical PRODUKTI menu
 * down the left of the home page with the banners filling the space beside it, so
 * the hero stops being full-bleed and becomes a 16:9 panel inside the container.
 *
 * Every anchor here is restated at .sl-body strength. The platform sheet's
 * `.sl-body a` is 0,1,1 and beats a plain component class 0,1,0 — the trap that has
 * cost this build four separate fixes (the account button, the logo, the setup tile,
 * the icon buttons). A category row painted orange-on-white is exactly that failure.
 * -------------------------------------------------------------------------- */
.d4y-shopfront{
  display:grid;
  grid-template-columns:264px minmax(0,1fr);
  gap:24px;
  /* STRETCH, not start: the client's note of 2026-09-10 is that the two columns must be
     the same height, and the banner was the short one (529 against the menu's 618). The
     banner's ratio now sets the row height and the menu fills it, which is the way round
     that keeps ONE crop ratio for the artwork — letting the banner stretch to a
     content-driven menu instead would make the crop move with the window, the exact fault
     docs/DARTS4YOU-IMAGE-SPEC.md was written about. */
  align-items:stretch;
  padding-top:24px;
}

/* --- the menu ------------------------------------------------------------- */
.d4y-catmenu{
  border:1px solid var(--d4y-hairline);
  border-radius:var(--d4y-radius);
  background:var(--d4y-surface);
  overflow:visible;
  display:flex;flex-direction:column;
}
/* PRODUKTI is the TITLE OF THIS COLUMN, not a nav button. Round 5 read the client's
   wireframe the other way round — made it the nav's first item and then hid this header
   to stop the word printing twice — and he corrected it on 2026-09-13: "the button
   'produkti' is, in fact, the title of the section. And the par mums is the first
   button." So the header is back at every width and the nav row starts at PAR MUMS.

   Title L rather than the rows' Body M: it has to outrank the fifteen links under it
   and the six nav links above it, and in the wireframe it is drawn markedly larger than
   both. */
.d4y-catmenu-head{
  display:flex;align-items:center;
  min-height:56px;padding:14px 16px;
  border-bottom:1px solid var(--d4y-hairline);
  font-weight:600;font-size:22px;line-height:28px;                        /* Title L */
  text-transform:uppercase;
  border-radius:var(--d4y-radius) var(--d4y-radius) 0 0;
  transition:background-color .15s ease;
}
.sl-body a.d4y-catmenu-head{color:var(--d4y-text);text-decoration:none}
.sl-body a.d4y-catmenu-head:hover{color:var(--d4y-text);background:var(--d4y-hover-wash)}
.d4y-catmenu-head:focus-visible{box-shadow:var(--d4y-focus);outline:2px solid transparent;outline-offset:2px}

/* The rows divide whatever height the banner set, so the two columns end on the same
   pixel at every width and the list stays even. 34px is the floor: a 14/20 row needs it,
   and past it the menu simply grows (which it would only do with ~9 more categories, or
   at the very bottom of the two-column range). No row count is hardcoded — grid-auto-rows
   means adding or removing a category re-divides the same height by itself. */
.d4y-catmenu-list{
  list-style:none;margin:0;padding:8px 0;
  flex:1 1 auto;display:grid;grid-auto-rows:minmax(34px,1fr);
}
.d4y-catmenu-link{height:100%}
.d4y-catmenu-item{position:relative}
.d4y-catmenu-link{
  display:flex;align-items:center;gap:8px;
  /* 44, not 40: §12 puts every interactive row at 44/48px. This is the floor the STACKED
     layout uses; side by side the list's grid-auto-rows carries the same number. */
  min-height:44px;padding:8px 16px;
  /* Label L, not Body M. §2 assigns Label L to "Buttons, chips, inputs, NAV, tabs", and
     this is nav; it was 14/20 at weight 400 with Body M's +0.25 — a different role wearing
     the same size. */
  font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px;   /* Label L */
  text-decoration:none;transition:background-color .15s ease;
}
.sl-body a.d4y-catmenu-link{color:var(--d4y-text)}
.sl-body a.d4y-catmenu-link:hover{color:var(--d4y-text);background:var(--d4y-hover-wash)}
.sl-body a.d4y-catmenu-link.is-sale,
.sl-body a.d4y-catmenu-link.is-sale:hover{color:var(--d4y-sale);font-weight:600}
.d4y-catmenu-link:focus-visible{box-shadow:var(--d4y-focus);outline:2px solid transparent;outline-offset:2px}
.d4y-catmenu-link > span:first-child{flex:1 1 auto;min-width:0}
.d4y-catmenu-n{color:var(--d4y-text-tertiary);font-size:12px;line-height:16px;letter-spacing:0.4px}
.d4y-catmenu-chev{flex:0 0 auto;color:var(--d4y-text-tertiary)}

/* --- the flyout ----------------------------------------------------------- *
 * This IS the site's menu component (§39), not a second dialect of one. The first
 * version of this panel invented its own — white surface, 14/20 rows, a flat
 * symmetric `opacity .2s ease` — and the client read it immediately as generic
 * (2026-09-13: "it feels like something generic, not well done, like it was
 * before"). He was right, and it was measurable: every value below was off the
 * spec the sort menu had been built to back in round 1.
 *
 *   surface   §4 surface-container-high = stone-100 + shadow, NOT white
 *   items     §12 "Menus / exposed dropdown … Body L items" = 16/24, 44px row
 *   open row  §6 hover layer #EDEDEC — NOT §12's orange-100, which is a selection
 *   hover     §6 on stone-50 = #E8E8E7
 *   motion    §9 menus: 200ms in decelerate / 150ms out accelerate
 *   shape     §5 8px — never larger; the radius-inflation ban is explicit
 *
 * ONE deviation from §39, and only one: the slide axis. §39 drops downward and eases
 * on Y; this panel comes from the side and eases on X. Same curves, same distance.
 *
 * An earlier pass ALSO dropped the rows to Body M / 40px to match the parent list,
 * arguing that 15 rows at 44px would be 660px against the banner's 629px and break
 * the equal-height rule. That reasoning was wrong and the client caught it twice:
 * the height constraint applies to the LEFT COLUMN, and this is a floating panel —
 * its row height has no bearing on the column at all. The two were conflated. A
 * dropdown having slightly larger rows than the dense nav list it hangs off is also
 * perfectly normal; menus are pointer targets, nav lists are compact. Measured
 * against the sort menu (the §39 original) the two are now identical.
 * ------------------------------------------------------------------------- */
.d4y-catmenu-sub{
  list-style:none;margin:0;
  position:absolute;top:-8px;left:100%;z-index:30;
  min-width:232px;padding:8px 0;
  /* §4's menu recipe is exactly "stone-100 + shadow" (surface-container-high). The 1px
     outline on top of that is not in it, and it made the panel read as a second card. */
  background:var(--d4y-surface-sunken);
  border-radius:var(--d4y-radius);
  box-shadow:var(--d4y-shadow-menu);
}
.d4y-catmenu-sub a{
  display:flex;align-items:center;min-height:44px;padding:8px 16px;
  font-size:16px;line-height:24px;letter-spacing:0.15px;text-decoration:none;  /* Body L */
  transition:background-color .12s ease;
}
.sl-body .d4y-catmenu-sub a{color:var(--d4y-text)}
/* #E4E3E3, not #E8E8E7. §6 publishes the layer per SURFACE: #EDEDEC on white, #E8E8E7 on
   stone-50. This panel is surface-container-high — stone-100 #F5F5F4 (§4) — so 8% of
   on-surface over IT is #E4E3E3. The old value was the stone-50 row on a stone-100 ground. */
.sl-body .d4y-catmenu-sub a:hover{color:var(--d4y-text);background:#E4E3E3}
.d4y-catmenu-sub a:focus-visible{box-shadow:var(--d4y-focus);outline:2px solid transparent;outline-offset:2px}

@media(min-width:1240px){
  /* The MENU defines the row height now (44px a row, §12's interactive minimum) and the
     banner stretches to it — the reverse of rounds 5-9, and the only arrangement in which
     both "the side menu is the same size of the banner" and the 44px row can hold at
     fifteen categories.

     Adding the PRODUKTI title on 2026-09-13 broke this: 15 rows at the link's 40px
     floor plus a 56px header is 672px against the banner's 629, so the MENU became the
     taller item, stretch pushed the banner to 675, and `aspect-ratio` then widened it to
     1013px — 45px past the container's right edge. max-width is the belt-and-braces so a
     future content change cannot spill it again; dropping the floor is the actual fix. */
  .d4y-catmenu-link{min-height:0}
  .d4y-catmenu-list{grid-auto-rows:minmax(44px,auto)}
  /* No aspect-ratio while side by side: the grid row is the menu's height and the banner
     takes all of it, so the two columns are equal BY CONSTRUCTION. */
  .d4y-hero--panel{max-width:100%;aspect-ratio:auto;height:100%}

  .d4y-catmenu-sub{
    opacity:0;visibility:hidden;transform:translateX(-4px);
    transition:opacity .15s cubic-bezier(0.3,0,1,1),transform .15s cubic-bezier(0.3,0,1,1),visibility 0s .15s;
  }
  /* Pure :hover is the no-JS fallback and opens instantly. With JS the nav takes
     `js-intent` and the SAME rules key off `.is-open` instead, so the open/close
     timing in assets/site.js can damp the flicker you get dragging the pointer
     down a list where three rows each own a panel. Keyboard keeps :focus-within
     in both modes — a focus move is deliberate and must never wait. */
  .d4y-catmenu:not(.js-intent) .d4y-catmenu-item.has-sub:hover > .d4y-catmenu-sub,
  .d4y-catmenu-item.has-sub.is-open > .d4y-catmenu-sub,
  .d4y-catmenu-item.has-sub:focus-within > .d4y-catmenu-sub{
    opacity:1;visibility:visible;transform:none;
    transition:opacity .2s cubic-bezier(0,0,0,1),transform .2s cubic-bezier(0,0,0,1);
  }

  /* The open row keeps the §6 HOVER layer — #EDEDEC on white — and nothing more.
     An earlier pass painted it orange-100 on the reading that §12 says "selected
     item orange-100"; the client rejected it on 2026-09-13 and was right. That
     orange is a SELECTION state: the value a select-like menu currently holds
     (the active sort option). A parent row under the pointer is not a selected
     value, it is hovered — and colouring one row of a list an accent while its
     siblings stay neutral states a permanence the row does not have. The open
     panel sitting against it is the signal that it is open; it needs no second. */
  .sl-body .d4y-catmenu-item.has-sub.is-open > a.d4y-catmenu-link,
  .sl-body .d4y-catmenu-item.has-sub:focus-within > a.d4y-catmenu-link{
    background:var(--d4y-hover-wash);color:var(--d4y-text);
  }
  /* §39 rotates its chevron on open; this one points along its own axis, so it
     advances rather than flips. */
  .d4y-catmenu-chev{transition:transform .2s cubic-bezier(0.2,0,0,1)}
  .d4y-catmenu-item.has-sub.is-open > .d4y-catmenu-link .d4y-catmenu-chev,
  .d4y-catmenu-item.has-sub:focus-within > .d4y-catmenu-link .d4y-catmenu-chev{
    transform:translateX(2px);
  }
  /* The row and its panel must touch, or the pointer crosses a dead strip on the
     way across and :hover drops — the gap that closed the mega-panel in round 1. */
  .d4y-catmenu-item.has-sub::after{
    content:"";position:absolute;top:0;left:100%;width:16px;height:100%;
  }
}
/* The open-state rule re-declares the whole `transition` shorthand at (0,3,0), so a
   bare `.d4y-catmenu-sub{transition-duration:0s}` here never won — specificity beats
   source order. Restate the same selector list. */
@media(prefers-reduced-motion:reduce){
  .d4y-catmenu-sub,.d4y-catmenu-chev,
  .d4y-catmenu:not(.js-intent) .d4y-catmenu-item.has-sub:hover > .d4y-catmenu-sub,
  .d4y-catmenu-item.has-sub.is-open > .d4y-catmenu-sub,
  .d4y-catmenu-item.has-sub:focus-within > .d4y-catmenu-sub{transition:none}
}

/* --- the banner column ---------------------------------------------------- */
.d4y-hero--panel{
  /* 9:7 (1.2844 measured), NOT 3:2. The banner used to dictate the row height and the menu
     divided whatever it got, which pushed the fifteen rows to 37px. The relationship is
     inverted: the MENU sets the height at 44px a row and the banner fills it. 944 ÷ 735 =
     1.2844, and the artwork is re-cut to that, so `cover` still crops nothing. Fixed, not
     window-dependent — above 1280 the container is at its 1232 max. */
  aspect-ratio:9/7;
  border:1px solid var(--d4y-hairline);
  border-bottom:1px solid var(--d4y-hairline);
  border-radius:var(--d4y-radius);
  overflow:hidden;
}

/* 1239 (was 1279 until QA 2026-10-11: a 1280 window with a classic scrollbar is 1265 wide and
   lost the side-by-side band; at 1240 the banner is 904 wide, a 4% crop drift). Below it the container is still shrinking, so a menu-driven
   height would squeeze the banner into an ever-taller box. Stacked, both get their own. */
@media(max-width:1239px){
  .d4y-shopfront{grid-template-columns:1fr;gap:16px}
  /* Stacked, there is nothing to match, so the rows go back to their own height. */
  .d4y-catmenu-list{display:grid;grid-auto-rows:auto;flex:0 1 auto}
  /* Stacked, the banner leads and the directory follows it — a 14-row list above the
     fold would push the shop off the screen. */
  .d4y-catmenu{order:2}
  .d4y-hero--panel{order:1}
  .d4y-catmenu-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}
  .d4y-catmenu-item{border-radius:var(--d4y-radius-sm);overflow:hidden}
  /* No hover on a touch screen, so the children become a static indented list. */
  .d4y-catmenu-sub{
    position:static;opacity:1;visibility:visible;
    border:none;box-shadow:none;padding:0 0 8px 16px;min-width:0;
  }
  .d4y-catmenu-sub a{min-height:36px;padding:6px 12px;color:var(--d4y-text-secondary)}
  .sl-body .d4y-catmenu-sub a{color:var(--d4y-text-secondary)}
  .d4y-catmenu-chev{transform:rotate(90deg)}
  .d4y-catmenu-item.has-sub::after{display:none}
}
@media(max-width:640px){
  .d4y-shopfront{padding-top:16px}
}

/* ---------- 48b. Feature band, photo bleed -------------------------------
 * The client's correction of 2026-09-13, after I built this as a cut-out:
 * "not cutting the picture, using the normal one we have, but just a gradient to
 * his left, not a cut out. So you cant see the left because it turns into the
 * text, and you can only see madars".
 *
 * So the photograph is whole — arena, sponsor boards and all — laid full-height
 * across the right of the band and bleeding off its edge. A horizontal gradient in
 * the band's OWN colour sits over it, opaque where the copy is and clear by the
 * time it reaches him: the left of the picture dissolves into the text rather than
 * ending at a border, and the only thing you read is Madars.
 *
 * The copy stays in normal flow above it, so its line length is unchanged and the
 * gradient is the only thing between the text and the photo — which is why the
 * first stop holds full opacity well past where the longest line ends, instead of
 * starting to fade at 0%.
 * ------------------------------------------------------------------------- */
/* A minimum height, because the photo is the point of this variant: at the copy's natural
   height the 819px-wide box came out 2.1:1 and `cover` cut his head off. 520 gives the
   1.5:1 source a box it can fill without losing him. */
.d4y-feature.is-bleed{position:relative;overflow:hidden;min-height:520px}
.d4y-feature.is-bleed .d4y-feature-inner{min-height:520px}
/* NOT `position:relative` here. The media is absolutely positioned, so a positioned inner
   container becomes its containing block and the photo stops at the container's edge
   (819px instead of 921 at 1440) — it has to bleed off the VIEWPORT. The copy carries its
   own stacking instead. */
.d4y-feature.is-bleed .d4y-feature-inner{
  grid-template-columns:minmax(0,1fr);
  padding-block:96px;align-items:center;
}
/* The media is a POSITIONED sibling inside the same stacking context, so a z-index of 1
   puts it above static content however late that content comes: the headline was being
   painted over, cut off mid-word at the photo's left edge. The copy needs its own layer. */
.d4y-feature.is-bleed .d4y-feature-copy{max-width:560px;position:relative;z-index:2}
.d4y-feature.is-bleed .d4y-feature-media{
  position:absolute;top:0;right:0;bottom:0;left:auto;width:64%;
  z-index:1;aspect-ratio:auto;border-radius:0;overflow:hidden;display:block;
}
.d4y-feature.is-bleed .d4y-feature-media img{
  /* 30% from the top, not centre: the box is wider than the source's 3:2, so `cover` takes
     the crop out of the HEIGHT, and a centred crop takes it off his head first. */
  width:100%;height:100%;object-fit:cover;object-position:center 30%;
}
/* The wash, and its stops are MEASURED, not guessed. The longest line of copy ends at
   15-17% of the media's width (1280/1440/1920 all agree) and Madars' leading edge — the
   dart in his raised hand — is at 44.4% of it, because the box matches the file's ratio
   so the source maps to it 1:1. So: hold full opacity to 20%, and be completely clear by
   41%, which puts the whole fade in the empty arena between the text and him.
   It used to run to 74% and washed across his face and chest ("try to make the gradient
   less on his face/body"). Four stops rather than two, because a straight linear ramp on
   a near-black leaves a visible band. */
.d4y-feature.is-bleed .d4y-feature-media::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,
    var(--d4y-dark-band) 0%,
    var(--d4y-dark-band) 20%,
    rgba(41,37,36,0.80) 27%,
    rgba(41,37,36,0.42) 33%,
    rgba(41,37,36,0.12) 37%,
    rgba(41,37,36,0) 41%);
}
@media(max-width:900px){
  /* Stacked, the picture goes across the TOP of the band and the gradient turns vertical:
     the copy needs a solid ground under it, and at this width there is no "left".
     A bounded height, not the whole band — stretched over a 1000px column a 1.77:1 source
     has to be scaled 2.4x to cover, and the ladder has nothing that big. */
  .d4y-feature.is-bleed{min-height:0}
  .d4y-feature.is-bleed .d4y-feature-inner{min-height:0}
  /* 240px, so the box is 1.63:1 against the file's 1.78 and `cover` gives up under 9% of
     the width. At 420 the box was 0.93:1 and half the frame was being thrown away. */
  .d4y-feature.is-bleed .d4y-feature-media{width:100%;left:0;height:240px;bottom:auto}
  /* `center`, and object-position can do no better here: at 390x240 a 1.78:1 source covers
     with only 37px of overflow, so there is almost nothing to pan. Showing MORE of Madars on
     a phone needs an art-directed phone crop as its own source, which the platform's
     ImageView cannot express (it emits one <img>, not a <picture>). Noted, not faked. */
  .d4y-feature.is-bleed .d4y-feature-media img{object-position:center}
  /* Same correction vertically: the fade used to be solid by 52% of a 240px strip, which
     is most of him. It now stays clear through the top half and only closes at the floor. */
  .d4y-feature.is-bleed .d4y-feature-media::after{
    background:linear-gradient(180deg,
      rgba(41,37,36,0) 0%, rgba(41,37,36,0) 45%,
      rgba(41,37,36,0.38) 68%, rgba(41,37,36,0.85) 88%,
      var(--d4y-dark-band) 100%);
  }
  .d4y-feature.is-bleed .d4y-feature-inner{padding-block:190px 48px}
}

/* ---------- 49. Header, round 5 --------------------------------------------
 * The client's 2026-09-10 wireframe changes two things about the brand bar and
 * the nav row.
 *
 * FAVORĪTI / PROFILS / GROZS are labelled. He wrote the three words on the sketch,
 * so the icon buttons carry visible text on desktop and fall back to icon-only on
 * phones, where three words do not fit beside the logo and the search field.
 *
 * The nav row is flat and LEFT-aligned, because PRODUKTI is drawn at the far left
 * with the category menu hanging directly beneath it. Centring the row put it in
 * the middle of the page, over the banner instead of over its own list.
 * -------------------------------------------------------------------------- */
.d4y-icon-btn--labelled{
  width:auto;height:44px;padding:0 12px;border-radius:var(--d4y-radius);
  gap:8px;
}
.d4y-icon-btn-label{
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;
  text-transform:uppercase;white-space:nowrap;
}
/* The badge sits on the icon, not in the corner of a wide pill. */
.d4y-icon-btn--labelled .d4y-count{top:2px;left:26px;right:auto}

/* The platform's `.sl-body a:hover` (0,1,1) was repainting six of the seven nav items
   orange-800 on hover while PRODUKTI stayed dark — `.sl-body a.d4y-nav-link.is-strong`
   is (0,3,1) and happened to shield only that one. So the row had two different hover
   behaviours, which is the same inconsistency the client called out in the category
   flyout. §14's intent is a background state layer with the text unchanged; restated
   here at matching strength for all seven. Fifth instance of this trap on this build. */
.sl-body a.d4y-nav-link:hover{color:var(--d4y-text)}
.sl-body a.d4y-nav-link.is-sale:hover{color:var(--d4y-sale)}

/* Current page. §12's two navigation patterns both mark the active destination with
   an orange-100 fill ("Navigation bar … active = pill indicator (orange-100)";
   "Navigation drawer … active item = full-pill orange-100 fill"), and unlike a hover
   this IS a selection state — it persists for as long as you are on the page. Same
   pair §39 uses for a selected menu row. */
.sl-body a.d4y-nav-link.is-current{
  background:var(--d4y-primary-tint-strong);color:var(--d4y-badge-new-fg);
}
/* The current item still owes a hover response — §6 wants feedback on EVERY
   interactive element, and holding the same fill meant the one nav item you are
   most likely to point at answered with nothing. The styleguide's state table gives
   "+8% primary" over a selected orange-100 chip; #F7DEC6 is that pre-blend, and it
   is the same value §39 uses for hovering an already-selected menu row. */
.sl-body a.d4y-nav-link.is-current:hover{background:#F7DEC6;color:var(--d4y-badge-new-fg)}
.sl-body a.d4y-nav-link.is-sale.is-current,
.sl-body a.d4y-nav-link.is-sale.is-current:hover{color:var(--d4y-sale)}

.d4y-nav{justify-content:flex-start;gap:8px}
/* §4b bans DECORATIVE letter-spaced uppercase outright. The uppercase is the client's
   wireframe and stays; the +0.5 was the banned part, and it also overrode Label L's +0.1
   declared on this same class 2000 lines earlier. */
.d4y-nav-link{text-transform:uppercase}
.d4y-nav-link.is-strong{font-weight:600;font-size:16px;line-height:24px;letter-spacing:.15px} /* Title M */
.sl-body a.d4y-nav-link.is-strong{color:var(--d4y-text)}

@media(max-width:1100px){
  /* Below this the three words crowd the search field back to nothing. */
  .d4y-icon-btn--labelled{width:44px;padding:0;border-radius:50%}
  .d4y-icon-btn-label{display:none}
  .d4y-icon-btn--labelled .d4y-count{top:2px;right:2px;left:auto}
}
@media(max-width:900px){
  .d4y-nav{gap:4px}
  .d4y-nav-link{padding:8px}
}

/* ---------- 50. Footer badge groups, round 5 -------------------------------
 * The client's footer reference carries two kinds of mark in one strip: card
 * schemes and the Latvian comparison portals. They are labelled separately, so
 * the second label needs a divider before it — otherwise the row reads as one
 * list of things the shop accepts as payment.
 * -------------------------------------------------------------------------- */
.d4y-footer-pay-label--second{
  padding-left:16px;border-left:1px solid var(--d4y-dark-band-tint);
}
/* The portals are not payment marks, so they are tonal rather than white — the
   §6 +8% layer on the deep band, same device the hairlines use. */
.d4y-paybadge--partner{
  background:var(--d4y-dark-band-tint);color:var(--d4y-text-inverse-secondary);
}
@media(max-width:640px){
  .d4y-footer-pay-inner{justify-content:flex-start}
  .d4y-footer-pay-label--second{padding-left:0;border-left:none}
}

/* ---------- 51. Shopfront menu on a phone -----------------------------------
 * Expanded, the directory is 15 top-level rows plus 10 children — over a
 * screenful of list standing between the banner and the first product. So on a
 * phone it is a two-up grid of the top level only; the children are reachable
 * from /shop, which is the same directory with a picture per category and is
 * exactly what the client asked that page to be.
 * -------------------------------------------------------------------------- */
@media(max-width:640px){
  .d4y-catmenu-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .d4y-catmenu-sub{display:none}
  .d4y-catmenu-chev{display:none}
  .d4y-catmenu-link{padding:8px 12px}
}

/* ---------- 52. The platform page-header, on the design's own terms ---------
 * `page-header` composes Kontakti and (round 5) Blogs. It arrives centred on a
 * stone-50 band, which is the treatment sections/d4y-article was written to
 * REJECT: the design's page header is a breadcrumb and a left-aligned Display S
 * on white. The eight article pages already do that, so the two platform-header
 * pages were the odd ones out. Same values as .d4y-article-head, so a visitor
 * cannot tell which section drew the page title.
 * -------------------------------------------------------------------------- */
.sl-section--page-header{background:var(--d4y-surface);padding-block:0}
.sl-section--page-header .sl-container{text-align:left;padding-top:40px}
.sl-section--page-header .sl-container > h1{margin:16px 0 0}
.sl-section--page-header .sl-crumbs{
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;
  color:var(--d4y-text-tertiary);margin:0;
}
.sl-body .sl-section--page-header .sl-crumbs a{color:var(--d4y-text-secondary)}
.sl-body .sl-section--page-header .sl-crumbs a:hover{color:var(--d4y-text)}
.sl-section--page-header .sl-container > p:not(.sl-crumbs){
  font-size:16px;line-height:24px;letter-spacing:.15px;
  color:var(--d4y-text-secondary);margin:16px 0 0;max-width:62ch;
}

/* ---------- 53. Two PLP controls with no hover state -----------------------
 * Found by widening the deep page audit to the category routes in round 5 — it
 * had only ever been run on the home page and the product page, so the facet
 * rail's own controls were never probed. Both are <button>s and both answered
 * the pointer with nothing; verified in a browser before and after.
 *
 * §6 wants feedback on every interactive element, and §4b bans a lift, so both
 * take a state layer: the facet header the neutral wash on white, the switch a
 * step on its own track colour (and on primary when it is on).
 * -------------------------------------------------------------------------- */
.d4y-filter-head:hover{background:var(--d4y-hover-wash)}
.d4y-filter-head{border-radius:var(--d4y-radius-sm)}
.d4y-switch:hover{background:var(--d4y-text-tertiary)}
.d4y-switch[aria-checked="true"]:hover{background:var(--d4y-primary-hover)}

/* ---------- 54. Contact details panel --------------------------------------
 * Two faults the client reported on 2026-09-10, both in the PLATFORM's
 * contact-form section rather than in our markup.
 *
 * 1. Its three built-in detail rows carry HARDCODED ENGLISH labels — "Address",
 *    "Phone", "Email" — on a Latvian page. There is no setting and no translation
 *    key for them (probed twelve candidate keys, 2026-09-10), and its
 *    `info_rows_section` alternative flattens each row's HTML to plain text, which
 *    loses the tel:/mailto: links and welds the address across its <br/>. So the
 *    label text is replaced here, keyed off <html lang>, until the platform gains a
 *    setting — logged as a gap. The rows are the site's own address / phone / email
 *    in that fixed order, so :nth-of-type is deterministic; a row added through
 *    info_rows_section appends AFTER these three and is unaffected.
 *
 * 2. The rows were a label column beside a value column inside a narrow card, which
 *    is what made it read as broken. Stacked label-over-value on the type scale
 *    (Label M over Body L) fits the card and matches the footer's contact block.
 * -------------------------------------------------------------------------- */
/* Headline L, the same role and the same first line as the form column's "Uzraksti mums",
   so the two columns start on one line. It was Title L inside a card, which is the
   drawer/dialog-title role and sat 29px lower than its neighbour. */
.sl-contact__info-heading{
  font-family:var(--d4y-font-display);font-stretch:80%;font-weight:600;
  font-size:32px;line-height:40px;margin:0 0 4px;                      /* Headline L */
}
/* The first row's rule doubles as the list's top edge, so it needs the space the card's
   padding used to give it. */
.sl-contact__info-row:first-of-type{margin-top:20px}
.sl-contact__info-row{
  display:flex;flex-direction:column;gap:2px;
  padding:14px 0;border-top:1px solid var(--d4y-hairline);
}
.sl-contact__info-row:last-child{padding-bottom:0}
.sl-contact__info-row > span:not(.sl-contact__info-label),
.sl-body .sl-contact__info-row > a{
  font-size:16px;line-height:24px;letter-spacing:.15px;                 /* Body L */
}
.sl-body .sl-contact__info-row > a{color:var(--d4y-text)}
.sl-body .sl-contact__info-row > a:hover{color:var(--d4y-primary);text-decoration:underline}

/* The label text itself. The English span is REMOVED (display:none) rather than shrunk —
   `font-size:0` left it in the accessibility tree, so a screen reader read "Address
   Adrese", and it put a 0px font on the page, which the styleguide audit correctly
   refuses. The row is a column flexbox, so its ::before takes the label's place exactly.

   DERIVED FROM THE ROW'S CONTENT, NOT ITS POSITION. The first version keyed off
   :nth-of-type on the stated grounds that the three rows are "the site's own address /
   phone / email in that fixed order, so :nth-of-type is deterministic". It was not: the
   platform emitted Address·Phone·Email when this was written and Phone·Address·Email by
   2026-09-13, which silently swapped two labels onto each other's values — the card
   read ADRESE over a telephone number. A phone row is the one with a tel: link and an
   e-mail row the one with mailto:, whatever order they arrive in, and the address row
   is the one with no link at all. That cannot desync. */
.sl-contact__info-label{display:none}
.sl-contact__info-row::before{
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;   /* Label M */
  text-transform:uppercase;color:var(--d4y-text-tertiary);
}
html[lang="lv"] .sl-contact__info-row:not(:has(a))::before{content:"Adrese"}
html[lang="lv"] .sl-contact__info-row:has(a[href^="tel:"])::before{content:"Tālrunis"}
html[lang="lv"] .sl-contact__info-row:has(a[href^="mailto:"])::before{content:"E-pasts"}
html[lang="en"] .sl-contact__info-row:not(:has(a))::before{content:"Address"}
html[lang="en"] .sl-contact__info-row:has(a[href^="tel:"])::before{content:"Phone"}
html[lang="en"] .sl-contact__info-row:has(a[href^="mailto:"])::before{content:"E-mail"}

/* §4: a resting panel is white with a hairline at elevation 0. */
/* The card is gone (see §29): the details are a list under a column heading, and the form is
   the only box on the page. This rule restated the card 1400 lines after the first one, so
   resetting it up there did nothing — source order, same specificity. */
/* The platform sets this intro's margin in em (1.2em = 19.2px), which is off the design's
   2px grid by construction. Roles are absolute pairs on this build, spacing included. */
.sl-body .sl-subheading{margin-bottom:20px;font-size:16px;line-height:24px;letter-spacing:0.15px}  /* Body L */

@media(max-width:900px){
  .sl-contact:not(.sl-contact--form-only){grid-template-columns:1fr;gap:24px}
  .sl-contact__info{order:0}
  .sl-contact > div:first-child{order:1}
}

/* ---------- 55. Long-form page, round 5 polish ------------------------------
 * The client's note of 2026-09-10 on /delivery and /apmaksa was that they look
 * plain. Two things were wrong and neither was the typography:
 *
 * 1. A 72ch reading column pinned to the LEFT of a 1232px container leaves ~500px
 *    of nothing beside it. The page reads as unfinished rather than as a measured
 *    column. The "on this page" rail already existed for this — it was just stacked
 *    ABOVE the prose at the same 72ch, so it added height instead of filling width.
 *    It is the second column now, sticky, and it only ever appears when the body
 *    really has 3+ H2s (assets/site.js decides, so a short page is unaffected).
 * 2. H2 (24/32) and H3 (22/28) were two points apart, so a numbered legal section
 *    did not read as outranking its own subheads. H2 is Headline M now, with the
 *    §5 hairline above it, which is what makes a long document scan.
 * -------------------------------------------------------------------------- */
.d4y-article-body{
  display:grid;grid-template-columns:minmax(0,72ch) minmax(0,1fr);
  gap:64px;align-items:start;
}
.d4y-article.is-wide .d4y-article-body{grid-template-columns:minmax(0,1fr)}
.d4y-prose{grid-column:1;max-width:none}
.d4y-toc{
  grid-column:2;grid-row:1;margin-bottom:0;max-width:none;
  position:sticky;top:120px;
}
/* With no ToC the column collapses and the prose keeps its measure. */
.d4y-article-body:not(:has(.d4y-toc:not([hidden]))){grid-template-columns:minmax(0,72ch)}

/* A page header is not a band: the section after it wants the page-top step, not the
   88px rhythm that separates two bands of equal weight. */
main > .sl-section:first-child .d4y-band{padding-top:40px}
.sl-section--page-header + .sl-section,
.sl-section--d4y-article + .sl-section{padding-block-start:32px}

@media(max-width:1100px){
  .d4y-article-body{grid-template-columns:minmax(0,1fr);gap:0}
  .d4y-toc{position:static;grid-column:1;grid-row:auto;margin-bottom:32px;max-width:72ch}
  .d4y-prose{max-width:72ch}
}

/* ---------- 56. Category tile, round 5 -------------------------------------
 * Seven of the 24 tiles are sub-categories of another tile in the same grid, and
 * nothing said so. The eyebrow (Label S, the smallest role) names the parent above
 * the tile's own name, which is the difference between a structure and a pile.
 * -------------------------------------------------------------------------- */
.d4y-cat-eyebrow{
  font-size:11px;line-height:16px;font-weight:500;letter-spacing:.5px;   /* Label S */
  text-transform:uppercase;color:var(--d4y-text-tertiary);
}
/* The count is a meta line, so Label M rather than body copy. */
.d4y-cat-body .d4y-body-s{
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;   /* Label M */
  margin-top:auto;padding-top:6px;
}

/* ---------- 57. Definition rows in prose -----------------------------------
 * The Kontakti company details arrived from the import as one paragraph of
 * `<strong>Label:</strong> value` pairs with nothing between them, so six facts
 * read as a single sentence. They are a <dl> now (split-details.py, guarded on
 * the visible text) and this is how one is set: label in the meta role, value on
 * the body role, one row per line, aligned in two columns where there is room.
 * -------------------------------------------------------------------------- */
.d4y-details{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 24px;margin:0}
/* Label M is 12/16, and stretching its leading to 24 to line up with the value is not a
   role at all — the styleguide audit is right to refuse it. The role stays intact and a
   4px pad (on the 2px grid) sits the label on the value's first line instead. */
.d4y-details dt{
  font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;   /* Label M */
  text-transform:uppercase;color:var(--d4y-text-tertiary);white-space:nowrap;
  padding-top:4px;
}
.d4y-details dd{
  margin:0;font-size:16px;line-height:24px;letter-spacing:.15px;color:var(--d4y-text);
}
.d4y-details dt:empty + dd,.d4y-details-name{font-weight:600}
@media(max-width:640px){
  .d4y-details{grid-template-columns:minmax(0,1fr);gap:0}
  .d4y-details dt{line-height:16px;margin-top:12px}
  .d4y-details dt:first-child{margin-top:0}
}

/* The platform's narrow rich-text centres its BODY but leaves the heading at the
   container edge, so the two did not share a left edge on Kontakti. */
.sl-rich-text--narrow{max-width:72ch;margin-inline:0}

/* ---------- 58. Payment marks in prose -------------------------------------
 * /apmaksa shows the two card schemes its own copy names — VISA and Mastercard,
 * the ones makecommerce.lv actually provides. NOT the four in the footer strip:
 * PayPal and Bitcoin are still unconfirmed (asked 2026-09-10) and a page whose
 * text lists the real methods must not contradict itself in pictures.
 *
 * `.d4y-prose img` is display:block with a radius — correct for a figure, wrong
 * for a row of marks — so the row opts out rather than the global rule bending.
 * -------------------------------------------------------------------------- */
.d4y-paymarks{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.d4y-prose .d4y-paymarks img{
  width:64px;height:41px;object-fit:contain;display:block;margin:0;
  background:var(--d4y-surface);border:1px solid var(--d4y-hairline);
  border-radius:var(--d4y-radius-sm);padding:4px;
}

/* ---------- 59. Newsletter band ---------------------------------------------
 * One field and a button on one row, per the references: two-field forms convert at
 * 3.07% against 1.22% at three (GetResponse), and the platform's contact-form has no
 * setting to drop its name field — which is why this is a section of its own rather
 * than that one configured down.
 *
 * The composition is a single constrained column, everything sharing one left edge
 * with the form row, so it reads as one object rather than three centred things of
 * different widths (the "randomly composed" the client saw). Stone-50 ground so it
 * separates from the white bands above without needing a rule.
 * -------------------------------------------------------------------------- */
/* `.sl-section.d4y-sec{padding-block:0}` in §18 is (0,2,0) and opts every d4y section
   out of the platform's band padding — including this one, which carries `d4y-sec` from
   its own schema. A single-class selector here lost, so the band had NO padding at all
   and what looked like spacing was only the content's own margins. Matched strength. */
.sl-section.d4y-sec.sl-section--d4y-newsletter{
  background:var(--d4y-surface-alt);padding-block:var(--d4y-band);
}
/* TWO COLUMNS, not a 560px block pinned left in a 1440px band. The old layout left two
   thirds of the row empty, which is what read as "randomly composed": the eye had no
   reason for the copy stopping where it did. Copy and form are one row now; the form
   column is capped so the field stays the size of an e-mail address, not the size of
   the column (NN/g: "text fields should be about the same size as the expected input"). */
.d4y-news-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);
  gap:24px 64px;align-items:center;
}
.d4y-news-copy{max-width:46ch}
.d4y-news-copy h2{margin:0}
/* A VISIBLE label. It was `d4y-visually-hidden` with the same words as the placeholder,
   and NN/g's form list says avoid placeholder text outright — it disappears on the first
   keystroke, so the one thing naming the field is gone exactly while it is being filled. */
.d4y-news-label{
  display:block;margin-bottom:6px;
  font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px;   /* Label L */
  color:var(--d4y-text-secondary);
}
.d4y-news-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.d4y-news-intro{
  font-size:16px;line-height:24px;letter-spacing:.15px;                  /* Body L */
  color:var(--d4y-text-secondary);margin:8px 0 0;
}
.d4y-news-form{margin:0}
.d4y-news-form .d4y-input{width:100%}
.d4y-news-form .d4y-btn{white-space:nowrap}
@media(max-width:900px){
  .d4y-news-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .d4y-news-copy{max-width:none}
}
/* The confirmation replaces the form in place, so it inherits the form column's width. */
.d4y-news-done{
  margin:0;font-size:16px;line-height:24px;letter-spacing:0.15px;   /* Body L */
  color:var(--d4y-text);
}
.d4y-news-consent{
  font-size:12px;line-height:16px;letter-spacing:.4px;                   /* Body S */
  color:var(--d4y-text-tertiary);margin:12px 0 0;
}
.sl-body .d4y-news-consent a{color:var(--d4y-text-secondary);text-decoration:underline}
.sl-body .d4y-news-consent a:hover{color:var(--d4y-primary)}
@media(max-width:560px){
  .d4y-news-row{grid-template-columns:minmax(0,1fr)}
}

/* ---------- 60. Brand marquee ("Mūsu zīmoli") -------------------------------
 * NOTE the class name: `.d4y-brand` was already taken by the header's logo anchor,
 * and the first version of this section reused it — which put height:40px, 8px padding
 * and opacity:.75 on the site logo on every page of the site. Caught by the tap-target
 * audit reporting an odd number of items (17, not 8x2). Namespace a new component
 * against the existing stylesheet before naming it.
 *
 * The mechanism is Bungala's, which already solves this: a flex track at
 * `width:max-content` carrying the list TWICE, translated exactly -50% so the
 * second copy lands where the first began — no seam, no jump. Pure CSS.
 *
 * §9 gives no duration for a decorative loop (its table tops out at page
 * transitions), so the speed is a setting rather than a token, defaulting to the
 * 45s Bungala settled on. Hover pauses it, which is the one affordance a marquee
 * owes a reader who wants to actually look at something.
 *
 * Reduced motion STOPS it rather than speeding it up: a continuously moving band
 * is exactly what that preference is for. The track then shows the first copy and
 * scrolls horizontally by hand, so no brand becomes unreachable.
 * -------------------------------------------------------------------------- */
/* 40px, not the shared 24px: the strip's neighbours are a heading and nothing else, and
   at 24px the marks read as a caption hanging off the headline rather than a band of
   their own — the client's "spacing in between the header and the logos is too small". */
.d4y-brands .d4y-section-head{margin-bottom:40px}
/* `.d4y-band` is padding-TOP only by design, so the marquee ran straight into the
   band below it with nothing between — the client's "spacing from the lower component
   is non-existant". This band closes itself. */
.d4y-brands{padding-bottom:var(--d4y-band)}
.d4y-marquee{
  position:relative;overflow:hidden;
  /* Air above and below the marks, so the strip sits IN the band instead of filling it. */
  padding-block:24px;
  /* fade the two ends so logos enter and leave instead of being chopped */
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 80px,#000 calc(100% - 80px),transparent);
          mask-image:linear-gradient(90deg,transparent,#000 80px,#000 calc(100% - 80px),transparent);
}
.d4y-marquee-track{
  display:flex;align-items:center;gap:72px;width:max-content;
  animation:d4y-marquee var(--d4y-marquee-time,45s) linear infinite;
}
@keyframes d4y-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
/* PAUSE ON HOVER, AND ON KEYBOARD FOCUS ONLY.
   `:focus-within` was wrong: clicking a logo focuses that link, so a mouse click froze the
   strip for good — the pause outlived both the click and the pointer leaving, and it came
   back frozen on a bfcache restore because the link was still focused. `:has(:focus-visible)`
   keeps the affordance for the reader who actually needs it (tabbing through the marks) and
   ignores the click that merely happens to focus. Browsers without `:has()` lose the
   keyboard pause and keep the hover pause, which is the right way round to degrade. */
.d4y-marquee:hover .d4y-marquee-track,
.d4y-marquee:has(:focus-visible) .d4y-marquee-track{animation-play-state:paused}

/* NO FRAME. The first pass put each mark in a bordered white card, and because the
   logos were screenshots of each brand's own header they arrived with that header's
   colour baked in — a box inside a box, which is what the client saw. The marks are
   real transparent files now (Mission and Winmau via their own dark variants), so
   they sit directly on the page ground the way a brand strip should.
   Opacity, not greyscale, carries the hover: it keeps each mark's own colour. */
/* 72px. 56 was already up from 40; at 56 the whole band came to 312px against 520-578 for
   its neighbours, so it read as a strip wedged between two sections rather than as a section
   ("This should be treated with the size of a whole section, not compressed"). With the
   padding below it the band is ~376px — the same order as the reviews band at 369. */
.d4y-marquee-item{
  flex:none;display:flex;align-items:center;justify-content:center;
  height:72px;padding:0 16px;opacity:.75;transition:opacity .15s ease;
}
.d4y-marquee-item img{height:100%;width:auto;display:block}
.sl-body a.d4y-marquee-item:hover{opacity:1}
.d4y-marquee-item:focus-visible{box-shadow:var(--d4y-focus);outline:2px solid transparent;outline-offset:2px}
/* Fallback for a brand whose logo has not been sourced yet. */
/* Headline S, not Title L. A wordmark standing in for a logo wants the DISPLAY voice,
   but Title L's 22/28 belongs to Instrument Sans — Archivo at those metrics is not a
   role at all, and the styleguide audit refused it. Headline S is the Archivo pairing. */
.d4y-marquee-name{
  padding:0 16px;white-space:nowrap;
  font-family:var(--d4y-font-display);font-stretch:80%;font-weight:600;
  font-size:45px;line-height:52px;                                       /* Display M */
  text-transform:uppercase;color:var(--d4y-text-secondary);
}
.sl-body a.d4y-marquee-item .d4y-marquee-name{color:var(--d4y-text-secondary)}

@media(prefers-reduced-motion:reduce){
  .d4y-marquee{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
  .d4y-marquee-track{animation:none}
}
@media(max-width:640px){
  /* 40px on a 390px screen: Mission is six times wider than it is tall, so a 48px row
     paints it 289px wide and the strip shows one mark at a time. 40 fits one and a half,
     which is what makes it read as a strip rather than a slideshow. */
  .d4y-marquee-item{height:48px;padding:0 8px}
  .d4y-marquee-track{gap:48px}
  .d4y-marquee-name{font-size:32px;line-height:40px}        /* Headline L */
  .d4y-brands .d4y-section-head{margin-bottom:32px}
  .d4y-marquee{-webkit-mask-image:linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent);
                       mask-image:linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent)}
}

/* ---------- 61. Definition lists inside prose --------------------------------
 * §57 styles `.d4y-details` for the Kontakti rekvizīti, which sits in a rich-text
 * body. /garantija now uses the same list for its four legal periods, so the rule
 * has to reach a <dl> that is a direct child of .d4y-prose — where the `> * + *`
 * rhythm would otherwise be the only thing touching it.
 * -------------------------------------------------------------------------- */
.d4y-prose .d4y-details{margin-top:20px;margin-bottom:20px}
.d4y-prose .d4y-details dt{margin:0}
.d4y-prose .d4y-details dd{margin:0}

/* ---------- 62. Segmented switcher -----------------------------------------
 * NAME: `.d4y-switch` was already the PLP's toggle ("Tikai pieejamās"), and the
 * first version of this reused it — so the control rendered as a 44x24 pill and the
 * chips stacked out of flow across the copy. Second name collision of the session
 * after `.d4y-brand` hit the header logo. Grep the stylesheet for a class before
 * claiming it; "it sounds free" is not a check.
 *
 * THIS COMPONENT ALREADY EXISTED. §6 above defines `.d4y-segmented` as the styleguide's
 * "button group (connected toggle)" — the one M3-derived control for "pick one of these"
 * (it replaces M3's deprecated segmented buttons): 2px gaps, pill outer / 8px inner
 * corners, selected = orange-100 + ✓. I built a second, near-identical control out of
 * chips and gave it the SAME class name, so my layout rules were quietly overriding the
 * real component. Third name collision of this build. The duplicate is gone: this section
 * now only adds the behaviour (panels, no-JS fallback, mobile wrap) on top of §6.
 * -------------------------------------------------------------------------- */
.d4y-segmented{margin:0 0 24px}
.d4y-segmented-panel[hidden]{display:none}
/* §12's "selected = orange-100 + ✓". A fill alone is one indicator; NN/g asks for at
   least two on a tab list, because a single one is easy to miss. Fill + mark + label
   colour is three. The mark is decorative — `aria-selected` carries it to a reader. */
.d4y-segmented > .is-selected::before{content:"✓";font-weight:600}
/* Without JS every panel shows and the buttons are ordinary anchors, so the group must
   not imply a selection that is not being honoured. */
.d4y-segmented:not([role="tablist"]) > .is-selected{
  background:var(--d4y-surface);color:var(--d4y-text);border-color:var(--d4y-text-tertiary);
}
.d4y-segmented:not([role="tablist"]) > .is-selected::before{content:none}
/* Three Latvian delivery labels are ~430px of connected group and the phone is 390px.
   NN/g: when a tab list overflows it becomes a carousel and the hidden tabs stop being
   discoverable — so it wraps instead, and each button takes the pill radius on its own
   because a wrapped row has no meaningful first/last. */
@media(max-width:640px){
  .d4y-segmented{flex-wrap:wrap;gap:8px}
  .d4y-segmented > *,
  .d4y-segmented > *:first-child,
  .d4y-segmented > *:last-child{border-radius:var(--d4y-radius-pill)}
}


/* --- statutory model withdrawal form (2026-09-16) --- */
/* A quotable block that reads as a form the customer can copy. Tokens only, 8px from the
   shape scale, no shadow -- resting page content never carries elevation. */
.d4y-prose .d4y-modelform{
  margin:24px 0;padding:20px 24px;border:1px solid var(--d4y-hairline);
  border-radius:var(--d4y-radius);background:var(--d4y-surface-alt);
}
.d4y-prose .d4y-modelform p{margin:0 0 10px;overflow-wrap:anywhere;word-break:break-word}
.d4y-prose .d4y-modelform p:last-child{margin-bottom:0}

/* ---------- 63. Product gallery: zoom + full-size viewer (2026-10-11) -------
   The client could not enlarge any product picture. The big image now opens a full-screen
   viewer (assets/site.js builds it once per page); the zoom button says so in the corner. On
   phones the stage is hidden and a tap on the swipe rail opens the same viewer. */
.d4y-pdp-stage img[data-d4y-stage-img]{cursor:zoom-in}
.d4y-pdp-shot[data-d4y-shot]{cursor:zoom-in}
.d4y-pdp-zoom{
  position:absolute;right:16px;bottom:16px;z-index:1;
  width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--d4y-hairline);border-radius:var(--d4y-radius-pill);
  background:var(--d4y-surface);color:var(--d4y-text-secondary);cursor:pointer;padding:0;
}
.d4y-pdp-zoom:hover{background:var(--d4y-hover-wash);color:var(--d4y-text)}
.d4y-pdp-zoom:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--d4y-focus)}

.d4y-lightbox{
  position:fixed;inset:0;z-index:1000;background:rgba(28,25,23,0.94);
  display:grid;grid-template-columns:72px 1fr 72px;grid-template-rows:64px 1fr 56px;align-items:center;
}
.d4y-lightbox[hidden]{display:none}
.d4y-lightbox-stage{
  grid-column:2;grid-row:2;margin:0;height:100%;min-height:0;
  display:flex;align-items:center;justify-content:center;
}
.d4y-lightbox-stage img{
  max-width:100%;max-height:100%;object-fit:contain;
  background:var(--d4y-surface);border-radius:var(--d4y-radius);
}
.d4y-lightbox-btn{
  width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;justify-self:center;
  border:0;border-radius:var(--d4y-radius-pill);padding:0;cursor:pointer;
  background:rgba(255,255,255,0.12);color:#FFFFFF;
}
.d4y-lightbox-btn:hover{background:rgba(255,255,255,0.24)}
.d4y-lightbox-btn:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px var(--d4y-dark-band-deep),0 0 0 4px var(--d4y-on-dark-accent)}
.d4y-lightbox-close{grid-column:3;grid-row:1}
.d4y-lightbox-prev{grid-column:1;grid-row:2}
.d4y-lightbox-next{grid-column:3;grid-row:2}
.d4y-lightbox-count{
  grid-column:2;grid-row:3;justify-self:center;
  font-size:14px;font-weight:500;letter-spacing:0.5px;color:var(--d4y-text-inverse-secondary);
  font-variant-numeric:tabular-nums;
}
@media(max-width:700px){
  .d4y-lightbox{grid-template-columns:8px 1fr 8px;grid-template-rows:64px 1fr 72px}
  .d4y-lightbox-close{grid-column:2;justify-self:end}
  /* Arrows move under the picture so it can use the full width; swipe works too. */
  .d4y-lightbox-prev{grid-column:2;grid-row:3;justify-self:start;margin-left:8px}
  .d4y-lightbox-next{grid-column:2;grid-row:3;justify-self:end;margin-right:8px}
}

/* Facet values past the first few are rendered but hidden until "Rādīt visus" (2026-10-11).
   .d4y-check sets display, which would otherwise beat the hidden attribute. */
.d4y-check[hidden]{display:none}

/* Grid blowout guard (2026-10-11): a grid item's min-width is its content's min-content, and on
   one product that widened the single phone column to 386px of a 358px container - the page
   scrolled sideways by 12px. Columns may shrink to the track; their content wraps or scrolls. */
.d4y-pdp > *{min-width:0}

/* Facet rail fills its own column (client QA, 2026-10-11). It was a fixed 280px in a
   264px column - 232px at 901-1100 - so between ~900 and 1200 it slid 48px under the
   product grid and the "14 / 14" counter ran into the stock switch. Above 900 only: below
   that the rail is the off-canvas drawer, which sets its own width. */
@media(min-width:901px){
  .d4y-plp-layout > .d4y-filters{width:auto;min-width:0}
}

/* Home PRODUKTI menu, stacked (641-1279px; client QA 2026-10-11). Two things broke it:
   the link kept height:100% from the side-by-side layout, so each row's sub-category
   list was pushed below the row's clipped edge - the space stayed, the text did not -
   and a two-column GRID makes a row as tall as its tallest cell, leaving holes beside
   every expanded group. Natural link height, and newspaper columns so groups pack. */
@media(min-width:641px) and (max-width:1239px){
  .d4y-catmenu-link{height:auto}
  .d4y-catmenu-list{display:block;columns:2;column-gap:8px}
  .d4y-catmenu-item{break-inside:avoid}
}

/* ---------- 60. QA audit 2026-10-11 (docs/DARTS4YOU-QA-AUDIT-2026-10-11.md) ----------------- */

/* Q-41 skip link: the first Tab stop on every page, visible only while focused. */
.d4y-skip{position:absolute;left:16px;top:-100px;z-index:1100;background:var(--d4y-surface);color:var(--d4y-text);
  padding:12px 16px;border-radius:var(--d4y-radius);box-shadow:var(--d4y-shadow);font-weight:600}
.d4y-skip:focus{top:12px}
.sl-body a.d4y-skip{color:var(--d4y-text)}
main:focus{outline:none}

/* Q-05 the PDP sticky bar must never sit over an open drawer or mini-cart (it is a separate
   stacking context lower in the page), and Q-38/MI-10 it now stays in reach for the whole
   page instead of scrolling away with the buy box. The page gets matching room at the end. */
body.d4y-no-scroll .d4y-pdp-sticky{visibility:hidden}
@media(max-width:900px){
  .d4y-pdp-sticky{position:fixed;left:0;right:0;bottom:0}
  .sl-body:has(.d4y-pdp-sticky){padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
}

/* Q-14/MA-01 a closed off-canvas filter drawer is out of the Tab and screen-reader order too,
   not just out of sight. visibility waits for the slide to finish before hiding. */
@media(max-width:900px){
  .d4y-filters{visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s}
  .d4y-filters.is-open{visibility:visible;transition:transform .22s ease,visibility 0s}
}

/* Q-15/MA-03 phones hide the header's word labels; they stay as the links' accessible name. */
@media(max-width:1100px){
  .d4y-icon-btn-label{display:inline;position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
}

/* Q-19/MA-07 iOS Safari zooms into any input under 16px and does not zoom back out. */
@media(max-width:900px){
  .d4y-search input,
  .d4y-field--sm .d4y-input,
  .d4y-qty .d4y-qty-value,
  .d4y-input{font-size:16px}
}

/* Q-20/MA-05 the LV "Pievienot grozam" row did not fit 320px: the button may shrink and wrap. */
.d4y-pdp-actions .d4y-pdp-add{min-width:0}
@media(max-width:360px){
  .d4y-pdp-actions{flex-wrap:wrap}
  .d4y-pdp-actions .d4y-pdp-add{flex:1 1 140px}
}

/* Q-18/MA-06 the sticky pay bar must not cover the focused field. Scroll-into-view leaves
   room for it, and in a short landscape window it stops being sticky at all. */
@media(max-width:900px){
  html:has(.d4y-checkout-sticky){scroll-padding-bottom:150px}
}
@media(max-width:900px) and (max-height:500px){
  .d4y-checkout-sticky{position:static}
  html:has(.d4y-checkout-sticky){scroll-padding-bottom:0}
}

/* Q-22 layout shift. The facet rail is built by JS; until then its column is reserved
   (html.js is set by an inline script in <head>, so a no-JS visitor keeps the full-width
   grid), and only the first page of cards is shown, so hydration hides nothing in view. */
@media(min-width:901px){
  .js .d4y-plp-layout > .d4y-plp-main{grid-column:2}
  .js .d4y-plp-layout > .d4y-filters[hidden]{display:block;visibility:hidden}
  html:not(.js) .d4y-plp-layout > .d4y-filters[hidden] + .d4y-plp-main{grid-column:1 / -1}
}
.js .d4y-plp-grid:not(.is-ready) > .d4y-plp-item:nth-child(n+25){display:none}
.js .d4y-search-body{min-height:70vh}
/* Search: the count line is reserved before it is filled, and the "not found?" help appears only
   once the results are in - it used to be pushed down by them, which was most of the 0.5 CLS. */
.d4y-search-count{min-height:20px}
.js .d4y-search-body:not(.is-ready) .d4y-search-help{display:none}

/* Q-17/MA-08 hero: hidden slides are out of the focus order; a visible pause control. */
.d4y-hero-slide:not(.is-active){visibility:hidden;transition:opacity .6s ease,visibility 0s linear .6s}
.d4y-hero-slide.is-active{visibility:visible}
.d4y-hero-pause{
  position:absolute;right:8px;bottom:8px;z-index:3;width:40px;height:40px;border-radius:50%;
  border:0;background:rgba(28,25,23,.55);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.d4y-hero-pause:hover{background:rgba(28,25,23,.75)}
.d4y-hero-pause:focus-visible{box-shadow:var(--d4y-focus);outline:2px solid transparent}
.d4y-hero-pause .i-play{display:none}
.d4y-hero-pause[aria-pressed="true"] .i-play{display:block}
.d4y-hero-pause[aria-pressed="true"] .i-pause{display:none}

/* Q-41/MI-11 the brand marquee pauses on a tap as well as on hover/focus. */
.d4y-marquee.is-paused .d4y-marquee-track{animation-play-state:paused}

/* Q-39 the player hero kept the container's side gutter only above 1280. */
.d4y-player-hero-inner{padding-left:var(--d4y-gutter);padding-right:var(--d4y-gutter)}

/* Q-40/MI-08 links inside running text are underlined, not told apart by colour alone. */
.sl-body .d4y-prose a,.sl-body .account-alt a,.sl-body .d4y-search-help-body a,.sl-body .d4y-panel-sub a,
.sl-body .d4y-terms a{text-decoration:underline;text-underline-offset:2px}
/* …and the platform breadcrumb on /contact reaches 4.5:1. */
.sl-body .sl-crumbs,.sl-body .sl-crumbs a{color:var(--d4y-text-secondary);opacity:1}

/* Q-44 a long unbroken query wraps instead of running off the screen. */
.d4y-search-title{overflow-wrap:anywhere}

/* Q-09 search results pager. */
.d4y-search-more{display:flex;flex-direction:column;align-items:center;gap:12px;margin:32px 0 8px}

/* Q-13 an empty category says so. */
.d4y-plp-empty-cat{padding:48px 0;text-align:center}
.d4y-plp-empty-cat .d4y-message-actions{justify-content:center}

/* Q-34/MI-02 phone gallery shots are buttons now; keep them looking like pictures. */
button.d4y-pdp-shot{border:0;background:transparent;cursor:zoom-in;font:inherit;color:inherit}
.d4y-pdp-shot:focus-visible{box-shadow:inset var(--d4y-focus)}
.d4y-pdp-rail:focus-visible{box-shadow:var(--d4y-focus)}

/* Q-41/DJ-20 Esc closes a home flyout even though focus is still inside it. */
.d4y-catmenu-item.is-dismissed .d4y-catmenu-sub{opacity:0!important;visibility:hidden!important;pointer-events:none}

@media(forced-colors:active){
  .d4y-check .box,.d4y-switch,.d4y-variant{forced-color-adjust:auto}
}
.sl-body .d4y-drawer-link.is-strong{font-weight:600}
/* Q-39 an unknown player shows only the not-found message, not the kit bands under it. */
main:has(.d4y-player-missing) > .sl-section:not(:has(.d4y-player-missing)){display:none}
.d4y-brands{position:relative}
.d4y-marquee-pause{
  display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:12px 0 0 auto;
  border-radius:50%;border:1px solid var(--d4y-hairline);background:var(--d4y-surface);color:var(--d4y-text-secondary);cursor:pointer;
}
.d4y-marquee-pause:hover{color:var(--d4y-text);background:var(--d4y-hover-wash)}
.d4y-marquee-pause:focus-visible{box-shadow:var(--d4y-focus);outline:2px solid transparent}
.d4y-marquee-pause .i-play{display:none}
.d4y-marquee-pause[aria-pressed="true"] .i-play{display:block}
.d4y-marquee-pause[aria-pressed="true"] .i-pause{display:none}
@media(prefers-reduced-motion:reduce){.d4y-marquee-pause{display:none}}
/* Checkout delivery/payment choices hide their radio; show keyboard focus on the card (SUSP-04). */
.d4y-choice:has(input:focus-visible){box-shadow:var(--d4y-focus)}
/* The add-to-cart error that replaced the raw 400 page (Q-06). */
.d4y-add-error{margin-top:12px;flex-basis:100%}

/* sitelab-credit-mark:start — SiteLab logo in front of the SiteLab credit link (2026-11-05, .claude/scripts/credit-mark-sweep.mjs in skills-app-mannagement; re-run replaces this block) */
:is(a[href^="https://sitelab.lv"],a[href^="https://www.sitelab.lv"],a[href^="https://sitelabsites.com"],a[href^="https://www.sitelabsites.com"],a[href^="https://sitelabsites.hu"],a[href^="https://www.sitelabsites.hu"])::before{content:""!important;display:inline-block!important;flex:none!important;position:static!important;width:1.3em!important;height:1.3em!important;margin:0!important;margin-inline-end:.42em!important;padding:0!important;vertical-align:-.32em!important;border:0!important;border-radius:29%!important;opacity:1!important;transform:none!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 38'%3E%3Cpath fill='%23fff' d='M15.42 24.24L15.42 24.24Q14.15 24.24 13.21 23.85Q12.27 23.47 11.74 22.69Q11.21 21.91 11.19 20.74L11.19 20.74L13.51 20.74Q13.54 21.23 13.78 21.56Q14.02 21.90 14.43 22.07Q14.84 22.23 15.40 22.23L15.40 22.23Q15.90 22.23 16.26 22.10Q16.62 21.96 16.81 21.71Q17.01 21.47 17.01 21.14L17.01 21.14Q17.01 20.85 16.83 20.64Q16.65 20.44 16.28 20.28Q15.92 20.12 15.36 20.00L15.36 20.00L14.28 19.75Q12.96 19.44 12.21 18.76Q11.46 18.08 11.46 16.93L11.46 16.93Q11.46 15.99 11.97 15.27Q12.48 14.56 13.38 14.17Q14.27 13.78 15.42 13.78L15.42 13.78Q16.61 13.78 17.47 14.18Q18.34 14.58 18.82 15.29Q19.30 16.01 19.31 16.95L19.31 16.95L17.00 16.95Q16.95 16.40 16.54 16.09Q16.14 15.78 15.42 15.78L15.42 15.78Q14.94 15.78 14.61 15.91Q14.28 16.03 14.12 16.26Q13.95 16.48 13.95 16.77L13.95 16.77Q13.95 17.08 14.14 17.29Q14.32 17.51 14.66 17.65Q15.01 17.80 15.46 17.90L15.46 17.90L16.34 18.10Q17.08 18.26 17.66 18.53Q18.23 18.80 18.63 19.18Q19.03 19.55 19.24 20.05Q19.45 20.54 19.45 21.15L19.45 21.15Q19.45 22.11 18.97 22.80Q18.49 23.50 17.59 23.87Q16.69 24.24 15.42 24.24ZM27.13 24.10L20.45 24.10L20.45 13.91L22.87 13.91L22.87 22.13L27.13 22.13L27.13 24.10Z'/%3E%3C/svg%3E") center/100% 100% no-repeat,linear-gradient(rgba(43,89,255,.12),rgba(43,89,255,.12)),conic-gradient(from 210deg at 70% 30%,#7a4dff,#2b59ff 30%,#1592e6 45%,#0f9f62 60%,#d98a00 75%,#f0484f 88%,#7a4dff)!important;box-shadow:inset 0 0 0 .034em rgba(255,255,255,.25)!important}
:is(a[href^="https://sitelab.lv"],a[href^="https://www.sitelab.lv"],a[href^="https://sitelabsites.com"],a[href^="https://www.sitelabsites.com"],a[href^="https://sitelabsites.hu"],a[href^="https://www.sitelabsites.hu"]) svg[viewBox="3 5 26 22"]{display:none!important}
/* sitelab-credit-mark:end */

/* D4Y-PROSE-JUSTIFY 2026-11-10 (client): product descriptions run to both edges, the last line of a
   paragraph stays left and long words may hyphenate. Under 480px the column is too narrow for even
   spacing, so phones keep the text left-aligned. */
.d4y-pdp-prose p,.d4y-pdp-prose li{text-align:justify;text-align-last:left;-webkit-hyphens:auto;hyphens:auto}
@media (max-width:479px){.d4y-pdp-prose p,.d4y-pdp-prose li{text-align:left;-webkit-hyphens:manual;hyphens:manual}}

/* ==== D4Y-PAGES-JUSTIFY (2026-11-15) ====
   Page prose justified like the product descriptions (client 12.11); narrow phones stay left,
   where justified lines open wide gaps. The admin page-text editor writes its own alignment as
   ql-align-* classes, so those win when the owner picks one. */
.d4y-prose p,.d4y-prose li{text-align:justify;text-align-last:left;-webkit-hyphens:auto;hyphens:auto}
@media (max-width:479px){.d4y-prose p,.d4y-prose li{text-align:left;-webkit-hyphens:manual;hyphens:manual}}
.d4y-prose .ql-align-center{text-align:center}
.d4y-prose .ql-align-right{text-align:right}
.d4y-prose .ql-align-justify{text-align:justify}
/* the tab labels are buttons, not prose links: no underline (.sl-body .d4y-prose a underlines links) */
.sl-body .d4y-prose .d4y-segmented > a{text-decoration:none}

/* ==== D4Y-FOOTER-NO-SOCIAL (2026-11-16) ====
   The social icons left the bottom bar (the profiles are a footer column now, client 16.11), so the
   privacy link keeps the right-hand column instead of sliding into the empty middle one. */
.d4y-footer-legal-inner .d4y-footer-legal-link{grid-column:3}
@media(max-width:760px){.d4y-footer-legal-inner .d4y-footer-legal-link{grid-column:auto}}

/* ==== D4Y-FOOTER-NETLINKS (2026-11-16) ====
   "Seko mums": the network logo in front of Facebook / Instagram / X (client 16.11). */
.d4y-footer-netlink{display:inline-flex;align-items:center;gap:8px}
.d4y-footer-netlink svg{flex:none;width:16px;height:16px}

/* ==== D4Y-FOOTER-PAY-IN-GRID (2026-11-16) ====
   The payment and comparison-portal logos sit inside the footer grid instead of a band of their
   own: on desktop under the two short right-hand columns, bottom-aligned with the tall ones, one
   row per group (label | logos). Tablet: full width under the columns; phone: the last stacked column. */
.d4y-footer-paygrid{display:grid;grid-template-columns:auto 1fr;gap:12px 16px;align-items:center}
.d4y-footer-paybox .d4y-footer-pay-label{white-space:nowrap}
@media(min-width:901px){
  .d4y-footer-brand,.d4y-footer-col--tall{grid-row:span 2}
  .d4y-footer-paybox{grid-column:3 / -1;align-self:end}
}
@media(max-width:900px){.d4y-footer-paybox{grid-column:1 / -1}}
@media(max-width:560px){.d4y-footer-paygrid{grid-template-columns:1fr;gap:8px}.d4y-footer-paygrid .d4y-footer-pay-list + .d4y-footer-pay-label{margin-top:8px}}

/* D4Y-RAZMA-PORTRAIT (16.11): the Razma band photo is a near-square portrait; anchor it to the top so a short frame (phone) keeps his head. */
.d4y-feature.is-bleed .d4y-feature-media img{object-position:50% 12%}
