/* Player milestones — same hairline system as the season and match day pages. */

body {
    margin: 0;
    background-color: #f8f9fa;
    color: #111111;
    font-family: var(--font-primary);
}

.ms-page {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.ms-header {
    margin-bottom: 2.75rem;
}

.ms-eyebrow {
    margin: 0 0 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9aa3ad;
}

.ms-header h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.ms-intro {
    margin: 0;
    max-width: 46rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #666666;
}

.ms-section {
    margin: 0 0 3rem;
}

.ms-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0.25rem;
    border-bottom: 2px solid #111111;
}

.ms-section__head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.ms-section__note {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #9aa3ad;
}

/* --- Closing in --------------------------------------------------------- */

.ms-closing,
.ms-reached {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-closing__row {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    gap: 0 1rem;
    align-items: center;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid #e9ecef;
}

.ms-closing__needs {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.ms-closing__needs-num {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: #111111;
    font-variant-numeric: tabular-nums;
}

.ms-closing__needs-word {
    margin-top: 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9aa3ad;
}

.ms-closing__row.is-imminent .ms-closing__needs-num {
    color: #b8811a;
}

.ms-closing__row.is-imminent {
    background: #fdfaf2;
}

.ms-closing__who {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ms-closing__name,
.ms-reached__name {
    font-weight: 600;
    font-size: 1rem;
}

.ms-closing__what,
.ms-reached__what {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.ms-closing__current {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #9aa3ad;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* --- Reached ------------------------------------------------------------ */

.ms-reached__row {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    gap: 0 1rem;
    align-items: center;
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid #e9ecef;
}

.ms-reached__mark {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    color: #111111;
    font-variant-numeric: tabular-nums;
}

.ms-reached__who {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ms-reached__scope,
.ms-reached__cert {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border: 1px solid #e2e5e9;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.ms-reached__cert {
    border-color: #e4d3a8;
    background: #fdfaf2;
    color: #b8811a;
}

.ms-reached__when {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #9aa3ad;
    white-space: nowrap;
}

/* --- All-time stats link ------------------------------------------------ */

.ms-alltime {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #e2e5e9;
    background: #ffffff;
    text-decoration: none;
    color: #111111;
    transition: border-color 0.15s ease;
}

.ms-alltime:hover {
    border-color: #111111;
}

.ms-alltime:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.ms-alltime__copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.ms-alltime__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ms-alltime__note {
    font-size: 0.88rem;
    color: #6b7280;
}

.ms-alltime__arrow {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #9aa3ad;
    flex-shrink: 0;
}

.ms-alltime:hover .ms-alltime__arrow {
    color: #111111;
}

@media (max-width: 560px) {
    .ms-closing__row,
    .ms-reached__row {
        grid-template-columns: 3rem 1fr;
        row-gap: 0.3rem;
    }

    .ms-closing__current,
    .ms-reached__when {
        grid-column: 2;
    }
}

/* Names lead to a player's career card. */

a.ms-closing__name {
    color: #111111;
    text-decoration: none;
}

a.ms-closing__name:hover {
    text-decoration: underline;
}

a.ms-closing__name:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

/* Anyone who has missed a matchday or two still shows, but says when they were
   last out — the list stays useful without pretending they are about to play. */

.ms-closing__seen {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: #b6bcc4;
}
