/* eatwellness.org · dễ đọc cho 58–72 tuổi: chữ 19 px, dòng ≤ 70 ch, tương phản ≥ 7:1, nút ≥ 44 px */
:root {
  --kem: #f7f3ea;        /* nền */
  --kem-dam: #ede6d6;    /* nền phụ, bảng */
  --giay: #fffdf8;       /* thẻ */
  --muc: #1f2a22;        /* chữ chính, tương phản 14:1 trên kem */
  --muc-nhe: #4a564d;    /* chữ phụ, 7.3:1 trên kem */
  --xanh: #2b5d34;       /* nhấn, 7.4:1 trên kem */
  --xanh-dam: #1e4426;   /* hover */
  --xanh-nhat: #dfe9dc;  /* viền, nền hộp */
  --vien: #d6cfbf;
  --chu-than: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --chu-tieu-de: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --rong: 1100px;
  --hep: 42rem;          /* ≈ 68–70 ký tự ở 19 px serif */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--kem); color: var(--muc); font: 400 19px/1.65 var(--chu-than); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--xanh); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--xanh-dam); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--xanh); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--chu-tieu-de); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--muc); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.7rem); margin-top: .3em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p, ul, ol, table, blockquote, pre { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }
li::marker { color: var(--xanh); }
strong { font-weight: 700; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--kem-dam); padding: .1em .3em; border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--vien); margin: 2em 0; }
blockquote { border-left: 4px solid var(--xanh-nhat); margin-left: 0; padding: .2em 0 .2em 1em; color: var(--muc-nhe); }
.wrap { width: min(100% - 32px, var(--rong)); margin-inline: auto; }
.hep { max-width: var(--hep); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--xanh); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* đầu trang */
.nav { background: var(--kem); border-bottom: 1px solid var(--vien); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muc); font-family: var(--chu-tieu-de); font-size: 1.25rem; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--xanh); font-weight: 700; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { font-family: var(--chu-tieu-de); font-size: 1.05rem; text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 6px; color: var(--muc); }
.nav-links a:hover, .nav-links a[aria-current] { background: var(--xanh-nhat); color: var(--xanh-dam); }

/* trang chủ */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); }
.dan { font-size: 1.2rem; color: var(--muc-nhe); max-width: 36em; }
.hero-nut { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; background: var(--xanh); color: #fff; border-radius: 8px; text-decoration: none; font-family: var(--chu-tieu-de); font-weight: 600; font-size: 1.05rem; }
.btn:hover { background: var(--xanh-dam); color: #fff; }
.btn-nhe { background: transparent; color: var(--xanh); border: 2px solid var(--xanh); }
.btn-nhe:hover { background: var(--xanh-nhat); color: var(--xanh-dam); }
.bat-dau, .tru-cot, .moi, .ai-viet, .lien-quan { padding: clamp(24px, 4vw, 48px) 0; }
.tru-cot { background: var(--kem-dam); }
.lien-quan { background: var(--kem-dam); margin-top: 48px; }
.lien-quan h2:first-child, .bat-dau h2, .tru-cot h2, .moi h2, .ai-viet h2 { margin-top: 0; }

/* lưới thẻ */
.luoi { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.the a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; background: var(--giay); border: 1px solid var(--vien); border-radius: 10px; text-decoration: none; color: var(--muc); }
.the a:hover { border-color: var(--xanh); box-shadow: 0 2px 10px rgba(43, 93, 52, .12); }
.the-tru { font-family: var(--chu-tieu-de); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--xanh); }
.the-ten { font-family: var(--chu-tieu-de); font-weight: 600; font-size: 1.15rem; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--vien); }
.the a:hover .the-ten { text-decoration-color: var(--xanh); }
.the-mota { color: var(--muc-nhe); font-size: 1rem; line-height: 1.5; }
.the-phut { margin-top: auto; padding-top: 6px; font-family: var(--chu-tieu-de); font-size: .9rem; color: var(--muc-nhe); }
.the-tru-cot a { background: var(--giay); }

/* bài viết */
.bai { padding: 16px 0 24px; }
.vet { font-family: var(--chu-tieu-de); font-size: .95rem; margin: 8px 0 20px; }
.vet ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.vet li + li::before { content: "›"; padding: 0 8px; color: var(--muc-nhe); }
.vet a { text-decoration: none; color: var(--muc-nhe); padding: 4px 0; }
.vet a:hover { color: var(--xanh-dam); text-decoration: underline; }
.vet [aria-current] { color: var(--muc); }
.bai-tru { margin: 0; font-family: var(--chu-tieu-de); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.bai-tru a { text-decoration: none; }
.bai-meta { color: var(--muc-nhe); font-family: var(--chu-tieu-de); font-size: .95rem; margin-bottom: 1.6em; }
.today { background: var(--giay); border: 1px solid var(--xanh-nhat); border-left: 5px solid var(--xanh); border-radius: 8px; padding: 18px 22px 8px; margin: 0 0 1.8em; }
.today-h { font-family: var(--chu-tieu-de); font-weight: 700; margin-bottom: .5em; color: var(--xanh-dam); }
.today ul, .today ol { margin-bottom: .6em; }
.doctor { background: var(--giay); border: 1px solid var(--vien); border-radius: 8px; padding: 6px 22px 10px; margin: 2em 0; }
.doctor h2 { margin-top: .6em; font-size: 1.3rem; }
.sources { margin-top: 2.5em; }
.sources h2 { font-size: 1.3rem; }
.sources ol, .sources ul { font-size: .95rem; color: var(--muc-nhe); }
.sources a { word-break: break-word; }
.disclaimer { font-size: .95rem; color: var(--muc-nhe); border-top: 1px solid var(--vien); padding-top: 1em; margin-top: 2em; }

/* bảng */
.bang { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; background: var(--giay); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--vien); }
th { background: var(--kem-dam); font-family: var(--chu-tieu-de); font-weight: 600; }
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { border: 1px solid var(--vien); border-radius: 8px; margin-bottom: 12px; padding: 4px 0; }
  td { border: 0; border-top: 1px solid var(--kem-dam); padding: 8px 12px; }
  td:first-child { border-top: 0; font-weight: 600; }
  td::before { content: attr(data-cot); display: block; font-family: var(--chu-tieu-de); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muc-nhe); margin-bottom: 2px; }
  td:first-child::before { display: none; }
}

/* chân trang */
.chan { background: var(--muc); color: #e7e3d8; margin-top: 0; padding: 40px 0 32px; font-size: 1rem; }
.lien-quan + .chan, .ai-viet + .chan { margin-top: 0; }
.chan a { color: #cfe3cc; }
.chan a:hover { color: #fff; }
.chan-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.chan-ten { font-family: var(--chu-tieu-de); font-size: 1.3rem; margin-bottom: .4em; }
.chan-ten b { color: #8fcf96; }
.chan-links { list-style: none; padding: 0; margin: 0 0 1em; }
.chan-links li { margin-bottom: 4px; }
.chan-links a { display: inline-block; padding: 6px 0; min-height: 44px; line-height: 32px; }
.ranh { font-size: .95rem; color: #c9c4b8; }
.ranh p { margin-bottom: .6em; }

@media print { .nav, .chan, .lien-quan, .skip { display: none; } body { font-size: 12pt; background: #fff; } }
