/* ============================================================
   Pilots page — featured pilot cards.
   Loaded alongside community.css, which already provides the shared
   primitives (.chero, .section, .cards/.card, .cta-band, .ph, icons).
   ============================================================ */

.pilots-list {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2rem, 1rem + 4vw, 3.5rem);
}

/* photo | text | stats — collapses to a stack on narrow screens */
.pilot {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) 1.5fr 1fr;
    grid-template-areas: "media text stats";
    background: var(--paper);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.pilot:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.pilot__media {
    grid-area: media;
    min-height: 200px;
    border: 0;            /* overrides the dashed .ph border in this context */
    border-radius: 0;
}
img.pilot__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pilot__text {
    grid-area: text;
    padding: clamp(1.5rem, 2.5vw, 2.2rem);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
}
.pilot__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pilot__flag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
}
.pilot__flag img {
    width: 1.6rem;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--paper-line);
    display: block;
}
.pilot__cc {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
}
.pilot__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--t-h3);
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
}
.pilot__place {
    font-family: var(--font-mono);
    font-size: var(--t-small);
    color: var(--ink-muted);
    letter-spacing: 0.02em;
    margin: 0;
}
.pilot__desc {
    font-size: var(--t-small);
    line-height: 1.6;
    color: var(--ink-soft);
    font-weight: 300;
    margin: 0.4rem 0 0;
}

.pilot__stats {
    grid-area: stats;
    list-style: none;
    margin: 0;
    padding: clamp(1.5rem, 2.5vw, 2.2rem);
    display: grid;
    gap: 0.7rem;
    align-content: center;
    background: var(--paper-2);
    border-left: 1px solid var(--paper-line);
}
.pilot__stat {
    display: flex;
    gap: 0.55rem;
    font-size: var(--t-small);
    line-height: 1.4;
    color: var(--ink-soft);
    font-weight: 300;
}
.pilot__stat svg {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    color: var(--accent);
    margin-top: 0.12rem;
}

@media (max-width: 860px) {
    .pilot {
        grid-template-columns: 1fr;
        grid-template-areas: "media" "text" "stats";
    }
    .pilot__media { min-height: 180px; }
    .pilot__stats {
        border-left: 0;
        border-top: 1px solid var(--paper-line);
    }
}