/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

/*
 * Metric-matched fallback for Unilever Shilling: what text shows in until the webfont arrives
 * (font-display: swap). If the fallback's letters are wider or narrower than Unilever Shilling's,
 * lines wrap differently and every line below moves when the webfont swaps in (CLS). On the text
 * pages (e.g. /docs/analytics-setup) that was PSI's CLS 0.27–0.47 (L-409).
 *
 * size-adjust matches the AVERAGE LETTER WIDTH, measured in the browser on the page's own text
 * (4,000 characters) in Unilever Shilling vs Arial / Arial Bold: 400 → 111.12%, 500-600 → 113.26%
 * (no Arial Medium: from Arial), 700-900 → 106.91%. (The cap-height method gave 99.12%: lines
 * 11% shorter, so they rewrapped.) The vertical overrides keep Unilever Shilling's line box at
 * that size: its ascent 770, descent 230 and line gap 70 (unitsPerEm 1000), each / size-adjust.
 *
 * The fonts: Arial, or what has Arial's metrics where Arial isn't installed (Liberation Sans and
 * Arimo, on Linux, as on PSI's machines), then Helvetica Neue and Roboto.
 *
 * HERE in styles.css (loaded first), not in fonts.css (loaded after the first section, or at once
 * on desktop): there, the face didn't exist until fonts.css arrived, so the first paint used
 * system-ui. Listed first in the fallback stack (--ufs-font-family, below).
 */
@font-face {
  font-family: 'Unilever Shilling Fallback';
  font-weight: 400;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'), local('Arimo'), local('Helvetica Neue'), local('Roboto');
  size-adjust: 111.12%;
  ascent-override: 69.29%;
  descent-override: 20.70%;
  line-gap-override: 6.30%;
}

@font-face {
  font-family: 'Unilever Shilling Fallback';
  font-weight: 500 600;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'), local('Arimo'), local('Helvetica Neue'), local('Roboto');
  size-adjust: 113.26%;
  ascent-override: 67.99%;
  descent-override: 20.31%;
  line-gap-override: 6.18%;
}

@font-face {
  font-family: 'Unilever Shilling Fallback';
  font-weight: 700 900;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Arimo Bold'), local('Helvetica Neue Bold'), local('Roboto Bold');
  size-adjust: 106.91%;
  ascent-override: 72.02%;
  descent-override: 21.51%;
  line-gap-override: 6.55%;
}

:root {
  /* ==========================================================================
     UFS DESIGN SYSTEM TOKENS — sourced from Rosana 2.0 Figma / handover tokens
     ========================================================================== */

  /* Brand primary */
  --color-brand-primary: #ff5a00;   /* UFS Orange */
  --color-brand-dark: #221d37;      /* Squid Ink */

  /* Supporting palette */
  --color-aubergine: #5c3657;

  /* Semantic alias of --color-orange-700 (the design's "Accessible" orange).
     Aliased rather than a second literal so the hex has a single source. */
  --color-accessible-orange: var(--color-orange-700);

  /* Loyalty/reward accent (not in the base design palette). --color-gold is a
     bright fill; --color-gold-text is the AA-safe darkening for text on white. */
  --color-gold: #ff9e00;
  --color-smoke: #94889d;
  --color-mushroom: #cbc5c7;
  --color-salt: #fff;

  /* Functional */

  /* Bright variants: use for fills, backgrounds, large icons — NOT for
     text/thin borders on white (success 2.3:1, info 3.8:1 fail WCAG AA). */
  --color-success: #81bc2a;
  --color-error: #d0021b;
  --color-info: #0a7ffe;

  /* Text-safe variants: same hue, darkened to pass AA (>=4.5:1) as text on
     white. Use these for status text, links, and thin borders/icons. */
  --color-success-text: #5a821d;
  --color-info-text: #0172ee;
  --color-gold-text: #a86800;

  /* Colour scales */
  --color-orange-100: #ffdecc;
  --color-orange-300: #ffa473;
  --color-orange-500: #ff5a00;
  --color-orange-700: #d14900;
  --color-orange-800: #b23e00;   /* darker orange — AA-safe (>=4.5:1) as small text on white (5.87:1) and mushroom-100 (5.31:1), where orange-700 fails (4.08:1) */
  --color-orange-900: #732900;
  --color-squid-100: #d3d2d7;
  --color-squid-300: #858391;
  --color-squid-500: #221d37;
  --color-squid-700: #1a1629;
  --color-squid-900: #0f0d19;
  --color-mushroom-100: #f5f3f4;
  --color-mushroom-300: #e2dfe0;
  --color-mushroom-500: #cbc5c7;
  --color-mushroom-700: #989495;
  --color-mushroom-900: #5b595a;

  /* AI gradient */
  --color-ai-accent: #d536b0;
  --gradient-ai: linear-gradient(135deg, #ff5a00 0%, #d536b0 100%);

  /* Food gradient (warm dark, for imagery-backed surfaces) */
  --food-gradient: linear-gradient(160deg, #3b1e08 0%, #7a3a10 55%, #2a1a0a 100%);

  /* Code surface (code blocks / snippets) */
  --color-code-surface: #1b1b2e;
  --color-code-bg: #12121f;
  --color-code-text: #d3d2d7;

  /* Typography families */
  --ufs-font-family: 'Unilever Shilling', 'Unilever Shilling Fallback', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-family: var(--ufs-font-family);
  --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-family-script: 'Chefs Hand v3', cursive;

  /* RTL / Arabic script stack (used when <html dir="rtl">, e.g. lang ar/he/fa/ur) */
  --font-family-rtl: 'IBM Plex Arabic', 'Noto Sans Arabic', 'Unilever Shilling', system-ui, sans-serif;

  /* Chef's Hand scale */
  --ch-h1-size: 82px; --ch-h1-lh: 53px; --ch-h1-ls: -0.3px; --ch-h1-mob-size: 51px;
  --ch-h2-size: 61px; --ch-h2-lh: 41px; --ch-h2-ls: -0.3px; --ch-h2-mob-size: 48px;
  --ch-h3-size: 51px; --ch-h3-lh: 36px; --ch-h3-ls: -0.2px; --ch-h3-mob-size: 41px;
  --ch-h4-size: 41px; --ch-h4-lh: 31px; --ch-h4-ls: -0.1px; --ch-h4-mob-size: 34px;
  --ch-h5-size: 34px; --ch-h5-lh: 28px; --ch-h5-ls: 0; --ch-h5-mob-size: 31px;

  /* Type scale — display */
  --text-display-size: 60px; --text-display-lh: 1.05; --text-display-ls: -1px; --text-display-w: 900;
  --text-display-mob-size: 36px;

  /* Type scale — headlines (desktop) */
  --text-h1-size: 48px; --text-h1-lh: 1.1; --text-h1-ls: -1px; --text-h1-w: 900;
  --text-h2-size: 40px; --text-h2-lh: 1.15; --text-h2-ls: -1px; --text-h2-w: 900;
  --text-h3-size: 30px; --text-h3-lh: 1.2; --text-h3-ls: -1px; --text-h3-w: 900;
  --text-h4-size: 24px; --text-h4-lh: 1.3; --text-h4-ls: -0.4px; --text-h4-w: 600;
  --text-h5-size: 20px; --text-h5-lh: 1.4; --text-h5-w: 600;
  --text-h6-size: 18px; --text-h6-lh: 1.4; --text-h6-w: 600;

  /* Type scale — headlines (mobile sizes) */
  --text-h1-mob-size: 30px;
  --text-h2-mob-size: 28px;
  --text-h3-mob-size: 24px;
  --text-h4-mob-size: 20px;
  --text-h5-mob-size: 18px;
  --text-h6-mob-size: 16px;

  /* Type scale — body */
  --text-body-lg-size: 18px; --text-body-lg-lh: 1.6;
  --text-body-size: 16px; --text-body-lh: 1.5; --text-body-w: 400;
  --text-body-sm-size: 14px; --text-body-sm-lh: 1.5;
  --text-body-xs-size: 12px; --text-body-xs-lh: 1.4; --text-body-xs-ls: 0.4px;

  /* Type scale — price */
  --text-price-xl-size: 36px; --text-price-xl-lh: 1.1; --text-price-xl-ls: -1px; --text-price-xl-w: 900;
  --text-price-xl-mob-size: 28px;
  --text-price-size: 20px; --text-price-lh: 1.2; --text-price-ls: -1px; --text-price-w: 600;
  --text-price-mob-size: 18px;

  /* Type scale — numerals */
  --text-numeral-lg-size: 32px; --text-numeral-lg-lh: 1; --text-numeral-lg-w: 600;
  --text-numeral-md-size: 28px; --text-numeral-md-lh: 1; --text-numeral-md-w: 600;

  /* Type scale — button text */
  --text-btn-sm-size: 12px; --text-btn-sm-w: 600;
  --text-btn-size: 14px; --text-btn-w: 600;
  --text-btn-lg-size: 18px; --text-btn-lg-w: 600;

  /* Type scale — utilities */
  --text-overline-size: 12px; --text-overline-lh: 1.4; --text-overline-w: 600; --text-overline-ls: 0.96px;
  --text-badge-size: 11px; --text-badge-lh: 1.4; --text-badge-w: 400; --text-badge-ls: 0.88px;
  --text-fine-print-size: 10px; --text-fine-print-lh: 1.4; --text-fine-print-w: 400;

  /* Spacing (4px base grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-15: 60px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-25: 100px;

  /* Border radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-xxl: 32px;
  --radius-xxxl: 56px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 2px 4px rgb(0 0 0 / 10%);
  --shadow-sm: 0 4px 8px rgb(0 0 0 / 10%);
  --shadow-md: 0 8px 16px rgb(0 0 0 / 10%);
  --shadow-lg: 0 16px 32px rgb(0 0 0 / 10%);
  --shadow-xl: 0 32px 64px rgb(0 0 0 / 10%);
  --shadow-raised: 0 1px 8px rgb(0 0 0 / 25%);

  /* colors */
  --background-color: white;
  --light-color: var(--color-mushroom-100);
  --dark-color: var(--color-brand-dark);
  --text-color: var(--color-brand-dark);
  --link-color: var(--color-accessible-orange);
  --link-hover-color: var(--color-orange-900);

  /* ==========================================================================
     SEMANTIC THEME TOKENS (default = light)
     Blocks reference these so they adapt to the active theme. The theme is set
     page-wide via the `theme` page-metadata (body.light/.dark/.glass) and can be
     overridden per-section via Section Metadata Style (.section.light/.dark/.glass).
     ========================================================================== */
  --theme-bg: var(--color-salt);              /* section background */
  --theme-bg-alt: var(--color-mushroom-100);  /* alternating/section-tint background */
  --theme-surface: var(--color-salt);         /* card/panel surface */
  --theme-surface-2: var(--color-mushroom-100); /* nested surface (thumbs, inputs) */
  --theme-text: var(--color-brand-dark);      /* body text */
  --theme-heading: var(--color-brand-dark);   /* headings */
  --theme-muted: var(--color-mushroom-900);   /* secondary/muted text */
  --theme-eyebrow: var(--color-accessible-orange); /* eyebrow/accent text */
  --theme-border: var(--color-mushroom-300);  /* hairlines/borders */
  --theme-shadow: var(--shadow-xs);           /* card elevation */
  --theme-backdrop: none;                     /* glass backdrop-filter */

  /* fonts */
  --body-font-family: var(--ufs-font-family);
  --heading-font-family: var(--ufs-font-family);

  /* body sizes */
  --body-font-size-m: var(--text-body-size);
  --body-font-size-s: var(--text-body-sm-size);
  --body-font-size-xs: var(--text-body-xs-size);

  /* nav height — must match --hdr-nav-h in blocks/header/header.css so the
     header spacer + scroll offsets reserve exactly the bar's height (EC-234). */
  --nav-height: 68px;

  /* Layout dimensions (from UFS handover) */
  --ctrl-h: 48px;          /* control height (inputs/buttons in chrome) */
  --util-h: 36px;          /* utility bar height */
  --nav-h: 68px;           /* desktop nav height (matches --nav-height, EC-234) */
  --mnav-h: 56px;          /* mobile nav height */
  --msearch-bar-h: 52px;   /* mobile search bar height */
  --bottom-nav-h: 80px;    /* mobile bottom nav height */
  --av-circle-size: 60px;  /* avatar circle size */

  /* Focus ring (EC-321) — a single site-wide keyboard-focus indicator. The
     browser default (outline: auto) measured 1.33:1 on the orange band and
     2.70:1 on brand-dark, below WCAG 2.2 SC 1.4.11 (3:1).

     The ring is accessible-orange (orange-700) EVERYWHERE — it clears 3:1 on
     every surface (white 4.5:1, brand-dark 3.59:1, squid-900 4.27:1) — EXCEPT
     an orange background, where orange-on-orange is 1:1. So the ONLY per-surface
     override is orange bands, which flip --focus-ring-color to white (4.5:1 on
     orange); see .newsletter. Dark surfaces keep the
     orange ring (do NOT flip them to white).

     Interactive elements draw the ring via the global `:focus-visible` rule
     below. Compose the outline from --focus-ring-width + --focus-ring-color at
     the USE site, NOT a pre-baked shorthand — a var() inside a custom property
     declared on :root freezes at :root and would ignore a descendant flip. */
  --focus-ring-width: 2px;
  --focus-ring-color: var(--color-accessible-orange);
  --focus-ring-offset: 3px; /* matches the design's .btn:focus-visible (EC-321) */
}


/* ==========================================================================
   RIGHT-TO-LEFT (RTL) SUPPORT
   `dir` and `lang` are set automatically on <html> by decorateLocale() in
   scripts.js from the page's locale (metadata or the /region/country/lang/
   path) — no per-country code needed. Blocks lay out with CSS logical
   properties (margin-inline, inset-inline, text-align:start, etc.) so they
   mirror automatically; the rules below cover the global layer and the few
   spots that still use physical directions or need font/script swaps.
   ========================================================================== */
[dir='rtl'] {
  /* switch to an Arabic-capable font stack for RTL languages */
  --ufs-font-family: var(--font-family-rtl);
  --font-family: var(--font-family-rtl);
  --body-font-family: var(--font-family-rtl);
  --heading-font-family: var(--font-family-rtl);
}

/* Always reserve the vertical scrollbar's gutter so the viewport width is the
   same whether or not the page scrolls. Without this, pages that fit (no
   scrollbar) are wider than pages that scroll (scrollbar present), which makes
   the position:fixed full-width header — and the whole canvas — shift
   horizontally between pages/states on desktop browsers with classic
   (non-overlay) scrollbars. Kept on <html> (the scroll container) only — adding
   overflow-x here would move scrolling to <body> and defeat the gutter. */
html {
  scrollbar-gutter: stable;

  /* Keep anchored/focused elements clear of the fixed header when scrolled into
     view (WCAG 2.2 AA 2.4.11 Focus Not Obscured). <html> is the scroll root, so
     scroll-padding-top offsets every scroll-into-view (anchor jumps, and the
     browser's focus scrolling for Tab). Sized to the mobile header spacer
     (--hdr-m-total-h) + a small gap; the desktop header height is set below. */
  scroll-padding-top: calc(var(--hdr-m-total-h, 125px) + var(--space-3));
}

@media (width >= 1024px) {
  html {
    scroll-padding-top: calc(var(--util-h) + var(--nav-height) + var(--space-3));
  }
}

body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-m);
  line-height: var(--text-body-lh);
  -webkit-font-smoothing: antialiased;

  /* Never allow the canvas to scroll horizontally. `clip` (not `hidden`/`auto`)
     is deliberate: it does NOT create a scroll container, so vertical scrolling
     stays on <html> and its `scrollbar-gutter: stable` keeps working, and the
     fixed header + search overlay (positioned to the viewport, not body) are not
     clipped. Guards against transient horizontal overflow — e.g. the brief
     fixed-body reflow when the search overlay opens/closes on desktops with
     classic scrollbars, which momentarily pushed content under the gutter. */
  overflow-x: clip;
}

body.appear {
  display: block;
}

/* The nav-wrapper is fixed to the viewport; this <header> is a spacer that
   reserves its full height so main content starts *below* the nav. Mobile shows
   only the nav row (utility bar hidden); desktop adds the utility bar. */
header {
  /* Reserve the full mobile header: top bar + the always-visible search row
     (matches --hdr-m-total-h in blocks/header/header.css) so page content
     starts below the search row, not under it. --hdr-m-total-h is only defined
     once header.css loads (lazy phase), so until then the FALLBACK is what
     reserves the space. It must equal the computed token — 56 + 48 + 8 + 12 +
     1 = 125px — or every page shifts down on mobile when the header loads (CLS). */
  height: var(--hdr-m-total-h, 125px);
}

/* desktop header height — desktop boundary, see scripts/breakpoints.js (EC-14) */
@media (width >= 1024px) {
  header {
    height: calc(var(--util-h) + var(--nav-height) + 1px);
  }
}

/* compact desktop (1024–1369px): the search sits on its own row under the nav
   (blocks/header/header.css, EC-233), so reserve that row too: 48px field +
   8px padding top/bottom + 1px border. Eager tokens only, to avoid CLS. */
@media (width >= 1024px) and (width < 1370px) {
  html {
    scroll-padding-top: calc(
      var(--util-h) + var(--nav-height) + var(--space-12) + var(--space-2) * 2 + 1px + var(--space-3)
    );
  }

  header {
    height: calc(var(--util-h) + var(--nav-height) + 1px + var(--space-12) + var(--space-2) * 2 + 1px);
  }
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--heading-font-family);
  scroll-margin: 40px;
}

/* Each heading level takes its own Design System (handover) type token: the
   mobile size below 1024px, the desktop size from 1024px (see
   scripts/breakpoints.js), plus that level's line height, letter spacing and
   weight. Components that size a heading for its role (page title, carousel
   title, card title) set their own size in their block CSS, as the design's
   templates do. */
h1 {
  font-size: var(--text-h1-mob-size);
  font-weight: var(--text-h1-w);
  line-height: var(--text-h1-lh);
  letter-spacing: var(--text-h1-ls);
}

h2 {
  font-size: var(--text-h2-mob-size);
  font-weight: var(--text-h2-w);
  line-height: var(--text-h2-lh);
  letter-spacing: var(--text-h2-ls);
}

h3 {
  font-size: var(--text-h3-mob-size);
  font-weight: var(--text-h3-w);
  line-height: var(--text-h3-lh);
  letter-spacing: var(--text-h3-ls);
}

h4 {
  font-size: var(--text-h4-mob-size);
  font-weight: var(--text-h4-w);
  line-height: var(--text-h4-lh);
  letter-spacing: var(--text-h4-ls);
}

h5 {
  font-size: var(--text-h5-mob-size);
  font-weight: var(--text-h5-w);
  line-height: var(--text-h5-lh);
  letter-spacing: normal;
}

h6 {
  font-size: var(--text-h6-mob-size);
  font-weight: var(--text-h6-w);
  line-height: var(--text-h6-lh);
  letter-spacing: normal;
}

@media (width >= 1024px) {
  h1 { font-size: var(--text-h1-size); }
  h2 { font-size: var(--text-h2-size); }
  h3 { font-size: var(--text-h3-size); }
  h4 { font-size: var(--text-h4-size); }
  h5 { font-size: var(--text-h5-size); }
  h6 { font-size: var(--text-h6-size); }
}

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

main > div {
  margin: 40px 16px;
}

input,
textarea,
select,
button {
  font: inherit;
}

/* Global keyboard-focus ring (EC-321). One shared, WCAG-2.2-1.4.11-passing ring
   for every interactive element, replacing the browser default (outline: auto,
   which failed 3:1 on the orange band and brand-dark). Blocks may tune the
   offset/radius, but should draw the colour+width from --focus-ring-width /
   --focus-ring-color so the ring stays single-sourced. Only applies to keyboard
   focus (:focus-visible). */
:focus-visible {
  /* Compose from width+colour here (not the pre-baked --focus-ring shorthand)
     so a descendant's --focus-ring-color flip on dark surfaces is honoured —
     a var() inside a custom property declared on :root freezes at :root. */
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);

  /* Slightly rounded corners so the solid ring matches the browser default's
     rounded look it replaced (e.g. header nav menu links have border-radius:0,
     which would otherwise draw a sharp rectangle). Elements with their own
     radius (pills, circles) override this in their own focus rules. Only rounds
     the outline on plain controls; it has no visible effect on elements without
     a border/background. EC-321. */
  border-radius: var(--radius-xs);
}

/* an over-long word or a plain-text URL in authored copy (a source citation, words the
   source ran together) wraps instead of widening the page on a phone (L-272) */
main {
  overflow-wrap: break-word;
}

/* links */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* text for screen readers only, e.g. a link's "(opens in a new tab)"
   (scripts/new-tab-link.js) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* buttons */
p.button-wrapper {
  margin: 12px 0;
}

a.button:any-link,
button.button {
  box-sizing: border-box;
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: var(--space-12);
  margin: 0;
  border: 1px solid var(--color-accessible-orange);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-6);
  font-family: var(--font-family);
  font-size: var(--text-btn-size);
  font-weight: var(--text-btn-w);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

a.button:active,
button.button:active {
  transform: translateY(1px);
}

a.button[aria-disabled="true"],
button.button:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

a.button.primary,
button.button.primary {
  border-color: var(--color-accessible-orange);
  background-color: var(--color-accessible-orange);
  color: var(--color-salt);
}

a.button.primary:hover,
a.button.primary:focus-visible,
button.button.primary:hover,
button.button.primary:focus-visible {
  border-color: var(--color-orange-900);
  background-color: var(--color-orange-900);
  color: var(--color-salt);
}

a.button.primary[aria-disabled="true"],
a.button.primary[aria-disabled="true"]:hover,
a.button.primary[aria-disabled="true"]:focus-visible,
button.button.primary:disabled,
button.button.primary:disabled:hover,
button.button.primary:disabled:focus-visible {
  background-color: var(--light-color);
  border-color: var(--light-color);
  color: var(--dark-color);
}

a.button.secondary,
button.button.secondary {
  border-color: var(--color-accessible-orange);
  background-color: transparent;
  color: var(--color-accessible-orange);
}

a.button.secondary:hover,
a.button.secondary:focus-visible,
button.button.secondary:hover,
button.button.secondary:focus-visible {
  border-color: var(--color-accessible-orange);
  background-color: var(--color-mushroom-100);
  color: var(--color-accessible-orange);
}

a.button.secondary[aria-disabled="true"],
a.button.secondary[aria-disabled="true"]:hover,
a.button.secondary[aria-disabled="true"]:focus-visible,
button.button.secondary:disabled,
button.button.secondary:disabled:hover,
button.button.secondary:disabled:focus-visible {
  background-color: var(--light-color);
  border-color: var(--light-color);
  color: var(--dark-color);
}

/* high-impact call-to-action */
a.button.accent,
button.button.accent {
  border-color: var(--link-color);
  background-color: var(--link-color);
  color: var(--background-color);
}

a.button.accent:hover,
a.button.accent:focus-visible,
button.button.accent:hover,
button.button.accent:focus-visible {
  border-color: var(--link-hover-color);
  background-color: var(--link-hover-color);
}

a.button.accent[aria-disabled="true"],
a.button.accent[aria-disabled="true"]:hover,
a.button.accent[aria-disabled="true"]:focus-visible,
button.button.accent:disabled,
button.button.accent:disabled:hover,
button.button.accent:disabled:focus-visible {
  background-color: var(--light-color);
  border-color: var(--light-color);
  color: var(--dark-color);
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

/* Image fallback (scripts/image-fallback.js): where an image is expected but
   missing, or fails to load — a light grey panel with the cloche icon in the
   middle (design handover/images/backup-image.svg). It fills the image box it
   sits in; a box without a height of its own gets the image's shape (or 4:3). */
.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--image-fallback-ratio, 4 / 3);
  background: var(--color-mushroom-100);
}

.image-fallback::before {
  content: '';
  width: clamp(24px, 27%, 160px);
  max-height: 55%; /* short, wide boxes: the icon fits the height too */
  aspect-ratio: 7 / 6;
  background: url('../icons/fallback-image.svg') center / contain no-repeat;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* ==========================================================================
   MEDIA LOADING PLACEHOLDER (generic)
   A shimmer skeleton shown on any media host while an <img>/<video>/<iframe>
   loads, then faded out. Opt in per element via scripts/media-loader.js, which
   toggles these classes. Reusable by any block — no per-block CSS needed.
   ========================================================================== */
.media-loading-host {
  position: relative;
}

.media-loading-host.is-media-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      100deg,
      var(--color-mushroom-100) 30%,
      var(--color-salt) 50%,
      var(--color-mushroom-100) 70%
    );
  background-size: 200% 100%;
  animation: media-loading-shimmer 1.3s ease-in-out infinite;
  pointer-events: none;
}

/* Fade the media in once it's ready (skeleton removed by the JS). */
.media-loading-host.is-media-loaded > img,
.media-loading-host.is-media-loaded > picture,
.media-loading-host.is-media-loaded > video,
.media-loading-host.is-media-loaded > iframe {
  animation: media-loading-fade-in 0.3s ease both;
}

@keyframes media-loading-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes media-loading-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .media-loading-host.is-media-loading::after {
    animation: none;
  }

  .media-loading-host.is-media-loaded > img,
  .media-loading-host.is-media-loaded > picture,
  .media-loading-host.is-media-loaded > video,
  .media-loading-host.is-media-loaded > iframe {
    animation: none;
  }
}

/* sections */
main > .section {
  margin: 40px 0;
}

/* Inspiration layout spacing (design system template-inspiration): title →
   article search 8px, search → topic grid 32px, instead of the collapsing
   40px section margins. :where() keeps these at the specificity of the rule
   above. See INSPIRATION LAYOUT below. */
main > .section:where(:has(+ .section .article-search)) {
  margin-bottom: 0;
}

main > .section:where(:has(.article-search)) {
  margin: var(--space-2) 0 var(--space-8);
}

main > .section:where(:has(.article-search) + .section) {
  margin-top: 0;
}

/* Article image: the banner strip sits in the content column, right under the
   article header (eyebrow, title, intro, "Last updated"), 24px below it. Both
   margins are set, as they collapse (the larger one would win). :where() keeps
   these at the specificity of the section rule above. */
main > .section:where(:has(> div > .article-header):has(+ .section > div > .article-image)) {
  margin-bottom: var(--space-6);
}

main > .section:where(:has(> div > .article-image)) {
  margin-top: var(--space-6);
}

/* Training course hero: full-bleed and flush under the breadcrumb, as in the
   design's template-training-detail (no gap between the two). */
main > .section:where(:has(> div > .breadcrumb):has(+ .section > div > .training-hero)) {
  margin-bottom: 0;
}

main > .section > div {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

/* Section Metadata `Style: signed-out-only` — content for visitors who are not
   signed in (e.g. the training "Unlock the best inspiration" sign-up panel).
   Keyed on <html data-auth="in"> (scripts/auth.js), so it also hides when the
   session is restored after the page has rendered. */
html[data-auth='in'] main > .section.signed-out-only {
  display: none;
}

main > .section:first-of-type {
  margin-top: 0;
}

/* A page title that opens the page (nothing above it: no breadcrumb, hero or
   spacer block) keeps the 40px it gets as a second section, as padding: the
   margin reset above doesn't touch it. The bottom stays a margin, so it still
   collapses with the next section's (40px, not 80px). */
main > .section.page-title-container:first-of-type {
  padding-top: 40px;
}

@media (width >= 1024px) {
  main > .section > div {
    padding: 0 32px;
  }
}

/* ==========================================================================
   FULL-BLEED BLOCKS
   Blocks designed to span the whole viewport (hero, banner carousel) break out
   of the centered 1200px content container. Their section wrapper and inner div
   go edge-to-edge with no max-width or padding.
   ========================================================================== */
main > .section:has(> div > .ufs-hero),
main > .section:has(> div > .hero),
main > .section:has(> div > .banner-carousel),
main > .section:has(> div > .hero-banner),
main > .section:has(> div > .training-hero),
main > .section:has(> div > .flex-carousel),
main > .section:has(> div > .announcement-banner),
main > .section:has(> div > .product-detail),
main > .section:has(> div > .recipe-detail),
main > .section:has(> div > .recipe-hero),
main > .section:has(> div > .newsletter) {
  margin: 0;
}

main > .section > div:has(> .ufs-hero),
main > .section > div:has(> .hero),
main > .section > div:has(> .banner-carousel),
main > .section > div:has(> .hero-banner),
main > .section > div:has(> .training-hero),
main > .section > div:has(> .flex-carousel),
main > .section > div:has(> .announcement-banner),
main > .section > div:has(> .product-detail),
main > .section > div:has(> .recipe-detail),
main > .section > div:has(> .recipe-hero),
main > .section > div:has(> .newsletter) {
  max-width: none;
  padding: 0;
}

/* ==========================================================================
   WIDE CONTENT SECTIONS
   Content cards and Recipes span nearly the full viewport (edge padding only),
   matching the design — not capped at the 1200px reading width.
   ========================================================================== */
main > .section:has(.content-cards) > div,
main > .section:has(.inspiration) > div,
main > .section:has(.product-list) > div,
main > .section:has(.recipe-list) > div {
  max-width: none;
  padding: 0 var(--space-6);
}

@media (width >= 1024px) {
  main > .section:has(.content-cards) > div,
  main > .section:has(.inspiration) > div,
  main > .section:has(.product-list) > div,
  main > .section:has(.recipe-list) > div {
    padding: 0 var(--space-20);
  }
}

/* ==========================================================================
   INSPIRATION LAYOUT
   The design system's inspiration template (handover/template-inspiration):
   the article search bar and the topic grid share a 1280px content width with
   80px gutters on desktop; on mobile the search bar runs full-bleed and the
   grid keeps 16px gutters. Breakpoint: scripts/breakpoints.js (1024px).
   (Ordered by specificity for stylelint's no-descending-specificity.)
   ========================================================================== */
main > .section:has(.article-search) > div {
  max-width: none;
  padding: 0;
}

@media (width >= 1024px) {
  main > .section:has(.article-search) > div {
    padding: 0 var(--space-20);
  }
}

main > .section:has(> div > .tiles.grid) > div {
  max-width: none;
  padding: 0 var(--space-4);
}

@media (width >= 1024px) {
  main > .section:has(> div > .tiles.grid) > div {
    padding: 0 var(--space-20);
  }
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: 0;
  padding: 40px 0;
}

/* ==========================================================================
   UFS TYPOGRAPHY UTILITY CLASSES
   ========================================================================== */
.text-display { font-size: var(--text-display-size); line-height: var(--text-display-lh); letter-spacing: var(--text-display-ls); font-weight: var(--text-display-w); }
.text-display--mobile { font-size: var(--text-display-mob-size); }
.text-h1 { font-size: var(--text-h1-size); line-height: var(--text-h1-lh); letter-spacing: var(--text-h1-ls); font-weight: var(--text-h1-w); }
.text-h1--mobile { font-size: var(--text-h1-mob-size); }
.text-h2 { font-size: var(--text-h2-size); line-height: var(--text-h2-lh); letter-spacing: var(--text-h2-ls); font-weight: var(--text-h2-w); }
.text-h2--mobile { font-size: var(--text-h2-mob-size); }
.text-h3 { font-size: var(--text-h3-size); line-height: var(--text-h3-lh); letter-spacing: var(--text-h3-ls); font-weight: var(--text-h3-w); }
.text-h3--mobile { font-size: var(--text-h3-mob-size); }
.text-h4 { font-size: var(--text-h4-size); line-height: var(--text-h4-lh); font-weight: var(--text-h4-w); }
.text-h4--mobile { font-size: var(--text-h4-mob-size); }
.text-h5 { font-size: var(--text-h5-size); line-height: var(--text-h5-lh); font-weight: var(--text-h5-w); }
.text-h5--mobile { font-size: var(--text-h5-mob-size); }
.text-h6 { font-size: var(--text-h6-size); line-height: var(--text-h6-lh); font-weight: var(--text-h6-w); }
.text-h6--mobile { font-size: var(--text-h6-mob-size); }
.text-body-lg { font-size: var(--text-body-lg-size); line-height: var(--text-body-lg-lh); font-weight: 400; }
.text-body { font-size: var(--text-body-size); line-height: var(--text-body-lh); font-weight: var(--text-body-w); }
.text-body-sm { font-size: var(--text-body-sm-size); line-height: var(--text-body-sm-lh); font-weight: 400; }
.text-body-xs { font-size: var(--text-body-xs-size); line-height: var(--text-body-xs-lh); font-weight: 400; }
.text-price-xl { font-size: var(--text-price-xl-size); line-height: var(--text-price-xl-lh); letter-spacing: var(--text-price-xl-ls); font-weight: var(--text-price-xl-w); }
.text-price-xl--mobile { font-size: var(--text-price-xl-mob-size); }
.text-price { font-size: var(--text-price-size); line-height: var(--text-price-lh); letter-spacing: var(--text-price-ls); font-weight: var(--text-price-w); }
.text-price--mobile { font-size: var(--text-price-mob-size); }
.text-overline { font-size: var(--text-overline-size); line-height: var(--text-overline-lh); font-weight: var(--text-overline-w); letter-spacing: var(--text-overline-ls); text-transform: uppercase; }
.text-badge { font-size: var(--text-badge-size); line-height: var(--text-badge-lh); font-weight: var(--text-badge-w); letter-spacing: var(--text-badge-ls); text-transform: uppercase; }
.text-fine-print { font-size: var(--text-fine-print-size); line-height: var(--text-fine-print-lh); font-weight: var(--text-fine-print-w); }
.text-ch-h1 { font-family: var(--font-family-script); font-size: var(--ch-h1-size); line-height: var(--ch-h1-lh); letter-spacing: var(--ch-h1-ls); font-weight: 400; color: var(--color-brand-primary); }
.text-ch-h1--mobile { font-size: var(--ch-h1-mob-size); }
.text-ch-h2 { font-family: var(--font-family-script); font-size: var(--ch-h2-size); line-height: var(--ch-h2-lh); letter-spacing: var(--ch-h2-ls); font-weight: 400; color: var(--color-brand-primary); }
.text-ch-h2--mobile { font-size: var(--ch-h2-mob-size); }
.text-ch-h3 { font-family: var(--font-family-script); font-size: var(--ch-h3-size); line-height: var(--ch-h3-lh); letter-spacing: var(--ch-h3-ls); font-weight: 400; color: var(--color-brand-primary); }
.text-ch-h3--mobile { font-size: var(--ch-h3-mob-size); }
.text-ch-h4 { font-family: var(--font-family-script); font-size: var(--ch-h4-size); line-height: var(--ch-h4-lh); letter-spacing: var(--ch-h4-ls); font-weight: 400; color: var(--color-brand-primary); }
.text-ch-h4--mobile { font-size: var(--ch-h4-mob-size); }
.text-ch-h5 { font-family: var(--font-family-script); font-size: var(--ch-h5-size); line-height: var(--ch-h5-lh); font-weight: 400; color: var(--color-brand-primary); }
.text-ch-h5--mobile { font-size: var(--ch-h5-mob-size); }

/* ==========================================================================
   UFS DESIGN SYSTEM BUTTON HELPERS
   Standalone .ufs-btn classes for block markup. The a.button / button.button
   rules above already render the DS look for EDS-buttonised links.
   ========================================================================== */
.ufs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-sizing: border-box;
  height: var(--space-12);
  margin: 0;
  padding: 0 var(--space-6);
  border: 1px solid var(--color-accessible-orange);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: var(--text-btn-size);
  font-weight: var(--text-btn-w);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

/* When a `.ufs-btn` is an <a>, the global `a:any-link { color: var(--link-color) }`
   rule (element+pseudo-class) out-specifies the plain `.ufs-btn--*` colour
   classes, so the label took the link colour (invisible orange-on-orange until
   :hover). Re-assert the button's colour at anchor specificity for every
   variant so link buttons match button buttons. */
a.ufs-btn:any-link { color: inherit; }

a.ufs-btn--primary:any-link,
a.ufs-btn--primary:hover { color: var(--color-salt); }

a.ufs-btn--secondary:any-link,
a.ufs-btn--secondary:hover { color: var(--color-orange-800); }
a.ufs-btn--ghost:any-link { color: var(--color-accessible-orange); }

/* …and don't let the global `a:hover` underline a button. */
a.ufs-btn:hover { text-decoration: none; }

.ufs-btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

.ufs-btn:active { transform: translateY(1px); }
.ufs-btn--sm { height: var(--space-10); padding: 0 var(--space-4); font-size: var(--text-btn-sm-size); }
.ufs-btn--lg { height: var(--space-16); padding: 0 var(--space-8); font-size: var(--text-btn-lg-size); font-weight: var(--text-btn-lg-w); }

.ufs-btn--primary {
  background: var(--color-accessible-orange);
  border-color: var(--color-accessible-orange);
  color: var(--color-salt);
}

.ufs-btn--primary:hover {
  background: var(--color-orange-900);
  border-color: var(--color-orange-900);
  color: var(--color-salt);
}

.ufs-btn--secondary {
  background: transparent;

  /* orange-800 (#b23e00) clears WCAG AA 4.5:1 on both white (5.87:1) and the
     mushroom-100 hover fill (5.31:1); accessible-orange #d14900 is only 4.08:1
     on mushroom-100 and fails (axe color-contrast). */
  border-color: var(--color-orange-800);
  color: var(--color-orange-800);
}

.ufs-btn--secondary:hover {
  background: var(--color-mushroom-100);
  color: var(--color-orange-800);
}

.ufs-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-accessible-orange);
}

.ufs-btn--ghost:hover { background: var(--color-mushroom-100); }

/* On dark backgrounds, secondary/ghost buttons use white (theme rules below
   handle a.button.secondary for dark/glass sections) */
.btn-on-dark .ufs-btn--secondary {
  background: transparent;
  border-color: var(--color-salt);
  color: var(--color-salt);
}

.btn-on-dark .ufs-btn--secondary:hover {
  background: color-mix(in srgb, var(--color-salt) 10%, transparent);
}

.ufs-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   THEME SYSTEM — light / dark / glass
   Each theme remaps the semantic --theme-* tokens. Applied at:
   - page level: body.dark / body.glass (from `theme` page-metadata)
   - section level: .section.dark / .section.glass (from Section Metadata Style)
   Section-level wins over page-level thanks to source order + specificity.
   ========================================================================== */

/* Light (explicit) — same as :root defaults, lets a section reset to light
   inside a dark page. */
body.light,
main .section.light {
  --theme-bg: var(--color-salt);
  --theme-bg-alt: var(--color-mushroom-100);
  --theme-surface: var(--color-salt);
  --theme-surface-2: var(--color-mushroom-100);
  --theme-text: var(--color-brand-dark);
  --theme-heading: var(--color-brand-dark);
  --theme-muted: var(--color-mushroom-900);
  --theme-eyebrow: var(--color-accessible-orange);
  --theme-border: var(--color-mushroom-300);
  --theme-shadow: var(--shadow-xs);
  --theme-backdrop: none;
}

/* Dark */
body.dark,
main .section.dark {
  --theme-bg: var(--color-brand-dark);
  --theme-bg-alt: var(--color-squid-900);
  --theme-surface: var(--color-squid-700);
  --theme-surface-2: var(--color-squid-900);
  --theme-text: rgb(255 255 255 / 82%);
  --theme-heading: var(--color-salt);
  --theme-muted: var(--color-squid-100);
  --theme-eyebrow: var(--color-brand-primary);
  --theme-border: rgb(255 255 255 / 12%);
  --theme-shadow: 0 8px 24px rgb(0 0 0 / 40%);
  --theme-backdrop: none;
}

/* Glass — translucent frosted surfaces over a dark base. */
body.glass,
main .section.glass {
  --theme-bg: linear-gradient(160deg, var(--color-squid-900) 0%, var(--color-brand-dark) 100%);
  --theme-bg-alt: rgb(255 255 255 / 4%);
  --theme-surface: rgb(255 255 255 / 8%);
  --theme-surface-2: rgb(255 255 255 / 12%);
  --theme-text: rgb(255 255 255 / 82%);
  --theme-heading: var(--color-salt);
  --theme-muted: rgb(255 255 255 / 60%);
  --theme-eyebrow: var(--color-brand-primary);
  --theme-border: rgb(255 255 255 / 18%);
  --theme-shadow: 0 8px 32px rgb(0 0 0 / 30%);
  --theme-backdrop: saturate(160%) blur(12px);
}

/* Apply themed surface + text at the page level */
body.dark,
body.glass {
  background: var(--theme-bg);
  color: var(--theme-text);
}

body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5, body.dark h6,
body.glass h1, body.glass h2, body.glass h3, body.glass h4, body.glass h5, body.glass h6 {
  color: var(--theme-heading);
}

/* When the whole page is themed, content sections inherit the theme text colour
   (they keep transparent backgrounds so the body theme background shows through)
   and a section can still opt back to light via its own .light class. */
body.dark main > .section:not(.light),
body.glass main > .section:not(.light) {
  color: var(--theme-text);
}

/* Full-bleed themed sections (section-level override) */
main .section.dark,
main .section.glass,
main .section.light.section--filled {
  background: var(--theme-bg);
  color: var(--theme-text);
  margin: 0;
  padding: var(--space-16) 0;
}

main .section.dark h1, main .section.dark h2, main .section.dark h3,
main .section.dark h4, main .section.dark h5, main .section.dark h6,
main .section.glass h1, main .section.glass h2, main .section.glass h3,
main .section.glass h4, main .section.glass h5, main .section.glass h6,
body.dark main > .section:not(.light) h1, body.dark main > .section:not(.light) h2,
body.dark main > .section:not(.light) h3, body.dark main > .section:not(.light) h4,
body.dark main > .section:not(.light) h5, body.dark main > .section:not(.light) h6,
body.glass main > .section:not(.light) h1, body.glass main > .section:not(.light) h2,
body.glass main > .section:not(.light) h3, body.glass main > .section:not(.light) h4,
body.glass main > .section:not(.light) h5, body.glass main > .section:not(.light) h6 {
  color: var(--theme-heading);
}

/* Buttons on themed (dark/glass) surfaces: secondary turns white.
   Section-level selectors first (lower specificity), then page-level. */
main .section.dark a.button.secondary,
main .section.glass a.button.secondary,
body.dark .section:not(.light) a.button.secondary,
body.glass .section:not(.light) a.button.secondary {
  background: transparent;
  border-color: var(--color-salt);
  color: var(--color-salt);
}

main .section.dark a.button.secondary:hover,
main .section.glass a.button.secondary:hover,
body.dark .section:not(.light) a.button.secondary:hover,
body.glass .section:not(.light) a.button.secondary:hover {
  background: color-mix(in srgb, var(--color-salt) 10%, transparent);
  color: var(--color-salt);
}

/* "Change country" links (authored `#change-country`) only where the site asks
   for a country (scripts/country-selector.js, EC-1501) */
body:not(.has-country-selector) a[href$="#change-country"],
body:not(.has-country-selector) li:has(> a[href$="#change-country"]) {
  display: none;
}

/* "Cookie Settings" links (authored `#cookie-settings`, e.g. the footer's Legal
   column) only where OneTrust runs: they reopen its preference centre
   (scripts/delayed.js, EC-2121) */
body:not(.has-cookie-settings) a[href$="#cookie-settings"],
body:not(.has-cookie-settings) li:has(> a[href$="#cookie-settings"]) {
  display: none;
}

/* "Newsletter sign-up" links (authored `#newsletter-signup`, the footer's
   Company column) only where a newsletter band can open the signup panel —
   not on `newsletter: hidden` pages (blocks/newsletter, EC-1583) */
body:not(.has-newsletter-signup) a[href$="#newsletter-signup"],
body:not(.has-newsletter-signup) li:has(> a[href$="#newsletter-signup"]) {
  display: none;
}

/* Legal text (EC-1583, Legal terms): a section with Style `legal` keeps its
   heading outline (H2 sections, H3 sub-sections, for assistive tech) but sets
   them at the small heading sizes (h5 / h6), as legal copy is read, not
   scanned; the H2 in the links' orange. Breakpoint as scripts/breakpoints.js. */
/* stylelint-disable-next-line no-descending-specificity */
main .section.legal h2 {
  /* the links' orange (design review); 6:1 on the white page, AA at any size */
  color: var(--link-color);
  font-size: var(--text-h5-mob-size);
  font-weight: var(--text-h5-w);
  line-height: var(--text-h5-lh);
  letter-spacing: normal;
}

/* stylelint-disable-next-line no-descending-specificity */
main .section.legal h3 {
  font-size: var(--text-h6-mob-size);
  font-weight: var(--text-h6-w);
  line-height: var(--text-h6-lh);
  letter-spacing: normal;
}

@media (width >= 1024px) {
  main .section.legal h2 { font-size: var(--text-h5-size); }
  main .section.legal h3 { font-size: var(--text-h6-size); }
}
