/* ============================================================
   CÁC KHỐI CỦA TRANG BẢN TIN
   Ô tìm kiếm · bộ lọc · thẻ sự kiện · bảng mô tả · lịch tháng.
   Trang nào có danh sách sự kiện thì nạp thêm file này.
   ============================================================ */

/* --- Ô tìm kiếm ---------------------------------------------------- */
.search {
  background: var(--nen-trang); border: 1px solid var(--vien);
  border-radius: var(--bo-khoi); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.search-title { font-family: var(--font-tieu-de); font-size: 28px; text-align: center; }
.search-box { position: relative; width: 100%; max-width: 760px; margin: 0 auto; }
.search-box input {
  width: 100%; min-height: 54px; padding: 0 58px 0 24px;
  border: 1px solid var(--vien-o-nhap); border-radius: var(--bo-tron);
  font: inherit; font-size: 16px; background: #fff; color: var(--chu);
  box-shadow: 0 2px 8px rgba(60, 64, 30, .12);
}
.search-box button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--la);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* --- Bộ lọc -------------------------------------------------------- */
.filter {
  align-self: center; max-width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px; padding: 6px 8px;
  background: var(--nen-trang); border: 1px solid #DCE6C6; border-radius: var(--bo-tron);
  font-size: 13px; box-shadow: var(--bong-the);
}
.filter-label {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px 0 8px; font-weight: 600; color: #3E4A30;
  border-right: 1px solid #E5EBD6;
}
.filter select {
  min-height: 40px; padding: 0 8px; border: 0; border-radius: var(--bo-tron);
  background: transparent; font: inherit; font-size: 13px; color: #3E453C; cursor: pointer;
}
.filter select.on { background: var(--la-nhat); color: var(--la-dam); font-weight: 600; }
.filter-clear {
  min-height: 40px; padding: 0 12px; border: 0; border-left: 1px solid #E5EBD6;
  background: transparent; color: var(--la); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* --- Thanh sắp xếp & chuyển kiểu xem -------------------------------- */
.bar {
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-end;
  gap: 16px; font-size: 14px; color: var(--chu-nhat);
}
.bar > .toggle { flex: 0 0 auto; }
@media (max-width: 620px) { .bar { flex-wrap: wrap; } }
.bar strong { color: var(--chu); }
.toggle { display: flex; border: 1px solid var(--vien-vang); border-radius: var(--bo-nut); overflow: hidden; }
.toggle button {
  min-height: var(--cao-cham); padding: 0 16px; border: 0;
  font: inherit; cursor: pointer; background: #fff; color: var(--chu);
}
.toggle button[aria-pressed=true] { background: var(--la); color: #fff; font-weight: 600; }

/* --- Thẻ sự kiện ---------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card {
  position: relative;
  background: var(--nen-trang); border: 1px solid var(--vien); border-radius: var(--bo-the);
  padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--bong-the);
}
.card:hover, .card:focus-within { z-index: 20; }     /* để bảng mô tả nổi lên trên */
.card-head { display: flex; gap: 12px; align-items: flex-start; }
.thumb {
  flex: none; width: 72px; height: 72px; object-fit: cover; object-position: center 25%;
  border-radius: var(--bo-nut); border: 1px solid #EFE6C6; background: #fff;
}
.card-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.title { font-family: var(--font-tieu-de); font-size: 17px; line-height: 1.3; text-transform: uppercase; }
.org {
  align-self: flex-start; font-size: 12px; color: var(--la); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--vien-la);
}
span.org { border-bottom: 0; }
.facts { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; line-height: 1.45; }
.card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border-top: 1px solid var(--vien-nhat); padding-top: 12px;
}
.cta {
  min-height: var(--cao-cham); padding: 0 16px; display: flex; align-items: center;
  border-radius: var(--bo-nut); background: var(--la); color: #fff !important;
  text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nolink { font-size: 13px; color: #6B5A2A; }

/* --- Lịch linh hoạt & trạng thái trống ------------------------------ */
.flex-block { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.flex-block h2 { margin: 0; font-family: var(--font-tieu-de); font-weight: 400; font-size: 24px; }
.flex-block p  { margin: 0; font-size: 14px; color: var(--chu-nhat); }
.empty {
  background: #fff; border: 1px dashed #C9DDA8; border-radius: var(--bo-the);
  padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-title { font-family: var(--font-tieu-de); font-size: 22px; }
.empty button {
  min-height: var(--cao-cham); padding: 0 18px; border: 1px solid var(--la);
  border-radius: var(--bo-nut); background: transparent; color: var(--la);
  font: inherit; font-weight: 600; cursor: pointer;
}

/* --- Bảng mô tả hiện khi rê chuột (chỉ ở DANH SÁCH) ----------------- */
.tipwrap { position: relative; display: block; outline: none; cursor: help; padding-bottom: 6px; margin-bottom: -6px; }
.tipwrap > .title { display: block; }
.tip {
  display: none; position: absolute; left: 0; top: 100%; z-index: 30;
  width: min(380px, 80vw); max-height: 320px; overflow: auto; padding: 14px 16px;
  background: var(--la-dam); color: var(--chu-nghich);
  font-family: var(--font-than); font-size: 13px; line-height: 1.6;
  border-radius: var(--bo-nut); box-shadow: var(--bong-noi);
  white-space: pre-line; text-transform: none; letter-spacing: 0;
}
.tipwrap:hover .tip, .tipwrap:focus .tip, .tipwrap:focus-within .tip { display: block; }
/* app.js gắn .tip-r khi bảng sắp tràn ra ngoài màn hình */
.tip-r { left: auto !important; right: 0; }

/* --- Lịch tháng ----------------------------------------------------- */
.cal {
  background: var(--nen-trang); border: 1px solid var(--vien); border-radius: var(--bo-the);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-head button {
  width: var(--cao-cham); height: var(--cao-cham);
  border: 1px solid var(--vien-vang); border-radius: 50%;
  background: #FFFCF2; color: var(--chu); font: inherit; font-size: 20px; cursor: pointer;
}
.cal-title { font-family: var(--font-tieu-de); font-size: 24px; }
.cal-grid-wrap { overflow: visible; }
.cal-grid { min-width: 760px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wd { padding: 6px 8px; font-size: 13px; font-weight: 600; color: var(--chu-nhat); text-align: center; }
.agenda { display: none; flex-direction: column; gap: 10px; }
.ag { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--bo-nut); }
.ag-label { font-size: 13px; font-weight: 600; color: var(--chu-nhat); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--chu-nhat); }
.legend > span { display: flex; align-items: center; gap: 6px; }

/* --- Thẻ đầy đủ hiện khi rê chuột trong LỊCH ------------------------ */
.cal-tip { padding-bottom: 0; margin-bottom: 0; }
.calpop {
  display: none; position: absolute; left: 0; top: 100%; z-index: 40;
  width: 340px; max-width: 80vw; padding-top: 6px; text-align: left; white-space: normal;
}
.calpop-r { left: auto; right: 0; }
.calpop-full { width: 100%; max-width: none; }
.cal-tip:hover > .calpop, .cal-tip:focus > .calpop, .cal-tip:focus-within > .calpop { display: block; }
.popcard { box-shadow: 0 12px 32px rgba(40, 50, 20, .22) !important; }
/* mô tả nằm dưới cùng thẻ, in nghiêng, mờ hơn */
.popnote {
  margin: 2px 0 0; font-size: 13px; line-height: 1.55; font-style: italic;
  color: var(--chu-rat-mo); white-space: pre-line; max-height: 260px; overflow: auto;
}

/* --- Điện thoại ----------------------------------------------------- */
@media (max-width: 760px) {
  .search { padding: 24px 16px; }
  .search-title { font-size: 22px; }
  .filter { border-radius: var(--bo-khoi); justify-content: flex-start; }
  .cards { gap: 12px; }
  .cal-grid-wrap { display: none; }
  .agenda { display: flex; }
}
@media (max-width: 620px) {
  .tip { left: 0 !important; right: 0 !important; width: auto !important; max-width: none !important; }
}

/* --- Chủ đề nổi bật (thay dòng "Sắp xếp theo") ------------------------ */
.hot { flex: 1 1 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.hot-title { flex: 0 0 100%; font-weight: 700; color: var(--chu); font-size: 14px; }
.hot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-chip {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--vien-vang); border-radius: 999px;
  background: #fff; color: var(--chu); font: inherit; font-size: 13.5px; cursor: pointer;
}
.hot-chip .hot-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #EEF4DF; color: var(--la); font-weight: 700; font-size: 12.5px; text-align: center; }
.hot-chip[aria-pressed=true] { background: var(--la); border-color: var(--la); color: #fff; font-weight: 600; }
.hot-chip[aria-pressed=true] .hot-n { background: rgba(255,255,255,.22); color: #fff; }
.hot-chip:focus-visible { outline: 2px solid var(--la); outline-offset: 2px; }

/* Danh sách chia theo ngày */
.day-group + .day-group { margin-top: 28px; }
.day-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: Nunito, sans-serif; font-size: 17px; font-weight: 800; color: var(--cam-tieu-de); }
.day-head::after { content: ""; flex: 1; height: 1px; background: #D9E3C2; order: 3; }
.day-label { order: 1; }
.day-note { order: 2; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--nen-vang-nhat); color: var(--nau-nhac); }
.day-count { order: 4; font-family: 'Be Vietnam Pro', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--chu-mo); white-space: nowrap; }
@media (max-width: 575px) { .day-head { font-size: 15.5px; } .day-group + .day-group { margin-top: 22px; } }

/* Dòng ghi chú nổi bật trên thẻ (data/overrides.json → "note") */
.card-note { margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; background: var(--nen-vang-nhat); color: var(--nau-nhac); font-size: 13px; font-weight: 600; line-height: 1.4; }

/* Lịch nhiều buổi trên thẻ (trường schedule) */
.sched { display: flex; flex-direction: column; gap: 3px; }
.sched-row b { font-weight: 600; }
/* Hạn đăng ký: một dòng riêng, chữ nâu đậm cho nổi; đã quá hạn thì chữ nhạt */
.deadline { font-weight: 600; color: var(--nau-nhac); }
.deadline.is-past { font-weight: 400; color: var(--chu-mo); }


/* --- LỊCH sinh động: bảng màu pastel + hoa lá ------------------------ */
:root { --dao:#F4BAA3; --dao-nhat:#FDEDE6; --kem:#F4F0E2; --troi:#A6C8E2; --troi-nhat:#EAF3FA; --tim:#C5B3D3; --tim-nhat:#F4EFF8; --hong:#FFE2E2; }
.cal { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--dao-nhat) 0, #FFFFFF 150px); border-color: #F3D9CC; }
.cal-head { position: relative; z-index: 1; }
.cal-head button { background: #fff; border-color: var(--dao); color: #B5573A; }
.cal-head button:hover { background: var(--dao); color: #fff; }
.cal-title { display: inline-flex; align-items: center; gap: 12px; color: #4A2A20; }
.cal-title::before, .cal-title::after { content: ""; width: 30px; height: 30px; background: no-repeat center/contain; flex: none; }
.cal-title::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23FFF6A9'/%3E%3C/svg%3E"); transform: rotate(-12deg); }
.cal-title::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23FFF6A9'/%3E%3C/svg%3E"); transform: rotate(14deg); }
.wd { background: var(--troi-nhat); border-radius: 999px; color: #2F5F8A; }
.wd:nth-child(n+6) { background: var(--dao-nhat); color: #B5573A; }
.cell { position: relative; isolation: isolate; }
.cell > * { position: relative; z-index: 1; }
.cell:not(.is-out)::after { content: ""; position: absolute; z-index: 0; right: 4px; bottom: 4px; width: 26px; height: 26px; background: no-repeat center/contain; opacity: .55; pointer-events: none; }
.cell:nth-child(7n+8)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23FFF6A9'/%3E%3C/svg%3E"); }
.cell:nth-child(7n+9)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 34 C 10 14%2C 22 6%2C 36 6 C 34 22%2C 24 32%2C 6 34 Z' fill='%23B5CF86'/%3E%3Cpath d='M6 34 C 15 24%2C 24 16%2C 33 9' fill='none' stroke='%2371951E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cell:nth-child(7n+10)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23FFF6A9'/%3E%3C/svg%3E"); }
.cell:nth-child(7n+11)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23FFE2E2'/%3E%3C/svg%3E"); }
.cell:nth-child(7n+12)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 34 C 10 14%2C 22 6%2C 36 6 C 34 22%2C 24 32%2C 6 34 Z' fill='%23B5CF86'/%3E%3Cpath d='M6 34 C 15 24%2C 24 16%2C 33 9' fill='none' stroke='%2371951E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cell:nth-child(7n+13)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23DE7272'/%3E%3C/svg%3E"); }
.cell:nth-child(7n+14)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23FFF6A9'/%3E%3C/svg%3E"); }
.cell.wd5:not(.is-out) { background: var(--troi-nhat) !important; }
.cell.wd6:not(.is-out) { background: var(--dao-nhat) !important; }
.cell.is-out { background: var(--kem) !important; border-color: #ECE6D2 !important; }
.cell.is-today { background: #FFE9DE !important; border: 2px solid #E8896A !important; box-shadow: 0 4px 14px rgba(232,137,106,.28); }
.cell.is-today::after { opacity: 1; width: 32px; height: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23DE7272'/%3E%3C/svg%3E"); }
.cell.is-past:not(.is-today)::after { opacity: .3; }
.ag { position: relative; overflow: hidden; }
.ag::after { content: ""; position: absolute; right: 10px; top: 8px; width: 24px; height: 24px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F4BAA3' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23FFF6A9'/%3E%3C/svg%3E"); opacity: .8; pointer-events: none; }
.ag:nth-child(3n+2)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23A6C8E2' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23FFF6A9'/%3E%3C/svg%3E"); }
.ag:nth-child(3n)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23C5B3D3' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23FFE2E2'/%3E%3C/svg%3E"); }
.ag.is-today { background: #FFE9DE !important; border-color: #E8896A !important; }
.ag.is-today::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23FFCA88' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23DE7272'/%3E%3C/svg%3E"); width: 30px; height: 30px; opacity: 1; }
.legend { padding-top: 4px; border-top: 1px dashed #F0D3C6; }

/* --- Giảm bớt: chỉ giữ điểm nhấn nhẹ ---------------------------------- */
.cal { background: #fff; border-color: var(--vien); }
.wd, .wd:nth-child(n+6) { background: none; color: var(--chu-nhat); border-radius: 0; }
.cell.wd5:not(.is-out), .cell.wd6:not(.is-out) { background: #fff !important; }
.cell.is-out { background: #FAF7EC !important; border-color: var(--vien-nhat) !important; }
.cell:not(.is-out)::after { display: none; }
.cell.is-today::after { display: block; opacity: 1; }
.cell.is-today { background: #FFF1EA !important; border: 2px solid #E8896A !important; box-shadow: none; }
.cal-title::before, .cal-title::after { width: 22px; height: 22px; }
.cal-head button { border-color: var(--vien-vang); color: var(--chu); }
.cal-head button:hover { background: var(--la-nhat); color: var(--chu); }
.ag::after { display: none; }
.ag.is-today::after { display: block; }
.ag.is-today { background: #FFF1EA !important; }
.legend { border-top: 0; padding-top: 0; }


/* --- Trả lại đúng theme trang: kem · vàng nắng · xanh lá -------------- */
.cal { background: linear-gradient(180deg, var(--nen-kem) 0, #FFFFFF 130px); border-color: var(--vien); }
.cal-title { color: var(--chu); }
.cal-title::before, .cal-title::after { width: 54px; height: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 40'%3E%3Cpath d='M4 30 C 30 26%2C 52 18%2C 86 6' fill='none' stroke='%2371951E' stroke-width='2.2'/%3E%3Cellipse cx='30' cy='20' rx='11' ry='4.4' fill='%238DB255' transform='rotate%28-30 30 20%29'/%3E%3Cellipse cx='52' cy='25' rx='11' ry='4.4' fill='%235D9253' transform='rotate%2815 52 25%29'/%3E%3Ccircle cx='82' cy='8' r='6' fill='%23F6C445'/%3E%3Ccircle cx='82' cy='8' r='2.6' fill='%23E39B1B'/%3E%3C/svg%3E"); }
.cal-title::before { transform: scaleX(-1) rotate(8deg); }
.cal-title::after { transform: none; }
.cal-head button { background: #FFFCF2; border-color: var(--vien-vang); color: var(--chu); }
.cal-head button:hover { background: var(--la-nhat); }
.cell.is-today { background: var(--nen-hom-nay) !important; border: 2px solid var(--nang-dam) !important; }
.cell.is-today::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23E39B1B'/%3E%3C/svg%3E"); }
.ag.is-today { background: var(--nen-hom-nay) !important; border-color: var(--nang-dam) !important; }
.ag.is-today::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%280 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%2872 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%28144 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%28216 20 20%29'/%3E%3Cellipse cx='20' cy='9' rx='5.2' ry='8' fill='%23F6C445' transform='rotate%28288 20 20%29'/%3E%3Ccircle cx='20' cy='20' r='4.6' fill='%23E39B1B'/%3E%3C/svg%3E"); }
.cell.is-today::after { top: 4px; bottom: auto; width: 24px; height: 24px; }
/* thẻ thông tin khi rê chuột phải nổi lên trên các ô khác */
.cell { isolation: auto; }
.cell > * { position: static; z-index: auto; }
.cell .cal-tip, .cell .tipwrap { position: relative; }
.cell:hover, .cell:focus-within { z-index: 30; }
.cell.is-today::after { z-index: 0; }

/* --- Lịch: đồi cỏ + hoa vàng ở đáy khung (giữ lại), còn lại như bản trước --- */
.cal { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 170' preserveAspectRatio='none'%3E%0A%3Cpath d='M0 70 C 100 30%2C 200 40%2C 300 62 S 500 100%2C 600 70 L600 170 L0 170Z' fill='%23DCEBC3'/%3E%0A%3Cpath d='M0 110 C 120 80%2C 240 95%2C 330 110 S 520 140%2C 600 110 L600 170 L0 170Z' fill='%23C4DD9A'/%3E%0A%3Cellipse cx='60' cy='88' rx='4' ry='6' fill='%23F6C445' transform='rotate%280 60 95%29'/%3E%3Cellipse cx='60' cy='88' rx='4' ry='6' fill='%23F6C445' transform='rotate%2872 60 95%29'/%3E%3Cellipse cx='60' cy='88' rx='4' ry='6' fill='%23F6C445' transform='rotate%28144 60 95%29'/%3E%3Cellipse cx='60' cy='88' rx='4' ry='6' fill='%23F6C445' transform='rotate%28216 60 95%29'/%3E%3Cellipse cx='60' cy='88' rx='4' ry='6' fill='%23F6C445' transform='rotate%28288 60 95%29'/%3E%3Ccircle cx='60' cy='95' r='3' fill='%23E39B1B'/%3E%3Cellipse cx='170' cy='121' rx='4' ry='6' fill='%23fff' transform='rotate%280 170 128%29'/%3E%3Cellipse cx='170' cy='121' rx='4' ry='6' fill='%23fff' transform='rotate%2872 170 128%29'/%3E%3Cellipse cx='170' cy='121' rx='4' ry='6' fill='%23fff' transform='rotate%28144 170 128%29'/%3E%3Cellipse cx='170' cy='121' rx='4' ry='6' fill='%23fff' transform='rotate%28216 170 128%29'/%3E%3Cellipse cx='170' cy='121' rx='4' ry='6' fill='%23fff' transform='rotate%28288 170 128%29'/%3E%3Ccircle cx='170' cy='128' r='3' fill='%23E39B1B'/%3E%3Cellipse cx='290' cy='93' rx='4' ry='6' fill='%23F6C445' transform='rotate%280 290 100%29'/%3E%3Cellipse cx='290' cy='93' rx='4' ry='6' fill='%23F6C445' transform='rotate%2872 290 100%29'/%3E%3Cellipse cx='290' cy='93' rx='4' ry='6' fill='%23F6C445' transform='rotate%28144 290 100%29'/%3E%3Cellipse cx='290' cy='93' rx='4' ry='6' fill='%23F6C445' transform='rotate%28216 290 100%29'/%3E%3Cellipse cx='290' cy='93' rx='4' ry='6' fill='%23F6C445' transform='rotate%28288 290 100%29'/%3E%3Ccircle cx='290' cy='100' r='3' fill='%23E39B1B'/%3E%3Cellipse cx='410' cy='125' rx='4' ry='6' fill='%23fff' transform='rotate%280 410 132%29'/%3E%3Cellipse cx='410' cy='125' rx='4' ry='6' fill='%23fff' transform='rotate%2872 410 132%29'/%3E%3Cellipse cx='410' cy='125' rx='4' ry='6' fill='%23fff' transform='rotate%28144 410 132%29'/%3E%3Cellipse cx='410' cy='125' rx='4' ry='6' fill='%23fff' transform='rotate%28216 410 132%29'/%3E%3Cellipse cx='410' cy='125' rx='4' ry='6' fill='%23fff' transform='rotate%28288 410 132%29'/%3E%3Ccircle cx='410' cy='132' r='3' fill='%23E39B1B'/%3E%3Cellipse cx='520' cy='101' rx='4' ry='6' fill='%23F6C445' transform='rotate%280 520 108%29'/%3E%3Cellipse cx='520' cy='101' rx='4' ry='6' fill='%23F6C445' transform='rotate%2872 520 108%29'/%3E%3Cellipse cx='520' cy='101' rx='4' ry='6' fill='%23F6C445' transform='rotate%28144 520 108%29'/%3E%3Cellipse cx='520' cy='101' rx='4' ry='6' fill='%23F6C445' transform='rotate%28216 520 108%29'/%3E%3Cellipse cx='520' cy='101' rx='4' ry='6' fill='%23F6C445' transform='rotate%28288 520 108%29'/%3E%3Ccircle cx='520' cy='108' r='3' fill='%23E39B1B'/%3E%3Cellipse cx='575' cy='135' rx='4' ry='6' fill='%23fff' transform='rotate%280 575 142%29'/%3E%3Cellipse cx='575' cy='135' rx='4' ry='6' fill='%23fff' transform='rotate%2872 575 142%29'/%3E%3Cellipse cx='575' cy='135' rx='4' ry='6' fill='%23fff' transform='rotate%28144 575 142%29'/%3E%3Cellipse cx='575' cy='135' rx='4' ry='6' fill='%23fff' transform='rotate%28216 575 142%29'/%3E%3Cellipse cx='575' cy='135' rx='4' ry='6' fill='%23fff' transform='rotate%28288 575 142%29'/%3E%3Ccircle cx='575' cy='142' r='3' fill='%23E39B1B'/%3E%0A%3Cellipse cx='100' cy='112' rx='13' ry='5' fill='%238DB255' transform='rotate%28-20 100 112%29'/%3E%3Cellipse cx='230' cy='138' rx='13' ry='5' fill='%238DB255' transform='rotate%2815 230 138%29'/%3E%3Cellipse cx='350' cy='118' rx='13' ry='5' fill='%238DB255' transform='rotate%28-15 350 118%29'/%3E%3Cellipse cx='470' cy='140' rx='13' ry='5' fill='%238DB255' transform='rotate%2820 470 140%29'/%3E%0A%3C/svg%3E") left bottom/600px 170px repeat-x, linear-gradient(180deg, var(--nen-kem) 0, #FFFFFF 130px) !important; padding-bottom: 150px; }
.legend { position: relative; z-index: 1; }
@media (max-width: 560px) { .cal-title::before, .cal-title::after { display: none; } .cal-title { font-size: 22px; } .cal { padding-bottom: 120px; } }

/* --- Bộ lọc thời gian: bảng chọn ngày -------------------------------- */
.dp { position: relative; display: inline-flex; }
.dp-btn {
  min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--bo-tron);
  background: transparent; font: inherit; font-size: 13px; color: #3E453C; cursor: pointer; white-space: nowrap;
}
.dp-btn.on { background: var(--la-nhat); color: var(--la-dam); font-weight: 600; }
.dp-pop {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 300px; max-width: 90vw;
  padding: 12px; text-align: left;
  background: var(--nen-trang); border: 1px solid var(--vien); border-radius: var(--bo-the); box-shadow: var(--bong-noi);
}
.dp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dp-q {
  min-height: 30px; padding: 0 10px; border: 1px solid var(--vien-vang); border-radius: 999px;
  background: #fff; font: inherit; font-size: 12.5px; color: var(--chu); cursor: pointer;
}
.dp-q:hover { background: var(--la-nhat); }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dp-head button {
  width: 30px; height: 30px; border: 1px solid var(--vien-vang); border-radius: 50%;
  background: #FFFCF2; font: inherit; font-size: 16px; color: var(--chu); cursor: pointer;
}
.dp-title { font-weight: 700; font-size: 14px; color: var(--chu); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--chu-mo); padding: 4px 0; }
.dp-d {
  height: 34px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 13px; color: var(--chu); cursor: pointer;
}
.dp-d:hover { background: var(--la-rat-nhat); }
.dp-d.is-out { color: #B6B09A; }
.dp-d.is-today { box-shadow: inset 0 0 0 1.5px var(--nang-dam); font-weight: 700; }
.dp-d.is-mid { background: var(--la-nhat); border-radius: 0; }
.dp-d.is-edge { background: var(--la); color: #fff; font-weight: 700; }
.dp-d.is-from.is-mid, .dp-d.is-from { border-radius: 8px 0 0 8px; }
.dp-d.is-to { border-radius: 0 8px 8px 0; }
.dp-d.is-from.is-to { border-radius: 8px; }
.dp-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--chu-mo); }
.dp-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.dp-foot button { min-height: 34px; padding: 0 12px; border: 1px solid var(--vien-vang); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; color: var(--chu); cursor: pointer; }
.dp-foot .dp-ok { background: var(--la); border-color: var(--la); color: #fff; font-weight: 600; }
@media (max-width: 560px) {
  .dp-pop {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(340px, calc(100vw - 24px)); max-height: 86vh; overflow: auto; z-index: 80;
    box-shadow: 0 0 0 100vmax rgba(35, 48, 28, .35), var(--bong-noi);
  }
}
.dp-d.is-far { color: #C2BCA6; }
.cal-head.is-locked { justify-content: center; }
.hot-chip.is-zero { opacity: .45; cursor: default; }

/* Nhãn "✦ Mới" — sự kiện lên trang chưa tới 24 giờ */
.eyebrow-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.new-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #F6C445; color: #4A3A00; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: 0.02em; white-space: nowrap; }

/* Sticker chủ đề (data/stickers.json): dán nghiêng ở góc trên phải thẻ. Mặc định đỏ;
   bộ màu riêng theo "theme" → class .t-<theme> (vd .t-chung-song cho Tuần lễ chung sống) */
.stickers { position: absolute; top: -7px; right: 12px; display: flex; flex-direction: row-reverse; gap: 6px; z-index: 2; pointer-events: none; }
.sticker {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 78px; padding: 4px 10px 5px; border: 3px solid #fff; border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #E0483C 0, #C8372D 55%, #A92A22 100%);
  color: #FFF8E1; font-family: var(--font-tieu-de), sans-serif; text-align: center; line-height: 1.12;
  box-shadow: 0 3px 8px rgba(80, 30, 10, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: rotate(5deg); text-decoration: none;
}
a.sticker { pointer-events: auto; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
a.sticker:hover { color: #FFF8E1; transform: rotate(2deg) scale(1.06); box-shadow: 0 6px 14px rgba(60, 40, 10, 0.3); }
a.sticker:focus-visible { outline: 2px solid var(--la); outline-offset: 3px; }
.sticker i { font-style: normal; color: #FFD54A; font-size: 11px; }
.sticker b { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.stickers .sticker:nth-child(2) { transform: rotate(-4deg); }
.card.has-sticker .card-title > :first-child { margin-right: 150px; min-height: 34px; }
@media (max-width: 575px) { .stickers { top: -7px; right: 8px; } .sticker { min-width: 70px; padding: 4px 8px 5px; } .sticker b { font-size: 9.5px; } .card.has-sticker .card-title > :first-child { margin-right: 128px; min-height: 30px; } }
.popcard .stickers { position: static; align-self: flex-end; margin: -6px -4px -4px 0; }
.popcard.has-sticker .card-title > :first-child { margin-right: 0; min-height: 0; }

/* Tuần lễ chung sống: nhiều màu như khối chữ "CHUNG SỐNG" trên bìa (25/11) */
.sticker.t-chung-song {
  background:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,.28) 0, rgba(255,255,255,0) 38%),
    linear-gradient(118deg, #F08A24 0%, #E9467A 26%, #9B4DC0 50%, #1FA3A0 76%, #F2B623 100%);
  border-color: #FFF6E8; color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(60, 20, 40, .45);
  box-shadow: 0 3px 8px rgba(60, 30, 40, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
a.sticker.t-chung-song:hover { color: #FFFFFF; }
.sticker.t-chung-song i { color: #FFE27A; font-size: 12px; }

/* Chip chủ đề đặc biệt đứng đầu hàng "Chủ đề được quan tâm" */
.hot-chip.is-special { border-color: #E7A79F; background: #FDECE8; color: #8E2A1F; font-weight: 600; }
.hot-chip.is-special i { font-style: normal; color: #C8372D; }
.hot-chip.is-special .hot-n { background: #F8D3CC; color: #8E2A1F; }
.hot-chip.is-special[aria-pressed=true] { background: #C8372D; border-color: #C8372D; color: #fff; }
.hot-chip.is-special[aria-pressed=true] i { color: #FFD54A; }
.hot-chip.is-special[aria-pressed=true] .hot-n { background: rgba(255,255,255,.22); color: #fff; }
/* chip là link sang trang riêng của chủ đề */
a.hot-chip.is-link { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.hot-chip .hot-go { margin-left: 6px; font-weight: 700; transition: transform .15s ease; }
a.hot-chip.is-link:hover .hot-go { transform: translateX(3px); }
.hot-chip.t-chung-song { border-color: #F2B79A; background: #FDEDE3; color: #A8340F; }
.hot-chip.t-chung-song i { color: #EF7F1A; }
.hot-chip.t-chung-song .hot-n { background: #F9D7C6; color: #A8340F; }
a.hot-chip.t-chung-song:hover { background: linear-gradient(118deg, #F08A24 0%, #E9467A 26%, #9B4DC0 50%, #1FA3A0 76%, #F2B623 100%); border-color: transparent; color: #FFFFFF; text-shadow: 0 1px 2px rgba(60,20,40,.4); }
a.hot-chip.t-chung-song:hover i { color: #F6C445; }
a.hot-chip.t-chung-song:hover .hot-n { background: rgba(255,255,255,.22); color: #FFF6E8; }

/* chip "✦ Sự kiện mới" (26/11): vàng nắng, có chú thích khi rê chuột / chạm / tab tới */
.hot-chip.is-new { position: relative; border-color: #E9C46A; background: #FFF3C4; color: #5A4200; font-weight: 600; }
.hot-chip.is-new i { font-style: normal; color: #D99A00; }
.hot-chip.is-new .hot-n { background: #F6DC86; color: #5A4200; }
.hot-chip.is-new:hover { background: #FDEBA6; }
.hot-chip.is-new[aria-pressed=true] { background: #F2B623; border-color: #E0A100; color: #3B2314; }
.hot-chip.is-new[aria-pressed=true] i { color: #7A4B00; }
.hot-chip.is-new[aria-pressed=true] .hot-n { background: rgba(255,255,255,.45); color: #3B2314; }
.hot-chip .hot-tip {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30;
  width: max-content; max-width: min(280px, 80vw); padding: 9px 13px; border-radius: 10px;
  background: #3A3730; color: #FFFDF7; box-shadow: 0 6px 18px rgba(40, 30, 10, .22);
  font-size: 13.5px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; text-shadow: none;
  opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}
.hot-chip:hover .hot-tip, .hot-chip:focus-visible .hot-tip { opacity: 1; visibility: visible; transform: none; }

/* LỊCH dạng danh sách theo ngày (điện thoại): thẻ chi tiết mở ngay trong khung ngày,
   không bị khung (.ag có overflow:hidden) cắt mất phần dưới */
.ag .calpop { position: static; width: 100%; max-width: none; padding-top: 8px; }

/* mũi tên mở tab mới (SVG) trong thẻ sự kiện */
.card svg.ext { display: inline-block; vertical-align: -1px; margin-left: 3px; }
