:root {
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/site-assets/fonts/barlow-condensed/400-latin-0.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: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/site-assets/fonts/barlow-condensed/500-latin-0.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: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/site-assets/fonts/barlow-condensed/600-latin-0.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: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/site-assets/fonts/barlow-condensed/700-latin-0.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: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/site-assets/fonts/barlow/400-latin-0.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: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/site-assets/fonts/barlow/500-latin-0.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: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/site-assets/fonts/barlow/600-latin-0.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: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/site-assets/fonts/barlow/700-latin-0.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;
}
html {
  font-size: 62.5%;
}

:root {
  --primary: hsla(113.75, 24.49%, 38.43%, 1);
  --primary-5: hsla(113.75, 24.49%, 38.43%, 0.05);
  --primary-10: hsla(113.75, 24.49%, 38.43%, 0.1);
  --primary-20: hsla(113.75, 24.49%, 38.43%, 0.2);
  --primary-30: hsla(113.75, 24.49%, 38.43%, 0.3);
  --primary-40: hsla(113.75, 24.49%, 38.43%, 0.4);
  --primary-50: hsla(113.75, 24.49%, 38.43%, 0.5);
  --primary-60: hsla(113.75, 24.49%, 38.43%, 0.6);
  --primary-70: hsla(113.75, 24.49%, 38.43%, 0.7);
  --primary-80: hsla(113.75, 24.49%, 38.43%, 0.8);
  --primary-90: hsla(113.75, 24.49%, 38.43%, 0.9);
  --primary-d-1: hsla(113.75, 24.49%, 32.28%, 1);
  --primary-d-2: hsla(113.75, 24.49%, 26.13%, 1);
  --primary-d-3: hsla(113.75, 24.49%, 19.98%, 1);
  --primary-d-4: hsla(113.75, 24.49%, 13.84%, 1);
  --primary-l-1: hsla(113.75, 24.49%, 48.28%, 1);
  --primary-l-2: hsla(113.75, 24.49%, 58.13%, 1);
  --primary-l-3: hsla(113.75, 24.49%, 67.98%, 1);
  --primary-l-4: hsla(113.75, 24.49%, 77.84%, 1);
  --secondary: hsla(41.64, 93.19%, 46.08%, 1);
  --secondary-5: hsla(41.64, 93.19%, 46.08%, 0.05);
  --secondary-10: hsla(41.64, 93.19%, 46.08%, 0.1);
  --secondary-20: hsla(41.64, 93.19%, 46.08%, 0.2);
  --secondary-30: hsla(41.64, 93.19%, 46.08%, 0.3);
  --secondary-40: hsla(41.64, 93.19%, 46.08%, 0.4);
  --secondary-50: hsla(41.64, 93.19%, 46.08%, 0.5);
  --secondary-60: hsla(41.64, 93.19%, 46.08%, 0.6);
  --secondary-70: hsla(41.64, 93.19%, 46.08%, 0.7);
  --secondary-80: hsla(41.64, 93.19%, 46.08%, 0.8);
  --secondary-90: hsla(41.64, 93.19%, 46.08%, 0.9);
  --secondary-d-1: hsla(41.64, 93.19%, 38.71%, 1);
  --secondary-d-2: hsla(41.64, 93.19%, 31.33%, 1);
  --secondary-d-3: hsla(41.64, 93.19%, 23.96%, 1);
  --secondary-d-4: hsla(41.64, 93.19%, 16.59%, 1);
  --secondary-l-1: hsla(41.64, 93.19%, 54.71%, 1);
  --secondary-l-2: hsla(41.64, 93.19%, 63.33%, 1);
  --secondary-l-3: hsla(41.64, 93.19%, 71.96%, 1);
  --secondary-l-4: hsla(41.64, 93.19%, 80.59%, 1);
  --tertiary: hsla(115.38, 24.07%, 21.18%, 1);
  --tertiary-5: hsla(115.38, 24.07%, 21.18%, 0.05);
  --tertiary-10: hsla(115.38, 24.07%, 21.18%, 0.1);
  --tertiary-20: hsla(115.38, 24.07%, 21.18%, 0.2);
  --tertiary-30: hsla(115.38, 24.07%, 21.18%, 0.3);
  --tertiary-40: hsla(115.38, 24.07%, 21.18%, 0.4);
  --tertiary-50: hsla(115.38, 24.07%, 21.18%, 0.5);
  --tertiary-60: hsla(115.38, 24.07%, 21.18%, 0.6);
  --tertiary-70: hsla(115.38, 24.07%, 21.18%, 0.7);
  --tertiary-80: hsla(115.38, 24.07%, 21.18%, 0.8);
  --tertiary-90: hsla(115.38, 24.07%, 21.18%, 0.9);
  --tertiary-d-1: hsla(115.38, 24.07%, 17.79%, 1);
  --tertiary-d-2: hsla(115.38, 24.07%, 14.4%, 1);
  --tertiary-d-3: hsla(115.38, 24.07%, 11.01%, 1);
  --tertiary-d-4: hsla(115.38, 24.07%, 7.62%, 1);
  --tertiary-l-1: hsla(115.38, 24.07%, 33.79%, 1);
  --tertiary-l-2: hsla(115.38, 24.07%, 46.4%, 1);
  --tertiary-l-3: hsla(115.38, 24.07%, 59.01%, 1);
  --tertiary-l-4: hsla(115.38, 24.07%, 71.62%, 1);
  --bg-body: hsla(105, 25%, 96.86%, 1);
  --bg-surface: hsla(0, 0%, 100%, 1);
  --text-body: hsla(113.33, 17.65%, 30%, 1);
  --text-title: hsla(112, 24.59%, 11.96%, 1);
  --border-primary: hsla(114, 24%, 50%, 0.25);
  --shadow-primary: hsla(114, 24%, 20%, 0.15);
  --light: hsla(0, 0%, 100%, 1);
  --light-5: hsla(0, 0%, 100%, 0.05);
  --light-10: hsla(0, 0%, 100%, 0.1);
  --light-20: hsla(0, 0%, 100%, 0.2);
  --light-30: hsla(0, 0%, 100%, 0.3);
  --light-40: hsla(0, 0%, 100%, 0.4);
  --light-50: hsla(0, 0%, 100%, 0.5);
  --light-60: hsla(0, 0%, 100%, 0.6);
  --light-70: hsla(0, 0%, 100%, 0.7);
  --light-80: hsla(0, 0%, 100%, 0.8);
  --light-90: hsla(0, 0%, 100%, 0.9);
  --dark: hsla(110.77, 25.49%, 10%, 1);
  --dark-5: hsla(110.77, 25.49%, 10%, 0.05);
  --dark-10: hsla(110.77, 25.49%, 10%, 0.1);
  --dark-20: hsla(110.77, 25.49%, 10%, 0.2);
  --dark-30: hsla(110.77, 25.49%, 10%, 0.3);
  --dark-40: hsla(110.77, 25.49%, 10%, 0.4);
  --dark-50: hsla(110.77, 25.49%, 10%, 0.5);
  --dark-60: hsla(110.77, 25.49%, 10%, 0.6);
  --dark-70: hsla(110.77, 25.49%, 10%, 0.7);
  --dark-80: hsla(110.77, 25.49%, 10%, 0.8);
  --dark-90: hsla(110.77, 25.49%, 10%, 0.9);
  --success: hsla(142.43, 71.81%, 29.22%, 1);
  --success-5: hsla(142.43, 71.81%, 29.22%, 0.05);
  --success-10: hsla(142.43, 71.81%, 29.22%, 0.1);
  --success-20: hsla(142.43, 71.81%, 29.22%, 0.2);
  --success-30: hsla(142.43, 71.81%, 29.22%, 0.3);
  --success-40: hsla(142.43, 71.81%, 29.22%, 0.4);
  --success-50: hsla(142.43, 71.81%, 29.22%, 0.5);
  --success-60: hsla(142.43, 71.81%, 29.22%, 0.6);
  --success-70: hsla(142.43, 71.81%, 29.22%, 0.7);
  --success-80: hsla(142.43, 71.81%, 29.22%, 0.8);
  --success-90: hsla(142.43, 71.81%, 29.22%, 0.9);
  --error: hsla(0, 73.71%, 41.76%, 1);
  --error-5: hsla(0, 73.71%, 41.76%, 0.05);
  --error-10: hsla(0, 73.71%, 41.76%, 0.1);
  --error-20: hsla(0, 73.71%, 41.76%, 0.2);
  --error-30: hsla(0, 73.71%, 41.76%, 0.3);
  --error-40: hsla(0, 73.71%, 41.76%, 0.4);
  --error-50: hsla(0, 73.71%, 41.76%, 0.5);
  --error-60: hsla(0, 73.71%, 41.76%, 0.6);
  --error-70: hsla(0, 73.71%, 41.76%, 0.7);
  --error-80: hsla(0, 73.71%, 41.76%, 0.8);
  --error-90: hsla(0, 73.71%, 41.76%, 0.9);
  --text-xs: clamp(1.01rem, calc(-0.23vw + 1.34rem), 1.26rem);
  --text-s: clamp(1.35rem, calc(-0.07vw + 1.44rem), 1.42rem);
  --text-m: clamp(1.6rem, calc(0.19vw + 1.54rem), 1.8rem);
  --text-l: clamp(1.8rem, calc(0.55vw + 1.62rem), 2.4rem);
  --text-xl: clamp(2.02rem, calc(1.09vw + 1.68rem), 3.2rem);
  --text-2xl: clamp(2.28rem, calc(1.84vw + 1.69rem), 4.26rem);
  --text-3xl: clamp(2.56rem, calc(2.89vw + 1.64rem), 5.68rem);
  --text-4xl: clamp(2.88rem, calc(4.34vw + 1.49rem), 7.58rem);
  --space-4xs: clamp(0.49rem, calc(-0.03vw + 0.53rem), 0.52rem);
  --space-3xs: clamp(0.66rem, calc(0.04vw + 0.64rem), 0.7rem);
  --space-2xs: clamp(0.82rem, calc(0.16vw + 0.77rem), 0.99rem);
  --space-xs: clamp(1.02rem, calc(0.35vw + 0.91rem), 1.4rem);
  --space-s: clamp(1.28rem, calc(0.65vw + 1.07rem), 1.98rem);
  --space-m: clamp(1.6rem, calc(1.11vw + 1.24rem), 2.8rem);
  --space-l: clamp(2rem, calc(1.81vw + 1.42rem), 3.96rem);
  --space-xl: clamp(2.5rem, calc(2.87vw + 1.58rem), 5.6rem);
  --space-2xl: clamp(3.13rem, calc(4.44vw + 1.71rem), 7.92rem);
  --space-3xl: clamp(3.91rem, calc(6.75vw + 1.75rem), 11.19rem);
  --space-4xl: clamp(4.88rem, calc(10.13vw + 1.64rem), 15.83rem);
}

:root.theme-alt .theme-inverted,
:root.theme-alt .theme-always-default,
:root.theme-default .theme-inverted .theme-always-default {
  --primary: hsla(113.75, 24.49%, 38.43%, 1);
  --primary-5: hsla(113.75, 24.49%, 38.43%, 0.05);
  --primary-10: hsla(113.75, 24.49%, 38.43%, 0.1);
  --primary-20: hsla(113.75, 24.49%, 38.43%, 0.2);
  --primary-30: hsla(113.75, 24.49%, 38.43%, 0.3);
  --primary-40: hsla(113.75, 24.49%, 38.43%, 0.4);
  --primary-50: hsla(113.75, 24.49%, 38.43%, 0.5);
  --primary-60: hsla(113.75, 24.49%, 38.43%, 0.6);
  --primary-70: hsla(113.75, 24.49%, 38.43%, 0.7);
  --primary-80: hsla(113.75, 24.49%, 38.43%, 0.8);
  --primary-90: hsla(113.75, 24.49%, 38.43%, 0.9);
  --primary-d-1: hsla(113.75, 24.49%, 32.28%, 1);
  --primary-d-2: hsla(113.75, 24.49%, 26.13%, 1);
  --primary-d-3: hsla(113.75, 24.49%, 19.98%, 1);
  --primary-d-4: hsla(113.75, 24.49%, 13.84%, 1);
  --primary-l-1: hsla(113.75, 24.49%, 48.28%, 1);
  --primary-l-2: hsla(113.75, 24.49%, 58.13%, 1);
  --primary-l-3: hsla(113.75, 24.49%, 67.98%, 1);
  --primary-l-4: hsla(113.75, 24.49%, 77.84%, 1);
  --secondary: hsla(41.64, 93.19%, 46.08%, 1);
  --secondary-5: hsla(41.64, 93.19%, 46.08%, 0.05);
  --secondary-10: hsla(41.64, 93.19%, 46.08%, 0.1);
  --secondary-20: hsla(41.64, 93.19%, 46.08%, 0.2);
  --secondary-30: hsla(41.64, 93.19%, 46.08%, 0.3);
  --secondary-40: hsla(41.64, 93.19%, 46.08%, 0.4);
  --secondary-50: hsla(41.64, 93.19%, 46.08%, 0.5);
  --secondary-60: hsla(41.64, 93.19%, 46.08%, 0.6);
  --secondary-70: hsla(41.64, 93.19%, 46.08%, 0.7);
  --secondary-80: hsla(41.64, 93.19%, 46.08%, 0.8);
  --secondary-90: hsla(41.64, 93.19%, 46.08%, 0.9);
  --secondary-d-1: hsla(41.64, 93.19%, 38.71%, 1);
  --secondary-d-2: hsla(41.64, 93.19%, 31.33%, 1);
  --secondary-d-3: hsla(41.64, 93.19%, 23.96%, 1);
  --secondary-d-4: hsla(41.64, 93.19%, 16.59%, 1);
  --secondary-l-1: hsla(41.64, 93.19%, 54.71%, 1);
  --secondary-l-2: hsla(41.64, 93.19%, 63.33%, 1);
  --secondary-l-3: hsla(41.64, 93.19%, 71.96%, 1);
  --secondary-l-4: hsla(41.64, 93.19%, 80.59%, 1);
  --tertiary: hsla(115.38, 24.07%, 21.18%, 1);
  --tertiary-5: hsla(115.38, 24.07%, 21.18%, 0.05);
  --tertiary-10: hsla(115.38, 24.07%, 21.18%, 0.1);
  --tertiary-20: hsla(115.38, 24.07%, 21.18%, 0.2);
  --tertiary-30: hsla(115.38, 24.07%, 21.18%, 0.3);
  --tertiary-40: hsla(115.38, 24.07%, 21.18%, 0.4);
  --tertiary-50: hsla(115.38, 24.07%, 21.18%, 0.5);
  --tertiary-60: hsla(115.38, 24.07%, 21.18%, 0.6);
  --tertiary-70: hsla(115.38, 24.07%, 21.18%, 0.7);
  --tertiary-80: hsla(115.38, 24.07%, 21.18%, 0.8);
  --tertiary-90: hsla(115.38, 24.07%, 21.18%, 0.9);
  --tertiary-d-1: hsla(115.38, 24.07%, 17.79%, 1);
  --tertiary-d-2: hsla(115.38, 24.07%, 14.4%, 1);
  --tertiary-d-3: hsla(115.38, 24.07%, 11.01%, 1);
  --tertiary-d-4: hsla(115.38, 24.07%, 7.62%, 1);
  --tertiary-l-1: hsla(115.38, 24.07%, 33.79%, 1);
  --tertiary-l-2: hsla(115.38, 24.07%, 46.4%, 1);
  --tertiary-l-3: hsla(115.38, 24.07%, 59.01%, 1);
  --tertiary-l-4: hsla(115.38, 24.07%, 71.62%, 1);
  --bg-body: hsla(105, 25%, 96.86%, 1);
  --bg-surface: hsla(0, 0%, 100%, 1);
  --text-body: hsla(113.33, 17.65%, 30%, 1);
  --text-title: hsla(112, 24.59%, 11.96%, 1);
  --border-primary: hsla(114, 24%, 50%, 0.25);
  --shadow-primary: hsla(114, 24%, 20%, 0.15);
  --light: hsla(0, 0%, 100%, 1);
  --light-5: hsla(0, 0%, 100%, 0.05);
  --light-10: hsla(0, 0%, 100%, 0.1);
  --light-20: hsla(0, 0%, 100%, 0.2);
  --light-30: hsla(0, 0%, 100%, 0.3);
  --light-40: hsla(0, 0%, 100%, 0.4);
  --light-50: hsla(0, 0%, 100%, 0.5);
  --light-60: hsla(0, 0%, 100%, 0.6);
  --light-70: hsla(0, 0%, 100%, 0.7);
  --light-80: hsla(0, 0%, 100%, 0.8);
  --light-90: hsla(0, 0%, 100%, 0.9);
  --dark: hsla(110.77, 25.49%, 10%, 1);
  --dark-5: hsla(110.77, 25.49%, 10%, 0.05);
  --dark-10: hsla(110.77, 25.49%, 10%, 0.1);
  --dark-20: hsla(110.77, 25.49%, 10%, 0.2);
  --dark-30: hsla(110.77, 25.49%, 10%, 0.3);
  --dark-40: hsla(110.77, 25.49%, 10%, 0.4);
  --dark-50: hsla(110.77, 25.49%, 10%, 0.5);
  --dark-60: hsla(110.77, 25.49%, 10%, 0.6);
  --dark-70: hsla(110.77, 25.49%, 10%, 0.7);
  --dark-80: hsla(110.77, 25.49%, 10%, 0.8);
  --dark-90: hsla(110.77, 25.49%, 10%, 0.9);
  --success: hsla(142.43, 71.81%, 29.22%, 1);
  --success-5: hsla(142.43, 71.81%, 29.22%, 0.05);
  --success-10: hsla(142.43, 71.81%, 29.22%, 0.1);
  --success-20: hsla(142.43, 71.81%, 29.22%, 0.2);
  --success-30: hsla(142.43, 71.81%, 29.22%, 0.3);
  --success-40: hsla(142.43, 71.81%, 29.22%, 0.4);
  --success-50: hsla(142.43, 71.81%, 29.22%, 0.5);
  --success-60: hsla(142.43, 71.81%, 29.22%, 0.6);
  --success-70: hsla(142.43, 71.81%, 29.22%, 0.7);
  --success-80: hsla(142.43, 71.81%, 29.22%, 0.8);
  --success-90: hsla(142.43, 71.81%, 29.22%, 0.9);
  --error: hsla(0, 73.71%, 41.76%, 1);
  --error-5: hsla(0, 73.71%, 41.76%, 0.05);
  --error-10: hsla(0, 73.71%, 41.76%, 0.1);
  --error-20: hsla(0, 73.71%, 41.76%, 0.2);
  --error-30: hsla(0, 73.71%, 41.76%, 0.3);
  --error-40: hsla(0, 73.71%, 41.76%, 0.4);
  --error-50: hsla(0, 73.71%, 41.76%, 0.5);
  --error-60: hsla(0, 73.71%, 41.76%, 0.6);
  --error-70: hsla(0, 73.71%, 41.76%, 0.7);
  --error-80: hsla(0, 73.71%, 41.76%, 0.8);
  --error-90: hsla(0, 73.71%, 41.76%, 0.9);
}

:root.theme-alt,
:root.theme-default .theme-inverted,
:root.theme-default .theme-always-alt,
:root.theme-alt .theme-inverted .theme-always-alt {
  --bg-body: hsla(114, 25%, 7.84%, 1);
  --bg-surface: hsla(115.38, 19.4%, 13.14%, 1);
  --text-body: hsla(115.38, 9.77%, 73.92%, 1);
  --text-title: hsla(100, 14.29%, 95.88%, 1);
  --border-primary: hsla(114, 24%, 75%, 0.12);
  --shadow-primary: hsla(114, 24%, 5%, 0.5);
  --light: hsla(0, 0%, 0%, 1);
  --light-5: hsla(0, 0%, 0%, 0.05);
  --light-10: hsla(0, 0%, 0%, 0.1);
  --light-20: hsla(0, 0%, 0%, 0.2);
  --light-30: hsla(0, 0%, 0%, 0.3);
  --light-40: hsla(0, 0%, 0%, 0.4);
  --light-50: hsla(0, 0%, 0%, 0.5);
  --light-60: hsla(0, 0%, 0%, 0.6);
  --light-70: hsla(0, 0%, 0%, 0.7);
  --light-80: hsla(0, 0%, 0%, 0.8);
  --light-90: hsla(0, 0%, 0%, 0.9);
  --dark: hsla(0, 0%, 100%, 1);
  --dark-5: hsla(0, 0%, 100%, 0.05);
  --dark-10: hsla(0, 0%, 100%, 0.1);
  --dark-20: hsla(0, 0%, 100%, 0.2);
  --dark-30: hsla(0, 0%, 100%, 0.3);
  --dark-40: hsla(0, 0%, 100%, 0.4);
  --dark-50: hsla(0, 0%, 100%, 0.5);
  --dark-60: hsla(0, 0%, 100%, 0.6);
  --dark-70: hsla(0, 0%, 100%, 0.7);
  --dark-80: hsla(0, 0%, 100%, 0.8);
  --dark-90: hsla(0, 0%, 100%, 0.9);
}
:root {
  --h1-size: var(--text-4xl);
  --h2-size: var(--text-3xl);
  --h3-size: var(--text-2xl);
  --h4-size: var(--text-xl);
  --h5-size: var(--text-l);
  --h6-size: var(--text-m);
}
:where(h1) { font-size: var(--h1-size); }
:where(h2) { font-size: var(--h2-size); }
:where(h3) { font-size: var(--h3-size); }
:where(h4) { font-size: var(--h4-size); }
:where(h5) { font-size: var(--h5-size); }
:where(h6) { font-size: var(--h6-size); }
/* ==========================================================================
   Design tokens
   The single source of truth for every design decision in the kit.
   Components reference these variables and never hard-code a value.
   Override them in a theme file to restyle everything at once.
   ========================================================================== */

:root {
  /* --- Brand palette ---------------------------------------------------- */
  --ui-color-brand: #455CE9;
  --ui-color-brand-strong: #334BD3;
  --ui-color-brand-soft: #EEF0FD;

  /* --- Neutrals --------------------------------------------------------- */
  --ui-color-ink: #141516;      /* primary text, dark surfaces */
  --ui-color-ink-2: #1C1D20;
  --ui-color-slate: #4B4E56;    /* secondary text */
  --ui-color-muted: #6F747D;    /* tertiary text, placeholders; >=4:1 on every surface */
  --ui-color-line: #E2E4E9;     /* borders, dividers */
  --ui-color-line-strong: #C9CCD2;
  --ui-color-surface: #FFFFFF;
  --ui-color-surface-2: #F7F8FA;
  --ui-color-surface-3: #EFF1F4;

  /* --- Status ----------------------------------------------------------- */
  --ui-color-success: #1F9D55;
  --ui-color-success-soft: #E6F5EC;
  --ui-color-warning: #C77700;
  --ui-color-warning-soft: #FDF3E2;
  --ui-color-danger: #D6323C;
  --ui-color-danger-soft: #FCEBEC;
  --ui-color-info: #2A6BD4;
  --ui-color-info-soft: #E9F1FD;

  /* --- Semantic aliases -------------------------------------------------- */
  /* A surface that is dark BY DESIGN (a CTA band, an inverted footer, a
     tooltip). Not --ui-color-ink: that is the text colour and flips in dark
     mode, which turned every dark band near-white under white text. */
  --ui-color-band: #141516;
  --ui-color-band-2: #1C1D20;
  --ui-bg: var(--ui-color-surface);
  --ui-bg-subtle: var(--ui-color-surface-2);
  --ui-bg-inset: var(--ui-color-surface-3);
  --ui-text: var(--ui-color-ink);
  --ui-text-soft: var(--ui-color-slate);
  --ui-text-muted: var(--ui-color-muted);
  --ui-border: var(--ui-color-line);
  --ui-border-strong: var(--ui-color-line-strong);
  --ui-accent: var(--ui-color-brand);
  --ui-accent-contrast: #FFFFFF;
  --ui-focus: var(--ui-color-brand);
  --ui-overlay: rgba(20, 21, 22, 0.55);

  /* --- Typography -------------------------------------------------------- */
  --ui-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --ui-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale: 1.200 (minor third) from a 16px base */
  --ui-text-xs: 0.694rem;
  --ui-text-sm: 0.833rem;
  --ui-text-base: 1rem;
  --ui-text-md: 1.2rem;
  --ui-text-lg: 1.44rem;
  --ui-text-xl: 1.728rem;
  --ui-text-2xl: 2.074rem;
  --ui-text-3xl: 2.488rem;
  --ui-text-4xl: 2.986rem;
  --ui-text-5xl: 3.583rem;

  --ui-weight-light: 300;
  --ui-weight-normal: 400;
  --ui-weight-medium: 500;
  --ui-weight-semibold: 600;

  --ui-leading-tight: 1.15;
  --ui-leading-snug: 1.35;
  --ui-leading-normal: 1.6;
  --ui-tracking-wide: 0.04em;
  --ui-tracking-wider: 0.18em;  /* spaced-out uppercase labels */

  /* --- Spacing: 4px base ------------------------------------------------- */
  --ui-space-0: 0;
  --ui-space-1: 0.25rem;
  --ui-space-2: 0.5rem;
  --ui-space-3: 0.75rem;
  --ui-space-4: 1rem;
  --ui-space-5: 1.5rem;
  --ui-space-6: 2rem;
  --ui-space-7: 3rem;
  --ui-space-8: 4rem;
  --ui-space-9: 6rem;
  --ui-space-10: 8rem;

  /* --- Radius ------------------------------------------------------------ */
  --ui-radius-sm: 4px;
  --ui-radius: 8px;
  --ui-radius-lg: 14px;
  --ui-radius-xl: 24px;
  --ui-radius-pill: 999px;
  --ui-radius-circle: 50%;

  /* --- Elevation --------------------------------------------------------- */
  --ui-shadow-sm: 0 1px 2px rgba(20, 21, 22, 0.06);
  --ui-shadow: 0 4px 16px rgba(20, 21, 22, 0.08);
  --ui-shadow-lg: 0 16px 48px rgba(20, 21, 22, 0.14);

  /* --- Motion ------------------------------------------------------------ */
  --ui-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ui-ease-power: cubic-bezier(0.76, 0, 0.24, 1);
  --ui-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ui-duration-fast: 150ms;
  --ui-duration: 250ms;
  --ui-duration-slow: 500ms;

  /* --- Layout ------------------------------------------------------------ */
  --ui-container: 1200px;
  --ui-container-wide: 1400px;
  --ui-gutter: var(--ui-space-5);

  /* Height of a `.ui-nav--sticky` bar, measured and kept current by ui.js.
     Defaults to 0 so pages without a sticky bar are unaffected, and so the
     layout is still correct if JS never runs. */
  --ui-nav-height: 0px;

  /* --- Stacking ---------------------------------------------------------- */
  --ui-z-base: 1;
  --ui-z-sticky: 100;
  --ui-z-dropdown: 200;
  --ui-z-overlay: 300;
  --ui-z-modal: 400;
  --ui-z-toast: 500;

  /* --- Controls ---------------------------------------------------------- */
  --ui-control-height: 2.75rem;
  --ui-control-height-sm: 2.25rem;
  --ui-control-height-lg: 3.25rem;
  --ui-control-padding-x: var(--ui-space-4);
  --ui-ring: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 35%, transparent);
}

/* Dark theme: flip the neutrals, keep every component untouched.
   Specificity 0,2,0 on purpose: a theme file sets its light tokens on :root
   and loads after this file, so a plain [data-ui-theme="dark"] (0,1,0) lost by
   source order and dark mode silently died the moment any theme was linked. */
/* A theme scoped to part of a page (<div class="ui-theme-x">) overrides
   --ui-color-* there, but the semantic aliases above were already resolved
   on :root and inherit as plain values. Re-declare them on every theme scope
   so they resolve again against the scoped colours. */
[class*="ui-theme-"] {
  --ui-bg: var(--ui-color-surface);
  --ui-bg-subtle: var(--ui-color-surface-2);
  --ui-bg-inset: var(--ui-color-surface-3);
  --ui-text: var(--ui-color-ink);
  --ui-text-soft: var(--ui-color-slate);
  --ui-text-muted: var(--ui-color-muted);
  --ui-border: var(--ui-color-line);
  --ui-border-strong: var(--ui-color-line-strong);
  --ui-accent: var(--ui-color-brand);
  --ui-focus: var(--ui-color-brand);
}

:root[data-ui-theme="dark"] {
  --ui-color-surface: #141516;
  --ui-color-surface-2: #1C1D20;
  --ui-color-surface-3: #26282C;
  /* Still dark, one step lighter than the page so the band reads as a band. */
  --ui-color-band: #22252A;
  --ui-color-band-2: #2B2F35;
  --ui-color-ink: #F4F5F7;
  --ui-color-slate: #B5B9C0;
  --ui-color-muted: #868B94;
  --ui-color-line: #2E3136;
  --ui-color-line-strong: #3D4147;
  --ui-color-brand-soft: #1E2340;
  /* Lift the brand for dark surfaces: the light-mode blue on the dark tint
     above is 2.89:1, below the 3:1 a non-text UI element needs. A lighter
     brand needs dark text on it, so --ui-accent-contrast flips with it. */
  --ui-color-brand: #7C8FF5;
  --ui-color-brand-strong: #9AA9F8;
  --ui-accent-contrast: #10131F;

  --ui-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ui-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --ui-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --ui-overlay: rgba(0, 0, 0, 0.65);

  --ui-color-success-soft: #12291D;
  --ui-color-warning-soft: #2C2113;
  --ui-color-danger-soft: #301619;
  --ui-color-info-soft: #14213A;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ui-duration-fast: 1ms;
    --ui-duration: 1ms;
    --ui-duration-slow: 1ms;
  }
}

/* --- The page's Brand colour drives the kit -------------------------------
   LAST, on purpose. Same specificity as the `:root` block above, so source
   order decides, and `:root[data-ui-theme="dark"]` still wins over this with
   its higher specificity — a dark page keeps its lifted brand.

   `--primary` is the Brand colour a website emits for itself. Without this the
   kit paints every branded affordance in its own default blue, so a red-branded
   site gets blue decoration and nothing anywhere reports it. With it, a
   decoration follows the brand the moment the brand is set, and a page that
   sets no Brand colour keeps the kit's default. */
:root {
  --ui-color-brand: var(--primary, #455CE9);
}


.ui-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ui-container {
  width: 100%;
  max-width: var(--ui-container);
  margin-inline: auto;
  padding-inline: var(--ui-gutter);
}

.ui-container--wide { max-width: var(--ui-container-wide); }
.ui-container--narrow { max-width: 760px; }
.ui-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--ui-radius);
}
.ui-ratio--16x9 { aspect-ratio: 16 / 9; }
.ui-ratio--4x3 { aspect-ratio: 4 / 3; }
.ui-ratio--1x1 { aspect-ratio: 1; }
.ui-ratio--21x9 { aspect-ratio: 21 / 9; }
.ui-ratio--3x4 { aspect-ratio: 3 / 4; }  /* portrait: a phone photo of a facade or roof */
/* Sharp corners. `.ui-ratio` rounds by 8px as a house default, so turning
   rounding OFF needs a modifier rather than the absence of one — the absence of
   `--rounded` only gets you back to 8px, which is not "no rounding". */
.ui-ratio--squared { border-radius: 0; }
/* Fill the height it is given instead of imposing a ratio, for a photo set
   beside a text column whose height the words decide. */
.ui-ratio--fill {
  aspect-ratio: auto;
  height: 100%;
  min-height: 14rem;
  /* Beside a long column, stretching to full height leaves a distorted
     sliver, so cap it and let the words scroll past a fixed frame. */
  max-height: 34rem;
  flex: 1;
}
.ui-ratio > img,
.ui-ratio > video,
.ui-ratio > iframe {
  /* Pinned to the box, so a missing or slow image cannot change its size.
     On a fresh project every photo is missing; the layout must hold. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  background-color: var(--ui-bg-inset);
}

.ui-figure { margin: 0; display: flex; flex-direction: column; gap: var(--ui-space-2); }
/* The photo is a flex item of the column, and a flex item's automatic minimum is its own
   content width: a 600px portrait ignored the figure's 294px at 390 and pushed the page to
   648px (measured). `min-width: 0` lets it shrink; `width: 100%` makes the figure's width
   its width instead of the file's, so a `.ui-media__figure` or a grid cell decides the size. */
.ui-figure > img, .ui-figure > picture { min-width: 0; width: 100%; }
.ui-figure figcaption { font-size: var(--ui-text-sm); color: var(--ui-text-muted); }

.ui-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--ui-z-modal);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--ui-space-4);
  padding: var(--ui-space-4);
  background-color: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ui-duration) var(--ui-ease),
              visibility 0s linear var(--ui-duration);
}

.ui-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--ui-duration) var(--ui-ease), visibility 0s linear 0s;
}

.ui-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ui-space-4);
  color: #fff;
  font-size: var(--ui-text-sm);
}

/* The counter changes on every slide, so let the digits keep a fixed width:
   without this the bar shifts sideways going from "9 / 12" to "10 / 12". */
.ui-lightbox__count {
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ui-tracking-wide);
  opacity: 0.85;
}

.ui-lightbox__stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
}

.ui-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--ui-radius);
}

.ui-lightbox__caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--ui-text-sm);
  text-align: center;
  min-height: 1.5em;
}

.ui-lightbox__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ui-control-height);
  height: var(--ui-control-height);
  flex-shrink: 0;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--ui-radius);
  color: #fff;
  font-size: var(--ui-text-md);
  cursor: pointer;
}

.ui-lightbox__button:hover { background-color: rgba(255, 255, 255, 0.22); }
.ui-lightbox__button:disabled { opacity: 0.35; cursor: default; }

.ui-lightbox__nav { display: flex; gap: var(--ui-space-2); }

/* A gallery lays out its own thumbnails. It used to have no base rule at all
   and only worked when an author also wrote `ui-grid ui-grid--3`; on its own
   it collapsed to 0x0. A component must not depend on a partner class an
   agent cannot see in the registry.
   The columns are :not(.ui-grid) because media.css loads AFTER layout.css:
   an unqualified rule here silently overrode .ui-grid--3 and turned an
   existing 3-column gallery into 4 columns. Combining the two classes has to
   keep meaning what the author wrote. */
.ui-gallery {
  display: grid;
  gap: var(--ui-gutter);
}
.ui-gallery:not(.ui-grid) {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

/* A gallery whose items open in the lightbox: show it is clickable. */
.ui-gallery [data-ui-lightbox-item],
.ui-gallery .ui-figure { cursor: zoom-in; }
.ui-gallery .ui-ratio > img { transition: transform var(--ui-duration) var(--ui-ease); }
.ui-gallery .ui-figure:hover .ui-ratio > img { transform: scale(1.04); }

/* Gallery layouts. The lightbox behaviour is the same for all of them; these
   only decide how the thumbnails sit on the page. */
.ui-gallery--masonry { display: block; columns: 3 16rem; gap: var(--ui-gutter); }
.ui-gallery--masonry > * { break-inside: avoid; margin-bottom: var(--ui-gutter); }
.ui-gallery--tight { --ui-gutter: var(--ui-space-2); }
/* Rounded corners: a CHOICE, and this is the only rule that delivers it.
   No layout sets a radius of its own. They used to, each at (0,2,0) and AFTER
   this rule, so a layout's hard-coded radius beat `--rounded` and the choice
   was silently inert for tiles and bento. A layout that wants rounding
   asks for this class. */
.ui-gallery--rounded .ui-ratio { border-radius: var(--ui-radius-lg); }
.ui-gallery--square .ui-ratio { aspect-ratio: 1; }

/* Tiles: the plain set. Square, equal, one tidy gap, nothing clever — the shape
   to reach for when the photographs are the point. `.ui-gallery.ui-gallery--tiles`
   for the same specificity reason as the bento below. */
.ui-gallery.ui-gallery--tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ui-space-2);
}
.ui-gallery--tiles .ui-ratio { aspect-ratio: 1; }
/* Two tiles sit side by side rather than leaving a hole; three keep the 2x2
   and the third takes the left of the second row. */
.ui-gallery--tiles .ui-figure { min-width: 0; }

/* Bento: three tiles, the third standing tall down the right-hand side. */
.ui-gallery.ui-gallery--bento {
  /* `.ui-gallery:not(.ui-grid)` sets the auto-fit columns at (0,2,0), so a bare
     `.ui-gallery--bento` (0,1,0) lost and the two-column track never applied.
     Naming the base class matches its specificity and wins on source order. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--ui-space-2);
}
.ui-gallery--bento .ui-ratio { aspect-ratio: auto; height: 100%; }
.ui-gallery--bento .ui-figure { min-height: 0; }
.ui-gallery--bento .ui-figure:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
.ui-gallery--bento .ui-figure:nth-child(1) .ui-ratio,
.ui-gallery--bento .ui-figure:nth-child(2) .ui-ratio { aspect-ratio: 4 / 3; }
.ui-lightbox--light { background-color: rgba(255, 255, 255, 0.96); }
.ui-lightbox--light .ui-lightbox__bar,
.ui-lightbox--light .ui-lightbox__caption { color: var(--ui-text); }
.ui-lightbox--light .ui-lightbox__button {
  background-color: var(--ui-bg-inset);
  border-color: var(--ui-border);
  color: var(--ui-text);
}

@media (max-width: 640px) {
  .ui-gallery--masonry { columns: 1; }
  /* The bento gives up its tall column on a phone. */
  /* Tiles keep their two-up grid on a phone: square thumbnails stay legible
     where one big photo would just be a smaller copy of the one above it. */
  .ui-gallery--bento { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .ui-gallery--bento .ui-figure:nth-child(3) { grid-column: auto; grid-row: auto; }
  .ui-gallery--bento .ui-figure:nth-child(3) .ui-ratio { aspect-ratio: 4 / 3; }
}

.tu-portfolio,
.tu-portfolio-skel {
  box-sizing: border-box;
  display: grid;
  gap: 1.25em;
  margin: 0;
  padding: 1.5em 1.75em;
  background: var(--tu-portfolio-bg, transparent);
  color: var(--tu-portfolio-ink, var(--text-body, inherit));
  border-radius: 12px;
  font-family: var(--tu-portfolio-font, var(--font-body, inherit));
  /* The website's body step, never the root: a template's root is 62.5% (see above). */
  font-size: var(--tu-portfolio-font-size, var(--text-m, inherit));
}
.tu-portfolio-grid {
  display: grid;
  gap: 1.25em;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tu-portfolio-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  min-width: 0;
  padding: 0.75em 0.75em 1em;
  /* The website surface, only under the website's inks (see above). */
  background: var(--tu-portfolio-card-bg, var(--bg-surface, transparent) var(--tu-portfolio-ink,) var(--tu-portfolio-heading,));
  border: 1px solid var(--tu-portfolio-border, var(--border-primary, transparent));
  border-radius: var(--tu-portfolio-card-radius, 12px);
  box-shadow: var(--tu-portfolio-card-box-shadow, none);
  overflow-wrap: break-word;
}
.ui-scroll-locked { overflow: hidden; }
/*
 * The lightbox takes the band's size (TDD-7445). It is the UI kit's, appended to the body by its script and marked by
 * galleryRuntime.ts when it opens. The kit sizes it with rem tokens, which a 62.5% root shrank (the counter and the
 * caption to 8.3px, the arrows to 12px, the buttons to 27.5px), so the tokens it reads are em here. A custom property
 * resolves where it is read: the bar and the buttons' row sit at the bar's 0.833em and a button's height at its own
 * glyph size, so those tokens are divided by that size and every part keeps the kit's ratio to the band (at a 16px
 * band, the kit's own sizes). The vendored slice stays as synced (src/core/uiKit/).
 */
.ui-lightbox[data-tu-portfolio-lightbox] {
  font-size: var(--tu-portfolio-font-size, var(--text-m, inherit));
  --ui-space-4: 1em;
  --ui-text-sm: 0.833em;
  --ui-space-2: calc(0.5em / 0.833);
  --ui-text-md: calc(1.2em / 0.833);
  --ui-control-height: calc(2.75em / 1.2);
}
.ui-lightbox[data-tu-portfolio-lightbox] .ui-lightbox__bar { --ui-space-4: calc(1em / 0.833); }
.ui-lightbox[data-tu-portfolio-lightbox] [hidden],
.tu-portfolio-gallery [hidden] { display: none; }
.tu-portfolio-gallery a { display: block; }
.tu-portfolio-card img,
.tu-portfolio-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--tu-portfolio-placeholder, var(--border-primary, currentColor));
  display: block;
}
.tu-portfolio-card h3 {
  margin: 0;
  padding: 0 0.25em;
  font-family: var(--tu-portfolio-heading-font, var(--font-heading, inherit));
  font-size: 1.125em;
  line-height: 1.3;
  color: var(--tu-portfolio-heading, var(--text-title, inherit));
}
/* A template's `p` rule beats plain inheritance (see above). */
.tu-portfolio-card p {
  margin: 0;
  padding: 0 0.25em;
  font-size: inherit;
  line-height: 1.5;
  color: var(--tu-portfolio-ink, var(--text-body, inherit));
}
/* The chips sit at the foot of the card, so the chips of one grid row line up. */
.tu-portfolio-chips { display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: auto; padding: 0 0.25em; }
.tu-portfolio-chip {
  font-size: 0.8125em;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.2em 0.75em;
  border-radius: 999px;
  background: var(--tu-portfolio-chip-bg, color-mix(in srgb, var(--primary, currentColor) 12%, transparent));
  color: var(--tu-portfolio-heading, var(--text-title, inherit));
}
.tu-portfolio-empty { margin: 0; opacity: 0.7; }
.tu-portfolio-empty:empty { display: none; }
/*
 * Published empty state (TDD-6831): a host with no project is published `hidden`, and the band the builder wraps it
 * in (`data-trustup-feed="portfolio"`) with it. The live runtime removes the attribute once the feed answers a
 * project. The canvas never stamps `hidden`, so editors still see and style the band.
 */
.tu-portfolio[hidden],
.tu-portfolio-skel[hidden],
[data-trustup-feed="portfolio"]:has(.tu-portfolio[hidden], .tu-portfolio-skel[hidden]) { display: none; }
/* A link to the page that lists every project, while the feed has none (`server/live-feeds/feed-links.ts`). */
[data-tu-portfolio-link-feed][hidden],
li:has(> [data-tu-portfolio-link-feed][hidden]) { display: none; }
.tu-portfolio-more {
  justify-self: start;
  font-size: 0.9em;
  color: var(--tu-portfolio-link, inherit);
  text-underline-offset: 0.2em;
}


.tu-reviews,
.tu-reviews-skel {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1em;
  margin: 0;
  padding: 1.5em 1.75em;
  background: var(--tu-reviews-bg, transparent);
  color: var(--tu-reviews-ink, var(--text-body, inherit));
  border-radius: 12px;
  font-family: var(--tu-reviews-font, var(--font-body, inherit));
  /* The website's body step, never the root: a template's root is 62.5% (see above). */
  font-size: var(--tu-reviews-font-size, var(--text-m, inherit));
  line-height: 1.5;
}
/* A long review wraps inside its card: the card is a column and breaks an unbroken word. */
.tu-reviews-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  min-width: 0;
  padding: 1.25em 1.5em;
  /* The website surface, only under the website's inks (see above). */
  background: var(--tu-reviews-card-bg, var(--bg-surface, transparent) var(--tu-reviews-ink,) var(--tu-reviews-heading,));
  border: 1px solid var(--tu-reviews-border, var(--border-primary, transparent));
  border-radius: var(--tu-reviews-card-radius, 12px);
  box-shadow: var(--tu-reviews-card-box-shadow, none);
  overflow-wrap: break-word;
}
.tu-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.75em;
}
.tu-reviews-author { font-weight: 650; color: var(--tu-reviews-heading, var(--text-title, inherit)); }
.tu-reviews-stars {
  letter-spacing: 0.12em;
  color: var(--tu-reviews-star-empty, var(--border-primary, currentColor));
  font-size: 0.95em;
}
.tu-reviews-star.is-filled { color: var(--tu-reviews-star, #e6a117); }
.tu-reviews-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* The date reads in the card's ink: faded to 70% it read 4.35:1 on the default card (see above). */
.tu-reviews-meta { color: var(--tu-reviews-ink, var(--text-body, inherit)); font-size: 0.8125em; }
.tu-reviews-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.05em 0.5em;
  border: 1px solid var(--tu-reviews-border, var(--border-primary, currentColor));
  border-radius: 999px;
}
.tu-reviews-mark {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
/* The Google summary heads the band (the live runtime draws it from the feed). */
.tu-reviews-summary {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  margin: 0;
  font-size: inherit;
  color: var(--tu-reviews-heading, var(--text-title, inherit));
}
.tu-reviews-summary .tu-reviews-mark { width: 1.5em; height: 1.5em; }
.tu-reviews-summary-score { font-size: 1.25em; font-weight: 700; }
.tu-reviews-summary-count { opacity: 0.8; font-size: 0.875em; }
/* The summary, the text and the reply are paragraphs: a template's `p` rule beats plain inheritance (see above). */
.tu-reviews-text { margin: 0; font-size: inherit; white-space: pre-wrap; color: var(--tu-reviews-ink, var(--text-body, inherit)); }
/* The owner's answer, inset on the page ground behind an edge of the Brand colour. */
.tu-reviews-reply {
  margin: 0.25em 0 0;
  font-size: inherit;
  padding: 0.6em 0.85em;
  background: var(--tu-reviews-reply-bg, var(--bg-body, transparent) var(--tu-reviews-ink,) var(--tu-reviews-heading,));
  border-left: 3px solid var(--tu-reviews-reply-border-color, var(--primary, currentColor));
  border-radius: 0 8px 8px 0;
  color: var(--tu-reviews-ink, var(--text-body, inherit));
}
.tu-reviews-empty { grid-column: 1 / -1; margin: 0; opacity: 0.7; }
.tu-reviews-empty:empty { display: none; }
/*
 * No review, no reviews section (Wouter, 2026-10-17; decision N3, TDD-6831): a title such as "Avis clients" over
 * nothing reads as a broken page. A host with no review is published `hidden`, and the band the builder wraps it in
 * (`data-trustup-feed="reviews"`) with it, until the live feed answers a review. Only the published markup carries
 * `hidden`: the canvas keeps the band so editors can see and style it.
 */
.tu-reviews[hidden],
.tu-reviews-skel[hidden],
[data-trustup-feed="reviews"]:has(.tu-reviews[hidden], .tu-reviews-skel[hidden]) { display: none; }
/* A link to the page that lists every review, while the feed has none (`server/live-feeds/feed-links.ts`). */
[data-tu-reviews-link-feed][hidden],
li:has(> [data-tu-reviews-link-feed][hidden]) { display: none; }


.tu-contact,
.tu-contact-skel {
  box-sizing: border-box;
  display: grid;
  gap: 1rem;
  margin: 0;
  font-family: var(--tu-contact-font, var(--font-body, inherit));
}
.tu-contact-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tu-contact-two-column .tu-contact-field:has(textarea),
.tu-contact-two-column button,
.tu-contact-two-column [data-instatic-form-message] {
  grid-column: 1 / -1;
}
.tu-contact-field {
  display: grid;
  gap: 0.35rem;
}
.tu-contact-field[hidden] {
  display: none;
}
.tu-contact-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}
.tu-contact-choice {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.tu-contact-choice legend {
  padding: 0;
  margin-bottom: 0.35rem;
}
.tu-contact-option {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.tu-contact input:not([type="checkbox"]):not([type="radio"]),
.tu-contact select,
.tu-contact textarea {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--tu-contact-border, var(--border-primary, currentColor));
  border-radius: var(--tu-contact-radius, 0.375rem);
  background: transparent;
  color: inherit;
}
/* Native selects ignore inherited line height and use different intrinsic font metrics. */
.tu-contact input:not([type="checkbox"]):not([type="radio"]),
.tu-contact select {
  height: var(--tu-contact-control-height, calc(1.5em + 1.2rem + 2px));
}
.tu-contact textarea {
  min-height: 8rem;
  resize: vertical;
}
.tu-contact button {
  font: inherit;
  font-family: var(--tu-contact-button-font-family, inherit);
  font-size: var(--tu-contact-button-font-size, inherit);
  font-weight: var(--tu-contact-button-font-weight, 600);
  line-height: var(--tu-contact-button-line-height, inherit);
  letter-spacing: var(--tu-contact-button-letter-spacing, inherit);
  text-transform: var(--tu-contact-button-text-transform, none);
  text-decoration: var(--tu-contact-button-text-decoration, none);
  white-space: var(--tu-contact-button-white-space, normal);
  padding: var(--tu-contact-button-padding, 0.7rem 1.25rem);
  min-height: var(--tu-contact-button-min-height, auto);
  border: var(--tu-contact-button-border, 1px solid var(--tu-contact-button-bg, var(--primary, currentColor)));
  border-radius: var(--tu-contact-button-radius, var(--tu-contact-radius, 0.375rem));
  background: var(--tu-contact-button-bg, var(--primary, transparent));
  color: var(--tu-contact-button-ink, var(--light, inherit));
  box-shadow: var(--tu-contact-button-box-shadow, none);
  opacity: var(--tu-contact-button-opacity, 1);
  transform: var(--tu-contact-button-transform, none);
  transition: var(--tu-contact-button-transition, none);
  cursor: var(--tu-contact-button-cursor, pointer);
  justify-self: start;
}
/*
 * Disabled keeps its own dimming rather than inheriting the theme opacity
 * hook: a submit the visitor cannot press has to read as unavailable even
 * when the theme's enabled recipe made it fully opaque.
 */
.tu-contact button:disabled {
  cursor: default;
  opacity: 0.6;
}
/*
 * The focus ring is the one declaration that must NOT default to none.
 * Defaulting the outline to none in the base rule above would delete the
 * browser's focus ring on every unthemed site, which is a keyboard user
 * losing the only indication of where they are. The revert keyword hands the
 * decision back to the user agent when no theme has an opinion, so the
 * default ring survives and a theme that projects its own still wins.
 */
.tu-contact button:focus-visible {
  outline: var(--tu-contact-button-outline, revert);
  outline-offset: var(--tu-contact-button-outline-offset, revert);
}
.tu-contact [data-instatic-form-message]:empty {
  display: none;
}
.tu-contact-field [data-instatic-field-error] {
  color: var(--tu-contact-error, var(--editor-danger, inherit));
  font-size: 0.85em;
}
/* Only ever painted when scripts are off, so it must carry its own emphasis:
   it is the sole hint that the button below will not do anything. */
.tu-contact-noscript {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid currentColor;
  border-radius: var(--tu-contact-radius, 0.375rem);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.tu-contact-skel-row {
  height: 2.6rem;
  border-radius: var(--tu-contact-radius, 0.375rem);
  background: currentColor;
  opacity: 0.08;
}
.tu-contact-skel-tall {
  height: 8rem;
}


.tu-legal {
  box-sizing: border-box;
  max-width: var(--tu-legal-measure, 72ch);
  margin-inline: auto;
  padding: var(--tu-legal-space, 2.5rem) var(--tu-legal-gutter, clamp(1.5rem, 5vw, 3rem));
  background: var(--tu-legal-paper, var(--bg-surface, transparent));
  color: var(--tu-legal-ink, var(--text-body, inherit));
  border-radius: var(--tu-legal-radius, 12px);
  font-family: var(--tu-legal-font, var(--font-body, inherit));
  font-size: var(--tu-legal-size, var(--text-m, inherit));
  line-height: 1.75;
  overflow-wrap: break-word;
}
/*
 * The document's own heading. Two selectors because the two documents produce
 * it differently and both have to look the same: the cookie policy's module
 * renders the class itself, while the privacy policy's heading is page content
 * whose class the publisher drops (see legalDocCss's note in
 * privacyPolicyPage.ts). The structural selector is what styles the editable
 * one.
 */
.tu-legal-title,
.tu-legal h1 {
  margin: 0 0 1rem;
  font-family: var(--tu-legal-heading-font, var(--font-heading, inherit));
  font-size: var(--tu-legal-title-size, 2em);
  line-height: 1.2;
  color: var(--tu-legal-heading, var(--text-title, inherit));
}
.tu-legal-body h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--tu-legal-heading-font, var(--font-heading, inherit));
  font-size: 1.25em;
  color: var(--tu-legal-heading, var(--text-title, inherit));
}
.tu-legal-body h3 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--tu-legal-heading-font, var(--font-heading, inherit));
  font-size: 1.05em;
  color: inherit;
}
.tu-legal-body p { margin: 0 0 1rem; color: inherit; }
/*
 * The prose takes the card's type, never the website's running text: a theme
 * rule on the element itself (`p { font-size: 14px }`, a body role
 * `:where(p) { font-size: var(--body-size) }`) beats inheritance whatever its
 * specificity, so the card's size and leading are inherited explicitly here.
 */
.tu-legal-body p,
.tu-legal-body li { font-size: inherit; line-height: inherit; font-weight: inherit; }
.tu-legal-body a {
  color: var(--tu-legal-link, var(--primary, inherit));
  text-decoration: underline;
  word-break: break-word;
}
/*
 * The controller card - the "who processes your data" block both documents
 * close with. The class survives in the cookie policy (module prop rendered as
 * raw HTML) but not in the privacy policy (page content, class dropped), which
 * left the card an unstyled bullet list on every published policy. The
 * structural selector matches the list the editable document produces.
 */
.tu-legal-contact,
.tu-legal-body > ul:last-child {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--tu-legal-card, transparent);
  border: 1px solid var(--tu-legal-border, var(--border-primary, currentColor));
  border-radius: var(--tu-legal-radius, 12px);
  color: inherit;
}
.tu-legal-contact li,
.tu-legal-body > ul:last-child li { margin: 0.35rem 0; }


.tu-legal {
  box-sizing: border-box;
  max-width: var(--tu-legal-measure, 72ch);
  margin-inline: auto;
  padding: var(--tu-legal-space, 2.5rem) var(--tu-legal-gutter, clamp(1.5rem, 5vw, 3rem));
  background: var(--tu-legal-paper, var(--bg-surface, transparent));
  color: var(--tu-legal-ink, var(--text-body, inherit));
  border-radius: var(--tu-legal-radius, 12px);
  font-family: var(--tu-legal-font, var(--font-body, inherit));
  font-size: var(--tu-legal-size, var(--text-m, inherit));
  line-height: 1.75;
  overflow-wrap: break-word;
}
/*
 * The document's own heading. Two selectors because the two documents produce
 * it differently and both have to look the same: the cookie policy's module
 * renders the class itself, while the privacy policy's heading is page content
 * whose class the publisher drops (see legalDocCss's note in
 * privacyPolicyPage.ts). The structural selector is what styles the editable
 * one.
 */
.tu-legal-title,
.tu-legal h1 {
  margin: 0 0 1rem;
  font-family: var(--tu-legal-heading-font, var(--font-heading, inherit));
  font-size: var(--tu-legal-title-size, 2em);
  line-height: 1.2;
  color: var(--tu-legal-heading, var(--text-title, inherit));
}
.tu-legal-body h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--tu-legal-heading-font, var(--font-heading, inherit));
  font-size: 1.25em;
  color: var(--tu-legal-heading, var(--text-title, inherit));
}
.tu-legal-body h3 {
  margin: 1.25rem 0 0.4rem;
  font-family: var(--tu-legal-heading-font, var(--font-heading, inherit));
  font-size: 1.05em;
  color: inherit;
}
.tu-legal-body p { margin: 0 0 1rem; color: inherit; }
/*
 * The prose takes the card's type, never the website's running text: a theme
 * rule on the element itself (`p { font-size: 14px }`, a body role
 * `:where(p) { font-size: var(--body-size) }`) beats inheritance whatever its
 * specificity, so the card's size and leading are inherited explicitly here.
 */
.tu-legal-body p,
.tu-legal-body li { font-size: inherit; line-height: inherit; font-weight: inherit; }
.tu-legal-body a {
  color: var(--tu-legal-link, var(--primary, inherit));
  text-decoration: underline;
  word-break: break-word;
}
/*
 * The controller card - the "who processes your data" block both documents
 * close with. The class survives in the cookie policy (module prop rendered as
 * raw HTML) but not in the privacy policy (page content, class dropped), which
 * left the card an unstyled bullet list on every published policy. The
 * structural selector matches the list the editable document produces.
 */
.tu-legal-contact,
.tu-legal-body > ul:last-child {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--tu-legal-card, transparent);
  border: 1px solid var(--tu-legal-border, var(--border-primary, currentColor));
  border-radius: var(--tu-legal-radius, 12px);
  color: inherit;
}
.tu-legal-contact li,
.tu-legal-body > ul:last-child li { margin: 0.35rem 0; }
