#affiliate-resources {
    padding: 10px 0;
    font-family: var(--sh-font);
}

/* -- Filter tabs --------------------------------------------------------- */

#affiliate-resources .nav-tabs {
    border-bottom: 2px solid var(--border-muted);
    margin-bottom: 25px;
    gap: 4px;
}

#affiliate-resources .nav-tabs li a {
    font-family: var(--sh-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-lifted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 8px 16px;
    margin-bottom: -2px;
    background: transparent;
    transition: color 0.15s, border-color 0.15s;
}

#affiliate-resources .nav-tabs li a:hover {
    background: transparent;
    color: var(--sh-green-dark);
    border-bottom-color: var(--sh-green);
}

#affiliate-resources .nav-tabs li.active a,
#affiliate-resources .nav-tabs li.active a:hover,
#affiliate-resources .nav-tabs li.active a:focus {
    color: var(--sh-green-dark);
    border-bottom: 2px solid var(--sh-green);
    background: transparent;
    font-weight: 600;
}

/* -- Resource cards ------------------------------------------------------ */

#affiliate-resources .resource-item .panel {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    height: 100%;
    margin-bottom: 0;
}

#affiliate-resources .resource-item .panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--border);
}

#affiliate-resources .resource-item .panel-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* -- Meta row (type badge + category) ------------------------------------ */

#affiliate-resources .resource-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* -- Title --------------------------------------------------------------- */

#affiliate-resources .resource-item h4 {
    font-family: var(--sh-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

/* -- Description --------------------------------------------------------- */

#affiliate-resources .resource-description {
    font-size: 13px;
    color: var(--text-accented);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

#affiliate-resources .resource-description a {
    color: var(--sh-green-dark);
    font-weight: 500;
}

#affiliate-resources .resource-description a:hover {
    text-decoration: underline;
}

/* -- Footer (button + size) ---------------------------------------------- */

#affiliate-resources .resource-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

/* -- Type badges --------------------------------------------------------- */

#affiliate-resources .badge-file {
    background: var(--sh-green-light);
    color: var(--sh-green-dark);
    border: 1px solid rgba(45, 199, 153, 0.2);
    font-family: var(--sh-font);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 99px;
}

#affiliate-resources .badge-link {
    background: var(--sh-purple-light);
    color: var(--sh-purple);
    border: 1px solid rgba(103, 84, 226, 0.2);
    font-family: var(--sh-font);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 99px;
}

#affiliate-resources .resource-category {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* -- File size ----------------------------------------------------------- */

#affiliate-resources .resource-size {
    font-family: var(--sh-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* -- Empty state --------------------------------------------------------- */

#affiliate-resources .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

#affiliate-resources .empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}

#affiliate-resources .empty-state p {
    font-size: 13px;
    color: var(--text-lifted);
}