/* Times New Roman của máy người đọc; nếu máy không có thì dùng Tinos (cùng số đo, đóng gói kèm) */
@font-face{font-family:"TNR";font-style:normal;font-weight:400;font-display:swap;src:local("Times New Roman"),local("TimesNewRomanPSMT"),url(../fonts/tinos-vietnamese-400-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"TNR";font-style:normal;font-weight:400;font-display:swap;src:local("Times New Roman"),local("TimesNewRomanPSMT"),url(../fonts/tinos-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"TNR";font-style:italic;font-weight:400;font-display:swap;src:local("Times New Roman Italic"),local("TimesNewRomanPS-ItalicMT"),url(../fonts/tinos-vietnamese-400-italic.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"TNR";font-style:italic;font-weight:400;font-display:swap;src:local("Times New Roman Italic"),local("TimesNewRomanPS-ItalicMT"),url(../fonts/tinos-latin-400-italic.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"TNR";font-style:normal;font-weight:600;font-display:swap;src:local("Times New Roman Bold"),local("TimesNewRomanPS-BoldMT"),url(../fonts/tinos-vietnamese-700-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"TNR";font-style:normal;font-weight:600;font-display:swap;src:local("Times New Roman Bold"),local("TimesNewRomanPS-BoldMT"),url(../fonts/tinos-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"TNR";font-style:normal;font-weight:700;font-display:swap;src:local("Times New Roman Bold"),local("TimesNewRomanPS-BoldMT"),url(../fonts/tinos-vietnamese-700-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"TNR";font-style:normal;font-weight:700;font-display:swap;src:local("Times New Roman Bold"),local("TimesNewRomanPS-BoldMT"),url(../fonts/tinos-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"TNR";font-style:normal;font-weight:800;font-display:swap;src:local("Times New Roman Bold"),local("TimesNewRomanPS-BoldMT"),url(../fonts/tinos-vietnamese-700-normal.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"TNR";font-style:normal;font-weight:800;font-display:swap;src:local("Times New Roman Bold"),local("TimesNewRomanPS-BoldMT"),url(../fonts/tinos-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}


.ema{--bg:#f7fbe5;--ink:#000;--mute:#262626;--rule:#c8dba3;--tint:#e3efc4;--river:#cfe2ee;--red:#e6261f;--amber:#ffb400;--blue:#0a5cff;--teal:#00a0b0;--violet:#7b4fd6;--olive:#6aa121;--wine:#a4123f;
  background:var(--bg);color:var(--ink);font:20px/1.65 "TNR","Times New Roman",Times,serif;overflow-x:clip;-webkit-text-size-adjust:100%}
.ema{padding-bottom:clamp(28px,4vw,44px)}
.ema *{box-sizing:border-box;min-width:0}
.ema p{margin:0 0 1.15em}

/* Thumb */
.ema .thumb{display:block;width:100%;height:auto}

/* Tít và sapo */
.ema .head{max-width:760px;margin:0 auto;padding:clamp(28px,4vw,48px) max(5vw,16px) 8px}
.ema .head h1{font-size:clamp(30px,4vw,44px);line-height:1.2;font-weight:700;margin:0 0 20px}
.ema .head .sapo{font-weight:700;font-style:italic;margin:0}

/* Tít xen (ảnh) */
.ema .titxen{margin:clamp(28px,4vw,48px) 0}
.ema .titxen img{display:block;width:100%;height:auto}

/* Ghi công cuối bài */
.ema .credit{text-align:left;margin-top:clamp(20px,3vw,32px)}
.ema .credit p{margin:0 0 4px;font-size:17px}

/* Ảnh trong bài */
.ema .photo{max-width:1120px;margin:clamp(28px,4vw,44px) auto;padding:0 max(5vw,16px)}
@media(min-width:1200px){.ema .photo{padding:0}}
.ema .photo img{display:block;width:100%;height:auto}

/* Thân bài */
.ema .body{max-width:680px;margin:0 auto;padding:0 max(5vw,16px)}
@media(min-width:760px){.ema .body{padding:0}}

/* Khối biểu đồ */
.ema .chart{max-width:1120px;margin:clamp(36px,5vw,64px) auto;padding:0 max(5vw,16px)}
@media(min-width:1200px){.ema .chart{padding:0}}
.ema .chart h3{font-size:clamp(24px,2.6vw,32px);line-height:1.15;font-weight:800;margin:0 0 8px;text-wrap:balance}
.ema .chart .dek{color:var(--mute);margin:0 0 24px;max-width:62ch;font-size:17px}
.ema .src{font-size:13px;line-height:1.5;color:var(--mute);border-top:1px solid var(--rule);padding-top:12px;margin:22px 0 0;max-width:90ch}
.ema button{font-family:inherit}

/* Biểu đồ 1: bộ đếm hành khách */
.ema .pax{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(20px,4vw,56px);align-items:start}
.ema .bignum{font-size:clamp(52px,8vw,104px);line-height:1;font-weight:800;margin:0;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:0}
.ema .bignum small{font-size:.32em;font-weight:600;margin-left:8px;letter-spacing:0}
.ema .bigsub{font-weight:600;margin:10px 0 18px}
.ema .split{display:flex;height:26px;border-radius:13px;overflow:hidden;background:var(--tint);margin:0 0 10px}
.ema .split span{display:block;height:100%;width:0;transition:width 1.6s cubic-bezier(.2,.7,.2,1)}
.ema .keys{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:15px;margin:0 0 22px}
.ema .keys span{white-space:nowrap}
.ema .sw{display:inline-block;width:14px;height:14px;border-radius:50%;vertical-align:-1px;margin-right:6px}
.ema .people{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;max-width:420px}
.ema .people svg{width:100%;height:auto;display:block}
.ema .tiles{display:grid;gap:14px}
.ema .tile{background:var(--tint);border-radius:14px;padding:18px 20px}
.ema .tile b{display:block;font-size:clamp(28px,3vw,38px);line-height:1.1;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.ema .tile>span{display:block;color:var(--mute);font-size:15px;margin-top:4px}

/* Biểu đồ 2: tốc độ */
.ema .race{display:grid;gap:18px}
.ema .rr{display:grid;grid-template-columns:190px minmax(0,1fr);gap:16px;align-items:center}
.ema .rr .who b{display:block;font-size:17px;line-height:1.25}
.ema .rr .who span{display:block;font-size:13px;color:var(--mute);line-height:1.4}
.ema .rail{display:flex;align-items:center;height:34px;border-radius:17px;background:var(--tint)}
.ema .rail i{display:block;flex:none;height:100%;width:0;border-radius:17px;transition:width 1.8s cubic-bezier(.2,.7,.2,1)}
.ema .race.go .rail i{width:var(--w)}
.ema .race.reset .rail i{transition:none!important}
.ema .rr:nth-child(2) i{transition-delay:.5s}.ema .rr:nth-child(3) i{transition-delay:1s}.ema .rr:nth-child(4) i{transition-delay:1.5s}.ema .rr:nth-child(5) i{transition-delay:2s}
.ema .rail em{display:block;flex:none;font-style:normal;font-weight:800;font-size:16px;padding-left:12px;white-space:nowrap}
.ema .cline{display:flex;align-items:center;margin-bottom:22px}
.ema .cline .d{flex:none;width:24px;height:24px;border-radius:50%;background:var(--bg);border:6px solid currentColor}
.ema .cline .b{flex:1;height:8px;background:currentColor}
.ema .rr.hn .who b{color:var(--red)}
.ema .rr.hn .rail{outline:2px dashed var(--red);outline-offset:3px}
.ema .race-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.ema .replay{min-height:44px;padding:0 18px;border-radius:22px;border:2px solid var(--rule);background:transparent;color:var(--ink);font-weight:600;font-size:15px;cursor:pointer}
.ema .replay:focus-visible,.ema .steps button:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

/* Biểu đồ 3: bản đồ */
.ema .mapwrap{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(20px,3vw,44px);align-items:start}
.ema .fig{width:100%}
.ema .fig>svg{display:block;width:100%;height:auto;overflow:visible}
.ema .map .ln{fill:none;stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.ema .map .ug{fill:none;stroke-width:5;stroke-dasharray:2 9;stroke-linecap:round;opacity:0;transition:opacity .8s}
.ema .map .st{fill:var(--bg);stroke:var(--ink);stroke-width:3.5;opacity:0;transition:opacity .4s}
.ema .map .lb{font-size:17px;font-weight:600;fill:var(--ink);paint-order:stroke;stroke:var(--bg);stroke-width:6px;stroke-linejoin:round;opacity:0;transition:opacity .5s}
.ema .map .on{opacity:1}
.ema .map .river{fill:none;stroke:var(--river);stroke-width:30;stroke-linecap:round}
.ema .map .rlb{font-size:15px;font-style:italic;fill:var(--mute)}
.ema .map .train{stroke:var(--bg);stroke-width:3}
.ema .steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.ema .steps button{font-weight:600;font-size:15px;min-height:44px;padding:0 16px;border-radius:22px;border:2px solid var(--rule);background:transparent;color:var(--ink);cursor:pointer}
.ema .steps button[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.ema .kicker{font-weight:600;color:var(--mute);margin:0 0 4px;font-size:16px}
.ema .legend{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:8px;font-size:15px;line-height:1.45}
.ema .legend li{display:flex;gap:10px;align-items:baseline;opacity:1;transition:opacity .5s}
.ema .legend.dim li{opacity:.25}.ema .legend.dim li.on{opacity:1}
.ema .lsw{flex:none;width:28px;height:8px;border-radius:4px;transform:translateY(-2px)}
.ema .legend b{flex:none;width:74px;white-space:nowrap}
.ema .pdesc{color:var(--mute);margin:0 0 16px;font-size:16px;line-height:1.6}
.ema .dots{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px;min-height:18px}
.ema .dots i{width:18px;height:18px;border-radius:50%;border:2.5px solid var(--mute);opacity:0;transform:scale(.4);transition:.35s}
.ema .dots i.on{opacity:1;transform:none}
.ema .dots i.a{background:var(--olive);border-color:var(--olive)}.ema .dots i.b{background:var(--ink);border-color:var(--ink)}
.ema .track{display:grid;gap:10px;margin:0 0 16px}
.ema .row{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;align-items:center;font-size:14px}
.ema .bar{height:24px;background:var(--tint);border-radius:12px;overflow:hidden}
.ema .fill{height:100%;border-radius:12px;transition:width 1.4s cubic-bezier(.2,.7,.2,1);color:#fff;font-weight:600;font-size:13px;line-height:24px;text-align:right;padding-right:10px;white-space:nowrap}
.ema [hidden]{display:none!important}

@media(max-width:900px){.ema .pax,.ema .mapwrap{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
  .ema{font-size:19px}
  .ema .map .minor{display:none}.ema .map .lb{font-size:26px;stroke-width:8px}.ema .map .ln{stroke-width:12}
  .ema .rr{grid-template-columns:minmax(0,1fr);gap:6px}
  .ema .race.go .rail i{width:calc(var(--w) * .66)}
  .ema .row{grid-template-columns:92px minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.ema *{transition:none!important}}
