/* Core One — public website base stylesheet.
   Theme values arrive as CSS variables from /site/theme.css (chrome.js themeCss); this file
   holds every rule that uses them: colour presets cc1–cc5, typography, buttons, forms, grid,
   header/footer templates, cookie bar and the small widgets site.js drives.
   Responsive rules are container queries on #c1-page so the editor's 390px mobile preview
   behaves like a phone. Logical properties throughout, so Arabic (RTL) mirrors itself.
   Base element styles sit inside :where() (zero specificity): blocks.css and the editor win. */

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }

/* @defaults — generated from chrome.js themeCss(defaultTheme()); theme.css overrides them.
   Only used if /site/theme.css fails to load. */
:root {
/*@defaults-start*/
  --o1: #1e56d5;
  --o2: #3cd95d;
  --o3: #eef2fb;
  --o4: #ffffff;
  --o5: #0d0032;
  --on-o1: #ffffff;
  --on-o2: #0d0032;
  --on-o3: #0d0032;
  --on-o4: #0d0032;
  --on-o5: #ffffff;
  --cc1-bg: #ffffff;
  --cc1-text: #0d0032;
  --cc1-head: #0d0032;
  --cc1-link: #1e56d5;
  --cc1-btn: #1e56d5;
  --cc1-btn-text: #ffffff;
  --cc1-btn2: #3cd95d;
  --cc1-btn2-text: #0d0032;
  --cc1-muted: #5a5274;
  --cc1-border: #e0dee4;
  --cc1-border-strong: #8e8a97;
  --cc1-card: #ffffff;
  --cc1-input: #ffffff;
  --cc1-hover: #eeedf1;
  --cc2-bg: #eef2fb;
  --cc2-text: #0d0032;
  --cc2-head: #0d0032;
  --cc2-link: #1e56d5;
  --cc2-btn: #1e56d5;
  --cc2-btn-text: #ffffff;
  --cc2-btn2: #3cd95d;
  --cc2-btn2-text: #0d0032;
  --cc2-muted: #554d72;
  --cc2-border: #d1d3e1;
  --cc2-border-strong: #858496;
  --cc2-card: #fafbfe;
  --cc2-input: #fcfdfe;
  --cc2-hover: #dee1ed;
  --cc3-bg: #1e56d5;
  --cc3-text: #ffffff;
  --cc3-head: #ffffff;
  --cc3-link: #ffffff;
  --cc3-btn: #3cd95d;
  --cc3-btn-text: #0d0032;
  --cc3-btn2: #ffffff;
  --cc3-btn2-text: #0d0032;
  --cc3-muted: #d0dcf7;
  --cc3-border: #3b6cda;
  --cc3-border-strong: #9cb4ec;
  --cc3-card: #2e62d8;
  --cc3-input: #3265d9;
  --cc3-hover: #2e62d8;
  --cc4-bg: #3cd95d;
  --cc4-text: #0d0032;
  --cc4-head: #0d0032;
  --cc4-link: #0d0032;
  --cc4-btn: #1e56d5;
  --cc4-btn-text: #ffffff;
  --cc4-btn2: #0d0032;
  --cc4-btn2-text: #ffffff;
  --cc4-muted: #1c4540;
  --cc4-border: #36bd57;
  --cc4-border-strong: #24763f;
  --cc4-card: #c5f4ce;
  --cc4-input: #e2f9e7;
  --cc4-hover: #39ca5a;
  --cc5-bg: #0d0032;
  --cc5-text: #ffffff;
  --cc5-head: #ffffff;
  --cc5-link: #3cd95d;
  --cc5-btn: #3cd95d;
  --cc5-btn-text: #0d0032;
  --cc5-btn2: #ffffff;
  --cc5-btn2-text: #0d0032;
  --cc5-muted: #b2adbd;
  --cc5-border: #2c214d;
  --cc5-border-strong: #625b7b;
  --cc5-card: #1e1240;
  --cc5-input: #231744;
  --cc5-hover: #1e1240;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  --head-weight: 700;
  --head-track: -0.018em;
  --fs: 16px;
  --r: 10px;
  --btn-r: 999px;
  --link-deco: none;
  --link-deco-hover: underline;
/*@defaults-end*/
  --sp-1: 1rem;
  --sp-2: clamp(1.5rem, 3.5cqi, 2rem);
  --sp-3: clamp(2.5rem, 7cqi, 4.5rem);
  --sp-4: clamp(3.5rem, 10cqi, 6.5rem);
  --sp-5: clamp(4.5rem, 14cqi, 9rem);
  --ok-bg: #e8f7ee; --ok-text: #14532d; --ok-line: #9fd9b4;
  --err-bg: #fdecec; --err-text: #7f1d1d; --err-line: #f1b0b0;
}

/* ---------- colour presets ---------- */
/* Every element reads --c-*; a preset class re-points them, so content inside any preset stays readable. */
body.site, .cc1 {
  --c-bg: var(--cc1-bg); --c-text: var(--cc1-text); --c-head: var(--cc1-head); --c-link: var(--cc1-link);
  --c-btn: var(--cc1-btn); --c-btn-text: var(--cc1-btn-text); --c-btn2: var(--cc1-btn2); --c-btn2-text: var(--cc1-btn2-text);
  --c-muted: var(--cc1-muted); --c-border: var(--cc1-border); --c-border-strong: var(--cc1-border-strong);
  --c-card: var(--cc1-card); --c-input: var(--cc1-input); --c-hover: var(--cc1-hover);
}
.cc2 {
  --c-bg: var(--cc2-bg); --c-text: var(--cc2-text); --c-head: var(--cc2-head); --c-link: var(--cc2-link);
  --c-btn: var(--cc2-btn); --c-btn-text: var(--cc2-btn-text); --c-btn2: var(--cc2-btn2); --c-btn2-text: var(--cc2-btn2-text);
  --c-muted: var(--cc2-muted); --c-border: var(--cc2-border); --c-border-strong: var(--cc2-border-strong);
  --c-card: var(--cc2-card); --c-input: var(--cc2-input); --c-hover: var(--cc2-hover);
}
.cc3 {
  --c-bg: var(--cc3-bg); --c-text: var(--cc3-text); --c-head: var(--cc3-head); --c-link: var(--cc3-link);
  --c-btn: var(--cc3-btn); --c-btn-text: var(--cc3-btn-text); --c-btn2: var(--cc3-btn2); --c-btn2-text: var(--cc3-btn2-text);
  --c-muted: var(--cc3-muted); --c-border: var(--cc3-border); --c-border-strong: var(--cc3-border-strong);
  --c-card: var(--cc3-card); --c-input: var(--cc3-input); --c-hover: var(--cc3-hover);
}
.cc4 {
  --c-bg: var(--cc4-bg); --c-text: var(--cc4-text); --c-head: var(--cc4-head); --c-link: var(--cc4-link);
  --c-btn: var(--cc4-btn); --c-btn-text: var(--cc4-btn-text); --c-btn2: var(--cc4-btn2); --c-btn2-text: var(--cc4-btn2-text);
  --c-muted: var(--cc4-muted); --c-border: var(--cc4-border); --c-border-strong: var(--cc4-border-strong);
  --c-card: var(--cc4-card); --c-input: var(--cc4-input); --c-hover: var(--cc4-hover);
}
.cc5 {
  --c-bg: var(--cc5-bg); --c-text: var(--cc5-text); --c-head: var(--cc5-head); --c-link: var(--cc5-link);
  --c-btn: var(--cc5-btn); --c-btn-text: var(--cc5-btn-text); --c-btn2: var(--cc5-btn2); --c-btn2-text: var(--cc5-btn2-text);
  --c-muted: var(--cc5-muted); --c-border: var(--cc5-border); --c-border-strong: var(--cc5-border-strong);
  --c-card: var(--cc5-card); --c-input: var(--cc5-input); --c-hover: var(--cc5-hover);
}
.cc1, .cc2, .cc3, .cc4, .cc5 { background-color: var(--c-bg); color: var(--c-text); }

/* ---------- page + typography ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--c1-top, 0px) + var(--hdr-h, 0px) + 12px); }
body.site {
  margin: 0; min-height: 100vh;
  background-color: var(--cc1-bg); color: var(--c-text);
  font-family: var(--font-body); font-size: var(--fs); line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
/* Beats langs.css' Arabic body font: the theme's font stacks already end in Arabic faces. */
:root[dir] body.site { font-family: var(--font-body); }
body.site.is-boxed { background-color: var(--cc2-bg); }

#c1-page { container-type: inline-size; container-name: page; display: flex; flex-direction: column; min-height: 100vh; background-color: var(--cc1-bg); }
#c1-main { flex: 1 0 auto; display: block; }
#c1-main:focus { outline: none; }
.layout-boxed { width: 100%; max-width: 1280px; margin-inline: auto; box-shadow: 0 0 0 1px var(--cc1-border), 0 30px 80px rgb(0 0 0 / .08); }
@media (min-width: 1330px) {
  .layout-boxed { margin-block: 24px; min-height: calc(100vh - 48px); border-radius: calc(var(--r) * 1.5); overflow: clip; }
}

:where(.site) ::selection { background: color-mix(in srgb, var(--o1) 22%, transparent); }
:where(.site h1, .site h2, .site h3, .site h4, .site h5, .site h6, .site .display) {
  margin: 0 0 .5em; color: var(--c-head);
  font-family: var(--font-head); font-weight: var(--head-weight, 700); letter-spacing: var(--head-track, -0.018em);
  line-height: 1.15; text-wrap: balance; overflow-wrap: break-word;
}
:where(.site .display) { font-size: 2.75em; font-size: clamp(2.5em, 1.4rem + 4.6cqi, 4.4em); line-height: 1.04; }
:where(.site h1) { font-size: 2.25em; font-size: clamp(2.05em, 1.2rem + 3.2cqi, 3.35em); line-height: 1.08; }
:where(.site h2) { font-size: 1.85em; font-size: clamp(1.6em, 1rem + 2.1cqi, 2.45em); }
:where(.site h3) { font-size: 1.3em; font-size: clamp(1.2em, 1rem + .7cqi, 1.55em); line-height: 1.25; }
:where(.site h4) { font-size: 1.1em; line-height: 1.3; }
:where(.site h5, .site h6) { font-size: 1em; }
:where(.site p, .site ul, .site ol, .site blockquote, .site figure) { margin: 0 0 1em; }
:where(.site p) { text-wrap: pretty; }
:where(.site ul, .site ol) { padding-inline-start: 1.4em; }
:where(.site li) { margin-block: .25em; }
:where(.site blockquote) { margin-inline: 0; padding: .25em 0 .25em 1.25em; padding-inline: 1.25em 0; border-inline-start: 3px solid var(--c-link); font-size: 1.1em; color: var(--c-head); }
:where(.site a) { color: var(--c-link); text-decoration: var(--link-deco, none); text-decoration-thickness: from-font; text-underline-offset: .18em; }
:where(.site a:hover) { text-decoration: var(--link-deco-hover, underline); }
:where(.site img, .site svg, .site video) { max-width: 100%; height: auto; }
:where(.site img) { vertical-align: middle; }
:where(.site hr) { border: 0; border-block-start: 1px solid var(--c-border); margin-block: 2rem; }
:where(.site small) { font-size: .85em; }
:where(.site strong, .site b) { font-weight: 700; }
:where(.site summary) { cursor: pointer; }
:where(.site table) { border-collapse: collapse; width: 100%; }
:where(.site th, .site td) { padding: .6em .75em; border-block-end: 1px solid var(--c-border); text-align: start; }

.lead { font-size: 1.2em; line-height: 1.55; color: var(--c-text); opacity: .92; }
.eyebrow { display: inline-block; margin-block-end: .75rem; font-size: .78em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-link); }
.muted { color: var(--c-muted); }
.hl-o1 { color: var(--o1); } .hl-o2 { color: var(--o2); } .hl-o3 { color: var(--o3); } .hl-o4 { color: var(--o4); } .hl-o5 { color: var(--o5); }
.fs-s { font-size: .875em; } .fs-l { font-size: 1.25em; }
.ta-start { text-align: start; } .ta-center { text-align: center; } .ta-end { text-align: end; }
.ta-center .row { justify-content: center; } .ta-end .row { justify-content: flex-end; }
.ta-center .stack { align-items: center; } .ta-end .stack { align-items: flex-end; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.flip:dir(rtl) { transform: scaleX(-1); }
[dir="rtl"] .flip { transform: scaleX(-1); }
.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }

/* ---------- blocks: section frame, spacing, width, backgrounds ---------- */
.blk { position: relative; isolation: isolate; }
.pt-0 { padding-block-start: 0; } .pt-1 { padding-block-start: var(--sp-1); } .pt-2 { padding-block-start: var(--sp-2); }
.pt-3 { padding-block-start: var(--sp-3); } .pt-4 { padding-block-start: var(--sp-4); } .pt-5 { padding-block-start: var(--sp-5); }
.pb-0 { padding-block-end: 0; } .pb-1 { padding-block-end: var(--sp-1); } .pb-2 { padding-block-end: var(--sp-2); }
.pb-3 { padding-block-end: var(--sp-3); } .pb-4 { padding-block-end: var(--sp-4); } .pb-5 { padding-block-end: var(--sp-5); }

.ctr { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; padding-inline: clamp(16px, 4cqi, 32px); }
.ctr-narrow { max-width: 780px; }
.ctr-wide { max-width: 1320px; }
.ctr-full { max-width: none; }

.h-half, .h-full { display: flex; flex-direction: column; justify-content: center; }
.h-half { min-height: 50vh; min-height: 50svh; }
.h-full { min-height: calc(100vh - var(--hdr-h, 0px)); min-height: calc(100svh - var(--hdr-h, 0px)); }

.bgimg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.ov-1::before, .ov-2::before, .ov-3::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ov-1::before { background: linear-gradient(180deg, rgb(0 0 0 / .18), rgb(0 0 0 / .32)); }
.ov-2::before { background: linear-gradient(180deg, rgb(0 0 0 / .38), rgb(0 0 0 / .52)); }
.ov-3::before { background: linear-gradient(180deg, rgb(0 0 0 / .58), rgb(0 0 0 / .72)); }
/* Text over a darkened photo is white, whatever the preset says. */
.blk:is(.ov-1, .ov-2, .ov-3):has(> .bgimg) {
  --c-text: #fff; --c-head: #fff; --c-link: #fff; --c-muted: rgb(255 255 255 / .82); --c-border: rgb(255 255 255 / .28);
  color: #fff;
}

.round-0 { --r-blk: 0px; } .round-1 { --r-blk: var(--r); } .round-2 { --r-blk: calc(var(--r) * 2.2); }
:where(.round-0, .round-1, .round-2):not(.blk) { border-radius: var(--r-blk); }
.shadow-0 { --sh-blk: none; }
.shadow-1 { --sh-blk: 0 1px 2px rgb(0 0 0 / .05), 0 6px 20px rgb(0 0 0 / .08); }
.shadow-2 { --sh-blk: 0 4px 10px rgb(0 0 0 / .06), 0 24px 60px rgb(0 0 0 / .16); }
:where(.shadow-0, .shadow-1, .shadow-2):not(.blk) { box-shadow: var(--sh-blk); }

/* Visibility by device (the page container's width, so the editor preview obeys it too). */
@container page (min-width: 761px) { .hide-d { display: none !important; } }
@container page (max-width: 760px) { .hide-m { display: none !important; } }

/* Reveal on scroll: hidden only when JS is there to reveal it (legacy-hash.js sets html.js). */
.anim { transition: opacity .8s cubic-bezier(.2, .65, .3, 1), transform .8s cubic-bezier(.2, .65, .3, 1); }
.js .anim:not(.in) { opacity: 0; }
.js .anim-up:not(.in) { transform: translate3d(0, 28px, 0); }
.js .anim-zoom:not(.in) { transform: scale(.94); }
.is-editing .anim { opacity: 1 !important; transform: none !important; transition: none; }

/* ---------- layout helpers ---------- */
.grid { display: grid; gap: var(--gap, 1.5rem); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.g-1 { --cols: 1; } .g-2 { --cols: 2; } .g-3 { --cols: 3; } .g-4 { --cols: 4; } .g-5 { --cols: 5; } .g-6 { --cols: 6; }
.g-4 { --cols-t: 2; } .g-5, .g-6 { --cols-t: 3; }
.m-2 { --cols-m: 2; }
.gap-s { --gap: .75rem; } .gap-m { --gap: 1.5rem; } .gap-l { --gap: 2.5rem; }
@container page (max-width: 1024px) {
  .grid { grid-template-columns: repeat(var(--cols-t, var(--cols, 3)), minmax(0, 1fr)); }
}
@container page (max-width: 760px) {
  .grid { grid-template-columns: repeat(var(--cols-m, 1), minmax(0, 1fr)); gap: min(var(--gap, 1.5rem), 1.25rem); }
}
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, .75rem); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 1rem); }
.divider { border: 0; border-block-start: 1px solid var(--c-border); margin-block: 2rem; height: 0; }
.badge {
  display: inline-flex; align-items: center; gap: .3em; padding: .22em .7em; border-radius: 999px;
  font-size: .78em; font-weight: 600; line-height: 1.4; background: var(--c-hover); color: var(--c-head);
}
.badge-primary { background: var(--c-btn); color: var(--c-btn-text); }
.card-body > .badge, .stack > .badge { align-self: flex-start; }
.ta-center .card-body > .badge, .ta-center .stack > .badge { align-self: center; }
.icon {
  display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem;
  border-radius: calc(var(--r) * 1.2); color: var(--c-link);
  background: color-mix(in srgb, var(--c-link) 12%, transparent);
}
.icon svg { width: 55%; height: 55%; }

/* ---------- cards ---------- */
.card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--c-card); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: var(--r-blk, var(--r)); box-shadow: var(--sh-blk, none);
  transition: box-shadow .2s, transform .2s;
}
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgb(0 0 0 / .12); }
.card-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.card-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.25rem 1.35rem 1.5rem; }
.card-body > :last-child { margin-block-end: 0; }
.card-body .btn { align-self: flex-start; margin-block-start: auto; }
.ta-center .card-body .btn { align-self: center; }

/* Placeholder art for an empty image: palette gradient + a picture glyph, CSS only. */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 4 / 3; overflow: hidden; color: rgb(255 255 255 / .82);
  border-radius: var(--r-blk, var(--r));
  background:
    radial-gradient(120% 90% at 88% 6%, color-mix(in srgb, var(--o2) 60%, transparent) 0, transparent 55%),
    radial-gradient(90% 80% at 6% 100%, color-mix(in srgb, var(--o1) 75%, transparent) 0, transparent 62%),
    linear-gradient(135deg, var(--o1), var(--o5));
}
.ph::after {
  content: ""; width: min(22%, 72px); aspect-ratio: 1; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ph.card-img { aspect-ratio: 3 / 2; border-radius: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .7em 1.45em; margin: 0;
  border: 2px solid transparent; border-radius: var(--btn-r, 999px);
  font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none !important;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .i { width: 1.15em; height: 1.15em; }
.btn-primary { background-color: var(--c-btn); color: var(--c-btn-text); border-color: var(--c-btn); }
.btn-primary:hover { background-color: color-mix(in srgb, var(--c-btn) 86%, var(--c-text)); border-color: color-mix(in srgb, var(--c-btn) 86%, var(--c-text)); color: var(--c-btn-text); }
.btn-secondary { background-color: var(--c-btn2); color: var(--c-btn2-text); border-color: var(--c-btn2); }
.btn-secondary:hover { background-color: color-mix(in srgb, var(--c-btn2) 86%, var(--c-text)); color: var(--c-btn2-text); }
.btn-outline { background-color: transparent; color: var(--c-head); border-color: currentColor; }
.btn-outline:hover { background-color: var(--c-head); border-color: var(--c-head); color: var(--c-bg); }
.btn-link { min-height: 0; padding-inline: .2em; background: none; border-color: transparent; color: var(--c-link); text-decoration: underline !important; text-underline-offset: .2em; }
.btn-link:hover { transform: none; text-decoration-thickness: 2px !important; }
.btn-sm { min-height: 36px; padding: .45em 1.05em; font-size: .9em; }
.btn-lg { min-height: 54px; padding: .85em 1.9em; font-size: 1.1em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
/* Theme option "outline buttons": primary/secondary keep their colour as a frame. */
.btn-style-outline .btn-primary { background-color: transparent; color: var(--c-link); border-color: var(--c-btn); }
.btn-style-outline .btn-primary:hover { background-color: var(--c-btn); color: var(--c-btn-text); }
.btn-style-outline .btn-secondary { background-color: transparent; color: var(--c-head); border-color: var(--c-btn2); }
.btn-style-outline .btn-secondary:hover { background-color: var(--c-btn2); color: var(--c-btn2-text); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form .grid { --gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field > label, .field .lbl { font-weight: 600; font-size: .92em; color: var(--c-head); }
label.req::after, .field.req > label::after, .field.req .lbl::after { content: "*"; margin-inline-start: .2em; color: var(--c-link); }
.field .help { font-size: .85em; color: var(--c-muted); }
.field .opts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.field .opt { display: inline-flex; align-items: center; gap: .5em; font-weight: 400; }
:where(.site input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="hidden"], [type="range"], [type="color"], [type="file"], [type="image"]), .site select, .site textarea) {
  width: 100%; min-height: 46px; padding: .65em .9em; margin: 0;
  font: inherit; font-size: max(16px, 1em); line-height: 1.4; color: var(--c-text);
  background-color: var(--c-input); border: 1px solid var(--c-border-strong); border-radius: calc(var(--r) * .7);
  transition: border-color .15s, box-shadow .15s;
}
:where(.site textarea) { min-height: 8.5em; resize: vertical; }
:where(.site select) {
  appearance: none; padding-inline-end: 2.4em; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.15em) 55%, calc(100% - .8em) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
[dir="rtl"] :where(.site select) { background-position: 1.15em 55%, .8em 55%; }
:where(.site input, .site select, .site textarea)::placeholder { color: var(--c-muted); opacity: .8; }
:where(.site input, .site select, .site textarea):focus { outline: none; border-color: var(--c-link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-link) 22%, transparent); }
:where(.site input, .site select, .site textarea):user-invalid { border-color: #c62828; }
:where(.site input[type="checkbox"], .site input[type="radio"]) { width: 1.15em; height: 1.15em; margin: 0; accent-color: var(--c-btn); }
:where(.site input[type="file"]) { max-width: 100%; font: inherit; font-size: .92em; color: var(--c-muted); }
:where(.site input[type="file"])::file-selector-button {
  margin-inline-end: .8em; padding: .5em 1em; border: 1px solid var(--c-border-strong); border-radius: calc(var(--r) * .7);
  background: var(--c-hover); color: var(--c-head); font: inherit; font-weight: 600; cursor: pointer;
}
.form .is-sending, form.is-sending [type="submit"] { opacity: .7; cursor: progress; }
/* Honeypot: off-screen, not display:none, so naive bots still fill it in. */
.hp { position: absolute !important; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-ok, .form-err {
  display: flex; gap: .65rem; align-items: flex-start; padding: .95rem 1.15rem; margin-block-end: 1rem;
  border: 1px solid; border-radius: var(--r); font-weight: 500; line-height: 1.5;
}
.form-ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-line); }
.form-err { background: var(--err-bg); color: var(--err-text); border-color: var(--err-line); }
.form-ok a, .form-err a { color: inherit; text-decoration: underline; }

/* ---------- focus ---------- */
:where(.site) :focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--btn-r, 999px); }
.skip-link {
  position: absolute; z-index: 1000; inset-inline-start: 12px; top: -80px;
  padding: .65em 1.1em; border-radius: 8px; background: var(--cc5-bg); color: var(--cc5-text);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- widgets driven by site.js (generic look; blocks.css may restyle) ---------- */
:where([data-carousel]) { position: relative; }
:where(.carousel-track) {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
:where(.carousel-track)::-webkit-scrollbar { display: none; }
:where(.carousel-track) > * { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 999px; background: rgb(255 255 255 / .92); color: #111;
  box-shadow: 0 4px 18px rgb(0 0 0 / .18); cursor: pointer; transition: background-color .15s, opacity .15s;
}
.carousel-arrow:hover { background: #fff; }
.carousel-prev { inset-inline-start: 16px; }
.carousel-next { inset-inline-end: 16px; }
.carousel-prev .i { transform: rotate(90deg); }
.carousel-next .i { transform: rotate(-90deg); }
[dir="rtl"] .carousel-prev .i { transform: rotate(-90deg); }
[dir="rtl"] .carousel-next .i { transform: rotate(90deg); }
.carousel-dots { position: absolute; inset-inline: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.carousel-dots button { position: relative; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.carousel-dots button::before {
  content: ""; position: absolute; inset-block-start: 8px; inset-inline-start: 8px; width: 10px; height: 10px; border-radius: 999px;
  background: rgb(255 255 255 / .55); box-shadow: 0 0 0 1px rgb(0 0 0 / .18); transition: width .25s, background-color .25s;
}
.carousel-dots button[aria-current="true"]::before { background: #fff; }
@container page (max-width: 760px) { .carousel-arrow { display: none; } }

:where([role="tablist"]) { display: flex; flex-wrap: wrap; gap: .25rem; margin-block-end: 1.5rem; border-block-end: 1px solid var(--c-border); }
:where([role="tab"]) {
  appearance: none; margin: 0 0 -1px; padding: .75em 1.1em; border: 0; border-block-end: 2px solid transparent;
  background: none; color: var(--c-muted); font: inherit; font-weight: 600; cursor: pointer;
}
:where([role="tab"]:hover) { color: var(--c-head); }
:where([role="tab"][aria-selected="true"]) { color: var(--c-link); border-block-end-color: currentColor; }

:where(.cd-units) { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
:where(.cd-unit) { display: flex; flex-direction: column; align-items: center; min-width: 4.5rem; }
:where(.cd-unit b) { font-family: var(--font-head); font-size: 2.4em; font-size: clamp(2em, 1.4rem + 3cqi, 3.5em); line-height: 1; font-variant-numeric: tabular-nums; color: var(--c-head); }
:where(.cd-unit small) { margin-block-start: .4rem; font-size: .75em; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
[data-count] { font-variant-numeric: tabular-nums; }
:where([data-lightbox] img, .blk-image_gallery img, .blk-images_wall img) { cursor: zoom-in; }
.is-editing :where([data-lightbox] img) { cursor: default; }

/* Lightbox: a body child (fixed UI cannot live inside the #c1-page container). */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1500; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgb(8 8 12 / .94); color: #fff; font-family: var(--font-body);
  animation: c1-fade .2s ease-out;
}
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; font-size: .9rem; color: rgb(255 255 255 / .8); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 4.5rem; touch-action: pan-y; }
.lb-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.lb-cap { min-height: 3.25rem; padding: .75rem 1rem 1.25rem; text-align: center; font-size: .95rem; color: rgb(255 255 255 / .85); }
.lb-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgb(255 255 255 / .24); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 1rem; }
.lb-next { inset-inline-end: 1rem; }
.lb-prev .i { transform: rotate(90deg); } .lb-next .i { transform: rotate(-90deg); }
[dir="rtl"] .lb-prev .i { transform: rotate(-90deg); } [dir="rtl"] .lb-next .i { transform: rotate(90deg); }
@media (max-width: 640px) {
  .lb-stage { padding: 0 .5rem; }
  .lb-prev, .lb-next { top: auto; bottom: -3.4rem; transform: none; }
}
@keyframes c1-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 40; background-color: var(--c-bg); color: var(--c-text); border-block-end: 1px solid var(--c-border); transition: box-shadow .2s; }
.site-head.is-sticky { position: sticky; top: var(--c1-top, 0px); }   /* --c1-top: room for a fixed admin bar */
.site-head.is-scrolled { box-shadow: 0 1px 0 var(--c-border), 0 10px 30px rgb(0 0 0 / .08); }
.site-head a { text-decoration: none; }
.hdr-in { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 76px; padding-block: .5rem; }
.hdr-brand {
  display: inline-flex; align-items: center; flex: none; max-width: 60%; min-height: 44px;
  color: var(--c-head); font-family: var(--font-head); font-weight: var(--head-weight, 700); font-size: 1.35em;
  letter-spacing: var(--head-track); line-height: 1.1;
}
.hdr-brand img { display: block; width: auto; height: 44px; max-width: 220px; object-fit: contain; }
.hdr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-nav { flex: 1 1 auto; min-width: 0; }
.menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.menu-item { position: relative; display: flex; align-items: center; margin: 0; }
.menu-link {
  display: inline-flex; align-items: center; gap: .3em; padding: .55em .85em; margin: 0;
  border: 0; border-radius: calc(var(--r) * .7); background: none; color: inherit;
  font: inherit; font-weight: 500; line-height: 1.3; text-align: start; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.menu-link:hover, .menu-item.open > .menu-link { background-color: var(--c-hover); color: var(--c-head); }
.menu-item.is-active > .menu-link { color: var(--c-link); font-weight: 600; }
.menu-link .i, .sub-toggle .i { width: 16px; height: 16px; transition: transform .2s; }
.sub-toggle:not(.menu-link) {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; margin-inline-start: -.55rem;
  border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer;
}
.sub-toggle:not(.menu-link):hover { background-color: var(--c-hover); }
.menu-item.open > .sub-toggle .i, .menu-item.open > .menu-link .i { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 60; display: none;
  min-width: 230px; margin: 0; padding: .45rem; list-style: none;
  background-color: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--r);
  box-shadow: 0 18px 50px rgb(0 0 0 / .14);
}
.sub::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 8px; }
.sub .menu-item { display: flex; flex-wrap: wrap; }
.sub .menu-link { flex: 1; padding: .6em .8em; }
.sub .sub { position: static; display: block; flex-basis: 100%; min-width: 0; padding: 0; padding-inline-start: .9rem; border: 0; box-shadow: none; background: none; }
.sub .sub::before, .sub .sub-toggle:not(.menu-link) { display: none; }
.menu-item.open > .sub { display: block; }
.menu-more > .sub { inset-inline-start: auto; inset-inline-end: 0; }
@container page (min-width: 761px) {
  @media (hover: hover) and (pointer: fine) {
    .site-head:not(.hdr-hamburger) .menu-item.has-sub:hover > .sub { display: block; }
  }
  .site-head:not(.hdr-hamburger) .menu-item.has-sub:focus-within > .sub { display: block; }
}

.hdr-actions { display: flex; align-items: center; gap: .3rem; flex: none; }
.hdr-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-width: 42px; height: 42px; padding: 0 .55em; border: 0; border-radius: 999px;
  background: none; color: inherit; font: inherit; cursor: pointer; transition: background-color .15s;
}
.hdr-icon:hover { background-color: var(--c-hover); }
.hdr-label { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cart-badge {
  position: absolute; top: 1px; inset-inline-end: -1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--c-btn); color: var(--c-btn-text); box-shadow: 0 0 0 2px var(--c-bg);
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
.hdr-cta { margin-inline-start: .4rem; white-space: nowrap; }
.hdr-search { display: flex; align-items: center; height: 42px; padding-inline-start: .9em; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-input); }
.hdr-search:focus-within { border-color: var(--c-link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-link) 20%, transparent); }
.hdr-search input[type="search"] { width: 13ch; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: .95em; }
.hdr-search input[type="search"]:focus { box-shadow: none; }
.hdr-search .hdr-icon { height: 40px; min-width: 40px; }

.dd { position: relative; }
.dd > summary { list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-btn { display: inline-flex; align-items: center; gap: .35em; height: 42px; padding: 0 .7em; border-radius: 999px; font-size: .9em; font-weight: 600; cursor: pointer; transition: background-color .15s; }
.dd-btn:hover, .dd[open] > .dd-btn { background-color: var(--c-hover); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; min-width: 170px; margin: 0; padding: .4rem; list-style: none;
  background-color: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--r); box-shadow: 0 18px 50px rgb(0 0 0 / .14);
}
.dd-menu li { margin: 0; }
.dd-menu a { display: block; padding: .5em .8em; border-radius: calc(var(--r) * .6); color: inherit; }
.dd-menu a:hover { background-color: var(--c-hover); }
.dd-menu a[aria-current] { color: var(--c-link); font-weight: 600; }

.social { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.social li { margin: 0; }
.social a {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--c-border); color: inherit; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.social a:hover { background-color: var(--c-btn); border-color: var(--c-btn); color: var(--c-btn-text); }
.social .i { width: 18px; height: 18px; }
.hdr-social { flex-wrap: nowrap; gap: .1rem; }
/* Narrower desktops keep the header on one line: the footer and the phone panel still show these. */
@container page (max-width: 1100px) { .hdr-actions .hdr-social { display: none; } }
.hdr-social a { width: 36px; height: 36px; border-color: transparent; }

.hdr-toggle { display: none; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; }
.hdr-toggle:hover { background-color: var(--c-hover); }
.burger { position: relative; display: block; width: 22px; height: 14px; }
.burger::before, .burger::after, .burger > span { content: ""; position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.burger::before { top: 0; } .burger > span { top: 6px; } .burger::after { top: 12px; }
.nav-open .burger::before { top: 6px; transform: rotate(45deg); }
.nav-open .burger > span { opacity: 0; }
.nav-open .burger::after { top: 6px; transform: rotate(-45deg); }
.nav-extra { display: none; }

.hdr-top { font-size: .85em; background-color: var(--c-hover); border-block-end: 1px solid var(--c-border); }
.hdr-top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.hdr-contacts { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.hdr-contact { display: inline-flex; align-items: center; gap: .45em; color: inherit; }
.hdr-contact:hover { color: var(--c-link); }
.hdr-contact .i { width: 15px; height: 15px; }
.hdr-top .social a { width: 30px; height: 30px; border: 0; }
.hdr-top .social .i { width: 16px; height: 16px; }

/* Panel mode — phones (container ≤ 760px) and the Hamburger template at any width.
   The panel is in the page flow, never position:fixed (the container would trap it). */
.hdr-hamburger .hdr-in { flex-wrap: wrap; }
.hdr-hamburger .hdr-actions { margin-inline-start: auto; }
.js .hdr-hamburger .hdr-toggle { display: inline-flex; }
.hdr-hamburger .hdr-nav { order: 5; flex: 1 0 100%; padding-block: .5rem 1.25rem; border-block-start: 1px solid var(--c-border); }
.js .hdr-hamburger .hdr-nav { display: none; }
.js .hdr-hamburger.nav-open .hdr-nav { display: block; }
.hdr-hamburger .menu { flex-direction: column; align-items: stretch; gap: 0; max-width: 760px; margin-inline: auto; }
.hdr-hamburger .menu-item { flex-wrap: wrap; }
.hdr-hamburger .menu-link { flex: 1; padding: .75em .6em; font-size: 1.1em; }
.hdr-hamburger .sub-toggle:not(.menu-link) { width: 44px; height: 44px; margin: 0; }
.hdr-hamburger .sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .25rem; padding-inline-start: 1rem; border: 0; border-radius: 0; box-shadow: none; background: none; }
.hdr-hamburger .sub::before { display: none; }
.hdr-hamburger .nav-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; padding-block-start: 1rem; }
@container page (max-width: 760px) {
  .hdr-in { flex-wrap: wrap; min-height: 64px; gap: .5rem; }
  .hdr-brand { max-width: calc(100% - 160px); font-size: 1.2em; }
  .hdr-brand img { height: 38px; max-width: 160px; }
  .hdr-actions { margin-inline-start: auto; gap: 0; }
  .js .hdr-toggle { display: inline-flex; }
  .hdr-nav { order: 5; flex: 1 0 100%; padding-block: .25rem 1rem; border-block-start: 1px solid var(--c-border); }
  .js .hdr-nav { display: none; }
  .js .nav-open .hdr-nav { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-item { flex-wrap: wrap; }
  .menu-link { flex: 1; padding: .8em .5em; font-size: 1.05em; }
  .sub-toggle:not(.menu-link) { width: 44px; height: 44px; margin: 0; }
  .sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .25rem; padding-inline-start: 1rem; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .sub::before { display: none; }
  .nav-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-block-start: 1rem; }
  .nav-extra .btn { flex: 1 1 100%; }
  .hdr-actions .hdr-cta, .hdr-actions .hdr-social, .hdr-search, .hdr-label, .hdr-top { display: none; }
  .dd-btn { padding: 0 .5em; }
}

/* Header templates */
.hdr-minimal { border-block-end-color: transparent; }
.hdr-minimal .hdr-in { min-height: 64px; }
.hdr-minimal .hdr-cta.btn { min-height: 0; padding-inline: .6em; background: none; border-color: transparent; color: var(--c-link); text-decoration: underline !important; text-underline-offset: .2em; }
.hdr-stretch .menu, .hdr-sales .menu { justify-content: center; }
.hdr-stretch .hdr-in { min-height: 80px; }
.hdr-sales .hdr-top { background-color: var(--c-btn); color: var(--c-btn-text); border-block-end-color: transparent; }
.hdr-sales .hdr-cta { margin-inline-start: .75rem; }
.site-head.hdr-boxed { background-color: transparent; border-block-end: 0; padding: 12px 8px 0; padding-inline: clamp(8px, 2cqi, 16px); }
.hdr-boxed .hdr-in {
  min-height: 68px; padding-inline: 1.25rem; background-color: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: calc(var(--r) * 1.6 + 6px); box-shadow: 0 10px 30px rgb(0 0 0 / .08);
  transition: box-shadow .2s;
}
.site-head.hdr-boxed.is-scrolled { box-shadow: none; }
.hdr-boxed.is-scrolled .hdr-in { box-shadow: 0 16px 44px rgb(0 0 0 / .16); }
@container page (min-width: 761px) {
  /* Logo centred on its own row; the menu and the action icons share the row below. */
  .hdr-centered .hdr-in { flex-wrap: wrap; justify-content: center; row-gap: .25rem; padding-block: 1rem .35rem; }
  .hdr-centered .hdr-in::after { content: ""; order: 1; flex-basis: 100%; }
  .hdr-centered .hdr-nav, .hdr-centered .hdr-actions { order: 2; }
  .hdr-centered .hdr-brand { max-width: none; font-size: 1.6em; }
  .hdr-centered .hdr-brand img { height: 56px; max-width: 260px; }
  .hdr-centered .menu { justify-content: center; }
  .hdr-hamburger .hdr-cta-panel { display: none; }
}
/* Without JS the phone menu is a plain list: sub-menus stay open. */
:root:not(.js) .hdr-hamburger .sub { display: block; }
@container page (max-width: 760px) { :root:not(.js) .sub { display: block; } }

/* ---------- footer ---------- */
.site-foot { background-color: var(--c-bg); color: var(--c-text); font-size: .95em; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:not(.btn):hover { color: var(--c-link); text-decoration: underline; }
.site-foot .social a:hover { color: var(--c-btn-text); text-decoration: none; }
.ftr-in { padding-block: 3rem; padding-block: clamp(2.5rem, 7cqi, 4.5rem); }
.ftr-grid { display: grid; gap: 2.25rem 3rem; }
.ftr-grid-2 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.ftr-grid-3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.ftr-grid-4 { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
.ftr-desc { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); }
@container page (max-width: 1024px) { .ftr-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr-desc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr-desc .ftr-about { grid-column: 1 / -1; } }
@container page (max-width: 760px) { .ftr-grid, .ftr-grid-4, .ftr-desc { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.ftr-col { min-width: 0; }
.ftr-brand { display: inline-block; margin-block-end: 1rem; color: var(--c-head); font-family: var(--font-head); font-weight: var(--head-weight, 700); font-size: 1.4em; letter-spacing: var(--head-track); line-height: 1.15; }
.site-foot .ftr-brand:hover { color: var(--c-head); text-decoration: none; }
.ftr-brand img { display: block; width: auto; height: 40px; max-width: 200px; object-fit: contain; }
.ftr-title { margin: 0 0 1rem; font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.ftr-links { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.ftr-links li { margin: 0; }
.ftr-contact { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.ftr-contact li { display: flex; align-items: flex-start; gap: .7rem; margin: 0; overflow-wrap: anywhere; }
.ftr-contact .i { width: 18px; height: 18px; margin-block-start: .2em; color: var(--c-link); }
.ftr-hours { margin: 0; }
.ftr-about .social { margin-block-start: 1.25rem; }
.ftr-blocks { min-width: 0; }
.ftr-bottom { border-block-start: 1px solid var(--c-border); font-size: .875em; color: var(--c-muted); }
.ftr-bottom-in { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: 1.15rem; }
.ftr-privacy { margin-inline-start: auto; }
.ftr-bottom .c1-langs { padding: 0; font: inherit; color: inherit; text-align: start; }
.ftr-bottom .c1-langs b { color: var(--c-head); }
.ftr-center { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.ftr-center .ftr-brand { margin: 0; }
.ftr-center .ftr-links, .ftr-row .ftr-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; }
.ftr-center .ftr-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.75rem; }
.ftr-center .ftr-blocks { width: 100%; }
.ftr-centered .ftr-bottom-in { justify-content: center; }
.ftr-centered .ftr-privacy { margin-inline-start: 0; }
.ftr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.75rem; }
.ftr-row .ftr-brand { margin: 0; font-size: 1.2em; }
.ftr-row .social { margin-inline-start: auto; }
.ftr-contact-big .ftr-contact { gap: 1.15rem; font-size: 1.1em; }
.ftr-contact-big .ftr-contact .i { width: 22px; height: 22px; }
.ftr-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.5rem; padding-block: clamp(2rem, 5cqi, 3.25rem); }
.ftr-cta-title { margin: 0 0 .3rem; font-size: 1.6em; font-size: clamp(1.4em, 1rem + 1.5cqi, 2.1em); }
.ftr-cta-text { margin: 0; color: var(--c-muted); }
@container page (max-width: 760px) {
  .ftr-row { flex-direction: column; text-align: center; }
  .ftr-row .social { margin-inline-start: 0; }
  .ftr-bottom-in { justify-content: center; text-align: center; }
  .ftr-privacy { margin-inline-start: 0; }
  .ftr-cta-in .btn { width: 100%; }
}

/* ---------- cookie bar (body child) ---------- */
.cookie-bar {
  position: fixed; z-index: 900; inset-block-end: 16px; inset-inline-start: 16px;
  display: flex; flex-direction: column; gap: .85rem; width: min(560px, calc(100vw - 32px));
  padding: 1.1rem 1.25rem; border-radius: calc(var(--r) + 4px); box-shadow: 0 18px 60px rgb(0 0 0 / .3);
  font-family: var(--font-body); font-size: .92rem; line-height: 1.5;
  animation: c1-rise .35s cubic-bezier(.2, .7, .2, 1);
}
.cookie-text { margin: 0; }
.cookie-text a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.cookie-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.cookie-bar .btn-outline { color: var(--c-text); }
.cookie-bar .btn-outline:hover { background-color: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }
@media (max-width: 600px) {
  .cookie-bar { inset-inline: 8px; inset-block-end: 8px; width: auto; padding: 1rem; }
  .cookie-btns .btn { flex: 1; }
}
@keyframes c1-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .anim { opacity: 1 !important; transform: none !important; }
  .btn:hover, a.card:hover { transform: none; }
}
@media print {
  body.site, #c1-page { background: #fff !important; box-shadow: none !important; }
  .layout-boxed { max-width: none; margin: 0; }
  .site-head { position: static !important; box-shadow: none !important; border: 0; }
  .hdr-nav, .hdr-actions, .hdr-toggle, .hdr-top, .cookie-bar, .skip-link, .carousel-arrow, .carousel-dots, .lightbox, .ftr-cta, #c1-strings { display: none !important; }
  .js .anim { opacity: 1 !important; transform: none !important; }
  .blk { break-inside: avoid-page; }
  #c1-main a[href^="http"]:not(.btn)::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  .btn { border-color: currentColor !important; }
}

/* Staff-only banner on an unpublished page or post (rendered by src/website.js). */
.c1-unpublished { background: #fff4d6; color: #5c4400; border-block-end: 1px solid #f0d58a; padding: .6rem 1rem; text-align: center; font-size: .9rem; }
