/* Shared Ti-Ratana navigation. Keep this file identical across connected services. */
:root{--trbs-blue:#023f87;--trbs-pink:#f05b89;--trbs-header-height:124px}
html{scroll-padding-top:140px;-webkit-text-size-adjust:100%}
body{min-width:0}
.trbs-shell,.trbs-bottom,.trbs-popover,.trbs-drawer{font-family:Inter,Arial,'Noto Sans',sans-serif;font-size:15px;line-height:1.45;letter-spacing:normal;text-transform:none;box-sizing:border-box}
.trbs-shell *,.trbs-bottom *,.trbs-popover *,.trbs-drawer *{box-sizing:border-box}
.trbs-shell a,.trbs-bottom a,.trbs-popover a,.trbs-drawer a{text-decoration:none}
.trbs-shell button,.trbs-bottom button,.trbs-drawer button{font:inherit;cursor:pointer;box-shadow:none;touch-action:manipulation}
.trbs-shell svg,.trbs-bottom svg,.trbs-drawer svg,.trbs-popover svg{flex-shrink:0;width:auto}
.trbs-shell{position:relative;z-index:30;width:100%;background:#fff;color:var(--trbs-blue)}
.trbs-account-strip{border-bottom:1px solid #e5eaf1;padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));background:#f8fafd}
.trbs-account-inner{max-width:1320px;margin:auto;display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:40px}
.trbs-service-name{font-size:12px;font-weight:600;letter-spacing:.025em;flex-shrink:0;color:#596b80}
.trbs-account-trigger{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-height:40px;max-width:min(65%,420px);min-width:0;background:none;border:0;padding:5px 0;color:var(--trbs-blue);font-size:13px!important;font-weight:500;border-radius:0}
.trbs-account-trigger span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trbs-main-header{display:block;position:static;inset:auto;width:100%;max-width:none;margin:0;padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));background:#fff;border:0;border-bottom:1px solid #dfe5ed;box-shadow:none;color:var(--trbs-blue)}
.trbs-header-inner{display:flex;align-items:center;gap:28px;min-height:84px;max-width:1320px;margin:auto}
.trbs-brand{display:flex;gap:12px;align-items:center;min-width:0;flex-shrink:0;color:var(--trbs-blue)!important;margin-right:auto;font-size:19px;font-weight:750;line-height:1.08;letter-spacing:-.5px}
.trbs-brand img{width:45px;height:56px;object-fit:contain;display:block;border:0;border-radius:0;margin:0;max-width:none}
.trbs-brand span{display:block}
.trbs-header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.trbs-circle{display:flex!important;align-items:center;justify-content:center;width:46px!important;height:46px!important;min-height:46px!important;padding:0!important;border:1px solid #dbe2ea!important;border-radius:50%!important;background:#fff!important;color:var(--trbs-blue)!important}
.trbs-circle:hover{background:#f0f5fb!important;border-color:#adbed3!important}
.trbs-desktop-nav{display:flex;align-items:center;gap:20px;position:static;background:none;padding:0;border:0;box-shadow:none;width:auto;margin:0}
.trbs-desktop-nav a{display:flex;align-items:center;min-height:44px;font-size:14px;font-weight:600;color:#52647b;border-bottom:2px solid transparent;white-space:nowrap}
.trbs-desktop-nav a[aria-current]{color:var(--trbs-blue);border-bottom-color:var(--trbs-pink)}
.trbs-popover{z-index:80!important;width:278px!important;min-width:0!important;max-width:calc(100vw - 32px)!important;max-height:min(65dvh,var(--radix-dropdown-menu-content-available-height,65vh))!important;overflow:auto!important;overscroll-behavior:contain;padding:8px!important;background:#fff!important;color:#173759!important;border:1px solid #dbe3ee!important;border-radius:16px!important;box-shadow:0 12px 40px #12304b24!important;animation-duration:150ms}
.trbs-popover [role=menuitem]{display:flex;align-items:center;gap:10px;min-height:46px;padding:11px 12px;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:9px;color:#173759;background:transparent;font-size:14px;line-height:1.45;cursor:pointer;outline:none}
.trbs-popover [role=menuitem][data-highlighted]{background:#edf3fb;color:var(--trbs-blue)}
.trbs-popover [role=menuitem]>svg{width:18px;height:18px;flex-shrink:0}
.trbs-language-menu [role=menuitem]{justify-content:space-between}
.trbs-menu-label{margin:4px 12px 8px!important;font-size:11px!important;letter-spacing:.06em;font-weight:700;color:#6b7b8f;text-transform:uppercase}
.trbs-menu-note,.trbs-menu-notice{margin:8px 12px!important;font-size:12px!important;line-height:1.5;color:#66768b}
.trbs-bottom{display:none}
.trbs-drawer{position:fixed!important;inset:0 auto 0 0!important;z-index:65!important;width:min(370px,calc(100vw - 32px))!important;max-width:none!important;height:100vh!important;height:100dvh!important;max-height:100dvh;display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;border:0!important;background:#023f87!important;color:#fff!important;overflow:hidden;box-shadow:12px 0 60px #001d4450!important}
body:has(.trbs-drawer) [data-slot=sheet-overlay]{position:fixed;inset:0;z-index:60;background:rgba(10,24,43,.48);backdrop-filter:blur(2px)}
.trbs-drawer-head{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:8px;padding:calc(20px + env(safe-area-inset-top)) 16px 22px 22px;border-bottom:1px solid #ffffff26}
.trbs-drawer-head>div{display:flex;align-items:center;gap:12px;min-width:0}
.trbs-drawer-head img{display:block;background:#fff;border-radius:12px;padding:5px;width:52px;height:58px;object-fit:contain;flex-shrink:0}
.trbs-drawer-head [data-slot=sheet-title]{font:700 19px/1.2 Inter,Arial,sans-serif;color:#fff;letter-spacing:-.3px;margin:0 0 6px;overflow-wrap:anywhere}
.trbs-drawer-head [data-slot=sheet-description]{color:#c4d6ee;font:12px/1.4 Inter,Arial,sans-serif;margin:0}
.trbs-drawer-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid #ffffff40;border-radius:50%;background:transparent;color:#fff}
.trbs-drawer-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:24px 16px}
.trbs-drawer-label{color:#bdd0eb;font:700 10px/1.5 Inter,Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase;margin:0 10px 12px}
.trbs-drawer-local,.trbs-site-links{display:flex;flex-direction:column;position:static;gap:3px;width:100%;padding:0;margin:0;background:none;box-shadow:none;border:0}
.trbs-drawer-local>a{display:flex;align-items:center;gap:13px;min-height:46px;color:#fff;padding:11px 12px;border-radius:9px;font-size:14px;font-weight:500;line-height:1.45;overflow-wrap:anywhere}
.trbs-drawer-local>a:hover,.trbs-drawer-local>a[aria-current]{background:#ffffff19;color:white}
.trbs-drawer-local>a[aria-current]{box-shadow:inset 3px 0 0 #ff8aaa}
.trbs-sites-label{padding-top:24px;margin-top:20px;border-top:1px solid #ffffff26}
.trbs-site-links>a{display:flex;align-items:center;gap:12px;min-height:66px;padding:12px;border-radius:10px;color:#fff!important}
.trbs-site-links>a:hover,.trbs-site-links>a[data-current]{background:#ffffff12}
.trbs-site-links>a>span:not(.trbs-current-dot){flex:1;min-width:0}
.trbs-site-links strong{display:block;font-size:14px;font-weight:600;line-height:1.4;color:#fff}
.trbs-site-links small{display:block;font-size:11px;line-height:1.5;color:#bdd0eb;margin-top:3px}
.trbs-current-dot{width:7px;height:7px;border-radius:50%;background:#ff92b1;margin:5px}
.trbs-drawer-foot{flex-shrink:0;padding:18px 26px calc(20px + env(safe-area-inset-bottom));background:#003674;border-top:1px solid #ffffff24}
.trbs-motto-mark{display:block;background:var(--trbs-pink);width:30px;height:3px;border-radius:3px;margin-bottom:12px}
.trbs-drawer-foot p{margin:0 0 4px;font-size:13px;line-height:1.4;color:#fff;font-weight:600}
.trbs-drawer-foot small{font-size:11px;color:#bdd0eb}
.trbs-shell :focus-visible,.trbs-bottom :focus-visible,.trbs-popover :focus-visible,.trbs-drawer :focus-visible{outline:3px solid #f05b89;outline-offset:3px}
/* Legacy page headers are replaced by this shared shell. Local task toolbars remain. */
body[data-trbs-site=app]>.utility,body[data-trbs-site=app]>.app-header,body[data-trbs-site=app]>.bottom-nav,body[data-trbs-site=app]>#mobile-menu,body[data-trbs-site=app]>.menu-backdrop,body[data-trbs-site=courses]>header:not(.trbs-main-header){display:none!important}
body[data-trbs-site=hub] .bottom-nav{display:none!important}
body[data-trbs-site=hub] .topbar{position:static}
body[data-trbs-site=hub] .topbar .choice,body[data-trbs-site=hub] .topbar .avatar{display:none}
body[data-trbs-site=hub] [data-slot=sidebar-container],body[data-trbs-site=learning] [data-slot=sidebar-container]{top:var(--trbs-header-height);height:calc(100svh - var(--trbs-header-height))}
body[data-trbs-site=learning] .workspace-header{position:static}
body[data-trbs-site=learning] .workspace-header .account{display:none}
@media(max-width:1100px){
 :root{--trbs-header-height:116px}
 .trbs-desktop-nav{display:none}
 .trbs-header-inner{min-height:76px;gap:12px}
 .trbs-brand{font-size:17px;gap:10px}
 .trbs-brand img{width:38px;height:48px}
 .trbs-bottom{position:fixed;inset:auto 0 0;z-index:35;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));margin:0;background:rgba(255,255,255,.97);border:0;border-top:1px solid #dbe3ed;box-shadow:0 -3px 18px #16365a06;backdrop-filter:blur(16px)}
 .trbs-bottom>a,.trbs-bottom>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:55px;padding:6px 2px;color:#596b82;background:none;border:0;border-radius:12px;font:500 11px/1.2 Inter,Arial,sans-serif;text-align:center;letter-spacing:0;text-transform:none}
 .trbs-bottom span{display:block;max-width:100%;overflow-wrap:anywhere}
 .trbs-bottom [aria-current],.trbs-bottom button[aria-expanded=true]{background:#eaf1fc;color:var(--trbs-blue);font-weight:700}
 body:has(.trbs-bottom){padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
 body[data-trbs-site=hub] [data-slot=sidebar-container],body[data-trbs-site=hub] [data-slot=sidebar-gap],body[data-trbs-site=learning] [data-slot=sidebar-container],body[data-trbs-site=learning] [data-slot=sidebar-gap]{display:none!important}
 body[data-trbs-site=hub] .app-main{width:100%;min-width:0}
 body[data-trbs-site=hub]>.trbs-legal{margin-left:0}
 body[data-trbs-site=courses] .rail{display:none}
 body[data-trbs-site=courses] .shell{display:block}
 body[data-trbs-site=forum] .community-sidebar{display:none}
 body[data-trbs-site=forum] .community-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:400px){.trbs-account-strip,.trbs-main-header{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}.trbs-header-actions{gap:7px}.trbs-circle{width:44px!important;height:44px!important;min-height:44px!important}.trbs-brand{font-size:15px;gap:8px}.trbs-brand img{width:33px;height:43px}.trbs-service-name{font-size:11px}.trbs-account-trigger{font-size:12px!important;gap:4px;max-width:64%}.trbs-bottom>a,.trbs-bottom>button{font-size:10px}}
@media(max-height:500px){.trbs-drawer-head{padding-top:12px;padding-bottom:12px}.trbs-drawer-foot{padding-top:10px;padding-bottom:10px}.trbs-drawer-foot small,.trbs-motto-mark{display:none}}
@media(prefers-reduced-motion:reduce){.trbs-drawer,.trbs-popover{animation:none!important;transition:none!important}}
@media print{.trbs-shell,.trbs-bottom,.trbs-drawer{display:none!important}body:has(.trbs-bottom){padding-bottom:0!important}}

.trbs-shell{position:sticky;top:0}
#trbs-navigation-root{position:sticky;top:0;z-index:30}
#trbs-navigation-root .trbs-shell{position:relative}
.trbs-more{margin-top:8px;border:0;padding:0;background:none}
.trbs-more>summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:11px 12px;color:#d8e5f8;font-size:13px;font-weight:600;cursor:pointer;list-style:none;border-radius:9px}
.trbs-more>summary::-webkit-details-marker{display:none}
.trbs-more>summary:hover{background:#ffffff12}
.trbs-more[open]>summary svg{transform:rotate(180deg)}
.trbs-more:not([open])>nav{display:none}
.trbs-more[open]>nav{display:flex}
.trbs-drawer-scroll{scrollbar-width:thin;scrollbar-color:#769aca transparent}
.trbs-account-strip{padding-top:env(safe-area-inset-top)}
:root{--trbs-header-height:calc(124px + env(safe-area-inset-top))}
@media(max-width:1100px){:root{--trbs-header-height:calc(116px + env(safe-area-inset-top))}}
