/* ── WP Mobile Footer Bar Structural Reset ── */

/* Suppress all browser tap/focus highlights on every descendant.
   SVGs are independently focusable in WebKit — this resets them all. */
.wmf-footer-bar,
.wmf-footer-bar * {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.wmf-footer-bar a,
.wmf-footer-bar button {
    outline: none;
}

.wmf-footer-bar a:focus-visible,
.wmf-footer-bar button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.wmf-footer-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* iOS safe-area is handled via calc() in the PHP inline styles so the
   icon content area stays constant when the browser toolbar hides/shows. */

.wmf-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.wmf-footer-item--highlighted {
    position: relative;
}

.wmf-float-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.wmf-svg-icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    transition: transform 0.15s ease, stroke 0.15s ease;
}

.wmf-custom-icon {
    display: block;
    object-fit: contain;
    transition: transform 0.15s ease;
}

.wmf-badge {
    box-sizing: border-box;
}

/* ── Focus visible ─────────────────────────────────────────────── */
.wmf-float-circle:focus-visible,
.wmf-svg-icon:focus-visible,
.wmf-custom-icon:focus-visible,
.wmf-badge:focus-visible {
    outline: 3px solid -webkit-focus-ring-color;
    outline-offset: 2px;
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .wmf-footer-bar,
    .wmf-footer-item,
    .wmf-float-circle,
    .wmf-svg-icon,
    .wmf-custom-icon,
    .wmf-badge {
        transition: none !important;
        animation: none !important;
    }
}

/* ── Desktop active state indication ─────────────────────────── */
/* Show active page indicator on desktop when footer is visible */
@media (min-width: 783px) {
    .wmf-footer-item.wmf-active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        opacity: 0.6;
    }
}
