@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: 1400px;   /* TPA: 1280px content column + a 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(32px, 6vw, 96px);
    
    
/* ======================================================================
   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 */
--single-xl: 1280px;  /* the full TPA content column */


}

/* 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;
}

/* 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);
}


/* --------------------------------------------------------------------------
   IMAGE RATIO — crop an image element to a set shape
   --------------------------------------------------------------------------
   A Theme Toolbox class on an image element (ratio-3x2 …) crops the photo
   to that shape, centred, whatever the source file's proportions — so a
   design's 560x379 frame holds even when the client uploads a square or a
   portrait. Move the focus with the image's own "important part" (Contao) or
   --ratio-focus (e.g. 50% 20% for faces).
   -------------------------------------------------------------------------- */
: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; }


/* --------------------------------------------------------------------------
   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; }

html { 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; }

/* ==========================================================================
   WEBSITE — TPA Stack brand: tokens, type, links, buttons, eyebrows, bands
   ==========================================================================
   Source of truth: Penpot › "Designs Final" (1600 board, 1280 content column).
   Every other stylesheet reads the tokens below, so the brand is set here once.
   ========================================================================== */
:root {
  /* Section rhythm: the boards sit a section's first line 72–80px under its
     top edge (John overrode the framework's 96px, QA review round 5) */
  --space-section: clamp(32px, 5vw, 80px);
  --black: #000;
  --white: #fff;

  /* Brand palette (names follow the Penpot library) */
  --navy:        #002772;
  --navy-deep:   #00194a;   /* footer, dark feature cards */
  --blue-bright: #0a4098;
  --yellow:      #dde76a;   /* CTA fill, highlight bands */
  --yellow-pale: #f2ff8e;   /* hero eyebrow, pale tiles */
  --yellow-deep: #d2de49;   /* accent text on dark cards */
  --green:       #037f4d;   /* eyebrows and text links on light */

  /* Framework-required names, mapped to the brand */
  --text:    var(--navy);
  --prime:   var(--navy);
  --second:  var(--green);
  --accent:  var(--yellow);
  --heading: var(--navy);
  --body:    #3b4a66;
  --background: var(--white);
  --stroke:  #dddfd2;       /* card hairline */

  --text-body:        var(--body);
  --text-muted:       #406280;
  --text-on-dark:     var(--white);
  --text-on-dark-dim: #b7cde4;
  --grey-dark:   #404040;
  --grey-light:  #eef0e8;
  --prime-light: var(--blue-bright);

  /* Forms (read by forms.css) */
  --field-border: #c7cdd8;
  --placeholder:  #8996ac;

  /* Signature gradients, lifted from the Penpot fills. Penpot stores a
     gradient's ends in the SHAPE'S OWN box, 0–1 each way: (0,0)→(1,1) is CSS
     `to bottom right` (not 45deg, which runs bottom-left → top-right), and an
     end outside the box, e.g. (-0.2,-0.2), becomes a negative first stop. */
  --grad-hero:      linear-gradient(to bottom right, #006a1f -20%, #002772 64%, #0a4098 100%);
  --grad-compact:   linear-gradient(to bottom right, #0a4098 0%, #002772 50%, #037f4d 100%);
  --grad-navy:      linear-gradient(180deg, #063c90 0%, #001a4f 100%);
  --grad-cta:       linear-gradient(to bottom right, #063c90 0%, #001a4f 100%);
  --grad-olive:     linear-gradient(180deg, #f2f3ec 0%, #e7e9dd 100%);
  --grad-trust:     linear-gradient(90deg, #dde76a 60%, #e5f25b 100%);
  --grad-yellow:    linear-gradient(to bottom right, #e4ec7f 0%, #c9d634 100%);
  --grad-yellow-hi: linear-gradient(180deg, #f8ffaa 0%, #c9d634 100%);
  --grad-lightblue: linear-gradient(150deg, #cce4fd 3%, #dfebf6 100%);
  --grad-blue:      linear-gradient(180deg, #dfebf6 0%, #aecae6 100%);
  --grad-btn:       linear-gradient(180deg, #0a4098 0%, #002772 100%);

  /* Type — Sora (the Google Fonts link is in fe_page) */
  --type-body:    "Sora", system-ui, sans-serif;
  --type-display: "Sora", system-ui, sans-serif;

  /* Every button carries the same top-right chamfer */
  --btn-notch: 12px;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: var(--type-body);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);   /* design body = 17px */
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-body);
  /* No overflow-x here: website_structure.css clips on html; `hidden` on body
     would make it a scroll container and break position: sticky. */
}

/* ---- Headings ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-family: var(--type-display);
  text-wrap: balance;
}
h1 {
  margin: 0 0 0.4em;
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);   /* 52px */
  font-weight: 300;
  line-height: 1.1;
}
h2 {
  margin: 0 0 0.5em;
  font-size: clamp(1.9rem, 3.4vw, 2.6875rem);  /* 43px */
  font-weight: 300;
  line-height: 1.2;
}
h3 {
  margin: 0 0 0.65em;
  font-size: clamp(1.25rem, 1.6vw, 1.375rem);  /* 22px */
  font-weight: 700;
  line-height: 1.25;
}
h4 {
  margin: 0 0 0.65em;
  font-size: 1.125rem;
  font-weight: 600;
}
h5, h6 {
  margin: 0 0 0.5em;
  font-size: 1rem;
  font-weight: 700;
}

/* The design's bold display heading (yellow "case" bands, form titles) */
h2.h2-strong {
  font-size: clamp(1.625rem, 2.4vw, 2rem);   /* 32px */
  font-weight: 700;
}

p { margin: 0 0 1.5em; }
.lead { color: var(--text-muted); font-weight: 600; }

/* ---- Eyebrow --------------------------------------------------------------
   The tracked label above a section heading. As a text element the label sits
   in .content-text > .rte > p, so the ELEMENT carries the class. The leading
   em dash is drawn here; hero eyebrows go without it (hero.css). */
.eyebrow {
  display: block;
  margin-bottom: 22px !important;   /* the boards: 21–22px to the heading */
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;

  p { margin: 0; }
  p::before { content: "\2014\00a0"; }
}
/* An eyebrow written inline in rich text (<p class="eyebrow">) — inside cards
   and CTA bands — goes without the dash */
p.eyebrow { margin-bottom: 0.9em; }

/* ---- Copy on dark surfaces (the utility, and the navy band) -------------- */
:is(.on-dark, .bg-navy) {
  color: var(--text-on-dark);

  :is(h1, h2, h3, h4) { color: var(--white); }
  .eyebrow { color: var(--yellow); }
}

/* ---- Links ---------------------------------------------------------------- */
a {
  border-bottom: 1px solid var(--prime);
  color: var(--prime);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;

  &:hover {
    border-bottom-color: var(--second);
    color: var(--second);
  }
}
:is(h1, h2, h3) a { border-bottom: 0; }

/* A link that names where it goes ("Explore … →"): green, no rule, the arrow
   is drawn here so the copy stays clean in the editor. */
a.link-arrow {
  border-bottom: 0;
  color: var(--green);
  font-weight: 600;

  &::after { content: "\00a0\2192"; }
  &:hover { color: var(--navy); }
}

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

/* ---- Lists (owned here: the list element and the RTE emit the same <ul>) -- */
ul, ol {
  margin: 0 0 1em;
  padding-inline-start: 1.25em;
}
li { margin-bottom: 0.5em; }
li:last-child { margin-bottom: 0; }
li > :is(ul, ol) { margin-block: 0.5em 0; }

/* Square navy bullets — the design's list marker. The RTE strips a class off
   the <ul>, so the component around it opts in (e.g. .card--list). */
.squares ul {
  list-style: square;
  li::marker { color: var(--navy); }
}

dl { margin: 0 0 1em; }
dt { font-weight: 600; }
dd { margin: 0 0 0.75em; }
dd:last-child { margin-bottom: 0; }

blockquote {
  margin: 0;
  padding: 0;
  p { margin-bottom: 0; }
}

/* ==========================================================================
   BUTTONS
   ==========================================================================
   Matched by intent, never by the bare <button> tag (that restyled component
   controls). Every button is chamfered top-right; add .notch-tl on the link
   for the few the design folds top-left.
     .btn         yellow fill, navy label
     .btn.alt     navy gradient fill, white label
     .btn-ghost   1.5px hairline that follows the chamfer; add .on-dark for white
   Fills go through --surface so a hover only swaps the token. */
/* Specificity: :is() scores as its MOST specific argument. Every selector in
   this list is (0,1,1), so a variant below (.btn-ghost, .alt) wins on order.
   Don't add a longer selector here — give it its own rule. */
/* Buttons after copy sit 40px below it (the boards: 32–44px). The margins
   collapse with the paragraph's own, so this is the whole gap. */
.rte > p:has(> a.btn):not(:first-child) { margin-top: 40px; }

:is(a.btn, .btn a, button[type="submit"], input[type="submit"], .submit) {
  --notch: var(--btn-notch);
  --surface: var(--accent);
  display: inline-block;
  margin: 0 1em 1.5em 0;
  padding: 16px 30px;   /* the boards' 213×52 primary button */
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--navy);
  font-family: var(--type-body);
  font-size: 0.875rem;   /* the boards' buttons: 14px / 600 */
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);

  &:hover {
    --surface: var(--navy);
    color: var(--white);
  }
  &.notch-tl { clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch)); }
  /* the right margin only spaces buttons in a row; the last one ends flush with
     its column (a right-aligned button was 15px short of the content edge) */
  &:last-child { margin-right: 0; }
}

:is(a.btn, .btn a).alt {
  --surface: var(--grad-btn);
  padding: 14px 24px;   /* the boards' 46px navy buttons (yellow ones are 52px) */
  color: var(--white);

  &:hover { --surface: var(--accent); color: var(--navy); }
}

/* The border draws the straight sides; a gradient laid in the clipped corner
   draws the diagonal — the same technique as notch.css .outline. */
:is(a.btn-ghost, .btn-ghost a) {
  --surface: transparent;
  --outline-color: var(--navy);
  --outline-w: 1.5px;
  --edge-dir: to bottom left;
  --edge-at: right top;
  border: var(--outline-w) solid var(--outline-color);
  background:
    linear-gradient(var(--edge-dir), transparent 50%, var(--outline-color) 50% calc(50% + var(--outline-w)), transparent 0)
      var(--edge-at) / var(--notch) var(--notch) no-repeat border-box,
    var(--surface);
  color: var(--navy);

  &.notch-tl { --edge-dir: to bottom right; --edge-at: left top; }
  &:hover { --surface: var(--navy); color: var(--white); }
  &.on-dark { --outline-color: var(--white); color: var(--white); }
  &.on-dark:hover { --surface: var(--white); color: var(--navy); }
}

/* Small-text helper */
.small {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  p { font-size: inherit; margin-bottom: 0.875em; }
  li { margin-bottom: 0; }
}

/* Contao download element: a button without joining the list above */
.content-download .download-element a {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
  clip-path: polygon(0 0, calc(100% - var(--btn-notch)) 0, 100% var(--btn-notch), 100% 100%, 0 100%);
}
a.download-element {
  margin-inline: 0.25em;
  padding: 0;
  font-weight: bold;
}
.download-element .size { display: none; }

/* Images fill their column; figures carry no browser margin */
.content-image {
  figure { margin: 0; }
  img { display: block; width: 100%; height: auto; }
}

/* ==========================================================================
   SECTIONS & BANDS
   ==========================================================================
   Every article in #main is a section with the design's vertical rhythm.
   :where() keeps it at zero specificity so a hero or a page rule overrides it
   without a fight. Full-width colour = `.band` (framework bleed) + a bg-*. */
:where(#main .mod_article) { padding-block: var(--space-section); }
/* A band's direct children take the container width and gutter (framework
   .band > *), so a row or grid placed straight on a band stays in the column. */

.bg-olive        { background: var(--grad-olive); }
.bg-yellow       { background: var(--grad-yellow); }   /* body copy stays grey; headings are navy */
.bg-yellow-solid { background: var(--yellow); color: var(--navy); }
.bg-navy         { background: var(--grad-navy); }
.bg-light        { background-color: var(--grey-light); }
.bg-dark         { background-color: var(--grey-dark); color: var(--white); }
.bg-prime        { background-color: var(--prime); color: var(--white); }

/* A section's heading row (tpa_head): eyebrow + H2, optional intro on the
   right; and the line or button that closes a section. */
.section-head {
  margin-bottom: var(--space-40);
  h2 { margin-bottom: 0; }
  > .rte > p:last-child { margin-bottom: 0; }
}
.section-head.row { align-items: end; }
.section-head.row.section-head--top { align-items: start; }
.section-intro p { margin: 0; }
/* the boards start a right-hand intro a little in from its column (per page) */
/* the boards' inset intros (--intro-in, per page) only from 1200px: under that
   the inset squeezed the intro (Why TPA Stack at 1000: 202px) */
@media (min-width: 1200px) { .section-head.row > .section-intro { padding-left: var(--intro-in, 0); } }
.section-head:not(.row) > .section-intro { margin-top: 0.6em; }
.section-head > .rte > h2 + p { margin-top: 18px; }   /* Services "Every engagement includes" */
.section-intro.strong p { font-weight: 700; }
.section-head.center { text-align: center; }
.section-foot { margin-top: var(--space-40); }
.section-foot p:last-child { margin-bottom: 0; }

/* Push a text element's content to the right edge of its column */
.align-end { text-align: right; }

@media (max-width: 1050px) {
  :is(a.btn, .btn a, button[type="submit"], input[type="submit"], .submit) {
    padding: 11px 20px;
    font-size: 0.85rem;
  }
}

/* Page shell: the framework's default top/bottom padding gives way to the
   section rhythm. The fixed header's height is reserved in header.css. */
#container { padding-top: 0; }
.container_inside { padding-bottom: 0; }

/* Reduced motion: a visitor who asks their device for less motion gets none —
   transitions and animations finish instantly, anchors jump instead of scroll
   (the Accessibility Statement promises this). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Forms (Contact, Trade Show): half-width fields stack from 1000px, not the
   framework's 600px; two across, they were too narrow for their placeholders */
@media (max-width: 1000px) {
  form:not(.no-stack) .formbody > .col-1-2 { flex-basis: 100%; }
}

/* ==========================================================================
   HEADER — TPA Stack (global)
   ==========================================================================
   Markup (module "Header - Wrapper"): #header .inside > .logo, .navigation
   (mod_navigation, .level_2 dropdowns), .contact (a.btn), a.menu (mobile).
   The bar is fixed, so #wrapper reserves its height — without that every
   hero's eyebrow sits underneath it.
   ========================================================================== */
:root { --header-h: 88px; }

#wrapper { padding-top: var(--header-h); }

#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background-color: #f2f3ec;
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 8%, transparent);

  .inside {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    min-height: var(--header-h);
  }

  .logo a { display: block; border-bottom: 0; }
  .logo img { display: block; width: 162px; height: auto; }

  .navigation { margin-left: auto; }

  /* The CTA is a yellow block, chamfered top-left, that runs off the right
     edge of the viewport. The chamfered fill is ::before and the run-off is
     ::after — a clip-path on .contact itself would clip the run-off too. */
  .contact {
    --notch: 25px;
    position: relative;
    z-index: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding-inline: clamp(20px, 2.2vw, 36px) 0;

    &::before, &::after {
      content: "";
      position: absolute;
      z-index: -1;
      background: var(--accent);
    }
    &::before {
      inset: 0;
      clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
    }
    &::after {
      inset: 0 auto 0 calc(100% - 1px);
      width: 100vw;
    }
    a.btn {
      margin: 0;
      padding: 11px 0;
      white-space: nowrap;
      background: none;
      clip-path: none;
      color: var(--navy);
      font-size: 0.875rem;
    }
    a.btn:hover { color: var(--green); }
  }

  .menu {
    display: none;
    border-bottom: 0;
    color: var(--navy);
    font-size: 1.5rem;
  }

  .invisible {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---- Navigation (the dropdown mechanics are header_dropdown_nav_simple.css) */
#header .mod_navigation {
  ul.level_1 {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    > li { position: relative; margin: 0; }
  }
  :is(a, strong) {
    display: block;
    padding: 0.33rem clamp(0.4rem, 0.9vw, 1.1rem);
    border-bottom: 0;
    color: var(--navy);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
  }
  a:hover, .active, .trail { color: var(--green); }
  /* The dropdown mechanics file paints hovered items black-on-white; this bar is light */
  li:is(:hover, :focus-within) > a { background: none; color: var(--green); }
  a:focus-visible { outline-color: var(--navy); }

  ul.level_2 {
    min-width: 220px;
    padding: 8px 0;
    background: var(--white);
    border: 1px solid var(--stroke);
    box-shadow: 0 8px 24px rgb(0 16 40 / 0.1);
  }
  ul.level_2 :is(a, strong) { padding: 8px 20px; color: var(--navy); }
  ul.level_2 a:hover { background: #f2f3ec; color: var(--green); }
  ul.level_2 :is(.active, .trail) { color: var(--green); }
}


/* The mobile menu takes over below 1100px: from there down the nav and the
   button no longer fit on one line (at 1000 the button broke onto two) */
@media (max-width: 1100px) {
  #header {
     & .contact {
        a.btn {
            font-size: 0.8rem;
        }
    }
    
    .mod_navigation {
    :is(a, strong) {
        display: block;
        padding: 0.25rem clamp(0.25rem, 0.8vw, .9rem);
        font-size: 0.822rem;
    }
}

  }
  

/* Mobile menu (mmenu): the current sub-page reads green, as in the dropdown */
.mm-menu .level_2 .active { color: var(--green); }

/* The mobile menu ends with the header's button (templates/base-theme/
   mod_mmenu.html5), which the header hides on small screens */

}

@media (max-width: 1050px) {
  :root { --header-h: 64px; }
  #header .logo img { width: 132px; }
}

@media (max-width: 950px) {
  #header {
    
    .navigation { display: none; }
    .menu { display: inline-flex; margin-left: auto; }
    
    .mm-menu .menu-cta {
      padding: 28px 20px;
      
        &::after { content: none; }
        a.btn {
          flex: 0 0 auto;
/*           margin: 0;*/
           padding: 16px 30px;
    /*        color: var(--navy);*/
  }
  }
}
}

.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: 0;
      background: var(--black);
      min-width: 180px;
      z-index: 1000;
      transition: opacity 0.3s ease, transform 0.3s ease;
      pointer-events: none;
    }

    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;
    }

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

/* ==========================================================================
   FOOTER — TPA Stack (global)
   ==========================================================================
   Markup (module "Footer - Wrapper"):
     .footer_top  > .footer_brand (logo, tagline, .flags)
                  > .footer_col × 3 (h3 + ul — plain HTML with {{link_url}})
     .footer_bottom > .copyright, .mod_customnav (legal pages), .credit
   Columns land on the Penpot grid: three 200px columns right-aligned to the
   content edge, 60px apart, the brand block taking the rest.
   ========================================================================== */
#footer {
  background-color: var(--navy-deep);
  color: var(--text-on-dark-dim);
  font-size: 0.84375rem;   /* 13.5px */

  .inside { padding-block: clamp(48px, 5vw, 68px) clamp(32px, 3vw, 44px); }

  a { border-bottom: 0; color: var(--text-on-dark-dim); }
  a:hover { color: var(--yellow); }

  ul { margin: 0; padding: 0; list-style: none; }
  li { margin: 0 0 0.9em; }
}

.footer_top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 200px));
  column-gap: 60px;
  row-gap: var(--space-40);

  .logo img { display: block; width: 162px; height: auto; margin-bottom: 1.4em; }
  p { max-width: 24rem; margin: 0 0 1em; font-size: 0.875rem; }

  .flags {
    display: flex;
    gap: 12px;
    img { display: block; width: 36px; height: 24px; }
  }

  h3 {
    margin: 0 0 1.2em;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
  }
}

.footer_bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75em 2.5em;
  margin-top: clamp(40px, 4vw, 60px);
  padding-top: clamp(20px, 2vw, 32px);
  border-top: 1px solid color-mix(in srgb, var(--yellow) 70%, transparent);
  font-size: 0.75rem;

  .mod_customnav ul { display: flex; flex-wrap: wrap; gap: 0.5em 1.25em; margin: 0; }
  /* every item on one line: list items carry a bottom margin site-wide */
  li { margin: 0; }
  /* the cookie bar's "Cookie settings" link sits beside the legal links */
  > * { margin-block: 0; }
  @media (min-width: 701px) { .cookie-settings { margin-left: -1.25em; } }   /* spaced like the legal links while it shares their row */
  .cookie-settings a { color: inherit; }
  .credit { margin-left: auto; }
}

/* The brand takes its own row below 1100px (at 1000 its copy was squeezed to
   ~150px), the same point the header hands over to the mobile menu */
@media (max-width: 1100px) {
  .footer_top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer_brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer_top { grid-template-columns: 1fr 1fr; }
  .footer_bottom .credit { margin-left: 0; }
}

/* The legal links' list items carried the site's 10.8px list-item margin (a
   rule more specific than the nested `li` above), which lifted them out of line */
#footer .footer_bottom li { margin: 0; }

/* ==========================================================================
   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%; }
}

/* ==========================================================================
   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--yellow { --outline-color: var(--yellow); }

/* 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 (About "The story"). */
.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%); }

/* Below ~1100px a top-left notch moves to the bottom-right corner. On the
   stacked/narrower layout the cut reads better away from the box's top-left.
   Buttons (.btn.notch-tl) and pills keep their own clip — they set it at a
   higher specificity, so this only re-cuts boxes, cards and image elements. */
@media (max-width: 1100px) {
  .notch-tl {
    --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%);
  }
  .content-image.notch-tl img {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  }
}

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

     surfaces   card--blue card--blue-deep card--olive card--yellow card--yellow-grad
                card--yellow-hi card--pale card--navy card--navy-deep (white default)
     size       card--sm (tiles, steps) · card--lg (feature cards, 32px title)
     copy       17px, the boards' card copy; card--text-sm 14.5px for the
                catalogue grids (Services, Resources, Why TPA Stack reasons)
     hairline   add `outline` (notch.css); `outline--yellow` for the yellow one
   ========================================================================== */

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

  /* .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); }
  /* card copy balances its lines, as the boards break it (QA review) */
  :is(h3, p) { text-wrap: balance; }
  h4 { margin-bottom: 0.4em; color: var(--heading); font-size: 1.125rem; font-weight: 600; }
  p { margin-bottom: 1em; }

  /* An inline link is underlined in the text's own colour (the boards); a
     closing "Explore … →" is a.link-arrow, which drops the rule. */
  a { border-bottom-color: currentColor; color: var(--navy); font-weight: 600; }
  a:hover { color: var(--green); }
  a.link-arrow { color: var(--green); }   /* the closing "Explore … →" stays green */
  /* 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(--navy);
}
/* Once the kit swaps the <i> for an <svg>, the icon is --icon-size TALL and
   as wide as its glyph (the boards size icons by height): a fixed width
   shrank the wide ones (gears, people-group) and blew up the narrow ones
   (calculator). */
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 */
.icon-mask {
  height: var(--icon-size, 44px);
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.icon-lily { --icon: url("../../files/structure/images/icons/lily.svg"); }

/* ---- Sizes --------------------------------------------------------------- */
.card--sm {
  --icon-size: 32px;
  padding: clamp(18px, 1.8vw, 26px);
  h3 { font-size: 1.125rem; font-weight: 600; }
}
.card--text-sm {
  font-size: 0.90625rem;
  p:has(> a.link-arrow) { font-size: 1.0625rem; }   /* the closing link keeps the 17px of the boards */
}
.card--lg h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);   /* 32px */
  line-height: 1.2;
}

/* ---- Surfaces ------------------------------------------------------------- */
.card--blue       { --surface: var(--grad-lightblue); }
.card--blue-deep  { --surface: var(--grad-blue); }
.card--olive      { --surface: var(--grad-olive); }
.card--yellow     { --surface: var(--yellow); }
.card--yellow-grad { --surface: var(--grad-yellow); }
.card--yellow-hi  { --surface: var(--grad-yellow-hi); }
.card--pale       { --surface: var(--yellow-pale); }
.card--navy       { --surface: linear-gradient(180deg, #0a4098 0%, #001f5e 100%); }
.card--navy-deep  { --surface: var(--navy-deep); }

/* Yellow cards: navy links and eyebrows (also when the card sits on a navy band) */
:is(.card--yellow-grad, .card--yellow-hi) { color: var(--navy); }   /* the gradient yellows set navy copy */
:is(.card--yellow, .card--yellow-grad, .card--yellow-hi, .card--pale) :is(a, .eyebrow) { color: var(--navy); }
:is(.card--yellow-grad, .card--yellow-hi) a.link-arrow { color: var(--navy); }   /* the solid yellow keeps its green arrow link */

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

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

/* ---- 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; }
}

/* The dark feature row (Home "Why we're different", About "Why the model
   works", Trade Show): the boards' compact 130px row — 20px padding, the icon
   centred in a 52px column, the copy 88px in, 6px under the title */
.card--row.card--navy-deep {
  padding: 20px 32px 20px 20px;
  > .rte { gap: 16px; }
  > .rte > p:has(> .card__icon) { display: flex; justify-content: center; width: 52px; }
  h3 { margin-bottom: 6px; }
}

/* A row card narrower than 380px (a phone, or two up on a tablet) puts its
   icon above the copy: beside it, the copy was down to ~200px */
.card--row { container-type: inline-size; }
@container (max-width: 379px) {
  .card--row > .rte, .card--row.card--navy-deep > .rte { flex-direction: column; gap: 12px; }
  .card--row.card--navy-deep > .rte > p:has(> .card__icon) { justify-content: flex-start; width: auto; }
}

/* 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 navy fade and the
   copy sits at the foot (text element with an image, Home "Growing TPAs"). */
.card.card--photo {
  display: flex;   /* .content-text.media sets flow-root at (0,2,0) */
  position: relative;
  justify-content: flex-end;
  min-height: clamp(420px, 34vw, 491px);
  isolation: isolate;

  > 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, rgb(0 26 79 / 0) 0%, rgb(0 26 79 / 0.92) 55%);
  }
  > .rte { flex: 0 0 auto; }
}

/* The olive polygon drawn into the bottom-right of the big yellow cards */
.card--decor {
  position: relative;
  isolation: isolate;
  &::after {
    content: "";
    position: absolute;
    right: -6%;
    bottom: -8%;
    z-index: -1;
    width: 62%;
    aspect-ratio: 350 / 378;
    background: url("../../files/structure/images/decor-polygon.svg") no-repeat center / contain;
    pointer-events: none;
  }
  > .rte { position: relative; }
}

/* Outline pills (Home "No account managers") */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-24);   /* under the copy, as on the board — not pinned to the card's foot */

  span {
    --notch: 10px;
    --outline-color: var(--navy);
    --outline-w: 1.5px;
    padding: 9px 18px;
    border: var(--outline-w) solid var(--outline-color);
    background: linear-gradient(to bottom left, transparent 50%, var(--outline-color) 50% calc(50% + var(--outline-w)), transparent 0) right top / var(--notch) var(--notch) no-repeat border-box;
    clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

/* Plain bold points with a bullet separator (Home "Real people") — the
   understated alternative to .pills. The bullet is a literal &bull; in the copy. */
.card-points {
  margin-top: var(--space-24);
}
.card-points strong { font-weight: 700; }

/* Card headline + icon as links (cardlinks.php): inherit the card's own colour
   so the card looks unchanged, drop the underline, add a subtle hover. The
   visible CTA link stays; the icon link is decorative (aria-hidden). */
.card a.card-title-link,
.card a.card-icon-link { color: inherit; text-decoration: none; border-bottom: 0; }
.card a.card-title-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* 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)); }

/* ==========================================================================
   HERO — the first band of every page
   ==========================================================================
   The hero article goes in the layout's HERO SECTION (Page › article
   "Display in": Hero), so #hero — the section Contao renders — is the hook,
   not a class. The section sits outside #container, full width; each of the
   article's children is held to the content column here. The article carries
   only its variant class. Children, in order:
     image.hero__media   (photo variant only — a DIRECT child, so it can
                          bleed to the viewport edge)
     text.eyebrow        (no leading dash inside a hero)
     text                <h1> + lead <p> + <p><a class="btn">…</a></p>
     text.hero__chip     (optional — Home's yellow callout)

     hero--photo    dark gradient, copy left, photo right behind a slanted edge
     hero--compact  blue→navy→green gradient, copy only (detail pages)
     hero--center   dark gradient, copy centred (About, Resources)
     hero--light    no band colour: navy copy on white (How It Works, Contact,
                    News, thank-you and 404 pages); add hero--center to centre
   ========================================================================== */

#hero .mod_article {
  position: relative;
  overflow: clip;
  color: var(--text-on-dark);

  > * {
    box-sizing: border-box;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--page-gutter);
  }
  h1 { color: var(--white); text-wrap: balance; }
  /* Hero eyebrows are the boards' 800-weight "breadcrumb", ~13px above the H1 */
  .eyebrow {
    margin-bottom: 13px !important;
    color: var(--yellow-pale);
    font-weight: 800;
    p::before { content: none; }
  }
  /* The copy element: lead paragraph, then the buttons */
  .content-text:not(.eyebrow, .hero__chip) .rte {
    max-width: 700px;
    > p { font-size: 1rem; text-wrap: balance; }   /* the boards' 16px lead, broken evenly (QA review) */
    > p:last-child { margin-bottom: 0; }
  }
  /* the buttons run as a wrapping row: stacked on a phone they sit 12px apart
     (their own margins gave 0 below and 1em beside) */
  .rte > p:has(> a.btn) { display: flex; flex-wrap: wrap; gap: 12px 1em; }
  a.btn { margin: 0; }
}
/* On the dark heroes the standard navy hover disappears into the band: the
   hover turns white with a navy label instead (the light hero keeps navy). */
#hero .mod_article:not(.hero--light) a.btn:not(.btn-ghost):hover {
  --surface: var(--white);
  color: var(--navy);
}

/* ---- Photo ---------------------------------------------------------------- */
#hero .hero--photo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(520px, 45.75vw, 732px);
  /* the boards sit the copy ~25px above centre: 48px more room below */
  padding-block: clamp(56px, 7vw, 104px) clamp(80px, 10vw, 152px);
  background: var(--grad-hero);
  
 .align-right img {
   object-position: right;
 }

  h1 {
    font-size: clamp(2.5rem, 4.4vw, 3.25rem);   /* 52px on inner pages */
    font-weight: 300;
  }
  /* --photo-x is where the photo's slant meets the bottom of the hero (its
     leftmost point); the copy column starts at the content edge. The lead
     stops 24px short of the photo at every width, so it never runs onto it. */
  --photo-x: 45.6vw;
  --copy-x: max(var(--page-gutter), calc((100vw - var(--container-max)) / 2 + var(--page-gutter)));
  .content-text:not(.eyebrow, .hero__chip) .rte {
    max-width: min(640px, 46vw);
    p { font-size: 1rem; }
    > p { max-width: min(100%, calc(var(--photo-x) - var(--copy-x) - 24px)); }
  }

  /* Photo: 45.6% → the right edge, the left side slanting 155px over the
     hero's full height (Penpot path 884,0 → 729,732). */
  > .hero__media {
    position: absolute;
    inset: 0 0 0 45.6%;
    z-index: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    clip-path: polygon(17.8% 0, 100% 0, 100% 100%, 0 100%);

    :is(figure, picture) { position: absolute; inset: 0; margin: 0; }
    img { width: 100%; height: 100%; object-fit: cover; }
  }
  > :not(.hero__media) { position: relative; z-index: 1; width: 100%; }
}

/* Home runs the display size and the extra-light weight */
body.page-index #hero h1 {
  font-size: clamp(2.75rem, 5.4vw, 4.375rem);   /* 70px */
  font-weight: 200;
  line-height: 1.04;
}

/* Yellow callout that sits over the photo (Home) */
.hero__chip {
  --notch: 24px;
  position: absolute !important;
  right: max(var(--page-gutter), calc((100vw - var(--container-max)) / 2 + var(--page-gutter)));
  bottom: clamp(48px, 6.8vw, 109px);
  width: auto !important;
  max-width: 426px !important;   /* the board's chip: its second line holds on one line */
  margin: 0 !important;
  padding: 16px 24px 16px 32px !important;   /* the board: 32px in, 366px of copy */
  background: var(--yellow-pale);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));

  p { margin: 0; color: var(--navy); font-size: 1.0625rem; line-height: 1.4; }
  strong { font-size: 1.125rem; font-weight: 600; }
}

/* ---- Compact ------------------------------------------------------------ */
#hero .hero--compact {
  /* The boards put the first line 48–70px down and leave 71–105px under the
     copy; a few draw the band taller (their --hero-min / --hero-pt below) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--hero-min, 0);
  padding-block: var(--hero-pt, clamp(40px, 3.5vw, 56px)) clamp(56px, 5.5vw, 88px);
  background: var(--grad-compact);

  /* The boards' H1 boxes run 610–1052px, tuned per headline, over an
     ~800px lead. The H1 gets the widest box and balances its lines (the
     designer's hand breaks are <br>s in the specs); the lead keeps 820px. */
  .content-text:not(.eyebrow) .rte { max-width: 1052px; }
  .rte > p { max-width: 860px; }   /* the boards' leads run 812–860px */
}

/* Boards that draw the compact hero taller than its copy (desktop): the band's
   height and the first line's offset, as drawn */
@media (min-width: 993px) {
  body.page-pricing                      { --hero-min: 527px; --hero-pt: 88px; }
  body.page-valuations-actuarial-support { --hero-min: 462px; --hero-pt: 88px; }
  body.page-distribution-loan-processing { --hero-min: 440px; --hero-pt: 68px; }
  #hero .hero--compact:is(body.page-pricing *, body.page-valuations-actuarial-support *, body.page-distribution-loan-processing *) {
    justify-content: flex-start;
  }
}
/* Pricing's board runs its gradient mirrored: blue top-right to green
   bottom-left (the only compact hero drawn that way) */
body.page-pricing #hero .hero--compact { background: linear-gradient(to bottom left, #0a4098 0%, #002772 50%, #037f4d 100%); }

/* Photo heroes: the boards set each page's copy a little differently in the
   732px band (desktop): Services sits higher, Who We Serve lower */
@media (min-width: 993px) {
  body.page-services #hero .hero--photo     { padding-bottom: 190px; }
  body.page-resources #hero .hero--center:not(.hero--light) { padding-top: 128px; }
}

/* ---- Centred -------------------------------------------------------------- */
#hero .hero--center {
  text-align: center;

  /* the boards' centred H1 boxes run 640–900px */
  .content-text:not(.eyebrow) .rte { max-width: 900px; margin-inline: auto; }
  .rte > p { max-width: 700px; margin-inline: auto; }   /* About's lead: 692px */
  .rte > p:has(> a.btn) { justify-content: center; }
}
#hero .hero--center:not(.hero--light) {
  padding-block: clamp(64px, 7vw, 108px);
  background: var(--grad-hero);
}

/* ---- Light ---------------------------------------------------------------- */
#hero .hero--light {
  padding-block: clamp(56px, 6vw, 92px) var(--space-40);
  color: var(--text-body);

  h1 { color: var(--heading); }
  /* centred (thank-you, 404): the boards run the lead 800px */
  &.hero--center .rte > p { max-width: 800px; }
  /* left-aligned (News, thank-you pages): the boards run the lead 860px */
  &:not(.hero--center) .content-text:not(.eyebrow) .rte { max-width: 860px; }
  .eyebrow {
    color: var(--green);
    p::before { content: "\2014\00a0"; }
  }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  #hero .hero--photo {
    --photo-x: 62vw;
    > .hero__media { left: 62%; }
    .content-text:not(.eyebrow, .hero__chip) .rte { max-width: 58vw; }
  }
  .hero__chip {
    position: relative !important;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    margin-top: var(--space-24) !important;
    max-width: 50% !important;
  }
}
/* The photo moves above the copy at 800px: beside it, the copy was down to
   half the screen */
@media (max-width: 800px) {
  #hero .hero--photo {
    padding-top: 0;

    > .hero__media {
      position: relative;
      inset: auto;
      order: -1;
      height: min(62vw, 420px);
      margin: 0 0 var(--space-40);
      clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    }
    .content-text:not(.eyebrow, .hero__chip) .rte { max-width: none; > p { max-width: none; } }
  }
  .hero__chip { max-width: none !important; align-self: stretch; }
}

/* ==========================================================================
   CTA BAND — the navy closing band
   ==========================================================================
   Article `cta-band band`. Two layouts:
     centred   + cta-band--center, one text element: <h2> + <p> + <p><a.btn>
     split     one element_group `row vert_center`: col-1-2 (eyebrow? + h2) |
               col-1-2 (copy + button). The pair is held to a centred 900px
               measure, 44/56, as most boards draw it (h2 x350, copy x770 of 1600).
   The statement is always the bold yellow display size.
   ========================================================================== */
.cta-band {
  padding-block: clamp(56px, 4.5vw, 72px);   /* the boards: 61–78px over the first line */
  background: var(--grad-cta);
  color: var(--text-on-dark);

  h2 {
    margin: 0;
    color: var(--yellow);
    font-size: clamp(2rem, 3.2vw, 2.875rem);   /* 46px */
    font-weight: 700;
    line-height: 1.12;
  }
  p { margin: 0 0 1.25em; color: var(--text-on-dark); text-wrap: balance; }
  p:last-child { margin-bottom: 0; }
  .eyebrow { margin-bottom: 0.75em !important; color: var(--yellow); }
  a.btn { margin: 0; }

  /* Widen the gutter through --gap-x: the column widths subtract it, so a
     plain column-gap would overflow the row and wrap the pair */
  .row {
    --gap-x: clamp(28px, 2.5vw, 40px);
    max-width: calc(900px + 2 * var(--page-gutter));
    margin-inline: auto;
  }
  /* the button sits 24px under the copy (the boards: 19–29px), not the 40px of
     a section's closing button */
  .row .rte > p:has(> a.btn):not(:first-child) { margin-top: 24px; }
}
/* Band height: every split board draws a 380px band with its content centred;
   a centred CTA takes --cta-min where its board is taller than its content.
   Children keep the full column (auto margins would shrink them in the grid). */
.cta-band {
  display: grid;
  align-content: center;
  min-height: var(--cta-min, 0);
  > * { width: 100%; }
}
@media (min-width: 993px) {
  .cta-band:has(> .row) { --cta-min: 380px; padding-block: 56px 96px; }
  /* the copy starts level with the statement's first line (not centred
     against it); under an eyebrow, level with the H2 below it */
  .cta-band > .row { align-items: flex-start; }
  .cta-band > .row:has(> :first-child .eyebrow) > :last-child { margin-top: 32px; }
  /* a statement with only a button beside it (Security): the statement takes
     the board's 640 of 900px and the button sits centred against it */
  .cta-band > .row:has(> :last-child .rte > p:only-child > a.btn:only-child) {
    align-items: center;
    > :first-child { flex: 0 0 640px; }
    > :last-child  { flex: 1 1 0; }
  }
}

/* The closing CTA's button turns white on hover (the default btn goes navy).
   Scoped to the band so it only changes the prefooter CTA. */
.cta-band :is(a.btn, .btn a):hover { --surface: var(--white); color: var(--navy); }

/* The split as most boards draw it: a 900px pair centred on the page, the
   statement from x350 and the copy from x770, 480px wide (Home's board is the
   one exception: 870px, copy from x900 — kept) */
@media (min-width: 993px) {
  .cta-band .row > .col-1-2:first-child { flex-basis: calc(44% - var(--gap-x) * 0.44); }
  .cta-band .row > .col-1-2:last-child  { flex-basis: calc(56% - var(--gap-x) * 0.56); }
}

.cta-band--center {
  text-align: center;

  h2 { margin-bottom: 0.4em; }
  .rte { max-width: 64rem; margin-inline: auto; }   /* the statement keeps to one line where the board does */
  .rte > p { max-width: 48rem; margin-inline: auto; }   /* the copy runs up to 762px */
}

/* ==========================================================================
   DEFINITION LIST — title | copy rows, hairlines between
   ==========================================================================
   An element_group `def-list` holding one element_group `def-row` per row,
   each with two text children (<h3>, <p>). The LIST is the band's child, so it
   takes the column's gutter and the rows — and their rules — run exactly the
   width of the copy (the boards draw them 160→1440, the content column). A
   row placed straight on a band would get the gutter as padding and its rule
   would run out to the band's edges.

   The title runs in a 400px column and the copy from 640px of 1280. Rules sit
   above every row and under the last; `def-list--inner` keeps only the rules
   between rows (Why TPA Stack's navy band); `def-list--on-dark` on navy.
   An icon may lead the title: <h3><i class="fa-light fa-lock"></i>Title</h3>
   (the Font Awesome kit swaps the <i> for an <svg>, so both are matched).
   ========================================================================== */
.def-list {
  --def-rule: var(--navy);
  --def-icon: var(--navy);
}

.def-row {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  column-gap: clamp(24px, 6.25%, 80px);
  padding-block: clamp(16px, 1.25vw, 20px);   /* a one-line row is the board's 69px */
  border-top: 1px solid var(--def-rule);

  &:last-child { border-bottom: 1px solid var(--def-rule); }

  h3 { margin: 0; color: var(--heading); font-size: clamp(1.125rem, 1.5vw, 1.375rem); }
  h3:has(> :is(i, svg)) {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
  }
  h3 > :is(i, svg) { color: var(--def-icon); font-size: 1.5rem; }
  p { margin: 0; }
  a { font-weight: 600; }
}

.def-list--inner > .def-row {
  &:first-child { border-top: 0; }
  &:last-child { border-bottom: 0; }
}

.def-list--on-dark {
  --def-rule: #f5f6fa;
  --def-icon: var(--text-on-dark-dim);

  .def-row :is(h3, p) { color: var(--white); }
}

/* Below the full 1280px column the title column narrows with it: 400 of
   1280 (31.25%), so the copy keeps its share on a laptop or tablet */
@media (max-width: 1439px) {
  .def-row { grid-template-columns: minmax(0, min(400px, 31.25%)) minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .def-row {
    grid-template-columns: 1fr;
    row-gap: 0.4em;
  }
}

/* ==========================================================================
   STEPS — numbered steps: the "01/" number, a title, a line
   ==========================================================================
   Rich text <p class="step__num">01</p><h3>Title</h3><p>copy</p> in a text
   element `step`. The yellow slash after the number is drawn here: every
   numbered step on the boards has it (Home, Pricing, How It Works).

     tile  `card card--sm step notch-tr sm col-…`  (Home five-up, Pricing)
     row   `step step--row`  big number left, copy from 180px, a navy rule
           between rows that starts at the copy (How It Works)
   ========================================================================== */
.step {
  .step__num {
    margin: 0 0 0.5em;
    color: var(--navy);
    font-size: clamp(1.625rem, 2.2vw, 2rem);   /* 32px */
    font-weight: 700;
    line-height: 1;

    &::after { content: "/"; margin-left: 0.12em; color: var(--yellow); }
  }
  h3 { margin-bottom: 0.3em; font-size: 1.125rem; font-weight: 600; }
  p:not(.step__num) { margin: 0; font-size: 1rem; }
}

/* ---- Row ------------------------------------------------------------------ */
.step--row > .rte {
  display: grid;
  grid-template-columns: clamp(96px, 12.5vw, 180px) minmax(0, 1fr);
  padding-top: clamp(22px, 2.4vw, 30px);

  > :not(.step__num) { grid-column: 2; max-width: 940px; }
  .step__num {
    grid-row: span 2;
    margin: 0;
    font-size: clamp(2.5rem, 4.4vw, 4rem);   /* 64px */
    font-weight: 800;
  }
  h3 { margin-bottom: 0.45em; font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 700; }
  p:not(.step__num) { font-size: 1.0625rem; }
}
/* The rule closes a step's copy, so it runs from the copy column to the
   column's end; the last step has none. */
.step--row:not(:last-child) > .rte::after {
  content: "";
  grid-column: 2;
  margin-top: clamp(26px, 2.6vw, 36px);
  border-top: 1px solid var(--navy);
}

@media (max-width: 560px) {
  .step--row > .rte {
    grid-template-columns: 1fr;
    > :not(.step__num) { grid-column: 1; }
    .step__num { grid-row: auto; margin-bottom: 0.3em; }
  }
  .step--row:not(:last-child) > .rte::after { grid-column: 1; }
}

/* ==========================================================================
   ACCORDION — brand layer for Contao's accordion element
   ==========================================================================
   REQUIRES contao-components/handorgel:

       composer require contao-components/handorgel

   Contao's accordion element emits handorgel__* markup and pulls that
   component's JS and base CSS from assets/handorgel. The component is NOT a
   core dependency, so without it both files 404 and the element renders as
   dead buttons with every panel expanded — it fails loudly and permanently,
   not gracefully.

   The base stylesheet is functional, not decorative: it owns the
   display/height/opacity transitions that make a panel open at all. So this
   file BRANDS it rather than replacing it — the same approach cookiebar.css
   takes, and for the same reason. Rewriting its layout means re-solving the
   open/close animation and re-breaking it on every component update.

   Every selector is scoped under .content-accordion. handorgel's own rules
   are single-class (0,1,0), so scoping puts these at 0,2,0 and they win
   regardless of which stylesheet the page happens to load last — worth doing
   because Contao injects the component CSS itself and the order is not ours
   to control.
   ========================================================================== */


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

.content-accordion {
    border-bottom: 1px solid var(--stroke);
    margin-bottom: var(--space-24);

    /* --------------------------------------------------------------------------
       HEADER BUTTON
       --------------------------------------------------------------------------
       The header tag (h2–h6) is the editor's choice, so font-size is left to
       inherit from the heading rather than pinned here.

       Padding-right leaves room for the marker below. It is expressed against
       the same token as the horizontal padding so the two stay in step.
       -------------------------------------------------------------------------- */

    .handorgel__header { margin: 0; }

    .handorgel__header__button {
        position: relative;
        border-top: 1px solid var(--stroke);
        background-color: transparent;
        padding: var(--space-16) calc(var(--space-24) * 2.2) var(--space-16) var(--space-24);
        font-family: inherit;
        font-weight: 600;
        color: var(--text);
        transition: background-color .2s ease;
    }

    .handorgel__header__button:hover { background-color: var(--grey-light); }

    /* A button that cannot be seen when focused is a WCAG 2.4.7 failure, and
       handorgel's base CSS strips the UA outline without replacing it. Inset so
       the ring stays visible on a full-bleed button rather than being clipped. */
    .handorgel__header__button:focus-visible {
        outline: 2px solid var(--prime);
        outline-offset: -2px;
    }

    /* --------------------------------------------------------------------------
       OPEN / CLOSED MARKER
       --------------------------------------------------------------------------
       handorgel keeps aria-expanded in step on the button, so the marker is
       driven off that rather than off a state class: the visual and the
       accessible state then cannot disagree, because they read the same source.

       It also means open/closed is not signalled by colour alone (WCAG 1.4.1) —
       the chevron changes direction, which does not depend on seeing colour.
       -------------------------------------------------------------------------- */

    .handorgel__header__button::after {
        content: "";
        position: absolute;
        right: var(--space-24);
        top: 50%;
        width: .5em;
        height: .5em;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-70%) rotate(45deg);
        transition: transform .2s ease;
    }

    .handorgel__header__button[aria-expanded="true"]::after { transform: translateY(-20%) rotate(-135deg); }

    /* --------------------------------------------------------------------------
       PANEL
       -------------------------------------------------------------------------- */

    .handorgel__content {
        background-color: transparent;
        border-top: 0;
    }

    .handorgel__content__inner { padding: 0 var(--space-24) var(--space-24); }

    /* The panel's last child would otherwise add its margin to the padding. */
    .handorgel__content__inner > :last-child, .handorgel__content__inner > :last-child > :last-child { margin-bottom: 0; }
}


/* --------------------------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------------------------
   Deliberately NOT `transition: none` on .handorgel__content. handorgel
   binds a transitionend listener on that element and applies its
   --opened class from the callback, so removing the transition means the
   event never fires and the panel never finishes opening. Collapsing the
   duration instead keeps the event and drops the animation.

   The button and its marker have no JS depending on them, so those can be
   turned off outright.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .content-accordion .handorgel__content,
    .content-accordion .handorgel__content__inner {
        transition-duration: 1ms;
    }

    .content-accordion .handorgel__header__button,
    .content-accordion .handorgel__header__button::after {
        transition: none;
    }
}


/* TUNING
     Panels are separated by a single rule in --stroke, with the frame closed
     by a matching line at the bottom. For a card-style accordion instead,
     give .content-accordion a border and radius and drop the border-top on
     the button for the first panel. */


/* ==========================================================================
   FAQ VARIANT  `accordion--faq`  (on the accordion element's cssID)
   ==========================================================================
   The editorial FAQ treatment: the question is a Literata statement flush with
   the container edge (no box, no indent), rules run the full width above every
   row and below the last, and the marker is a + / − rather than a caret. The
   answer is body copy capped to a comfortable measure rather than the full
   width of the question.

   Contao's accordion element takes each nested element's **sectionHeadline**
   as the toggle text (not `headline` — that renders an empty button), and
   leaves the FIRST panel open unless `closeSections` is set.

   Build: a `accordion` element with cssID `accordion--faq`, whose children are
   the panels — each a `text` with `sectionHeadline` = the question.
   ========================================================================== */
/* The closing rule is an INSET pseudo-element. The accordion element is a direct
   child of the band article, so `.band > *` gives it
   `padding-inline: var(--page-gutter)` and a border-bottom painted a full gutter
   past the questions on both sides. (The PANEL BUTTONS' own `border-top` is
   fine: a button's box is the accordion's CONTENT box, already the container,
   and its 42px right padding is where the +/- marker sits — the board draws
   that marker at the container's right edge, x2083 of x300-2100.) */
/* Only a band's direct child has the gutter as padding to inset past */
.band > .content-accordion.accordion--faq { --rule-inset: var(--page-gutter); }
.content-accordion.accordion--faq {
    position: relative;
    border-bottom: 0;          /* the base frame's rule; redrawn inset below */
    margin-bottom: 0;
    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: var(--rule-inset, 0);
        right: var(--rule-inset, 0);
        height: 0;
        border-top: var(--rule-w, 1px) solid var(--prime);
        pointer-events: none;
    }

    .handorgel__header__button {
        /* flush with the container: the question sits on the same left edge as the
           group heading above it, so only the marker gets reserved space */
        padding: var(--space-24) calc(var(--space-24) * 1.75) var(--space-24) 0;
        border-top: 1px solid var(--prime);
        font-family: var(--type-display);
        font-weight: 500;
        font-size: clamp(1.15rem, 1.9vw, 1.6875rem);      /* ~27px */
        line-height: 1.25;
        color: var(--heading);
    }
    .handorgel__header__button:hover {
        background-color: transparent;
        color: var(--prime);
    }

    /* + / − marker, drawn as two rules so it needs no glyph or icon font. */
    .handorgel__header__button::after {
        content: "";
        right: 0;
        width: 0.62em;
        height: 0.62em;
        border: 0;
        transform: none;
        background:
            linear-gradient(var(--prime), var(--prime)) center / 100% 2px no-repeat,
            linear-gradient(var(--prime), var(--prime)) center / 2px 100% no-repeat;
        transition: background-size 0.2s ease, transform 0.2s ease;
    }
    /* open: the vertical stroke collapses, leaving a minus */
    .handorgel__header__button[aria-expanded="true"]::after {
        transform: none;
        background:
            linear-gradient(var(--prime), var(--prime)) center / 100% 2px no-repeat,
            linear-gradient(var(--prime), var(--prime)) center / 2px 0 no-repeat;
    }

    .handorgel__content__inner { padding: 0 0 var(--space-24); }
    .handorgel__content__inner p {
        max-width: 50ch;            /* the design caps the answer at half the row */
        color: var(--body);
        font-size: clamp(1rem, 1.25vw, 1.1875rem);        /* ~19px */
        line-height: 1.6;
    }
}

/* PAGE — Growing TPAs ( /growing-tpas )  body.page-growing-tpas */

/* "The week you're probably having": four pains in two columns, each led by a
   heavy navy slash (the board's 20x27 mark). The card is one text element of
   four paragraphs, 1033px of the 1280 column. */
.pain-panel {
  max-width: 1033px;
  padding: clamp(28px, 3.2vw, 46px) clamp(28px, 4.7vw, 68px);

  > .rte {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.2vw, 18px) clamp(32px, 5vw, 72px);   /* rows 18px apart (the board) */
  }
  p {
    position: relative;
    margin: 0;
    padding-left: 26px;
    color: var(--navy);
    font-size: 1.0625rem;

    &::before {
      content: "";
      position: absolute;
      top: 0.15em;
      left: 7px;
      width: 6px;
      height: 1.6em;
      background: var(--navy);
      transform: skewX(-27deg);
    }
  }
}
@media (max-width: 700px) {
  .pain-panel > .rte { grid-template-columns: 1fr; }
}

/* Hero: 71px under the buttons on the board */
@media (min-width: 993px) { body.page-growing-tpas #hero .hero--compact { padding-bottom: 47px; } }
/* the panel follows its heading closely (board: 64px from heading to the first pain) */
.section-head:has(+ .pain-panel), .content-text:has(+ .pain-panel) { margin-bottom: 18px; }

/* PAGE — Established Firms ( /established-firms )  body.page-established-firms */

/* The failure-points paragraph is a navy lead, larger than body copy */
#outsourcing .lead-copy p:first-child {
  color: var(--navy);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);   /* 21px */
  font-weight: 500;
  line-height: 1.5;
}

/* "Making the case": left in the column at the board's 848px measure,
   the copy a navy 15px/500 under the bold heading */
.case-copy {
  .rte { max-width: 848px; margin-left: clamp(0px, 3.3vw, 52px); }
  p { color: var(--navy); font-size: 0.9375rem; font-weight: 500; }
}
@media (min-width: 993px) {
  #main .mod_article:has(> .case-copy) { padding-top: 102px; }
  body.page-established-firms .cta-band { padding-top: 89px; }
}

/* PAGE — Pension Actuaries ( /pension-actuaries )  body.page-pension-actuaries */
#db-depth {
  .card--yellow-grad { padding: clamp(28px, 3vw, 48px); }
  /* this card's label keeps the section eyebrow's dash (the board) */
  .card--yellow-grad p.eyebrow::before { content: "\2014\00a0"; }
  .card--yellow-grad li { color: var(--navy); font-weight: 600; margin-bottom: 0.9em; }
  .card-note p { margin: var(--space-24) 0 0; font-weight: 600; }
  .card-note a { color: var(--green); border-bottom-color: currentColor; }
}

/* ==========================================================================
   SERVICE DETAIL — the five /services/* pages (built by _service.php)
   ==========================================================================
   #who (copy | photo) → #handle (the big blue "What we handle" card) → #how
   (two columns) → CTA. The boards vary the band behind the card:
     .handle--overlap         white above, yellow from the card's middle down,
                              continuing into .pair--after-overlap (Back-office)
     #how.bg-yellow           the pair on a yellow band (401k, DB)
     #handle.bg-olive         the card on olive, the pair on white (Valuations,
                              Distribution)
   ========================================================================== */
.handle-card {
  /* 48 | 60 as on two of the three boards (Back-Office's 63 | 112 is the odd one) */
  padding: clamp(28px, 3vw, 48px) clamp(24px, 3.75vw, 60px);

  h3 { max-width: 30ch; margin-bottom: 1em; }
  /* Grid, not CSS columns: the list is written in the design's reading order,
     left then right, row by row */
  ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* the boards set the list on a 72px row pitch — a two-line item takes the
       same row as a one-line one */
    grid-auto-rows: minmax(72px, auto);
    gap: 0 clamp(24px, 5vw, 80px);
    margin: 0;
    padding-left: 1.1em;
    list-style: square;
  }
  li {
    margin: 0;
    color: var(--navy);
    font-weight: 600;
    &::marker { color: var(--navy); }
  }
}

.handle--overlap {
  padding-bottom: 0 !important;
  background: linear-gradient(180deg, transparent 0 55%, #e4ec7f 55%);
}
.pair--after-overlap { background: linear-gradient(180deg, #e4ec7f 0%, #c9d634 100%); }
@media (min-width: 993px) { .pair--after-overlap { padding-top: 42px; } }

#how h3 { color: var(--navy); }

.service-note {
  margin-top: 1.4em;
  color: var(--green);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 700;
}

@media (max-width: 700px) {
  .handle-card ul { grid-template-columns: 1fr; }
}

/* DB's closing CTA: the board's 380px band, content centred */
@media (min-width: 993px) { body.page-defined-benefit-cash-balance .cta-band { --cta-min: 380px; } }
/* Valuations' split CTA is a short band on its board (78px under the copy) */
@media (min-width: 993px) { body.page-valuations-actuarial-support .cta-band:has(> .row) { --cta-min: 0; padding-block: 72px; } }
@media (min-width: 993px) { body.page-defined-benefit-cash-balance .cta-band { padding-top: 116px; } }   /* 116px over the statement */
@media (min-width: 993px) {
  #how.bg-yellow { padding-bottom: 108px; }
  #who { padding-bottom: 0; }
  #who + #handle { padding-top: 76px; }   /* the boards: 76px from the photo to the card */
  body.page-valuations-actuarial-support #handle { padding-bottom: 109px; }
  /* Back-office's list runs tighter than the other boards' 72px rows */
  body.page-back-office-production-support .handle-card ul { grid-auto-rows: auto; row-gap: 16px; }
}
/* the service boards (and Pricing) leave ~96px under the centred CTA's button */
@media (min-width: 993px) {
  body:is(.page-401k-compliance-testing, .page-distribution-loan-processing, .page-defined-benefit-cash-balance, .page-pricing) .cta-band--center { padding-bottom: 96px; }
  body.page-back-office-production-support .pair--after-overlap { padding-top: 92px; }
}

/* "Who this is for" photo: the boards' wide 549x290 frame, cropped to fit (John, QA) */
#who .content-image img { aspect-ratio: 549 / 290; object-fit: cover; }

/* PAGE — Security ( /security )  body.page-security */

/* The closing band leads with a statement, not a heading */
#cta .cta-statement p {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);   /* 26px */
  font-weight: 500;
  line-height: 1.4;
}

/* The closing statement sits above centre in its 380px band (78 over, 146 under) */
@media (min-width: 993px) { body.page-security #cta { padding-block: 40px 112px; } }

/* PAGE — How It Works ( /how-it-works )  body.page-how-it-works */

/* The light hero: a navy eyebrow with no dash, closed by a navy rule */
body.page-how-it-works #hero .mod_article {
  .eyebrow { color: var(--navy); p::before { content: none; } }
  p { color: var(--navy); }
  &::after {
    content: "";
    display: block;
    max-width: calc(var(--container-max) - 2 * var(--page-gutter));
    margin: clamp(48px, 5vw, 80px) auto 0;
    border-top: 9px solid var(--navy);   /* the board's heavy rule */
  }
}

#steps { padding-top: clamp(40px, 4vw, 64px); }
@media (min-width: 993px) { body.page-how-it-works .cta-band:has(> .row) { padding-bottom: 70px; } }

/* PAGE — Pricing ( /pricing )  body.page-pricing */
#scoped .scoped-copy strong { color: var(--navy); font-weight: 600; }

#economics h3 { color: var(--navy); }

/* "We walk through them with you in a scoping call." wraps to two lines (the board) */
body.page-pricing .section-intro { max-width: calc(290px + var(--intro-in, 0px)); }
@media (min-width: 993px) {
  body.page-pricing { --intro-in: 129px; }                    /* intro from x1081 */
  #economics { padding-bottom: 99px; }                        /* the board: 99px under the copy */
}
@media (max-width: 992px) { #scoped.row { --gap-y: 16px; } }
/* The four inputs go two across from 1200px down to the phone stack (at 1000
   four across left each card's copy 164px wide) */
@media (min-width: 601px) and (max-width: 1200px) {
  body.page-pricing .row:not(.no-stack) > .col-1-4 { flex: 0 0 calc(50% - var(--gap-x, 0px) * 0.5); }
}

/* PAGE — FAQ ( /faq )  body.page-faq

   One accordion; each topic is a panel whose toggle is the topic heading and
   whose body is the two-column question grid (the design's note: "make each
   section an accordion"). Built on accordion.css .accordion--faq. */
/* Two classes, so the nested rules tie the faq variant's (0,3,0) and win as
   the later file — with one class they lost and the 32px topic size never applied */
.content-accordion.accordion--topics {
  --rule-w: 2px;   /* the board's topic rules are 2px navy */
  /* the board: rule, 26px, the topic, ~32px, the questions; 72px under the
     last answer before the next rule */
  .handorgel__header__button {
    padding-block: 26px 8px;
    border-top-width: var(--rule-w);
    font-size: clamp(1.5rem, 2.2vw, 2rem);   /* 32px topic heading */
    font-weight: 700;
    color: var(--heading);
  }
  .handorgel__content__inner { padding-block: 25px 72px; }   /* 64px from the topic to its first question (the board) */
  .row { --gap-y: 46px; }                      /* question to question (the board) */
  .faq-q {
    h3 { margin-bottom: 24px; font-size: 1.125rem; font-weight: 600; }
    p { max-width: none; font-size: 0.9375rem; }
  }
}

/* The closing CTA: the board's 278px band, content centred */
@media (min-width: 993px) { body.page-faq .cta-band { --cta-min: 278px; align-content: start; padding-block: 53px 40px; } }
@media (min-width: 993px) { body.page-faq #hero .hero--compact { padding-bottom: 105px; } }

/* PAGE — Outsourcing Comparison Guide ( /outsourcing-comparison-guide ) */

/* Model cards: small green caps labels; watch-outs in amber */
.compare-card {
  .lbl {
    margin: 1.4em 0 0.4em;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .lbl--warn { color: #8a6d00; }
  p { font-size: 0.875rem; }
  /* Strengths and Best fit read navy on the board; Watch-outs / trade-off stay grey */
  .rte > h4:nth-of-type(1) + p, .rte > h4:nth-of-type(3) + p { color: var(--navy); }
}
/* The closing note runs straight into "Ten questions" (board: 89px from the
   note to the next H2, not two section paddings) */
#main .mod_article:has(.compare-note) { padding-bottom: 0; }
.compare-note p {
  margin: var(--space-40) auto 0;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}

/* Ten questions: two columns, read across the rows (01 left, 02 right), each
   question closed by its own navy rule (the board: 610px columns, 60px apart;
   number, then the question 46px in) */
.numbered-grid ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 4.7vw, 60px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: q;
}
.numbered-grid li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: baseline;
  margin: 0;
  padding-block: 16px;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
  counter-increment: q;

  &::before {
    content: counter(q, decimal-leading-zero);
    color: var(--green);   /* the board's numbers are green, the questions navy */
    font-size: 0.9375rem;
    font-weight: 700;
  }
}
@media (max-width: 700px) {
  .numbered-grid ol { grid-template-columns: 1fr; }
}

