/* Critical CSS of the ezpl design: what keeps the first paint stable (no flash, no layout shift) while the full
   stylesheets load. A render-blocking file of its own (templates/page_head_style.tpl), cached by the browser, so it
   is not repeated in every page's HTML: inline it took about 22 KB before the content of every page. */
/* Critical CSS to prevent FOUC/CLS while the preloaded stylesheets load */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary, #1f2937);
  background-color: var(--bg-dark, #ffffff);
  /* Override the webfont variables so Inter/Open Sans/Roboto never swap in and cause CLS */
  --font-family-small: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-text: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-open-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-roboto-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-roboto: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html[data-theme="dark"] body { color: #e0e0e0; background-color: #121212; }
img, svg, video { max-width: 100%; height: auto; }
html h1, html h2, html h3, html h4, html h5, html h6 { margin: 0 0 0.5rem 0; color: var(--text-primary, #1f2937); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif !important; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6 { color: #e0e0e0; }
p { margin: 0 0 1rem 0; }
a { color: #0d6efd; text-decoration: underline; }

.bi, .fa-brands, .fa-solid, .social-link i, [class*="fa-"] {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  font-size: 1.25em;
  text-align: center;
  line-height: 1;
  box-sizing: content-box;
  vertical-align: middle;
}
/* Keep icon pseudo-elements at a fixed 1em box so the icon webfont swap does not change layout */
.bi::before, .fa-brands::before, .fa-solid::before, .fas::before, .fab::before, .far::before, .fal::before, [class*="fa-"]::before {
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-align: center;
  vertical-align: middle !important;
}
.multi-dropdown .multi-dropdown-menu, .multi-dropdown .dropdown-menu { display: none; }

/* Footer social links — render styled before all.css arrives */
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 340px; margin-inline: auto; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,154,86,0.1); border: 1px solid rgba(255,154,86,0.2); border-radius: 50%; color: var(--text-primary, #1f2937); text-decoration: none; font-size: 1.1rem; }
.social-link:hover { background: rgba(255,154,86,0.85); color: #fff; }

/* Missing Bootstrap utilities the packed all.css does not currently include */
.text-center { text-align: center !important; }
.d-block { display: block !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Clickable video wrapper with play button overlay */
.video-wrapper { position: relative; display: block; margin: 0 auto; width: 640px; max-width: 100%; }
.video-wrapper video { display: block; width: 100%; height: auto; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; background: rgba(0,0,0,0.55); border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; transition: opacity 0.2s; }
.play-overlay::before { content: ""; width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 24px solid #fff; margin-left: 4px; }
.play-overlay i { display: none; }
.video-wrapper.is-playing .play-overlay { opacity: 0; }

/* Hero titles so the largest text is styled and LCP-eligible before all.css arrives.
   Use !important for font metrics to prevent FOUC/CLS; color uses the CSS variable
   so dark-mode themes still work once the full stylesheet loads. */
html body h1.title,
html body h2.subtitle,
html body h3.subtitle {
  display: block;
  color: var(--text-primary, #1f2937);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
html[data-theme="dark"] body h1.title,
html[data-theme="dark"] body h2.subtitle,
html[data-theme="dark"] body h3.subtitle {
  color: #e0e0e0;
}
html body .title {
  font-size: clamp(2.5rem, 8vw, 4rem) !important;
  font-weight: 800;
  line-height: 1.1 !important;
  margin-bottom: 1.5rem;
}
html body section.hero h1.title {
  font-size: 2.5rem !important;
}
html body .subtitle,
html body h2.subtitle,
html body h3.subtitle {
  font-size: 1.5rem !important;
  font-weight: 400;
  line-height: 1.5 !important;
  margin-bottom: 1.5rem;
}
/* Render the gradient text immediately so the H1 does not repaint later and extend LCP.
   all.css can still override --gradient-primary once it loads (no layout shift, same size). */
html body .gradient-text {
  display: inline-block !important;
  background: var(--gradient-primary, linear-gradient(135deg, #f05a28, #ff69b4, #c471ed, #7b68ee));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
html[data-theme="dark"] body .gradient-text {
  background: var(--gradient-primary, linear-gradient(135deg, #7b2ff7, #ff69b4, #f05a28, #ffb347));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
section.hero {
  min-height: 66vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(255,154,86,0.1) 0%, rgba(123,104,238,0.05) 50%, transparent 70%);
}
@media (max-width: 640px) {
  section.hero { min-height: 0; }
  html body section.hero h1.title { font-size: 3.5rem !important; line-height: 1.1 !important; }
  html body .subtitle,
  html body h2.subtitle,
  html body h3.subtitle { font-size: 1.3rem !important; line-height: 1.45 !important; }
  .hero-slide { max-width: 75%; margin-inline: auto; }
}
section.hero .hero-img-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 5rem;
  margin-bottom: 5rem;
}
.hero-slide {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  width: 100%;
}
section.hero .hero-img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  z-index: 0;
  border-radius: 0.75rem;
  object-fit: cover;
  object-position: top center;
}
.hero-slider .splide__track { contain: layout; }
.hero-slider .splide__list { contain: layout style; }
section.hero .splide.hero-slider,
section.hero .splide.hero-slider.is-initialized,
section.hero .splide.hero-slider.is-rendered { visibility: visible; }
.hero-slider .splide__track {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
  aspect-ratio: 16 / 9;
}
.hero-slider .splide__list { display: flex; width: 100%; height: 100%; margin: 0; padding: 0; }
.hero-slider .splide__slide { flex: 0 0 100%; width: 100%; box-sizing: border-box; list-style: none; margin: 0; }
/* Splide starts hidden in its CSS; force visible so the hero image reserves layout from the first paint */
html body .splide { visibility: visible !important; }
/* Reserve the pagination bar so it does not appear after mount and shift content */
.hero-slider-controls { position: relative; padding: 1rem 0; text-align: center; }
.hero-slider-controls .splide__pagination { position: static; display: inline-flex; gap: 0.6rem; padding: 0; }

/* Position the Splide arrows just outside the hero image container */
.hero-slider .splide__arrows {
  position: absolute;
  top: 50%;
  left: -2.5rem;
  right: -2.5rem;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}
.hero-slider .splide__arrow {
  pointer-events: auto;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--bg-dark, #ffffff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--text-primary, #1f2937);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.hero-slider .splide__arrow:hover { opacity: 1; }
.hero-slider .splide__arrow svg { fill: currentColor; width: 1rem; height: 1rem; }
@media (max-width: 640px) {
  .hero-slider .splide__arrows { left: 0.5rem; right: 0.5rem; }
  .hero-slider .splide__arrow { width: 1.8rem; height: 1.8rem; }
}

/* Bootstrap grid + brand need to be stable before Bootstrap/all.css load.
   Use !important so late-loading stylesheets cannot change these dimensions. */
html body .container { max-width: 100% !important; padding-inline: 1rem !important; margin-inline: auto !important; }
html body .row { display: flex !important; flex-wrap: wrap !important; margin-right: -1rem !important; margin-left: -1rem !important; }
html body .col-lg-12 { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; padding-right: 1rem !important; padding-left: 1rem !important; }
.navbar-brand { width: 10rem; min-height: 2.5rem; max-width: 100%; flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.navbar-brand svg { width: 100%; height: auto; }

/* Header menu overflow patch: let the pill-shaped navbar use the full viewport width
   and allow the menu to wrap instead of spilling out of the browser window. */
html body .navbar-custom {
  max-width: calc(100vw - 2rem) !important;
  width: calc(100% - 2rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html body .navbar-collapse {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body .navbar-nav {
  flex-wrap: wrap !important;
}
html body .cta-actions {
  flex-shrink: 0 !important;
}
html body .dropdown-toggle::after {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Stabilize the long h4 subtitle and wordmark div so font metrics do not change once all.css loads */
html body h4.subtitle {
  font-size: 1.5rem !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  margin-bottom: 1.5rem !important;
  min-height: 4.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
@media (max-width: 768px) {
  html body h4.subtitle { min-height: 6rem; }
}
/* Each wordmark div reserves the exact height of its SVG + inline padding so it does not grow when all.css loads */
html body .subtitle {
  min-height: max-content;
}
/* Ensure all subtitle and paragraph text uses the same system-family metrics before fonts load */
html body .subtitle,
html body .text-muted {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Cantarell", "Ubuntu", "Noto Sans", "Roboto", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* The hero wordmark SVG sits inside .subtitle; make it a block so it does not shift on font load.
   Use the two real viewBox ratios instead of a single hard-coded one. */
html body .subtitle svg {
  display: block;
  width: min(24rem, 100%);
  height: auto;
  margin-inline: auto;
}
html body .subtitle svg[viewBox="0 0 388 59"] { aspect-ratio: 388 / 59; }
html body .subtitle svg[viewBox="0 0 388 82"] { aspect-ratio: 388 / 82; }
/* Keep the logo/wordmark text dark (or light in dark mode). Leave the original colored/background shapes alone. */
html body .navbar-brand svg path[style*="--bs-dark"],
html body .navbar-brand svg polygon[style*="--bs-dark"],
html body .subtitle svg path[style*="--bs-dark"],
html body .subtitle svg polygon[style*="--bs-dark"] {
  fill: var(--text-primary, #1f2937) !important;
}
/* In dark mode, the light/background squares of the logo should also flip to the light text color. */
html[data-theme="dark"] body .navbar-brand svg path[style*="--bs-dark"],
html[data-theme="dark"] body .navbar-brand svg polygon[style*="--bs-dark"],
html[data-theme="dark"] body .navbar-brand svg path[style*="--bs-light"],
html[data-theme="dark"] body .navbar-brand svg polygon[style*="--bs-light"],
html[data-theme="dark"] body .subtitle svg path[style*="--bs-dark"],
html[data-theme="dark"] body .subtitle svg polygon[style*="--bs-dark"],
html[data-theme="dark"] body .subtitle svg path[style*="--bs-light"],
html[data-theme="dark"] body .subtitle svg polygon[style*="--bs-light"] {
  fill: #e0e0e0 !important;
}

/* Decorative waves are absolutely positioned; reserve their size so they do not pop in */
html body .colorful-section { position: relative; }
html body .waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 550px;
  pointer-events: none;
  margin-bottom: 0;
}

/* Feature videos reserve their block box so poster loads do not shift content */
html body .features-video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Fixed navbar + main-content spacing to prevent CLS while stylesheets preload */
body .navbar-custom,
body #navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  margin: 0.5rem;
  width: calc(100% - 1rem);
  max-width: calc(100vw - 1rem);
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  border-radius: 50px;
  background: var(--navbar-bg, rgba(255, 255, 255, 0.9));
  border: 1px solid transparent;
}

body .main-content {
  padding-top: 5rem;
}

@media (max-width: 991.98px) {
  /* Make the mobile collapse menu a full-width dropdown below the top bar */
  html body .navbar-collapse {
    flex-basis: 100% !important;
    flex-grow: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 3 !important;
    margin-top: 0.5rem !important;
    text-align: left !important;
    overflow-y: auto !important;
  }
  html body .navbar-collapse .navbar-nav {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: stretch !important; /* full-width rows, arrow at the right edge */
    flex-wrap: nowrap !important;
  }
  html body .navbar-collapse .nav-link {
    width: auto !important;
    text-align: left !important;
  }
  /* Each menu row spans the full width of the open menu (was width: auto, which shrank rows to their text) */
  html body .navbar-collapse .nav-item {
    width: 100% !important;
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  /* Keep the mobile top bar on one line */
  body .navbar-custom,
  body #navbar {
    width: calc(100% - 0.5rem);
    margin: 0.25rem;
    padding: 0.5rem 0.5rem;
  }
  body .navbar-custom .container { padding-inline: 0.5rem !important; }
  body .navbar-toggler { padding: 0.25rem 0.5rem; }
}

@media (min-width: 992px) {
  body .navbar-custom,
  body #navbar {
    margin: 1rem;
    width: calc(100% - 2rem);
    max-width: min(1200px, calc(100vw - 2rem));
    padding: 0.5rem 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  body .main-content {
    padding-top: 11rem;
  }

  /* Reserve a fixed icon slot in the navbar so icon fonts do not pop in and shift links */
  body .nav-item .bi,
  body .nav-item .fas,
  body .nav-item .fab {
    display: inline-block;
    min-width: 1em;
    min-height: 1em;
  }

  /* On desktop the navbar menu is always visible; keep it expanded before Bootstrap loads.
     Reserve the final wrapped height so the brand/CTA do not shift when the menu wraps. */
  body .navbar-toggler { display: none !important; }
  body .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    order: 2 !important;
    align-items: center !important;
    min-height: 6.5rem !important;
  }
  body .navbar-nav {
    min-height: 6.5rem !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: 100%;
  }
  body .nav-item {
    min-height: 2.5rem !important;
    min-width: fit-content !important;
  }
  body .nav-link,
  body .cta-actions .btn,
  body .cta-actions a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    white-space: nowrap !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    margin: 0 0.25rem !important;
    padding: 0.375rem 0.5rem !important;
  }
  /* Force the nav links inside the multi dropdown to keep their content size instead of
     letting the full stylesheet change the flex factor and shift the menu item. */
  body .nav-item.multi-dropdown,
  body .nav-item.multi-dropdown > a.nav-link,
  body .nav-item.multi-dropdown > .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    min-height: 2.5rem !important;
    min-width: fit-content !important;
    white-space: nowrap !important;
  }
  body .nav-item.multi-dropdown > a.nav-link,
  body .nav-item.multi-dropdown > .nav-link {
    padding: 0.375rem 0.75rem !important;
  }
  body .multi-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    min-height: 2rem !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    margin-left: -0.5rem !important;
    flex-shrink: 0 !important;
  }
  body .nav-link i.bi,
  body .nav-link i.fas,
  body .nav-link i.fab,
  body .cta-actions a i.bi,
  body .cta-actions a i.fas,
  body .cta-actions a i.fab,
  body .cta-actions button i.bi,
  body .cta-actions button i.fas,
  body .cta-actions button i.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body .navbar-brand { order: 1 !important; }
}

/* Reserve a 1em box for any icon font so the layout does not shift when the webfont arrives */
.bi, .fas, .fab, .far, .fal {
  display: inline-block;
  min-width: 1em;
  min-height: 1em;
  line-height: 1;
}
/* App scroller slides: keep the title/subtitle on one line so all slides stay the same size
   and the auto-scroll does not jump due to wrapped text. */
.app-list .splide__slide p,
.app-list .splide__slide .text-muted {
  white-space: nowrap !important;
}

/* Community hero-list (legacy owl-carousel markup) converted to Splide */
.hero_list.splide { position: relative; }
.hero_list .splide__track { overflow: hidden; }
.hero_list .splide__list { display: flex; width: 100%; margin: 0; padding: 0; }
.hero_list .splide__slide { flex: 0 0 100% !important; width: 100% !important; box-sizing: border-box; }
.hero_list .splide__arrows { position: absolute; top: 50%; left: 0.5rem; right: 0.5rem; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; z-index: 10; }
.hero_list .splide__arrow { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gradient-primary, linear-gradient(135deg, #f05a28, #ff69b4)); color: white; border: none; cursor: pointer; }
.hero_list .splide__arrow svg { fill: currentColor; width: 1rem; height: 1rem; }

/* ==========================================================================
   Header bar (2026-12-01)
   One clean, centred bar, never wider than --hdr-max-width. From 1200px up (Bootstrap xl: page_header.tpl uses
   navbar-expand-xl) the brand, every top-level menu item and the actions sit on one line; below 1200px the
   hamburger menu takes over. Every top-level item is one pill with the same horizontal padding; it grows with the
   viewport from 0.3125rem (5px) at 1200px to 0.6875rem (11px) at 1350px and up, so the line fits at 1200px and breathes on wide screens.
   Scoped to #navbar and marked !important on purpose: this is the last word over the older header rules above and
   in main.css / main.res.css, which set their own padding, margins and min-heights with !important.
   ========================================================================== */
:root {
  --hdr-max-width: 1320px;
  --hdr-item-pad-x: clamp(0.3125rem, calc(0.3125rem + (100vw - 1200px) * 0.04), 0.6875rem);
  --hdr-item-height: 2.25rem;
  --hdr-hover-bg: rgba(240, 90, 40, 0.1);
  --hdr-active-ring: rgba(240, 90, 40, 0.45);
  --hdr-accent: #f05a28;
}
[data-theme="dark"] {
  --hdr-hover-bg: rgba(255, 138, 92, 0.16);
  --hdr-active-ring: rgba(255, 138, 92, 0.55);
  --hdr-accent: #ff8a5c;
}

/* The bar is centred at every width */
html body #navbar {
  left: 0 !important;
  right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html body #navbar > .container {
  max-width: none !important;
}

/* Collapsed menu (below 1200px): every row the same height, submenu toggles aligned at the right edge */
@media (max-width: 991.98px) {
  html body #navbar .navbar-nav > .nav-item {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    min-height: 2.75rem !important;
    margin: 0 !important;
    /* the list is a height-capped scrolling column: rows must not shrink, or an open submenu overlaps the rows below */
    flex-shrink: 0 !important;
  }
  html body #navbar .navbar-nav > .nav-item > .nav-link {
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
  }
  html body #navbar .navbar-nav > .nav-item:hover > .nav-link,
  html body #navbar .navbar-nav > .nav-item > .nav-link.active {
    color: var(--text-primary) !important;
  }
}

@media (min-width: 992px) {
  html body #navbar {
    width: calc(100% - 2rem) !important;
    max-width: min(var(--hdr-max-width), calc(100vw - 2rem)) !important;
    margin-top: 1rem !important;
    padding: 0.5rem 0.75rem 0.5rem 1.25rem !important;
  }
  html body #navbar > .container {
    padding-inline: 0 !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem;
  }
  html body #navbar .navbar-brand {
    width: 8.5rem !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body #navbar .navbar-collapse {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    justify-content: center !important;
    gap: 0.75rem;
  }
  html body #navbar .navbar-nav {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.125rem;
  }

  /* One top-level item = one pill, the same padding left and right on every item */
  html body #navbar .navbar-nav > .nav-item {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    height: var(--hdr-item-height);
    min-height: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 var(--hdr-item-pad-x) !important;
    border: 0 !important;
    border-radius: 50rem;
    background: transparent;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
  }
  html body #navbar .navbar-nav > .nav-item > .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    height: 100%;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    color: var(--text-secondary) !important;
    background: none !important;
    border-radius: 0;
  }
  /* On the one-line bar a submenu opens on hover; its chevron is decoration only (pointer-events: none in
     main.res.css) and would cost the line about 150px, so it is not shown here. The collapsed menu keeps it. */
  html body #navbar .navbar-nav > .nav-item > .multi-dropdown-toggle {
    display: none !important;
  }

  /* Hover, keyboard focus and the current section: a tinted pill and the primary text colour */
  html body #navbar .navbar-nav > .nav-item:hover,
  html body #navbar .navbar-nav > .nav-item:focus-within {
    background: var(--hdr-hover-bg) !important;
  }
  html body #navbar .navbar-nav > .nav-item:has(> .nav-link.active) {
    background: var(--hdr-hover-bg) !important;
    box-shadow: inset 0 0 0 1px var(--hdr-active-ring);
  }
  html body #navbar .navbar-nav > .nav-item:hover > .nav-link,
  html body #navbar .navbar-nav > .nav-item:focus-within > .nav-link,
  html body #navbar .navbar-nav > .nav-item > .nav-link.active {
    color: var(--text-primary) !important;
  }
  html body #navbar .navbar-nav > .nav-item > .nav-link:focus-visible {
    outline: 2px solid var(--hdr-accent);
    outline-offset: 0.25rem;
    border-radius: 0.25rem;
  }

  /* Actions at the right: two round buttons, then settings and theme, all 2rem squares */
  html body #navbar .cta-actions {
    flex: 0 0 auto !important;
    gap: 0.375rem !important;
  }
  html body #navbar .cta-actions .btn,
  html body #navbar .order-xl-3 .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2rem !important;
    height: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body #navbar .order-xl-3 {
    flex: 0 0 auto;
    gap: 0.25rem;
    margin-left: 0 !important;
  }
}

/* ==========================================================================
   Header menu in two rows (owner 2026-12-01): from 992px up the menu wraps into
   two centred rows of at most 7 items each; the mobile menu only below 992px.
   ========================================================================== */
@media (min-width: 992px) {
  html body #navbar .navbar-nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-content: center;
    row-gap: 0.125rem;
    min-width: 0;
    flex: 1 1 auto;
  }
  html body #navbar .navbar-nav > .nav-item {
    flex: 0 0 calc(100% / 7) !important;
    max-width: calc(100% / 7) !important;
    text-align: center;
  }
  html body #navbar .navbar-nav > .nav-item > .nav-link {
    padding-left: 0.375rem !important;
    padding-right: 0.375rem !important;
    white-space: nowrap;
    justify-content: center;
  }
}
@media (min-width: 992px) {
  html body #navbar > .container { flex-wrap: nowrap !important; }
  html body #navbar .navbar-collapse { flex: 1 1 0% !important; min-width: 0 !important; width: auto !important; }
  html body #navbar .navbar-collapse > .navbar-nav { flex: 1 1 0% !important; min-width: 0 !important; width: auto !important; }
}
@media (min-width: 992px) {
  html body #navbar .navbar-collapse > .navbar-nav { column-gap: 0 !important; gap: 0.125rem 0 !important; }
  html body #navbar .navbar-collapse > .navbar-nav > .nav-item { flex: 0 0 14% !important; max-width: 14% !important; margin: 0 !important; box-sizing: border-box; }
}

/* ==========================================================================
   Header submenus, level 2 and deeper (2026-12-01)
   The top row stays as it is (centred items, two rows from 992px). The panels below it are left-aligned and
   never leave the viewport. GB.subMenus (main.js) measures a panel when its item is entered or focused, and on
   resize, and sets classes only:
     .is-flip-x  level 2: aligned to the item's right edge instead of its left; level 3+: opens to the left
     .is-flip-y  level 3+: aligned to the bottom of its item, growing upward
     .is-scroll  the panel scrolls inside (max-height + overflow-y); the levels inside it open in place
     .is-inline  level 3+: fits on neither side, so it opens in place inside its parent panel
   .is-dismissed on an item closes its panel after Escape until the pointer or focus leaves it.
   Desktop only: the collapsed menu below 992px is unchanged.
   ========================================================================== */
:root {
  --hdr-sub-gutter: 1rem;
  --hdr-sub-gap: 0.375rem;
  --hdr-sub-pad: 0.375rem;
  --hdr-sub-max-width: 22rem;
  --hdr-sub-radius: 0.75rem;
  --hdr-sub-item-radius: 0.5rem;
  --hdr-sub-shadow: 0 0.75rem 2rem -0.75rem rgba(15, 23, 42, 0.28), 0 0.125rem 0.375rem rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] {
  --hdr-sub-shadow: 0 0.75rem 2rem -0.75rem rgba(0, 0, 0, 0.7), 0 0.125rem 0.375rem rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
  /* every panel */
  html body #navbar .multi-dropdown-menu {
    position: absolute;
    z-index: 1100;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
    box-sizing: border-box;
    width: max-content;
    min-width: 13rem;
    max-width: min(var(--hdr-sub-max-width), calc(100vw - 2 * var(--hdr-sub-gutter)));
    max-height: none;
    margin: 0 !important;
    padding: var(--hdr-sub-pad) !important;
    list-style: none;
    text-align: left;
    color: var(--text-primary);
    background: var(--bg-dark, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: var(--hdr-sub-radius);
    box-shadow: var(--hdr-sub-shadow);
    opacity: 0;
    visibility: hidden;
    /* closing waits a moment, so the pointer can cross from an item to its panel */
    transition: opacity 0.12s ease 0.1s, visibility 0s linear 0.22s;
  }
  /* open on hover, and on keyboard focus (:focus-visible, so a mouse click inside does not keep a panel open) */
  html body #navbar .multi-dropdown:hover > .multi-dropdown-menu,
  html body #navbar .multi-dropdown:has(:focus-visible) > .multi-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.12s ease, visibility 0s;
  }
  html body #navbar .multi-dropdown.is-dismissed > .multi-dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none;
  }

  /* level 2: below its item, aligned to the item's left edge, or to its right edge (.is-flip-x) */
  html body #navbar .navbar-nav > .nav-item > .multi-dropdown-menu {
    top: calc(100% + var(--hdr-sub-gap));
    right: auto;
    bottom: auto;
    left: 0;
  }
  html body #navbar .navbar-nav > .nav-item > .multi-dropdown-menu.is-flip-x {
    right: 0;
    left: auto;
  }
  html body #navbar .navbar-nav > .nav-item > .multi-dropdown-menu.is-scroll {
    /* the header is fixed, so a level-2 panel always starts within 8rem of the top */
    max-height: calc(100vh - 8rem);
  }
  /* the gap between a top item and its panel still counts as the item, so the panel stays open on the way down */
  html body #navbar .navbar-nav > .nav-item.multi-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: var(--hdr-sub-gap);
  }

  /* level 3 and deeper: fly out beside the parent panel, the first item level with the item that opens it */
  html body #navbar .multi-dropdown-menu .multi-dropdown-menu {
    top: calc(-1 * var(--hdr-sub-pad) - 1px);
    right: auto;
    bottom: auto;
    left: calc(100% + var(--hdr-sub-pad));
  }
  html body #navbar .multi-dropdown-menu .multi-dropdown-menu.is-flip-x {
    right: calc(100% + var(--hdr-sub-pad));
    left: auto;
  }
  html body #navbar .multi-dropdown-menu .multi-dropdown-menu.is-flip-y {
    top: auto;
    bottom: calc(-1 * var(--hdr-sub-pad) - 1px);
  }
  html body #navbar .multi-dropdown-menu .multi-dropdown-menu.is-scroll {
    /* used only on the side with more room, which always holds half the viewport */
    max-height: calc(50vh - var(--hdr-sub-gutter));
  }
  html body #navbar .multi-dropdown-menu.is-scroll {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  /* in place: inside a scrolling panel (a flyout could not leave it) or where no side has room. Such a level is
     a collapsed group under its item; its chevron is a button there (multiDropdown toggles .show on click/Enter) */
  html body #navbar .multi-dropdown-menu.is-scroll .multi-dropdown-menu,
  html body #navbar .multi-dropdown-menu.is-inline,
  html body #navbar .multi-dropdown-menu.is-inline .multi-dropdown-menu {
    display: none !important;
    position: static;
    flex: 1 0 100%;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: 0 0 0 0.75rem !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: inherit;
    transition: none;
  }
  html body #navbar .multi-dropdown-menu.is-scroll .multi-dropdown-menu.show,
  html body #navbar .multi-dropdown-menu.is-inline.show,
  html body #navbar .multi-dropdown-menu.is-inline .multi-dropdown-menu.show {
    display: flex !important;
  }

  /* items: one left-aligned column, the same padding, line height and spacing on every level */
  html body #navbar .multi-dropdown-menu > .nav-item {
    display: flex !important;
    /* rows never shrink: a height-capped (scrolling) panel scrolls instead of squeezing its rows together */
    flex: 0 0 auto !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    white-space: normal !important;
    border-radius: var(--hdr-sub-item-radius);
    background: transparent;
  }
  html body #navbar .multi-dropdown-menu > .nav-item > .nav-link {
    display: block !important;
    flex: 1 1 0% !important;
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: left;
    text-decoration: none;
    color: var(--text-primary) !important;
    background: none !important;
    border-radius: var(--hdr-sub-item-radius);
  }
  html body #navbar .multi-dropdown-menu > .nav-item:hover,
  html body #navbar .multi-dropdown-menu > .nav-item:has(:focus-visible) {
    background: var(--hdr-hover-bg);
  }
  html body #navbar .multi-dropdown-menu > .nav-item > .nav-link:hover,
  html body #navbar .multi-dropdown-menu > .nav-item > .nav-link:focus {
    text-decoration: none;
    color: var(--text-primary) !important;
  }
  html body #navbar .multi-dropdown-menu > .nav-item > .nav-link:focus-visible {
    outline: 2px solid var(--hdr-accent);
    outline-offset: -2px;
  }
  html body #navbar .multi-dropdown-menu > .nav-item > .nav-link.current {
    color: var(--hdr-accent) !important;
    font-weight: 600 !important;
  }
  /* inside an in-place group the rows keep the same rhythm but no hover pill around the whole group */
  html body #navbar .multi-dropdown-menu.is-scroll .nav-item.multi-dropdown:hover,
  html body #navbar .multi-dropdown-menu.is-scroll .nav-item.multi-dropdown:has(:focus-visible),
  html body #navbar .multi-dropdown-menu .is-inline .nav-item.multi-dropdown:hover,
  html body #navbar .multi-dropdown-menu .nav-item.multi-dropdown:has(> .is-inline):hover,
  html body #navbar .multi-dropdown-menu .nav-item.multi-dropdown:has(> .is-inline):has(:focus-visible) {
    background: transparent;
  }

  /* the chevron of an item with children: pointing to the side the panel opens to, down when it opens in place */
  html body #navbar .multi-dropdown-menu .multi-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 1.75rem !important;
    min-width: 1.75rem !important;
    height: 1.75rem !important;
    min-height: 0 !important;
    margin: 0 0.25rem 0 0 !important;
    padding: 0 !important;
    font-size: 0.75rem;
    color: var(--text-secondary) !important;
    background: transparent !important;
    border: 0 !important;
    pointer-events: none;
    transform: rotate(-90deg);
    transition: none;
  }
  html body #navbar .multi-dropdown-menu .multi-dropdown-toggle:has(+ .is-flip-x) {
    transform: rotate(90deg);
  }
  html body #navbar .multi-dropdown-menu .multi-dropdown-toggle:has(+ .is-inline),
  html body #navbar .multi-dropdown-menu.is-scroll .multi-dropdown-toggle,
  html body #navbar .multi-dropdown-menu.is-inline .multi-dropdown-toggle {
    transform: none;
    pointer-events: auto;
    cursor: pointer;
    border-radius: var(--hdr-sub-item-radius) !important;
  }
  html body #navbar .multi-dropdown-menu .multi-dropdown-toggle.active:has(+ .is-inline),
  html body #navbar .multi-dropdown-menu.is-scroll .multi-dropdown-toggle.active,
  html body #navbar .multi-dropdown-menu.is-inline .multi-dropdown-toggle.active {
    transform: rotate(180deg);
  }
  html body #navbar .multi-dropdown-menu .multi-dropdown-toggle:focus-visible {
    outline: 2px solid var(--hdr-accent);
    outline-offset: -2px;
  }
  html body #navbar .multi-dropdown-menu > .nav-item:hover > .multi-dropdown-toggle,
  html body #navbar .multi-dropdown-menu > .nav-item:has(:focus-visible) > .multi-dropdown-toggle {
    color: var(--hdr-accent) !important;
  }
}

/* ==========================================================================
   Page top: the path right under the header, the first line close below it (owner 2026-12-02)
   One place for the space between the fixed header and a page's first line, on every layout:
     --page-top-offset    main's padding-top = the fixed header's bottom edge at that width (measured: 103.5px
                          below 375px where the bar wraps, 67.3px up to 991px, 108px from 992px)
     --path-pad-top       the small, clear gap between the header and the path
     --path-pad-bottom    below the path
     --page-content-top   above the first block of the page body (replaces the 2rem / 3rem of .dl-page,
                          .cm-page, section.py-5, section.hero ...)
   Applied to main.main-content, #path and the first element after #path (pagelayout.tpl), so it holds for the
   full and folder views and the landing pages alike; no per-page rules.
   ========================================================================== */
:root {
  --page-top-offset: 4.25rem;
  --path-pad-top: 0.75rem;
  --path-pad-bottom: 0.25rem;
  --page-content-top: 1rem;
}
@media (max-width: 374.98px) {
  :root { --page-top-offset: 6.5rem; }
}
@media (min-width: 992px) {
  :root { --page-top-offset: 6.75rem; }
}
html body main.main-content {
  padding-top: var(--page-top-offset) !important;
}
html body main.main-content > .container > #path {
  margin: 0 !important;
  padding: var(--path-pad-top) 0 var(--path-pad-bottom) !important;
}
html body main.main-content > .container > #path > p {
  margin: 0 !important;
  padding: 0 !important;
}
/* a page without a path (the home page): its first block keeps the same small gap under the header */
html body main.main-content > .container > #path:not(:has(> p)) {
  padding-bottom: 0 !important;
}
html body main.main-content > .container > #path + * {
  margin-top: 0 !important;
  padding-top: var(--page-content-top) !important;
}
