/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V5 */
/* Hallmark · genre: modern-minimal · macrostructure: Index-First · tone: utilitarian · theme: Quiet · enrichment: none · contrast: pass · responsive: pass */
html,
body {
    overflow-x: clip;
}

.geo-country-page {
    --country-card-radius: calc(var(--bs-border-radius) * 1.5);
    --country-card-shadow: 0 0.125rem 0.35rem rgb(0 0 0 / 6%);
}

.geo-country-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.geo-country-header {
    margin-bottom: 1.25rem;
}

.geo-country-heading {
    min-width: 0;
}

.geo-country-heading h1 {
    overflow-wrap: anywhere;
}

.geo-country-subtitle,
.translation-code,
.translation-id {
    color: var(--bs-secondary-color);
}

.geo-country-subtitle {
    font-variant-numeric: tabular-nums;
}

.geo-country-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.geo-country-actions .btn {
    min-height: 2.75rem;
    white-space: nowrap;
}

.geo-country-detail-view {
    margin-bottom: 0;
    background: var(--bs-body-bg);
    font-variant-numeric: tabular-nums;
}

.geo-country-detail-view > tbody > tr > th,
.geo-country-detail-view > tbody > tr > td {
    padding: 0.625rem 0.75rem;
}

.geo-country-detail-view > tbody > tr > th {
    width: 32%;
    background: var(--bs-tertiary-bg);
    font-weight: 600;
}

.geo-country-detail-view--meta > tbody > tr > th {
    width: 46%;
}

.geo-country-translations {
    margin-top: 2rem;
}

.geo-country-section-header {
    margin-bottom: 1rem;
}

.geo-country-grid-summary {
    border-bottom: 1px solid var(--bs-border-color);
}

.geo-country-translations-card {
    overflow: clip;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--country-card-radius);
    box-shadow: var(--country-card-shadow);
}

.geo-country-translations-card .table,
.geo-country-translations-card .table tbody,
.geo-country-translations-card .table tr,
.geo-country-translations-card .table td {
    display: block;
    width: 100%;
}

.geo-country-translations-card .table thead {
    display: none;
}

.geo-country-translations-card .table tbody tr {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.geo-country-translations-card .table tbody tr:last-child {
    border-bottom: 0;
}

.geo-country-translations-card .table tbody td {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.3rem 0;
    border: 0;
    overflow-wrap: anywhere;
}

.geo-country-translations-card .table tbody td::before {
    color: var(--bs-secondary-color);
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
}

.translation-language {
    display: block;
    font-weight: 600;
}

.translation-code {
    display: inline-block;
    margin-inline-start: 0.4rem;
    font-size: 0.75rem;
    text-transform: lowercase;
}

.translation-name {
    font-weight: 600;
}

@media (min-width: 40rem) {
    .geo-country-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 64rem) {
    .geo-country-translations-card .table {
        display: table;
        width: 100%;
    }

    .geo-country-translations-card .table thead {
        display: table-header-group;
    }

    .geo-country-translations-card .table tbody {
        display: table-row-group;
    }

    .geo-country-translations-card .table tr {
        display: table-row;
        width: auto;
    }

    .geo-country-translations-card .table tbody tr {
        padding: 0;
        border-bottom: 0;
    }

    .geo-country-translations-card .table tbody td {
        display: table-cell;
        width: auto;
    }

    .geo-country-translations-card .table tbody td {
        padding: 0.75rem;
        border-top: 1px solid var(--bs-border-color);
        white-space: normal;
    }

    .geo-country-translations-card .table tbody td::before {
        display: none;
    }
}
