.public-header-inner {
    position: relative;
}

.global-academic-year {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    max-width: min(42vw, 420px);
    padding: .35rem .8rem;
    border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
    border-radius: .9rem;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-sm);
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}

.global-academic-year-label {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.global-academic-year strong {
    overflow: hidden;
    color: var(--brand-900);
    font-size: .9rem;
    font-weight: 850;
    text-overflow: ellipsis;
}

.global-academic-year-status {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--success);
    font-size: .7rem;
    font-weight: 800;
}

.global-academic-year-status::before {
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

/* Academic Year is a system context, not a Student Registration input. */
[data-public-student-registration] .form-group:has([data-curriculum-academic-year]) {
    display: none !important;
}

@media (max-width: 820px) {
    .global-academic-year {
        max-width: 34vw;
        min-height: 38px;
        padding: .28rem .58rem;
    }

    .global-academic-year-label,
    .global-academic-year-status {
        display: none;
    }

    .global-academic-year strong {
        font-size: .8rem;
    }
}

@media (max-width: 480px) {
    .global-academic-year {
        max-width: 30vw;
        padding-inline: .45rem;
    }

    .global-academic-year strong {
        font-size: .74rem;
    }
}

@media print {
    .global-academic-year {
        position: static;
        transform: none;
        box-shadow: none;
    }
}
