/* eight everyday handwriting faces with Vietnamese letters (all SIL Open Font License), for names written in ink in the old designs */
@font-face{font-family:"Ruthie";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-ruthie-vietnamese.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:"Ruthie";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-ruthie-latin.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:"Oooh Baby";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-ooohbaby-vietnamese.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:"Oooh Baby";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-ooohbaby-latin.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:"Square Peg";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-squarepeg-vietnamese.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:"Square Peg";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-squarepeg-latin.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:"My Soul";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-mysoul-vietnamese.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:"My Soul";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-mysoul-latin.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:"Fuggles";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-fuggles-vietnamese.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:"Fuggles";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-fuggles-latin.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:"Caramel";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-caramel-vietnamese.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:"Caramel";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-caramel-latin.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:"Waterfall";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-waterfall-vietnamese.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:"Waterfall";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-waterfall-latin.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:"Grechen Fuemen";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-grechenfuemen-vietnamese.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:"Grechen Fuemen";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/viet-grechenfuemen-latin.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}
/* four handwriting faces with Vietnamese letters (all SIL Open Font License), for names written in ink in the old designs */
@font-face{font-family:"Pinyon Script";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/tay-pinyon-vietnamese.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:"Pinyon Script";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/tay-pinyon-latin.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:"Italianno";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/tay-italianno-vietnamese.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:"Italianno";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/tay-italianno-latin.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:"Charm";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/tay-charm-vietnamese.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:"Charm";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/tay-charm-latin.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:"Corinthia";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/tay-corinthia-vietnamese.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:"Corinthia";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/tay-corinthia-latin.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}
/* Cousine (Apache License 2.0): typewriter letters with Vietnamese, for the search card */
@font-face{font-family:"Cousine";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/cousine-400-vietnamese.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:"Cousine";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/cousine-400-latin.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:"Cousine";font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/cousine-700-vietnamese.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:"Cousine";font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/cousine-700-latin.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}
/* Old Standard TT (SIL Open Font License): an old print face with Vietnamese letters, for headings in the "Ảnh xưa" design */
@font-face{font-family:"Old Standard TT";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/old-standard-400-vietnamese.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:"Old Standard TT";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/old-standard-400-latin.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:"Old Standard TT";font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/old-standard-700-vietnamese.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:"Old Standard TT";font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/old-standard-700-latin.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}
/* Noto Serif (SIL Open Font License), hosted here: every phone draws Vietnamese letters from one font, not letter by letter from different ones */
@font-face{font-family:"Noto Serif";font-style:normal;font-weight:400 700;font-display:swap;src:url(/static/fonts/noto-serif-vietnamese.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:"Noto Serif";font-style:normal;font-weight:400 700;font-display:swap;src:url(/static/fonts/noto-serif-latin.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}
/* nguyendinhtoc.vn — maroon, gold and paper, after the front-page design. Mobile first; wider layouts from 760px. */
:root{--do:#7a1a1e;--do-dam:#5c1014;--vang:#e2b25c;--vang-dam:#b8862f;--giay:#f8f1e4;--giay-dam:#efe3cc;--muc:#3a2a22;--vien:#d9c6a3;
 --chi1:#9b3a3f;--chi2:#b07a1e;--chi3:#4f6f47}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--giay);color:var(--muc);font:16px/1.6 "Noto Serif","Times New Roman",Times,serif}
img{max-width:100%;height:auto;display:block}
a{color:var(--do)}
h1,h2,h3,h4{font-family:"Noto Serif","Times New Roman",Times,serif;color:var(--do);line-height:1.25;margin:0 0 .5em}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}
.chu{font-size:.88rem;color:#6d5a4b}
small{font-size:.82em}

/* header */
.top{background:linear-gradient(180deg,var(--do),var(--do-dam));color:#fff;border-bottom:3px solid var(--vang)}
.bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;padding-top:10px;padding-bottom:6px}
.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}
.brand b{display:block;letter-spacing:.04em;font-size:1.05rem}.brand small{display:block;color:#f1dcb4}
.seal{display:grid;place-items:center;width:40px;height:40px;border:2px solid var(--vang);border-radius:6px;color:var(--vang);font-size:1.4rem}
.top nav{display:flex;gap:2px 14px;overflow-x:auto;width:100%;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.top nav a{color:#fff;text-decoration:none;white-space:nowrap;padding:6px 2px;border-bottom:2px solid transparent;font-size:.95rem}
.top nav a.on,.top nav a:hover{color:var(--vang);border-color:var(--vang)}

/* hero and banners */
.hero{background:linear-gradient(120deg,var(--do-dam),var(--do) 60%,#8f2a2a);color:#fff}
.hero .wrap{display:grid;gap:18px;padding-top:28px;padding-bottom:28px}
.hero h1{color:#fff;font-size:clamp(1.8rem,7vw,3rem);letter-spacing:.04em;margin:0}
.hero .noi{margin:.2em 0 0;color:#f1dcb4;font-size:1.1rem}
.hero .cau{font-style:italic;font-size:1.15rem;margin:1em 0;color:#fbeed3}
.hero img{width:100%;border-radius:8px;border:2px solid var(--vang);object-fit:cover}
.banner{background:linear-gradient(120deg,var(--giay-dam),var(--giay));border-bottom:1px solid var(--vien)}
.banner .wrap{padding-top:22px;padding-bottom:18px}
.banner h1{font-size:clamp(1.5rem,5.5vw,2.2rem);margin:0}.banner p{margin:.3em 0 0}

/* buttons */
.nut{display:inline-block;padding:9px 16px;border-radius:6px;text-decoration:none;font-weight:bold;font-size:.95rem;margin:4px 6px 4px 0;min-height:40px}
.nut.vang{background:var(--vang);color:var(--do-dam)}
.nut.vien{border:1px solid var(--do);color:var(--do);background:#fff8}
.nut.vien.sang{border-color:#fff;color:#fff;background:none}

/* home */
main section.wrap{padding-top:26px;padding-bottom:8px}
.ve h2{text-align:center;font-size:1.6rem}
.hai{display:grid;gap:16px}.hai img{border:4px solid #fff;box-shadow:0 1px 6px #0003;border-radius:6px;width:100%}
.muc{font-size:1.3rem;border-bottom:2px solid var(--vien);padding-bottom:.25em}.muc.giua{text-align:center;border:0}
.bachi{display:grid;gap:14px}
.o{background:#fffaf0;border:1px solid var(--vien);border-top:4px solid var(--chi1);border-radius:8px;padding:14px;text-align:center}
.o i{display:block;font-style:normal;font-weight:bold;color:var(--chi1)}.o b{display:block;font-size:1.1rem}.o span{display:block;margin-bottom:8px}
.o.chi2{border-top-color:var(--chi2)}.o.chi2 i{color:var(--chi2)}.o.chi3{border-top-color:var(--chi3)}.o.chi3 i{color:var(--chi3)}
.hai-cot{display:grid;gap:22px}
.moc{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--do)}
.moc li{position:relative;padding:4px 0 10px 14px}.moc li:before{content:"";position:absolute;left:-21px;top:11px;width:10px;height:10px;border-radius:50%;background:var(--do)}
.moc b{display:block;color:var(--do)}
.hd{display:block;text-decoration:none;color:var(--muc);background:#fffaf0;border:1px solid var(--vien);border-radius:8px;overflow:hidden}
.hd img{width:100%}.hd span{display:block;padding:10px 12px}

/* text pages */
.van{padding-top:22px;padding-bottom:30px;max-width:820px}.van h2{font-size:1.3rem;margin-top:1.4em}.van .rong{width:100%;border-radius:8px}

/* genealogy */
.gp{display:grid;gap:16px;padding-top:18px}
.loc{background:#fffaf0;border:1px solid var(--vien);border-radius:8px;padding:12px}
.loc h3{font-size:1rem;margin:.2em 0 .5em;border-bottom:1px solid var(--vien);padding-bottom:.3em}
.loc label{display:block;font-size:.9rem;margin-bottom:8px}
.loc select,.loc input[type=search]{display:block;width:100%;margin-top:3px;padding:9px;border:1px solid var(--vien);border-radius:6px;background:#fff;font:inherit;font-size:16px}
.loc>a{display:block;padding:8px 10px;border-radius:6px;text-decoration:none;color:var(--muc)}.loc>a:hover{background:var(--giay-dam)}
.chinh{min-width:0}
.tabs{display:flex;border:1px solid var(--vien);border-radius:8px;overflow:hidden;margin-bottom:12px;background:#fffaf0}
.tabs a{flex:1;text-align:center;padding:10px 6px;text-decoration:none;color:var(--muc);font-size:.9rem;border-right:1px solid var(--vien)}
.tabs a:last-child{border:0}.tabs a.on{background:var(--do);color:#fff;font-weight:bold}
.cay{background:linear-gradient(180deg,#fbf3e2,#f4e7cd);border:1px solid var(--vien);border-radius:8px;padding:14px 10px;overflow-x:auto}
.goc{display:flex;flex-direction:column;align-items:center}
.nhan{background:var(--do);color:#fff;font-size:.78rem;font-weight:bold;letter-spacing:.05em;padding:3px 12px;border-radius:12px;margin-bottom:4px;display:inline-block}
.nhan.dai{margin-bottom:12px}.nhan.chi2{background:var(--chi2)}.nhan.chi3{background:var(--chi3)}.nhan.chi1{background:var(--chi1)}
.mui{width:2px;height:18px;background:var(--do);margin:4px 0}
.card{display:inline-flex;flex-direction:column;background:#fffaf0;border:1px solid var(--vien);border-left:4px solid #8a7a66;border-radius:6px;padding:5px 10px;min-width:150px;max-width:100%;vertical-align:middle}
.card.nam{border-left-color:var(--do)}.card.nu{border-left-color:var(--vang-dam)}
.card.chi2.nam{border-left-color:var(--chi2)}.card.chi3.nam{border-left-color:var(--chi3)}
.card.big{align-items:center;text-align:center;border:2px solid var(--vang-dam);padding:8px 18px}
.card .pl{font-weight:bold;text-decoration:none;color:var(--do-dam);padding:3px 0}.card .hieu,.card .nam{font-size:.8rem;color:#6d5a4b}
.bacot{display:grid;gap:14px}.cot{min-width:0}.tieude-chi{font-weight:bold;color:var(--do);margin-bottom:8px;font-size:1.1rem}
ul.tree,ul.tree ul,.con ul{list-style:none;margin:0;padding:0}
ul.tree ul,.con ul{margin-left:12px;padding-left:12px;border-left:2px solid var(--vien)}
ul.tree li{margin:6px 0;position:relative}
ul.tree ul>li:before,.con ul>li:before{content:"";position:absolute;left:-12px;top:20px;width:10px;border-top:2px solid var(--vien)}
details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
details>summary::-webkit-details-marker{display:none}
.dem{font-size:.78rem;background:var(--giay-dam);border:1px solid var(--vien);border-radius:12px;padding:4px 10px;white-space:nowrap}
.dem:after{content:" ▸"}details[open]>summary .dem:after{content:" ▾"}
.cho{font-size:.85rem;color:#6d5a4b;padding-left:12px}
.khac{margin-top:16px;border-top:1px dashed var(--vien);padding-top:10px}.khac>summary{font-weight:bold;color:var(--do)}
.cuon{overflow-x:auto;border:1px solid var(--vien);border-radius:8px;background:#fffaf0}
.bang{border-collapse:collapse;width:100%;font-size:.9rem;min-width:640px}
.bang th{background:var(--do);color:#fff;text-align:left;padding:8px;white-space:nowrap}
.bang td{padding:7px 8px;border-top:1px solid var(--vien);vertical-align:top}.bang tr:nth-child(even) td{background:#f8efdc}
.bang.so td:not(:first-child),.bang.so th:not(:first-child){text-align:center}
.pl{color:var(--do-dam)}
#chi-tiet{margin-bottom:30px;scroll-margin-top:10px}
.nguoi{display:grid;gap:14px;background:#fffaf0;border:1px solid var(--vien);border-radius:8px;padding:14px}
.anh{width:84px;height:104px;border-radius:6px;border:2px solid var(--vang-dam);background:var(--giay-dam);display:grid;place-items:center;font-size:2.2rem;color:var(--do)}
.nguoi h3{font-size:1.35rem}.nguoi h3 small{font-weight:normal;color:#6d5a4b}
.nguoi table{border-collapse:collapse;font-size:.93rem}.nguoi th{text-align:left;font-weight:normal;color:#6d5a4b;padding:2px 12px 2px 0;vertical-align:top;white-space:nowrap}
.nguoi td{padding:2px 0}.phu h4{margin:.8em 0 .2em;font-size:1rem}.phu ul,.phu ol{margin:0;padding-left:20px}.phu li{margin:3px 0}
.nghi{color:#8a5a00;font-size:.88rem;background:#fff3d6;border-left:3px solid var(--vang-dam);padding:4px 8px}

/* footer */
.foot{background:linear-gradient(180deg,var(--do),var(--do-dam));color:#fff;margin-top:26px;border-top:3px solid var(--vang)}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:16px;padding-bottom:12px}
.quick a{color:#fff;text-decoration:none;text-align:center;padding:6px}.quick b{display:block;color:var(--vang)}.quick small{color:#f1dcb4}
.legal{display:flex;flex-direction:column;gap:4px;font-size:.82rem;padding-top:10px;padding-bottom:14px;border-top:1px solid #ffffff33;color:#f1dcb4}

/* tablets and desktops */
@media (min-width:760px){
 .bar{flex-wrap:nowrap}.top nav{width:auto;margin-left:auto;overflow:visible}
 .hero .wrap{grid-template-columns:1fr 1.1fr;align-items:center;padding-top:40px;padding-bottom:40px}
 .hai{grid-template-columns:260px 1fr;align-items:start}
 .bachi{grid-template-columns:repeat(3,1fr)}.hai-cot{grid-template-columns:1fr 1fr}
 .gp{grid-template-columns:230px 1fr;align-items:start}
 .bacot{grid-template-columns:repeat(3,1fr)}
 .nguoi{grid-template-columns:84px 1fr 1.1fr}
 .quick{grid-template-columns:repeat(4,1fr)}.legal{flex-direction:row;justify-content:space-between;flex-wrap:wrap}
 .tabs a{font-size:1rem}
}

/* design switch in the header */
.kieu{display:flex;gap:6px;margin-left:auto}
.kieu a{display:flex;align-items:center;gap:6px;color:#fff;text-decoration:none;font-size:.8rem;padding:5px 9px;border:1px solid #ffffff55;border-radius:16px;white-space:nowrap;min-height:32px}
.kieu a.on{background:#ffffff26;border-color:var(--vang)}
.kieu i{width:14px;height:14px;border-radius:50%;border:1px solid #fff;background:#7a1a1e}
.kieu .k-co i{background:linear-gradient(135deg,#6b4a2b,#d8b77a)}
@media (max-width:759px){.bar{position:relative}.kieu{position:absolute;right:16px;top:12px}.kieu a{font-size:0;gap:0;padding:6px}.brand{padding-right:84px}}
@media (min-width:760px){.top nav{margin-left:auto}.kieu{margin-left:8px}}

/* second design: "Ảnh xưa", after old photographs: brown and yellow, pictures in black and white */
html[data-theme=co]{--do:#5b4127;--do-dam:#3d2a17;--vang:#d8b77a;--vang-dam:#9a7438;--giay:#f3e7c9;--giay-dam:#e6d5ac;--muc:#33261a;--vien:#c9b282;
 --chi1:#6b4a2b;--chi2:#8a6a2f;--chi3:#5d5a3c}
html[data-theme=co] body{background:#f3e7c9 radial-gradient(ellipse at center,#f7edd3 0,#f3e7c9 55%,#e4d1a6 100%) fixed}
html[data-theme=co]:not([data-anh=mau]) img{filter:grayscale(1) sepia(.28) contrast(1.08) brightness(.97)}
html[data-theme=co] .hero{background:linear-gradient(120deg,#2f2012,#5b4127 60%,#7a5a36)}
html[data-theme=co] .hero img,html[data-theme=co] .hai img,html[data-theme=co] .hd img,html[data-theme=co] .van .rong{border:8px solid #fbf6e6;box-shadow:0 2px 10px #0005;border-radius:2px}
html[data-theme=co] .hd{border-radius:2px}
html[data-theme=co] .cay{background:linear-gradient(180deg,#f6ecd2,#ead9b3)}
html[data-theme=co] .o,html[data-theme=co] .card,html[data-theme=co] .loc,html[data-theme=co] .nguoi,html[data-theme=co] .cuon,html[data-theme=co] .tabs{background:#fbf4e0}
html[data-theme=co] .bang tr:nth-child(even) td{background:#f1e4c3}
html[data-theme=co] .anh{background:#d9c59a;color:#3d2a17;filter:grayscale(.2)}
html[data-theme=co] .nut.vang{color:#2f2012}


/* old-film layer (static/phim.js draws it on the GPU) and the slow, silent-film movement of the "Ảnh xưa" design */
canvas.phim{position:fixed;inset:0;width:100vw;height:100vh;z-index:60;pointer-events:none}
.kieu button{font:inherit;font-size:.8rem;color:#fff;background:none;border:1px solid #ffffff55;border-radius:16px;padding:5px 9px;cursor:pointer;min-height:32px;white-space:nowrap}
.kieu button[aria-pressed=true]{background:#ffffff26;border-color:var(--vang)}
html[data-theme=co] .hero .wrap>img,html[data-theme=co] .hero img{transform-origin:55% 45%}
html[data-theme=co] .hero .cau{font-style:normal;background:#111;color:#f1e6c8;border:3px double #cbb98a;padding:14px 18px;text-align:center;letter-spacing:.06em;max-width:26em;box-shadow:0 0 0 4px #111}
@media (prefers-reduced-motion:no-preference){
 html.phim-chay .hero img{animation:ndt-cham 26s ease-in-out infinite alternate}
 html.phim-chay main{animation:ndt-rung .5s steps(1) infinite}
 html[data-theme=co] main>section,html[data-theme=co] main>div{animation:ndt-hien 2.4s ease-out both}
 html[data-theme=co] main>*:nth-child(2){animation-delay:.5s}html[data-theme=co] main>*:nth-child(3){animation-delay:1s}html[data-theme=co] main>*:nth-child(n+4){animation-delay:1.4s}
 html[data-theme=co] .hero{animation:ndt-mong-mat 3.2s ease-out both}
}
@keyframes ndt-cham{from{transform:scale(1) translate(0,0)}to{transform:scale(1.12) translate(-1.5%,1%)}}
@keyframes ndt-rung{0%{transform:translate(0,0)}25%{transform:translate(.4px,-.3px)}50%{transform:translate(-.3px,.4px)}75%{transform:translate(.2px,.3px)}}
@keyframes ndt-hien{from{opacity:0;filter:brightness(1.6) blur(2px)}to{opacity:1;filter:none}}
@keyframes ndt-mong-mat{from{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(120% at 50% 50%)}}
html[data-theme=co] .hero .wrap{overflow:hidden}
@media (max-width:759px){.kieu button{font-size:.7rem;padding:5px 7px}.brand{padding-right:150px}}

/* inside the old design: the choice between black-and-white and coloured pictures */
.kieu{flex-wrap:wrap;justify-content:flex-end}
.kieu .a-xua,.kieu .a-mau{border-style:dashed}
html[data-anh=mau] .anh{filter:none}
@media (max-width:759px){.kieu .a-xua,.kieu .a-mau{font-size:.7rem;padding:5px 7px}.kieu{position:static;width:100%;justify-content:flex-start;order:3}.kieu a{font-size:.72rem;gap:5px;padding:5px 8px}.brand{padding-right:0}}

/* the design switch sits in its own thin row above the name and the menu, on every width */
.bar{flex-wrap:wrap;position:static}
.kieu{order:-1;width:100%;position:static;justify-content:flex-end;margin:0 0 2px;gap:5px}
.kieu a,.kieu button{font-size:.72rem;padding:3px 9px;min-height:28px;gap:5px}
.brand{padding-right:0}
@media (min-width:760px){.top nav{margin-left:auto;width:auto}}
@media (max-width:759px){.kieu{justify-content:flex-start;order:-1}.kieu a,.kieu button{font-size:.68rem;padding:3px 7px}}

/* photographs: a plain holder in the red design; in the old design a worn paper print (faded, soft, dark corners, stains, slightly askew) */
.khung-anh{display:block;position:relative}
html[data-theme=co] .khung-anh{background:linear-gradient(135deg,#f3e9cb,#e6d6ac);padding:9px 9px 11px;border-radius:2px;
 box-shadow:0 3px 12px #0007,inset 0 0 0 1px #c9b584,inset 0 0 14px #b9a06a55;transform:rotate(-.7deg)}
html[data-theme=co] .hai .khung-anh,html[data-theme=co] .hd .khung-anh{transform:rotate(.6deg)}
html[data-theme=co] .khung-anh img,html[data-theme=co] .hero .khung-anh img{border:0;box-shadow:none;border-radius:1px;width:100%;animation:none}
html[data-theme=co]:not([data-anh=mau]) .khung-anh img{filter:grayscale(1) sepia(.62) contrast(.86) brightness(1.07) blur(.35px)}
html[data-theme=co][data-anh=mau] .khung-anh img{filter:sepia(.3) saturate(.7) contrast(.9) brightness(1.05) blur(.25px)}
html[data-theme=co] .khung-anh:after{content:"";position:absolute;inset:9px 9px 11px;pointer-events:none;border-radius:1px;background:
 radial-gradient(ellipse at center,transparent 52%,rgba(45,28,10,.5) 100%),
 radial-gradient(circle at 14% 18%,rgba(110,80,30,.28) 0,rgba(110,80,30,.12) 5%,transparent 9%),
 radial-gradient(circle at 88% 76%,rgba(90,60,20,.22) 0,transparent 7%),
 radial-gradient(circle at 70% 12%,rgba(255,246,214,.35) 0,transparent 4%),
 linear-gradient(112deg,transparent 41%,rgba(255,250,228,.2) 47%,transparent 53%),
 linear-gradient(180deg,rgba(255,244,210,.16),rgba(80,55,20,.12))}
html[data-theme=co] .khung-anh:before{content:"";position:absolute;z-index:1;pointer-events:none;left:9px;right:9px;top:38%;height:1px;background:linear-gradient(90deg,transparent,rgba(255,248,225,.45) 20%,rgba(60,40,15,.25) 60%,transparent)}
html[data-theme=co] .hd{background:none;border:0;overflow:visible}html[data-theme=co] .hd>span:last-child{padding-left:2px}
@media (prefers-reduced-motion:no-preference){html.phim-chay .hero .khung-anh{animation:ndt-anh 24s ease-in-out infinite alternate}}
@keyframes ndt-anh{from{transform:rotate(-.7deg) scale(1)}to{transform:rotate(.3deg) scale(1.035)}}

/* no perfect pictures: yellowed, foxed edges, uneven corners, and each print lies a little crooked */
html[data-theme=co] .khung-anh{background:radial-gradient(ellipse at center,#f4ead0 55%,#e2c98a 88%,#c9a75c 100%);padding:10px 10px 14px;
 border-radius:2px 7px 3px 9px/6px 2px 8px 3px;transform:rotate(-1.9deg);margin:8px 6px 14px;
 box-shadow:0 4px 14px #0008,inset 0 0 0 1px #b99a55,inset 0 0 20px #a8792a99,inset 3px -4px 10px #7c561d55}
html[data-theme=co] .hai .khung-anh{transform:rotate(1.6deg)}
html[data-theme=co] .hd .khung-anh,html[data-theme=co] .van .khung-anh{transform:rotate(-1.2deg)}
html[data-theme=co] .khung-anh:after{inset:10px 10px 14px;background:
 radial-gradient(ellipse at center,transparent 46%,rgba(120,84,24,.38) 82%,rgba(70,44,10,.6) 100%),
 radial-gradient(circle at 12% 16%,rgba(120,84,28,.4) 0,rgba(120,84,28,.16) 6%,transparent 11%),
 radial-gradient(circle at 90% 78%,rgba(96,62,18,.34) 0,transparent 9%),
 radial-gradient(circle at 34% 92%,rgba(140,100,36,.3) 0,transparent 8%),
 radial-gradient(circle at 72% 10%,rgba(255,246,214,.4) 0,transparent 4%),
 linear-gradient(108deg,transparent 40%,rgba(255,250,228,.22) 46%,transparent 52%),
 linear-gradient(180deg,rgba(255,236,170,.2),rgba(110,72,20,.16))}
html[data-theme=co] .khung-anh img{border-radius:1px 4px 2px 6px/4px 1px 5px 2px}
@keyframes ndt-anh{from{transform:rotate(-1.9deg) scale(1)}to{transform:rotate(-.9deg) scale(1.035)}}
html[data-theme=co] .hero .wrap{overflow:visible}html[data-theme=co] .hero{overflow:hidden}

/* tabs on a phone: one line each, never a word broken over two lines; the row scrolls sideways if it must */
.tabs{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tabs a{white-space:nowrap;flex:1 0 auto;padding:11px 12px}
body{word-break:normal;overflow-wrap:break-word;hyphens:none}

/* statistics per branch as cards: readable on a phone without sideways scrolling */
.tabs a{flex:1 1 0;padding:11px 6px}
.dai{display:none}
.tks{display:grid;gap:12px}
.tk{background:#fffaf0;border:1px solid var(--vien);border-top:4px solid var(--chi1);border-radius:8px;padding:12px 14px}
.tk.chi2{border-top-color:var(--chi2)}.tk.chi3{border-top-color:var(--chi3)}
.tk h3{font-size:1.1rem;margin:0}.tk p{margin:.1em 0 .5em;font-size:.92rem}.tk h4{font-size:.85rem;margin:.8em 0 .3em;color:#6d5a4b;font-weight:normal}
.tk .lon{display:flex;align-items:baseline;gap:8px}.tk .lon b{font-size:2.2rem;color:var(--do);line-height:1}
.tk ul.so{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.tk ul.so li{background:var(--giay-dam);border-radius:6px;padding:6px 4px;text-align:center}
.tk ul.so span{display:block;font-size:.72rem;color:#6d5a4b}.tk ul.so b{font-size:1.05rem}
.tk ul.doi{grid-template-columns:repeat(3,1fr)}
html[data-theme=co] .tk{background:#fbf4e0}
@media (min-width:760px){.dai{display:inline}.tks{grid-template-columns:repeat(3,1fr)}}

/* old design: headings and the title card in an old print face, with worn, uneven letter edges (the SVG filter #mon in the page) */
html[data-theme=co] h1,html[data-theme=co] h2,html[data-theme=co] h3,html[data-theme=co] .brand b,html[data-theme=co] .hero .cau,
html[data-theme=co] .nhan,html[data-theme=co] .tabs a,html[data-theme=co] .nut,html[data-theme=co] .moc b,html[data-theme=co] .o i,html[data-theme=co] .o b
 {font-family:"Old Standard TT","Noto Serif","Times New Roman",serif}
html[data-theme=co] h1,html[data-theme=co] h2,html[data-theme=co] .hero .cau,html[data-theme=co] .brand b,html[data-theme=co] .tk .lon b,html[data-theme=co] .nhan
 {filter:url(#mon)}
html[data-theme=co] .hero h1{letter-spacing:.06em;text-shadow:0 0 1px #fff8,1px 1px 0 #0006}
html[data-theme=co] .hero .cau{font-size:1.2rem;line-height:1.7;letter-spacing:.08em;transform:rotate(-.5deg);text-shadow:0 0 2px #f1e6c866}
html[data-theme=co] h2{letter-spacing:.02em}
@media (prefers-reduced-motion:no-preference){html.phim-chay .hero .cau{animation:ndt-the .9s steps(1) infinite}}
@keyframes ndt-the{0%{transform:rotate(-.5deg) translate(0,0)}33%{transform:rotate(-.45deg) translate(.5px,-.4px)}66%{transform:rotate(-.55deg) translate(-.4px,.5px)}}

/* photo viewer (static/anh.js): the picture fills the screen in either direction of the phone; zoom with the buttons, two fingers or a double tap */
.khung-anh img{cursor:zoom-in}
dialog.xem{border:0;padding:0;margin:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;background:#120c06f2;color:#f1e6c8}
dialog.xem::backdrop{background:#000c}
dialog.xem[open]{display:flex;flex-direction:column}
.xem .thanh{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#0009;flex:none}
.xem .thanh button{font:inherit;min-width:44px;min-height:44px;border-radius:8px;border:1px solid #ffffff55;background:#ffffff14;color:#fff;font-size:1.2rem;cursor:pointer;padding:0 12px}
.xem .thanh button[data-z="0"]{font-size:.85rem}.xem .thanh .dong{margin-left:auto;font-size:1.5rem}
.xem .muc-zoom{min-width:3.2em;text-align:center;font-size:.9rem}
.xem .vung{flex:1;min-height:0;overflow:auto;display:flex;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.xem .vung img{margin:auto;display:block;width:100%;max-width:none;max-height:100%;object-fit:contain;cursor:zoom-out}
.xem .chu-anh{flex:none;margin:0;padding:6px 12px 10px;text-align:center;font-size:.9rem}
html[data-theme=co]:not([data-anh=mau]) .xem .vung img{filter:grayscale(1) sepia(.62) contrast(.86) brightness(1.07)}
html[data-theme=co][data-anh=mau] .xem .vung img{filter:sepia(.3) saturate(.7) contrast(.9) brightness(1.05)}
@media (orientation:landscape) and (max-height:520px){.xem .thanh{padding:3px 8px}.xem .thanh button{min-height:36px}.xem .chu-anh{display:none}
 .hero .wrap{grid-template-columns:1fr 1fr;align-items:center}.top nav{width:auto}}

/* third design "Đen trắng": the old design in black, white and grey, like a silent film; photographs keep their brown-yellow print tone */
.kieu .k-dt i{background:linear-gradient(135deg,#111 50%,#eee 50%)}
html[data-tong=dt]{--do:#2a2a2a;--do-dam:#0f0f0f;--vang:#d9d9d9;--vang-dam:#8a8a8a;--giay:#ecebe8;--giay-dam:#d9d8d4;--muc:#1c1c1c;--vien:#b9b8b4;
 --chi1:#333;--chi2:#666;--chi3:#8c8c8c}
html[data-tong=dt] body{background:#e9e8e5 radial-gradient(ellipse at center,#f4f3f0 0,#e9e8e5 55%,#cfcecb 100%) fixed}
html[data-tong=dt] .hero{background:linear-gradient(120deg,#050505,#262626 60%,#3d3d3d)}
html[data-tong=dt] .cay{background:linear-gradient(180deg,#f1f0ed,#dddcd8)}
html[data-tong=dt] .o,html[data-tong=dt] .card,html[data-tong=dt] .loc,html[data-tong=dt] .nguoi,html[data-tong=dt] .cuon,html[data-tong=dt] .tabs,html[data-tong=dt] .tk{background:#f6f5f2}
html[data-tong=dt] .bang tr:nth-child(even) td{background:#e6e5e1}
html[data-tong=dt] .anh{background:#cfcecb;color:#111}
html[data-tong=dt] .nghi{color:#222;background:#e0dfdb;border-left-color:#555}
html[data-tong=dt] .hero .cau{color:#f2f2f2;border-color:#d0d0d0}
html[data-tong=dt] .nut.vang{color:#0f0f0f}
html[data-tong=dt] .seal,html[data-tong=dt] .quick b{color:#e6e6e6;border-color:#e6e6e6}
html[data-tong=dt] .top nav a.on,html[data-tong=dt] .top nav a:hover{color:#fff;border-color:#fff}
html[data-tong=dt] .brand small,html[data-tong=dt] .hero .noi,html[data-tong=dt] .quick small,html[data-tong=dt] .legal{color:#cfcfcf}

/* photographs and the title card stay straight (Phong, 22 Nov: tilted looks not serious); the worn paper, yellow edges and stains remain */
html[data-theme=co] .khung-anh,html[data-theme=co] .hai .khung-anh,html[data-theme=co] .hd .khung-anh,html[data-theme=co] .van .khung-anh{transform:none;margin:6px 0 12px}
html[data-theme=co] .hero .cau{transform:none}
@keyframes ndt-anh{from{transform:scale(1)}to{transform:scale(1.03)}}
@keyframes ndt-the{0%{transform:translate(0,0)}33%{transform:translate(.4px,-.3px)}66%{transform:translate(-.3px,.4px)}}
/* viewer: a zoomed picture really grows (a flex item would be squeezed back to its own size) */
.xem .vung img{flex:none}

/* black-and-white design: prints on grey-white paper with grey wear; the photograph itself keeps only a faint warm tint */
html[data-tong=dt] .khung-anh{background:radial-gradient(ellipse at center,#f2f1ee 55%,#d8d6d0 88%,#b9b6ae 100%);
 box-shadow:0 4px 14px #0009,inset 0 0 0 1px #a9a7a0,inset 0 0 18px #77756e77,inset 3px -4px 10px #55534d44}
html[data-tong=dt]:not([data-anh=mau]) .khung-anh img,html[data-tong=dt]:not([data-anh=mau]) .xem .vung img{filter:grayscale(1) sepia(.16) contrast(.92) brightness(1.05) blur(.3px)}
html[data-tong=dt][data-anh=mau] .khung-anh img,html[data-tong=dt][data-anh=mau] .xem .vung img{filter:saturate(.55) sepia(.1) contrast(.92) brightness(1.04)}
html[data-tong=dt] .khung-anh:after{background:
 radial-gradient(ellipse at center,transparent 48%,rgba(40,40,38,.34) 84%,rgba(15,15,14,.58) 100%),
 radial-gradient(circle at 12% 16%,rgba(70,68,62,.3) 0,rgba(70,68,62,.12) 6%,transparent 11%),
 radial-gradient(circle at 90% 78%,rgba(50,48,44,.28) 0,transparent 9%),
 radial-gradient(circle at 72% 10%,rgba(255,255,250,.4) 0,transparent 4%),
 linear-gradient(108deg,transparent 40%,rgba(255,255,250,.2) 46%,transparent 52%)}
html[data-tong=dt] dialog.xem{background:#0b0b0bf2;color:#eee}
html[data-tong=dt] .hero .cau{text-shadow:none;box-shadow:0 0 0 4px #111}

/* black is never dead black in the old designs: dark greys that the film grain and white noise can play on */
html[data-tong=dt]{--do:#303030;--do-dam:#1c1c1c}
html[data-tong=dt] .hero{background:linear-gradient(120deg,#171717,#2b2b2b 60%,#404040)}
html[data-theme=co] .hero .cau{background:#1d1b18;box-shadow:0 0 0 4px #1d1b18}
html[data-tong=dt] .hero .cau{background:#1c1c1c;box-shadow:0 0 0 4px #1c1c1c}
html[data-tong=dt] dialog.xem{background:#181818f2}
html[data-tong=co] dialog.xem{background:#1e160df2}
html[data-tong=dt] .foot,html[data-tong=dt] .top{background:linear-gradient(180deg,#303030,#1c1c1c)}

/* old designs: the letters carry the film noise too. Headings and labels: worn edges and small holes in the ink (#mon);
   running text: small holes only (#muc), on whole blocks so a phone has few filters to draw.
   Only while the film effect runs: "Phim: tắt" gives clean letters and spares a slow phone */
html.phim-chay .top nav,html.phim-chay .nut,html.phim-chay .tabs,html.phim-chay .hero .noi,html.phim-chay h3,html.phim-chay .kieu{filter:url(#mon)}
html.phim-chay .ve .hai>div,html.phim-chay .moc,html.phim-chay .van,html.phim-chay .bachi,html.phim-chay .tks,html.phim-chay .loc,
html.phim-chay .nguoi,html.phim-chay .foot .wrap,html.phim-chay .banner p,html.phim-chay .hd>span:last-child{filter:url(#muc)}
html.phim-chay .van h2,html.phim-chay .nguoi h3,html.phim-chay .tk h3,html.phim-chay .loc h3,html.phim-chay .tk .lon b{filter:none}

/* viewer with rotation: the script sizes the picture in pixels; this holder keeps the turned picture inside the scroll area */
.xem .xoay-khung{position:relative;flex:none;margin:auto;overflow:hidden}
.xem .vung .xoay-khung img{position:absolute;left:50%;top:50%;margin:0;max-width:none;max-height:none;width:auto;object-fit:fill;transition:transform .25s ease}
.xem .thanh{gap:6px}.xem .thanh button{padding:0 10px}.xem .thanh .xoay,.xem .thanh button[data-z="0"]{font-size:.85rem}
.xem .chu-anh small{opacity:.7;margin-left:6px;white-space:nowrap}
@media (orientation:landscape) and (max-height:520px){.xem .chu-anh{display:none}}

/* search card with index tabs, as in an old library card catalogue: choose a branch and a generation with one tap */
.phieu{position:relative;background:#fffdf4;border:1px solid var(--vien);border-radius:4px;padding:10px 12px 22px;margin-bottom:12px;
 background-image:linear-gradient(#c2413b,#c2413b),repeating-linear-gradient(180deg,transparent 0 27px,#9bb7d466 27px 28px);
 background-size:100% 2px,100% 100%;background-position:0 38px,0 44px;background-repeat:no-repeat,repeat-y;box-shadow:0 1px 4px #0002}
.phieu:after{content:"";position:absolute;left:50%;bottom:6px;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--giay);box-shadow:inset 0 1px 2px #0006}
.phieu h3{border:0;margin:0 0 12px;font-size:1rem;letter-spacing:.04em;text-transform:uppercase}
.phieu fieldset{border:0;margin:0 0 10px;padding:0;min-width:0}
.phieu legend{font-size:.82rem;color:#6d5a4b;padding:0;margin-bottom:2px}
.the{display:flex;flex-wrap:wrap;gap:0 3px;border-bottom:2px solid #8a7a66;padding:0 2px}
.the label{margin:0;display:block}
.the input{position:absolute;opacity:0;width:1px;height:1px}
.the span{display:block;min-width:44px;min-height:38px;line-height:38px;padding:0 10px;margin-top:6px;text-align:center;font-size:.9rem;cursor:pointer;
 background:#efe6cf;border:1px solid #8a7a66;border-bottom:0;border-radius:7px 7px 0 0;color:#5a4a3a;transform:translateY(0);box-shadow:inset 0 -6px 6px -6px #0003}
.the.so span{min-width:38px;padding:0 6px;font-family:"Old Standard TT","Noto Serif",serif}
.the input:checked+span{background:#fffdf4;color:var(--do);font-weight:bold;margin-top:0;min-height:44px;line-height:44px;border-color:var(--do);box-shadow:none;position:relative;top:2px}
.the input:focus-visible+span{outline:2px solid var(--do);outline-offset:1px}
.dong-ke{display:block;font-size:.82rem;color:#6d5a4b;margin:4px 0 0}
.loc .dong-ke input[type=search]{border:0;border-bottom:1px solid #5a4a3a;border-radius:0;background:transparent;padding:6px 2px;margin-top:0;font-size:16px}
html[data-theme=co] .phieu{background-color:#f7efd6}html[data-theme=co] .the span{background:#e6d8b2}html[data-theme=co] .the input:checked+span{background:#f7efd6}
html[data-tong=dt] .phieu{background-color:#f4f3f0;background-image:linear-gradient(#444,#444),repeating-linear-gradient(180deg,transparent 0 27px,#8885 27px 28px)}
html[data-tong=dt] .the span{background:#dddcd8}html[data-tong=dt] .the input:checked+span{background:#f4f3f0}

/* the search card is typed: typewriter letters (Cousine covers Vietnamese), struck one by one by static/go.js */
.phieu,.phieu h3,.phieu legend,.the span,.the.so span,.dong-ke,.loc .dong-ke input[type=search],.dong-may{font-family:"Cousine","Courier New",Courier,monospace}
.phieu h3{font-weight:700}.the span{font-size:.86rem;padding:0 8px}.the.so span{padding:0 5px;min-width:36px}
.dong-may{margin:10px 0 0;min-height:3.2em;font-size:.86rem;line-height:1.6;color:#2b2118}
.dong-may.dang-go .go:after{content:"▮";margin-left:1px;opacity:.7;animation:ndt-nhay .5s steps(1) infinite}
.phim-go{display:inline-block;white-space:pre;opacity:var(--muc,1);transform:translateY(var(--lech,0));animation:ndt-go .16s ease-out both}
@keyframes ndt-go{0%{transform:translateY(-3px) scale(1.5);opacity:0;text-shadow:0 0 0 currentColor}45%{transform:translateY(1px) scale(.92);opacity:1;text-shadow:0 0 2px currentColor}
 100%{transform:translateY(var(--lech,0)) scale(1);text-shadow:0 0 .6px currentColor}}
@keyframes ndt-nhay{50%{opacity:0}}
.phieu.rung{animation:ndt-may .055s linear}
@keyframes ndt-may{0%{transform:translate(0,0)}50%{transform:translate(.6px,.8px)}100%{transform:translate(0,0)}}
/* the chosen tab is struck like a key: it dips, then comes forward */
.the input:checked+span{animation:ndt-phim .22s ease-out}
@keyframes ndt-phim{0%{transform:translateY(4px) scale(.94);box-shadow:inset 0 3px 6px #0006}60%{transform:translateY(-1px)}100%{transform:none}}
html.phim-chay .phieu h3,html.phim-chay .the,html.phim-chay .dong-may,html.phim-chay .phieu legend{filter:url(#mon)}
@media (prefers-reduced-motion:reduce){.phim-go,.phieu.rung,.the input:checked+span{animation:none}}

/* old designs: the whole page is typewritten (Cousine); only the big titles keep the old print face */
html[data-theme=co] body,html[data-theme=co] .card .pl,html[data-theme=co] .nut,html[data-theme=co] .tabs a,html[data-theme=co] .moc b,
html[data-theme=co] .o i,html[data-theme=co] .o b,html[data-theme=co] h3,html[data-theme=co] h4,html[data-theme=co] .nhan,html[data-theme=co] .kieu a,html[data-theme=co] .kieu button
 {font-family:"Cousine","Courier New",Courier,monospace}
html[data-theme=co] body{font-size:15px;line-height:1.65;letter-spacing:-.01em}
html[data-theme=co] .top nav a{font-size:.9rem}
html[data-theme=co] .card .pl{font-size:.92rem}
html[data-theme=co] .bang{font-size:.82rem}
html[data-theme=co] p,html[data-theme=co] li,html[data-theme=co] td{text-shadow:0 0 .5px currentColor}

/* generation tabs: always one row of nine, down to a 320 px phone */
.the.so{display:grid;grid-template-columns:minmax(44px,1.9fr) repeat(8,minmax(0,1fr));gap:0 2px;flex-wrap:nowrap}
.the.so label{min-width:0}
.the.so span,html[data-theme=co] .the.so span{min-width:0;padding:0;font-family:"Old Standard TT","Noto Serif",serif;font-size:.84rem;letter-spacing:-.02em;overflow:hidden;white-space:nowrap}
.the.so label:first-child span{font-family:"Cousine","Courier New",monospace;font-size:.72rem;letter-spacing:-.04em}
.the{flex-wrap:nowrap}.the:not(.so) label{flex:1 1 0;min-width:0}.the:not(.so) span{min-width:0;padding:0 2px;white-space:nowrap;overflow:hidden}
@media (max-width:380px){
 .wrap{padding:0 10px}.loc{padding:8px}.phieu{padding:8px 8px 22px}
 .the span{font-size:.78rem}.the.so span{font-size:.78rem}.the.so label:first-child span{font-size:.66rem}
 .kieu a,.kieu button{font-size:.64rem;padding:3px 6px}
 .hero h1{font-size:1.55rem}.tabs a{font-size:.82rem;padding:10px 3px}
 html[data-theme=co] body{font-size:14px}
}
@media (max-width:340px){.the.so{gap:0 1px}.the.so span,html[data-theme=co] .the.so span{font-size:.7rem;letter-spacing:-.06em}.the.so{grid-template-columns:minmax(40px,1.6fr) repeat(8,minmax(0,1fr))}}

.dong-may .tu{display:inline-block;white-space:pre}

/* old designs: boxes are ruled by hand in ink, as on an architect's drawing: square, each stroke bows a little, runs a little past
   the corner and crosses the next, no two frames alike (five small SVG drawings; the strokes are generated, then roughened by noise) */
html[data-tong=co]{--in1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%233d2a17' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M0.7,11.4 Q32.8,10.5 57.7,11.8 T119.8,12.5' stroke-width='1.95' opacity='0.95'/%3E%3Cpath d='M108.4,0.7 Q108.2,35.3 107.2,56.1 T107.5,119.8' stroke-width='1.86' opacity='0.95'/%3E%3Cpath d='M119.5,108.4 Q87.6,106.7 56.1,108.3 T2.2,108.6' stroke-width='1.46' opacity='0.95'/%3E%3Cpath d='M12.5,117.3 Q12.5,84.1 12.0,56.8 T12.0,0.3' stroke-width='1.15' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E");--in2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%233d2a17' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M1.4,12.1 Q39.1,11.8 62.1,12.2 T117.6,12.0' stroke-width='0.90' opacity='0.95'/%3E%3Cpath d='M108.2,2.4 Q106.2,35.6 107.0,63.1 T108.3,117.1' stroke-width='1.03' opacity='0.95'/%3E%3Cpath d='M119.9,108.7 Q85.8,108.5 54.6,106.8 T1.6,107.3' stroke-width='0.87' opacity='0.95'/%3E%3Cpath d='M11.6,117.7 Q9.9,81.6 11.9,63.4 T12.0,1.9' stroke-width='0.72' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E");--in3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='23'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%233d2a17' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M2.8,12.6 Q38.7,10.2 62.9,11.8 T118.6,11.4' stroke-width='2.54' opacity='0.95'/%3E%3Cpath d='M107.6,1.3 Q106.8,37.5 106.9,55.9 T108.3,118.3' stroke-width='3.11' opacity='0.95'/%3E%3Cpath d='M118.5,108.3 Q82.3,106.1 60.8,108.2 T2.0,108.2' stroke-width='2.81' opacity='0.95'/%3E%3Cpath d='M12.7,118.1 Q13.1,80.4 12.2,61.6 T11.7,0.3' stroke-width='2.48' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E");--in4:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='37'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%233d2a17' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M2.0,11.4 Q35.4,13.5 65.3,12.0 T118.9,11.8' stroke-width='1.90' opacity='0.95'/%3E%3Cpath d='M108.0,0.3 Q108.8,39.2 107.5,58.8 T108.4,118.3' stroke-width='3.88' opacity='0.95'/%3E%3Cpath d='M119.9,108.7 Q88.1,106.2 53.8,107.5 T1.1,108.3' stroke-width='4.66' opacity='0.95'/%3E%3Cpath d='M12.5,118.7 Q12.6,82.9 10.9,60.3 T11.5,1.3' stroke-width='2.08' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E");--in-doi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%233d2a17' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M1.0,11.5 Q35.8,10.1 62.4,11.7 T117.2,12.0' stroke-width='2.29' opacity='0.95'/%3E%3Cpath d='M107.4,1.3 Q106.1,33.1 107.8,63.3 T107.4,117.7' stroke-width='1.33' opacity='0.95'/%3E%3Cpath d='M118.9,108.6 Q84.9,107.5 62.8,106.9 T2.6,107.7' stroke-width='1.33' opacity='0.95'/%3E%3Cpath d='M11.5,117.4 Q11.2,85.8 11.2,60.8 T12.2,1.1' stroke-width='1.62' opacity='0.95'/%3E%3Cpath d='M9.5,18.9 Q31.8,19.4 61.5,18.5 T111.9,19.3' stroke-width='0.97' opacity='0.80'/%3E%3Cpath d='M100.6,9.2 Q101.1,42.5 101.6,57.9 T101.8,109.9' stroke-width='1.14' opacity='0.80'/%3E%3Cpath d='M110.8,101.4 Q79.8,101.0 53.4,101.4 T9.8,101.1' stroke-width='0.60' opacity='0.80'/%3E%3Cpath d='M19.5,110.4 Q19.9,83.1 19.2,59.6 T19.5,10.3' stroke-width='1.17' opacity='0.80'/%3E%3C/g%3E%3C/svg%3E");--in-manh:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='31'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='1.3'/%3E%3C/filter%3E%3Cg fill='none' stroke='%233d2a17' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M0.0,11.5 Q32.7,12.8 58.4,11.1 T117.7,12.4' stroke-width='2.61' opacity='0.95'/%3E%3Cpath d='M107.5,2.2 Q108.7,33.6 108.1,59.5 T107.9,120.0' stroke-width='2.88' opacity='0.95'/%3E%3Cpath d='M117.3,107.3 Q89.3,107.6 55.0,107.6 T1.1,108.7' stroke-width='1.15' opacity='0.95'/%3E%3Cpath d='M11.6,117.7 Q12.4,82.6 13.1,63.4 T11.8,0.6' stroke-width='2.42' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E")}
html[data-tong=dt]{--in1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%231c1c1c' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M0.7,11.4 Q32.8,10.5 57.7,11.8 T119.8,12.5' stroke-width='1.95' opacity='0.95'/%3E%3Cpath d='M108.4,0.7 Q108.2,35.3 107.2,56.1 T107.5,119.8' stroke-width='1.86' opacity='0.95'/%3E%3Cpath d='M119.5,108.4 Q87.6,106.7 56.1,108.3 T2.2,108.6' stroke-width='1.46' opacity='0.95'/%3E%3Cpath d='M12.5,117.3 Q12.5,84.1 12.0,56.8 T12.0,0.3' stroke-width='1.15' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E");--in2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%231c1c1c' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M1.4,12.1 Q39.1,11.8 62.1,12.2 T117.6,12.0' stroke-width='0.90' opacity='0.95'/%3E%3Cpath d='M108.2,2.4 Q106.2,35.6 107.0,63.1 T108.3,117.1' stroke-width='1.03' opacity='0.95'/%3E%3Cpath d='M119.9,108.7 Q85.8,108.5 54.6,106.8 T1.6,107.3' stroke-width='0.87' opacity='0.95'/%3E%3Cpath d='M11.6,117.7 Q9.9,81.6 11.9,63.4 T12.0,1.9' stroke-width='0.72' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E");--in3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='23'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%231c1c1c' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M2.8,12.6 Q38.7,10.2 62.9,11.8 T118.6,11.4' stroke-width='2.54' opacity='0.95'/%3E%3Cpath d='M107.6,1.3 Q106.8,37.5 106.9,55.9 T108.3,118.3' stroke-width='3.11' opacity='0.95'/%3E%3Cpath d='M118.5,108.3 Q82.3,106.1 60.8,108.2 T2.0,108.2' stroke-width='2.81' opacity='0.95'/%3E%3Cpath d='M12.7,118.1 Q13.1,80.4 12.2,61.6 T11.7,0.3' stroke-width='2.48' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E");--in4:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='37'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%231c1c1c' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M2.0,11.4 Q35.4,13.5 65.3,12.0 T118.9,11.8' stroke-width='1.90' opacity='0.95'/%3E%3Cpath d='M108.0,0.3 Q108.8,39.2 107.5,58.8 T108.4,118.3' stroke-width='3.88' opacity='0.95'/%3E%3Cpath d='M119.9,108.7 Q88.1,106.2 53.8,107.5 T1.1,108.3' stroke-width='4.66' opacity='0.95'/%3E%3Cpath d='M12.5,118.7 Q12.6,82.9 10.9,60.3 T11.5,1.3' stroke-width='2.08' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E");--in-doi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%231c1c1c' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M1.0,11.5 Q35.8,10.1 62.4,11.7 T117.2,12.0' stroke-width='2.29' opacity='0.95'/%3E%3Cpath d='M107.4,1.3 Q106.1,33.1 107.8,63.3 T107.4,117.7' stroke-width='1.33' opacity='0.95'/%3E%3Cpath d='M118.9,108.6 Q84.9,107.5 62.8,106.9 T2.6,107.7' stroke-width='1.33' opacity='0.95'/%3E%3Cpath d='M11.5,117.4 Q11.2,85.8 11.2,60.8 T12.2,1.1' stroke-width='1.62' opacity='0.95'/%3E%3Cpath d='M9.5,18.9 Q31.8,19.4 61.5,18.5 T111.9,19.3' stroke-width='0.97' opacity='0.80'/%3E%3Cpath d='M100.6,9.2 Q101.1,42.5 101.6,57.9 T101.8,109.9' stroke-width='1.14' opacity='0.80'/%3E%3Cpath d='M110.8,101.4 Q79.8,101.0 53.4,101.4 T9.8,101.1' stroke-width='0.60' opacity='0.80'/%3E%3Cpath d='M19.5,110.4 Q19.9,83.1 19.2,59.6 T19.5,10.3' stroke-width='1.17' opacity='0.80'/%3E%3C/g%3E%3C/svg%3E");--in-manh:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='r' x='-5%' y='-5%' width='110%' height='110%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='31'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='1.3'/%3E%3C/filter%3E%3Cg fill='none' stroke='%231c1c1c' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M0.0,11.5 Q32.7,12.8 58.4,11.1 T117.7,12.4' stroke-width='2.61' opacity='0.95'/%3E%3Cpath d='M107.5,2.2 Q108.7,33.6 108.1,59.5 T107.9,120.0' stroke-width='2.88' opacity='0.95'/%3E%3Cpath d='M117.3,107.3 Q89.3,107.6 55.0,107.6 T1.1,108.7' stroke-width='1.15' opacity='0.95'/%3E%3Cpath d='M11.6,117.7 Q12.4,82.6 13.1,63.4 T11.8,0.6' stroke-width='2.42' opacity='0.95'/%3E%3C/g%3E%3C/svg%3E")}
html[data-theme=co] .card,html[data-theme=co] .o,html[data-theme=co] .loc,html[data-theme=co] .nguoi,html[data-theme=co] .cuon,html[data-theme=co] .tabs,
html[data-theme=co] .tk,html[data-theme=co] .cay,html[data-theme=co] .hd,html[data-theme=co] .anh,html[data-theme=co] .phieu,html[data-theme=co] .nut,
html[data-theme=co] .dem,html[data-theme=co] .tk ul.so li,html[data-theme=co] .the span,html[data-theme=co] .kieu a,html[data-theme=co] .kieu button,
html[data-theme=co] .nhan,html[data-theme=co] .seal,html[data-theme=co] .loc>a,html[data-theme=co] .nghi,html[data-theme=co] .hero .cau
 {border-radius:0;box-shadow:none;border:8px solid transparent;border-image:var(--in1) 24 / 8px stretch}
html[data-theme=co] .card:nth-child(3n+2),html[data-theme=co] li:nth-child(3n+2)>.card,html[data-theme=co] li:nth-child(3n+2)>details>summary>.card,
html[data-theme=co] .o:nth-child(2),html[data-theme=co] .tk:nth-child(2),html[data-theme=co] .tk ul.so li:nth-child(3n+2),html[data-theme=co] .the label:nth-child(3n+2) span,
html[data-theme=co] .kieu>*:nth-child(3n+2),html[data-theme=co] .nut.vien{border-image-source:var(--in2)}
html[data-theme=co] li:nth-child(3n)>.card,html[data-theme=co] li:nth-child(3n)>details>summary>.card,html[data-theme=co] .o:nth-child(3),html[data-theme=co] .tk:nth-child(3),
html[data-theme=co] .tk ul.so li:nth-child(3n),html[data-theme=co] .the label:nth-child(3n) span,html[data-theme=co] .kieu>*:nth-child(3n),html[data-theme=co] .cuon{border-image-source:var(--in3)}
/* the important frames get a double rule, like a printed form or a title card */
html[data-theme=co] .nguoi,html[data-theme=co] .phieu,html[data-theme=co] .cay,html[data-theme=co] .card.big,html[data-theme=co] .hero .cau,html[data-theme=co] .tk
 {border-width:12px;border-image:var(--in-doi) 30 / 12px stretch}
/* small parts: a fine rule */
html[data-theme=co] .dem,html[data-theme=co] .tk ul.so li,html[data-theme=co] .kieu a,html[data-theme=co] .kieu button,html[data-theme=co] .nhan,html[data-theme=co] .the span,html[data-theme=co] .loc>a
 {border-width:5px;border-image:var(--in-manh) 24 / 5px stretch}
html[data-theme=co] .loc>a{border-image:none;border:0;border-bottom:1px dotted var(--muc)}
html[data-theme=co] .tabs a{border-radius:0}
html[data-theme=co] .card,html[data-theme=co] .card.nam,html[data-theme=co] .card.nu{border-left-width:8px;padding:2px 6px}
html[data-theme=co] .o{border-top-width:8px}html[data-theme=co] .tk{border-top-width:12px}
/* a printed sheet has flat ink: no soft shadows, no gradients inside the boxes; each box sits a hair off the grid */
html[data-theme=co] .nhan{background:transparent;color:var(--muc);letter-spacing:.08em}
html[data-theme=co] .dem{background:transparent}
html[data-theme=co] .nut.vang{background:transparent;color:var(--muc)}html[data-theme=co] .hero .nut.vang{color:#f1e6c8;border-image-source:none;border:2px solid #f1e6c8}
html[data-theme=co] .hero .nut.vien.sang{border-image-source:none;border:1px solid #f1e6c8}
html[data-theme=co] .kieu a,html[data-theme=co] .kieu button{border-image:none;border:1px solid #ffffff66;border-radius:0}
html[data-theme=co] .kieu a.on,html[data-theme=co] .kieu button[aria-pressed=true]{border:2px solid #fff;background:none}
html[data-theme=co] .hero .cau{border-image:none;border:3px double #cbb98a}
html[data-theme=co] .seal{border-image:none;border:2px solid var(--vang)}
html[data-theme=co] .the span{border-bottom-width:0;margin-top:6px}
html[data-theme=co] .the input:checked+span{border-image-source:var(--in-manh);border-width:5px;border-bottom-width:0}
html[data-theme=co] .tk ul.so li{background:transparent}
html[data-theme=co] .loc select,html[data-theme=co] .loc input{border-radius:0}
html[data-theme=co] .bachi .o:nth-child(1),html[data-theme=co] .tks .tk:nth-child(2),html[data-theme=co] li:nth-child(4n+1)>.card{transform:translate(.6px,-.5px)}
html[data-theme=co] .bachi .o:nth-child(3),html[data-theme=co] .tks .tk:nth-child(3),html[data-theme=co] li:nth-child(4n+3)>.card{transform:translate(-.7px,.6px)}
html[data-theme=co] .khung-anh{border-radius:1px 3px 2px 4px/3px 1px 4px 2px}
html[data-theme=co] .phieu:after{box-shadow:inset 0 1px 2px #0008}
html[data-theme=co] .anh{border-width:8px}
html[data-theme=co] .moc li:before{border-radius:0;width:8px;height:8px;transform:rotate(45deg)}
html[data-theme=co] .nghi{border-left-width:5px}

/* the label "Ba chi phái" shares the class name .dai with the long halves of the tab labels: it must stay visible on phones */
.nhan.dai{display:inline-block}

/* home page, old designs: the picture switches on like an old black-and-white television (static/phim.js builds .tv-man) */
html.tv{background:#0a0a0a}
html.tv:not(.tv-chay) body:before{content:"";position:fixed;inset:0;background:#0a0a0a;z-index:79}
html.tv main>section,html.tv main>div,html.tv .hero{animation:none!important}
.tv-man{position:fixed;inset:0;z-index:80;pointer-events:none;overflow:hidden}
.tv-man i,.tv-man b{position:absolute;left:0;right:0;height:50.5%;background:#0a0a0a;animation:tv-mo .5s cubic-bezier(.2,.9,.25,1) .6s both}
.tv-man i{top:0;transform-origin:50% 0}.tv-man b{bottom:0;transform-origin:50% 100%}
.tv-man u{position:absolute;left:0;right:0;top:50%;height:3px;margin-top:-1.5px;background:#fff;box-shadow:0 0 22px 7px #ffffffcc;transform:scaleX(0);
 animation:tv-vach .55s cubic-bezier(.3,.7,.2,1) .08s both,tv-tan .45s ease-out .6s forwards}
.tv-man s{position:absolute;inset:-20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' seed='5'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  7 0 0 0 -4.1'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");background-size:160px 160px;opacity:0;mix-blend-mode:screen;animation:tv-nhieu 1.2s steps(1) .6s both}
/* the glare goes on the page parts, not on body: a filter on body would tie the fixed TV layer to the whole page height */
html.tv-chay main,html.tv-chay .top,html.tv-chay .foot{animation:tv-lan 1.05s cubic-bezier(.3,.6,.3,1) .62s both,tv-sang 1.5s ease-out .6s both}
@keyframes tv-vach{0%{transform:scaleX(0);opacity:1}15%{transform:scaleX(.02)}100%{transform:scaleX(1);opacity:1}}
@keyframes tv-tan{to{opacity:0;height:40px;margin-top:-20px;box-shadow:0 0 60px 30px #fff6}}
@keyframes tv-mo{from{transform:scaleY(1)}to{transform:scaleY(0)}}
@keyframes tv-nhieu{0%{opacity:.7;background-position:0 0}12%{opacity:.65;background-position:-53px 31px}24%{opacity:.7;background-position:22px -47px}36%{opacity:.55;background-position:-71px -19px}
 48%{opacity:.45;background-position:37px 59px}60%{opacity:.3;background-position:-13px -66px}72%{opacity:.2;background-position:64px 12px}84%{opacity:.1;background-position:-40px 44px}100%{opacity:0}}
@keyframes tv-lan{0%{transform:translateY(46vh) scaleY(1.04)}22%{transform:translateY(-30vh) scaleY(.99)}23%{transform:translateY(34vh)}48%{transform:translateY(-9vh)}
 49%{transform:translateY(12vh)}72%{transform:translateY(-2vh)}86%{transform:translateY(.8vh)}100%{transform:none}}
@keyframes tv-sang{0%{filter:brightness(1.9) contrast(.7)}30%{filter:brightness(1.3) contrast(.85)}100%{filter:none}}

.tv-man i,.tv-man b,.tv-man u{z-index:2}.tv-man s{z-index:1}

html[data-tong=dt] .hero .cau{border-color:#d0d0d0}

/* no round opening on the hero any more (Phong, 22 Nov); and after the television switch-on nothing fades in a second time */
html[data-theme=co] .hero{animation:none!important;clip-path:none}
html.tv-xong main>section,html.tv-xong main>div{animation:none!important}

/* the faster switch-on between pages of the site: same steps, about one second */
html.tv-nhanh .tv-man i,html.tv-nhanh .tv-man b{animation-duration:.3s;animation-delay:.24s}
html.tv-nhanh .tv-man u{animation-duration:.22s,.25s;animation-delay:.02s,.24s}
html.tv-nhanh .tv-man s{animation-duration:.7s;animation-delay:.24s}
html.tv-nhanh.tv-chay main,html.tv-nhanh.tv-chay .top,html.tv-nhanh.tv-chay .foot{animation-duration:.62s,.8s;animation-delay:.26s,.24s}

/* hand-ruled frames need a little room inside; small phones keep the fine rule on the tabs */
html[data-theme=co] .o,html[data-theme=co] .loc,html[data-theme=co] .nguoi,html[data-theme=co] .tk,html[data-theme=co] .phieu{padding:6px 8px}
html[data-theme=co] .phieu{padding-bottom:20px}
html[data-theme=co] .nut{padding:4px 10px}html[data-theme=co] .dem{padding:0 4px}html[data-theme=co] .nhan{padding:0 8px}
html[data-theme=co] .the span{padding:0 1px}html[data-theme=co] .the.so span{padding:0}
html[data-theme=co] .tabs{border-width:8px}html[data-theme=co] .cuon{border-width:8px}

/* old designs: names are written by hand in ink with a fine pen. Four hands; each person keeps one hand, with its own slant and size
   (set by the server from the name). Lists stay typed. */
html[data-theme=co] .tay{font-weight:400;font-style:normal;letter-spacing:0;display:inline-block;transform:rotate(var(--xien,0deg)) translateY(var(--len,0));transform-origin:0 70%;
 color:#1d1a33;text-shadow:0 0 .4px currentColor;text-decoration:none;line-height:1.15;filter:none}
html[data-tong=dt] .tay{color:#16161c}
html[data-theme=co] .tay-0{font-family:"Pinyon Script","Charm",cursive;font-size:calc(1.62rem*var(--co,1))}
html[data-theme=co] .tay-1{font-family:"Italianno","Charm",cursive;font-size:calc(1.85rem*var(--co,1))}
html[data-theme=co] .tay-2{font-family:"Charm",cursive;font-size:calc(1.22rem*var(--co,1))}
html[data-theme=co] .tay-3{font-family:"Corinthia","Charm",cursive;font-size:calc(1.95rem*var(--co,1))}
html[data-theme=co] .card .pl.tay{padding:0 2px}
html[data-theme=co] .nguoi h3 .tay{font-size:calc(2.3rem*var(--co,1))}html[data-theme=co] .nguoi h3 .tay-2{font-size:calc(1.6rem*var(--co,1))}
html[data-theme=co] .nguoi h3{filter:none}
html[data-theme=co] .o b.tay{display:block;transform-origin:50% 70%}
html[data-theme=co] .phu .tay,html[data-theme=co] .nguoi table .tay{font-size:calc(1.5rem*var(--co,1))}html[data-theme=co] .phu .tay-2,html[data-theme=co] .nguoi table .tay-2{font-size:calc(1.1rem*var(--co,1))}

/* line weight is random from box to box: a fourth, heavy rule for some of them */
html[data-theme=co] li:nth-child(5n+4)>.card,html[data-theme=co] li:nth-child(5n+4)>details>summary>.card,html[data-theme=co] .tk ul.so li:nth-child(4n+1),
html[data-theme=co] .nut.vang,html[data-theme=co] .o:nth-child(1),html[data-theme=co] .loc,html[data-theme=co] .dem:nth-of-type(odd){border-image-source:var(--in4)}

/* the handwriting must win over the typewriter rule for names in cards (.card .pl) */
html[data-theme=co] .card .pl.tay,html[data-theme=co] .o b.tay,html[data-theme=co] .nguoi h3 .tay,html[data-theme=co] a.tay{font-weight:400;letter-spacing:0}
html[data-theme=co] .card .pl.tay-0,html[data-theme=co] .o b.tay-0,html[data-theme=co] a.tay-0{font-family:"Pinyon Script","Charm",cursive;font-size:calc(1.62rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-1,html[data-theme=co] .o b.tay-1,html[data-theme=co] a.tay-1{font-family:"Italianno","Charm",cursive;font-size:calc(1.85rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-2,html[data-theme=co] .o b.tay-2,html[data-theme=co] a.tay-2{font-family:"Charm",cursive;font-size:calc(1.22rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-3,html[data-theme=co] .o b.tay-3,html[data-theme=co] a.tay-3{font-family:"Corinthia","Charm",cursive;font-size:calc(1.95rem*var(--co,1))}

/* names really written by hand: eight everyday hands (not calligraphy), each name with its own hand, slant, size, pen width and ink;
   words sit off the line, strokes wobble and the ink skips (SVG filters #tay0-2). Fixed per person by the server. */
html[data-theme=co] .card .pl.tay-0,html[data-theme=co] .o b.tay-0,html[data-theme=co] a.tay-0,html[data-theme=co] .nguoi h3 .tay-0{font-family:"Ruthie","Ruthie",cursive;font-size:calc(1.75rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-1,html[data-theme=co] .o b.tay-1,html[data-theme=co] a.tay-1,html[data-theme=co] .nguoi h3 .tay-1{font-family:"Oooh Baby","Ruthie",cursive;font-size:calc(1.50rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-2,html[data-theme=co] .o b.tay-2,html[data-theme=co] a.tay-2,html[data-theme=co] .nguoi h3 .tay-2{font-family:"Square Peg","Ruthie",cursive;font-size:calc(1.70rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-3,html[data-theme=co] .o b.tay-3,html[data-theme=co] a.tay-3,html[data-theme=co] .nguoi h3 .tay-3{font-family:"My Soul","Ruthie",cursive;font-size:calc(1.45rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-4,html[data-theme=co] .o b.tay-4,html[data-theme=co] a.tay-4,html[data-theme=co] .nguoi h3 .tay-4{font-family:"Fuggles","Ruthie",cursive;font-size:calc(2.00rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-5,html[data-theme=co] .o b.tay-5,html[data-theme=co] a.tay-5,html[data-theme=co] .nguoi h3 .tay-5{font-family:"Caramel","Ruthie",cursive;font-size:calc(1.70rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-6,html[data-theme=co] .o b.tay-6,html[data-theme=co] a.tay-6,html[data-theme=co] .nguoi h3 .tay-6{font-family:"Waterfall","Ruthie",cursive;font-size:calc(1.70rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-7,html[data-theme=co] .o b.tay-7,html[data-theme=co] a.tay-7,html[data-theme=co] .nguoi h3 .tay-7{font-family:"Grechen Fuemen","Ruthie",cursive;font-size:calc(1.45rem*var(--co,1))}
html[data-theme=co] .nguoi h3 .tay{font-size:1.9rem}
html[data-theme=co] .tay.tay{filter:var(--loc,none);text-shadow:0 0 var(--net,0) currentColor;-webkit-text-stroke:var(--net,0) currentColor;line-height:1.25}
.tay .chu{display:inline-block;transform:translate(var(--k,0),var(--d,0)) rotate(var(--r,0deg)) scale(var(--s,1));opacity:var(--m,1)}
html[data-theme=do] .tay .chu{transform:none;opacity:1}

/* these hands are small on the line: larger, and darker ink */
html[data-theme=co] .card .pl.tay-0,html[data-theme=co] .o b.tay-0,html[data-theme=co] a.tay-0{font-size:calc(2.50rem*var(--co,1))}html[data-theme=co] .nguoi h3 .tay-0{font-size:calc(2.88rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-1,html[data-theme=co] .o b.tay-1,html[data-theme=co] a.tay-1{font-size:calc(2.00rem*var(--co,1))}html[data-theme=co] .nguoi h3 .tay-1{font-size:calc(2.30rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-2,html[data-theme=co] .o b.tay-2,html[data-theme=co] a.tay-2{font-size:calc(2.50rem*var(--co,1))}html[data-theme=co] .nguoi h3 .tay-2{font-size:calc(2.88rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-3,html[data-theme=co] .o b.tay-3,html[data-theme=co] a.tay-3{font-size:calc(2.10rem*var(--co,1))}html[data-theme=co] .nguoi h3 .tay-3{font-size:calc(2.42rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-4,html[data-theme=co] .o b.tay-4,html[data-theme=co] a.tay-4{font-size:calc(2.90rem*var(--co,1))}html[data-theme=co] .nguoi h3 .tay-4{font-size:calc(3.33rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-5,html[data-theme=co] .o b.tay-5,html[data-theme=co] a.tay-5{font-size:calc(2.50rem*var(--co,1))}html[data-theme=co] .nguoi h3 .tay-5{font-size:calc(2.88rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-6,html[data-theme=co] .o b.tay-6,html[data-theme=co] a.tay-6{font-size:calc(2.50rem*var(--co,1))}html[data-theme=co] .nguoi h3 .tay-6{font-size:calc(2.88rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-7,html[data-theme=co] .o b.tay-7,html[data-theme=co] a.tay-7{font-size:calc(2.00rem*var(--co,1))}html[data-theme=co] .nguoi h3 .tay-7{font-size:calc(2.30rem*var(--co,1))}
html[data-theme=co] .tay.tay{color:#14122a;line-height:1.05}html[data-tong=dt] .tay.tay{color:#101014}
/* cadence: letters differ in size and height, words are written tighter or looser */
.tay .chu{letter-spacing:var(--gian,0)}
.tay i{font-style:normal;position:relative}
.tay .c0{font-size:.86em;top:.03em}.tay .c1{font-size:1.14em;top:-.02em}.tay .c2{font-size:.94em;top:-.05em}.tay .c3{font-size:1.07em;top:.05em}
.tay .c4{font-size:1em}.tay .c5{font-size:.9em;top:.06em;margin-right:.04em}.tay .c6{font-size:1.2em;top:.02em;margin-left:-.02em}
html[data-theme=do] .tay i{font-size:1em;top:0;margin:0}

/* the small-text rules for spans and i inside cards must not shrink or grey the handwriting */
html[data-theme=co] .tay .chu,html[data-theme=co] .card .tay .chu,html[data-theme=co] .o .tay .chu{font-size:1em;color:inherit;font-family:inherit;font-weight:400;margin:0}
html[data-theme=co] .tay i,html[data-theme=co] .card .tay i,html[data-theme=co] .o .tay i{font-family:inherit;color:inherit;font-style:normal;font-weight:400;display:inline}
html[data-theme=co] .tay i.c0{font-size:.86em}html[data-theme=co] .tay i.c1{font-size:1.14em}html[data-theme=co] .tay i.c2{font-size:.94em}html[data-theme=co] .tay i.c3{font-size:1.07em}
html[data-theme=co] .tay i.c4{font-size:1em}html[data-theme=co] .tay i.c5{font-size:.9em}html[data-theme=co] .tay i.c6{font-size:1.2em}
/* pen pressure and ink, letter by letter: heavier or lighter stroke, fuller or thinner ink */
html[data-theme=co] .tay i.m0{opacity:1;-webkit-text-stroke:.5px currentColor}html[data-theme=co] .tay i.m1{opacity:.62;-webkit-text-stroke:0}
html[data-theme=co] .tay i.m2{opacity:.85;-webkit-text-stroke:.25px currentColor}html[data-theme=co] .tay i.m3{opacity:.74;-webkit-text-stroke:.1px currentColor}
html[data-theme=co] .tay i.m4{opacity:.95;-webkit-text-stroke:.7px currentColor;text-shadow:0 0 1px currentColor}html[data-theme=co] .tay i.m5{opacity:.5;-webkit-text-stroke:.15px currentColor}
html[data-theme=co] .card .pl.tay-0,html[data-theme=co] .o b.tay-0,html[data-theme=co] a.tay-0{font-size:calc(2.00rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-1,html[data-theme=co] .o b.tay-1,html[data-theme=co] a.tay-1{font-size:calc(1.70rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-2,html[data-theme=co] .o b.tay-2,html[data-theme=co] a.tay-2{font-size:calc(2.00rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-3,html[data-theme=co] .o b.tay-3,html[data-theme=co] a.tay-3{font-size:calc(1.75rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-4,html[data-theme=co] .o b.tay-4,html[data-theme=co] a.tay-4{font-size:calc(2.30rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-5,html[data-theme=co] .o b.tay-5,html[data-theme=co] a.tay-5{font-size:calc(2.00rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-6,html[data-theme=co] .o b.tay-6,html[data-theme=co] a.tay-6{font-size:calc(2.00rem*var(--co,1))}
html[data-theme=co] .card .pl.tay-7,html[data-theme=co] .o b.tay-7,html[data-theme=co] a.tay-7{font-size:calc(1.70rem*var(--co,1))}

/* sloppiness differs per writer: a careful hand keeps the line, a hasty one wanders (--ban scales every offset and lean) */
.tay .chu{transform:translate(calc(var(--k,0px)*var(--ban,1)),calc(var(--d,0px)*var(--ban,1))) rotate(calc(var(--r,0deg)*var(--ban,1))) scale(var(--s,1))}
html[data-theme=do] .tay .chu{transform:none}
/* old ink: browned, and faded in a band somewhere along the name (different place, direction and depth for each name) */
html[data-theme=co] .tay.tay{color:#3b2a1e;-webkit-mask-image:linear-gradient(var(--goc,90deg),#000 0,#000 calc(var(--phai,40%) - 14%),rgba(0,0,0,var(--nhat,.4)) var(--phai,40%),#000 calc(var(--phai,40%) + 22%),#000 100%);
 mask-image:linear-gradient(var(--goc,90deg),#000 0,#000 calc(var(--phai,40%) - 14%),rgba(0,0,0,var(--nhat,.4)) var(--phai,40%),#000 calc(var(--phai,40%) + 22%),#000 100%)}
html[data-tong=dt] .tay.tay{color:#2b2b2e}

/* old ink has bled into the paper: a faint brown-yellow halo, slightly offset from the stroke */
html[data-theme=co] .tay.tay{filter:var(--loc,none) drop-shadow(.7px .6px .9px rgba(158,108,36,.6)) drop-shadow(0 0 2.2px rgba(176,132,52,.38))}
html[data-tong=dt] .tay.tay{filter:var(--loc,none) drop-shadow(.7px .6px .9px rgba(140,104,48,.45)) drop-shadow(0 0 2.2px rgba(150,120,66,.28))}

/* less up-and-down: words keep the line much better (a third of the earlier vertical wander), letters barely leave it */
.tay .chu{transform:translate(calc(var(--k,0px)*var(--ban,1)),calc(var(--d,0px)*var(--ban,1)*.3)) rotate(calc(var(--r,0deg)*var(--ban,1)*.6)) scale(var(--s,1))}
html[data-theme=do] .tay .chu{transform:none}
.tay .c0{top:.01em}.tay .c1{top:-.01em}.tay .c2{top:-.015em}.tay .c3{top:.015em}.tay .c5{top:.02em}.tay .c6{top:.005em}
html[data-theme=co] .tay{transform:rotate(calc(var(--xien,0deg)*.6))}

/* closer to a real hand: one writer keeps roughly one letter size, one pen and one ink through a name. The letter-by-letter jumps
   are now slight (a few per cent), the ink thins gradually instead of from letter to letter, and the halo is tighter. */
html[data-theme=co] .tay i.c0{font-size:.95em}html[data-theme=co] .tay i.c1{font-size:1.05em}html[data-theme=co] .tay i.c2{font-size:.98em}html[data-theme=co] .tay i.c3{font-size:1.03em}
html[data-theme=co] .tay i.c4{font-size:1em}html[data-theme=co] .tay i.c5{font-size:.96em}html[data-theme=co] .tay i.c6{font-size:1.07em}
.tay .c5{margin-right:.01em}.tay .c6{margin-left:0}
html[data-theme=co] .tay i.m0{opacity:1;-webkit-text-stroke:.3px currentColor}html[data-theme=co] .tay i.m1{opacity:.86;-webkit-text-stroke:.18px currentColor}
html[data-theme=co] .tay i.m2{opacity:.95;-webkit-text-stroke:.25px currentColor}html[data-theme=co] .tay i.m3{opacity:.9;-webkit-text-stroke:.2px currentColor}
html[data-theme=co] .tay i.m4{opacity:1;-webkit-text-stroke:.36px currentColor;text-shadow:none}html[data-theme=co] .tay i.m5{opacity:.8;-webkit-text-stroke:.16px currentColor}
html[data-theme=co] .tay.tay{filter:var(--loc,none) drop-shadow(.5px .4px .5px rgba(158,108,36,.5))}
html[data-tong=dt] .tay.tay{filter:var(--loc,none) drop-shadow(.5px .4px .5px rgba(140,104,48,.38))}

/* names keep the line: no vertical offset per word or letter, only a slight lean; and no name fades too far */
.tay .chu{transform:translateX(calc(var(--k,0px)*var(--ban,1))) rotate(calc(var(--r,0deg)*var(--ban,1)*.25)) scale(var(--s,1));transform-origin:50% 80%}
html[data-theme=do] .tay .chu{transform:none}
.tay i,.tay .c0,.tay .c1,.tay .c2,.tay .c3,.tay .c5,.tay .c6{top:0}
html[data-theme=co] .tay{transform:rotate(calc(var(--xien,0deg)*.5))}
.tay .chu{opacity:calc(.9 + var(--m,1)*.1)}
html[data-theme=co] .tay i.m1,html[data-theme=co] .tay i.m3,html[data-theme=co] .tay i.m5{opacity:.92}

/* ===== booklet texts and Tộc ước page (all designs) ===== */
.giua{text-align:center}.nghieng{font-style:italic}
.dan{padding-top:26px;padding-bottom:10px;max-width:760px}.dan h2{margin:.2em 0 .5em;font-size:clamp(1.4rem,5.5vw,1.9rem);color:var(--do)}
.sen{height:30px;margin:6px auto;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='%23e3b04b' stroke='%23a8741f' stroke-width='.7' stroke-linejoin='round'%3E%3Cpath d='M7 16C11 23 20 27 29 27C22 23 14 19 7 16Z'/%3E%3Cpath d='M53 16C49 23 40 27 31 27C38 23 46 19 53 16Z'/%3E%3Cpath d='M18 9C16 17 21 24 29 26C25 19 23 13 18 9Z'/%3E%3Cpath d='M42 9C44 17 39 24 31 26C35 19 37 13 42 9Z'/%3E%3Cpath d='M30 4C24 12 24 20 30 26C36 20 36 12 30 4Z'/%3E%3C/g%3E%3C/svg%3E") 50% 50%/52px 26px no-repeat,
 linear-gradient(90deg,transparent,var(--vang-dam) 25%,var(--vang-dam) 38%,transparent 38%,transparent 62%,var(--vang-dam) 62%,var(--vang-dam) 75%,transparent) 50% 55%/min(300px,80%) 1px no-repeat}
.ba-gia-tri{display:grid;gap:16px;margin:22px 0;text-align:center}
.ba-gia-tri div{display:flex;flex-direction:column;align-items:center;gap:4px}
.ba-gia-tri b{color:var(--do);text-transform:uppercase;letter-spacing:.04em;font-size:1.05rem}.ba-gia-tri span{font-style:italic;font-size:.95rem;max-width:22em}
.huy{width:76px;height:76px;border-radius:50%;display:block;background:radial-gradient(circle at 50% 35%,var(--do),var(--do-dam));border:2px solid var(--vang);box-shadow:0 0 0 3px var(--do-dam),0 0 0 4px var(--vang)}
.huy.h-coi{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23e3b04b' stroke='%23e3b04b' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 54h4V38h-4z' stroke='none'/%3E%3Cpath fill='none' stroke-width='2' d='M32 40C26 36 22 33 18 32M32 40C38 36 42 33 46 32M32 34C29 30 27 27 26 23M32 34C35 30 37 27 38 23'/%3E%3Cg stroke='none'%3E%3Ccircle cx='32' cy='15' r='6'/%3E%3Ccircle cx='21' cy='20' r='5'/%3E%3Ccircle cx='43' cy='20' r='5'/%3E%3Ccircle cx='14' cy='30' r='4.5'/%3E%3Ccircle cx='50' cy='30' r='4.5'/%3E%3Ccircle cx='26' cy='27' r='4.5'/%3E%3Ccircle cx='38' cy='27' r='4.5'/%3E%3C/g%3E%3Cpath fill='none' stroke-width='2' d='M20 55h24'/%3E%3C/g%3E%3C/svg%3E"),radial-gradient(circle at 50% 35%,var(--do),var(--do-dam));background-size:70%,100%;background-position:50%;background-repeat:no-repeat}
.huy.h-gia{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23e3b04b' stroke='%23e3b04b' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M8 26C18 24 26 20 32 13C38 20 46 24 56 26L52 30H12Z'/%3E%3Cpath stroke='none' d='M14 38C22 37 27 35 32 31C37 35 42 37 50 38L47 41H17Z'/%3E%3Cpath fill='none' stroke-width='2.4' d='M18 41v12M26 41v12M38 41v12M46 41v12M13 54h38M20 30v6M44 30v6'/%3E%3Cpath stroke='none' d='M29 44h6v10h-6z'/%3E%3C/g%3E%3C/svg%3E"),radial-gradient(circle at 50% 35%,var(--do),var(--do-dam));background-size:70%,100%;background-position:50%;background-repeat:no-repeat}
.huy.h-ke{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23e3b04b' stroke='%23e3b04b' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='23' cy='18' r='7' stroke='none'/%3E%3Cpath stroke='none' d='M11 52C11 37 15 29 23 29C29 29 33 33 35 40L44 36L46 41L33 48L30 44V52Z'/%3E%3Ccircle cx='46' cy='27' r='5' stroke='none'/%3E%3Cpath stroke='none' d='M38 52C38 44 41 38 47 38C52 38 55 43 55 52Z' opacity='.85'/%3E%3C/g%3E%3C/svg%3E"),radial-gradient(circle at 50% 35%,var(--do),var(--do-dam));background-size:70%,100%;background-position:50%;background-repeat:no-repeat}
.nhan-gui{margin-top:24px}.loi{font-style:italic;font-weight:bold;color:var(--do);font-size:1.12rem;line-height:1.7}
.khau{text-transform:uppercase;letter-spacing:.08em;font-weight:bold;color:var(--do);margin-top:1em}
.bia{display:grid;gap:16px;align-items:center;margin-bottom:10px}.bia img{width:100%;max-width:300px;display:block;margin:0 auto;box-shadow:0 6px 18px #0004;border-radius:2px}
.muc-luc{background:var(--giay-dam);border:1px solid var(--vien);border-radius:6px;padding:10px 16px;margin:18px 0}
.muc-luc h2{margin:.2em 0;font-size:1.1rem}.muc-luc ol{list-style:none;margin:0;padding:0}.muc-luc li a{display:block;padding:9px 0;border-top:1px dotted var(--vien);text-decoration:none;color:var(--muc)}
.muc-luc li:first-child a{border-top:0}
.chuong{scroll-margin-top:10px;padding-top:8px}.van .chuong h2{font-size:1.25rem;color:var(--do);border-bottom:2px solid var(--vang);padding-bottom:6px;margin-top:1.8em;line-height:1.3}
.chuong h2 small{display:block;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--vang-dam)}
.chuong h3{font-size:1.05rem;margin:1.3em 0 .4em;color:var(--do-dam)}.chuong ul{padding-left:1.15em;margin:.4em 0}.chuong li{margin:.35em 0}.chuong ul ul{list-style:circle}.chuong ul ul ul{list-style:square}
.chuong a{word-break:break-word}.chuong blockquote{margin:1em 0;padding:.6em 1em;border-left:4px solid var(--vang);font-style:italic;background:var(--giay-dam)}
.ky{text-align:right;margin-top:1.5em}.chuong .bang{min-width:520px}
.hoi-dong{display:grid;gap:12px;margin:12px 0}
.hd-nguoi{background:#fff8;border:1px solid var(--vien);border-left:4px solid var(--do);border-radius:6px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.hd-nguoi small{text-transform:uppercase;letter-spacing:.05em;font-size:.72rem;color:var(--vang-dam)}.hd-nguoi b{font-size:1.1rem;color:var(--do)}.hd-nguoi span{font-size:.92rem}
.goi{display:inline-flex;align-items:center;min-height:44px;margin-top:6px;padding:0 14px;border-radius:22px;background:var(--do);color:#fff!important;text-decoration:none;font-weight:bold;align-self:flex-start;letter-spacing:.03em}
.chuong a[href^="tel:"]{white-space:nowrap;font-weight:bold}
@media (min-width:640px){.ba-gia-tri{grid-template-columns:repeat(3,1fr)}.bia{grid-template-columns:260px 1fr}.hoi-dong{grid-template-columns:1fr 1fr}}
html[data-theme=co] .huy{box-shadow:none;border-radius:50%}html[data-theme=co] .goi,html[data-theme=co] .hd-nguoi,html[data-theme=co] .muc-luc{border-radius:0}
html[data-theme=co] .sen{filter:grayscale(1) contrast(.9);opacity:.75}html[data-theme=co] .bia img{box-shadow:none}

/* ===== red design after the printed Tộc Ước booklet (2026): deep red and gold, cream paper, bronze-drum ring, clouds, lotus ===== */
html[data-theme=do]{--do:#a3141a;--do-dam:#6d0a0f;--vang:#e9c46a;--vang-dam:#a8741f;--giay:#fbf3df;--giay-dam:#f4e6c2;--muc:#3a231c;--vien:#e0c88f}
html[data-theme=do] body{background:var(--giay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23e3b04b'%3E%3Ccircle cx='100' cy='100' r='97' stroke-width='1.2'/%3E%3Ccircle cx='100' cy='100' r='91' stroke-width='5' stroke-dasharray='2 5'/%3E%3Ccircle cx='100' cy='100' r='84' stroke-width='.8'/%3E%3Ccircle cx='100' cy='100' r='76' stroke-width='7' stroke-dasharray='9 5'/%3E%3Ccircle cx='100' cy='100' r='68' stroke-width='.8'/%3E%3Ccircle cx='100' cy='100' r='61' stroke-width='5' stroke-dasharray='1.5 4.5'/%3E%3Ccircle cx='100' cy='100' r='54' stroke-width='.8'/%3E%3Ccircle cx='100' cy='100' r='46' stroke-width='8' stroke-dasharray='12 6'/%3E%3Ccircle cx='100' cy='100' r='38' stroke-width='.8'/%3E%3Ccircle cx='100' cy='100' r='32' stroke-width='4' stroke-dasharray='2 3'/%3E%3Ccircle cx='100' cy='100' r='26' stroke-width='1'/%3E%3C/g%3E%3Cpath fill='%23e3b04b' d='M100 76l4 14 13-7-7 13 14 4-14 4 7 13-13-7-4 14-4-14-13 7 7-13-14-4 14-4-7-13 13 7z'/%3E%3C/svg%3E") 50% 300px/min(560px,120vw) no-repeat;background-blend-mode:normal}
html[data-theme=do] body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 30%,#fbf3df00,#fbf3dfcc 60%);z-index:-1}
html[data-theme=do] main{background:linear-gradient(#fbf3dfe8,#fbf3dfe8)}
html[data-theme=do] .top{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='%23c4181f' stroke='%23e3b04b' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23e3b04b' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3C/g%3E%3C/svg%3E") -14px -8px/86px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='%23c4181f' stroke='%23e3b04b' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23e3b04b' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3C/g%3E%3C/svg%3E") calc(100% + 16px) -10px/96px no-repeat,linear-gradient(180deg,#b3161d,#7c0c12);border-bottom:3px solid var(--vang);box-shadow:0 2px 0 #7c0c12,0 4px 0 var(--vang-dam)}
html[data-theme=do] .brand b{background:linear-gradient(180deg,#fff1b8,#e9b949 55%,#b97c1c);-webkit-background-clip:text;background-clip:text;color:transparent;letter-spacing:.06em}
html[data-theme=do] .seal{background:linear-gradient(180deg,#f6d77f,#c8922c);color:#7c0c12;border-color:#fff1b8}
html[data-theme=do] .hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#7a0b10 0,#a8151b 38%,#d2491f 72%,#f08a2b 100%);border-bottom:4px solid var(--vang)}
html[data-theme=do] .hero:before{content:"";position:absolute;left:50%;top:-70px;width:min(520px,130vw);aspect-ratio:1;transform:translateX(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23e3b04b'%3E%3Ccircle cx='100' cy='100' r='97' stroke-width='1.2'/%3E%3Ccircle cx='100' cy='100' r='91' stroke-width='5' stroke-dasharray='2 5'/%3E%3Ccircle cx='100' cy='100' r='84' stroke-width='.8'/%3E%3Ccircle cx='100' cy='100' r='76' stroke-width='7' stroke-dasharray='9 5'/%3E%3Ccircle cx='100' cy='100' r='68' stroke-width='.8'/%3E%3Ccircle cx='100' cy='100' r='61' stroke-width='5' stroke-dasharray='1.5 4.5'/%3E%3Ccircle cx='100' cy='100' r='54' stroke-width='.8'/%3E%3Ccircle cx='100' cy='100' r='46' stroke-width='8' stroke-dasharray='12 6'/%3E%3Ccircle cx='100' cy='100' r='38' stroke-width='.8'/%3E%3Ccircle cx='100' cy='100' r='32' stroke-width='4' stroke-dasharray='2 3'/%3E%3Ccircle cx='100' cy='100' r='26' stroke-width='1'/%3E%3C/g%3E%3Cpath fill='%23e3b04b' d='M100 76l4 14 13-7-7 13 14 4-14 4 7 13-13-7-4 14-4-14-13 7 7-13-14-4 14-4-7-13 13 7z'/%3E%3C/svg%3E") 50%/contain no-repeat;opacity:.28;pointer-events:none}
html[data-theme=do] .hero .wrap{position:relative;text-align:center;padding-top:30px;padding-bottom:0;gap:10px}
html[data-theme=do] .hero h1{font-size:clamp(2rem,9.5vw,3.6rem);letter-spacing:.05em;background:linear-gradient(180deg,#fff6c9 10%,#f1c453 45%,#b97c1c 80%,#f1c453);-webkit-background-clip:text;background-clip:text;color:transparent;
 filter:drop-shadow(0 2px 2px #4d0508);font-family:"Old Standard TT","Noto Serif",Georgia,serif;font-weight:700}
html[data-theme=do] .hero .noi{font-style:italic;color:#fff3d6}
html[data-theme=do] .hero .cau{font-family:"Italianno","Noto Serif",serif;font-style:normal;font-size:clamp(1.9rem,8vw,2.6rem);line-height:1.1;color:#fff;margin:.3em 0 .1em;text-shadow:0 2px 3px #4d0508;
 padding-bottom:30px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='%23e3b04b' stroke='%23a8741f' stroke-width='.7' stroke-linejoin='round'%3E%3Cpath d='M7 16C11 23 20 27 29 27C22 23 14 19 7 16Z'/%3E%3Cpath d='M53 16C49 23 40 27 31 27C38 23 46 19 53 16Z'/%3E%3Cpath d='M18 9C16 17 21 24 29 26C25 19 23 13 18 9Z'/%3E%3Cpath d='M42 9C44 17 39 24 31 26C35 19 37 13 42 9Z'/%3E%3Cpath d='M30 4C24 12 24 20 30 26C36 20 36 12 30 4Z'/%3E%3C/g%3E%3C/svg%3E") 50% 100%/50px 25px no-repeat,linear-gradient(90deg,transparent,#f1c453 20%,#f1c453 40%,transparent 40%,transparent 60%,#f1c453 60%,#f1c453 80%,transparent) 50% calc(100% - 9px)/min(320px,86%) 1.5px no-repeat}
html[data-theme=do] .hero img{border:0;border-radius:0;display:block;margin-top:14px;width:calc(100% + 32px);max-width:none;margin-left:-16px;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 16%);mask-image:linear-gradient(180deg,transparent 0,#000 16%)}
html[data-theme=do] .nut.vang{background:linear-gradient(180deg,#f7dc8a,#d79f33);color:#5b0a0e;border:1px solid #fff1b8;box-shadow:0 2px 0 #8a5a12}
html[data-theme=do] .hero .nut.vien.sang{border-color:#f7dc8a;color:#fff6d8}
html[data-theme=do] .banner{position:relative;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='%23c4181f' stroke='%23e3b04b' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23e3b04b' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3C/g%3E%3C/svg%3E") -18px -12px/100px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='%23c4181f' stroke='%23e3b04b' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23e3b04b' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3C/g%3E%3C/svg%3E") calc(100% + 18px) -12px/100px no-repeat,linear-gradient(180deg,#a8151b,#7a0b10);border-bottom:3px solid var(--vang);text-align:center}
html[data-theme=do] .banner h1{background:linear-gradient(180deg,#fff6c9,#f1c453 50%,#c0872a);-webkit-background-clip:text;background-clip:text;color:transparent;font-family:"Old Standard TT","Noto Serif",serif;letter-spacing:.04em;text-transform:uppercase}
html[data-theme=do] .banner p{color:#fff1d2;font-style:italic}
html[data-theme=do] .banner .wrap{padding-top:26px;padding-bottom:30px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='%23e3b04b' stroke='%23a8741f' stroke-width='.7' stroke-linejoin='round'%3E%3Cpath d='M7 16C11 23 20 27 29 27C22 23 14 19 7 16Z'/%3E%3Cpath d='M53 16C49 23 40 27 31 27C38 23 46 19 53 16Z'/%3E%3Cpath d='M18 9C16 17 21 24 29 26C25 19 23 13 18 9Z'/%3E%3Cpath d='M42 9C44 17 39 24 31 26C35 19 37 13 42 9Z'/%3E%3Cpath d='M30 4C24 12 24 20 30 26C36 20 36 12 30 4Z'/%3E%3C/g%3E%3C/svg%3E") 50% calc(100% - 4px)/44px 22px no-repeat}
html[data-theme=do] h2.muc,html[data-theme=do] .ve h2{color:var(--do)}
html[data-theme=do] .foot{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='%23c4181f' stroke='%23e3b04b' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23e3b04b' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3C/g%3E%3C/svg%3E") 8px 10px/84px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='%23c4181f' stroke='%23e3b04b' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23e3b04b' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3C/g%3E%3C/svg%3E") calc(100% - 8px) 10px/84px no-repeat,linear-gradient(180deg,#a8151b,#6d0a0f);border-top:4px solid var(--vang);position:relative}
html[data-theme=do] .foot:before{content:"";position:absolute;left:0;right:0;top:-22px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='%23e3b04b' stroke='%23a8741f' stroke-width='.7' stroke-linejoin='round'%3E%3Cpath d='M7 16C11 23 20 27 29 27C22 23 14 19 7 16Z'/%3E%3Cpath d='M53 16C49 23 40 27 31 27C38 23 46 19 53 16Z'/%3E%3Cpath d='M18 9C16 17 21 24 29 26C25 19 23 13 18 9Z'/%3E%3Cpath d='M42 9C44 17 39 24 31 26C35 19 37 13 42 9Z'/%3E%3Cpath d='M30 4C24 12 24 20 30 26C36 20 36 12 30 4Z'/%3E%3C/g%3E%3C/svg%3E") 50% 0/60px 30px no-repeat;pointer-events:none}
html[data-theme=do] .o,html[data-theme=do] .card,html[data-theme=do] .tk,html[data-theme=do] .loc,html[data-theme=do] .nguoi{background-color:#fffaf0}
html[data-theme=do] .o{border-top:4px solid var(--do);box-shadow:0 2px 8px #7a0b1022}
html[data-theme=do] .tabs a.on{background:linear-gradient(180deg,#b3161d,#7c0c12);color:#ffe9a8}
html[data-theme=do] .bang th{background:linear-gradient(180deg,#b3161d,#7c0c12);color:#ffe9a8}
html[data-theme=do] .moc li:before{background:var(--vang);border-color:var(--do)}
html[data-theme=do] .dan h2,html[data-theme=do] .van .chuong h2{font-family:"Old Standard TT","Noto Serif",serif;text-transform:uppercase;letter-spacing:.03em}
/* red design: names are plain text; the per-letter pieces of the handwriting must stay inline everywhere */
.tay i,.o .tay i,.card .tay i{display:inline;font-style:normal;font-size:inherit;color:inherit;font-weight:inherit}
html[data-theme=do] .tay .chu{display:inline;font-size:inherit;color:inherit;opacity:1;letter-spacing:0}
html[data-theme=do] .tay i{position:static;margin:0;opacity:1}
/* gold gradient titles: room above the letters so that stacked Vietnamese accents (Ễ, Ộ) are not clipped */
html[data-theme=do] .hero h1,html[data-theme=do] .banner h1,html[data-theme=do] .brand b{line-height:1.45;padding-top:.12em}
html[data-theme=do] .hero .cau{line-height:1.35}

/* ===== black-and-white design: the booklet's front page redrawn in pen and ink, like an engraving in an old newspaper or pamphlet.
   The Nhà thờ (static/img/nha-tho-ve.png, hatched from the cover picture) and the bronze-drum emblem are the centrepieces. ===== */
html[data-tong=dt] .hero{position:relative;overflow:hidden;background:#e7e5df;color:#161616;border-bottom:3px double #161616}
html[data-tong=dt] .hero:before{content:"";position:absolute;left:50%;top:-60px;width:min(500px,128vw);aspect-ratio:1;transform:translateX(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09' numOctaves='2' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='1.6'/%3E%3C/filter%3E%3Cg filter='url(%23r)'%3E%3Cg fill='none' stroke='%23161616'%3E%3Ccircle cx='100' cy='100' r='97' stroke-width='1.6'/%3E%3Ccircle cx='100' cy='100' r='91' stroke-width='5' stroke-dasharray='1.6 5'/%3E%3Ccircle cx='100' cy='100' r='84' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='76' stroke-width='7' stroke-dasharray='1.2 3.2'/%3E%3Ccircle cx='100' cy='100' r='68' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='61' stroke-width='5' stroke-dasharray='6 4'/%3E%3Ccircle cx='100' cy='100' r='54' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='46' stroke-width='8' stroke-dasharray='1 2.6'/%3E%3Ccircle cx='100' cy='100' r='38' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='32' stroke-width='4' stroke-dasharray='2 3'/%3E%3Ccircle cx='100' cy='100' r='26' stroke-width='1.2'/%3E%3C/g%3E%3Cpath fill='%23161616' d='M100 76l4 14 13-7-7 13 14 4-14 4 7 13-13-7-4 14-4-14-13 7 7-13-14-4 14-4-7-13 13 7z'/%3E%3C/g%3E%3C/svg%3E") 50%/contain no-repeat;opacity:.34;pointer-events:none}
html[data-tong=dt] .hero .wrap{position:relative;text-align:center;gap:8px;padding-bottom:0}
html[data-tong=dt] .hero h1{color:#111;font-family:"Old Standard TT","Noto Serif",serif;font-weight:700;font-size:clamp(2rem,9.5vw,3.4rem);line-height:1.35;letter-spacing:.05em;text-shadow:1px 1px 0 #e7e5df,2px 2px 0 #1116}
html[data-tong=dt] .hero .noi{color:#222;font-style:italic}
html[data-tong=dt] .hero .cau{border:0;border-image:none;color:#111;font-style:italic;font-weight:bold;font-size:1.2rem;letter-spacing:.04em;padding:0 0 30px;margin:.4em 0 .2em;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke='%23161616' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M7 16C11 23 20 27 29 27C22 23 14 19 7 16Z'/%3E%3Cpath d='M53 16C49 23 40 27 31 27C38 23 46 19 53 16Z'/%3E%3Cpath d='M18 9C16 17 21 24 29 26C25 19 23 13 18 9Z'/%3E%3Cpath d='M42 9C44 17 39 24 31 26C35 19 37 13 42 9Z'/%3E%3Cpath d='M30 4C24 12 24 20 30 26C36 20 36 12 30 4Z'/%3E%3Cpath d='M30 9v14M21 14l6 9M39 14l-6 9' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E") 50% 100%/50px 25px no-repeat,linear-gradient(#111,#111) 50% calc(100% - 12px)/min(300px,84%) 1px no-repeat}
html[data-tong=dt] .hero .nut.vang,html[data-tong=dt] .hero .nut.vien.sang{color:#111;border:2px solid #111;border-image:none;background:#e7e5df;box-shadow:3px 3px 0 #111}
html[data-tong=dt] .hero .khung-anh{display:block;margin:14px -16px 0;padding:0;border:0;border-top:2px solid #111;background:none;box-shadow:none;transform:none;border-radius:0}
html[data-tong=dt] .hero .khung-anh:before,html[data-tong=dt] .hero .khung-anh:after{display:none}
html[data-tong=dt] .hero .khung-anh img{width:100%;display:block;filter:contrast(1.1) sepia(.08);border:0;border-radius:0;mix-blend-mode:multiply}
html[data-tong=dt] .top{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='none' stroke='%23bdbdbd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3Cpath d='M12 44h66M20 47h50' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='none' stroke='%23bdbdbd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3Cpath d='M12 44h66M20 47h50' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E");background-position:-16px -8px,calc(100% + 18px) -10px;background-size:88px,98px;background-repeat:no-repeat}
html[data-tong=dt] .banner{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='none' stroke='%23161616' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3Cpath d='M12 44h66M20 47h50' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E") -18px -10px/100px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='none' stroke='%23161616' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3Cpath d='M12 44h66M20 47h50' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E") calc(100% + 18px) -10px/100px no-repeat,#e7e5df;border-bottom:3px double #161616;text-align:center}
html[data-tong=dt] .banner h1{font-family:"Old Standard TT","Noto Serif",serif;text-transform:uppercase;letter-spacing:.05em}
html[data-tong=dt] .sen{filter:none;opacity:1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke='%23161616' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M7 16C11 23 20 27 29 27C22 23 14 19 7 16Z'/%3E%3Cpath d='M53 16C49 23 40 27 31 27C38 23 46 19 53 16Z'/%3E%3Cpath d='M18 9C16 17 21 24 29 26C25 19 23 13 18 9Z'/%3E%3Cpath d='M42 9C44 17 39 24 31 26C35 19 37 13 42 9Z'/%3E%3Cpath d='M30 4C24 12 24 20 30 26C36 20 36 12 30 4Z'/%3E%3Cpath d='M30 9v14M21 14l6 9M39 14l-6 9' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E") 50% 50%/52px 26px no-repeat,linear-gradient(90deg,#161616 0 36%,transparent 36% 64%,#161616 64%) 50% 55%/min(300px,80%) 1px no-repeat}
html[data-tong=dt] .huy{background-color:#e7e5df;border:2px solid #161616;box-shadow:3px 3px 0 #161616;filter:grayscale(1) contrast(1.6) invert(1) brightness(1.1)}
html[data-tong=dt] .bia .khung-anh img{mix-blend-mode:multiply}

/* ===== brown old-photograph design: the same pamphlet front page, in brown ink on yellowed paper (copy of the black-and-white block with brown ink).
   Original comment: black-and-white design: the booklet's front page redrawn in pen and ink, like an engraving in an old newspaper or pamphlet.
   The Nhà thờ (static/img/nha-tho-ve.png, hatched from the cover picture) and the bronze-drum emblem are the centrepieces. ===== */
html[data-tong=co] .hero{position:relative;overflow:hidden;background:#efe0b9;color:#3a2614;border-bottom:3px double #3a2614}
html[data-tong=co] .hero:before{content:"";position:absolute;left:50%;top:-60px;width:min(500px,128vw);aspect-ratio:1;transform:translateX(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09' numOctaves='2' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='1.6'/%3E%3C/filter%3E%3Cg filter='url(%23r)'%3E%3Cg fill='none' stroke='%233a2614'%3E%3Ccircle cx='100' cy='100' r='97' stroke-width='1.6'/%3E%3Ccircle cx='100' cy='100' r='91' stroke-width='5' stroke-dasharray='1.6 5'/%3E%3Ccircle cx='100' cy='100' r='84' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='76' stroke-width='7' stroke-dasharray='1.2 3.2'/%3E%3Ccircle cx='100' cy='100' r='68' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='61' stroke-width='5' stroke-dasharray='6 4'/%3E%3Ccircle cx='100' cy='100' r='54' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='46' stroke-width='8' stroke-dasharray='1 2.6'/%3E%3Ccircle cx='100' cy='100' r='38' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='32' stroke-width='4' stroke-dasharray='2 3'/%3E%3Ccircle cx='100' cy='100' r='26' stroke-width='1.2'/%3E%3C/g%3E%3Cpath fill='%233a2614' d='M100 76l4 14 13-7-7 13 14 4-14 4 7 13-13-7-4 14-4-14-13 7 7-13-14-4 14-4-7-13 13 7z'/%3E%3C/g%3E%3C/svg%3E") 50%/contain no-repeat;opacity:.34;pointer-events:none}
html[data-tong=co] .hero .wrap{position:relative;text-align:center;gap:8px;padding-bottom:0}
html[data-tong=co] .hero h1{color:#2e1d0e;font-family:"Old Standard TT","Noto Serif",serif;font-weight:700;font-size:clamp(2rem,9.5vw,3.4rem);line-height:1.35;letter-spacing:.05em;text-shadow:1px 1px 0 #efe0b9,2px 2px 0 #2e1d0e6}
html[data-tong=co] .hero .noi{color:#3a2614;font-style:italic}
html[data-tong=co] .hero .cau{border:0;border-image:none;color:#2e1d0e;font-style:italic;font-weight:bold;font-size:1.2rem;letter-spacing:.04em;padding:0 0 30px;margin:.4em 0 .2em;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke='%233a2614' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M7 16C11 23 20 27 29 27C22 23 14 19 7 16Z'/%3E%3Cpath d='M53 16C49 23 40 27 31 27C38 23 46 19 53 16Z'/%3E%3Cpath d='M18 9C16 17 21 24 29 26C25 19 23 13 18 9Z'/%3E%3Cpath d='M42 9C44 17 39 24 31 26C35 19 37 13 42 9Z'/%3E%3Cpath d='M30 4C24 12 24 20 30 26C36 20 36 12 30 4Z'/%3E%3Cpath d='M30 9v14M21 14l6 9M39 14l-6 9' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E") 50% 100%/50px 25px no-repeat,linear-gradient(#2e1d0e,#2e1d0e) 50% calc(100% - 12px)/min(300px,84%) 1px no-repeat}
html[data-tong=co] .hero .nut.vang,html[data-tong=co] .hero .nut.vien.sang{color:#2e1d0e;border:2px solid #2e1d0e;border-image:none;background:#efe0b9;box-shadow:3px 3px 0 #2e1d0e}
html[data-tong=co] .hero .khung-anh{display:block;margin:14px -16px 0;padding:0;border:0;border-top:2px solid #2e1d0e;background:none;box-shadow:none;transform:none;border-radius:0}
html[data-tong=co] .hero .khung-anh:before,html[data-tong=co] .hero .khung-anh:after{display:none}
html[data-tong=co] .hero .khung-anh img{width:100%;display:block;filter:none;border:0;border-radius:0;mix-blend-mode:multiply}
html[data-tong=co] .top{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='none' stroke='%23d8c594' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3Cpath d='M12 44h66M20 47h50' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='none' stroke='%23d8c594' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3Cpath d='M12 44h66M20 47h50' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E");background-position:-16px -8px,calc(100% + 18px) -10px;background-size:88px,98px;background-repeat:no-repeat}
html[data-tong=co] .banner{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='none' stroke='%233a2614' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3Cpath d='M12 44h66M20 47h50' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E") -18px -10px/100px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='none' stroke='%233a2614' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40C2 40 1 31 8 29C6 19 18 14 24 21C27 9 44 8 48 19C56 12 68 17 66 27C76 24 84 31 80 40Z'/%3E%3Cpath d='M17 37C11 37 11 29 17 29C21 29 22 34 18 34'/%3E%3Cpath d='M37 36C28 36 28 23 38 23C45 23 46 31 39 31C36 31 36 27 39 28'/%3E%3Cpath d='M60 37C53 37 53 28 61 28C66 28 67 34 62 34'/%3E%3Cpath d='M12 44h66M20 47h50' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E") calc(100% + 18px) -10px/100px no-repeat,#efe0b9;border-bottom:3px double #3a2614;text-align:center}
html[data-tong=co] .banner h1{font-family:"Old Standard TT","Noto Serif",serif;text-transform:uppercase;letter-spacing:.05em}
html[data-tong=co] .sen{filter:none;opacity:1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke='%233a2614' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M7 16C11 23 20 27 29 27C22 23 14 19 7 16Z'/%3E%3Cpath d='M53 16C49 23 40 27 31 27C38 23 46 19 53 16Z'/%3E%3Cpath d='M18 9C16 17 21 24 29 26C25 19 23 13 18 9Z'/%3E%3Cpath d='M42 9C44 17 39 24 31 26C35 19 37 13 42 9Z'/%3E%3Cpath d='M30 4C24 12 24 20 30 26C36 20 36 12 30 4Z'/%3E%3Cpath d='M30 9v14M21 14l6 9M39 14l-6 9' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E") 50% 50%/52px 26px no-repeat,linear-gradient(90deg,#3a2614 0 36%,transparent 36% 64%,#3a2614 64%) 50% 55%/min(300px,80%) 1px no-repeat}
html[data-tong=co] .huy{background-color:#efe0b9;border:2px solid #3a2614;box-shadow:3px 3px 0 #3a2614;filter:sepia(1) contrast(1.3) invert(1) hue-rotate(180deg) brightness(1.05)}
html[data-tong=co] .bia .khung-anh img{mix-blend-mode:multiply}
html[data-tong=co] .sen{filter:none;opacity:1}
/* the cloud corners must not replace the dark header background of the old designs */
html[data-tong=dt] .top,html[data-tong=co] .top{background-color:var(--do-dam)}
html[data-tong=dt] .top{background-image:none}html[data-tong=co] .top{background-image:none}
html[data-tong=dt] .top,html[data-tong=co] .top{background:linear-gradient(180deg,var(--do),var(--do-dam))}

/* old designs with Ảnh màu: the colour picture is shown plainly in the pamphlet front page */
html[data-anh=mau] .hero .khung-anh img{mix-blend-mode:normal;filter:none}

/* zoom viewer: the picture is shown sharp and clean: no old-photo filter, no blur, no film noise on top */
html .xem .vung img,html[data-theme=co] .xem .vung img,html[data-tong=dt] .xem .vung img,html[data-theme=co][data-anh=mau] .xem .vung img,
html[data-theme=co]:not([data-anh=mau]) .xem .vung img,html[data-tong=dt]:not([data-anh=mau]) .xem .vung img,html[data-tong=dt][data-anh=mau] .xem .vung img
 {filter:none!important;mix-blend-mode:normal;image-rendering:auto;opacity:1}
html.xem-mo canvas.phim{display:none}
dialog.xem,dialog.xem *{text-shadow:none}
html.phim-chay dialog.xem .vung,html.phim-chay dialog.xem .vung *{filter:none!important}

.xem .thanh .doi{padding:0 12px;white-space:nowrap}.xem .thanh .doi[hidden]{display:none}
.xem .vung{background:#fff0}.xem .vung img[src$=".png"]{background:#f4f2ec}

/* the drawings keep their look whatever the photo setting (this cancels the earlier Ảnh màu exception for the front picture) */
html[data-anh=mau] .hero .khung-anh img{mix-blend-mode:multiply}
/* zoom viewer bar: every button on one line, also on a 320 px phone */
.xem .thanh{gap:4px;flex-wrap:nowrap;overflow-x:auto;padding-left:6px;padding-right:6px}
.xem .thanh button{flex:none;white-space:nowrap;padding:0 9px;font-size:.84rem;min-width:40px}
.xem .thanh .muc-zoom{flex:none;font-size:.8rem;min-width:38px;text-align:center}
.xem .thanh .dong{margin-left:auto}

/* zoom viewer bar: the buttons share the width of the screen and their text scales with it (320 px to desktop), no scrolling */
.xem .thanh{display:flex;gap:1.2vw;flex-wrap:nowrap;overflow:hidden;padding:8px 1.6vw;align-items:center}
.xem .thanh button{flex:1 1 auto;min-width:0;white-space:nowrap;padding:0 1.4vw;font-size:clamp(.66rem,3.3vw,.95rem);min-height:44px;letter-spacing:0}
.xem .thanh .muc-zoom{flex:0 0 auto;min-width:0;font-size:clamp(.62rem,3vw,.85rem);padding:0 .6vw}
.xem .thanh .dong{margin-left:0;flex:0 0 clamp(36px,11vw,48px)}
.xem .thanh button[data-z="-1"],.xem .thanh button[data-z="1"]{flex:0 0 clamp(34px,10.5vw,48px)}
@media (min-width:700px){.xem .thanh{gap:8px;justify-content:center}.xem .thanh button{flex:0 0 auto;padding:0 16px}}
html dialog.xem .thanh button,html[data-theme=co] dialog.xem .thanh button{font-size:clamp(.6rem,3.1vw,.95rem)!important;padding:0 1vw;font-family:inherit;overflow:hidden}
@media (min-width:700px){html dialog.xem .thanh button,html[data-theme=co] dialog.xem .thanh button{padding:0 16px}}

/* pressed and focused controls: never the browser blue. A light grey flash when tapped, a grey ring for keyboard focus
   (a pale gold in the red design). Applies everywhere: links, buttons, tabs, cards, the viewer. */
html{-webkit-tap-highlight-color:rgba(190,190,190,.35);accent-color:#777}
a,button,summary,label,input,select,[hx-get],.nut,.card,.pl{-webkit-tap-highlight-color:rgba(190,190,190,.35)}
a:focus,button:focus,summary:focus,input:focus,select:focus,[tabindex]:focus{outline:none}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible,.the input:focus-visible+span
 {outline:2px solid #9a9a9a;outline-offset:2px;box-shadow:none}
a:active,button:active,summary:active,.nut:active,.tabs a:active,.kieu a:active,.kieu button:active,.dem:active,.goi:active,.muc-luc a:active,.the input:active+span,.xem .thanh button:active
 {background-color:#d9d9d9!important;background-image:none!important;color:#161616!important;border-color:#9a9a9a}
a:active{text-decoration-color:#9a9a9a}
::selection{background:#cfcfcf;color:#111}
html[data-theme=do]{-webkit-tap-highlight-color:rgba(233,196,106,.35);accent-color:#a3141a}
html[data-theme=do] a,html[data-theme=do] button,html[data-theme=do] summary,html[data-theme=do] label{-webkit-tap-highlight-color:rgba(233,196,106,.35)}
html[data-theme=do] a:focus-visible,html[data-theme=do] button:focus-visible,html[data-theme=do] summary:focus-visible,html[data-theme=do] input:focus-visible{outline-color:#c99a3a}
html[data-theme=do] a:active,html[data-theme=do] button:active,html[data-theme=do] .nut:active,html[data-theme=do] .tabs a:active,html[data-theme=do] .kieu a:active,html[data-theme=do] .goi:active
 {background-color:#f3e2b0!important;color:#5b0a0e!important;border-color:#c99a3a}
html[data-theme=do] ::selection{background:#f1d99a;color:#3a231c}
/* plain text links inside paragraphs flash only their text, not a block */
p a:active,li a:active,td a:active{background-color:transparent!important;color:#666!important}
html[data-theme=do] p a:active,html[data-theme=do] li a:active,html[data-theme=do] td a:active{background-color:transparent!important;color:#b8862f!important}
p a.nut:active,p a.goi:active{background-color:#d9d9d9!important;color:#161616!important}
html[data-theme=do] p a.nut:active,html[data-theme=do] p a.goi:active{background-color:#f3e2b0!important;color:#5b0a0e!important}

/* ornaments never run into text: smaller clouds and lotus, and the text keeps clear of them at every width and text length.
   Page banners: clouds sit in a band of their own above the title; the lotus has its own band below the subtitle. */
html[data-theme=do] .banner,html[data-tong=dt] .banner,html[data-tong=co] .banner{background-size:58px auto,58px auto,auto;background-position:-8px -6px,calc(100% + 8px) -6px,0 0}
html[data-theme=do] .banner .wrap,html[data-tong=dt] .banner .wrap,html[data-tong=co] .banner .wrap{padding-top:34px;padding-left:22px;padding-right:22px}
html[data-theme=do] .banner .wrap{padding-bottom:44px;background-size:34px 17px;background-position:50% calc(100% - 12px)}
html[data-theme=do] .banner p,html[data-tong=dt] .banner p,html[data-tong=co] .banner p{margin-bottom:0;text-wrap:balance}
html .banner h1{text-wrap:balance;overflow-wrap:anywhere}
/* home page motto: the lotus rule has its own room below the text, however many lines the motto takes */
html[data-theme=do] .hero .cau{padding-bottom:40px;background-size:40px 20px,min(260px,80%) 1.5px;background-position:50% calc(100% - 6px),50% calc(100% - 15px)}
html[data-tong=dt] .hero .cau,html[data-tong=co] .hero .cau{padding-bottom:40px;background-size:40px 20px,min(260px,80%) 1px;background-position:50% calc(100% - 6px),50% calc(100% - 16px)}
/* lotus dividers between sections: smaller, with air above and below */
.sen{height:22px;margin:14px auto 10px;background-size:40px 20px,min(260px,76%) 1px}
html[data-tong=dt] .sen,html[data-tong=co] .sen{background-size:40px 20px,min(260px,76%) 1px}
.dan h2{margin-top:.5em}.nhan-gui .khau{margin-bottom:.2em}
/* footer lotus: on the gold line, clear of the last text of the page */
html[data-theme=do] .foot{margin-top:46px}
html[data-theme=do] .foot:before{top:-16px;height:20px;background-size:40px 20px}
html[data-theme=do] .foot .quick{padding-top:22px}
/* header: on phones the cloud corners would sit behind the design buttons, so they are left out there */
@media (max-width:760px){html[data-theme=do] .top{background:linear-gradient(180deg,#b3161d,#7c0c12)}
 html[data-theme=do] .foot{background:linear-gradient(180deg,#a8151b,#6d0a0f)}}
@media (min-width:761px){html[data-theme=do] .top{background-size:70px auto,78px auto,auto}
 html[data-theme=do] .banner,html[data-tong=dt] .banner,html[data-tong=co] .banner{background-size:84px auto,84px auto,auto}}

.tai-ve{margin-top:2.2em;padding-top:1em;border-top:1px solid var(--vien);font-size:.88rem;color:#6d5a4b}

/* page banners: no cloud corners (they repeated the clouds of the top menu); the title stands alone, with the lotus below in the red design */
html[data-theme=do] .banner{background:linear-gradient(180deg,#a8151b,#7a0b10)}
html[data-tong=dt] .banner{background:#e7e5df}html[data-tong=co] .banner{background:#efe0b9}
html[data-theme=do] .banner .wrap,html[data-tong=dt] .banner .wrap,html[data-tong=co] .banner .wrap{padding-top:24px}

/* desktop (two columns): the front picture stays inside its own column instead of sliding under the title.
   The phone layout lets the picture run edge to edge with negative margins; that must not apply here. */
@media (min-width:760px){
 html[data-tong=dt] .hero .wrap,html[data-tong=co] .hero .wrap,html[data-theme=do] .hero .wrap{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:36px;padding-top:34px;padding-bottom:34px}
 html[data-tong=dt] .hero .chu-hero,html[data-tong=co] .hero .chu-hero,html[data-theme=do] .hero .chu-hero{min-width:0;position:relative;z-index:1}
 html[data-tong=dt] .hero .khung-anh,html[data-tong=co] .hero .khung-anh{margin:0;min-width:0;border:2px solid #161616;box-shadow:5px 5px 0 #161616;background:#f4f2ec;overflow:hidden}
 html[data-tong=co] .hero .khung-anh{border-color:#3a2614;box-shadow:5px 5px 0 #3a2614;background:#f6ecd0}
 html[data-tong=dt] .hero .khung-anh img,html[data-tong=co] .hero .khung-anh img{width:100%;height:auto;display:block;margin:0}
 html[data-theme=do] .hero .khung-anh{margin:0;min-width:0;display:block}
 html[data-theme=do] .hero img{width:100%;margin:0;-webkit-mask-image:none;mask-image:none;border:2px solid #f1c453;box-shadow:0 8px 24px #4d050866}
 html[data-tong=dt] .hero:before,html[data-tong=co] .hero:before,html[data-theme=do] .hero:before{left:25%;top:50%;transform:translate(-50%,-50%);width:min(520px,46vw)}
 html[data-tong=dt] .hero h1,html[data-tong=co] .hero h1,html[data-theme=do] .hero h1{font-size:clamp(2rem,4.2vw,3.4rem)}
}

/* zoom viewer in the old designs: photographs stay in the tone of the design (black-and-white, or brown), sharp and without noise.
   Only a picture the visitor switched to with "Ảnh màu" is shown in colour. */
html[data-tong=dt] .xem .vung img:not(.giu-mau){filter:grayscale(1) contrast(1.02)!important}
html[data-tong=co] .xem .vung img:not(.giu-mau){filter:grayscale(1) sepia(.55) contrast(.95) brightness(1.03)!important}
html[data-tong=dt][data-anh=mau] .xem .vung img:not(.giu-mau),html[data-tong=co][data-anh=mau] .xem .vung img:not(.giu-mau){filter:none!important}
html[data-theme=co] .xem .vung img[src*="-ve-"]:not(.giu-mau),html[data-theme=co] .xem .vung img[src*="-ve."]:not(.giu-mau){filter:none!important}
.xem .chu-anh .huong{display:none}

/* placeholder pictures are tiny cuts from the first design image: show them at their own size, never stretched across the page */
.van img.rong{width:auto;max-width:100%;display:block;margin:0 auto}
.hd img{width:auto;max-width:100%}

/* red design: photographs are shown exactly as they are, never blended with the red background or toned
   (a blend rule meant for the drawings of the old designs was also catching the red design when "Ảnh màu" was remembered) */
html[data-theme=do] .khung-anh img,html[data-theme=do] .hero .khung-anh img,html[data-theme=do] .bia .khung-anh img{mix-blend-mode:normal!important;filter:none!important;opacity:1!important}
html[data-theme=do] .hero .khung-anh{background:none;isolation:isolate}

/* desktop: the search card sits in a narrow side column, so the index tabs are laid out in rows there
   (branches 2 x 2; generations: "Tất cả" on its own row, then I-IV and V-VIII) with thin rules, so every label is readable */
@media (min-width:760px){
 .the,.the.so{display:grid;gap:4px;border-bottom:0;padding:0;flex-wrap:wrap}
 .the:not(.so){grid-template-columns:1fr 1fr}
 .the.so{grid-template-columns:repeat(4,minmax(0,1fr))}
 .the.so label:first-child{grid-column:1 / -1}
 .the label,.the:not(.so) label{min-width:0;flex:none}
 .the span,.the.so span,html[data-theme=co] .the span,html[data-theme=co] .the.so span,.the.so label:first-child span
  {margin:0;min-width:0;min-height:30px;line-height:28px;padding:0 2px;font-size:.8rem;letter-spacing:0;white-space:nowrap;overflow:visible;
   border:1px solid #8a7a66;border-image:none;border-radius:0;box-shadow:none;top:0;position:static;transform:none}
 .the.so span,html[data-theme=co] .the.so span{font-size:.82rem}
 .the input:checked+span,html[data-theme=co] .the input:checked+span{margin:0;min-height:30px;line-height:28px;top:0;position:static;border:1px solid var(--do);border-image:none;
  background:var(--do);color:#fff;font-weight:bold}
 html[data-theme=co] .the span,html[data-theme=co] .the.so span{border-color:var(--muc);background:transparent}
 html[data-theme=co] .the input:checked+span{border:1px solid var(--muc);background:var(--muc);color:var(--giay)}
 .phieu{padding-left:10px;padding-right:10px}
}
@media (min-width:760px){
 html[data-theme=co] .the label span,html[data-theme=co] .the.so label span,html[data-theme=co] .the label:nth-child(n) span
  {border:1px solid var(--muc)!important;border-image:none!important;border-image-source:none!important;font-family:"Cousine","Courier New",monospace;color:var(--muc)}
 html[data-theme=co] .the label input:checked+span,html[data-theme=co] .the label:nth-child(n) input:checked+span{background:var(--muc);color:var(--giay)}
}

/* desktop index tabs, second version (Phong, 22 Nov 22:38): one row of real tabs again. The chosen tab is wide, its neighbours a little
   less, the rest narrow; choosing or pointing at a tab shifts the widths, so the labels around it become readable. */
@media (min-width:760px){
 .the,.the.so,.the:not(.so){display:flex;flex-wrap:nowrap;gap:2px;grid-template-columns:none;border-bottom:2px solid var(--muc);padding:0 1px;align-items:flex-end}
 .the label,.the:not(.so) label,.the.so label,.the.so label:first-child{flex:1 1 0;min-width:0;grid-column:auto;transition:flex-grow .22s ease}
 .the.so label:first-child{flex-grow:2.6}
 .the label:has(input:checked){flex-grow:3.4}
 .the label:has(input:checked)+label,.the label:has(+label input:checked){flex-grow:2.3}
 .the label:has(input:checked)+label+label,.the label:has(+label+label input:checked){flex-grow:1.5}
 .the label:hover{flex-grow:3}
 .the label:hover+label,.the label:has(+label:hover){flex-grow:1.9}
 .the label span,.the.so label span,html[data-theme=co] .the label span,html[data-theme=co] .the.so label span,html[data-theme=co] .the label:nth-child(n) span
  {display:block;overflow:hidden;text-overflow:clip;white-space:nowrap;text-align:center;padding:0 1px;font-size:.74rem;min-height:28px;line-height:26px;
   border-bottom:0!important;margin-top:5px}
 .the label input:checked+span,html[data-theme=co] .the label input:checked+span,html[data-theme=co] .the label:nth-child(n) input:checked+span
  {margin-top:0;min-height:33px;line-height:31px;font-size:.8rem}
 .the:not(.so) label span{font-size:.72rem}
}
@media (min-width:760px){
 /* more room for the row of tabs: it runs the full width of the card, with hairline rules */
 .phieu{padding-left:6px;padding-right:6px}
 html[data-theme=co] .phieu{border-width:6px;padding:4px 4px 18px}
 .the,.the.so,.the:not(.so){gap:1px;padding:0;margin:0 -2px}
 .the label span,.the.so label span,html[data-theme=co] .the label span,html[data-theme=co] .the.so label span,html[data-theme=co] .the label:nth-child(n) span
  {padding:0;font-size:.72rem;letter-spacing:-.03em;border-width:1px!important}
 .the.so label:first-child span{font-size:.66rem;letter-spacing:-.05em}
 /* at the start ("Tất cả" chosen) the first tabs are wide enough to read and the row thins out towards the end */
 .the.so label:first-child:has(input:checked){flex-grow:3.6}
 .the.so label:first-child:has(input:checked)+label{flex-grow:2.2}
 .the.so label:first-child:has(input:checked)+label+label{flex-grow:2.1}
 .the.so label:first-child:has(input:checked)+label+label+label{flex-grow:2}
 .the.so label:first-child:has(input:checked)+label+label+label+label{flex-grow:1.7}
 .the.so label:first-child:has(input:checked)+label+label+label+label+label{flex-grow:1.2}
 /* a chosen number: it and its neighbours open up, "Tất cả" keeps a readable stub */
 .the.so label:first-child{flex-grow:2}
 .the.so label:has(input:checked){flex-grow:3}
 .the.so label:has(input:checked)+label,.the.so label:has(+label input:checked){flex-grow:2.6}
 .the.so label:has(input:checked)+label+label,.the.so label:has(+label+label input:checked){flex-grow:1.8}
 .the.so label:hover{flex-grow:3.2}
}
@media (min-width:760px){
 /* the four branch tabs fit side by side: no shifting needed there */
 .the:not(.so) label,.the:not(.so) label:has(input:checked),.the:not(.so) label:has(input:checked)+label,.the:not(.so) label:has(+label input:checked),
 .the:not(.so) label:has(input:checked)+label+label,.the:not(.so) label:has(+label+label input:checked),.the:not(.so) label:hover,.the:not(.so) label:hover+label,.the:not(.so) label:has(+label:hover){flex-grow:1}
 .the:not(.so) label:first-child{flex-grow:1.25}
 .the:not(.so) label span,html[data-theme=co] .the:not(.so) label span,html[data-theme=co] .the:not(.so) label:nth-child(n) span{font-size:.68rem;letter-spacing:-.04em}
 .the.so label:first-child:has(input:checked){flex-grow:4.4}
 .the.so label:first-child span,html[data-theme=co] .the.so label:first-child span{font-size:.62rem!important;letter-spacing:-.06em}
}

/* ===== design "Nay → xưa" (data-tong=pha): the red design at the top of a page; as the visitor scrolls down, the whole screen
   ages smoothly: colour drains to black-and-white with a trace of brown, paper grain and a dark edge come in.
   One number drives it all: --xua, 0 at the top and 1 at the bottom, set from the scroll position by static/anh.js.
   (The first version aged single cards by generation; Phong, 22 Nov 22:52: that was chaos, it has to be fluent.) ===== */
html[data-tong=pha]{--xua:0}
html[data-tong=pha] body:after{content:"";position:fixed;inset:0;z-index:60;pointer-events:none;
 -webkit-backdrop-filter:grayscale(var(--xua)) sepia(calc(var(--xua)*.16)) contrast(calc(1 + var(--xua)*.08)) brightness(calc(1 - var(--xua)*.04));
 backdrop-filter:grayscale(var(--xua)) sepia(calc(var(--xua)*.16)) contrast(calc(1 + var(--xua)*.08)) brightness(calc(1 - var(--xua)*.04));
 background:radial-gradient(ellipse at 50% 45%,transparent 55%,rgba(20,16,10,calc(var(--xua)*.38)) 100%)}
html[data-tong=pha]:after{content:"";position:fixed;inset:0;z-index:61;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='8'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.5 1.05'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");background-size:220px 220px;
 opacity:calc(var(--xua)*.5);mix-blend-mode:multiply}
/* corners lose their modern rounding on the way down */
html[data-tong=pha] :is(.card,.o,.tk,.loc,.nguoi,.hd-nguoi,.muc-luc,.tabs,.nut,.khung-anh,.khung-anh img,.phieu,.cay){border-radius:calc((1 - var(--xua))*8px)}
html[data-tong=pha] :is(.goi,.dem,.nhan){border-radius:calc((1 - var(--xua))*22px)}
.kieu a.k-pha i{background:linear-gradient(180deg,#a3141a 0 50%,#d9d9d9 50%)}
@media (prefers-reduced-motion:reduce){html[data-tong=pha]:after{display:none}}

html[data-tong=pha][data-chieu=nguoc]{--xua:1}  /* old-first pages are old before the script has run */

/* "Nay → xưa": the lettering of each block follows its era (classes set once by static/anh.js) */
html[data-tong=pha] .e-nay{font-family:"Noto Serif",Georgia,serif}
html[data-tong=pha] .e-giua{font-family:"Old Standard TT","Noto Serif",Georgia,serif;letter-spacing:.005em}
html[data-tong=pha] .e-giua :is(h1,h2,h3,b,.pl,th){font-family:"Old Standard TT","Noto Serif",serif}
html[data-tong=pha] .e-xua{font-family:"Cousine","Courier New",monospace;font-size:.94em;letter-spacing:-.01em}
html[data-tong=pha] section.e-xua,html[data-tong=pha] .chuong.e-xua,html[data-tong=pha] .van>.e-xua{font-size:.95em}
html[data-tong=pha] .e-xua :is(h2,h3){font-family:"Old Standard TT","Noto Serif",serif;letter-spacing:.03em}
html[data-tong=pha] .card.e-xua,html[data-tong=pha] .o.e-xua,html[data-tong=pha] tr.e-xua,html[data-tong=pha] .hd-nguoi.e-xua{font-size:.9em}
html[data-tong=pha] .card:is(.e-nay,.e-giua,.e-xua){font-size:1em}html[data-tong=pha] .card.e-xua :is(.hieu,.nam){font-size:.86em}
html[data-tong=pha] .card.e-giua .pl{font-weight:700}
/* names in the oldest blocks are written by hand in ink */
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay{font-weight:400;letter-spacing:0;text-decoration:none;line-height:1.1;display:inline-block;color:inherit;
 filter:var(--loc,none);transform:rotate(calc(var(--xien,0deg)*.5))}
html[data-tong=pha] .o.e-xua b.tay{display:block}
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay .chu{display:inline-block;font-size:inherit;letter-spacing:var(--gian,0);
 transform:translateX(calc(var(--k,0px)*var(--ban,1))) rotate(calc(var(--r,0deg)*var(--ban,1)*.25)) scale(var(--s,1));transform-origin:50% 80%}
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay-0{font-family:"Ruthie","Ruthie",cursive;font-size:calc(2.00rem*var(--co,1))}
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay-1{font-family:"Oooh Baby","Ruthie",cursive;font-size:calc(1.70rem*var(--co,1))}
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay-2{font-family:"Square Peg","Ruthie",cursive;font-size:calc(2.00rem*var(--co,1))}
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay-3{font-family:"My Soul","Ruthie",cursive;font-size:calc(1.75rem*var(--co,1))}
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay-4{font-family:"Fuggles","Ruthie",cursive;font-size:calc(2.30rem*var(--co,1))}
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay-5{font-family:"Caramel","Ruthie",cursive;font-size:calc(2.00rem*var(--co,1))}
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay-6{font-family:"Waterfall","Ruthie",cursive;font-size:calc(2.00rem*var(--co,1))}
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay-7{font-family:"Grechen Fuemen","Ruthie",cursive;font-size:calc(1.70rem*var(--co,1))}

/* "Nay → xưa": the panel of the chosen person follows that person's own era, wherever on the page it stands:
   a person of 1890 is shown in the old style even at the red foot of the page. The panel is lifted above the scroll-driven
   layer and aged by itself (--ng: 1 for generations I-III, about a half for IV-V, 0 from VI on). */
html[data-tong=pha] .nguoi:has(.tt){position:relative;z-index:62;isolation:isolate;--ng:0;
 filter:grayscale(var(--ng)) sepia(calc(var(--ng)*.16)) contrast(calc(1 + var(--ng)*.08));border-radius:calc((1 - var(--ng))*8px)}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)){--ng:1}html[data-tong=pha] .nguoi:has(.tt.d4){--ng:.7}html[data-tong=pha] .nguoi:has(.tt.d5){--ng:.45}html[data-tong=pha] .nguoi:has(.tt.d6){--ng:.15}
html[data-tong=pha] .nguoi:has(.tt):after{content:"";position:absolute;inset:0;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='8'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.5 1.05'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");background-size:220px 220px;opacity:calc(var(--ng)*.5);mix-blend-mode:multiply;border-radius:inherit}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)),html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) :is(td,th,li,p,small,span){font-family:"Cousine","Courier New",monospace;letter-spacing:-.01em}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)){border:3px double #3a231c;box-shadow:none;background-color:#fbf3df}
html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5)),html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5)) :is(td,th,li,p,small,h3,b){font-family:"Old Standard TT","Noto Serif",serif}
html[data-tong=pha] .nguoi:has(.tt:is(.d6,.d7,.d8,.d9)),html[data-tong=pha] .nguoi:has(.tt:is(.d6,.d7,.d8,.d9)) :is(td,th,li,p,small,h3,b,a){font-family:"Noto Serif",Georgia,serif}
html[data-tong=pha] .nguoi:has(.tt:is(.d6,.d7,.d8,.d9)) .tay,html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5)) .tay{font-family:inherit!important;font-size:inherit!important;filter:none;transform:none;display:inline}
html[data-tong=pha] .nguoi:has(.tt:is(.d6,.d7,.d8,.d9)) .tay .chu,html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5)) .tay .chu{display:inline;transform:none;letter-spacing:0}
html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5)) h3 .tay{font-family:"Old Standard TT","Noto Serif",serif!important;font-weight:700}

/* in an old person's panel the names (the person, parents, children) are written by hand, everything else is typed */
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay.tay-0{font-family:"Ruthie","Ruthie",cursive!important;font-size:1.60rem!important}html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) h3 .tay.tay-0{font-size:2.30rem!important}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay.tay-1{font-family:"Oooh Baby","Ruthie",cursive!important;font-size:1.36rem!important}html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) h3 .tay.tay-1{font-size:1.95rem!important}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay.tay-2{font-family:"Square Peg","Ruthie",cursive!important;font-size:1.60rem!important}html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) h3 .tay.tay-2{font-size:2.30rem!important}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay.tay-3{font-family:"My Soul","Ruthie",cursive!important;font-size:1.40rem!important}html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) h3 .tay.tay-3{font-size:2.01rem!important}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay.tay-4{font-family:"Fuggles","Ruthie",cursive!important;font-size:1.84rem!important}html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) h3 .tay.tay-4{font-size:2.64rem!important}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay.tay-5{font-family:"Caramel","Ruthie",cursive!important;font-size:1.60rem!important}html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) h3 .tay.tay-5{font-size:2.30rem!important}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay.tay-6{font-family:"Waterfall","Ruthie",cursive!important;font-size:1.60rem!important}html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) h3 .tay.tay-6{font-size:2.30rem!important}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay.tay-7{font-family:"Grechen Fuemen","Ruthie",cursive!important;font-size:1.36rem!important}html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) h3 .tay.tay-7{font-size:1.95rem!important}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay{display:inline-block;font-weight:400;letter-spacing:0;line-height:1.15;text-decoration:none;color:#2b2420;filter:var(--loc,none)}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay :is(.chu,i){font-family:inherit!important;font-size:inherit;letter-spacing:var(--gian,0)}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay .chu{display:inline-block}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) h3 small{font-family:"Cousine","Courier New",monospace;font-size:.9rem}

/* "Nay → xưa", lettering ladder (Phong, 22 Nov 22:57): old = typewriter with handwritten names; in between = Arial, the office type of
   the late twentieth century; today = the serif of the red design. */
html[data-tong=pha] .e-giua,html[data-tong=pha] .e-giua :is(h1,h2,h3,b,.pl,th,td,p,li,small,span,a),
html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5)),html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5)) :is(td,th,li,p,small,h3,b,a,span),
html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5)) h3 .tay
 {font-family:Arial,"Helvetica Neue",Helvetica,"Liberation Sans","Roboto",sans-serif!important;letter-spacing:0}
html[data-tong=pha] .card.e-giua .pl,html[data-tong=pha] .e-giua :is(h2,h3){font-weight:700}
html[data-tong=pha] .e-giua{font-size:.96em}
/* a block of today inside an in-between block keeps today\x27s serif, an old one keeps its typewriter */
html[data-tong=pha] .e-giua .e-nay,html[data-tong=pha] .e-giua .e-nay :is(h2,h3,b,.pl,th,td,p,li,small,span,a){font-family:"Noto Serif",Georgia,"Times New Roman",serif!important}
html[data-tong=pha] .e-giua .e-xua,html[data-tong=pha] .e-giua .e-xua :is(th,td,p,li,small,span:not(.chu)){font-family:"Cousine","Courier New",monospace!important}
html[data-tong=pha] .e-nay{font-family:"Noto Serif",Georgia,"Times New Roman",serif}

/* "Nay → xưa": the footer continues the last block above it (lettering always; the age too when that block is a person's panel) */
html[data-tong=pha] .foot.theo-nguoi{position:relative;z-index:62;isolation:isolate;
 filter:grayscale(var(--ng,0)) sepia(calc(var(--ng,0)*.16)) contrast(calc(1 + var(--ng,0)*.08))}
html[data-tong=pha] .foot.e-xua,html[data-tong=pha] .foot.e-xua :is(a,b,small,span){font-family:"Cousine","Courier New",monospace!important;letter-spacing:-.01em}
html[data-tong=pha] .foot.e-giua,html[data-tong=pha] .foot.e-giua :is(a,b,small,span){font-family:Arial,"Helvetica Neue",Helvetica,"Liberation Sans","Roboto",sans-serif!important}
html[data-tong=pha] .foot.e-nay,html[data-tong=pha] .foot.e-nay :is(a,b,small,span){font-family:"Noto Serif",Georgia,"Times New Roman",serif!important}
html[data-tong=pha] .foot.theo-nguoi:before{display:none}

/* a person's panel takes its lettering from the person, never from where the panel stands on the page */
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)),html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) :is(td,th,li,p,small,b,h4,span:not(.tay):not(.chu)){font-family:"Cousine","Courier New",monospace!important;letter-spacing:-.01em}
html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) :is(h3,h4){font-family:"Old Standard TT","Noto Serif",serif!important}
html[data-tong=pha] .nguoi:has(.tt:is(.d6,.d7,.d8,.d9)),html[data-tong=pha] .nguoi:has(.tt:is(.d6,.d7,.d8,.d9)) :is(td,th,li,p,small,h3,h4,b,a,span){font-family:"Noto Serif",Georgia,"Times New Roman",serif!important}

/* iPhone: the browser's bars (address bar on top, tool bar below) are translucent and show what lies under them.
   - the page's outermost background is the colour of our header and footer, so the bars and the rubber-band area take that colour;
   - every full-screen layer (film, grain, ageing, television) reaches well beyond the screen edges, so no strip is left uncovered. */
html{background-color:#7c0c12}
html[data-theme=co]{background-color:#3d2a17}html[data-tong=dt]{background-color:#1c1c1c}
body{min-height:100vh;min-height:100dvh}
canvas.phim,.tv-man,html[data-tong=pha] body:after,html[data-tong=pha]:after{top:-160px!important;bottom:-160px!important;left:0;right:0;height:auto!important;inset:-160px 0!important}
canvas.phim{width:100vw;height:calc(100lvh + 320px)!important}
html[data-theme=do] body:before{inset:-160px 0}
.top{padding-top:env(safe-area-inset-top,0)}.foot{padding-bottom:env(safe-area-inset-bottom,0)}
.top .wrap,.foot .wrap{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}

/* iPhone, Safari 26 (translucent bars, the island): Safari no longer obeys theme-color. It takes the colour of the top and bottom
   areas from the background of html/body, or from an element fixed to that edge, and a see-through fixed layer that covers the
   screen (our film, grain and ageing layers) overrides it with something ugly.
   (benfrain.com "ios26 safari theme color tab tinting with fixed position elements"; WebKit bugs 301756, 302272.)
   So: 1. html and body carry the header colour, the paper colour moves to main; 2. a solid strip in the header colour is fixed
   to the top and to the bottom edge, above everything; 3. the see-through layers keep off both edges. */
body{background-color:#7c0c12!important}
html[data-theme=co] body{background-color:#3d2a17!important}html[data-tong=dt] body{background-color:#1c1c1c!important}
main{background-color:var(--giay)}
html[data-theme=do] body{background-image:none!important}
html[data-theme=do] main{background:var(--giay)}
.nap{position:fixed;left:0;right:0;z-index:90;pointer-events:none;background-color:#7c0c12}
.nap.tren{top:0;height:calc(env(safe-area-inset-top,0px) + 6px)}
.nap.duoi{bottom:0;height:calc(env(safe-area-inset-bottom,0px) + 6px)}
html[data-theme=co] .nap{background-color:#3d2a17}html[data-tong=dt] .nap{background-color:#1c1c1c}
canvas.phim,.tv-man,html[data-tong=pha] body:after,html[data-tong=pha]:after{inset:6px 0!important;top:6px!important;bottom:6px!important;height:auto!important}
canvas.phim{height:calc(100% - 12px)!important}
html[data-theme=do] body:before{display:none}
dialog.xem{z-index:100}

/* "Nay → xưa": handwritten names in old blocks get the same old ink as the old designs: uneven fading per letter and a brown-yellow halo */
html[data-tong=pha] :is(.card,.o,.tt,.nguoi).e-xua .tay,html[data-tong=pha] .nguoi:has(.tt:is(.d0,.d1,.d2,.d3)) .tay
 {color:#3b2a1e;filter:var(--loc,none) drop-shadow(.5px .4px .5px rgba(158,108,36,.5)) drop-shadow(0 0 2px rgba(176,132,52,.3))}
html[data-tong=pha] :is(.e-xua,.nguoi:has(.tt:is(.d0,.d1,.d2,.d3))) .tay i.m1{opacity:.86}
html[data-tong=pha] :is(.e-xua,.nguoi:has(.tt:is(.d0,.d1,.d2,.d3))) .tay i.m3{opacity:.9}
html[data-tong=pha] :is(.e-xua,.nguoi:has(.tt:is(.d0,.d1,.d2,.d3))) .tay i.m5{opacity:.8}

/* large handwritten names (the heading of a person's panel): the ink effects are scaled with the letters, else a big name looks printed */
.nguoi h3 .tay[style*="tay0"]{filter:url(#tay0b) drop-shadow(1px .8px 1px rgba(158,108,36,.5)) drop-shadow(0 0 4px rgba(176,132,52,.32))!important}
.nguoi h3 .tay[style*="tay1"]{filter:url(#tay1b) drop-shadow(1px .8px 1px rgba(158,108,36,.5)) drop-shadow(0 0 4px rgba(176,132,52,.32))!important}
.nguoi h3 .tay[style*="tay2"]{filter:url(#tay2b) drop-shadow(1px .8px 1px rgba(158,108,36,.5)) drop-shadow(0 0 4px rgba(176,132,52,.32))!important}
html[data-tong=dt] .nguoi h3 .tay.tay{-webkit-text-stroke:0}
.nguoi h3 .tay i.m1{opacity:.7!important}.nguoi h3 .tay i.m3{opacity:.8!important}.nguoi h3 .tay i.m5{opacity:.62!important}
html[data-theme=do]:not([data-tong=pha]) .nguoi h3 .tay,html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5,.d6,.d7,.d8,.d9)) h3 .tay{filter:none!important}
html[data-theme=do]:not([data-tong=pha]) .nguoi h3 .tay i,html[data-tong=pha] .nguoi:has(.tt:is(.d4,.d5,.d6,.d7,.d8,.d9)) h3 .tay i{opacity:1!important}

/* names on tree cards and branch boxes (26-41 px): ink effects one size up, so that they do not look printed */
:is(html[data-theme=co],html[data-tong=pha] .e-xua) :is(.card .pl,.o b).tay[style*="tay0"],:is(html[data-theme=co],html[data-tong=pha] .e-xua):is(.card,.o) .tay[style*="tay0"]{filter:url(#tay0m) drop-shadow(.8px .6px .8px rgba(158,108,36,.5)) drop-shadow(0 0 3px rgba(176,132,52,.3))!important}
html[data-tong=dt] :is(.card .pl,.o b).tay[style*="tay0"]{filter:url(#tay0m) drop-shadow(.8px .6px .8px rgba(140,104,48,.4)) drop-shadow(0 0 3px rgba(150,120,66,.26))!important}
:is(html[data-theme=co],html[data-tong=pha] .e-xua) :is(.card .pl,.o b).tay[style*="tay1"],:is(html[data-theme=co],html[data-tong=pha] .e-xua):is(.card,.o) .tay[style*="tay1"]{filter:url(#tay1m) drop-shadow(.8px .6px .8px rgba(158,108,36,.5)) drop-shadow(0 0 3px rgba(176,132,52,.3))!important}
html[data-tong=dt] :is(.card .pl,.o b).tay[style*="tay1"]{filter:url(#tay1m) drop-shadow(.8px .6px .8px rgba(140,104,48,.4)) drop-shadow(0 0 3px rgba(150,120,66,.26))!important}
:is(html[data-theme=co],html[data-tong=pha] .e-xua) :is(.card .pl,.o b).tay[style*="tay2"],:is(html[data-theme=co],html[data-tong=pha] .e-xua):is(.card,.o) .tay[style*="tay2"]{filter:url(#tay2m) drop-shadow(.8px .6px .8px rgba(158,108,36,.5)) drop-shadow(0 0 3px rgba(176,132,52,.3))!important}
html[data-tong=dt] :is(.card .pl,.o b).tay[style*="tay2"]{filter:url(#tay2m) drop-shadow(.8px .6px .8px rgba(140,104,48,.4)) drop-shadow(0 0 3px rgba(150,120,66,.26))!important}
:is(html[data-theme=co],html[data-tong=pha] .e-xua) :is(.card .pl,.o b).tay i.m1{opacity:.74}:is(html[data-theme=co],html[data-tong=pha] .e-xua) :is(.card .pl,.o b).tay i.m3{opacity:.84}:is(html[data-theme=co],html[data-tong=pha] .e-xua) :is(.card .pl,.o b).tay i.m5{opacity:.66}

/* "Đen trắng": text typed while scrolling (static/go.js). The part not yet typed keeps its place but is invisible. */
.gm-b{visibility:hidden}  /* (was opacity:0. On the iPhone the ends of words stayed unpainted until much later: Phong, 23 Nov 12:07. A part with opacity is drawn as a picture of its own; a hidden part is simply not drawn, and the letters that move out of it are ordinary text.) */
.dang-may .gm-a:last-of-type{text-shadow:0 0 .4px currentColor}
@media print{.gm-b{visibility:visible}}

/* handwritten names are written from left to right when they come into view (static/go.js) */
.tay.cho-viet .chu{clip-path:inset(-30% 100% -30% -12%)}
.tay.viet-tay .chu{animation:viet-tay var(--tg,400ms) cubic-bezier(.3,.1,.6,1) var(--tre,0ms) both}
@keyframes viet-tay{from{clip-path:inset(-30% 100% -30% -12%)}to{clip-path:inset(-30% -14% -30% -12%)}}
@media print{.tay.cho-viet .chu{clip-path:none}}

/* the pen writing a name (static/go.js): a letter not yet written keeps its place but shows no ink; its outline is drawn over it */
.tay.dang-viet .chu i{position:relative}
.tay .chu i.chua{color:transparent!important;-webkit-text-stroke-color:transparent!important;text-shadow:none!important}

/* "Đen trắng": dust rising from text that dissolves at the top of the screen (static/go.js). Kept off the very top edge (iPhone island). */
canvas.bui{position:fixed;left:0;top:6px;width:100vw;height:30vh;z-index:55;pointer-events:none}
html.xem-mo canvas.bui{display:none}

/* speed (Phong, 22 Nov 23:47: "everything crawls"):
   - the dissolve at the top is one fixed veil in the paper colour, not a mask per block;
   - a name that is being written carries no ink filter until it is finished: the filter would be recomputed on every frame of the pen. */
.tan{position:fixed;left:0;right:0;top:6px;height:20vh;z-index:54;pointer-events:none;
 background:linear-gradient(to bottom,#ecebe8 0,rgba(236,235,232,.82) 30%,rgba(236,235,232,.4) 62%,rgba(236,235,232,0) 100%)}
html.xem-mo .tan{display:none}
.tay.dang-viet.dang-viet.dang-viet{filter:none!important;-webkit-mask-image:none!important;mask-image:none!important}

/* "Đen trắng": scrolling back up, the lowest lines dissolve in smoke (static/go.js). Kept off the bottom edge (iPhone bar). */
.tan.duoi{top:auto;bottom:6px;height:24vh;opacity:0;transition:opacity .5s ease;
 background:linear-gradient(to top,#ecebe8 0,rgba(236,235,232,.86) 30%,rgba(236,235,232,.42) 64%,rgba(236,235,232,0) 100%)}
.tan.duoi.hien{opacity:1;transition:opacity .18s ease}
canvas.khoi{position:fixed;left:0;bottom:6px;width:100vw;height:36vh;z-index:55;pointer-events:none}
html.xem-mo canvas.khoi{display:none}

/* "Đen trắng": typed text keeps the marks of the machine (static/go.js): letters (short texts) or words (long texts) ride a slow
   wave along the line. Plain inline boxes shifted up or down: line breaks and layout stay exactly as they were. */
html[data-tong=dt] .gm.chu-may{position:relative}

x-m,x-p,x-a,x-b{display:inline;text-decoration:inherit}

/* a list item that is not typed yet shows no bullet or number either (static/go.js) */
li.chua-go::marker{color:transparent}
li.chua-go::before{visibility:hidden}

/* worn print on running text, second way (Phong on the iPhone, 23 Nov 00:32: "the worn styling did not apply at all").
   The filter used to sit on whole containers, some of them tens of thousands of pixels tall (the statute page: 34,000);
   Safari on the iPhone does not draw a filter over an area that large, so the text stayed clean there. Now it sits on the
   single blocks of text, which are small, and the containers carry none. */
html.phim-chay .ve .hai>div,html.phim-chay .moc,html.phim-chay .van,html.phim-chay .bachi,html.phim-chay .tks,html.phim-chay .loc,
html.phim-chay .nguoi,html.phim-chay .foot .wrap,html.phim-chay .banner p,html.phim-chay .hd>span:last-child{filter:none}
/* One rule for all text, so that no text is worn and other text clean (Phong, 23 Nov 00:40): in the old looks every "leaf block"
   in the head, the body and the foot of the page (an element that holds text and inline pieces only, no further blocks)
   carries the worn print. Headings carry the stronger heading print. Handwritten names keep their own ink. */
/* (rule with :has() removed 23 Nov: it made the browser work out the styles of the page again for every typed letter; the wear is one sheet now) */
html.in-mon[data-theme=co] :is(header.top,main,footer.foot) :is(h1,h2,h3){filter:url(#mon)}
html.in-mon[data-theme=co] :is(header.top,main,footer.foot) :is(h1,h2,h3) *,html.in-mon[data-theme=co] .brand *,html.in-mon[data-theme=co] .top nav{filter:none}


/* worn print, the last gaps and doubles found by going through every text of every page (23 Nov 00:45) */
html.in-mon[data-theme=co] main :is(label.dong-ke,aside.loc a,.o>i,.o>span,.o>b,.wrap.gp>a,.wrap.gp>span,.wrap.gp>b){-webkit-mask-image:var(--in-mon);mask-image:var(--in-mon);-webkit-mask-size:220px 220px;mask-size:220px 220px}
html.in-mon[data-theme=co] main nav a,html.in-mon[data-theme=co] .foot .quick a,html.in-mon[data-theme=co] .kieu button,html.in-mon[data-theme=co] .kieu a{filter:none}
html.in-mon[data-theme=co] header.top nav a{-webkit-mask-image:var(--in-mon);mask-image:var(--in-mon);-webkit-mask-size:220px 220px;mask-size:220px 220px}
html.in-mon[data-theme=co] main nav a,html.in-mon[data-theme=co] .foot .quick a,html.in-mon[data-theme=co] .kieu button,html.in-mon[data-theme=co] .kieu a,
html.in-mon[data-theme=co] :is(h1,h2,h3) *,html.in-mon[data-theme=co] .brand *{filter:none!important;-webkit-mask-image:none!important;mask-image:none!important}
html.in-mon[data-theme=co] main :is(a.hd>span,summary .dem,summary>span,summary>b){-webkit-mask-image:var(--in-mon);mask-image:var(--in-mon);-webkit-mask-size:220px 220px;mask-size:220px 220px}
/* tables: one worn-print area for each row, not for each cell (the member list has hundreds of cells and scrolled at 9 pictures a second) */
html.in-mon[data-theme=co] main table tr{filter:none!important}
html.in-mon[data-theme=co] main table :is(td,th){-webkit-mask-image:var(--in-mon)!important;mask-image:var(--in-mon)!important;-webkit-mask-size:220px 220px!important;mask-size:220px 220px!important}

/* speed (Phong, 23 Nov 00:52: "things crawl again"): a block that is being typed changes on every frame, and with the worn print
   on it the browser had to push the whole block through the print filter sixty times a second. While a block is typed it
   carries no print; it gets its print the moment it is finished. */
/* (taken out again, Phong 23 Nov 00:56: text must not appear clean first and worn afterwards; the print stays on while typing) */

/* speed on the long statute page: a chapter that is off the screen is neither laid out nor painted; the browser keeps its
   last known height (2,400 px assumed before it has been seen), so the page does not jump. */
.van .chuong{content-visibility:auto;contain-intrinsic-size:auto 2400px}

/* an important heading is struck firmly: while it is typed the ink is a little heavier, as from a key pressed hard */
html[data-tong=dt] :is(h1,h2,h3).dang-may{text-shadow:0 0 .7px currentColor,.4px 0 0 currentColor}

/* speed on phones (Phong, 23 Nov 00:58: "phone crawls"): the worn print of running text is no longer a filter that the phone has
   to compute over each block again whenever a letter is typed, but a small picture of specks (made once, repeated) laid over
   the block as a mask: where the picture has a hole, the ink has a hole. Headings keep the filter with its uneven edges. */
html{--in-mon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='1' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -9 0 0 0 5.9'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23f)'/%3E%3C/svg%3E")}

/* a cell of a long table that is not typed yet (static/go.js) */
.o-an{opacity:0}
@media print{.o-an{opacity:1}}

/* the speck picture as a plain PNG file (static/img/in-mon.png, made by the lead with PIL), not an SVG that has to run a filter to
   draw itself: on the iPhone that SVG came out as a grey block of noise (Phong, 23 Nov 01:04, Gia phả). */
html{--in-mon:url(/static/img/in-mon.png?v=3)}

/* The speck mask cuts holes into everything an element paints, its background and frame too. On an element with a dark or filled
   background that reads as a block of grey noise (Phong, 23 Nov 01:04: the head of the page and the search card on Gia phả).
   So: no mask on the head of the page, on the search card, on buttons and counters, on the letter tiles and on boxes with a
   fill; there the letters get the heading print (a filter on a few small elements), which wears the letters only as much
   as their own shape and leaves a plain background plain. */
html.in-mon[data-theme=co] :is(header.top,header.top *,form.phieu,form.phieu *,.nut,.dem,.kieu,.kieu *,.anh,.tabs,.tabs *,.o,.o *,.huy,.huy *,.foot .quick,.foot .quick *)
 {-webkit-mask-image:none!important;mask-image:none!important}
html.in-mon[data-theme=co] :is(header.top nav,header.top .brand>span:last-child,form.phieu h3,form.phieu legend,.the span,.dong-may,.nut,.dem,.tabs a,.o>b,.o>i,.o>span,.foot .quick a)
 {filter:url(#mon)!important}

/* Bullets and list numbers stand outside the box of their list item, and a mask cuts off everything outside the box: with the
   speck mask on list items the bullets were gone (Phong, 23 Nov 01:08). List items therefore carry the print as a filter
   (which keeps what stands outside the box), not as the mask. */
html.in-mon[data-theme=co] :is(header.top,main,footer.foot) li{-webkit-mask-image:none!important;mask-image:none!important}
/* (rule with :has() removed 23 Nov: it made the browser work out the styles of the page again for every typed letter; the wear is one sheet now) */
html.in-mon[data-theme=co] main nav li{filter:none}

/* "Đen trắng": while the television warms up, the paper is still blank; the text is typed once the picture stands (static/go.js
   waits for the television). Without this the full text would show through the television and vanish again to be typed. */
@media (prefers-reduced-motion:no-preference){
html[data-tong=dt].tv-chay :is(main,footer.foot,header.top .brand,header.top nav) :is(p,li,h1,h2,h3,h4,td,th,a,span,b,i,small,label,summary,legend,div,figcaption,blockquote)
 {color:transparent!important;text-shadow:none!important;-webkit-text-stroke-color:transparent!important}
html[data-tong=dt].tv-chay :is(main,footer.foot) li::marker{color:transparent}
}

/* a block that waits to be typed and has not been cut into pieces yet (static/go.js, "per window"): its text is there, without ink */
.cho-go,.cho-go :not(.tay):not(.tay *){color:transparent!important;text-shadow:none!important;-webkit-text-stroke-color:transparent!important;text-decoration-color:transparent!important}
.cho-go .tay{color:#2b2420!important}   /* handwritten names are not typed: the pen writes them, they keep their ink */
@media print{.cho-go,.cho-go *{color:inherit!important}}

/* tables: over a thousand masked cells made the member list scroll at 10 pictures a second. One print for each row instead. */
html.in-mon[data-theme=co] main table :is(td,th){-webkit-mask-image:none!important;mask-image:none!important}
html.in-mon[data-theme=co] main table tr{filter:none!important}
/* measured on the member list (237 rows), scrolling: a print on each row 12 pictures a second, a mask on each cell 27, one mask
   over the whole body of the table 22 to 31. So: one speck picture for the body; the dark head row keeps the heading print. */
html.in-mon[data-theme=co] main table tbody{-webkit-mask-image:var(--in-mon)!important;mask-image:var(--in-mon)!important;-webkit-mask-size:220px 220px;mask-size:220px 220px}
html.in-mon[data-theme=co] main table thead th{filter:url(#mon)!important}

/* the "read aloud" button of "Đen trắng" (static/go.js) */
.nut-doc{position:fixed;right:14px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:60;font:700 16px/1 "Courier New",monospace;color:#f6f5f2;background:#1c1c1c;
 border:2px solid #f6f5f2;outline:2px solid #1c1c1c;padding:13px 16px;min-height:48px;cursor:pointer;box-shadow:3px 3px 0 rgba(0,0,0,.35)}
.nut-doc.dang-doc{background:#f6f5f2;color:#1c1c1c;border-color:#1c1c1c}
@media print{.nut-doc{display:none}}

/* the read-aloud button is an old microphone, no words (Phong, 23 Nov 01:29); it turns light while it reads */
.nut-doc{width:60px;height:60px;padding:0;border-radius:50%;display:grid;place-items:center}
.nut-doc svg{display:block}

/* The lists (member list, statistics) as a page of an old register, not a spreadsheet (Phong, 23 Nov 01:39): no filled cells,
   no grid. The head between double rules, in spaced small capitals. Under every row a dotted line to run the eye along; every
   fifth row closes with a full line, so that rows are counted off in fives; the rows are numbered in the margin; the name
   stands apart from the rest behind a double margin line, as in a ledger. */
.bang{border-collapse:collapse;counter-reset:hang;border-bottom:3px double currentColor}
.bang th,html[data-theme=do] .bang th,html[data-theme=co] .bang th{background:none!important;color:inherit!important;font-family:"Old Standard TT","Noto Serif",serif;font-weight:700;
 font-variant:small-caps;letter-spacing:.07em;font-size:1.02em;padding:9px 10px 7px;border-top:3px double currentColor;border-bottom:3px double currentColor;vertical-align:bottom}
.bang td,.bang tr:nth-child(even) td,html[data-theme=co] .bang tr:nth-child(even) td,html[data-tong=dt] .bang tr:nth-child(even) td
 {background:none!important;border:0;border-bottom:1px dotted color-mix(in srgb,currentColor 55%,transparent);padding:9px 10px 6px;line-height:1.35}
.bang tbody tr:nth-child(5n) td{border-bottom:1px solid currentColor}
.bang tbody tr:last-child td{border-bottom:0}
.bang :is(td,th):first-child{border-right:3px double color-mix(in srgb,currentColor 70%,transparent);padding-right:12px}
.bang :is(td,th):nth-child(2){padding-left:12px}
.bang tbody tr{counter-increment:hang}
.bang:not(.so) tbody td:first-child{font-weight:700;padding-left:2.5em;position:relative}
.bang:not(.so) thead th:first-child{padding-left:2.5em}
.bang:not(.so) tbody td:first-child::before{content:counter(hang) ".";position:absolute;left:0;top:9px;width:2em;text-align:right;font-weight:400;font-size:.82em;opacity:.7;font-variant-numeric:tabular-nums}
html[data-theme=do] .bang th{color:var(--do)!important}

/* (the rule for the even rows above weighs more than the ones for the first column: the same again, said with more weight) */
html .bang tbody tr:nth-child(n) td:first-child,html .bang thead th:first-child{border-right:3px double color-mix(in srgb,currentColor 70%,transparent);padding-right:12px}
html .bang tbody tr:nth-child(n) td:nth-child(2){padding-left:12px}
html .bang:not(.so) tbody tr:nth-child(n) td:first-child{font-weight:700;padding-left:2.5em;position:relative}
html .bang tbody tr:nth-child(5n) td{border-bottom:1px solid currentColor}
html .bang tbody tr:last-child td{border-bottom:0}

/* a name stays on one line (three short lines for each name made the rows tall and hard to follow; the table scrolls sideways
   anyway), and the head is large enough to read */
html .bang:not(.so) tbody tr:nth-child(n) td:first-child{white-space:nowrap}
html .bang th{font-size:1.12em!important;letter-spacing:.05em}

/* Table lines in the old looks are ruled by hand like the frames (Phong, 23 Nov 01:55): every line is an ink stroke whose
   thickness changes along its length and which bows a little; no two neighbouring rows have the same stroke. The strokes are
   small drawings (generated by a script of the lead, seed 1890), stretched over the cell; they meet at the cell edges. */
html[data-tong=co]{--ke1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='6' viewBox='0 0 300 6' preserveAspectRatio='none'%3E%3Cg fill='%233d2a17'%3E%3Cpath d='M0.00,2.55 L12.50,2.54 L25.00,2.59 L37.50,2.71 L50.00,2.71 L62.50,2.80 L75.00,2.66 L87.50,2.58 L100.00,2.69 L112.50,2.46 L125.00,2.26 L137.50,2.09 L150.00,2.03 L162.50,2.12 L175.00,2.11 L187.50,2.13 L200.00,1.99 L212.50,2.06 L225.00,2.11 L237.50,2.31 L250.00,2.33 L262.50,2.53 L275.00,2.50 L287.50,2.58 L300.00,2.55 L300.00,3.45 L287.50,3.35 L275.00,3.21 L262.50,3.22 L250.00,3.07 L237.50,3.18 L225.00,3.17 L212.50,3.24 L200.00,3.14 L187.50,3.16 L175.00,3.08 L162.50,3.13 L150.00,3.11 L137.50,3.15 L125.00,3.18 L112.50,3.18 L100.00,3.27 L87.50,3.10 L75.00,3.19 L62.50,3.39 L50.00,3.39 L37.50,3.53 L25.00,3.52 L12.50,3.50 L0.00,3.45Z'/%3E%3C/g%3E%3C/svg%3E");--ke2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='6' viewBox='0 0 300 6' preserveAspectRatio='none'%3E%3Cg fill='%233d2a17'%3E%3Cpath d='M0.00,2.55 L12.50,2.51 L25.00,2.56 L37.50,2.55 L50.00,2.76 L62.50,2.80 L75.00,2.94 L87.50,3.02 L100.00,2.86 L112.50,2.80 L125.00,2.68 L137.50,2.23 L150.00,2.29 L162.50,2.26 L175.00,2.15 L187.50,2.25 L200.00,2.27 L212.50,2.24 L225.00,2.20 L237.50,2.39 L250.00,2.45 L262.50,2.48 L275.00,2.51 L287.50,2.49 L300.00,2.55 L300.00,3.45 L287.50,3.35 L275.00,3.31 L262.50,3.21 L250.00,3.17 L237.50,3.21 L225.00,3.19 L212.50,3.37 L200.00,3.45 L187.50,3.44 L175.00,3.46 L162.50,3.77 L150.00,3.89 L137.50,3.67 L125.00,3.80 L112.50,3.62 L100.00,3.53 L87.50,3.66 L75.00,3.62 L62.50,3.60 L50.00,3.75 L37.50,3.71 L25.00,3.76 L12.50,3.60 L0.00,3.45Z'/%3E%3C/g%3E%3C/svg%3E");--ke3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='6' viewBox='0 0 300 6' preserveAspectRatio='none'%3E%3Cg fill='%233d2a17'%3E%3Cpath d='M0.00,2.55 L12.50,2.63 L25.00,2.70 L37.50,2.80 L50.00,2.86 L62.50,2.87 L75.00,3.02 L87.50,2.92 L100.00,2.85 L112.50,2.73 L125.00,2.47 L137.50,2.39 L150.00,2.46 L162.50,2.35 L175.00,2.47 L187.50,2.43 L200.00,2.53 L212.50,2.36 L225.00,2.29 L237.50,2.22 L250.00,2.30 L262.50,2.38 L275.00,2.42 L287.50,2.50 L300.00,2.55 L300.00,3.45 L287.50,3.35 L275.00,3.32 L262.50,3.37 L250.00,3.31 L237.50,3.10 L225.00,2.96 L212.50,2.86 L200.00,2.97 L187.50,2.89 L175.00,3.05 L162.50,3.17 L150.00,3.55 L137.50,3.62 L125.00,3.59 L112.50,3.60 L100.00,3.52 L87.50,3.49 L75.00,3.54 L62.50,3.40 L50.00,3.48 L37.50,3.57 L25.00,3.57 L12.50,3.53 L0.00,3.45Z'/%3E%3C/g%3E%3C/svg%3E");--ke-dam:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='6' viewBox='0 0 300 6' preserveAspectRatio='none'%3E%3Cg fill='%233d2a17'%3E%3Cpath d='M0.00,2.05 L12.50,1.97 L25.00,1.97 L37.50,2.10 L50.00,2.35 L62.50,2.38 L75.00,2.45 L87.50,2.48 L100.00,2.52 L112.50,2.25 L125.00,2.10 L137.50,2.14 L150.00,2.11 L162.50,1.84 L175.00,1.74 L187.50,1.58 L200.00,1.52 L212.50,1.78 L225.00,1.98 L237.50,2.02 L250.00,2.10 L262.50,2.05 L275.00,1.97 L287.50,2.00 L300.00,2.05 L300.00,3.95 L287.50,3.94 L275.00,3.77 L262.50,3.74 L250.00,3.74 L237.50,3.68 L225.00,3.82 L212.50,3.98 L200.00,4.08 L187.50,4.26 L175.00,4.27 L162.50,4.15 L150.00,4.32 L137.50,4.33 L125.00,4.17 L112.50,4.07 L100.00,4.13 L87.50,4.04 L75.00,4.07 L62.50,4.11 L50.00,4.23 L37.50,4.19 L25.00,4.22 L12.50,4.21 L0.00,3.95Z'/%3E%3C/g%3E%3C/svg%3E");--ke-doi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='10' viewBox='0 0 300 10' preserveAspectRatio='none'%3E%3Cg fill='%233d2a17'%3E%3Cpath d='M0.00,1.70 L12.50,1.67 L25.00,1.63 L37.50,1.56 L50.00,1.66 L62.50,1.73 L75.00,2.01 L87.50,2.04 L100.00,2.22 L112.50,2.11 L125.00,2.06 L137.50,1.87 L150.00,1.61 L162.50,1.64 L175.00,1.71 L187.50,2.01 L200.00,2.02 L212.50,2.24 L225.00,2.06 L237.50,1.94 L250.00,1.66 L262.50,1.60 L275.00,1.58 L287.50,1.64 L300.00,1.70 L300.00,3.50 L287.50,3.61 L275.00,3.76 L262.50,3.80 L250.00,3.60 L237.50,3.55 L225.00,3.47 L212.50,3.62 L200.00,3.51 L187.50,3.86 L175.00,4.09 L162.50,4.38 L150.00,4.25 L137.50,4.05 L125.00,3.79 L112.50,3.59 L100.00,3.58 L87.50,3.42 L75.00,3.63 L62.50,3.70 L50.00,3.83 L37.50,3.67 L25.00,3.56 L12.50,3.50 L0.00,3.50Z'/%3E%3Cpath d='M0.00,6.95 L12.50,6.95 L25.00,7.01 L37.50,6.99 L50.00,7.02 L62.50,6.93 L75.00,6.77 L87.50,6.74 L100.00,6.59 L112.50,6.60 L125.00,6.61 L137.50,6.63 L150.00,6.82 L162.50,6.67 L175.00,6.76 L187.50,6.62 L200.00,6.45 L212.50,6.52 L225.00,6.56 L237.50,6.67 L250.00,6.83 L262.50,7.00 L275.00,7.02 L287.50,7.00 L300.00,6.95 L300.00,7.85 L287.50,7.81 L275.00,7.74 L262.50,7.70 L250.00,7.63 L237.50,7.73 L225.00,7.88 L212.50,7.86 L200.00,7.56 L187.50,7.44 L175.00,7.40 L162.50,7.20 L150.00,7.33 L137.50,7.31 L125.00,7.60 L112.50,7.80 L100.00,7.76 L87.50,7.74 L75.00,7.64 L62.50,7.72 L50.00,7.73 L37.50,7.67 L25.00,7.77 L12.50,7.82 L0.00,7.85Z'/%3E%3C/g%3E%3C/svg%3E");--ke-doi2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='10' viewBox='0 0 300 10' preserveAspectRatio='none'%3E%3Cg fill='%233d2a17'%3E%3Cpath d='M0.00,2.15 L12.50,2.16 L25.00,2.21 L37.50,2.27 L50.00,2.20 L62.50,2.29 L75.00,2.23 L87.50,2.06 L100.00,2.03 L112.50,1.75 L125.00,1.52 L137.50,1.52 L150.00,1.62 L162.50,1.66 L175.00,1.72 L187.50,1.94 L200.00,1.97 L212.50,2.10 L225.00,2.02 L237.50,1.98 L250.00,2.06 L262.50,2.00 L275.00,2.06 L287.50,2.09 L300.00,2.15 L300.00,3.05 L287.50,3.02 L275.00,2.98 L262.50,2.92 L250.00,2.93 L237.50,2.72 L225.00,2.62 L212.50,2.65 L200.00,2.54 L187.50,2.58 L175.00,2.48 L162.50,2.66 L150.00,2.92 L137.50,3.01 L125.00,2.94 L112.50,2.91 L100.00,2.93 L87.50,2.80 L75.00,2.89 L62.50,2.92 L50.00,2.84 L37.50,2.98 L25.00,3.03 L12.50,3.04 L0.00,3.05Z'/%3E%3Cpath d='M0.00,6.50 L12.50,6.40 L25.00,6.43 L37.50,6.66 L50.00,6.75 L62.50,6.83 L75.00,6.97 L87.50,6.86 L100.00,6.89 L112.50,6.65 L125.00,6.43 L137.50,6.40 L150.00,6.66 L162.50,6.45 L175.00,6.59 L187.50,6.54 L200.00,6.72 L212.50,6.61 L225.00,6.65 L237.50,6.52 L250.00,6.43 L262.50,6.42 L275.00,6.29 L287.50,6.34 L300.00,6.50 L300.00,8.30 L287.50,8.37 L275.00,8.32 L262.50,8.33 L250.00,8.20 L237.50,8.17 L225.00,8.13 L212.50,7.98 L200.00,8.17 L187.50,8.23 L175.00,8.48 L162.50,8.42 L150.00,8.72 L137.50,8.62 L125.00,8.70 L112.50,8.69 L100.00,8.55 L87.50,8.27 L75.00,8.37 L62.50,8.33 L50.00,8.42 L37.50,8.54 L25.00,8.51 L12.50,8.49 L0.00,8.30Z'/%3E%3C/g%3E%3C/svg%3E");--ke-le1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='120' viewBox='0 0 10 120' preserveAspectRatio='none'%3E%3Cg fill='%233d2a17'%3E%3Cpath d='M2.40,0.00 L2.42,5.00 L2.34,10.00 L2.31,15.00 L2.26,20.00 L2.17,25.00 L2.10,30.00 L2.17,35.00 L2.29,40.00 L2.50,45.00 L2.47,50.00 L2.54,55.00 L2.66,60.00 L2.55,65.00 L2.38,70.00 L2.11,75.00 L2.18,80.00 L2.50,85.00 L2.61,90.00 L2.70,95.00 L2.61,100.00 L2.61,105.00 L2.53,110.00 L2.44,115.00 L2.40,120.00 L3.60,120.00 L3.65,115.00 L3.61,110.00 L3.59,105.00 L3.57,100.00 L3.73,95.00 L3.80,90.00 L4.01,85.00 L4.03,80.00 L4.04,75.00 L4.03,70.00 L3.79,65.00 L3.60,60.00 L3.37,55.00 L3.28,50.00 L3.46,45.00 L3.56,40.00 L3.77,35.00 L3.80,30.00 L3.72,25.00 L3.59,20.00 L3.50,15.00 L3.48,10.00 L3.53,5.00 L3.60,0.00Z'/%3E%3Cpath d='M6.80,0.00 L6.84,5.00 L6.83,10.00 L6.78,15.00 L6.77,20.00 L6.62,25.00 L6.63,30.00 L6.46,35.00 L6.43,40.00 L6.33,45.00 L6.57,50.00 L6.68,55.00 L6.61,60.00 L6.81,65.00 L6.83,70.00 L6.72,75.00 L6.78,80.00 L6.73,85.00 L6.73,90.00 L6.62,95.00 L6.74,100.00 L6.77,105.00 L6.82,110.00 L6.84,115.00 L6.80,120.00 L7.60,120.00 L7.60,115.00 L7.60,110.00 L7.56,105.00 L7.57,100.00 L7.53,95.00 L7.68,90.00 L7.61,85.00 L7.47,80.00 L7.25,75.00 L7.29,70.00 L7.28,65.00 L7.14,60.00 L7.36,55.00 L7.49,50.00 L7.44,45.00 L7.57,40.00 L7.45,35.00 L7.44,30.00 L7.30,25.00 L7.41,20.00 L7.40,15.00 L7.47,10.00 L7.56,5.00 L7.60,0.00Z'/%3E%3C/g%3E%3C/svg%3E");--ke-le2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='120' viewBox='0 0 10 120' preserveAspectRatio='none'%3E%3Cg fill='%233d2a17'%3E%3Cpath d='M2.40,0.00 L2.40,5.00 L2.44,10.00 L2.46,15.00 L2.56,20.00 L2.76,25.00 L2.72,30.00 L2.73,35.00 L2.51,40.00 L2.50,45.00 L2.33,50.00 L2.31,55.00 L2.21,60.00 L2.51,65.00 L2.46,70.00 L2.60,75.00 L2.56,80.00 L2.29,85.00 L2.15,90.00 L2.01,95.00 L1.98,100.00 L2.12,105.00 L2.33,110.00 L2.36,115.00 L2.40,120.00 L3.60,120.00 L3.51,115.00 L3.61,110.00 L3.66,105.00 L3.70,100.00 L3.64,95.00 L3.48,90.00 L3.34,85.00 L3.45,80.00 L3.42,75.00 L3.36,70.00 L3.72,65.00 L3.81,60.00 L4.07,55.00 L3.93,50.00 L3.85,45.00 L3.69,40.00 L3.77,35.00 L3.64,30.00 L3.67,25.00 L3.61,20.00 L3.68,15.00 L3.72,10.00 L3.66,5.00 L3.60,0.00Z'/%3E%3Cpath d='M6.80,0.00 L6.83,5.00 L6.71,10.00 L6.69,15.00 L6.56,20.00 L6.67,25.00 L6.79,30.00 L6.88,35.00 L6.74,40.00 L6.83,45.00 L6.94,50.00 L7.07,55.00 L6.98,60.00 L7.09,65.00 L7.04,70.00 L6.89,75.00 L6.93,80.00 L6.99,85.00 L6.98,90.00 L7.05,95.00 L7.05,100.00 L7.01,105.00 L6.94,110.00 L6.89,115.00 L6.80,120.00 L7.60,120.00 L7.63,115.00 L7.60,110.00 L7.61,105.00 L7.65,100.00 L7.74,95.00 L7.84,90.00 L7.96,85.00 L7.86,80.00 L7.73,75.00 L7.80,70.00 L7.81,65.00 L7.59,60.00 L7.57,55.00 L7.40,50.00 L7.36,45.00 L7.37,40.00 L7.59,35.00 L7.58,30.00 L7.57,25.00 L7.53,20.00 L7.61,15.00 L7.51,10.00 L7.57,5.00 L7.60,0.00Z'/%3E%3C/g%3E%3C/svg%3E")}
html[data-tong=dt]{--ke1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='6' viewBox='0 0 300 6' preserveAspectRatio='none'%3E%3Cg fill='%231c1c1c'%3E%3Cpath d='M0.00,2.55 L12.50,2.57 L25.00,2.54 L37.50,2.63 L50.00,2.78 L62.50,2.86 L75.00,2.88 L87.50,2.83 L100.00,2.87 L112.50,2.92 L125.00,2.80 L137.50,2.52 L150.00,2.45 L162.50,2.49 L175.00,2.42 L187.50,2.38 L200.00,2.13 L212.50,2.11 L225.00,1.98 L237.50,2.14 L250.00,2.20 L262.50,2.40 L275.00,2.50 L287.50,2.51 L300.00,2.55 L300.00,3.45 L287.50,3.32 L275.00,3.31 L262.50,3.27 L250.00,3.24 L237.50,3.39 L225.00,3.35 L212.50,3.42 L200.00,3.26 L187.50,3.31 L175.00,3.24 L162.50,3.29 L150.00,3.21 L137.50,3.18 L125.00,3.34 L112.50,3.40 L100.00,3.36 L87.50,3.37 L75.00,3.49 L62.50,3.58 L50.00,3.65 L37.50,3.64 L25.00,3.61 L12.50,3.59 L0.00,3.45Z'/%3E%3C/g%3E%3C/svg%3E");--ke2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='6' viewBox='0 0 300 6' preserveAspectRatio='none'%3E%3Cg fill='%231c1c1c'%3E%3Cpath d='M0.00,2.55 L12.50,2.49 L25.00,2.47 L37.50,2.61 L50.00,2.65 L62.50,2.67 L75.00,2.63 L87.50,2.63 L100.00,2.94 L112.50,3.01 L125.00,3.14 L137.50,3.23 L150.00,3.07 L162.50,3.09 L175.00,2.90 L187.50,2.99 L200.00,2.80 L212.50,2.61 L225.00,2.48 L237.50,2.56 L250.00,2.41 L262.50,2.34 L275.00,2.30 L287.50,2.38 L300.00,2.55 L300.00,3.45 L287.50,3.55 L275.00,3.54 L262.50,3.52 L250.00,3.51 L237.50,3.65 L225.00,3.60 L212.50,3.72 L200.00,3.80 L187.50,3.81 L175.00,3.58 L162.50,3.69 L150.00,3.68 L137.50,3.87 L125.00,3.89 L112.50,3.95 L100.00,4.12 L87.50,3.95 L75.00,3.94 L62.50,3.87 L50.00,3.78 L37.50,3.74 L25.00,3.63 L12.50,3.60 L0.00,3.45Z'/%3E%3C/g%3E%3C/svg%3E");--ke3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='6' viewBox='0 0 300 6' preserveAspectRatio='none'%3E%3Cg fill='%231c1c1c'%3E%3Cpath d='M0.00,2.55 L12.50,2.58 L25.00,2.63 L37.50,2.63 L50.00,2.53 L62.50,2.40 L75.00,2.35 L87.50,2.33 L100.00,2.34 L112.50,2.09 L125.00,2.16 L137.50,2.24 L150.00,2.15 L162.50,2.31 L175.00,2.32 L187.50,2.31 L200.00,2.21 L212.50,2.38 L225.00,2.14 L237.50,2.25 L250.00,2.38 L262.50,2.39 L275.00,2.54 L287.50,2.59 L300.00,2.55 L300.00,3.45 L287.50,3.37 L275.00,3.34 L262.50,3.32 L250.00,3.47 L237.50,3.37 L225.00,3.12 L212.50,3.14 L200.00,2.81 L187.50,2.80 L175.00,2.74 L162.50,2.74 L150.00,2.73 L137.50,3.02 L125.00,3.05 L112.50,2.96 L100.00,3.17 L87.50,3.17 L75.00,3.18 L62.50,3.13 L50.00,3.16 L37.50,3.25 L25.00,3.33 L12.50,3.37 L0.00,3.45Z'/%3E%3C/g%3E%3C/svg%3E");--ke-dam:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='6' viewBox='0 0 300 6' preserveAspectRatio='none'%3E%3Cg fill='%231c1c1c'%3E%3Cpath d='M0.00,2.05 L12.50,1.94 L25.00,2.05 L37.50,2.05 L50.00,2.24 L62.50,2.21 L75.00,2.25 L87.50,2.41 L100.00,2.50 L112.50,2.60 L125.00,2.56 L137.50,2.45 L150.00,2.59 L162.50,2.44 L175.00,2.24 L187.50,1.83 L200.00,1.71 L212.50,1.58 L225.00,1.68 L237.50,1.84 L250.00,1.87 L262.50,1.88 L275.00,1.89 L287.50,1.95 L300.00,2.05 L300.00,3.95 L287.50,3.94 L275.00,3.99 L262.50,4.03 L250.00,4.01 L237.50,4.06 L225.00,4.11 L212.50,4.23 L200.00,4.39 L187.50,4.27 L175.00,4.32 L162.50,4.21 L150.00,4.19 L137.50,3.97 L125.00,4.07 L112.50,4.18 L100.00,4.26 L87.50,4.37 L75.00,4.34 L62.50,4.32 L50.00,4.32 L37.50,4.17 L25.00,4.25 L12.50,4.13 L0.00,3.95Z'/%3E%3C/g%3E%3C/svg%3E");--ke-doi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='10' viewBox='0 0 300 10' preserveAspectRatio='none'%3E%3Cg fill='%231c1c1c'%3E%3Cpath d='M0.00,1.70 L12.50,1.75 L25.00,1.73 L37.50,1.80 L50.00,1.84 L62.50,1.72 L75.00,1.70 L87.50,1.67 L100.00,1.41 L112.50,1.47 L125.00,1.12 L137.50,1.07 L150.00,1.03 L162.50,0.99 L175.00,1.25 L187.50,1.42 L200.00,1.65 L212.50,1.64 L225.00,1.60 L237.50,1.66 L250.00,1.57 L262.50,1.49 L275.00,1.52 L287.50,1.60 L300.00,1.70 L300.00,3.50 L287.50,3.53 L275.00,3.56 L262.50,3.52 L250.00,3.41 L237.50,3.25 L225.00,3.03 L212.50,3.00 L200.00,3.05 L187.50,2.98 L175.00,3.16 L162.50,3.34 L150.00,3.65 L137.50,3.61 L125.00,3.35 L112.50,3.42 L100.00,3.22 L87.50,3.40 L75.00,3.30 L62.50,3.21 L50.00,3.31 L37.50,3.37 L25.00,3.40 L12.50,3.51 L0.00,3.50Z'/%3E%3Cpath d='M0.00,6.95 L12.50,6.96 L25.00,7.08 L37.50,7.14 L50.00,7.20 L62.50,7.14 L75.00,7.20 L87.50,7.09 L100.00,6.95 L112.50,6.80 L125.00,6.85 L137.50,6.74 L150.00,6.94 L162.50,7.08 L175.00,6.96 L187.50,6.90 L200.00,6.77 L212.50,6.61 L225.00,6.45 L237.50,6.46 L250.00,6.73 L262.50,6.83 L275.00,6.97 L287.50,6.98 L300.00,6.95 L300.00,7.85 L287.50,7.76 L275.00,7.71 L262.50,7.66 L250.00,7.78 L237.50,7.76 L225.00,7.78 L212.50,7.72 L200.00,7.59 L187.50,7.52 L175.00,7.47 L162.50,7.61 L150.00,7.68 L137.50,7.83 L125.00,8.16 L112.50,8.04 L100.00,7.97 L87.50,7.91 L75.00,7.92 L62.50,7.78 L50.00,7.84 L37.50,7.91 L25.00,8.00 L12.50,7.92 L0.00,7.85Z'/%3E%3C/g%3E%3C/svg%3E");--ke-doi2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='10' viewBox='0 0 300 10' preserveAspectRatio='none'%3E%3Cg fill='%231c1c1c'%3E%3Cpath d='M0.00,2.15 L12.50,2.12 L25.00,2.14 L37.50,2.11 L50.00,2.13 L62.50,2.04 L75.00,1.98 L87.50,2.17 L100.00,2.37 L112.50,2.42 L125.00,2.55 L137.50,2.54 L150.00,2.64 L162.50,2.81 L175.00,2.53 L187.50,2.59 L200.00,2.38 L212.50,2.50 L225.00,2.37 L237.50,2.35 L250.00,2.26 L262.50,2.22 L275.00,2.15 L287.50,2.19 L300.00,2.15 L300.00,3.05 L287.50,3.12 L275.00,3.19 L262.50,3.33 L250.00,3.34 L237.50,3.35 L225.00,3.32 L212.50,3.46 L200.00,3.33 L187.50,3.42 L175.00,3.18 L162.50,3.34 L150.00,3.14 L137.50,3.07 L125.00,3.16 L112.50,3.18 L100.00,3.36 L87.50,3.40 L75.00,3.31 L62.50,3.28 L50.00,3.19 L37.50,3.03 L25.00,3.02 L12.50,2.99 L0.00,3.05Z'/%3E%3Cpath d='M0.00,6.50 L12.50,6.49 L25.00,6.42 L37.50,6.30 L50.00,6.21 L62.50,6.40 L75.00,6.53 L87.50,6.80 L100.00,7.01 L112.50,6.95 L125.00,6.76 L137.50,6.59 L150.00,6.47 L162.50,6.32 L175.00,6.40 L187.50,6.64 L200.00,6.91 L212.50,6.84 L225.00,6.86 L237.50,6.91 L250.00,6.72 L262.50,6.51 L275.00,6.43 L287.50,6.42 L300.00,6.50 L300.00,8.30 L287.50,8.39 L275.00,8.52 L262.50,8.53 L250.00,8.46 L237.50,8.39 L225.00,8.25 L212.50,8.30 L200.00,8.56 L187.50,8.69 L175.00,8.95 L162.50,9.11 L150.00,9.00 L137.50,8.58 L125.00,8.32 L112.50,8.31 L100.00,8.36 L87.50,8.29 L75.00,8.37 L62.50,8.62 L50.00,8.55 L37.50,8.47 L25.00,8.33 L12.50,8.27 L0.00,8.30Z'/%3E%3C/g%3E%3C/svg%3E");--ke-le1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='120' viewBox='0 0 10 120' preserveAspectRatio='none'%3E%3Cg fill='%231c1c1c'%3E%3Cpath d='M2.40,0.00 L2.41,5.00 L2.37,10.00 L2.21,15.00 L2.20,20.00 L2.24,25.00 L2.16,30.00 L2.29,35.00 L2.36,40.00 L2.48,45.00 L2.65,50.00 L2.64,55.00 L2.43,60.00 L2.57,65.00 L2.47,70.00 L2.29,75.00 L2.28,80.00 L2.53,85.00 L2.75,90.00 L2.69,95.00 L2.66,100.00 L2.58,105.00 L2.44,110.00 L2.35,115.00 L2.40,120.00 L3.60,120.00 L3.68,115.00 L3.65,110.00 L3.62,105.00 L3.60,100.00 L3.60,95.00 L3.80,90.00 L3.90,85.00 L3.99,80.00 L4.08,75.00 L4.04,70.00 L3.87,65.00 L3.53,60.00 L3.59,55.00 L3.48,50.00 L3.33,45.00 L3.42,40.00 L3.60,35.00 L3.56,30.00 L3.60,25.00 L3.54,20.00 L3.53,15.00 L3.61,10.00 L3.56,5.00 L3.60,0.00Z'/%3E%3Cpath d='M6.80,0.00 L6.81,5.00 L6.77,10.00 L6.70,15.00 L6.71,20.00 L6.74,25.00 L6.73,30.00 L6.84,35.00 L6.71,40.00 L6.80,45.00 L6.94,50.00 L6.90,55.00 L7.15,60.00 L7.26,65.00 L7.25,70.00 L7.14,75.00 L7.11,80.00 L7.05,85.00 L7.10,90.00 L6.87,95.00 L6.83,100.00 L6.93,105.00 L6.88,110.00 L6.80,115.00 L6.80,120.00 L7.60,120.00 L7.61,115.00 L7.70,110.00 L7.80,105.00 L7.74,100.00 L7.74,95.00 L7.85,90.00 L7.67,85.00 L7.62,80.00 L7.61,75.00 L7.71,70.00 L7.76,65.00 L7.74,60.00 L7.64,55.00 L7.81,50.00 L7.70,45.00 L7.57,40.00 L7.66,35.00 L7.58,30.00 L7.65,25.00 L7.63,20.00 L7.56,15.00 L7.55,10.00 L7.55,5.00 L7.60,0.00Z'/%3E%3C/g%3E%3C/svg%3E");--ke-le2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='120' viewBox='0 0 10 120' preserveAspectRatio='none'%3E%3Cg fill='%231c1c1c'%3E%3Cpath d='M2.40,0.00 L2.41,5.00 L2.41,10.00 L2.41,15.00 L2.33,20.00 L2.19,25.00 L1.97,30.00 L1.94,35.00 L1.80,40.00 L1.94,45.00 L2.20,50.00 L2.33,55.00 L2.35,60.00 L2.23,65.00 L2.19,70.00 L1.83,75.00 L1.77,80.00 L2.07,85.00 L2.17,90.00 L2.33,95.00 L2.50,100.00 L2.45,105.00 L2.45,110.00 L2.40,115.00 L2.40,120.00 L3.60,120.00 L3.56,115.00 L3.48,110.00 L3.43,105.00 L3.52,100.00 L3.47,95.00 L3.55,90.00 L3.76,85.00 L3.62,80.00 L3.49,75.00 L3.42,70.00 L3.14,65.00 L3.15,60.00 L3.17,55.00 L3.25,50.00 L3.36,45.00 L3.60,40.00 L3.82,35.00 L3.59,30.00 L3.47,25.00 L3.39,20.00 L3.41,15.00 L3.43,10.00 L3.53,5.00 L3.60,0.00Z'/%3E%3Cpath d='M6.80,0.00 L6.80,5.00 L6.85,10.00 L6.80,15.00 L6.92,20.00 L6.78,25.00 L6.73,30.00 L6.78,35.00 L6.71,40.00 L6.45,45.00 L6.31,50.00 L6.29,55.00 L6.38,60.00 L6.45,65.00 L6.58,70.00 L6.60,75.00 L6.66,80.00 L6.61,85.00 L6.71,90.00 L6.86,95.00 L6.75,100.00 L6.81,105.00 L6.84,110.00 L6.81,115.00 L6.80,120.00 L7.60,120.00 L7.54,115.00 L7.50,110.00 L7.42,105.00 L7.32,100.00 L7.44,95.00 L7.35,90.00 L7.34,85.00 L7.45,80.00 L7.39,75.00 L7.36,70.00 L7.32,65.00 L7.37,60.00 L7.38,55.00 L7.36,50.00 L7.34,45.00 L7.42,40.00 L7.37,35.00 L7.28,30.00 L7.33,25.00 L7.49,20.00 L7.43,15.00 L7.55,10.00 L7.57,5.00 L7.60,0.00Z'/%3E%3C/g%3E%3C/svg%3E")}
html[data-theme=co] .bang{border-bottom:0}
html[data-theme=co] .bang tbody tr:nth-child(n) td{border-bottom:0!important;background:var(--ke1) left bottom/100% 6px no-repeat!important;padding-bottom:10px}
html[data-theme=co] .bang tbody tr:nth-child(3n+2) td{background-image:var(--ke2)!important}
html[data-theme=co] .bang tbody tr:nth-child(3n) td{background-image:var(--ke3)!important}
html[data-theme=co] .bang tbody tr:nth-child(5n) td{background-image:var(--ke-dam)!important}
html[data-theme=co] .bang tbody tr:last-child td{background-image:var(--ke-doi)!important;background-size:100% 10px!important;padding-bottom:14px}
html[data-theme=co] .bang thead th{border-top:0!important;border-bottom:0!important;background:var(--ke-doi) left top/100% 10px no-repeat,var(--ke-doi2) left bottom/100% 10px no-repeat!important;padding-top:16px;padding-bottom:15px}
html[data-theme=co] .bang tbody tr:nth-child(n) td:first-child{border-right:0!important;background:var(--ke1) left bottom/100% 6px no-repeat,var(--ke-le1) right top/10px 100% no-repeat!important;padding-right:20px}
html[data-theme=co] .bang tbody tr:nth-child(2n) td:first-child{background-image:var(--ke2),var(--ke-le2)!important}
html[data-theme=co] .bang tbody tr:nth-child(5n) td:first-child{background-image:var(--ke-dam),var(--ke-le1)!important}
html[data-theme=co] .bang tbody tr:last-child td:first-child{background:var(--ke-doi) left bottom/100% 10px no-repeat,var(--ke-le2) right top/10px 100% no-repeat!important}
html[data-theme=co] .bang thead th:first-child{border-right:0!important;background:var(--ke-doi) left top/100% 10px no-repeat,var(--ke-doi2) left bottom/100% 10px no-repeat,var(--ke-le1) right top/10px 100% no-repeat!important;padding-right:20px}

/* the tables of the old looks are typed: Courier type throughout, the head too, in capitals (Phong, 23 Nov 01:56:
   "courier type there, or monowidth font, else it looks too modern") */
html[data-theme=co] .bang,html[data-theme=co] .bang :is(th,td,a,b,span:not(.tay):not(.tay *)){font-family:"Cousine","Courier New",Courier,monospace!important}
/* (the head keeps its printed small capitals: "header font looks okay", Phong 01:57) */
html[data-theme=co] .bang th{font-family:"Old Standard TT","Noto Serif",serif!important}
html[data-theme=co] .bang:not(.so) tbody td:first-child::before{font-family:"Cousine","Courier New",Courier,monospace}

/* The rows read as typed on a machine, not set on a computer (Phong, 23 Nov 01:57: "more typed / less modern"):
   no bold type (a typewriter has one weight; a name is struck twice instead, a hair apart), wide typewriter spacing, the
   underline is a row of struck underscores, and the entries do not sit on one exact line: each cell is a touch higher or
   lower, the way a sheet moves in the roller between two entries. */
html[data-theme=co] .bang tbody td,html[data-theme=co] .bang tbody td :is(a,b){font-weight:400!important;letter-spacing:.035em;font-size:.97em}
html[data-theme=co] .bang:not(.so) tbody tr:nth-child(n) td:first-child,html[data-theme=co] .bang:not(.so) tbody tr:nth-child(n) td:first-child a
 {font-weight:400!important;text-shadow:.55px 0 0 currentColor,0 .2px 0 currentColor}
html[data-theme=co] .bang tbody td a{text-decoration:none!important;background:linear-gradient(currentColor,currentColor) 0 calc(100% - 1px)/100% 1.3px no-repeat;padding-bottom:3px}
html[data-theme=co] .bang tbody td>*{position:relative}
html[data-theme=co] .bang tbody tr:nth-child(3n+1) td:nth-child(2n){padding-top:10.2px}
html[data-theme=co] .bang tbody tr:nth-child(3n+2) td:nth-child(2n+1){padding-top:8px}
html[data-theme=co] .bang tbody tr:nth-child(4n) td:nth-child(3n){padding-top:10.8px}
html[data-theme=co] .bang tbody tr:nth-child(7n+3) td:nth-child(n+2){padding-top:7.6px;letter-spacing:.05em}
html[data-theme=co] .bang tbody tr:nth-child(5n+2) td:nth-child(2){opacity:.86}
html[data-theme=co] .bang tbody tr:nth-child(6n+4) td:nth-child(n+3){opacity:.9}

/* the frame around a table is ruled like its lines (Phong, 23 Nov 02:00): four ink strokes of changing thickness that run past
   the corners and cross */
html[data-tong=co]{--ke-khung:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%233d2a17'%3E%3Cpath d='M0.00,10.30 L4.00,10.20 L8.00,10.03 L12.00,9.92 L16.00,10.02 L20.00,10.04 L24.00,10.31 L28.00,10.46 L32.00,10.87 L36.00,11.05 L40.00,10.90 L44.00,11.02 L48.00,11.05 L52.00,11.43 L56.00,11.33 L60.00,11.37 L64.00,11.44 L68.00,11.29 L72.00,11.50 L76.00,11.17 L80.00,10.90 L84.00,10.60 L88.00,10.52 L92.00,10.15 L96.00,9.71 L100.00,9.53 L104.00,9.46 L108.00,9.64 L112.00,9.71 L116.00,9.95 L120.00,10.30 L120.00,12.70 L116.00,12.76 L112.00,12.90 L108.00,13.24 L104.00,13.36 L100.00,13.47 L96.00,13.41 L92.00,13.40 L88.00,13.26 L84.00,12.91 L80.00,12.92 L76.00,13.00 L72.00,13.21 L68.00,12.91 L64.00,13.05 L60.00,13.11 L56.00,13.32 L52.00,13.73 L48.00,13.65 L44.00,13.80 L40.00,13.75 L36.00,13.92 L32.00,13.87 L28.00,13.72 L24.00,13.93 L20.00,13.97 L16.00,14.04 L12.00,13.76 L8.00,13.46 L4.00,13.13 L0.00,12.70Z'/%3E%3Cpath d='M0.00,107.40 L4.00,107.36 L8.00,107.46 L12.00,107.54 L16.00,107.64 L20.00,107.53 L24.00,107.79 L28.00,107.53 L32.00,107.58 L36.00,107.27 L40.00,107.22 L44.00,106.75 L48.00,106.48 L52.00,105.97 L56.00,105.86 L60.00,105.47 L64.00,105.64 L68.00,105.55 L72.00,105.89 L76.00,106.14 L80.00,106.01 L84.00,106.28 L88.00,106.15 L92.00,106.36 L96.00,106.74 L100.00,106.91 L104.00,107.18 L108.00,107.31 L112.00,107.34 L116.00,107.32 L120.00,107.40 L120.00,109.60 L116.00,109.28 L112.00,109.17 L108.00,109.09 L104.00,109.04 L100.00,108.97 L96.00,109.07 L92.00,108.94 L88.00,108.87 L84.00,109.03 L80.00,108.79 L76.00,109.07 L72.00,109.13 L68.00,109.18 L64.00,109.59 L60.00,109.48 L56.00,109.59 L52.00,109.17 L48.00,109.08 L44.00,108.84 L40.00,108.97 L36.00,108.85 L32.00,109.11 L28.00,109.08 L24.00,109.43 L20.00,109.37 L16.00,109.77 L12.00,109.94 L8.00,110.02 L4.00,109.90 L0.00,109.60Z'/%3E%3Cpath d='M10.70,0.00 L10.69,4.00 L10.61,8.00 L10.60,12.00 L10.39,16.00 L10.30,20.00 L9.74,24.00 L9.47,28.00 L9.11,32.00 L9.16,36.00 L9.22,40.00 L9.36,44.00 L9.62,48.00 L9.52,52.00 L9.80,56.00 L9.86,60.00 L10.25,64.00 L10.34,68.00 L10.59,72.00 L10.33,76.00 L10.32,80.00 L10.28,84.00 L10.07,88.00 L10.09,92.00 L10.38,96.00 L10.25,100.00 L10.37,104.00 L10.37,108.00 L10.66,112.00 L10.86,116.00 L10.70,120.00 L12.90,120.00 L13.15,116.00 L13.32,112.00 L13.43,108.00 L13.66,104.00 L13.52,100.00 L13.45,96.00 L12.95,92.00 L12.77,88.00 L12.82,84.00 L12.60,80.00 L12.25,76.00 L12.19,72.00 L11.86,68.00 L11.97,64.00 L11.95,60.00 L12.25,56.00 L12.20,52.00 L12.47,48.00 L12.44,44.00 L12.61,40.00 L12.79,36.00 L12.74,32.00 L12.76,28.00 L12.47,24.00 L12.49,20.00 L12.27,16.00 L12.41,12.00 L12.51,8.00 L12.74,4.00 L12.90,0.00Z'/%3E%3Cpath d='M106.90,0.00 L106.91,4.00 L106.95,8.00 L107.21,12.00 L107.12,16.00 L107.39,20.00 L107.44,24.00 L107.90,28.00 L107.88,32.00 L107.92,36.00 L108.14,40.00 L107.77,44.00 L107.74,48.00 L107.52,52.00 L107.14,56.00 L106.93,60.00 L106.57,64.00 L106.22,68.00 L106.20,72.00 L106.56,76.00 L106.97,80.00 L106.91,84.00 L106.99,88.00 L107.15,92.00 L106.87,96.00 L106.72,100.00 L106.64,104.00 L106.35,108.00 L106.16,112.00 L106.25,116.00 L106.90,120.00 L109.50,120.00 L109.68,116.00 L109.60,112.00 L109.45,108.00 L109.31,104.00 L109.02,100.00 L108.91,96.00 L109.02,92.00 L108.86,88.00 L109.07,84.00 L109.77,80.00 L110.19,76.00 L110.52,72.00 L110.80,68.00 L110.93,64.00 L110.78,60.00 L110.49,56.00 L110.51,52.00 L110.43,48.00 L110.14,44.00 L110.17,40.00 L109.73,36.00 L109.77,32.00 L110.14,28.00 L110.12,24.00 L110.38,20.00 L110.21,16.00 L110.28,12.00 L109.99,8.00 L109.88,4.00 L109.50,0.00Z'/%3E%3C/g%3E%3C/svg%3E")}
html[data-tong=dt]{--ke-khung:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%231c1c1c'%3E%3Cpath d='M0.00,10.30 L4.00,10.07 L8.00,10.03 L12.00,9.91 L16.00,9.83 L20.00,9.59 L24.00,9.35 L28.00,9.37 L32.00,9.19 L36.00,9.37 L40.00,9.24 L44.00,9.31 L48.00,9.09 L52.00,8.82 L56.00,8.83 L60.00,9.11 L64.00,9.08 L68.00,9.81 L72.00,10.14 L76.00,10.55 L80.00,10.64 L84.00,10.95 L88.00,11.13 L92.00,11.18 L96.00,11.21 L100.00,10.97 L104.00,11.03 L108.00,10.70 L112.00,10.66 L116.00,10.46 L120.00,10.30 L120.00,12.70 L116.00,13.08 L112.00,13.26 L108.00,13.14 L104.00,13.22 L100.00,12.92 L96.00,13.01 L92.00,12.93 L88.00,12.90 L84.00,12.81 L80.00,12.69 L76.00,12.96 L72.00,13.11 L68.00,13.46 L64.00,13.37 L60.00,13.79 L56.00,13.52 L52.00,13.19 L48.00,12.97 L44.00,12.74 L40.00,12.39 L36.00,12.43 L32.00,12.23 L28.00,12.32 L24.00,12.10 L20.00,12.06 L16.00,12.04 L12.00,11.97 L8.00,12.08 L4.00,12.21 L0.00,12.70Z'/%3E%3Cpath d='M0.00,107.40 L4.00,107.26 L8.00,107.07 L12.00,106.91 L16.00,106.63 L20.00,106.83 L24.00,106.74 L28.00,106.98 L32.00,107.02 L36.00,107.39 L40.00,107.23 L44.00,107.28 L48.00,107.49 L52.00,107.74 L56.00,107.77 L60.00,108.15 L64.00,108.49 L68.00,108.53 L72.00,108.61 L76.00,108.83 L80.00,108.83 L84.00,108.55 L88.00,108.42 L92.00,107.92 L96.00,107.73 L100.00,107.37 L104.00,107.35 L108.00,107.26 L112.00,107.40 L116.00,107.42 L120.00,107.40 L120.00,109.60 L116.00,110.03 L112.00,110.37 L108.00,110.54 L104.00,110.77 L100.00,110.66 L96.00,110.66 L92.00,110.39 L88.00,110.47 L84.00,110.30 L80.00,110.39 L76.00,110.29 L72.00,110.03 L68.00,110.01 L64.00,110.19 L60.00,110.22 L56.00,110.28 L52.00,110.61 L48.00,110.55 L44.00,110.32 L40.00,110.16 L36.00,110.26 L32.00,109.98 L28.00,110.13 L24.00,110.05 L20.00,110.14 L16.00,109.73 L12.00,109.66 L8.00,109.47 L4.00,109.43 L0.00,109.60Z'/%3E%3Cpath d='M10.70,0.00 L10.57,4.00 L10.56,8.00 L10.52,12.00 L10.53,16.00 L10.43,20.00 L10.08,24.00 L9.89,28.00 L9.71,32.00 L9.27,36.00 L8.91,40.00 L8.77,44.00 L8.92,48.00 L9.42,52.00 L9.59,56.00 L9.83,60.00 L10.09,64.00 L10.44,68.00 L10.45,72.00 L10.44,76.00 L9.91,80.00 L9.84,84.00 L9.57,88.00 L9.48,92.00 L9.60,96.00 L10.03,100.00 L10.24,104.00 L10.65,108.00 L10.82,112.00 L10.91,116.00 L10.70,120.00 L12.90,120.00 L12.96,116.00 L12.96,112.00 L13.09,108.00 L13.22,104.00 L13.68,100.00 L13.75,96.00 L13.72,92.00 L13.42,88.00 L13.00,84.00 L12.36,80.00 L12.38,76.00 L12.08,72.00 L11.96,68.00 L11.65,64.00 L11.72,60.00 L12.11,56.00 L12.76,52.00 L12.94,48.00 L13.05,44.00 L12.96,40.00 L12.77,36.00 L12.63,32.00 L12.38,28.00 L12.29,24.00 L12.43,20.00 L12.37,16.00 L12.33,12.00 L12.50,8.00 L12.73,4.00 L12.90,0.00Z'/%3E%3Cpath d='M106.90,0.00 L106.89,4.00 L107.10,8.00 L107.18,12.00 L107.15,16.00 L107.11,20.00 L107.01,24.00 L106.71,28.00 L106.21,32.00 L105.43,36.00 L105.14,40.00 L105.29,44.00 L105.51,48.00 L105.82,52.00 L106.05,56.00 L106.32,60.00 L106.43,64.00 L106.25,68.00 L106.63,72.00 L106.33,76.00 L105.96,80.00 L105.55,84.00 L105.67,88.00 L105.65,92.00 L105.75,96.00 L106.05,100.00 L106.43,104.00 L106.49,108.00 L106.70,112.00 L106.89,116.00 L106.90,120.00 L109.50,120.00 L109.36,116.00 L109.33,112.00 L109.31,108.00 L109.44,104.00 L109.31,100.00 L109.34,96.00 L109.54,92.00 L109.58,88.00 L109.06,84.00 L108.77,80.00 L108.45,76.00 L108.39,72.00 L108.00,68.00 L108.41,64.00 L108.63,60.00 L108.81,56.00 L109.20,52.00 L109.64,48.00 L110.04,44.00 L110.04,40.00 L109.89,36.00 L109.83,32.00 L109.48,28.00 L109.23,24.00 L109.11,20.00 L109.18,16.00 L109.38,12.00 L109.56,8.00 L109.63,4.00 L109.50,0.00Z'/%3E%3C/g%3E%3C/svg%3E")}
html[data-theme=co] .cuon{border:12px solid transparent;border-image:var(--ke-khung) 24 / 12px stretch}
html[data-theme=co] .cuon{padding-left:5px}

/* iPhone (Phong, 23 Nov 06:59): the member list showed its head and no rows. The speck mask sat on the <tbody>; Safari does not
   draw a masked table body. The mask now sits on the box around the table (a plain block), nothing on any part of the table. */
html.in-mon[data-theme=co] main table tbody{-webkit-mask-image:none!important;mask-image:none!important}
html.in-mon[data-theme=co] main table thead th{filter:none!important}
html.in-mon[data-theme=co] main .cuon{-webkit-mask-image:var(--in-mon)!important;mask-image:var(--in-mon)!important;-webkit-mask-size:220px 220px;mask-size:220px 220px}

/* scrolling down, nothing happens at the top of the screen any more: no fading veil, no dust (Phong, 23 Nov 07:18) */
.tan:not(.duoi),canvas.bui{display:none!important}

/* SPEED (Phong, 23 Nov 07:21: "give a solution for the slowness"). The worn print was made block by block: hundreds of blocks
   each with its own mask or filter, which a phone has to keep and redo as separate pictures. Now the page is drawn plain, and
   the wear is ONE sheet laid over it: specks in the colour of the paper (static/img/phu-*.png, repeated), one sheet over the
   head, one over the body, one over the foot. Where a speck lies on a letter the ink is gone; on bare paper it cannot be
   seen. Every letter is worn from the moment it is typed, all text alike, and no block has a mask or a print filter. */
html[data-tong=dt]{--phu:url(/static/img/phu-dt.png?v=1);--phu-toi:url(/static/img/phu-dt-toi.png?v=1)}
html[data-tong=co]{--phu:url(/static/img/phu-co.png?v=1);--phu-toi:url(/static/img/phu-co-toi.png?v=1)}
html.in-mon[data-theme=co] :is(header.top,main,footer.foot){position:relative}
html.in-mon[data-theme=co] :is(header.top,main,footer.foot)::after{content:"";position:absolute;inset:0;z-index:5;pointer-events:none;background:var(--phu) 0 0/220px 220px repeat}
html.in-mon[data-theme=co] :is(header.top,footer.foot)::after{background-image:var(--phu-toi)}
html.in-mon[data-theme=co] :is(header.top,main,footer.foot) :is(h1,h2,h3,h4,h5,h6,p,li,div,table,thead,tbody,tr,td,th,a,span,b,i,small,label,legend,button,summary,figcaption,blockquote,nav,dt,dd,ul,ol,section,article,form,fieldset,details):not(.tay):not(.tay *):not(.anh):not(.anh *)
 {-webkit-mask-image:none!important;mask-image:none!important}
html.in-mon[data-theme=co] :is(header.top,main,footer.foot) :is(h1,h2,h3,h4,h5,h6,p,li,td,th,tr,a,b,i,small,label,legend,button,summary,figcaption,blockquote,nav,dt,dd,span):not(.tay):not(.tay *):not(.anh):not(.anh *):not(.chu):not(.chu *)
 {filter:none!important}
/* dark tiles inside the body stand above the sheet (light specks on a dark tile read as a block of noise) */
html.in-mon[data-theme=co] main :is(.tabs a.on,.mui){position:relative;z-index:6}
@media print{html.in-mon[data-theme=co] :is(header.top,main,footer.foot)::after{display:none}}

/* the last row of a batch of the member list, while the next batch is fetched */
.bang tr.them td{text-align:left;font-style:italic;opacity:.7;padding:14px 10px!important;background-image:none!important;border:0!important;white-space:normal!important}
.bang tr.them td::before{content:none!important}
.bang tr.them{counter-increment:none!important}

/* speed: the ruled lines of the tables as small picture files (static/img/ke/, the same strokes), not as drawings the phone has
   to work out again for every cell of a different size */
html[data-tong=co]{--ke1:url(/static/img/ke/co-ke1.png?v=1);--ke2:url(/static/img/ke/co-ke2.png?v=1);--ke3:url(/static/img/ke/co-ke3.png?v=1);--ke-dam:url(/static/img/ke/co-ke-dam.png?v=1);--ke-doi:url(/static/img/ke/co-ke-doi.png?v=1);--ke-doi2:url(/static/img/ke/co-ke-doi2.png?v=1);--ke-le1:url(/static/img/ke/co-ke-le1.png?v=1);--ke-le2:url(/static/img/ke/co-ke-le2.png?v=1)}
html[data-tong=dt]{--ke1:url(/static/img/ke/dt-ke1.png?v=1);--ke2:url(/static/img/ke/dt-ke2.png?v=1);--ke3:url(/static/img/ke/dt-ke3.png?v=1);--ke-dam:url(/static/img/ke/dt-ke-dam.png?v=1);--ke-doi:url(/static/img/ke/dt-ke-doi.png?v=1);--ke-doi2:url(/static/img/ke/dt-ke-doi2.png?v=1);--ke-le1:url(/static/img/ke/dt-ke-le1.png?v=1);--ke-le2:url(/static/img/ke/dt-ke-le2.png?v=1)}
/* speed: on a table the double strike of the names and the ink bloom of the cells are a hairline stroke around the letters,
   not a shadow (a shadow is a second, blurred drawing of every letter) */
html[data-theme=co] .bang :is(td,th),html[data-theme=co] .bang :is(td,th) *{text-shadow:none!important}
html[data-theme=co] .bang:not(.so) tbody tr:nth-child(n) td:first-child a{text-shadow:none!important;-webkit-text-stroke:.45px currentColor}

/* The dark television screen before the intro is put up by the style sheet and taken away by a script (static/phim.js). On a
   slow phone or connection that script arrives late, and the screen stayed black for as long as that took; if it never ran,
   for ever ("some even load half black pages", Phong, 23 Nov 07:42). The dark screen now ends by itself after 2.2 s. */
@keyframes tv-het{to{opacity:0;visibility:hidden}}
html.tv:not(.tv-chay) body:before{animation:tv-het .35s 2.2s forwards}

/* The look buttons (the four looks, the two photo choices, the film switch) are gathered in one drop-down menu at the top
   right of the head (Phong, 23 Nov 11:24). Closed, it shows the name of the look in use; the red look is the default. */
header.top .bar{position:relative}
header.top details.kieu-hop{position:absolute;right:14px;top:8px;z-index:90;order:0;width:auto;margin:0}
header.top details.kieu-hop>summary{list-style:none;cursor:pointer;color:#fff;font-size:.78rem;line-height:1.2;padding:6px 26px 6px 10px;border:1px solid #ffffff77;border-radius:4px;white-space:nowrap;min-height:30px;
 background:linear-gradient(45deg,transparent 50%,#fff 50%) right 12px center/6px 6px no-repeat,linear-gradient(-45deg,transparent 50%,#fff 50%) right 6px center/6px 6px no-repeat}
header.top details.kieu-hop>summary::-webkit-details-marker{display:none}
header.top details.kieu-hop>summary b{font-weight:700}
header.top details.kieu-hop[open]>summary{border-color:var(--vang)}
header.top details.kieu-hop .kieu{position:absolute!important;right:0;top:calc(100% + 4px);display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:6px;width:max-content;min-width:200px;
 margin:0;padding:10px;order:0;background:var(--do-dam);border:1px solid #ffffff77;box-shadow:0 8px 24px rgba(0,0,0,.45)}
html[data-tong=co] header.top details.kieu-hop .kieu{background:#3d2a17}
html[data-tong=dt] header.top details.kieu-hop .kieu{background:#1c1c1c}
header.top details.kieu-hop .kieu :is(a,button){font-size:.86rem!important;padding:9px 12px!important;gap:8px!important;min-height:40px;justify-content:flex-start;text-align:left;border-radius:4px;width:100%}
header.top .brand{padding-right:0!important}
@media (max-width:759px){header.top .bar{padding-top:44px}header.top details.kieu-hop{right:12px;top:8px}}
@media print{header.top details.kieu-hop{display:none}}

/* The look menu lay on top of the main menu ("combobox overflows with top menu", Phong, 23 Nov 11:26): it was pinned to the
   corner of the head. It now has its own place in the row: on a phone a line of its own above the name of the clan, on a wide
   screen at the end of the row after the main menu. Only its list of choices floats. */
header.top details.kieu-hop{position:relative;right:auto;top:auto;order:-1;flex:0 0 100%;width:100%;display:flex;justify-content:flex-end;margin:0 0 6px}
header.top details.kieu-hop>summary{display:inline-block}
@media (max-width:759px){header.top .bar{padding-top:8px}header.top details.kieu-hop{right:auto;top:auto}}
@media (min-width:760px){header.top details.kieu-hop{order:5;flex:0 0 auto;width:auto;margin:0 0 0 14px}header.top nav{margin-left:auto}}
@media (min-width:760px){header.top details.kieu-hop{margin-left:auto}header.top nav{margin-left:auto}header.top nav+details.kieu-hop{margin-left:14px}}
@media (min-width:760px) and (max-width:1100px){header.top details.kieu-hop{flex:0 0 100%;order:-1;justify-content:flex-end;margin:0 0 4px}}

/* the look menu is an icon (a painter's palette) with an arrow, no words (Phong, 23 Nov 11:31). Being small, it stands in the
   row of the clan name on a phone, at its right end; the main menu follows below. */
header.top details.kieu-hop>summary{display:inline-flex;align-items:center;padding:5px 24px 5px 8px;min-height:34px;line-height:1}
header.top details.kieu-hop>summary svg{display:block}
@media (max-width:1100px){header.top details.kieu-hop{order:1;flex:0 0 auto;width:auto;margin:0 0 0 auto;align-self:center}header.top .bar>nav{order:2}}

/* the look menu button after the visitor has picked a look: the round mark of that look (the same as in the list) */
header.top details.kieu-hop>summary .dang{display:block;line-height:0}
header.top details.kieu-hop>summary .dang i{display:block;width:20px;height:20px;border-radius:50%;border:1.5px solid #fff;background:#7a1a1e}
header.top details.kieu-hop>summary .k-co i{background:linear-gradient(135deg,#6b4a2b,#d8b77a)}
header.top details.kieu-hop>summary .k-dt i{background:linear-gradient(135deg,#111 50%,#eee 50%)}
header.top details.kieu-hop>summary .k-pha i{background:linear-gradient(180deg,#a3141a 0 50%,#d9d9d9 50%)}

/* iPhone: the block being typed is redrawn as a whole a few times a second (static/go.js flips this class); Safari there did
   not always redraw the place where new letters had been put */
.ve-lai{transform:translateZ(0)}

/* iPhone and iPad (every browser there is Safari inside): each typed word was a piece shifted a hair up or down with
   position:relative, the uneven line of a typewriter. Safari keeps such a piece as a small layer of its own and did not draw
   it again when letters were added: the first letters of a word showed, the rest only after the next scroll (Phong, 23 Nov
   12:07 and 12:22, "it just lacks some letters, when I scroll again it fills them"). On iOS the words are plain text in the
   line: no shift, no layer, nothing that can be left undrawn. */
html.ios .gm.chu-may,html.ios .gm{position:static!important;top:auto!important}

/* The read-aloud button as a worn piece of carved wood (Phong, 23 Nov 12:28: "make it worn out and then old fashion style,
   maybe wooden carved? Dragon wooden style furniture vietnamese style?"): a round medallion, a dragon chasing its pearl
   carved round the rim (static/img/radio-go.svg, drawn by tools/rong.py), the radio cut into the sunk middle. While it
   reads, the radio glows like a lit dial. No filter on the button itself: it is fixed on the screen of slow phones. */
html:is([data-tong=dt],[data-tong=co]) .nut-doc{width:44px;height:44px;min-height:0;right:12px;border:0;outline:0;border-radius:50%;color:#1c1c1c;
 background:transparent url(/static/img/radio-go.svg?v=19) center/100% 100% no-repeat;box-shadow:none}
/* (23 Nov 12:36: no dragon; only the radio in its round frame, as a pencil sketch in black on the paper white. The whole
   sketch is the picture above, so the plain line icon inside the button is not shown in this look. While it reads, the
   sketch is turned to its negative.) */
html:is([data-tong=dt],[data-tong=co]) .nut-doc svg{display:none}
html:is([data-tong=dt],[data-tong=co]) .nut-doc.dang-doc{background-color:transparent;color:#1c1c1c;border:0;filter:invert(1)}
@media(max-width:480px){html:is([data-tong=dt],[data-tong=co]) .nut-doc{width:40px;height:40px}}

/* The look menu in the two old looks ("Đen trắng", "Ảnh xưa"): its round marks are pencil sketches (static/img/dau-*.svg,
   drawn by tools/dau.py), a little see-through, in the colour of the header's lettering; the frame of the button is thin
   and faint like a pencil line, not a clean box (Phong, 23 Nov 12:41). The pictures are light pencil on the dark header. */
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop :is(.kieu i,.dang i){width:24px!important;height:24px!important;border:0!important;border-radius:0!important;
 background:var(--dau) center/100% 100% no-repeat!important;opacity:.8;filter:none!important}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop{--dau:url(/static/img/dau-do.svg?v=4)}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .k-pha{--dau:url(/static/img/dau-pha.svg?v=4)}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .k-co{--dau:url(/static/img/dau-co.svg?v=4)}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .k-dt{--dau:url(/static/img/dau-dt.svg?v=4)}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop>summary{border-color:#ffffff40;border-radius:1px;color:#f6f5f2}
html[data-tong=co] header.top details.kieu-hop>summary{color:#efe2c6}
/* the frames round the button and round each look in the list: drawn by hand too, a thin faint line whose corners are
   not alike (Phong, 23 Nov 12:42: "And the rounded rectangular as well") */
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop>summary{border:1.2px solid #ffffff59!important;border-radius:14px 3px 12px 4px/4px 12px 3px 14px!important}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .kieu :is(a,button){border-width:1.2px!important;border-color:#ffffff4d!important;border-radius:18px 4px 15px 5px/5px 14px 4px 16px!important;box-shadow:none!important}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .kieu :is(a,button):nth-child(even){border-radius:5px 16px 4px 18px/15px 4px 17px 5px!important}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .kieu :is(a.on,a[aria-current],button[aria-pressed=true]){border-color:#ffffffb3!important}
/* (23 Nov 12:48: "differs too much from the logo ... thicker stroke, straighter lines".) The button is the twin of the seal
   at the left: the same height, the same firm 2px frame in the same colour, the same corners; the marks are drawn with
   thick straight strokes. The frames in the list are straight and firm too. */
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop>summary{min-height:40px!important;border:2px solid #e6e6e6b3!important;border-radius:6px!important;opacity:1}
html[data-tong=co] header.top details.kieu-hop>summary{border-color:var(--vang)!important}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop :is(.kieu i,.dang i){opacity:.92}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .kieu :is(a,button),
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .kieu :is(a,button):nth-child(even){border-width:2px!important;border-radius:6px!important}
/* (Phong, 23 Nov 13:14: "without the rounded rectangle looks better".) No frame round the look button in the old looks:
   only the round mark and its small arrow. The area that answers to a tap stays the same size. */
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop>summary,
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop[open]>summary{border-color:transparent!important}
/* (Phong, 23 Nov 13:16: "Yes opened list also no frame".) No frames round the entries of the opened list in the old looks
   either. The look and the picture kind in use are told apart by an underline instead of a brighter frame. */
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .kieu :is(a,button),
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .kieu :is(a,button):nth-child(even),
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .kieu :is(a.on,a[aria-current],button[aria-pressed=true]){border-color:transparent!important;background:transparent!important}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop .kieu :is(a.on,a[aria-current],button[aria-pressed=true]){text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:5px}

/* The read-aloud button in the red look and in "Nay -> xưa": the modern round button, in the colours of the look: deep red,
   a gold rim and the gold line drawing of the radio; while it reads, gold with a red radio. */
html:is([data-tong=do],[data-tong=pha]) .nut-doc{width:56px;height:56px;background:#8a1a1f;color:#f3d48a;border:2px solid #f3d48a;outline:0;box-shadow:0 3px 10px rgba(60,0,0,.35)}
html:is([data-tong=do],[data-tong=pha]) .nut-doc svg{width:32px;height:32px}
html:is([data-tong=do],[data-tong=pha]) .nut-doc.dang-doc{background:#f3d48a;color:#8a1a1f;border-color:#8a1a1f}
/* (Phong, 23 Nov 13:24: the look marks "lack the worn out look, and stand out too much".) The marks are worn (gaps in the
   drawing itself) and as faint as the seal and the lettering of the header; the arrow is as faint as they are. */
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop :is(.kieu i,.dang i){opacity:.58!important}
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop>summary::after{opacity:.6}
/* the arrow of the look button in the old looks: a worn, faint drawing like the marks, not a clean white triangle */
html:is([data-tong=dt],[data-tong=co]) header.top details.kieu-hop>summary{background:url(/static/img/dau-mui.svg?v=1) right 5px center/13px 9px no-repeat!important}

/* the stamp over the dark footer of the old looks: its negative, light on dark; if it is reading there as well (which
   alone would also turn it), the two turns cancel, so the reading state is told by a ring instead */
html:is([data-tong=dt],[data-tong=co]) .nut-doc.tren-toi{filter:invert(1)}
html:is([data-tong=dt],[data-tong=co]) .nut-doc.tren-toi.dang-doc{filter:invert(1);box-shadow:0 0 0 3px #1c1c1c,0 0 0 5px rgba(28,28,28,.4)}
/* (Phong, 23 Nov 13:40: "version 1 is good, but add 70% opacity".) The stamp is printed at 70 %: the page shows through the ink. */
/* (13:43: "Give it an additional 50% opacity": half of the 70 %.) */
/* (13:44: "50% was too much, do 75% opacity": three quarters of the 70 % instead of half.) */
html:is([data-tong=dt],[data-tong=co]) .nut-doc{opacity:.53}

/* the history of the clan on the home page, under "Về Nguyễn Đình Tộc" (it had a page of its own until 23 Nov) */
.ve .lich-su{margin-top:6px;scroll-margin-top:90px}
.ve .lich-su h3{margin:26px 0 10px;font-size:1.22rem}.ve .lich-su h3:first-child{margin-top:0}
.ve .lich-su p{margin:0 0 12px}

.ve .lich-su{margin-top:34px}.ve .lich-su>h2{margin:0 0 14px}.ve .lich-su>h2+h3{margin-top:0}
