/* Cụm trang /xem-ngay-tot/ (build-xemngay.js). Dùng chung khung .la-main/.la-container của licham-page.css */

.xn-h1 { font-size: 24px; line-height: 1.35; color: #065f46; margin: 0 0 10px; }
.xn-tom { font-size: 15px; line-height: 1.65; color: #374151; margin: 0 0 18px; }
.xn-tom a { color: #047857; font-weight: 600; }
.xn-ghi { font-size: 13px; color: #6b7280; margin: 0 0 12px; }

.xn-khoi { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 18px 20px; margin-bottom: 16px; }
.xn-khoi h2 { font-size: 18px; color: #065f46; margin: 0 0 10px; }
.xn-khoi h2 + .xn-thang, .xn-khoi h2 + .xn-viec-khac { margin-top: 4px; }
.xn-khoi .xn-viec-khac { margin-bottom: 0; }

/* Danh sách ngày */
.xn-ds { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.xn-ngay { display: flex; gap: 12px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; }
.xn-ngay-so { flex: 0 0 58px; align-self: flex-start; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: #ecfdf5; color: #065f46; text-decoration: none; padding: 6px 0; }
.xn-ngay-so span { font-size: 24px; font-weight: 800; line-height: 1.1; }
.xn-ngay-so small { font-size: 11px; color: #047857; }
.xn-ngay-than { flex: 1; min-width: 0; }
.xn-ngay-dau { font-size: 14px; color: #374151; line-height: 1.6; }
.xn-ngay-dau a { color: #111827; text-decoration: none; }
.xn-diem { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.xn-diem.tot { background: #d1fae5; color: #065f46; }
.xn-diem.rat-tot { background: #065f46; color: #fff; }
.xn-ly-do { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: #4b5563; }
.xn-ly-do li { padding-left: 18px; position: relative; margin-top: 2px; }
.xn-ly-do li::before { position: absolute; left: 0; font-weight: 700; }
.xn-ly-do li.tot::before { content: '✓'; color: #059669; }
.xn-ly-do li.xau::before { content: '!'; color: #dc2626; left: 4px; }
.xn-ly-do li.vua::before { content: '·'; color: #9ca3af; left: 4px; }

/* Ngày nên tránh */
.xn-tranh { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.6; }
.xn-tranh li { padding: 6px 0; border-bottom: 1px dashed #e5e7eb; color: #4b5563; }
.xn-tranh li:last-child { border-bottom: 0; }
.xn-tranh a { color: #b91c1c; font-weight: 600; text-decoration: none; }
.xn-tranh span { color: #9ca3af; font-size: 13px; }

/* Ô chọn theo tuổi */
.xn-tuoi { border: 2px solid #a7f3d0; }
.xn-tuoi p { font-size: 14px; line-height: 1.6; color: #374151; margin: 0 0 12px; }
.xn-tuoi-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.xn-tuoi-form label { font-size: 14px; font-weight: 600; color: #065f46; }
.xn-tuoi-form input { width: 120px; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 16px; }
.xn-tuoi-form button { padding: 10px 16px; border: 0; border-radius: 10px; background: #047857; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.xn-tuoi-tieude { font-weight: 700; color: #065f46 !important; margin-top: 8px !important; }

/* Điều hướng tháng / việc */
.xn-thang { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 10px; }
.xn-thang a, .xn-thang-chon { text-align: center; padding: 8px 0; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.xn-thang a { background: #f0fdf4; color: #047857; }
.xn-thang-chon { background: #047857; color: #fff; }
.xn-viec-khac { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.xn-viec-khac a { padding: 6px 12px; border-radius: 999px; background: #f0fdf4; color: #065f46; font-size: 14px; text-decoration: none; }

/* Lưới tháng (trang một việc) và lưới việc (mục lục) */
.xn-luoi-thang { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.xn-o-thang { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid #d1fae5; border-radius: 10px; text-decoration: none; color: #374151; font-size: 13px; }
.xn-o-thang strong { color: #065f46; font-size: 15px; }
.xn-o-thang small { color: #6b7280; }
.xn-luoi-viec { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.xn-the-viec { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.xn-the-viec h2 { font-size: 17px; margin: 0; }
.xn-the-viec h2 a { color: #065f46; text-decoration: none; }
.xn-the-viec p { font-size: 13px; color: #6b7280; margin: 0 0 4px; }
.xn-the-viec > a { font-size: 14px; color: #047857; text-decoration: none; }

/* Cách chấm, hỏi đáp */
.xn-cach ol { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.65; color: #374151; }
.xn-cach p { font-size: 14px; line-height: 1.6; color: #374151; margin: 0 0 8px; }
.xn-cach a { color: #047857; }
.xn-hoi { border-top: 1px solid #f3f4f6; padding: 10px 0; }
.xn-hoi summary { cursor: pointer; font-weight: 600; color: #111827; font-size: 15px; }
.xn-hoi p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #4b5563; }

@media (max-width: 640px) {
  .xn-h1 { font-size: 21px; }
  .xn-khoi { padding: 14px; }
  .xn-ngay { gap: 10px; padding: 10px; }
  .xn-ngay-so { flex-basis: 50px; }
  .xn-thang { grid-template-columns: repeat(4, 1fr); }
}
