/* TFA Lab — Related tools section (global, all tool pages) */

.tfc-related {
    background: linear-gradient(180deg, #F7F7FA 0%, #fff 100%);
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    border-top: 1px solid var(--site-border, #e6dfe2);
}

.tfc-related-head {
    margin-bottom: 1.75rem;
}

.tfc-related-head .tm-section-head,
.tfc-related .tm-section-head {
    text-align: left;
    margin: 0;
    max-width: none;
}

.tfc-related-head .tm-label,
.tfc-related .tm-label {
    display: inline-block;
    margin-bottom: .5rem;
}

.tfc-related-head h2,
.tfc-related .tm-section-head h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--site-navy, #10002B);
    letter-spacing: -.02em;
    margin: 0;
}

.tfc-related-grid,
.tfc-related .tfc-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.tfc-related-card,
.tfc-related .tfc-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--site-surface, #fff);
    border: 1px solid var(--site-border, #e6dfe2);
    border-radius: var(--site-radius, 16px);
    padding: 1.5rem 1.35rem 1.25rem;
    box-shadow: var(--site-shadow, 0 4px 20px rgba(16, 0, 43, .06));
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    position: relative;
    overflow: hidden;
}

.tfc-related-card::before,
.tfc-related .tfc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--site-accent, #EB0555);
    opacity: 0;
    transition: opacity .22s ease;
}

.tfc-related-card--service::before,
.tfc-related .tfc-card.tfc-related-card--service::before {
    background: var(--site-navy, #10002B);
}

.tfc-related-card:hover,
.tfc-related .tfc-card:hover {
    border-color: rgba(235, 5, 85, .35);
    box-shadow: var(--site-shadow-md, 0 12px 32px rgba(16, 0, 43, .1));
    transform: translateY(-3px);
}

.tfc-related-card--service:hover,
.tfc-related .tfc-card.tfc-related-card--service:hover {
    border-color: rgba(16, 0, 43, .25);
}

.tfc-related-card:hover::before,
.tfc-related .tfc-card:hover::before {
    opacity: 1;
}

.tfc-related-badge,
.tfc-related .tfc-card > small,
.tfc-related-card > small {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: rgba(235, 5, 85, .08);
    color: var(--site-accent, #EB0555);
    font-weight: 700;
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .65rem;
    border-radius: 999px;
    margin-bottom: .85rem;
    line-height: 1;
}

.tfc-related-badge--service,
.tfc-related .tfc-card.tfc-related-card--service > small {
    background: rgba(16, 0, 43, .08);
    color: var(--site-navy, #10002B);
}

.tfc-related-card h3,
.tfc-related .tfc-card h3 {
    color: var(--site-navy, #10002B);
    margin: 0 0 .55rem;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.tfc-related-card p,
.tfc-related .tfc-card p {
    flex: 1;
    font-size: .88rem;
    line-height: 1.6;
    color: var(--site-muted, #6d6670);
    margin: 0 0 1.15rem;
}

.tfc-related-link,
.tfc-related .tfc-card > a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    align-self: flex-start;
    margin-top: auto;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: rgba(235, 5, 85, .08);
    color: var(--site-accent, #EB0555);
    font-weight: 700;
    font-size: .78rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.tfc-related-card--service .tfc-related-link,
.tfc-related .tfc-card.tfc-related-card--service > a {
    background: rgba(16, 0, 43, .06);
    color: var(--site-navy, #10002B);
}

.tfc-related-link:hover,
.tfc-related .tfc-card > a:hover {
    background: var(--site-accent, #EB0555);
    color: #fff;
    transform: translateX(2px);
}

.tfc-related-card--service .tfc-related-link:hover,
.tfc-related .tfc-card.tfc-related-card--service > a:hover {
    background: var(--site-navy, #10002B);
    color: #fff;
}

.tfc-related-link i,
.tfc-related .tfc-card > a i {
    font-size: .7rem;
    transition: transform .2s ease;
}

.tfc-related-link:hover i,
.tfc-related .tfc-card > a:hover i {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .tfc-related-grid,
    .tfc-related .tfc-cards {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .tfc-related-grid,
    .tfc-related .tfc-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .tfc-related-card h3,
    .tfc-related .tfc-card h3 {
        font-size: 1rem;
    }
}
