/* ============================================================================
   CẮM HOA CÚNG PHẬT — kiểu trình bày MỘT NGUỒN cho mục Cắm Hoa (22/9/2026).
   Dùng chung cho: camhoa/index.html (trang mục) và camhoa/*.html (các bài).

   Chép khuôn css/nauanchay.css (Bếp Chay) — GIỮ NGUYÊN tên lớp .bc-* để
   js/camhoa.js dùng lại cùng bộ máy (video bấm mới nạp, lưới thẻ, bộ lọc),
   đổi bảng màu sang màu sen: tím sen · lá sen · nhụy vàng · giấy dó; thêm
   các lớp .ch-* riêng của mục (hình vẽ SVG từng bước, bảng hoa nên/không,
   thẻ dịp lễ, chú thích nguồn ảnh).

   Đi cặp với css/hq-baiviet.css (bố cục hai cột + thanh bên) — KHÔNG đè
   header .hqh / footer .hqf.
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bc-dat:   #8b3a62;   /* tím sen (thay đất nung) */
  --bc-la:    #3d6b4f;   /* lá sen */
  --bc-la-d:  #274a35;
  --bc-giay:  #fbf6ea;   /* giấy dó */
  --bc-kem:   #f3ead6;
  --bc-vang:  #C9963B;   /* nhụy sen — vàng của trang nhà */
  --bc-muc:   #1e1a12;
  --bc-mo:    #6b6250;
  --bc-vien:  rgba(58,44,20,0.18);
  --ch-hong:  #e9c3d3;   /* cánh sen nhạt — nền nhẹ */
  --ch-xanh:  #e4efe6;   /* lá non — nền nhẹ */
}

/* ── nhãn nhỏ chữ hoa (chuyên mục, mốc) ── */
.bc-nhan { font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bc-la-d) !important; }

/* ── dải thông số (dịp · hoa chính · dụng cụ · độ khó) ── */
.bc-thongso { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; padding: 0; list-style: none; }
.bc-thongso li { flex: 1 1 140px; background: var(--bc-kem); border-top: 3px solid var(--bc-dat);
  padding: 10px 12px; min-width: 0; }
.bc-thongso b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem;
  color: var(--bc-muc); line-height: 1.25; margin-top: 4px; }
.bc-thongso span { font-family: 'Montserrat', sans-serif; font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bc-mo) !important; }

/* ── khung video (dựng nhẹ: chỉ nạp YouTube khi bấm) ── */
.bc-video { margin: 26px 0; }
.bc-video .bc-nhan { margin-bottom: 8px; display: block; }
.bc-vd { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #111 center/cover no-repeat;
  border: 1px solid var(--bc-vien); cursor: pointer; overflow: hidden; }
.bc-vd img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-vd iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bc-vd .bc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 54px; border-radius: 14px; background: rgba(139,58,98,0.92);
  display: flex; align-items: center; justify-content: center; transition: background .2s; }
.bc-vd:hover .bc-play { background: #b3341f; }
.bc-vd .bc-play::after { content: ''; border-style: solid; border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent #fff; margin-left: 4px; }
.bc-vd-ten { font-size: 0.86rem; color: var(--bc-mo); margin: 8px 0 0; line-height: 1.5; }
.bc-vd-ten b { color: var(--bc-muc); }

/* danh sách video phụ */
.bc-vd-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.bc-vd-luoi li { min-width: 0; }
.bc-vd-luoi .bc-vd { aspect-ratio: 16 / 9; }
.bc-vd-luoi .bc-play { width: 52px; height: 38px; border-radius: 10px; }
.bc-vd-luoi .bc-play::after { border-width: 8px 0 8px 14px; }
.bc-vd-luoi .bc-vd-ten { font-size: 0.8rem; }

/* ── danh sách vật liệu / dụng cụ: ô đánh dấu (nhớ trong trình duyệt) ── */
.bc-nl { background: var(--bc-giay); border: 1px solid var(--bc-vien); border-top: 3px solid var(--bc-la);
  padding: 20px 24px; margin: 26px 0; }
.bc-nl h3, .bc-cb h3 { margin-top: 0 !important; }
.bc-nl ul { list-style: none; margin: 12px 0 0; padding: 0; }
.bc-nl li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--bc-vien); line-height: 1.55; }
.bc-nl li:last-child { border-bottom: 0; }
.bc-nl input[type=checkbox] { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--bc-la); }
.bc-nl li.xong label { text-decoration: line-through; color: var(--bc-mo); }
.bc-nl label { cursor: pointer; flex: 1; }
.bc-nl .bc-nhom { margin-top: 14px; }
.bc-nl .bc-nhom:first-of-type { margin-top: 0; }
.bc-nl .bc-nhom h4 { font-family: 'Montserrat', sans-serif; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bc-dat) !important; margin: 0 0 4px; }
.bc-nl .bc-ghi { font-size: 0.86rem; color: var(--bc-mo); margin: 12px 0 0; }

/* ── các bước: số to, mốc ── */
.bc-cb { margin: 26px 0; }
.bc-cb ol { list-style: none; counter-reset: buoc; margin: 14px 0 0; padding: 0; }
.bc-cb ol > li { counter-increment: buoc; position: relative; padding: 0 0 22px 64px; border-left: 2px solid var(--bc-vien); margin-left: 22px; }
.bc-cb ol > li:last-child { padding-bottom: 6px; }
.bc-cb ol > li::before { content: counter(buoc); position: absolute; left: -23px; top: -4px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bc-dat); color: #fff; font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--bc-giay); }
.bc-cb ol > li h4 { margin: 0 0 6px; font-family: 'Playfair Display', Georgia, serif; font-size: 1.12rem; color: var(--bc-muc); line-height: 1.3; }
.bc-cb ol > li p { margin: 0 0 8px; line-height: 1.7; }
.bc-cb .bc-moc { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bc-la-d) !important; background: var(--ch-xanh);
  padding: 3px 8px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.bc-cb .bc-dau { display: block; font-size: 0.9rem; color: var(--bc-mo); font-style: italic; margin-top: 4px; }
/* hình vẽ minh hoạ nằm trong một bước */
.bc-cb ol > li .ch-hinh { margin: 10px 0 4px; }

/* ── khung mẹo / cẩn thận / tinh thần nhà Phật ── */
.bc-khung { padding: 18px 22px; margin: 26px 0; border-left: 4px solid var(--bc-la); background: var(--ch-xanh); }
.bc-khung h4 { font-family: 'Montserrat', sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bc-la-d) !important; margin: 0 0 10px; }
.bc-khung p, .bc-khung li { line-height: 1.72; }
.bc-khung p { margin: 0 0 10px; }
.bc-khung p:last-child { margin-bottom: 0; }
.bc-khung ul { margin: 0; padding-left: 20px; }
.bc-khung.canthan { border-left-color: #b3341f; background: #fbeeea; }
.bc-khung.canthan h4 { color: #8a2415 !important; }
.bc-khung.phat { border-left-color: var(--bc-vang); background: #fbf3e2; }
.bc-khung.phat h4 { color: #8a6114 !important; }
.bc-khung.sen { border-left-color: var(--bc-dat); background: #f7ecf1; }
.bc-khung.sen h4 { color: var(--bc-dat) !important; }
.bc-khung .xuat { font-family: 'Montserrat', sans-serif; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--bc-mo) !important; margin: 6px 0 0; }
/* câu kệ dâng hoa — chữ nghiêng, thụt lề */
.bc-khung .ke { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.04rem; line-height: 1.7;
  margin: 6px 0 10px 14px; padding-left: 14px; border-left: 2px solid var(--bc-vang); }

/* ── bảng (hoa nên / hoa không nên, màu từng dịp) ── */
.bc-bang { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 18px 0 8px; }
.bc-bang th { font-family: 'Montserrat', sans-serif; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; text-align: left; padding: 10px 12px; border: 1px solid var(--bc-vien) !important;
  background: var(--bc-kem) !important; color: var(--bc-dat) !important; }
.bc-bang td { padding: 10px 12px; border: 1px solid var(--bc-vien) !important; vertical-align: top; line-height: 1.6; }
.bc-bang td.n { font-weight: 600; color: var(--bc-dat) !important; white-space: nowrap; }
.bc-bang td.ok { color: var(--bc-la-d) !important; }
.bc-bang td.khong { color: #8a2415 !important; }
/* vỏ bọc bảng là <figure>, KHÔNG phải <div>: luật quét nền của hq-baiviet.css nhắm con cháu của div (0,13,1 + !important) sẽ xoá viền/nền th, td */
.bc-cuon { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0; }

/* ── lưới thẻ bài (trang mục) ── */
.bc-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 18px 0 28px; padding: 0; list-style: none; }
.bc-the { background: #fff; border: 1px solid var(--bc-vien); display: flex; flex-direction: column; min-width: 0;
  transition: transform .18s, box-shadow .18s; }
.bc-the:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(40,30,10,0.14); }
.bc-the .bc-anh { aspect-ratio: 16 / 10; background: var(--bc-kem) center/cover no-repeat; position: relative; overflow: hidden; display: block; }
.bc-the .bc-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-the .bc-loai { position: absolute; left: 10px; top: 10px; background: rgba(139,58,98,0.92); color: #fff;
  font-family: 'Montserrat', sans-serif; font-size: 0.54rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; }
.bc-the .bc-moi { position: absolute; right: 10px; top: 10px; background: var(--bc-vang); color: #1e1a12;
  font-family: 'Montserrat', sans-serif; font-size: 0.54rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; }
.bc-the .bc-than { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bc-the h3 { margin: 0 !important; font-family: 'Playfair Display', Georgia, serif; font-size: 1.08rem; line-height: 1.3; }
.bc-the h3 a { color: var(--bc-muc) !important; text-decoration: none; border: 0 !important; }
.bc-the h3 a:hover { color: var(--bc-dat) !important; }
.bc-the p { margin: 0; font-size: 0.88rem; color: var(--bc-mo); line-height: 1.55; }
.bc-the .bc-chan { margin-top: auto; padding-top: 8px; font-family: 'Montserrat', sans-serif; font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bc-mo) !important; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* bài nổi bật theo mùa (trang mục) */
.bc-tuan { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--bc-vien); background: #fff; margin: 18px 0 28px; }
.bc-tuan .bc-anh { background: var(--bc-kem) center/cover no-repeat; min-height: 220px; }
.bc-tuan .bc-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-tuan .bc-than { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.bc-tuan h3 { margin: 0 !important; font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; line-height: 1.2; }
.bc-tuan h3 a { color: var(--bc-muc) !important; text-decoration: none; border: 0 !important; }
.bc-tuan p { margin: 0; line-height: 1.6; }
@media (max-width: 640px) { .bc-tuan { grid-template-columns: 1fr; } }

/* bộ lọc chuyên mục */
.bc-loc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.bc-loc button { font-family: 'Montserrat', sans-serif; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: #fff; color: var(--bc-la-d); border: 1px solid var(--bc-la); padding: 7px 12px; cursor: pointer; width: auto !important; margin: 0; }
.bc-loc button.dang { background: var(--bc-la); color: #fff; }

/* nút gọi mời */
.bc-nut { display: inline-block; background: var(--bc-dat); color: #fff !important; text-decoration: none !important; border: 0 !important;
  font-family: 'Montserrat', sans-serif; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 13px 22px; transition: background .2s; }
.bc-nut:hover { background: #5f2543; }
.bc-nut.la { background: var(--bc-la); }
.bc-nut.la:hover { background: var(--bc-la-d); }
.bc-goi { background: linear-gradient(135deg, #fbf3e2, #f3ead6); border: 1px solid var(--bc-vien); padding: 24px 26px; margin: 28px 0;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.bc-goi .bc-goi-chu { flex: 1 1 320px; }
.bc-goi h3 { margin: 0 0 6px !important; font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; }
.bc-goi p { margin: 0; line-height: 1.6; }

/* ── ảnh đầu trang / ảnh trong bài có chú thích nguồn ── */
.bc-anh-dau { margin: 0 0 22px; }
.bc-anh-dau img { width: 100%; height: auto; display: block; border: 1px solid var(--bc-vien); cursor: zoom-in; }
.bc-anh-dau figcaption { font-size: 0.86rem; color: var(--bc-mo); line-height: 1.55; margin: 8px 0 0; }
.bc-anh-dau figcaption b { color: var(--bc-muc); }
.ch-anh { margin: 22px 0; }
.ch-anh img { width: 100%; height: auto; display: block; border: 1px solid var(--bc-vien); }
.ch-anh figcaption { font-size: 0.86rem; color: var(--bc-mo); line-height: 1.55; margin: 8px 0 0; }
.ch-anh figcaption b { color: var(--bc-muc); }
.ch-anh figcaption .ch-nguon { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bc-mo); margin-top: 3px; }
.ch-anh figcaption .ch-nguon a { color: var(--bc-mo) !important; border-bottom: 1px dotted var(--bc-mo); text-decoration: none; }
/* hai ảnh cạnh nhau */
.ch-doi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.ch-doi .ch-anh { margin: 0; }
@media (max-width: 600px) { .ch-doi { grid-template-columns: 1fr; } }
/* lưới ảnh nhỏ (album) */
.ch-luoi-anh { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0 24px; padding: 0; list-style: none; }
.ch-luoi-anh li { margin: 0; min-width: 0; }
.ch-luoi-anh img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--bc-vien); cursor: zoom-in; }

/* ── hình vẽ SVG minh hoạ (bình, cành chính–phụ, tỷ lệ) ── */
.ch-hinh { background: var(--bc-giay); border: 1px solid var(--bc-vien); padding: 14px 16px 10px; margin: 22px 0; }
.ch-hinh svg { width: 100%; height: auto; display: block; max-height: 420px; }
.ch-hinh figcaption { font-size: 0.86rem; color: var(--bc-mo); line-height: 1.55; margin: 8px 0 0; }
.ch-hinh figcaption b { color: var(--bc-muc); }
.ch-hinh-bo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 22px 0; }
.ch-hinh-bo .ch-hinh { margin: 0; }

/* ── thẻ dịp lễ (trang mục): bốn ô mùa ── */
.ch-dip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 26px; padding: 0; list-style: none; }
.ch-dip li { background: #fff; border: 1px solid var(--bc-vien); border-top: 4px solid var(--bc-dat); padding: 16px 16px 14px; min-width: 0; }
.ch-dip li.vang { border-top-color: var(--bc-vang); }
.ch-dip li.la { border-top-color: var(--bc-la); }
.ch-dip li.hong { border-top-color: #c9607f; }
.ch-dip li i { font-style: normal; font-size: 1.6rem; display: block; margin-bottom: 4px; }
.ch-dip li h4 { margin: 0 0 6px !important; font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; line-height: 1.25; }
.ch-dip li p { margin: 0 0 8px; font-size: 0.88rem; color: var(--bc-mo); line-height: 1.55; }
.ch-dip li a { font-family: 'Montserrat', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bc-dat) !important; text-decoration: none; border: 0 !important; }

/* ── hàng màu (bảng màu gợi ý cho từng dịp) ── */
.ch-mau { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 18px; padding: 0; list-style: none; }
.ch-mau li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--bc-mo); }
.ch-mau li i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--bc-vien); display: inline-block; flex: none; }

/* ── khung nói với các em (Oanh Vũ) ── */
.ch-em { background: linear-gradient(135deg, #fff7fa, #f7ecf1); border: 1px solid var(--bc-vien); border-left: 4px solid #c9607f;
  padding: 18px 22px; margin: 26px 0; }
.ch-em h4 { font-family: 'Montserrat', sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #8b3a62 !important; margin: 0 0 10px; }
.ch-em p, .ch-em li { line-height: 1.72; font-size: 1.02rem; }
.ch-em p { margin: 0 0 10px; }
.ch-em p:last-child { margin-bottom: 0; }

/* ── mục hỏi–đáp ── */
.ch-hoi { margin: 18px 0; }
.ch-hoi details { border-bottom: 1px dashed var(--bc-vien); padding: 10px 0; }
.ch-hoi summary { cursor: pointer; font-weight: 600; color: var(--bc-muc); line-height: 1.5; }
.ch-hoi summary::marker { color: var(--bc-dat); }
.ch-hoi details p { margin: 8px 0 0 18px; line-height: 1.7; color: var(--bc-mo); }

/* ── khung "in được" ── */
@media print {
  .bc-video, .bc-vd-luoi, .bc-goi, .bc-loc { display: none !important; }
  .bc-cb ol > li::before { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
