    .catqs-grid {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 40px;
        align-items: start;
    }

    .categories {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 5px;
    }

    .category-card {
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 18px;
        padding: 22px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
        cursor: pointer;
        min-height: 152px;
    }

    .category-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
    }

    .cat-iconph {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        /* border: 1px solid #dadada; */
        /* background: #fafafa; */
        margin-bottom: 10px;

    }

    .cat-title {
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 6px;
    }

    .cat-subtypes {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.35;
    }

    .cat-subtypes span {
        white-space: normal;
        /* allow wrapping */
        overflow-wrap: break-word;
        /* safety for long text */
    }

    .cat-subtypes span+span::before {
        content: " · ";
        color: #c8c8c8;
    }


    /* Quick Search */
    .qs {
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 18px;
        padding: 20px;
        box-shadow: var(--shadow);
        border: 1px solid e6e6e6;
    }

    .qs-top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .qs-top.split {
        grid-template-columns: 1fr 1fr;
    }

    .qs-bottom {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 12px;
    }

    .qs label {
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--muted);
        display: block;
        margin-bottom: 6px;
    }

    .qs select {
        width: 100%;
        height: 40px;
        border-radius: 999px;
        border: 1px solid #e6e6e6;
        padding: 0 12px;
        font-size: 13px;
        background: #fff;
    }

    .qs-actions {
        margin-top: 14px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .qs .btn-search {
        padding: 10px 18px;
        border-radius: 999px;
        border: none;
        background: #111;
        color: #fff;
        cursor: pointer;
        font-size: 13px;
    }

    .qs .btn-search:hover {
        background: #000;
    }

    .qs .hint {
        font-size: 12px;
        color: var(--muted);
        margin-top: 10px;
        line-height: 1.5;
    }

    .qs {
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 18px;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    @media (max-width: 1000px) {
        .catqs-grid {
            grid-template-columns: 1fr;
            gap: var(--sp-xl);
        }
    }

    @media (max-width: 425px) {
        .categories {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .qs-bottom {
            grid-template-columns: 1fr;
        }

        .qs-top.split {
            grid-template-columns: 1fr;
        }

        .qs-yeardd-panel {
            max-height: 200px;
        }
    }

    @media (max-width: 600px) {
        .categories {
            grid-template-columns: 1fr 1fr;
            margin-bottom: 20px;
        }

        .category-card {
            padding: 18px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        .qs {
            padding: 16px;
        }

        .qs .hint {
            font-size: 11px;
        }

        .cat-subtypes {
            display: none;
        }
    }

    .section-head .lead {
        margin: 8px 0 0;
        max-width: 680px;
        color: var(--muted);
        font-size: 15px
    }

    .section-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        /* gap: 16px; */
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

    .section-link {
        font-size: 13px;
        color: var(--muted)
    }

    .section-link:hover {
        color: #111
    }

    @media (max-width: 768px) {
        .section-head {
            flex-direction: column;
            align-items: flex-start;
            padding-bottom: 10px;
            margin-top: 12px;
        }

        .section-link {
            margin-top: 6px;
        }
    }

    .cat-iconph img {
        width: 100%;
        height: 100%;

    }

    /* Year range dropdown (replaces native <select id="qsYear">) */
    .qs-yeardd {
        position: relative;
        width: 100%;
    }

    .qs-yeardd-toggle {
        width: 100%;
        height: 40px;
        border-radius: 999px;
        border: 1px solid #e6e6e6;
        padding: 0 36px 0 12px;
        font-size: 13px;
        font-family: inherit;
        background: #fff;
        color: #111;
        text-align: left;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
    }

    .qs-yeardd-toggle-text {
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .qs-yeardd-toggle::after {
        content: '';
        position: absolute;
        right: 14px;
        top: 50%;
        width: 7px;
        height: 7px;
        border-right: 1.5px solid #888;
        border-bottom: 1.5px solid #888;
        transform: translateY(-70%) rotate(45deg);
        pointer-events: none;
    }

    .qs-yeardd[data-open="true"] .qs-yeardd-toggle::after {
        transform: translateY(-30%) rotate(-135deg);
    }

    .qs-yeardd-toggle:hover {
        border-color: #d0d0d0;
    }

    .qs-yeardd-toggle:focus-visible {
        outline: 2px solid #111;
        outline-offset: 2px;
    }

    .qs-yeardd-panel {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 6px);
        z-index: 30;
        background: #fff;
        border: 1px solid #e6e6e6;
        border-radius: 14px;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.10);
        padding: 6px;
        max-height: 260px;
        overflow-y: auto;
        outline: none;
    }

    .qs-yeardd-panel[hidden] {
        display: none;
    }

    .qs-yeardd-item {
        padding: 9px 12px;
        font-size: 13px;
        line-height: 1.3;
        border-radius: 8px;
        cursor: pointer;
        color: #111;
    }

    .qs-yeardd-item:hover {
        background: #f5f5f5;
    }

    .qs-yeardd-item.is-in-range {
        background: #f0f4ff;
        color: #1a3fa0;
    }

    .qs-yeardd-item.is-start,
    .qs-yeardd-item.is-end {
        background: #111;
        color: #fff;
        font-weight: 600;
    }

    .qs-yeardd-item.is-active {
        box-shadow: inset 0 0 0 2px #111;
    }

    .qs-yeardd-item--any {
        border-bottom: 1px solid #ececec;
        border-radius: 8px 8px 0 0;
        margin-bottom: 4px;
        font-weight: 500;
    }
