#tim {
    padding: clamp(4rem, 7vw, 5rem) 0 clamp(3rem, 5vw, 4rem);
    background: #f7f8fa;
}

#tim .home-section-header,
#gallery-photo .home-section-header,
#presta .home-section-header {
    margin-bottom: 0;
    text-align: center;
}

#tim .home-section-kicker,
#gallery-photo .home-section-kicker,
#presta .home-section-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 0 1.15rem;
    color: #087c79;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

#tim .home-section-kicker-line,
#gallery-photo .home-section-kicker-line,
#presta .home-section-kicker-line {
    width: 1.2rem;
    height: 1px;
    flex: none;
    background: #d99a22;
}

#tim .home-section-title,
#gallery-photo .home-section-title,
#presta .home-section-title {
    max-width: 46rem;
    margin: 0 auto 0.65rem;
    color: #102f32;
    font-family: "Muli", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-wrap: balance;
}

#tim .home-section-intro,
#gallery-photo .home-section-intro,
#presta .home-section-intro {
    max-width: 46rem;
    margin: 0.35rem auto 0;
    padding: 0 clamp(0.5rem, 3vw, 1.5rem);
    color: #526b6d;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.65;
    text-align: center;
}

#tim .home-section-intro > strong,
#gallery-photo .home-section-intro > strong,
#presta .home-section-intro > strong {
    color: #087c79;
    font-weight: 700;
}

#tim .home-team-grid {
    margin-top: clamp(2rem, 4vw, 2.5rem);
}

#tim .home-team-empty {
    width: min(100%, 34.75rem);
    margin: clamp(2rem, 4vw, 2.5rem) auto 0;
    padding: 1.7rem 1.25rem;
    border: 1px dashed #cfe0e0;
    border-radius: 0.9rem;
    background: linear-gradient(125deg, #fff 0%, #f0f8f6 100%);
    color: #102f32;
    text-align: center;
}

#tim .home-team-empty-icon {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    margin-bottom: 0.45rem;
    border-radius: 50%;
    background: #e5f3f0;
    color: #087c79;
    font-size: 0.95rem;
}

#tim .home-team-empty h3 {
    margin: 0 0 0.4rem;
    color: #102f32;
    font-family: "Figtree", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

#tim .home-team-empty p {
    margin: 0;
    color: #526b6d;
    font-size: 0.8rem;
    line-height: 1.55;
}

#tim .home-team-error {
    border-color: #e8c7c2;
    background: #fff8f6;
}

#tim .home-team-error .home-team-empty-icon {
    background: #fae9e5;
    color: #a63d32;
}

#tim .home-team-footer {
    margin-top: clamp(2.5rem, 5vw, 3rem);
}

#tim .home-team-all-link {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border: 1px solid #087c79;
    border-radius: 0.2rem;
    background: #087c79;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

#tim .home-team-all-link:hover {
    transform: translateY(-1px);
    border-color: #0e6462;
    background: #0e6462;
    color: #fff;
}

#tim .home-team-all-link:focus-visible {
    outline: 3px solid #d99a22;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    #tim {
        padding: 3.5rem 0 3rem;
    }

    #tim .home-team-empty {
        padding: 1.45rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tim .home-team-all-link {
        transition: none;
    }

    #tim .home-team-all-link:hover {
        transform: none;
    }
}
