/* Shared public/admin header surface. Admin-only rules keep editor styles isolated. */
.site-header.niro-header{border-top:0;background:#d4cec7}
.admin-shell{--header-gutter:40px}
.admin-shell .header-wrap,.admin-shell .site-header-inner,.admin-shell .admin-main{width:calc(100% - 2 * var(--header-gutter));max-width:1280px;margin-inline:auto}
.admin-shell .top-header{background:#445669;color:#d3d8df;font:calc(11px + 1pt)/16px Arial,sans-serif;padding:0 10px}
.admin-shell .top-header .header-wrap,.admin-account{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:28px}
.admin-account form{margin:0}.admin-account button{min-height:28px;padding:0;border:0;background:none;border-radius:0;color:inherit;font:inherit}
.admin-shell .top-header :is(a,button):hover,.admin-shell .top-header :is(a,button):focus-visible{color:#eec163}
.admin-shell .site-header{position:relative;z-index:40;border-bottom:2px solid rgba(0,0,0,.2);padding-top:20px;color:#616161;font:16px/1.25 'IBM Plex Sans',Arial,sans-serif}
.admin-shell .site-header-inner{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:center;align-items:end;gap:8px;min-height:90px}
.admin-shell .brand{display:block;width:235px;min-width:0}.admin-shell .brand img{display:block;width:100%;height:auto}
.admin-shell #admin-site-nav{display:flex;justify-self:end;align-items:end;gap:26px;margin:0;padding:0;text-transform:uppercase;letter-spacing:.01em;font-size:calc(16px - 1pt);font-weight:400}
.admin-shell #admin-site-nav a{display:flex;align-items:end;min-height:44px;padding:0;border:0;color:#616161;text-decoration:none;line-height:1;white-space:nowrap;transition:color .18s ease}
.admin-shell #admin-site-nav a:hover,.admin-shell #admin-site-nav a:focus-visible,.admin-shell #admin-site-nav a[aria-current]{color:#38697e}
.admin-shell .menu-toggle{display:none}
.admin-shell .site-header a:focus-visible,.admin-shell .site-header button:focus-visible,.admin-shell .top-header button:focus-visible{outline:2px solid #17759d;outline-offset:4px}
@media(max-width:1100px){.admin-shell{--header-gutter:24px}.admin-shell .brand{width:205px}}
@media(max-width:1350px){
 .admin-shell .site-header-inner{display:flex;align-items:center;justify-content:space-between}
 .admin-shell .menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;color:#616161;font:25px/1 Arial,sans-serif}
 .admin-shell #admin-site-nav{display:flex;flex-direction:column;align-items:stretch;gap:0;position:absolute;top:100%;left:0;right:0;padding:4px var(--header-gutter) 6px;background:#e3c9c9;border-block:1px solid rgba(0,0,0,.1);max-height:calc(100dvh - 150px);overflow-y:auto;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-5px);transition:opacity .14s ease,transform .14s ease,visibility .14s}
 .admin-shell #admin-site-nav.open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
 .admin-shell #admin-site-nav a{align-items:center;min-height:44px;padding:8px 0;border-bottom:1px solid rgba(0,0,0,.1);font-size:calc(14px - 1pt);line-height:1.3;letter-spacing:.03em}
 .admin-shell #admin-site-nav a:last-child{border-bottom:0}
}
@media(max-width:900px){.admin-shell .site-header-inner{min-height:76px}.admin-shell .brand{width:180px}}
@media(max-width:700px){.admin-shell{--header-gutter:16px}.admin-shell .site-header-inner{min-height:72px}.admin-shell .top-header .header-wrap{flex-wrap:wrap;gap:0 12px}.admin-account{gap:12px}.admin-account>span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:370px){.admin-shell .brand{width:155px}}
@media(prefers-reduced-motion:reduce){.admin-shell #admin-site-nav,.admin-shell #admin-site-nav a{transition:none}}

.site-header.niro-header .brand{width:280px;max-width:100%}

.admin-shell .site-header.niro-header{background:#e3c9c9}
.admin-shell .admin-main{padding-inline:0}

body .site-header-slot .site-header.niro-header{box-shadow:0 2px 10px 0 #66666680;margin-bottom:10px}
@media(max-width:900px){body.master .site-header-slot{margin-bottom:10px}}

@media(max-width:900px){
 body.master .site-header-slot .site-header.niro-header{padding-top:0;border-top:4px solid #445669}
 body.master .site-header.niro-header .brand{width:220px;max-width:220px}
}
@media(max-width:1350px){
 .admin-shell .site-header-slot .site-header.niro-header{padding-top:0;border-top:4px solid #445669}
 .admin-shell .site-header.niro-header .brand{width:220px;max-width:220px}
}
