/* Shared right sidebar: use the same charcoal surface as article cards. */
#secondary .widget {
    background: #19191d !important;
    border-color: rgba(255, 255, 255, 0.045) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

/* Keep one outer widget frame; remove the decorative lines inside it. */
#secondary .widget .widget-title {
    margin-bottom: 9px !important;
    padding-bottom: 2px !important;
    border-bottom: 0 !important;
}

#secondary .widget .widget-title::after {
    display: none !important;
}

/* Categories become quiet rows with a clear whole-row interaction state. */
#block-5 .wp-block-categories li {
    min-height: 38px !important;
    margin: 2px 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    box-shadow: inset 2px 0 transparent !important;
    transition: background-color 150ms ease, box-shadow 150ms ease, color 150ms ease !important;
}

#block-5 .wp-block-categories li:hover,
#block-5 .wp-block-categories li:focus-within {
    background: rgba(255, 255, 255, 0.065) !important;
    box-shadow: inset 2px 0 #ff1616 !important;
    color: #a7a7b0 !important;
}

#block-5 .wp-block-categories a {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 6px 10px 6px 2px !important;
    text-decoration: none !important;
    transition: color 150ms ease, transform 150ms ease !important;
}

#block-5 .wp-block-categories li:hover a,
#block-5 .wp-block-categories li:focus-within a {
    color: #f2f2f5 !important;
    transform: translateX(2px) !important;
}

#block-5 .wp-block-categories a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.26) !important;
    outline-offset: 2px !important;
}

/* Social controls: borderless at rest, unmistakable on hover/focus. */
#custom_html-13 .textwidget > ul > li > a {
    border: 0 !important;
    background: rgba(255, 255, 255, 0.014) !important;
    box-shadow: inset 2px 0 transparent !important;
    transition: background-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease !important;
}

#custom_html-13 .textwidget > ul > li > a:hover,
#custom_html-13 .textwidget > ul > li > a:focus-visible {
    border: 0 !important;
    background: rgba(255, 255, 255, 0.075) !important;
    color: #f2f2f5 !important;
    box-shadow: inset 2px 0 #ff1616 !important;
    transform: translateX(2px) !important;
}

#custom_html-13 .textwidget > ul > li > a:hover i,
#custom_html-13 .textwidget > ul > li > a:focus-visible i {
    color: #e4e4e9 !important;
}

#custom_html-13 .textwidget > ul > li > a:focus-visible,
#custom_html-10 .donation-grid-3x2 a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.26) !important;
    outline-offset: 2px !important;
}

/* Support controls use the same quiet/active language as Socials. */
#custom_html-10 .donation-grid-3x2 a {
    border: 0 !important;
    background: rgba(255, 255, 255, 0.014) !important;
    box-shadow: inset 2px 0 transparent !important;
    transition: background-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease !important;
}

#custom_html-10 .donation-grid-3x2 a:hover,
#custom_html-10 .donation-grid-3x2 a:focus-visible {
    border: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f2f2f5 !important;
    box-shadow: inset 2px 0 #ff1616 !important;
    transform: translateY(-1px) !important;
}

/* A lighter default frame and a stronger active state for desktop navigation. */
@media (min-width: 992px) {
    .site-header .main-navigation #primary-menu > li > a {
        border-color: transparent !important;
        background: rgba(255, 255, 255, 0.018) !important;
        box-shadow: inset 0 -2px transparent !important;
        transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease !important;
    }

    .site-header .main-navigation #primary-menu > li > a:hover,
    .site-header .main-navigation #primary-menu > li > a:focus-visible,
    .site-header .main-navigation #primary-menu > li.current-menu-item > a {
        border-color: rgba(255, 255, 255, 0.1) !important;
        background: rgba(255, 255, 255, 0.075) !important;
        color: #f2f2f5 !important;
        box-shadow: inset 0 -2px #ff1616 !important;
        transform: translateY(-1px) !important;
    }
}

/* Fallback for a page already transformed by the parent sticky-sidebar script. */
#secondary .theiaStickySidebar {
    position: static !important;
    top: auto !important;
    width: auto !important;
    transform: none !important;
}
