/* Shared by the four Venezuela exodus pages: type scale, top bar, footer and the Filter menu.
   Colour tokens come from each page's own :root block; the pages keep their own palette. */
:root{--ui:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--quote:Georgia,"Times New Roman",serif}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Type scale: h1 26 · lede 15 · h2 16 · body 14 · h3 14 bold · caption 12.5 · label 11.5 caps */
h1{font-size:26px;line-height:1.2;font-weight:650;letter-spacing:-.015em;margin:0;text-wrap:balance}
h1 span{color:var(--muted);font-weight:500}
h2{font-size:16px;line-height:1.3;font-weight:650;margin:0 0 8px;text-wrap:balance}
h3{font-size:14px;line-height:1.35;font-weight:650}
.sub,.lede{font-size:15px;line-height:1.5;color:var(--ink2);margin:8px 0 0;max-width:72ch}
.eyebrow,.lbl{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.eyebrow{margin:0 0 6px}
.note,.hint{font-size:12.5px;color:var(--muted)}
@media (max-width:520px){h1{font-size:22px}h2{font-size:15px}.sub,.lede{font-size:14.5px}}

/* Top: link back to the Lab, then the tab bar (tabs only) */
.top{display:flex;flex-direction:column;gap:8px}
.labback{align-self:flex-start;color:var(--ink2);font-size:12.5px;text-decoration:none;padding:2px 0}
.labback:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.sitebar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 18px;padding:10px 14px;background:var(--surface);border:1px solid var(--ring);border-radius:10px}
.sitebar .brand{font-weight:650;font-size:15px;color:var(--ink);text-decoration:none;letter-spacing:-.01em}
.sitebar nav{display:flex;flex-wrap:wrap;gap:4px}
.sitebar nav a{color:var(--ink2);text-decoration:none;padding:4px 12px;border-radius:999px;border:1px solid transparent;font-size:13.5px}
.sitebar nav a:hover{background:var(--wash)}
.sitebar nav a[aria-current="page"]{background:var(--ink);color:var(--surface)}
@media (max-width:520px){.sitebar nav{gap:2px}.sitebar nav a{padding:4px 8px;font-size:13px}}
.sitefoot{color:var(--muted);font-size:12px;line-height:1.55;padding:4px 2px;max-width:104ch}
.sitefoot a{color:var(--link,var(--s1))}

/* Filter button + floating menu (uses --line, --soft, --accent, --accent-ink) */
.fwrap{position:relative}
.fbtn{display:inline-flex;gap:7px;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:5px 11px;font-weight:600;font-size:13px;color:var(--ink);cursor:pointer}
.fbtn:hover{background:var(--soft)}
.fbtn[aria-expanded="true"]{border-color:var(--accent)}
.fcount{background:var(--accent);color:var(--accent-ink);border-radius:999px;min-width:19px;height:19px;padding:0 6px;font-size:11.5px;line-height:19px;text-align:center;font-variant-numeric:tabular-nums}
.fpop{position:absolute;left:0;top:calc(100% + 8px);z-index:25;width:min(720px,calc(100vw - 32px));max-height:min(70vh,560px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 32px rgba(0,0,0,.22);padding:14px 16px;display:grid;gap:14px}
.fpop[hidden]{display:none}
.fpopfoot{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:10px}
.fdone{background:var(--accent);color:var(--accent-ink);border:0;border-radius:8px;padding:5px 16px;font-weight:600;cursor:pointer}
.fsum{color:var(--muted);font-size:12.5px;max-width:60ch}
.fgroup{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.fgroup .flab{font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);width:100%}
.linkbtn{background:none;border:0;padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}
