/* Additions are scoped to Design Resources; Mockups retain their original CSS. */
.resources-catalog [hidden],
.resource-detail [hidden] {
    display: none !important;
}

.resources-catalog .resource-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.resources-catalog .resource-breadcrumbs strong {
    color: var(--ink);
    font-weight: 600;
}

.resources-catalog .hero {
    min-height: 285px;
    padding-top: 42px;
}

.resources-catalog .hero h1 {
    overflow-wrap: anywhere;
}

.resources-term-description p + p {
    margin-top: 12px;
}

.resources-results,
.resources-sidebar {
    min-width: 0;
}

.resources-catalog .resources-sidebar {
    position: static;
}

.resources-filter-panel,
.resources-category-panel {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.resources-category-panel {
    margin-top: 22px;
}

.resources-filter-panel summary,
.resources-category-panel summary {
    padding-block: 6px 15px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.resources-filter-form {
    display: grid;
    gap: 17px;
}

.resource-filter-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.resource-filter-field label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.resource-filter-field input,
.resource-filter-field select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.resources-filter-actions {
    display: grid;
    gap: 14px;
    text-align: center;
}

.resources-filter-actions button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.resources-filter-actions a {
    padding: 3px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 11px;
}

.resources-category-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.resources-category-tree .children {
    padding-left: 12px;
}

.resources-category-tree li {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.resources-category-tree a {
    display: inline-block;
    padding-block: 9px;
    color: var(--ink);
    font-size: 12px;
}

.resources-category-tree .current-cat > a {
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--lime);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.resources-category-chips .is-active {
    color: var(--ink);
    background: var(--lime);
}

.resources-result-count {
    margin: 3px 0 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.resource-card .file-badge {
    max-width: calc(100% - 22px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-card > p span {
    overflow-wrap: anywhere;
}

.resource-card h3 a {
    overflow-wrap: anywhere;
}

.resource-detail .gallery-stage .shot-art {
    height: 100%;
    object-fit: contain;
}

.resource-detail .gallery-thumb {
    display: block;
}

.resource-preview-empty {
    display: grid;
    min-height: 220px;
    padding: 24px;
    place-items: center;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.resource-full-preview {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.resource-gallery-heading {
    margin: 0 0 18px;
    font-size: 20px;
    letter-spacing: -.03em;
}

.resource-detail .specs strong,
.resource-detail .product-info h1 {
    overflow-wrap: anywhere;
}

.resource-detail .specs > div:nth-last-child(2):nth-child(even) {
    border-bottom: 1px solid var(--line);
}

.resource-detail .summary p {
    margin: 0;
}

.resource-detail .download-cta strong {
    white-space: normal;
}

.resource-download-alternatives {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.resource-secondary-download {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.resource-secondary-download:hover {
    background: var(--soft);
}

.resource-download-pending {
    padding: 18px;
    border-radius: 12px;
    color: var(--muted);
    background: var(--soft);
    font-size: 13px;
}

.resource-ad {
    max-width: 100%;
    overflow: hidden;
}

.resource-ad--before,
.resource-ad--after {
    max-width: 970px;
}

.resource-ad--before {
    margin-top: 40px;
    margin-bottom: 10px;
}

.resource-ad--sidebar {
    margin-top: 28px;
}

.resource-ad--after {
    margin-block: 20px 60px;
}

.resource-ad img,
.resource-ad iframe,
.resource-content img,
.resource-content video {
    max-width: 100%;
}

.resource-content img {
    height: auto;
}

.home-resources .resources-home-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.home-resources .resources-home-categories a {
    padding: 12px 17px;
    border: 1px solid var(--border, #e6e6e2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.home-resources .resources-home-categories a:hover {
    background: var(--lime, #d9ff43);
}

.resources-catalog :is(a, button, input, select, summary):focus-visible,
.resource-detail :is(a, button, input):focus-visible,
.home-resources a:focus-visible {
    outline: 3px solid #638000;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .resources-catalog .resources-sidebar {
        display: block;
        margin-bottom: 26px;
    }

    .resources-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resources-category-tree > ul {
        columns: 2;
        column-gap: 24px;
    }

    .resources-category-tree > ul > li {
        break-inside: avoid;
    }

    .resource-detail .product-info {
        position: static;
    }
}

@media (max-width: 600px) {
    .resources-catalog .resource-breadcrumbs,
    .resource-detail .resource-breadcrumbs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-block: 18px;
        line-height: 1.5;
    }

    .resource-detail .resource-breadcrumbs a:nth-of-type(n+3),
    .resource-detail .resource-breadcrumbs span:nth-of-type(n+2),
    .resource-detail .resource-breadcrumbs strong {
        display: inline;
    }

    .resource-detail .resource-breadcrumbs strong {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .resources-catalog .hero {
        min-height: auto;
        padding-block: 34px;
    }

    .resources-catalog .hero h1 {
        font-size: clamp(38px, 11vw, 56px);
    }

    .resource-filter-field input,
    .resource-filter-field select {
        font-size: 16px;
    }

    .resource-filter-field:first-child {
        grid-column: 1 / -1;
    }

    .resources-filter-actions {
        align-self: end;
    }

    .resource-ad--before {
        margin-top: 24px;
    }
}

@media (max-width: 380px) {
    .resources-filter-form {
        grid-template-columns: 1fr;
    }

    .resources-category-tree > ul {
        columns: 1;
    }
}

.resources-catalog .catalog-layout {
    display: block;
}

.resources-catalog .resources-results {
    width: 100%;
}

.resources-top-search {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 25px;
}

.resources-top-search input {
    flex: 1;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.resources-top-search button {
    padding: 12px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 600px) {
    .resources-top-search {
        flex-direction: column;
    }
}

.category-chips {
 
    justify-content: center;
    align-items: center;
}

.product-grid {
    margin: 0px 25px 0px 25px;
}

/* Uniform Design Resources cards */
.resources-catalog .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 20px;
}

.resources-catalog .resource-card .product-image {
    aspect-ratio: 1 / 1;
}

.resources-catalog .resource-card h3 {
    min-height: 51px;
}

@media (max-width: 900px) {
    .resources-catalog .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .resources-catalog .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}