/* Trang công khai "Cân nặng thai tuần N" — đợt 4 vòng 098 (31/10/2026). Sinh bởi scripts/trang-tuan/dung-trang-tuan.js.
   Chalet: Đêm mặc định, Ngày khi html[data-che-do="ngay"] (cùng khoá lolo_che_do với app). Không cần JS để đọc trang.
   Caslon / Archivo Narrow / EB Garamond. Ảnh: width kèm height:auto (không aspect-ratio). Ô chạm ≥ 44px. */
:root { --tt-nen:#061C17; --tt-mat:rgba(232,220,190,.06); --tt-ke:rgba(232,220,190,.24); --tt-chu:#F4EEE1; --tt-phu:#B3AA98;
  --tt-nhan:#D9BE86; --tt-nut:#D9BE86; --tt-nut-chu:#13221B;
  --f-hien:'Libre Caslon Text',Georgia,serif; --f-tieu:'Archivo Narrow','Arial Narrow',sans-serif; --f-than:'EB Garamond',Georgia,serif; }
html[data-che-do="ngay"] { --tt-nen:#F2EEE4; --tt-mat:#FFFFFF; --tt-ke:#D8CFBC; --tt-chu:#16291F; --tt-phu:#4F5A55;
  --tt-nhan:#7A5B22; --tt-nut:#173B2F; --tt-nut-chu:#F6F1E6; }
html { color-scheme: dark; } html[data-che-do="ngay"] { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--tt-nen); color: var(--tt-chu); font: 500 1.12rem/1.62 var(--f-than); -webkit-text-size-adjust: 100%; }
.tt-dau, .tt, .tt-chan { max-width: 720px; margin: 0 auto; padding-inline: 16px; }
.tt-dau { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.tt-hieu { font: 700 1.35rem var(--f-hien); color: var(--tt-chu); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.tt-dau-phu, .tt-vet, caption, thead th, .tt-tuan a, .tt-nut { font-family: var(--f-tieu); letter-spacing: .02em; }
.tt-dau-phu { color: var(--tt-phu); font-size: .85rem; text-transform: uppercase; }
.tt-vet { font-size: .95rem; color: var(--tt-phu); }
.tt-vet a { color: var(--tt-nhan); display: inline-flex; align-items: center; min-height: 44px; }
h1 { font: 700 clamp(1.9rem, 7vw, 2.6rem)/1.15 var(--f-hien); margin: .2em 0 .3em; text-wrap: balance; }
h2 { font: 700 1.35rem/1.25 var(--f-hien); margin: 1.6em 0 .5em; }
.tt-anh { display: block; width: 100%; height: auto; border-radius: 18px; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--tt-mat); border-radius: 14px; overflow: hidden; }
caption { text-align: left; color: var(--tt-phu); font-size: .9rem; padding: 0 0 8px; }
th, td { padding: 0 10px; height: 48px; border-bottom: 1px solid var(--tt-ke); text-align: right; } th[scope="row"], thead th:first-child { text-align: left; }
th[scope="row"] a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tt-nhan); }
tr.tt-nay th, tr.tt-nay td { color: var(--tt-nhan); font-weight: 600; }
.tt-nut { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 14px;
  background: var(--tt-nut); color: var(--tt-nut-chu); font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.tt-moi { background: var(--tt-mat); border: 1px solid var(--tt-ke); border-radius: 18px; padding: 4px 16px 18px; margin: 24px 0; }
.tt-lien { display: inline-flex; align-items: center; min-height: 44px; color: var(--tt-nhan); }
.tt-vui { font-style: italic; color: var(--tt-phu); }
.tt-luu-y { font-size: .98rem; color: var(--tt-phu); border-left: 2px solid var(--tt-nhan); padding-left: 12px; margin: 20px 0; }
.tt-luu-y b { color: var(--tt-chu); }
.tt-tuan { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 32px; }
.tt-tuan a { flex: 1 1 28%; min-height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--tt-ke);
  border-radius: 12px; color: var(--tt-chu); text-decoration: none; }
.tt-chan { color: var(--tt-phu); font-size: .92rem; padding-bottom: 32px; }
.tt-chan a { color: var(--tt-phu); display: inline-flex; align-items: center; min-height: 44px; }
a:focus-visible, .tt-nut:focus-visible { outline: 2px solid var(--tt-nhan); outline-offset: 3px; }
@media (min-width: 768px) { .tt-anh { max-width: 520px; } }

/* Vòng 101: nút Ngày/Đêm (cùng khoá lolo_che_do với app) — ô chạm 44px, viền kẻ, biểu tượng theo màu chữ */
.tt-che-do { margin-left: auto; width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--tt-ke); background: transparent; color: var(--tt-chu); padding: 0; cursor: pointer; }
.tt-che-do:focus-visible { outline: 2px solid var(--tt-nhan); outline-offset: 3px; }
.tt-mat-trang, html[data-che-do="ngay"] .tt-mat-troi { display: none; }
html[data-che-do="ngay"] .tt-mat-trang { display: block; }
