/* Tier card - the rung list.
   Used by Pipeline (the ladder) and Driver (the season on record). */

.tiers { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.tier {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.1rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: .9rem;
    padding: 1.35rem 1.35rem 1.45rem 1.6rem; box-shadow: var(--shadow);
}
.tier::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
/* Red marks the top of the list - Formula 1 on the pipeline, the driver's highest rung on a
   profile. It follows the last card, so it stayed on F1 when the list flipped to entry-first. */
.tier:last-child::before { background: var(--red); }
.tier:last-child .tier-step { color: var(--red); }
.tier-quiet .tier-step { color: var(--muted); }
.tier-step { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.tier-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.25rem; }
.tier-label { font-size: 1.25rem; }
.tier-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .8rem; color: var(--muted); }
.tier-fact b { font-family: var(--font-display); color: var(--ink); font-weight: 700; margin-right: .35rem; font-variant-numeric: tabular-nums; }
.tier-blurb { margin: .7rem 0 0; color: var(--ink-soft); max-width: 46rem; text-wrap: pretty; }

/* The series a tier holds - plain content inside the tier card, not boxes and not ruled. The
   card already has one left rail; a second edge on the contents fights it. One hairline sets
   the group off, and the gap plus the short-name type keeps the columns apart. */
.tier-series {
    margin-top: 1.35rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
    display: grid; gap: 1.35rem 2rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}
/* Count sits next to the name, not pushed to a column edge - without the card box there is no
   edge for it to align to. */
.series-head { display: flex; align-items: center; gap: .5rem; }
.series-short { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); }
.series-count {
    font-family: var(--font-display); font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums;
    min-width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue);
}
.series-count.zero { background: transparent; border: 1px dashed var(--border); color: var(--muted); }
.series-name { margin: .35rem 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.3; }
.series-meta { margin: .15rem 0 0; font-size: .72rem; color: var(--muted); }
.series-points { margin: .35rem 0 0; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.series-points b { color: var(--ink); font-weight: 700; }
.series-drivers { margin: .6rem 0 0; padding: .55rem 0 0; list-style: none; border-top: 1px solid var(--border); display: grid; gap: .2rem; font-size: .8rem; color: var(--ink); }
.series-none { margin: .6rem 0 0; padding-top: .55rem; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); }

