/*
 * Die Liste der Grounds als Fahrtenbuch: je Land ein Blatt Papier, jeder Ground
 * eine Zeile — die laufende Nummer im Land laut in der Ziffernschrift, darüber
 * leise der Ort, darunter wie oft und wann. Die Schwester der Karte, deren
 * Reiter hier genauso aussehen. Mobil zuerst. Die Versprechen stehen in
 * specs/grounds.md.
 */

.grounds-page {
    margin-bottom: 56px;
    color: var(--gh-ink);
}

.grounds-page a {
    color: var(--gh-grass);
}

.grounds-page a:focus-visible {
    outline: 2px solid var(--gh-night);
    outline-offset: 2px;
    border-radius: 2px;
}

.grounds-page ol.breadcrumb {
    margin-bottom: 12px;
}

/* Vorspann: der Kasten aus intro-text.md, ruhig wie über der Karte. */
.grounds-page .collection-intro {
    margin: 4px 0 18px;
    background: transparent;
    border: 0;
}

.grounds-page .collection-intro .card-header {
    padding: 0;
    background: transparent;
    border: 0;
    font-family: var(--gh-numeral);
    font-weight: 700;
    font-size: 22px;
    color: var(--gh-night);
}

.grounds-page .collection-intro .card-body {
    padding: 4px 0 0;
    font-style: normal;
    font-size: 16px;
    line-height: 1.55;
    color: var(--gh-ink);
}

.grounds-numbers {
    display: block;
    margin-top: 6px;
    font-family: var(--gh-numeral);
    font-weight: 600;
    font-size: 17px;
    color: var(--gh-muted);
    font-variant-numeric: tabular-nums;
}

/* Die Sportart-Reiter: Schilder auf Papier, der gewählte in Nachtfarbe — wie
   über der Karte. */
.grounds-page .grounds-filter > .btn-group {
    gap: 6px;
    margin-bottom: 16px !important;
}

.grounds-page .grounds-filter .btn-group .btn {
    margin: 0;
    padding: 5px 12px;
    border: 0;
    border-radius: 6px;
    background: var(--gh-paper);
    color: var(--gh-night);
    font-family: var(--gh-numeral);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

.grounds-page .grounds-filter .btn-group .btn:hover {
    background: var(--gh-paper-hover);
}

.grounds-page .grounds-filter .btn-group .btn.selected {
    background: var(--gh-night);
    color: #fff;
}

.grounds-page .grounds-filter .btn-group .btn:focus-visible {
    outline: 2px solid var(--gh-night);
    outline-offset: 2px;
    box-shadow: none;
}

.grounds-page .grounds-filter .dropdown-item {
    font-family: var(--gh-numeral);
    font-weight: 600;
    font-size: 16px;
    color: var(--gh-night);
}

/* Die Sprungmarken zu den Ländern. */
.country-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 28px;
}

.grounds-page a.country-jump__country {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--gh-paper);
    border-radius: 3px;
    color: var(--gh-ink);
    font-size: 14px;
    text-decoration: none;
}

.grounds-page a.country-jump__country:hover {
    background: var(--gh-paper-hover);
}

.country-jump__count {
    font-family: var(--gh-numeral);
    font-weight: 600;
    color: var(--gh-muted);
    font-variant-numeric: tabular-nums;
}

/* Ein Blatt je Land. */
.grounds-country {
    margin: 0 0 28px;
    padding: 16px 14px 10px;
    background: var(--gh-paper);
    border-radius: 8px;
}

.grounds-page .ground-country-anchor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-family: var(--gh-numeral);
    font-weight: 700;
    font-size: 24px;
    color: var(--gh-night);
    scroll-margin-top: 70px;
}

.grounds-country__count {
    font-weight: 600;
    font-size: 18px;
    color: var(--gh-muted);
}

/* Das Fahrtenbuch: Zeilen mit feiner Linie, die Nummer vorn. */
.ground-log {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ground-log > li {
    border-top: 1px solid var(--gh-rule);
}

.grounds-page .ground-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    margin: 0;
    padding: 9px 0;
    background: transparent;
    border: 0;
}

.grounds-page .ground-item-num {
    font-family: var(--gh-numeral);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: var(--gh-night);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ground-item-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.grounds-page .ground-item-town {
    font-style: normal;
    font-size: 13px;
    color: var(--gh-muted);
}

.grounds-page .teams-name {
    font-family: var(--gh-numeral);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    color: var(--gh-ink);
    overflow-wrap: anywhere;
}

.grounds-page a:hover .teams-name {
    color: var(--gh-grass);
    text-decoration: underline;
}

.grounds-page .teams-counter {
    font-size: 13px;
    color: var(--gh-muted);
}

@media (min-width: 768px) {
    .grounds-country {
        padding: 20px 22px 12px;
    }

    .ground-log {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
