/* ================================================================
   PHG site shell - phathoanggia.com.vn (bước 1, 2026-10-20)
   Chữ nền, nút, header + mega menu, menu mobile, footer, nút nổi.
   Dùng biến trong tokens.css.
   ================================================================ */

/* ---------- Nền và chữ ---------- */
html{scroll-behavior:smooth;}
body{
  background:var(--phg-kem);
  color:var(--phg-chu);
  font-family:var(--phg-font-body);
  font-size:var(--phg-body);
  font-weight:400;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
body .content-bg,
body .site,
body #wrapper{background:var(--phg-kem);}
body .entry.content-bg,
body .content-style-boxed .content-bg{background:#F4F4F2;}

h1,h2,h3,
.entry-title,
.wp-block-heading:is(h1,h2,h3){
  font-family:var(--phg-font-heading);
  font-weight:700;
  color:var(--phg-muc);
  letter-spacing:0;
}
h1,.h1{font-size:var(--phg-h1);line-height:1.04;}
h2,.h2{font-size:var(--phg-h2);line-height:1.1;}
h3,.h3{font-size:var(--phg-h3);line-height:1.25;}
h4,h5,h6{font-family:var(--phg-font-body);font-weight:700;color:var(--phg-muc);}

a{color:var(--phg-cam-dam);}
a:hover,a:focus{color:var(--phg-cam-hover);}

/* Thân bài */
.single .entry-content{
  font-size:var(--phg-article);
  line-height:var(--phg-article-lh);
  color:var(--phg-chu);
}
.single .entry-content :is(p,ul,ol,blockquote,h2,h3,h4,h5,h6):not(li *){
  max-width:var(--phg-article-max);
  margin-left:auto;
  margin-right:auto;
}

/* Nhãn nhỏ */
.phg-label{
  display:inline-block;
  font-family:var(--phg-font-body);
  font-size:var(--phg-label);
  font-weight:700;
  letter-spacing:var(--phg-label-track);
  text-transform:uppercase;
  color:var(--phg-cam-dam);
}

/* Nút */
.phg-btn,
.wp-block-button__link,
.button,
button.kb-button,
input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:var(--phg-btn-h);
  padding:0 24px;
  border-radius:0;
  font-family:var(--phg-font-body);
  font-size:var(--phg-btn-size);
  font-weight:700;
  line-height:1;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.phg-btn--primary,
.wp-block-button__link,
input[type="submit"]{background:var(--phg-cam-dam);color:#F4F4F2;}
.phg-btn--primary:hover,.phg-btn--primary:focus,
.wp-block-button__link:hover,
input[type="submit"]:hover{background:var(--phg-cam-hover);color:#F4F4F2;}
.phg-btn--ghost{background:transparent;color:var(--phg-kem);border-color:rgba(244,244,242,.32);}
.phg-btn--ghost:hover{border-color:var(--phg-kem);color:#F4F4F2;}

/* Khung */
.phg-wrap{
  width:100%;
  max-width:calc(var(--phg-container) + 2 * var(--phg-gutter));
  margin:0 auto;
  padding-left:var(--phg-gutter);
  padding-right:var(--phg-gutter);
  box-sizing:border-box;
}

.phg-ico{display:block;flex:none;}

/* Header, menu, menu mobile, footer, nút nổi: bước 11 chuyển sang assets/css/he-moi/khung.css (bản cũ cho ?ban=3d: vo-cu-3d.css). */

/* ---------- Nội dung Bota đã làm sạch (bước 2): ảnh, bảng, link ---------- */
.entry-content img{max-width:100%;height:auto;}
.entry-content iframe,.entry-content video{max-width:100%;}
.entry-content a:not(.phg-btn):not(.wp-block-button__link){
  color:var(--phg-cam-dam);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}
.entry-content a:not(.phg-btn):not(.wp-block-button__link):hover{color:var(--phg-cam-hover);}
.entry-content a *{color:inherit;}
.phg-bang{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:24px 0;
}
.phg-bang table{
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--phg-ke);
  background:#F4F4F2;
  font-size:var(--c-small);
  line-height:1.55;
}
.phg-bang td,.phg-bang th{
  border:1px solid var(--phg-ke);
  padding:10px 12px;
  vertical-align:top;
}
.phg-bang tr:first-child > td,.phg-bang th,.phg-bang thead td{background:var(--phg-cat);font-weight:700;color:var(--phg-muc);}
.phg-bang td img{display:block;margin:0 auto;}
@media (max-width:767px){
  .phg-bang table{min-width:560px;}
}

/* Breadcrumb cũ trong nội dung page: căn thẳng lề trái với nội dung (bước 2) */
.entry-content .phg-breadcrumb{padding:0 !important;margin:0 0 24px !important;}
.entry-content .phg-breadcrumb__list{padding-left:0 !important;margin:0 !important;list-style:none;}
