/* Junior Chartered script logo — keep compact everywhere */
.jc-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

.jc-logo-img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 105px;
    max-height: 28px;
    object-fit: contain;
    object-position: left center;
}

.jc-logo-img--sm {
    height: 24px;
    max-width: 90px;
    max-height: 24px;
}

.jc-logo-img--lg {
    height: 32px;
    max-width: 118px;
    max-height: 32px;
}

/* Student sidebar */
.sidebar-brand .jc-logo-img,
.sidebar-brand .sidebar-jc-logo {
    height: 26px !important;
    max-width: 96px !important;
    max-height: 26px !important;
    width: auto !important;
}

body.sidebar-collapsed .sidebar-brand .jc-logo-img,
body.sidebar-collapsed .sidebar-brand .sidebar-jc-logo {
    height: 22px !important;
    max-width: 28px !important;
    max-height: 22px !important;
    object-fit: cover !important;
    object-position: left center !important;
}

.mobile-topbar-jc-logo,
.mobile-topbar-brand .jc-logo-img {
    height: 24px !important;
    max-width: 88px !important;
    max-height: 24px !important;
}

/* Planner / SkillX header */
.header-left .logo .jc-logo-img,
.planner-header-nav .logo .jc-logo-img {
    height: 28px;
    max-width: 105px;
    max-height: 28px;
}

/* Logged-in navbar */
.navbar .logo .jc-logo-img {
    height: 26px;
    max-width: 100px;
    max-height: 26px;
}

/* Public homepage header (homebase) */
.base-header-logo .jc-logo-img {
    height: 28px;
    max-width: 105px;
    max-height: 28px;
}

/* Admin / teacher sidebars */
aside.sidebar .logo .jc-logo-img,
.sidebar > .logo .jc-logo-img {
    height: 26px;
    max-width: 96px;
    max-height: 26px;
    margin-bottom: 6px;
}

.jc-logo-nav-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.base-header-logo.jc-logo-nav-wrap {
    gap: 8px;
}

/* Login / signup pages */
.brand-logo .jc-logo-img {
    height: 28px;
    max-width: 105px;
    max-height: 28px;
}

/* Landing homepage topbar */
.brand .jc-logo-img,
.topbar .jc-logo-img {
    height: 28px;
    max-width: 105px;
    max-height: 28px;
}

/* Google signup left panel */
.logo-section .jc-logo-img {
    height: 30px;
    max-width: 110px;
    max-height: 30px;
    margin: 0 auto 12px;
}
