/* ==========================================
   WW2 CATEGORY ARCHIVE — INDEPENDENT LAYOUT
   ========================================== */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) {
    background: #090b12;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-layout {
    width: min(1540px, calc(100% - 40px));
    margin: 30px auto 20px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    color: #f5f6fa;
}

/* SIDEBAR */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-sidebar {
    min-width: 0;
    padding: 20px 16px;
    border: 1px solid #29445b;
    border-radius: 16px;
    background: #06121e;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #29445b;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-heading span {
    color: #00c8ff;
    font-size: 25px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 19px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section {
    padding: 18px 0;
    border-bottom: 1px solid #29445b;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section input {
    width: 100%;
    min-width: 0;
    padding: 11px;
    border: 1px solid #237ba8;
    border-radius: 9px;
    outline: none;
    background: #081d2d;
    color: #fff;
    font-size: 13px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section button {
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: #0788d8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-links a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    color: #b8cde0;
    font-size: 13px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-links a:hover {
    background: rgba(24, 132, 255, .1);
    border-color: transparent;
    color: #fff;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-links a.is-active {
    background: #0788d8;
    color: #fff;
    font-weight: 700;
}

/* MAIN CONTENT */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-main {
    min-width: 0;
    width: 100%;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-header h1 {
    margin: 0 0 9px;
    color: #fff;
    font-size: clamp(25px, 2.7vw, 36px);
    font-weight: 800;
    line-height: 1.2;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-description,
:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-header p {
    margin: 0;
    color: #aabdd2;
    font-size: 14px;
    line-height: 1.7;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-description p {
    margin: 0;
}

/* TOP FILTER BAR */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 0 22px;
    border-top: 1px solid #203247;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar select {
    min-width: 160px;
    max-width: 240px;
    padding: 11px 36px 11px 14px;
    border: 1px solid #355c78;
    border-radius: 25px;
    background: #081a2a;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar select:disabled {
    opacity: .55;
    cursor: not-allowed;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar select:focus-visible {
    outline: none;
    border-color: #078BFA;
    box-shadow: 0 0 0 3px rgba(7, 139, 250, .14);
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-result-count {
    color: #b7cce0;
    font-size: 13px;
    white-space: nowrap;
}



/* RESPONSIVE */

@media (max-width: 1250px) {
    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 850px) {
    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-layout {
        display: block;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-sidebar {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-layout {
        width: calc(100% - 28px);
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar select {
        width: 100%;
        max-width: none;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar-controls {
        width: 100%;
    }
}


/* ==========================================
   WW2 CATEGORY — FULL WIDTH WALLPAPER GRID
   Sidebar outside the 1400px main container
   ========================================== */

@media (min-width: 1151px) {

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-layout {
        position: relative;
        display: block;
        width: min(1400px, calc(100% - 40px));
        margin: 12px auto 20px;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-sidebar {
        position: absolute;
        top: 0;
        right: calc(100% + 16px);
        width: 234px;
        min-width: 0;
        box-sizing: border-box;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-main {
        width: 100%;
        min-width: 0;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-wallpaper-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Match homepage responsive positioning */
@media (min-width: 1151px) and (max-width: 1940px) {
    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-layout {
        width: min(1400px, calc(100% - 300px));
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        transform: translateX(125px);
    }
}

@media (min-width: 1151px) and (max-width: 1450px) {
    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-layout {
        transform: none;
        margin-right: 24px;
    }
}

/* Tablet and mobile */


/* Tablet: sidebar visible from 930px to 1150px */
@media (min-width: 930px) and (max-width: 1150px) {

    :is(body.category, body.tag, body.tax-ww_resolution, body.search)
    .ww2-category-layout {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 18px;
        width: calc(100% - 32px);
        margin: 16px auto 60px;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search)
    .ww2-category-sidebar {
        display: block;
        position: static;
        width: 100%;
        margin: 0;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search)
    .ww2-category-main {
        width: 100%;
        min-width: 0;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search)
    .ww2-wallpaper-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* WW2 — Full-width archive without sidebar on mobile */
@media (max-width: 929px) {

    :is(body.category, body.tag, body.tax-ww_resolution, body.search)
    .ww2-category-layout {
        display: block;
        width: calc(100% - 32px);
        margin: 16px auto 60px;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search)
    .ww2-category-sidebar {
        display: none !important;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search)
    .ww2-category-main {
        width: 100%;
        min-width: 0;
    }
}


@media (max-width: 700px) {

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-wallpaper-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

/* Category content wrapper — not card styling */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-archive {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* ==========================================
   WW2 — PREMIUM CATEGORY FILTER SIDEBAR
   ========================================== */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-sidebar {
    padding: 16px 13px;
background: #141820;
border: 1px solid #28313D;
box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
    border-radius: 14px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-heading {
    gap: 9px;
    padding: 0 3px 15px;
    border-bottom: 1px solid #28313D;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-heading span {
    font-size: 20px;
    line-height: 1;
    color: #23baff;
}

/* Premium Filter Wallpapers SVG icon */
:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-heading .ww2-filter-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    color: #36C5FF;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-heading .ww2-filter-heading-icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-heading h2 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.2px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section {
    padding: 17px 0;
    border-bottom: 1px solid #28313D;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section h3 {
    margin: 0 0 12px;
    padding-left: 3px;
    color: #eaf5ff;
    font-size: 14px;
    font-weight: 800;
}

/* Search */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section input {
    padding: 10px 11px;
    border: 1px solid #344353;
background: #1B222D;
    border-radius: 8px;
    font-size: 12px;
    transition: border-color .2s, box-shadow .2s;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section input:focus {
border-color: #078BFA;
box-shadow: 0 0 0 3px rgba(7, 139, 250, .12);
}

/* Premium sidebar search button icon */
:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-sidebar-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-sidebar-search-button svg {
    display: block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section button {
    padding: 10px;
    border-radius: 7px;
    background: #078BFA;
    font-size: 12px;
    transition: background .2s;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section button:hover {
    background: #0878D5;
}

/* Category links */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-links {
    gap: 3px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-links a {
    align-items: center;
    min-height: 33px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--ww2-text-secondary);
    font-size: 14px;
    line-height: 1.4;
    transition:
        background .2s,
        border-color .2s,
        color .2s;
	font-weight: 600;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-links a:hover {
   background: rgba(7, 139, 250, .10);
border-color: rgba(7, 139, 250, .25);
    color: #fff;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-links a.is-active {
    background: linear-gradient(110deg, #078BFA, #076BC4);
border-color: rgba(56, 199, 255, .35);
    color: #fff;
    font-weight: 750;
}

/* Resolution selector */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section:last-child
.ww2-filter-links a {
    min-height: 34px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-filter-section:last-child
.ww2-filter-links a.is-active {
    background: rgba(21, 157, 255, .16);
    border-color: #159dff;
    color: #65caff;
}

/* Top sorting toolbar */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar {
    padding: 14px 0 18px;
    gap: 12px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar-controls {
    gap: 10px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #B5C0CF;
    font-size: 12px;
    font-weight: 650;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-sort-label svg {
    display: block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #36C5FF;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar select {
    min-width: 160px;
    padding: 10px 34px 10px 13px;
    border: 1px solid #344353;
    border-radius: 9px;
    background: #1B222D;
    color: #F1F4F8;
    font-size: 12px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-result-count {
    color: #8eabc6;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* Mobile */

@media (max-width: 600px) {
    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-sidebar {
        padding: 14px;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar {
        align-items: center;
        flex-direction: row;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-toolbar select {
        min-width: 125px;
        width: auto;
    }

    :is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-result-count {
        font-size: 11px;
    }
}

/* WW2 — Checkbox-style resolution filters */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-resolution-options a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
	font-size: 13px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-resolution-options .ww2-resolution-checkbox {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 4px;
    border: 1px solid #465365;
background: #1B222D;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-resolution-options a.is-active {
    background: rgba(7, 139, 250, .10);
    border-color: rgba(7, 139, 250, .30);
    color: #fff;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-resolution-options a.is-active .ww2-resolution-checkbox {
background: #078BFA;
border-color: #078BFA;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-resolution-options a.is-active .ww2-resolution-checkbox::after {
    content: "\2713";
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

/* ==========================================
   WW2 CATEGORY — HOMEPAGE MATCHING ICONS
   ========================================== */

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-icon-links a {
    align-items: center;
    gap: 10px;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-link-content {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: #c7d8ed;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-filter-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    transition: transform .2s ease, color .2s ease;
}

/* Match homepage category icon hover */
:is(body.category, body.tag, body.tax-ww_resolution, body.search)
.ww2-category-icon-links a:hover .ww2-category-filter-icon {
    color: #36C5FF;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search)
.ww2-category-icon-links a:hover .ww2-category-filter-icon svg {
    transform: scale(1.15);
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-filter-name {
    min-width: 0;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-filter-count {
    flex-shrink: 0;
    font-size: 12px;
    color: #9abbd9;
}



/* Cyan category icon on hover, white when active */
:is(body.category, body.tag, body.tax-ww_resolution, body.search)
.ww2-category-icon-links a:hover .ww2-category-filter-icon {
    color: #36C5FF;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search)
.ww2-category-icon-links a.is-active .ww2-category-filter-icon {
    color: #fff;
}

:is(body.category, body.tag, body.tax-ww_resolution, body.search) .ww2-category-icon-links a.is-active
.ww2-category-filter-count {
    color: #fff;
}


/* WW2 — Dedicated Tag Sidebar */

.ww2-tag-sidebar .ww2-tag-link-name {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* WW2 — Tag sidebar hashtag hover */
.ww2-tag-sidebar .ww2-tag-links a .ww2-tag-hash {
    display: inline-block;
    color: #38baff;
    transform-origin: center;
    transition: transform .2s ease, color .2s ease;
}

.ww2-tag-sidebar .ww2-tag-links a:hover .ww2-tag-hash {
    color: #36C5FF;
    transform: scale(1.15);
}

.ww2-tag-sidebar .ww2-tag-hash {
    color: #38baff;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.ww2-tag-sidebar .ww2-filter-links a.is-active .ww2-tag-hash {
    color: #fff;
}

.ww2-tag-sidebar .ww2-tag-empty {
    color: #88a9c4;
    font-size: 12px;
    line-height: 1.6;
    margin: 4px 0 8px;
}

.ww2-tag-sidebar .ww2-tag-links a {
    gap: 8px;
}

.ww2-tag-sidebar .ww2-tag-links a > span:last-child {
    flex-shrink: 0;
}

/* ==========================================
   WW2 — Popular Tags Fixed Scrollable List
   ========================================== */

body.tag .ww2-tag-sidebar .ww2-popular-scroll {
    height: 252px;
    max-height: 252px;
    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 5px;

    scrollbar-width: thin;
    scrollbar-color: #168cdb #071321;

    overscroll-behavior: contain;
}

/* Keep each tag row consistent */
body.tag .ww2-tag-sidebar .ww2-popular-scroll > a {
    flex: 0 0 auto;
    min-height: 33px;
}

/* Chrome / Edge / Safari */
body.tag .ww2-tag-sidebar .ww2-popular-scroll::-webkit-scrollbar {
    width: 5px;
}

body.tag .ww2-tag-sidebar .ww2-popular-scroll::-webkit-scrollbar-track {
    background: #071321;
    border-radius: 10px;
}

body.tag .ww2-tag-sidebar .ww2-popular-scroll::-webkit-scrollbar-thumb {
    background: #168cdb;
    border-radius: 10px;
}

body.tag .ww2-tag-sidebar .ww2-popular-scroll::-webkit-scrollbar-thumb:hover {
    background: #38baff;
}


/* Wallpaper Waves — Currently Browsing */

.ww2-tag-sidebar .ww2-current-tag-section {
    margin-top: 0;
}

.ww2-tag-sidebar .ww2-current-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(37, 158, 239, 0.65);
    border-radius: 7px;
    background: rgba(10, 112, 189, 0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.ww2-tag-sidebar .ww2-current-tag-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Tag sidebar — premium selected checkmark */
.ww2-tag-sidebar .ww2-current-tag-check svg {
    display: block;
    width: 13px;
    height: 13px;
}

.ww2-tag-sidebar .ww2-current-tag-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #128ee1;
    color: #fff;
    font-size: 12px;
}

.ww2-tag-sidebar .ww2-current-tag .ww2-tag-hash {
    color: #36b9ff;
}

/* WW2 — Hide archive sidebar on mobile */
@media (max-width: 767px) {
    .ww2-category-layout > .ww2-category-sidebar {
        display: none !important;
    }

    .ww2-category-layout > .ww2-category-main {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        grid-column: 1 / -1;
    }
}


/* WW2 — Clear Search Button */

.ww2-category-sidebar .ww2-clear-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 9px;
    padding: 8px 12px;

    color: #8fcfff;
    background: rgba(14, 145, 230, 0.07);
    border: 1px solid rgba(14, 145, 230, 0.25);
    border-radius: 7px;

    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ww2-category-sidebar .ww2-clear-search:hover {
    color: #ffffff;
    background: rgba(14, 145, 230, 0.16);
    border-color: #0e91e6;
}

.ww2-category-sidebar .ww2-clear-search span:last-child {
    font-size: 16px;
    line-height: 1;
}

.ww2-category-sidebar .ww2-sidebar-search-count {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(0, 153, 255, 0.15);
    color: #55bdff;
    font-size: 11px;
    font-weight: 700;
}
/* ==========================================
   WW2 — FIX SIDEBAR / FOOTER OVERLAP
   Keep sidebar outside 1400px wallpaper grid
========================================== */

@media (min-width: 1151px){

    :is(body.category, body.tag, body.tax-ww_resolution)
    .ww2-category-layout {
        display: flow-root;
        position: relative;
        min-height: 0;
    }

    :is(body.category, body.tag, body.tax-ww_resolution)
    .ww2-category-layout > .ww2-category-sidebar {
        position: relative;
        float: left;

        width: 234px;
        margin: 0 16px 0 -250px;

        top: auto;
        right: auto;
        left: auto;
    }

    :is(body.category, body.tag, body.tax-ww_resolution)
    .ww2-category-layout > .ww2-category-main {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0;
    }
}

/* Archive hero — premium badge icons */
.ww2-archive-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ww2-archive-hero-badge svg {
    display: block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}


/* ==========================================
   WW2 — Collapsible Archive Description
   Category / Tag / Resolution
   ========================================== */

.ww2-archive-description-toggle {
    width: 100%;
    min-width: 0;
}

.ww2-archive-hero-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    cursor: pointer;
    list-style: none;
}

.ww2-archive-hero-heading-row::-webkit-details-marker {
    display: none;
}

.ww2-archive-hero-heading-row::marker {
    content: "";
}

.ww2-archive-hero-heading-row .ww2-archive-hero-title {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.ww2-archive-toggle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(54, 197, 255, .20);
    border-radius: 9px;
    background: rgba(7, 139, 250, .07);
    color: #8FAFCB;
}

.ww2-archive-toggle-arrow svg {
    display: block;
    transition: transform .25s ease;
}

.ww2-archive-hero-heading-row:hover .ww2-archive-toggle-arrow {
    background: rgba(7, 139, 250, .15);
    border-color: rgba(54, 197, 255, .4);
    color: #36C5FF;
}

.ww2-archive-description-toggle[open] .ww2-archive-toggle-arrow {
    color: #36C5FF;
    border-color: rgba(54, 197, 255, .4);
}

.ww2-archive-description-toggle[open] .ww2-archive-toggle-arrow svg {
    transform: rotate(180deg);
}

.ww2-archive-description-toggle .ww2-archive-hero-description {
    margin-top: 12px;
}

.ww2-archive-hero-heading-row:focus-visible {
    outline: 2px solid #36C5FF;
    outline-offset: 5px;
    border-radius: 5px;
}

.ww2-archive-hero-badges {
    margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .ww2-archive-toggle-arrow svg {
        transition: none;
    }
}

/* Desktop: hide mobile arrow */
.ww2-archive-toggle-mobile {
    display: none;
}

/* Mobile: arrow beside badges */
@media (max-width: 767px) {

    .ww2-archive-toggle-desktop {
        display: none;
    }

    .ww2-archive-hero-badges {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .ww2-archive-toggle-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border: 1px solid rgba(54,197,255,.25);
        border-radius: 9px;
        background: rgba(7,139,250,.07);
        color: #8FAFCB;
        cursor: pointer;
    }

    .ww2-archive-toggle-mobile svg {
        transition: transform .25s ease;
    }

    .ww2-archive-hero:has(
        .ww2-archive-description-toggle[open]
    ) .ww2-archive-toggle-mobile svg {
        transform: rotate(180deg);
    }

    .ww2-archive-hero:has(
        .ww2-archive-description-toggle[open]
    ) .ww2-archive-toggle-mobile {
        color: #36C5FF;
        border-color: rgba(54,197,255,.4);
    }
}
