/*
 * Every statement here must be an @import: postcss-import silently drops any that
 * follows another statement, which is why Tailwind is imported as `tailwindcss/base`
 * rather than via the `@tailwind` directives. Order is the cascade.
 *//* Self-hosted Cairo + Montserrat, no external requests. Both are variable fonts:
   one file per family and subset covers the whole wght axis. */

@font-face {
    font-family: Cairo;
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url(/build/website/fonts/cairo-arabic.a635b9b7.woff2) format('woff2');
    unicode-range:
        U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
        U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB,
        U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22,
        U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49,
        U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F,
        U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E,
        U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
    font-family: Cairo;
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url(/build/website/fonts/cairo-latin.66293349.woff2) format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Cairo;
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url(/build/website/fonts/cairo-latin-ext.83bf5e15.woff2) format('woff2');
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(/build/website/fonts/montserrat-latin.73f48d74.woff2) format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(/build/website/fonts/montserrat-latin-ext.3459b3d9.woff2) format('woff2');
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

/* Design tokens.
   Load before custom.css. Dark semantics are the base; .light-mode, on <html> by default, overrides them. */

/* ---------- 1. PRIMITIVE ---------- */
:root {
    /* Color */
    --primitive-navy-950: #080d14;
    --primitive-navy-900: #0f1b2d;
    --primitive-navy-800: #162237;
    --primitive-navy-700: #1b3a6b;
    --primitive-blue-700: #1c4696;
    --primitive-teal-500: #24c8d8;
    --primitive-teal-400: #67d0da;
    --primitive-teal-700: #0b7480;
    --primitive-teal-neon: #00e5ff;
    --primitive-mist-100: #e8f4f8;
    --primitive-mist-400: #8ba3b8;
    --primitive-offwhite-50: #f4f8fb;
    --primitive-slate-600: #4b6a8a;
    --primitive-white: #fff;
    --primitive-red-400: #f87171;
    --primitive-red-500: #ef4444;
    --primitive-red-700: #b91c1c;
    --primitive-amber-500: #f59e0b;
    --primitive-amber-700: #b45309;
    --primitive-whatsapp: #25d366;

    /* Spacing — 4px rhythm */
    --space-0: 0;
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem; /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.25rem; /* 20px */
    --space-6: 1.5rem; /* 24px */
    --space-7: 1.75rem; /* 28px */
    --space-8: 2rem; /* 32px */
    --space-9: 2.25rem; /* 36px */
    --space-10: 2.5rem; /* 40px */
    --space-11: 2.75rem; /* 44px */
    --space-12: 3rem; /* 48px */
    --space-14: 3.5rem; /* 56px */
    --space-15: 3.75rem; /* 60px */
    --space-16: 4rem; /* 64px */
    --space-20: 5rem; /* 80px  — nav height */
    --space-25: 6.25rem; /* 100px */
    --space-32: 8rem; /* 128px */
    --space-50: 12.5rem; /* 200px */

    /* Type */
    --font-size-xs: 0.75rem;
    --font-size-label: 0.8rem; /* badges, pills, small meta */
    --font-size-sm: 0.85rem;
    --font-size-ui: 0.9rem; /* nav links, card links, compact buttons */
    --font-size-base: 0.95rem;
    --font-size-body-compact: 1rem; /* card, step and footer copy */
    --font-size-body: 1.0625rem; /* prose */
    --font-size-title-sm: 1.125rem;
    --font-size-input: 1rem; /* 16px, so phones don't zoom into a field */
    --font-size-md: 1.05rem;
    --font-size-lead: 1.2rem; /* section subtitles, CTA and hero text */
    --font-size-lg: 1.15rem;
    --font-size-xl: 1.4rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.8rem;
    --font-size-display-section: clamp(1.8rem, 3.5vw, 2.8rem);
    --font-size-display-hero: clamp(3rem, 8vw, 5rem);
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* Editor text sizes, relative to the surrounding text */
    --ts-s: 0.875em;
    --ts-m: 1em;
    --ts-l: 1.25em;
    --ts-xl: 1.5em;
    --ts-xxl: 2em;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-2xl: 16px;
    --radius-3xl: 20px;
    --radius-circle: 50%;
    --radius-full: 9999px;

    /* Shadow */
    --shadow-elevation-2: 0 8px 30px rgb(36 200 216 / 10%);
    --shadow-elevation-3: 0 20px 60px rgb(0 0 0 / 30%);

    /* Negative spread keeps the shadow under the frame, off the caption and the next section. */
    --shadow-elevation-4: 0 16px 40px -16px rgb(0 0 0 / 45%);
    --shadow-glow-sm: 0 4px 20px rgb(36 200 216 / 40%);
    --shadow-glow-md: 0 8px 32px rgb(36 200 216 / 35%);
    --shadow-overlay-dropdown: 0 16px 60px rgb(0 0 0 / 30%);

    /* Motion */
    --duration-fast: 200ms;
    --duration-moderate: 300ms;
    --duration-theme: 400ms;
    --duration-reveal-side: 750ms;
    --duration-ambient: 3000ms;
    --duration-ambient-slow: 6000ms;
    --duration-cinematic: 8000ms;
    --ease-standard: ease;
    --ease-standard-io: ease-in-out;
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Z-index */
    --z-raised: 1;
    --z-content: 3;
    --z-floating-action: 900;
    --z-nav: 1000;
    --z-modal: 3000;

    /* Breakpoints (reference only — CSS can't consume vars in @media) */
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-container: 1200px;
}

/* ---------- 2. SEMANTIC (dark — base layer) ---------- */
:root {
    /* Existing custom.css names — unchanged, now sourced from primitives */
    --color-navy: var(--primitive-navy-950);
    --color-blue: var(--primitive-blue-700);
    --color-teal: var(--primitive-teal-500);
    --color-teal-light: var(--primitive-teal-400);
    --color-teal-neon: var(--primitive-teal-neon);
    --bg-primary: var(--primitive-navy-950);
    --bg-surface: var(--primitive-navy-900);
    --bg-card: var(--primitive-navy-800);
    --text-primary: var(--primitive-mist-100);
    --text-muted: var(--primitive-mist-400);
    --border-color: rgb(36 200 216 / 15%);
    --field-border: color-mix(in srgb, var(--text-muted) 70%, transparent);
    --nav-height: var(--space-20);
    --article-padding-end: var(--space-25);
    --font-arabic: 'Cairo', sans-serif;
    --font-latin: 'Montserrat', 'Cairo', sans-serif;
    --font-body: var(--font-arabic);
    --color-accent: var(--color-teal);
    --color-accent-hover: var(--color-teal-light);
    --color-accent-text: var(--color-accent);
    --color-accent-foreground: var(
        --primitive-navy-950
    ); /* White on teal is 2.0:1; navy is 9.6:1. */

    --color-danger: var(--primitive-red-500);
    --color-danger-text: var(--primitive-red-400);
    --color-emergency: var(--primitive-red-700); /* White on it is 6.5:1 in both themes. */
    --color-rating: var(--primitive-amber-500);
    --color-whatsapp: var(--primitive-whatsapp);
    --color-whatsapp-foreground: var(--primitive-white);
    --color-logo-plate: var(--primitive-offwhite-50); /* Behind uploaded logos in the dark theme. */
    --radius-control: var(--radius-md); /* buttons, nav CTA */
    --radius-icon-well: var(--radius-lg);
    --radius-chip: var(--radius-xl);
    --radius-surface: var(--radius-2xl); /* cards, badges, testimonials */
    --radius-overlay: var(--radius-3xl); /* modal, before/after wrapper */
    --radius-pill: var(--radius-full);
    --shadow-raised: var(--shadow-elevation-2);
    --shadow-hover-dark: var(--shadow-elevation-3);
    --shadow-media: var(--shadow-elevation-4);
    --shadow-dropdown: var(--shadow-overlay-dropdown);
    --motion-interaction: var(--duration-fast) var(--ease-standard);
    --motion-lift: var(--duration-moderate) var(--ease-standard);
    --motion-theme-swap: var(--duration-theme) var(--ease-standard);
}

/* ---------- 2b. PALETTE — the colours editors pick from ---------- */
:root {
    --palette-text: var(--text-primary);
    --palette-muted-text: var(--text-muted);
    --palette-accent: var(--color-teal);
    --palette-background: var(--bg-primary);
    --palette-fairuzi: var(--color-teal);
    --palette-darkblue: var(--color-blue);
    --palette-white: var(--primitive-white);
    --palette-navy: var(--color-navy);
}

/* Montserrat Black sets wider than Cairo Black, so the same words need a smaller display size. */
:root[lang='en'] {
    --font-body: var(--font-latin);
    --font-size-display-hero: clamp(2.4rem, 6vw, 4rem);
}

@media (max-width: 768px) {
    :root {
        --article-padding-end: var(--space-16);
    }
}

/* ---------- 3. SEMANTIC — light mode override ---------- */
.light-mode {
    --bg-primary: var(--primitive-offwhite-50);
    --bg-surface: var(--primitive-white);
    --bg-card: var(--primitive-white);
    --text-primary: var(--color-blue);
    --text-muted: var(--primitive-slate-600);
    --border-color: rgb(28 70 150 / 12%);
    --field-border: var(--text-muted);
    --color-danger-text: var(--primitive-red-700);

    /* Teal text on the light surfaces is 1.9:1; fills and accents keep the brand teal. */
    --color-accent-text: var(--primitive-teal-700);
    --color-rating: var(--primitive-amber-700);
    --palette-accent: var(--color-blue);
}

/* ---------- 4. COMPONENT ---------- */
:root {
    --btn-border-width: 2px;
    --btn-min-size: var(--space-11);
    --btn-lift: -2px;
    --btn-blur: 10px;
    --btn-scale-1-padding-block: 10px;
    --btn-scale-1-padding-inline: 22px;
    --btn-scale-1-font-size: var(--font-size-ui);
    --btn-scale-2-padding-block: var(--space-4);
    --btn-scale-2-padding-inline: 34px;
    --btn-scale-2-font-size: var(--font-size-md);
    --btn-scale-3-padding-block: var(--space-5);
    --btn-scale-3-padding-inline: 42px;
    --btn-scale-3-font-size: var(--font-size-lg);
    --btn-regular-padding-block: var(--btn-scale-2-padding-block);
    --btn-regular-padding-inline: var(--btn-scale-2-padding-inline);
    --btn-regular-font-size: var(--btn-scale-2-font-size);
    --btn-large-padding-block: var(--btn-scale-3-padding-block);
    --btn-large-padding-inline: var(--btn-scale-3-padding-inline);
    --btn-large-font-size: var(--btn-scale-3-font-size);
    --focus-ring-inner: var(--primitive-white);
    --focus-ring-outer: var(--primitive-navy-950);
    --nav-bg: rgb(8 13 20 / 88%);
    --nav-blur: 20px;
    --card-bg: var(--bg-card);
    --card-border: 1px solid var(--border-color);
    --card-radius: var(--radius-surface);
    --card-padding: var(--space-6);
    --card-lift-hover: -6px;
    --badge-pill-bg: rgb(36 200 216 / 10%);
    --badge-pill-border: 1px solid rgb(36 200 216 / 20%);
    --badge-pill-fg: var(--color-accent-text);
    --badge-pill-radius: var(--radius-pill);
    --badge-pill-padding: 6px 16px;
    --c-accent: var(--color-accent);
    --c-accent-text: var(--color-accent-text);
    --c-accent-hover: var(--color-accent-hover);
    --c-accent-foreground: var(--color-accent-foreground);
    --c-accent-line: var(--border-color);
}
/* Over a photo the overlay is dark in both themes, so theme-relative colours keep their dark values. */
.light-mode .over-photo {
    --text-primary: var(--primitive-mist-100);
    --text-muted: var(--primitive-mist-400);
    --color-accent-text: var(--color-accent);
    --c-accent-text: var(--c-accent);
    --palette-text: var(--primitive-mist-100);
    --palette-muted-text: var(--primitive-mist-400);
    --palette-accent: var(--palette-fairuzi);
    --palette-background: var(--primitive-navy-950);
}
*, ::before, ::after {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:  ;
    --tw-pan-y:  ;
    --tw-pinch-zoom:  ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:  ;
    --tw-gradient-via-position:  ;
    --tw-gradient-to-position:  ;
    --tw-ordinal:  ;
    --tw-slashed-zero:  ;
    --tw-numeric-figure:  ;
    --tw-numeric-spacing:  ;
    --tw-numeric-fraction:  ;
    --tw-ring-inset:  ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:  ;
    --tw-brightness:  ;
    --tw-contrast:  ;
    --tw-grayscale:  ;
    --tw-hue-rotate:  ;
    --tw-invert:  ;
    --tw-saturate:  ;
    --tw-sepia:  ;
    --tw-drop-shadow:  ;
    --tw-backdrop-blur:  ;
    --tw-backdrop-brightness:  ;
    --tw-backdrop-contrast:  ;
    --tw-backdrop-grayscale:  ;
    --tw-backdrop-hue-rotate:  ;
    --tw-backdrop-invert:  ;
    --tw-backdrop-opacity:  ;
    --tw-backdrop-saturate:  ;
    --tw-backdrop-sepia:  ;
    --tw-contain-size:  ;
    --tw-contain-layout:  ;
    --tw-contain-paint:  ;
    --tw-contain-style:  ;
}
::backdrop {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:  ;
    --tw-pan-y:  ;
    --tw-pinch-zoom:  ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:  ;
    --tw-gradient-via-position:  ;
    --tw-gradient-to-position:  ;
    --tw-ordinal:  ;
    --tw-slashed-zero:  ;
    --tw-numeric-figure:  ;
    --tw-numeric-spacing:  ;
    --tw-numeric-fraction:  ;
    --tw-ring-inset:  ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:  ;
    --tw-brightness:  ;
    --tw-contrast:  ;
    --tw-grayscale:  ;
    --tw-hue-rotate:  ;
    --tw-invert:  ;
    --tw-saturate:  ;
    --tw-sepia:  ;
    --tw-drop-shadow:  ;
    --tw-backdrop-blur:  ;
    --tw-backdrop-brightness:  ;
    --tw-backdrop-contrast:  ;
    --tw-backdrop-grayscale:  ;
    --tw-backdrop-hue-rotate:  ;
    --tw-backdrop-invert:  ;
    --tw-backdrop-opacity:  ;
    --tw-backdrop-saturate:  ;
    --tw-backdrop-sepia:  ;
    --tw-contain-size:  ;
    --tw-contain-layout:  ;
    --tw-contain-paint:  ;
    --tw-contain-style:  ;
}
/*
 ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
 *//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

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

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
/* Base, navbar and footer rules. RTL-first, dark/light via .light-mode on <html>. */

/* Tokens live in tokens.css. A :root block here loads later and silently wins. */

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition:
        background-color var(--motion-theme-swap),
        color var(--motion-theme-swap);
    overflow-x: hidden;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Pulls a word down beside a lone last word; browsers without it keep their default wrap. */
:is(p, li, blockquote, figcaption) {
    text-wrap: pretty;
}

/* Montserrat for numbers and Latin text on Arabic pages */
.font-latin,
.stat-number,
.en-text {
    font-family: var(--font-latin);
}

/* ---------- Skip link ---------- */
.skip-link {
    position: fixed;
    inset-block-start: var(--space-3);
    inset-inline-start: var(--space-3);
    z-index: var(--z-modal);
}

.skip-link:not(:focus) {
    inline-size: 1px;
    block-size: 1px;
    min-block-size: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-teal);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal-light);
}

/* ---------- Selection ---------- */
::-moz-selection {
    background: color-mix(in srgb, var(--color-teal) 30%, transparent);
    color: var(--color-teal-neon);
}
::selection {
    background: color-mix(in srgb, var(--color-teal) 30%, transparent);
    color: var(--color-teal-neon);
}

/* ---------- Navbar ---------- */
#site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--nav-height);
    z-index: var(--z-nav);
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(180%);
    transition:
        background-color 0.4s ease,
        backdrop-filter 0.4s ease,
        box-shadow 0.4s ease,
        top 0.3s ease;
}

/* The nav is fixed, so nothing else reserves its space. */
main {
    padding-top: var(--nav-height);
}

/* Opaque: any translucent light fill over a photo scrolling beneath drops the muted links below 4.5:1. */
.light-mode #site-nav {
    background: var(--bg-primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--color-blue) 6%, transparent);
}

#site-nav.scrolled {
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--color-teal) 15%, transparent),
        0 4px 32px rgb(0 0 0 / 40%);
}

.light-mode #site-nav.scrolled {
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--color-blue) 10%, transparent),
        0 4px 32px rgb(0 0 0 / 8%);
}

.nav-link {
    position: relative;
    font-size: var(--font-size-ui);
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--color-teal);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.is-current {
    color: var(--color-accent-text);
}

.nav-link:hover::after,
.nav-link.is-current::after {
    width: 100%;
}

.nav-logo {
    height: 65px;
    width: auto;
    max-width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

/* ---------- Page Title ---------- */
.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    padding: 48px 0 8px;
}

/* ---------- Footer ---------- */
footer {
    background: var(--color-navy);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.light-mode footer {
    background: var(--primitive-navy-700);
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: var(--font-size-body-compact);
    color: rgb(255 255 255 / 50%);
    line-height: 1.7;
    max-width: 260px;
}

.footer-heading {
    font-size: var(--font-size-ui);
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 20px;
}

:root[lang='en'] .footer-heading {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Theme and Language Toggles ---------- */
.theme-toggle,
.language-toggle a {
    width: var(--btn-min-size);
    height: var(--btn-min-size);
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition:
        background-color var(--motion-interaction),
        border-color var(--motion-interaction),
        color var(--motion-interaction);
    flex-shrink: 0;
}

.theme-toggle:hover,
.language-toggle a:hover {
    border-color: var(--color-teal);
    color: var(--color-accent-text);
    background: color-mix(in srgb, var(--color-teal) 8%, transparent);
}

/* ---------- Dark/Light Mode Transitions ---------- */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
    transition:
        background-color var(--motion-theme-swap),
        color var(--motion-theme-swap),
        border-color var(--motion-theme-swap),
        box-shadow var(--motion-theme-swap) !important;
}

/* ---------- Utility ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-accent-text);
}

.breadcrumb-sep {
    opacity: 0.5;
}

/* ---------- Country Flag Badge ---------- */
.country-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: color-mix(in srgb, var(--c-accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--c-accent) 15%, transparent);
    border-radius: var(--radius-pill);
    font-size: var(--font-size-label);
    color: var(--text-muted);
}
.section {
    position: relative;
}

.section-header {
    text-align: var(--c-align, center);
    margin-block-end: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--badge-pill-padding);
    background: color-mix(in srgb, var(--c-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--c-accent) 20%, transparent);
    border-radius: var(--badge-pill-radius);
    font-size: var(--font-size-label);
    color: var(--c-accent-text);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-header-text {
    --editor-text-gap: 14px;
}

.section-header-text :is(h2, h3) {
    font-size: var(--font-size-display-section);
    color: var(--text-primary);
    line-height: 1.25;
}

.section-header-text :is(p, ul, ol) {
    font-size: var(--font-size-lead);
    color: var(--text-muted);
    max-width: 580px;
    margin-inline: var(--c-align-before, auto) var(--c-align-after, auto);
    line-height: 1.8;
}

/* Under the title, only when no badge already marks the section: one accent mark per header. */
.section-header:not(:has(> .section-badge)) .section-header-text > :is(h2, h3):first-child::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to var(--divider-fade, right), var(--c-accent), transparent);
    border-radius: 2px;
    margin-block-start: var(--space-4);
    margin-inline: var(--c-align-before, auto) var(--c-align-after, auto);
}

[dir='rtl'] .section-header-text {
    --divider-fade: left;
}

/* Title beside: the header aligns to the start at every width, and holds the start column from 1024px. */
.section--beside .section-header {
    --c-align: start;
    --c-align-flex: flex-start;
    --c-align-before: 0;
    --c-align-after: auto;
}

@media (min-width: 1024px) {
    .section--beside > .container:has(> .section-header) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: var(--space-16);
        align-items: start;
    }

    .section--beside .section-header {
        position: sticky;
        top: calc(var(--nav-height, 80px) + var(--space-6));
        margin-block-end: 0;
    }
}

/* Ends on teal-700: white text on teal-500 is about 2:1. */
.cta-banner {
    background: var(
        --c-bg,
        linear-gradient(135deg, var(--color-blue) 0%, var(--primitive-teal-700) 100%)
    );
    position: relative;
    overflow: hidden;
    padding-block: var(--space-25);
}

@media (max-width: 768px) {
    .cta-banner {
        padding-block: var(--space-16);
    }
}

/* The gradient is dark in both themes; Accent on it reads as white. */
.component:not([class*='component--bg-']) > .cta-banner {
    --palette-accent: var(--palette-white);
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width=%2760%27 height=%2760%27 viewBox=%270 0 60 60%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cg fill=%27%23ffffff%27 fill-opacity=%270.03%27%3E%3Cpath d=%27M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Lifts the content above the ::before pattern. */
.cta-banner > .container {
    position: relative;
    z-index: var(--z-raised);
    text-align: var(--c-align, center);
}

.cta-banner-text {
    --editor-text-gap: var(--space-4);

    color: var(--c-fg, var(--primitive-white));
}

.cta-banner-text :is(h2, h3) {
    font-size: var(--font-size-display-section);
    line-height: 1.25;
}

.cta-banner-text :is(p, ul, ol) {
    max-width: 520px;
    margin-inline: var(--c-align-before, auto) var(--c-align-after, auto);
    font-size: var(--font-size-lead);
    line-height: 1.8;
}

.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--c-align-flex, center);
    gap: var(--space-4);
    margin-block-start: var(--space-10);
}

@media (max-width: 480px) {
    .cta-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-banner-actions > * {
        justify-content: center;
        min-height: 48px;
    }
}

/* Wrapper set by components/_blocks.html.twig; component CSS reads only the --c-* values. */

.component {
    --c-fg-muted: var(--c-fg);

    background-color: var(--c-bg, transparent);
}

.component--bg-text {
    --c-bg: var(--palette-text);
    --c-fg: var(--palette-background);
}

.component--bg-muted-text {
    --c-bg: var(--palette-muted-text);
    --c-fg: var(--palette-background);
}

.component--bg-accent {
    --c-bg: var(--palette-accent);
    --c-fg: var(--palette-background);
}

.component--bg-background {
    --c-bg: var(--palette-background);
    --c-fg: var(--palette-text);
    --c-fg-muted: var(--palette-muted-text);
}

.component--bg-fairuzi {
    --c-bg: var(--palette-fairuzi);
    --c-fg: var(--palette-navy);
}

.component--bg-darkblue {
    --c-bg: var(--palette-darkblue);
    --c-fg: var(--palette-white);
}

.component--bg-white {
    --c-bg: var(--palette-white);
    --c-fg: var(--palette-navy);
}

.component--bg-navy {
    --c-bg: var(--palette-navy);
    --c-fg: var(--palette-white);
}

/* Text set straight on a chosen background takes its foreground; cards and fields keep the theme's colours. */
.component[class*='component--bg-']
    :is(
        .section-header,
        .rich-text,
        .image-text,
        .stats-row,
        .process-step-title,
        .process-step-text,
        .ba-caption,
        .quote-request-form label,
        .quote-request-form .help-text,
        .quote-request-form form ul,
        .quote-request-form-success,
        .quote-proof,
        .branch-map
    ) {
    --text-primary: var(--c-fg);
    --text-muted: var(--c-fg-muted);
    --color-danger-text: var(--c-fg);
}

/* Without a chosen accent, the default one would vanish on many backgrounds; accents follow the foreground. */
.component[class*='component--bg-']:not([class*='component--accent-'])
    :is(
        .section-header,
        .rich-text,
        .image-text,
        .stats-row,
        .quote-request-form-success,
        .branch-map,
        .process-step-number,
        .icon-tile--toggle
    ) {
    --c-accent: var(--c-fg);
    --c-accent-text: var(--c-fg);
    --c-accent-hover: var(--c-fg);
    --c-accent-foreground: var(--c-bg);
}

.component[class*='component--bg-'] .image-text {
    color: var(--text-primary);
}

.component[class*='component--bg-'] .cert-pill--solid {
    background: transparent;
    border-color: color-mix(in srgb, var(--c-fg) 40%, transparent);
    color: var(--c-fg);
}

.component--accent-text {
    --c-accent: var(--palette-text);
    --c-accent-foreground: var(--palette-background);
}

.component--accent-muted-text {
    --c-accent: var(--palette-muted-text);
    --c-accent-foreground: var(--palette-background);
}

.component--accent-accent {
    --c-accent: var(--palette-accent);
    --c-accent-foreground: var(--palette-navy);
}

.light-mode .component--accent-accent {
    --c-accent-foreground: var(--palette-white);
}

.component--accent-background {
    --c-accent: var(--palette-background);
    --c-accent-foreground: var(--palette-text);
}

.component--accent-fairuzi {
    --c-accent: var(--palette-fairuzi);
    --c-accent-foreground: var(--palette-navy);
}

.component--accent-darkblue {
    --c-accent: var(--palette-darkblue);
    --c-accent-foreground: var(--palette-white);
}

.component--accent-white {
    --c-accent: var(--palette-white);
    --c-accent-foreground: var(--palette-navy);
}

.component--accent-navy {
    --c-accent: var(--palette-navy);
    --c-accent-foreground: var(--palette-white);
}

.component[class*='component--accent-'] {
    --c-accent-text: var(--c-accent);
    --c-accent-hover: var(--c-accent);
    --c-accent-line: var(--c-accent);
}

.component--value-text {
    --c-value-chosen: var(--palette-text);
    --c-value: var(--c-value-chosen);
}

.component--value-muted-text {
    --c-value-chosen: var(--palette-muted-text);
    --c-value: var(--c-value-chosen);
}

.component--value-accent {
    --c-value-chosen: var(--palette-accent);
    --c-value: var(--c-value-chosen);
}

.component--value-background {
    --c-value-chosen: var(--palette-background);
    --c-value: var(--c-value-chosen);
}

.component--value-fairuzi {
    --c-value-chosen: var(--palette-fairuzi);
    --c-value: var(--c-value-chosen);
}

.component--value-darkblue {
    --c-value-chosen: var(--palette-darkblue);
    --c-value: var(--c-value-chosen);
}

.component--value-white {
    --c-value-chosen: var(--palette-white);
    --c-value: var(--c-value-chosen);
}

.component--value-navy {
    --c-value-chosen: var(--palette-navy);
    --c-value: var(--c-value-chosen);
}

.component--label-text {
    --c-label-chosen: var(--palette-text);
    --c-label: var(--c-label-chosen);
}

.component--label-muted-text {
    --c-label-chosen: var(--palette-muted-text);
    --c-label: var(--c-label-chosen);
}

.component--label-accent {
    --c-label-chosen: var(--palette-accent);
    --c-label: var(--c-label-chosen);
}

.component--label-background {
    --c-label-chosen: var(--palette-background);
    --c-label: var(--c-label-chosen);
}

.component--label-fairuzi {
    --c-label-chosen: var(--palette-fairuzi);
    --c-label: var(--c-label-chosen);
}

.component--label-darkblue {
    --c-label-chosen: var(--palette-darkblue);
    --c-label: var(--c-label-chosen);
}

.component--label-white {
    --c-label-chosen: var(--palette-white);
    --c-label: var(--c-label-chosen);
}

.component--label-navy {
    --c-label-chosen: var(--palette-navy);
    --c-label: var(--c-label-chosen);
}

/* Number cards (image + text): a chosen card colour sets the card's own foreground. */
.component--card-text {
    --c-card: var(--palette-text);
    --c-card-fg: var(--palette-background);
    --c-card-fg-muted: var(--c-card-fg);
    --c-card-accent: var(--c-card-fg);
}

.component--card-muted-text {
    --c-card: var(--palette-muted-text);
    --c-card-fg: var(--palette-background);
    --c-card-fg-muted: var(--c-card-fg);
    --c-card-accent: var(--c-card-fg);
}

.component--card-accent {
    --c-card: var(--palette-accent);
    --c-card-fg: var(--palette-background);
    --c-card-fg-muted: var(--c-card-fg);
    --c-card-accent: var(--c-card-fg);
}

.component--card-background {
    --c-card: var(--palette-background);
    --c-card-fg: var(--palette-text);
    --c-card-fg-muted: var(--c-card-fg);
    --c-card-accent: var(--c-card-fg);
}

.component--card-fairuzi {
    --c-card: var(--palette-fairuzi);
    --c-card-fg: var(--palette-navy);
    --c-card-fg-muted: var(--c-card-fg);
    --c-card-accent: var(--c-card-fg);
}

.component--card-darkblue {
    --c-card: var(--palette-darkblue);
    --c-card-fg: var(--palette-white);
    --c-card-fg-muted: var(--c-card-fg);
    --c-card-accent: var(--c-card-fg);
}

.component--card-white {
    --c-card: var(--palette-white);
    --c-card-fg: var(--palette-navy);
    --c-card-fg-muted: var(--c-card-fg);
    --c-card-accent: var(--c-card-fg);
}

.component--card-navy {
    --c-card: var(--palette-navy);
    --c-card-fg: var(--palette-white);
    --c-card-fg-muted: var(--c-card-fg);
    --c-card-accent: var(--c-card-fg);
}

/* Without a card colour the cards stay theme cards, even on a chosen component background. */
.component:not([class*='component--card-']) .image-text-stat {
    --c-card-fg: var(--palette-text);
    --c-card-fg-muted: var(--palette-muted-text);
    --c-card-accent: var(--palette-fairuzi);
}

/* A card with its own colour shows the editor's value and label colours as chosen;
   the surface rules below only adjust colours for the theme's own surfaces. */
.component[class*='component--card-'] .image-text-stat {
    --c-value: var(--c-value-chosen);
    --c-label: var(--c-label-chosen);
}

/* On the theme's own surface, a value or label colour that would vanish keeps the default.
   A chosen background keeps the editor's choice. */
.component:not([class*='component--bg-']):is(
        .component--value-white,
        .component--value-background
    ) {
    --c-value: initial;
}

.component:not([class*='component--bg-']):is(
        .component--label-white,
        .component--label-background
    ) {
    --c-label: initial;
}

:root:not(.light-mode)
    .component:not([class*='component--bg-']):is(
        .component--value-navy,
        .component--value-darkblue
    ) {
    --c-value: initial;
}

:root:not(.light-mode)
    .component:not([class*='component--bg-']):is(
        .component--label-navy,
        .component--label-darkblue
    ) {
    --c-label: initial;
}

.component--align-start {
    --c-align: start;
    --c-align-flex: flex-start;
    --c-align-before: 0;
    --c-align-after: auto;
}

.component--align-center {
    --c-align: center;
    --c-align-flex: center;
    --c-align-before: auto;
    --c-align-after: auto;
}

.component--align-end {
    --c-align: end;
    --c-align-flex: flex-end;
    --c-align-before: auto;
    --c-align-after: 0;
}

/* Hero layouts: .hero--cinematic (Full-bleed), .hero--page-header.
   .hero--at-top leads the page and fills the screen below the fixed nav. */

.hero {
    /* --- component token layer (primitive → semantic → component) --- */
    --hero-title-cinematic: var(--font-size-display-hero);
    --hero-title-header: clamp(2rem, 4vw, 3.2rem);
    --hero-shadow-text: 0 8px 50px rgb(0 0 0 / 60%), 0 2px 8px rgb(0 0 0 / 40%);
    --hero-edge: clamp(var(--space-6), 7vw, 180px);

    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-family: var(--font-body);
    background: var(--c-bg, var(--bg-primary));
}

/* A long headline steps down a size so the buttons stay in the first screen. */
.hero--long-headline {
    --hero-title-cinematic: clamp(2rem, 3.6vw, 3rem);
}

.hero--cinematic {
    --ts-s: 0.8em;
    --ts-m: 1em;
    --ts-l: 1.15em;
    --ts-xl: 1.3em;
    --ts-xxl: 1.6em;

    min-height: 82vh;
    display: flex;
}

.hero--cinematic.hero--at-top {
    min-height: calc(100vh - var(--nav-height));
}

.hero--page-header {
    --ts-s: 0.875em;
    --ts-m: 1em;
    --ts-l: 1.25em;
    --ts-xl: 1.5em;
    --ts-xxl: 2em;

    display: flex;
    align-items: flex-end;
}

.hero--page-header.hero--at-top:not(.hero--solid) {
    min-height: calc(50vh - var(--nav-height));
}

.hero--cinematic {
    --hero-align: center;
    --hero-align-flex: center;
    --hero-align-before: auto;
    --hero-align-after: auto;
}

.hero--page-header {
    --hero-align: start;
    --hero-align-flex: flex-start;
    --hero-align-before: 0;
    --hero-align-after: auto;
}

/* Media. Overlay stack lives in ::before/::after so the treatment is fixed;
   only the image is editable. */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: var(--focus-x, 50%) var(--focus-y, 25%);
       object-position: var(--focus-x, 50%) var(--focus-y, 25%);
    transform: scale(1.04);
    transition: transform var(--duration-cinematic) var(--ease-standard);
}

.hero-media::before,
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --hero-dim scales the image filter and the ::after layers; one colour per theme keeps layer order invisible. */
.hero--dim-0 {
    --hero-dim: 0;
}

.hero--dim-1 {
    --hero-dim: 0.25;
}

.hero--dim-2 {
    --hero-dim: 0.5;
}

.hero--dim-3 {
    --hero-dim: 0.75;
}

.hero--cinematic .hero-media img {
    filter: brightness(calc(1 - 0.38 * var(--hero-dim, 1))) saturate(1.08);
}

.hero--cinematic .hero-media::before {
    background:
        linear-gradient(to bottom, rgb(8 13 20 / 75%) 0%, rgb(8 13 20 / 10%) 18%, transparent 35%),
        linear-gradient(
            to top,
            rgb(8 13 20 / 100%) 0%,
            rgb(8 13 20 / 85%) 18%,
            rgb(8 13 20 / 40%) 45%,
            transparent 70%
        );
}

.hero--cinematic .hero-media::after {
    opacity: var(--hero-dim, 1);
    background:
        radial-gradient(
            ellipse 85% 75% at 50% 48%,
            rgb(8 13 20 / 60%) 0%,
            rgb(8 13 20 / 40%) 55%,
            rgb(8 13 20 / 20%) 100%
        ),
        radial-gradient(ellipse 100% 80% at 50% 50%, transparent 30%, rgb(8 13 20 / 50%) 100%);
}

.light-mode .hero--cinematic .hero-media::before {
    background: linear-gradient(
        to top,
        rgb(0 0 0 / 75%) 0%,
        rgb(0 0 0 / 60%) 18%,
        rgb(0 0 0 / 35%) 45%,
        transparent 70%
    );
}

.light-mode .hero--cinematic .hero-media::after {
    background:
        radial-gradient(
            ellipse 85% 75% at 50% 48%,
            rgb(0 0 0 / 55%) 0%,
            rgb(0 0 0 / 38%) 55%,
            rgb(0 0 0 / 20%) 100%
        ),
        radial-gradient(ellipse 100% 80% at 50% 50%, transparent 30%, rgb(0 0 0 / 45%) 100%);
}

.hero--cinematic:hover .hero-media img {
    transform: scale(1);
}

/* Page header: flatter, darker, resolves into the page background */
.hero--page-header .hero-media img {
    filter: brightness(calc(1 - 0.65 * var(--hero-dim, 1)));
    transform: none;
}

/* Navy, not --bg-primary: the header's text is white, and light mode's page background is near-white. */
.hero--page-header .hero-media::before {
    background: linear-gradient(
        to top,
        var(--primitive-navy-950) 0%,
        rgb(8 13 20 / 50%) 60%,
        transparent 100%
    );
}

.hero--page-header .hero-media::after {
    background: none;
}

/* Atmosphere — cinematic only, decorative */
.hero-orb {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: var(--radius-circle);
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--c-accent) 10%, transparent) 0%,
        color-mix(in srgb, var(--c-accent) 3%, transparent) 55%,
        transparent 70%
    );
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(50%, -55%);
    z-index: 1;
    pointer-events: none;
    animation: heroOrbPulse var(--duration-ambient-slow) var(--ease-standard-io) infinite;
}

[dir='ltr'] .hero-orb {
    transform: translate(-50%, -55%);
}

@keyframes heroOrbPulse {
    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: var(--z-content);
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 256 256%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27noise%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.9%27 numOctaves=%274%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23noise%29%27/%3E%3C/svg%3E");
    background-size: 256px;
    pointer-events: none;
}

/* ---------- Slideshow (Full-bleed) ---------- */

/* Motion animates opacity and transform; before it runs only the active slide shows. */
.hero--slideshow .hero-media img,
.hero--slideshow:hover .hero-media img {
    opacity: 0;
    transform: none;
    transition: none;
}

.hero--slideshow .hero-media img.is-active {
    opacity: 1;
}

.light-mode .hero-media--dark,
:root:not(.light-mode) .hero-media--light {
    display: none;
}

/* ---------- Foreground figure (Full-bleed, desktops only) ---------- */

.hero-foreground {
    position: absolute;
    z-index: 2;
    inset-block-end: 0;
    inset-inline: 0;
    display: none;
    justify-content: flex-end;
    height: 68%;
    padding-inline: 180px;
    pointer-events: none;
}

.hero-foreground--start {
    justify-content: flex-start;
}

.hero-foreground--small {
    height: 55%;
}

.hero-foreground--large {
    height: 85%;
}

.hero-foreground--flush {
    padding-inline: 0;
}

.hero-foreground img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 50vw;
    -o-object-fit: contain;
       object-fit: contain;
    -o-object-position: bottom;
       object-position: bottom;
}

@media (min-width: 1025px) {
    .hero-foreground {
        display: flex;
    }
}

/* Admin preview only. */
.hero-preview-note {
    width: -moz-fit-content;
    width: fit-content;
    max-width: 36rem;
    margin-block-end: var(--space-6);
    margin-inline: var(--c-align-before, var(--hero-align-before))
        var(--c-align-after, var(--hero-align-after));
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-surface);
    background: var(--primitive-navy-950);
    color: var(--primitive-white);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* ---------- Slideshow pause button ---------- */

.hero-slides-toggle {
    position: absolute;
    inset-block-end: var(--space-6);
    z-index: calc(var(--z-content) + 1);
    display: grid;
    place-items: center;
    width: var(--btn-min-size);
    height: var(--btn-min-size);
    padding: 0;
    border-radius: var(--radius-circle);
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 18%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgb(255 255 255 / 85%);
    cursor: pointer;
}

.hero-slides-toggle[hidden] {
    display: none;
}

.light-mode .hero:has(> .hero-media--light:not([data-hero-slides])) .hero-slides-toggle,
:root:not(.light-mode) .hero:has(> .hero-media--dark:not([data-hero-slides])) .hero-slides-toggle {
    display: none;
}

.hero-slides-toggle--start {
    inset-inline-start: var(--space-6);
}

.hero-slides-toggle--end {
    inset-inline-end: var(--space-6);
}

.light-mode .hero-slides-toggle {
    background: rgb(0 0 0 / 35%);
    border-color: rgb(255 255 255 / 25%);
    color: rgb(255 255 255 / 95%);
}

.hero-slides-toggle:focus-visible {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

.hero-slides-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentcolor;
}

.hero-slides-toggle-play,
.hero-slides-toggle[aria-pressed='true'] .hero-slides-toggle-pause {
    display: none;
}

.hero-slides-toggle[aria-pressed='true'] .hero-slides-toggle-play {
    display: block;
}

/* ---------- Content column ---------- */
.hero-content {
    position: relative;
    z-index: var(--z-content);
    width: 100%;
    min-width: 0;
}

.hero--cinematic .hero-content,
.hero--page-header .hero-content {
    max-width: var(--breakpoint-container);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.hero--cinematic.hero--content-screen .hero-content {
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--hero-edge);
}

.hero--cinematic .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: var(--space-14) var(--space-20);
}

.hero--page-header .hero-content {
    padding-block: var(--space-12) var(--space-15);
}

/* anywhere, not break-word: the column sizes to its content, so a long word must lower that size. */
.hero-column {
    min-width: 0;
    text-align: var(--c-align, var(--hero-align));
    overflow-wrap: anywhere;
}

.hero--cinematic .hero-column {
    max-width: calc(860px - 2 * var(--space-6));
    margin-inline: var(--c-align-before, var(--hero-align-before))
        var(--c-align-after, var(--hero-align-after));
}

/* Where the figure shows, the column keeps to the other side. */
@media (min-width: 1025px) {
    :is(.hero--figure-start, .hero--figure-end) .hero-column {
        max-width: min(calc(860px - 2 * var(--space-6)), 46vw);
    }

    .hero--figure-end .hero-column {
        margin-inline: 0 auto;
    }

    .hero--figure-start .hero-column {
        margin-inline: auto 0;
    }
}

/* Badge. Glass over photography, teal pill on solid surfaces. */
.hero-badge-row {
    display: flex;
}

.hero-badge {
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-label);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.3px;
    background: var(--badge-pill-bg);
    border: var(--badge-pill-border);
    color: var(--badge-pill-fg);
}

.hero--cinematic .hero-badge,
.hero--page-header .hero-badge {
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 18%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgb(255 255 255 / 85%);
}

.light-mode .hero--cinematic .hero-badge,
.light-mode .hero--page-header .hero-badge {
    background: rgb(0 0 0 / 35%);
    border-color: rgb(255 255 255 / 25%);
    color: rgb(255 255 255 / 95%);
}

.hero--cinematic .hero-badge {
    margin-block-end: var(--space-8);
}

.hero--page-header .hero-badge {
    margin-block-end: var(--space-4);
}

/* Editor text. Heading 1 is the headline; paragraphs and lists are the supporting text. */
.hero-text {
    --editor-text-gap: var(--space-4);
}

.hero-text :is(h1, .hero-headline) {
    font-family: var(--font-body);
    color: var(--text-primary);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.2;
    text-wrap: balance;
}

.hero-text :is(h2, h3) {
    color: var(--text-primary);
    line-height: 1.3;
}

.hero-text :is(p, ul, ol) {
    max-width: 42rem;
    margin-inline: var(--c-align-before, var(--hero-align-before))
        var(--c-align-after, var(--hero-align-after));
    font-size: var(--font-size-lead);
    line-height: 1.85;
    color: var(--text-muted);
}

.hero--cinematic .hero-text {
    --editor-text-gap: var(--space-6);

    margin-block-end: var(--space-11);
}

.hero--cinematic .hero-text :is(h1, h2, h3),
.hero--page-header .hero-text :is(h1, h2, h3) {
    color: var(--primitive-white);
    text-shadow: var(--hero-shadow-text);
}

.hero--cinematic .hero-text :is(h1, .hero-headline) {
    font-size: var(--hero-title-cinematic);
    font-weight: var(--font-weight-black);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

/* Negative tracking pulls Arabic joins apart. */
:root[lang='ar'] .hero-text :is(h1, .hero-headline) {
    letter-spacing: 0;
}

.hero--cinematic .hero-text :is(p, ul, ol) {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: rgb(255 255 255 / 88%);
    text-shadow: var(--hero-shadow-text);
}

.hero--page-header .hero-text :is(h1, .hero-headline) {
    font-size: var(--hero-title-header);
}

.hero--page-header .hero-text :is(p, ul, ol) {
    max-width: 38rem;
    font-size: var(--font-size-lead);
    color: rgb(255 255 255 / 85%);
    text-shadow: var(--hero-shadow-text);
}

/* A paragraph the editor aligned moves its box to that side too. The editor's left and right
   are physical, so they swap ends in Arabic. */
.hero-text p.ta-center {
    margin-inline: auto;
}

[dir='ltr'] .hero-text p.ta-left,
[dir='rtl'] .hero-text p.ta-right {
    margin-inline: 0 auto;
}

[dir='ltr'] .hero-text p.ta-right,
[dir='rtl'] .hero-text p.ta-left {
    margin-inline: auto 0;
}

/* What sits above the text follows its first block's alignment, the buttons and certifications its last block's. */
.hero-column:has(> .hero-text > .ta-left:first-child) {
    --hero-lead-flex: left;
}

.hero-column:has(> .hero-text > .ta-center:first-child) {
    --hero-lead-flex: center;
}

.hero-column:has(> .hero-text > .ta-right:first-child) {
    --hero-lead-flex: right;
}

.hero-column:has(> .hero-text > .ta-justify:first-child) {
    --hero-lead-flex: flex-start;
}

.hero-column:has(> .hero-text > .ta-left:last-child) {
    --hero-trail-flex: left;
}

.hero-column:has(> .hero-text > .ta-center:last-child) {
    --hero-trail-flex: center;
}

.hero-column:has(> .hero-text > .ta-right:last-child) {
    --hero-trail-flex: right;
}

.hero-column:has(> .hero-text > .ta-justify:last-child) {
    --hero-trail-flex: flex-start;
}

.hero--page-header .hero-text {
    margin-block-end: var(--space-8);
}

/* Without supporting text, the headline keeps its own gap to the buttons. */
.hero--cinematic .hero-text:not(:has(> :is(p, ul, ol))) {
    margin-block-end: var(--space-6);
}

.hero--page-header .hero-text:not(:has(> :is(p, ul, ol))) {
    margin-block-end: var(--space-4);
}

/* Actions. `gap` applies only between rendered children, so a single button
   needs no special case as long as the empty slot emits no element.
   Uses gap, not space-x-*, which sets margin-left/right and will not mirror
   under RTL. */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-block-end: var(--space-11);
}

.hero-badge-row,
.hero .breadcrumb {
    justify-content: var(--hero-lead-flex, var(--c-align-flex, var(--hero-align-flex)));
}

.hero-actions {
    justify-content: var(--hero-trail-flex, var(--c-align-flex, var(--hero-align-flex)));
}

.hero-actions:last-child {
    margin-block-end: 0;
}

.hero-certs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: var(--hero-trail-flex, var(--c-align-flex, var(--hero-align-flex)));
    gap: var(--space-3);
}

.hero-certs-label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
}

:root[lang='en'] .hero-certs-label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero--cinematic .hero-certs-label,
.hero--page-header:not(.hero--solid) .hero-certs-label {
    color: rgb(255 255 255 / 80%);
}

/* ---------- Breadcrumb inside the page header ---------- */
.hero--page-header .breadcrumb {
    color: rgb(255 255 255 / 75%);
    text-shadow: 0 2px 8px rgb(0 0 0 / 50%);
}

.hero--page-header .breadcrumb a {
    color: rgb(255 255 255 / 75%);
}

/* A 44px hit area without changing the row's height. */
.hero .breadcrumb a {
    padding-block: 12px;
    margin-block: -12px;
}

.hero--page-header .breadcrumb a:hover {
    color: var(--c-accent);
}

.hero--page-header .breadcrumb-current {
    color: var(--c-accent-text);
}

/* The top of the band is the photo's lightest part; plain Fairuzi lands just under 4.5:1 there. */
.hero--page-header:not(.hero--solid) .breadcrumb-current {
    color: color-mix(in srgb, var(--c-accent) 80%, var(--primitive-white));
}

/* Arrow points back toward the start of the reading direction. Under RTL the browser
   already mirrors ›, so the flip applies in both directions. */
.hero--page-header .breadcrumb-sep {
    transform: scaleX(-1);
    display: inline-block;
}

/* ---------- No image: text sits on --bg-primary, so it follows the theme ---------- */
.hero--solid .hero-text :is(h1, h2, h3, p, ul, ol),
.hero--solid .breadcrumb {
    text-shadow: none;
}

.hero--solid .hero-text :is(h1, h2, h3) {
    color: var(--text-primary);
}

.hero--solid .hero-text :is(p, ul, ol),
.hero--solid .hero-certs-label,
.hero--solid .breadcrumb,
.hero--solid .breadcrumb a {
    color: var(--text-muted);
}

/* Glass is a photo treatment; on the light page its default white would vanish. */
.light-mode .component:not([class*='component--bg-']) > .hero--solid .btn--glass.btn--colour-white {
    --btn-colour: var(--palette-accent);
}

.hero--solid .hero-badge,
.light-mode .hero--solid .hero-badge {
    background: var(--badge-pill-bg);
    border: var(--badge-pill-border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--text-primary);
}

/* Phones: tap-target floor for the actions. */
@media (max-width: 768px) {
    .hero--cinematic.hero--at-top {
        min-height: calc(92vh - var(--nav-height));
    }

    .hero--cinematic .hero-content {
        padding-block: var(--space-12) var(--space-16);
    }

    /* Keeps the last row clear of the pause button below it. */
    .hero--slideshow .hero-content {
        padding-block-end: calc(var(--btn-min-size) + 2 * var(--space-6));
    }

    .hero-media img {
        -o-object-position: var(--focus-x, 50%) var(--focus-y, 30%);
           object-position: var(--focus-x, 50%) var(--focus-y, 30%);
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions > * {
        width: 100%;
        min-height: 48px;
    }

    .hero-text :is(h1, .hero-headline) {
        letter-spacing: 0;
    }

    .hero--cinematic .hero-text :is(h1, .hero-headline) {
        letter-spacing: -0.5px;
    }

    .hero--cinematic .hero-content,
    .hero--page-header .hero-content {
        padding-inline: var(--space-4);
    }

    .hero-orb {
        width: 420px;
        height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb {
        animation: none;
    }

    .hero-media img,
    .hero--cinematic:hover .hero-media img {
        transform: none;
        transition: none;
    }
}

/*
 * Prose styling for editor-authored HTML, scoped to .rich-text-body.
 *
 * Tailwind's preflight strips list markers, heading sizes and margins, and editor
 * HTML has no classes to hang styles on, so they are restored here.
 * `padding-inline-start` mirrors with `dir`; `padding-left` would strand the
 * markers on the wrong side in Arabic.
 */

.rich-text-body {
    max-width: 75ch;
    margin-inline: auto;
    color: var(--text-primary);
    font-size: var(--font-size-body);
    line-height: 1.8;
}

.rich-text .rich-text-body {
    margin-inline: var(--c-align-before, auto) var(--c-align-after, auto);
    text-align: var(--c-align, start);
}

.rich-text-body > * + * {
    margin-block-start: var(--space-4);
}

.rich-text-body > :first-child {
    margin-block-start: 0;
}

.rich-text-body > :last-child {
    margin-block-end: 0;
}

.rich-text-body h2,
.rich-text-body h3,
.rich-text-body h4 {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin-block-start: var(--space-8);
}

.rich-text-body h2 {
    font-size: var(--font-size-2xl);
}

.rich-text-body h3 {
    font-size: var(--font-size-xl);
}

.rich-text-body h4 {
    font-size: var(--font-size-lg);
}

.rich-text-body p {
    color: var(--text-muted);
}

/* Restore the markers preflight removed. */
.rich-text-body ul,
.rich-text-body ol {
    padding-inline-start: var(--space-6);
    color: var(--text-muted);
}

.rich-text-body ul {
    list-style: disc outside;
}

.rich-text-body ol {
    list-style: decimal outside;
}

.rich-text-body li + li {
    margin-block-start: var(--space-2);
}

.rich-text-body li::marker {
    color: var(--c-accent-text);
}

/* Links are styled here so the editor never has to. */
.rich-text-body a {
    color: var(--c-accent-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--duration-fast) var(--ease-standard);
}

.rich-text-body a:hover {
    color: var(--c-accent-hover);
}

.rich-text-body strong {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.rich-text-body em {
    font-style: italic;
}

.rich-text-body blockquote {
    border-inline-start: 3px solid var(--c-accent);
    padding-inline-start: var(--space-4);
    color: var(--text-muted);
    font-style: italic;
}

/* One consistent size regardless of the source dimensions. */
.rich-text-body img {
    display: block;
    width: 100%;
    height: auto;
    margin-block: var(--space-8);
    border-radius: var(--radius-surface);
}
/*
 * Editor HTML in compact places. Each place sets its own sizes and colours,
 * and its block gap through --editor-text-gap.
 */

.editor-text > * + * {
    margin-block-start: var(--editor-text-gap, var(--space-2));
}

.editor-text :is(h2, h3, h4) {
    font-weight: var(--font-weight-bold);
}

/* Restore the markers preflight removed. */
.editor-text :is(ul, ol) {
    padding-inline-start: 1.25em;
    list-style: revert;
}

.editor-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/*
 * Scroll reveals. Every rule is gated behind `.js-motion`: the inline script in
 * base.html.twig adds it and drops it again if the bundle never boots, so nothing
 * is hidden without motion.js running to reveal it.
 */

.js-motion .reveal-up,
.js-motion .stagger-child {
    will-change: opacity, transform;
    transition:
        opacity var(--duration-moderate) var(--ease-standard),
        transform var(--duration-moderate) var(--ease-standard);
}

.js-motion .reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

.js-motion .stagger-child {
    opacity: 0;
    transform: translateY(30px);
}

/* motion.js adds .is-revealed once, then unobserves. will-change is released with
   it, or every revealed element keeps a compositor layer for the page's lifetime. */
.js-motion .reveal-up.is-revealed,
.js-motion .stagger-child.is-revealed {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* Sideways entrance: the component sets --reveal-shift, the start offset along x. */
.js-motion .reveal-side {
    opacity: 0;
    transform: translateX(var(--reveal-shift, 0));
    will-change: opacity, transform;
    transition:
        opacity var(--duration-reveal-side) var(--ease-out-quad),
        transform var(--duration-reveal-side) var(--ease-out-quad);
}

.js-motion .reveal-side.is-revealed {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* Second guard, for reduced motion turned on after load. */
@media (prefers-reduced-motion: reduce) {
    .js-motion .reveal-up,
    .js-motion .reveal-side,
    .js-motion .stagger-child {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto;
    }
}
/*
 * Structural layout for the navbar and footer. The design-system vocabulary
 * (.nav-logo, .nav-link, .footer-heading, .footer-tagline) lives in
 * custom.css; only the containers those sit in are defined here.
 */

/* ---------- Navbar ---------- */

.site-nav-inner {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    height: var(--nav-height);
}

.site-nav,
.site-nav-drawer {
    --btn-regular-padding-block: var(--btn-scale-1-padding-block);
    --btn-regular-padding-inline: var(--btn-scale-1-padding-inline);
    --btn-regular-font-size: var(--btn-scale-1-font-size);
    --btn-large-padding-block: var(--btn-scale-2-padding-block);
    --btn-large-padding-inline: var(--btn-scale-2-padding-inline);
    --btn-large-font-size: var(--btn-scale-2-font-size);
}

.site-nav .btn {
    white-space: nowrap;
}

.site-nav-logo {
    flex: none;
    display: inline-flex;
    align-items: center;
}

.site-nav-menu {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav-item {
    position: relative;
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-inline-start: auto;
}

.site-nav-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-phone-icon {
    flex: none;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-nav-phone:hover {
    color: var(--color-accent-text);
}

.site-nav-dropdown {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + var(--space-3));
    min-width: 220px;
    margin: 0;
    padding: var(--space-2);
    list-style: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-icon-well);
    box-shadow: var(--shadow-dropdown);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-fast) var(--ease-standard);
}

/* Spans the gap above the dropdown, so the pointer keeps it open on the way down. */
.site-nav-menu .site-nav-dropdown::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 100%;
    height: var(--space-3);
}

.site-nav-item:hover .site-nav-dropdown,
.site-nav-item:focus-within .site-nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.site-nav-menu .has-dropdown:hover > .nav-link,
.site-nav-menu .has-dropdown:focus-within > .nav-link {
    color: var(--color-accent-text);
}

.site-nav-menu .has-dropdown:hover > .nav-link::after,
.site-nav-menu .has-dropdown:focus-within > .nav-link::after {
    width: 100%;
}

.site-nav-dropdown a {
    display: block;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.site-nav-dropdown a:hover,
.site-nav-dropdown a.is-current {
    background: color-mix(in srgb, var(--c-accent) 8%, transparent);
    color: var(--color-accent-text);
}

/* A label that wrapped would hide the overflow navbar.js collapses on. */
.site-nav-menu > .site-nav-item > .nav-link {
    white-space: nowrap;
}

/* Below the desktop breakpoint, or when navbar.js finds the menu too wide, the drawer carries it. */
@media (max-width: 900px) {
    .site-nav-menu {
        display: none;
    }
}

.nav-collapsed .site-nav-menu {
    display: none;
}

/* ---------- Footer ---------- */

.site-footer {
    padding-block: var(--space-16) var(--space-8);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* The lockup's navy half vanishes on either footer background, so it is shown in white. */
.footer-logo {
    display: inline-block;
    margin-block-end: var(--space-4);
}

.footer-logo img {
    display: block;
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* custom.css keeps the footer brand blue in the light theme, so its text stays light. */
.light-mode .site-footer {
    --text-primary: var(--primitive-white);
    --text-muted: rgb(232 244 248 / 80%);
    --border-color: rgb(255 255 255 / 15%);
}

.light-mode .site-footer .footer-tagline {
    color: var(--text-muted);
}

.light-mode .site-footer .footer-heading {
    color: var(--color-teal);
}

/* Brand first, then the link columns: one row from 1024px, each column as wide as its
   content and the free space spread between them; two per row from 640px. */
.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
    margin-block-end: var(--space-12);
}

@media (min-width: 640px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-footer-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        justify-content: space-between;
        -moz-column-gap: var(--space-16);
             column-gap: var(--space-16);
    }
}

.site-footer-column ul,
.site-footer-branches,
.site-footer-social,
.site-footer-legal {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-column li + li {
    margin-block-start: var(--space-2);
}

.site-footer-column a,
.site-footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.site-footer-column a:hover,
.site-footer-legal a:hover {
    color: var(--color-accent);
}

.site-footer-branches,
.site-footer-social,
.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.site-footer-social,
.site-footer-branches,
.site-footer-legal {
    justify-content: var(--c-align-flex, flex-start);
}

.site-footer-branch-name {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.site-footer-social {
    margin-block-end: var(--space-6);
}

.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-control);
    color: var(--text-muted);
    transition:
        color var(--motion-interaction),
        border-color var(--motion-interaction);
}

.site-footer-social a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.site-footer-social a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.site-footer-social-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer-copyright {
    margin-block-start: var(--space-8);
    padding-block-start: var(--space-4);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    text-align: var(--c-align, start);
}

/* ---------- Language toggle ---------- */

.language-toggle {
    display: flex;
    gap: var(--space-2);
}

.language-toggle a {
    font-family: var(--font-latin);
    font-size: var(--font-size-label);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Theme toggle ---------- */

.theme-toggle-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle-moon,
.light-mode .theme-toggle-sun {
    display: none;
}

.light-mode .theme-toggle-moon {
    display: block;
}

/* ---------- Mobile drawer ---------- */

.site-nav-burger {
    display: none;
    width: var(--btn-min-size);
    height: var(--btn-min-size);
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-control);
    background: transparent;
    cursor: pointer;
    position: relative;
}

.site-nav-burger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Three bars from one element: the middle is the span, the others its edges. */
.site-nav-burger span,
.site-nav-burger span::before,
.site-nav-burger span::after {
    position: absolute;
    inset-inline: 10px;
    height: 2px;
    background: var(--text-primary);
    content: '';
}

.site-nav-burger span {
    top: 50%;
    transform: translateY(-50%);
}

/* Positioned against the middle bar, so they span it rather than the button. */
.site-nav-burger span::before,
.site-nav-burger span::after {
    inset-inline: 0;
}

.site-nav-burger span::before {
    top: -6px;
}

.site-nav-burger span::after {
    top: 6px;
}

/* A popover: the reset undoes the browser's centred-dialog defaults. */
.site-nav-drawer {
    position: fixed;
    inset: var(--nav-height) 0 auto;
    z-index: calc(var(--z-nav) - 1);
    width: auto;
    height: auto;
    margin: 0;
    padding: var(--space-5);
    border: 0;
    border-block-end: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: inherit;
    box-shadow: var(--shadow-dropdown);
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    overscroll-behavior: contain;
}

@supports not selector(:popover-open) {
    .site-nav-drawer:not(.is-open) {
        display: none;
    }
}

body:has(.site-nav-drawer:is(:popover-open, .is-open)) {
    overflow: hidden;
}

.site-nav-drawer-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
}

/* In the drawer a dropdown is always expanded: there is room, and hover is not
   available on a touch screen. */
.site-nav-drawer .site-nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding-inline-start: var(--space-4);
}

.site-nav-drawer .nav-link,
.site-nav-drawer .site-nav-dropdown a {
    display: flex;
    align-items: center;
    min-block-size: var(--btn-min-size);
    padding-block: 0;
}

.site-nav-drawer .site-nav-phone {
    display: flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
    min-block-size: var(--btn-min-size);
    margin-block-end: var(--space-4);
}

@media (max-width: 900px) {
    .site-nav-burger {
        display: block;
    }

    /* Narrow screens shrink the logo instead of pushing the burger off screen. */
    .site-nav-logo {
        flex-shrink: 1;
        min-width: 0;
    }

    /* The phone number moves into the drawer; the quote button stays on the bar, one tap away. */
    .site-nav-actions .site-nav-phone {
        display: none;
    }
}

.site-nav-drawer-settings {
    display: none;
    gap: var(--space-3);
    align-items: center;
    margin-block-start: var(--space-4);
}

/* The narrowest phones keep the logo legible by tightening the quote button. */
@media (max-width: 359px) {
    .site-nav-actions {
        --btn-regular-padding-inline: var(--space-4);
        --btn-regular-font-size: var(--font-size-sm);
    }
}

/* On phones the bar has room for the logo, the quote button and the menu only. */
@media (max-width: 480px) {
    .site-nav-actions :is(.language-toggle, .theme-toggle) {
        display: none;
    }

    .site-nav-drawer-settings {
        display: flex;
    }
}

@media (min-width: 901px) {
    :root:not(.nav-collapsed) .site-nav-drawer {
        display: none;
    }
}

.nav-collapsed .site-nav-burger {
    display: block;
}

/*
 * Escape closes a dropdown while focus stays on its trigger. :focus-within is
 * still true at that point, so an explicit state is needed to win; it sits after
 * the hover/focus rule and matches its specificity.
 */
.site-nav-item.is-closed .site-nav-dropdown {
    opacity: 0;
    visibility: hidden;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    inset-block-end: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-floating-action);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-circle);
    background: var(--color-whatsapp);
    color: var(--color-whatsapp-foreground);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--color-whatsapp) 40%, transparent);
    transition:
        scale var(--motion-interaction),
        box-shadow var(--motion-interaction);
    animation: whatsapp-float-bounce var(--duration-ambient) var(--ease-standard-io) infinite;
}

.whatsapp-float:hover {
    scale: 1.1;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--color-whatsapp) 50%, transparent);
}

.whatsapp-float:focus-visible {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

.whatsapp-float-icon {
    width: 24px;
    height: 24px;
    fill: currentcolor;
}

@keyframes whatsapp-float-bounce {
    50% {
        translate: 0 -5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
}

/* Padding includes the border, so every style has the same box. */
.btn {
    --btn-padding-block: var(--btn-regular-padding-block);
    --btn-padding-inline: var(--btn-regular-padding-inline);
    --btn-font-size: var(--btn-regular-font-size);
    --btn-colour: var(--palette-fairuzi);
    --btn-label-colour: var(--palette-navy);

    -webkit-appearance: none;

       -moz-appearance: none;

            appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-sizing: border-box;
    min-block-size: var(--btn-min-size);
    padding-block: calc(var(--btn-padding-block) - var(--btn-border-width));
    padding-inline: calc(var(--btn-padding-inline) - var(--btn-border-width));
    border: var(--btn-border-width) solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--btn-colour);
    font: inherit;
    font-size: var(--btn-font-size);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--motion-interaction),
        border-color var(--motion-interaction),
        color var(--motion-interaction),
        text-decoration-color var(--motion-interaction),
        transform var(--motion-lift),
        box-shadow var(--motion-lift);
}

.btn:hover {
    transform: translateY(var(--btn-lift));
}

.btn--large {
    --btn-padding-block: var(--btn-large-padding-block);
    --btn-padding-inline: var(--btn-large-padding-inline);
    --btn-font-size: var(--btn-large-font-size);
}

.btn--pill {
    border-radius: var(--radius-pill);
}

/* ---------- Styles ---------- */
.btn--filled {
    background: var(--btn-colour);
    color: var(--btn-label-colour);
}

.btn--filled:hover {
    background: color-mix(in srgb, var(--btn-colour) 85%, var(--primitive-white));
    box-shadow: var(--shadow-raised);
}

.btn--outline {
    border-color: var(--btn-colour);
}

.btn--outline:hover {
    background: color-mix(in srgb, var(--btn-colour) 12%, transparent);
}

.btn--glass {
    background: color-mix(in srgb, var(--btn-colour) 12%, transparent);
    border-color: color-mix(in srgb, var(--btn-colour) 40%, transparent);
    backdrop-filter: blur(var(--btn-blur));
    -webkit-backdrop-filter: blur(var(--btn-blur));
}

.btn--glass:hover {
    background: color-mix(in srgb, var(--btn-colour) 22%, transparent);
    border-color: var(--btn-colour);
}

.btn--text {
    text-underline-offset: 0.25em;
}

.btn--text:hover {
    color: color-mix(in srgb, var(--btn-colour) 80%, var(--text-primary));
    text-decoration: underline;
}

.btn--underlined {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

.btn--underlined:hover {
    color: color-mix(in srgb, var(--btn-colour) 80%, var(--text-primary));
    text-decoration-thickness: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

/* ---------- Colour ---------- */
.btn--colour-text {
    --btn-colour: var(--palette-text);
}

.btn--colour-muted-text {
    --btn-colour: var(--palette-muted-text);
}

.btn--colour-accent {
    --btn-colour: var(--palette-accent);
}

.btn--colour-background {
    --btn-colour: var(--palette-background);
}

.btn--colour-fairuzi {
    --btn-colour: var(--palette-fairuzi);
}

.btn--colour-darkblue {
    --btn-colour: var(--palette-darkblue);
}

.btn--colour-white {
    --btn-colour: var(--palette-white);
}

.btn--colour-navy {
    --btn-colour: var(--palette-navy);
}

/* ---------- Label colour (Filled only) ---------- */
.btn--label-text {
    --btn-label-colour: var(--palette-text);
}

.btn--label-muted-text {
    --btn-label-colour: var(--palette-muted-text);
}

.btn--label-accent {
    --btn-label-colour: var(--palette-accent);
}

.btn--label-background {
    --btn-label-colour: var(--palette-background);
}

.btn--label-fairuzi {
    --btn-label-colour: var(--palette-fairuzi);
}

.btn--label-darkblue {
    --btn-label-colour: var(--palette-darkblue);
}

.btn--label-white {
    --btn-label-colour: var(--palette-white);
}

.btn--label-navy {
    --btn-label-colour: var(--palette-navy);
}

/* ---------- Emergency ---------- */
.btn--emergency {
    --btn-colour: var(--color-emergency);
    --btn-label-colour: var(--primitive-white);

    /* The hero column's overflow-wrap: anywhere would otherwise split words before the number wraps. */
    flex-wrap: wrap;
}

.btn--emergency .en-text {
    white-space: nowrap;
}

.btn__icon {
    display: inline-block;
    inline-size: 1.1em;
    block-size: 1.1em;
    margin-inline-end: var(--space-2);
    vertical-align: -0.2em;
    fill: currentcolor;
}

/* ---------- Chosen icon ---------- */

/* The margin keeps every size one line tall, so an icon never changes the button's height. */
.btn__icon-mask,
.btn__icon-image {
    --btn-icon-size: 1lh;
    --btn-icon-gap: calc(var(--btn-icon-size) * 0.2);
    --btn-icon-inset: calc(var(--btn-padding-inline) * -0.3);

    flex: none;
    block-size: var(--btn-icon-size);
    margin-block: calc((1lh - var(--btn-icon-size)) / 2);

    /* Moves the icon into the side padding and away from the label. */
    margin-inline: var(--btn-icon-inset) var(--btn-icon-gap);
}

.btn__icon-mask--after,
.btn__icon-image--after {
    margin-inline: var(--btn-icon-gap) var(--btn-icon-inset);
}

.btn__icon-mask--small,
.btn__icon-image--small {
    --btn-icon-size: 0.75lh;
}

.btn__icon-mask--large,
.btn__icon-image--large {
    --btn-icon-size: 1.5lh;
}

.btn__icon-mask {
    inline-size: var(--btn-icon-size);
    background-color: currentcolor;
    -webkit-mask: var(--btn-icon) center / contain no-repeat;
            mask: var(--btn-icon) center / contain no-repeat;
}

.btn__icon-image {
    inline-size: auto;
    max-inline-size: calc(2.5 * var(--btn-icon-size));
    -o-object-fit: contain;
       object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* Sidebar layout for page templates that declare a second block area. */

.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: start;
}

@media (min-width: 1024px) {
    .page-with-sidebar {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    /* sidebar.js measures --sidebar-height: a taller sidebar scrolls until its end is in view, then stays. */
    .page-sidebar[data-sticky] {
        position: sticky;
        top: min(
            calc(var(--nav-height) + var(--space-4)),
            calc(100vh - var(--sidebar-height) - var(--space-4))
        );
    }
}

/* Below 1024px the single column stacks main above sidebar in source order. */
.page-main,
.page-sidebar {
    min-width: 0;
}

/* A 320px column takes the next size down for section and banner titles. */
.page-sidebar :is(.section-header-text, .cta-banner-text) :is(h2, h3) {
    font-size: var(--font-size-xl);
}

/* From 1024px the main column and sidebar share the page container's edges. */
@media (min-width: 1024px) {
    .page-with-sidebar {
        max-width: 1200px;
        margin-inline: auto;
        padding-inline: 24px;
    }

    .page-with-sidebar .container {
        padding-inline: 0;
    }

    .page-sidebar .cta-banner {
        border-radius: var(--radius-surface);
    }

    .page-sidebar .cta-banner .container {
        padding-inline: var(--space-6);
    }

    /* Four steps still fit one row in the narrower main column. */
    .page-main .grid-process {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}
/* The seal of the page: credential cards carry the accent hairline the credential pills use. */
.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-8) var(--space-6);
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--c-accent) 35%, transparent);
    border-radius: var(--radius-surface);
    text-align: center;
}

.cert-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 96px;
    margin-block-end: var(--space-3);
    color: var(--c-accent-text);
}

.cert-badge-icon img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

.cert-badge-seal {
    width: 64px;
    height: 64px;
}

.cert-badge-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.cert-badge-sub {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
}

.cert-badge-scope {
    max-width: 32ch;
    font-size: var(--font-size-body-compact);
    line-height: 1.7;
    color: var(--text-muted);
}

.cert-badge-validity {
    font-size: var(--font-size-label);
    font-weight: var(--font-weight-semibold);
    color: var(--c-accent-text);
}

.cert-badge-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-block-start: auto;
    color: var(--c-accent-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.cert-badge-link:hover {
    color: var(--c-accent-hover);
}

.grid-certs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
    justify-content: var(--c-align-flex, center);
    gap: var(--space-6);
}

@media (max-width: 480px) {
    .grid-certs {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Credential pills carry the seal: Fairuzi text, lightened, on dark glass so any photo keeps it readable. */
.cert-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: color-mix(in srgb, var(--c-accent) 16%, rgb(8 13 20 / 60%));
    border: 1px solid color-mix(in srgb, var(--c-accent) 55%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    color: color-mix(in srgb, var(--c-accent) 80%, var(--primitive-white));
    font-family: var(--font-latin);
    font-weight: 600;
}

:root[lang='en'] .cert-pill {
    letter-spacing: 0.4px;
}

/* On a solid surface the pill takes the badge treatment instead of glass. */
.cert-pill--solid {
    background: var(--badge-pill-bg);
    border: var(--badge-pill-border);
    color: var(--badge-pill-fg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/*
 * Image beside text, stacking to one column on narrow viewports.
 * The grid mirrors with `dir`, so no direction-specific rules are needed; the
 * flipped variant swaps the source order instead of using physical sides.
 */

/* The columns start 40px sideways (motion.css); unclipped, that widens a phone page. */
.image-text {
    overflow-x: clip;
}

.image-text-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

/* A tall image gets the prototype's 440px column and leaves the text the rest. */
@media (min-width: 900px) {
    .image-text-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-16);
    }

    .image-text--tall .image-text-inner {
        grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    }

    .image-text--tall.image-text--flipped .image-text-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    }

    .image-text--tall .image-text-media img {
        width: 100%;
        max-height: none;
    }

    /* Media second in the grid, while staying first in the DOM so the stacked
       order on phones is always image then text. */
    .image-text--flipped .image-text-media {
        order: 2;
    }
}

.image-text-media {
    --reveal-shift: 40px;

    min-width: 0;
}

/* The columns enter from the middle outward: each starts 40px toward the other. */
.image-text-body {
    --reveal-shift: -40px;
}

[dir='rtl'] .image-text-media {
    --reveal-shift: -40px;
}

[dir='rtl'] .image-text-body {
    --reveal-shift: 40px;
}

@media (min-width: 900px) {
    .image-text--flipped .image-text-media {
        --reveal-shift: -40px;
    }

    .image-text--flipped .image-text-body {
        --reveal-shift: 40px;
    }

    [dir='rtl'] .image-text--flipped .image-text-media {
        --reveal-shift: 40px;
    }

    [dir='rtl'] .image-text--flipped .image-text-body {
        --reveal-shift: -40px;
    }
}

/*
 * The image sizes to itself and carries the corners: a wide image spans the
 * column, a tall one stays narrow and centred with nothing painted beside it.
 */
.image-text-media img {
    display: block;
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    margin-inline: auto;
    border-radius: var(--radius-overlay);
}

.image-text-body .rich-text-body h2 {
    font-size: var(--font-size-display-section);
    line-height: 1.25;
    text-wrap: balance;
}

.image-text-cta {
    margin-block-start: var(--space-6);
}

/* The button is inline-flex, so it follows the text. */
.image-text-body {
    text-align: var(--c-align, start);
}

/* The body inherits rich-text prose styling; it should not also be centred. */
.image-text-body .rich-text-body {
    max-width: none;
    margin-inline: 0;
}

/* Lists read as check rows: a tinted check well, a hairline between rows. */
.image-text-body .rich-text-body ul {
    list-style: none;
    margin-block: var(--space-8) 0;
    padding-inline-start: 0;
}

.image-text-body .rich-text-body ul > li {
    position: relative;
    min-height: 28px;
    padding-block: 14px;
    padding-inline-start: 42px;
    border-block-end: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

.image-text-body .rich-text-body ul > li:last-child {
    border-block-end: none;
}

.image-text-body .rich-text-body li + li {
    margin-block-start: 0;
}

.image-text-body .rich-text-body ul > li::before,
.image-text-body .rich-text-body ul > li::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.image-text-body .rich-text-body ul > li::before {
    background: color-mix(in srgb, var(--c-accent) 12%, transparent);
}

.image-text-body .rich-text-body ul > li::after {
    background: var(--c-accent-text);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%2720 6 9 17 4 12%27/%3E%3C/svg%3E")
        center / 14px 14px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%2720 6 9 17 4 12%27/%3E%3C/svg%3E")
        center / 14px 14px no-repeat;
}

/* In the light theme the cards take the section's colour and stand out by their hairline. */
.light-mode .image-text-stat {
    --image-text-card-fill: var(--bg-primary);
}

/* Number cards under the text, side by side. */
.image-text-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-4);
    margin-block-start: var(--space-8);
}

.image-text-stat {
    padding: 28px var(--space-6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-surface);
    background: var(--c-card, var(--image-text-card-fill, var(--bg-card)));
    text-align: center;
}

.image-text-stat-value {
    font-size: var(--font-size-display-section);
    font-weight: 800;
    line-height: 1;
    color: var(--c-value, var(--c-card-accent));
}

.image-text-stat-label {
    margin-block-start: var(--space-2);
    font-size: var(--font-size-ui);
    color: var(--c-label, var(--c-card-fg-muted));
}

/* No prototype equivalent; built from the token vocabulary. */

.faq-list {
    max-width: 820px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-surface);
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--c-accent);
}

/* Reads as a control, not prose: pointer, hover colour and a marker. */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    cursor: pointer;
    font-size: var(--font-size-title-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--c-accent-text);
}

.faq-question:focus-visible {
    outline: none;
}

/* On the item, since its overflow: hidden would clip a ring drawn around the summary. */
.faq-item:has(> .faq-question:focus-visible) {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

/* min-width: 0 lets a long unbroken word wrap instead of pushing the marker out. */
.faq-question-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.faq-marker {
    flex: none;
    width: 16px;
    height: 16px;
    transition: transform var(--duration-fast) var(--ease-standard);
}

.faq-item[open] .faq-marker {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-6) var(--space-5);
}

.faq-answer.rich-text-body {
    max-width: none;
    margin-inline: 0;
}

.section--beside .faq-list {
    max-width: none;
    margin-inline: 0;
}

@media (prefers-reduced-motion: reduce) {
    .faq-marker {
        transition: none;
    }
}

.sector-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-chip);
    text-align: center;
    flex: 0 1 176px;
    min-width: 0;
}

.sector-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-chip);
    background: color-mix(in srgb, var(--c-accent) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent-text);
}

.sector-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.grid-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.sector-icon-wrap img {
    width: 26px;
    height: 26px;
    -o-object-fit: contain;
       object-fit: contain;
}

/* Beside chips with icons, an icon-less chip keeps the icon's height so its label lines up; no empty well is drawn. */
.grid-sectors:has(.sector-icon-wrap) .sector-chip:not(:has(.sector-icon-wrap))::before {
    content: '';
    height: 56px;
}

/* A long label wraps inside the chip instead of widening it past its neighbours. */
.sector-label {
    overflow-wrap: anywhere;
}

a.sector-chip {
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

a.sector-chip:hover {
    transform: translateY(var(--card-lift-hover));
    box-shadow:
        var(--shadow-hover-dark),
        0 0 0 1px var(--c-accent);
    border-color: var(--c-accent);
}

.light-mode a.sector-chip:hover {
    box-shadow:
        0 16px 40px color-mix(in srgb, var(--color-blue) 15%, transparent),
        0 0 0 1px var(--c-accent);
}

a.sector-chip:focus-visible {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

@media (prefers-reduced-motion: reduce) {
    a.sector-chip:hover {
        transform: none;
    }
}

/* Two chips per row on phones instead of one narrow column. */
@media (max-width: 479px) {
    .sector-chip {
        flex-basis: calc(50% - 8px);
    }
}
.icon-tiles-grid {
    --icon-tile-size: 160px;
    --icon-tile-gap: 16px;
    --icon-tile-icon: 72px;

    display: flex;
    flex-wrap: wrap;
    gap: var(--icon-tile-gap);
    justify-content: var(--c-align-flex, center);
    max-width: calc(6 * var(--icon-tile-size) + 5 * var(--icon-tile-gap));
    margin-block: 0;
    margin-inline: var(--c-align-before, auto) var(--c-align-after, auto);
    padding: 0;
    list-style: none;
}

.icon-tile {
    display: flex;
    flex: 0 1 var(--icon-tile-size);
    min-width: 0;
}

.icon-tile--text {
    --tile-fill: var(--palette-text);
    --tile-fg: var(--palette-background);
}

.icon-tile--muted-text {
    --tile-fill: var(--palette-muted-text);
    --tile-fg: var(--palette-background);
}

.icon-tile--accent {
    --tile-fill: var(--palette-accent);
    --tile-fg: var(--palette-background);
}

.icon-tile--background {
    --tile-fill: var(--palette-background);
    --tile-fg: var(--palette-text);
}

.icon-tile--fairuzi {
    --tile-fill: var(--palette-fairuzi);
    --tile-fg: var(--palette-navy);
}

.icon-tile--darkblue {
    --tile-fill: var(--palette-darkblue);
    --tile-fg: var(--palette-white);
}

.icon-tile--white {
    --tile-fill: var(--palette-white);
    --tile-fg: var(--palette-navy);
}

.icon-tile--navy {
    --tile-fill: var(--palette-navy);
    --tile-fg: var(--palette-white);
}

.icon-tile--icon-text {
    --tile-icon: var(--palette-text);
}

.icon-tile--icon-muted-text {
    --tile-icon: var(--palette-muted-text);
}

.icon-tile--icon-accent {
    --tile-icon: var(--palette-accent);
}

.icon-tile--icon-background {
    --tile-icon: var(--palette-background);
}

.icon-tile--icon-fairuzi {
    --tile-icon: var(--palette-fairuzi);
}

.icon-tile--icon-darkblue {
    --tile-icon: var(--palette-darkblue);
}

.icon-tile--icon-white {
    --tile-icon: var(--palette-white);
}

.icon-tile--icon-navy {
    --tile-icon: var(--palette-navy);
}

.icon-tile--label-text {
    --tile-label: var(--palette-text);
}

.icon-tile--label-muted-text {
    --tile-label: var(--palette-muted-text);
}

.icon-tile--label-accent {
    --tile-label: var(--palette-accent);
}

.icon-tile--label-background {
    --tile-label: var(--palette-background);
}

.icon-tile--label-fairuzi {
    --tile-label: var(--palette-fairuzi);
}

.icon-tile--label-darkblue {
    --tile-label: var(--palette-darkblue);
}

.icon-tile--label-white {
    --tile-label: var(--palette-white);
}

.icon-tile--label-navy {
    --tile-label: var(--palette-navy);
}

.icon-tile-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    aspect-ratio: 1;
    padding: 16px 12px;
    background: var(--tile-fill, var(--bg-card));
    border: 0;
    border-radius: var(--radius-chip);
    color: var(--tile-fg, var(--text-primary));
    font: inherit;
    text-align: center;
    text-decoration: none;
}

.icon-tile-icon {
    flex-shrink: 0;
    width: var(--icon-tile-icon);
    height: var(--icon-tile-icon);
    -o-object-fit: contain;
       object-fit: contain;
}

.icon-tile-icon--mask {
    background-color: var(--tile-icon);
    -webkit-mask: var(--icon-tile-mask) center / contain no-repeat;
            mask: var(--icon-tile-mask) center / contain no-repeat;
}

.icon-tile-label {
    color: var(--tile-label, inherit);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.icon-tile--toggle .icon-tile-body {
    background: var(--tile-fill, var(--c-accent));
    color: var(--tile-fg, var(--c-accent-foreground));
    cursor: pointer;
}

.icon-tile-mark {
    position: relative;
    width: 40px;
    height: 40px;
}

.icon-tile-mark::before,
.icon-tile-mark::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: calc(50% - 1.5px);
    height: 3px;
    border-radius: 2px;
    background: currentcolor;
}

.icon-tile-mark::after {
    transform: rotate(90deg);
}

[aria-expanded='true'] > .icon-tile-mark::after {
    transform: rotate(0deg);
    opacity: 0;
}

html:not(.js-enhanced) .icon-tile--toggle {
    display: none;
}

.js-enhanced .icon-tile--overflow {
    display: none;
}

.js-enhanced .icon-tiles-grid.is-expanded .icon-tile--overflow {
    display: flex;
}

a.icon-tile-body,
button.icon-tile-body {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

a.icon-tile-body:hover,
button.icon-tile-body:hover {
    transform: translateY(var(--card-lift-hover));
    box-shadow:
        var(--shadow-hover-dark),
        0 0 0 1px var(--c-accent);
}

.light-mode a.icon-tile-body:hover,
.light-mode button.icon-tile-body:hover {
    box-shadow:
        0 16px 40px color-mix(in srgb, var(--color-blue) 15%, transparent),
        0 0 0 1px var(--c-accent);
}

a.icon-tile-body:focus-visible,
button.icon-tile-body:focus-visible,
.icon-tile-body[tabindex='-1']:focus-visible {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

.js-motion .icon-tile-mark::after {
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    a.icon-tile-body:hover,
    button.icon-tile-body:hover {
        transform: none;
    }
}

@media (max-width: 479px) {
    .icon-tiles-grid {
        --icon-tile-icon: 56px;
    }

    .icon-tile {
        flex-basis: calc(50% - var(--icon-tile-gap) / 2);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    padding: 0 24px;
}

.stat-number {
    font-family: var(--font-latin);
    font-variant-numeric: tabular-nums;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--c-value, var(--c-accent));
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--c-label, var(--text-muted));
    font-weight: var(--font-weight-medium);
}

.stat-icon {
    color: var(--c-accent-text);
    opacity: 0.7;
    margin-bottom: 4px;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Two figures a row on phones, so four figures don't fill a screen. */
@media (max-width: 480px) {
    .grid-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-6) var(--space-2);
    }

    .stats-row .stat-item {
        padding-inline: 0;
    }
}

.stats-row .stat-icon {
    display: block;
    block-size: 28px;
}

.stat-icon img {
    display: block;
    width: 28px;
    height: 28px;
    -o-object-fit: contain;
       object-fit: contain;
}

/*
 * A long label wraps without pushing its figure out of line: the item is a
 * column with the number on a fixed baseline above the label.
 */
.stats-row .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
}

.stats-row .stat-label {
    overflow-wrap: anywhere;
}

/* The divider between items assumes a single row; the grid wraps, so drop it. */
.stats-row .stat-item::after {
    content: none;
}
.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 16px;
}

.process-step > * {
    max-width: 100%;
}

.process-step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-accent);
    border: 2px solid var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-latin);
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--c-accent-foreground);
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

/* Each marker takes the seal in step order once its step reveals. */
.js-motion .process-step-number {
    transition:
        background-color var(--duration-moderate) var(--ease-standard),
        color var(--duration-moderate) var(--ease-standard);
    transition-delay: calc(var(--step-index, 0) * 250ms + 300ms);
}

.js-motion .process-step:not(.is-revealed) .process-step-number {
    background: var(--bg-card);
    color: var(--c-accent-text);
}

@media (prefers-reduced-motion: reduce) {
    .js-motion .process-step-number {
        transition: none;
    }

    .js-motion .process-step:not(.is-revealed) .process-step-number {
        background: var(--c-accent);
        color: var(--c-accent-foreground);
    }
}

.process-step-title {
    font-size: var(--font-size-title-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Inline, so a long title still wraps beside it. */
.process-step-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-inline-end: var(--space-2);
    vertical-align: middle;
    -o-object-fit: contain;
       object-fit: contain;
}

.process-step-text {
    font-size: var(--font-size-body-compact);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 32ch;
}

.grid-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    position: relative;
}

@media (max-width: 1024px) {
    .grid-process {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }
}

/* Runs from this step's circle toward the next step; the last step has none. */
.process-steps .process-connector {
    position: absolute;
    top: 32px;
    inset-inline: calc(50% + 32px) auto;
    width: calc(100% - 64px);
    height: 2px;
    background: var(--c-accent-line);
    overflow: hidden;
}

/* Steps with very different description lengths still align as a set. */
.process-steps .process-step-text {
    margin-inline: auto;
}

@media (max-width: 1024px) {
    .process-steps .process-connector {
        display: none;
    }
}

/* Title beside: the steps run down as a timeline, number at the start, connector between numbers. */
.section--beside .grid-process {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.section--beside .process-step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    -moz-column-gap: var(--space-5);
         column-gap: var(--space-5);
    align-items: start;
    padding: 0 0 var(--space-8);
    text-align: start;
}

.section--beside .process-step:last-child {
    padding-block-end: 0;
}

.section--beside .process-step-number {
    grid-row: span 2;
    margin-bottom: 0;
}

.section--beside .process-step-title {
    margin-block: var(--space-4) var(--space-2);
}

.process-steps.section--beside .process-step-text {
    max-width: 60ch;
    margin-inline: 0;
}

.process-steps.section--beside .process-connector {
    display: block;
    top: 64px;
    bottom: 0;
    inset-inline: 31px auto;
    width: 2px;
    height: auto;
}

/* No prototype equivalent; built from the token vocabulary. */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

.location-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-surface);
}

.location-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
}

.location-address,
.location-hours {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--font-size-body-compact);
    line-height: 1.7;
}

/* A 44px row, so stacked phone and email links stay separate tap targets. */
.location-contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--c-accent-text);
    text-decoration: none;
    font-size: var(--font-size-body-compact);
}

.location-contact:hover {
    text-decoration: underline;
}

.location-card {
    scroll-margin-block-start: calc(var(--nav-height, 80px) + var(--space-4));
}

.location-card.is-selected {
    border-color: var(--c-accent);
}

/* ---------- Map layout ---------- */

.branch-map {
    position: relative;
    margin: 0 0 var(--space-8);
    aspect-ratio: 896 / 819;
}

/* Every edge of the frame cuts through land, so the land fades to nothing at the edges, rounder at the corners. */
.branch-map-land {
    display: block;
    width: 100%;
    height: 100%;
    fill: color-mix(in srgb, var(--text-primary) 7%, transparent);
    stroke: color-mix(in srgb, var(--c-accent) 45%, transparent);
    stroke-width: 1;
    stroke-linejoin: round;
    -webkit-mask-image:
        radial-gradient(ellipse 75% 75% at 50% 50%, #000 60%, transparent 100%),
        linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
        linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
            mask-image:
        radial-gradient(ellipse 75% 75% at 50% 50%, #000 60%, transparent 100%),
        linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
        linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-composite: source-in, xor;
            mask-composite: intersect;
}

.branch-seal {
    position: absolute;
    inset-inline-start: var(--x);
    inset-block-start: var(--y);
    width: 28px;
    height: 28px;
    margin-inline-start: -14px;
    margin-block-start: -14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-primary);
}

.branch-seal-stamp {
    width: 26px;
    height: 26px;
    overflow: visible;
    transition: transform var(--duration-moderate) var(--ease-standard);
}

.branch-seal-edge {
    fill: var(--bg-card);
    stroke: var(--c-accent);
    stroke-width: 3;
    stroke-linejoin: round;
    transition: fill var(--duration-moderate) var(--ease-standard);
}

.branch-seal-check {
    fill: none;
    stroke: var(--c-accent-text);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.branch-seal:hover .branch-seal-stamp {
    transform: scale(1.12);
}

/* The chosen branch takes the seal, as a cleared process step does. */
.branch-seal[aria-current='true'] .branch-seal-stamp {
    transform: scale(1.2);
}

.branch-seal[aria-current='true'] .branch-seal-edge {
    fill: var(--c-accent);
}

.branch-seal[aria-current='true'] .branch-seal-check {
    stroke: var(--c-accent-foreground);
}

.branch-seal:focus-visible {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

.branch-seal-label {
    position: absolute;
    inset-inline-start: calc(100% + 2px);
    inset-block-start: 50%;
    translate: 0 -50%;
    white-space: nowrap;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

.branch-seal[aria-current='true'] .branch-seal-label {
    color: var(--c-accent-text);
}

/* Below 600px the seals and their labels would collide, so phones get the branch cards alone. */
@media (max-width: 599px) {
    .branch-map {
        display: none;
    }
}

.location-quote {
    margin-block-start: var(--space-3);
}

/* From 1024px: the header and the chosen branch at the start, the map beside them. */
@media (min-width: 1024px) {
    .section--beside.section--map > .container:has(> .branch-map) {
        display: grid;
        grid-template:
            'header map' auto
            'cards map' 1fr / minmax(0, 1fr) minmax(0, 2fr);
        gap: 0 var(--space-16);
        align-items: start;
    }

    .section--map .section-header {
        grid-area: header;
        position: static;
        margin-block-end: var(--space-8);
    }

    .section--map .branch-map {
        grid-area: map;
        margin-block-end: 0;
    }

    .section--map .locations-grid {
        grid-area: cards;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-4);
    }

    .section--map.is-interactive .location-card--placed:not(.is-selected) {
        display: none;
    }

    .section--map.is-interactive .location-card.is-selected {
        animation: branch-card-in var(--duration-moderate) var(--ease-standard);
    }
}

@keyframes branch-card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .branch-seal-stamp,
    .branch-seal-edge {
        transition: none;
    }

    .section--map.is-interactive .location-card.is-selected {
        animation: none;
    }
}

.location-card:focus-visible {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-surface);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    inset-inline-end: 20px;
    font-size: 120px;
    font-family: var(--font-latin);
    color: color-mix(in srgb, var(--c-accent) 8%, transparent);
    line-height: 1;
    pointer-events: none;
}

[dir='rtl'] .testimonial-card::before {
    content: '\201D';
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--color-rating);
}

.testimonial-text {
    font-size: var(--font-size-body);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-client-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.testimonial-client-role {
    font-size: var(--font-size-label);
    color: var(--c-accent-text);
    margin-top: 2px;
}

/* Testimonials Carousel */
.testimonials-track {
    display: flex;
    gap: var(--space-6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--space-1);
    scrollbar-width: none;
    padding-block-end: var(--space-2);
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonials .testimonial-card {
    flex: 0 0 min(360px, 85%);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* Quotes of very different lengths sit together: the attribution is pinned to
   the bottom so the cards end on a common line. */
.testimonials .testimonial-text {
    flex: 1;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle);
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: var(--focus-x, 50%) var(--focus-y, 50%);
       object-position: var(--focus-x, 50%) var(--focus-y, 50%);
    flex: none;
}

/* A transparent logo used as an avatar would vanish on the dark card. */
:root:not(.light-mode) .testimonial-avatar {
    background: var(--color-logo-plate);
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-block-start: var(--space-6);
}

.testimonials-btn {
    width: var(--btn-min-size);
    height: var(--btn-min-size);
    border-radius: var(--radius-control);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-standard);
}

.testimonials-btn svg {
    width: 20px;
    height: 20px;
}

.testimonials-controls[hidden] {
    display: none;
}

/* aria-disabled rather than disabled, so focus stays on the button at either end. Only the arrow dims, not the focus ring. */
.testimonials-btn[aria-disabled='true'] {
    cursor: default;
    pointer-events: none;
}

.testimonials-btn[aria-disabled='true'] svg {
    opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-btn {
        transition: none;
    }
}

/* Mirror the arrows so "next" points along the reading direction. */
[dir='rtl'] .testimonials-btn {
    transform: scaleX(-1);
}

.testimonials-btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent-text);
}

.testimonials-btn:focus-visible {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

.service-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(var(--card-lift-hover));
    box-shadow:
        var(--shadow-hover-dark),
        0 0 0 1px var(--c-accent);
    border-color: var(--c-accent);
}

.light-mode .service-card:hover {
    box-shadow:
        0 16px 40px color-mix(in srgb, var(--color-blue) 15%, transparent),
        0 0 0 1px var(--c-accent);
}

.service-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: var(--focus-x, 50%) var(--focus-y, 50%);
       object-position: var(--focus-x, 50%) var(--focus-y, 50%);
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image {
    transform: scale(1.04);
}

.service-card-body {
    padding: var(--card-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-icon-well);
    background: color-mix(in srgb, var(--c-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c-accent) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--c-accent-text);
    flex-shrink: 0;
    transition:
        background 0.2s,
        box-shadow 0.2s;
}

.service-card:hover .service-icon-wrapper {
    background: color-mix(in srgb, var(--c-accent) 20%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--c-accent) 20%, transparent);
}

.service-card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-card-text {
    font-size: var(--font-size-body-compact);
    color: var(--text-muted);
    line-height: 1.75;
    flex: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: var(--font-size-ui);
    font-weight: 600;
    color: var(--c-accent-text);
    transition: gap 0.2s;
}

.service-card:hover .service-card-link {
    gap: 10px;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

@media (max-width: 480px) {
    .grid-services {
        grid-template-columns: 1fr;
    }
}

.service-icon-wrapper img {
    width: 26px;
    height: 26px;
    -o-object-fit: contain;
       object-fit: contain;
}

/* A card with no image keeps the same body padding as one with. */
.service-grid .service-card-body {
    flex: 1;
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover,
    .service-card:hover .service-card-image {
        transform: none;
    }
}

/* No prototype equivalent; built from the token vocabulary. */

.article-list-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-list-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-surface);
    overflow: hidden;
    text-decoration: none;
    transition:
        transform var(--duration-moderate) var(--ease-standard),
        border-color var(--duration-moderate) var(--ease-standard),
        box-shadow var(--duration-moderate) var(--ease-standard);
}

.article-list-link:hover {
    transform: translateY(-4px);
    border-color: var(--c-accent);
    box-shadow: var(--shadow-hover-dark);
}

/* An article with no image leaves no blank frame: the img is simply absent and
   the body fills the card. */
.article-list-image {
    width: 100%;
    height: 180px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: var(--focus-x, 50%) var(--focus-y, 50%);
       object-position: var(--focus-x, 50%) var(--focus-y, 50%);
}

.article-list-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    flex: 1;
}

.article-list-date {
    font-size: var(--font-size-xs);
    color: var(--c-accent-text);
}

.article-list-title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.article-list-teaser {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--font-size-body-compact);
    line-height: 1.7;
}

.article-list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-block-start: var(--space-8);
}

.article-list-page {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--btn-min-size);
    padding: 0 var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-control);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.article-list-page:hover {
    border-color: var(--c-accent);
    color: var(--c-accent-text);
}

.article-list-page-of {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .article-list-link:hover {
        transform: none;
    }
}

/* One reading column: the header and image share .rich-text-body's measure. */

.article {
    padding-block-end: var(--article-padding-end);
}

/* Same font-size as .rich-text-body, so 75ch resolves to the same width. */
.article-header,
.article-image {
    max-width: 75ch;
    margin-inline: auto;
    font-size: var(--font-size-body);
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-block: var(--space-12) var(--space-8);
}

.article-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--text-primary);
}

.article-date {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--c-accent-text);
}

.article-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: var(--focus-x, 50%) var(--focus-y, 50%);
       object-position: var(--focus-x, 50%) var(--focus-y, 50%);
    border-radius: var(--radius-surface);
    margin-block-end: var(--space-8);
}

/*
 * The two images are stacked and the top one clipped. Both use the same
 * fixed-ratio format, so they always align.
 */

.ba-wrapper {
    position: relative;
    border-radius: var(--radius-overlay);
    overflow: hidden;
    box-shadow: var(--shadow-media);
    aspect-ratio: 16 / 7;
    touch-action: pan-y;
}

/* Both images crop alike, so a taller frame keeps them aligned. */
@media (max-width: 640px) {
    .ba-wrapper {
        aspect-ratio: 4 / 3;
    }
}

.ba-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

/* Full size always; clip-path crops it so the image inside keeps the wrapper's
   dimensions and both halves stay the same size. Starts at the middle without JS. */
.ba-clip {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 50%);
}

[dir='rtl'] .ba-clip {
    clip-path: inset(0 50% 0 0);
}

.ba-label {
    position: absolute;
    top: var(--space-4);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: #fff;
    z-index: 2;
}

/* Logical, so the labels follow the reading direction of the page. */
.ba-label-before {
    inset-inline-start: var(--space-4);
    background: var(--primitive-red-700);
}

.ba-label-after {
    inset-inline-end: var(--space-4);
    background: color-mix(in srgb, var(--c-accent) 90%, transparent);
    color: var(--c-accent-foreground);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 50%;
    width: 3px;
    margin-inline-start: -1.5px;
    background: #fff;
    box-shadow: 0 0 6px rgb(0 0 0 / 35%);
    pointer-events: none;
    z-index: 3;
}

.ba-grip {
    position: absolute;
    top: 50%;

    /* Physical, to match translate(), which ignores direction. */
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-circle);
    background: var(--primitive-white);
    color: var(--primitive-navy-950);
    box-shadow: 0 2px 10px rgb(0 0 0 / 35%);
}

.ba-grip svg {
    width: 24px;
    height: 24px;
}

/* The handle glows only while the slider is in use. */
.ba-wrapper:hover .ba-handle,
.ba-range:focus-visible ~ .ba-handle {
    box-shadow: var(--shadow-glow-sm);
}

.ba-wrapper:hover .ba-grip,
.ba-range:focus-visible ~ .ba-handle .ba-grip {
    box-shadow: var(--shadow-glow-md);
}

/*
 * The range input is the real control: invisible, but focusable and arrow-key
 * operable. It covers the whole image, so pan-y leaves vertical swipes to the page.
 */
.ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    touch-action: pan-y;
    z-index: 4;
}

.ba-range:focus-visible {
    outline: none;
}

.ba-wrapper:has(.ba-range:focus-visible) {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    box-shadow:
        0 0 0 6px var(--focus-ring-inner),
        var(--shadow-media);
}

.ba-caption {
    margin-block-start: var(--space-6);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* Form bundle markup: a row div per field, sized by the editor's width-* choice, errors listed above the input. */

/* The form bundle's spam trap: bots fill it, so visitors must never see it. */
.honung {
    display: none;
}

.quote-request-form form {
    max-width: 720px;
    margin-inline: auto;
}

.quote-request-form form > div {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-5) var(--space-4);
}

.quote-request-form form > div > * {
    grid-column: span 12;
    min-width: 0;
}

.quote-request-form .width-half {
    grid-column: span 6;
}

.quote-request-form .width-one-third {
    grid-column: span 4;
}

.quote-request-form .width-two-thirds {
    grid-column: span 8;
}

.quote-request-form .width-one-quarter {
    grid-column: span 3;
}

.quote-request-form .width-three-quarters {
    grid-column: span 9;
}

/* A sidebar or a phone has no room for fields side by side. */
@media (max-width: 640px) {
    .quote-request-form form > div > [class*='width-'] {
        grid-column: span 12;
    }
}

.page-sidebar .quote-request-form form > div > [class*='width-'] {
    grid-column: span 12;
}

.quote-request-form label {
    display: block;
    margin-block-end: var(--space-2);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.quote-request-form label.required::after {
    content: ' *';
    color: var(--color-danger-text);
}

.quote-request-form input:not([type='checkbox'], [type='radio'], [type='hidden']),
.quote-request-form select,
.quote-request-form textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--field-border);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--font-size-input);
    transition:
        border-color var(--motion-interaction),
        box-shadow var(--motion-interaction);
}

.quote-request-form textarea {
    min-height: 140px;
    resize: vertical;
}

.quote-request-form input::-moz-placeholder, .quote-request-form textarea::-moz-placeholder {
    color: var(--text-muted);
}

.quote-request-form input::placeholder,
.quote-request-form textarea::placeholder {
    color: var(--text-muted);
}

.quote-request-form input:focus-visible,
.quote-request-form select:focus-visible,
.quote-request-form textarea:focus-visible {
    outline: 2px solid var(--focus-ring-outer);
    outline-offset: 2px;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 6px var(--focus-ring-inner);
}

.quote-request-form [aria-invalid='true'] {
    border-color: var(--color-danger-text);
}

/* Typed left to right, but aligned with the other fields on Arabic pages. */
.quote-request-form input[type='email'],
.quote-request-form input[type='tel'],
.quote-request-form input[type='url'] {
    direction: ltr;
}

[dir='rtl'] .quote-request-form input[type='email'],
[dir='rtl'] .quote-request-form input[type='tel'],
[dir='rtl'] .quote-request-form input[type='url'] {
    text-align: right;
}

.quote-request-form form ul {
    margin: 0 0 var(--space-2);
    padding: 0;
    list-style: none;
    color: var(--color-danger-text);
    font-size: var(--font-size-sm);
}

.quote-request-form .help-text {
    margin-block-start: var(--space-2);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.quote-request-form .choice {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.quote-request-form .choice label {
    margin: 0;
    font-weight: normal;
}

.quote-request-form .choice input {
    width: 20px;
    height: 20px;
    accent-color: var(--c-accent);
}

@media (max-width: 640px) {
    .quote-request-form .btn {
        width: 100%;
    }
}

.page-sidebar .quote-request-form .btn {
    width: 100%;
}

.quote-proof {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    max-width: 720px;
    margin: var(--space-8) auto 0;
    padding-block-start: var(--space-6);
    border-block-start: 1px solid var(--border-color);
}

.quote-proof-certs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.quote-proof-label,
.quote-proof-call {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.quote-proof-call a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* Drawn chevron at the inline end, so it keeps its inset in both directions. */
.quote-request-form select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    padding-inline-end: var(--space-10);
    background-image:
        linear-gradient(45deg, transparent 50%, currentcolor 50%),
        linear-gradient(135deg, currentcolor 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 17px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

[dir='rtl'] .quote-request-form select {
    background-position:
        17px 50%,
        22px 50%;
}

.quote-request-form input[type='file']::file-selector-button {
    margin-inline-end: var(--space-3);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--c-accent);
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--c-accent-text);
    font: inherit;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
}

.spacer {
    block-size: var(--spacer-size);
}

.spacer--xs {
    --spacer-size: var(--space-4);
}

.spacer--s {
    --spacer-size: var(--space-8);
}

.spacer--m {
    --spacer-size: var(--space-16);
}

.spacer--l {
    --spacer-size: var(--space-25);
}

.spacer--xl {
    --spacer-size: var(--space-50);
}

@media (max-width: 768px) {
    .spacer--s {
        --spacer-size: var(--space-6);
    }

    .spacer--m {
        --spacer-size: var(--space-12);
    }

    .spacer--l {
        --spacer-size: var(--space-16);
    }

    .spacer--xl {
        --spacer-size: var(--space-32);
    }
}

/* Error and search pages: fixed templates, no editor content. */

.system-page {
    padding-block: var(--space-16) var(--space-25);
}

.system-page .page-title {
    padding: 0;
    margin-block-end: var(--space-4);
}

.system-page-text {
    max-width: 60ch;
    margin-block-end: var(--space-8);
    color: var(--text-muted);
    font-size: var(--font-size-lead);
    line-height: 1.8;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    max-width: 640px;
    margin-block-end: var(--space-8);
}

.search-label {
    flex-basis: 100%;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.search-input {
    flex: 1 1 240px;
    min-width: 0;
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--field-border);
    border-radius: var(--radius-control);
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--font-size-input);
}

.search-input:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 1px;
    border-color: var(--c-accent);
}

.search-summary {
    margin-block-end: var(--space-4);
    color: var(--text-muted);
}

.search-results {
    display: grid;
    gap: var(--space-2);
    max-width: 640px;
    padding: 0;
    list-style: none;
}

.search-results a {
    display: block;
    padding: var(--space-4) var(--space-5);
    border: var(--card-border);
    border-radius: var(--radius-surface);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition:
        border-color var(--motion-interaction),
        color var(--motion-interaction);
}

.search-results a:hover {
    border-color: var(--c-accent);
    color: var(--c-accent-text);
}

.search-results a:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

/* Classes the text editor stores; the admin editor imports this file too. */

.tc-text {
    color: var(--palette-text);
}

.tc-muted-text {
    color: var(--palette-muted-text);
}

.tc-accent {
    color: var(--palette-accent);
}

.tc-background {
    color: var(--palette-background);
}

.tc-fairuzi {
    color: var(--palette-fairuzi);
}

.tc-darkblue {
    color: var(--palette-darkblue);
}

.tc-white {
    color: var(--palette-white);
}

.tc-navy {
    color: var(--palette-navy);
}

/* The editor nests links inside the colour span; the palette colour beats the link colour. */
.tc-text a,
.tc-muted-text a,
.tc-accent a,
.tc-background a,
.tc-fairuzi a,
.tc-darkblue a,
.tc-white a,
.tc-navy a {
    color: inherit;
}

.ts-s {
    font-size: var(--ts-s);
}

.ts-m {
    font-size: var(--ts-m);
}

.ts-l {
    font-size: var(--ts-l);
}

.ts-xl {
    font-size: var(--ts-xl);
}

.ts-xxl {
    font-size: var(--ts-xxl);
}

.ta-left {
    text-align: left;
}

.ta-center {
    text-align: center;
}

.ta-right {
    text-align: right;
}

.ta-justify {
    text-align: justify;
}

/* On the theme's own surfaces, editor colours that would vanish there take the surrounding text colour.
   A component with a chosen background keeps the editor's choice. */
:is(
        .section-header-text,
        .rich-text-body,
        .process-step-text,
        .hero--solid .hero-text,
        .theme-surface .ck-content
    ):not([class*='component--bg-'] *)
    :is(.tc-white, .tc-background) {
    color: inherit;
}

:root:not(.light-mode)
    :is(
        .section-header-text,
        .rich-text-body,
        .process-step-text,
        .hero--solid .hero-text,
        .theme-surface .ck-content
    ):not([class*='component--bg-'] *)
    :is(.tc-navy, .tc-darkblue) {
    color: inherit;
}

.container {
    width: 100%;
}

@media (min-width: 640px) {

    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {

    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {

    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {

    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {

    .container {
        max-width: 1536px;
    }
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.shrink {
    flex-shrink: 1;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize {
    resize: both;
}

.rounded {
    border-radius: 0.25rem;
}

.ring {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.filter {
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

