/* GÓC PHỤ HUYNH — kiểu riêng, neo vào body.ph-trang (5/10/2026).
   ⚠ hq-baiviet.css gỡ nền/viền của MỌI phần tử nằm trong một <div> ở thân bài (bẫy 10) ⇒ khung ở đây
   dùng figure / fieldset / ul / a, không dùng div.
   ⚠ ĐỪNG đặt tên lớp tận cùng bằng chữ "u": hq-baiviet.css có luật [class$="u"] xoá đệm/lề (!important). Màu theo quehuong.css (--bc-la, --bc-vang, --bc-dat). */
body.ph-trang .ph-an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.ph-trang .ph-nho { font-size: 0.9rem; color: #6b6250; }

/* ── bốn cửa lớn đầu trang ── */
body.ph-trang .ph-cua { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
body.ph-trang .sutra-body .ph-cua li { margin: 0 !important; padding: 0 !important; list-style: none !important; min-width: 0; }
body.ph-trang .sutra-body .ph-cua li::before { content: none !important; }
body.ph-trang .ph-cua a { display: block; height: 100%; padding: 16px 16px 14px; background: #fffdf7; border: 1px solid #C9963B; border-top: 5px solid #1E4620; color: #1e1a12 !important; text-decoration: none; border-bottom-width: 1px; transition: transform .15s, box-shadow .15s; }
body.ph-trang .ph-cua a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(60,40,10,.14); }
body.ph-trang .ph-cua a.chinh, body.ph-trang .ph-cua a.chinh b, body.ph-trang .ph-cua a.chinh span { color: #fff8e6 !important; }
body.ph-trang .ph-cua a.chinh { background: #1E4620; border-color: #1E4620; border-top-color: #C9963B; }
body.ph-trang .ph-cua b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; line-height: 1.3; margin-bottom: 4px; }
body.ph-trang .ph-cua span { display: block; font-size: 0.88rem; line-height: 1.45; opacity: .85; }
body.ph-trang .ph-cua i { font-style: normal; font-size: 1.6rem; display: block; margin-bottom: 6px; }

/* ── khung chung (figure) ── */
body.ph-trang figure.ph-khung { margin: 22px 0 28px; padding: 18px 20px; background: #fbf3e2; border: 1px solid rgba(201,150,59,.6); border-left: 5px solid #C9963B; }
body.ph-trang figure.ph-khung h4 { margin: 0 0 8px !important; font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; }
body.ph-trang figure.ph-khung p { margin: 0 0 10px; line-height: 1.65; text-indent: 0 !important; }
body.ph-trang figure.ph-cn-toi { border-left-color: #1E4620; background: #f2f6ef; }
body.ph-trang figure.ph-cn-toi .ngay { font-family: 'Playfair Display', Georgia, serif; font-size: 1.45rem; color: #1E4620; margin: 0 0 4px; }
body.ph-trang figure.ph-cn-toi .nghi { color: #8a2415; font-weight: 700; }
body.ph-trang figure.ph-luuy { background: #e9f0f5; border-left-color: #3f6b3a; }

/* ── nút ── */
body.ph-trang .ph-nut-hang { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
body.ph-trang a.bc-nut, body.ph-trang a.ph-nut { display: inline-block; text-decoration: none; }
body.ph-trang .sutra-body a.ph-nut, body.ph-trang a.ph-nut { display: inline-block !important; white-space: nowrap; padding: 11px 16px !important; line-height: 1.3; border-bottom: 0 !important; background: #1E4620; color: #fff8e6 !important; font-weight: 700; font-size: 0.92rem; border: 0; }
body.ph-trang a.ph-nut.vang { background: #C9963B; color: #1e1a12 !important; }
body.ph-trang a.ph-nut.dat { background: #7a3b1e; }

/* ── điện thoại ── */
body.ph-trang ul.ph-dt { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
body.ph-trang .sutra-body ul.ph-dt li, body.ph-trang ul.ph-dt li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.ph-trang ul.ph-dt li::before { content: none !important; }
body.ph-trang ul.ph-dt a { display: block; padding: 10px 12px; background: #fff; border: 1px solid rgba(58,44,20,.25); color: #1e1a12; text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── lịch sắp tới ── */
body.ph-trang ul.ph-lich { list-style: none; margin: 14px 0 20px; padding: 0; }
body.ph-trang .sutra-body ul.ph-lich > li, body.ph-trang ul.ph-lich > li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; margin: 0 0 10px !important; padding: 12px 14px !important; background: #fffdf7; border: 1px solid rgba(201,150,59,.55); list-style: none !important; }
body.ph-trang ul.ph-lich > li::before { content: none !important; }
body.ph-trang ul.ph-lich > li.nghi { background: #fbeeea; border-color: rgba(179,52,31,.4); }
body.ph-trang ul.ph-lich .o-ngay { text-align: center; background: #1E4620; color: #fff8e6; padding: 6px 4px; align-self: start; }
body.ph-trang ul.ph-lich li.nghi .o-ngay { background: #8a2415; }
body.ph-trang ul.ph-lich .o-ngay b { display: block; font: 700 1.7rem/1 'Playfair Display', Georgia, serif; }
body.ph-trang ul.ph-lich .o-ngay small { display: block; font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
body.ph-trang ul.ph-lich .ten { font-family: 'Playfair Display', Georgia, serif; font-size: 1.12rem; margin: 0 0 2px; line-height: 1.3; }
body.ph-trang ul.ph-lich .gio { font-size: 0.8rem; font-weight: 700; color: #8b6914; letter-spacing: .04em; }
body.ph-trang ul.ph-lich .mo { font-size: 0.93rem; line-height: 1.5; margin: 4px 0 0; color: #3a2c14; }

/* ── giờ trong ngày ── */
body.ph-trang table.ph-gio { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.95rem; }
body.ph-trang table.ph-gio td { padding: 8px 10px; border-bottom: 1px solid rgba(58,44,20,.15); vertical-align: top; }
body.ph-trang table.ph-gio td:first-child { white-space: nowrap; font-weight: 700; color: #1E4620; width: 1%; }

/* ── biểu mẫu xin nghỉ ── */
body.ph-trang h4.ph-buoc { margin: 26px 0 8px !important; font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; color: #1E4620; border-bottom: 2px solid rgba(201,150,59,.6); padding-bottom: 4px; }
body.ph-trang #qh-form.ph-js .ph-em.ph-them { display: none; }
body.ph-trang .ph-nut-them { background: none; border: 1px dashed #1E4620; color: #1E4620; padding: 6px 12px; cursor: pointer; font-weight: 700; width: auto; }
body.ph-trang fieldset.ph-cn, body.ph-trang fieldset.ph-loai { border: 0; padding: 0; margin: 6px 0 14px; min-width: 0; display: grid; gap: 8px; }
body.ph-trang fieldset.ph-cn { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
body.ph-trang fieldset.ph-loai { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
body.ph-trang .ph-cn-o, body.ph-trang .ph-loai-o { position: relative; display: block; cursor: pointer; margin: 0; }
body.ph-trang .ph-cn-o input, body.ph-trang .ph-loai-o input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.ph-trang .ph-cn-o span, body.ph-trang .ph-loai-o span { display: block; text-align: center; padding: 10px 6px; background: #fff; border: 2px solid rgba(58,44,20,.25); line-height: 1.25; }
body.ph-trang .ph-cn-o b { display: block; font: 700 1.25rem/1.1 'Playfair Display', Georgia, serif; }
body.ph-trang .ph-cn-o i { display: block; font-style: normal; font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; color: #6b6250; }
body.ph-trang .ph-cn-o input:checked + span, body.ph-trang .ph-loai-o input:checked + span { background: #1E4620; border-color: #1E4620; color: #fff8e6; }
body.ph-trang .ph-cn-o input:checked + span i { color: #f3d98c; }
body.ph-trang .ph-cn-o input:focus-visible + span, body.ph-trang .ph-loai-o input:focus-visible + span { outline: 3px solid #C9963B; outline-offset: 2px; }
body.ph-trang .ph-loai-o span { font-weight: 700; }

/* ── trang cảm ơn ── */
body.ph-trang ul.ph-ngay-ds { margin: 6px 0 10px; padding-left: 20px; }
body.ph-trang figure.ph-nhan { background: #f2f6ef; border-left-color: #1E4620; }
body.ph-trang a.ph-sms { padding: 14px 20px; }

@media (max-width: 480px) {
  body.ph-trang ul.ph-lich > li { grid-template-columns: 60px 1fr; gap: 10px; padding: 10px !important; }
  body.ph-trang ul.ph-lich .o-ngay b { font-size: 1.4rem; }
}

/* ô điện thoại / ngày — quehuong.css chưa khai hai kiểu này; dùng ID để thắng luật gỡ nền của hq-baiviet */
body.ph-trang #qh-form input[type=tel], body.ph-trang #qh-form input[type=date] {
  width: 100%; padding: 11px 13px; font-size: 0.97rem; font-family: inherit; color: var(--bc-muc, #1e1a12);
  background: #fff !important; border: 1px solid var(--bc-vien, rgba(58,44,20,.3)) !important; border-bottom: 2px solid var(--bc-dat, #7a3b1e) !important; outline: none; }
body.ph-trang #qh-form input[type=date] { max-width: 240px; }
body.ph-trang #qh-form .ph-cn-o input:checked + span b, body.ph-trang #qh-form .ph-loai-o input:checked + span { color: #fff8e6 !important; }
/* không để chữ hoa lớn đầu đoạn (drop-cap của hq-baiviet) lọt vào trong khung */
body.ph-trang figure.ph-khung p.drop-cap::first-letter { float: none !important; font-size: inherit !important; line-height: inherit !important; margin: 0 !important; padding: 0 !important; color: inherit !important; font-weight: inherit !important; }
body.ph-trang a.bc-nut.ph-sms { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: none; line-height: 1.35; }
/* khung đầu tiên sau .qh-camon bị hq-baiviet xoá đệm — ép lại cho mọi khung */
body.ph-trang figure.ph-khung { padding: 18px 20px !important; margin: 22px 0 28px !important; }
