/**
 * PX Canvas: header / footer presets and PX Builder token mapping.
 * Loaded after the Cassiopeia CSS. Every colour reads a --px-* token first and falls back to Cassiopeia's colours,
 * so the template looks right with or without PX Builder on the page.
 *
 * @copyright  (C) 2026 PX. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

.pxc {
  --pxc-primary: var(--px-color-primary, var(--cassiopeia-color-primary, #112855));
  --pxc-primary-hover: var(--px-color-primary-hover, var(--link-hover-color, #424077));
  --pxc-on-primary: var(--px-color-on-primary, #fff);
  --pxc-accent: var(--px-color-primary-text, var(--link-color, #224faa));
  --pxc-text: var(--px-color-text, #22262a);
  --pxc-muted: var(--px-color-muted, #495057);
  --pxc-surface: var(--px-color-surface, #fff);
  --pxc-soft: var(--px-color-secondary, var(--template-bg-light, #f0f4fb));
  --pxc-border: var(--px-color-border, #dfe3e7);
  --pxc-font-h: var(--px-font-heading, var(--cassiopeia-font-family-headings, var(--body-font-family)));
  --pxc-font-b: var(--px-font-body, var(--body-font-family));
  --pxc-weight-h: var(--px-weight-heading, 700);
  --pxc-radius: var(--px-radius, .25rem);
  --pxc-radius-c: var(--px-radius-control, .25rem);
  --pxc-gutter: var(--px-gutter, clamp(1rem, 4vw, 2rem));
  --pxc-width: var(--px-width-container, 80rem);
  --pxc-s: var(--px-space-s, .75rem);
  --pxc-m: var(--px-space-m, 1.5rem);
  --pxc-l: var(--px-space-l, 2.5rem);
  /* Joomla content (links, Bootstrap buttons) follows the PX brand colour when PX Builder tokens are present. */
  --cassiopeia-color-link: var(--pxc-accent);
  --cassiopeia-color-hover: var(--pxc-primary-hover);
  font-family: var(--pxc-font-b);
  color: var(--pxc-text);
  background-color: var(--pxc-surface);
}

.pxc:not(.pxc-px) main :is(h1, h2, h3, h4, h5, h6) { font-family: var(--pxc-font-h); }

.pxc .btn-primary {
  color: var(--pxc-on-primary);
  background-color: var(--pxc-primary);
  border-color: var(--pxc-primary);
}

.pxc .btn-primary:hover,
.pxc .btn-primary:focus {
  color: var(--pxc-on-primary);
  background-color: var(--pxc-primary-hover);
  border-color: var(--pxc-primary-hover);
}

.pxc :is(.btn, .form-control, .form-select) { border-radius: var(--pxc-radius-c); }

/* Layout helpers */
.pxc-wrap {
  width: min(100% - 2 * var(--pxc-gutter), var(--pxc-width));
  margin-inline: auto;
}

.wrapper-fluid .pxc-wrap { width: calc(100% - 2 * var(--pxc-gutter)); }

.pxc-skip {
  position: absolute;
  top: -10rem;
  inset-inline-start: var(--pxc-s);
  z-index: 2000;
  padding: .75rem 1rem;
  color: var(--pxc-on-primary);
  background: var(--pxc-primary);
  border-radius: var(--pxc-radius-c);
  font-weight: 600;
  text-decoration: none;
}

.pxc-skip:focus { top: var(--pxc-s); color: var(--pxc-on-primary); }

/* PX Builder page: full width, the sections own their spacing. */
.pxc-px-main { flex: 1 0 auto; }
.pxc-px-content { display: block; }
.pxc-px-content:focus { outline: 0; }
.pxc-px-top > :not(:empty),
.pxc-px-bottom > :not(:empty) { margin-block: var(--pxc-m); }

/* Header */
.pxc-header {
  position: relative;
  z-index: 1010;
  color: var(--pxc-text);
  background: var(--pxc-surface);
  border-bottom: 1px solid var(--pxc-border);
  font-family: var(--pxc-font-b);
}

.pxc-header--sticky { position: sticky; top: 0; }
.pxc-header.is-stuck { box-shadow: 0 8px 24px -16px rgb(0 0 0 / .4); }

.pxc-topbar {
  padding-block: .375rem;
  background: var(--pxc-soft);
  font-size: .875rem;
}

.pxc-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: var(--pxc-s) var(--pxc-m);
  min-height: 4.5rem;
  padding-block: var(--pxc-s);
}

.pxc-brand { grid-area: brand; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-self: center; }
.pxc-brand__link { line-height: 1; }
.pxc-nav { grid-area: nav; display: flex; align-items: center; justify-content: flex-end; gap: var(--pxc-m); min-width: 0; }
.pxc-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: var(--pxc-s); }
.pxc-actions > :not(.pxc-cta, .pxc-toggle) p { margin: 0; }

.pxc-brand__link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.pxc-brand__link:hover { color: inherit; }
.pxc-brand__img { display: block; width: auto; max-height: 3rem; }
.pxc-brand__link:has(.pxc-brand__img--mark) { display: inline-flex; align-items: center; gap: .625rem; }
.pxc-brand__img--mark { height: 1.875rem; }

.pxc-brand__text {
  font-family: var(--pxc-font-h);
  font-size: 1.375rem;
  font-weight: var(--pxc-weight-h);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.pxc-brand__desc {
  margin: .125rem 0 0;
  color: var(--pxc-muted);
  font-size: .8125rem;
  line-height: 1.4;
}

/* Menu (mod_menu default or Cassiopeia metismenu layouts) */
.pxc-nav .mod-menu {
  display: flex;
  flex-direction: row; /* Cassiopeia sets .mod-menu to column */
  flex-wrap: wrap;
  align-items: center;
  gap: .125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pxc-nav .mod-menu li,
.pxc-nav .metismenu.mod-menu .metismenu-item {
  position: relative;
  padding: 0;
  font-size: 1rem;
}

.pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator) {
  display: inline-flex;
  align-items: center;
  padding: .5rem .75rem;
  color: var(--pxc-text);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--pxc-radius-c);
}

.pxc-nav .mod-menu a:hover { color: var(--pxc-accent); text-decoration: none; }

.pxc-nav .mod-menu :is(li.active > a, a[aria-current]) {
  color: var(--pxc-text);
  text-decoration: underline 2px var(--pxc-primary);
  text-underline-offset: .45em;
}

.pxc-nav .mod-menu :is(.mm-toggler, .mod-menu__toggle-sub) { color: inherit; padding-inline-end: .5rem; }

.pxc-nav .mod-menu ul {
  min-width: 12rem;
  margin: 0;
  padding: .375rem;
  list-style: none;
  color: var(--pxc-text);
  background: var(--pxc-surface);
  border: 1px solid var(--pxc-border);
  border-radius: var(--pxc-radius);
  box-shadow: 0 16px 32px -16px rgb(0 0 0 / .3);
}

.pxc-nav .mod-menu > li > ul { position: absolute; top: 100%; inset-inline-start: 0; z-index: 1001; }
.pxc-nav .mod-menu ul a { display: flex; width: 100%; }
.pxc-nav .mod-menu ul a:hover { background: var(--pxc-soft); color: var(--pxc-text); }
.pxc-nav .mod-menu ul ul { position: static; border: 0; box-shadow: none; padding-inline-start: 1rem; }
.pxc-search { min-width: 12rem; }
.pxc-search .mod-finder, .pxc-search form { margin: 0; }

/* Call to action and menu button */
.pxc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .625rem 1.25rem;
  color: var(--pxc-on-primary);
  background: var(--pxc-primary);
  border-radius: var(--px-btn-radius, var(--pxc-radius-c));
  font: 600 var(--px-btn-size, 1rem) / 1.2 var(--px-btn-font, inherit);
  text-transform: var(--px-btn-case, none);
  letter-spacing: var(--px-btn-tracking, normal);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s;
}

.pxc-cta:hover { color: var(--pxc-on-primary); background: var(--pxc-primary-hover); }
/* Button size (1.5.1): l = the default above (56px); m 48px, s 40px like the builder buttons. */
.pxc-cta--m { min-height: 3rem; padding: .75rem 1.375rem; }
.pxc-cta--s { min-height: 2.5rem; padding: .5rem 1.125rem; font-size: var(--px-text-small, .875rem); }

.pxc-toggle {
  display: none;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  padding: .5rem .875rem;
  color: var(--pxc-text);
  background: transparent;
  border: 1px solid var(--pxc-border);
  border-radius: var(--pxc-radius-c);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pxc-toggle:hover { background: var(--pxc-soft); }

.pxc-toggle__bars,
.pxc-toggle__bars::before,
.pxc-toggle__bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  transition: transform .2s, background-color .2s;
}

.pxc-toggle__bars { position: relative; }
.pxc-toggle__bars::before,
.pxc-toggle__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.pxc-toggle__bars::before { top: -6px; }
.pxc-toggle__bars::after { top: 6px; }
.pxc-toggle[aria-expanded="true"] .pxc-toggle__bars { background: transparent; }
.pxc-toggle[aria-expanded="true"] .pxc-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.pxc-toggle[aria-expanded="true"] .pxc-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Focus: always visible, brand colour in the header, current colour in the footer. */
.pxc .pxc-header :is(a, button, input, select):focus-visible,
.pxc .pxc-nav .mod-menu :is(a, button):focus-visible {
  outline: 2px solid var(--pxc-accent);
  outline-offset: 2px;
  box-shadow: none;
}

.pxc .pxc-footer :is(a, button, input):focus-visible,
.pxc .pxc-footer .mod-menu :is(a, button):focus-visible,
.pxc-skip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Centered: logo in the middle, menu on its own row */
.pxc-header--centered .pxc-header__bar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: ". brand actions" "nav nav nav";
  row-gap: 0;
  padding-bottom: 0;
}

.pxc-header--centered .pxc-brand { text-align: center; padding-block: .5rem; }
.pxc-header--centered .pxc-brand__text { font-size: 1.75rem; }

.pxc-header--centered .pxc-nav {
  justify-content: center;
  margin-top: var(--pxc-s);
  padding-block: .375rem;
  border-top: 1px solid var(--pxc-border);
}

/* Panel menu: every header below 992px, the minimal header at every width */
@media (width < 992px) {
  .pxc-header__bar,
  .pxc-header--centered .pxc-header__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "nav nav";
    row-gap: 0;
    padding-bottom: var(--pxc-s);
  }

  .pxc-header--centered .pxc-brand { text-align: start; padding-block: 0; }
  .pxc-header--centered .pxc-brand__text { font-size: 1.375rem; }
  .pxc-toggle { display: inline-flex; }
  .pxc-nav { display: none; }

  .pxc-header.is-open .pxc-nav {
    display: block;
    max-height: calc(100dvh - 6rem);
    margin-top: var(--pxc-s);
    padding-block: var(--pxc-s) 0;
    overflow-y: auto;
    border-top: 1px solid var(--pxc-border);
  }

  .pxc-nav .mod-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .pxc-nav .mod-menu li { display: flex; flex-wrap: wrap; align-items: center; }
  .pxc-nav .mod-menu > li + li { border-top: 1px solid var(--pxc-border); }
  .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator) { flex: 1; padding: .75rem .25rem; }
  .pxc-nav .mod-menu > li > ul,
  .pxc-nav .metismenu.mod-menu .metismenu-item > ul {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 .5rem 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .pxc-search { margin-block: var(--pxc-s); }
}

.pxc-header--minimal .pxc-header__bar {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand actions" "nav nav";
  row-gap: 0;
}

.pxc-header--minimal .pxc-toggle { display: inline-flex; }
.pxc-header--minimal .pxc-nav { display: none; }

.pxc-header--minimal.is-open .pxc-nav {
  display: block;
  max-height: calc(100dvh - 6rem);
  margin-top: var(--pxc-s);
  padding-block: var(--pxc-m);
  overflow-y: auto;
  border-top: 1px solid var(--pxc-border);
}

.pxc-header--minimal .pxc-nav .mod-menu { flex-direction: column; align-items: stretch; gap: 0; }
.pxc-header--minimal .pxc-nav .mod-menu li { display: flex; flex-wrap: wrap; align-items: center; }
.pxc-header--minimal .pxc-nav .mod-menu > li > :is(a, .mod-menu__heading, .mod-menu__separator) {
  flex: 1;
  padding: .625rem .25rem;
  font-family: var(--pxc-font-h);
  font-size: 1.375rem;
  font-weight: var(--pxc-weight-h);
}

.pxc-header--minimal .pxc-nav .mod-menu > li > ul,
.pxc-header--minimal .pxc-nav .metismenu.mod-menu .metismenu-item > ul {
  position: static;
  flex-basis: 100%;
  min-width: 0;
  padding: 0 0 .5rem 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pxc-header--minimal .pxc-search { max-width: 24rem; margin-top: var(--pxc-m); }

/* Header height (param header_height): m = the default above. */
@media (width >= 576px) {
  .pxc-hh-m .pxc-header__bar { min-height: 76px; }
  .pxc-hh-l .pxc-header__bar { min-height: 88px; }
  .pxc-hh-xl .pxc-header__bar { min-height: 120px; }
}

@media (width < 576px) {
  .pxc-header__bar { min-height: 4rem; gap: var(--pxc-s); }
  .pxc-brand__desc { display: none; }
  .pxc-cta { min-height: 2.5rem; padding: .5rem .875rem; font-size: .9375rem; }
  .pxc-toggle { padding-inline: .625rem; }

  .pxc-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Glass header: sticky, frosted surface. */
.pxc-header--glass {
  background: color-mix(in srgb, var(--pxc-surface) 70%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: color-mix(in srgb, var(--pxc-text) 10%, transparent);
}

/* Overlay header: on top of the first section, transparent, white text. The open mobile panel keeps the surface colours. */
.pxc-header--over:not(.pxc-header--glass):not(.pxc-header--floating) {
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
}

.pxc-header--overlay:not(.pxc-header--glass) { color: #fff; }
.pxc-header--over.pxc-header--sticky:not(.pxc-header--floating) { position: fixed; }
/* Floating bar over the first section (overlay, normal text): it leaves the flow; it sits inside an inset panel at 2 x space-s. */
.pxc-header--over.pxc-header--floating { position: fixed; inset-inline: 0; top: calc(2 * var(--px-space-s, 1rem)); margin-top: 0; z-index: 30; }
/* Room for the header at the top of the first section (overlay, normal text). */
.pxc-over-pad .px-page > .px-section:first-child { padding-top: calc(var(--px-section-m) + 4.5rem + var(--px-space-s, 1rem)); }
.pxc-over-float .px-page > .px-section:first-child,
.pxc-over-pad .px-page > .px-section--frame-inset-wide:first-child { padding-top: calc(2 * var(--px-space-s, 1rem) + 4rem + var(--px-section-m)); }
@media (max-width: 767px) {
  .pxc-header--over.pxc-header--floating { top: calc(var(--px-space-xs, .5rem) + 12px); }
}
.pxc-header--overlay:not(.pxc-header--glass) :is(.pxc-brand__link, .pxc-link, .pxc-brand__desc, .pxc-toggle),
.pxc-header--overlay:not(.pxc-header--glass) .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator, .mm-toggler, .mod-menu__toggle-sub) { color: #fff; }
.pxc-header--overlay:not(.pxc-header--glass) .pxc-nav .mod-menu :is(li.active > a, a[aria-current]) { color: #fff; text-decoration-color: currentColor; }
.pxc-header--overlay:not(.pxc-header--glass) .pxc-nav .mod-menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: .45em; }
.pxc-header--overlay:not(.pxc-header--glass) .pxc-toggle { border-color: rgb(255 255 255 / .55); }
.pxc-header--overlay:not(.pxc-header--glass) .pxc-toggle:hover { background: rgb(255 255 255 / .15); }
.pxc-header--overlay.is-stuck { box-shadow: none; }
/* Sticky and scrolled: back to a solid header. */
.pxc-header--overlay.pxc-header--sticky.is-stuck:not(.pxc-header--glass) { color: var(--pxc-text); background: var(--pxc-surface); border-bottom-color: var(--pxc-border, currentColor); }
.pxc-header--overlay.pxc-header--sticky.is-stuck:not(.pxc-header--glass) :is(.pxc-brand__link, .pxc-link, .pxc-brand__desc, .pxc-toggle),
.pxc-header--overlay.pxc-header--sticky.is-stuck:not(.pxc-header--glass) .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator, .mm-toggler, .mod-menu__toggle-sub) { color: var(--pxc-text); }
.pxc-header--overlay.pxc-header--sticky.is-stuck:not(.pxc-header--glass) .pxc-toggle { border-color: var(--pxc-border, currentColor); }
/* Dropdown panels are surface coloured: their links keep the text colour. */
.pxc-header--overlay .pxc-nav .mod-menu ul :is(a, .mod-menu__heading) { color: var(--pxc-text); }
.pxc-header--overlay .pxc-nav .mod-menu ul a:hover { color: var(--pxc-text); text-decoration: none; }
.pxc-header--overlay .pxc-search :is(input, button) { color: var(--pxc-text); }

@media (width < 992px) {
  .pxc-header--overlay.is-open:not(.pxc-header--glass) .pxc-nav { background: var(--pxc-surface); padding-inline: var(--pxc-s); border-radius: var(--pxc-radius); }
  .pxc-header--overlay.is-open .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator, .mm-toggler, .mod-menu__toggle-sub) { color: var(--pxc-text); }
  .pxc-header--overlay.is-open .pxc-nav .mod-menu a:hover { color: var(--pxc-accent); }
  .pxc-header--overlay.is-open .pxc-nav .mod-menu :is(li.active > a, a[aria-current]) { color: var(--pxc-text); }
}

.pxc-header--minimal.pxc-header--overlay.is-open .pxc-nav { background: var(--pxc-surface); padding-inline: var(--pxc-s); border-radius: var(--pxc-radius); }
.pxc-header--minimal.pxc-header--overlay.is-open .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator) { color: var(--pxc-text); }

/* Floating header: the bar is a glass pill as wide as .pxc-wrap; the header itself is only a transparent sticky track. */
.pxc-header--floating {
  position: sticky;
  top: 16px;
  margin-top: 16px;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.pxc-header--floating.is-stuck { box-shadow: none; }
.pxc-header--floating > * { pointer-events: auto; }
.pxc-header--floating .pxc-topbar { display: none; }

.pxc-header--floating .pxc-header__bar {
  position: relative;
  min-height: 0;
  padding: 10px 10px 10px 22px;
  background: linear-gradient(135deg, rgb(255 255 255 / .68), rgb(255 255 255 / .38));
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 12px 32px -12px rgb(15 23 42 / .18);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
}

.pxc-header--floating .pxc-nav { justify-content: center; }
.pxc-header--floating .pxc-brand__img { height: 30px; max-height: none; }
.pxc-header--floating .pxc-brand__text { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
.pxc-header--floating .pxc-nav .mod-menu a { font-size: .90625rem; color: color-mix(in srgb, var(--pxc-text) 78%, transparent); }

.pxc-header--floating .pxc-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: .625rem 1.125rem;
  color: #fff;
  background: var(--pxc-text);
  border-radius: 999px;
  font-size: .9375rem;
}

.pxc-header--floating .pxc-cta:hover { color: #fff; background: color-mix(in srgb, var(--pxc-text) 82%, var(--pxc-primary)); }
.pxc-header--floating .pxc-nav .mod-menu a { border-radius: 999px; }
.pxc-header--floating .pxc-nav .mod-menu a:hover { color: var(--pxc-text); background: rgb(255 255 255 / .7); }
.pxc-header--floating .pxc-nav .mod-menu :is(li.active > a, a[aria-current]) { text-decoration: none; background: rgb(255 255 255 / .7); }
.pxc-header--floating .pxc-toggle { border-radius: 999px; background: rgb(255 255 255 / .5); }

@media (width < 992px) {
  .pxc-header--floating .pxc-header__bar { padding: 8px 8px 8px 18px; }

  .pxc-header--floating.is-open .pxc-nav {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 8px);
    z-index: 5;
    margin: 0;
    padding: var(--pxc-s) var(--pxc-m);
    background: var(--pxc-surface);
    border: 1px solid var(--pxc-border);
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 16px 32px -16px rgb(15 23 42 / .3);
  }

  .pxc-header--floating .pxc-nav .mod-menu a:hover { background: var(--pxc-soft); }
}

/* Aurora page background: blurred colour blobs from the PX Builder palette behind the whole page. */
.pxc-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--pxc-surface); }
.pxc-aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.pxc-aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: color-mix(in srgb, var(--px-base-color-primary, var(--cassiopeia-color-primary, #112855)) 45%, #fff); }
.pxc-aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: -6vw; background: color-mix(in srgb, var(--px-base-color-primary, var(--cassiopeia-color-primary, #112855)) 30%, #c4b5fd); }
.pxc-aurora i:nth-child(3) { width: 36vw; height: 36vw; left: 30vw; top: 38vh; background: var(--px-base-color-secondary, var(--template-bg-light, #bae6fd)); opacity: .45; }
.pxc-aurora i:nth-child(4) { width: 30vw; height: 30vw; right: 4vw; bottom: -10vw; background: color-mix(in srgb, var(--px-base-color-primary, var(--cassiopeia-color-primary, #112855)) 20%, #fbcfe8); opacity: .4; }
/* The fixed aurora layer sits below in-flow backgrounds: body must not paint its own. */
body.pxc-bg-aurora { background: transparent; }
.pxc-bg-aurora .px-page .px-section--bg-surface { background-color: transparent; }
.pxc-bg-aurora .pxc-footer--light {
  background: rgb(255 255 255 / .4);
  border-top: 1px solid var(--pxc-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Footer */
.pxc-footer {
  margin-top: auto;
  color: var(--pxc-f-fg);
  background: var(--pxc-f-bg);
  font-family: var(--pxc-font-b);
  font-size: .9375rem;
  line-height: 1.6;
}

.pxc-footer--dark {
  --pxc-f-bg: var(--px-color-text, var(--cassiopeia-color-primary, #112855));
  --pxc-f-fg: var(--px-color-surface, #fff);
  --pxc-f-muted: color-mix(in srgb, var(--pxc-f-fg) 80%, var(--pxc-f-bg));
  --pxc-f-line: color-mix(in srgb, var(--pxc-f-fg) 16%, var(--pxc-f-bg));
}

.pxc-footer--light {
  --pxc-f-bg: var(--pxc-soft);
  --pxc-f-fg: var(--pxc-text);
  --pxc-f-muted: var(--pxc-muted);
  --pxc-f-line: color-mix(in srgb, var(--pxc-text) 14%, var(--pxc-f-bg));
}

.pxc-footer__cols {
  display: grid;
  gap: var(--pxc-l) var(--pxc-m);
  padding-block: var(--px-section-s, 3.5rem);
}

.pxc-footer__cols--4 { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
.pxc-footer__cols--3 { grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr)); }
.pxc-footer__col { min-width: 0; color: var(--pxc-f-muted); }
.pxc-footer__col > * + * { margin-top: var(--pxc-m); }
.pxc-footer__brand .pxc-brand__desc { max-width: 22rem; margin-top: .5rem; color: var(--pxc-f-muted); font-size: .9375rem; }
.pxc-footer__brand .pxc-brand__img { max-height: 2.5rem; }

.pxc-footer .moduletable > :is(h2, h3, h4):first-child {
  margin: 0 0 1rem;
  color: var(--pxc-f-muted);
  font-family: var(--pxc-font-h);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pxc-footer p { margin: 0 0 .75rem; }
.pxc-footer a { color: var(--pxc-f-fg); text-decoration: none; }
.pxc-footer a:hover { color: var(--pxc-f-fg); text-decoration: underline; text-underline-offset: .2em; }

.pxc-footer .mod-menu {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pxc-footer .mod-menu li,
.pxc-footer .metismenu.mod-menu .metismenu-item { padding: 0; font-size: inherit; }
.pxc-footer .mod-menu a { color: var(--pxc-f-muted); }
.pxc-footer--light .mod-menu a { color: color-mix(in srgb, var(--pxc-text) 85%, var(--pxc-f-bg)); }
.pxc-footer .mod-menu a:hover,
.pxc-footer--light .mod-menu a:hover { color: var(--pxc-f-fg); }
.pxc-footer .mod-menu ul { position: static; padding-inline-start: 1rem; list-style: none; background: none; box-shadow: none; }

.pxc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pxc-s) var(--pxc-m);
  padding-block: var(--pxc-m);
  color: var(--pxc-f-muted);
  border-top: 1px solid var(--pxc-f-line);
  font-size: .875rem;
}

.pxc-footer--simple .pxc-footer__bottom { padding-block: var(--pxc-l); border-top: 0; }
.pxc-footer__copy, .pxc-footer__end p { margin: 0; }
/* Footer tint (1.3): the page surface with 5% of the text colour. */
.pxc-footer--tint {
  --pxc-f-bg: color-mix(in srgb, var(--pxc-text) 5%, var(--pxc-surface));
  --pxc-f-fg: var(--pxc-text);
  --pxc-f-muted: var(--pxc-muted);
  --pxc-f-line: color-mix(in srgb, var(--pxc-text) 14%, var(--pxc-f-bg));
}
.pxc-footer--tint .mod-menu a { color: color-mix(in srgb, var(--pxc-text) 85%, var(--pxc-f-bg)); }
.pxc-footer--tint .mod-menu a:hover { color: var(--pxc-f-fg); }

/* Footer social (1.3): icons on the right of the last line. */
.pxc-footer__bottom--social .pxc-footer__copy { flex: 1 1 auto; width: auto; }
.pxc-footer__social { margin-inline-start: auto; }
.pxc-footer__social :is(ul, .mod-menu, .mod-custom) { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; }
.pxc-footer__social li { margin: 0; }
.pxc-footer__social p { margin: 0; }
.pxc-footer__social a { display: inline-flex; align-items: center; }
.pxc-footer__social :is(svg, img) { width: 1.25rem; height: 1.25rem; }

/* Header phone (1.3): icon + number to the left of the call to action. */
.pxc-phone { display: inline-flex; align-items: center; gap: .5rem; color: var(--pxc-text); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
a.pxc-phone:hover { color: var(--pxc-accent); text-decoration: none; }
.pxc-phone__icon { flex: none; color: var(--pxc-primary); }
.pxc-header--overlay:not(.pxc-header--glass):not(.is-stuck) .pxc-phone { color: #fff; }
.pxc-header--overlay:not(.pxc-header--glass):not(.is-stuck) .pxc-phone__icon { color: currentColor; }
@media (width < 768px) { .pxc-phone__text { display: none; } }

/* Menu in capitals (1.3): small, spaced. */
.pxc-menu-upper .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator) { text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; }
.pxc-menu-upper .pxc-nav .mod-menu ul :is(a, .mod-menu__heading) { text-transform: none; letter-spacing: normal; font-size: .9375rem; }
.pxc-footer__end .mod-menu { flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; }

@media (width < 992px) {
  .pxc-footer__cols--4,
  .pxc-footer__cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pxc-footer__col:first-child { grid-column: 1 / -1; }
}

@media (width < 576px) {
  .pxc-footer__cols--4,
  .pxc-footer__cols--3 { grid-template-columns: minmax(0, 1fr); }
  .pxc-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .pxc-cta, .pxc-toggle__bars, .pxc-toggle__bars::before, .pxc-toggle__bars::after { transition: none; }
}

/* Split centre header (1.2): menu left, logo in the middle, menu-2 + actions right. Below 992px it is the panel menu of the other headers (both menus in the panel). */
@media (width >= 992px) {
  .pxc-header--split-center .pxc-header__bar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    grid-template-areas: "a brand b actions";
  }

  .pxc-header--split-center .pxc-nav { display: contents; }
  .pxc-header--split-center .pxc-nav__a { grid-area: a; justify-self: start; min-width: 0; }
  .pxc-header--split-center .pxc-nav__b { grid-area: b; justify-self: end; min-width: 0; }
  .pxc-header--split-center .pxc-brand { text-align: center; }
  .pxc-header--split-center .pxc-search { grid-area: b; justify-self: end; }
}

@media (width < 992px) {
  .pxc-header--split-center .pxc-nav__b { margin-top: var(--pxc-s); }
}

/* Footer centred (1.2): logo in the middle, footer-1..3 centred below. */
.pxc-footer__brand--center { padding-top: var(--px-section-s, 3.5rem); text-align: center; }
.pxc-footer__brand--center .pxc-brand__link { justify-content: center; }
.pxc-footer__brand--center .pxc-brand__desc { margin-inline: auto; }
.pxc-footer--centered .pxc-footer__cols--3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); text-align: center; }
/* 1.5.7: one module column fills the whole row (the columns that exist share the width; a single one is wide). */
/* Empty module columns take no room, so one module spans the whole centred band. */
.pxc-footer--centered .pxc-footer__col:not(:has(*)) { display: none; }
.pxc-footer--centered .pxc-footer__col p { margin-inline: auto; }
.pxc-footer--centered .pxc-footer__col .mod-menu { align-items: center; }
@media (width < 992px) {
  .pxc-footer--centered .pxc-footer__cols--3 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pxc-footer--centered .pxc-footer__col:first-child { grid-column: auto; }
}
@media (width < 576px) {
  .pxc-footer--centered .pxc-footer__cols--3 { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
}

/* Footer wordmark (1.2): the brand name as huge outlined letters under the footer. */
.pxc-footer__wordmark {
  overflow: hidden;
  padding-inline: var(--pxc-gutter, 1rem);
  font-family: var(--pxc-font-h);
  font-size: clamp(4rem, 17vw, 16rem);
  font-weight: var(--pxc-weight-h);
  line-height: .85;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--pxc-f-line);
  user-select: none;
  pointer-events: none;
}

/* footer lists: no bullets (menus and custom HTML lists in footer modules). */
.pxc-footer ul { margin: 0; padding: 0; list-style: none; }
.pxc-footer li { margin: 0 0 .625rem; }

/* Bottom line: copyright left, second part (after " | ") right. */
.pxc-footer__copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; flex: 1 1 100%; width: 100%; font-size: .84375rem; color: color-mix(in srgb, var(--pxc-f-fg) 60%, transparent); }
/* Footer rhythm: brand like the header, links muted. */
.pxc-footer .pxc-brand__text { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
/* Footer text follows the footer's own foreground (--pxc-f-fg), so it reads on dark footers too. */
.pxc-footer a:not(.pxc-brand__link) { color: color-mix(in srgb, var(--pxc-f-fg) 72%, transparent); text-decoration: none; }
.pxc-footer a:not(.pxc-brand__link):hover { color: var(--pxc-f-fg); }
.pxc-footer .pxc-footer__col p { color: color-mix(in srgb, var(--pxc-f-fg) 60%, transparent); max-width: 30ch; font-size: .90625rem; }
.pxc-footer .pxc-footer__brand + * { margin-top: .875rem; }
.pxc-footer .pxc-footer__col .moduletable > :first-child, .pxc-footer .pxc-footer__col .mod-custom > :first-child { margin-top: 0; }

/* Top bar, dark (topbar_style dark): the palette text colour as background, light text, 44px high. */
.pxc-topbar--dark {
  padding-block: 0;
  background: var(--px-color-text, #0b1020);
  color: color-mix(in srgb, #fff 78%, var(--px-color-text, #0b1020));
  font-size: 13.5px;
}
.pxc-topbar--dark .pxc-wrap { display: flex; align-items: center; gap: 28px; min-height: 44px; }
.pxc-topbar--dark :is(p, ul, .moduletable, .mod-custom) { margin: 0; }
.pxc-topbar--dark a { color: inherit; text-decoration: none; }
.pxc-topbar--dark a:hover { color: #fff; }
.pxc-topbar--dark :is(svg, i, .icon, [class*="icon-"]) { color: color-mix(in srgb, var(--px-color-primary, #8d99ff) 45%, #fff); }
.pxc-topbar--dark :is(.px-social, [class*="social"], .pxc-topbar__social) a { color: #fff; }
.pxc-topbar--dark :is(.px-social, [class*="social"]) :is(svg, i, [class*="icon-"]) { color: #fff; }

/* Footer shape round-top (footer_shape): rounded top corners + a soft primary glow in two corners. */
.pxc-footer--round-top {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-radius: var(--px-radius-frame, 0) var(--px-radius-frame, 0) 0 0;
}
.pxc-footer--round-top::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 0% 0%, color-mix(in oklab, var(--px-color-primary, #2b3de0) 70%, transparent), transparent 70%),
    radial-gradient(35% 50% at 100% 100%, color-mix(in oklab, var(--px-color-primary, #2b3de0) 45%, transparent), transparent 70%);
}
/* Dark top bar: the last module (social links) sits at the end; on phones only the first module stays. */
.pxc-topbar--dark .pxc-wrap > :last-child:not(:first-child) { margin-inline-start: auto; }
@media (max-width: 767px) {
	.pxc-topbar--dark .pxc-wrap { gap: 16px; }
	.pxc-topbar--dark .pxc-wrap > :first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.pxc-topbar--dark .pxc-wrap > :first-child :is(span, a):not(:first-child) { display: none; }
}

/* 1.5: bar header (logo left, menu truly centred on the bar, link + button right), small menu, link, button styles. */
@media (width >= 992px) {
  .pxc-header--bar .pxc-header__bar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "brand nav actions";
  }

  .pxc-header--bar .pxc-nav { justify-content: center; }
}

.pxc-menu-s .pxc-nav .mod-menu li { font-size: 15.5px; }
.pxc-menu-s .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator) { font-size: 15.5px; font-weight: 500; }

.pxc-link { display: inline-flex; align-items: center; padding: .5rem .75rem; color: var(--pxc-text); font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.pxc-menu-s .pxc-link { font-size: 15.5px; }
.pxc-link:hover { color: var(--pxc-accent); text-decoration: none; }
@media (width < 576px) { .pxc-link { display: none; } }

/* Button styles as the button element: secondary = soft fill, ink = text colour fill. */
.pxc-cta--secondary { color: var(--px-color-heading, var(--pxc-text)); background: var(--pxc-soft); }
.pxc-cta--secondary:hover { color: var(--px-color-heading, var(--pxc-text)); background: color-mix(in oklab, var(--pxc-soft) 88%, var(--pxc-text)); }
.pxc-cta--ink { color: var(--pxc-surface); background: var(--pxc-text); }
.pxc-cta--ink:hover { color: var(--pxc-surface); background: color-mix(in oklab, var(--pxc-text) 82%, var(--pxc-primary)); }
.pxc-header--floating .pxc-cta--secondary,
.pxc-header--floating .pxc-cta--secondary:hover { color: var(--px-color-heading, var(--pxc-text)); background: var(--pxc-soft); }
.pxc-header--overlay:not(.pxc-header--glass):not(.is-stuck) .pxc-cta--secondary { background: rgb(255 255 255 / .92); color: var(--pxc-text); }

/* 1.5.1: small muted label above the phone number; upper-case menu also sets the brand text; inset first section keeps off the header (overlay unchanged). */
@media (width >= 768px) { .pxc-phone__text { display: inline-flex; flex-direction: column; line-height: 1.2; } }
.pxc-phone__label { font-size: .75rem; font-weight: 400; color: var(--pxc-muted); }
.pxc-header--overlay:not(.pxc-header--glass):not(.is-stuck) .pxc-phone__label { color: currentColor; opacity: .75; }
.pxc-menu-upper .pxc-brand__text { text-transform: uppercase; letter-spacing: .12em; }
.pxc-over .px-page > .px-section--frame-inset:first-child,
.pxc-over .px-page > .px-section--frame-inset-wide:first-child { margin-top: 0; }

/* 1.5.2: footer surface, solid wordmark, active-menu underline, CTA icon. */
.pxc-footer--surface {
  --pxc-f-bg: var(--pxc-surface);
  --pxc-f-fg: var(--pxc-text);
  --pxc-f-muted: var(--pxc-muted);
  --pxc-f-line: color-mix(in srgb, var(--pxc-text) 14%, var(--pxc-f-bg));
}
.pxc-footer--surface .mod-menu a { color: color-mix(in srgb, var(--pxc-text) 85%, var(--pxc-f-bg)); }
.pxc-footer--surface .mod-menu a:hover { color: var(--pxc-f-fg); }

.pxc-footer--wm-solid { position: relative; isolation: isolate; overflow: hidden; }
.pxc-footer--wm-solid > :not(.pxc-footer__wordmark) { position: relative; z-index: 1; }
.pxc-footer__wordmark--solid {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  padding-inline: 0;
  line-height: .8;
  color: color-mix(in srgb, var(--pxc-text) 7%, transparent);
  -webkit-text-stroke: 0;
}

/* 1.5.7: centred footer + solid wordmark: the faded name sits behind the logo / tagline block at the top, not at the bottom. */
.pxc-footer--centered.pxc-footer--wm-solid .pxc-footer__wordmark--solid { inset: calc(var(--px-section-s, 3.5rem) * .25) 0 auto; text-align: center; }

body.pxc-menu-ul .pxc-nav .mod-menu :is(li.active > a, a[aria-current]) {
  color: inherit;
  background: none;
  text-decoration: underline 2px var(--pxc-primary);
  text-underline-offset: 6px;
}
body.pxc-menu-ul .pxc-header--floating .pxc-nav .mod-menu a:hover { text-decoration: none; }

.pxc-cta__icon { flex: none; width: 1em; height: 1em; margin-inline-start: .375em; }

/* 1.9: header_style floating-surface (bar in palette colours) and header_cta_style outline. Added rules only. */
.pxc-header--floating-surface .pxc-header__bar {
  background: color-mix(in oklab, var(--pxc-surface) 72%, transparent);
  border-color: color-mix(in oklab, var(--pxc-text) 14%, transparent);
  box-shadow: 0 12px 32px -12px color-mix(in oklab, var(--pxc-text) 30%, transparent);
}

.pxc-header--floating-surface .pxc-brand__link,
.pxc-header--floating-surface .pxc-brand__text,
.pxc-header--floating-surface .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator) { color: var(--pxc-text); }
.pxc-header--floating-surface .pxc-nav .mod-menu a:hover,
.pxc-header--floating-surface .pxc-nav .mod-menu :is(li.active > a, a[aria-current]) { background: color-mix(in oklab, var(--pxc-text) 12%, transparent); }
.pxc-header--floating-surface .pxc-toggle { background: color-mix(in oklab, var(--pxc-text) 10%, transparent); color: var(--pxc-text); }
.pxc-header--floating-surface .pxc-cta,
.pxc-header--floating-surface .pxc-cta:hover { color: var(--pxc-surface); }
.pxc-header--floating-surface .pxc-cta--secondary,
.pxc-header--floating-surface .pxc-cta--secondary:hover { color: var(--px-color-heading, var(--pxc-text)); }

.pxc-cta--outline { background: transparent; border: 1px solid currentColor; color: inherit; }
.pxc-cta--outline:hover { color: inherit; background: color-mix(in oklab, currentColor 10%, transparent); }
.pxc-cta--outline:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pxc-header--floating .pxc-cta--outline,
.pxc-header--floating .pxc-cta--outline:hover { color: var(--pxc-text); background: transparent; }
.pxc-header--floating .pxc-cta--outline:hover { background: color-mix(in oklab, var(--pxc-text) 10%, transparent); }
.pxc-header--overlay:not(.pxc-header--glass):not(.is-stuck) .pxc-cta--outline { color: #fff; border-color: #fff; background: transparent; }
.pxc-header--overlay:not(.pxc-header--glass):not(.is-stuck) .pxc-cta--outline:hover { background: rgb(255 255 255 / .14); }

/* 1.9.1: (T1) room for the overlay header on phones. px-canvas.js sets --pxc-header-h (bottom edge of the header, wrapped brand included);
   the first section gets padding-top >= that + space-s, never less than its own top padding (--pxc-own-pt: sp-* / pt-* classes).
   Only when px-canvas.js found the first line of text under the header (class pxc-over-fix), so pages that already clear the header keep their look. Skipped when the first section is spacing "none" and its first element is a slideshow (the slideshow goes under the header on purpose). */
@media (max-width: 767px) {
  .pxc-over.pxc-over-fix .px-page > .px-section:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) {
    --pxc-own-pt: var(--px-section-m);
    padding-top: max(var(--pxc-own-pt), calc(var(--pxc-header-h, 5rem) + var(--px-space-s, .75rem)));
  }

  .pxc-over.pxc-over-fix .px-page > .px-section.px-section--sp-none:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) { --pxc-own-pt: 0px; }
  .pxc-over.pxc-over-fix .px-page > .px-section.px-section--sp-s:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) { --pxc-own-pt: var(--px-section-s); }
  .pxc-over.pxc-over-fix .px-page > .px-section.px-section--sp-l:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) { --pxc-own-pt: var(--px-section-l); }
  .pxc-over.pxc-over-fix .px-page > .px-section.px-section--pt-none:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) { --pxc-own-pt: 0px; }
  .pxc-over.pxc-over-fix .px-page > .px-section.px-section--pt-s:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) { --pxc-own-pt: var(--px-section-s); }
  .pxc-over.pxc-over-fix .px-page > .px-section.px-section--pt-m:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) { --pxc-own-pt: var(--px-section-m); }
  .pxc-over.pxc-over-fix .px-page > .px-section.px-section--pt-l:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) { --pxc-own-pt: var(--px-section-l); }

  /* Overlay with normal text (pxc-over-pad) keeps its larger own padding. */
  .pxc-over.pxc-over-fix.pxc-over-pad .px-page > .px-section.px-section:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) { --pxc-own-pt: calc(var(--px-section-m) + 4.5rem + var(--px-space-s, 1rem)); }
  .pxc-over.pxc-over-fix.pxc-over-float .px-page > .px-section.px-section:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))),
  .pxc-over.pxc-over-fix.pxc-over-pad .px-page > .px-section.px-section--frame-inset-wide:first-child:not(:where(.px-section--sp-none:has(.px-section__inner > .px-row:first-child > .px-col:first-child > .px-el:first-child.px-slideshow))) { --pxc-own-pt: calc(2 * var(--px-space-s, 1rem) + 4rem + var(--px-section-m)); }
}

/* 1.9.1: (T2) header_cta_mobile = hide: below 480px the bar button is hidden; a copy ends the open menu panel. */
.pxc-cta--nav { display: none; }

@media (width < 480px) {
  .pxc-cta-mhide .pxc-actions .pxc-cta { display: none; }
  .pxc-cta-mhide .pxc-nav .pxc-cta--nav { display: inline-flex; margin-block: var(--pxc-s); }
  .pxc-header--overlay.is-open .pxc-nav .pxc-cta--outline { color: var(--pxc-text); border-color: currentColor; }
  .pxc-header--overlay.is-open .pxc-nav .pxc-cta--secondary { background: var(--pxc-soft); }
}

/* 1.9.1: (T4) floating-surface: the button follows header_cta_style (the primary one was always ink). */
.pxc-header--floating-surface .pxc-cta:not(.pxc-cta--secondary, .pxc-cta--ink, .pxc-cta--outline) { color: var(--pxc-on-primary); background: var(--pxc-primary); }
.pxc-header--floating-surface .pxc-cta:not(.pxc-cta--secondary, .pxc-cta--ink, .pxc-cta--outline):hover { color: var(--pxc-on-primary); background: var(--pxc-primary-hover); }

/* 1.10.3 (L2): at 992px and wider, px-canvas.js adds .pxc-header--burger when the menu items do not fit on one line;
   the header then uses the panel menu of the narrow screens. The same rules as "Panel menu" above, scoped to that class. */
.pxc-header--burger .pxc-header__bar,
.pxc-header--burger.pxc-header--centered .pxc-header__bar {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand actions" "nav nav";
  row-gap: 0;
  padding-bottom: var(--pxc-s);
}

.pxc-header--burger.pxc-header--centered .pxc-brand { text-align: start; padding-block: 0; }
.pxc-header--burger.pxc-header--centered .pxc-brand__text { font-size: 1.375rem; }
.pxc-header--burger .pxc-toggle { display: inline-flex; }
.pxc-header--burger .pxc-nav { display: none; }

.pxc-header--burger.is-open .pxc-nav {
  display: block;
  max-height: calc(100dvh - 6rem);
  margin-top: var(--pxc-s);
  padding-block: var(--pxc-s) 0;
  overflow-y: auto;
  border-top: 1px solid var(--pxc-border);
}

.pxc-header--burger .pxc-nav .mod-menu { flex-direction: column; align-items: stretch; gap: 0; }
.pxc-header--burger .pxc-nav .mod-menu li { display: flex; flex-wrap: wrap; align-items: center; }
.pxc-header--burger .pxc-nav .mod-menu > li + li { border-top: 1px solid var(--pxc-border); }
.pxc-header--burger .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator) { flex: 1; padding: .75rem .25rem; }
.pxc-header--burger .pxc-nav .mod-menu > li > ul,
.pxc-header--burger .pxc-nav .metismenu.mod-menu .metismenu-item > ul {
  position: static;
  flex-basis: 100%;
  min-width: 0;
  padding: 0 0 .5rem 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pxc-header--burger .pxc-search { margin-block: var(--pxc-s); }
.pxc-header--burger.pxc-header--split-center .pxc-nav__b { margin-top: var(--pxc-s); }
.pxc-header--burger.pxc-header--overlay.is-open:not(.pxc-header--glass) .pxc-nav { background: var(--pxc-surface); padding-inline: var(--pxc-s); border-radius: var(--pxc-radius); }
.pxc-header--burger.pxc-header--overlay.is-open .pxc-nav .mod-menu :is(a, .mod-menu__heading, .mod-menu__separator, .mm-toggler, .mod-menu__toggle-sub) { color: var(--pxc-text); }
.pxc-header--burger.pxc-header--overlay.is-open .pxc-nav .mod-menu a:hover { color: var(--pxc-accent); }
.pxc-header--burger.pxc-header--overlay.is-open .pxc-nav .mod-menu :is(li.active > a, a[aria-current]) { color: var(--pxc-text); }
.pxc-header--burger.pxc-header--floating .pxc-header__bar { padding: 8px 8px 8px 18px; }

.pxc-header--burger.pxc-header--floating.is-open .pxc-nav {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 5;
  margin: 0;
  padding: var(--pxc-s) var(--pxc-m);
  background: var(--pxc-surface);
  border: 1px solid var(--pxc-border);
  border-radius: 0 0 1.5rem 1.5rem;
  box-shadow: 0 16px 32px -16px rgb(15 23 42 / .3);
}

.pxc-header--burger.pxc-header--floating .pxc-nav .mod-menu a:hover { background: var(--pxc-soft); }

/* 1.11 (template): narrow header: long brand names wrap to 2 lines (between words, never inside one) then clip;
   the button never shrinks or overlaps. */
.pxc-header__bar .pxc-brand__link { min-width: 0; max-width: 100%; }
.pxc-header__bar .pxc-brand__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}
.pxc-actions { flex-shrink: 0; }
.pxc-cta, .pxc-toggle { flex-shrink: 0; }
@media (width < 576px) {
  .pxc-header__bar { column-gap: var(--pxc-s); grid-template-columns: minmax(5.5rem, 1fr) auto; }
  .pxc-actions { gap: .5rem; }
  .pxc-actions .pxc-cta { padding-inline: .75rem; font-size: .875rem; letter-spacing: normal; }
  /* With a visible button there is no room for the phone icon as well (it ran into the name). */
  body:not(.pxc-cta-mhide) .pxc-actions:has(.pxc-cta) .pxc-phone { display: none; }
}

/* header_overlay_shade = 1: dark fade at the top while the white header sits over the first section. */
.pxc-header--shade:not(.is-stuck)::before,
.pxc-header--shade.is-stuck:not(.pxc-header--sticky)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 140%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / .45), transparent);
}

/* round-top glow: the corner glows are % ellipses, so on a tall phone footer they stretched into edge stripes; use round glows there. */
@media (width < 576px) {
  .pxc-footer--round-top::before {
    background:
      radial-gradient(circle 12rem at 0% 0%, color-mix(in oklab, var(--px-color-primary, #2b3de0) 70%, transparent), transparent 70%),
      radial-gradient(circle 10rem at 100% 100%, color-mix(in oklab, var(--px-color-primary, #2b3de0) 45%, transparent), transparent 70%);
  }
}
