/* Palpung Việt Nam — phần bổ sung cho WordPress/Elementor (viết tay).
   Style gốc nằm ở palpung.css (sinh tự động từ html/css/style.css). Màu và font giữ đúng bảng màu của bản thiết kế. */

body.pv-template{background:#f7f2ea}

/* Chặn style heading/nút/ô nhập của theme và Elementor Kit rò vào vùng Palpung; các class sN vẫn thắng vì cụ thể hơn */
body .pv-root h1,body .pv-root h2,body .pv-root h3,body .pv-root h4,body .pv-root h5,body .pv-root h6{color:inherit;letter-spacing:normal;text-transform:none;line-height:normal}
body .pv-root :where(button,input,select,textarea){box-shadow:none;text-transform:none;letter-spacing:normal;min-height:0;line-height:normal}
body .pv-root :where(input,select,textarea):focus{outline:none;box-shadow:none}
body .pv-root :where(button):focus-visible,body .pv-root :where(a):focus-visible{outline:2px solid #b8862b;outline-offset:2px}
body .pv-root img{max-width:100%}
body .pv-root form{margin:0}

/* Ảnh trong khung tỉ lệ: link bọc ảnh không làm lệch khung */
body .pv-root .s42>a,body .pv-root .s49>a,body .pv-root .s72>a,body .pv-root .s77>a,body .pv-root .s82>a{position:absolute;inset:0;display:block}
body .pv-root .pv-noimg{position:absolute;inset:0;display:block;background:#efe7dc}

/* Header mới: CSS ở header.css + header-wp.css (khung .pv-hdr, không nằm trong .pv-root). */

/* Màu website gốc #895252 (đổi trong tools/palette.mjs). Hộp "Góc quán niệm" có chữ vàng cỡ nhỏ →
   dùng sắc đậm #6c4141 để chữ vàng đủ tương phản (trên #895252 chỉ đạt 3,9:1). */
body .pv-root .s53{background:#6c4141}

/* Bài viết liên quan 3 cột (style.css gốc thiếu rule .pv-rel) */
body .pv-root .pv-rel{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:720px){body .pv-root .pv-rel{grid-template-columns:minmax(0,1fr)}}

/* Danh sách bài ở trang chuyên mục (s147): cột ảnh minmax(120px,240px) chiếm gần hết chiều ngang trên màn hình hẹp
   → thu ảnh lại; trên điện thoại làm giống khối "Tin trung tâm" (.pv-news) ở trang chủ */
@media (max-width:900px){
  body .pv-root .pv-arch-item{grid-template-columns:160px minmax(0,1fr);gap:18px}
}
@media (max-width:720px){
  body .pv-root .pv-arch-item{grid-template-columns:112px minmax(0,1fr);gap:14px;padding:16px 0}
  body .pv-root .pv-arch-item .s149{gap:5px}
  body .pv-root .pv-arch-item .s150{font-size:16px;line-height:1.35}
  body .pv-root .pv-arch-item .s74{display:none}
  body .pv-root .pv-arch-item .s79{font-size:11.5px;line-height:1.4}
}

/* Nội dung bài viết: áp style s168…s172 của bản thiết kế cho HTML sinh từ trình soạn thảo */
body .pv-root .pv-content>*:first-child{margin-top:0}
body .pv-root .pv-content p{margin:0 0 1.2em;text-wrap:pretty}
body .pv-root .pv-content h2{font-family:Lora,serif;font-weight:700;font-size:1.45em;line-height:1.3;margin:1.6em 0 .6em;color:#895252;scroll-margin-top:90px}
body .pv-root .pv-content h3{font-family:Lora,serif;font-weight:700;font-size:1.2em;line-height:1.35;margin:1.4em 0 .5em;color:#2b2320}
body .pv-root .pv-content h4{font-family:Lora,serif;font-weight:700;font-size:1.05em;line-height:1.4;margin:1.2em 0 .4em;color:#2b2320}
body .pv-root .pv-content a{color:#895252;text-decoration:underline;text-decoration-color:rgba(137,82,82,.35);text-underline-offset:3px}
body .pv-root .pv-content a:hover{text-decoration-color:#895252}
body .pv-root .pv-content blockquote{margin:1.6em 0;padding:4px 0 4px 24px;border-left:3px solid #b8862b;font-style:italic;font-size:1.15em;line-height:1.6;color:#3d322c;background:none}
body .pv-root .pv-content blockquote p:last-child{margin-bottom:0}
body .pv-root .pv-content blockquote cite{display:block;margin-top:8px;font-family:'Be Vietnam Pro',sans-serif;font-size:13px;font-style:normal;color:#8a7a6a}
body .pv-root .pv-content figure{margin:1.6em 0}
body .pv-root .pv-content img{max-width:100%;height:auto;display:block}
body .pv-root .pv-content figcaption,body .pv-root .pv-content .wp-caption-text{font-family:'Be Vietnam Pro',sans-serif;font-size:13px;line-height:1.5;color:#8a7a6a;margin-top:10px;font-style:italic;text-align:left}
body .pv-root .pv-content ul,body .pv-root .pv-content ol{margin:0 0 1.2em;padding-left:1.4em}
body .pv-root .pv-content li{margin:.3em 0}
body .pv-root .pv-content li::marker{color:#b8862b}
body .pv-root .pv-content hr{border:0;border-top:1px solid #e3d9cb;margin:2em 0}
body .pv-root .pv-content table{width:100%;border-collapse:collapse;margin:0 0 1.2em;font-family:'Be Vietnam Pro',sans-serif;font-size:15px;line-height:1.5}
body .pv-root .pv-content th,body .pv-root .pv-content td{border:1px solid #e3d9cb;padding:8px 12px;text-align:left}
body .pv-root .pv-content th{background:#fbf6ee}
body .pv-root .pv-content .alignleft{float:left;margin:.3em 1.4em 1em 0}
body .pv-root .pv-content .alignright{float:right;margin:.3em 0 1em 1.4em}
body .pv-root .pv-content .aligncenter{margin-left:auto;margin-right:auto}

/* Tên tác giả trong hộp tác giả là link */
body .pv-root .s178 a{color:inherit}

/* Phân trang: dấu … không có khung */
body .pv-root .pv-dots{border-color:transparent;background:transparent}

/* Thông báo trống (cả trong trình soạn thảo Elementor) */
body .pv-root .pv-empty{margin:0;padding:16px 18px;border:1px dashed #c9b9a3;background:#fbf6ee;color:#8a7a6a;font-size:14px}

/* Form đăng ký dùng shortcode của plugin khác */
body .pv-root .pv-newsletter-sc input[type=email],body .pv-root .pv-newsletter-sc input[type=text]{background:#fbf6ee;border:1px solid #c9b9a3;border-radius:2px;padding:11px 12px;font-size:14px;font-family:inherit;color:#2b2320}

/* Bình luận (giao diện của theme, chỉ chỉnh khoảng cách/font) */
body .pv-root .pv-comments{margin-top:8px;padding-top:24px;border-top:1px solid #e3d9cb;font-size:15px;line-height:1.6}

/* Lịch sinh hoạt: tên sự kiện trong hộp tối là link */
body .pv-root .s104 a{color:inherit}
body .pv-root .s104 a:hover{color:#f2c76b}
body .pv-root .pv-ev-none{margin:12px 0 0;padding-top:12px;border-top:1px solid #4d4139}

/* Trang /lich-sinh-hoat/ */
body .pv-root .pv-ev-month{margin-top:28px}
body .pv-root .pv-ev-month:first-child{margin-top:0}
body .pv-root .pv-ev-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:20px;padding:18px 0;border-bottom:1px solid #e3d9cb;align-items:center}
body .pv-root .pv-ev-date{text-align:center;border:1px solid #e3d9cb;background:#fbf6ee;padding:10px 0 9px}
body .pv-root .pv-ev-day{font-family:Lora,serif;font-size:28px;line-height:1;color:#895252;font-weight:700}
body .pv-root .pv-ev-mon{font-size:10px;letter-spacing:0.1em;text-transform:uppercase;color:#8a7a6a;margin-top:5px}
body .pv-root .pv-ev-repeat{display:inline-block;margin-top:2px;font-size:12px;padding:4px 10px}
body .pv-root .pv-ev-cta{white-space:nowrap}
body .pv-root .pv-ev-past{opacity:.6}
@media (max-width:720px){body .pv-root .pv-ev-row{grid-template-columns:60px minmax(0,1fr);gap:14px}body .pv-root .pv-ev-cta{grid-column:2;justify-self:start}}

/* Trang chi tiết sự kiện */
body .pv-root .pv-ev-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px 24px;margin-bottom:28px}
body .pv-root .pv-ev-info .s187{margin-bottom:4px}
body .pv-root .pv-ev-btn{display:inline-block;justify-self:start;align-self:end;text-align:center}
body .pv-root .pv-ev-btn:hover{color:#fbf6ee}

/* Sidebar dính không bị thanh quản trị che */
body.admin-bar .pv-root .s185{top:56px}

/* In bài */
@media print{
  body .pv-root .pv-topbar,body .pv-root .pv-header,body .pv-root aside,body .pv-root .s160 .s113,body .pv-root .s173,body .pv-root .s180,body .pv-root .pv-rel,body .pv-root .pv-comments,.pv-footer-root{display:none!important}
  body .pv-root .pv-grid{display:block}
  body.pv-template{background:#fff}
}
