/* Veel shared navbar styles — extracted from css/tools.css for pages that have no t4 chrome of their own (e.g. /wrapped).
   Markup comes from partials/nav.html (api/navbar.js); behaviour from js/browse.js. */
:root{--t4-bg:#000;--t4-fg:#fff;--t4-muted:rgba(255,255,255,.66);--t4-faint:rgba(255,255,255,.42);--t4-line:rgba(255,255,255,.12);--t4-window-bg:#08080a;--t4-pill-bg:#fff;--t4-pill-fg:#000;--t4-dot:rgba(255,255,255,.16);--t4-soft:rgba(255,255,255,.06);--t4-softer:rgba(255,255,255,.03)}
html.t4-light{--t4-bg:#e7e8ec;--t4-fg:#0a0a0c;--t4-muted:rgba(0,0,0,.6);--t4-faint:rgba(0,0,0,.44);--t4-line:rgba(0,0,0,.14);--t4-window-bg:#f5f5f7;--t4-pill-bg:#0a0a0c;--t4-pill-fg:#fff;--t4-dot:rgba(0,0,0,.2);--t4-soft:rgba(0,0,0,.05);--t4-softer:rgba(0,0,0,.025)}
.t4-nav{position:fixed; top:8px; left:8px; right:8px; z-index:100; padding:8px 0; transition:background .3s ease; border-radius:26px 26px 0 0;}
.t4-nav-inner{max-width:1300px; margin:0 auto; padding:0 clamp(12px,1.4vw,20px); display:grid; grid-template-columns:1fr auto 1fr; align-items:center;}
.t4-nav.scrolled{background:rgba(0,0,0,.78); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);}
html.t4-light .t4-nav.scrolled{background:rgba(255,255,255,.8);}
.t4-logo{justify-self:start; display:flex; align-items:center; text-decoration:none;}
.t4-logo img{height:30px; width:auto; object-fit:contain;}
html.t4-light .t4-logo img{filter:invert(1);}
.t4-links{justify-self:center; display:flex; gap:clamp(16px,2vw,32px);}
.t4-links a{color:var(--t4-muted); font-size:15px; font-weight:500; text-decoration:none; transition:color .2s ease;}
.t4-links a:hover{color:var(--t4-fg);}
.t4-links a.active{color:var(--t4-fg); font-weight:600;}
.t4-right{justify-self:end; display:flex; align-items:center; gap:12px;}
.t4-pill{display:inline-flex; align-items:center; gap:9px; background:var(--t4-pill-bg); color:var(--t4-pill-fg); font-weight:600; font-size:15px; padding:11px 22px; border-radius:9999px; text-decoration:none; border:none; cursor:pointer; line-height:1; transition:transform .15s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;}
.t4-pill:hover{transform:translateY(-2px); opacity:.9;}
.t4-theme{width:40px; height:40px; border-radius:50%; border:1px solid var(--t4-line); background:transparent; color:var(--t4-fg); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:background .2s ease;}
.t4-theme:hover{background:var(--t4-soft);}
.t4-theme .sun{display:none;}
.t4-theme .moon{display:flex;}
html.t4-light .t4-theme .moon{display:none;}
html.t4-light .t4-theme .sun{display:flex;}
.t4-profile{background:var(--t4-soft); color:var(--t4-fg); border:1px solid var(--t4-line); padding:5px 14px 5px 5px; gap:9px; font-weight:400;}
.t4-avatar{width:28px; height:28px; border-radius:50%; overflow:hidden; flex:0 0 auto; background:var(--t4-pill-bg); color:var(--t4-pill-fg); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700;}
.t4-avatar img{width:100%; height:100%; object-fit:cover;}
.t4-uname{font-size:14px; font-weight:400;}
.t4-caret{opacity:.55; transition:transform .2s ease;}
.t4-profile-wrap{position:relative;}
.t4-profile-wrap.open .t4-caret{transform:rotate(180deg);}
.t4-dropdown{position:absolute; top:calc(100% + 10px); right:0; min-width:200px; background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(14,14,18,.55); backdrop-filter:blur(28px) saturate(1.5); -webkit-backdrop-filter:blur(28px) saturate(1.5); border:1px solid var(--t4-line); border-radius:14px; padding:6px; box-shadow:0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12); opacity:0; transform:translateY(-6px) scale(.98); pointer-events:none; transition:opacity .2s ease, transform .2s ease; z-index:200;}
html.t4-light .t4-dropdown{background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.75)); box-shadow:0 24px 60px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.9);}
.t4-profile-wrap.open .t4-dropdown{opacity:1; transform:none; pointer-events:auto;}
.t4-dropdown a,.t4-dropdown button{display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:10px 12px; border-radius:99px; background:none; border:none; cursor:pointer; color:var(--t4-fg); font-size:14px; font-weight:500; text-decoration:none; font-family:inherit; transition:background .15s ease;}
.t4-dropdown a:hover,.t4-dropdown button:hover{background:var(--t4-soft);}
.t4-dropdown .t4-logout{color:#ff6b6b;}
.t4-dropdown .t4-logout svg{stroke:#ff6b6b;}
.t4-burger{display:none; flex-direction:column; gap:5px; width:30px; height:30px; align-items:center; justify-content:center; border:none; background:transparent; cursor:pointer; flex:0 0 auto; padding:0;}
.t4-burger span{width:22px; height:2px; background:var(--t4-fg); border-radius:2px; transition:transform .25s ease, opacity .2s ease;}
.t4-burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.t4-burger.open span:nth-child(2){opacity:0;}
.t4-burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.t4-mobile-menu{position:fixed; top:62px; left:10px; right:10px; z-index:120; display:none; flex-direction:column; background:rgba(10,10,12,.92); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border:1px solid var(--t4-line); border-radius:18px; padding:8px 22px; box-shadow:0 20px 50px rgba(0,0,0,.5);}
html.t4-light .t4-mobile-menu{background:rgba(243,243,246,.95); box-shadow:0 20px 50px rgba(0,0,0,.18);}
.t4-mobile-menu.open{display:flex;}
.t4-mobile-menu a{display:flex; align-items:center; gap:14px; width:100%; text-align:left; padding:16px 4px; border:none; border-bottom:1px solid var(--t4-line); background:none; cursor:pointer; font-family:inherit; color:var(--t4-fg); text-decoration:none; font-size:16px; font-weight:500; transition:color .2s ease;}
.t4-mobile-menu a:last-child{border-bottom:none;}
.t4-mobile-menu a svg{width:20px; height:20px; flex:0 0 auto; opacity:.8;}
@media (max-width:820px){.t4-links{display:none;}.t4-burger{display:flex;}.t4-nav-inner{display:flex !important; justify-content:space-between !important; align-items:center !important; padding:0 22px !important;}.t4-right .t4-theme,.t4-right .t4-pill,.t4-right .t4-profile-wrap{display:none !important;}.t4-mobile-menu{position:fixed !important; inset:0 !important; z-index:95 !important; background:var(--t4-bg) !important; border:none !important; border-radius:0 !important; box-shadow:none !important; padding:calc(80px + env(safe-area-inset-top)) 26px 40px !important; gap:0 !important; justify-content:flex-start !important;}.t4-mobile-menu a{font-size:17px !important; padding:18px 4px !important;}}
@media (max-width:560px){.t4-nav{padding: calc(14px + env(safe-area-inset-top)) 0 14px !important; background: rgba(0,0,0,.66) !important; -webkit-backdrop-filter: blur(18px) saturate(1.3) !important; backdrop-filter: blur(18px) saturate(1.3) !important; border-bottom: 1px solid var(--t4-line) !important;}html.t4-light .t4-nav{background: rgba(255,255,255,.72) !important;}}

/* the site is dark-only: no theme toggle (veel-warm.css does the same on the other pages) */
.t4-theme,#t4Theme,#t4ThemeM{display:none!important}
