/* Lịch Vạn Niên – giao diện sơn mài đỏ, vàng kim, nền giấy */
:root {
  --cl-lac: #7a1618; --cl-lac-2: #5e0f10; --cl-gold: #e9b65a; --cl-gold-2: #f3d79c;
  --cl-paper: #fbfaf6; --cl-edge: #e6e1d6; --cl-ink: #1b1f2b; --cl-soft: #5b5f6a;
  --cl-red: #c8201b; --cl-jade: #1f7a5a; --cl-jade-bg: #e6f3ed; --cl-red-bg: #fbeaea;
  --cl-radius: 14px; --cl-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body { font-family: var(--cl-font); color: var(--cl-ink); background: #f4f1ea; line-height: 1.6; }
h1, h2, h3, h4, .main-title { font-family: var(--cl-font); }
a { color: var(--cl-lac); }
a:hover { color: var(--cl-red); }

/* ---------- Đầu trang ---------- */
.site-header { background: var(--cl-lac-2); background-image: linear-gradient(135deg, var(--cl-lac-2), var(--cl-lac)); }
.site-header .inside-header { padding: 12px 16px; }
.site-header .site-branding, .site-header .site-logo { display: none; }
.cl-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.cl-brand:hover { color: #fff; }
.cl-brand-mark { width: 46px; height: 50px; border-radius: 9px; background: var(--cl-paper); color: var(--cl-lac); display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px var(--cl-gold); }
.cl-brand-mark b { font-size: 22px; font-weight: 700; }
.cl-brand-mark small { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.cl-brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.cl-brand-name { font-size: 21px; font-weight: 700; color: var(--cl-gold-2); }
.cl-brand-sub { font-size: 12.5px; color: #f6ead6; opacity: .85; }
.main-navigation, .main-navigation ul ul { background: var(--cl-lac); }
.main-navigation .main-nav ul li a, .main-navigation .menu-toggle { color: #f6ead6; font-weight: 600; font-size: 14.5px; }
.main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li.current-menu-item > a { color: var(--cl-gold-2); background: rgba(0, 0, 0, .15); }

/* ---------- Khung nội dung ---------- */
.separate-containers .inside-article, .one-container .site-content { border-radius: var(--cl-radius); }
.cl-h1, .entry-title { font-size: clamp(24px, 4.5vw, 32px); line-height: 1.25; margin: 0 0 6px; font-weight: 700; color: var(--cl-ink); }
.cl-lead { font-size: 16.5px; color: var(--cl-soft); margin: 0 0 18px; }
.cl-head { margin-bottom: 8px; }
.entry-content h2, .cl-sec h2, .cl-faq h2 { font-size: clamp(20px, 3.4vw, 24px); margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--cl-gold); line-height: 1.3; }
.entry-content h3 { font-size: 18px; margin: 22px 0 8px; }
.cl-h3, .cl-info h2 { font-size: 17px !important; margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; }
.cl-sec { margin-top: 26px; }
.cl-small { font-size: 13px; color: var(--cl-soft); }
.cl-note { background: #fff7e6; border: 1px solid #f0d9a8; padding: 10px 14px; border-radius: 10px; }
.cl-err { background: var(--cl-red-bg); border-color: #f2b8b5; }
.cl-good-t { color: var(--cl-jade); }

/* ---------- Tờ lịch ---------- */
.cl-day { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .cl-day { grid-template-columns: 340px 1fr; align-items: start; } .cl-daynav { grid-column: 1 / -1; } }
.cl-sheet { background: var(--cl-paper); border-radius: var(--cl-radius); border: 1px solid var(--cl-edge); overflow: hidden; text-align: center;
  box-shadow: 0 10px 28px rgba(94, 15, 16, .12); }
.cl-sheet-top { display: flex; justify-content: space-between; background: var(--cl-lac); color: var(--cl-gold-2); padding: 10px 16px; font-weight: 600; font-size: 15px; }
.cl-sheet-big { font-size: 112px; line-height: 1; font-weight: 700; color: var(--cl-red); margin: 14px 0 4px; letter-spacing: -.03em; }
.cl-sheet-am { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px 12px; border-bottom: 1px dashed var(--cl-edge); }
.cl-am-num { font-size: 54px; font-weight: 700; color: var(--cl-lac); line-height: 1; }
.cl-am-txt { display: flex; flex-direction: column; text-align: left; font-size: 14px; color: var(--cl-soft); line-height: 1.35; }
.cl-am-txt b { color: var(--cl-ink); font-size: 16px; }
.cl-cc { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 12px 8px; gap: 4px; }
.cl-cc div { display: flex; flex-direction: column; }
.cl-cc dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--cl-soft); }
.cl-cc dd { margin: 0; font-weight: 700; font-size: 15.5px; }
.cl-sheet-foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0 12px 14px; }
.cl-badge, .cl-tag { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; background: #eee; color: var(--cl-soft); }
.cl-tag { padding: 1px 8px; font-size: 12px; }
.cl-good { background: var(--cl-jade-bg); color: var(--cl-jade); }
.cl-bad, .cl-badt { background: var(--cl-red-bg); color: var(--cl-red); }
.cl-tiet { font-size: 13.5px; color: var(--cl-soft); padding: 3px 0; }
.cl-sheet-le { margin: 0; padding: 8px 12px; background: #fff3d6; color: var(--cl-lac); font-weight: 600; font-size: 14px; }
.cl-clock { margin: 0; padding: 10px; background: var(--cl-lac-2); color: var(--cl-gold-2); font-size: 14px; }
.cl-clock-t { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

.cl-info { background: #fff; border: 1px solid var(--cl-edge); border-radius: var(--cl-radius); padding: 16px; }
.cl-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (min-width: 560px) { .cl-hours { grid-template-columns: repeat(6, 1fr); } }
.cl-hours li { margin: 0; border-radius: 9px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; line-height: 1.25; border: 1px solid transparent; }
.cl-hours b { font-size: 15px; }
.cl-hours span { font-size: 12px; }
.cl-hours small { font-size: 10.5px; opacity: .8; }
.cl-h-good { background: var(--cl-jade-bg); color: #145a42; }
.cl-h-bad { background: #f5f3ef; color: #8a8d95; }
.cl-hours li.cl-h-now { border-color: var(--cl-lac); box-shadow: 0 0 0 2px var(--cl-gold); }
.cl-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.cl-dodont > div { border-radius: 10px; padding: 10px 12px; }
.cl-dodont h3 { font-size: 14.5px !important; margin: 0 0 4px !important; }
.cl-dodont p { margin: 0; font-size: 14px; }
.cl-do { background: var(--cl-jade-bg); } .cl-do h3 { color: var(--cl-jade); }
.cl-dont { background: var(--cl-red-bg); } .cl-dont h3 { color: var(--cl-red); }
.cl-kv { width: 100%; border-collapse: collapse; margin: 0; font-size: 14.5px; border: 0; }
.cl-kv th, .cl-kv td { border: 0; border-bottom: 1px solid #efebe3; padding: 7px 4px; vertical-align: top; text-align: left; }
.cl-kv th { width: 34%; color: var(--cl-soft); font-weight: 600; }
.cl-banhto { margin-top: 12px; background: #faf6ee; border-radius: 10px; padding: 10px 12px; }
.cl-banhto h3 { font-size: 14.5px !important; margin: 0 0 4px !important; color: var(--cl-lac); }
.cl-banhto p { margin: 0; font-size: 14px; }
.cl-daynav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cl-daynav a, .cl-daynav span { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--cl-edge); text-decoration: none; font-size: 14px; font-weight: 600; }
.cl-daynav-now { background: var(--cl-lac) !important; color: var(--cl-gold-2); border-color: var(--cl-lac) !important; }

/* ---------- Lịch tháng ---------- */
.cl-month { background: #fff; border: 1px solid var(--cl-edge); border-radius: var(--cl-radius); overflow: hidden; margin: 10px 0 6px; }
.cl-month-head { display: flex; align-items: center; justify-content: space-between; background: var(--cl-lac); color: #fff; padding: 8px 10px; }
.cl-month-title { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.3; }
.cl-month-title b { font-size: 18px; color: var(--cl-gold-2); }
.cl-month-title span { font-size: 12.5px; opacity: .9; }
.cl-mnav { color: var(--cl-gold-2) !important; text-decoration: none; font-size: 28px; line-height: 1; padding: 2px 12px; border-radius: 8px; }
.cl-mnav:hover { background: rgba(255, 255, 255, .12); }
.cl-grid { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; border: 0; }
.cl-grid th { font-size: 12.5px; padding: 8px 0; color: var(--cl-soft); text-align: center; border: 0; background: #faf8f3; }
.cl-grid td { padding: 0; border: 1px solid #f0ece4; height: 58px; vertical-align: top; }
.cl-grid .cl-sun, .cl-grid .cl-sun .cl-d { color: var(--cl-red); }
.cl-cell a { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 56px; text-decoration: none; color: var(--cl-ink); position: relative; }
.cl-cell a:hover { background: #fff6e3; }
.cl-d { font-size: 17px; font-weight: 600; line-height: 1.1; }
.cl-a { font-size: 11.5px; color: var(--cl-soft); }
.cl-mr .cl-a { color: var(--cl-red); font-weight: 700; }
.cl-hd a { background: linear-gradient(180deg, transparent 72%, var(--cl-jade-bg) 72%); }
.cl-le a { background: #fff3d6; }
.cl-today a { background: var(--cl-lac) !important; }
.cl-today .cl-d, .cl-today .cl-a { color: #fff !important; }
.cl-sel a { box-shadow: inset 0 0 0 2px var(--cl-gold); }
.cl-dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; }
.cl-dot-ky { background: var(--cl-red); opacity: .55; }
.cl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--cl-soft); margin: 0; padding: 8px 12px; background: #faf8f3; }
.cl-lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cl-lg-hd { background: var(--cl-jade-bg); border: 1px solid #b9dccb; } .cl-lg-le { background: #fff3d6; border: 1px solid #f0d9a8; }
.cl-lg-ky { background: var(--cl-red); opacity: .55; border-radius: 50%; width: 8px; height: 8px; } .cl-lg-today { background: var(--cl-lac); }

/* ---------- Bảng ---------- */
.cl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; border: 1px solid var(--cl-edge); border-radius: 12px; background: #fff; }
.cl-t { width: 100%; border-collapse: collapse; margin: 0; font-size: 14.5px; border: 0; }
.cl-t th, .cl-t td { border: 0; border-bottom: 1px solid #efebe3; padding: 8px 10px; text-align: left; vertical-align: top; }
.cl-t thead th { background: #faf6ee; font-size: 13px; color: var(--cl-soft); white-space: nowrap; }
.cl-t tbody th { font-weight: 600; }
.cl-t tr:last-child th, .cl-t tr:last-child td { border-bottom: 0; }
.cl-row-hd th:first-child { box-shadow: inset 3px 0 0 var(--cl-jade); }
.cl-t-month td, .cl-t-month th { white-space: nowrap; }
.cl-star { color: #c28a12; }
.cl-list-cols { columns: 2 260px; column-gap: 24px; padding-left: 18px; }
.cl-list-cols li { break-inside: avoid; margin-bottom: 4px; }

/* ---------- Đổi ngày, công cụ ---------- */
.cl-conv { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .cl-conv { grid-template-columns: 1fr 1fr; } }
.cl-form, .cl-tool { background: #fff; border: 1px solid var(--cl-edge); border-radius: var(--cl-radius); padding: 14px 16px; }
.cl-form h3 { font-size: 16px; margin: 0 0 10px; color: var(--cl-lac); }
.cl-form label, .cl-tool label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.cl-form input, .cl-form select, .cl-tool input { display: block; width: 100%; box-sizing: border-box; max-width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #d9d3c6; border-radius: 9px; font-size: 16px; background: #fff; }
.cl-form-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.cl-form .cl-check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.cl-form .cl-check input { width: auto; margin: 0; }
.cl-form button { background: var(--cl-lac); color: var(--cl-gold-2); border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 15px; cursor: pointer; }
.cl-form button:hover { background: var(--cl-red); color: #fff; }
.cl-tool-out { margin: 0; font-size: 15px; }

/* ---------- Đếm ngược, sắp tới, chip ---------- */
.cl-count { background: linear-gradient(135deg, var(--cl-lac-2), var(--cl-lac)); color: #f6ead6; border-radius: var(--cl-radius); padding: 14px 18px; margin: 10px 0; }
.cl-count-l { margin: 0; font-size: 14.5px; }
.cl-count-n { margin: 2px 0 0; font-size: 18px; }
.cl-cd-d { font-size: 40px; font-weight: 700; color: var(--cl-gold-2); font-variant-numeric: tabular-nums; }
.cl-cd-h { font-variant-numeric: tabular-nums; opacity: .9; font-size: 15px; }
.cl-up { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) { .cl-up { grid-template-columns: 1fr 1fr; } }
.cl-up li { margin: 0; }
.cl-up a { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; background: #fff; border: 1px solid var(--cl-edge); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--cl-ink); }
.cl-up b { grid-column: 1; } .cl-up span { grid-column: 1; font-size: 13px; color: var(--cl-soft); }
.cl-up em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 13px; font-weight: 600; color: var(--cl-lac); white-space: nowrap; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--cl-edge); background: #fff; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--cl-lac); }
.cl-chip-on, .cl-chip:hover { background: var(--cl-lac); color: var(--cl-gold-2); border-color: var(--cl-lac); }
.cl-pn { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 24px 0 0; font-weight: 600; }

/* ---------- Thẻ ngày, hỏi đáp ---------- */
.cl-card { border: 1px solid var(--cl-edge); border-radius: var(--cl-radius); padding: 12px 16px; background: #fffdf8; margin: 14px 0; }
.cl-card-t { margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.cl-faq details { background: #fff; border: 1px solid var(--cl-edge); border-radius: 12px; margin-bottom: 8px; }
.cl-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; position: relative; padding-right: 36px; }
.cl-faq summary::-webkit-details-marker { display: none; }
.cl-faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 20px; color: var(--cl-lac); }
.cl-faq details[open] summary::after { content: "–"; }
.cl-faq-a { padding: 0 16px 6px; }
.cl-disclaimer { font-size: 13px; color: var(--cl-soft); border-top: 1px solid var(--cl-edge); padding-top: 12px; margin-top: 26px; }

/* ---------- Thanh bên ---------- */
.cl-side { background: #fff; border: 1px solid var(--cl-edge); border-radius: var(--cl-radius); padding: 14px 16px; margin-bottom: 16px; }
.cl-side .cl-count { margin: 0; }
.cl-side-t { font-weight: 700; margin: 0 0 8px; color: var(--cl-lac); }
.cl-side-big { font-size: 44px; font-weight: 700; color: var(--cl-red); margin: 0; line-height: 1.1; }
.cl-side-big small { font-size: 15px; color: var(--cl-soft); font-weight: 400; }
.cl-side-list { margin: 0; padding-left: 18px; font-size: 14.5px; }
.cl-side-list li { margin-bottom: 6px; }
.cl-more { font-weight: 600; font-size: 14px; }

/* ---------- Chân trang ---------- */
.site-footer .footer-widgets, .site-info { background: var(--cl-lac-2); color: #e9dcc6; }
.site-info a { color: var(--cl-gold-2); }
.cl-foot { background: var(--cl-lac-2); color: #e9dcc6; padding: 28px 20px 10px; }
.cl-foot-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .cl-foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.cl-foot-brand { font-size: 20px; font-weight: 700; color: var(--cl-gold-2); margin: 0 0 6px; }
.cl-foot p { font-size: 14px; }
.cl-foot-h { font-weight: 700; color: #fff; margin: 0 0 6px; }
.cl-foot-links { display: flex; flex-direction: column; gap: 4px; }
.cl-foot-links a { color: #e9dcc6; text-decoration: none; font-size: 14px; }
.cl-foot-links a:hover { color: var(--cl-gold-2); }
.cl-foot-note { max-width: 1100px; margin: 14px auto 0; font-size: 12.5px; opacity: .75; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 10px; }

@media (max-width: 520px) {
  .cl-sheet-big { font-size: 96px; }
  .cl-kv th { width: 38%; }
  .cl-dodont { grid-template-columns: 1fr; }
  .separate-containers .inside-article { padding: 18px 14px; }
  .cl-grid td { height: 52px; }
  .cl-cell a { min-height: 50px; }
}

/* Bảng xếp dọc trên điện thoại */
.cl-stack-date { display: none; }
@media (max-width: 640px) {
  .cl-stack thead { display: none; }
  .cl-stack, .cl-stack tbody, .cl-stack tr, .cl-stack th, .cl-stack td { display: block; width: auto; }
  .cl-stack tr { padding: 10px 12px; border-bottom: 1px solid #efebe3; }
  .cl-stack th, .cl-stack td { border: 0 !important; padding: 2px 0 !important; }
  .cl-stack th { font-size: 15.5px; }
  .cl-stack td[data-l]::before { content: attr(data-l) ": "; font-weight: 600; color: var(--cl-ink); font-size: 13px; }
  .cl-stack .cl-stack-hide { display: none; }
  .cl-stack .cl-stack-date { display: inline; font-weight: 600; }
}

/* Logo mới */
.cl-brand-logo { width: 50px; height: 50px; flex-shrink: 0; display: block; }
.cl-brand-logo svg { width: 100%; height: 100%; display: block; }
/* Bài viết mới có ảnh nhỏ */
.cl-side-list { list-style: none; padding-left: 0; }
.cl-side-list li { margin-bottom: 10px; }
.cl-side-list a { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; line-height: 1.4; }
.cl-side-list a:hover span { text-decoration: underline; }
.cl-side-img { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
/* Form liên hệ */
.cl-contact { background: #fff; border: 1px solid var(--cl-edge); border-radius: var(--cl-radius); padding: 16px 18px; margin: 16px 0; }
.cl-contact label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 12px; }
.cl-contact input, .cl-contact textarea, .cl-contact select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px; border: 1px solid #d9d3c6; border-radius: 9px; font: inherit; font-weight: 400; }
.cl-contact button { background: var(--cl-lac); color: var(--cl-gold-2); border: 0; border-radius: 999px; padding: 11px 24px; font-weight: 700; cursor: pointer; }
.cl-contact .cl-hp { position: absolute; left: -9999px; }
.cl-ok { background: var(--cl-jade-bg); border: 1px solid #b9dccb; padding: 10px 14px; border-radius: 10px; }

/* Điện thoại: thu hẹp lề để tờ lịch, bảng rộng hơn */
@media (max-width: 768px) {
  .separate-containers .inside-article, .one-container .site-content { padding: 20px 14px !important; }
  body.cl-full.separate-containers .inside-article, body.cl-full.one-container .site-content { padding: 14px 8px !important; }
  body.cl-full .site-content, body.cl-full .site-main { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  body.cl-full .cl-head, body.cl-full .cl-sec > h2, body.cl-full .entry-title, body.cl-full .cl-lead { padding-left: 6px; padding-right: 6px; }
  .cl-day { gap: 12px; }
  .cl-info { padding: 14px 10px; }
  .cl-hours { gap: 5px; }
  .cl-month { border-radius: 10px; }
  .cl-sec h2 { margin-top: 24px; }
}
