/* Footer (module/footer.php). Phần lớn dùng class của beer (row, small-gap, vertical-padding, accordion…). Ở đây chỉ phần beer chưa có. */

/* Nền xám nhạt trung tính (beer không có class nào vừa trung tính vừa theo dark mode): pha 4% màu chữ vào nền trang */
.tv-footer{background-color:color-mix(in srgb, var(--on-surface) 4%, var(--surface))}
.tv-footer-logo{display:block;block-size:2rem;inline-size:auto}
.tv-footer-contact > i{color:var(--outline)}

/* Mạng xã hội: lùi nửa khoảng đệm nút tròn để icon thẳng mép chữ; large: dồn xuống đáy cột, ngay trên đường kẻ */
.tv-footer-social{margin-inline-start:-.5rem}
@media (min-width:993px){
  .tv-footer-col{display:flex;flex-direction:column}
  .tv-footer-social{margin-block-start:auto !important}
}

/* Điện thoại: giới thiệu gọn 3 dòng; nút "Xem thêm" mở đủ (trạng thái ở aria-expanded của nút) */
@media (max-width:600px){
  .tv-footer-intro:has(+ .tv-footer-more[aria-expanded="false"]){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
}

/* Nhóm link: điện thoại là accordion của beer, sát lề như nội dung footer */
.tv-footer-links{border-radius:0}
.tv-footer-links > section > button:first-child{padding-inline:0;font-size:.875rem;font-weight:700}
.tv-footer-links.accordion > section > nav{padding-inline:0}
@media (max-width:600px){
  .tv-footer-links{border-block-start:.0625rem solid var(--outline-variant)}  /* mép dưới: <hr> của hàng cuối */
}
/* Màn rộng hơn: các nhóm thành cột, luôn mở; tiêu đề chỉ là chữ */
@media (min-width:601px){
  .tv-footer > section.responsive{padding-inline:.5rem}  /* thẳng hàng logo header và nội dung trang (header: padding 1rem + nav .5rem) */
  .tv-footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
  .tv-footer-links > section{border:0}
  .tv-footer-links > section > button:first-child{min-block-size:0;padding-block:0 .75rem;pointer-events:none}
  .tv-footer-links > section > button:first-child::before,
  .tv-footer-links > section > button:first-child::after{display:none}
  .tv-footer-links.accordion > section > nav{display:flex !important;padding-block-end:0}
}
