/* Shared brand layer; load AFTER every page stylesheet. Semantic status colours are intentionally untouched. */
html[data-bs-theme="light"] {color-scheme:light}
html[data-bs-theme="dark"] {color-scheme:dark}
html[data-brand] {accent-color:var(--action)}
html[data-brand] ::selection{background:var(--accent-soft);color:var(--ink)}
html[data-brand] .btn-brand,html[data-brand] .btn-primary{--bs-btn-bg:var(--action);--bs-btn-color:var(--action-text);--bs-btn-border-color:var(--action);--bs-btn-hover-bg:var(--action-hover);--bs-btn-hover-color:var(--action-hover-text);--bs-btn-hover-border-color:var(--action-hover);--bs-btn-active-bg:var(--action-hover);--bs-btn-active-color:var(--action-hover-text);--bs-btn-focus-shadow-rgb:var(--action-rgb);background:var(--action);color:var(--action-text);border-color:var(--action)}
html[data-brand] .btn-brand:hover,html[data-brand] .btn-brand:focus,html[data-brand] .btn-primary:hover{background:var(--action-hover);border-color:var(--action-hover);color:var(--action-hover-text)}
html[data-brand] .btn-brand:active{background:var(--action-hover)!important;color:var(--action-hover-text)!important}
html[data-brand] .btn-outline-primary{--bs-btn-color:var(--brand);--bs-btn-border-color:var(--brand);--bs-btn-hover-bg:var(--action);--bs-btn-hover-border-color:var(--action);--bs-btn-hover-color:var(--action-text);--bs-btn-active-bg:var(--action);--bs-btn-active-color:var(--action-text)}
html[data-brand] .form-check-input:checked,html[data-brand] .ap-stepper button.active span{background-color:var(--action);border-color:var(--action);color:var(--action-text)}
html[data-brand] .form-control:focus,html[data-brand] .form-select:focus{border-color:var(--brand);box-shadow:0 0 0 .2rem var(--bs-focus-ring-color)}
html[data-brand] .progress{--bs-progress-bar-bg:var(--action)}
html[data-brand] .pagination{--bs-pagination-active-bg:var(--action);--bs-pagination-active-border-color:var(--action);--bs-pagination-active-color:var(--action-text);--bs-pagination-color:var(--brand);--bs-pagination-focus-color:var(--brand)}
html[data-brand] .nav-pills{--bs-nav-pills-link-active-bg:var(--action);--bs-nav-pills-link-active-color:var(--action-text)}
html[data-brand] .text-bg-primary{color:var(--action-text)!important}
html[data-brand] .dropdown-menu{--bs-dropdown-link-active-bg:var(--action);--bs-dropdown-link-active-color:var(--action-text)}
/* The supplied images are unaltered: no crop, filter, recolouring or distortion. */
.brand-image{width:51px;height:51px;object-fit:contain;flex-shrink:0;background:#fff;border:1px solid rgba(128,138,155,.2);border-radius:3px}
.brand.has-brand-image{gap:11px;min-width:0;white-space:normal;align-items:center}
.brand.has-brand-image .brand-lockup{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:188px}
.brand.has-brand-image .brand-word{font:700 25px/1.05 var(--body-font);letter-spacing:-.65px}
.brand.has-brand-image .brand-full{font-size:9px;line-height:1.4;display:block;max-width:185px;font-weight:500}
.brand.has-brand-image .brand-dot,.brand.has-brand-image .brand-divider{display:none}
.ap-sidebar-brand.has-brand-image{padding:12px 19px;gap:10px;height:85px;align-items:center}
.ap-sidebar-brand.has-brand-image .brand-image{width:46px;height:46px}
.ap-sidebar-brand .brand-lockup{min-width:0;display:flex;flex-direction:column;gap:3px}
.ap-sidebar-brand.has-brand-image .brand-word{font:700 21px/1.1 var(--body-font);letter-spacing:-.4px}
.ap-sidebar-brand.has-brand-image small{border:0;padding:0;font-size:8px;letter-spacing:1px;line-height:1.5}
.ap-mobile-brand.has-brand-image{gap:7px}
.ap-mobile-brand.has-brand-image .brand-image{width:31px;height:31px}
.ap-mobile-brand.has-brand-image .brand-word{font:700 16px/1.1 var(--body-font);letter-spacing:-.4px}
html[data-brand] .hero-event,html[data-brand] .editorial-art,html[data-brand] .membership-emblem,html[data-brand] .cf-art,html[data-brand] .auth-story,html[data-brand] .ap-event-card,html[data-brand] .video-panel,html[data-brand] .r-art,html[data-brand] .r-csoc-hero .r-art,html[data-brand] .il-cover:not(.gold){background:var(--panel);color:var(--panel-text);border-color:var(--panel-line)}
html[data-brand] .cf-cta,html[data-brand] .r-cta.dark,html[data-brand] .il-cta,html[data-brand] .mission-panel.vision{background:var(--navy);color:var(--panel-text);border-color:var(--panel-line)}
html[data-brand] .hero-event h2,html[data-brand] .auth-story h2,html[data-brand] .cf-cta h2,html[data-brand] .r-cta.dark h2,html[data-brand] .membership-emblem .emblem-title,html[data-brand] .cf-art-footer strong,html[data-brand] .mission-panel.vision p{color:var(--panel-text)}
html[data-brand] .auth-story p,html[data-brand] .auth-path-row small,html[data-brand] .auth-story-footer,html[data-brand] .cf-art-top,html[data-brand] .cf-art-footer,html[data-brand] .cf-cta p,html[data-brand] .r-cta.dark p,html[data-brand] .ap-event-card p,html[data-brand] .ap-event-card .eyebrow,html[data-brand] .il-cta p,html[data-brand] .art-caption,html[data-brand] .editorial-art p,html[data-brand] .emblem-caption,html[data-brand] .emblem-bottom,html[data-brand] .r-art-body span{color:var(--panel-muted)}
html[data-brand] .auth-story .eyebrow,html[data-brand] .auth-story h2 em,html[data-brand] .auth-path-row>span,html[data-brand] .auth-path-row .ap-icon,html[data-brand] .cf-art-year,html[data-brand] .ap-event-card .ap-year,html[data-brand] .ap-event-card a,html[data-brand] .cf-cta .eyebrow,html[data-brand] .r-cta.dark .eyebrow,html[data-brand] .emblem-top>.icon,html[data-brand] .mission-panel.vision .panel-foot,html[data-brand] .mission-panel.vision .panel-top .icon,html[data-brand] .il-cover:not(.gold) .il-cover-year{color:var(--panel-accent)}
html[data-brand] .auth-path,html[data-brand] .auth-path-row,html[data-brand] .cf-art-footer{border-color:var(--panel-line)}
html[data-brand] .auth-path-row strong{color:var(--panel-text)}
html[data-brand] .auth-story .brand,html[data-brand] .site-footer .brand{color:var(--panel-text)}
html[data-brand] .auth-story .brand-full{color:var(--panel-muted)}
html[data-brand] .cf-cta .btn,html[data-brand] .r-cta.dark .btn,html[data-brand] .il-cta .btn{background:var(--panel-text);border-color:var(--panel-text);color:var(--navy)}
html[data-brand] .g-video-poster{background:radial-gradient(ellipse at 65% 30%,var(--panel) 0,transparent 65%),var(--navy)}
html[data-brand] .g-recording-poster,html[data-brand] .g-art.v1{background:var(--panel);color:var(--panel-muted)}
html[data-brand] .g-art:not(.v1):not(.v2):not(.v3){background:var(--soft);color:var(--brand)}
html[data-brand] .g-art.v1:before,html[data-brand] .g-art:before{box-shadow:none}
html[data-brand] .site-footer a:hover,html[data-brand] .utility-bar a:hover{color:var(--panel-accent)}
html[data-brand] .hero-event .event-bottomline{border-color:var(--panel-line)}
html[data-brand] .btn-white{background:#F5F7FD;color:var(--navy);border-color:#F5F7FD}
/* Floating control and a keyboard-accessible Bootstrap drawer. */
.appearance-launcher{position:fixed;z-index:1034;right:22px;bottom:78px;border:1px solid var(--line);border-radius:30px;background:var(--surface);color:var(--ink);display:flex;align-items:center;gap:10px;padding:11px 15px;font-size:11px;font-weight:600;box-shadow:0 5px 25px rgba(10,20,40,.13)}
.appearance-launcher:hover{border-color:var(--brand);color:var(--brand)}
.appearance-dots{display:grid;grid-template-columns:repeat(2,7px);gap:3px}
.appearance-dots i{display:block;width:7px;height:7px;border-radius:50%;background:var(--brand-primary)}
.appearance-dots i:nth-child(2){background:var(--brand-accent)}.appearance-dots i:nth-child(3){background:var(--brand)}.appearance-dots i:nth-child(4){background:var(--muted)}
#appearanceDrawer{--bs-offcanvas-width:420px;background:var(--surface);color:var(--ink);border-left:1px solid var(--line);z-index:100060!important}
.offcanvas-backdrop{z-index:100055!important}
body.cber-drawer-open #wrap_modal,body.cber-drawer-open .st-sticky-share-buttons,body.cber-drawer-open .appearance-launcher{opacity:0!important;pointer-events:none!important;visibility:hidden!important}
.appearance-tpl-list{display:flex;flex-direction:column;gap:8px}
.appearance-tpl-link{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);text-decoration:none!important;transition:border-color .15s ease,background-color .15s ease}
.appearance-tpl-link:hover{border-color:var(--brand);background:var(--tint);color:var(--ink)}
.appearance-tpl-link.is-active{border-color:var(--brand);background:var(--soft);box-shadow:inset 0 0 0 1px var(--brand)}
.appearance-tpl-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.appearance-tpl-head strong{font-size:12.5px;font-weight:650;color:var(--ink)}
.appearance-tpl-link.is-active .appearance-tpl-head strong{color:var(--brand)}
.appearance-tpl-badge{font-size:10px;font-weight:700;padding:2px 7px;border-radius:999px;background:var(--action);color:var(--action-text);line-height:1.4;flex-shrink:0}
.appearance-tpl-link small{font-size:11.5px;line-height:1.45;color:var(--muted)}
.appearance-footer-status{margin:0 0 8px;min-height:0}
.appearance-footer-status:empty{display:none}
#appearanceDrawer .offcanvas-header{display:flex;align-items:flex-start;padding:25px 25px 17px;border-bottom:1px solid var(--line);gap:15px}
#appearanceDrawer .offcanvas-header h2{font-size:27px;letter-spacing:-.6px;margin:4px 0 0}
#appearanceDrawer .offcanvas-header .eyebrow{font-size:9px;margin:0;letter-spacing:1.5px}
#appearanceDrawer .btn-close{margin:0;padding:10px;flex-shrink:0}
#appearanceDrawer .offcanvas-body{display:block;overflow-y:auto;padding:20px 25px;overscroll-behavior:contain}
.appearance-identity{display:flex;gap:12px;align-items:center;background:var(--tint);border:1px solid var(--line);padding:12px;border-radius:7px;margin-bottom:20px}
.appearance-identity img{width:44px;height:44px;object-fit:contain;background:white;border-radius:2px}
.appearance-identity strong{display:block;font-size:14px;line-height:1.3}.appearance-identity small{font-size:10px;color:var(--muted);display:block;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.appearance-section{border:0;border-top:1px solid var(--line);padding:18px 0 0;margin:0 0 20px;min-width:0}
.appearance-section legend{float:none;font-size:11px;font-weight:700;line-height:1.5;margin:0 0 12px;letter-spacing:.1px;padding:0;width:auto}
.appearance-note{font-size:10px;line-height:1.6;color:var(--muted);margin:10px 0 0}
.appearance-mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.appearance-mode button{border:1px solid var(--line);background:var(--surface);color:var(--muted);padding:12px 5px;border-radius:5px;font-size:11px;display:flex;align-items:center;justify-content:center;gap:7px}
.appearance-mode svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.appearance-mode button[aria-pressed=true]{background:var(--soft);color:var(--brand);border-color:var(--brand);font-weight:600}
.appearance-brands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.appearance-brand-choice{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:5px;padding:10px 6px;display:flex;align-items:center;flex-direction:column;gap:7px;font-size:10px;font-weight:650;position:relative}
.appearance-brand-choice img{width:43px;height:43px;object-fit:contain;background:#fff;border-radius:2px}
.appearance-brand-choice[aria-pressed=true]{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand);background:var(--soft)}
.appearance-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.appearance-palette{min-width:0;position:relative;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink);text-align:left;padding:11px 10px;font-size:10px}
.appearance-palette[aria-pressed=true]{border-color:var(--brand);background:var(--soft);font-weight:600}
.appearance-palette[aria-pressed=true]:after{content:'✓';margin-left:auto;font-size:11px;color:var(--brand)}
.palette-pair{display:flex;align-items:center;flex-shrink:0}.palette-pair i{width:15px;height:22px;background:var(--swatch-primary);display:block;border:1px solid rgba(80,90,110,.15);border-radius:4px 0 0 4px}.palette-pair i+i{background:var(--swatch-accent);border-radius:0 4px 4px 0}
.appearance-default{width:100%;margin-bottom:9px}.appearance-custom summary{font-size:11px;cursor:pointer;font-weight:650;padding:8px 0}.appearance-custom{margin-top:10px}
.appearance-color-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.appearance-color-row label{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}
.appearance-color-input{display:flex;align-items:center;gap:7px}.appearance-color-input input[type=color]{appearance:none;border:1px solid var(--line);background:var(--surface);padding:3px;width:33px;height:34px;border-radius:4px;flex-shrink:0;cursor:pointer}
.appearance-color-input input[type=text]{width:100%;min-width:0;letter-spacing:.2px;font:11px var(--body-font);padding:7px;border:1px solid var(--line);color:var(--ink);background:var(--surface);border-radius:4px;height:34px}
.appearance-color-input input[aria-invalid=true]{border-color:#b63838}
.appearance-feedback{font-size:10px;line-height:1.6;color:var(--brand);margin:8px 0 0;min-height:16px}
.appearance-preview{border:1px solid var(--line);border-radius:6px;padding:14px;background:var(--page);margin-top:17px}.appearance-preview span{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}.appearance-preview .btn{font-size:10px;padding:8px 12px;pointer-events:none}.appearance-preview a{color:var(--brand);font-size:10px;margin-left:12px}
.appearance-drawer-footer{padding:16px 25px 20px;border-top:1px solid var(--line);background:var(--surface);font-size:10px}
.appearance-drawer-footer>button{width:100%;padding:11px}
.appearance-footer-links{display:flex;gap:15px;justify-content:space-between;margin-top:12px;color:var(--muted)}
.appearance-storage{font-size:9px;line-height:1.6;margin-top:10px;color:var(--muted)}
/* Brand studio and domain configuration. */
.brand-studio{padding:60px 0 80px}.brand-studio h1{font-size:clamp(39px,4.5vw,63px);max-width:660px;line-height:1.07;margin:19px 0 25px}.brand-studio .studio-lead{font-size:14px;color:var(--muted);max-width:550px;line-height:1.85}
.studio-hero{display:grid;grid-template-columns:1.12fr 1fr;gap:55px;align-items:center;margin-bottom:50px}.studio-hero-art{background:var(--panel);color:var(--panel-text);padding:32px;border-radius:9px;overflow:hidden;position:relative;isolation:isolate}.studio-hero-art:before{content:'';position:absolute;z-index:-1;width:270px;height:270px;border:1px solid var(--panel-line);border-radius:50%;right:-110px;top:-90px}
.studio-hero-art .eyebrow{color:var(--panel-accent)}.studio-hero-art h2{font-size:34px;color:var(--panel-text);max-width:275px;line-height:1.15;margin-bottom:25px}.studio-logo-row{display:flex;gap:13px;margin:25px 0}.studio-logo-row img{width:63px;height:63px;object-fit:contain;border-radius:5px;background:white;padding:3px}.studio-hero-art p{color:var(--panel-muted);font-size:11px;margin:0}
.studio-section-title{display:flex;justify-content:space-between;gap:15px;align-items:end;margin:45px 0 20px}.studio-section-title h2{font-size:27px;margin:0}.studio-section-title p{font-size:11px;color:var(--muted);margin:0}
.studio-brands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.studio-brand-card{background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}.studio-brand-color{height:10px;display:flex}.studio-brand-color span{width:75%;background:var(--swatch-primary)}.studio-brand-color span+span{width:25%;background:var(--swatch-accent)}.studio-brand-content{padding:24px}.studio-brand-content img{width:65px;height:65px;object-fit:contain;background:white;border-radius:4px;margin-bottom:19px}.studio-brand-content h3{font-size:17px;margin-bottom:8px}.studio-brand-content p{font-size:11px;color:var(--muted);min-height:39px;margin-bottom:20px;line-height:1.7}.studio-brand-hex{display:flex;flex-wrap:wrap;gap:10px;font:10px ui-monospace,SFMono-Regular,monospace;margin:18px 0}.studio-brand-hex code{color:var(--muted)}
.studio-brand-card:has([aria-pressed=true]){border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.studio-workspaces{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.studio-workspaces a{padding:17px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font-size:11px;display:flex;justify-content:space-between;gap:12px}.studio-workspaces a:hover{border-color:var(--brand);background:var(--soft)}
.brand-admin-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:25px}.brand-admin-grid>*{min-width:0}.brand-admin-label{font-size:11px;font-weight:600;display:block;margin-bottom:6px}.brand-admin-help{font-size:10px;line-height:1.7;color:var(--muted);margin-top:7px}.brand-admin-field{margin-bottom:20px}.brand-admin-field input,.brand-admin-field select,.brand-admin-field textarea{font-size:12px}.brand-hosts{display:grid;gap:9px}.brand-host{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px;border:1px solid var(--line);border-radius:5px;font-size:11px;overflow-wrap:anywhere}.brand-host strong{font-size:10px;color:var(--brand);flex-shrink:0}.brand-config-preview{background:var(--tint);border:1px solid var(--line);border-radius:5px;max-height:260px;overflow:auto;padding:15px;font-size:10px;line-height:1.7;white-space:pre-wrap;word-break:break-word;color:var(--ink)}.brand-status{font-size:11px;color:var(--brand);min-height:20px;line-height:1.6}.brand-admin-notice{padding:14px 17px;border-left:3px solid var(--brand);background:var(--soft);font-size:11px;line-height:1.8;border-radius:0 4px 4px 0;margin-bottom:24px;color:var(--ink)}
@media(max-width:1199px){.brand.has-brand-image .brand-lockup{max-width:210px}.studio-hero{gap:28px}.brand-studio{padding-top:45px}}
@media(max-width:767px){.brand-studio{padding-top:33px}.studio-hero{grid-template-columns:1fr;gap:25px}.studio-brands{grid-template-columns:1fr}.studio-workspaces{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-section-title{align-items:start;flex-direction:column}.brand-admin-grid{grid-template-columns:1fr}.studio-hero-art{padding:25px}.studio-brand-content p{min-height:0}.appearance-launcher{padding:13px;right:15px;bottom:80px}.appearance-launcher .appearance-launcher-label{display:none}.brand.has-brand-image .brand-word{font-size:22px}.brand.has-brand-image .brand-full{font-size:8px;max-width:160px}.brand-image{width:44px;height:44px}.ap-mobile-brand.has-brand-image .brand-image{width:27px;height:27px}}
@media(max-width:420px){#appearanceDrawer{--bs-offcanvas-width:100vw}#appearanceDrawer .offcanvas-header{padding:20px 19px 15px}#appearanceDrawer .offcanvas-body{padding:17px 19px}.appearance-drawer-footer{padding:14px 19px 18px}.brand.has-brand-image .brand-full{display:none}.brand.has-brand-image .brand-image{width:38px;height:38px}.brand.has-brand-image .brand-word{font-size:20px}.brand.has-brand-image{gap:7px}.ap-mobile-brand.has-brand-image .brand-word{font-size:13px}.ap-mobile-brand.has-brand-image{gap:5px}.ap-top-actions{gap:7px}.studio-workspaces{grid-template-columns:1fr 1fr}.studio-workspaces a{padding:13px}.brand-studio .container{padding-left:20px;padding-right:20px}}
@media(prefers-reduced-motion:reduce){#appearanceDrawer,.offcanvas-backdrop,.appearance-launcher{transition:none!important}}
@media print{.appearance-launcher,#appearanceDrawer,.offcanvas-backdrop,.brand-studio [data-brand-choice],.brand-admin-actions{display:none!important}.brand-image{filter:none!important}}

/* Checked-state glyphs use the same contrast-safe foreground as the selected surface. */
html[data-brand] .form-check-input[type=checkbox]:checked{background-image:var(--brand-check-image)}
html[data-brand] .form-check-input[type=radio]:checked{background-image:var(--brand-radio-image)}
html[data-brand] .form-switch .form-check-input:checked{background-image:var(--brand-switch-image)}
html[data-brand] .form-range::-webkit-slider-thumb{background:var(--action)}
html[data-brand] .form-range::-moz-range-thumb{background:var(--action)}
html[data-brand] .badge.bg-primary{color:var(--action-text)!important}
