@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-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-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}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/be-vietnam-pro-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:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/be-vietnam-pro-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/be-vietnam-pro-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/be-vietnam-pro-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/be-vietnam-pro-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@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: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: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:700;font-display:swap;src:url(../fonts/be-vietnam-pro-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:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(../fonts/playfair-display-latin-500-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/playfair-display-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:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/playfair-display-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}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(../fonts/playfair-display-latin-ext-500-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/playfair-display-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/playfair-display-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(../fonts/playfair-display-vietnamese-500-italic.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/playfair-display-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:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/playfair-display-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}
/* NẾP LỄ — giao diện website chính thức (Skill_TUT_Nep_Le / ADR-024).
 * Biến màu giống DES/NEP_LE_DESIGN_SYSTEM/nep-le-tokens.css. Không viết mã màu trực tiếp ngoài khối biến. */
:root {
  --bg: #FFFAF0; --paper: #F8F0DF; --surface: #FFFDF8; --sunk: #EEE4CF; --line: #DFD3BD; --line-strong: #D6C2A0;
  --ink: #29231D; --muted: #6B5D4C; --on-fill: #FFFFFF;
  --red: #B52A20; --red-deep: #7F1C17; --red-soft: #F6E0D6; --red-fill: #B52A20;
  --jade: #214F3F; --jade-soft: #E1ECE4; --jade-fill: #214F3F;
  --panel: #214F3F; --on-panel: #F8F0DF; --on-panel-muted: #DCD9C4; --panel-accent: #E0B869;
  --gold: #DFAA3E; --gold-text: #875A0E; --gold-line: #B8884A; --gold-soft: #F4E6C6; --teal: #2D4F50;
  --header-bg: rgba(255, 250, 240, .92); --scrim: rgba(36, 27, 23, .62);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-pill: 999px;
  --shadow-1: 0 8px 22px rgba(95, 57, 34, .07); --shadow-2: 0 18px 40px rgba(36, 27, 23, .16);
  --maxw: 1240px; --gutter: max(16px, 5vw); --header-h: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16110D; --paper: #1C1611; --surface: #211A14; --sunk: #2A221A; --line: #3B3127; --line-strong: #4A3E31;
    --ink: #F3EBDD; --muted: #BFB19C; --on-fill: #FFFFFF;
    --red: #F08A76; --red-deep: #F6A897; --red-soft: #3F211B; --red-fill: #B8372A;
    --jade: #86C7AC; --jade-soft: #1E3329; --jade-fill: #2E6B56;
    --panel: #1F3B30; --on-panel: #F3EBDD; --on-panel-muted: #DCD9C4; --panel-accent: #E6BE6A;
    --gold: #E6BE6A; --gold-text: #E6BE6A; --gold-line: #8A6A3E; --gold-soft: #3A2F1C; --teal: #86BFC0;
    --header-bg: rgba(22, 17, 13, .9); --scrim: rgba(0, 0, 0, .7);
    --shadow-1: 0 8px 22px rgba(0, 0, 0, .35); --shadow-2: 0 18px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16110D; --paper: #1C1611; --surface: #211A14; --sunk: #2A221A; --line: #3B3127; --line-strong: #4A3E31;
  --ink: #F3EBDD; --muted: #BFB19C; --on-fill: #FFFFFF;
  --red: #F08A76; --red-deep: #F6A897; --red-soft: #3F211B; --red-fill: #B8372A;
  --jade: #86C7AC; --jade-soft: #1E3329; --jade-fill: #2E6B56;
  --panel: #1F3B30; --on-panel: #F3EBDD; --on-panel-muted: #DCD9C4; --panel-accent: #E6BE6A;
  --gold: #E6BE6A; --gold-text: #E6BE6A; --gold-line: #8A6A3E; --gold-soft: #3A2F1C; --teal: #86BFC0;
  --header-bg: rgba(22, 17, 13, .9); --scrim: rgba(0, 0, 0, .7);
  --shadow-1: 0 8px 22px rgba(0, 0, 0, .35); --shadow-2: 0 18px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--font-body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a:not(.btn), .list li a, .prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.22; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3vw, 38px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h1 em, h2 em { color: var(--red); font-style: italic; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding-left: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { display: inline-block; font: 600 12px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red-fill); color: var(--on-fill); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.ico { flex: none; }
svg { overflow: visible; }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-sm); font: 600 14px/1.2 var(--font-body); border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s, transform .18s; white-space: nowrap; }
.btn-primary { background: var(--red-fill); color: var(--on-fill); }
.btn-primary:hover { background: var(--red-deep); }
:root[data-theme="dark"] .btn-primary:hover { background: #9E2E23; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { background: #9E2E23; } }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red-soft); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-light { background: var(--on-panel); color: var(--jade-fill); }
:root[data-theme="dark"] .btn-light { color: #1F3B30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-light { color: #1F3B30; } }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn[aria-pressed="true"] { background: var(--jade-fill); border-color: var(--jade-fill); color: var(--on-fill); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: var(--sunk); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 13px; background: var(--surface); transition: border-color .18s; }
.chip:hover { border-color: var(--gold-line); }
.chip[aria-pressed="true"] { background: var(--jade-fill); color: var(--on-fill); border-color: var(--jade-fill); }
.chip .count { opacity: .7; font-variant-numeric: tabular-nums; }

/* ---------- đầu trang ---------- */
.draft { background: var(--gold-soft); color: var(--ink); text-align: center; font-size: 13px; padding: 8px var(--gutter); border-bottom: 1px solid var(--line-strong); }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold-line); display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 40px; height: 40px; object-fit: cover; object-position: 30% 20%; }
.brand-name { font: 700 24px/1 var(--font-display); color: var(--red); letter-spacing: .02em; }
.brand-tag { display: block; font: 600 9.5px/1 var(--font-body); letter-spacing: .18em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--ink); }
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ask-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 14px; color: var(--muted); background: var(--surface); margin-right: 6px; }
.ask-btn:hover { border-color: var(--gold-line); color: var(--ink); }
.ask-btn svg { color: var(--red); }
.ask-btn kbd { font: 600 11px var(--font-body); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--muted); }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px; border-radius: var(--r-pill); font: 600 13px var(--font-body); cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--sunk); }
.lang-menu { position: absolute; right: 0; top: 48px; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px; z-index: 50; }
.lang-menu a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; }
.lang-menu a:hover { background: var(--sunk); }
.lang-menu a[aria-current="true"] { color: var(--red); font-weight: 600; }
.acct-btn { position: relative; }
.acct-btn .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--jade-fill); color: var(--on-fill); display: grid; place-items: center; font: 600 13px var(--font-body); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; } :root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: block; } :root:not([data-theme="light"]) .theme-btn .moon { display: none; } }

/* ---------- trang chủ ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: auto -60px -80px auto; width: 260px; height: 160px; background: url(../img/may.webp) no-repeat center / contain; opacity: .18; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 56px 0 48px; }
.hero h1 { margin: 18px 0 18px; }
.hero-text { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.askbox { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding: 8px 8px 8px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-1); max-width: 560px; cursor: text; }
.askbox svg { color: var(--red); }
.askbox > span:not(.btn) { flex: 1; color: var(--muted); font-size: 15px; text-align: left; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.hero .fine { font-size: 12px; color: var(--muted); }
.hero-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.ring { position: absolute; width: min(400px, 82%); aspect-ratio: 1; border: 1px solid var(--gold-line); border-radius: 50%; opacity: .7; }
.ring::after { content: ''; position: absolute; inset: 14px; border: 1px dashed var(--gold-line); border-radius: 50%; opacity: .6; }
.hero-art img.horse { position: relative; width: min(330px, 70%); filter: drop-shadow(0 18px 24px rgba(95, 57, 34, .18)); }
.art-label { position: absolute; left: 0; bottom: 6px; font: 600 11px/1.4 var(--font-body); letter-spacing: .16em; color: var(--red); border-left: 1px solid var(--red); padding-left: 12px; }
.art-label small { display: block; font: italic 500 21px/1.3 var(--font-display); letter-spacing: 0; color: var(--ink); text-transform: none; margin-top: 4px; }
.art-side { position: absolute; right: 0; top: 26%; writing-mode: vertical-rl; font: 600 11px var(--font-body); letter-spacing: .3em; color: var(--gold-text); }

.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-head h2 { margin-top: 10px; }
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 620px; }

.today { margin-top: -28px; position: relative; z-index: 2; }
.today-card { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--panel); color: var(--on-panel); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.today-main { padding: 30px 34px; position: relative; }
.today-main .eyebrow { color: var(--panel-accent); }
.today-main h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 8px 0 14px; color: var(--on-panel); }
.today-date { display: flex; align-items: center; gap: 18px; }
.today-num { font: 500 64px/1 var(--font-display); color: var(--on-panel); font-variant-numeric: lining-nums; }
.today-meta { font-size: 14px; color: var(--on-panel-muted); line-height: 1.6; }
.today-meta strong { color: var(--on-panel); font-weight: 600; display: block; font-size: 16px; }
.today-up { padding: 26px 30px; border-left: 1px solid rgba(255, 255, 255, .16); }
.today-up h3 { font: 600 12px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--panel-accent); margin-bottom: 10px; }
.up-list { list-style: none; padding: 0; margin: 0 0 14px; }
.up-list li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: var(--on-panel); font-size: 15px; }
.up-list li a:hover span:first-child { text-decoration: underline; }
.up-list .when { color: var(--on-panel-muted); font-size: 13px; white-space: nowrap; }
.today-up .more { color: var(--panel-accent); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.filter-input { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 14px; min-height: 40px; background: var(--surface); }
.filter-input input { border: 0; background: transparent; outline: none; min-width: 0; width: 200px; font-size: 14px; padding: 8px 0; }
.filter-input:focus-within { border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-soft); }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(135deg, var(--surface), var(--bg)); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card::after { content: ''; position: absolute; width: 96px; height: 96px; right: -52px; top: -28px; border: 13px double var(--gold-line); opacity: .12; transform: rotate(45deg); pointer-events: none; }
.card:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--shadow-1); }
.card-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); }
.card-num { position: absolute; right: 22px; top: 26px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card h3 { margin: 16px 0 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }
.card .go { color: var(--red); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.card .stretched::before { content: ''; position: absolute; inset: 0; }
.empty { color: var(--muted); padding: 20px 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { border-radius: var(--r-lg); padding: 34px; position: relative; overflow: hidden; }
.feature-luna { background: var(--sunk); }
.feature-book { background: var(--paper); border: 1px solid var(--line); }
.feature-card h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 10px 0 12px; }
.feature-card p { color: var(--muted); max-width: 460px; }
.feature-card .btn { margin-top: 12px; }
.feature-card .deco { position: absolute; right: 20px; bottom: 16px; width: 120px; opacity: .9; }
.feature-book { padding-right: 120px; }
.feature-book .deco { width: 60px; right: 34px; bottom: 22px; }

.prayer-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prayer-card { display: block; padding: 24px; background: var(--paper); border-top: 2px solid var(--red); border-radius: 0 0 var(--r-md) var(--r-md); transition: background .2s; }
.prayer-card:hover { background: var(--sunk); }
.prayer-card h3 { margin: 10px 0 6px; }
.prayer-card small { color: var(--red); font-weight: 600; }

.altar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.altar-diagram { background: var(--paper); border-radius: var(--r-md); padding: 28px 20px; text-align: center; }
.altar-board { max-width: 400px; margin: 22px auto 14px; display: grid; gap: 14px; justify-items: center; padding-bottom: 16px; border-bottom: 9px double var(--gold-line); }
.altar-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.altar-item { border: 1px solid var(--gold-line); background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 4px; font-size: 14px; min-height: 44px; }
.altar-item.tablet { padding: 16px 30px; }
.altar-item[aria-expanded="true"] { background: var(--jade-fill); color: var(--on-fill); border-color: var(--jade-fill); }
.altar-note { min-height: 72px; text-align: left; background: var(--surface); border-left: 3px solid var(--gold-line); padding: 14px 16px; font-size: 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.care-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.care-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--surface); }
.care-item span { display: block; font-size: 12px; color: var(--gold-text); font-weight: 600; margin-bottom: 4px; }
.care-item p { font-size: 14px; color: var(--muted); margin: 0; }

.community { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface) url(../img/dai-tua.webp) no-repeat right -40px bottom -70px / 420px auto; }
.community > div { max-width: 600px; }

/* ---------- trang con ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding: 28px 0 34px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); list-style: none; padding: 0; margin: 0 0 18px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: var(--red); }
.page-head h1 { margin: 8px 0 12px; }
.page-head .lead { color: var(--muted); max-width: 720px; font-size: 17px; }
.r-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.r-head .card-icon { width: 76px; height: 76px; }
.r-head .card-icon svg { width: 38px; height: 38px; }
.status-note { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold-line); padding: 10px 14px; font-size: 14px; color: var(--muted); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.sec-nav { position: sticky; top: var(--header-h); z-index: 30; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sec-nav ul { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.sec-nav ul::-webkit-scrollbar { display: none; }
.sec-nav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; color: var(--muted); }
.sec-nav a:hover { color: var(--ink); background: var(--sunk); }
.sec-nav a[aria-current="true"] { background: var(--jade-fill); color: var(--on-fill); }

.r-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 40px 0 72px; }
.r-sec { padding: 8px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.r-sec:last-child { border-bottom: 0; }
.r-sec > h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.r-sec > h2 .sec-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--red); flex: none; }
.r-sec h3 { margin: 20px 0 10px; font-size: 20px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px dashed var(--line); }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ''; position: absolute; left: 4px; top: 20px; width: 8px; height: 8px; border: 1.5px solid var(--gold-line); transform: rotate(45deg); }
.note { background: var(--paper); border-left: 3px solid var(--gold-line); padding: 14px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px; margin: 16px 0; }
.note strong { display: block; margin-bottom: 4px; }
.check-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.progress { height: 6px; background: var(--sunk); border-radius: 6px; overflow: hidden; margin: 6px 0 12px; }
.progress span { display: block; height: 100%; width: 0; background: var(--jade-fill); transition: width .3s; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 13px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--surface); margin-top: 1px; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--jade-fill); border-color: var(--jade-fill); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--on-fill); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.flowers { display: flex; flex-wrap: wrap; gap: 10px; }
.flower { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--paper); border-radius: var(--r-pill); font-size: 15px; }
.flower svg { color: var(--gold-text); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 12px 0 18px 64px; min-height: 56px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 4px; font: 500 34px/1 var(--font-display); color: var(--red); }
.steps li::after { content: ''; position: absolute; left: 22px; top: 48px; bottom: 0; border-left: 1px dashed var(--line-strong); }
.steps li:last-child::after { display: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; background: var(--surface); }
.seg button { padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--muted); min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--jade-fill); color: var(--on-fill); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font-weight: 400; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; min-height: 44px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-soft); }
.prayer-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 28px; font: 400 18px/1.95 var(--font-display); white-space: pre-wrap; position: relative; }
.prayer-box::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--gold-line); opacity: .35; border-radius: 6px; pointer-events: none; }
.prayer-box .blank { color: var(--red); background: var(--red-soft); border-radius: 3px; padding: 0 3px; }
.roman { font-family: var(--font-body); font-size: 15px; line-height: 1.8; color: var(--muted); white-space: pre-wrap; }
details.more { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 16px; margin-top: 14px; background: var(--surface); }
details.more summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
details.more[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details.more > *:last-child { margin-bottom: 16px; }
.date-list { list-style: none; padding: 0; margin: 0; }
.date-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.date-list .lunar { color: var(--muted); font-size: 14px; }
.remind-list { display: grid; gap: 10px; margin-top: 12px; }
.remind-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-align: left; width: 100%; }
.remind-opt:hover { border-color: var(--gold-line); }
.remind-opt svg { color: var(--jade); }
.source { padding: 14px 0; border-bottom: 1px solid var(--line); }
.source small { display: block; color: var(--muted); }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 16px; }
.aside-card h2, .aside-card h3 { font-size: 18px; margin-bottom: 10px; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 72px); }
.mini-links { list-style: none; padding: 0; margin: 0; }
.mini-links a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.mini-links a:hover { color: var(--red); }
.mini-links svg { color: var(--red); }
.community-list { display: grid; gap: 12px; }
.c-item { padding: 16px 18px; background: var(--paper); border-radius: var(--r-md); }
.c-item h3 { font-size: 18px; margin: 0 0 6px; }
.c-item small { color: var(--muted); }

/* ngày lễ */
.h-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.date-seal { width: 170px; text-align: center; background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: 16px 12px 18px; position: relative; box-shadow: var(--shadow-1); }
.date-seal::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--gold-line); border-radius: 9px; opacity: .45; }
.date-seal .m { font: 600 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.date-seal .d { font: 500 72px/1 var(--font-display); color: var(--ink); margin: 6px 0; }
.date-seal .w { font-size: 14px; color: var(--muted); }
.countdown { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: var(--jade-soft); color: var(--jade); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: var(--r-pill); }
.year-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.year-table th, .year-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.year-table th { font: 600 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.year-table td a { color: var(--red); font-weight: 600; }
.year-table .past td { color: var(--muted); }
.moon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.moon-grid div { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; }
.moon-grid b { color: var(--gold-text); font-weight: 600; }
.year-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* bài viết */
.prose { max-width: 720px; font-size: 17px; line-height: 1.85; }
.prose h2 { font-size: 28px; margin: 36px 0 12px; }
.prose h3 { margin: 26px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 20px 0; padding: 4px 20px; border-left: 3px solid var(--gold-line); color: var(--muted); font-style: italic; }
.article-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.a-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .2s; }
.a-card:hover { border-color: var(--gold-line); }
.a-card h3 { margin: 8px 0 10px; }
.a-card p { color: var(--muted); font-size: 14px; flex: 1; }

/* tài khoản */
.acct { display: grid; grid-template-columns: 340px 1fr; gap: 36px; padding: 40px 0 80px; align-items: start; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-1); }
.auth-card h2 { font-size: 26px; margin-bottom: 8px; }
.auth-btn { width: 100%; justify-content: flex-start; gap: 12px; margin-top: 10px; }
.auth-btn svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0 6px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0 4px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--jade-fill); flex: none; }
.benefits { list-style: none; padding: 0; margin: 16px 0 0; }
.benefits li { display: flex; gap: 10px; padding: 8px 0; font-size: 15px; }
.benefits svg { color: var(--jade); margin-top: 3px; }
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabbar button { padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabbar button[aria-selected="true"] { color: var(--red); border-color: var(--red); }
.panel-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 16px; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.person h3 { font-size: 20px; margin-bottom: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--sunk); color: var(--muted); }
.badge.ok { background: var(--jade-soft); color: var(--jade); }
.badge.warn { background: var(--gold-soft); color: var(--gold-text); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.danger { border-color: var(--red-soft); }

/* hộp thoại */
dialog { color: var(--ink); background: var(--bg); border: 0; padding: 0; max-width: calc(100vw - 24px); }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.modal { width: 600px; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.modal-in { padding: 30px; max-height: 86dvh; overflow: auto; }
.modal h2 { font-size: 28px; margin: 6px 0 10px; }
.modal-close { position: absolute; right: 10px; top: 10px; }
.ask-dialog { width: 720px; margin-top: 8vh; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.ask-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ask-field svg { color: var(--red); }
.ask-field input { flex: 1; border: 0; background: transparent; outline: none; font-size: 18px; min-width: 0; }
.ask-results { max-height: 60dvh; overflow: auto; padding: 8px; }
.ask-results .hint { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.ask-results a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); }
.ask-results a:hover, .ask-results a[aria-selected="true"] { background: var(--paper); }
.ask-results .ri { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); flex: none; }
.ask-results strong { display: block; font-weight: 600; }
.ask-results small { color: var(--muted); font-size: 13px; display: block; }
.ask-results .answer { font-size: 14px; color: var(--ink); margin-top: 4px; }
.ritual-mode { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: var(--bg); }
.ritual-mode .in { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 8vh 8vw; gap: 18px; }
.ritual-mode h2 { font-size: clamp(30px, 4vw, 46px); }
.ritual-mode p { font-size: clamp(19px, 2.2vw, 24px); max-width: 780px; line-height: 1.7; }
.ritual-mode .bar { width: min(480px, 90%); height: 6px; background: var(--sunk); border-radius: 6px; overflow: hidden; }
.ritual-mode .bar span { display: block; height: 100%; background: var(--red-fill); transition: width .3s; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 90; background: var(--jade-fill); color: var(--on-fill); padding: 12px 22px; border-radius: var(--r-md); font-size: 15px; box-shadow: var(--shadow-2); transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast a { color: inherit; text-decoration: underline; margin-left: 8px; }

/* chân trang */
.site-footer { background: var(--sunk); margin-top: 40px; position: relative; }
.site-footer::before { content: ''; display: block; height: 12px; background: repeating-linear-gradient(90deg, var(--red-fill) 0 18px, var(--gold) 18px 22px, var(--jade-fill) 22px 40px, var(--gold) 40px 44px); opacity: .9; }
.site-footer .wrap { padding: 44px 0 34px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; font-size: 15px; }
.site-footer li a:hover { color: var(--red); }
.foot-brand .brand-name { font-size: 28px; }
.foot-note { font-size: 13px; color: var(--muted); max-width: 440px; margin-top: 14px; }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 13px; color: var(--muted); grid-template-columns: none; }
.foot-bottom a { color: var(--ink); }
.mobile-nav { display: none; }

/* ---------- đáp ứng ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .r-layout { grid-template-columns: 1fr; }
  .r-aside { order: -1; }
  .aside-sticky { position: static; }
  .r-aside .aside-card.hide-sm { display: none; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-art { min-height: 340px; order: -1; }
  .ring { width: 300px; }
  .hero-art img.horse { width: 240px; }
  .today-card { grid-template-columns: 1fr; }
  .today-up { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .grid-cards, .prayer-cards, .article-cards { grid-template-columns: repeat(2, 1fr); }
  .feature, .altar { grid-template-columns: 1fr; }
  .acct { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 72px; }
  .brand-mark { width: 40px; height: 40px; } .brand-mark img { width: 34px; height: 34px; }
  .brand-name { font-size: 21px; } .brand-tag { display: none; }
  .ask-btn { display: none; }
  .site-header .wrap { gap: 8px; }
  .hero-art { min-height: 280px; }
  .ring { width: 250px; } .hero-art img.horse { width: 200px; }
  .art-label, .art-side { display: none; }
  .askbox { padding-left: 14px; } .askbox .btn { padding: 10px 14px; }
  .askbox span { font-size: 14px; }
  .section { padding: 48px 0; }
  .section-head { display: block; }
  .filters .filter-input { margin-left: 0; width: 100%; } .filter-input input { width: 100%; }
  .grid-cards, .prayer-cards, .article-cards, .care-list { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .today-main, .today-up { padding: 22px; }
  .today-num { font-size: 52px; }
  .feature-card, .feature-book { padding: 26px; } .feature-card .deco { display: none; }
  .community { display: block; padding: 24px; background-size: 260px auto; background-position: right -30px bottom -60px; }
  .community .btn { margin-top: 14px; }
  .r-head { grid-template-columns: 1fr; gap: 14px; }
  .r-head .card-icon { width: 60px; height: 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .prayer-box { padding: 20px; font-size: 17px; }
  .steps li { padding-left: 54px; } .steps li::before { font-size: 28px; }
  .h-hero { grid-template-columns: 1fr; }
  .date-seal { width: 150px; }
  .year-table .hide-sm { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-bottom .wrap { flex-direction: column; }
  .modal-in { padding: 24px 20px; }
  .ask-dialog { margin-top: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ask-results { max-height: calc(100dvh - 70px); }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 66px; padding-bottom: env(safe-area-inset-bottom); background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
  .mobile-nav [aria-current="page"] { color: var(--red); }
  .mobile-nav .mid span.dot { width: 44px; height: 44px; border-radius: 50%; background: var(--red-fill); color: var(--on-fill); display: grid; place-items: center; margin-top: -18px; box-shadow: var(--shadow-1); }
  .toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff; color: #000; font-size: 12pt; padding: 0; }
  .site-header, .site-footer, .mobile-nav, .sec-nav, .actions, .r-aside, .no-print, .draft, dialog, .toast, .form-grid, .seg, .remind-list { display: none !important; }
  .page-head { background: none; border: 0; }
  .r-layout { display: block; padding: 0; }
  .prayer-box, .note, .flower { background: none; border: 1px solid #999; }
  a { color: #000; text-decoration: none; }
  .check input { border-color: #000; }
}
