/* Campus profile body under shared um-hub-hero (commerce/services pattern) */

body.cn-uniz-hub-page {
    background: var(--unimart-bg-muted, #f5f6f8);
}

body.cn-uniz-hub-page .um-hub-body.uz-hub {
    --uz-accent: var(--unimart-orange, #f68b1e);
    --uz-slate: var(--unimart-slate, #2c3e50);
    --uz-border: rgba(44, 62, 80, 0.08);
    color: var(--unimart-text, #1a1a2e);
    max-width: min(96vw, 1280px);
    margin-inline: auto;
    padding: 1rem clamp(1rem, 3vw, 1.5rem) 5.5rem;
    box-sizing: border-box;
}

@media (min-width: 1100px) {
    body.cn-uniz-hub-page .um-hub-body.uz-hub {
        max-width: min(96vw, 1400px);
        padding-left: clamp(1.25rem, 2.5vw, 2rem);
        padding-right: clamp(1.25rem, 2.5vw, 2rem);
    }
}

/* Hero CTA buttons (follow) */
.um-hub-hero__ctas .um-cta {
    border: none;
    cursor: pointer;
    font: inherit;
}

.um-hub-hero__ctas .um-cta--primary {
    background: var(--unimart-orange, #f68b1e);
    color: #fff;
}

.um-hub-hero__ctas .um-cta--primary:hover {
    background: var(--unimart-orange-deep, #e07a12);
    color: #fff;
}

.um-hub-hero__ctas .cn-follow-cta--pulse {
    box-shadow: 0 0 0 0 rgba(246, 139, 30, 0.55);
    animation: cn-follow-pulse 2.4s ease-out infinite;
}

@keyframes cn-follow-pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 139, 30, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(246, 139, 30, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 139, 30, 0); }
}

.cn-follow-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(12px);
    z-index: 1200;
    max-width: min(92vw, 28rem);
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    background: #1a1a2e;
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.cn-follow-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Identity-first body — catalogs are secondary */
.uz-hub__identity {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--unimart-text-muted, #64748b);
}

.uz-hub__section-label {
    margin: 0 0 0.4rem 0.1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--unimart-text-muted, #64748b);
}

/* Catalog tabs (filtered hubs — not a second hero) */
.uz-hub__counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.uz-hub__count {
    text-align: center;
    padding: 0.65rem 0.4rem;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--uz-border, rgba(44, 62, 80, 0.08));
}

.uz-hub__count--active {
    border-color: rgba(246, 139, 30, 0.4);
    background: rgba(246, 139, 30, 0.1);
}

.uz-hub__count strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--uz-slate, #2c3e50);
    line-height: 1.1;
}

.uz-hub__count--active strong {
    color: var(--uz-accent, #f68b1e);
}

.uz-hub__count span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--unimart-text-muted, #6b7280);
}

/* Mosaic */
.uz-hub__mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0;
}

@media (min-width: 768px) {
    .uz-hub__mosaic {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .uz-hub__mosaic {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.uz-hub__tile {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--uz-border, rgba(44, 62, 80, 0.08));
}

.uz-hub__tile-media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: var(--uz-slate, #2c3e50);
    overflow: hidden;
}

.uz-hub__tile-media img,
.uz-hub__tile-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uz-hub__tile-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.5rem;
}

.uz-hub__tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(20, 28, 38, 0.78) 100%);
    pointer-events: none;
}

.uz-hub__tile-type {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 1;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    background: var(--uz-accent, #f68b1e);
    color: #fff;
}

.uz-hub__tile-float {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 1;
    color: #fff;
}

.uz-hub__tile-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.uz-hub__tile-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    opacity: 0.9;
}

.uz-hub__mosaic--empty {
    display: block;
}

.uz-hub__empty {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--uz-border, rgba(44, 62, 80, 0.08));
}

.uz-hub__empty i {
    font-size: 1.75rem;
    color: var(--uz-accent, #f68b1e);
    margin-bottom: 0.5rem;
}

.uz-hub__empty p {
    margin: 0;
    color: var(--unimart-text-muted, #6b7280);
}

.uz-hub__empty-cta {
    display: inline-block;
    margin-top: 0.85rem;
    color: var(--uz-accent, #f68b1e);
    font-weight: 700;
    text-decoration: none;
}

.uz-hub__extra {
    margin-top: 1.25rem;
}

.uz-hub__extra:empty {
    display: none;
}
