/* Shared compact navigation — 28 September 2026. Body/reader text is unchanged. */
:root{--trbs-header-height:calc(110px + env(safe-area-inset-top))}
html{scroll-padding-top:calc(var(--trbs-header-height) + 12px)}
#trbs-navigation-root{position:sticky;top:0;z-index:40}
.trbs-shell{position:sticky;top:0;z-index:40}
#trbs-navigation-root .trbs-shell{position:relative}
.trbs-shell .trbs-account-inner{display:flex;flex-wrap:nowrap;min-height:46px;gap:8px!important}
.trbs-shell .trbs-account-strip,.trbs-shell .trbs-main-header{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.trbs-shell .trbs-header-inner{min-height:64px;gap:18px}
.trbs-shell .trbs-brand{font-size:1.0625rem;line-height:1.15;letter-spacing:-.015em;gap:9px;min-width:0;flex-shrink:1}
.trbs-shell .trbs-brand img{width:34px;height:44px}
.trbs-shell .trbs-header-actions{gap:8px}
.trbs-shell .trbs-circle{width:44px!important;height:44px!important;min-height:44px!important}
.trbs-shell .trbs-network-trigger,.trbs-shell .trbs-site-trigger,.trbs-shell .trbs-account-trigger{font-size:.875rem!important;line-height:1.25;min-height:44px;gap:6px;white-space:normal}
.trbs-shell .trbs-network-trigger{flex:1 1 auto;min-width:0;max-width:none;padding:4px 0}
.trbs-shell .trbs-network-trigger>span{overflow-wrap:normal;word-break:normal}
.trbs-shell .trbs-account-trigger{flex:0 1 auto;max-width:40%!important;min-width:0;padding:4px 0}
.trbs-shell .trbs-account-trigger span{white-space:normal;overflow-wrap:normal;word-break:normal;text-align:right}
.trbs-shell .trbs-theme-control{margin-left:auto}
.trbs-shell .trbs-theme-trigger{font-size:.875rem!important;min-height:44px!important;padding:6px 8px!important}
.trbs-shell .trbs-desktop-nav a{font-size:.875rem;min-height:44px}
@media(max-width:600px){
 :root{--trbs-header-height:calc(108px + env(safe-area-inset-top))}
 .trbs-shell .trbs-header-inner{min-height:62px;gap:10px}
 .trbs-shell .trbs-brand{font-size:1rem;gap:8px}
 .trbs-shell .trbs-brand img{width:31px;height:40px}
 .trbs-shell .trbs-account-inner{gap:6px!important}
 .trbs-shell .trbs-theme-control{flex:0 0 44px;min-width:44px}
 .trbs-shell .trbs-theme-trigger{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important;gap:0!important}
 /* Appearance keeps its accessible label and full choices in the opened menu. */
 .trbs-shell .trbs-theme-trigger>span,.trbs-shell .trbs-theme-trigger>svg:not(:first-child){display:none!important}
 .trbs-shell .trbs-network-trigger{flex:1 1 0;gap:5px;font-size:.875rem!important}
 .trbs-shell .trbs-network-trigger>svg:first-child{display:block;width:16px;height:16px}
 .trbs-shell .trbs-network-trigger>svg:last-child{width:12px;height:12px}
 .trbs-shell .trbs-account-trigger{max-width:43%!important;font-size:.875rem!important;gap:4px}
 .trbs-shell .trbs-account-trigger>svg:last-child{display:none}
 .trbs-shell .trbs-account-trigger>svg:first-child{width:15px;height:15px}
}
@media(max-width:360px){
 .trbs-shell .trbs-account-strip,.trbs-shell .trbs-main-header{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
 .trbs-shell .trbs-network-trigger>svg:first-child,.trbs-shell .trbs-account-trigger>svg:first-child{display:none}
 .trbs-shell .trbs-header-actions{gap:4px}
}
/* Static programme sites retain their own branding and language controls. */
.trbs-compact-utilities{position:sticky;top:0;z-index:40;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 8px;padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));background:#f8fafd;color:#173452;border-bottom:1px solid #d6e0e9}
.trbs-compact-utilities .trbs-network-standalone{padding:0;background:transparent;border:0;min-width:0}
.trbs-compact-utilities .trbs-network-trigger{font-size:.875rem!important;min-height:44px;line-height:1.25}
.trbs-compact-utilities [data-trbs-static-theme]{padding:0;background:transparent;border:0}
.trbs-compact-utilities .trbs-theme-label{gap:4px;flex-wrap:nowrap}
.trbs-compact-utilities .trbs-theme-label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.trbs-compact-utilities .trbs-theme-label select{min-height:44px!important;padding:4px 6px!important;font-size:1rem!important;max-width:145px}
.trbs-compact-utilities .trbs-language-choice{grid-column:1/-1;display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;padding:0!important;gap:4px!important;background:transparent!important}
.trbs-compact-utilities .trbs-language-choice button{font-size:.875rem!important;min-height:44px;min-width:44px;padding:4px 9px!important}
html[data-trbs-theme=dark] .trbs-compact-utilities{background:#12263b;color:#e7edf5;border-color:#36506b}
body:has(.trbs-compact-utilities)>.header{padding:12px max(16px,4vw);gap:16px}
body:has(.trbs-compact-utilities)>.header .brand{font-size:.875rem;gap:10px;line-height:1.25}
body:has(.trbs-compact-utilities)>.header .brand strong{font-size:1rem}
body:has(.trbs-compact-utilities)>.header .brand img{width:48px}
body:has(.trbs-compact-utilities)>.header nav{gap:16px;font-size:.875rem;flex-wrap:wrap}
body:has(.trbs-compact-utilities)>.header nav>a{min-height:44px;display:inline-flex;align-items:center}
body:has(.trbs-compact-utilities)>header:not(.header){min-height:76px;padding:10px max(16px,3vw);gap:12px}
body:has(.trbs-compact-utilities)>header .identity{gap:10px;min-width:0}
body:has(.trbs-compact-utilities)>header .identity img{width:42px;height:50px}
body:has(.trbs-compact-utilities)>header .identity h1{font-size:1.25rem;line-height:1.2}
body:has(.trbs-compact-utilities)>header .website{font-size:.875rem;min-height:44px;display:flex;align-items:center}
@media(max-width:700px){body:has(.trbs-compact-utilities)>.header{align-items:flex-start;flex-wrap:wrap}body:has(.trbs-compact-utilities)>.header nav{width:100%;gap:4px 16px}}
@media print{.trbs-compact-utilities{display:none!important}}

.trbs-bottom span{overflow-wrap:normal!important;word-break:normal!important;white-space:nowrap;letter-spacing:-.015em}
