/* Custom CSS for specific editorial touches */

        :root {
            --bg-body: #f8f6f3;
            --bg-surface: #ffffff;
            --bg-surface-alt: #f8f6f3;
            --bg-header: #ffffff;
            --bg-footer: #1f2937;
            --text-main: #1a1a1a;
            --text-muted: #666666;
            --text-subtle: #9ca3af;
            --border-soft: #e8e4d8;
            --accent: #6b21a8;
            --accent-2: #06b6d4;
        }

        html[data-theme='dark'] {
            --bg-body: #0f172a;
            --bg-surface: #111827;
            --bg-surface-alt: #1f2937;
            --bg-header: rgba(15, 23, 42, 0.95);
            --bg-footer: #020617;
            --text-main: #f3f4f6;
            --text-muted: #cbd5e1;
            --text-subtle: #94a3b8;
            --border-soft: rgba(148, 163, 184, 0.3);
            --accent: #8b5cf6;
            --accent-2: #22d3ee;
        }

        body {

            background-color: var(--bg-body);

            color: var(--text-muted);

            -webkit-font-smoothing: antialiased;

            -moz-osx-font-smoothing: grayscale;

            transition: background-color 0.25s ease, color 0.25s ease;

            min-height: 100vh;

        }

        .page-header {
            background-color: var(--bg-header);
            backdrop-filter: blur(10px);
            transition: background-color 0.25s ease, border-color 0.25s ease;
        }

        @media (min-width: 1024px) {
            .page-header {
                display: grid !important;
                grid-template-columns: auto minmax(300px, 1fr) auto;
                align-items: center;
                column-gap: 16px;
            }

            .desktop-nav {
                position: static !important;
                left: auto !important;
                transform: none !important;
                justify-content: center;
                gap: 20px;
                min-width: 0;
                z-index: 65;
            }

            #searchForm {
                width: min(34vw, 340px) !important;
            }

            .page-header > div:last-child {
                justify-self: end;
                display: inline-flex;
                align-items: center;
                gap: 10px;
                z-index: 66;
            }
        }

        .theme-toggle-btn {
            width: 44px;
            height: 44px;
            border-radius: 999px;
            border: 1px solid var(--border-soft);
            background: var(--bg-surface);
            color: var(--text-main);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .theme-toggle-btn:hover {
            transform: translateY(-1px);
            border-color: var(--accent);
            color: var(--accent);
        }

        .menu-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.25s ease;
            border-top: 1px solid transparent;
        }

        .menu-panel.open {
            max-height: 320px;
            border-color: var(--border-soft);
        }

        .menu-link.active {
            color: var(--accent) !important;
        }

        .section-anchor {
            position: relative;
            top: -96px;
            display: block;
            visibility: hidden;
        }



        .nav-link::after {

            content: '';

            position: absolute;

            bottom: -4px;

            left: 0;

            width: 0;

            height: 2px;

            background-color: #d4a574;

            transition: width 0.3s ease;

        }



        .nav-link:hover::after {

            width: 100%;

        }



        .logo-card-hover {

            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

        }



        .logo-card-hover:hover {

            transform: translateY(-8px) scale(1.02);

            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);

            border-color: #d4a574;

        }



        .logo-card-hover:hover .logo-img {

            transform: scale(1.08);

        }



        .ai-overlay {

            transition: opacity 0.3s ease, backdrop-filter 0.3s ease;

        }



        .logo-card-hover:hover .ai-overlay {

            opacity: 1;

            backdrop-filter: blur(4px);

        }



        .filter-btn.active {

            background-color: #6b21a8;

            color: white;

            border-color: #6b21a8;

            font-weight: 700;

        }

        .grid-toolbar {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 12px;
            margin-bottom: 16px;
        }

        .grid-search {
            width: 100%;
            height: 44px;
            border-radius: 12px;
            border: 1px solid var(--border-soft);
            background: var(--bg-surface);
            color: var(--text-main);
            padding: 0 14px;
            font-size: 14px;
        }

        .grid-search::placeholder {
            color: var(--text-subtle);
        }

        .grid-clear-btn {
            height: 44px;
            border-radius: 12px;
            border: 1px solid var(--border-soft);
            background: var(--bg-surface);
            color: var(--text-main);
            font-size: 13px;
            font-weight: 600;
            padding: 0 14px;
        }

        .grid-empty {
            text-align: center;
            color: var(--text-muted);
            padding: 32px 12px;
            border: 1px dashed var(--border-soft);
            border-radius: 16px;
            background: var(--bg-surface-alt);
            grid-column: 1 / -1;
        }

        .grid-pagination {
            margin-top: 20px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .page-btn {
            min-width: 38px;
            height: 38px;
            border-radius: 10px;
            border: 1px solid var(--border-soft);
            background: var(--bg-surface);
            color: var(--text-main);
            font-size: 13px;
            font-weight: 600;
            padding: 0 10px;
            transition: all 0.2s ease;
        }

        .page-btn:hover:not(:disabled) {
            border-color: var(--accent);
            color: var(--accent);
            transform: translateY(-1px);
        }

        .page-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #ffffff;
        }

        .page-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .page-summary {
            color: var(--text-subtle);
            font-size: 12px;
            font-weight: 600;
            margin: 0 6px;
        }

        html[data-theme='dark'] .text-editorial-900 {
            color: var(--text-main) !important;
        }

        html[data-theme='dark'] .text-editorial-500 {
            color: var(--text-muted) !important;
        }

        html[data-theme='dark'] .text-editorial-300 {
            color: var(--text-subtle) !important;
        }

        html[data-theme='dark'] .bg-white,
        html[data-theme='dark'] .bg-warm-50,
        html[data-theme='dark'] .bg-warm-100 {
            background-color: var(--bg-surface) !important;
        }

        html[data-theme='dark'] .bg-warm-900 {
            background-color: var(--bg-footer) !important;
        }

        html[data-theme='dark'] .border-warm-200,
        html[data-theme='dark'] .border-warm-300,
        html[data-theme='dark'] .border-black\/10 {
            border-color: var(--border-soft) !important;
        }

        html[data-theme='dark'] .hero-overlay {
            background: rgba(15, 23, 42, 0.68) !important;
        }

        html[data-theme='dark'] .filter-btn:not(.active) {
            background-color: var(--bg-surface);
            color: var(--text-main);
            border-color: var(--border-soft);
        }

        html[data-theme='dark'] .filter-btn.active {
            background-color: var(--accent);
            border-color: var(--accent);
        }

        html[data-theme='dark'] .grid-search,
        html[data-theme='dark'] .grid-clear-btn {
            background: var(--bg-surface-alt);
        }

        #discover[data-hero-theme='dark'] .hero-overlay {
            background: rgba(15, 23, 42, 0.68) !important;
        }

        html[data-theme='dark'] #mobileMenu {
            background: rgba(17, 24, 39, 0.96) !important;
            border-color: var(--border-soft);
        }



        /* Search input reset */

        input[type="search"]::-webkit-search-decoration,

        input[type="search"]::-webkit-search-cancel-button,

        input[type="search"]::-webkit-search-results-button,

        input[type="search"]::-webkit-search-results-decoration {

            display: none;

        }



        @media (prefers-reduced-motion: reduce) {

            * {

                animation-duration: 0.01ms !important;

                animation-iteration-count: 1 !important;

                transition-duration: 0.01ms !important;

            }

        }

        @media (max-width: 1023px) {
            .desktop-nav {
                display: none;
            }

            .mobile-menu-btn {
                display: inline-flex;
            }
        }

        @media (min-width: 1024px) {
            .mobile-shell {
                display: none;
            }
        }

        @media (max-width: 767px) {
            .hero-bg-brands {
                display: none;
            }

            .grid-toolbar {
                grid-template-columns: 1fr;
            }

            #logoGrid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
            }

            #filterContainer {
                gap: 8px;
            }

            #filterContainer .filter-btn {
                font-size: 12px;
                padding: 8px 12px;
            }
        }

        @media (max-width: 420px) {
            #logoGrid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .logo-card-hover {
                min-height: 170px;
            }
        }
