/* ==========================================================================
   Lower Mekong Water Quality · interface
   --------------------------------------------------------------------------
   Built on the VCMS design system (app.vi3d.app): same tokens, same card
   system, same clear-glass material. Blocks marked "VCMS" are lifted from
   prototype/tinh/vcms.css and only renamed where the name was app-specific.
   The page is laid out as a website, in the rhythm of the VI3D landing
   template: navy band, paper band, navy band. Rules that hold here:
     · navy and paper are the two grounds, VinUni red is attention; no third hue
     · glass only where something sits behind it (the map); data sits on solid plates
     · numbers that align use IBM Plex Mono, tabular
     · IBM Plex Serif is the voice of the published article (its title, its
       findings, its citation); IBM Plex Sans is the voice of this site
   ========================================================================== */

/* ---- VCMS · tokens ---- */
:root{
  --navy:#1E366B; --navy-pressed:#16284F; --navy-link:#34508F; --navy-sel:#E1E8F4;
  --navy-sang:#2A4880; --navy-phan:#9FC0FF;
  --surface:#FFFFFF; --canvas:#E3E9F3; --chrome:#E4E9F2; --chrome-deep:#0E1A33;
  --ink:#1C2433; --ink-muted:#5A6478; --ink-faint:#6B7488;
  --line-control:#8A93A6; --line-soft:#C7D0E0; --line-hair:#E3E8F0; --line:#C7D0E0;
  --red:#C4232A; --red-sang:#D5333B; --red-surface:#FCEDEC; --red-pressed:#A61C22;

  --s-xs:4px; --s-sm:8px; --s-md:12px; --s-lg:16px; --s-xl:24px; --s-2xl:32px; --s-3xl:48px; --s-4xl:72px;
  --r-sm:4px; --r-md:6px; --r-lg:10px; --r-card:16px; --r-card-lg:18px; --r-full:9999px;

  --sans:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --serif:'IBM Plex Serif','Times New Roman',Georgia,serif;

  --shadow-hair:0 1px 2px rgba(28,36,51,.05),0 1px 3px rgba(28,36,51,.04);
  --shadow-float:0 4px 16px rgba(28,36,51,.12);
  --shadow-card:0 0 0 1px rgba(28,36,51,.05),0 2px 5px rgba(28,36,51,.07),0 14px 30px -8px rgba(28,36,51,.20);
  --shadow-card-soft:0 0 0 1px rgba(28,36,51,.05),0 2px 5px rgba(28,36,51,.06),0 6px 16px -4px rgba(28,36,51,.13);
  --row-hover:#F3F6FB;
  --t-state:120ms; --t-overlay:160ms; --ease:cubic-bezier(.16,1,.3,1);

  /* data marks: the VCMS navy ordinal ramp, the province-map red ramp, the atlas heat ramp */
  --dh1:#93AED6; --dh2:#6F90C5; --dh3:#4B70AE; --dh4:#2E5192; --dh5:#1E366B;
  --do1:#F0999E; --do2:#E47A80; --do3:#D7565E; --do4:#C4232A; --do5:#A61C22;
  --nhiet1:#FFE59A; --nhiet2:#FDBA5C; --nhiet3:#F27A3A; --nhiet4:#D7302A; --nhiet5:#A61C22;
  --trung:#EEF1F6;                    /* neutral midpoint of the diverging scale */

  /* glass world (VCMS inventory screen) */
  --kg-chu:#fff; --kg-chu-2:rgba(255,255,255,.90); --kg-chu-3:rgba(255,255,255,.80);
  --kg-vien:rgba(255,255,255,.13);
  --kg-do:linear-gradient(180deg,var(--red-sang) 0%,var(--red) 100%);
  --kg-do-bong:inset 0 1px 0 rgba(255,255,255,.34),0 1px 2px rgba(8,18,42,.28),0 3px 8px -2px rgba(196,35,42,.55);

  --paper:#F7F9FC;                    /* ground of the light bands (VI3D --nen) */
  --bar:60px;                         /* height of the top bar on a wide screen */
  --rong:1240px;                      /* content width */
  --le:clamp(16px,3.2vw,40px);        /* page gutter */
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:72px}
html,body{margin:0;padding:0}
[hidden]{display:none!important}
body{
  font-family:var(--sans);font-size:.9375rem;line-height:1.55;color:var(--ink);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;min-height:100dvh;background:var(--paper);
}
/* The navy ground (VCMS #khoBody): soft glows over the navy gradient. The gradient is fixed to the window, so the
   navy bands read as one sheet seen through the page and glass has a ground that moves under it. */
.dh-mo,.khoi--navy{color:var(--kg-chu);background-color:#16284F;background-image:
    radial-gradient(900px 560px at 2% -6%, rgba(132,162,228,.16), transparent 70%),
    radial-gradient(760px 540px at 100% 8%, rgba(255,255,255,.05), transparent 72%),
    radial-gradient(1100px 700px at 82% 106%, rgba(84,118,200,.24), transparent 72%),
    linear-gradient(180deg,#16284F 0%,#1E366B 100%);
  background-attachment:scroll,scroll,scroll,fixed}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
h1,h2,h3,h4,p,figure,ol,ul{margin:0}
ol,ul{padding:0;list-style:none}
img,svg{max-width:100%}
/* Leaflet panes are zero-width boxes: a percentage max-width would collapse its SVG layer and tiles */
.leaflet-container svg,.leaflet-container img{max-width:none!important}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:var(--r-sm)}
.the :focus-visible,.bang-wrap :focus-visible{outline-color:var(--navy)}
.trang{max-width:var(--rong);margin:0 auto;padding:0 var(--le)}
.skip{position:absolute;left:12px;top:-60px;z-index:100;background:#fff;color:var(--navy);padding:8px 14px;border-radius:var(--r-lg);font-weight:600;text-decoration:none}
.skip:focus{top:8px}

/* ==========================================================================
   Top bar · VCMS .proto
   ========================================================================== */
.proto{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:var(--s-lg);
  padding:9px var(--le);min-height:var(--bar);background:rgba(14,26,51,.92);color:#fff;
  -webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.10),0 6px 18px -10px rgba(0,0,0,.5)}
.proto-brand{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none}
.proto-brand svg{flex:none}
.apptitle{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.apptitle b{font-size:.9375rem;font-weight:600;color:#fff;letter-spacing:-.005em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.apptitle .sub{font-size:.71875rem;font-weight:400;color:rgba(255,255,255,.64);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proto nav{margin-left:auto;display:flex;gap:2px}
.proto nav a{padding:8px 13px;border-radius:var(--r-lg);font-size:.875rem;color:rgba(255,255,255,.78);text-decoration:none;
  transition:background-color .15s var(--ease),color .15s var(--ease)}
.proto nav a:hover{background:rgba(255,255,255,.10);color:#fff}
.proto nav a[aria-current="true"]{background:rgba(255,255,255,.14);color:#fff;font-weight:600}
.chu-ngan{display:none}
/* phone and tablet: the section links move to a second row of the bar, the button shortens */
@media (max-width:980px){
  html{scroll-padding-top:104px}
  .proto{flex-wrap:wrap;row-gap:4px;padding-bottom:6px}
  .proto-brand{flex:1 1 0}
  .proto .kg-nut{margin-left:auto;order:2}
  .proto nav{order:3;flex:1 0 100%;margin:0 -6px;gap:0;justify-content:space-between;overflow-x:auto;scrollbar-width:none}
  .proto nav::-webkit-scrollbar{display:none}
  .proto nav a{padding:6px 10px;white-space:nowrap}
}
@media (max-width:520px){ .apptitle .sub{display:none} .chu-dai{display:none} .chu-ngan{display:inline} }
@media (max-width:380px){ .proto{column-gap:10px} .proto-brand{gap:8px} .apptitle b{font-size:.8125rem} .proto .kg-nut{padding:0 11px} }

/* ==========================================================================
   Glass · VCMS .kg-*
   ========================================================================== */
.kg-tam{position:relative;border-radius:22px;padding:18px 20px;color:var(--kg-chu);
  background:linear-gradient(155deg,rgba(255,255,255,.11) 0%,rgba(255,255,255,.06) 40%,rgba(255,255,255,.04) 100%);
  -webkit-backdrop-filter:blur(26px) saturate(170%);backdrop-filter:blur(26px) saturate(170%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(255,255,255,.05),
    0 1px 1px rgba(4,10,28,.16),0 24px 54px -24px rgba(4,10,28,.70)}
.kg-tam::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  background:linear-gradient(180deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,0) 26%),
             linear-gradient(118deg,transparent 42%,rgba(255,255,255,.06) 49%,transparent 57%)}
.kg-tam::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:0;
  background:linear-gradient(140deg,rgba(255,255,255,.60) 0%,rgba(255,255,255,.12) 34%,rgba(255,255,255,.03) 60%,rgba(255,255,255,.24) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.kg-tam > *{position:relative;z-index:1}
.kg-tam--day{background:linear-gradient(160deg,rgba(255,255,255,.14) 0%,rgba(255,255,255,.08) 45%,rgba(255,255,255,.05) 100%);
  -webkit-backdrop-filter:blur(34px) saturate(180%);backdrop-filter:blur(34px) saturate(180%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.46),inset 0 -1px 0 rgba(255,255,255,.06),
    0 1px 1px rgba(4,10,28,.18),0 30px 70px -26px rgba(4,10,28,.78)}
/* glass that floats over the map: darker body so white text holds on satellite imagery too (VCMS .gmeta) */
.kg-tam--toi{background:linear-gradient(155deg,rgba(255,255,255,.13) 0%,rgba(255,255,255,.07) 40%,rgba(255,255,255,.05) 100%);
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%)}
@media (min-width:1101px){
  .san[data-ve="sat"] .kg-tam--toi{background:linear-gradient(180deg,rgba(18,31,64,.66) 0%,rgba(12,21,44,.78) 100%);
    -webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%)}
}
/* VCMS level 3: liquid refraction, Chromium only, only over the map */
html[data-kinh="khucxa"] .kg-tam--toi,html[data-kinh="khucxa"] .san[data-ve="sat"] .kg-tam--toi{
  -webkit-backdrop-filter:url(#kinhLong) blur(12px) saturate(160%);
  backdrop-filter:url(#kinhLong) blur(12px) saturate(160%)}
@media (prefers-reduced-motion:reduce){
  html[data-kinh="khucxa"] .kg-tam--toi,html[data-kinh="khucxa"] .san[data-ve="sat"] .kg-tam--toi{-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%)}
}
/* thin glass: colour and rim only, no blur */
.kk-o{border-radius:18px;padding:12px 15px;display:flex;flex-direction:column;min-width:0;
  background:linear-gradient(160deg,rgba(255,255,255,.12) 0%,rgba(255,255,255,.06) 52%,rgba(255,255,255,.04) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32),inset 0 0 0 1px rgba(255,255,255,.10),
    0 1px 1px rgba(4,10,28,.14),0 18px 36px -20px rgba(4,10,28,.62)}
.kk-o .k{display:block;font-size:.6875rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--kg-chu-3);text-wrap:balance}
.kk-o .v{display:block;font-size:1.5rem;font-weight:600;line-height:1.1;color:#fff;margin-top:auto;padding-top:6px;letter-spacing:-.01em}
.kk-o .p{display:block;margin-top:2px;font-size:.75rem;color:var(--kg-chu-3)}
.kg-h{display:flex;align-items:center;gap:8px;font-size:.6875rem;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--kg-chu-2);margin:0 0 12px}
.kg-nhan{font-size:.6875rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--kg-chu-3);margin:0 0 8px}
.kg-dem{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 7px;border-radius:var(--r-full);
  background:#fff;color:var(--navy);font-size:.6875rem;font-weight:700;letter-spacing:0;font-family:var(--mono)}
.kg-nut{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 14px;border-radius:12px;cursor:pointer;
  border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.12);color:#fff;font:inherit;font-size:.8125rem;font-weight:600;
  white-space:nowrap;text-decoration:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
  transition:background .15s var(--ease),transform .1s var(--ease)}
.kg-nut:hover{background:rgba(255,255,255,.20)}
.kg-nut:active{transform:scale(.97)}
.kg-nut:focus-visible{outline:2px solid #fff;outline-offset:2px}
.kg-nut--nho{height:30px;padding:0 11px;font-size:.75rem;border-radius:10px}
.kg-nut--chinh{background:#fff;color:var(--navy);border-color:#fff;font-weight:700;
  box-shadow:0 1px 2px rgba(4,10,28,.25),0 10px 24px -10px rgba(4,10,28,.6)}
.kg-nut--chinh:hover{background:#EEF2FA}
.kg-nut--lon{height:44px;padding:0 20px;font-size:.9375rem;border-radius:14px}
.kg-nut svg{flex:none}

/* chips on navy · VCMS .screen.navy .fchip (selected = embossed VinUni red) */
.fchip{appearance:none;height:28px;padding:0 12px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.10);
  border-radius:var(--r-full);font-size:.8125rem;color:rgba(255,255,255,.86);cursor:pointer;display:inline-flex;align-items:center;gap:6px;
  font-weight:500;white-space:nowrap;transition:background-color var(--t-state) var(--ease),color var(--t-state) var(--ease)}
.fchip:hover{background:rgba(255,255,255,.18);color:#fff}
.fchip[aria-pressed="true"]{background:linear-gradient(180deg,#D5333B 0%,var(--red) 100%);border-color:transparent;color:#fff;font-weight:600;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 1px 2px rgba(8,18,42,.35),0 3px 8px -2px rgba(196,35,42,.6)}
.fchip[aria-pressed="true"]:hover{filter:brightness(.94)}
/* chips on a white plate · VCMS .fchip */
.the .fchip{border-color:transparent;background:rgba(28,36,51,.05);color:var(--ink-muted)}
.the .fchip:hover{background:rgba(28,36,51,.09);color:var(--ink)}
.the .fchip[aria-pressed="true"]{background:linear-gradient(180deg,#2A4880 0%,var(--navy) 100%);color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 2px 6px -2px rgba(8,18,42,.35)}

/* tooltip · VCMS .tip */
.tip{position:fixed;z-index:90;left:0;top:0;background:var(--ink);color:#fff;font-size:.75rem;line-height:1.45;padding:7px 9px;border-radius:var(--r-md);
  pointer-events:none;box-shadow:var(--shadow-float);max-width:260px;opacity:0;transform:translateY(4px);
  transition:opacity var(--t-overlay) var(--ease),transform var(--t-overlay) var(--ease)}
.tip.on{opacity:1;transform:translateY(0)}
.tip b{font-weight:600}
.tip .tv{font-family:var(--mono);font-weight:600}
.tip i{font-style:normal;color:rgba(255,255,255,.7)}

/* ==========================================================================
   Opening band · VCMS .dh-mo
   ========================================================================== */
.dh-mo{position:relative;overflow:hidden;--ct-cao:clamp(44px,6.2vw,84px);--ct-truc:24px;padding:52px 0 calc(var(--ct-cao) + var(--ct-truc) + 40px);
  display:flex;flex-direction:column;justify-content:center;min-height:min(calc(100vh - var(--bar)),920px);min-height:min(calc(100svh - var(--bar)),920px)}
.dh-mo > .trang{width:100%}
.dh-mo-luoi{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,400px);gap:var(--s-3xl);align-items:start}
.dh-nhan{font-size:.6875rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.dh-nhan a{text-decoration:none;border-bottom:1px solid rgba(255,255,255,.3)}
.dh-nhan a:hover{border-bottom-color:#fff;color:#fff}
.dh-tieu{margin-top:14px;font-size:clamp(2rem,4.4vw,3.25rem);font-weight:600;line-height:1.06;letter-spacing:-.025em;color:#fff;text-wrap:balance;max-width:23ch}
.dh-dan{margin-top:18px;font-size:1.0625rem;line-height:1.55;color:rgba(255,255,255,.78);max-width:56ch}
.dh-dan a{color:#fff;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.45)}
.dh-dan a:hover{text-decoration-color:#fff}
.dh-dan a.bai{font-family:var(--serif);font-size:1.03em}     /* the title of the article, in the voice of the article */
/* authors and affiliations, set like the title block of the article */
.dh-tg{margin-top:20px;font-size:1rem;line-height:1.7;color:rgba(255,255,255,.95);max-width:64ch;font-weight:500}
.dh-tg sup,.dh-cq sup{font-size:.6875rem;font-weight:500;color:rgba(255,255,255,.78);margin-left:1px;line-height:0;letter-spacing:.02em}
.dh-tg .tg1{white-space:nowrap}
.dh-cq{margin-top:10px;max-width:760px}
.dh-cq summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;list-style:none;font-size:.6875rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:rgba(255,255,255,.72);border-radius:var(--r-sm)}
.dh-cq summary::-webkit-details-marker{display:none}
.dh-cq summary::after{content:"";width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg);transition:transform .15s var(--ease)}
.dh-cq[open] summary::after{transform:rotate(45deg) translate(-1px,-1px)}
.dh-cq ol{margin-top:8px;margin-bottom:-5px;columns:2;column-gap:28px;font-size:.75rem;line-height:1.45;color:rgba(255,255,255,.80)}
.dh-cq li{break-inside:avoid;padding:0 0 5px 15px;position:relative}   /* spacing as padding: Safari carries a bottom margin over to the top of the next column */
.dh-cq li sup{position:absolute;left:0;top:.55em;margin:0}
.dh-cq p{margin-top:4px;font-size:.75rem;color:rgba(255,255,255,.72)}
@media (max-width:760px){ .dh-cq ol{columns:1} }
.dh-nut{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}
/* The horizon: the lower edge of the opening band is the record itself. The shape is the basin's monthly median of
   suspended solids from 2011 to 2020, zero at its base, filled with the paper of the band below; its year axis and
   its caption are the first lines of that band (.ct-nam, .ct-chu). The one ornament of the page, and it is data. */
@media (min-width:981px) and (max-height:820px){
  .dh-mo{--ct-cao:54px;padding-top:30px;padding-bottom:calc(var(--ct-cao) + var(--ct-truc) + 24px)}
  .dh-tieu{font-size:clamp(2rem,3.9vw,2.75rem);margin-top:12px}
  .dh-dan{margin-top:14px} .dh-tg{margin-top:14px} .dh-nut{margin-top:20px}
}
.chan-troi{position:absolute;left:0;right:0;bottom:-1px;z-index:2;pointer-events:none}
.chan-troi svg{display:block;width:100%;height:var(--ct-cao);margin-bottom:-1px}
.chan-troi path{fill:var(--paper)}
.ct-nam{position:relative;height:var(--ct-truc);margin:0;background:var(--paper);font-family:var(--mono);font-size:.6875rem;color:var(--ink-muted)}
.ct-nam li{position:absolute;top:0;padding:6px 0 0 6px;border-left:1px solid var(--line-soft);line-height:14px;white-space:nowrap}
/* The basin from space, on the right of the opening band: the page's signature picture.
   Two stacked images with one fit: www/hero.webp (imagery) and www/hero.svg (basin, rivers, stations), both drawn
   by analysis/scripts/build_hero_art.R. The picture is as tall as the first screen, so the whole river shows
   without scrolling, and never wider than its own shape, so a very wide window does not crop the delta.
   It fades into the navy ground at its edges: no frame. */
.dh-anh{position:absolute;z-index:0;top:0;right:0;left:min(calc(50% + 70px),calc(100% - var(--le) - 510px));
  height:min(100%,calc(100vh - var(--bar)));height:min(100%,calc(100svh - var(--bar)));pointer-events:none}
.dh-anh-hinh{position:absolute;top:0;left:0;height:100%;aspect-ratio:9 / 10;max-width:100%;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.35) 8%,rgba(0,0,0,.9) 18%,#000 26%,#000 93%,transparent 100%),linear-gradient(180deg,#000 88%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.35) 8%,rgba(0,0,0,.9) 18%,#000 26%,#000 93%,transparent 100%),linear-gradient(180deg,#000 88%,transparent 100%);
  -webkit-mask-composite:source-in;mask-composite:intersect}
.dh-anh-hinh img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 50%}
.dh-anh-nen{opacity:0;transition:opacity .9s var(--ease)}
.dh-anh.co .dh-anh-nen{opacity:.96}
.dh-anh-chu{position:absolute;right:max(20px,calc(50vw - 580px));top:18px;display:flex;gap:4px 16px;flex-wrap:wrap;justify-content:flex-end;max-width:360px;
  font-size:.6875rem;color:rgba(255,255,255,.78);text-shadow:0 1px 3px rgba(8,18,42,.9)}
.dh-anh-chu i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:-1px;background:#fff;box-shadow:0 0 0 1.5px #0E1A33}
.dh-anh-chu i.tb{background:var(--nhiet2)}
.dh-anh-chu .ng{color:rgba(255,255,255,.6)}
.dh-mo-luoi{position:relative;z-index:1}
/* phone and tablet (the top bar is two rows here): the picture is a band above the title */
@media (max-width:980px){
  .dh-mo{padding:0 0 calc(var(--ct-cao) + var(--ct-truc) + 30px);min-height:0;display:block}
  .dh-mo-luoi{grid-template-columns:minmax(0,1fr)}
  .dh-mo-cho{display:none}
  .dh-anh{position:relative;left:auto;height:auto;margin-bottom:18px}
  .dh-anh-hinh{position:relative;height:clamp(300px,96vw,400px);aspect-ratio:auto;max-width:none;
    -webkit-mask-image:linear-gradient(180deg,#000 90%,transparent 100%);mask-image:linear-gradient(180deg,#000 90%,transparent 100%);
    -webkit-mask-composite:source-over;mask-composite:add}
  .dh-anh-hinh img{object-position:50% 100%}
  /* the key to the dots sits on the faded foot of the picture; the imagery credit runs up its right edge, as on a printed photograph */
  .dh-anh-chu{left:var(--le);right:var(--le);top:auto;bottom:5px;max-width:none;justify-content:flex-start;gap:3px 14px}
  .dh-anh-chu .ng{position:absolute;right:calc(6px - var(--le));bottom:34px;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;
    font-size:.65625rem;letter-spacing:.02em;color:rgba(255,255,255,.66)}
}
@media (min-width:600px) and (max-width:980px){ .dh-anh-hinh{height:460px} }

/* ==========================================================================
   Sections
   ========================================================================== */
.khoi{padding:clamp(56px,7.2vw,96px) 0}
.khoi-dau{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s-xl);flex-wrap:wrap;margin-bottom:var(--s-2xl)}
.khoi-dau h2{font-size:clamp(1.625rem,3.1vw,2.375rem);font-weight:600;letter-spacing:-.02em;line-height:1.12;color:#fff;margin-top:10px;text-wrap:balance}
.khoi-dau p{margin-top:12px;font-size:1.0625rem;line-height:1.55;color:var(--kg-chu-3);max-width:66ch}
.khoi-dau p a{color:#fff;text-underline-offset:2px}
.luoi-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-lg)}
.luoi-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-lg)}
@media (max-width:980px){ .luoi-3,.luoi-2{grid-template-columns:minmax(0,1fr)} }

/* Paper bands. The shared pieces take their ink from three variables, so a band flips them once. */
.khoi--sang,.khoi--giay{color:var(--ink);--kg-chu:var(--ink);--kg-chu-2:#2A3344;--kg-chu-3:var(--ink-muted)}
.khoi--sang{background:var(--paper)}
.khoi--giay{background:var(--surface)}
.khoi--sang .khoi-dau h2,.khoi--giay .khoi-dau h2{color:var(--navy)}
.khoi--sang .khoi-dau p a,.khoi--giay .khoi-dau p a{color:var(--navy-link)}
.khoi--sang .khoi-dau .kg-nhan,.khoi--giay .khoi-dau .kg-nhan{color:var(--red)}   /* VI3D: the label over a heading is red on paper */
.khoi--sang :focus-visible,.khoi--giay :focus-visible{outline-color:var(--navy)}
.khoi--sang .the{box-shadow:var(--shadow-card)}
.khoi--navy .khoi-dau .kg-nhan{color:rgba(255,255,255,.80)}

/* The study in numbers, right under the horizon: its year axis, its caption, then five counts in one ruled row. */
.khoi--duoi-mo{padding-top:0}
.ct-chu{padding-top:14px;font-size:.75rem;line-height:1.5;color:var(--ink-muted);max-width:96ch}
.so-hang{display:grid;grid-template-columns:1.55fr repeat(4,minmax(0,1fr));margin:clamp(32px,4.4vw,56px) 0 clamp(48px,6.4vw,88px);
  border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.so-o{padding:20px 20px 20px 22px;border-left:1px solid var(--line-hair);min-width:0}
.so-o:first-child{border-left:0;padding-left:0}
.so-o dt{font-size:.6875rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-muted)}
.so-o dd{margin:10px 0 0}
.so-o b{display:block;font-variant-numeric:tabular-nums;font-size:clamp(1.875rem,2.9vw,2.5rem);font-weight:600;line-height:1;letter-spacing:-.025em;color:var(--navy)}
.so-o span{display:block;margin-top:9px;font-size:.8125rem;line-height:1.4;color:var(--ink-muted)}
@media (max-width:860px){
  .ct-nam li:not(:nth-child(3n+1)){display:none}
  .so-hang{grid-template-columns:repeat(2,minmax(0,1fr))}
  .so-o{padding:16px 12px 16px 16px;border-top:1px solid var(--line-hair)}
  .so-o:first-child{grid-column:1 / -1;border-top:0}
  .so-o:nth-child(2n){border-left:0;padding-left:0}
}

/* Key findings: what the article says, so the headings speak in its serif. Plain type under a hairline, no boxes. */
.luoi-thua{gap:var(--s-2xl)}
.ph{padding-top:18px;border-top:1px solid rgba(255,255,255,.26)}
.ph-so{font-family:var(--mono);font-size:.75rem;font-weight:600;color:var(--kg-chu-3)}
.ph h3{margin-top:8px;font-family:var(--serif);font-size:1.375rem;font-weight:500;line-height:1.25;letter-spacing:-.005em;color:#fff;text-wrap:balance}
.ph p{margin-top:10px;font-size:.9375rem;line-height:1.6;color:var(--kg-chu-2)}
.ph .nguon{margin-top:12px;font-size:.75rem;color:var(--kg-chu-3)}
.khoi--sang .ph{border-top-color:var(--line-control)}
.khoi--sang .ph h3{color:var(--navy)}

/* ==========================================================================
   Explorer: the map under glass
   ========================================================================== */
/* The map is a band of the page: as wide as the window and about one screen tall. Its panels sit in .san-khung and
   keep to the edges of the window, at the gutter of the top bar, so the middle of the map stays open. */
.san{position:relative;height:clamp(600px,82vh,880px);height:clamp(600px,calc(100svh - var(--bar) - 32px),880px);overflow:hidden;background:#0E1A33;
  --cot:var(--le)}   /* from the edge of the map to the panels: the page gutter, in line with the logo and the button of the top bar */
.san #map{position:absolute;inset:0;height:100%!important;width:100%!important;background:transparent;z-index:1}
/* where the map meets the navy band: a hairline and a short shade, over the imagery and under the map's own buttons */
.san #map::after{content:"";position:absolute;inset:0;z-index:800;pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -1px 0 rgba(255,255,255,.10),inset 0 30px 34px -30px rgba(4,10,28,.8),inset 0 -30px 34px -30px rgba(4,10,28,.8)}
.san-khung{position:absolute;z-index:10;top:0;bottom:0;left:var(--cot);right:var(--cot);pointer-events:none}
.leaflet-container{font-family:var(--sans);background:transparent}
.leaflet-container a{color:rgba(255,255,255,.8)}
.leaflet-control-attribution{background:rgba(14,26,51,.62)!important;color:rgba(255,255,255,.74);font-size:10px;line-height:1.5;border-radius:var(--r-full);
  padding:1px 9px;margin:0 0 8px 0!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.leaflet-control-attribution a{text-decoration:none}
.leaflet-bar{border:0!important;border-radius:12px!important;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 8px 20px -8px rgba(4,10,28,.7)!important}
.leaflet-bar a{background:rgba(18,31,64,.72);color:#fff;border-bottom:1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);width:34px;height:34px;line-height:34px}
.leaflet-bar a:hover{background:rgba(42,72,128,.9);color:#fff}
.leaflet-bottom.leaflet-right .leaflet-control-zoom{margin:0 0 12px 0}
.san .leaflet-right{right:var(--cot)}   /* the zoom buttons and the credit line sit at the same inset as the panels */
.leaflet-container path.sg-c1{filter:drop-shadow(0 0 5px rgba(159,192,255,.5))}
/* over satellite imagery (the default): lighter tributaries, a dark casing so white lines and marks hold on bright land */
/* --gan runs from 0 (whole basin) to 1 (delta, one station) and is set from the zoom by mekong.js. Far out the drawn
   river is the map; close in the river shows in the imagery, so the drawn lines thin to a centre line and the basin
   outline steps back. */
.san[data-ve="sat"] path.sg-c4{stroke:#B9CEF7;stroke-opacity:.62;stroke-opacity:calc(.62 - .34 * var(--gan,0))}
.san[data-ve="sat"] path.sg-c3{stroke:#CFDDFA;stroke-opacity:.8;stroke-opacity:calc(.8 - .38 * var(--gan,0))}
.san[data-ve="sat"] path.sg-c2{stroke:#E6EEFF;stroke-opacity:.95;stroke-opacity:calc(.95 - .3 * var(--gan,0));stroke-width:calc(1.8px - .6px * var(--gan,0))}
.san[data-ve="sat"] path.sg-c1{stroke-width:calc(3.2px - 1.7px * var(--gan,0));stroke-opacity:calc(1 - .14 * var(--gan,0));
  filter:drop-shadow(0 0 2px rgba(8,18,42,.95)) drop-shadow(0 0 5px rgba(8,18,42,.55))}
.san[data-ve="sat"] path.sg-basin{stroke:#FFFFFF;stroke-opacity:.6;stroke-opacity:calc(.6 - .36 * var(--gan,0));stroke-width:1.3}
.san[data-ve="sat"] .leaflet-tram-pane svg{filter:drop-shadow(0 1px 2px rgba(8,18,42,.75))}
.san[data-ve="sat"] .nhan-bd{color:rgba(255,255,255,.9);text-shadow:0 0 3px rgba(8,18,42,.95),0 1px 4px rgba(8,18,42,.8)}
.san[data-ve="sat"] .nhan-bd--water{color:#DCE8FF}
.nhan-bd{background:none;border:0;box-shadow:none;padding:0;color:rgba(255,255,255,.46);font-family:var(--sans);
  font-size:11px;font-weight:600;letter-spacing:.2em;white-space:nowrap}
.nhan-bd--water{color:rgba(159,192,255,.7);letter-spacing:.06em;font-style:italic;font-weight:500;font-size:11px}
.nhan-bd::before{display:none}
.nhan-tram{background:rgba(14,26,51,.82);border:0;border-radius:6px;color:#fff;font-family:var(--sans);font-size:11px;font-weight:600;
  padding:2px 7px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.nhan-tram::before{display:none}
.leaflet-popup-content-wrapper{background:rgba(18,31,64,.92);color:#fff;border-radius:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 20px 40px -16px rgba(0,0,0,.7)}
.leaflet-popup-tip{background:rgba(18,31,64,.92)}
.san-goi{display:none;margin:10px 2px 0;font-size:.75rem;color:var(--kg-chu-3)}
.san-duoi{margin-top:28px}
@media (pointer:coarse){ .san-goi{display:block} }
/* panels over the map */
.san-trai{position:absolute;z-index:10;left:0;top:20px;bottom:20px;width:min(392px,100%);display:flex;flex-direction:column;gap:12px;pointer-events:none}
.san-trai > *{pointer-events:auto}
.san-phai{position:absolute;z-index:10;right:0;top:20px;width:min(336px,100%);display:flex;flex-direction:column;gap:12px;pointer-events:none}
.san-phai > *{pointer-events:auto}
.san-day{position:absolute;z-index:10;left:406px;right:48px;bottom:34px;display:flex;justify-content:center;pointer-events:none}
.san-day > *{pointer-events:auto}
@media (min-width:1500px){ .san-day{right:346px} }   /* room for it between the two columns of panels: centred under the basin */
.tam-chon{padding:14px 16px 12px;flex:none}
.nhom{display:grid;grid-template-columns:62px minmax(0,1fr);gap:6px 10px;align-items:start;margin:0}
.nhom dt{font-size:.6875rem;line-height:26px;color:var(--kg-chu-3);letter-spacing:.02em}
.nhom dd{margin:0;display:flex;flex-wrap:wrap;gap:5px}
.nhom .fchip{height:26px;padding:0 9px;font-size:.75rem}
.tam-xh{padding:14px 8px 8px 16px;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.tam-xh .kg-h{margin-right:8px;justify-content:space-between}
.xh-loc{display:flex;gap:6px;flex-wrap:wrap;margin:0 8px 10px 0}
.xh-loc .fchip{height:24px;padding:0 9px;font-size:.75rem}
.xh{overflow:auto;flex:1 1 auto;min-height:0;padding-right:6px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent}
.xh::-webkit-scrollbar{width:8px}
.xh::-webkit-scrollbar-thumb{background:rgba(255,255,255,.26);border-radius:5px}
/* VCMS .kk-khu-r: one row per station, bar = median */
.xh-r{display:grid;grid-template-columns:18px minmax(0,1.15fr) minmax(40px,1fr) auto;gap:8px;align-items:center;width:100%;padding:7px 6px;border:0;
  background:none;font:inherit;color:#fff;text-align:left;cursor:pointer;border-radius:10px;transition:background .12s var(--ease)}
.xh-r:hover,.xh-r.on{background:rgba(255,255,255,.09)}
.xh-r[aria-pressed="true"]{background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.xh-r .hang{font-family:var(--mono);font-size:.6875rem;color:var(--kg-chu-3);text-align:right}
.xh-r .ten{font-size:.8125rem;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xh-r .ten small{display:block;font-size:.6875rem;font-weight:400;color:var(--kg-chu-3);overflow:hidden;text-overflow:ellipsis}
.xh-r .thanh{height:7px;border-radius:4px;background:rgba(255,255,255,.12);overflow:hidden}
.xh-r .thanh i{display:block;height:100%;border-radius:4px}
.xh-r .so{font-family:var(--mono);font-size:.8125rem;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;min-width:44px}
.xh-trong{padding:14px 6px;font-size:.8125rem;color:var(--kg-chu-3)}
/* legend + station dossier */
.tam-cg{padding:12px 14px}
.cg-ten{font-size:.875rem;font-weight:600;line-height:1.3}
.cg-ten small{display:block;font-size:.75rem;font-weight:400;color:var(--kg-chu-3)}
.cg-thang{display:flex;margin-top:10px;height:9px;border-radius:5px;overflow:hidden}
.cg-thang i{flex:1}
.cg-so{display:flex;justify-content:space-between;margin-top:5px;font-family:var(--mono);font-size:.6875rem;color:var(--kg-chu-2)}
.cg-chu{margin-top:8px;font-size:.6875rem;line-height:1.45;color:var(--kg-chu-3)}
.tam-hs{padding:14px 16px}
.hs-dau{display:flex;align-items:center;gap:10px}
.hs-dau h3{font-size:1.0625rem;font-weight:600;line-height:1.2;color:#fff}
.hs-phu{font-size:.75rem;color:var(--kg-chu-3);margin-top:3px}
.hs-nut{margin-left:auto;flex:none;display:flex;gap:6px}
.hs-nut .kg-nut--nho{padding:0 9px;gap:6px}
.hs-o{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,.9fr);gap:8px;margin-top:12px}
.hs-o .kk-o{border-radius:12px;padding:9px 10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.08)}
.hs-o .kk-o .k{font-size:.6875rem;letter-spacing:.04em}
.hs-o .kk-o .v{font-size:1rem;font-family:var(--mono);font-variant-numeric:tabular-nums;padding-top:3px;white-space:nowrap}
.hs-bd{margin-top:12px}
.hs-bd svg{display:block;width:100%;height:auto}
.hs-bd .duong{fill:none;stroke:#fff;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.hs-bd .dai{fill:rgba(255,255,255,.16)}
.hs-bd .cham{fill:#fff;stroke:#16284F;stroke-width:2}
.hs-bd .truc{font-family:var(--mono);font-size:11px;fill:rgba(255,255,255,.72)}
.hs-bd .luoi{stroke:rgba(255,255,255,.14);stroke-width:1}
.hs-bd .nhan{font-size:11px;font-weight:600;fill:#fff}
.hs-bd .soi{fill:transparent}
.hs-bd .soi:hover{fill:rgba(255,255,255,.10)}
.hs-chu{margin-top:6px;font-size:.6875rem;color:var(--kg-chu-3)}
/* view shortcuts and the link to this view: a small bar over the open part of the map, in the material of the zoom buttons */
.san-tren{position:absolute;z-index:10;left:406px;top:20px;display:flex;gap:8px;pointer-events:none}
.san-tren > *{pointer-events:auto}
.vung{display:inline-flex;align-items:center;gap:4px;height:38px;padding:0 5px;border:0;border-radius:var(--r-full);color:#fff;font:inherit;
  background:rgba(18,31,64,.72);-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.08),0 8px 20px -8px rgba(4,10,28,.7)}
.vung .fchip:not([aria-pressed="true"]){background:transparent;border-color:transparent}
.vung .fchip:not([aria-pressed="true"]):hover{background:rgba(255,255,255,.14)}
.vung-nut{gap:7px;padding:0 14px 0 12px;font-size:.8125rem;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .15s var(--ease)}
.vung-nut:hover{background:rgba(42,72,128,.9)}
.vung-nut:active{transform:scale(.97)}
.vung-nut svg{flex:none}
/* wide screen: the link button is a round icon so the bar stays clear of the northern stations; it opens to say "Link copied" */
@media (min-width:1101px){
  .vung-nut:not(.da){width:38px;padding:0;justify-content:center}
  .vung-nut:not(.da) span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
/* controls strip */
.tam-dk{display:flex;align-items:center;gap:6px 16px;padding:9px 16px;border-radius:18px;flex-wrap:wrap;justify-content:center}
.dk-nam{display:flex;align-items:center;gap:10px}
.dk-nam .kg-nhan{margin:0}
.dk-nam output{font-family:var(--mono);font-size:.8125rem;font-weight:600;min-width:78px;text-align:center}
.keo{position:relative;width:150px;height:26px}
.keo .ray{position:absolute;left:0;right:0;top:11px;height:4px;border-radius:2px;background:rgba(255,255,255,.2)}
.keo .day{position:absolute;top:11px;height:4px;border-radius:2px;background:#fff}
.keo input{position:absolute;left:0;top:0;width:100%;height:26px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.keo input::-webkit-slider-runnable-track{background:none;height:26px}
.keo input::-moz-range-track{background:none;height:26px}
.keo input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:18px;height:18px;margin-top:4px;border-radius:50%;background:#fff;border:0;cursor:grab;
  box-shadow:0 1px 3px rgba(4,10,28,.5),0 0 0 4px rgba(255,255,255,.16)}
.keo input::-moz-range-thumb{pointer-events:auto;width:18px;height:18px;border-radius:50%;background:#fff;border:0;cursor:grab;box-shadow:0 1px 3px rgba(4,10,28,.5),0 0 0 4px rgba(255,255,255,.16)}
.keo input:focus-visible{outline:none}
.keo input:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px #16284F,0 0 0 5px #fff}
.cong{display:inline-flex;align-items:center;gap:8px;font-size:.8125rem;color:var(--kg-chu-2);cursor:pointer;background:none;border:0;padding:4px 2px}
.cong i{position:relative;width:32px;height:18px;border-radius:9px;background:rgba(255,255,255,.2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);transition:background .15s var(--ease);flex:none}
.cong i::after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s var(--ease)}
.cong[aria-pressed="true"]{color:#fff}
.cong[aria-pressed="true"] i{background:var(--red)}
.cong[aria-pressed="true"] i::after{transform:translateX(14px)}
@media (max-width:1100px){
  .leaflet-control-attribution{margin:0 0 8px 10px!important;border-radius:10px}
  /* stacked: map, view bar, the record of the selected station, then the pickers. The record sits right under
     the map so that a tap on a station, or a link to one, shows its numbers without a long scroll. */
  .san{height:auto;overflow:visible;background:none}
  .san-khung{position:static;display:flex;flex-direction:column;padding:0 var(--le);pointer-events:auto}
  .san-khung > *{min-width:0}
  .san-duoi{margin-top:16px}
  .san-phai{display:contents}
  #cg{order:1} .san-tren{order:2} #hs{order:3} .san-trai{order:4} .san-day{order:5}
  #hs:not(:empty),#cg:not(:empty){margin-top:12px}
  /* the legend is the caption of the map: a strip right under it, name on the left, scale on the right */
  .tam-cg{display:grid;grid-template-columns:minmax(0,1fr) minmax(104px,38%);column-gap:16px;align-items:center;padding:10px 14px;border-radius:16px}
  .tam-cg .cg-ten{grid-column:1;grid-row:1 / span 2;font-size:.8125rem}
  .tam-cg .cg-ten small{font-size:.6875rem;line-height:1.35;margin-top:1px}
  .tam-cg .cg-thang{grid-column:2;grid-row:1;margin-top:0;align-self:end}
  .tam-cg .cg-so{grid-column:2;grid-row:2;margin-top:4px;align-self:start}
  .tam-cg .cg-chu{display:none}
  .hs-nut [data-chep-link]{display:none}   /* the bar just above already offers the link */
  .san #map{position:relative;height:440px!important;overflow:hidden;background:#0E1A33}
  .san-trai,.san-day,.san-tren{position:static;width:auto;margin-top:12px;pointer-events:auto}
  .san-tren{justify-content:space-between;flex-wrap:wrap}
  .tam-xh{max-height:420px}
  .san-day{justify-content:stretch}
  .tam-dk{width:100%}
}
@media (max-width:520px){ .nhom{grid-template-columns:minmax(0,1fr)} .nhom dt{line-height:1.2;margin-top:4px} .keo{width:150px} }
/* tablet: the station record is full width, so its numbers go left and its chart right, at the size it was drawn for */
@media (min-width:700px) and (max-width:1100px){
  .tam-hs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;align-items:start}
  .tam-hs .hs-dau,.tam-hs .hs-phu,.tam-hs .hs-o{grid-column:1}
  .tam-hs .hs-bd{grid-column:2;grid-row:1 / span 3;margin-top:0}
  .tam-hs .hs-chu{grid-column:2}
}

/* ==========================================================================
   Plates · VCMS .dh-the, .chart-h, .dh-stat, chart vocabulary
   ========================================================================== */
.the{background:var(--surface);color:var(--ink);border-radius:var(--r-card-lg);padding:var(--s-xl);min-width:0;
  box-shadow:0 0 0 1px rgba(255,255,255,.5),0 1px 2px rgba(4,10,28,.2),0 26px 60px -28px rgba(4,10,28,.75)}
.the + .the,.luoi-2 + .the,.the + .luoi-2,.luoi-2 + .luoi-2{margin-top:var(--s-lg)}
.luoi-2 > .the + .the{margin-top:0}
@media (max-width:980px){ .luoi-2 > .the + .the{margin-top:0} }
@media (min-width:981px){ .luoi-2 > .the > .the-dan{min-height:6.3em} }
@media (max-width:520px){ .the{padding:var(--s-lg)} }
.the-ma{margin:0 0 6px;font-family:var(--mono);font-size:.6875rem;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-faint)}
.chart-h{display:flex;align-items:baseline;gap:var(--s-sm);margin-bottom:var(--s-md);flex-wrap:wrap}
.chart-h h3{margin:0;font-size:1rem;font-weight:600;color:var(--ink);letter-spacing:-.005em}
.chart-h .sub{font-size:.75rem;color:var(--ink-faint)}
.chart-h .toggle{margin-left:auto;appearance:none;border:0;background:none;color:var(--navy-link);font-size:.8125rem;font-weight:500;cursor:pointer;padding:4px 6px;border-radius:var(--r-md)}
.chart-h .toggle:hover{background:var(--navy-sel)}
.the-dan{font-size:.875rem;line-height:1.55;color:var(--ink-muted);max-width:78ch;margin-bottom:var(--s-lg)}
.the-dan b{color:var(--ink);font-weight:600}
.the-nguon{margin-top:var(--s-md);font-size:.6875rem;line-height:1.5;color:var(--ink-faint)}
.the-nguon a{color:var(--navy-link)}
.the-loc{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:var(--s-md)}
.dh-chuthich{display:flex;gap:16px;flex-wrap:wrap;margin:0 0 10px;font-size:.75rem;color:var(--ink-muted)}
.dh-chuthich span{display:inline-flex;align-items:center;gap:6px}
.dh-chuthich i{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--navy)}
.dh-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s-md);margin-bottom:var(--s-lg)}
@media (max-width:760px){ .dh-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-sm)} }
.dh-stat{position:relative;min-width:0;padding:12px 14px 11px;border-radius:var(--r-lg);background:var(--row-hover);box-shadow:inset 0 0 0 1px var(--line-hair)}
.dh-stat .nhan{display:block;font-size:.75rem;line-height:1.3;color:var(--ink-muted)}
.dh-stat b{display:block;margin-top:6px;font-size:1.625rem;font-weight:600;line-height:1.05;letter-spacing:-.015em;color:var(--ink)}
.dh-stat b small{font-size:.875rem;font-weight:500;color:var(--ink-muted);margin-left:3px;letter-spacing:0}
.dh-stat i{display:block;margin-top:6px;font-style:normal;font-size:.6875rem;line-height:1.4;color:var(--ink-muted)}
.dh-stat--do b{color:var(--red)}
/* two renderings of every chart: desktop width and phone width (text stays at real pixel size) */
.bd{display:block}
.bd svg{display:block;width:100%;height:auto}
.bd--dt{display:none}
@media (max-width:760px){ .bd--may{display:none} .bd--dt{display:block} }
.bd .luoi{stroke:var(--line-hair);stroke-width:1}
.bd .day{stroke:var(--line-soft);stroke-width:1}
.bd .truc{font-family:var(--mono);font-size:11px;fill:var(--ink-faint)}
.bd .truc-ten{font-size:11px;fill:var(--ink-muted)}
.bd .nhan{font-size:11px;font-weight:600;fill:var(--ink);paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round}
.bd .nhan--nhe{font-weight:500;fill:var(--ink-muted)}
.bd .tieu{font-size:12px;font-weight:600;fill:var(--ink)}
.bd .duong{fill:none;stroke:var(--dh5);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.bd .duong--nhe{stroke:var(--dh2);stroke-width:1.6}
.bd .dai{fill:var(--dh5);fill-opacity:.10}
.bd .cham{fill:var(--dh5);stroke:var(--surface);stroke-width:2}
.bd .cham-do{fill:var(--red);stroke:var(--surface);stroke-width:2}
.bd .soi{fill:transparent;outline:none}
.bd .soi:hover,.bd .soi:focus-visible{fill:rgba(30,54,107,.06)}
.bd .cot-cao{fill:var(--dh5)}
.bd .cot-thap{fill:var(--dh1)}
.bd .rau{stroke:var(--ink-muted);stroke-width:1}
.bd .mua-thap{fill:var(--dh1);fill-opacity:.22}
.bd .sao{font-size:12px;font-weight:700;fill:var(--ink)}
.bd-luoi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s-lg)}
@media (max-width:760px){ .bd-luoi{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-md)} }
.bd-trong{padding:28px 0;text-align:center;font-size:.875rem;color:var(--ink-faint)}
/* PCA charts */
.bd .mt{stroke:var(--dh3);stroke-width:1.6;stroke-linecap:round;fill:none;transition:opacity .15s var(--ease),stroke .15s var(--ease)}
.bd .mt-dau{fill:var(--dh3);transition:opacity .15s var(--ease),fill .15s var(--ease)}
.bd .mt-nhan{font-size:11px;font-weight:600;fill:var(--ink);paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round;transition:opacity .15s var(--ease)}
[data-nhom]:not([data-nhom="all"]) .mt-g{opacity:.16}
[data-nhom="phys"] .mt-g.g-phys,[data-nhom="org"] .mt-g.g-org,[data-nhom="nut"] .mt-g.g-nut,[data-nhom="ion"] .mt-g.g-ion,[data-nhom="mic"] .mt-g.g-mic{opacity:1}
[data-nhom="phys"] .g-phys .mt,[data-nhom="org"] .g-org .mt,[data-nhom="nut"] .g-nut .mt,[data-nhom="ion"] .g-ion .mt,[data-nhom="mic"] .g-mic .mt{stroke:var(--red);stroke-width:2}
[data-nhom="phys"] .g-phys .mt-dau,[data-nhom="org"] .g-org .mt-dau,[data-nhom="nut"] .g-nut .mt-dau,[data-nhom="ion"] .g-ion .mt-dau,[data-nhom="mic"] .g-mic .mt-dau{fill:var(--red)}
.bd .diem{stroke:var(--surface);stroke-width:1.2;transition:opacity .15s var(--ease)}
.bd .d-Laos{fill:var(--dh1)} .bd .d-Thailand{fill:var(--dh3)} .bd .d-Cambodia{fill:var(--dh4)} .bd .d-Vietnam{fill:var(--dh5)}
[data-nuoc]:not([data-nuoc="all"]) .diem{opacity:.10}
[data-nuoc="Laos"] .d-Laos,[data-nuoc="Thailand"] .d-Thailand,[data-nuoc="Cambodia"] .d-Cambodia,[data-nuoc="Vietnam"] .d-Vietnam{opacity:1}
.pca-luoi{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:var(--s-xl);align-items:start}
@media (max-width:980px){ .pca-luoi{grid-template-columns:minmax(0,1fr)} }
.mua-luoi{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--s-2xl);align-items:start}
@media (max-width:980px){ .mua-luoi{grid-template-columns:minmax(0,1fr);gap:var(--s-xl)} }
.the h4{font-size:.8125rem;font-weight:600;color:var(--ink);margin:0 0 8px}
.the h4 small{font-weight:400;color:var(--ink-faint);margin-left:6px}

/* ---- matrices: relative level and trend, indicator by country ---- */
.mt-bang{width:100%;border-collapse:separate;border-spacing:3px;table-layout:fixed;font-size:.8125rem}
.mt-bang th{font-weight:600;color:var(--ink-muted);font-size:.6875rem;letter-spacing:.06em;text-transform:uppercase;padding:0 2px 6px;text-align:center}
.mt-bang th.nh{width:24px;padding:0}
.mt-bang th.ct{width:27%;text-align:left}
.mt-bang tbody th{text-transform:none;letter-spacing:0;font-size:.8125rem;font-weight:500;color:var(--ink);text-align:left;padding:0 6px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mt-bang tbody th small{display:block;font-size:.6875rem;font-weight:400;color:var(--ink-faint);overflow:hidden;text-overflow:ellipsis}
.mt-bang td{height:34px;border-radius:6px;text-align:center;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:.75rem;font-weight:600;padding:0 2px;cursor:default;
  transition:transform .12s var(--ease),box-shadow .12s var(--ease)}
.mt-bang td:hover,.mt-bang td:focus-visible{transform:scale(1.06);box-shadow:0 0 0 2px var(--ink);position:relative;z-index:2;outline:none}
.mt-bang td.nh{background:none;padding:0;width:24px;box-shadow:none;transform:none}
.mt-bang td.nh span{display:block;writing-mode:vertical-rl;transform:rotate(180deg);font-family:var(--sans);font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-faint);white-space:nowrap;margin:0 auto}
.mt-bang tr.cach td,.mt-bang tr.cach th{padding-top:8px}
.mt-bang td .mui{font-family:var(--sans);font-size:.6875rem;margin-right:3px}
.mt-bang td small{display:block;font-size:.6875rem;font-weight:500;opacity:.9;line-height:.9}
.mt-bang td.t-ns{background:var(--trung);color:var(--ink-faint);font-weight:500}
/* every row the same height, whether or not the indicator has a second line */
.mt-bang tbody th{height:40px}
/* The matrices size to their plate. A narrow plate (two side by side on a small laptop, or a phone) drops what the
   cell already says twice: the arrow repeats the sign and the colour. A phone also drops the group rail and the long
   names, which stay in the tooltip of every cell. */
.the--mt{container-type:inline-size}
@container (max-width:480px){
  .mt-bang thead th{letter-spacing:.02em}
  .mt-bang td .mui{display:none}
}
@container (max-width:400px){
  .mt-bang{border-spacing:2px}
  .mt-bang .nh{display:none}
  .mt-bang th.ct{width:56px}
  .mt-bang thead th{font-size:.65625rem;letter-spacing:-.01em;padding:0 0 5px}
  .mt-bang tbody th{font-size:.75rem;padding:0 2px 0 0}
  .mt-bang tbody th small{display:none}
  .mt-bang td{font-size:.6875rem;padding:0 1px;letter-spacing:-.01em}
  .mt-bang td small{font-size:.65625rem}
}
.thang-cg{display:flex;align-items:center;gap:10px;margin-top:var(--s-md);font-size:.6875rem;color:var(--ink-muted);flex-wrap:wrap}
.thang-cg .dai-mau{display:flex;height:10px;border-radius:3px;overflow:hidden}
.thang-cg .dai-mau i{width:22px;display:block}
.thang-cg .o{display:inline-flex;align-items:center;gap:5px}
.thang-cg .o i{width:12px;height:12px;border-radius:3px;display:inline-block}
/* month strip */
.thang-luoi{display:grid;grid-template-columns:auto repeat(12,minmax(0,1fr));gap:3px;font-size:.6875rem;align-items:center;margin-top:var(--s-md)}
.thang-luoi .tn{color:var(--ink-muted);padding-right:8px;white-space:nowrap}
.thang-luoi .th{text-align:center;font-family:var(--mono);color:var(--ink-muted);font-size:.6875rem}
.thang-luoi .o{height:22px;border-radius:4px}
.thang-luoi .cum{height:8px;border-radius:4px}
/* tables */
.bang-wrap{overflow-x:auto;margin-top:4px;
  background:linear-gradient(90deg,var(--surface) 35%,rgba(255,255,255,0)) left center/26px 100% no-repeat local,
             linear-gradient(270deg,var(--surface) 35%,rgba(255,255,255,0)) right center/26px 100% no-repeat local,
             linear-gradient(90deg,rgba(28,36,51,.16),rgba(28,36,51,0)) left center/12px 100% no-repeat scroll,
             linear-gradient(270deg,rgba(28,36,51,.16),rgba(28,36,51,0)) right center/12px 100% no-repeat scroll}
.bang-wrap--cao{max-height:320px;overflow:auto;box-shadow:inset 0 0 0 1px var(--line-hair);border-radius:var(--r-lg);padding:0 8px}
.bd .mt-dan{stroke:var(--line-control);stroke-width:1}
table.mini{border-collapse:collapse;width:100%;font-size:.8125rem;color:var(--ink)}
table.mini th,table.mini td{text-align:left;padding:5px 6px;border-bottom:1px solid var(--line-hair);white-space:nowrap}
table.mini th{font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint)}
table.mini td.so,table.mini th.so{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums}
table.mini tr:last-child td{border-bottom:0}
table.mini .thanh-pc{display:inline-block;width:40px;height:8px;border-radius:2px;background:var(--chrome);position:relative;vertical-align:middle;margin-left:6px}
table.mini .thanh-pc i{position:absolute;top:0;bottom:0;border-radius:2px}
/* a table in a narrow column gives up its cell padding first, then the small bars beside the loadings */
.bang-wrap{container-type:inline-size}
@container (max-width:522px){ table.mini th,table.mini td{padding:5px 4px} }
@container (max-width:485px){ table.mini .thanh-pc{display:none} table.mini thead th{white-space:normal;vertical-align:bottom;line-height:1.25} }

/* ==========================================================================
   Methods (paper), citation (the closing navy band), foot of the site
   ========================================================================== */
.pp{padding-top:18px;border-top:1px solid rgba(255,255,255,.26)}
.pp h3{font-size:1.0625rem;font-weight:600;color:#fff;margin-bottom:12px}
.pp dl{margin:0;display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 18px;font-size:.9375rem;line-height:1.55}
.pp dt{color:var(--kg-chu-3);font-size:.75rem;letter-spacing:.04em;text-transform:uppercase;font-weight:600;padding-top:3px}
.pp dd{margin:0;color:var(--kg-chu-2)}
.pp dd a{color:#fff}
.khoi--giay .pp{border-top-color:var(--line-control)}
.khoi--giay .pp h3{color:var(--navy)}
.khoi--giay .pp dd a{color:var(--navy-link)}
@media (max-width:620px){ .pp dl{grid-template-columns:minmax(0,1fr);gap:2px 0} .pp dd{margin-bottom:10px} }
.trich{padding-top:22px;border-top:1px solid rgba(255,255,255,.26)}
.trich-luoi{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:var(--s-3xl);align-items:start}
@media (max-width:900px){ .trich-luoi{grid-template-columns:minmax(0,1fr);gap:var(--s-xl)} }
.trich h3{margin-top:8px;font-family:var(--serif);font-size:clamp(1.25rem,2vw,1.5rem);font-weight:500;line-height:1.3;color:#fff;text-wrap:balance}
.trich .tg{margin-top:14px;font-size:.9375rem;line-height:1.6;color:var(--kg-chu-2)}
.trich .tg b{color:#fff;font-weight:600}
.trich .tc{margin-top:6px;font-size:.8125rem;color:var(--kg-chu-3)}
.trich blockquote{margin:18px 0 0;padding:14px 16px;border-radius:10px;background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);font-family:var(--serif);font-size:.875rem;line-height:1.6;color:var(--kg-chu-2)}
.trich .dh-nut{margin-top:16px}
.trich aside p{font-size:.875rem;line-height:1.55;color:var(--kg-chu-2)}
.trich aside p + p{margin-top:10px}
.trich aside .kg-nhan{margin-top:18px}
.trich aside .kg-nhan:first-child{margin-top:0}
/* foot: the darkest navy, so the page ends on a solid edge */
.chan{background:var(--chrome-deep);color:rgba(255,255,255,.68);font-size:.8125rem;line-height:1.6;padding:var(--s-2xl) 0 var(--s-2xl)}
.chan-luoi{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px var(--s-2xl);align-items:center}
.chan-ten{display:flex;align-items:center;gap:12px;min-width:0}
.chan-ten svg{flex:none}
.chan-ten b{display:block;font-size:.9375rem;font-weight:600;color:#fff}
.chan-ten span{display:block;font-size:.75rem;color:rgba(255,255,255,.62)}
.chan-muc{display:flex;flex-wrap:wrap;gap:4px 22px;justify-content:flex-end}
.chan-muc a{display:inline-flex;align-items:center;gap:5px;color:rgba(255,255,255,.82);text-decoration:none;padding:4px 0}
.chan-muc a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.chan-nguon{grid-column:1 / -1;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);font-size:.75rem;color:rgba(255,255,255,.62);max-width:none}
.chan-moc{grid-column:1 / -1;font-size:.75rem;color:rgba(255,255,255,.56)}
.chan-moc a{color:rgba(255,255,255,.82)}
@media (max-width:760px){ .chan-luoi{grid-template-columns:minmax(0,1fr)} .chan-muc{justify-content:flex-start} }

/* entrance: one rhythm, hero only */
@keyframes len{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.len{animation:len 420ms var(--ease) backwards}
.len-2{animation-delay:.07s} .len-3{animation-delay:.14s} .len-4{animation-delay:.21s} .len-5{animation-delay:.28s}
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important} html{scroll-behavior:auto} }
@supports not (backdrop-filter:blur(1px)){
  .proto{background:#0E1A33} .kg-tam{background:rgba(42,72,128,.72)} .kg-tam--toi{background:rgba(14,26,51,.92)}
}
/* Shiny chrome */
#shiny-disconnected-overlay{background:rgba(14,26,51,.7)!important;opacity:1!important}
.recalculating{opacity:.55;transition:opacity .2s linear}
.shiny-output-error{color:rgba(255,255,255,.7);font-size:.8125rem}
.the .shiny-output-error{color:var(--ink-faint)}
