/* Region selection: entrance screen on the home page + switcher pill in every nav.
   The gate stays hidden unless region.js adds html.rw-gate, so search engines and
   no-JS visitors always see the normal page. */
.region-gate{display:none}
html.rw-gate{overflow:hidden}
html.rw-gate .region-gate{
  display:flex;position:fixed;inset:0;z-index:1000;
  align-items:center;justify-content:center;padding:32px 16px;overflow-y:auto;
  background:
    radial-gradient(60% 50% at 50% 0%,rgba(22,165,148,.22),transparent 70%),
    radial-gradient(40% 40% at 85% 100%,rgba(10,97,81,.25),transparent 70%),
    #08090a;
  animation:rgFade .45s ease both;
}
.region-gate.leaving{animation:rgOut .35s ease forwards}
.rg-inner{width:100%;max-width:880px;text-align:center}
.rg-brand{display:inline-flex;align-items:center;gap:12px;font-weight:700;font-size:22px;letter-spacing:-.01em;color:var(--text)}
.rg-brand svg{width:44px;height:44px}
.region-gate h1{max-width:none;width:100%;text-align:center;margin:28px auto 8px;font-size:clamp(30px,5vw,46px);font-weight:700;letter-spacing:-.025em;line-height:1.1}
.rg-sub{max-width:none;text-align:center;margin:0 auto 36px;color:var(--muted);font-size:16px}
.region-gate:focus{outline:none}
.rg-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.rg-card{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:18px;
  padding:34px 24px 30px;border-radius:20px;text-align:center;color:var(--text);
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  border:1px solid var(--border-strong);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease,background .25s ease;
  animation:rgRise .55s ease both;
}
.rg-card:nth-child(2){animation-delay:.08s}
.rg-card:hover,.rg-card:focus-visible{
  transform:translateY(-4px);border-color:rgba(45,212,191,.55);
  background:linear-gradient(180deg,rgba(22,165,148,.10),rgba(255,255,255,.015));
  box-shadow:0 18px 50px -18px rgba(22,165,148,.55);
}
.rg-card:focus-visible{outline:2px solid var(--teal-bright);outline-offset:4px}
.rg-flag{width:132px;aspect-ratio:3/2;border-radius:8px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.12)}
.rg-flag img{width:100%;height:100%;object-fit:cover;display:block}
.rg-name{font-size:24px;font-weight:700;letter-spacing:-.015em}
.rg-text{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:52px}
.rg-label{font-size:13px;color:var(--muted)}
.rg-go{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--teal-bright)}
.rg-go svg{width:16px;height:16px;transition:transform .25s ease}
.rg-card:hover .rg-go svg,.rg-card:focus-visible .rg-go svg{transform:translateX(4px)}
.rg-foot{margin-top:30px;font-size:13px;color:var(--muted-dim)}
@media (max-width:600px){
  .rg-cards{grid-template-columns:1fr;gap:14px}
  .rg-card{flex-direction:row;justify-content:flex-start;text-align:left;padding:18px;gap:16px}
  .rg-flag{width:84px;flex:none}
  .rg-text{align-items:flex-start;gap:2px;min-height:0}
  .rg-go{display:none}
  .region-gate h1{margin-top:22px}
}
@keyframes rgFade{from{opacity:0}to{opacity:1}}
@keyframes rgOut{to{opacity:0;visibility:hidden}}
@keyframes rgRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* Switcher pill shown in the nav of both versions */
.region-switch{
  display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px 0 8px;border-radius:999px;
  border:1px solid var(--border-strong);background:var(--panel);color:var(--text);
  font-size:13px;font-weight:600;white-space:nowrap;transition:border-color .2s,background .2s;
}
.region-switch:hover,.region-switch:focus-visible{border-color:rgba(45,212,191,.55);background:var(--panel-hover)}
.region-switch:focus-visible{outline:2px solid var(--teal-bright);outline-offset:2px}
.region-switch img{width:22px;height:15px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.15)}
.region-switch .rs-swap{color:var(--muted);font-weight:500}
.mobile-menu .region-switch{margin:10px 0 4px;align-self:flex-start}

@media (prefers-reduced-motion:reduce){
  html.rw-gate .region-gate,.region-gate.leaving,.rg-card{animation:none}
  .rg-card,.rg-go svg{transition:none}
}
