/* Stage 4, 7.6: permission-gated section management in the section heading. */
.fox-forum-page .fox-forum-sections-head {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fox-forum-page .fox-forum-sections-head h2 {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.fox-forum-page .fox-forum-configure {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    max-width: 47%;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    padding: 8px 11px;
    border: 1px solid rgba(193, 119, 255, .48);
    border-radius: 10px;
    background: linear-gradient(110deg, rgba(138, 63, 252, .26), rgba(193, 61, 255, .12));
    box-shadow: inset 0 0 12px rgba(183, 124, 255, .06);
    color: #ecd9ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fox-forum-page .fox-forum-configure i {
    flex: 0 0 auto;
}

.fox-forum-page .fox-forum-configure span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.fox-forum-page .fox-forum-configure:hover,
.fox-forum-page .fox-forum-configure:focus-visible {
    border-color: #ca97ff;
    box-shadow: 0 0 16px rgba(172, 85, 255, .25), inset 0 0 12px rgba(183, 124, 255, .08);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.fox-forum-page .fox-forum-configure:focus-visible {
    outline: 2px solid #ca97ff;
    outline-offset: 3px;
}

.fox-forum-page .fox-forum-configure:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .fox-forum-page .fox-forum-sections-head {
        gap: 8px;
        padding: 12px 14px;
    }

    .fox-forum-page .fox-forum-configure {
        padding: 8px 9px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fox-forum-page .fox-forum-configure {
        transition: none;
    }

    .fox-forum-page .fox-forum-configure:hover,
    .fox-forum-page .fox-forum-configure:focus-visible,
    .fox-forum-page .fox-forum-configure:active {
        transform: none;
    }
}
