/* PB_P867 - sidebar logo v2: the logo sits in a clear framed tile (app-icon look, 3D shadow, soft breathing ring), 72px, visible on light and dark; name + subtitle bigger. Loads after PB_P866, overrides only its size/frame. Tokens only. */
html #sa-sidebar .sa-logo,
html #sch-sidebar .sch-logo,
html #stu-sidebar .stu-logo,
html #par-sidebar .par-logo{min-height:var(--pbsl2-min,92px);padding:.875rem 1rem;gap:.75rem}
/* the tile */
html #sa-sidebar .sa-logo .pb-lg-wide,
html #sch-sidebar .sch-logo .pb-lg-wide,
html #stu-sidebar .stu-logo .pb-lg-wide,
html #par-sidebar .par-logo .pb-lg-wide{display:grid;place-items:center;box-sizing:border-box;width:var(--pbsl2-s,72px);height:var(--pbsl2-s,72px);padding:5px;border-radius:20px;background:var(--card-bg);border:1px solid var(--border-strong,var(--border));box-shadow:0 1px 0 color-mix(in srgb,var(--text-primary) 8%,transparent),0 4px 0 -1px color-mix(in srgb,var(--text-primary) 6%,transparent),0 10px 22px -8px color-mix(in srgb,var(--text-primary) 28%,transparent);position:relative;isolation:isolate;overflow:visible}
/* the picture fills the tile: full size, keeps its shape, rounded like an app icon */
html #sa-sidebar .sa-logo .pb-lg-wide img,
html #sch-sidebar .sch-logo .pb-lg-wide img,
html #stu-sidebar .stu-logo .pb-lg-wide img,
html #par-sidebar .par-logo .pb-lg-wide img{width:100%;height:100%;max-width:none;object-fit:contain;border-radius:15px;image-rendering:auto;backface-visibility:hidden}
/* soft breathing ring in the brand colour */
html #sa-sidebar .sa-logo .pb-lg-wide::after,
html #sch-sidebar .sch-logo .pb-lg-wide::after,
html #stu-sidebar .stu-logo .pb-lg-wide::after,
html #par-sidebar .par-logo .pb-lg-wide::after{content:"";position:absolute;inset:-4px;border-radius:24px;border:2px solid color-mix(in srgb,var(--pb-brand,var(--stage-lakshya)) 55%,transparent);opacity:0;pointer-events:none;z-index:-1;animation:pbsl2-ring 3.6s ease-in-out infinite}
html #sa-sidebar .sa-logo:hover .pb-lg-wide,
html #sch-sidebar .sch-logo:hover .pb-lg-wide,
html #stu-sidebar .stu-logo:hover .pb-lg-wide,
html #par-sidebar .par-logo:hover .pb-lg-wide{transform:translateY(-3px) scale(1.04)}
/* words: bigger so they read at a glance */
html #sa-sidebar .sa-logo-text.pb-lg-hasw > .pb-lg-wide + span,
html #sch-sidebar .sch-logo-text.pb-lg-hasw > .pb-lg-wide + span,
html #stu-sidebar .stu-logo-text.pb-lg-hasw > .pb-lg-wide + span,
html #par-sidebar .par-logo-text.pb-lg-hasw > .pb-lg-wide + span{font-size:1.05rem !important;font-weight:700;color:var(--text-primary) !important;line-height:1.1}
html #sa-sidebar .sa-logo-text.pb-lg-hasw > .pb-lg-wide + span + span,
html #sch-sidebar .sch-logo-text.pb-lg-hasw > .pb-lg-wide + span + span,
html #stu-sidebar .stu-logo-text.pb-lg-hasw > .pb-lg-wide + span + span,
html #par-sidebar .par-logo-text.pb-lg-hasw > .pb-lg-wide + span + span{font-size:.72rem !important}
/* collapsed rail: back to the compact height of P866 (the compact mark is shown there) */
html #sa-sidebar.sa-collapsed .sa-logo,
html #sch-sidebar.sch-collapsed .sch-logo,
html #stu-sidebar.stu-col .stu-logo,
html #par-sidebar.par-collapsed .par-logo{min-height:44px;padding:.625rem .25rem}
/* small phones */
@media (max-width:430px){:root{--pbsl2-s:68px;--pbsl2-min:88px}}
@keyframes pbsl2-ring{0%,100%{opacity:0;transform:scale(.96)}50%{opacity:.9;transform:scale(1.02)}}
@media (prefers-reduced-motion:reduce){html #sa-sidebar .sa-logo .pb-lg-wide::after,
html #sch-sidebar .sch-logo .pb-lg-wide::after,
html #stu-sidebar .stu-logo .pb-lg-wide::after,
html #par-sidebar .par-logo .pb-lg-wide::after{animation:none !important;opacity:0}}