/*
 * responsive.css
 * Mobile Responsive Styles - Sidebar → Mobile Top Menu + Front-page
 * Breakpoint: max-width 1023px  (Tailwind "below lg")
 */


/* ═══════════════════════════════════════════════════════════════════
   MOBILE HEADER  (height: 72px)
═══════════════════════════════════════════════════════════════════ */

#mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    z-index: 200;
    align-items: center;
    padding: 0 1.5rem;
    justify-content: space-between;
}

.mob-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.mob-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mob-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #383838;
    font-size: 1.5rem;
    line-height: 0;
    position: relative;
    transition: background 0.18s ease;
}

.mob-action-btn:hover {
    background: #f4f4f4;
}

/* Newsletter accent button — subtle green tint to draw attention */
.mob-action-btn--accent {
    background: rgba(86, 178, 56, 0.10);
    color: var(--accent, #56b238);
}
.mob-action-btn--accent:hover {
    background: rgba(86, 178, 56, 0.20);
}

/* ── Hamburger ↔ Close animation ── */
#mob-menu-btn .ic-open,
#mob-menu-btn .ic-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#mob-menu-btn .ic-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

#mob-menu-btn.is-open .ic-open {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

#mob-menu-btn.is-open .ic-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE DRAWER
═══════════════════════════════════════════════════════════════════ */

#mob-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: min(100%, 320px);
    height: calc(100svh - 72px);
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.09);
    z-index: 150;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mob-drawer.is-open {
    transform: translateX(0);
}

#mob-drawer::-webkit-scrollbar          { width: 3px; }
#mob-drawer::-webkit-scrollbar-track   { background: transparent; }
#mob-drawer::-webkit-scrollbar-thumb   { background: #e5e7eb; border-radius: 2px; }


/* ═══════════════════════════════════════════════════════════════════
   OVERLAY
═══════════════════════════════════════════════════════════════════ */

#mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(2px);
    z-index: 140;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mob-overlay.is-visible {
    opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE NAV ACCORDION
═══════════════════════════════════════════════════════════════════ */

#mob-nav {
    padding: 0.75rem 0.875rem 0.5rem;
    flex: 1;
}

#mob-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Level 1 list */
#mob-nav > ul {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

/* Level 1 anchor */
#mob-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.625rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.18s ease;
    width: 100%;
    position: relative;
}

#mob-nav > ul > li > a img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

#mob-nav > ul > li > a:hover {
    background: #f4f4f4;
}

/* Chevron - override sidebar absolute positioning */
#mob-nav > ul > li > a span.chevron-indicator {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: static;
}

#mob-nav > ul > li > a span.chevron-indicator::after {
    content: url('assets/images/chevron-down-outline.svg');
    width: 15px;
    height: 15px;
    display: block;
    line-height: 0;
    position: static;
    transform: none;
    top: auto;
    right: auto;
}

#mob-nav > ul > li > a.mob-open span.chevron-indicator {
    transform: rotate(180deg);
}

/* Level 1 submenu - no side border */
#mob-nav > ul > li > ul {
    display: none;
    margin: 0.25rem 0;
}

#mob-nav > ul > li > ul.mob-open {
    display: block;
}

/* Level 2 anchors */
#mob-nav > ul > li > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.625rem;
    border-radius: 0.5rem;
    color: #444;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 1;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.3;
}

#mob-nav > ul > li > ul > li > a:hover {
    background: #f4f4f4;
    color: #1a1a1a;
}

#mob-nav > ul > li > ul > li > a > span {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: #aaa;
}

/* "Όλες/Όλα" link */
#mob-nav > ul > li > ul > li.all > a {
    color: var(--accent, #56b238);
    font-weight: 500;
    opacity: 1;
}

#mob-nav > ul > li > ul > li.all > a:hover {
    color: var(--hover, #091e01);
}

#mob-nav > ul > li > ul > li.all > a > span {
    display: block;
    line-height: 0;
    transform: rotate(-45deg);
    color: inherit;
    font-size: 1rem;
}

/* Dividers between level-2 items */
#mob-nav > ul > li > ul > li:not(:last-child) {
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #d4d4d4;
    padding-bottom: 0.4rem;
}

#mob-nav > ul > li > ul > li.all {
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
}

/* Hide sub-toggle buttons from main.js */
#mob-nav .sub-toggle {
    display: none !important;
}

/* ── has-sub row (link + chevron button) ── */
.mob-has-sub-row {
    display: flex;
    align-items: stretch;
}

.mob-has-sub-row > a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem 0.45rem 0.625rem;
    border-radius: 0.5rem 0 0 0.5rem;
    color: #444;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 1;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
}

.mob-has-sub-row > a:hover {
    background: #f4f4f4;
    color: #1a1a1a;
}

.mob-has-sub-row > a > span {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: #aaa;
}

/* Toggle button - no left border */
.mob-has-sub-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.625rem;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    background: transparent;
    cursor: pointer;
    color: #999;
    font-size: 1rem;
    line-height: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.mob-has-sub-toggle:hover {
    background: #f4f4f4;
    color: #333;
}

.mob-has-sub-toggle ion-icon {
    transition: transform 0.3s ease;
    display: block;
}

.mob-has-sub-toggle.mob-open ion-icon {
    transform: rotate(180deg);
}

/* Level 3 submenu - no side border */
#mob-nav > ul > li > ul > li.has-sub > ul {
    display: none;
    margin: 0.25rem 0 0.25rem 0.5rem;
    padding-left: 0.625rem;
}

#mob-nav > ul > li > ul > li.has-sub > ul.mob-open {
    display: block;
}

/* Level 3 anchors */
#mob-nav > ul > li > ul > li.has-sub > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.375rem;
    color: #666;
    text-decoration: none;
    font-size: 0.8125rem;
    opacity: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

#mob-nav > ul > li > ul > li.has-sub > ul > li > a:hover {
    background: #f4f4f4;
    color: var(--accent, #56b238);
}

#mob-nav > ul > li > ul > li.has-sub > ul > li > a > span {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #bbb;
}


/* ═══════════════════════════════════════════════════════════════════
   DRAWER FOOTER
═══════════════════════════════════════════════════════════════════ */

.mob-drawer-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: auto;
}

/* Footer nav links (cloned with class .mob-footer-links) */
#mob-drawer .mob-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

#mob-drawer .mob-footer-links li a {
    display: block;
    padding: 0.45rem 0.625rem;
    border-radius: 0.5rem;
    color: #555;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s ease;
}

#mob-drawer .mob-footer-links li a:hover {
    background: #f4f4f4;
    color: #1a1a1a;
}

/* PRO CTA */
.mob-pro-cta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem !important;
    min-height: auto !important;
    width: 100% !important;
    background: linear-gradient(135deg, #56b238 0%, #3d8a28 100%);
    border-radius: 0.75rem;
    border-top: none !important;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.mob-pro-cta:hover { opacity: 0.9; }

.mob-pro-cta p {
    margin: 0;
    color: #fff !important;
    display: block !important;
}

.mob-pro-cta span {
    display: flex;
    align-items: center;
    line-height: 0;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}


/* ═══════════════════════════════════════════════════════════════════
   LAYOUT ADJUSTMENTS  @media max-width: 1023px
═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {

    /* Show mobile chrome */
    #mobile-header { display: flex; }
    #mob-drawer    { display: flex; }

    /* Hide desktop sidebar */
    .main-sidebar { display: none !important; }

    /* Push page below fixed header (72px) */
    body > .flex { padding-top: 72px; }

    /* Main area fills remaining viewport */
    .main-area {
        max-height: calc(100svh - 72px) !important;
        min-height: calc(100svh - 72px) !important;
    }

    /* Prevent body scroll while drawer open */
    body.mob-menu-open { overflow: hidden; }


    /* ─── FRONT-PAGE: HERO ─────────────────────────────────────── */

    .hero {
        padding: 6rem 1.5rem 8rem !important;
    }

    /* Single-column, center everything */
    .hero > .grid {
        grid-template-columns: 1fr !important;
        gap: 0;
        text-align: center;
    }

    /* Hide the CTAs block (stats + links) - keep only the 3 text lines */
    .hero > .grid > div:last-child {
        display: none !important;
    }

    /* Center inline-block wrapper (slogan + h1) */
    .hero > .grid > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 { font-size: 2.25rem !important; }
    .hero .hero-slogan { font-size: 1rem !important; }


    /* ─── FRONT-PAGE: PROMPTS SECTION ──────────────────────────── */

    section.px-20 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        padding-bottom: 2.5rem !important;
    }

    section.px-20 > .flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
        margin-bottom: 1.5rem !important;
    }

    section.px-20 .section-title h2 {
        font-size: 1.875rem !important;
    }

    section.px-20 .section-title > p {
        font-size: 0.875rem;
    }

    /* Single-column grid */
    section.px-20 .grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Reduce card internal padding */
    section.px-20 .grid > * {
        padding: 1.5rem !important;
    }


    /* ─── PROMPT CARDS  (card-prompt.php) ──────────────────────── */

    /*
     * .prompt-header: flex row (title | copy button) - stays as-is, fine on mobile.
     * AI links row: can get crowded, allow wrapping.
     */
    .prompt-card .prompt-title {
        font-size: 1.1rem !important;
    }


    /* ─── SINGLE-PROMPT PAGE  (single-prompt.php) ──────────────── */

    /* Hero: slim padding, reduce right-padding since favorite button becomes smaller */
    .prompt-hero {
        padding: 1.75rem 1.25rem !important;
    }
    .prompt-hero .sgr-fav-btn {
        top: 0.75rem !important;
        right: 1rem !important;
    }
    .prompt-hero h1 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        padding-right: 3.5rem !important;
    }
    .prompt-hero p,
    .prompt-hero .max-w-5xl > p {
        padding-right: 3.5rem !important;
    }

    /* Main content padding */
    .prompt-hero + .px-8,
    .prompt-hero ~ .px-8 {
        padding: 2rem 1.25rem !important;
    }

    /* Why cards: single column stack (already handled by grid but ensure gap) */
    .why-card {
        padding: 1.25rem 1.15rem !important;
    }

    /* Prompt header: title + thumbs stack tidily */
    .prompt-block-header {
        gap: 0.5rem !important;
        padding: 0.75rem 1rem !important;
    }
    .prompt-header-thumbs .sgr-thumb {
        padding: 0.35rem 0.5rem !important;
    }

    /* Prompt body padding on mobile */
    .prompt-block-body {
        padding: 1.25rem !important;
    }
    .prompt-inner {
        padding: 1.15rem !important;
        font-size: 0.95rem !important;
    }

    /* AI launch buttons: single column so labels don't clip */
    .prompt-sidebar .grid.grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Similar prompts carousel: tighten padding */
    section.px-8.md\:px-20.py-14 {
        padding: 2rem 1.25rem !important;
    }


    /* ─── 9AM BANNER (footer.php) — mobile tune-up ─────────────── */

    .nam-banner {
        padding: 3rem 1.25rem 2.75rem !important;
    }
    .nam-headline {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    .nam-sub {
        font-size: 0.9rem !important;
    }
    .nam-features {
        gap: 0.4rem !important;
    }
    .nam-feature {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    .nam-stripe {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        font-size: 0.75rem !important;
    }
    .nam-logo-wrap {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 1.25rem !important;
    }


    /* ─── FOOTER (τελικό copyright block) ──────────────────────── */

    .footer {
        padding: 1rem 1.25rem !important;
    }
    .footer > .flex.items-center.justify-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }


    /* ─── GENERIC PAGE-WIDE SAFEGUARDS ─────────────────────────── */

    /* No horizontal overflow — belt & suspenders (hidden + clip fallback, plus width lock) */
    html, body {
        overflow-x: clip; /* preferred: no scroll context side-effects */
        max-width: 100%;
        width: 100%;
    }
    /* Fallback for older browsers that don't support overflow-x: clip */
    @supports not (overflow: clip) {
        html, body { overflow-x: hidden; }
    }
    /* NB: intentionally NOT clipping arbitrary body-level wrappers (main, .site, etc.).
       In this theme those wrappers can contain absolutely-positioned or z-indexed hero
       content whose visibility depends on visible parents. The html/body clip above is
       sufficient to kill horizontal scroll from decorative blobs. */

    /* Prompts / posts pages breadcrumbs */
    nav[aria-label="Breadcrumb"] ol {
        font-size: 0.75rem !important;
        gap: 0.3rem !important;
    }
    nav[aria-label="Breadcrumb"] li {
        white-space: nowrap;
    }


    /* ─── TOC → chip/button grid στο κινητό ─────────
       Ο user θέλει τον "Στη σελίδα" TOC να μοιάζει με filter chips (button-driven jumps),
       όχι με λίστα. Μετατρέπω το ul σε flex-wrap, και τα a σε pill-shaped chips. */
    #sgrToc {
        border-radius: 14px !important;
        padding: 0.85rem 0.9rem !important;
    }
    #sgrToc > p {
        font-size: 0.7rem !important;
        margin-bottom: 0.6rem !important;
    }
    #sgrToc ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }
    #sgrToc ul > li { list-style: none !important; }
    #sgrToc .sgr-toc-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        padding: 0.4rem 0.75rem !important;
        border-radius: 999px !important;
        background: #f4f6f2 !important;
        border: 1px solid #e2e6db !important;
        font-size: 0.78rem !important;
        color: #1f2937 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }
    #sgrToc .sgr-toc-link:hover,
    #sgrToc .sgr-toc-link:focus,
    #sgrToc .sgr-toc-link.sgr-toc-active {
        background: var(--accent, #56b238) !important;
        border-color: var(--accent, #56b238) !important;
        color: #fff !important;
    }
    #sgrToc .sgr-toc-link ion-icon {
        font-size: 0.9rem !important;
        opacity: 0.85 !important;
    }
    #sgrToc .sgr-toc-link span { max-width: none !important; overflow: visible !important; text-overflow: initial !important; }


    /* ─── FOOTER breathing room ───────────────────────────────────
       Πολλά templates βάζουν section ακριβώς πριν το footer με 0 bottom margin.
       Πρόσθεσε μια αναπνοή. */
    footer.footer {
        margin-top: 2rem !important;
    }
    /* Also lift the 9am labs promo banner off the footer if present. */
    .naml-banner { margin-bottom: 1.25rem; }

    /* ─── SGR-PH HINT (Task #306) mobile tighten ───────────────── */
    .sgr-ph-hint {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.75rem !important;
    }


    /* ─── TAXONOMY & ARCHIVE PAGES: shrink giant headers ───────── */
    body.archive .px-20,
    body.tax-prompt_category .px-20,
    body.archive .px-8,
    body.tax-prompt_category .px-8 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    body.archive h1,
    body.tax-prompt_category h1 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   EXTRA-SMALL PHONES  @media max-width: 480px
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .prompt-hero h1 { font-size: 1.4rem !important; padding-right: 3rem !important; }
    .prompt-inner { font-size: 0.9rem !important; padding: 1rem !important; }
    .prompt-header-thumbs .sgr-thumb-count { display: none; }
    .nam-headline { font-size: 1.2rem !important; }
    .nam-cta { font-size: 0.85rem !important; padding: 0.6rem 1.1rem !important; }
    .nam-banner__brand img { width: 100vw !important; opacity: 0.14; }
}


/* ═══════════════════════════════════════════════════════════════════
   SEARCH POPUP  @media max-width: 639px  (Tailwind "max-sm")
   - modal gets max-height: 60svh
   - close button floats fixed top-right of the overlay
═══════════════════════════════════════════════════════════════════ */

@media (max-width: 639px) {

    /* Modal: constrain height, make it a flex column so results scroll */
    #search-modal {
        max-height: 60svh !important;
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
    }

    /* Results area fills remaining space and scrolls internally */
    #search-results {
        flex: 1;
        overflow-y: auto;
        max-height: none !important;
    }

    /* Input row: remove right padding gap left by the departing close button */
    #search-modal > div:first-child {
        padding-right: 1.25rem;
    }

    /*
     * Close button: pull out of the modal entirely.
     * position:fixed is still governed by the overlay's display:none -
     * when overlay is hidden, this button is hidden too.
     */


    /* ── Hide LOCAL / HIDDEN env badge on mobile (Task #313-batch4) ── */
    .sgr-env-badge {
        display: none !important;
    }

    /* ── Bigger logo on mobile header ── */
    .mob-logo-img {
        height: 48px !important;
    }

    /* ── Home DUO mobile carousels: 1-per-slide, peek επόμενου (glossary-style) ── */
    .mob-carousel {
        position: relative;
        width: 100%;
    }
    .mob-carousel__track {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.75rem;
        padding: 4px 1rem 12px;
        scroll-padding-left: 1rem;
    }
    .mob-carousel__track::-webkit-scrollbar { display: none; }
    .mob-carousel__slide {
        flex: 0 0 85%;
        max-width: 320px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        box-sizing: border-box;
    }
    /* Slides may contain home-duo__prompt cards; ensure they lay
     * out vertically and take full width of the slide. */
    .mob-carousel__slide > * {
        width: 100%;
        max-width: 100%;
        height: 100%;
    }
    .mob-carousel--prompts .mob-carousel__slide > .home-duo__prompt {
        padding: 1rem 1.15rem;
    }
    .mob-carousel__dots {
        display: flex;
        justify-content: center;
        gap: 0.4rem;
        margin-top: 0.9rem;
    }
    .mob-carousel__dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.18);
        border: 0;
        padding: 0;
        cursor: pointer;
        transition: background 0.18s ease, transform 0.18s ease;
    }
    .mob-carousel__dot.is-active {
        background: var(--accent, #56b238);
        transform: scale(1.35);
    }
    /* Prompt slides get the same peek behavior */
    .mob-carousel--prompts .mob-carousel__slide { flex: 0 0 88%; }

    /* Mini category chips inside the prompts column on mobile — less noisy. */
    .home-duo__col--prompts .home-duo__catband {
        margin: 0.9rem 1rem 0 !important;
        padding: 0.75rem 0.9rem !important;
        border-radius: 12px !important;
    }
    .home-duo__col--prompts .home-duo__catband-title {
        font-size: 0.72rem !important;
        margin: 0 0 0.5rem !important;
        letter-spacing: 0.04em !important;
    }
    .home-duo__col--prompts .home-duo__catband-title ion-icon {
        font-size: 0.85rem !important;
    }
    .home-duo__col--prompts .home-duo__catband-list { gap: 0.3rem !important; }
    .home-duo__col--prompts .home-duo__catband-list a {
        padding: 0.28rem 0.6rem !important;
        font-size: 0.72rem !important;
        gap: 0.25rem !important;
    }
    .home-duo__col--prompts .home-duo__catband-list a .c {
        font-size: 0.62rem !important;
    }

    /* ══════════════════════════════════════════════════════
       MOBILE FILTERS DRAWER
    ══════════════════════════════════════════════════════ */

    .mob-filters-trigger {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin: 1rem 1.25rem 0.75rem; /* κενό από το page title επάνω */
        padding: 0.4rem 0.85rem;
        background: var(--accent, #56b238);
        color: #fff;
        border: 0;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1;
        box-shadow: 0 6px 18px -8px rgba(86, 178, 56, 0.45);
        cursor: pointer;
    }
    .mob-filters-trigger ion-icon { font-size: 0.95rem; }

    /* Hide the desktop-style horizontal filter bar until the trigger opens it. */
    .filter-component[data-mob-filters] {
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(92vw, 400px);
        margin: 0 !important;
        padding: 4rem 1rem 1.25rem !important;
        background: #ffffff;
        z-index: 500;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: -14px 0 40px rgba(0, 0, 0, 0.18);
    }
    body.mob-filters-open .filter-component[data-mob-filters] {
        transform: translateX(0);
    }
    .filter-component[data-mob-filters] > form {
        border: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    /* Vertical stack of dropdowns inside the drawer — each becomes a full-width row. */
    .filter-component[data-mob-filters] .flex.flex-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
    }
    .filter-component[data-mob-filters] .sgr-drop {
        width: 100% !important;
    }
    .filter-component[data-mob-filters] .sgr-drop-btn {
        width: 100%;
        justify-content: space-between;
    }
    .filter-component[data-mob-filters] .sgr-drop-panel {
        position: static !important;
        width: 100% !important;
        margin-top: 0.4rem;
        box-shadow: none !important;
    }

    .mob-filters-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: #fff;
        cursor: pointer;
        color: rgba(0, 0, 0, 0.65);
        font-size: 1.4rem;
        line-height: 0;
    }
    .mob-filters-close:hover { background: #f4f4f4; }

    .mob-filters-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 499;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    body.mob-filters-open .mob-filters-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    body.mob-filters-open { overflow: hidden; }
}
