@font-face{font-family:'Alegreya';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/alegreya-vietnamese-500-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Alegreya';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/alegreya-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Alegreya';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/alegreya-vietnamese-700-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Alegreya';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/alegreya-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Alegreya';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/alegreya-vietnamese-800-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Alegreya';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/alegreya-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/be-vietnam-pro-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --cham:#1E2B4A; --cham-2:#2A3A60; --diep:#F1EEEA; --diep-2:#E2DCD3; --paper:#FBFAF8;
  --son:#B8322A; --hoe:#E0A526; --la:#3E7A57;
  --serif:"Alegreya",Georgia,"Times New Roman",serif;
  --sans:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html{background:var(--diep);scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;color:var(--cham);font-family:var(--sans);font-size:17px;line-height:1.65;background:transparent}
a{color:inherit}
img,svg{max-width:100%}
:focus-visible{outline:3px solid var(--hoe);outline-offset:3px;border-radius:4px}
.wrap{max-width:1180px;margin:0 auto;padding:0 22px;position:relative}
.narrow{max-width:760px}
h1,h2,h3{font-family:var(--serif);line-height:1.15;margin:0;font-weight:800;text-wrap:balance}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:absolute;left:-999px;top:8px;background:var(--hoe);color:var(--cham);padding:8px 14px;border-radius:8px;z-index:50}
.skip:focus{left:8px}
.small{font-size:14px}
.lede{max-width:64ch;font-size:18px;opacity:.85;margin:10px 0 28px}
.btn{display:inline-flex;align-items:center;gap:8px;font:600 15px var(--sans);padding:11px 20px;border-radius:999px;border:1.5px solid var(--cham);cursor:pointer;background:var(--cham);color:var(--diep);text-decoration:none}
.btn.ghost{background:transparent;color:var(--cham)}
.btn.light{background:var(--diep);color:var(--cham);border-color:var(--diep)}
.more{display:inline-block;margin-top:10px;font-weight:600;font-size:15px;color:var(--c,var(--son));text-underline-offset:3px}
.more.light{color:var(--hoe)}

/* header */
.top{background:var(--cham);color:var(--diep);position:sticky;top:0;z-index:30}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;height:60px}
.brand{font-family:var(--serif);font-weight:800;font-size:25px;text-decoration:none;display:flex;align-items:center;gap:10px;white-space:nowrap}
.brand svg{width:30px;height:30px}
.nav{display:flex;gap:2px}
.nav a,.menu nav a{text-decoration:none;padding:7px 11px;border-radius:999px;font-size:15px;white-space:nowrap;opacity:.85}
.nav a:hover,.nav a[aria-current]{opacity:1;background:rgba(241,238,234,.12)}
.menu{display:none;position:relative}
.menu summary{list-style:none;cursor:pointer;padding:7px 14px;border:1px solid rgba(241,238,234,.35);border-radius:999px;font-size:15px}
.menu summary::-webkit-details-marker{display:none}
.menu nav{position:absolute;right:0;top:46px;background:var(--cham);border-radius:14px;padding:8px;display:flex;flex-direction:column;min-width:220px;box-shadow:0 18px 40px rgba(0,0,0,.3)}
.menu nav a{padding:11px 14px;border-radius:10px}
@media (max-width:980px){.nav{display:none}.menu{display:block}}

/* nền mờ của từng phong tục */
.bg-art{position:fixed;z-index:-1;pointer-events:none;right:-6vw;top:12vh;width:min(78vw,820px);aspect-ratio:1;opacity:.11}
.bg-art svg{width:100%;height:100%}
.bg-photo{inset:0;right:0;top:0;width:auto;aspect-ratio:auto;background-size:cover;background-position:center;opacity:.13;filter:saturate(.7)}
.bg-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--diep) 0%,rgba(241,238,234,.5) 55%,rgba(241,238,234,.2) 100%)}
@media (max-width:760px){.bg-art{right:-30vw;top:20vh;width:120vw;opacity:.08}}

/* breadcrumbs */
.crumbs{font-size:14px;padding:22px 0 8px;display:flex;flex-wrap:wrap;gap:6px;opacity:.75}
.crumbs a{text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs .sep{opacity:.5}

/* bài viết */
.page{padding-bottom:60px}
.art-head{padding:6px 0 18px}
.cat-chip{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;text-decoration:none;color:var(--c)}
.cat-chip::before,.card-cat::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--c)}
.art-head h1{font-size:clamp(36px,5.6vw,56px);margin:10px 0 12px;letter-spacing:-.005em}
.lead{font-size:20px;line-height:1.55;margin:0 0 22px;opacity:.9}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2px;margin:0 0 14px;background:var(--diep-2);border-radius:14px;overflow:hidden}
.fact{background:var(--paper);padding:12px 16px}
.fact dt{font-size:13px;opacity:.65}
.fact dd{margin:2px 0 0;font-weight:600;font-size:16px;line-height:1.4}
.fact-next{background:var(--cham);color:var(--diep)}
.fact-next dd{font-family:var(--serif);font-size:22px;color:var(--hoe)}
.fact-sub{display:block;font-family:var(--sans);font-size:13px;font-weight:400;color:var(--diep);opacity:.8;margin-top:2px}
.byline{font-size:14px;opacity:.65;margin:0}
.toc{background:var(--paper);border-left:4px solid var(--cat,var(--son));border-radius:0 12px 12px 0;padding:14px 20px;margin:10px 0 26px}
.toc-h{font-family:var(--serif);font-weight:700;font-size:19px;margin:0 0 6px}
.toc ol{margin:0;padding-left:20px;font-size:15.5px}
.toc li{margin:3px 0}
.toc a{text-decoration:none}
.toc a:hover{text-decoration:underline}

.prose{font-size:18px;line-height:1.75}
.prose>*{max-width:68ch}
.prose h2{font-size:clamp(27px,3.4vw,34px);margin:44px 0 12px;scroll-margin-top:76px}
.prose h3{font-size:22px;font-weight:700;margin:28px 0 8px;scroll-margin-top:76px}
.prose p{margin:0 0 16px}
.prose ul,.prose ol{padding-left:24px;margin:0 0 18px}
.prose li{margin:6px 0}
.prose li::marker{color:var(--cat,var(--son))}
.prose blockquote{margin:22px 0;padding:6px 0 6px 20px;border-left:4px solid var(--hoe);font-family:var(--serif);font-style:italic;font-size:22px;line-height:1.45}
.prose a{color:var(--son);text-underline-offset:3px}
.prose strong{font-weight:600}
.prose .note{background:var(--paper);border-radius:12px;padding:14px 18px;font-size:16px}
.table-wrap{overflow-x:auto;margin:6px 0 22px;max-width:100%!important}
table{border-collapse:collapse;width:100%;font-size:16px;background:var(--paper);border-radius:12px;overflow:hidden}
th,td{text-align:left;vertical-align:top;padding:11px 14px;border-bottom:1px solid var(--diep-2)}
thead th{background:var(--cham);color:var(--diep);font-weight:600}
tbody th{font-weight:600;color:var(--son)}
.share{display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-top:1px solid var(--diep-2);margin-top:36px;padding-top:22px}
.share p{width:100%;margin:0 0 4px;font-weight:600}

/* quảng cáo: chừa chỗ để không xô lệch bố cục */
.ad{margin:30px 0;min-height:280px;text-align:center}
.ad-label{display:block;font-size:12px;opacity:.5;margin-bottom:4px}

/* thẻ bài */
.cards{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.card a{display:flex;flex-direction:column;height:100%;text-decoration:none;background:var(--paper);border-radius:16px;overflow:hidden;border:1px solid var(--diep-2);transition:border-color .15s,transform .15s}
.card a:hover{border-color:var(--cham);transform:translateY(-2px)}
.card-art{display:block;height:120px;background:var(--diep);position:relative;overflow:hidden}
.card-art svg{position:absolute;width:190px;height:190px;right:-24px;top:-30px;opacity:.55}
.card-body{display:flex;flex-direction:column;gap:5px;padding:14px 16px 16px;flex:1}
.card-cat{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--c)}
.card-title{font-family:var(--serif);font-weight:700;font-size:23px;line-height:1.15}
.card-desc{font-size:15px;opacity:.8;line-height:1.5}
.card-when,.card-next{margin-top:auto;padding-top:6px;font-size:13.5px;opacity:.7}
.card-next{opacity:1;font-weight:600;color:var(--son)}
.related{padding:50px 0 10px}
.related h2{font-size:32px;margin-bottom:18px}

/* tìm kiếm + lọc */
.list-h1{font-size:clamp(40px,6vw,60px);margin-top:6px}
.tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:26px}
.search{flex:1 1 280px}
.search input{width:100%;font:16px var(--sans);padding:13px 18px;border-radius:999px;border:1.5px solid var(--diep-2);background:var(--paper);color:var(--cham)}
.search input:focus{border-color:var(--cham);outline:none}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{font:500 15px var(--sans);padding:9px 15px;border-radius:999px;border:1.5px solid var(--diep-2);background:var(--paper);color:var(--cham);cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.chip[data-cat]:not([data-cat=""])::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--c)}
.chip[aria-pressed="true"]{background:var(--cham);color:var(--diep);border-color:var(--cham)}
.empty{font-size:17px;padding:20px 0}

/* trang chủ */
.hero{background:var(--cham);color:var(--diep);padding:46px 0 60px;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:44px;align-items:center}
.hero h1{font-size:clamp(44px,6.2vw,82px);letter-spacing:-.01em}
.hero-sub{font-size:19px;max-width:44ch;opacity:.88;margin:18px 0 26px}
.countdown{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;border-top:1px solid rgba(241,238,234,.2);padding-top:18px;max-width:440px;margin:0}
.countdown b{font-family:var(--serif);font-size:64px;line-height:1;color:var(--hoe)}
.countdown small{display:block;width:100%;opacity:.65;font-size:14px}
.upcoming{margin-top:26px;max-width:440px}
.up-h{font-family:var(--serif);font-size:20px;font-weight:700;margin:0 0 4px}
.upcoming ul{list-style:none;margin:0;padding:0}
.upcoming li a{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid rgba(241,238,234,.15);text-decoration:none}
.upcoming li a:hover span:first-child{color:var(--hoe)}
.up-d{opacity:.7;font-variant-numeric:tabular-nums}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-wheel{order:-1;max-width:460px;margin:0 auto}}

.wheel{width:100%;max-width:600px;display:block;margin:0 auto;overflow:visible}
.w-rim{fill:none;stroke:var(--hoe);stroke-width:3}
.w-thin{fill:none;stroke:rgba(241,238,234,.35);stroke-width:1}
.w-month{font-family:var(--serif);font-size:17px;fill:var(--diep)}
.w-ticks line{stroke:rgba(241,238,234,.5);stroke-width:1.5}
.w-dots circle{fill:var(--hoe);opacity:.7}
.w-star{fill:var(--hoe);animation:spin 240s linear infinite}
.w-star .w-hole{fill:var(--cham)}
@keyframes spin{to{transform:rotate(360deg)}}
.w-fest line{stroke-width:2;opacity:.85}
.w-fest .dot{stroke:var(--cham);stroke-width:3;transition:r .2s}
.w-fest .halo{fill:none;stroke:var(--hoe);stroke-width:2;opacity:0}
.w-fest:hover .dot,.w-fest:focus .dot{r:15}
.w-fest:hover .halo,.w-fest:focus .halo{opacity:1}

.band{padding:64px 0 30px}
.band h2,.cat-head h2{font-size:clamp(30px,4vw,42px);margin-bottom:20px}
.cats{padding:30px 22px 60px}
.cat-block{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:40px;padding:38px 0;border-top:3px solid var(--c)}
.cat-head h2{margin-bottom:8px}
.cat-head h2 a{text-decoration:none}
.cat-head p{margin:0;opacity:.85;max-width:52ch}
.mini{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;column-gap:28px}
.mini a{display:block;padding:11px 0;border-bottom:1px solid var(--diep-2);text-decoration:none}
.mini a:hover .mini-t{color:var(--c)}
.mini-t{display:block;font-family:var(--serif);font-weight:700;font-size:20px;line-height:1.2}
.mini-w{display:block;font-size:13.5px;opacity:.65}
@media (max-width:820px){.cat-block{grid-template-columns:1fr;gap:16px}.mini{grid-template-columns:1fr}}
.proverb{background:var(--son);color:var(--diep);text-align:center;padding:70px 0}
.proverb blockquote{font-family:var(--serif);font-style:italic;font-weight:500;font-size:clamp(28px,4.2vw,50px);line-height:1.25;margin:0 auto 24px;max-width:24ch;white-space:pre-line}

/* lịch */
.cal-hero{background:var(--cham);color:var(--diep);padding:0 0 50px;margin-bottom:36px}
.cal-hero .crumbs{opacity:.7}
.cal-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center}
.cal-hero h1{font-size:clamp(38px,5vw,60px);margin:8px 0 6px}
.today{font-weight:600;color:var(--hoe)}
@media (max-width:900px){.cal-grid{grid-template-columns:1fr}}
.cal-table td,.cal-table th{white-space:nowrap}
.note{font-size:14.5px;opacity:.72;max-width:80ch}

/* chân trang */
.foot{background:var(--cham);color:var(--diep);padding:50px 0 24px;margin-top:40px}
.foot .wrap:first-child{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:34px}
.foot p{margin:0 0 10px;opacity:.82;max-width:60ch;font-size:15px}
.foot .foot-brand{font-family:var(--serif);font-size:28px;font-weight:800;opacity:1!important}
.foot .foot-h{font-weight:600;opacity:1!important}
.foot ul{list-style:none;padding:0;margin:0;font-size:15px}
.foot li{margin:6px 0}
.foot a{text-decoration:none;opacity:.85}
.foot a:hover{text-decoration:underline;opacity:1}
.copy{margin-top:26px;opacity:.6}
@media (max-width:760px){.foot .wrap:first-child{grid-template-columns:1fr}}
.nf{padding:60px 22px}
.nf h1{font-size:48px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--cham);color:var(--diep);padding:12px 20px;border-radius:999px;z-index:100;font-size:15px}

/* ===== Khối nghi lễ ===== */
.jump{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 18px}
.jump a{text-decoration:none;font-weight:600;font-size:14.5px;padding:8px 14px;border-radius:999px;background:var(--paper);border:1.5px solid var(--diep-2)}
.jump a:hover{border-color:var(--cham)}
.jump a::before{margin-right:6px}
.j-checklist::before{content:"☑"}
.j-steps::before{content:"①"}
.j-prayer::before{content:"✿"}
.j-avoid::before{content:"✕";color:var(--son)}
.j-tips::before{content:"✦";color:var(--hoe)}

.sec{margin:40px 0;max-width:68ch}
.sec h2{margin-top:0}
.sec-quick{background:var(--cham);color:var(--diep);border-radius:16px;padding:20px 24px;margin:6px 0 20px;max-width:none}
.sec-quick h2{font-size:22px;color:var(--hoe);margin-bottom:8px}
.sec-quick ul{list-style:none;padding:0;margin:0;font-size:16.5px;line-height:1.55}
.sec-quick li{padding:7px 0;border-top:1px solid rgba(241,238,234,.15)}
.sec-quick li:first-child{border-top:0}
.sec-quick strong{color:var(--hoe);font-weight:600}
.sec-quick a{color:var(--diep)}
.sec-quick p{font-size:16.5px;margin:0 0 6px}

.sec-checklist{background:var(--paper);border:1.5px solid var(--diep-2);border-radius:16px;padding:22px 24px}
.sec-checklist h3{font-size:19px;margin:18px 0 6px;color:var(--cat,var(--son))}
.check{list-style:none;padding:0;margin:0 0 6px}
.check li{margin:0;border-bottom:1px dashed var(--diep-2)}
.check label{display:flex;gap:12px;align-items:flex-start;padding:9px 2px;cursor:pointer;font-size:17px;line-height:1.5}
.check input{appearance:none;-webkit-appearance:none;flex:0 0 22px;width:22px;height:22px;margin-top:2px;border:2px solid var(--cham);border-radius:6px;background:#fff;cursor:pointer;display:grid;place-content:center}
.check input::after{content:"";width:12px;height:7px;border-left:3px solid var(--diep);border-bottom:3px solid var(--diep);transform:rotate(-45deg) translate(1px,-1px);opacity:0}
.check input:checked{background:var(--la);border-color:var(--la)}
.check input:checked::after{opacity:1}
.check input:checked+span{text-decoration:line-through;opacity:.55}
.ck-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 10px}
.ck-count{font-weight:600;color:var(--la);margin-right:auto;font-size:15px}
.ck-bar button,.pr-copy{font:600 14px var(--sans);padding:8px 13px;border-radius:999px;border:1.5px solid var(--cham);background:transparent;color:var(--cham);cursor:pointer}
.ck-bar button:hover,.pr-copy:hover{background:var(--cham);color:var(--diep)}

.step-list{list-style:none;counter-reset:st;padding:0!important}
.step-list>li{counter-increment:st;position:relative;padding:4px 0 16px 58px;margin:0!important;min-height:44px}
.step-list>li::before{content:counter(st);position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;background:var(--cat,var(--son));color:#fff;font:800 20px/40px var(--serif);text-align:center}
.step-list>li:not(:last-child)::after{content:"";position:absolute;left:19px;top:44px;bottom:2px;width:2px;background:var(--diep-2)}

.sec-prayer{background:#fff;border-radius:16px;padding:22px 26px;border-top:5px solid var(--hoe);box-shadow:0 1px 0 var(--diep-2)}
.pr-note{font-size:14.5px;opacity:.7;margin:0 0 14px}
.pr-text{font-family:var(--serif);font-size:19.5px;line-height:1.7}
.pr-text p{margin:0 0 12px}
.pr-copy{margin-top:6px}

.sec-avoid{border-left:5px solid var(--son);padding:4px 0 4px 22px}
.sec-avoid h2{color:var(--son)}
.avoid-list{list-style:none;padding:0!important}
.avoid-list li{position:relative;padding-left:30px;margin:10px 0!important}
.avoid-list li::before{content:"✕";position:absolute;left:0;top:0;color:var(--son);font-weight:800}

.sec-tips{background:rgba(224,165,38,.12);border-radius:16px;padding:20px 24px}
.tip-list{list-style:none;padding:0!important}
.tip-list li{position:relative;padding-left:28px;margin:9px 0!important}
.tip-list li::before{content:"✦";position:absolute;left:0;color:#A8730A}

/* lối tắt theo nhu cầu trên trang chủ */
.intents{padding:56px 0 10px}
.intents h2{font-size:clamp(30px,4vw,42px);margin-bottom:6px}
.intents .lede{margin-bottom:22px}
.intent-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.intent-grid a{display:flex;align-items:center;gap:14px;padding:14px 16px;background:var(--paper);border:1.5px solid var(--diep-2);border-radius:14px;text-decoration:none;height:100%}
.intent-grid a:hover{border-color:var(--cham)}
.intent-grid svg{flex:0 0 46px;width:46px;height:46px;color:var(--c)}
.intent-grid b{display:block;font-family:var(--serif);font-size:19px;line-height:1.2}
.intent-grid small{display:block;font-size:13.5px;opacity:.7;margin-top:2px}

/* in danh sách sắm sửa */
@media print{
  .top,.foot,.bg-art,.ad,.share,.related,.crumbs,.toc,.jump,.ck-bar,.pr-copy,.skip,.menu{display:none!important}
  html,body{background:#fff}
  .sec-checklist,.sec-prayer,.sec-quick{border:1px solid #999;box-shadow:none;background:#fff;color:#000;break-inside:avoid}
  .sec-quick h2,.sec-quick strong{color:#000}
  .check input{border-color:#000}
  body.print-checklist .prose>*:not(.sec-checklist),body.print-checklist .art-head,body.print-checklist .sec-quick{display:none!important}
  body.print-checklist .art-head h1{display:block!important}
}

/* sơ đồ trang */
.sm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px 40px}
.sm-block h2{font-size:24px;margin-bottom:8px}
.sm-block h2 a{text-decoration:none}
.sm-block ul{margin:0;padding-left:18px;font-size:16px}
.sm-block li{margin:5px 0}

/* ---------- giao diện riêng từng dân tộc (biến màu ở lib/ethnic.mjs) ---------- */
html[class*="theme-"]{background:var(--e-paper)}
html[class*="theme-"] .top{background:var(--e-ink)}
.e-strip{height:18px;background:var(--e-tile) left center/auto 18px repeat-x;border-bottom:3px solid var(--e-b)}
.sw{display:inline-block;background:var(--e-tile) 0 0/24px auto;border-radius:3px;flex:none}
.chips-row{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin:0}
.eth-chip{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;text-decoration:none;color:var(--e-ink)}
.eth-chip .sw{width:18px;height:18px}
.eth-chip:hover{text-decoration:underline;text-underline-offset:3px}
html[class*="theme-"] .prose a{color:var(--e-a)}
html[class*="theme-"] .prose blockquote{border-left-color:var(--e-b)}
html[class*="theme-"] .fact-next{background:var(--e-ink)}
html[class*="theme-"] .fact-next dd{color:var(--e-b)}
html[class*="theme-"] .fact{background:#fff}
.eth-more{display:flex;gap:18px;align-items:stretch;margin:34px 0 0;background:#fff;border-radius:14px;padding:16px;border:1px solid rgba(0,0,0,.06)}
.eth-more .sw{width:64px;align-self:stretch;min-height:96px;border-radius:8px}
.eth-more p{margin:0 0 6px;font-size:15.5px}
.eth-more-h{font-family:var(--serif);font-weight:700;font-size:21px!important}

/* trang dân tộc: phần đầu như một tấm vải treo */
.eth-hero{background:var(--e-ink);color:#F5F2EC;padding:0 0 54px;position:relative;overflow:hidden}
.eth-hero::before{content:"";position:absolute;inset:0;background:var(--e-tile);opacity:.16;-webkit-mask-image:linear-gradient(90deg,transparent 30%,#000 95%);mask-image:linear-gradient(90deg,transparent 30%,#000 95%)}
.eth-hero .crumbs{opacity:.8}
.eth-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,300px);gap:56px;align-items:start}
.eth-text h1{font-size:clamp(48px,8vw,100px);letter-spacing:-.015em;margin:14px 0 8px;line-height:1}
.eth-also{font-size:15.5px;opacity:.75;margin:0 0 18px;max-width:60ch}
.eth-lead{font-family:var(--serif);font-size:clamp(20px,2.2vw,25px);line-height:1.45;max-width:40ch;margin:0 0 28px}
.eth-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0 28px;margin:0;max-width:720px}
.eth-facts div{border-top:2px solid var(--e-b);padding:10px 0 12px}
.eth-facts dt{font-size:13px;opacity:.7}
.eth-facts dd{margin:2px 0 0;font-weight:600;font-size:16px;line-height:1.45}
.swatch-wrap{margin:58px 0 0;position:relative;z-index:1}
.swatch{height:440px;background:var(--e-tile);border-top:22px solid var(--e-a);box-shadow:inset 0 -6px 0 var(--e-b),0 24px 50px rgba(0,0,0,.35);position:relative}
.swatch::before{content:"";position:absolute;left:-14px;right:-14px;top:-30px;height:9px;border-radius:5px;background:#8A6A44}
.fringe{position:absolute;left:0;right:0;bottom:-26px;height:26px;background:repeating-linear-gradient(90deg,var(--e-a) 0 3px,transparent 3px 9px)}
.swatch-wrap figcaption{font-size:13.5px;line-height:1.5;opacity:.78;margin-top:44px}
.swatch-wrap figcaption b{font-family:var(--serif);font-size:16px}
.eth-list{padding:44px 0 10px}
.eth-list h2,.eth-home h2{font-size:clamp(30px,4vw,40px);margin-bottom:18px}
.eth-page .prose h2:first-child{margin-top:20px}
.eth-page .toc{margin-top:40px;border-left-color:var(--e-a)}
.eth-page .byline{margin-top:24px}
.eth-page .card a:hover{border-color:var(--e-ink)}
@media (max-width:860px){
  .eth-grid{grid-template-columns:minmax(0,1fr);gap:30px}
  .swatch-wrap{display:flex;gap:18px;align-items:center;margin-top:16px}
  .swatch-wrap figcaption{min-width:0}
  .swatch{height:120px;width:96px;flex:none;border-top-width:12px}
  .swatch::before{top:-20px;left:-8px;right:-8px;height:7px}
  .fringe{bottom:-14px;height:14px}
  .swatch-wrap figcaption{margin:0}
}

/* ô dân tộc (trang chủ, trang tổng hợp) */
.eth-tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}
.eth-tile{display:flex;flex-direction:column;height:100%;text-decoration:none;background:var(--paper);border-radius:6px 6px 16px 16px;overflow:hidden;border:1px solid var(--diep-2);color:var(--cham)}
.eth-tile .sw{height:150px;width:100%;border-radius:0;background-size:auto;border-top:10px solid var(--e-a);border-bottom:4px solid var(--e-b)}
.eth-tile-b{display:flex;flex-direction:column;gap:4px;padding:14px 16px 16px;flex:1}
.eth-tile b{font-family:var(--serif);font-size:26px;line-height:1.1;color:var(--e-ink)}
.eth-tile small{font-size:14.5px;opacity:.8;line-height:1.45}
.eth-tile .eth-tile-n{margin-top:auto;padding-top:6px;font-weight:600;opacity:1;color:var(--e-ink)}
.eth-tile:hover{border-color:var(--e-ink)}
.eth-tile:hover .sw{filter:saturate(1.15)}
.eth-home{padding:56px 0 20px}
.eth-note{margin-top:46px}
@media print{.e-strip,.swatch-wrap,.eth-hero::before{display:none}.eth-hero{background:none;color:#000}}
@media screen{html[class*="theme-"] .sec-quick{background:var(--e-ink);box-shadow:inset 0 5px 0 var(--e-a)}html[class*="theme-"] .sec-quick h2,html[class*="theme-"] .sec-quick strong{color:var(--e-b)}}
html[class*="theme-"] .art-head h1{color:var(--e-ink)}
html[class*="theme-"] thead th{background:var(--e-ink)}html[class*="theme-"] tbody th{color:var(--e-a)}

.theme-mong{--e-ink:#1D2A57;--e-a:#C8102E;--e-b:#E8A900;--e-c:#2E7D4F;--e-paper:#EEF0F5;--e-tile:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%3E%20%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22%231D2A57%22%2F%3E%20%3Cpath%20d%3D%22M32%2032h4v-8h-12v16h20v-24h-28v32h36%22%20fill%3D%22none%22%20stroke%3D%22%23F3F1EC%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22square%22%2F%3E%20%3Cpolygon%20points%3D%220%2C-9%209%2C0%200%2C9%20-9%2C0%22%20fill%3D%22%23C8102E%22%2F%3E%3Cpolygon%20points%3D%220%2C-3.5%203.5%2C0%200%2C3.5%20-3.5%2C0%22%20fill%3D%22%23E8A900%22%2F%3E%3Cpolygon%20points%3D%2264%2C-9%2073%2C0%2064%2C9%2055%2C0%22%20fill%3D%22%23C8102E%22%2F%3E%3Cpolygon%20points%3D%2264%2C-3.5%2067.5%2C0%2064%2C3.5%2060.5%2C0%22%20fill%3D%22%23E8A900%22%2F%3E%3Cpolygon%20points%3D%220%2C55%209%2C64%200%2C73%20-9%2C64%22%20fill%3D%22%23C8102E%22%2F%3E%3Cpolygon%20points%3D%220%2C60.5%203.5%2C64%200%2C67.5%20-3.5%2C64%22%20fill%3D%22%23E8A900%22%2F%3E%3Cpolygon%20points%3D%2264%2C55%2073%2C64%2064%2C73%2055%2C64%22%20fill%3D%22%23C8102E%22%2F%3E%3Cpolygon%20points%3D%2264%2C60.5%2067.5%2C64%2064%2C67.5%2060.5%2C64%22%20fill%3D%22%23E8A900%22%2F%3E%20%3Cpath%20d%3D%22M32%200v6M32%2058v6M0%2032h6M58%2032h6%22%20stroke%3D%22%23E8A900%22%20stroke-width%3D%222.4%22%2F%3E%3C%2Fsvg%3E")}
.theme-thai{--e-ink:#1E1A17;--e-a:#C62828;--e-b:#E0A31A;--e-c:#2F8F5B;--e-paper:#F2EFEA;--e-tile:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2248%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%3E%20%3Crect%20width%3D%2248%22%20height%3D%2248%22%20fill%3D%22%231E1A17%22%2F%3E%20%3Cpolygon%20points%3D%2224%2C6%2042%2C24%2024%2C42%206%2C24%22%20fill%3D%22none%22%20stroke%3D%22%23C62828%22%20stroke-width%3D%222.4%22%2F%3E%20%3Cpolygon%20points%3D%2224%2C15%2033%2C24%2024%2C33%2015%2C24%22%20fill%3D%22%23E0A31A%22%2F%3E%20%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%222.6%22%20fill%3D%22%231E1A17%22%2F%3E%20%3Cpath%20d%3D%22M24%206v-4h4M42%2024h4v4M24%2042v4h-4M6%2024h-4v-4%22%20fill%3D%22none%22%20stroke%3D%22%232F8F5B%22%20stroke-width%3D%222%22%2F%3E%20%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%223%22%20fill%3D%22%23D8D8D8%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%220%22%20r%3D%223%22%20fill%3D%22%23D8D8D8%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%2248%22%20r%3D%223%22%20fill%3D%22%23D8D8D8%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%2248%22%20r%3D%223%22%20fill%3D%22%23D8D8D8%22%2F%3E%3C%2Fsvg%3E")}
.theme-khmer{--e-ink:#6E1414;--e-a:#D9822B;--e-b:#D4A537;--e-c:#2F6B4F;--e-paper:#F6F0E6;--e-tile:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2256%22%20height%3D%2240%22%20viewBox%3D%220%200%2056%2040%22%3E%20%3Crect%20width%3D%2256%22%20height%3D%2240%22%20fill%3D%22%236E1414%22%2F%3E%20%3Cpath%20d%3D%22M8%2036C8%2024%2022%2022%2028%206C34%2022%2048%2024%2048%2036%22%20fill%3D%22none%22%20stroke%3D%22%23D4A537%22%20stroke-width%3D%222.2%22%2F%3E%20%3Cpath%20d%3D%22M18%2036c0-7%206-9%2010-16c4%207%2010%209%2010%2016%22%20fill%3D%22none%22%20stroke%3D%22%23D4A537%22%20stroke-width%3D%221.6%22%2F%3E%20%3Cpath%20d%3D%22M28%206c-3-3-2-6%200-6s3%203%200%206%22%20fill%3D%22%23D9822B%22%2F%3E%20%3Ccircle%20cx%3D%2228%22%20cy%3D%2230%22%20r%3D%222.4%22%20fill%3D%22%23D9822B%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%2220%22%20r%3D%222%22%20fill%3D%22%23D9822B%22%2F%3E%3Ccircle%20cx%3D%2256%22%20cy%3D%2220%22%20r%3D%222%22%20fill%3D%22%23D9822B%22%2F%3E%20%3Cpath%20d%3D%22M0%2038h56%22%20stroke%3D%22%23D4A537%22%20stroke-width%3D%221%22%2F%3E%3C%2Fsvg%3E")}
.theme-tay{--e-ink:#22304D;--e-a:#3E7CB1;--e-b:#E9E4D8;--e-c:#C0392B;--e-paper:#EFF1F4;--e-tile:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2236%22%20height%3D%2236%22%20viewBox%3D%220%200%2036%2036%22%3E%20%3Crect%20width%3D%2236%22%20height%3D%2236%22%20fill%3D%22%2322304D%22%2F%3E%20%3Cpath%20d%3D%22M18%2012v12M12%2018h12%22%20stroke%3D%22%23E9E4D8%22%20stroke-width%3D%222%22%2F%3E%20%3Crect%20x%3D%2215.5%22%20y%3D%2215.5%22%20width%3D%225%22%20height%3D%225%22%20fill%3D%22%2322304D%22%20stroke%3D%22%23E9E4D8%22%20stroke-width%3D%221.2%22%2F%3E%20%3Cpath%20d%3D%22M0%2034l3-3%203%203%203-3%203%203%203-3%203%203%203-3%203%203%203-3%203%203%203-3%203%203%22%20fill%3D%22none%22%20stroke%3D%22%233E7CB1%22%20stroke-width%3D%221.4%22%2F%3E%20%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%221.6%22%20fill%3D%22%23E9E4D8%22%2F%3E%3Ccircle%20cx%3D%2236%22%20cy%3D%220%22%20r%3D%221.6%22%20fill%3D%22%23E9E4D8%22%2F%3E%3C%2Fsvg%3E")}
.theme-nung{--e-ink:#262043;--e-a:#D2577A;--e-b:#C9CED6;--e-c:#7B5EA7;--e-paper:#F2F0F6;--e-tile:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2260%22%20height%3D%2244%22%20viewBox%3D%220%200%2060%2044%22%3E%20%3Crect%20width%3D%2260%22%20height%3D%2244%22%20fill%3D%22%23262043%22%2F%3E%20%3Ccircle%20cx%3D%223%22%20cy%3D%2220%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2214%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%228%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%3Ccircle%20cx%3D%2221%22%20cy%3D%2214%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%3Ccircle%20cx%3D%2227%22%20cy%3D%2220%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%3Ccircle%20cx%3D%2233%22%20cy%3D%2220%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%3Ccircle%20cx%3D%2239%22%20cy%3D%2214%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%3Ccircle%20cx%3D%2245%22%20cy%3D%228%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%3Ccircle%20cx%3D%2251%22%20cy%3D%2214%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%3Ccircle%20cx%3D%2257%22%20cy%3D%2220%22%20r%3D%222.1%22%20fill%3D%22%23C9CED6%22%2F%3E%20%3Cpath%20d%3D%22M0%2032q7.5-6%2015%200t15%200t15%200t15%200%22%20fill%3D%22none%22%20stroke%3D%22%237B5EA7%22%20stroke-width%3D%222%22%2F%3E%20%3Cg%20fill%3D%22%23D2577A%22%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2217%22%20r%3D%222.4%22%2F%3E%3Ccircle%20cx%3D%2245%22%20cy%3D%2217%22%20r%3D%222.4%22%2F%3E%3C%2Fg%3E%20%3Cpath%20d%3D%22M0%2040h60%22%20stroke%3D%22%23C9CED6%22%20stroke-width%3D%221%22%20stroke-dasharray%3D%222%204%22%2F%3E%3C%2Fsvg%3E")}
