/*
 * ITG Pro reseller portal.
 *
 * Hand-written and served statically so deployment stays composer + migrate with
 * no Node toolchain on the LAMP host. Dense and businesslike by intent: this is a
 * procurement tool people use all day, not a marketing site.
 */

:root {
    --brand:            #0b5cab;
    --brand-dark:       #084680;
    --brand-light:      #e8f1fa;

    --ink:              #14181d;
    --ink-muted:        #5c6772;
    --ink-faint:        #8b959f;

    --surface:          #ffffff;
    --surface-alt:      #f5f7f9;
    --surface-sunken:   #eef1f4;

    --line:             #dde3e9;
    --line-strong:      #c3ccd5;

    --success:          #17693f;
    --success-bg:       #e4f4ea;
    --warning:          #8a5a00;
    --warning-bg:       #fdf1da;
    --danger:           #a52121;
    --danger-bg:        #fbe6e6;
    --info:             #1a5f8a;
    --info-bg:          #e3f0f8;

    --radius:           6px;
    --radius-sm:        4px;
    --shadow:           0 1px 2px rgba(20, 24, 29, .06), 0 2px 8px rgba(20, 24, 29, .04);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--surface-alt);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.175rem; }
h3 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */

.masthead {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.masthead-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 56px;
}

.brand {
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -.01em;
    color: var(--ink);
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--brand); }

.brand-sub {
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-faint);
    border-left: 1px solid var(--line-strong);
    padding-left: .75rem;
    margin-left: -1.25rem;
}

.nav { display: flex; gap: .25rem; flex: 1; }

.nav a {
    padding: .4rem .7rem;
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    font-weight: 500;
}
.nav a:hover { background: var(--surface-sunken); color: var(--ink); text-decoration: none; }
.nav a.is-active { background: var(--brand-light); color: var(--brand-dark); }

.masthead-user {
    display: flex;
    align-items: center;
    gap: .875rem;
    font-size: .8125rem;
    white-space: nowrap;
}

.masthead-user .who { text-align: right; line-height: 1.3; }
.masthead-user .who strong { display: block; font-weight: 600; }
.masthead-user .who span { color: var(--ink-faint); font-size: .75rem; }

.shell { max-width: 1280px; margin: 0 auto; padding: 1.75rem 1.5rem 4rem; }

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.page-head p { color: var(--ink-muted); margin: .125rem 0 0; }

.layout-split { display: grid; grid-template-columns: 232px 1fr; gap: 1.75rem; align-items: start; }

@media (max-width: 900px) {
    .layout-split { grid-template-columns: 1fr; }
    .masthead-inner { gap: 1rem; }
    .nav { overflow-x: auto; }
}

/* ---------- Cards & panels ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card + .card { margin-top: 1.25rem; }
.card-head {
    padding: .875rem 1.125rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.card-head h2, .card-head h3 { margin: 0; font-size: .9375rem; }
.card-body { padding: 1.125rem; }
.card-body.tight { padding: .75rem 1.125rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ---------- Stats ---------- */

.stat { padding: 1rem 1.125rem; }
.stat .label {
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-faint);
}
.stat .value { font-size: 1.5rem; font-weight: 600; margin-top: .25rem; letter-spacing: -.02em; }
.stat .meta { font-size: .75rem; color: var(--ink-muted); margin-top: .125rem; }

/* ---------- Definition lists ---------- */

.detail-list { margin: 0; display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: .625rem 1.25rem; }
.detail-list dt { color: var(--ink-muted); font-size: .8125rem; }
.detail-list dd { margin: 0; font-weight: 500; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }

table.data { width: 100%; border-collapse: collapse; font-size: .8125rem; }

table.data th {
    text-align: left;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-faint);
    padding: .625rem .75rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-alt);
    white-space: nowrap;
}

table.data td { padding: .625rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-alt); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .shrink { width: 1%; white-space: nowrap; }

.sku { font-family: var(--mono); font-size: .75rem; color: var(--ink-muted); }

/* ---------- Badges ---------- */

.badge {
    display: inline-block;
    padding: .1875rem .4375rem;
    border-radius: var(--radius-sm);
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-muted   { background: var(--surface-sunken); color: var(--ink-muted); }
.badge-brand   { background: var(--brand-light); color: var(--brand-dark); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    padding: .4375rem .875rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { background: var(--surface-alt); text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger { color: var(--danger); border-color: #e8c4c4; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: .25rem .5rem; font-size: .75rem; }
.btn-lg { padding: .625rem 1.25rem; font-size: .875rem; }
.btn-link { border: 0; background: none; color: var(--brand); padding: 0; }
.btn-link:hover { background: none; text-decoration: underline; }

.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- Forms ---------- */

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; font-size: .8125rem; margin-bottom: .3125rem; }
.field .hint { font-size: .75rem; color: var(--ink-muted); margin-top: .3125rem; }

input[type=text], input[type=email], input[type=url], input[type=number],
input[type=date], input[type=search], input[type=password], select, textarea {
    width: 100%;
    padding: .4375rem .625rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: .8125rem;
    background: var(--surface);
    color: var(--ink);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--brand);
    outline-offset: -1px;
    border-color: var(--brand);
}

textarea { min-height: 90px; resize: vertical; }

.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.check { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; }
.check input { width: auto; }

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
fieldset legend {
    padding: 0;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-faint);
    margin-bottom: .75rem;
}

.filter-bar {
    display: flex;
    gap: .625rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.filter-bar .field { margin: 0; }
.filter-bar input[type=search] { min-width: 260px; }

/* ---------- Alerts ---------- */

.alert {
    padding: .75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    border: 1px solid;
    font-size: .8125rem;
}
.alert-success { background: var(--success-bg); border-color: #b8ddc7; color: var(--success); }
.alert-danger  { background: var(--danger-bg);  border-color: #eec4c4; color: var(--danger); }
.alert-info    { background: var(--info-bg);    border-color: #bcd9ea; color: var(--info); }
.alert-warning { background: var(--warning-bg); border-color: #ecd5a8; color: var(--warning); }
.alert ul { margin: .375rem 0 0; padding-left: 1.125rem; }

/* ---------- Catalog ---------- */

.facets { position: sticky; top: 76px; }
.facet-group { padding: .875rem 1.125rem; border-bottom: 1px solid var(--line); }
.facet-group:last-child { border-bottom: 0; }
.facet-group h3 {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-faint);
    margin-bottom: .5rem;
}
/*
 * Import reports. Long filenames are the norm here, so they wrap rather than
 * push the card sideways, and the list scrolls once it is longer than a screen.
 */
.file-list { list-style: none; margin: 0; padding: 0; font-size: .75rem; max-height: 22rem; overflow-y: auto; }
.file-list li { padding: .25rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.file-list li:first-child { border-top: 0; }

.facet-list { list-style: none; margin: 0; padding: 0; font-size: .8125rem; }
.facet-list li { margin-bottom: .1875rem; }
.facet-list a { color: var(--ink-muted); display: block; padding: .1875rem .375rem; border-radius: var(--radius-sm); }
.facet-list a:hover { background: var(--surface-sunken); color: var(--ink); text-decoration: none; }
.facet-list a.is-active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.facet-list .sub { padding-left: .75rem; font-size: .78125rem; }

/*
 * Product rows.
 *
 * A procurement list, not a shop window: full width so identifiers, description,
 * ordering rules and the whole quantity ladder are visible without a click.
 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.product-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 132px 236px;
    gap: 1.125rem;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.125rem;
    box-shadow: var(--shadow);
}
.product-row:hover { border-color: var(--line-strong); }

.product-row-media { display: block; }
.product-row-media:hover { text-decoration: none; }

.product-row-main { min-width: 0; }
.product-row-main .eyebrow {
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-faint);
}
.product-row-main h3 { font-size: .9375rem; margin: .1875rem 0 .25rem; line-height: 1.35; }
.product-row-main h3 a { color: var(--ink); }

.product-row-desc {
    font-size: .8125rem;
    color: var(--ink-muted);
    margin: .4375rem 0 0;
    line-height: 1.5;
}

.chips { display: flex; flex-wrap: wrap; gap: .3125rem; margin-top: .5rem; }
.chip {
    font-size: .6875rem;
    line-height: 1.4;
    padding: .1875rem .4375rem;
    border-radius: var(--radius-sm);
    background: var(--surface-sunken);
    color: var(--ink-muted);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chip-note { background: var(--warning-bg); color: var(--warning); }

.product-row-stock { padding-top: .125rem; min-width: 0; }

/*
 * Stock labels carry a delivery date ("On order — expected 16 Aug 2026"), which
 * is far longer than a one-word badge. Badges are nowrap by default; here they
 * have to wrap, or the text runs under the price column.
 */
.product-row-stock .badge {
    white-space: normal;
    display: inline-block;
    max-width: 100%;
    line-height: 1.35;
}

.product-row-price {
    border-left: 1px solid var(--line);
    padding-left: 1.125rem;
    min-width: 0;
}

/* Stack on narrow screens rather than squeezing four columns. */
@media (max-width: 1080px) {
    .product-row { grid-template-columns: 84px minmax(0, 1fr) 210px; }
    .product-row-stock { grid-column: 2; padding-top: .5rem; }
    .product-row-price { grid-row: 1 / span 2; grid-column: 3; }
}

@media (max-width: 720px) {
    .product-row { grid-template-columns: 72px minmax(0, 1fr); gap: .875rem; }
    .product-row-stock { grid-column: 1 / -1; padding-top: 0; }
    .product-row-price {
        grid-row: auto;
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: .75rem;
    }
}

/* ---------- Product images ---------- */

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/*
 * Placeholder keeps rows the same height whether or not a product has
 * photography, so the list does not jump around while scrolling.
 */
.product-image-placeholder {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink-faint);
    background: var(--surface-sunken);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-full .product-image-placeholder { font-size: 2rem; }

/*
 * In a table cell the image has no width of its own to fill, so it needs one.
 * Small enough to keep basket rows compact, large enough to tell a scanner from
 * a label roll at a glance.
 */
.line-thumb { width: 3rem; }
.line-thumb .product-image-placeholder { font-size: .75rem; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.gallery-main {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}
.gallery-main img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

.gallery-strip { display: flex; gap: .5rem; margin-top: .625rem; flex-wrap: wrap; }
.gallery-strip a {
    width: 68px;
    height: 68px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    display: block;
}
.gallery-strip a:hover { border-color: var(--brand); }
.gallery-strip a.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.gallery-strip img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Admin image manager */
.image-manager {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.image-tile {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .625rem;
    background: var(--surface);
}
.image-tile.is-primary { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.image-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    display: block;
}
.image-tile figcaption { margin-top: .5rem; font-size: .75rem; }

.price-block { border-top: 1px solid var(--line); padding-top: .625rem; }
.price-now { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.price-was { font-size: .75rem; color: var(--ink-faint); text-decoration: line-through; margin-right: .25rem; }
.price-unit { font-size: .75rem; color: var(--ink-muted); }
.price-source { font-size: .6875rem; color: var(--ink-faint); margin-top: .1875rem; }
.price-hint { font-size: .75rem; color: var(--success); margin-top: .3125rem; line-height: 1.45; }

/* ---------- Product detail ---------- */

.product-detail { display: grid; grid-template-columns: 1fr 340px; gap: 1.75rem; align-items: start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }

.spec-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.spec-table th {
    text-align: left;
    font-weight: 500;
    color: var(--ink-muted);
    padding: .4375rem .75rem .4375rem 0;
    width: 40%;
    vertical-align: top;
}
.spec-table td { padding: .4375rem 0; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: 0; }

.buy-box .price-now { font-size: 1.75rem; }

.tier-table { width: 100%; border-collapse: collapse; font-size: .8125rem; margin-top: .5rem; }
.tier-table th, .tier-table td { padding: .375rem .5rem; text-align: left; }
.tier-table th { font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.tier-table td { border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tier-table tr.is-current td { background: var(--brand-light); font-weight: 600; }
.tier-table .num { text-align: right; }

/* Compact ladder shown inside a catalog row. */
.tier-table-inline { margin-top: .5rem; font-size: .75rem; }
.tier-table-inline td { padding: .1875rem .375rem; }
.tier-table-inline tr:first-child td { border-top: 0; }

.breadcrumb { font-size: .8125rem; color: var(--ink-muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb span { margin: 0 .375rem; color: var(--ink-faint); }

/* ---------- Empty & pagination ---------- */

.empty { text-align: center; padding: 3rem 1.5rem; color: var(--ink-muted); }
.empty h3 { color: var(--ink); }

.pagination { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 1.5rem 0 0; flex-wrap: wrap; font-size: .8125rem; }
.pagination li span, .pagination li a {
    display: block;
    padding: .3125rem .625rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-muted);
}
.pagination li a:hover { background: var(--surface-alt); text-decoration: none; }
.pagination .active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled span { opacity: .45; }

/* ---------- Login ---------- */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(160deg, var(--brand-dark) 0%, #0a3560 100%);
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: 10px;
    padding: 2.25rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
    text-align: center;
}
.login-card .brand { font-size: 1.375rem; display: block; margin-bottom: .375rem; }
.login-card .tagline { color: var(--ink-muted); font-size: .8125rem; margin-bottom: 1.75rem; }
.login-card .btn { width: 100%; }
.login-foot { margin-top: 1.5rem; font-size: .75rem; color: var(--ink-faint); line-height: 1.6; }

/* Two sign-in methods stacked in the same card — see config/login.php. */
.login-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--ink-faint); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-form { text-align: left; margin-top: .25rem; }
.login-form-foot { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.login-form-foot a { font-size: .75rem; }

/* ---------- Utilities ---------- */

.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.small { font-size: .75rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gap-1 { gap: .5rem; }
.tabular { font-variant-numeric: tabular-nums; }

/*
 * Radio choices at checkout.
 *
 * Full-width rows rather than an inline group: each option carries a line of
 * explanation, and a payment method whose consequences are only legible to
 * somebody who already knows them is not really a choice.
 */
.choice {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.choice + .choice { margin-top: .5rem; }
.choice:hover { border-color: var(--line-strong); background: var(--surface-alt); }
.choice input { margin-top: .1875rem; flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.choice-title { display: block; font-weight: 600; font-size: .875rem; }
.choice-note { display: block; font-size: .75rem; color: var(--ink-muted); margin-top: .125rem; }

/* ---------- Language switcher ---------- */

/*
 * Each language is labelled in its own language and never translated — someone
 * who has landed in the wrong one cannot read the other.
 */
.lang-switch {
    display: flex;
    align-items: center;
    gap: .125rem;
    font-size: .75rem;
    white-space: nowrap;
}
.lang-switch a,
.lang-switch span {
    padding: .25rem .4375rem;
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    line-height: 1.3;
}
.lang-switch a:hover { background: var(--surface-sunken); color: var(--ink); text-decoration: none; }
.lang-switch .is-active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }

/* On the sign-in and application confirmation cards it sits centred beneath. */
.login-lang { display: flex; justify-content: center; margin-top: 1.25rem; }
