/* Botão de línguas: o desenho é o mesmo que estava no site; a troca passa a ser uma ligação. */
.ucw-root{position:relative;display:inline-flex;align-items:center;font-family:-apple-system,'SF Pro Display','SF Pro Text',system-ui,sans-serif !important;line-height:1}
.ucw-root *{box-sizing:border-box;font-family:inherit}
.ucw-btn{all:unset;display:inline-flex;align-items:center;gap:6px;padding:12px 10px;color:#fff;font-size:13px;font-weight:500;letter-spacing:-.005em;cursor:pointer;white-space:nowrap;user-select:none;-webkit-user-select:none;font-family:inherit !important;transition:opacity .15s ease;opacity:.92;line-height:1}
.ucw-btn:hover,.ucw-root.is-open .ucw-btn{opacity:1}
.ucw-lbl{font-weight:500;letter-spacing:.02em}
.ucw-chev{display:inline-flex;width:10px;height:10px;transition:transform .2s ease;flex-shrink:0;opacity:.7;margin-top:1px}
.ucw-chev svg{width:10px;height:10px;display:block}
.ucw-root.is-open .ucw-chev{transform:rotate(180deg)}
.ucw-menu{position:fixed;min-width:240px;background:#fff;border:1px solid rgba(15,23,42,.06);border-radius:14px;box-shadow:0 24px 56px rgba(15,23,42,.18),0 4px 12px rgba(15,23,42,.06),0 0 0 .5px rgba(15,23,42,.02);padding:8px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;z-index:999999;margin:0;list-style:none;font-family:-apple-system,'SF Pro Display','SF Pro Text',system-ui,sans-serif;pointer-events:none}
.ucw-menu.is-open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.ucw-menu *{box-sizing:border-box;font-family:inherit}
.ucw-item{list-style:none;padding:0;margin:0;display:block}
.ucw-item + .ucw-item{margin-top:2px}
.ucw-opt{all:unset;display:flex !important;flex-direction:row !important;align-items:center !important;justify-content:space-between !important;width:100%;padding:11px 14px;border-radius:9px;cursor:pointer;color:#0f172a;font-size:14px;font-weight:500;line-height:1.2;letter-spacing:-.005em;transition:background .12s ease,color .12s ease;box-sizing:border-box;font-family:-apple-system,'SF Pro Display','SF Pro Text',system-ui,sans-serif !important;text-align:left;direction:ltr !important;gap:16px}
.ucw-opt:hover,.ucw-opt:focus-visible{background:#f1f5f9;color:#0071e3;outline:none}
.ucw-opt.is-active{color:#0071e3;font-weight:600}
.ucw-opt-name{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left !important}
.ucw-opt[data-lang="ar"] .ucw-opt-name{direction:rtl;unicode-bidi:isolate;text-align:left !important}
.ucw-opt-code{flex:0 0 auto;font-family:'SF Mono',ui-monospace,Menlo,Consolas,monospace !important;font-size:10.5px;color:#94a3b8;letter-spacing:.1em;text-transform:uppercase;font-weight:600;white-space:nowrap}
.ucw-opt.is-active .ucw-opt-code{color:#0071e3}
@media(max-width:900px){.ucw-btn{padding:10px 8px;font-size:12.5px}.ucw-menu{min-width:220px}.ucw-opt{padding:12px 14px;font-size:14.5px}}

/* Em árabe, uma célula só com medidas ("404 × 188 × 100") mantém a ordem do cabeçalho: leva dir="ltr" na construção. */
html[dir="rtl"] td[dir="ltr"] { text-align: right; }
/* Calculadora do oxigénio em árabe: o espaço entre letras e a letra monoespaçada partem as ligações das letras árabes. */
html[dir="rtl"] .ucq, html[dir="rtl"] .ucq * { letter-spacing: 0 !important; }
html[dir="rtl"] .ucq * { font-family: inherit !important; }
