/* Institutional Success Platform — full-width dashboard shell */

.inst-page--dash {
    background: var(--gray-light);
}

.inst-page--dash .fe-nav__inner {
    max-width: none;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.inst-page--dash .fe-footer {
    margin-top: 0;
}

/* Full viewport — sidebar flush left, content fills remainder */
.inst-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin: 0;
    flex: 1;
    min-height: calc(100vh - 3.25rem);
    gap: 0;
    align-items: stretch;
}

.inst-sidebar {
    background: var(--secondary);
    color: var(--unimart-border);
    padding: 1.35rem 0.9rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 3.25rem;
    align-self: start;
    height: calc(100vh - 3.25rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.inst-sidebar__org {
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0 0 0.2rem;
    padding: 0 0.5rem;
    line-height: 1.3;
}

.inst-sidebar__type {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.1rem;
    padding: 0 0.5rem;
    font-weight: 600;
}

.inst-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    flex: 1;
}

.inst-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.7rem;
    border-radius: 8px;
    color: rgba(232, 236, 240, 0.88);
    text-decoration: none;
    font-size: 0.86rem;
    transition: background 0.15s, color 0.15s;
}

.inst-sidebar__link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.inst-sidebar__link.is-active {
    background: rgba(246, 139, 30, 0.18);
    color: var(--primary-light);
    font-weight: 600;
}

.inst-sidebar__link i {
    width: 1.05rem;
    text-align: center;
    color: var(--primary);
    font-size: 0.9rem;
}

.inst-sidebar__public {
    display: block;
    margin-top: auto;
    padding: 0.85rem 0.5rem 0;
    font-size: 0.78rem;
    color: rgba(232, 236, 240, 0.55);
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inst-sidebar__public:hover {
    color: var(--primary-light);
}

.inst-main {
    padding: 1.5rem 2rem 2.5rem;
    background: var(--gray-light);
    min-width: 0;
}

/* Override for-employers centered containers inside dashboard */
.inst-main.fe-main {
    max-width: none;
    margin: 0;
    width: 100%;
}

.inst-main .fe-messages {
    max-width: none;
    margin: 0 0 1rem;
    padding: 0;
}

.inst-main .fe-dashboard,
.inst-main .fe-applications,
.inst-main .fe-wizard,
.inst-main .fe-narrow {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.inst-main .fe-stats-row {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.inst-main .fe-stat {
    background: #fff;
    border: 1px solid var(--unimart-border);
}

.inst-main .fe-dash-section {
    background: #fff;
    border: 1px solid var(--unimart-border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.inst-main .fe-post-row {
    background: var(--light);
}

/* Audience builder */
.inst-audience-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}

.inst-filter-group {
    margin-bottom: 1rem;
}

.inst-filter-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gray);
    margin-bottom: 0.4rem;
}

.inst-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.inst-filter-chips label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gray-dark);
    background: #fff;
    border: 1px solid var(--unimart-border);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    cursor: pointer;
}

.inst-filter-chips input {
    margin: 0;
}

.inst-filter-chips label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(246, 139, 30, 0.08);
    color: var(--primary-dark);
}

.inst-reach-card {
    background: linear-gradient(135deg, var(--secondary), var(--secondary));
    color: #fff;
    border-radius: 12px;
    padding: 1.35rem;
    position: sticky;
    top: 1rem;
}

.inst-reach-card__number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.inst-reach-card__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.35rem;
}

.inst-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.inst-insight-card {
    background: #fff;
    border: 1px solid var(--unimart-border);
    border-radius: 10px;
    padding: 0.85rem;
}

.inst-insight-card h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--gray);
    margin: 0 0 0.5rem;
}

/* Landing — pilot / free access (no pricing yet) */
.inst-pilot-banner {
    margin-top: 1.75rem;
    max-width: 720px;
    background: linear-gradient(135deg, rgba(246, 139, 30, 0.1), #fff);
    border: 1px solid rgba(246, 139, 30, 0.35);
    border-radius: 14px;
    padding: 1.5rem 1.65rem;
}

.inst-pilot-banner__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-dark);
    background: rgba(246, 139, 30, 0.15);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
}

.inst-pilot-banner__title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: var(--unimart-text);
}

.inst-pilot-banner__lead {
    margin: 0 0 1rem;
    color: var(--gray);
    line-height: 1.55;
    font-size: 0.95rem;
}

.inst-pilot-banner__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.inst-pilot-banner__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.inst-pilot-banner__list i {
    color: var(--primary);
    font-size: 0.8rem;
}

.inst-pilot-banner__note {
    margin: 0;
    font-size: 0.82rem;
    color: var(--gray);
    font-style: italic;
}

@media (max-width: 900px) {
    .inst-shell {
        grid-template-columns: 1fr;
    }

    .inst-sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .inst-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
        flex: none;
    }

    .inst-sidebar__public {
        margin-top: 0.75rem;
        border-top: none;
        padding-top: 0;
    }

    .inst-main {
        padding: 1.25rem 1rem 2rem;
    }

    .inst-audience-builder {
        grid-template-columns: 1fr;
    }
}
