/* PB_P866 - sidebar logo: bigger + sharper, the name / subtitle shown beside it, small animated touches. SuperAdmin, School, Student (+Pragati), Parent. Tokens only (no raw colours). */
/* ---- the block ---- */
#sa-sidebar .sa-logo,
#sch-sidebar .sch-logo,
#stu-sidebar .stu-logo,
#par-sidebar .par-logo{height:auto;min-height:var(--pbsl-min,64px);padding:.75rem 1rem;gap:.75rem;position:relative}
/* ---- the picture: 60px tall (was 30px), keeps its shape, never stretched ---- */
#sa-sidebar .sa-logo .pb-lg-wide,
#sch-sidebar .sch-logo .pb-lg-wide,
#stu-sidebar .stu-logo .pb-lg-wide,
#par-sidebar .par-logo .pb-lg-wide{grid-row:1 / span 2;grid-column:1;max-width:none;transition:transform .35s cubic-bezier(.2,.8,.2,1),filter .35s ease;animation:pbsl-in .55s cubic-bezier(.2,.8,.2,1) both}
#sa-sidebar .sa-logo .pb-lg-wide img,
#sch-sidebar .sch-logo .pb-lg-wide img,
#stu-sidebar .stu-logo .pb-lg-wide img,
#par-sidebar .par-logo .pb-lg-wide img{height:var(--pbsl-h,58px);width:auto;max-width:88px;object-fit:contain;image-rendering:auto}
#sa-sidebar .sa-logo:hover .pb-lg-wide,
#sch-sidebar .sch-logo:hover .pb-lg-wide,
#stu-sidebar .stu-logo:hover .pb-lg-wide,
#par-sidebar .par-logo:hover .pb-lg-wide{transform:translateY(-2px) scale(1.04);filter:drop-shadow(0 6px 12px color-mix(in srgb,var(--pb-brand,var(--stage-lakshya)) 30%,transparent))}
/* ---- the words beside it (they were hidden when a picture logo is used): platform name + subtitle ---- */
#sa-sidebar .sa-logo-text.pb-lg-hasw,
#sch-sidebar .sch-logo-text.pb-lg-hasw,
#stu-sidebar .stu-logo-text.pb-lg-hasw,
#par-sidebar .par-logo-text.pb-lg-hasw{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:.625rem;row-gap:2px;flex:1 1 auto;min-width:0;max-width:none}
#sa-sidebar .sa-logo-text.pb-lg-hasw > span:not(.pb-lg-wide),
#sch-sidebar .sch-logo-text.pb-lg-hasw > span:not(.pb-lg-wide),
#stu-sidebar .stu-logo-text.pb-lg-hasw > span:not(.pb-lg-wide),
#par-sidebar .par-logo-text.pb-lg-hasw > span:not(.pb-lg-wide){display:block !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sa-sidebar .sa-logo-text.pb-lg-hasw > .pb-lg-wide + span,
#sch-sidebar .sch-logo-text.pb-lg-hasw > .pb-lg-wide + span,
#stu-sidebar .stu-logo-text.pb-lg-hasw > .pb-lg-wide + span,
#par-sidebar .par-logo-text.pb-lg-hasw > .pb-lg-wide + span{grid-column:2;grid-row:1;align-self:end;justify-self:start;max-width:100%;position:relative;font-family:var(--font-display,"Fraunces",serif);font-size:.9rem !important;line-height:1.15;letter-spacing:-.02em;padding-inline-end:12px}
/* tiny twinkling star after the name */
#sa-sidebar .sa-logo-text.pb-lg-hasw > .pb-lg-wide + span::after,
#sch-sidebar .sch-logo-text.pb-lg-hasw > .pb-lg-wide + span::after,
#stu-sidebar .stu-logo-text.pb-lg-hasw > .pb-lg-wide + span::after,
#par-sidebar .par-logo-text.pb-lg-hasw > .pb-lg-wide + span::after{content:"\2726";position:absolute;inset-inline-end:0;top:-1px;font-size:.7rem;color:var(--pb-brand,var(--stage-lakshya));animation:pbsl-twinkle 3.2s ease-in-out infinite;transform-origin:center}
/* live dot before the subtitle */
#sa-sidebar .sa-logo-text.pb-lg-hasw > .pb-lg-wide + span + span,
#sch-sidebar .sch-logo-text.pb-lg-hasw > .pb-lg-wide + span + span,
#stu-sidebar .stu-logo-text.pb-lg-hasw > .pb-lg-wide + span + span,
#par-sidebar .par-logo-text.pb-lg-hasw > .pb-lg-wide + span + span{grid-column:2;grid-row:2;align-self:start;display:flex !important;align-items:center;gap:6px;font-size:.6875rem !important;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary) !important}
#sa-sidebar .sa-logo-text.pb-lg-hasw > .pb-lg-wide + span + span::before,
#sch-sidebar .sch-logo-text.pb-lg-hasw > .pb-lg-wide + span + span::before,
#stu-sidebar .stu-logo-text.pb-lg-hasw > .pb-lg-wide + span + span::before,
#par-sidebar .par-logo-text.pb-lg-hasw > .pb-lg-wide + span + span::before{content:"";flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:var(--stage-pragati);box-shadow:0 0 0 0 color-mix(in srgb,var(--stage-pragati) 55%,transparent);animation:pbsl-pulse 2.4s ease-out infinite}
/* animated underline: brand colour grows under the block on hover */
#sa-sidebar .sa-logo::after,
#sch-sidebar .sch-logo::after,
#stu-sidebar .stu-logo::after,
#par-sidebar .par-logo::after{content:"";position:absolute;inset-inline:1rem;bottom:-1px;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--pb-brand,var(--stage-lakshya)),transparent);transform:scaleX(.18);transform-origin:left center;transition:transform .45s ease;opacity:.9}
#sa-sidebar .sa-logo:hover::after,
#sch-sidebar .sch-logo:hover::after,
#stu-sidebar .stu-logo:hover::after,
#par-sidebar .par-logo:hover::after{transform:scaleX(1)}
/* ---- collapsed rail: the picture sits inside the text box (hidden here), so the square symbol is shown instead, centred ---- */
#sa-sidebar.sa-collapsed .sa-logo,
#sch-sidebar.sch-collapsed .sch-logo,
#stu-sidebar.stu-col .stu-logo,
#par-sidebar.par-collapsed .par-logo{justify-content:center;padding:.625rem .25rem;min-height:var(--pbsl-min,64px)}
#sa-sidebar.sa-collapsed .sa-logo .pb-lg-mark,
#sch-sidebar.sch-collapsed .sch-logo .pb-lg-mark,
#stu-sidebar.stu-col .stu-logo .pb-lg-mark,
#par-sidebar.par-collapsed .par-logo .pb-lg-mark{display:flex !important;width:42px;height:42px;flex:0 0 42px;animation:pbsl-in .45s cubic-bezier(.2,.8,.2,1) both}
#sa-sidebar.sa-collapsed .sa-logo-text.pb-lg-hasw,
#sch-sidebar.sch-collapsed .sch-logo-text.pb-lg-hasw,
#stu-sidebar.stu-col .stu-logo-text.pb-lg-hasw,
#par-sidebar.par-collapsed .par-logo-text.pb-lg-hasw{display:none !important}
#sa-sidebar.sa-collapsed .sa-logo::after,
#sch-sidebar.sch-collapsed .sch-logo::after,
#stu-sidebar.stu-col .stu-logo::after,
#par-sidebar.par-collapsed .par-logo::after{display:none}
/* ---- small phones: slightly smaller picture ---- */
@media (max-width:430px){:root{--pbsl-h:54px;--pbsl-min:60px}}
/* ---- motion ---- */
@keyframes pbsl-in{from{opacity:0;transform:translateY(6px) scale(.94)}to{opacity:1;transform:none}}
@keyframes pbsl-twinkle{0%,100%{opacity:.35;transform:scale(.7) rotate(0)}50%{opacity:1;transform:scale(1.15) rotate(25deg)}}
@keyframes pbsl-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--stage-pragati) 55%,transparent)}70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion:reduce){#sa-sidebar .sa-logo .pb-lg-wide,
#sch-sidebar .sch-logo .pb-lg-wide,
#stu-sidebar .stu-logo .pb-lg-wide,
#par-sidebar .par-logo .pb-lg-wide{animation:none !important;transition:none !important}#sa-sidebar .sa-logo-text.pb-lg-hasw > span:not(.pb-lg-wide)::after,
#sch-sidebar .sch-logo-text.pb-lg-hasw > span:not(.pb-lg-wide)::after,
#stu-sidebar .stu-logo-text.pb-lg-hasw > span:not(.pb-lg-wide)::after,
#par-sidebar .par-logo-text.pb-lg-hasw > span:not(.pb-lg-wide)::after{animation:none !important}#sa-sidebar .sa-logo-text.pb-lg-hasw > span:not(.pb-lg-wide)::before,
#sch-sidebar .sch-logo-text.pb-lg-hasw > span:not(.pb-lg-wide)::before,
#stu-sidebar .stu-logo-text.pb-lg-hasw > span:not(.pb-lg-wide)::before,
#par-sidebar .par-logo-text.pb-lg-hasw > span:not(.pb-lg-wide)::before{animation:none !important}#sa-sidebar .sa-logo::after,
#sch-sidebar .sch-logo::after,
#stu-sidebar .stu-logo::after,
#par-sidebar .par-logo::after{transition:none !important}}
@media print{#sa-sidebar .sa-logo::after,
#sch-sidebar .sch-logo::after,
#stu-sidebar .stu-logo::after,
#par-sidebar .par-logo::after{display:none}}