body.section-theme-marketplace {
    --marketplace-ink: #172554;
    --marketplace-blue: #2563eb;
    --marketplace-cyan: #0891b2;
    --marketplace-gold: #d97706;
    --marketplace-violet: #7c3aed;
    --marketplace-emerald: #059669;
    --marketplace-directory-ink: #171f3c;
    color: var(--marketplace-ink);
    background:
        radial-gradient(circle at 8% 4%, rgba(37, 99, 235, .13), transparent 28rem),
        linear-gradient(180deg, #f8fbff, #eef5ff 46rem, #f8fafc 100%);
}

.section-theme-marketplace .horizon-header {
    background:
        radial-gradient(circle at 18% 0, rgba(14, 165, 233, .42), transparent 27rem),
        linear-gradient(135deg, #020617 0%, #172554 54%, #0c4a6e 100%);
}

.section-theme-marketplace .horizon-brand__mark {
    color: #172554;
    background: linear-gradient(145deg, #fde68a, #f59e0b);
}

.section-theme-marketplace .horizon-nav a.is-active::after {
    background: #fbbf24;
}

.section-theme-marketplace .horizon-footer {
    background: #0f172a;
}

.section-theme-marketplace .section-menu,
.section-theme-marketplace .listing-filter,
.section-theme-marketplace .form-card,
.section-theme-marketplace .contact-card {
    border-color: #cbd9ec;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 48px rgba(23, 37, 84, .08);
}

.section-theme-marketplace button,
.section-theme-marketplace .button {
    background: var(--marketplace-blue);
}

.section-theme-marketplace .button-secondary {
    color: #f8fafc;
    background: #475569;
}

.section-theme-marketplace .filters a {
    border-color: #c7d5e8;
    color: var(--marketplace-directory-ink);
    background: #fff;
}

.section-theme-marketplace .filters a:hover,
.section-theme-marketplace .filters a.active {
    border-color: var(--marketplace-blue);
    color: #fff;
    background: var(--marketplace-blue);
}

.section-theme-marketplace label,
.section-theme-marketplace legend,
.section-theme-marketplace .form-label {
    color: var(--marketplace-ink);
}

.section-theme-marketplace .board-section-tabs {
    --board-tabs-border: #cbd9ec;
    --board-tabs-border-strong: #9fb5d3;
    --board-tabs-surface: rgba(255, 255, 255, .86);
    --board-tab-surface: #edf4ff;
    --board-tab-color: var(--marketplace-directory-ink);
    --board-tab-hover-surface: #334e86;
    --board-tab-hover-color: #fff;
    --board-tab-active-surface: var(--marketplace-ink);
    --board-tab-active-color: #fff;
    --board-tab-accent-1: var(--marketplace-blue);
    --board-tab-accent-2: var(--marketplace-gold);
    --board-tab-accent-3: var(--marketplace-emerald);
}

.section-theme-marketplace .section-directory-panel {
    border-color: #cbd9ec;
    color: var(--marketplace-ink);
    background: rgba(248, 251, 255, .97);
    box-shadow: 0 20px 54px rgba(23, 37, 84, .09);
}

.section-theme-marketplace .master-category-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.section-theme-marketplace .section-directory-panel .master-category-directory__section {
    border: 1px solid #d2deee;
    color: var(--marketplace-ink);
    background: linear-gradient(145deg, #ffffff, #eef5ff);
    box-shadow: 0 16px 38px rgba(23, 37, 84, .09);
}

.section-theme-marketplace .section-directory-panel .master-category-directory__section::before {
    background: var(--marketplace-blue);
}

.section-theme-marketplace .section-directory-panel .master-category-directory__section:nth-child(5n + 2)::before {
    background: var(--marketplace-gold);
}

.section-theme-marketplace .section-directory-panel .master-category-directory__section:nth-child(5n + 3)::before {
    background: var(--marketplace-cyan);
}

.section-theme-marketplace .section-directory-panel .master-category-directory__section:nth-child(5n + 4)::before {
    background: var(--marketplace-violet);
}

.section-theme-marketplace .section-directory-panel .master-category-directory__section:nth-child(5n)::before {
    background: var(--marketplace-emerald);
}

.section-theme-marketplace .section-directory-panel .master-category-directory__section h2,
.section-theme-marketplace .section-directory-panel .master-category-directory__section h2 a {
    color: var(--marketplace-directory-ink);
}

.section-theme-marketplace .filter-disclosure .search-category-group {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid #dbe5f3;
}

.section-theme-marketplace .filter-disclosure .search-category-group h2 {
    margin: 0 0 12px;
    color: var(--marketplace-directory-ink);
    font-size: 1rem;
    line-height: 1.25;
}

.section-theme-marketplace .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1050px) {
    .section-theme-marketplace .master-category-directory,
    .section-theme-marketplace .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {

    .section-theme-marketplace .master-category-directory,
    .section-theme-marketplace .grid {
        grid-template-columns: 1fr;
    }
}
