/* ==========================================================================
   Mẹo Mỗi Ngày – Design System
   Concept: "Sổ tay gia đình" – ấm áp, đáng tin, dễ đọc.
   Tiêu đề serif (Lora) + nội dung sans (Be Vietnam Pro), nền giấy ấm,
   xanh lá trầm làm màu chính, vàng mù tạt làm điểm nhấn.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --c-primary: #15803D;          /* nền nút chính (chữ trắng ≥ 4.5:1) */
  --c-primary-hover: #166534;
  --c-primary-strong: #166534;   /* chữ / link màu chính */
  --c-primary-50: #EDF6EF;
  --c-primary-100: #D5EADB;
  --c-accent: #E3A13A;
  --c-accent-50: #FCF4E4;
  --c-accent-strong: #8A5A0B;
  --c-danger: #C2410C;
  --c-danger-50: #FDF1EC;
  --c-info: #1D4ED8;

  --c-bg: #FAF8F3;
  --c-surface: #FFFFFF;
  --c-surface-2: #F3F0E8;
  --c-text: #1D231F;
  --c-text-2: #59615B;
  --c-text-3: #7C847D;
  --c-border: #E6E1D5;
  --c-border-strong: #D3CCBC;

  --shadow-sm: 0 1px 2px rgba(40, 35, 20, .06);
  --shadow-md: 0 1px 2px rgba(40, 35, 20, .05), 0 8px 24px -8px rgba(40, 35, 20, .14);
  --shadow-lg: 0 24px 48px -16px rgba(40, 35, 20, .22);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --fs-base: 17px;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-primary: #18833F; --c-primary-hover: #1C9A4A; --c-primary-strong: #74D69A;
    --c-primary-50: #142A1C; --c-primary-100: #1C3A27;
    --c-accent: #E8AE4F; --c-accent-50: #2C2414; --c-accent-strong: #F0C27A;
    --c-danger: #F08A5D; --c-danger-50: #2E1A12; --c-info: #8AB4FF;
    --c-bg: #121412; --c-surface: #1A1D1A; --c-surface-2: #232723;
    --c-text: #ECEDE8; --c-text-2: #AEB4AC; --c-text-3: #8B9289;
    --c-border: #2F342F; --c-border-strong: #3E443D;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --c-primary: #18833F; --c-primary-hover: #1C9A4A; --c-primary-strong: #74D69A;
  --c-primary-50: #142A1C; --c-primary-100: #1C3A27;
  --c-accent: #E8AE4F; --c-accent-50: #2C2414; --c-accent-strong: #F0C27A;
  --c-danger: #F08A5D; --c-danger-50: #2E1A12; --c-info: #8AB4FF;
  --c-bg: #121412; --c-surface: #1A1D1A; --c-surface-2: #232723;
  --c-text: #ECEDE8; --c-text-2: #AEB4AC; --c-text-3: #8B9289;
  --c-border: #2F342F; --c-border-strong: #3E443D;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
}

:root[data-fs="lg"] { --fs-base: 19px; }
:root[data-fs="xl"] { --fs-base: 21px; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7;
  color: var(--c-text); background: var(--c-bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1, h2, .display { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 6px; }
.ic { flex: 0 0 auto; vertical-align: middle; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--c-text-2); }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 999; background: var(--c-primary); color: #fff; padding: 8px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 8px; }

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.55rem; }
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container { display: flex; align-items: center; gap: var(--sp-3); height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; white-space: nowrap; color: var(--c-text); }
.logo-mark {
  width: 36px; height: 38px; border-radius: 8px; overflow: hidden; flex: 0 0 auto;
  display: grid; grid-template-rows: 12px 1fr; text-align: center;
  background: var(--c-surface); border: 1.5px solid var(--c-primary);
  box-shadow: 0 2px 0 var(--c-primary);
}
.logo-mark small { background: var(--c-primary); color: #fff; font-size: 7.5px; font-weight: 700; line-height: 12px; letter-spacing: .06em; }
.logo-mark b { font-family: var(--font-display); font-size: 17px; line-height: 23px; font-weight: 700; color: var(--c-text); }
.logo-text { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.logo-text b { color: var(--c-primary-strong); font-weight: 700; }

.main-nav { display: none; gap: 2px; margin-left: var(--sp-4); }
.main-nav a {
  padding: 8px 12px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 500; color: var(--c-text-2);
}
.main-nav a:hover { color: var(--c-text); background: var(--c-surface-2); }
.main-nav a.is-active { color: var(--c-primary-strong); background: var(--c-primary-50); }

.header-search { display: none; flex: 1; max-width: 300px; margin-left: auto; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.header-search + .header-actions { margin-left: var(--sp-2); }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-text-2);
}
.icon-btn:hover { background: var(--c-surface-2); color: var(--c-text); }
.icon-btn .badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--c-accent); color: #2A1E05; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: inline; }

@media (min-width: 1080px) {
  .main-nav { display: flex; }
  .header-search { display: block; }
  .js-open-search, .js-open-menu { display: none; }
}

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 14, .5); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); padding: var(--sp-4);
  background: var(--c-surface); overflow-y: auto; animation: slideIn .2s ease-out;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.drawer-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-3); margin: var(--sp-4) 0 var(--sp-2); }
.nav-list { display: grid; gap: 2px; }
.nav-list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: .95rem; }
.nav-list a:hover { background: var(--c-surface-2); }
.nav-list .cat-dot { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, transparent); }
.pref-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--c-border); margin-top: 12px; font-size: .92rem; }

/* ---------- 4. Search ---------- */
.search-box { position: relative; }
.search-box input {
  width: 100%; height: 44px; padding: 0 16px 0 42px;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-text); font: inherit; font-size: .92rem;
}
.search-box input::placeholder { color: var(--c-text-3); }
.search-box input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-50); }
.search-box .s-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-3); pointer-events: none; display: flex; }
.search-box .s-submit {
  position: absolute; right: 5px; top: 5px; bottom: 5px; padding: 0 20px;
  border: 0; border-radius: var(--r-pill); background: var(--c-primary); color: #fff; font-weight: 600; font-size: .92rem;
}
.search-box .s-submit:hover { background: var(--c-primary-hover); }
.search-box--lg input { height: 58px; font-size: 1rem; padding-left: 50px; padding-right: 128px; box-shadow: var(--shadow-md); border-color: var(--c-border); }
.search-box--lg .s-icon { left: 20px; }
@media (max-width: 420px) { .search-box--lg input { padding-right: 16px; } .search-box--lg .s-submit { display: none; } }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; display: none;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden;
}
.suggest.is-open { display: block; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; font-size: .9rem; line-height: 1.45; }
.suggest a .ic { color: var(--c-text-3); }
.suggest a:hover, .suggest a.is-active { background: var(--c-primary-50); }
.suggest a.all { border-top: 1px solid var(--c-border); color: var(--c-primary-strong); font-weight: 600; }
.suggest mark { background: transparent; color: var(--c-primary-strong); font-weight: 700; }
.suggest-empty { padding: 14px; color: var(--c-text-2); font-size: .88rem; }
.suggest-empty a { display: inline; padding: 0; color: var(--c-primary-strong); text-decoration: underline; }

.search-overlay { position: fixed; inset: 0; z-index: 100; background: var(--c-bg); padding: 12px var(--gutter); display: none; overflow-y: auto; }
.search-overlay.is-open { display: block; }
.search-overlay .row { display: flex; gap: 8px; align-items: center; }
.search-overlay .search-box { flex: 1; }

/* ---------- 5. Buttons / chips / tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 600; font-size: .92rem; line-height: 1.2; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); }
.btn-accent { background: var(--c-accent); color: #2A1E05; }
.btn-accent:hover { filter: brightness(.96); }
.btn-outline { background: var(--c-surface); border-color: var(--c-border-strong); color: var(--c-text); }
.btn-outline:hover { border-color: var(--c-text-3); }
.btn-outline.is-saved { background: var(--c-accent-50); border-color: var(--c-accent); color: var(--c-accent-strong); }
.btn-outline.is-saved .ic { fill: currentColor; }
.btn-zalo { background: #0068FF; color: #fff; }
.btn-zalo:hover { background: #0057D6; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 14px;
  border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-surface);
  font-size: .84rem; font-weight: 500; color: var(--c-text-2); white-space: nowrap;
}
.chip:hover { border-color: var(--c-border-strong); color: var(--c-text); }
.chip.is-active { border-color: var(--c-primary); color: var(--c-primary-strong); background: var(--c-primary-50); }

.cat-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600;
  letter-spacing: .02em; color: color-mix(in srgb, var(--cat, var(--c-primary)) 80%, var(--c-text));
}
.cat-tag .ic { width: 14px; height: 14px; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }

/* ---------- 6. Sections ---------- */
.section { padding: var(--sp-6) 0; }
.section + .section { padding-top: var(--sp-3); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-4); }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; font-size: .9rem; color: var(--c-text-2); }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--c-primary-strong); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ---------- 7. Hero ---------- */
.hero { padding: var(--sp-5) 0 var(--sp-6); border-bottom: 1px solid var(--c-border); background: linear-gradient(180deg, var(--c-surface-2), var(--c-bg) 70%); }
.hero-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1.1fr; gap: var(--sp-7); align-items: center; padding: var(--sp-4) var(--gutter) var(--sp-2); } }
.hero .hello { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--c-text-2); margin: 0 0 var(--sp-3); }
.hero .hello .ic { color: var(--c-accent); }
.hero h1 { margin: 0 0 var(--sp-3); font-size: 2rem; line-height: 1.2; }
.hero h1 em { font-style: italic; color: var(--c-primary-strong); }
.hero .lead { color: var(--c-text-2); margin: 0 0 var(--sp-5); max-width: 34em; }
.hero .search-box { margin-bottom: var(--sp-3); }
.hero .chips .label { font-size: .82rem; color: var(--c-text-3); align-self: center; margin-right: 2px; }
@media (min-width: 768px) { .hero h1 { font-size: 2.6rem; } }

.streak {
  display: inline-flex; align-items: center; gap: 8px; margin: var(--sp-5) 0 0; padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill); background: var(--c-surface); border: 1px solid var(--c-border); font-size: .84rem; color: var(--c-text-2);
}
.streak .ic { color: var(--c-accent); }
.streak b { color: var(--c-text); }

/* Thẻ "Mẹo hôm nay" */
.today-card {
  display: grid; overflow: hidden; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.today-card .thumb { aspect-ratio: 16 / 7; }
.today-card .thumb::before { width: 24%; }
.today-card .thumb .ic { width: 11%; }
.today-body { padding: var(--sp-5); display: grid; gap: 10px; }
.today-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.today-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-accent); color: #2A1E05;
}
.today-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.3; margin: 0; }
.today-title a:hover { color: var(--c-primary-strong); }
.today-sum { margin: 0; color: var(--c-text-2); font-size: .94rem; }
.today-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
@media (min-width: 640px) and (max-width: 1023px) {
  .today-card { grid-template-columns: 240px 1fr; }
  .today-card .thumb { aspect-ratio: auto; height: 100%; }
}

/* Dải 7 ngày */
.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: var(--sp-5) 0 var(--sp-2); font-size: .86rem; flex-wrap: wrap; }
.week-head strong { font-weight: 600; }
.week-head .muted { font-size: .8rem; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day {
  position: relative; display: grid; justify-items: center; padding: 8px 2px 10px; line-height: 1.25;
  border-radius: var(--r-sm); background: var(--c-surface); border: 1px solid var(--c-border);
  font-size: .7rem; color: var(--c-text-3);
}
.day .dn { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--c-text); margin: 1px 0 4px; }
.day .ic { color: var(--cat); }
.day:hover { border-color: var(--c-primary); }
.day.is-seen::after {
  content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary);
}
.day.is-today { background: var(--c-primary); border-color: var(--c-primary); color: rgba(255, 255, 255, .85); }
.day.is-today .dn, .day.is-today .ic { color: #fff; }
.day.is-today::after { background: var(--c-accent); }

/* ---------- 8. Category tiles ---------- */
.cat-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(136px, 1fr); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none;
}
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-item {
  scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r);
  font-size: .9rem; font-weight: 600; transition: border-color .15s, transform .15s;
}
.cat-item .tile-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, transparent); }
.cat-item small { display: block; font-weight: 400; font-size: .74rem; color: var(--c-text-3); }
.cat-item:hover { border-color: color-mix(in srgb, var(--cat) 50%, transparent); transform: translateY(-2px); }
@media (min-width: 1024px) { .cat-scroller { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* ---------- 9. Seasonal banner ---------- */
.season-banner {
  position: relative; overflow: hidden; display: grid; gap: var(--sp-4); align-items: center;
  padding: var(--sp-5); border-radius: var(--r-lg); color: #F1F7F2;
  background: #1F3B2C;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(227, 161, 58, .28), transparent 40%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: auto, 14px 14px;
}
.season-banner .eyebrow { color: #E9C47E; display: inline-flex; gap: 6px; align-items: center; }
.season-banner h2 { margin: 6px 0 6px; color: #fff; }
.season-banner p { margin: 0; opacity: .8; font-size: .94rem; }
.season-links { display: grid; gap: 8px; }
.season-links a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; font-weight: 500; color: #fff;
}
.season-links a:hover { background: rgba(255, 255, 255, .13); }
.season-links a .go { margin-left: auto; opacity: .6; }
@media (min-width: 860px) { .season-banner { grid-template-columns: 1fr 1.1fr; padding: var(--sp-6) var(--sp-6); } }

/* ---------- 10. Cards ---------- */
.grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (min-width: 768px) { .grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); } }

/* Ảnh giữ chỗ có minh họa (thay bằng ảnh thật khi lên production) */
.thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  color: color-mix(in srgb, var(--cat) 85%, #000);
  background-color: color-mix(in srgb, var(--cat) 9%, var(--c-surface));
  background-image: radial-gradient(color-mix(in srgb, var(--cat) 22%, transparent) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}
.thumb::before {
  content: ''; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--cat) 14%, var(--c-surface)); box-shadow: 0 0 0 10px color-mix(in srgb, var(--cat) 6%, transparent);
}
.thumb .ic { position: relative; width: 26%; height: auto; max-width: 72px; }
:root[data-theme="dark"] .thumb { color: color-mix(in srgb, var(--cat) 70%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .thumb { color: color-mix(in srgb, var(--cat) 70%, #fff); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-md); }
.card:hover .card-title a { color: var(--c-primary-strong); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1rem; font-weight: 600; line-height: 1.45; margin: 0; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-meta { display: flex; gap: 14px; font-size: .78rem; color: var(--c-text-3); margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .ic { width: 14px; height: 14px; }
.card-save {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-2);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.card-save .ic { width: 18px; height: 18px; }
.card-save:hover { color: var(--c-text); }
.card-save.is-saved { background: var(--c-accent); border-color: var(--c-accent); color: #2A1E05; }
.card-save.is-saved .ic { fill: currentColor; }
.grid:not(.grid--4) .thumb { aspect-ratio: 16 / 10; }
.grid:not(.grid--4) .thumb::before { width: 34%; }
.grid:not(.grid--4) .thumb .ic { width: 18%; }
.grid--4 .card-title { font-size: .92rem; }
.grid--4 .card-body { padding: 12px 14px 14px; }
@media (max-width: 480px) { .grid--4 .card-meta span:last-child { display: none; } }

/* Thẻ ngang */
.list-card { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.list-card:last-child { border-bottom: 0; }
.list-card .thumb { flex: 0 0 64px; width: 64px; height: 64px; aspect-ratio: auto; border-radius: var(--r-sm); }
.list-card .thumb::before { display: none; }
.list-card .thumb .ic { width: 26px; }
.list-card .t { font-weight: 600; font-size: .9rem; line-height: 1.4; display: block; }
.list-card:hover .t { color: var(--c-primary-strong); }
.list-card .sub { font-size: .76rem; color: var(--c-text-3); display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.list-card .rank { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--c-border-strong); width: 22px; flex: 0 0 22px; text-align: center; }

/* ---------- 11. Ads ---------- */
.ad-slot {
  display: grid; place-items: center; margin: var(--sp-5) 0; min-height: 250px;
  border: 1px dashed var(--c-border-strong); border-radius: var(--r-sm); background: var(--c-surface-2);
  color: var(--c-text-3); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
}
.ad-slot--banner { min-height: 100px; }
@media (min-width: 768px) { .ad-slot--banner { min-height: 90px; } }

/* ---------- 12. Newsletter ---------- */
.newsletter {
  display: grid; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-lg);
  background: var(--c-accent-50); border: 1px solid color-mix(in srgb, var(--c-accent) 35%, transparent);
}
.newsletter h2 { margin: 0 0 4px; }
.newsletter p { margin: 0; color: var(--c-text-2); font-size: .94rem; }
.newsletter .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input {
  flex: 1 1 220px; height: 46px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--c-border-strong); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: .92rem;
}
.newsletter .fine { flex-basis: 100%; font-size: .78rem; color: var(--c-text-3); margin: 0; }
.newsletter .fine a { text-decoration: underline; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1.15fr; align-items: center; padding: var(--sp-6); } }

/* ---------- 13. Footer ---------- */
.site-footer { margin-top: var(--sp-7); padding: var(--sp-7) 0 var(--sp-5); background: var(--c-surface); border-top: 1px solid var(--c-border); font-size: .88rem; }
.footer-grid { display: grid; gap: var(--sp-5) var(--sp-4); grid-template-columns: 1fr 1fr; }
.footer-grid h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-3); margin-bottom: var(--sp-3); font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid ul a { color: var(--c-text-2); }
.footer-grid ul a:hover { color: var(--c-primary-strong); text-decoration: underline; }
.footer-about { grid-column: 1 / -1; color: var(--c-text-2); max-width: 360px; }
.footer-about p { margin: 12px 0 16px; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--c-border); display: grid; place-items: center; color: var(--c-text-2); font-size: .72rem; font-weight: 700; }
.social a:hover { color: var(--c-primary-strong); border-color: var(--c-primary); }
.footer-note { margin-top: var(--sp-6); padding: var(--sp-4); border-radius: var(--r-sm); background: var(--c-surface-2); color: var(--c-text-2); font-size: .8rem; display: flex; gap: 10px; }
.footer-note .ic { color: var(--c-text-3); margin-top: 2px; }
.footer-bottom { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); color: var(--c-text-3); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.footer-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom button { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; text-decoration: underline; }
.footer-bottom a:hover, .footer-bottom button:hover { color: var(--c-text); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer-about { grid-column: auto; } }

/* ---------- 14. Page head / breadcrumb ---------- */
.page-head { padding: var(--sp-5) 0 var(--sp-2); }
.breadcrumb { font-size: .8rem; color: var(--c-text-3); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: var(--sp-3); }
.breadcrumb a:hover { color: var(--c-text); text-decoration: underline; }
.breadcrumb .ic { width: 14px; height: 14px; opacity: .6; }
.breadcrumb .current { color: var(--c-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.cat-hero { display: flex; gap: var(--sp-4); align-items: center; }
.cat-hero .tile-ic { flex: 0 0 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--cat) 20%, transparent); }
.cat-hero h1 { margin: 0; }
.cat-hero p { margin: 2px 0 0; color: var(--c-text-2); font-size: .94rem; }

/* ---------- 15. Category / search ---------- */
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 8px; align-items: center;
  padding: 12px 0; margin-top: var(--sp-3); background: var(--c-bg); border-bottom: 1px solid var(--c-border);
}
.filter-bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1; }
.filter-bar .chips::-webkit-scrollbar { display: none; }
.filter-bar select {
  height: 34px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--c-border-strong);
  background: var(--c-surface); color: var(--c-text); font: inherit; font-size: .84rem; flex: 0 0 auto;
}
.result-count { font-size: .86rem; color: var(--c-text-3); margin: var(--sp-4) 0; }
.empty-state { text-align: center; padding: var(--sp-7) var(--sp-4); }
.empty-state .big { width: 72px; height: 72px; margin: 0 auto var(--sp-4); border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-text-3); }

/* ---------- 16. Article ---------- */
.article-layout { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-6); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-7); } }
.article { max-width: 720px; min-width: 0; }
.article h1 { margin: var(--sp-2) 0 var(--sp-3); }
.article-byline { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--c-text-2); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--c-primary-50); color: var(--c-primary-strong); font-weight: 700; font-size: .78rem; }
.byline-text b { color: var(--c-text); font-weight: 600; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--c-primary-strong); font-weight: 600; font-size: .8rem; padding: 2px 10px; border-radius: var(--r-pill); background: var(--c-primary-50); }
.verified .ic { width: 14px; height: 14px; }

.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface); margin: var(--sp-4) 0; }
.quick-facts .f { padding: 12px; text-align: center; display: grid; justify-items: center; gap: 2px; }
.quick-facts .f + .f { border-left: 1px solid var(--c-border); }
.quick-facts .f .ic { color: var(--c-primary-strong); margin-bottom: 2px; }
.quick-facts .k { font-size: .7rem; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .06em; }
.quick-facts .v { font-weight: 700; font-size: .95rem; }

.tldr { position: relative; padding: var(--sp-4) var(--sp-5); border-radius: var(--r); margin: var(--sp-4) 0 var(--sp-5); background: var(--c-accent-50); border: 1px solid color-mix(in srgb, var(--c-accent) 40%, transparent); }
.tldr .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-accent-strong); margin-bottom: 6px; }
.tldr p { margin: 0; font-weight: 500; font-size: 1.02rem; line-height: 1.6; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--r); overflow: hidden; }
.compare .thumb { aspect-ratio: 4 / 3; }
.compare .before { filter: grayscale(.7) sepia(.35); }
.compare .lbl { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .04em; background: rgba(20, 22, 18, .72); color: #fff; padding: 3px 10px; border-radius: var(--r-pill); }
.caption { font-size: .78rem; color: var(--c-text-3); text-align: center; margin: 8px 0 var(--sp-5); }

.toc { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); margin-bottom: var(--sp-6); }
.toc summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-size: .94rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .chev { margin-left: auto; transition: transform .2s; color: var(--c-text-3); }
.toc[open] summary .chev { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0 18px 16px 44px; display: grid; gap: 6px; font-size: .9rem; }
.toc a { color: var(--c-text-2); }
.toc a:hover { color: var(--c-primary-strong); text-decoration: underline; }

.article section { margin-bottom: var(--sp-6); scroll-margin-top: calc(var(--header-h) + 16px); }
.sec-title { display: flex; align-items: center; gap: 12px; }
.sec-title .h-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--c-primary-50); color: var(--c-primary-strong); }
.sec-title .h-ic.warn { background: var(--c-danger-50); color: var(--c-danger); }
.sec-title .h-ic.tip { background: var(--c-accent-50); color: var(--c-accent-strong); }

.checklist { list-style: none; padding: 0; margin: 0; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface); overflow: hidden; }
.checklist li + li { border-top: 1px solid var(--c-border); }
.checklist label { display: flex; gap: 12px; align-items: center; padding: 12px 16px; cursor: pointer; }
.checklist label:hover { background: var(--c-surface-2); }
.checklist input { width: 20px; height: 20px; accent-color: var(--c-primary); flex: 0 0 auto; }
.checklist input:checked + span { text-decoration: line-through; color: var(--c-text-3); }
.hint { font-size: .84rem; color: var(--c-text-3); margin: -4px 0 var(--sp-3); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.step { counter-increment: step; position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding-bottom: var(--sp-5); }
.step::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; background: var(--c-primary); color: #fff; position: relative; z-index: 1;
}
.step::after { content: ''; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--c-border); }
.step:last-child::after { display: none; }
.step p { margin: 0; align-self: center; font-size: 1.02rem; }
.step .step-img {
  grid-column: 2; margin-top: 10px; aspect-ratio: 16 / 9; max-width: 420px; border-radius: var(--r-sm); display: grid; place-items: center; gap: 4px; align-content: center;
  font-size: .78rem; color: var(--c-text-3); background: var(--c-surface-2); border: 1px dashed var(--c-border-strong);
}
.follow-cta { margin: 0 0 var(--sp-5); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-border); font-size: .86rem; color: var(--c-text-2); }

.callout { padding: var(--sp-4) var(--sp-5); border-radius: var(--r); display: grid; gap: 6px; font-size: .96rem; }
.callout ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.callout p { margin: 0; }
.callout--warn { background: var(--c-danger-50); border: 1px solid color-mix(in srgb, var(--c-danger) 25%, transparent); }
.callout--tip { background: var(--c-primary-50); border: 1px solid color-mix(in srgb, var(--c-primary) 22%, transparent); }

.faq details { border-bottom: 1px solid var(--c-border); }
.faq details:first-of-type { border-top: 1px solid var(--c-border); }
.faq summary { padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { margin-left: auto; color: var(--c-text-3); transition: transform .2s; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { color: var(--c-text-2); margin: 0 0 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--sp-5) 0; }
.tags a { font-size: .8rem; padding: 4px 12px; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-text-2); }
.tags a:hover { color: var(--c-text); background: var(--c-border); }

.feedback { text-align: center; padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.feedback h2 { font-size: 1.25rem; margin: 0; }
.feedback .actions { display: flex; gap: 10px; justify-content: center; margin-top: var(--sp-4); flex-wrap: wrap; }
.feedback .thanks { color: var(--c-primary-strong); font-weight: 600; margin-top: var(--sp-3); }
.tried-bar { height: 8px; border-radius: 4px; background: var(--c-surface-2); overflow: hidden; max-width: 320px; margin: var(--sp-3) auto 6px; }
.tried-bar span { display: block; height: 100%; background: var(--c-primary); border-radius: 4px; }

.comments .comment { display: flex; gap: 12px; padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-border); }
.comments .c-name { font-weight: 600; font-size: .9rem; }
.comments .c-meta { font-weight: 400; font-size: .78rem; color: var(--c-text-3); }
.comments .c-text { font-size: .94rem; margin: 2px 0 0; }
.comments textarea, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--c-border-strong);
  background: var(--c-surface); color: var(--c-text); font: inherit; font-size: .94rem;
}
.comments textarea { min-height: 100px; resize: vertical; }
.comments textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-50); }

/* Sidebar */
.sidebar { display: grid; gap: var(--sp-5); align-content: start; }
.box { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: var(--sp-4); }
.box h3 { display: flex; align-items: center; gap: 8px; margin-bottom: var(--sp-2); font-size: .95rem; }
.box h3 .ic { color: var(--c-primary-strong); }
@media (min-width: 1024px) { .sidebar .sticky { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: var(--sp-5); } }

/* Share bar */
.share-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--c-surface); border-top: 1px solid var(--c-border); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .18);
}
.share-bar button {
  border: 0; background: transparent; padding: 6px 4px; border-radius: var(--r-sm);
  display: grid; justify-items: center; gap: 2px; font-size: .72rem; font-weight: 600; color: var(--c-text-2);
}
.share-bar button:hover { color: var(--c-text); background: var(--c-surface-2); }
.share-bar button.is-saved { color: var(--c-accent-strong); }
.share-bar button.is-saved .ic { fill: currentColor; }
body.has-share-bar { padding-bottom: 72px; }
@media (min-width: 1024px) {
  .share-bar { position: static; box-shadow: none; border: 1px solid var(--c-border); border-radius: var(--r); padding: 6px; }
  body.has-share-bar { padding-bottom: 0; }
}

.progress { position: fixed; top: var(--header-h); left: 0; height: 3px; width: 0; background: var(--c-primary); z-index: 49; }

/* ---------- 17. Follow mode ---------- */
.follow { position: fixed; inset: 0; z-index: 200; background: var(--c-bg); display: none; flex-direction: column; }
.follow.is-open { display: flex; }
.follow-top { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--c-border); }
.follow-progress { height: 4px; background: var(--c-surface-2); }
.follow-progress span { display: block; height: 100%; background: var(--c-primary); transition: width .25s; }
.follow-body { flex: 1; display: grid; place-items: center; padding: var(--sp-5) var(--gutter); text-align: center; overflow-y: auto; }
.follow-body .num { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--sp-5); background: var(--c-primary); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.follow-body .txt { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; line-height: 1.5; max-width: 680px; }
.follow-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); max-width: 720px; width: 100%; margin: 0 auto; }
.follow-nav .btn { min-height: 60px; font-size: 1.05rem; }
.follow-nav .btn:disabled { opacity: .4; cursor: not-allowed; }
.wake-note { font-size: .78rem; color: var(--c-text-3); }

/* ---------- 18. Toast / font-size / cookie ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(16px); z-index: 300;
  background: var(--c-text); color: var(--c-bg); padding: 10px 18px; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100vw - 32px);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.fs-control { display: inline-flex; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); overflow: hidden; }
.fs-control button { border: 0; background: var(--c-surface); min-width: 44px; height: 36px; font-weight: 700; font-size: .85rem; }
.fs-control button + button { border-left: 1px solid var(--c-border); }
.fs-control button.is-active { background: var(--c-primary); color: #fff; }

.cookie {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 150;
  max-width: 440px; padding: var(--sp-4) var(--sp-5); border-radius: var(--r);
  background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-lg); font-size: .86rem;
}
.cookie p { margin: 0 0 12px; color: var(--c-text-2); }
.cookie p a { text-decoration: underline; color: var(--c-text); }
.cookie .row { display: flex; gap: 8px; flex-wrap: wrap; }
body.has-share-bar .cookie { bottom: 84px; }
@media (min-width: 1024px) { body.has-share-bar .cookie { bottom: var(--gutter); } }

/* ---------- 19. Static / legal pages ---------- */
.legal-layout { display: grid; gap: var(--sp-6); padding: var(--sp-3) 0 var(--sp-6); }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-7); } }
.legal-nav { align-self: start; }
@media (min-width: 960px) { .legal-nav { position: sticky; top: calc(var(--header-h) + 24px); } }
.legal-nav .nav-list a { font-size: .88rem; color: var(--c-text-2); }
.legal-nav .nav-list a .ic { color: var(--c-text-3); }
.legal-nav .nav-list a.is-active { background: var(--c-primary-50); color: var(--c-primary-strong); font-weight: 600; }
.legal-nav .nav-list a.is-active .ic { color: var(--c-primary-strong); }
@media (max-width: 959px) {
  .legal-nav .nav-list { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; padding-bottom: 4px; }
  .legal-nav .nav-list a { white-space: nowrap; border: 1px solid var(--c-border); background: var(--c-surface); }
  .legal-nav .drawer-label { display: none; }
}
.page-title { padding: var(--sp-5) 0 var(--sp-4); border-bottom: 1px solid var(--c-border); margin-bottom: var(--sp-5); }
.page-title h1 { margin: 0 0 var(--sp-2); }
.page-title .meta { font-size: .84rem; color: var(--c-text-3); display: flex; gap: 16px; flex-wrap: wrap; }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.3rem; margin: var(--sp-6) 0 var(--sp-3); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { margin: var(--sp-5) 0 var(--sp-2); }
.prose p, .prose li { color: var(--c-text); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.prose a { color: var(--c-primary-strong); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0 0 1em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.prose th { background: var(--c-surface-2); font-weight: 600; white-space: nowrap; }
.notice { display: flex; gap: 12px; padding: var(--sp-4); border-radius: var(--r); background: var(--c-accent-50); border: 1px solid color-mix(in srgb, var(--c-accent) 35%, transparent); font-size: .88rem; margin-bottom: var(--sp-5); }
.notice .ic { color: var(--c-accent-strong); margin-top: 2px; }
.notice p { margin: 0; }

.feature-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: var(--sp-4) 0 var(--sp-5); }
.feature { padding: var(--sp-4); border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-border); }
.feature .tile-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary-strong); margin-bottom: 10px; }
.feature h3 { margin: 0 0 4px; font-size: .98rem; }
.feature p { margin: 0; font-size: .88rem; color: var(--c-text-2); }

/* Form liên hệ */
.contact-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .88rem; }
.field label .req { color: var(--c-danger); }
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: var(--c-danger); font-size: .8rem; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--c-danger); }
.field.has-error .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--c-text-2); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--c-primary); }
.form-success { display: none; gap: 8px; padding: var(--sp-5); border-radius: var(--r); background: var(--c-primary-50); border: 1px solid var(--c-primary-100); text-align: center; justify-items: center; }
.form-success .ic { color: var(--c-primary-strong); }
.form-success.is-show { display: grid; }
.contact-card { display: flex; gap: 12px; padding: var(--sp-4); border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-border); }
.contact-card + .contact-card { margin-top: var(--sp-3); }
.contact-card .tile-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--c-primary-50); color: var(--c-primary-strong); }
.contact-card h3 { margin: 0; font-size: .95rem; }
.contact-card p { margin: 2px 0 0; font-size: .86rem; color: var(--c-text-2); }
.contact-card a { color: var(--c-primary-strong); font-weight: 600; }

/* ---------- 20. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .share-bar, .sidebar, .ad-slot, .feedback, .comments, .progress, .follow-cta, .cookie, .toc, .tags { display: none !important; }
  body { background: #fff; color: #000; padding: 0 !important; }
  .article-layout { display: block; }
}
