.foreign-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: .75rem; color: #718097; }
.foreign-breadcrumbs a { color: #425876; text-decoration: none; }
.foreign-stats-page .records-links a[aria-current="page"] { color: #003893; font-weight: 750; border-bottom: 2px solid #dc143c; }
.foreign-stats-page .records-toolbar { gap: 1rem 2rem; align-items: end; flex-wrap: wrap; padding: 1.25rem 1.5rem; }
.foreign-stats-page .records-filter { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.foreign-filter-field { display: flex; flex-direction: column; gap: .35rem; min-width: 125px; }
.foreign-stats-page .records-filter label { font-size: .65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.foreign-stats-page .records-filter select { width: 100%; max-width: 220px; min-height: 38px; }
.foreign-stats-page .records-filter button { min-height: 38px; }
.foreign-summary p { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.foreign-summary h2 { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.foreign-summary .country-count { font-size: .75rem; color: #718097; font-weight: 400; margin-left: .5rem; }
/* Keep flags and names on one baseline with a fixed flag slot. */
.table-page main .foreign-stats-page .country-identity { display: inline-flex; align-items: center; justify-content: flex-start; gap: .6rem; vertical-align: middle; line-height: 1.25; text-align: left; }
.table-page main .foreign-stats-page .country-identity .flag-icon { display: inline-block; flex: 0 0 24px; width: 24px; height: 18px; margin: 0; line-height: 1; background-size: contain; background-position: center; background-repeat: no-repeat; }
.table-page main .foreign-stats-page .country-identity .flag-icon::before { content: none; }
.table-page main .foreign-records-table :is(th,td).records-country-cell { text-align: left; min-width: 155px; }
.table-page main .foreign-records-table th.records-identity-cell { width: auto; min-width: 225px; }
.table-page main .foreign-records-table tbody :is(td,th) { padding-top: .8rem; padding-bottom: .8rem; }
.foreign-country-page .records-panel { overflow: hidden; }
.foreign-country-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 1.25rem 1.5rem 1.5rem; list-style: none; border-top: 1px solid #edf0f5; }
.foreign-country-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; padding: 1.1rem 1rem 1.25rem; border: 1px solid #e5eaf1; border-radius: 8px; background: #fbfcfe; overflow: hidden; }
.foreign-country-card .country-identity { min-width: 0; font-size: .9rem; font-weight: 650; color: #21375a; }
.country-player-count { display: flex; align-items: baseline; gap: .35rem; flex-shrink: 0; color: #003893; font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.country-player-count span { color: #718097; font-size: .65rem; font-weight: 400; }
.country-share-track { position: absolute; height: 3px; bottom: 0; left: 0; right: 0; background: #edf2f8; }
.country-share-track span { display: block; height: 100%; background: #003893; border-radius: 0 2px 2px 0; }
@media (max-width: 1100px) {
    .foreign-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .foreign-stats-page .records-toolbar { align-items: stretch; padding: 1rem; }
    .foreign-stats-page .records-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .foreign-filter-field { min-width: 0; }
    .foreign-stats-page .records-filter select { max-width: none; }
    .foreign-stats-page .records-filter button { align-self: end; }
    .foreign-country-grid { grid-template-columns: 1fr; padding: 1rem; gap: .65rem; }
    .foreign-country-card { padding: .9rem 1rem 1.1rem; }
    .foreign-summary .country-count { margin-left: .25rem; }
}
.foreign-country-grid > li { min-width: 0; }
a.foreign-country-card { height: 100%; box-sizing: border-box; text-decoration: none; transition: border-color .15s, background .15s; }
a.foreign-country-card:hover { border-color: #9bb6dc; background: #f2f6fc; }
a.foreign-country-card:focus-visible { outline: 3px solid #dc143c; outline-offset: 2px; }
.country-player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid #edf0f5; }
.country-player-card { min-width: 0; border: 1px solid #e5eaf1; border-radius: 10px; padding: 1.1rem; background: #fff; display: flex; flex-direction: column; }
.country-player-heading { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: #003893; }
.country-player-heading .player-avatar { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; object-position: center top; border-radius: 50%; background: #f1f5fb; }
.country-player-heading h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.country-player-heading p { margin: .25rem 0 0; color: #718097; font-size: .75rem; }
.country-player-teams { display: flex; flex-direction: column; gap: .55rem; margin: 1rem 0; }
.country-player-teams a { display: flex; gap: .5rem; align-items: center; font-size: .75rem; color: #425876; text-decoration: none; }
.country-player-teams .team-list-logo { object-fit: contain; flex-shrink: 0; }
.country-player-teams small { display: block; margin-top: .15rem; color: #718097; font-size: .65rem; }
.country-player-metrics { margin: auto 0 0; padding: 1rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem .5rem; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.country-player-metrics dt { font-size: .65rem; color: #718097; margin-bottom: .3rem; }
.country-player-metrics dd { margin: 0; color: #003893; font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.country-player-profile { display: flex; align-items: center; justify-content: space-between; color: #003893; padding-top: .8rem; font-size: .75rem; font-weight: 650; text-decoration: none; }
.country-player-heading:hover h2, .country-player-profile:hover, .country-player-teams a:hover { text-decoration: underline; }
@media (max-width: 1100px) { .country-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .country-player-grid { grid-template-columns: 1fr; padding: 1rem; } }
