/* World population widget (/world-population/embed/, embeds and OBS). No ads, no fonts to load. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { display: flex; align-items: center; justify-content: center; overflow: hidden; background: transparent; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; -webkit-font-smoothing: antialiased; }
main { width: 100%; height: 100%; display: flex; }
.w { position: relative; display: flex; align-items: center; width: 100%; height: 100%; padding: 14px 18px 14px 22px; overflow: hidden; border-radius: 16px; background: #fff; color: #121214; text-decoration: none; }
.w::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #0E7490; }
.w-tx { display: grid; min-width: 0; }
.w-name { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.w-count { font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .6s; }
.w-unit { color: #5d5d64; font-size: 12px; font-variant-numeric: tabular-nums; }
.w-msg { margin: auto; padding: 12px; color: #5d5d64; font-size: 13px; text-align: center; }

.t-dark .w { background: #161618; color: #F3F3F1; }
.t-dark .w::before { background: #5ED3E8; }
.t-dark .w-unit, .t-dark .w-msg { color: #a4a4ac; }
.t-transparent .w { background: transparent; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .65); }
.t-transparent .w::before { background: #5ED3E8; }
.t-transparent .w-unit, .t-transparent .w-msg { color: #fff; }

.s-s .w { padding: 10px 12px 10px 16px; }
.s-s .w-name { font-size: 12px; }
.s-s .w-count { font-size: 26px; }
.s-s .w-unit { font-size: 10.5px; }
.s-l .w { padding: 18px 24px 18px 28px; }
.s-l .w-name { font-size: 18px; }
.s-l .w-count { font-size: 50px; }
.s-l .w-unit { font-size: 14px; }
.w-count.is-new { color: #0B7A45; }
.t-dark .w-count.is-new, .t-transparent .w-count.is-new { color: #46D08A; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .w-count { transition: none; } }
[dir="rtl"] .w::before { inset: 0 0 0 auto; } [dir="rtl"] .w { padding: 14px 22px 14px 18px; }
