@charset "UTF-8";
/* Trang lịch âm. Chỉ dùng biến màu, chữ, bo góc, đổ bóng của theme (tokens.css); di động trước. */

.tvl-body{display:flex;flex-direction:column;gap:clamp(24px,3vw,36px);padding-top:clamp(24px,3.4vw,40px);padding-bottom:var(--tv-section-y)}
.tvl-icon{flex-shrink:0}

/* Khối hôm nay: thẻ ngày + cột phụ */
.tvl-today{display:grid;gap:clamp(18px,2vw,24px);align-items:start}
.tvl-today__side{display:flex;flex-direction:column;gap:clamp(18px,2vw,24px)}
.tvl-today__main,.tvl-today__month,.tvl-today__side{min-width:0}

/* Thẻ ngày */
.tvl-day{display:flex;flex-direction:column;gap:16px;padding:clamp(18px,2.4vw,28px);background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg);box-shadow:var(--tv-shadow-card)}
.tvl-day__top{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.tvl-day__tag{display:inline-flex;align-items:center;padding:3px 10px;border-radius:var(--tv-radius-pill);background:var(--tv-primary);color:#fff;font-size:var(--tv-fs-13);font-weight:700}
.tvl-day__title{font-family:var(--tv-font-heading);font-weight:700;font-size:clamp(22px,2.4vw,28px);line-height:1.25;color:var(--tv-heading)}
.tvl-day__pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tvl-day__side{display:flex;flex-direction:column;gap:2px;min-width:0;padding:14px 14px 16px;border-radius:var(--tv-radius-md);background:var(--tv-surface-2);border:1px solid var(--tv-border)}
.tvl-day__side--am{background:var(--tv-plum-tint)}
.tvl-day__label{font-size:var(--tv-fs-13);font-weight:700;letter-spacing:.02em;color:var(--tv-text-3)}
.tvl-day__num{font-family:var(--tv-font-heading);font-weight:700;font-size:clamp(48px,7vw,68px);line-height:1.05;color:var(--tv-primary-dark)}
.tvl-day__side--am .tvl-day__num{color:var(--tv-gold-text)}
.tvl-day__sub{font-size:var(--tv-fs-15);font-weight:600;color:var(--tv-ink);overflow-wrap:anywhere}
.tvl-day__mini{font-size:var(--tv-fs-13);color:var(--tv-text-3)}
.tvl-day__more{align-self:flex-start}

.tvl-facts{display:flex;flex-direction:column}
.tvl-facts__row{display:grid;gap:4px;padding:12px 0;border-top:1px solid var(--tv-divider)}
.tvl-facts__row:first-child{border-top:0;padding-top:4px}
.tvl-facts dt{font-size:var(--tv-fs-14);font-weight:600;color:var(--tv-text-3)}
.tvl-facts dd{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:var(--tv-fs-16);line-height:1.5;color:var(--tv-ink)}
.tvl-facts__than{font-weight:600}
.tvl-facts__note{flex-basis:100%;font-size:var(--tv-fs-14);line-height:1.5;color:var(--tv-text-2)}
.tvl-theo{margin-top:-6px;font-size:var(--tv-fs-13);line-height:1.5;color:var(--tv-text-3)}

.tvl-hd{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:2px 12px;border-radius:var(--tv-radius-pill);font-size:var(--tv-fs-14);font-weight:700}
.tvl-hd--hoang{background:var(--tv-gold-100);color:var(--tv-plum-900)}
.tvl-hd--hac{background:var(--tv-surface-2);color:var(--tv-text-2);border:1px solid var(--tv-border-strong)}

.tvl-hours{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.tvl-hours li{display:inline-flex;align-items:baseline;gap:6px;padding:4px 12px;border-radius:var(--tv-radius-pill);background:var(--tv-surface-2);border:1px solid var(--tv-border);font-size:var(--tv-fs-15)}
.tvl-hours__chi{font-weight:700;color:var(--tv-primary-dark)}
.tvl-hours__t{font-size:var(--tv-fs-14);color:var(--tv-text-2)}

/* Dấu hoàng đạo (tròn đặc), hắc đạo (vòng rỗng), ngày lễ (hình thoi): khác nhau cả hình lẫn màu */
.tvl-dau{display:inline-block;flex-shrink:0;width:9px;height:9px;border-radius:50%}
.tvl-dau--hoang{background:var(--tv-gold-text)}
.tvl-dau--hac{border:1.5px solid var(--tv-text-3);background:transparent}
.tvl-dau--le{width:7px;height:7px;border-radius:1px;background:var(--tv-primary);transform:rotate(45deg)}

/* Hộp cột phụ */
.tvl-box{display:flex;flex-direction:column;gap:14px;padding:20px;background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg)}
.tvl-box__foot a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:var(--tv-fs-15);font-weight:600;color:var(--tv-primary-dark)}
.tvl-jump__title{display:flex;align-items:center;gap:10px;font-family:var(--tv-font-heading);font-weight:700;font-size:20px;color:var(--tv-heading)}
.tvl-jump__title .tvl-icon{color:var(--tv-primary)}
.tvl-jump__list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.tvl-chip{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:var(--tv-radius-pill);background:var(--tv-surface);border:1.5px solid var(--tv-border-strong);color:var(--tv-text-2);font-size:var(--tv-fs-15);font-weight:600;transition:border-color .15s}
.tvl-chip:hover{border-color:var(--tv-primary);color:var(--tv-primary-dark)}
.tvl-chip--on{background:var(--tv-primary);border-color:var(--tv-primary);color:#fff}
.tvl-chip--on:hover{color:#fff}

/* Form đổi ngày */
.tvl-convert{display:grid;gap:20px}
.tvl-convert--gon .tvl-form + .tvl-form{padding-top:20px;border-top:1px solid var(--tv-divider)}
.tvl-convert--day-du{align-items:start}
.tvl-convert--day-du .tvl-form{padding:clamp(18px,2.4vw,28px);background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg);box-shadow:var(--tv-shadow-card)}
.tvl-form{display:flex;flex-direction:column;gap:12px;min-width:0;container-type:inline-size}
.tvl-form__title{font-family:var(--tv-font-heading);font-weight:700;font-size:20px;line-height:1.3;color:var(--tv-heading)}
.tvl-form__row{display:flex;flex-direction:column;gap:6px}
.tvl-form__set{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0;padding:0;border:0}
.tvl-form__label{padding:0;font-size:var(--tv-fs-15);font-weight:600;color:var(--tv-text-2)}
/* Ba ô ngày, tháng, năm: cùng hình với form lập lá số ở trang chủ (theme dựng ô chọn từ select[data-tv-dd],
   còn CSS của ô ấy chỉ nạp ở trang chủ nên chép về đây, giới hạn trong .tvl-dmy). */
.tvl-dmy{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) minmax(0,.97fr);gap:8px}
.tvl-dmy .tv-select{width:100%;min-width:0;height:46px;padding:0 34px 0 12px;border:1.5px solid #dccbbd;border-radius:12px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23713b78' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;font:inherit;font-size:15px;font-weight:600;color:var(--tv-ink);text-overflow:ellipsis;appearance:none;-webkit-appearance:none;cursor:pointer}
.tvl-dmy .tv-select.is-empty{font-weight:400;color:#7d6c7b}
.tvl-dmy .tv-select option{font-weight:400;color:var(--tv-ink)}
.tvl-dmy .tv-select:focus{border-color:var(--tv-primary);box-shadow:0 0 0 3px rgba(113,59,120,.16)}
.tvl-dmy .tv-select[aria-invalid="true"]{border:2px solid var(--tv-error);background-color:var(--tv-error-bg)}
/* Bảng số bám theo cả hàng ba ô chứ không theo từng ô, để không tràn khỏi màn hẹp. */
.tvl-dmy .tv-dd{position:static;min-width:0}
.tvl-dmy .tv-dd__btn{width:100%;height:46px;padding:0 10px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:6px;border:1.5px solid #dccbbd;border-radius:12px;background:#fff;font:inherit;font-size:15px;text-align:left;color:var(--tv-ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.tvl-dmy .tv-dd__btn:hover{border-color:var(--tv-primary)}
.tvl-dmy .tv-dd__btn[aria-expanded="true"]{border-color:var(--tv-primary);box-shadow:0 0 0 3px rgba(113,59,120,.16)}
.tvl-dmy .tv-dd:has(select[aria-invalid="true"]) .tv-dd__btn{border:2px solid var(--tv-error);background:var(--tv-error-bg)}
.tvl-dmy .tv-dd__value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--tv-ink)}
.tvl-dmy .tv-dd__btn.is-empty .tv-dd__value{font-weight:400;color:#7d6c7b}
.tvl-dmy .tv-dd__chev{display:block;flex-shrink:0;color:var(--tv-primary);transition:transform .2s}
.tvl-dmy .tv-dd__btn[aria-expanded="true"] .tv-dd__chev{transform:rotate(180deg)}
.tvl-dmy .tv-dd__panel{position:absolute;z-index:40;top:calc(100% + 6px);left:0;margin:0;padding:6px;list-style:none;background:var(--tv-surface);border:1px solid #e3cfd9;border-radius:12px;box-shadow:0 18px 36px -14px rgba(50,29,64,.42);max-height:272px;max-width:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#cdb5c8 transparent;display:flex;flex-direction:column;gap:2px;min-width:100%;width:max-content}
.tvl-dmy .tv-dd__panel[hidden]{display:none}
.tvl-dmy .tv-dd__panel--grid{display:grid;grid-template-columns:repeat(var(--dd-cols),minmax(0,1fr));gap:4px;min-width:0;width:var(--dd-width)}
.tvl-dmy .tv-dd__panel--center{left:50%;transform:translateX(-50%)}
.tvl-dmy .tv-dd__panel--right{left:auto;right:0}
.tvl-dmy .tv-dd__opt{min-height:40px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;white-space:nowrap;cursor:pointer;border-radius:8px;font-size:15px;color:var(--tv-heading);user-select:none}
.tvl-dmy .tv-dd__panel--grid .tv-dd__opt{min-height:0;height:38px;padding:0;display:grid;grid-template-columns:minmax(0,1fr);justify-content:normal;place-items:center}
.tvl-dmy .tv-dd__opt.is-active{background:#f1e3ec;outline:2px solid #b98cb4;outline-offset:-2px}
.tvl-dmy .tv-dd__opt[aria-selected="true"]{background:var(--tv-plum-tint);color:var(--tv-primary-dark);font-weight:700}
.tvl-dmy .tv-dd__panel--grid .tv-dd__opt[aria-selected="true"]{background:var(--tv-primary);color:#fff}
.tvl-dmy .tv-dd__check{display:none}
/* Form hẹp (điện thoại 320–360px, cột phụ ở iPad): bớt đệm để "Ngày", "Tháng 11", năm không bị cắt. */
@container (max-width:330px){
  .tvl-dmy{gap:6px}
  .tvl-dmy .tv-dd__btn{padding:0 4px 0 8px;gap:2px}
  .tvl-dmy .tv-dd__chev .tv-icon{width:14px;height:14px}
}
.tvl-check{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:var(--tv-fs-15);color:var(--tv-text-2);cursor:pointer}
.tvl-check input{width:20px;height:20px;accent-color:var(--tv-primary)}
.tvl-form__err{padding:10px 14px;border-radius:var(--tv-radius-md);background:var(--tv-error-bg);border:1px solid var(--tv-error);color:var(--tv-error);font-size:var(--tv-fs-15);line-height:1.5}
.tvl-form__btn{align-self:flex-start}

/* Kết quả đổi ngày */
.tvl-result{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px;border-radius:var(--tv-radius-lg);background:var(--tv-plum-tint);border:1px solid var(--tv-border)}
.tvl-result__title{font-family:var(--tv-font-heading);font-weight:700;font-size:22px;color:var(--tv-heading)}
.tvl-result__line{font-size:var(--tv-fs-17);line-height:1.6;color:var(--tv-ink)}

/* Lưới tháng */
.tvl-month{display:flex;flex-direction:column;gap:14px;min-width:0;padding:clamp(14px,2vw,24px) clamp(12px,2vw,24px);background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg);box-shadow:var(--tv-shadow-card)}
.tvl-month__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 16px}
.tvl-month__title{font-family:var(--tv-font-heading);font-weight:700;font-size:clamp(22px,2.4vw,28px);line-height:1.25;color:var(--tv-heading)}
.tvl-month__am{margin-top:2px;font-size:var(--tv-fs-14);color:var(--tv-text-3)}
.tvl-month__nav{display:flex;align-items:center;gap:6px}
.tvl-navbtn{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--tv-border-strong);background:var(--tv-surface);color:var(--tv-primary);transition:border-color .15s}
.tvl-navbtn:hover{border-color:var(--tv-primary)}
.tvl-navlink{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;font-size:var(--tv-fs-15);font-weight:600;color:var(--tv-primary-dark)}

.tvl-grid{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:3px}
.tvl-grid th{height:30px;padding:0;font-size:var(--tv-fs-13);font-weight:700;color:var(--tv-text-3);text-align:center}
.tvl-grid th abbr{text-decoration:none}
.tvl-grid th.tvl-grid__cn{color:var(--tv-error)}
.tvl-grid td{padding:0;vertical-align:top}
.tvl-cell{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;min-height:52px;height:100%;padding:5px 2px 6px;border:1px solid var(--tv-border);border-radius:var(--tv-radius-sm);background:var(--tv-bg);color:var(--tv-ink);text-align:center;text-decoration:none;transition:border-color .15s,box-shadow .2s}
.tvl-cell:hover{border-color:var(--tv-primary);box-shadow:var(--tv-shadow-card)}
.tvl-cell__d{font-size:var(--tv-fs-17);font-weight:700;line-height:1.15}
.tvl-cell__a{font-size:12px;line-height:1.25;color:var(--tv-text-3);white-space:nowrap}
.tvl-cell__mk{display:flex;align-items:center;justify-content:center;gap:5px;min-height:10px;margin-top:2px}
.tvl-cell__mk .tvl-dau{width:8px;height:8px}
.tvl-cell__mk .tvl-dau--le{width:7px;height:7px}
.tvl-cell__le{display:none}
.tvl-cell--cn .tvl-cell__d{color:var(--tv-error)}
.tvl-cell--moc .tvl-cell__a{font-weight:700;color:var(--tv-primary-dark)}
.tvl-cell--hom-nay{background:var(--tv-primary);border-color:var(--tv-primary-dark);color:#fff}
.tvl-cell--hom-nay .tvl-cell__d,.tvl-cell--hom-nay.tvl-cell--cn .tvl-cell__d{color:#fff}
.tvl-cell--hom-nay .tvl-cell__a,.tvl-cell--hom-nay.tvl-cell--moc .tvl-cell__a{color:var(--tv-on-dark)}
.tvl-cell--hom-nay .tvl-dau--hoang{background:var(--tv-gold-300)}
.tvl-cell--hom-nay .tvl-dau--hac{border-color:var(--tv-on-dark)}
.tvl-cell--hom-nay .tvl-dau--le{background:var(--tv-gold-300)}

.tvl-legend{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;margin:0;padding:0;font-size:var(--tv-fs-14);color:var(--tv-text-2)}
.tvl-legend li{display:inline-flex;align-items:center;gap:8px}
.tvl-legend__k{font-size:var(--tv-fs-13);font-weight:700;color:var(--tv-primary-dark)}

.tvl-holidays{padding-top:14px;border-top:1px solid var(--tv-divider)}
.tvl-holidays__title{margin-bottom:6px;font-family:var(--tv-font-heading);font-weight:700;font-size:18px;color:var(--tv-heading)}
.tvl-holidays__list{display:grid;gap:0 24px;list-style:none;margin:0;padding:0}
.tvl-holidays__list a{display:flex;align-items:center;gap:12px;min-height:44px;font-size:var(--tv-fs-15);color:var(--tv-ink)}
.tvl-holidays__list a:hover{color:var(--tv-primary-dark)}
.tvl-holidays__d{min-width:46px;font-weight:700;color:var(--tv-primary-dark)}

/* Giới thiệu */
.tvl-about{display:flex;flex-direction:column;gap:10px;max-width:780px}
.tvl-about__title{font-family:var(--tv-font-heading);font-weight:700;font-size:var(--tv-fs-h2-post);line-height:1.25;color:var(--tv-heading)}
.tvl-about p{font-size:var(--tv-fs-16);line-height:1.7;color:var(--tv-text-2)}

/* Trang ngày */
.tvl-dayhead{display:grid;gap:clamp(18px,2vw,24px);align-items:start}
.tvl-dayhead > *{min-width:0}
.tvl-sum{display:flex;flex-direction:column;gap:10px;padding:clamp(18px,2.4vw,28px);background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg)}
.tvl-sum p{font-size:var(--tv-fs-16);line-height:1.7;color:var(--tv-text-2)}
.tvl-sec{display:flex;flex-direction:column;gap:14px;min-width:0;padding:clamp(18px,2.4vw,28px);background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg)}
.tvl-sec__title{font-family:var(--tv-font-heading);font-weight:700;font-size:clamp(21px,2.2vw,26px);line-height:1.25;color:var(--tv-heading)}
.tvl-sec__sub{margin-top:6px;font-family:var(--tv-font-heading);font-weight:700;font-size:19px;color:var(--tv-heading)}
.tvl-sec__lead{font-size:var(--tv-fs-16);line-height:1.6;color:var(--tv-text-2)}
.tvl-sec .tvl-theo{margin-top:0}
.tvl-theo--chu{font-style:italic}

.tvl-tablewrap{max-width:100%;overflow-x:auto}
.tvl-table{width:100%;border-collapse:collapse;font-size:var(--tv-fs-15)}
.tvl-table th,.tvl-table td{padding:10px 6px;border-top:1px solid var(--tv-divider);text-align:left;vertical-align:middle;color:var(--tv-ink)}
.tvl-table thead th{border-top:0;padding-top:0;font-size:var(--tv-fs-13);font-weight:700;color:var(--tv-text-3)}
.tvl-table tbody th{font-weight:400;white-space:nowrap}
.tvl-table__chi{font-weight:700;color:var(--tv-primary-dark)}
.tvl-table__t{display:block;font-size:var(--tv-fs-13);color:var(--tv-text-2)}
.tvl-table__que{font-weight:700}
.tvl-table__hoang{background:var(--tv-surface-2)}
.tvl-table .tvl-hd{min-height:26px;padding:1px 10px;font-size:var(--tv-fs-13);white-space:nowrap}

.tvl-items{display:grid;gap:0}
.tvl-item{display:flex;flex-direction:column;gap:6px;padding:14px 0;border-top:1px solid var(--tv-divider)}
.tvl-item:first-child{border-top:0;padding-top:0}
.tvl-item:last-child{padding-bottom:0}
.tvl-item__k{font-size:var(--tv-fs-14);font-weight:600;color:var(--tv-text-3)}
.tvl-item__v{font-size:var(--tv-fs-17);font-weight:600;line-height:1.5;color:var(--tv-ink)}
.tvl-item__v--rong{font-size:var(--tv-fs-15);font-weight:400;color:var(--tv-text-2)}
.tvl-item__s{font-size:var(--tv-fs-15);line-height:1.5;color:var(--tv-text-2)}
.tvl-warn{display:flex;align-items:flex-start;gap:8px;padding:8px 12px;border-radius:var(--tv-radius-md);background:var(--tv-plum-tint);font-size:var(--tv-fs-14);line-height:1.5;color:var(--tv-plum-900)}
.tvl-warn .tvl-icon{margin-top:2px}

.tvl-stars{display:flex;flex-direction:column;gap:8px}
.tvl-stars__row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.tvl-stars dt{min-width:72px;font-size:var(--tv-fs-14);font-weight:600;color:var(--tv-text-3)}
.tvl-stars dd{margin:0;display:flex;flex-wrap:wrap;gap:6px}
.tvl-star{display:inline-flex;align-items:center;padding:3px 12px;border-radius:var(--tv-radius-pill);background:var(--tv-surface-2);border:1px solid var(--tv-border);font-size:var(--tv-fs-15);font-weight:600;color:var(--tv-ink)}

.tvl-quotes{display:grid;gap:12px}
.tvl-quote{margin:0;padding:14px 16px;border-left:3px solid var(--tv-gold-500);border-radius:0 var(--tv-radius-md) var(--tv-radius-md) 0;background:var(--tv-surface-2)}
.tvl-quote__name{font-weight:700;font-size:var(--tv-fs-16);color:var(--tv-primary-dark)}
.tvl-quote__text{margin:4px 0 0;padding:0;border:0}
.tvl-quote__text p{font-size:var(--tv-fs-16);line-height:1.6;color:var(--tv-ink)}
.tvl-quote__src{margin-top:4px;font-size:var(--tv-fs-13);color:var(--tv-text-3)}

.tvl-le{display:flex;flex-direction:column;gap:12px;list-style:none;margin:0;padding:0}
.tvl-le__item{display:flex;flex-direction:column;gap:4px}
.tvl-le__ten{font-size:var(--tv-fs-17);font-weight:700;color:var(--tv-primary-dark)}
.tvl-le__trich{font-size:var(--tv-fs-15);font-style:italic;color:var(--tv-text-2)}
.tvl-le__chu{font-size:var(--tv-fs-14);line-height:1.5;color:var(--tv-text-2)}

/* Lối sang ngày/tháng/năm bên cạnh: một thẻ liền, hai đầu là trước/sau, liên kết lên tháng, năm nằm ở giữa
   (điện thoại: hàng dưới). Vạch ngăn thay cho viền từng nút để không thành ba khối rời có khoảng trống lớn. */
.tvl-pager{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg);box-shadow:var(--tv-shadow-card);overflow:hidden}
.tvl-pager__a{display:flex;align-items:center;gap:12px;min-width:0;min-height:68px;padding:12px 16px;color:var(--tv-primary-dark);font-weight:700;font-size:var(--tv-fs-16);line-height:1.3;transition:background-color .15s}
.tvl-pager__a:hover{background:var(--tv-surface-2)}
.tvl-pager__a:hover .tvl-icon{background:var(--tv-primary);color:#fff}
.tvl-pager__a:focus-visible{outline-offset:-4px}
.tvl-pager__a .tvl-icon{box-sizing:border-box;width:36px;height:36px;padding:8px;border-radius:50%;background:var(--tv-plum-tint);color:var(--tv-primary);transition:background-color .15s,color .15s}
.tvl-pager__a > span{display:flex;flex-direction:column;gap:2px;min-width:0}
.tvl-pager__a--prev{grid-column:1}
.tvl-pager__a--next{grid-column:2;justify-content:flex-end;text-align:right;border-left:1px solid var(--tv-divider)}
.tvl-pager__k{font-size:var(--tv-fs-13);font-weight:600;color:var(--tv-text-3)}
.tvl-pager__up{grid-column:1 / -1;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;padding:6px 8px;border-top:1px solid var(--tv-divider)}
.tvl-pager__lnk{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:var(--tv-radius-pill);color:var(--tv-text-2);font-size:var(--tv-fs-15);font-weight:600;transition:background-color .15s,color .15s}
.tvl-pager__lnk:hover{background:var(--tv-plum-tint);color:var(--tv-primary-dark)}
.tvl-pager__lnk + .tvl-pager__lnk{position:relative}
.tvl-pager__lnk + .tvl-pager__lnk::before{content:"";position:absolute;top:50%;left:-4px;width:4px;height:4px;margin-top:-2px;border-radius:50%;background:var(--tv-border-strong)}

/* Trang tháng, trang năm */
.tvl-cols{display:grid;gap:clamp(18px,2vw,24px)}
.tvl-cols > *{min-width:0}
.tvl-list{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}
.tvl-list li{border-top:1px solid var(--tv-divider)}
.tvl-list li:first-child{border-top:0}
.tvl-list a{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:baseline;column-gap:12px;min-height:44px;padding:10px 0;color:var(--tv-ink);font-size:var(--tv-fs-16)}
.tvl-list a:hover .tvl-list__t{color:var(--tv-primary-dark)}
.tvl-list__d{grid-row:1 / span 2;font-weight:700;color:var(--tv-primary-dark)}
.tvl-list__t{font-weight:600}
.tvl-list__x{grid-column:2;font-size:var(--tv-fs-14);color:var(--tv-text-2)}
.tvl-list--le li .tvl-theo{margin:-6px 0 10px;padding-left:64px}
.tvl-table a{font-weight:600;color:var(--tv-primary-dark)}

.tvl-yr{display:flex;flex-direction:column;gap:14px}
.tvl-yr__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 24px}
.tvl-yr__grid,.tvl-yr__lich{display:grid;gap:14px}
.tvl-legend--mini{gap:6px 16px;font-size:var(--tv-fs-13)}
.tvl-legend__le{display:inline-block;width:16px;height:16px;border-radius:5px;background:var(--tv-gold-100);border:1px solid var(--tv-border-strong)}

/* Lịch nhỏ 12 tháng của trang năm */
.tvl-mini{display:flex;flex-direction:column;min-width:0;padding:12px 10px 10px;background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg);box-shadow:var(--tv-shadow-card)}
.tvl-mini__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 10px;margin:0 4px 6px;padding-bottom:6px;border-bottom:1px solid var(--tv-divider)}
.tvl-mini__title a{display:inline-flex;align-items:center;gap:4px;min-height:40px;font-family:var(--tv-font-heading);font-weight:700;font-size:19px;color:var(--tv-heading)}
.tvl-mini__title a:hover{color:var(--tv-primary-dark)}
.tvl-mini__title .tvl-icon{color:var(--tv-primary)}
.tvl-mini__am{font-size:var(--tv-fs-13);line-height:1.4;color:var(--tv-text-3)}
.tvl-mini__grid{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:2px}
.tvl-mini__grid th{height:26px;padding:0;font-size:12px;font-weight:700;color:var(--tv-text-3);text-align:center}
.tvl-mini__grid th abbr{text-decoration:none}
.tvl-mini__grid th.tvl-mini__cn{color:var(--tv-error)}
.tvl-mini__grid td{padding:0}
.tvl-mini__o{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;border-radius:8px;color:var(--tv-ink);text-align:center;transition:background-color .15s}
.tvl-mini__o:hover{background:var(--tv-plum-tint)}
.tvl-mini__o:focus-visible{outline-offset:-2px}
.tvl-mini__d{font-size:15px;font-weight:700;line-height:1.2}
.tvl-mini__a{font-size:12px;line-height:1.2;color:var(--tv-text-3);white-space:nowrap}
.tvl-mini__o--cn .tvl-mini__d{color:var(--tv-error)}
.tvl-mini__o--mot .tvl-mini__a{font-weight:700;color:var(--tv-primary-dark)}
.tvl-mini__o--le{background:var(--tv-gold-100)}
.tvl-mini__o--le .tvl-mini__a{color:var(--tv-text-2)}
.tvl-mini__o--le.tvl-mini__o--mot .tvl-mini__a{color:var(--tv-primary-dark)}

/* Thẻ tóm tắt từng tháng của trang năm */
.tvl-mcard{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px 18px 18px;background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-lg)}
.tvl-mcard__head{display:flex;flex-direction:column;gap:0}
.tvl-mcard__title a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-family:var(--tv-font-heading);font-weight:700;font-size:21px;color:var(--tv-heading)}
.tvl-mcard__title a:hover{color:var(--tv-primary-dark)}
.tvl-mcard__title .tvl-icon{color:var(--tv-primary)}
.tvl-mcard__am{font-size:var(--tv-fs-14);line-height:1.5;color:var(--tv-text-2)}
.tvl-mcard__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.tvl-mcard__facts > div{display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px 12px;border-radius:var(--tv-radius-md);background:var(--tv-surface-2)}
.tvl-mcard__facts dt{font-size:var(--tv-fs-13);font-weight:600;line-height:1.35;color:var(--tv-text-3)}
.tvl-mcard__facts dd{margin:0;font-size:var(--tv-fs-17);font-weight:700;color:var(--tv-primary-dark)}
.tvl-mcard__facts dd a{color:inherit}
.tvl-mcard__facts dd a:hover{text-decoration:underline}
.tvl-mcard__le{display:flex;flex-direction:column;list-style:none;margin:0;padding:4px 0 0;border-top:1px solid var(--tv-divider)}
.tvl-mcard__le a{display:flex;align-items:baseline;gap:10px;min-height:44px;padding:11px 0 0;font-size:var(--tv-fs-15);line-height:1.45;color:var(--tv-ink)}
.tvl-mcard__le a:hover{color:var(--tv-primary-dark)}
.tvl-mcard__d{flex-shrink:0;min-width:42px;font-weight:700;color:var(--tv-primary-dark)}

/* Màn dưới 400px: mỗi nửa thẻ lối đi chỉ còn ~145px, vòng tròn mũi tên cỡ đầy đủ sẽ đè lên ngày. */
@media (max-width:399.98px){
  .tvl-pager__a{gap:8px;padding:10px 10px;font-size:var(--tv-fs-15)}
  .tvl-pager__a .tvl-icon{width:28px;height:28px;padding:5px}
}

@media (min-width:390px){
  .tvl-cell{min-height:56px}
}

@media (min-width:600px){
  .tvl-yr__lich{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tvl-facts__row{grid-template-columns:130px 1fr;align-items:baseline;gap:12px}
  .tvl-theo{margin-top:-6px;padding-left:142px}
  .tvl-sec .tvl-theo{padding-left:0}
  .tvl-sec .tvl-list--le li .tvl-theo{padding-left:64px}
  .tvl-table__t{display:inline}
  .tvl-table th,.tvl-table td{padding:10px 8px}
  .tvl-holidays__list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (min-width:768px){
  .tvl-grid{border-spacing:6px}
  .tvl-cell{min-height:86px;align-items:flex-start;padding:8px 10px;text-align:left}
  .tvl-cell__d{font-size:20px}
  .tvl-cell__a{font-size:var(--tv-fs-13)}
  .tvl-cell__mk{position:absolute;top:10px;right:10px;margin:0}
  .tvl-cell__le{display:-webkit-box;margin-top:2px;overflow:hidden;font-size:12px;font-weight:600;line-height:1.3;color:var(--tv-primary-dark);-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:left}
  .tvl-cell--hom-nay .tvl-cell__le{color:var(--tv-gold-100)}
  .tvl-today__side .tvl-convert--gon{grid-template-columns:1fr}
}

@media (min-width:768px){
  .tvl-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tvl-convert--day-du{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tvl-yr__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tvl-pager{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .tvl-pager__up{grid-column:2;grid-row:1;padding:0 12px;border-top:0;border-left:1px solid var(--tv-divider)}
  .tvl-pager__a--next{grid-column:3}
  .tvl-pager__a{padding:12px 22px}
  .tvl-quotes{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (min-width:1024px){
  .tvl-dayhead{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
  .tvl-yr__grid,.tvl-yr__lich{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tvl-today{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-areas:"main side" "month month"}
  .tvl-today__main{grid-area:main}
  .tvl-today__side{grid-area:side}
  .tvl-today__month{grid-area:month}
  .tvl-cell{min-height:96px}
}

@media (prefers-reduced-motion:reduce){
  .tvl-cell,.tvl-chip,.tvl-navbtn,.tvl-pager__a,.tvl-pager__a .tvl-icon,.tvl-pager__lnk,.tvl-mini__o{transition:none}
}
