/* =========================================
   SHARED BACK BUTTON (all portals)
   Usage:
   <a href="..." class="portal-back-btn">
       <i class="bi bi-arrow-left" aria-hidden="true"></i>
       Back
   </a>
========================================= */

.portal-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--accent-200, #bfdbfe);
    border-radius: 11px;
    background: #ffffff;
    color: var(--accent-600, #2563eb);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.portal-back-btn:hover {
    color: var(--accent-700, #1d4ed8);
    background: var(--accent-50, #eff6ff);
    border-color: var(--accent-300, #93c5fd);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb, 37, 99, 235), .12);
}

.portal-back-btn:active {
    transform: translateY(0);
}

.portal-back-btn:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb, 37, 99, 235), .3);
    outline-offset: 2px;
}

.portal-back-btn .bi {
    font-size: 1em;
    line-height: 1;
}

@media print {
    .portal-back-btn {
        display: none !important;
    }
}
