@charset "UTF-8";/*!
 * mmenu.js
 * mmenujs.com
 *
 * Copyright (c) Fred Heusschen
 * frebsite.nl
 *
 * License: CC-BY-NC-4.0
 * http://creativecommons.org/licenses/by-nc/4.0/
 */:root{--mm-lineheight:22px}.mm-hidden{display:none!important}.mm-wrapper{overflow-x:hidden;position:relative}.mm-menu,.mm-menu *,.mm-menu :after,.mm-menu :before{-webkit-transition-property:none;-o-transition-property:none;transition-property:none;-webkit-transition-duration:.4s;-o-transition-duration:.4s;transition-duration:.4s;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}:root{--mm-blocker-visibility-delay:0.4s;--mm-blocker-opacity-delay:0s}.mm-blocker{display:block;position:absolute;bottom:100%;top:0;right:0;left:0;z-index:3;opacity:0;background:var(--mm-color-background);-webkit-transition:bottom 0s ease var(--mm-blocker-visibility-delay),width .4s ease,opacity .4s ease var(--mm-blocker-opacity-delay),-webkit-transform .4s ease;transition:bottom 0s ease var(--mm-blocker-visibility-delay),width .4s ease,opacity .4s ease var(--mm-blocker-opacity-delay),-webkit-transform .4s ease;-o-transition:bottom 0s ease var(--mm-blocker-visibility-delay),width .4s ease,opacity .4s ease var(--mm-blocker-opacity-delay),transform .4s ease;transition:bottom 0s ease var(--mm-blocker-visibility-delay),width .4s ease,opacity .4s ease var(--mm-blocker-opacity-delay),transform .4s ease;transition:bottom 0s ease var(--mm-blocker-visibility-delay),width .4s ease,opacity .4s ease var(--mm-blocker-opacity-delay),transform .4s ease,-webkit-transform .4s ease}.mm-blocker:focus-visible{opacity:.75}.mm-btn{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;width:50px;padding:0}.mm-btn--next,[dir=rtl] .mm-btn--prev{--mm-btn-rotate:135deg}.mm-btn--prev,[dir=rtl] .mm-btn--next{--mm-btn-rotate:-45deg}.mm-btn--next:after,.mm-btn--prev:before{content:"";display:block;position:absolute;top:0;bottom:0;width:8px;height:8px;margin:auto;-webkit-box-sizing:border-box;box-sizing:border-box;border:2px solid var(--mm-color-icon);border-bottom:none;border-right:none;-webkit-transform:rotate(var(--mm-btn-rotate));-ms-transform:rotate(var(--mm-btn-rotate));transform:rotate(var(--mm-btn-rotate))}.mm-btn--prev:before{inset-inline-start:23px}.mm-btn--next:after{inset-inline-end:23px}.mm-btn--close:before{content:"×";font-size:150%}.mm-btnreset{padding:0;background:0 0;border:none;cursor:pointer}.mm-divider{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:-webkit-sticky;position:sticky;z-index:2;top:0;min-height:var(--mm-lineheight);padding:calc((var(--mm-listitem-size) * .65 - var(--mm-lineheight)) * .5) 20px;font-size:75%;text-transform:uppercase;background:var(--mm-color-background);background-image:-webkit-gradient(linear,left top,left bottom,from(var(--mm-color-background-highlight)),to(var(--mm-color-background-highlight)));background-image:-o-linear-gradient(var(--mm-color-background-highlight),var(--mm-color-background-highlight));background-image:linear-gradient(var(--mm-color-background-highlight),var(--mm-color-background-highlight));opacity:1;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.mm-navbar:not(.mm-hidden)~.mm-listview .mm-divider{top:var(--mm-navbar-size)}:root{--mm-listitem-size:50px}.mm-listitem{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative;padding:0;margin:0;color:var(--mm-color-text);border-color:var(--mm-color-border)}.mm-listitem:after{content:"";border-color:inherit;border-bottom-width:1px;border-bottom-style:solid;display:block;position:absolute;inset-inline-start:20px;inset-inline-end:0;bottom:0}.mm-listitem__btn,.mm-listitem__text{padding:calc((var(--mm-listitem-size) - var(--mm-lineheight))/ 2) 0}.mm-listitem__text{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:10%;flex-basis:10%;display:block;padding-left:20px;padding-right:20px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mm-listitem__btn{display:block;position:relative;width:auto;-webkit-padding-end:50px;padding-inline-end:50px;border-color:inherit;background:rgba(3,2,1,0)}.mm-listitem__btn:not(.mm-listitem__text){border-left-width:1px;border-left-style:solid}.mm-listitem--selected>.mm-listitem__text{background:var(--mm-color-background-emphasis)}.mm-listitem--opened>.mm-listitem__btn,.mm-listitem--opened>.mm-panel{background:var(--mm-color-background-highlight)}.mm-listview{list-style:none;display:block;padding:0;margin:0}.mm-menu{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;margin:0;position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;-ms-scroll-chaining:none;overscroll-behavior:none;background:var(--mm-color-background);border-color:var(--mm-color-border);color:var(--mm-color-text);line-height:var(--mm-lineheight);-webkit-tap-highlight-color:var(--mm-color-background-emphasis);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mm-menu ::-webkit-input-placeholder{color:var(--mm-color-text-dimmed)}.mm-menu ::-moz-placeholder{color:var(--mm-color-text-dimmed)}.mm-menu :-ms-input-placeholder{color:var(--mm-color-text-dimmed)}.mm-menu ::-ms-input-placeholder{color:var(--mm-color-text-dimmed)}.mm-menu ::placeholder{color:var(--mm-color-text-dimmed)}.mm-menu,.mm-menu *{-webkit-box-sizing:border-box;box-sizing:border-box}.mm-menu :focus,.mm-menu :focus-visible,.mm-menu:focus,.mm-menu:focus-visible{outline:0}.mm-menu a,.mm-menu button,.mm-menu label{color:inherit}.mm-menu a:focus,.mm-menu button:focus,.mm-menu label:focus{outline:0}.mm-menu a:focus-visible,.mm-menu button:focus-visible,.mm-menu label:focus-visible{outline:2px solid var(--mm-color-focusring);outline-offset:-5px}.mm-menu input:focus,.mm-menu input:focus-visible,.mm-menu select:focus,.mm-menu select:focus-visible,.mm-menu textarea:focus,.mm-menu textarea:focus-visible{outline:2px solid var(--mm-color-focusring);outline-offset:2px}.mm-menu a,.mm-menu a:active,.mm-menu a:hover,.mm-menu a:link,.mm-menu a:visited{text-decoration:none;color:inherit}:root{--mm-navbar-size:50px}.mm-navbar{display:-webkit-box;display:-ms-flexbox;display:flex;position:-webkit-sticky;position:sticky;top:0;z-index:2;min-height:var(--mm-navbar-size);padding-top:env(safe-area-inset-top);color:var(--mm-color-text-dimmed);text-align:center;opacity:1;background:var(--mm-color-background);border-bottom:1px solid var(--mm-color-border);-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.mm-navbar>*{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box}.mm-navbar__btn{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.mm-navbar__title{-webkit-box-flex:1;-ms-flex:1 1 50%;flex:1 1 50%;display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 20px;overflow:hidden}.mm-navbar__title[href="#"]{pointer-events:none}.mm-navbar__title>span{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mm-btn.mm-hidden+.mm-navbar__title:not(:last-child){-webkit-padding-start:60px;padding-inline-start:60px;-webkit-padding-end:10px;padding-inline-end:10px}.mm-btn:not(.mm-hidden)+.mm-navbar__title:last-child{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:60px;padding-inline-end:60px}.mm-panel{--mm-panel-child-offset:100%;--mm-panel-parent-offset:-30%;position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;-webkit-overflow-scrolling:touch;overflow:hidden;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain;color:var(--mm-color-text);border-color:var(--mm-color-border);background:var(--mm-color-background);-webkit-transform:translate3d(var(--mm-panel-child-offset),0,0);transform:translate3d(var(--mm-panel-child-offset),0,0);-webkit-transition-property:inset-inline-start,-webkit-transform;transition-property:inset-inline-start,-webkit-transform;-o-transition-property:transform,inset-inline-start;transition-property:transform,inset-inline-start;transition-property:transform,inset-inline-start,-webkit-transform}[dir=rtl] .mm-panel{--mm-panel-child-offset:-100%;--mm-panel-parent-offset:30%}.mm-panel:after{content:"";display:block;height:var(--mm-listitem-size)}.mm-panel:focus{outline:0}.mm-panel--opened{z-index:2;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s}.mm-panel--parent{-webkit-transform:translate3d(var(--mm-panel-parent-offset),0,0);transform:translate3d(var(--mm-panel-parent-offset),0,0);z-index:0}.mm-panel--highest{z-index:3}.mm-menu--opened .mm-panel--noanimation{-webkit-transition:none!important;-o-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;-o-transition-duration:0s!important;transition-duration:0s!important}.mm-panel__content{padding:20px}.mm-panels{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative;height:100%;overflow:hidden;background:var(--mm-color-background);border-color:var(--mm-color-border);color:var(--mm-color-text)}.mm-panels:focus{outline:0}:root{--mm-toggle-size:34px}.mm-toggle{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-webkit-box-flex:calc(var(--mm-toggle-size) * 1.75);-ms-flex:calc(var(--mm-toggle-size) * 1.75) 0 0px;flex:calc(var(--mm-toggle-size) * 1.75) 0 0;height:var(--mm-toggle-size);-webkit-margin-end:10px;margin-inline-end:10px;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;border:none!important;border-radius:var(--mm-toggle-size);border:var(--mm-color-border);background:var(--mm-color-border);cursor:pointer;-webkit-transition-property:background-color;-o-transition-property:background-color;transition-property:background-color}.mm-toggle:before{content:"";aspect-ratio:1;margin:2px;border-radius:100%;background:var(--mm-color-background);-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform}.mm-toggle:checked{background:#4bd963}.mm-toggle:checked:before{-webkit-transform:translateX(calc(var(--mm-toggle-size) * .75));-ms-transform:translateX(calc(var(--mm-toggle-size) * .75));transform:translateX(calc(var(--mm-toggle-size) * .75))}[dir=rtl] .mm-toggle:checked:before{-webkit-transform:translateX(calc(var(--mm-toggle-size) * -.75));-ms-transform:translateX(calc(var(--mm-toggle-size) * -.75));transform:translateX(calc(var(--mm-toggle-size) * -.75))}.mm-listitem--vertical>.mm-panel{position:static;width:100%;padding:10px 0 10px 20px;-webkit-transform:none!important;-ms-transform:none!important;transform:none!important;-webkit-transition:none!important;-o-transition:none!important;transition:none!important}.mm-listitem--vertical>.mm-panel:after{content:none;display:none}.mm-listitem--vertical:not(.mm-listitem--opened)>.mm-panel{display:none}.mm-listitem--vertical>.mm-listitem__btn{height:var(--mm-listitem-size);bottom:auto}.mm-listitem--vertical .mm-listitem:last-child:after{border-color:transparent}.mm-listitem--opened>.mm-listitem__btn:after{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg);right:19px}:root{--mm-size:80%;--mm-min-size:240px;--mm-max-size:440px}.mm-menu--offcanvas{position:fixed;z-index:0}.mm-page{-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100vh;background:inherit}:where(.mm-slideout){position:relative;z-index:1;width:100%;-webkit-transition-duration:.4s;-o-transition-duration:.4s;transition-duration:.4s;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-property:width,-webkit-transform;transition-property:width,-webkit-transform;-o-transition-property:width,transform;transition-property:width,transform;transition-property:width,transform,-webkit-transform}.mm-wrapper--opened,.mm-wrapper--opened body{overflow:hidden}.mm-wrapper__blocker{background:rgba(0,0,0,.4)}.mm-wrapper--opened .mm-wrapper__blocker{--mm-blocker-visibility-delay:0s;--mm-blocker-opacity-delay:0.4s;bottom:0;opacity:.5}.mm-menu{--mm-translate-horizontal:0;--mm-translate-vertical:0}.mm-menu--position-left,.mm-menu--position-left-front{right:auto}.mm-menu--position-right,.mm-menu--position-right-front{left:auto}.mm-menu--position-left,.mm-menu--position-left-front,.mm-menu--position-right,.mm-menu--position-right-front{width:clamp(var(--mm-min-size),var(--mm-size),var(--mm-max-size))}.mm-menu--position-left-front{--mm-translate-horizontal:-100%}.mm-menu--position-right-front{--mm-translate-horizontal:100%}.mm-menu--position-top{bottom:auto}.mm-menu--position-bottom{top:auto}.mm-menu--position-bottom,.mm-menu--position-top{width:100%;height:clamp(var(--mm-min-size),var(--mm-size),var(--mm-max-size))}.mm-menu--position-top{--mm-translate-vertical:-100%}.mm-menu--position-bottom{--mm-translate-vertical:100%}.mm-menu--position-bottom,.mm-menu--position-left-front,.mm-menu--position-right-front,.mm-menu--position-top{z-index:2;-webkit-transform:translate3d(var(--mm-translate-horizontal),var(--mm-translate-vertical),0);transform:translate3d(var(--mm-translate-horizontal),var(--mm-translate-vertical),0);-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform}.mm-menu--position-bottom.mm-menu--opened,.mm-menu--position-left-front.mm-menu--opened,.mm-menu--position-right-front.mm-menu--opened,.mm-menu--position-top.mm-menu--opened{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-wrapper--position-left{--mm-translate-horizontal:clamp(
      var(--mm-min-size),
      var(--mm-size),
      var(--mm-max-size)
  )}.mm-wrapper--position-right{--mm-translate-horizontal:clamp(
      calc(-1 * var(--mm-max-size)),
      calc(-1 * var(--mm-size)),
      calc(-1 * var(--mm-min-size))
  )}.mm-wrapper--position-left .mm-slideout,.mm-wrapper--position-right .mm-slideout{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.mm-wrapper--position-left.mm-wrapper--opened .mm-slideout,.mm-wrapper--position-right.mm-wrapper--opened .mm-slideout{-webkit-transform:translate3d(var(--mm-translate-horizontal),0,0);transform:translate3d(var(--mm-translate-horizontal),0,0)}.mm-wrapper--position-bottom .mm-wrapper__blocker,.mm-wrapper--position-left-front .mm-wrapper__blocker,.mm-wrapper--position-right-front .mm-wrapper__blocker,.mm-wrapper--position-top .mm-wrapper__blocker{z-index:1}.mm-menu--theme-light{--mm-color-background:#f3f3f3;--mm-color-border:rgb(0 0 0 / 0.15);--mm-color-icon:rgb(0 0 0 / 0.4);--mm-color-text:rgb(0 0 0 / 0.8);--mm-color-text-dimmed:rgb(0 0 0 / 0.4);--mm-color-background-highlight:rgb(0 0 0 / 0.05);--mm-color-background-emphasis:rgb(255 255 255 / 0.75);--mm-color-focusring:#06c}.mm-menu--theme-light-contrast{--mm-color-background:#f3f3f3;--mm-color-border:rgb(0 0 0 / 0.5);--mm-color-icon:rgb(0 0 0 / 0.5);--mm-color-text:#000;--mm-color-text-dimmed:rgb(0 0 0 / 0.7);--mm-color-background-highlight:rgb(0 0 0 / 0.05);--mm-color-background-emphasis:rgb(255 255 255 / 0.9);--mm-color-focusring:#06c}.mm-menu--theme-dark{--mm-color-background:#333;--mm-color-border:rgb(0, 0, 0, 0.4);--mm-color-icon:rgb(255, 255, 255, 0.4);--mm-color-text:rgb(255, 255, 255, 0.8);--mm-color-text-dimmed:rgb(255, 255, 255, 0.4);--mm-color-background-highlight:rgb(255, 255, 255, 0.08);--mm-color-background-emphasis:rgb(0, 0, 0, 0.1);--mm-color-focusring:#06c}.mm-menu--theme-dark-contrast{--mm-color-background:#333;--mm-color-border:rgb(255 255 255 / 0.5);--mm-color-icon:rgb(255 255 255 / 0.5);--mm-color-text:#fff;--mm-color-text-dimmed:rgb(255 255 255 / 0.7);--mm-color-background-highlight:rgb(255 255 255 / 0.1);--mm-color-background-emphasis:rgb(0 0 0 / 0.3);--mm-color-focusring:#06c}.mm-menu--theme-white{--mm-color-background:#fff;--mm-color-border:rgb(0 0 0 / 0.15);--mm-color-icon:rgb(0 0 0 / 0.3);--mm-color-text:rgb(0 0 0 / 0.8);--mm-color-text-dimmed:rgb(0 0 0 / 0.3);--mm-color-background-highlight:rgb(0 0 0 / 0.06);--mm-color-background-emphasis:rgb(0 0 0 / 0.03);--mm-color-focusring:#06c}.mm-menu--theme-white-contrast{--mm-color-background:#fff;--mm-color-border:rgb(0 0 0 / 0.5);--mm-color-icon:rgb(0 0 0 / 0.5);--mm-color-text:#000;--mm-color-text-dimmed:rgb(0 0 0 / 0.7);--mm-color-background-highlight:rgb(0 0 0 / 0.07);--mm-color-background-emphasis:rgb(0 0 0 / 0.035);--mm-color-focusring:#06c}.mm-menu--theme-black{--mm-color-background:#000;--mm-color-border:rgb(255 255 255 / 0.2);--mm-color-icon:rgb(255 255 255 / 0.4);--mm-color-text:rgb(255 255 255 / 0.7);--mm-color-text-dimmed:rgb(255 255 255 / 0.4);--mm-color-background-highlight:rgb(255 255 255 / 0.1);--mm-color-background-emphasis:rgb(255 255 255 / 0.06);--mm-color-focusring:#06c}.mm-menu--theme-black-contrast{--mm-color-background:#000;--mm-color-border:rgb(255 255 255 / 0.5);--mm-color-icon:rgb(255 255 255 / 0.5);--mm-color-text:#fff;--mm-color-text-dimmed:rgb(255 255 255 / 0.6);--mm-color-background-highlight:rgb(255 255 255 / 0.125);--mm-color-background-emphasis:rgb(255 255 255 / 0.1);--mm-color-focusring:#06c}.mm-counter{display:block;-webkit-padding-start:20px;padding-inline-start:20px;float:right;color:var(--mm-color-text-dimmed)}[dir=rtl] .mm-counter{float:left}:root{--mm-iconbar-size:50px}.mm-menu--iconbar-left .mm-navbars,.mm-menu--iconbar-left .mm-panels{margin-left:var(--mm-iconbar-size)}.mm-menu--iconbar-right .mm-navbars,.mm-menu--iconbar-right .mm-panels{margin-right:var(--mm-iconbar-size)}.mm-iconbar{display:none;position:absolute;top:0;bottom:0;z-index:2;width:var(--mm-iconbar-size);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid;border-color:var(--mm-color-border);background:var(--mm-color-background);color:var(--mm-color-text-dimmed);text-align:center}.mm-menu--iconbar-left .mm-iconbar,.mm-menu--iconbar-right .mm-iconbar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.mm-menu--iconbar-left .mm-iconbar{border-right-width:1px;left:0}.mm-menu--iconbar-right .mm-iconbar{border-left-width:1px;right:0}.mm-iconbar__bottom,.mm-iconbar__top{width:100%;-webkit-overflow-scrolling:touch;overflow:hidden;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain}.mm-iconbar__bottom>*,.mm-iconbar__top>*{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;padding:calc((var(--mm-iconbar-size) - var(--mm-lineheight))/ 2) 0}.mm-iconbar__bottom a,.mm-iconbar__bottom a:hover,.mm-iconbar__top a,.mm-iconbar__top a:hover{text-decoration:none}.mm-iconbar__tab--selected{background:var(--mm-color-background-emphasis)}:root{--mm-iconpanel-size:50px}.mm-panel--iconpanel-0{inset-inline-start:calc(0 * var(--mm-iconpanel-size))}.mm-panel--iconpanel-1{inset-inline-start:calc(1 * var(--mm-iconpanel-size))}.mm-panel--iconpanel-2{inset-inline-start:calc(2 * var(--mm-iconpanel-size))}.mm-panel--iconpanel-3{inset-inline-start:calc(3 * var(--mm-iconpanel-size))}.mm-panel--iconpanel-4{inset-inline-start:calc(4 * var(--mm-iconpanel-size))}.mm-panel--iconpanel-first~.mm-panel{inset-inline-start:var(--mm-iconpanel-size)}.mm-menu--iconpanel .mm-panel--parent .mm-divider,.mm-menu--iconpanel .mm-panel--parent .mm-navbar{opacity:0}.mm-menu--iconpanel .mm-panels>.mm-panel--parent{overflow-y:hidden;-webkit-transform:unset;-ms-transform:unset;transform:unset}.mm-menu--iconpanel .mm-panels>.mm-panel:not(.mm-panel--iconpanel-first):not(.mm-panel--iconpanel-0){border-inline-start-width:1px;border-inline-start-style:solid}.mm-navbars{-ms-flex-negative:0;flex-shrink:0}.mm-navbars .mm-navbar{position:relative;padding-top:0;border-bottom:none}.mm-navbars--top{border-bottom:1px solid var(--mm-color-border)}.mm-navbars--top .mm-navbar:first-child{padding-top:env(safe-area-inset-top)}.mm-navbars--bottom{border-top:1px solid var(--mm-color-border)}.mm-navbars--bottom .mm-navbar:last-child{padding-bottom:env(safe-area-inset-bottom)}.mm-navbar__breadcrumbs{-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-flex:1;-ms-flex:1 1 50%;flex:1 1 50%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:0 20px;overflow-x:auto;-webkit-overflow-scrolling:touch}.mm-navbar__breadcrumbs>*{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-padding-end:6px;padding-inline-end:6px}.mm-navbar__breadcrumbs>a{text-decoration:underline}.mm-navbar__breadcrumbs:not(:last-child){-webkit-padding-end:0;padding-inline-end:0}.mm-btn:not(.mm-hidden)+.mm-navbar__breadcrumbs{-webkit-padding-start:0;padding-inline-start:0}.mm-navbar__tab{padding:0 10px;border:1px solid transparent}.mm-navbar__tab--selected{background:var(--mm-color-background)}.mm-navbar__tab--selected:not(:first-child){border-inline-start-color:var(--mm-color-border)}.mm-navbar__tab--selected:not(:last-child){border-inline-end-color:var(--mm-color-border)}.mm-navbars--top.mm-navbars--has-tabs{border-bottom:none}.mm-navbars--top.mm-navbars--has-tabs .mm-navbar{background:var(--mm-color-background-emphasis)}.mm-navbars--top.mm-navbars--has-tabs .mm-navbar--tabs~.mm-navbar{background:var(--mm-color-background)}.mm-navbars--top.mm-navbars--has-tabs .mm-navbar:not(.mm-navbar--tabs):last-child{border-bottom:1px solid var(--mm-color-border)}.mm-navbars--top .mm-navbar__tab{border-bottom-color:var(--mm-color-border)}.mm-navbars--top .mm-navbar__tab--selected{border-top-color:var(--mm-color-border);border-bottom-color:transparent}.mm-navbars--bottom.mm-navbar--has-tabs{border-top:none}.mm-navbars--bottom.mm-navbar--has-tabs .mm-navbar{background:var(--mm-color-background)}.mm-navbars--bottom.mm-navbar--has-tabs .mm-navbar--tabs,.mm-navbars--bottom.mm-navbar--has-tabs .mm-navbar--tabs~.mm-navbar{background:var(--mm-color-background-emphasis)}.mm-navbars--bottom .mm-navbar__tab{border-top-color:var(--mm-color-border)}.mm-navbars--bottom .mm-navbar__tab--selected{border-bottom-color:var(--mm-color-border);border-top-color:transparent}.mm-searchfield{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:var(--mm-navbar-size);padding:0;overflow:hidden}.mm-searchfield__input{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;width:100%;max-width:100%;padding:0 10px;-webkit-box-sizing:border-box;box-sizing:border-box}.mm-searchfield__input input{display:block;width:100%;max-width:100%;height:calc(var(--mm-navbar-size) * .7);min-height:auto;max-height:auto;margin:0;padding:0 10px;-webkit-box-sizing:border-box;box-sizing:border-box;border:none;border-radius:4px;line-height:calc(var(--mm-navbar-size) * .7);font:inherit;font-size:inherit}.mm-searchfield__input input,.mm-searchfield__input input:focus,.mm-searchfield__input input:hover{background:var(--mm-color-background-highlight);color:var(--mm-color-text)}.mm-menu[class*=-contrast] .mm-searchfield__input input{border:1px solid var(--mm-color-border)}.mm-searchfield__input input::-ms-clear{display:none}.mm-searchfield__btn{display:none;position:absolute;inset-inline-end:0;top:0;bottom:0}.mm-searchfield--searching .mm-searchfield__btn{display:block}.mm-searchfield__cancel{display:block;position:relative;-webkit-margin-end:-100px;margin-inline-end:-100px;-webkit-padding-start:5px;padding-inline-start:5px;-webkit-padding-end:20px;padding-inline-end:20px;visibility:hidden;line-height:var(--mm-navbar-size);text-decoration:none;-webkit-transition-property:visibility,margin;-o-transition-property:visibility,margin;transition-property:visibility,margin}.mm-searchfield--cancelable .mm-searchfield__cancel{visibility:visible;-webkit-margin-end:0;margin-inline-end:0}.mm-panel--search{left:0!important;right:0!important;width:100%!important;border:none!important}.mm-panel__splash{padding:20px}.mm-panel--searching .mm-panel__splash{display:none}.mm-panel__noresults{display:none;padding:40px 20px;color:var(--mm-color-text-dimmed);text-align:center;font-size:150%;line-height:1.4}.mm-panel--noresults .mm-panel__noresults{display:block}:root{--mm-sectionindexer-size:20px}.mm-sectionindexer{background:inherit;text-align:center;font-size:12px;-webkit-box-sizing:border-box;box-sizing:border-box;width:var(--mm-sectionindexer-size);position:absolute;top:0;bottom:0;inset-inline-end:calc(-1 * var(--mm-sectionindexer-size));z-index:5;-webkit-transition-property:inset-inline-end;-o-transition-property:inset-inline-end;transition-property:inset-inline-end;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}.mm-sectionindexer a{color:var(--mm-color-text-dimmed);line-height:1;text-decoration:none;display:block}.mm-sectionindexer~.mm-panel{-webkit-padding-end:0;padding-inline-end:0}.mm-sectionindexer--active{right:0}.mm-sectionindexer--active~.mm-panel{-webkit-padding-end:var(--mm-sectionindexer-size);padding-inline-end:var(--mm-sectionindexer-size)}.mm-menu--selected-hover .mm-listitem__btn,.mm-menu--selected-hover .mm-listitem__text,.mm-menu--selected-parent .mm-listitem__btn,.mm-menu--selected-parent .mm-listitem__text{-webkit-transition-property:background-color;-o-transition-property:background-color;transition-property:background-color}@media (hover:hover){.mm-menu--selected-hover .mm-listview:hover>.mm-listitem--selected:not(:hover)>.mm-listitem__text{background:0 0}.mm-menu--selected-hover .mm-listitem__btn:hover,.mm-menu--selected-hover .mm-listitem__text:hover{background:var(--mm-color-background-emphasis)}}.mm-menu--selected-parent .mm-listitem__btn,.mm-menu--selected-parent .mm-listitem__text{-webkit-transition-delay:.2s;-o-transition-delay:.2s;transition-delay:.2s}@media (hover:hover){.mm-menu--selected-parent .mm-listitem__btn:hover,.mm-menu--selected-parent .mm-listitem__text:hover{-webkit-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s}}.mm-menu--selected-parent .mm-panel--parent .mm-listitem:not(.mm-listitem--selected-parent)>.mm-listitem__text{background:0 0}.mm-menu--selected-parent .mm-listitem--selected-parent>.mm-listitem__btn,.mm-menu--selected-parent .mm-listitem--selected-parent>.mm-listitem__text{background:var(--mm-color-background-emphasis)}:root{--mm-sidebar-collapsed-size:50px;--mm-sidebar-expanded-size:var(--mm-max-size)}.mm-wrapper--sidebar-collapsed .mm-slideout{width:calc(100% - var(--mm-sidebar-collapsed-size));-webkit-transform:translate3d(var(--mm-sidebar-collapsed-size),0,0);transform:translate3d(var(--mm-sidebar-collapsed-size),0,0)}[dir=rtl] .mm-wrapper--sidebar-collapsed .mm-slideout{-webkit-transform:none;-ms-transform:none;transform:none}.mm-wrapper--sidebar-collapsed:not(.mm-wrapper--opened) .mm-menu--sidebar-collapsed .mm-divider,.mm-wrapper--sidebar-collapsed:not(.mm-wrapper--opened) .mm-menu--sidebar-collapsed .mm-navbar{opacity:0}.mm-wrapper--sidebar-expanded .mm-menu--sidebar-expanded{width:var(--mm-sidebar-expanded-size);border-right-width:1px;border-right-style:solid}.mm-wrapper--sidebar-expanded.mm-wrapper--opened{overflow:auto}.mm-wrapper--sidebar-expanded.mm-wrapper--opened .mm-wrapper__blocker{display:none}.mm-wrapper--sidebar-expanded.mm-wrapper--opened .mm-slideout{width:calc(100% - var(--mm-sidebar-expanded-size));-webkit-transform:translate3d(var(--mm-sidebar-expanded-size),0,0);transform:translate3d(var(--mm-sidebar-expanded-size),0,0)}[dir=rtl] .mm-wrapper--sidebar-expanded.mm-wrapper--opened .mm-slideout{-webkit-transform:none;-ms-transform:none;transform:none}
/* ======================================================================
   Bright Cloud Studio Layout Utility Framework (Pure CSS)
   DESKTOP-FIRST • max-width media queries
   ====================================================================== */

/* ======================================================================
   PROJECT TOKENS — EDIT THESE PER SITE
   ====================================================================== */
:root {
  /* Page gutters (site margins) */
  --page-gutter: clamp(16px, 4vw, 60px);

  /* Max content width — the single dial for page width. Everything that
     caps content reads this: the .container utility, and the site shell's
     .container_inside rule in website_structure.css. */
  --container-max: 1920px;   /* Cornerstone: 1800px of content (the boards' x300–2100)
                               + the 60px gutter each side */

/* ======================================================================
   GUTTER SCALE (PROJECT-CONFIGURABLE)
   ======================================================================

   The single source of truth for every gutter value. The .gap-* and
   .pxc-* utilities, the row defaults, and the responsive overrides all
   read from these — so changing a value here retunes the whole site
   without touching a single class name.

   As with the spacing scale, the numbers in class names are STEPS, not
   promises: set --gutter-40 to 32px and .gap-40 becomes 32px.

   NOTE — deliberately SEPARATE from the --space-* scale below.
   The space steps are fluid (--space-40 is clamp(24px, 3vw, 40px)),
   while the fixed gutters are fixed on purpose, so that .gap-40 can
   match a comp exactly. Wiring them together would quietly make every
   fixed gutter fluid and erase the point of the .gap-fluid-* tier.

   Every value must carry a unit — a bare 0 invalidates the column
   calc() that consumes it and the column silently loses its width.
====================================================================== */

  /* Fixed steps */
  --gutter-0:  0px;
  --gutter-16: 16px;
  --gutter-24: 24px;
  --gutter-40: 40px;
  --gutter-60: 60px;

  /* Fluid steps — scale smoothly with the viewport */
  --gutter-fluid-sm: clamp(8px, 1.5vw, 16px);
  --gutter-fluid-md: clamp(12px, 2vw, 32px);
  --gutter-fluid-lg: clamp(24px, 4vw, 64px);

  /* Single-axis fluid (used by .gap-x-fluid / .gap-y-fluid) */
  --gutter-fluid-axis: clamp(12px, 2vw, 40px);

  /* Column inner padding, fluid tier — a SEPARATE scale from the gutters
     above. Inner padding runs wider than a gutter at the top end, so these
     keep their own ceilings (60/80px) rather than the gutter's 64px. */
  --col-pad-fluid-sm: clamp(8px, 1.5vw, 24px);
  --col-pad-fluid:    clamp(16px, 3vw, 60px);
  --col-pad-fluid-lg: clamp(24px, 4vw, 80px);

  /* Default row spacing (desktop) — points at the scale above */
  --row-gap-x: var(--gutter-40);
  --row-gap-y: var(--gutter-40);

  /* Default column inner padding (desktop) — edit per site if needed */
  --row-col-pad-x: var(--gutter-0);

/* ======================================================================
   SPACING SCALE (PROJECT-CONFIGURABLE)
   ======================================================================

   IMPORTANT:
   The numbers in spacing utility class names (mb-40, mt-24, etc.)
   represent spacing STEPS, not fixed pixel values.

   Changing the --space-* values below will update spacing globally
   without changing class names.

   Do NOT assume mb-40 always equals 40px.

   BY DESIGN — FLUID STEPS CONVERGE ON SMALL SCREENS
   -------------------------------------------------
   The larger steps (40/60/80) are fluid clamp() values whose lower bounds
   intentionally overlap the fixed steps below them. Consequence:

     • On narrow viewports (~≤800px) --space-40 sits at its 24px floor, so
       mb-40 and mb-24 render identically. The steps only visibly separate
       on wider screens.

   This is intentional: spacing tightens on mobile and opens up on desktop.
   If you need steps that stay distinct at EVERY width, raise the clamp
   floors (e.g. --space-40: clamp(28px, 3vw, 40px)) — see audit note C7.
====================================================================== */
  --space-0: 0;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: clamp(24px, 3vw, 40px);
  --space-60: clamp(32px, 5vw, 60px);
  --space-80: clamp(40px, 7vw, 80px);

  /* Major section separation (responsive) */
  --space-section: clamp(48px, 6vw, 96px);   /* the boards' section padding: 96 (28 of 57 sections) */
    
    
/* ======================================================================
   SINGLE-COLUMN MAX WIDTH TOKENS (EDIT PER SITE)
   ======================================================================

   Used to constrain one-column rows without affecting global containers.
   Ideal for editorial content, long-form copy, and focused sections.
====================================================================== */

--single-sm: 720px;   /* readable text width */
--single-md: 880px;   /* default content column */
--single-lg: 1040px;  /* wide single-column layouts */


}

/* End tokens ======================================================================
=================================================================================== */

/* ======================================================================
   BOX SIZING RESET — REQUIRED BY THE CONTAINER / COLUMN MATH
   ======================================================================

   Padding must be included in declared widths, or max-width and
   padding-inline compound: .container / #main > .inside would render
   (--container-max + 2 × --page-gutter) wide instead of --container-max,
   and percentage columns would overflow once padding is added.

====================================================================== */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}


/* ======================================================================
   CONTAINERS — SAFE TO REUSE ACROSS PROJECTS
   ====================================================================== */
.container {
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  max-width: var(--container-max);
}

.container-fluid {
  width: 100%;
  padding-inline: var(--page-gutter);
}


/* ======================================================================
   THE PAGE CONTAINER LIVES IN THE SITE STYLESHEET — NOT HERE
   ======================================================================

   This framework is CMS-agnostic: it owns containers, rows, columns and
   spacing utilities, but it does NOT claim any CMS-specific selector.

   In the "article = .row" model each article renders into the CMS's main
   content column, and THAT column is what carries the site's max-width,
   centring and page gutter. In Contao that is .container_inside — which
   wraps #main and the left/right columns — and the rule belongs in the
   site shell stylesheet (website_structure.css), alongside the matching
   rules for the header, prefooter and footer.

   ⚠ One owner only. Two selectors at identical specificity (1,1,0) would
   let whichever stylesheet loads last decide the site's content width.

   Nothing here depends on it: with the gap engine rows use no negative
   margins, so they can never overflow their parent. Without a container
   rule, rows simply run the full width of whatever contains them.
====================================================================== */




/* AUDIT NOTE — .bleed-x
   .bleed-x applies negative margins to break out of container gutters.
   Use it for full-bleed backgrounds/sections.

   Avoid putting .bleed-x on elements inside components that already have
   their own padding (cards, modals) unless you intend for it to escape. */

/* Full-bleed helper — breaks out of the container GUTTER only. Use inside a
   full-width parent, or when --container-max ≈ the viewport. */
.bleed-x {
  margin-inline: calc(-1 * var(--page-gutter));
  padding-inline: 0;
}

/* Viewport-wide bleed — breaks out all the way to the screen edges, even when
   the content column (--container-max) is narrower than the viewport. Use it
   for full-width COLOUR BANDS, then put an inner `.container` back inside to
   re-cap the content. Relies on html { overflow-x: clip } (website_structure)
   so the 100vw never introduces a horizontal scrollbar.

     <section class="mod_article hero hero--photo bleed-full">
       <div class="container"> … </div>
     </section> */
.bleed-full {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Full-width colour BAND with self-capping content. Put it on a section/article
   that carries a background: the band itself spans the viewport, and each of
   its DIRECT children is re-capped to the content column and gutter-padded —
   so no inner `.container` wrapper (or element group) is needed. This is what
   the native-content-element sections use: article = .band, children = the
   headline / text / image / element-group content elements. */
.band {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: 0;
}
.band > * {
  box-sizing: border-box;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Bleeding a COLUMN needs two corrections:

   1. padding — plain .bleed-x ties with .row > * and loses on source
      order, so the gutter padding has to be dropped at higher specificity.

   2. width — a flex item's percentage basis resolves against the row's
      content box, and margins sit OUTSIDE that box. So negative margins
      do not widen the item, they shrink its margin box to (100% - 2×gutter)
      and, because flex-grow is 0 and justify-content is flex-start, the
      whole box simply shifts left: correct bleed on the left, but two
      gutters short on the right. Paying for both margins in the basis
      makes the margin box exactly 100% again, so the band lands flush on
      both edges.

   Only full-width bleeds make sense here; .bleed-x on a fractional
   column is unsupported. */
.row > *.bleed-x {
  flex: 0 0 calc(100% + var(--page-gutter) * 2);
  padding-inline: 0;
}



/* ======================================================================
   HOW GUTTERS WORK — REAL gap + SELF-COMPENSATING COLUMNS
   ======================================================================

   THE PROBLEM WITH NAIVE gap
   --------------------------
   A plain `gap` adds space ON TOP of percentage columns:

     .col-2-3 (66.666%) + .col-1-3 (33.333%) + gap > 100%   → wraps

   THE FIX — COLUMNS PAY FOR THE GUTTER
   ------------------------------------
   Each column subtracts its own fair share of the gutter from its width:

     width = P% - gap × (1 - P)        where P is the column's fraction

   Worked example — 75/25 on a 1200px row with a 40px gap:

     .col-3-4 → 75% of 1200 - 40 × 0.25  =  900 - 10  =  890px
     .col-1-4 → 25% of 1200 - 40 × 0.75  =  300 - 30  =  270px
                                    890 + 40 + 270  =  1200px  ✓

   Any set of fractions summing to 100% fills the row exactly, and the
   leftover gutter is billed to each column in proportion to how much
   width it gives up — which is why the arithmetic always closes.

   WHY THIS BEATS THE OLD NEGATIVE-MARGIN TECHNIQUE
   ------------------------------------------------
     • Real empty space between columns, so column backgrounds, borders
       and cards actually separate (padding gutters cannot do this).
     • No negative margins, so a row can never overflow its parent and
       needs no padded container to sit in.
     • flex-basis stays a real width, so flex-wrap still works: .col-1-1
       claims its own line and N-up grids wrap naturally.
     • .trim becomes unnecessary (kept as a no-op for old markup).

   Vertical spacing between wrapped lines uses the same gap's row axis.
====================================================================== */


/* ======================================================================
   ROW ENGINE — CORE (LEAVE ALONE)
   ====================================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    /* Row-level spacing defaults (from project tokens) */
    --gap-x: var(--row-gap-x);   /* horizontal gutter between columns */
    --gap-y: var(--row-gap-y);   /* vertical gap between wrapped rows */
    --col-pad-x: var(--row-col-pad-x); /* optional inner padding inside each column */
    /* A REAL gap — genuine empty space between columns.
    Columns give the gutter back out of their own width (see the
    calc() bases below), so percentages never sum past 100%. */
    gap: var(--gap-y) var(--gap-x);

    /* Optional inner padding, applied INSIDE the column's declared width.
       box-sizing:border-box means this insets content without changing the
       column's outer width — so no .trim compensation is ever needed. */
    /* flex-basis 100% is a FALLBACK: a row child with no col-* class (Contao emits
       several of its own — .syndication, .back, and any unclassed element) would
       otherwise shrink-wrap to its content instead of taking a line. Every .col-*
       rule is later in source at equal specificity, so real columns still win. */
    > * {
      flex: 0 1 100%;
      padding-inline: var(--col-pad-x);
      min-width: 0;
      box-sizing: border-box;
    }

    /* Contao emits a <script> straight after a form (and after some modules). As a
       flex child it is a zero-width COLUMN, so the row's gap gets applied one extra
       time and every real column loses that space. It has no box to lay out. */
    > script { display: none; }

    /* ----------------------------------------------------------------------
       CONTENT CONTAINMENT
       ----------------------------------------------------------------------
       `.row > *` sets min-width: 0 so columns can shrink below their content's
       intrinsic width — that is what keeps percentage columns honest. The
       side effect is that anything wider than the column (an uploaded image,
       an embed, an unbroken URL) will overflow it and can force horizontal
       scroll on the whole page.

       Scoped to the framework's own boxes: the layout engine created this
       exposure, so it contains it. A site-wide `img { max-width: 100% }`
       baseline, if wanted, belongs in the theme/base layer.
    ---------------------------------------------------------------------- */

    > * img, > * svg, > * video, > * canvas, > * iframe, > * embed, > * object { max-width: 100%; }

    /* Preserve aspect ratio once max-width starts constraining the element */
    > * img, > * svg, > * video { height: auto; }

    /* Long unbroken strings (URLs, tokens) wrap instead of pushing the column open */
    > * { overflow-wrap: break-word; }

    /* DEPRECATED — .trim existed to cancel the old negative row margins.
       The gap engine has no negative margins, so this is now a no-op.
       Kept so existing markup does not break. Safe to delete later. */
    &.trim { margin-inline: 0; }
}


/* ======================================================================
   COLUMN WIDTH UTILITIES — HOW flex: 0 0 X% WORKS
   ======================================================================

   flex is shorthand for:
     flex-grow | flex-shrink | flex-basis

   Example:
     flex: 0 0 50%;

   Means:
     - flex-grow:   0  → do NOT grow larger than the base size
     - flex-shrink: 0  → do NOT shrink smaller than the base size
     - flex-basis:  50% → base width is 50% of the row

   Why we use this:
     - Guarantees predictable column widths
     - Prevents stretching or squishing
     - Works cleanly with flex-wrap, gaps, and .trim
     - Avoids layout drift when spacing changes

   IMPORTANT:
     These classes control WIDTH ONLY.
     Prefer controlling spacing at the ROW level (gap utilities).
     Optional inner padding is available via the .pxc-* utilities.

====================================================================== */


/* ======================================================================
   COLUMN WIDTHS
   ====================================================================== */

/* AUDIT NOTE — WHY THESE ARE calc() AND NOT PLAIN PERCENTAGES
   Each column subtracts its own share of the gutter, so a set of
   fractions summing to 100% fits the row EXACTLY with the gap included.
   Plain percentages would sum to 100% + gap and wrap the last column.

   The multiplier is always (1 - P). Adding a new width means adding its
   pair: e.g. a 10% column → calc(10% - var(--gap-x) * 0.9).

   --gap-x must always carry a unit (0px, never 0) or the whole calc()
   is invalid and the column silently loses its width.
   ====================================================================== */
/* Each basis is  P% - gap × (1 - P)  — the column's own share of the
   gutter, subtracted from its width. See the gutter explainer above. */
/* .col divides whatever space is left between however many there are, so
   it behaves like a fraction and stacks with them at 600 (see below).
   .col-auto is an explicit opt-out — "size me to my content" — so it is
   deliberately left OUT of every stacking rule. An icon or a button beside
   a heading should stay beside it on a phone; if you want it to stack,
   use a fraction instead. */
.col { flex: 1 1 0; }
.col-auto { flex: 0 0 auto; }
.col-1-1 { flex: 0 0 100%; }                                    /* full width — takes its own line */
.col-3-4 { flex: 0 0 calc(75%     - var(--gap-x, 0px) * 0.25);  }
.col-2-3 { flex: 0 0 calc(200% / 3 - var(--gap-x, 0px) / 3);     }
.col-3-5 { flex: 0 0 calc(60%     - var(--gap-x, 0px) * 0.4);   }
.col-1-2 { flex: 0 0 calc(50%     - var(--gap-x, 0px) * 0.5);   }
.col-2-5 { flex: 0 0 calc(40%     - var(--gap-x, 0px) * 0.6);   }
.col-1-3 { flex: 0 0 calc(100% / 3 - var(--gap-x, 0px) * 2 / 3); }
.col-30 { flex: 0 0 calc(30%     - var(--gap-x, 0px) * 0.7);   }
.col-1-4 { flex: 0 0 calc(25%     - var(--gap-x, 0px) * 0.75);  }
.col-20 { flex: 0 0 calc(20%     - var(--gap-x, 0px) * 0.8);   }

/* Fixed ma-widths */

.single-sm,
.single-md,
.single-lg {
  max-width: var(--single-md); /* overridden per class */
  width: 100%;
}

.single-sm { max-width: var(--single-sm); }
.single-md { max-width: var(--single-md); }
.single-lg { max-width: var(--single-lg); }


/* ======================================================================
   GAP DECISION GUIDE (READ THIS BEFORE ADDING NEW SPACING)
   ======================================================================

   Use this guide to choose the RIGHT gap utility.
   Do not invent new gap values unless absolutely necessary.

   DEFAULT (most sections):
     gap-fluid
     → Responsive, balanced spacing across all screen sizes

   TIGHT / DENSE LAYOUTS:
     gap-fluid-sm  OR  gap-16
     → Icon grids, specs, compact UI sections

   SPACIOUS / PREMIUM SECTIONS:
     gap-fluid-lg  OR  gap-40 / gap-60
     → Hero sections, editorial layouts, feature showcases

   AXIS-SPECIFIC CONTROL:
     gap-x-0/16/24/40/60/fluid  and  gap-y-0/16/24/40/60/fluid
     → When horizontal and vertical rhythm should differ. Combine with a
       gap-* class: `row gap-24 gap-y-60` is 24 across, 60 down.

   PRECISION / MATCHING DESIGNS:
     gap-16 / gap-24 / gap-40
     → When spacing must match comps exactly

   RULE OF THUMB:
     If unsure, use `gap-fluid`.

====================================================================== */


/* ======================================================================
   GAP UTILITIES — EDIT AVAILABLE SIZES AS NEEDED
   ====================================================================== */
.gap-0 { --gap-x: var(--gutter-0);  --gap-y: var(--gutter-0); }
.gap-16 { --gap-x: var(--gutter-16); --gap-y: var(--gutter-16); }
.gap-24 { --gap-x: var(--gutter-24); --gap-y: var(--gutter-24); }
.gap-40 { --gap-x: var(--gutter-40); --gap-y: var(--gutter-40); }
.gap-60 { --gap-x: var(--gutter-60); --gap-y: var(--gutter-60); }

/* ======================================================================
   FLUID GAP UTILITIES (CLAMP-BASED)
   ======================================================================

   Use these when spacing should scale smoothly across screen sizes.
   Prefer these for marketing and editorial layouts.

   Tiers:
     - sm: tight, dense layouts
     - md: most sections  (.gap-fluid and .gap-fluid-md are the same thing)
     - lg: spacious, premium layouts
*/

.gap-fluid-sm {
  --gap-x: var(--gutter-fluid-sm);
  --gap-y: var(--gutter-fluid-sm);
}

/* .gap-fluid is the original name; .gap-fluid-md is an alias so the three
   tiers read consistently (sm / md / lg). Both are supported — existing
   markup using .gap-fluid keeps working. */
.gap-fluid,
.gap-fluid-md {
  --gap-x: var(--gutter-fluid-md);
  --gap-y: var(--gutter-fluid-md);
}

.gap-fluid-lg {
  --gap-x: var(--gutter-fluid-lg);
  --gap-y: var(--gutter-fluid-lg);
}

/* ======================================================================
   SINGLE-AXIS GAPS
   ======================================================================

   Use these when horizontal and vertical rhythm should differ — a card
   grid often wants tight gutters between columns but more separation
   between wrapped rows. Combine with a .gap-* class, or use alone.

     <div class="row gap-24 gap-y-60">   24 across, 60 down

   THE TWO AXES ARE NOT EQUIVALENT — worth understanding before reaching
   for gap-x-*:

     --gap-y  affects ONLY the space between wrapped lines. Nothing else
              reads it, so it can never disturb a column's width.

     --gap-x  is read TWICE: by the row's gap, and by every column's width
              calc (flex-basis: P% - gap × (1-P)). Changing it therefore
              resizes the columns to compensate — which is exactly what
              keeps a row summing to 100% — but it is the bigger lever.

   Both are safe; gap-y-* is simply the more contained of the two.
====================================================================== */

/* Horizontal only — the space between columns on a line */
.gap-x-0 { --gap-x: var(--gutter-0); }
.gap-x-16 { --gap-x: var(--gutter-16); }
.gap-x-24 { --gap-x: var(--gutter-24); }
.gap-x-40 { --gap-x: var(--gutter-40); }
.gap-x-60 { --gap-x: var(--gutter-60); }
.gap-x-fluid { --gap-x: var(--gutter-fluid-axis); }

/* Vertical only — the space between wrapped lines */
.gap-y-0 { --gap-y: var(--gutter-0); }
.gap-y-16 { --gap-y: var(--gutter-16); }
.gap-y-24 { --gap-y: var(--gutter-24); }
.gap-y-40 { --gap-y: var(--gutter-40); }
.gap-y-60 { --gap-y: var(--gutter-60); }
.gap-y-fluid { --gap-y: var(--gutter-fluid-axis); }


/* ======================================================================
   COLUMN INNER PADDING UTILITIES (optional inner inset)
   ====================================================================== */

.pxc-0 { --col-pad-x: var(--gutter-0); }
.pxc-16 { --col-pad-x: var(--gutter-16); }
.pxc-24 { --col-pad-x: var(--gutter-24); }
.pxc-40 { --col-pad-x: var(--gutter-40); }
.pxc-60 { --col-pad-x: var(--gutter-60); }

/* Fluid column padding (default) */
.pxc-fluid {
  --col-pad-x: var(--col-pad-fluid);
}

/* Fluid column padding — SMALL */
.pxc-fluid-sm {
  --col-pad-x: var(--col-pad-fluid-sm);
}

/* Fluid column padding — LARGE (optional) */
.pxc-fluid-lg {
  --col-pad-x: var(--col-pad-fluid-lg);
}


/* ======================================================================
   RESPONSIVE OVERRIDES — DESKTOP FIRST (MAX-WIDTH) • SIMPLIFIED
   ======================================================================

   SIMPLIFIED RESPONSIVE MODEL (CMS-FRIENDLY)
   -----------------------------------------
   We auto-stack fraction columns on smaller screens.

   - Desktop: .col-1-2, .col-2-3, etc. behave as expected
   - Tablet and down: fraction columns become full width (stacked)
   - No md:* / sm:* classes required

   ESCAPE HATCH
   ------------
   If you need a row to KEEP columns side-by-side on tablet/mobile,
   add .no-stack to the row:

     <div class="row no-stack">...</div>

====================================================================== */

/* Tablet and down: stack fraction columns by default */
@media (max-width: 992px) {

  /* Default behavior: stack, unless the row opts out */
  .row:not(.no-stack) > .col-2-3,
  .row:not(.no-stack) > .col-3-4,
  .row:not(.no-stack) > .col-3-5,
  .row:not(.no-stack) > .col-2-5 {
    flex: 0 0 100%;
  }
  /* NOTE: .col-1-2, .col-1-4, .col-1-3, .col-30 and .col-20 are intentionally
     NOT in this list. Each steps down through an intermediate count before it
     stacks — see "COLUMNS THAT STEP DOWN BEFORE STACKING" below. The four
     classes left here are the MAJOR half of an unequal pair (75 / 66 / 60 / 40
     %); on their own they have nowhere to step to, so they go straight to full
     width, and when they appear WITH their partner the mixed-pair rules below
     out-specify this and equalise them first.
     Use .no-stack to keep any row side-by-side at every width. */
}


/* ======================================================================
   MIXED-RATIO PAIRS — EQUALIZE BEFORE STACKING
   ======================================================================

   Unequal two-column pairs (75/25, 66/33, 60/40) shouldn't jump straight
   from their ratio to a full stack — the minor column gets uncomfortably
   narrow on tablet. Instead they step through an even 50/50 (still 2-up)
   before stacking:

     ratio (desktop)  →  50/50 (≤992)  →  stacked (≤600)

   Detection is automatic via :has(): a row is treated as a mixed pair
   ONLY when it holds BOTH partners, so a 3-up of .col-1-3 or a 4-up of
   .col-1-4 is unaffected. Specificity (5 classes) beats the auto-stacker
   above (3), and the :not(.no-stack) guard keeps the escape hatch working.

   These target two-column pairs; adding a third column to the same row is
   unsupported (both partner selectors would still apply at 50%).
====================================================================== */

/* Tablet: equalize the pair to 50/50 (still side-by-side) */
@media (max-width: 992px) {
  .row:not(.no-stack):has(> .col-3-4):has(> .col-1-4) > .col-3-4,
  .row:not(.no-stack):has(> .col-3-4):has(> .col-1-4) > .col-1-4,
  .row:not(.no-stack):has(> .col-2-3):has(> .col-1-3) > .col-2-3,
  .row:not(.no-stack):has(> .col-2-3):has(> .col-1-3) > .col-1-3,
  .row:not(.no-stack):has(> .col-3-5):has(> .col-2-5) > .col-3-5,
  .row:not(.no-stack):has(> .col-3-5):has(> .col-2-5) > .col-2-5 {
    flex: 0 0 calc(50% - var(--gap-x, 0px) * 0.5);
  }
}

/* Mobile: now stack the pair to full width */
@media (max-width: 600px) {
  .row:not(.no-stack):has(> .col-3-4):has(> .col-1-4) > .col-3-4,
  .row:not(.no-stack):has(> .col-3-4):has(> .col-1-4) > .col-1-4,
  .row:not(.no-stack):has(> .col-2-3):has(> .col-1-3) > .col-2-3,
  .row:not(.no-stack):has(> .col-2-3):has(> .col-1-3) > .col-1-3,
  .row:not(.no-stack):has(> .col-3-5):has(> .col-2-5) > .col-3-5,
  .row:not(.no-stack):has(> .col-3-5):has(> .col-2-5) > .col-2-5 {
    flex: 0 0 100%;
  }
}

/* ======================================================================
   TYPOGRAPHY IS NOT THIS FILE'S JOB
   ======================================================================

   THE BOUNDARY
   ------------
   This framework owns LAYOUT: containers, rows, columns, gutters, and the
   spacing UTILITIES you apply to blocks (mb-*, mt-*, section-space).

   It does NOT own type. Paragraph, list, blockquote and heading rhythm —
   margins, line-height, size — belong to the site's typography layer
   (website.scss), which already defines them.

   ⚠ NEVER add an element reset here. A bare `p` selector ties (0,0,1) with
   the type layer's own `p`, so load order would decide the winner — the same
   markup could space correctly on one site and collapse on another. To zero a
   margin, do it in the type layer or use a spacing utility on a wrapper.
====================================================================== */


/* ----------------------------------------------------------------------
   THE ONE TYPE-ADJACENT RULE THAT IS GENUINELY LAYOUT
   ----------------------------------------------------------------------

   A trailing bottom margin on the last element inside a column adds
   phantom space below the content but INSIDE the column box. That is
   invisible on plain text, but obvious once a column has a background
   or border (cards), where it reads as uneven padding.

   Scoped to this framework's own boxes rather than resetting elements
   globally, so the type layer keeps full control of rhythm everywhere
   else. (Same approach Bootstrap uses for card bodies.)
---------------------------------------------------------------------- */

/* Contao wraps rich text in a .rte div, so the column's own :last-child is that
   wrapper — whose trailing <p> keeps its margin. Reach one level further so the
   reset lands on the element that actually carries it. */
.row > * > :last-child,
.row > * > :last-child > :last-child {
  margin-bottom: 0;
}


/* ----------------------------------------------------------------------
   OPTIONAL FLOW VARIANTS
   ----------------------------------------------------------------------

   Opt-in rhythm overrides for rich-text wrappers. These are arguably
   typography too and are candidates to move to the type layer — kept
   here for now because existing markup may reference them.
---------------------------------------------------------------------- */

.rte-tight > * + * {
  margin-top: 0.75em;
}

.rte-loose > * + * {
  margin-top: 1.5em;
}


/* ----------------------------------------------------------------------
   GUIDANCE FOR THE TEAM
   ----------------------------------------------------------------------

   - Do NOT put margin utilities (mb-*, mt-*) on <p> tags — paragraph
     rhythm comes from the type layer.
   - DO use margin utilities on SECTIONS, BLOCKS and columns.

   Example (correct):

     <div class="mb-40">
       <p>Paragraph one</p>
       <p>Paragraph two</p>
     </div>

   Example (avoid):

     <p class="mb-24">Paragraph one</p>
     <p class="mb-24">Paragraph two</p>

====================================================================== */

/* Margin bottom */
.mb-0 { margin-bottom: var(--space-0); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-40 { margin-bottom: var(--space-40); }
.mb-60 { margin-bottom: var(--space-60); }
.mb-80 { margin-bottom: var(--space-80); }

/* Margin top */
.mt-0 { margin-top: var(--space-0); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mt-40 { margin-top: var(--space-40); }
.mt-60 { margin-top: var(--space-60); }
.mt-80 { margin-top: var(--space-80); }

/* Optional: margin block (top + bottom together) */
.my-24 { margin-block: var(--space-24); }
.my-60 { margin-block: var(--space-60); }


/* Use for consistent spacing between major sections */
.section-space { margin-block: var(--space-section); }
.section-space-top { margin-top: var(--space-section); }
.section-space-bottom { margin-bottom: var(--space-section); }


/* Optional: tighten default spacing on smaller screens (global)
   NOTE: Because we use clamp() utilities, you may not need these.
   Keep these only if your team wants more predictable rhythm. */
   
/* centering */
.center_text {
    text-align: center;
}

/* margin-INLINE only. The `margin: auto` shorthand also set the block axis,
   which silently zeroed every bottom/top margin utility on the same element
   (auto resolves to 0 in normal flow) and, on a flex column, opted the item
   out of cross-axis stretch so it no longer matched its siblings in height. */
.center_element {
    margin-inline: auto;
}

.hor_center {
    justify-content: center;
}


.vert_center {
    align-items: center;
}

.vert_top {
    align-items: flex-start;
}

.vert_bottom {
    align-items: flex-end;
}


/* Element / text alignment (Toolbox: align-left / align-right) */
.align-left,
.align-left img {
    text-align: left;
    margin-inline: 0 auto;
}

.align-right,
.align-right img {
    text-align: right;
    margin-inline: auto 0;
}


@media (max-width: 768px) {
  :root {
    --row-gap-x: var(--gutter-24);
    --row-gap-y: var(--gutter-24);
  }
}

/* ----------------------------------------------------------------------
   MOBILE COLUMN ORDER
   ----------------------------------------------------------------------
   Rows read left-to-right on desktop but top-to-bottom once stacked, so a
   "text beside image" row can end up with the wrong one first on a phone.
   .mobile_col_reverse flips the stacking order without touching the desktop
   layout or the source order (which stays correct for screen readers).
---------------------------------------------------------------------- */
.mobile_col_reverse {
  flex-direction: row;
}

@media (max-width: 600px) {
  .mobile_col_reverse {
    flex-direction: column-reverse;
  }
}


@media (max-width: 480px) {
  :root {
    --row-gap-x: var(--gutter-16);
    --row-gap-y: var(--gutter-16);
  }
}


/* ======================================================================
   COLUMNS THAT STEP DOWN BEFORE STACKING
   ======================================================================

   EVERY multi-column layout steps down through the intermediate counts
   instead of jumping from its full ratio straight to a stack:

     .col-1-2 pair   2-up   (> 992)  →  2-up   (≤ 992)  →  1-up  (≤ 600)
     75/25 pair      75/25  (> 992)  →  50/50  (≤ 992)  →  1-up  (≤ 600)
     66/33 pair      66/33  (> 992)  →  50/50  (≤ 992)  →  1-up  (≤ 600)
     60/40 pair      60/40  (> 992)  →  50/50  (≤ 992)  →  1-up  (≤ 600)
     .col-1-3 grid   3-up   (> 992)  →  2-up   (≤ 992)  →  1-up  (≤ 600)
     .col-30 grid    3-up   (> 992)  →  2-up   (≤ 992)  →  1-up  (≤ 600)
     .col-1-4 grid   4-up   (> 992)  →  2-up   (≤ 992)  →  1-up  (≤ 600)
     .col-20 grid    5-up   (> 992)  →  3-up   (≤ 992)  →  2-up  (≤ 600)
                                                        →  1-up  (≤ 480)

   Thirds ramp 3 → 2 → 1 and accept the trailing orphan, which is what every
   major framework does (Bootstrap's `col-lg-4 col-md-6 col-12`, Tailwind's
   `grid-cols-1 md:grid-cols-2 lg:grid-cols-3`): one wide card beside a gap
   still reads as a grid, three full-bleed cards read as three sections.
   .col-30 joins it; .col-20 goes 5 → 3 → 2 → 1, since a fifth at 2-up on a
   phone is only ~150px. A 50/50 pair holds 2-up to 600 like the rest — it
   must not collapse sooner than a 75/25.

   The :not(.no-stack) guard keeps the escape hatch working: a .row.no-stack
   holds its columns side-by-side at every width.

   ⚠ A component that draws dividers BETWEEN cells has to track these
   breakpoints, because "every cell but the first" is only right while the
   cells share a line — see the divider block in stats.css.
====================================================================== */
@media (max-width: 992px) {
  /* A quarter promotes to a half on tablet — UNLESS the row also holds a
     .col-1-2, which is already 50%. Three 50% items fill one line exactly
     and orphan the third at half width, so those rows stack instead. */
  .row:not(.no-stack):not(:has(> .col-1-2)) > .col-1-4 {
    flex: 0 0 calc(50% - var(--gap-x, 0px) * 0.5);
  }
  .row:not(.no-stack):has(> .col-1-2) > .col-1-4,
  .row:not(.no-stack):has(> .col-1-4) > .col-1-2 { flex: 0 0 100%; }

  /* A third and a 30% promote to a half. When a third appears WITH its
     .col-2-3 partner the mixed-pair rule above already says 50% — same
     answer, so no guard is needed. */
  .row:not(.no-stack) > .col-1-3,
  .row:not(.no-stack) > .col-30 {
    flex: 0 0 calc(50% - var(--gap-x, 0px) * 0.5);
  }

  /* A fifth promotes to a third — 5-up → 3-up reads as 3 + 2. */
  .row:not(.no-stack) > .col-20 {
    flex: 0 0 calc(100% / 3 - var(--gap-x, 0px) * 2 / 3);
  }
}

@media (max-width: 600px) {
  .row:not(.no-stack) > .col-1-2,
  .row:not(.no-stack) > .col-1-3,
  .row:not(.no-stack) > .col-30,
  .row:not(.no-stack) > .col { flex: 0 0 100%; }

  /* A quarter needs the SAME shape as its 992 promotion above, or it never
     stacks: `.row:not(.no-stack):not(:has(> .col-1-2)) > .col-1-4` is four
     class-level selectors and a plain `.row:not(.no-stack) > .col-1-4` is
     three, so the promotion won the cascade at every width below 992 and a
     4-up grid sat at 2-up right down to 390px. Measured on Our Story's values
     row: 171px cells on a phone, with the dividers already switched off
     because stats.css correctly believed they had stacked. */
  .row:not(.no-stack):not(:has(> .col-1-2)) > .col-1-4,
  .row:not(.no-stack):has(> .col-1-2) > .col-1-4 { flex: 0 0 100%; }

  /* ...and a fifth to a half, one step behind everything else. */
  .row:not(.no-stack) > .col-20 {
    flex: 0 0 calc(50% - var(--gap-x, 0px) * 0.5);
  }
}

@media (max-width: 480px) {
  .row:not(.no-stack) > .col-20 { flex: 0 0 100%; }
}

/* box-sizing lives in framework_v3.css (an inherit-based reset, so components
   can opt out) — do not add a universal border-box rule here, it would load
   later and defeat it.

   ⚠ Do not set overflow-x: hidden on body either. website_structure.css
   already clips on html, and `hidden` on one axis forces the other to `auto`,
   which turns body into a scroll container and breaks position: sticky for
   everything inside it. `clip` has no such effect. */

#header .background,
#header .background_image {
    overflow-x: hidden;
}

html {scroll-behavior: smooth; }

/* Moved here from framework_v3.css, which must own no CMS-specific
   selector. .content-image is Contao markup. */
.content-image.center_element img {
    margin-inline: auto;
}

img {
    height: auto;
    max-width: 100%;
    display: block;
    border: 0;
}

body,
form,
fieldset,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
p.active,
p.confirm {

    margin: 0;
    padding: 0;
}

a img { border-bottom: 0; }

header,
footer,
nav,
section,
aside,
article,
figure,
figcaption,
.custom,
.tableless label,
.checkbox_container span,
.radio_container span {
    display: block;
}

/* Controls do not inherit type by default. max() keeps the page's own size on
   desktop and never drops below 16px — under 16px, iOS Safari zooms the page
   whenever a field is focused. */
select,
input,
textarea {
    font-family: inherit;
    font-size: max(16px, 1em);
}

/* .block is a float-clearing relic. Contao puts it on EVERY article, and in
   the layout framework an article is a .row — so an unscoped `overflow:
   hidden` here silently clips any .bleed-x inside a row (and creates a new
   block formatting context on every row). Excluding .row keeps the legacy
   clearing behaviour everywhere it is still wanted.

   `overflow: clip` clips exactly as `hidden` did, without creating a
   scrollport (which would break position: sticky inside).

   ⚠ `display` MUST NOT be set here. `.block:not(.row)` is (0,2,0), specific
   enough to beat any single-class component rule, and Contao puts `.block` on
   every article AND every content element — so a `display` here overrides the
   layout of anything needing a non-block display. `display: flow-root` once
   collapsed `.ins-grid { display: grid }` (0,1,0) and the Insights list went
   from three columns to one. Float containment is handled where floats can
   actually occur — see the `.media--left/right` rule below.

   The reason the split matters: `overflow: hidden` also makes the element a
   SCROLL CONTAINER, and `animation-timeline: view()` binds to the nearest
   scrollport ancestor. Since Contao puts `.block` on every article, EVERY
   article was a scrollport that never scrolls — so every scroll-driven
   animation on the site resolved its ViewTimeline against a zero-range
   scroller, `currentTime` stayed null, and the animation sat frozen at its
   `both` end state. That is why the Switching timeline and the For Advisors
   phone tree "didn't run": the CSS was correct all along. `overflow: clip`
   clips without creating a scroll container, so `view()` now resolves past the
   article to the real page scroller. */
.block:not(.row) {
    overflow: clip;
}

/* Visually hidden but still announced. The previous version used zero
   dimensions and left:-1000px; zero-size elements are skipped by some
   screen readers, and off-screen positioning can cause horizontal scroll
   in RTL. Contao uses this for real assistive text, e.g.
   <span class="invisible">Mandatory field</span>. */
.invisible {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* The "Skip navigation" links are .invisible until a keyboard user reaches them:
   then they show, top left, so the focus is never on something unseen
   (WCAG 2.4.7; 8 Oct). */
a.invisible:focus-visible {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.6em 1em;
    overflow: visible;
    clip-path: none;
    white-space: nowrap;
    background: #fff;
    color: var(--prime);
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(4, 32, 63, 0.25);
}

/* A visible focus indicator is required (WCAG 2.4.7). This replaces an
   `outline: none` that removed it with no substitute, which left keyboard
   users unable to tell which control they were in — the site search box
   included. :focus-visible keeps it off for mouse users. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--prime);
    outline-offset: 2px;
}

textarea { min-height: 150px; }

fieldset {
    border: 0;
    margin-inline: 0;
    padding-inline: 0;
    padding-block: 0;
}

fieldset table,
input.text,
input.email,
textarea {
    width: 100%;
}

input.captcha {
    width: 50px;
}

input.checkbox,
.tableless .checkbox_container label,
.checkbox_container span.mandatory,
input.radio,
.tableless .radio_container label,
.radio_container span.mandatory,
.tableless span label,
address,
.pdf_link img,
.content-download img,
.content-downloads img,
.enclosure img {
    display: inline;
}

/* Strip the platform's native control chrome. */
input.text,
input.submit,
.textarea,
textarea,
input.captcha,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* --second matches forms.css, so the required-field asterisk is one colour
   whether the form is a content element or a module. */
.error,
span.mandatory {
    color: var(--second);
}

.confirm {
    color: var(--prime);
}

p.error {
    margin: 0;
    padding-top: 10px;
}

.content-download img,
.content-downloads img,
.enclosure img {
    vertical-align: top;
}

.content-downloads p,
.enclosure p,
p.error {
    padding-bottom: 0;
}

.enclosure { padding-top: 20px; }
/* Table styling lives in tables.css. This stays as a bare reset for
   any table outside a .content-table element. */
table { border-spacing: 0; }
address { font-style: normal; }

/* IMAGE POSITION IN A TEXT ELEMENT
   --------------------------------
   These are FLOATS, deliberately, not flex.

   The editor's choice is literally "floating: left/right", and what that
   means is that the text WRAPS around the image and then continues full
   width beneath it. Flex cannot do that — it produces two rigid columns,
   so a short paragraph beside a tall image leaves a large empty gap and
   the text never flows underneath.

   `display: flow-root` on the parent contains the float, so the image can
   never escape the bottom of its content element. It is the modern
   replacement for a clearfix pseudo-element or `overflow: hidden`, and
   unlike overflow it creates no scroll container and no clipping. */

.content-text.media { display: flow-root; }

/* SPACING AROUND A FLOATED IMAGE
   The gap between the image and the text beside it is a GUTTER — the same
   idea as the space between two columns — so it uses the gutter scale
   rather than a hardcoded value.

   --row-gap-x already steps down at the framework's breakpoints
   (40 -> 24 -> 16), so the float gap tightens on smaller screens in step
   with every column gutter on the site. Retuning --gutter-40 moves both.

   The space BELOW the image is block rhythm, not a gutter, so it comes
   from the spacing scale instead. */

/* A plain `max-width: 50%` keeps scaling with the container, so on a wide
   site the image reaches ~900px and dominates the composition. The pixel
   cap stops it growing once there is plenty of room, which keeps the text
   column reading like a column rather than a narrow strip beside a poster.

   min() takes whichever is smaller, so narrow screens still get the 50%
   behaviour and wide screens settle at a sensible fixed size. */
.content-text.media--left figure,
.content-text.media--right figure {
    max-width: min(50%, 480px);
}

.content-text.media--left figure {
    float: left;
    margin: 0 var(--row-gap-x) var(--space-24) 0;
}

.content-text.media--right figure {
    float: right;
    margin: 0 0 var(--space-24) var(--row-gap-x);
}

/* above / below simply stack. The figure is first in the DOM, so `below`
   needs the order reversed. */
.content-text.media.media--above figure { margin-bottom: var(--space-24); }

.content-text.media.media--below {
    display: flex;
    flex-direction: column-reverse;
}

.content-text.media.media--below figure { margin-top: var(--space-24); }

/* Too narrow to wrap around: let the image take its own line.

   TUNING NOTE — the awkward zone is roughly 601-768px.
   In that range the image is still taking ~50% while the gutter is still
   at its desktop 40px, so the text column can drop to around 350px and
   the wrap goes ragged. Measured at an 820px viewport: 754px container,
   361px image, 353px of text.

   If a particular site's images or copy make that look bad, raise this
   breakpoint to 768px so the image unfloats before the column gets tight:

       @media (max-width: 768px) { ... }

   Left at 600px by default because it keeps the wrap on small tablets,
   which suits shorter captions and portrait images. Change per site
   rather than globally — it depends on the imagery. */
@media (max-width: 600px) {
    .content-text.media--left figure,
    .content-text.media--right figure {
        float: none;
        max-width: none;
        margin: 0 0 var(--space-24);
    }
}

/* Legacy float utilities, still available for hand-written content. */
.float_left { float: left; }
.float_right figure { float: right; }

.float_clear,
.center,
.clear,
#clear {
    clear: both;
}

/* --------------------------------------------------------------------------
   VIDEO EMBEDS — YouTube and Vimeo
   --------------------------------------------------------------------------
   Contao renders the player as <iframe width="640" height="360">. Those are
   HTML attributes rather than CSS, but they still size the element — so
   overriding only the width makes the embed scale sideways while its height
   stays locked at 360px. It also explains why aspect-ratio alone did nothing
   here: with BOTH dimensions definite, aspect-ratio is ignored outright.

   `height: auto` is what releases it. Once the height is auto the ratio has
   something to drive, and the embed scales on both axes.

   The framework gives .row > * img/svg/video a height: auto but deliberately
   skips iframe, because a bare iframe — a map, an external form — has to
   keep its attribute height; with no ratio to work from it would collapse to
   the 150px default size. So the release happens HERE instead, scoped to the
   players, where a ratio is guaranteed by the rule below.
   -------------------------------------------------------------------------- */

.content-youtube,
.content-vimeo,
.content-youtube iframe,
.content-vimeo iframe {
    width: 100%;
}

.content-youtube iframe,
.content-vimeo iframe {
    height: auto;

    /* The ratio dropdown is optional — Contao ships a blank option — so a
       default is required or an embed with nothing chosen would collapse.
       16/9 is exactly what Contao's own 640x360 attributes describe, so the
       unset case keeps the shape it was already rendering, just fluid.

       Using playerSize for a non-16:9 embed without picking a ratio? Set
       --video-ratio on that element rather than hardcoding a pixel size. */
    aspect-ratio: var(--video-ratio, 16 / 9);

    /* block removes the inline descender gap beneath the player; the auto
       margins centre the tall ratios once max-width starts constraining. */
    display: block;
    margin-inline: auto;
}

/* Every ratio Contao offers. The class is literally `aspect--16:9`, so the
   colon has to be escaped. */
.content-youtube .aspect--16\:9 iframe,
.content-vimeo .aspect--16\:9 iframe {
    aspect-ratio: 16 / 9;
}

.content-youtube .aspect--16\:10 iframe,
.content-vimeo .aspect--16\:10 iframe {
    aspect-ratio: 16 / 10;
}

.content-youtube .aspect--21\:9 iframe,
.content-vimeo .aspect--21\:9 iframe {
    aspect-ratio: 21 / 9;
}

.content-youtube .aspect--4\:3 iframe,
.content-vimeo .aspect--4\:3 iframe {
    aspect-ratio: 4 / 3;
}

.content-youtube .aspect--3\:2 iframe,
.content-vimeo .aspect--3\:2 iframe {
    aspect-ratio: 3 / 2;
}

/* Portrait and square are the two ratios that can run away: in a full-width
   1800px container a 9:16 player works out over 3000px tall. Both are capped
   by WIDTH rather than height — with the width pinned at 100%, a max-height
   would letterbox inside the player instead of resizing it. */
.content-youtube .aspect--9\:16 iframe,
.content-vimeo .aspect--9\:16 iframe {
    aspect-ratio: 9 / 16;
    max-width: calc(var(--video-tall-max, 80vh) * 9 / 16);
}

.content-youtube .aspect--1\:1 iframe,
.content-vimeo .aspect--1\:1 iframe {
    aspect-ratio: 1 / 1;
    max-width: var(--video-tall-max, 80vh);
}


/* --------------------------------------------------------------------------
   SELF-HOSTED PLAYER — the "player" content element
   --------------------------------------------------------------------------
   Same element for both: Contao renders <video> or <audio> depending on the
   file's mime type, wrapped in the figure component so a caption becomes a
   <figcaption>.

   The width/height fields in the back end become HTML ATTRIBUTES on the
   media element, exactly as they do on the YouTube iframe above. The
   difference is that <video> has an intrinsic size, so no ratio needs to be
   invented here: browsers already derive aspect-ratio from those attributes
   the way they do for <img>. Setting an explicit ratio would be actively
   wrong — it would force a 4:3 clip into 16:9.

   So the whole job is releasing the pinned width. Left alone, a video with
   width="640" sits at 640px inside a wider column, and one with no size set
   at all falls back to the 300x150 default for a replaced element.
   -------------------------------------------------------------------------- */

/* Bounded on BOTH axes rather than stretched to the column width. A <video>
   carries an intrinsic ratio, so a max-width and a max-height together are
   enough: the browser shrinks it to satisfy whichever bites first and keeps
   the ratio itself. No ratio has to be declared, and none should be.

   The height ceiling is what makes portrait usable. Measured with a real
   2160x3840 clip: at width 100% it rendered 639x1135 — 1.17x the viewport
   height, and about 3200px tall in a full-width container. With the ceiling
   it settles to roughly 435x774 and stays on screen.

   Trade-off worth knowing: width is `auto`, not 100%, so a video whose
   intrinsic width is SMALLER than the column renders at its own size instead
   of being upscaled. That is deliberate — upscaled video looks soft — but if
   a small clip must fill the column, set the width in the element's player
   size field. */
.content-player {
    video {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: var(--video-tall-max, 80vh);
        margin-inline: auto;
    }

    /* Audio has no picture, so it has a fixed control height and only the width
       is worth touching. Full width because a centred 300px control bar in a
       wide column reads as broken rather than deliberate. */
    audio {
        display: block;
        width: 100%;
    }

    figure { margin: 0; }

    figcaption {
        margin-top: var(--space-8);
        font-size: 0.875em;
        color: var(--grey-dark);
    }
}

/* --------------------------------------------------------------------------
   PASTED EMBEDS — raw <iframe> in a text or HTML element
   --------------------------------------------------------------------------
   Clients often skip the video content element and paste YouTube's embed
   code straight into the rich text editor. That markup carries no `aspect`
   class and no .content-youtube wrapper, so none of the rules above reach
   it — it arrives as a bare <iframe width="560" height="315">.

   The ratio is genuinely unknown to CSS: it exists only in those two HTML
   attributes, and until recently no CSS could read them. So this works in
   three layers, cheapest first.

   Note a pasted embed is NOT distorted the way a stretched image would be —
   an iframe re-lays out its contents rather than scaling them. A too-narrow
   player letterboxes internally. So the failure mode for anything missed
   here is mild, which is why the rules stay conservative.

   Two places a pasted embed can land, and they are structurally different:

     .rte              inside a text element — a normal descendant
     .mod_article >    the HTML and unfiltered HTML elements emit their
                       markup with NO wrapper div at all, so the embed
                       becomes a DIRECT CHILD of the article

   The second case is the one that surprises. There is no .content-* box to
   hook onto, and a column class set in the back end is silently dropped
   because there is nothing to put it on — which also means the embed becomes
   a flex item of the row and needs to be told to take its own line.
   -------------------------------------------------------------------------- */

/* 1. Nothing pasted may break out of its column, whatever it is. */
.rte :is(iframe, embed, object, video),
.mod_article > :is(iframe, embed, object, video) {
    max-width: 100%;
}

/* An unwrapped embed is a flex item of the row. Give it a full line so it
   does not sit alongside the real columns as if it were one. */
.mod_article > :is(iframe, embed, object, video, .embed-fluid) {
    flex: 0 0 100%;
}

/* 2. Known video hosts get the fluid treatment, with 16:9 assumed — right
      for essentially every player embed code in circulation.

      Deliberately scoped by src rather than applied to every iframe: a map,
      a Spotify player (152px tall), a booking widget or a form embed would
      be wrecked by being forced into 16:9. Matching on host means those keep
      their own height and only video is treated as video.

      Add a host by extending this list. */
:is(.rte iframe, .mod_article > iframe):is(
    [src*="youtube.com"], [src*="youtube-nocookie.com"], [src*="youtu.be"],
    [src*="player.vimeo.com"], [src*="loom.com"], [src*="wistia.net"],
    [src*="dailymotion.com"], [src*="videopress.com"]),
.embed-fluid iframe {
    width: 100%;
    height: auto;                             /* release the attribute height */
    aspect-ratio: var(--video-ratio, 16 / 9);
    display: block;
}

/* 3. Where the browser can read typed attr(), take the REAL ratio from the
      embed's own width/height instead of assuming. This is what makes a
      pasted 4:3 or portrait embed correct rather than merely contained.

      Progressive enhancement only — browsers without it keep the 16:9 above,
      which is why layer 2 is not written as a fallback inside this block.
      [width][height] is required in the selector so the function always has
      both attributes to read. */
@supports (aspect-ratio: attr(width type(<number>)) / attr(height type(<number>))) {
    :is(.rte iframe, .mod_article > iframe)[width][height]:is(
        [src*="youtube.com"], [src*="youtube-nocookie.com"], [src*="youtu.be"],
        [src*="player.vimeo.com"], [src*="loom.com"], [src*="wistia.net"],
        [src*="dailymotion.com"], [src*="videopress.com"]),
    .embed-fluid iframe[width][height] {
        aspect-ratio: attr(width type(<number>), 16) / attr(height type(<number>), 9);

        /* Same 80vh ceiling the 9:16 and 1:1 elements get, for the same
           reason: a pasted portrait embed measured 777x1381 without it.
           Capping WIDTH keeps the ratio true — the width that produces a
           full-height box is height-limit x (w/h). Landscape embeds are far
           from the ceiling at any normal width, so this only ever bites on
           tall ones. */
        max-width: calc(var(--video-tall-max, 80vh)
                        * attr(width type(<number>), 16)
                        / attr(height type(<number>), 9));
        margin-inline: auto;
    }
}

/* TUNING
     --video-ratio      fallback ratio when the editor picks none, and the
                        assumed ratio for a pasted embed. 16/9.
     --video-tall-max   height ceiling for 9:16 and 1:1. 80vh leaves the
                        page furniture visible around a portrait embed.

   An embed from a host not listed above keeps its own size. To make one
   fluid, wrap it in <div class="embed-fluid"> in the editor's source view;
   add style="--video-ratio: 4/3" to that div if it is not 16:9. */

iframe { border: 0; }

/* ==========================================================================
   IMAGE RATIOS — crop a photo to a frame with a Theme Toolbox class
   ==========================================================================
   A class on an image element (ratio-3x2 …) crops the photo to that frame
   with object-fit, so an editor can drop in any photo. Faces: set
   --ratio-focus (e.g. 50% 20%) on the element. Crops belong here, in CSS —
   every image uses the "Webp Convert" size (original dimensions, as WebP). */
:is(.ratio-1x1, .ratio-4x3, .ratio-3x2, .ratio-16x9, .ratio-21x9) img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: var(--ratio-focus, 50% 50%);
}
.ratio-1x1 img  { aspect-ratio: 1 / 1; }
.ratio-4x3 img  { aspect-ratio: 4 / 3; }
.ratio-3x2 img  { aspect-ratio: 3 / 2; }
.ratio-16x9 img { aspect-ratio: 16 / 9; }
.ratio-21x9 img { aspect-ratio: 21 / 9; }

html { overflow-x: clip; }
/* mmenu puts `overflow-x: hidden` on body (.mm-wrapper). With html clipped, that
   no longer passes to the viewport: body becomes a scroll container that never
   scrolls, and every position: sticky inside it (the legal pages' "On this
   page", the style guide's sub menu) stops sticking. `clip` hides the same
   overflow without making a scroll container. */
body.mm-wrapper { overflow-x: clip; }

#header .inside,
#hero .ce_text,
#hero .content-text {
    width: 100%;
}

/* THE PAGE CONTAINER — one owner per region.
   fe_page nests .container_inside > #main > .inside, so both cannot carry
   the container: with border-box the gutter is subtracted twice and body
   content ends up inset from the header and footer by a full gutter on
   each side (60px at desktop). .container_inside is the right owner
   because it wraps #main AND the left/right columns; putting it on
   #main > .inside would leave the sidebars outside the container.

   Using a stock fe_page with no .container_inside? Move that selector to
   `#main > .inside` — but keep exactly one of them. */
#header .inside,
#prefooter .inside,
#footer .inside,
.container_inside {
    max-width: var(--container-max);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

#container {
    padding-top: 60px;
    background-color: var(--background);
    position: relative;
}
.container_inside { padding-bottom: 120px; }

#wrapper { overflow: clip; }

/* ==========================================================================
   BRAND TOKENS — colours and type for this site
   ==========================================================================
   Native CSS custom properties, so every other stylesheet can use them with
   no @import. They are resolved by the browser at runtime, which means load
   order does not matter — any stylesheet may reference these even if it is
   served before this one.

   Requirement: this stylesheet must be present in the layout, since it is
   the only place these are defined.
   ========================================================================== */
:root {
  /* Standard colours — rarely changed */
  --black: #000;
  --white: #fff;

  /* Brand colours — change these per site */
  --text: var(--black);
  --prime: #0A417C;   /* Penpot: brand → color.blue.700 */
  --second: #AD1E22;  /* Penpot: accent → color.red.600 */

  /* Page background. Wired to #container in website_structure.css, so
     changing it here changes the page. White by default; a soft grey such
     as #F1F1F1 is the usual alternative. */
  --background: var(--white);

  /* Borders and rules. A COLOUR, not a shorthand, so each component picks
     its own width and style — 1px solid for form fields, 2px for a table
     header, and so on. Do not put "1px solid" in here: the usage sites
     already supply it, and doing so invalidates every border that reads it. */
  --stroke: #DFE4EA;  /* Penpot: border → color.neutral.200 */

  /* OPTIONAL — uncomment if the brand has a third colour.
     Nothing reads it by default, so it costs nothing to leave commented.
     --third: #000A46; */

  /* Derived shades. These were SCSS lighten() calls, which cannot operate on
     custom properties — so the exact resulting values are named here instead.
     (color-mix() could re-derive them at runtime if you ever want that.) */
  --grey-dark: #404040;    /* was lighten($black, 25%) */
  --grey-light: #ededed;   /* was lighten($black, 93)  */
  --prime-light: #235E97;  /* Penpot: color.blue.600 (was lighten($prime, 20%)) */

  /* Dark brand surfaces — bands and callout cards. */
  --ink:  #04203F;   /* Penpot: color.blue.950 — deep navy (bands, callout cards) */
  --navy: #083C6F;   /* Penpot: color.blue.800 — closing CTA band */

  /* Heading colour (deep navy) vs body text (slate grey) — from the design. */
  --heading: #072F5A;   /* Penpot: text.primary / color.blue.900 */
  --body:    #4A545F;   /* Penpot: color.neutral.600 */
  --red-700: #93191D;   /* Penpot: color.red.700 — deep accent (pull quotes, phone tree) */
  --red-800: #7C181B;   /* Penpot: color.red.800 — the eyebrow label */
  --text-on-dark-dim: #C4CCD6;   /* body copy and eyebrows on the dark bands */
  --text-muted: #636E7B;   /* a shade darker than the board's #6B7683: 4.5:1 on cream (WCAG AA, 8 Oct) */
  --text-muted-board: #6B7683;         /* Penpot: color.neutral.500 — captions, dates, stat labels */

  /* The type scale the boards use more than once (px at the 2400 board). */
  --fs-hero-h1: clamp(2.4rem, 5.2vw, 4.6875rem);   /* 75 — every hero headline */
  --fs-h2: clamp(1.9rem, 3.2vw, 2.8rem);           /* 45 — section headings */

  /* Off-white section band (hero + soft light sections). */
  --cream: #FBFAF9;

  /* Hairlines — the thin brand rules that frame the hero and feature rows. */
  --hairline:         var(--prime);    /* the boards draw every rule 1px solid #0A417C */
  --hairline-on-dark: var(--stroke);   /* …and #DFE4EA on the dark bands */

  /* Muted grey — placeholder text, and the quiet captions on a dark card.
     The designs use this one value for every "not yet filled in" string. */
  --placeholder: #9AA5B3;   /* Penpot: color.neutral.400 */

  /* Role tokens — what framework3's shared components (cards, notch, def-list,
     legal, the style guide) read. Mapped onto this palette; nothing here
     changes an existing rule. */
  --accent: var(--second);
  --text-body: var(--body);
  --text-muted: #636E7B;   /* WCAG AA on cream, see above */              /* Penpot: color.neutral.500 — dates, captions */
  --text-on-dark: var(--white);
  --text-on-dark-dim: #C4CCD6;        /* Penpot: body copy on the dark bands */
  --prime-deep: var(--ink);
  --surface-soft: var(--cream);
  --grad-cta: var(--navy);

  /* The fixed header's height — what sticky things (the guide's sub menu, the
     legal pages' aside) sit under. The nav runs two lines above the 900px
     switch to the mobile menu, hence 104. */
  --header-h: 56px;

  /* Soft decorative blobs behind the hero (radial gradient stops). */
  --blob-cyan: #A6DDEA;   /* Penpot: color.blue.300 */
  --blob-pink: #ECB9B9;   /* Penpot: hero pink wash */

  /* Display heading gradient */
  --heading-gradient-from: #04203F;  /* Penpot: color.blue.950 */
  --heading-gradient-to: #0A417C;    /* Penpot: brand → color.blue.700 */

  /* Hero band gradient — the dark brand wash behind hero copy. Change per site.
     Penpot "Gradiant Blue" stops (#04203F deep navy → #0A417C brand).
     DIRECTION: deepest in the TOP-RIGHT corner, lightest in the BOTTOM-LEFT —
     a deliberate departure from the boards' top-to-bottom, so it reads the
     same on every surface using this token (Contact card, .hero--text). */
  --grad-hero: linear-gradient(to bottom left, var(--heading-gradient-from) 0%, var(--prime) 100%);

  /* Type — change these per site (Penpot: font.body Rubik, font.display Literata) */
  --type-body: Rubik, sans-serif;
  --type-display: Literata, serif;
}
@media (min-width: 1120px) { :root { --header-h: 104px; } }   /* the full bar; below it the menu (header.css) */

body {
    font-size: clamp(1rem, 1.2vw, 1.1875rem);   /* up to 19px, per the design */
    font-family: var(--type-body);
    color: var(--body);
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    line-height: 1.55;
    min-height: 100vh;
    width: 100%;
    /* No overflow-x here: website_structure.css already clips on html, and
       `hidden` on body forces the other axis to `auto`, which makes body a
       scroll container and breaks position: sticky inside it. */
}

/* Headings — deep navy, Literata (display), 700. Solid colour, not a gradient
   text-clip. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--type-display);
    font-weight: 700;
    color: var(--heading);
    line-height: 1.14;
    /* Even out the line lengths so a headline never leaves one orphaned word
       on the last line. Progressive enhancement — a browser without it just
       wraps normally, and the cap on balanced lines makes it a no-op on long
       text, so it only ever affects the short strings headings actually are. */
    text-wrap: balance;
}

/* A heading is already 700, so `<strong>` inside one has to go FURTHER to read
   as emphasis — the boards set the emphasised sentence to 800 against the
   heading's 700 (Penpot reports those two shapes' weight as "mixed", every
   other heading as a flat 700). Two headings use this: For Financial Advisors'
   "It isn't, because we do it for you." and Switching's "Almost none. That's
   the point." Needs Literata 800, which fe_page.html.twig now requests. */
:is(h1, h2, h3, h4, h5, h6) strong,
:is(h1, h2, h3, h4, h5, h6) b { font-weight: 800; }

h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.06;
    margin-bottom: 0.5em;
}
h1.small { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

h2 {
    margin-bottom: 0.6em;
    font-size: var(--fs-h2);
}
.small h2 { font-size: clamp(1.25rem, 1.6vw, 1.65rem); }

h3 {
    margin: 0 0 0.55em;
    font-weight: 500;   /* the boards' 27px card/feature heading (66 uses on 11 pages) */
    font-size: clamp(1.35rem, 2vw, 1.7rem);    /* Penpot H3 27px */
}

h4 {
    margin: 0 0 0.55em;
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);   /* Penpot LG 22px */
}

h5 { margin: 0 0 0.5em; font-size: 1.125rem; }
h6 { margin: 0 0 0.5em; font-size: 1rem; }

a {
    border-bottom: 1px solid var(--prime);
    text-decoration: none;
    color: var(--prime);
    transition: all 0.2s ease;
    &:hover {
        border-bottom: 1px solid var(--second);
        color: var(--second);
    }
}

h1 a,
h3 a,
h2 a,
h1 a:hover,
h3 a:hover,
h2 a:hover {
    border-bottom: 0;
}

hr {
    margin-top: var(--space-60);
    margin-bottom: var(--space-60);
    border: 0;
    position: relative;
    border-top: 1px solid var(--prime);
}

p { margin: 0 0 1.5em; }

/* LISTS
   Here rather than in a component file because the list content element and
   a list typed into the rich text editor emit the SAME markup — plain
   <ul>/<li> and <dl>/<dt>/<dd>, with only the wrapper div differing. Two
   files styling one <li> would race at similar specificity, and the two
   would drift apart visually; one owner means they cannot.

   Not website_standard.css either: that file exists for Contao's quirks,
   and indent, spacing and markers are brand decisions.

   Left on UA defaults these run at a 40px indent, which is far wider than
   the type scale wants. padding-inline-start rather than padding-left so a
   right-to-left site mirrors correctly. */
ul,
ol {
    margin: 0 0 1em;
    padding-inline-start: 1.25em;
}

li {
    margin-bottom: 0.5em;

    /* The list's own bottom margin already provides the gap after the last item;
       without this the two stack up. */
    &:last-child { margin-bottom: 0; }

    /* A nested list belongs to its parent item, so it gets the item's spacing
       above it and none below. */
    > ul, > ol { margin-block: 0.5em 0; }
}

dl { margin: 0 0 1em; }

dt {
    font-weight: 600;
}

/* Browsers indent <dd> by 40px and give it nothing else, which reads as a
   stray indent rather than a definition. Reset and spaced instead. */
dd {
    margin: 0 0 0.75em;
    &:last-child { margin-bottom: 0; }
}

/* TUNING
   Markers are deliberately left at the text colour. Colouring them
   (`ul > li::marker { color: var(--prime); }`) suits some brands, but it
   costs legibility on ordered lists where the number carries meaning. */

/* BUTTONS
   The three rules below (base, hover, small screens) must list the SAME
   selectors. They had drifted: .layout_latest p.more a had a hover but no
   base styling, plain `button` had base styling but only [type=submit]
   got a hover, and the download link appeared in two lists out of three.
   .ce_download is dropped — Contao 5 emits .content-download.

   These name INTENTS, not the button element. A bare `button` selector was
   here and it matched the tag, which means "interactive control" rather than
   "brand call to action" — so it caught every button any third-party
   component renders. Counted across this build it styled ONE button it
   should (the contact form submit) and eleven it should not: four cookie bar,
   three accordion headers, four Colorbox controls. Overriding it was the
   normal case, not the exception, and three stylesheets were each undoing it.
   It is also why a <button> used for correct semantics in a header or footer
   had to be un-styled by hand.

   [type="submit"] separates them cleanly because an attribute selector only
   matches an attribute that is PRESENT: submit is the spec default for
   <button>, but third-party controls either set type="button" or omit it, so
   they are not matched. Contao also puts class="submit" on form submits.

   Consequence worth knowing: a hand-written <button> no longer gets the brand
   styling for free. Add .btn to it.

   The cookie bar is deliberately NOT in this list: that bundle is
   token-driven, so cookiebar.css brands it by setting its own --ccb-*
   properties instead of imposing the site button on its layout. */
.btn a,
a.btn,
button[type="submit"],
input[type="submit"],
.submit,
.content-download .download-element a,
.layout_latest p.more a {
    display: inline-block;
    margin-bottom: 1.5em;
    padding: 13px 28px;
    text-align: center;
    background-color: var(--second);
    border-radius: 30px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    border: 0;
    line-height: 1.2;
    margin-right: 1em;
    font-size: 0.9375rem;   /* Penpot button 15px */
}

.btn a:hover,
a.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.submit:hover,
.content-download .download-element a:hover,
.layout_latest p.more a:hover {
    background-color: var(--prime);
}

/* BUTTON VARIANTS
   Modifiers layered onto .btn — add the class on the SAME element, e.g.
   <a class="btn alt">, <a class="btn outline">, <a class="btn alt outline">.
   The base .btn is solid --second (hover --prime); these only change colour:
     .alt          solid, colours swapped — --prime (hover --second)
     .outline      transparent with a --prime edge, fills --prime on hover
     .alt.outline  transparent with a --second edge, fills --second on hover
   Borders inset (box-sizing: border-box is global), so an outline button keeps
   the same footprint as a solid one. */

/* .alt — inverse solid: --prime, hover --second */
.btn.alt a,
a.btn.alt,
button[type="submit"].alt,
input[type="submit"].alt,
.submit.alt {
    background-color: var(--prime);
}
.btn.alt a:hover,
a.btn.alt:hover,
button[type="submit"].alt:hover,
input[type="submit"].alt:hover,
.submit.alt:hover {
    background-color: var(--second);
}

/* .outline — transparent with a --prime edge; fills --prime on hover */
.btn.outline a,
a.btn.outline,
button[type="submit"].outline,
input[type="submit"].outline,
.submit.outline {
    background-color: transparent;
    border: 2px solid var(--prime);
    color: var(--prime);
}
.btn.outline a:hover,
a.btn.outline:hover,
button[type="submit"].outline:hover,
input[type="submit"].outline:hover,
.submit.outline:hover {
    background-color: var(--prime);
    color: var(--white);
}

/* .alt.outline — transparent with a --second edge; fills --second on hover.
   Inherits the transparent background and border width from .outline; the
   three-class selector outranks .alt (solid) and .outline so its colours win. */
.btn.alt.outline a,
a.btn.alt.outline,
button[type="submit"].alt.outline,
input[type="submit"].alt.outline,
.submit.alt.outline {
    background-color: transparent;
    border-color: var(--second);
    color: var(--second);
}
.btn.alt.outline a:hover,
a.btn.alt.outline:hover,
button[type="submit"].alt.outline:hover,
input[type="submit"].alt.outline:hover,
.submit.alt.outline:hover {
    background-color: var(--second);
    color: var(--white);
}

/* .light — white pill, prime text: the button treatment for dark bands
   (media-split, callouts). The closing CTA band paints its own; this is the
   reusable class for any dark surface. */
a.btn.light,
.btn.light a,
button[type="submit"].light,
input[type="submit"].light,
.submit.light {
    background-color: var(--white);
    color: var(--prime);
}
a.btn.light:hover,
.btn.light a:hover,
button[type="submit"].light:hover,
input[type="submit"].light:hover,
.submit.light:hover {
    background-color: var(--second);
    color: var(--white);
}

.small,
.small p {
    font-size: clamp(0.75em, 1.35vw, 1.125em);
}

.small p {
    margin-bottom: 0.875em;
}

.small a, a.small {
    display: inline-block;
}

.small li {
    margin-bottom:0;
}

a.download-element:after {
    display: inline-block;
    padding: 0 0 0 .25em;
    border: 0;
    font-family: "Font Awesome 5 Pro";
    text-transform: none;
    content: "\f019";
    font-weight: 900;
}

a.download-element {
    margin-right: .25em;
    margin-left: .25em;
    padding: 0;
    font-weight: bold;
}

.download-element .size {
    display: none;
}


/* EYEBROW
   The small tracked, uppercase label above a section heading. Its own element,
   class="eyebrow". Accent colour on light; add .on-dark for white-on-dark bands.
   (No leading em-dash — the Cornerstone design sets the label plain.) */
.eyebrow {
    display: block;
    margin: 0 0 0.6em;
    font-family: var(--type-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;   /* the boards: 12px, 1.4px tracking */
    text-transform: uppercase;
    color: var(--red-800);
    text-wrap: balance;
}
.eyebrow.on-dark { color: var(--text-on-dark-dim); }


/* FONT AWESOME (SVG + JS kit)
   The kit swaps <i> for an <svg class="svg-inline--fa">. Its own CSS that caps
   the icon to 1em does not always inject before paint, which leaves icons at
   their intrinsic viewBox size (hundreds of px). Cap them here so inline icons
   always track the surrounding font-size. */
.svg-inline--fa,
.row > * .svg-inline--fa {          /* beat framework_v3 .row > * svg containment */
    display: inline-block;
    height: 1em;
    width: auto;
    max-width: none;
    overflow: visible;
    vertical-align: -0.125em;
}


blockquote {
    padding: 0;
    margin: 0;
    
    p { margin-bottom: 0; }
    
    em {
        font-weight: 600;
        color: var(--prime);
    }
    
    em:after { content: " "; }
}

/* ==========================================================================
   BACKGROUND BANDS
   ==========================================================================
   Replaces .full_width, which conflated two separate jobs: breaking out of
   the page container AND painting a grey background. Those are now split,
   because either is useful without the other:

     .bleed-x    break out of the container   (framework — layout)
     .bg-*       paint a background           (here — brand)

   A full-width grey band is both together:  <div class="bleed-x bg-light">

   .full_width also used two 9999em pseudo-elements to fake the breakout,
   which needed `overflow: visible !important` on the element to work. The
   gap engine's .bleed-x does it with margins and needs no override.
   ========================================================================== */

.bg-light { background-color: var(--grey-light); }
.bg-cream { background-color: var(--cream); }
.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--grey-dark); color: var(--white); }
.bg-prime { background-color: var(--prime);      color: var(--white); }
.bg-ink { background-color: var(--ink);        color: var(--white); }
.bg-navy { background-color: var(--navy);       color: var(--white); }

/* A band needs breathing room, or the text sits on the colour's edge. */
.bg-light,
.bg-cream,
.bg-white,
.bg-dark,
.bg-prime,
.bg-ink,
.bg-navy {
    padding-block: var(--space-40);
    padding-inline: var(--page-gutter);
}

/* A .band already spans the viewport AND re-caps its own children. When a band
   also paints a bg-* colour, drop the band's own inline padding so it doesn't
   fight `.band > *` (which supplies the child gutter) and shift content. */
.band.bg-light,
.band.bg-cream,
.band.bg-white,
.band.bg-dark,
.band.bg-prime,
.band.bg-ink,
.band.bg-navy { padding-inline: 0; }

/* Section vertical rhythm — ONE value for every band on the site, the boards'
   96px (--space-section). A band that differs is a component with its own
   padding (hero, logo strip), never a per-page class. Placed after the bg-*
   block, which pads non-band boxes, so it wins the (0,1,0) tie on order. */
.band { padding-block: var(--space-section); }
/* Theme Toolbox: compact section spacing (Home's logo strip) */
.section-space-50 { margin-block: clamp(20px, 4vw, 50px); }

/* Copy on a dark band is the boards' muted #C4CCD6; headings stay white (below). */
:is(.bg-dark, .bg-prime, .bg-ink, .bg-navy) :is(p, li) { color: var(--text-on-dark-dim); }
:is(.bg-dark, .bg-prime, .bg-ink, .bg-navy) .eyebrow { color: var(--text-on-dark-dim); }

/* On dark bands the headings must not stay --prime (unreadable on navy):
   h1-h4 carry an explicit dark colour, so re-assert white here. The h1 text
   gradient (background-clip) is also cleared so it doesn't vanish. */
.bg-dark  :is(h1, h2, h3, h4),
.bg-prime :is(h1, h2, h3, h4),
.bg-ink   :is(h1, h2, h3, h4),
.bg-navy  :is(h1, h2, h3, h4) {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.full_img_background {
    position: relative;
    padding-bottom: 180px;
    margin-bottom: -120px;
    margin-inline: calc(-1 * var(--page-gutter));
    .content-image { position: absolute; }
}

.all_corners img {
    border-radius: 20px;
}

/* Narrow screens trim the button's HORIZONTAL padding only: space is tight,
   but a touch target must not get smaller than a mouse one. Vertical padding
   and 15px type hold, and `min-height` guards the 44px WCAG 2.5.5 / Apple HIG
   minimum if a variant ever changes the padding. `inline-flex` (not
   `inline-block`) is what lets `min-height` centre the label. */
@media only screen and (max-width: 1050px) {
    .btn a,
    a.btn,
    button[type="submit"],
    input[type="submit"],
    .submit,
    .content-download .download-element a,
    .layout_latest p.more a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 13px 22px;
        font-size: 0.9375rem;      /* hold the design's 15px */
    }
}

/* ==========================================================================
   HEADER — Cornerstone bar   (global, per-site active file)
   ==========================================================================
   Fixed, transparent over the hero; turns white (.shrink) on scroll.
   Markup: #header .inside > .logo · .navigation · .contact(social + CTA) · a.menu
   ========================================================================== */

/* Fixed transparent header overlays the page, so remove the container offset. */
#container { padding-top: 0; }
.container_inside { padding-bottom: 0; }

/* The bar ------------------------------------------------------------------ */
#header {
    position: fixed;
    inset-block-start: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.shrink #header {
    background-color: #fff;     /* from 230px of scroll (j_shrink.html5); no rule under it (Bob, 10 Oct 2026) */
}
#header {
    .inside {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: clamp(10px, 1.2vw, 28px);
        padding-block: clamp(10px, 1.4vw, 18px);
        transition: padding 0.2s ease;
    }

    /* Logo --------------------------------------------------------------------- */
    .logo a { display: block; border-bottom: 0; }
    /* as large as the bar allows with the nav on one line (Bob, 13 Oct): 41px at
       1280, the board's 46 from 1366; each step below sets its own */
    .logo img { display: block; height: clamp(41px, calc(5.8vw - 33.2px), 46px); width: auto; object-fit: contain; object-position: left center; }   /* squeezed on a small phone, it scales rather than stretches */

    /* Navigation --------------------------------------------------------------- */
    .navigation { margin-left: auto; }
    /* Horizontal padding is HALF the gap; 22px → ~45px between links, clamped down. */
    .navigation a, .navigation strong {
        color: #04203F;                          /* Penpot blue 950 */
        font-family: var(--type-body);
        font-weight: 500;                        /* the board's 15px / 500, in caps (Bob, 10 Oct 2026) */
        text-transform: uppercase;
        font-size: clamp(0.78rem, 0.95vw, 0.95rem);
        /* 22px at the board's width, 6px on a laptop, so the caps stay on one line */
        padding-inline: clamp(6px, calc(1.6vw - 13px), 22px);
        padding-block: 0.4rem;
    }
    /* Down arrow on items that have a submenu (Unicode ▾).
       The selector has to cover `strong` and `span`, not just `a`: Contao renders
       the CURRENT page's nav item as `<strong class="active submenu">` rather than
       a link (and `<span class="active submenu">` in the mobile copy), so an
       `a`-only selector silently dropped the arrow from whichever item you were
       on — which is exactly the "on active, the down arrow goes away" report. */
    .navigation .submenu > a::after, .navigation .submenu > strong::after, .navigation .submenu > span:not(.nav-for)::after {
        content: "\25BE";
        font-size: 0.72em;
        margin-inline-start: 0.35em;
        position: relative;
        top: -0.1em;
        display: inline-block;
    }
    /* Hover + open submenu: white background, red text. */
    .navigation li:hover > a, .navigation li:focus-within > a, .navigation a:hover {
        background-color: #fff;
        color: var(--second);
    }
    .navigation .level_2 { background: #fff; box-shadow: 0 8px 24px rgba(4, 32, 63, 0.14); }
    .navigation .level_2 a { color: #04203F; }
    .navigation .level_2 :is(a, strong) { text-transform: none; letter-spacing: 0; }   /* caps on the bar only */
    .navigation .level_2 li:hover > a, .navigation .level_2 a:hover { background: #fff; color: var(--second); }

    /* Actions: social icons + CTA ---------------------------------------------- */
    /* 15px between the social icons (Bob, 10 Oct 2026; the board draws 10) */
    .contact {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .contact .social {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 24px;                         /* the WCAG 2.2 target size */
        min-height: 24px;
        border-bottom: 0;                        /* no underline on the icon links */
        border-radius: 6px;
        background: transparent;                      /* Penpot blue 700 */
        color: #0A417CFF;
        font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    }
    .contact .social svg { height:20px;   }
    .contact .social:hover { color: var(--second); }
    .contact a.btn {
        margin: 0 0 0 clamp(0px, calc(1.6vw - 10px), 13px);
        white-space: nowrap;
        padding: clamp(8px, 0.8vw, 12px) clamp(12px, 1.2vw, 24px);
        font-size: clamp(0.78rem, 0.95vw, 0.95rem);
    }

    /* Mobile toggle ------------------------------------------------------------ */
    .menu {
        display: none;
        align-items: center;
        border-bottom: 0;
        color: var(--prime);
        font-size: 24px;
    }
}

/* 40px above the bar while it sits over the hero (Bob, 10 Oct 2026); back to
   the slim bar once it turns white */
@media only screen and (min-width: 1120px) {
    #header .inside { padding-top: 40px; }
    .shrink #header .inside { padding-top: clamp(10px, 1.4vw, 18px); }
}

/* Responsive --------------------------------------------------------------- */
/* The nav never wraps to two lines and stays a nav as long as it can (Bob,
   13 Oct). The links need ~702px with their "For", ~600 without:
     1280 up     the full labels
     1150-1279   "For" drops (nav_default.html5 wraps it in .nav-for; the
                 page names keep it)
     1120-1149   and the bar tightens
     1119 down   the menu
   Each step was checked one line wide with the letters 3% wider than here,
   for fonts that render fatter. */
@media only screen and (max-width: 1279px) {
    #header .nav-for { display: none; }
    #header .logo img { height: clamp(34px, calc(9.3vw - 73px), 46px); }
}
@media only screen and (max-width: 1149px) {
    #header {
        .inside { gap: 10px; }
        .logo img { height: 35px; }
        .navigation :is(a, strong) { padding-inline: 5px; }
        .contact { gap: 10px; }
        .contact a.btn { margin-left: 0; padding: 8px 12px; font-size: 0.78rem; }
    }
}
/* The menu: the bar reads logo · menu · LinkedIn · "Start a Conversation", so
   contacting them is one tap away (as on TPA Stack). */
@media only screen and (max-width: 1119px) {
    #header .navigation { display: none; }
    #header .menu { display: inline-flex; margin-left: auto; }
    #header .logo img { height: clamp(30px, 5vw, 40px); }   /* the menu bar has room for it */
    #header .contact { gap: 12px; }
    #header .contact a.btn { margin: 0; padding: 8px 14px; font-size: 0.8rem; }
}
@media only screen and (max-width: 420px) {
    #header .inside { gap: 10px; }
    #header .logo img { height: 28px; }
    #header .contact { gap: 10px; }
    #header .contact a.btn { padding: 7px 10px; font-size: 0.72rem; }   /* room for the logo beside the LinkedIn icon */
}

/* The mobile menu also ends with the button (templates/base-theme/mod_mmenu.html5). */
.mm-menu .menu-cta {
    padding: 24px 20px;
    &::after { content: none; }
    a.btn {
        flex: 0 0 auto;
        margin: 0;
        padding: 14px 28px;
        color: var(--white);   /* mmenu's own link colour outranks .btn here */
    }
}

.mod_navigation, .mod_navigation.block {
  overflow: visible;
}

.mod_navigation {
    ul, li {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    li { position: relative; }

    > ul.level_1 > li { display: inline-block; }

    a, strong {
      display: block;
      padding: 0.33rem 2rem;
      text-decoration: none;
      border-bottom:none;
    }

    /*li:hover > a, li:focus-within > a { background-color: var(--black); }*/

    .level_2 {
      display: block;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      position: absolute;
      top: 100%;
      left: -1px;
      /*background: var(--black);*/
      min-width: 180px;
      z-index: 1000;
      transition: opacity 0.3s ease, transform 0.3s ease;
      pointer-events: none;
      border: 1px solid var(--prime);
      border-top: 0;
    }

    li:hover > .level_2, li:focus-within > .level_2 {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .level_2 li a { white-space: nowrap; }

    /*.level_2 li a:hover { background-color: var(--grey-dark); }*/

    /* CONTRAST ON DARK NAV SURFACES
       The hover/focus states below set a dark background but previously left the
       link colour alone, so text stayed --prime (#001078) on black — about 1.3:1,
       effectively unreadable. Every dark surface now sets its foreground too.

       The focus ring is overridden to white for the same reason: the site-wide
       ring is --prime, which disappears against a black dropdown. */
    li:hover > a, li:focus-within > a, .level_2 a, .level_2 li a:hover {
        color: var(--white);
        border-bottom-color: transparent;
    }
    
    li.sibling:hover {
      outline: 1px solid var(--prime);
      border-bottom: 0;
    }

    a:focus-visible { outline-color: var(--white); }
}

/* ==========================================================================
   FOOTER — Cornerstone dark: brand + 5 nav columns + offices + credits
   ==========================================================================
   Active per-site footer. Markup: module 9 (html) → #footer .inside.
   ========================================================================== */

#footer {
    position: relative;
    overflow: clip;
    background-color: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    .inside { padding-block: var(--space-60) var(--space-40); }
    a { border-bottom: 0; }

    /* ---- Top: brand + nav columns ------------------------------------------ */
    .footer_top { align-items: start; }
}
/* `nowrap` is scoped to DESKTOP, in a min-width query, rather than being
   switched off later by a max-width one — and at the FRAMEWORK's own
   breakpoint, not a number of its own.

   The bug that caused: these two were unconditionally `nowrap` and were only
   restored to `wrap` at max-width 900. But framework_v3's column ramp steps at
   992 — `.col-2-3` drops to 50% and `.col-20` to 33.3% there. So between 901
   and 992 the five nav columns had already been re-sized for a 3-up layout
   while wrapping was still disabled, which put all five on one line inside a
   half-width parent: columns 4 and 5 ran off the right of the page (at 960 the
   container ends at 930 and the last column's right edge was 1232).

   Matching 992 means the wrap turns on in the same step that makes the columns
   narrow, so there is no window where the two disagree. */
@media only screen and (min-width: 993px) {
    #footer .footer_top,
    #footer .footer-cols { flex-wrap: nowrap; }
}
#footer {
    .footer_top img { display: block; height: auto; margin-bottom: 1.1em; }

    /* Brand column */
    /* The tagline runs the column's width (it wrapped at 24em with room to
       spare); weights as the board: both lines 400 (Bob, 10 Oct 2026). */
    .footer-brand p { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; margin: 0 0 0.8em; text-wrap: balance; }
    .footer-brand .foundation { font-weight: 400; color: rgba(255, 255, 255, 0.92); }
    .footer-social { display: inline-flex; gap: 15px; }
    .social {
        display: inline-flex;
        align-items: center;
        /*justify-content: center;*/
        width: 2.3rem; height: 2rem;
        border-radius: 6px;
        background: transparent;                      /* Penpot blue 700, like the header */
        color: #fff;
        font-size: 1.1rem;
    }
    .social svg { height:20px;   }
    .social:hover { background: transparent; color: var(--second); }

    /* Column headings — caps, white, linked; the board's 14px / 600, 0.8px
       tracking (Bob, 10 Oct 2026: font weights). */
    .footer-col-head {
        font-family: var(--type-body);
        font-size: 0.875rem;
        font-weight: 600;
        letter-spacing: 0.057em;
        text-transform: uppercase;
        margin: 0 0 0.9em;
        line-height: 1.3;
    }
    .footer-col-head a { color: var(--white); }
    .footer-col-head a:hover { color: var(--second); }

    /* Nav lists */
    .mod_customnav ul { margin: 0; padding: 0; list-style: none; }
    .mod_customnav li { display: block; margin-bottom: 0.55em; }
    /* the current page is a <strong class="active">: same size, a touch brighter */
    .mod_customnav :is(a, strong) { display: inline-block; padding: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; font-weight: 400; text-wrap: balance; }
    .mod_customnav a:hover { color: var(--second); }
    .mod_customnav strong.active { color: var(--white); }

    /* ---- Offices (with dividers between) ----------------------------------- */
    .footer_offices {
        margin-top: var(--space-40);
        padding-top: var(--space-40);
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        align-items: stretch;
    }
    /* Divider sits centred in the column gap (gap-40 → 20px each side), not hard
       against the next column's text. */
    .footer_offices > * + * { position: relative; }
    .footer_offices > * + *::before {
        content: "";
        position: absolute;
        top: 0; bottom: 0;
        left: -20px;
        border-left: 1px solid rgba(255, 255, 255, 0.14);
    }
    .footer_offices h4 {
        color: var(--white);
        font-family: var(--type-body);
        font-size: 0.875rem; font-weight: 600;          /* the board's 14px / 600, 1.2px tracking */
        letter-spacing: 0.086em; text-transform: uppercase;
        margin: 0 0 0.7em;
    }
    .footer_offices p { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; line-height: 1.6; margin: 0 0 0.9em; text-wrap: balance; }
    .footer_offices a { color: rgba(255, 255, 255, 0.72); }
    .footer_offices a:hover { color: var(--second); }
    /* Get in touch CTA: white, red on hover. */
    .footer_offices a.btn, .footer_offices a.btn:link { background-color: #fff; color: var(--prime); margin: 0.3em 0 0; }
    .footer_offices a.btn:hover { background-color: var(--second); color: #fff; }

    /* ---- Bottom: panda + credits + associations (one row) ------------------ */
    .footer_bottom {
        position: relative;
        margin-top: var(--space-40);
        padding-top: var(--space-24);
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
    /* Panda sits on the top border of the credits bar. */
    .footer-panda {
        position: absolute;
        right: clamp(16px, 4vw, 90px);
        bottom: 100%;
        margin-bottom: 0;
        width: clamp(56px, 7vw, 104px);
        height: auto;
        pointer-events: none;
    }
    .footer_bottom .bottom_line {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.6em 1.5em;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.8125rem;
    }
    .footer_bottom .credits, .footer_bottom .credits a { color: rgba(255, 255, 255, 1); }
    /* the credits line up with the legal links: no paragraph margin (it made the
       row centre a taller box and lifted the text 9px), the links' line height (John, 8 Oct) */
    .footer_bottom .credits { margin: 0; line-height: 1.4; }
    .footer_bottom .bottom-footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.6em 1.5em; margin: 0; padding: 0; list-style: none; }
    /* The legal links and "Cookie settings" read as ONE row (John, 8 Oct): same
       size, weight and line height, the same 1.5em apart (the row's own gap),
       centred on one line. The current page is white, not bold. */
    .footer_bottom .bottom-footer-nav { display: flex; align-items: center; margin-left: auto; }
    /* the row spreads its items (space-between): auto margins keep "Cookie
       settings" next to the legal links, the gap between them the row's 1.5em */
    .footer_bottom .cookie-settings { margin-right: auto; display: flex; align-items: center; }
    .footer_bottom .bottom-footer-nav ul { align-items: center; }
    .footer_bottom .bottom-footer-nav li { display: flex; margin: 0; padding: 0; }
    .footer_bottom .bottom-footer-nav .mod_customnav { margin: 0; padding: 0; }
    .footer_bottom :is(.bottom-footer-nav, .cookie-settings) :is(a, strong) {
        font-size: 0.8125rem; font-weight: 400; line-height: 1.4;
        display: block;   /* one 18px box each, so the row centres them all alike */
    }
    .footer_bottom .bottom-footer-nav strong.active { color: rgba(255, 255, 255, 0.9); }
    .footer_bottom a { color: rgba(255, 255, 255, 0.5); }
    .footer_bottom a:hover { color: var(--second); }
    /* Association logos: a small white tile, inline in the credits row. */
    .footer-associations {
        display: inline-flex;
        align-items: center;
        gap: clamp(14px, 1.6vw, 26px);
        background: #fff;
        border-radius: 8px;
        padding: 14px 22px;      /* even room above and below the logos (Bob, 10 Oct 2026) */
    }
    .footer-associations img { height: clamp(22px, 2.4vw, 30px); width: auto; display: block; }
}

@media only screen and (max-width: 900px) {
    #footer .footer-panda { display: none; }
    #footer .footer_bottom .credits { justify-content: flex-start; }
}

/* ---- Tablet and phone (Bob, 13 Oct) ----------------------------------------
   992: the brand gets its own centred line, the nav columns the full width
   (3-up), with dividers between them like the offices'.
   700: offices and nav columns go 2-up (the framework's step is 600).
   480: one column, everything centred.
   A divider sits in the middle of the gap and goes wherever a cell starts a line. */
#footer .footer-cols > * + * { position: relative; }
@media only screen and (max-width: 992px) {
    #footer {
        .footer_top > .footer-brand {
            flex: 0 0 100%;
            text-align: center;
            img { margin-inline: auto; }
        }
        /* full width, the offices' 40px column gap and a rule on top, so the nav
           columns and the offices read as one system (Bob, 13 Oct) */
        .footer_top > .footer-cols {
            flex: 0 0 100%;
            --gap-x: var(--gutter-40);
            border-top: 1px solid rgba(255, 255, 255, 0.14);
            padding-top: var(--space-40);
        }
        .footer-cols > * + *::before {
            content: "";
            position: absolute;
            top: 0; bottom: 0;
            left: calc(var(--gap-x, 0px) / -2);
            border-left: 1px solid rgba(255, 255, 255, 0.14);
        }
        .footer-cols > :nth-child(3n + 1)::before { content: none; }
        .footer_offices > .col-1-3 { flex: 0 0 calc(100% / 3 - var(--gap-x, 0px) * 2 / 3); }
    }
}
@media only screen and (max-width: 700px) {
    #footer {
        .footer-cols > .col-20,
        .footer_offices > .col-1-3 { flex: 0 0 calc(50% - var(--gap-x, 0px) * 0.5); }
        .footer-cols > :nth-child(3n + 1)::before { content: ""; }
        :is(.footer-cols, .footer_offices) > :nth-child(odd)::before { content: none; }
    }
}
@media only screen and (max-width: 480px) {
    #footer {
        .footer-cols > .col-20,
        .footer_offices > .col-1-3 { flex: 0 0 100%; }
        :is(.footer-cols, .footer_offices) > :nth-child(n)::before { content: none; }
        :is(.footer-cols, .footer_offices) { text-align: center; }
    }
}

/* WCAG 2.2 target size (2.5.8): the footer's phone links are at least 24px tall (8 Oct). */
#footer a[href^="tel:"] { display: inline-block; min-height: 24px; line-height: 24px; }   /* own 24px line each, so phone and fax don't overlap */

/* ==========================================================================
   FORMS
   ==========================================================================
   Two parts, kept separate on purpose:

     PART 1 — LAYOUT   how form fields sit in the column framework
     PART 2 — BRAND    how they look

   Change Part 2 per site. Part 1 should rarely need touching.

   SCOPE: `.formbody`, not `.ce_form .formbody`. Contao uses the same wrapper
   for the form CONTENT ELEMENT and for every member module — login, lost
   password, change password, personal data, registration. They render the
   same .widget markup, so scoping to .ce_form left every member form
   completely unstyled while the contact form looked finished.

   Two files would have been the wrong fix: they would race to style one
   .widget at equal specificity and drift apart, which is the same reasoning
   that keeps list typography in one place.
   ========================================================================== */


/* ==========================================================================
   PART 1 — LAYOUT
   ==========================================================================
   Contao renders form fields as .widget divs inside .formbody. This makes
   .formbody behave as a framework row, so a `col-*` class on a form field
   works exactly as it does on a content element inside an article — same
   widths, same gutter, same stacking.

   Editors set the width through the Theme Toolbox, which already offers the
   column options on every form field type. No template override is needed;
   this is done entirely in CSS.

   The column WIDTHS come from framework_v3 — they are plain flex-basis
   values and apply to any flex child. Only the row behaviour and the
   stacking are repeated here, because those are scoped to `.row` in the
   framework and .formbody is markup we do not control.
   ========================================================================== */

.formbody {
  display: flex;
  flex-wrap: wrap;

  /* Same tokens the framework's rows use, so form gutters match page
     gutters and respond to the same per-site dial. */
  --gap-x: var(--row-gap-x);
  --gap-y: var(--row-gap-y);
  gap: var(--gap-y) var(--gap-x);
}

/* Default every child to a full line, so a field with no col-* class takes
   its own row and Contao's own children (error messages) behave.

   :where() keeps this at ZERO specificity on purpose — the col-* classes
   must win, and this file loads after the framework, so a normal selector
   here would beat them on source order and flatten every column. */
:where(.formbody) > * {
  flex: 0 1 100%;
  min-width: 0;
}

/* Row gaps handle the spacing between fields, so widgets carry no margin
   of their own — otherwise the two would compound. */
.formbody > .widget {
  margin: 0;
}

/* Stacking, mirroring the framework's own breakpoints. Higher specificity
   than the col-* widths, so these win below the breakpoint.
   `.no-stack` on the form opts out, exactly as it does on a row. */
@media (max-width: 992px) {
  form:not(.no-stack) .formbody > .col-2-3,
  form:not(.no-stack) .formbody > .col-3-4,
  form:not(.no-stack) .formbody > .col-3-5,
  form:not(.no-stack) .formbody > .col-2-5 {
    flex-basis: 100%;
  }

  /* Quarters, thirds and 30% step down to a half before stacking, and fifths
     to a third — exactly the ramp framework_v3 gives a .row. Kept in step by
     hand because .formbody is markup we do not control, so it cannot simply
     carry .row. */
  form:not(.no-stack) .formbody > .col-1-4,
  form:not(.no-stack) .formbody > .col-1-3,
  form:not(.no-stack) .formbody > .col-30 {
    flex-basis: calc(50% - var(--gap-x, 0px) * 0.5);
  }
  form:not(.no-stack) .formbody > .col-20 {
    flex-basis: calc(100% / 3 - var(--gap-x, 0px) * 2 / 3);
  }
}

@media (max-width: 600px) {
  form:not(.no-stack) .formbody > .col-1-2,
  form:not(.no-stack) .formbody > .col-1-4,
  form:not(.no-stack) .formbody > .col-1-3,
  form:not(.no-stack) .formbody > .col-30 {
    flex-basis: 100%;
  }
  form:not(.no-stack) .formbody > .col-20 {
    flex-basis: calc(50% - var(--gap-x, 0px) * 0.5);
  }
}

@media (max-width: 480px) {
  form:not(.no-stack) .formbody > .col-20 { flex-basis: 100%; }
}

/* The label sits above its control. */
.formbody {
    label { display: block; }

    /* Controls fill their column. Without this an input keeps its browser
       default size (roughly 20 characters) and ignores the column entirely. */
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea {
      width: 100%;
      max-width: 100%;
    }

    textarea {
      display: block;
      resize: vertical;      /* horizontal resizing would break the column */
    }

    /* Checkbox and radio groups: the control sits beside its label. */
    .checkbox_container label, .radio_container label { display: inline-block; }

    /* ==========================================================================
       PART 2 — BRAND
       ==========================================================================
       Colours come from the tokens in website.css. Adjust the values here per
       site; the layout above is unaffected by anything in this section.
       ========================================================================== */

    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea {
      /* Cornerstone: a 2px navy hairline and a 6px radius, per the Contact design,
         on the design's 48px control height. Type is pinned to 1rem so the height
         doesn't drift with the surrounding band's font-size. */
      box-sizing: border-box;
      min-height: 48px;
      padding: 10px 16px;
      border: 2px solid var(--heading);
      border-radius: 6px;
      background-color: var(--white);
      color: var(--heading);
      font: inherit;         /* controls do not inherit type by default */
      /* AFTER the `font` shorthand — it resets font-size, so setting the size above
         it silently does nothing. Pinned so the control keeps the design's 48px
         height whatever the surrounding band's type size is. */
      font-size: 1rem;
      line-height: 1.5;
    }
    textarea { min-height: 130px; }
    /* the design's message box */

    /* FOCUS — deliberately explicit.
       website_standard.css sets `outline: none` on form fields and replaces it
       with nothing, which leaves keyboard users unable to see where they are
       (WCAG 2.4.7). This restores a visible focus ring. Do not remove it
       without providing another visible indicator. */
    input:focus-visible, select:focus-visible, textarea:focus-visible {
      outline: 2px solid var(--prime);
      outline-offset: 2px;
      border-color: var(--prime);
    }

    label {
      margin-bottom: var(--space-8);
      /* Cornerstone: the design labels fields in semibold body at full size, not
         the smaller default. #333B44 is the design's own label grey (no token). */
      font-family: var(--type-body);
      font-size: 1rem;
      font-weight: 600;
      color: #333B44;
    }

    /* The asterisk on a required field. */
    span.mandatory { color: var(--second); }

    /* Placeholder text is the designs' own muted grey, not body grey — at
       --grey-dark (#404040) a placeholder read as a filled-in answer. A select
       showing its prompt option is a placeholder too, so it gets the same colour
       while nothing real is chosen. */
    ::placeholder {
      color: var(--placeholder);
      opacity: 1;            /* Firefox dims placeholders by default */
    }
    select:has(option[value=""]:checked) { color: var(--text-muted); }   /* the prompt is read as text: WCAG AA (8 Oct) */
    select option { color: var(--heading); }
    /* the real options stay dark */

    /* Validation messages. */
    p.error, .widget .error {
      color: var(--second);
      font-size: 0.875em;
    }

    .widget.error input, .widget.error select, .widget.error textarea { border-color: var(--second); }

    /* Buttons use the site's .btn rules in website.css — only the
       form-specific spacing is set here. */
    .widget-submit button { margin-bottom: 0; }

    /* ==========================================================================
       ALTCHA ("I'm not a robot") — no control chrome
       ==========================================================================
       The spam-protection widget ships as a bordered, boxed control. It is not a
       field the visitor fills in and the designs don't draw it at all, so it
       reads as a quiet checkbox line rather than another input. The widget sets
       its own look through custom properties, and it renders in the normal DOM
       (no shadow root), so `.altcha` — the box that actually carries the border —
       can be reached directly.
       ========================================================================== */
    .widget-altcha {
      --altcha-border-width: 0;
      --altcha-border-radius: 0;
      --altcha-color-border: transparent;
      --altcha-max-width: none;
    }
    .widget-altcha .altcha {
      border: 0;
      border-radius: 0;
      background: none;
      padding-inline: 0;
      max-width: none;
    }
}

/* ==========================================================================
   GALLERY
   ==========================================================================
   Two parts, same split as forms.css:

     PART 1 — LAYOUT   how the tiles are arranged
     PART 2 — BRAND    how they look

   HOW TO SET IT UP IN CONTAO
   Put every image in a SINGLE row in the gallery element — set "images per
   row" to the total number of images. Contao then renders one flat list and
   the grid below decides how many fit per line. Do not use the per-row
   setting to control the layout; it cannot respond to screen width.
   ========================================================================== */


/* ==========================================================================
   PART 1 — LAYOUT
   ==========================================================================
   `repeat(auto-fit, minmax(...))` is intrinsically responsive: the browser
   fits as many tracks of at least --gallery-min as the container allows and
   distributes the remainder evenly. Columns are added and dropped purely on
   available width, so there are no breakpoints to maintain and it behaves
   correctly inside a narrow column as well as at full width.

   This replaces a flex layout with a percentage width per --cols-N class
   and three media queries.
   ========================================================================== */

.content-gallery {
    ul {
        display: grid;
        /* min(…, 100%) lets the single track collapse to the container instead
           of overflowing it — a bare minmax floor is a hard minimum, so a
           gallery inside a narrow column would spill past its edge. */
        grid-template-columns: repeat(auto-fit, minmax(min(var(--gallery-min, 220px), 100%), 1fr));
        gap: var(--gallery-gap, var(--gutter-24));

        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* The gap provides all the spacing, so the items carry none of their own. */
    ul li {
        margin: 0;
        padding: 0;
        min-width: 0;        /* let a tile shrink below its image's intrinsic width */
    }

    figure {
        margin: 0;
        height: 100%;
    }

    img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* Single-image galleries should not stretch one tile across the full width. */
.content-gallery--cols-1 ul {
    grid-template-columns: 1fr;
}


/* --------------------------------------------------------------------------
   OPTIONAL — uniform tiles
   --------------------------------------------------------------------------
   By default tiles keep each image's own aspect ratio, so rows can vary in
   height and nothing is cropped. If a site wants a strict grid of identical
   tiles instead, add .gallery-crop to the element and every image is cropped
   to a common ratio.
   -------------------------------------------------------------------------- */

.gallery-crop img {
    aspect-ratio: var(--gallery-ratio, 1);
    height: 100%;
    object-fit: cover;
}


/* ==========================================================================
   PART 2 — BRAND
   ==========================================================================
   Adjust per site. Nothing here affects the arrangement above.
   ========================================================================== */

.content-gallery {
    img { border-radius: 2px; }

    figcaption {
        margin-top: var(--space-8);
        font-size: 0.875em;
        text-align: center;
    }
}


/* --------------------------------------------------------------------------
   TUNING
   --------------------------------------------------------------------------
   Both dials can be set globally in website.css or per element via the
   CSS class field:

     --gallery-min   smallest a tile may get before a column is dropped.
                     Lower = more columns. 220px suits thumbnails; use
                     ~300px for larger feature images.
     --gallery-gap   space between tiles. Defaults to the gutter scale.

   Example, a coarser gallery on one element:
     .gallery-large { --gallery-min: 320px; }
   -------------------------------------------------------------------------- */

/* ==========================================================================
   TABLES
   ==========================================================================
   Two parts, same split as forms.css and gallery.css:

     PART 1 — LAYOUT   how a table behaves when it does not fit
     PART 2 — BRAND    how it looks

   Change Part 2 per site. Part 1 should rarely need touching.
   ========================================================================== */


/* ==========================================================================
   PART 1 — LAYOUT
   ==========================================================================
   A table is the one content element that cannot reflow. Columns have a
   hard minimum width, so a wide table in a narrow column does not wrap or
   stack — it overflows.

   That matters here because html and #wrapper use `overflow: clip`, which
   has no scrollbar: an overflowing table would be silently CUT OFF and the
   hidden columns unreachable. Making the element itself scrollable keeps
   the content available without letting it break the page.

   Contao renders no wrapper around <table>, so the scroll lives on
   .content-table, the content element's own div.
   ========================================================================== */

.content-table {
    overflow-x: auto;
    /* Room for the scrollbar so it does not sit on top of the last row. */
    padding-bottom: 2px;

    table {
        width: 100%;
        border-collapse: collapse;

        /* Without this the table shrinks to fit and the text becomes unreadable
           instead of scrolling. Cells stay legible and the container scrolls. */
        min-width: var(--table-min, 32rem);
    }

    /* Cells must not collapse to one word per line. */
    th, td {
        text-align: left;
        vertical-align: top;
    }

    /* ==========================================================================
       PART 2 — BRAND
       ==========================================================================
       Colours come from the tokens in website.css.
       ========================================================================== */

    th, td {
        padding: 0.75em 1em;
        border-bottom: 1px solid var(--stroke);
    }

    thead th {
        border-bottom: 2px solid var(--prime);
        font-weight: 700;
        color: var(--prime);
    }

    tfoot td {
        border-top: 2px solid var(--stroke);
        border-bottom: 0;
        font-weight: 600;
    }

    /* Last row needs no rule under it — the container edge reads as the end. */
    tbody tr:last-child td { border-bottom: 0; }

    caption {
        margin-bottom: var(--space-8);
        font-size: 0.875em;
        text-align: left;
        color: var(--grey-dark);
    }
}


/* --------------------------------------------------------------------------
   OPTIONAL — zebra striping
   --------------------------------------------------------------------------
   Add .table-striped to the element. Useful for long numeric tables where
   the eye needs help tracking a row across.
   -------------------------------------------------------------------------- */

.table-striped tbody tr:nth-child(even) {
    background-color: var(--grey-light);
}


/* --------------------------------------------------------------------------
   TUNING
   --------------------------------------------------------------------------
     --table-min   width below which the table scrolls instead of squeezing.
                   32rem suits 3–4 columns; raise it for wider tables so
                   they scroll sooner rather than cramming.

   ACCESSIBILITY NOTE
   A scrollable region should be reachable by keyboard. Browsers are
   inconsistent about focusing scroll containers automatically, so if tables
   are common on a site, add tabindex="0" and an accessible name to the
   scrolling element in the template rather than relying on the browser.
   -------------------------------------------------------------------------- */

/* ==========================================================================
   COOKIE BAR — brand layer for oveleon/contao-cookiebar
   ==========================================================================
   The bundle is token-driven: its own stylesheet reads --ccb-* custom
   properties for every colour. So branding it means SETTING THOSE TOKENS
   rather than overriding its rules.

   That matters. Fighting the bundle's selectors means re-specifying
   padding, radius and width to stop half-overridden buttons looking wrong,
   and it breaks on every bundle update. Setting its tokens uses the API it
   deliberately exposes, and its layout keeps working.

   For the same reason the site's .btn rules are NOT applied here. The
   bundle stacks equal-width full-bleed buttons on mobile and rows them
   above 768px; imposing the site button on top produced a full-width pill
   sitting oddly beside the others.

   Tokens the bundle exposes (defaults in its own stylesheet):
     --ccb-btn-bg / -bdr / -clr / -bg-hvr    buttons
     --ccb-focus-clr                          focus ring
     --ccb-checked-bg / -clr                  toggle, on
     --ccb-unchecked-bg / -clr                toggle, off
     --ccb-disabled-bg / -clr                 toggle, locked
     --ccb-backdrop                           overlay behind the bar
     --ccb-anim-duration                      open/close timing
   ========================================================================== */

.contao-cookiebar {
	/* Secondary buttons — deny, save, details. Outlined, so they do not
	   compete with accept. */
	--ccb-btn-bg: transparent;
	--ccb-btn-bdr: var(--stroke);
	--ccb-btn-clr: var(--text);
	--ccb-btn-bg-hvr: var(--grey-light);

	/* The bundle already ships a correct :focus-visible ring and only asks
	   for the colour, so this is all that is needed — no competing outline. */
	--ccb-focus-clr: var(--prime);

	/* Toggles */
	--ccb-checked-bg: var(--grey-light);
	--ccb-checked-clr: var(--prime);
	--ccb-unchecked-bg: var(--white);
	--ccb-unchecked-clr: var(--grey-dark);
	--ccb-disabled-bg: var(--grey-light);
	--ccb-disabled-clr: var(--grey-dark);
}

/* Accept — the primary action, so it takes the site's button colours
   (--second, hovering to --prime) exactly as .btn does elsewhere.
   .highlight is the bundle's "emphasise accept" backend option; covering
   both means the branding holds whichever variant is configured. */
.contao-cookiebar .cc-btn.success,
.contao-cookiebar .highlight .success {
	--ccb-btn-bg: var(--second);
	--ccb-btn-bdr: var(--second);
	--ccb-btn-clr: var(--white);
	--ccb-btn-bg-hvr: var(--prime);
}


/* --------------------------------------------------------------------------
   TYPE
   --------------------------------------------------------------------------
   The bundle sets its own font-size in px. Inheriting keeps the bar on the
   site's type scale instead of a fixed 15px.
   -------------------------------------------------------------------------- */
.contao-cookiebar,
.contao-cookiebar .cc-btn {
	font-family: inherit;
}

.contao-cookiebar {
    p, a {	margin-bottom: 0; }

    /* Links must stay distinguishable from surrounding copy — colour alone is
       not sufficient (WCAG 1.4.1), so the underline is kept. */
    a:not(.cc-btn) {
    	color: var(--prime);
    	border-bottom: 1px solid var(--prime);
    }

    a:not(.cc-btn):hover {
    	color: var(--second);
    	border-bottom-color: var(--second);
    }

    /* --------------------------------------------------------------------------
       BUTTON LAYOUT
       --------------------------------------------------------------------------
       The bundle stacks all three buttons full-width, then lets them size to
       their text above 768px. This gives them an explicit hierarchy instead:

           Accept all          full width, on its own line
           Deny all  |  Privacy settings     half each, sharing the next line

       Accept and Deny stay one click apart on the first layer — both are
       equally reachable, which is what consent has to be. Accept is only
       visually dominant, which is a normal hierarchy and not a dark pattern.

       .cc-footer also contains the collapsible .cc-groups panel, so it is
       pushed to its own full-width line below the buttons.

       `flex: 1 1 0` rather than `width: 50%` on purpose: with a zero basis the
       two share whatever is left after the gap, so they are exactly equal and
       never overflow — a 50% width plus a gap would.
       -------------------------------------------------------------------------- */

    .cc-footer {
    	display: flex;
    	flex-wrap: wrap;
    	gap: 8px;
    }

    /* Beat the bundle's own sizing at both breakpoints. All margins are zeroed,
       not just the bottom: it also sets margin-right: 15px for its inline row,
       which would add to the flex gap and clip 15px off the full-width button. */
    .cc-footer .cc-btn {
    	width: auto;
    	margin: 0;
    }

    .cc-footer .cc-btn.success {	flex: 1 1 100%; }

    .cc-footer .cc-btn.deny, .cc-footer .cc-btn.info {	flex: 1 1 0; }

    /* The settings panel is a sibling of the buttons — keep it on its own row. */
    .cc-footer .cc-groups {	flex: 1 1 100%; }
}

/* The banner's description (the bundle's #868686, 3.6:1) in the body colour: WCAG AA (8 Oct). */
#cookiebar-desc, #cookiebar-desc p { color: var(--body, #4A545F); }

/* ==========================================================================
   PAGINATION
   ==========================================================================
   Shared by every list that can run to a second page — news, events, FAQ,
   search results, comments and the listing bundle — so it lives in its own
   file rather than inside any one of them. It is the first thing to appear
   the moment a site has more items than fit on a page, which is why it is
   worth having before those bundles are styled at all.

   Contao's markup is already sound, and this file deliberately does not
   fight it:

       <nav class="pagination" role="navigation" aria-label="Pagination">
         <p>Page 2 of 3</p>
         <ul>
           <li class="previous"><a class="previous">Previous</a></li>
           <li><a class="link" aria-label="Go to page 1">1</a></li>
           <li><strong class="active" aria-current="page">2</strong></li>
           <li class="next"><a class="next">Next</a></li>
         </ul>
       </nav>

   The current page is a <strong> carrying aria-current, not a link — so it
   is announced correctly and cannot be clicked. Numbered links carry
   "Go to page N" labels. First/previous and next/last are rendered only when
   they apply, so the row's item count changes from page to page.
   ========================================================================== */


/* --------------------------------------------------------------------------
   FRAME
   -------------------------------------------------------------------------- */

.pagination {
    margin-top: var(--space-40);

    /* The "Page 2 of 3" summary. Kept visible rather than hidden: it is the only
       thing that states the total, and on a long list that is the useful part. */
    p {
        margin: 0 0 var(--space-8);
        font-size: 0.875em;
        color: var(--grey-dark);
        text-align: center;
    }

    /* --------------------------------------------------------------------------
       THE ROW
       --------------------------------------------------------------------------
       website.css styles ul/li globally, because the list and description-list
       elements share their markup with the rich text editor. A list used as
       INTERFACE therefore has to opt out — the same reset the header nav and
       gallery files make, for the same reason. Without it the page numbers carry
       bullets and a 1.25em indent.
       -------------------------------------------------------------------------- */

    ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-8);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    li { margin: 0; }

    /* --------------------------------------------------------------------------
       TARGETS
       --------------------------------------------------------------------------
       44px minimum on both axes. WCAG 2.5.8 asks 24, but page numbers are small
       glyphs that get tapped on phones, and a bare digit is otherwise a very
       small target. The word links (Previous, Next) grow past it naturally.
       -------------------------------------------------------------------------- */

    a, strong {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding-inline: var(--space-8);
        border: 1px solid var(--stroke);
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        color: var(--text);
    }

    a:hover {
        background-color: var(--grey-light);
        border-color: var(--text);
    }

    a:focus-visible {
        outline: 2px solid var(--prime);
        outline-offset: 2px;
    }

    /* The current page. Distinguished by weight AND fill, not by colour alone
       (WCAG 1.4.1) — and it is already a <strong> rather than a link, so the
       difference survives with styles off. */
    strong.active {
        background-color: var(--prime);
        border-color: var(--prime);
        color: var(--white);
        font-weight: 700;
        cursor: default;
    }
}


/* --------------------------------------------------------------------------
   NARROW SCREENS
   --------------------------------------------------------------------------
   With first/previous/next/last as words, a long run of pages wraps to
   several lines on a phone. Dropping the outermost jumps keeps it to one or
   two: next/previous still step through, and the numbers still jump directly.
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
    .pagination li.first,
    .pagination li.last {
        display: none;
    }
}


/* TUNING
   Numbers are squared off. For pills, add `border-radius: 22px` to the
   shared a/strong rule — half of the 44px minimum, so it stays a circle for
   single digits and a lozenge for the word links. */

/* ==========================================================================
   HERO — the first band of every page
   ==========================================================================
   The hero article goes in the layout's Hero section (article "Display in:
   Hero"), so #hero is the hook. The article carries only its variant class:

     hero--light   cream band, navy copy. A statement (`hero__frame`) or
                   columns (`hero__intro`: copy | divider | stat rail or card)
     hero--split   Home: headline | divider | copy + buttons, stats row below
     hero--text    dark gradient, white copy

   Decor sits in a first text element `hero-decor`: `.hero-wash` (light
   heroes) or `.hero-blobs` (Home).
   ========================================================================== */

/* Each child of the hero is held to the content column. `:where()` keeps the
   id's weight out, so the variant and page rules below override it. */
:where(#hero) .mod_article {
    > * {
        box-sizing: border-box;
        max-width: var(--container-max);
        margin-inline: auto;
        padding-inline: var(--page-gutter);
    }
    a.btn { margin-top: 0.5rem; }
    p { text-wrap: balance; }      /* even lines, no one-word last line (John, 14 Oct) */
}

/* The decor layer spans the whole band, behind the copy */
:is(.hero--light, .hero--split) .hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    max-width: none;
    padding-inline: 0;
    pointer-events: none;
}

/* ---- Light -------------------------------------------------------------- */
.hero--light {
    --hero-h1-gap: clamp(0.875rem, 1vw, 1.5rem);   /* H1 → lead */
    position: relative;
    overflow: clip;
    background: var(--cream);
    color: var(--body);
    padding-top: clamp(128px, 17vw, 300px);        /* clears the fixed header */
    padding-bottom: clamp(48px, 7vw, 104px);
    > * { position: relative; z-index: 1; }
    h1 {
        color: var(--heading);
        background: none;                 /* no h1 text-gradient */
        -webkit-text-fill-color: currentColor;
        font-family: var(--type-display);
        font-weight: 700;
        font-size: var(--fs-hero-h1);
        line-height: 1.04;
        margin: 0 0 var(--hero-h1-gap);
    }

    /* the eyebrow sits above the top rule */
    .hero-eyebrow { margin: 0 auto clamp(0.9rem, 1.6vw, 1.4rem); }

    /* Intro: copy | divider | rail or card, with rules above and below.
       The rules are pseudo-elements inset by the gutter: a border would
       overshoot the text. */
    .hero__intro {
        --hero-h1-gap: clamp(1.25rem, 1.85vw, 2.75rem);
        position: relative;
        padding-block: clamp(1.75rem, 3vw, 2.75rem);
        align-items: start;

        .rte {
            padding-right: 30px;
        }
    }
    .hero__intro::before, .hero__intro::after {
        content: "";
        position: absolute;
        left: var(--page-gutter);
        right: var(--page-gutter);
        height: 0;
        border-top: 1px solid var(--hairline);
        pointer-events: none;
    }
    .hero__intro::before { top: 0; }
    .hero__intro::after { bottom: 0; }
    .hero__intro > *:first-child p {
        color: var(--heading);
        font-size: clamp(1.05rem, 1.35vw, 1.25rem);
        line-height: 1.55;
        max-width: var(--hero-intro-measure, none);   /* the column is the measure */
        margin: 0 0 1.25rem;
    }
    .hero__intro a.btn { margin-top: 0.25rem; margin-bottom: 0; }

    /* Statement: rules above and below; the copy's width is a per-page dial
       (`--hero-frame-max`, set as body.page-<alias> .hero__frame in the page's
       own file). The board's gaps: 32px above the H1, 42px below. */
    .hero__frame {
        --hero-frame-max: 62%;
        position: relative;
        padding-block: clamp(1.25rem, 2.2vw, 2rem) clamp(1.5rem, 2.8vw, 2.625rem);
    }
    .hero__frame::before, .hero__frame::after {
        content: "";
        position: absolute;
        left: var(--page-gutter);
        right: var(--page-gutter);
        height: 0;
        border-top: 1px solid var(--hairline);
        pointer-events: none;
    }
    .hero__frame::before { top: 0; }
    .hero__frame::after { bottom: 0; }
    .hero__frame > * { max-width: var(--hero-frame-max); }
    .hero__frame h1 { margin: 0 0 var(--hero-h1-gap); }
    /* the frame's padding alone sets the gap to the bottom rule */
    .hero__frame :last-child { margin-bottom: 0; }
    .hero__frame p {
        color: var(--body);
        font-size: clamp(1.05rem, 1.25vw, 1.1875rem);
        line-height: 1.55;
        margin: 0;
    }
}

/* Divider between the intro's columns: desktop only, so a padded card in the
   second column (Plan Explainers' .pe-card) keeps its own padding below */
@media only screen and (min-width: 993px) {
    .hero--light .hero__intro > *:nth-child(2) {
        border-left: 1px solid var(--hairline);
        padding-left: clamp(1.75rem, 3.5vw, 3.5rem);
    }
    .hero--light .hero__intro > *:nth-child(2):not(.pe-card) { align-self: stretch; }
}

/* Stat rail: metric + caption, a hairline between each */
.hero-rail {
    display: flex; flex-direction: column;
    .stat { padding-block: clamp(1rem, 1.8vw, 1.6rem); }
    .stat:first-child { padding-top: 0; }
    .stat + .stat { border-top: 1px solid var(--hairline); }
    .num {
        display: block;
        font-family: var(--type-display);
        font-weight: 700;
        color: var(--prime);
        font-size: clamp(1.35rem, 1.9vw, 1.625rem);
        line-height: 1.1;
        margin-bottom: 0.35em;
    }
}
.hero--light .hero-rail p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: none;
}

/* The intro stacks at 992 instead of halving: half a tablet is too narrow for
   a rail or a card. `:has()` lifts these above the framework's mixed-pair rule. */
@media only screen and (max-width: 992px) {
    .hero--light .hero__intro.row:not(.no-stack):has(> .col-2-5) > :is(.col-3-5, .col-2-5) {
        flex: 0 0 100%;
    }
    .hero--light .hero__intro > *:nth-child(2) { margin-top: clamp(1.5rem, 3vw, 2rem); }
}
@media only screen and (max-width: 760px) {
    .hero--light .hero__frame > * { max-width: none; }
}

/* ---- The wash: soft cyan and pink masses behind a light hero -------------
   Markup: <div class="hero-wash"><i class="hw hw1"></i>…hw4</div>. Placed in
   a centred 2400px box (the board width) so it tracks the page column.
   Per-page dials: --wash-strength (opacity), --wash-speed (duration),
   --wash-y (shift), --wash-core (how far the colour holds before fading),
   --wash-travel (distance). */
.hero-wash {
    position: absolute;
    inset: 0;
    max-width: 2400px;
    margin-inline: auto;
    pointer-events: none;
    --wash-strength: 1;
    --wash-speed: 1;
    --wash-y: 0%;
    --wash-core: 38%;
    --wash-travel: 2.5;
    .hw {
        position: absolute;
        border-radius: 50%;
        will-change: transform;
        translate: 0 var(--wash-y);
    }
    .hw1 {   /* cyan, upper left */
        left: -20%;
        top: -14%;
        width: 64%;
        aspect-ratio: 1063 / 620;
        background: radial-gradient(closest-side,
            var(--blob-cyan) 0%, var(--blob-cyan) var(--wash-core), transparent 100%);
        opacity: calc(0.95 * var(--wash-strength));
        animation: washSink calc(16s * var(--wash-speed)) ease-in-out -7s infinite;
    }
    .hw2 {   /* pink, upper right */
        left: 34%;
        top: -18%;
        width: 78%;
        aspect-ratio: 1326 / 768;
        background: radial-gradient(closest-side,
            var(--blob-pink) 0%, var(--blob-pink) var(--wash-core), transparent 100%);
        opacity: calc(1 * var(--wash-strength));
        animation: washDrift calc(21s * var(--wash-speed)) ease-in-out -19s infinite;
    }
    .hw3 {   /* cyan, lower left */
        left: 2%;
        top: 44%;
        width: 52%;
        aspect-ratio: 1 / 0.72;
        background: radial-gradient(closest-side,
            var(--blob-cyan) 0%, var(--blob-cyan) calc(var(--wash-core) * 0.8), transparent 100%);
        opacity: calc(0.82 * var(--wash-strength));
        animation: washRise calc(18s * var(--wash-speed)) ease-in-out -23s infinite;
    }
    .hw4 {   /* pink, lower right */
        left: 52%;
        top: 38%;
        width: 66%;
        aspect-ratio: 1 / 0.62;
        background: radial-gradient(closest-side,
            var(--blob-pink) 0%, var(--blob-pink) calc(var(--wash-core) * 0.8), transparent 100%);
        opacity: calc(0.88 * var(--wash-strength));
        animation: washCircle calc(23s * var(--wash-speed)) ease-in-out -11s infinite;
    }
}
/* `translate` on .hw carries --wash-y, so these use `transform` and compose */
@keyframes washSink {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    15%  { transform: translate3d(calc(4% * var(--wash-travel)), calc(8% * var(--wash-travel)), 0) scale(1.16); }
    30%  { transform: translate3d(calc(10% * var(--wash-travel)), calc(18% * var(--wash-travel)), 0) scale(0.92); }
    45%  { transform: translate3d(calc(2% * var(--wash-travel)), calc(27% * var(--wash-travel)), 0) scale(1.18); }
    60%  { transform: translate3d(calc(-8% * var(--wash-travel)), calc(20% * var(--wash-travel)), 0) scale(0.9); }
    80%  { transform: translate3d(calc(-13% * var(--wash-travel)), calc(8% * var(--wash-travel)), 0) scale(1.12); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes washDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    18%  { transform: translate3d(calc(-10% * var(--wash-travel)), calc(9% * var(--wash-travel)), 0) scale(1.2); }
    36%  { transform: translate3d(calc(-22% * var(--wash-travel)), calc(16% * var(--wash-travel)), 0) scale(0.88); }
    54%  { transform: translate3d(calc(-30% * var(--wash-travel)), calc(-4% * var(--wash-travel)), 0) scale(1.18); }
    72%  { transform: translate3d(calc(-18% * var(--wash-travel)), calc(-16% * var(--wash-travel)), 0) scale(0.9); }
    88%  { transform: translate3d(calc(-6% * var(--wash-travel)), calc(-10% * var(--wash-travel)), 0) scale(1.1); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes washRise {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    20%  { transform: translate3d(calc(8% * var(--wash-travel)), calc(-12% * var(--wash-travel)), 0) scale(1.22); }
    40%  { transform: translate3d(calc(17% * var(--wash-travel)), calc(-25% * var(--wash-travel)), 0) scale(0.88); }
    58%  { transform: translate3d(calc(2% * var(--wash-travel)), calc(-35% * var(--wash-travel)), 0) scale(1.18); }
    78%  { transform: translate3d(calc(-13% * var(--wash-travel)), calc(-22% * var(--wash-travel)), 0) scale(0.9); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes washCircle {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    16%  { transform: translate3d(calc(11% * var(--wash-travel)), calc(-9% * var(--wash-travel)), 0) scale(1.15); }
    33%  { transform: translate3d(calc(22% * var(--wash-travel)), calc(2% * var(--wash-travel)), 0) scale(0.9); }
    50%  { transform: translate3d(calc(26% * var(--wash-travel)), calc(16% * var(--wash-travel)), 0) scale(1.2); }
    66%  { transform: translate3d(calc(8% * var(--wash-travel)), calc(24% * var(--wash-travel)), 0) scale(0.92); }
    83%  { transform: translate3d(calc(-9% * var(--wash-travel)), calc(14% * var(--wash-travel)), 0) scale(1.12); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* ---- Split (Home) --------------------------------------------------------- */
/* Spacing is the board's, in proportion below 2400: 32px from the top rule to
   the headline, 63px from the headline to the stats, the copy 91px right of
   the divider. */
.hero--split {
    --hs-pad: clamp(1.25rem, 1.333vw, 2rem);         /* top rule → headline */
    --hs-gap: clamp(1.75rem, 2.625vw, 3.9375rem);    /* headline → stats rule */
    position: relative;
    overflow: clip;
    background: #FBFAF9;
    color: var(--text);
    padding-top: clamp(150px, 21vw, 400px);          /* clears the fixed header */
    padding-bottom: clamp(60px, 8vw, 120px);
    h1, h3 { color: var(--heading); }
    > * { position: relative; z-index: 1; }
    h1 {
        font-family: var(--type-display);
        font-weight: 700;
        font-size: clamp(2.1rem, 3.125vw, 4.6875rem);   /* 75 at 2400, in proportion */
        line-height: 1.15;
        margin: 0;
        background: none;
        -webkit-text-fill-color: currentColor;
    }
    h1 em { font-style: normal; font-size: 1.2em; }  /* the enlarged word */

    .hero__intro {
        position: relative;
        padding-top: var(--hs-pad);
        align-items: start;
    }
    .hero__intro::before {
        content: "";
        position: absolute;
        top: 0;
        left: var(--page-gutter);
        right: var(--page-gutter);
        height: 0;
        border-top: 1px solid var(--hairline);
        pointer-events: none;
    }
    /* The copy column stretches so its divider runs from the top rule to the
       stats rule; the copy centres on the headline */
    .hero__intro > *:nth-child(2) {
        position: relative;
        overflow: visible;
        padding-left: clamp(1.5rem, 3.8vw, 5.6875rem);
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero__intro > *:nth-child(2)::before {
        content: "";
        position: absolute;
        left: 0;
        top: calc(-1 * var(--hs-pad));
        bottom: calc(-1 * var(--hs-gap));
        border-left: 1px solid var(--hairline);
        pointer-events: none;
    }
    .hero__intro p { color: var(--heading); }
    .hero__intro a.btn { margin-top: 0.5rem; margin-bottom: 0; }

    /* Stats: rules above and below, dividers between cells */
    .hero__stats {
        position: relative;
        align-items: center;
        margin-top: var(--hs-gap);
        padding-block: clamp(1rem, 1.3vw, 1.9375rem);
    }
    .hero__stats::before, .hero__stats::after {
        content: "";
        position: absolute;
        left: var(--page-gutter);
        right: var(--page-gutter);
        height: 0;
        border-top: 1px solid var(--hairline);
        pointer-events: none;
    }
    .hero__stats::before { top: 0; }
    .hero__stats::after { bottom: 0; }
    .hero__stats > * {
        position: relative;
        text-align: center;
        padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
    }
    .hero__stats > * + * { border-left: 1px solid var(--hairline); }
    .hero__stats h3 {
        display: block;
        font-family: var(--type-display);
        font-weight: 700;
        font-size: clamp(1.1rem, 1.9vw, 1.625rem);
        line-height: 1.1;
        margin: 0 0 0.3em;
    }
    .hero__stats p {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.85rem;
        line-height: 1.35;
    }
}
@media only screen and (max-width: 900px) {
    .hero--split h1 { margin-bottom: 1.25rem; }
    .hero--split .hero__intro > *:nth-child(2) { padding-left: 0; }
    .hero--split .hero__intro > *:nth-child(2)::before { content: none; }
}
/* The stats' dividers follow the cells' step-down (2-up at 992, stacked at
   600): the cell that starts a line has none (John, 16 Oct) */
@media only screen and (max-width: 992px) {
    .hero--split .hero__stats > :nth-child(odd) { border-left: 0; }
}
@media only screen and (max-width: 600px) {
    .hero--split .hero__stats > * + * { border-left: 0; }
}

/* Home's drifting blobs (the design's ellipses). --blob-speed scales the
   cycle, --blob-travel the path: set to move about as fast as the other
   heroes' wash (For Financial Advisors), John 14 Oct. */
.hero-blobs {
    position: absolute; inset: 0; pointer-events: none;
    --blob-speed: 0.6;
    --blob-travel: 2.2;
    .hb { position: absolute; height: auto; will-change: transform; }
    .hb5 { left: -8%;  top: -18%; width: 42vw; animation: heroBlobA calc(18s * var(--blob-speed)) ease-in-out infinite; }
    .hb3 { left: -16%; top: 6%;   width: 38vw; animation: heroBlobB calc(22s * var(--blob-speed)) ease-in-out infinite; }
    .hb1 { left: 20%;  top: -12%; width: 54vw; animation: heroBlobC calc(20s * var(--blob-speed)) ease-in-out infinite; }
    .hb2 { left: 44%;  top: 0%;   width: 54vw; animation: heroBlobA calc(24s * var(--blob-speed)) ease-in-out infinite; }
    .hb4 { left: 36%;  top: 18%;  width: 52vw; animation: heroBlobB calc(17s * var(--blob-speed)) ease-in-out infinite reverse; }
}
@keyframes heroBlobA {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(calc(7% * var(--blob-travel)), calc(-6% * var(--blob-travel))) scale(1.12); }
    50%  { transform: translate(calc(-5% * var(--blob-travel)), calc(5% * var(--blob-travel))) scale(0.9); }
    75%  { transform: translate(calc(6% * var(--blob-travel)), calc(7% * var(--blob-travel))) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes heroBlobB {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(calc(-7% * var(--blob-travel)), calc(5% * var(--blob-travel))) scale(0.88); }
    50%  { transform: translate(calc(6% * var(--blob-travel)), calc(-7% * var(--blob-travel))) scale(1.15); }
    75%  { transform: translate(calc(-5% * var(--blob-travel)), calc(-6% * var(--blob-travel))) scale(1.04); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes heroBlobC {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(calc(-6% * var(--blob-travel)), calc(-6% * var(--blob-travel))) scale(1.1); }
    66%  { transform: translate(calc(7% * var(--blob-travel)), calc(4% * var(--blob-travel))) scale(0.92); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ---- Text (dark) ---------------------------------------------------------- */
.hero--text {
    position: relative;
    overflow: clip;
    background: var(--grad-hero);
    color: var(--white);
    padding-block: clamp(48px, 7vw, 88px);
    h1 {
        color: var(--white);
        margin: 0 0 0.4em;
        font-weight: 200;
        font-size: clamp(2.5rem, 5vw, 3.75rem);
        line-height: 1.05;
        max-width: 18ch;
    }
    p { color: rgba(255, 255, 255, 0.82); max-width: 44em; }
    .eyebrow.on-dark { margin-bottom: 0.9em; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-wash .hw, .hero-blobs .hb { animation: none; }
}

/* Lead copy wraps balanced */
.hero__intro p { text-wrap: balance; }

/* ==========================================================================
   CONTACT   body.page-contact
   ==========================================================================
   One hero article: a row of the statement + form (col-3-5) and the sidebar
   (col-2-5) — .ct-card (phone and offices) and .ct-note. The form is Contao's
   (tl_form 1), styled by forms.css.
   ========================================================================== */

body.page-contact #hero .mod_article > .row {
    /* 1504px of content; the cap includes the row's gutter padding */
    max-width: calc(1504px + 2 * var(--page-gutter));
    --gap-x: clamp(2.5rem, 9.5vw, 142px);     /* keeps the sidebar reading as one */
    align-items: start;

    /* the columns are .blocks; their own gutter would double the gap */
    > .col-3-5, > .col-2-5 { padding-inline: 0; }
    > .col-3-5 > .ce_form { margin-top: clamp(1.5rem, 2.8vw, 2.5625rem); }
}
/* 802 | 142 | 560 of 1504, between the framework's col-* steps (its formula:
   width = P% - gap × (1 - P)); stacked below 993 so the form keeps its width */
@media only screen and (min-width: 993px) {
    body.page-contact #hero .mod_article > .row {
        > .col-3-5 { flex: 0 0 calc(57.35% - var(--gap-x) * 0.4265); }
        > .col-2-5 { flex: 0 0 calc(42.65% - var(--gap-x) * 0.5735); margin-top: 44px; }
    }
}
@media only screen and (max-width: 992px) {
    body.page-contact #hero .mod_article > .row > :is(.col-3-5, .col-2-5) { flex: 0 0 100%; }
}

.ct-head {
    h1 { margin: 0 0 clamp(1rem, 1.6vw, 1.5625rem); }
    p:last-child { max-width: 690px; margin-bottom: 0; }
}

/* "I am a… → Other" reveals a free-text field, no script; without :has() the
   field just shows */
.ct-other { display: block; }
@supports selector(:has(*)) {
    .ct-other { display: none; }
    .formbody:has(select[name="i_am_a"] option[value="Other"]:checked) .ct-other { display: block; }
}

/* Sidebar: the dark phone card */
.ct-card {
    border-radius: 15px;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    background: var(--grad-hero);
    color: #DFE4EA;
    .eyebrow { color: #9AA5B3; }
    h2 {
        margin: 0;
        color: #DFE4EA;
        font-family: var(--type-display);
        font-weight: 700;
        font-size: clamp(1.75rem, 3vw, 2.8125rem);
        line-height: 1.1;
    }
    p {
        margin: 0;
        color: #DFE4EA;
        font-size: clamp(1rem, 1.25vw, 1.1875rem);
        line-height: 1.5;
    }
    a { color: inherit; }
    hr {
        height: 1px;
        margin: var(--space-24) 0;
        border: 0;
        background: var(--text-muted);
    }
    .ct-small { font-size: 0.875rem; color: #9AA5B3; }
}
/* the phone link's touch target: 44px on a phone */
@media only screen and (max-width: 1050px) {
    .ct-card a[href^="tel:"] {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* Sidebar: the "Not an advisor?" note */
.ct-note {
    margin-top: var(--space-24);
    border: 1px solid var(--heading);
    border-radius: 6px;
    padding: clamp(1.1rem, 2vw, 1.5rem);
    h3 {
        margin: 0 0 0.4em;
        font-family: var(--type-display);
        font-weight: 600;
        font-size: 1.1875rem;
        color: var(--heading);
    }
    p {
        margin: 0;
        font-size: 0.9375rem;
        line-height: 1.55;
        color: var(--body);
    }
}

/* ==========================================================================
   CARDS — the one surface component
   ==========================================================================
   A card is a TEXT element: `card` + a surface variant + (optionally) a notch
   corner (notch.css) + a column class from the Theme Toolbox. Its rich text —
   an icon paragraph, <h3>, copy, a link — is styled BY TAG, because the editor
   strips classes off inner tags. Every card-like thing on a site is one of
   these; don't add a parallel `.panel` / `.feature` / `.tile`.

     surfaces  card--soft · card--accent · card--prime · card--prime-deep
               (white by default). A site adds its own surfaces the same way:
               `.card--x { --surface: … }` — a colour or a gradient.
     sizes     card--sm (tiles, steps) · card--lg (feature cards)
     copy      card--text-sm for dense catalogue grids
     layout    card--row (icon beside the copy) · card-stack (a column of
               cards sharing the row's height) · card--photo (the element's
               image fills the card behind a fade)
     hairline  add `outline` (notch.css)

   Markup (text element, class `card card--soft notch-tr`, toolbox `col-1-3`):
     <p><i class="fa-light fa-gears card__icon"></i></p>
     <h3>Title</h3><p>Copy.</p>
     <p><a class="link-arrow" href="…">Explore →</a></p>
   ========================================================================== */

.card {
  --surface: var(--white);
  --icon-size: 44px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 36px);
  color: var(--text-body);

  /* .outline paints its own background (it needs --surface for the diagonal) */
  &:not(.outline) { background: var(--surface); }

  > .rte {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* flex doesn't collapse margins: the last paragraph's 1em would sit on
       top of the card's bottom padding */
    > :last-child { margin-bottom: 0; }
  }

  h3 { margin-bottom: 0.5em; color: var(--heading); }
  :is(h3, p) { text-wrap: balance; }   /* card copy breaks evenly, as designers draw it */
  h4 { margin-bottom: 0.4em; color: var(--heading); font-size: 1.125rem; }
  p { margin-bottom: 1em; }

  a { color: var(--prime); font-weight: 600; }
  a:hover { color: var(--second); }
  /* a closing "Explore … →" link (a.link-arrow) sits at the foot of the card */
  .rte > p:last-child:has(> a.link-arrow) { margin-top: auto; margin-bottom: 0; }
}

/* Icon row: a paragraph holding the Font Awesome <i class="card__icon">.
   Also used outside cards (features), so it isn't nested under .card. */
.rte > p:has(> .card__icon) {
  margin: 0 0 clamp(16px, 1.6vw, 24px);
  line-height: 0;
}
.card__icon {
  display: inline-block;
  width: var(--icon-size, 44px);
  font-size: var(--icon-size, 44px);
  line-height: 1;
  color: var(--prime);
}
/* Once the Font Awesome kit swaps the <i> for an <svg>, the icon is
   --icon-size TALL and as wide as its glyph (designers size icons by height):
   a fixed width shrinks wide icons and blows up narrow ones. */
svg.card__icon { width: auto; height: var(--icon-size, 44px); }
/* An icon Font Awesome doesn't have (images/icons/<name>.svg): painted as a
   mask in the text colour, so it sits and recolours like the FA icons.
   <span class="card__icon icon-mask" style="--icon:url(../../files/structure/assets/css/…)"></span>, or a
   named class per icon: .icon-lily { --icon: url("../../files/structure/images/icons/lily.svg"); } */
.icon-mask {
  height: var(--icon-size, 44px);
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}

/* ---- Sizes --------------------------------------------------------------- */
.card--sm {
  --icon-size: 32px;
  padding: clamp(18px, 1.8vw, 26px);
  h3 { font-size: 1.125rem; }
}
.card--text-sm { font-size: 0.90625rem; }
.card--lg h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.2; }

/* ---- Surfaces ------------------------------------------------------------- */
.card--soft       { --surface: var(--surface-soft); }
.card--accent     { --surface: var(--accent); }
.card--prime      { --surface: var(--prime); }
.card--prime-deep { --surface: var(--prime-deep); }

/* Dark cards */
:is(.card--prime, .card--prime-deep) {
  color: var(--text-on-dark-dim);

  :is(h3, h4) { color: var(--text-on-dark); }
  a { color: var(--text-on-dark); }
  a:hover { color: var(--accent); }
  .card__icon { color: var(--text-on-dark-dim); }
}

/* ---- Layout helpers ------------------------------------------------------ */
/* Icon beside the copy (feature rows): the icon paragraph + a <div> */
.card--row > .rte {
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(16px, 1.6vw, 24px);

  > p:has(> .card__icon) { flex: none; margin: 0; }
  > div { flex: 1; }
  > div > :last-child, > p:last-child { margin-bottom: 0; }
}
/* A row card narrower than 380px (a phone, or two up on a tablet) puts its
   icon above the copy: beside it, the copy drops to ~200px (TPA Stack mobile
   pass). Must come after the rule above — same specificity. */
.card--row { container-type: inline-size; }
@container (max-width: 379px) {
  .card--row > .rte { flex-direction: column; gap: 12px; }
}

/* A column holding stacked cards that share the row's height */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gutter-24);
  > .card { flex: 1; }
}

/* Photo card: the element's image fills the card behind a dark fade and the
   copy sits at the foot (a text element with an image). */
.card.card--photo {
  display: flex;
  position: relative;
  justify-content: flex-end;
  min-height: clamp(360px, 34vw, 490px);
  color: var(--text-on-dark-dim);
  isolation: isolate;

  :is(h3, h4, a) { color: var(--text-on-dark); }
  > figure {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
    img { width: 100%; height: 100%; object-fit: cover; }
  }
  &::before {
    content: "";
    position: absolute;
    inset: 38% 0 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--prime-deep) 92%, transparent) 55%);
  }
  > .rte { flex: 0 0 auto; }
}

/* Outline pills: <p class="pills"><span>One</span><span>Two</span></p> */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-24);

  span {
    padding: 9px 18px;
    border: 1.5px solid currentColor;
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

/* A card that is itself a band's direct child: `.band > *` gives children the
   gutter as padding, which the card's own padding replaces — so hold it to
   the content column with a max-width instead. */
.band > .card { max-width: calc(min(100vw, var(--container-max)) - 2 * var(--page-gutter)); }

/* ==========================================================================
   NOTCH — chamfered corners
   ==========================================================================
   One class per corner: .notch-tl .notch-tr .notch-bl .notch-br.
   Size is --notch: default 28px, `.sm` 20px, `.lg` 48px (the Penpot geometry
   clusters at 18–24, 24–32 and 44–54). Read the corner from the card's path in
   Penpot — the design alternates them — never guess.

   .outline adds a hairline that follows the cut. A border can't: clip-path
   slices it off at the corner. So the border draws the straight sides and a
   gradient laid in the clipped corner draws the diagonal. The element's own
   fill must be given as --surface (a `background` would drop the diagonal).
   ========================================================================== */

:is(.notch-tl, .notch-tr, .notch-bl, .notch-br) { --notch: 28px; }
:is(.notch-tl, .notch-tr, .notch-bl, .notch-br).sm { --notch: 20px; }
:is(.notch-tl, .notch-tr, .notch-bl, .notch-br).lg { --notch: 48px; }

.notch-tl {
  --edge-dir: to bottom right;
  --edge-at: left top;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
}
.notch-tr {
  --edge-dir: to bottom left;
  --edge-at: right top;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.notch-bl {
  --edge-dir: to top right;
  --edge-at: left bottom;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}
.notch-br {
  --edge-dir: to top left;
  --edge-at: right bottom;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}

.outline {
  --outline-color: var(--stroke);
  --outline-w: 1px;
  border: var(--outline-w) solid var(--outline-color);
  background:
    linear-gradient(var(--edge-dir, to bottom left), transparent 50%, var(--outline-color) 50% calc(50% + var(--outline-w)), transparent 0)
      var(--edge-at, right top) / var(--notch, 0px) var(--notch, 0px) no-repeat border-box,
    var(--surface, transparent);
}
.outline.outline--accent { --outline-color: var(--accent); }

/* An IMAGE element cuts the picture, not the element: the element also holds
   the caption, so a bottom corner cut there lands under the caption and the
   photo keeps its square corner. */
.content-image:is(.notch-tl, .notch-tr, .notch-bl, .notch-br) { clip-path: none; }
.content-image.notch-tl img { clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch)); }
.content-image.notch-tr img { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.content-image.notch-bl img { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch))); }
.content-image.notch-br img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%); }

/* ==========================================================================
   LEGAL PAGES — Privacy Policy, Cookie Policy, Accessibility Statement, Terms
   ==========================================================================
   Built by engine/starter (specs/_starter.php → starter_legal_page): the hero,
   then the copy, one text element per clause (H2 + copy), so an editor changes
   one clause without touching the rest.
   Cornerstone (legal_side 'right'): the Legal layout has Contao's right
   column (right.css). The main article is `legal legal-copy`; the right column
   holds an article of its own, `legal-side`: "On this page" (.legal-toc, links
   to each clause's id) and the questions card (.legal-ask). Sticky under the
   header; stacked at 860 with "On this page" first and the card gone (each
   page ends with the same contact details).
   Older sites: one article `legal band`, a 2/3 `legal-copy` group beside a 1/3
   `legal-aside` group holding the card.
   ========================================================================== */

/* the article holding the copy and the aside */
.legal { padding-block: var(--space-60) var(--space-section); }

.legal-copy {
  color: var(--text-body);

  h2 {
    margin: var(--space-40) 0 0.5em;
    color: var(--heading);
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    line-height: 1.25;
  }
  ul { margin: 0 0 1em; padding-left: 1.2em; }
  li { margin-bottom: 0.4em; }
  li::marker { color: var(--second); }
  a { color: var(--prime); font-weight: 600; }
  a:hover { color: var(--second); }
  /* the Cookie Policy's cookie lists */
  table { width: 100%; margin: 0.5em 0 1.25em; border-collapse: collapse; font-size: 0.875rem; }
  th, td { padding: 10px 12px; border-bottom: 1px solid var(--stroke); text-align: left; vertical-align: top; }
  th { color: var(--heading); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface-soft); }
  td:first-child { white-space: nowrap; }
  code { color: var(--heading); font-size: 0.85em; }
}
.legal-updated p {
  margin: 0;
  color: var(--second);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* phones: a wide cookie table scrolls sideways inside its section */
@media (max-width: 700px) {
  .legal-copy .content-text:has(table) .rte { overflow-x: auto; }
}

@media (min-width: 993px) {
  .legal-aside .card {
    position: sticky;
    top: calc(var(--header-h, 88px) + var(--space-24));
  }
}

/* ---- The aside column (Legal layout) -----------------------------------
   #right on Cornerstone (right.css); #left works the same (left.css). */
:is(#right, #left) {
  --right-width: clamp(240px, 24vw, 340px);
  --left-width: clamp(240px, 24vw, 340px);
  --right-sticky-top: calc(var(--header-h, 88px) + var(--space-24));
  --left-sticky-top: calc(var(--header-h, 88px) + var(--space-24));
  .legal-side { padding-block: var(--space-60) var(--space-section); }
}
.legal-copy .content-text[id] { scroll-margin-top: calc(var(--header-h, 88px) + var(--space-24)); }
.legal-toc {
  .legal-toc__label {
    margin: 0 0 0.75em;
    color: var(--second);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  /* a rail of links (left.css styles #left's; the same for #right here) */
  nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--stroke); }
  nav li { margin: 0; }
  nav a {
    display: block;
    margin-left: -2px;
    padding: 6px 0 6px 12px;
    border-left: 2px solid transparent;
    border-bottom: 0;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--heading);
  }
  nav a:hover, nav a:focus-visible { color: var(--second); border-left-color: var(--second); }
}
.legal-ask { margin-top: var(--space-40); }
@media (max-width: 860px) {
  :is(#right, #left) .legal-side { padding-block: var(--space-40) 0; }
  #right { order: -1; }                      /* "On this page" above the copy */
  .legal-toc nav ul { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .legal-toc nav a { margin-left: 0; padding: 5px 12px; border: 1px solid var(--stroke); }
  .legal-ask { display: none; }              /* each page ends with the same details */
}

