.ajc-resources {
    margin-top: var(--wp--preset--spacing--space-xl);
    margin-bottom: var(--wp--preset--spacing--space-xl);
}

.ajc-resources__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: var(--wp--preset--spacing--space-lg);
}

.ajc-resources__tab {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.3rem var(--wp--preset--spacing--space-s-plus);
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--wp--preset--font-family--barlow-condensed);
    font-size: var(--wp--preset--font-size--lg);
    font-weight: normal;
    line-height: 1;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ajc-resources__tab:hover,
.ajc-resources__tab:focus-visible,
.ajc-resources__tab.is-active {
    background: var(--wp--preset--color--light);
    font-weight: 700;
    outline:0;
}

.ajc-resources__tab.is-active {
    background: var(--wp--preset--color--light);
}

.ajc-resources__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--wp--preset--spacing--space-lg);
}

.ajc-resource-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wp--preset--color--primary);
    background: var(--wp--preset--color--white);
}

.ajc-resource-card.is-hidden {
    display: none;
}

.ajc-resource-card__fold {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 52px;
    height: 52px;
    color: var(--wp--preset--color--primary);
    pointer-events: none;
    z-index: 2;
}

.ajc-resource-card__fold svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ajc-resource-card__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--wp--preset--spacing--space-md);
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.ajc-resource-card__icon {
    display: block;
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 0.85rem;
    color: var(--wp--preset--color--primary);
}

.ajc-resource-card__icon svg {
    width: 100%;
    height: 100%;
}

.ajc-resource-card__date {
    margin: 0 0 0.8rem;
    font-family: var(--wp--preset--font-family--instrument-sans);
    font-size: var(--wp--preset--font-size--sm);
    line-height: 1.2;
}

.ajc-resource-card__subtitle {
    margin: 0 0 var(--wp--preset--spacing--space-xs);
    font-family: var(--wp--preset--font-family--barlow-condensed);
    font-size: var(--wp--preset--font-size--lg);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.ajc-resource-card__title {
    margin: 0 0 var(--wp--preset--spacing--space-s-plus);
    font-family: var(--wp--preset--font-family--instrument-sans);
    font-size: var(--wp--preset--font-size--md);
    line-height: 1.06;
    letter-spacing: -0.01em;
    font-weight: 500;
}

.ajc-resource-card__cta {
    margin-top: auto;
    font-family: var(--wp--preset--font-family--barlow-condensed);
    font-size: var(--wp--preset--font-size--lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.ajc-resource-card__cta::after {
    content: " \2192";
    font-size: 1.1em;
    vertical-align: baseline;
}

.ajc-resource-card__inner:hover .ajc-resource-card__cta,
.ajc-resource-card__inner:focus-visible .ajc-resource-card__cta {
    color: var(--wp--preset--color--secondary);
}

.ajc-resources__empty {
    margin-top: var(--wp--preset--spacing--space-md);
    text-align: left;
    color: var(--wp--preset--color--primary);
    font-family: var(--wp--preset--font-family--instrument-sans);
}

@media (max-width: 1366px) {
    .ajc-resources__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .ajc-resources__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ajc-resources__tabs {
        gap: var(--wp--preset--spacing--space-xs);
    }

    .ajc-resources__tab {
        font-size: 1.2rem;
        padding-inline: 0.9rem;
    }

    .ajc-resources__grid {
        grid-template-columns: 1fr;
    }
}
