/* The World Firsts wall (/firsts, docs/world-firsts.md). Dark glass and the violet accent of style.css; a claimed line
   carries the gold of a name on a wall, an open one the accent, a locked or closed one is quiet. */

.firsts-nav { margin-top: 0.6rem; }
.firsts-nav a { color: var(--accent-hi); }

.firsts-headline {
    margin: 1.2rem 0 0;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secret-gold);
}

.firsts-month { margin-top: 1.4rem; }
.firsts-month + .firsts-month { margin-top: 2rem; }
.firsts-past .firsts-month:first-child { margin-top: 0; }

.firsts-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 0.5rem;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.firsts-year {
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
}

.firsts-month-headline {
    margin: 0 0 0.8rem;
    color: var(--muted);
}

.firsts-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 24px 32px;
}

.firsts-subheading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.first-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.first-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 16px;
    align-items: baseline;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}
.first-line:first-child { border-top: 0; }

.first-deed { min-width: 0; }

.first-name {
    display: block;
    font-weight: 600;
    color: var(--text);
    overflow-wrap: anywhere;
}

.first-how {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--faint);
    overflow-wrap: anywhere;
}

.first-status {
    min-width: 0;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.first-claimed .first-status { color: var(--secret-gold); }
.first-claimed .first-status .char-link { color: var(--secret-gold); font-weight: 600; }
.first-fallen { font-style: italic; }
.first-open .first-status { color: var(--accent-hi); }
.first-locked .first-status,
.first-closed .first-status { color: var(--faint); }
.first-locked .first-name,
.first-closed .first-name { color: var(--muted); }

@media (max-width: 599.98px) {
    .first-line { grid-template-columns: minmax(0, 1fr); }
    .firsts-headline { font-size: 1.1rem; }
}

/* The line under the news on the home page. */
.home-firsts-line {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--secret-gold);
    font-weight: 500;
}
.home-firsts-line:hover { color: var(--accent-hi); text-decoration: none; }
