/* Shared public-site controls. Component artwork and accessibility modes retain their own palettes. */
body#st-page {
 --kamerton-brown:#7C2812; --kamerton-brown-dark:#3B1D16; --kamerton-gold:#D7B56D;
 --kamerton-cream:#f4f3ef; --kamerton-line:#D7B56D; --kamerton-muted:#74665D;
}
body#st-page:not(.accessibility) :is(.btn-primary,.btn-info,.uk-button-primary,.uk-button-info,#acceptCookies){
 background:var(--kamerton-brown);border-color:var(--kamerton-brown)!important;color:#fff;
}
body#st-page:not(.accessibility) :is(.btn-primary,.btn-info,.uk-button-primary,.uk-button-info,#acceptCookies):is(:hover,:active,.active){
 background:var(--kamerton-brown-dark);border-color:var(--kamerton-brown-dark)!important;color:#fff;
}
body#st-page:not(.accessibility) :is(.btn-secondary,.btn-default,.btn-outline-primary,.btn-outline-info,.uk-button-default){
 background:var(--kamerton-cream);border-color:var(--kamerton-line);color:var(--kamerton-brown);
}
body#st-page:not(.accessibility) :is(.btn-secondary,.btn-default,.btn-outline-primary,.btn-outline-info,.uk-button-default):is(:hover,:active,.active){
 background:#e9ddcd;border-color:var(--kamerton-gold);color:var(--kamerton-brown-dark);
}
body#st-page:not(.accessibility) :is(.btn-primary,.btn-info,.btn-secondary,.btn-default,.btn-outline-primary,.btn-outline-info,.uk-button-primary,.uk-button-default):is(:focus,.focus){
 box-shadow:0 0 0 .2rem rgba(190,148,100,.3);
}
body#st-page:not(.accessibility) :is(.btn-primary,.btn-info):is(:disabled,.disabled){
 background:var(--kamerton-brown);border-color:var(--kamerton-brown)!important;color:#fff;opacity:.55;
}
body#st-page:not(.accessibility) .btn-link{color:var(--kamerton-brown)}
body#st-page:not(.accessibility) .btn-link:hover{color:var(--kamerton-brown-dark)}
body#st-page:not(.accessibility) :is(.form-control,.form-select,.custom-select,.input-group-text){border-color:var(--kamerton-line);color:var(--kamerton-brown-dark)}
body#st-page:not(.accessibility) :is(.input-group-text,.form-control:disabled,.form-control[readonly]){background-color:var(--kamerton-cream)}
body#st-page:not(.accessibility) :is(.form-control,.form-select,.custom-select):focus{border-color:var(--kamerton-gold);box-shadow:0 0 0 .2rem rgba(190,148,100,.25)}
body#st-page:not(.accessibility) input:is([type=checkbox],[type=radio]){accent-color:var(--kamerton-brown)}
body#st-page:not(.accessibility) .form-check-input:checked,
body#st-page:not(.accessibility) .custom-control-input:checked~.custom-control-label:before{background-color:var(--kamerton-brown);border-color:var(--kamerton-brown)}
body#st-page:not(.accessibility) :is(.form-check-input:focus,.custom-control-input:focus~.custom-control-label:before){border-color:var(--kamerton-gold);box-shadow:0 0 0 .2rem rgba(190,148,100,.25)}
body#st-page:not(.accessibility) .pagination .page-link{color:var(--kamerton-brown);background:var(--kamerton-cream);border-color:var(--kamerton-line)}
body#st-page:not(.accessibility) .pagination .page-link:hover{color:var(--kamerton-brown-dark);background:#e9ddcd;border-color:var(--kamerton-gold)}
body#st-page:not(.accessibility) .pagination :is(.page-item.active,.active)>.page-link{color:#fff;background:var(--kamerton-brown);border-color:var(--kamerton-brown)}
body#st-page:not(.accessibility) .pagination .page-link:focus{box-shadow:0 0 0 .2rem rgba(190,148,100,.25)}
body#st-page:not(.accessibility) .pagination .disabled>.page-link{color:var(--kamerton-muted);background:var(--kamerton-cream);border-color:var(--kamerton-line)}
body#st-page:not(.accessibility) :is(.nav-tabs,.nav-pills) .nav-link{color:var(--kamerton-brown)}
body#st-page:not(.accessibility) :is(.nav-tabs,.nav-pills) .nav-link:hover{background:var(--kamerton-cream);border-color:var(--kamerton-line)}
body#st-page:not(.accessibility) :is(.nav-tabs,.nav-pills) .nav-link.active{background:var(--kamerton-brown);border-color:var(--kamerton-brown);color:#fff}
body#st-page:not(.accessibility) .alert-info{background:#f4eee4;border-color:var(--kamerton-line);color:var(--kamerton-brown-dark)}
body#st-page:not(.accessibility) span.info-main{background:var(--kamerton-brown);color:#fff}
body#st-page:not(.accessibility) :is(.modal-content,.dropdown-menu){border-color:var(--kamerton-line)}
body#st-page:not(.accessibility) .modal-header{background:var(--kamerton-cream);border-bottom-color:var(--kamerton-line);color:var(--kamerton-brown-dark)}
body#st-page:not(.accessibility) .dropdown-item:is(:active,.active){background:var(--kamerton-brown);color:#fff}
body#st-page:not(.accessibility) .dropdown-item:hover{background:var(--kamerton-cream);color:var(--kamerton-brown-dark)}
body#st-page:not(.accessibility) .mod-tagspopular.tagspopular ul li{background:var(--kamerton-brown)!important}
body#st-page:not(.accessibility) .mod-tagspopular.tagspopular ul li:hover{background:var(--kamerton-brown-dark)!important}
body#st-page:not(.accessibility) .k-ui-namespace .label.badge.bg-warning{background:#ead9bc!important;color:var(--kamerton-brown-dark)}
body#st-page:not(.accessibility) :is(.com-finder,.finder) mark{background:#ead9bc;color:var(--kamerton-brown-dark)}
body#st-page:not(.accessibility) #cookieBanner{background:var(--kamerton-brown-dark)}
body#st-page:not(.accessibility) :is(.btn,.page-link,.form-control,.form-select,.custom-select):focus-visible{outline:2px solid var(--kamerton-gold)!important;outline-offset:2px}
@media(forced-colors:active){body#st-page:not(.accessibility) :is(.btn,.page-link,.form-control,.form-select,.custom-select):focus-visible{outline-color:Highlight!important}}

/* Preserve validation feedback over the neutral field styling. */
body#st-page:not(.accessibility) :is(.form-control,.form-select):is(.is-invalid,.invalid,[aria-invalid="true"]),
body#st-page:not(.accessibility) .was-validated :is(.form-control,.form-select):invalid{border-color:#dc3545}
body#st-page:not(.accessibility) :is(.form-control,.form-select):is(.is-invalid,.invalid,[aria-invalid="true"]):focus,
body#st-page:not(.accessibility) .was-validated :is(.form-control,.form-select):invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}
body#st-page:not(.accessibility) :is(.form-control,.form-select).is-valid{border-color:#28a745}

/* Remaining template promo controls and the accessibility launcher. */
body#st-page:not(.accessibility) .readmore-home-module{background:var(--kamerton-brown);border-color:var(--kamerton-brown);color:#fff}
body#st-page:not(.accessibility) .readmore-home-module:hover{background:var(--kamerton-brown-dark);color:#fff;opacity:1}
body#st-page:not(.accessibility) .readmore-home-module:focus-visible{outline:2px solid var(--kamerton-gold);outline-offset:3px}
body#st-page:not(.accessibility) .home-module-latest-text{background:var(--kamerton-brown)}
body#st-page:not(.accessibility) .home-module-latest-text :is(h3,a){color:#fff}
body#st-page:not(.accessibility) ._access-icon._access{background:var(--kamerton-brown)!important;color:#fff!important}
body#st-page:not(.accessibility) ._access-icon._access:hover{background:var(--kamerton-brown-dark)!important}

body#st-page:not(.accessibility) :is(.newsflash-title,.newsflash-title a){color:var(--kamerton-brown)}
body#st-page:not(.accessibility) .newsflash-title a:hover{color:var(--kamerton-brown-dark)}
body#st-page:not(.accessibility) .home-module-latest-text :is(.newsflash-title,.newsflash-title a){color:#fff}
body#st-page:not(.accessibility) :is(h1,h2,h3):is(.header-1,.header-2){color:var(--kamerton-brown)}
body#st-page:not(.accessibility) :is(h1,h2,h3):is(.header-1,.header-2)::before,
body#st-page:not(.accessibility) :is(h1,h2,h3):is(.header-1,.header-2)::after{border-bottom-color:var(--kamerton-gold)}

/* Compact header search; let autocomplete occupy the available input column. */
body#st-page #st-top #kamerton-search{right:0;top:calc(100% + 8px);width:min(440px,calc(100vw - 32px));padding:18px;border-radius:12px;box-shadow:0 12px 32px rgba(59,29,22,.14);box-sizing:border-box}
body#st-page #kamerton-search search,body#st-page #kamerton-search form{display:block;width:100%;margin:0}
body#st-page #kamerton-search .input-group{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;width:100%;flex-wrap:nowrap}
body#st-page #kamerton-search .awesomplete{display:block;width:100%;min-width:0}
body#st-page #kamerton-search .form-control{width:100%;min-width:0;height:46px;padding:10px 13px;font-size:15px;line-height:24px;border-radius:8px!important;box-sizing:border-box}
body#st-page #kamerton-search .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:46px;margin:0!important;padding:10px 17px!important;white-space:nowrap;font-size:15px;line-height:24px;border-radius:8px!important;box-sizing:border-box}
body#st-page #kamerton-search .btn span{margin:0}
body#st-page #kamerton-search .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body#st-page #kamerton-search .awesomplete>ul{min-width:100%;max-width:100%;margin-top:6px;border:1px solid #D7B56D;border-radius:8px;box-shadow:0 6px 16px rgba(59,29,22,.12);overflow:hidden}
body#st-page:not(.accessibility) #kamerton-search .awesomplete>ul>li{color:var(--kamerton-brown-dark);background:#fffefa}
body#st-page:not(.accessibility) #kamerton-search .awesomplete>ul>li:is(:hover,[aria-selected="true"]){color:var(--kamerton-brown-dark);background:#f4eee4}
body#st-page:not(.accessibility) #kamerton-search .awesomplete mark{color:var(--kamerton-brown-dark);background:#ead9bc}
@media(max-width:480px){body#st-page #st-top #kamerton-search{padding:16px}body#st-page #kamerton-search .input-group{grid-template-columns:minmax(0,1fr)}body#st-page #kamerton-search .btn{width:100%}}

body#st-page #kamerton-search .form-control:focus-visible{outline:none!important;box-shadow:0 0 0 3px rgba(190,148,100,.22)}

/* Legacy article editor colours follow the school palette. */
body#st-page:not(.accessibility) .com-content-article :is([style*="#ff0000" i],[style*="#0000ff" i],[style*="#000066" i],[style*="#009900" i],[style*="#66cc66" i],[style*="color: blue" i],[style*="color: red" i]){color:var(--kamerton-brown)!important}
body#st-page:not(.accessibility) .com-content-article a{color:var(--kamerton-brown)}
body#st-page:not(.accessibility) .com-content-article a:hover{color:var(--kamerton-brown-dark)}
