/* 26 Nov 2026: language menu (same as 123-nl.com), RTL support, stats row, fitted headings */
.lang-btn{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 13px;border:1px solid var(--line);background:#fff;border-radius:999px;font:inherit;font-size:14px;font-weight:650;color:var(--text);cursor:pointer;white-space:nowrap;flex:none;transition:border-color .15s,box-shadow .15s}
.lang-btn:hover{border-color:#BACFEF;box-shadow:var(--shadow)}
.lang-btn svg{width:19px;height:19px;flex:none}
.header-inner{gap:18px}
.header-inner .nav{margin-inline-start:auto}
@media (max-width:980px){.lang-btn{margin-inline-start:auto}.header-inner{gap:8px}}
@media (max-width:640px){.lang-btn{height:38px;padding:0 10px}}
.lang-dialog{border:0;border-radius:22px;padding:0;width:min(560px,calc(100% - 24px));max-height:calc(100% - 40px);box-shadow:0 30px 80px -20px rgba(14,42,71,.5);color:var(--text)}
.lang-dialog::backdrop{background:rgba(14,42,71,.5);backdrop-filter:blur(3px)}
.lang-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}
.lang-head h2{font-size:1.15rem;margin:0;letter-spacing:0}
.lang-head .close{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#fff;font-size:22px;line-height:1;cursor:pointer;color:var(--text)}
.lang-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px 20px 22px}
.lang-grid a{overflow-wrap:anywhere;display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 10px;line-height:1.3;border:1px solid var(--line);border-radius:12px;color:var(--text);text-align:center;font-weight:500}
.lang-grid a:hover{border-color:var(--accent);background:#EAF1FB}
.lang-grid a.first{grid-column:1/-1}
.lang-grid a[aria-current=true]{border-color:var(--accent);background:#EAF1FB;color:var(--accent);font-weight:700}
.lang-grid a[dir=rtl],[dir=rtl] body,[dir=rtl] .lang-dialog{font-family:Vazirmatn,Inter,system-ui,sans-serif}

/* stats row (same figures as 123-nl.com) */
.stat-row{display:flex;justify-content:center;gap:12px;margin:-12px auto 32px;flex-wrap:wrap}
.stat-row div{display:flex;align-items:baseline;gap:8px;padding:10px 20px;border-radius:999px;background:#EAF1FB}
.stat-row b{font-size:22px;font-weight:800;color:var(--accent)}
.stat-row span{font-size:14px;font-weight:600;color:var(--text)}
.cat-list span{direction:ltr}

/* long translated headings stay on one line (main.js shrinks them) */
.hero-title,.page-hero h1{white-space:nowrap;overflow:hidden;max-width:100%}

/* right-to-left languages */
[dir=rtl] *{letter-spacing:0!important}
[dir=rtl] .eyebrow{text-transform:none}
[dir=rtl] .list li{padding-left:0;padding-right:22px}
[dir=rtl] .list li::before{left:auto;right:0}
[dir=rtl] .facts dd{text-align:left}
[dir=rtl] .link-arrow svg,[dir=rtl] .svc-top svg{transform:scaleX(-1)}
[dir=rtl] .header-inner{padding:0 18px 0 14px}
@media (max-width:640px){[dir=rtl] .header-inner{padding:0 12px 0 8px}}
[dir=rtl] .site-footer h3{letter-spacing:0;text-transform:none}
:lang(hi) body,:lang(am) body,:lang(ti) body,:lang(zh-Hans) body{line-height:1.7}
/* 7th category (Immigration) as one wide card, so the grid has no gap */
@media (min-width:981px){.cat-grid > .cat:last-child:nth-child(3n+1){grid-column:1/-1;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px 28px}
.cat-grid > .cat:last-child:nth-child(3n+1) .cat-head{display:contents}
.cat-grid > .cat:last-child:nth-child(3n+1) .cat-head .ic{grid-column:1;grid-row:1/4}
.cat-grid > .cat:last-child:nth-child(3n+1) .cat-count{grid-column:3;grid-row:1;justify-self:end}
.cat-grid > .cat:last-child:nth-child(3n+1) h3{grid-column:2;grid-row:1}
.cat-grid > .cat:last-child:nth-child(3n+1) p{grid-column:2;grid-row:2}
.cat-grid > .cat:last-child:nth-child(3n+1) .cat-list{grid-column:2;grid-row:3}
.cat-grid > .cat:last-child:nth-child(3n+1) .link-arrow{grid-column:3;grid-row:3;justify-self:end;margin:0;padding:0}}
@media (max-width:980px) and (min-width:641px){.cat-grid > .cat:last-child:nth-child(odd){grid-column:1/-1}}
.lg123 a{color:inherit;text-decoration:underline;text-underline-offset:2px}.lg123 .sep{opacity:.55;padding:0 6px}
p bdi,li bdi,dd bdi,.footer-legal bdi{white-space:nowrap}
