/* HimKatha frontend filters — right-side slideover */
.hkif-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.hkif-toggle:hover,
.hkif-toggle.is-active {
    background: currentColor;
    color: var(--wp--preset--color--primary-6, #fff);
}

.hkif-toggle:focus-visible,
.hkif-close:focus-visible,
.hkif-reset:focus-visible,
.hkif-group li:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* The drawer lives outside the blog grid so opening it never changes isotope layout. */
.hkif-panel {
    position: fixed;
    z-index: 100001;
    top: 0;
    right: 0;
    width: min(430px, 92vw);
    height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: var(--wp--preset--color--primary-6, #f7f3ed);
    color: var(--wp--preset--color--primary-4, #222);
    box-shadow: -18px 0 50px rgba(0,0,0,.14);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.22,.61,.36,1), visibility 0s linear .38s;
    overflow: hidden;
}

.hkif-panel[data-hkif-state="open"] {
    transform: translateX(0);
    visibility: visible;
    transition: transform .38s cubic-bezier(.22,.61,.36,1), visibility 0s linear 0s;
}

.hkif-panel-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.hkif-panel-title {
    font-family: Geist, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
}

.hkif-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: 300 30px/1 Arial, sans-serif;
    cursor: pointer;
}

.hkif-groups {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hkif-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    background: transparent;
}

.hkif-group-label {
    width: 100%;
    font-family: Geist, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
}

.hkif-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hkif-group li {
    width: max-content;
    margin: 0 !important;
    padding: .5rem .7rem !important;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary-4, #222) 20%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--wp--preset--color--primary-4, #222);
    font-family: Geist, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .2pt;
    text-transform: uppercase;
    font-style: normal;
    user-select: none;
    cursor: pointer;
    list-style: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hkif-group li:hover {
    border-color: var(--wp--preset--color--primary-4, #222);
}

.hkif-group li::after {
    margin-left: 5px !important;
    font-size: 10px !important;
    font-family: "Font Awesome 5 Free" !important;
    content: "\2b" !important;
    transform-origin: 50% 50%;
    display: inline-block;
    transition: transform .2s ease;
}

.hkif-group li.selected {
    background: var(--wp--preset--color--primary-4, #222);
    border-color: var(--wp--preset--color--primary-4, #222);
    color: var(--wp--preset--color--primary-6, #fff);
}

.hkif-group li.selected span {
    color: inherit;
    text-decoration: none !important;
}

.hkif-group li.selected::after {
    color: inherit;
    transform: rotate(45deg);
}

.hkif-panel-footer {
    flex: 0 0 auto;
    padding: 16px 24px 24px;
    border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    background: inherit;
}

.hkif-reset {
    width: 100%;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}

.hkif-reset:hover {
    background: currentColor;
    color: var(--wp--preset--color--primary-6, #fff);
}

.hkif-overlay {
    position: fixed;
    z-index: 100000;
    inset: 0;
    background: rgba(0,0,0,.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}

.hkif-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, visibility 0s linear 0s;
}

body.hkif-drawer-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .hkif-panel {
        width: min(430px, 94vw);
    }

    .hkif-panel-header {
        padding: 20px 20px 16px;
    }

    .hkif-groups {
        padding: 20px;
        gap: 22px;
    }

    .hkif-panel-footer {
        padding: 14px 20px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hkif-panel,
    .hkif-overlay,
    .hkif-toggle,
    .hkif-reset,
    .hkif-group li {
        transition: none !important;
    }
}

/* ==========================================================
   HimKatha site CSS overrides supplied by the site stylesheet
   These rules intentionally come after the plugin defaults so
   they take precedence wherever selectors overlap.
   ========================================================== */

/* Categories Filter */
.grve-filter {overflow:initial;
margin-bottom: 1rem;}

@media only screen and (max-width:1023px) {
    .grve-filter {
        display: initial!important;
    }
    select.grve-filters-select {
        display: none;
    }
}

.grve-filter.grve-filter-style-simple li {margin-right:0;}

.grve-filter ul {
    gap: 20px;
        align-items: stretch;
        display: inline-flex;
}

.grve-filter li {
    padding: 2rem 1rem;
    background-color: var(--wp--preset--color--primary-6);
    border-radius: 15px;
    flex: 1 1 0%;
    font-size: 18px;
    text-align: center;
    min-width: 150px;
    transition:.2s ease-in-out;
}

@media only screen and (max-width:1023px) {
    .grve-filter ul {
    gap: 10px;
    margin-bottom:10px;
}
    
    .grve-filter li {
    padding: 0.5rem;
    min-width: 100px;
    font-size:14px;
}
.grve-filter li::before {height:30px;}
}

.grve-filter li:hover {
    transform:scale(1.05);
}

.grve-filter li.selected:hover {
    transform:scale(1);
}

.grve-filter li.selected {
    background-color: var(--wp--preset--color--primary-4);
    color: var(--wp--preset--color--primary-6);
}

.grve-filter li::before {
    content: '';
    display: block;
    width: auto;
    height: 50px;
    background-image: url('/wp-content/uploads/2026/08/icon-01.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 0.5rem;
    vertical-align: middle;
}


.grve-filter li[data-filter=".category-stories"]::before {
    background-image: var(--category-stories);
}

.grve-filter li[data-filter=".category-interviews"]::before {
    background-image: var(--category-interviews);
}

.grve-filter li[data-filter=".category-essays"]::before {
    background-image: var(--category-essays);
}

.grve-filter.grve-filter-style-simple li span::after {display:none;}

/* Tag Filter */

.hkif-groups {
    padding: 1rem;
}
.hkif-panel-title {
    font-family: Geist;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
}

.hkif-close {
    width: 20px;
    height: 20px;
    flex: 0 1 20px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: 300 20px/1 Arial, sans-serif;
    cursor: pointer;
}

.hkif-panel {
    margin: 0 0 2rem;
    border: 1px solid;
    line-height: 1;
    border-color:var(--wp--preset--color--primary-6);
        background-color:color-mix(in srgb, var(--wp--preset--color--primary-6) 100%,transparent);
    transition:all .2s ease-in-out;
}

.hkif-group-label {
    font-family: Geist;
    font-size: 12px;
    width: 100%;
    align-self: flex-start;
    text-transform: uppercase;
    font-weight: 900;
}

.hkif-group {
    background-color: color-mix(in srgb, var(--wp--preset--color--primary-6) 60%,transparent);
    gap: 8px;
}

.hkif-group ul {
    align-items: start;
    margin: 0;
    flex-wrap: wrap;
    display: flex;
    gap: 5px;
}

.hkif-group li {
    margin: 0!important;
    border-radius: 5px;
    text-transform: initial;
    transition: .2s ease-in-out;
    padding: .4rem .6rem !important;
    border: 1px solid var(--wp--preset--color--primary-5);;
}

.hkif-group li:hover {background:var(--wp--preset--color--primary-5);border-color:var(--wp--preset--color--primary-5);}
.hkif-group li.selected {background:var(--wp--preset--color--primary-4)!important;border-color:var(--wp--preset--color--primary-4)!important;}

.hkif-toggle {
    margin-left: 0!important;
    padding: 1rem!important;
    line-height: 1!important;
    min-height: initial;
    font-size:18px;
}

.hkif-toggle:hover, .hkif-toggle.is-active {
    background: var(--wp--preset--color--primary-4);
    color: var(--wp--preset--color--primary-6, #fff);
}

.hkif-toggle, .hkif-reset {
    font-size: 10px;
    text-decoration: none;
    margin: 15px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    font-family: Geist;
    transition: .2s ease-in-out;
    color: var(--wp--preset--color--primary-4);
}

.hkif-reset:hover {
    background-color:var(--wp--preset--color--primary-4);color:var(--wp--preset--color--primary-6);}

.hkif-reset {
    background-color: var(--wp--preset--color--primary-6);
    border-radius: 30px;
    width: -webkit-max-content;
    padding: 0.6rem !important;
    height: auto;
    min-height: initial;
    margin:0;
}

.hkif-panel[data-hkif-state="open"] .hkif-toggle {
    padding: 0.4rem 0.6rem!important;
    border-radius: 30px;
    margin: 15px;
    background-color: var(--wp--preset--color--primary-6);
}

.hkif-panel.hkif-panel-open {
border-color:var(--wp--preset--color--primary-6);
background:color-mix(in srgb, var(--wp--preset--color--primary-6) 20%,transparent);
}

.hkif-panel-footer {
    flex: 0 0 auto;
    padding: 1rem;
    border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    background: inherit;
}



/* Blog Post CSS */

.grve-blog-grid .grve-post-item-inner {
    border-radius: 20px!important;
    overflow: hidden!important;
}

.grve-post-item.grve-style-2 .grve-read-more {
    margin-top: 0!important;
}

.grve-blog-grid .grve-post-item-inner .grve-post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grve-post-item.grve-style-2 .readingtime_text.himkatha-thumbnail-reading-time {
    position: absolute;
    z-index: 20;
    border: none;
    left: 15px;
    top: 15px;
    bottom: initial;
    background-color: var(--wp--preset--color--primary-2);
    color: #fff;
    transition: all .15s ease;
    opacity:1;
}

.grve-blog-grid .grve-thumbnail-wrapper {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.grve-blog-grid .grve-thumbnail {
    height: 100%;
    padding-top: 0 !important;
}

.grve-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grve-post-item.grve-style-1:hover .grve-post-media, .grve-post-item.grve-style-1:hover .grve-post-media .grve-thumbnail {
    transform: scale(1)!important;
}


.grve-post-item.grve-style-2 {
    transform: translateY(0px);
    transition:.2s ease-in-out;
}

.grve-post-item.grve-style-2:hover {
    transform: translateY(-5px);
}

.grve-post-item.grve-style-1 .grve-post-media .grve-thumbnail {
    border-radius: 15px;
}

/* ==========================================================
   v3.4.7 — True page-level desktop aside + smooth CSS Grid resize
   The filter panel remains a page-level aside. When it is open, Impeka's
   Isotope container is used only for filtering; CSS Grid controls the
   visible post layout so the available page width is filled evenly.
   ========================================================== */
@media (min-width: 1024px) {
    :root {
        --hkif-aside-width: 380px;
        --hkif-aside-gap: 32px;
    }

    body.hkif-page-layout {
        ---hkif-header-height: 0px;
    }

    /*
       Both states use explicit widths. This is important: the browser can
       interpolate between 100% and calc(100% - aside) instead of switching
       between an auto/theme width and a calculated width.
    */
    body.hkif-page-layout #grve-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        transition: width .38s cubic-bezier(.22,.61,.36,1),
                    max-width .38s cubic-bezier(.22,.61,.36,1),
                    margin-left .38s cubic-bezier(.22,.61,.36,1);
    }

    body.hkif-page-layout.hkif-page-layout-open #grve-content {
        width: calc(100% - var(--hkif-aside-width)) !important;
        max-width: calc(100% - var(--hkif-aside-width)) !important;
        margin-left: var(--hkif-aside-width) !important;
        margin-right: 0 !important;
    }

    body.hkif-page-layout > .hkif-panel {
        position: fixed !important;
        z-index: 100001;
        top: var(---hkif-header-height);
        left: 0;
        right: auto;
        width: var(--hkif-aside-width) !important;
        max-width: var(--hkif-aside-width) !important;
        height: calc(100dvh - var(---hkif-header-height));
        max-height: none;
        margin: 0 !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
        border-radius: 0;
        border-right: 1px solid color-mix(in srgb, currentColor 15%, transparent);
        border-top: 0;
        border-left: 0;
        border-bottom: 0;
        box-shadow: none;
        transform: translateX(-100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform .38s cubic-bezier(.22,.61,.36,1),
                    opacity .2s ease,
                    visibility 0s linear .38s;
    }

    body.hkif-page-layout.hkif-page-layout-open > .hkif-panel {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: transform .38s cubic-bezier(.22,.61,.36,1),
                    opacity .2s ease,
                    visibility 0s linear 0s;
    }

    body.hkif-page-layout > .hkif-panel .hkif-groups {
        max-height: none;
        overflow-y: auto;
    }

    /* The blog wrapper fills the reduced page-content width. */
    body.hkif-page-layout.hkif-page-layout-open .grve-blog.grve-isotope,
    body.hkif-page-layout.hkif-page-layout-open .grve-blog.grve-isotope .grve-isotope-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Isotope's sizer is no longer needed. */
    body.hkif-page-layout.hkif-page-layout-open .grve-blog.grve-isotope .grve-grid-sizer {
        display: none !important;
        width: auto !important;
    }

    /* Remove Isotope's absolute positioning and inline column widths. */
    body.hkif-page-layout.hkif-page-layout-open .grve-blog.grve-isotope .grve-entry-item {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    body.hkif-page-layout.hkif-page-layout-open .grve-blog.grve-isotope .grve-isotope-item-inner,
    body.hkif-page-layout.hkif-page-layout-open .grve-blog.grve-isotope .grve-post-item,
    body.hkif-page-layout.hkif-page-layout-open .grve-blog.grve-isotope .grve-post-item-inner {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    /* Keep the site's existing 40px Impeka gutter, which is normally created
       by 20px padding on each article. */


    .hkif-overlay {
        display: none !important;
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    body.hkif-page-layout.hkif-page-layout-open .grve-blog.grve-isotope .grve-isotope-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    body.hkif-page-layout.hkif-page-layout-open .grve-blog.grve-isotope .grve-isotope-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 768px) and (max-width: 959px) {
    body.hkif-page-layout.hkif-filters-open .grve-blog.grve-isotope .grve-isotope-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body.hkif-page-layout.hkif-filters-open .grve-blog.grve-isotope .grve-isotope-container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1023px) {
    body.hkif-page-layout > .hkif-panel {
        position: fixed;
        left: 0;
        right: auto;
        transform: translateX(-100%);
        border-left: 0;
        border-right: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    }

    body.hkif-page-layout.hkif-page-layout-open > .hkif-panel {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.hkif-page-layout > .hkif-panel,
    body.hkif-page-layout #grve-content {
        transition: none !important;
    }
}



/* =========================================================
   v3.4.16 — Left-side page-level filter trigger + aside
   ========================================================= */

/*
 * The shell is only a home for the floating trigger.
 * The actual .hkif-panel is a sibling of this element directly under <body>.
 */
.hkif-filter-shell {
    position: fixed;
    inset: 0;
    z-index: 100002;
    pointer-events: none;
}

/* Persistent trigger — visible whether the drawer is open or closed, anchored bottom-left. */
.hkif-filter-shell > .hkif-toggle {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 100003;

    display: flex;
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    margin: 0;
    padding: 0;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;
    background: var(--wp--preset--color--primary-4);
    color: var(--wp--preset--color--primary-6);

    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);

    font-size: 0;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.hkif-filter-shell > .hkif-toggle::before {
    content: "FILTERS";
    font-family: Geist, sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .02em;
}

.hkif-filter-shell > .hkif-toggle.is-active {
    background: var(--wp--preset--color--primary-6);
    color: var(--wp--preset--color--primary-4);
}

.hkif-filter-shell > .hkif-toggle:hover {
    transform: scale(1.05);
}

/* Keep the page-level aside above page content. */
body.hkif-page-layout > .hkif-panel {
    z-index: 100001;
}

@media only screen and (max-width: 767px) {
    .hkif-filter-shell > .hkif-toggle {
        left: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
    }
}

/* =========================================================
   v3.4.17 — scroll-safe drawer + collapsible filter groups
   ========================================================= */

/* Allow the middle section of the fixed drawer to actually shrink and scroll. */
body.hkif-page-layout > .hkif-panel,
.hkif-panel-content {
    min-height: 0;
}

body.hkif-page-layout > .hkif-panel .hkif-panel-content {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.hkif-page-layout > .hkif-panel .hkif-groups {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Group header with the collapse/expand control. */
.hkif-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.hkif-group-head .hkif-group-label {
    flex: 1 1 auto;
    width: auto;
}

.hkif-group-toggle {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font: 500 16px/1 Arial, sans-serif;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.hkif-group-toggle:hover {
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-color: currentColor;
}

.hkif-group-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.hkif-group-toggle-icon {
    display: inline-block;
    line-height: 1;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal;
    speak: never;
}

.hkif-group-toggle-icon::before {
    content: "\f077";
}

.hkif-group.is-collapsed .hkif-group-toggle-icon::before {
    content: "\f078";
}

.hkif-group.is-collapsed > ul {
    display: none;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* The floating trigger must sit underneath the drawer whenever it is open. */
body.hkif-page-layout.hkif-page-layout-open .hkif-filter-shell > .hkif-toggle {
    z-index: 99999;
}

@media (max-width: 1023px) {
    body.hkif-page-layout .hkif-panel-content {
        min-height: 0;
    }

    body.hkif-page-layout .hkif-groups {
        min-height: 0;
        overflow-y: auto !important;
    }
}


/* =========================================================
   v3.4.18 — group spacing + in-panel hide control
   ========================================================= */

.hkif-groups {
    padding: 0;
    gap: 0;
}

.hkif-group {
    background-color: color-mix(in srgb, var(--wp--preset--color--primary-6) 60%, transparent);
    gap: 8px;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hkif-group-toggle {
    border: none;
    margin: 0;
    padding: 0 !important;
    min-height: 15px !important;
    height: 15px !important;
}

.hkif-group-toggle:hover {
    background: none;
}

.hkif-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hkif-panel-footer .hkif-reset,
.hkif-hide {
    width: auto;
    min-height: 44px;
    margin: 0;
    flex: 0 0 auto;
}

.hkif-hide {
    padding: .65rem 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.hkif-hide:hover {
    background: var(--wp--preset--color--primary-4);
    border-color: var(--wp--preset--color--primary-4);
    color: var(--wp--preset--color--primary-6, #fff);
}

/* The panel remains the page-level drawer; the trigger shell follows it in the DOM. */
body.hkif-page-layout > .hkif-panel {
    z-index: 100001;
}

body.hkif-page-layout > .hkif-filter-shell {
    z-index: 100000;
}

@media (max-width: 767px) {
    .hkif-panel-footer {
        gap: 8px;
    }

    .hkif-panel-footer .hkif-reset,
    .hkif-hide {
        min-height: 40px;
        padding: .55rem .8rem;
        font-size: 11px;
    }
}


/* =========================================================
   v3.4.19 — final drawer/group presentation overrides
   ========================================================= */

.hkif-group-toggle {
    border: none;
    margin: 0;
    padding: 0 !important;
    min-height: 15px !important;
    height: 15px !important;
}

.hkif-group-toggle:hover {
    background: none;
}

.hkif-groups {
    padding: 0px;
    gap: 0;
}

.hkif-group {
    background-color: color-mix(in srgb, var(--wp--preset--color--primary-6) 60%, transparent);
    gap: 8px;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Inset drawer treatment. The header-height variable is the existing
   plugin variable; the source CSS had a typo with three leading dashes. */
body.hkif-page-layout > #hkif-drawer {
    margin: 1rem !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 30px !important;
    height: calc(100dvh - var(---hkif-header-height)) !important;
    bottom: 0;
}

.hkif-toggle,
.hkif-reset,
.hkif-hide {
    font-family: Geist;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 900;
    padding: 0.3rem 1.2rem !important;
}

/* The persistent trigger is now a compact pill rather than the old circle. */
.hkif-filter-shell > .hkif-toggle {
    width: auto !important;
    height: auto !important;
    max-height: 44px !important;
    min-height: 44px !important;
    border-radius: 30px !important;
    padding: 0.3rem 1.2rem !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.hkif-filter-shell > .hkif-toggle::before {
    content: 'Show Filters' !important;
    font-family: Geist;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
}

/* Keep the floating trigger below the open drawer. */
body.hkif-page-layout.hkif-page-layout-open .hkif-filter-shell > .hkif-toggle {
    z-index: 100000 !important;
}

body.hkif-page-layout > #hkif-drawer {
    z-index: 100001 !important;
}


/* =========================================================
   v3.4.20 — Font Awesome group chevrons + drawer cleanup
   ========================================================= */

.hkif-group-toggle-icon {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal;
    line-height: 1;
}

.hkif-group-toggle-icon::before {
    content: "\f077";
}

.hkif-group.is-collapsed .hkif-group-toggle-icon::before {
    content: "\f078";
}

body.hkif-page-layout > #hkif-drawer {
    height: calc(100dvh - var(---hkif-header-height)) !important;
}

.hkif-groups > .hkif-group:last-child {
    border-bottom: none;
}


/* =========================================================
   v3.4.27 — Footer button order
   Hide Filters on the left, Reset Filters on the right.
   ========================================================= */
.hkif-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hkif-panel-footer .hkif-hide {
    order: 1;
}

.hkif-panel-footer .hkif-reset {
    order: 2;
}


/* v3.4.27 — directional group interaction */
.hkif-group.is-minimized {
    cursor: pointer;
}

.hkif-group.is-minimized .hkif-group-toggle {
    cursor: pointer;
}

.hkif-group:not(.is-minimized) {
    cursor: default;
}

.hkif-group:not(.is-minimized) .hkif-group-toggle {
    cursor: pointer;
}


/* v3.4.27 — directional group interaction */
.hkif-group.is-collapsed {
    cursor: pointer;
}

.hkif-group:not(.is-collapsed) {
    cursor: default;
}

.hkif-group-toggle {
    cursor: pointer;
}


/* v3.4.27 — mobile full-screen filter UI */
.hkif-apply { display:none; }

@media only screen and (max-width: 767px) {
    body.hkif-page-layout > #hkif-drawer {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        z-index: 100001 !important;
        overflow: hidden !important;
    }

    body.hkif-page-layout > #hkif-drawer .hkif-panel-content {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body.hkif-page-layout > #hkif-drawer .hkif-groups {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.hkif-page-layout > #hkif-drawer .hkif-panel-footer {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .hkif-apply {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 30px;
        background: var(--wp--preset--color--primary-4);
        color: var(--wp--preset--color--primary-6);
        font-family: Geist;
        font-size: 10px;
        text-transform: uppercase;
        font-weight: 900;
        line-height: 1;
        padding: .3rem 1.2rem !important;
        min-height: 44px;
        cursor: pointer;
        margin: 0;
    }

    body.hkif-page-layout.hkif-mobile-filters-open .grve-isotope.grve-blog {
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }

    /* Keep the floating trigger below the full-screen drawer. */
    .hkif-filter-shell,
    .hkif-filter-shell > .hkif-toggle {
        z-index: 100000 !important;
    }
}


/* v3.4.27 — mobile closed-state safety */
@media only screen and (max-width: 767px) {
    body.hkif-page-layout > #hkif-drawer[data-hkif-state="closed"] ~ .hkif-filter-shell {
        visibility: visible;
    }

    body.hkif-page-layout > #hkif-drawer[data-hkif-state="closed"] ~ * .grve-isotope.grve-blog,
    body.hkif-page-layout:not(.hkif-mobile-filters-open) .grve-isotope.grve-blog {
        visibility: visible !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    /* The panel itself owns the mobile viewport; the page behind it is not
       hidden wholesale. */
    body.hkif-page-layout > #hkif-drawer {
        overflow: hidden !important;
    }
}


/* =========================================================
   v3.4.28 — mobile drawer positioning fix
   The drawer itself is the page-level aside (#hkif-drawer).
   It slides from the left on mobile; .hkif-panel is not nested.
   ========================================================= */

/* Keep the persistent trigger underneath the drawer whenever the drawer is open. */
.hkif-filter-shell {
    z-index: 100000 !important;
}

body.hkif-page-layout > #hkif-drawer {
    z-index: 100001 !important;
}

@media only screen and (max-width: 767px) {

    body.hkif-page-layout > #hkif-drawer {
        position: fixed !important;
        top: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        overflow: hidden !important;

        transform: translateX(-100%) !important;
        visibility: hidden !important;
        opacity: 1 !important;

        transition:
            transform .38s cubic-bezier(.22,.61,.36,1),
            visibility 0s linear .38s !important;
    }

    body.hkif-page-layout > #hkif-drawer[data-hkif-state="open"] {
        transform: translateX(0) !important;
        visibility: visible !important;
        transition:
            transform .38s cubic-bezier(.22,.61,.36,1),
            visibility 0s linear 0s !important;
    }

    body.hkif-page-layout > #hkif-drawer .hkif-panel-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    body.hkif-page-layout > #hkif-drawer .hkif-groups {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain;
    }

    body.hkif-page-layout > #hkif-drawer .hkif-panel-footer {
        flex: 0 0 auto !important;
    }

    /* Trigger remains available when the drawer is closed, but sits beneath it when open. */
    .hkif-filter-shell,
    .hkif-filter-shell > .hkif-toggle {
        z-index: 100000 !important;
    }

    body.hkif-page-layout > #hkif-drawer[data-hkif-state="open"] ~ .hkif-filter-shell {
        z-index: 100000 !important;
    }

    /* Mobile grid stays hidden while filters are being edited. */
    body.hkif-page-layout.hkif-mobile-filters-open .grve-isotope.grve-blog {
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
}

/* =========================================================
   TABLET PORTRAIT — FULL-SCREEN FILTER DRAWER
   768px–959px
   ========================================================= */
@media only screen and (min-width: 768px) and (max-width: 959px) {

    body.hkif-page-layout > #hkif-drawer {
        position: fixed !important;
        top: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        overflow: hidden !important;

        transform: translateX(-100%) !important;
        visibility: hidden !important;
        opacity: 1 !important;

        transition:
            transform .38s cubic-bezier(.22,.61,.36,1),
            visibility 0s linear .38s !important;
    }

    body.hkif-page-layout > #hkif-drawer[data-hkif-state="open"] {
        transform: translateX(0) !important;
        visibility: visible !important;
        transition:
            transform .38s cubic-bezier(.22,.61,.36,1),
            visibility 0s linear 0s !important;
    }

    body.hkif-page-layout > #hkif-drawer .hkif-panel-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    body.hkif-page-layout > #hkif-drawer .hkif-groups {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain;
    }

    body.hkif-page-layout > #hkif-drawer .hkif-panel-footer {
        flex: 0 0 auto !important;
    }

    /* Keep the floating trigger beneath the drawer while open. */
    .hkif-filter-shell,
    .hkif-filter-shell > .hkif-toggle {
        z-index: 100000 !important;
    }

    /* The blog grid remains hidden while filters are being edited. */
    body.hkif-page-layout.hkif-mobile-filters-open .grve-isotope.grve-blog {
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
}



/* HimKatha stable Apply Filters control: staged selections are committed only on click. */
.hkif-panel-footer .hkif-apply {
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    order:2;
    flex:0 0 auto;
    min-height:44px;
    padding:.65rem 1.2rem;
    border:0;
    border-radius:999px;
    background:var(--wp--preset--color--primary-4, currentColor);
    color:var(--wp--preset--color--primary-6, #fff);
    font:inherit;
    font-size:.78em;
    font-weight:600;
    line-height:1;
    cursor:pointer;
    white-space:nowrap;
}
.hkif-panel-footer .hkif-apply:hover { opacity:.88; }
.hkif-panel-footer .hkif-apply:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.hkif-panel-footer .hkif-hide { order:1; }
.hkif-panel-footer .hkif-reset { order:3; }
@media (max-width:767px){ .hkif-panel-footer .hkif-apply { min-height:44px; padding:.55rem 1rem; font-size:10px; text-transform:uppercase; font-weight:900; } }


/* HimKatha active-filter summary: visible above the archive, not inside the drawer. */
.hkif-active-filters {
    display: none;
    width: 100%;
    margin: 0 0 28px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.hkif-active-filters.is-visible { display: flex; }
.hkif-active-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.hkif-active-list::before {
    content: 'Filters';
    margin-right: 8px;
    font-size: .8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .65;
}
.hkif-active-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .78em;
    line-height: 1;
}
.hkif-active-chip-label { display: inline-block; }
.hkif-active-chip-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    width: 18px;
    height: 18px;
    margin: 0 0 0 6px;
    padding: 0;
    font: inherit;
    font-size: 16px;
    line-height: 18px;
    cursor: pointer;
    opacity: .65;
}
.hkif-active-chip-remove:hover { opacity: 1; }
.hkif-active-chip-remove:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 50%; }
.hkif-active-reset {
    appearance: none;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 6px 0;
    font: inherit;
    font-size: .78em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hkif-active-reset:hover { opacity: .65; }
.hkif-panel-footer .hkif-reset { display:none !important; }
.hkif-panel-footer .hkif-hide { order:1; }
.hkif-panel-footer .hkif-apply { order:2; }
@media (max-width: 767px) {
    .hkif-active-filters { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
    .hkif-active-list { gap: 6px; }
    .hkif-active-list::before { width: 100%; margin: 0 0 2px; }
    .hkif-active-chip { min-height: 30px; padding: 5px 10px; }
}
