/*
Theme Name: Thể Hình Việt Nam — HTML V6.2 ACF
Theme URI: https://thehinh.com.vn/
Author: dot vn Studio
Description: Chuyển đổi từ đúng bộ HTML tĩnh TheHinh V6.2 (97 trang). Giữ nguyên CSS/JS/bố cục nguồn, kết nối dữ liệu WordPress và ACF Pro qua companion Core Plugin.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: thehinh-v62
*/
/* CSS nguồn: /assets/css/site.css; chỉ thêm các tùy biến cho WordPress dưới đây */
.header .custom-logo {display:block;max-width:190px;max-height:44px;width:auto;height:auto;object-fit:contain}
.footer .logo img {filter:none}
.wp-admin-bar .header {top:0}
.thehinh-fallback {padding:70px 24px;max-width:1250px;margin:auto}
.thehinh-fallback p {margin:12px 0}
.thehinh-fallback .editor-content {margin-top:25px}
.thehinh-pagination {display:flex;gap:9px;justify-content:center;padding:22px 0}
.thehinh-pagination .page-numbers{border:1px solid #ddd;padding:5px 12px;border-radius:5px}
.thehinh-pagination .current {background:var(--red);color:#fff}
@media(max-width:800px){.header .custom-logo{max-width:165px;max-height:40px}}
/* WordPress content keeps V6.2 measurements. */
.profile-main-photo>.thehinh-feature-photo {width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.profile-main-photo:has(>.thehinh-feature-photo)>.photo-empty {display:none}
.main-nav.wp-menu ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:18px}
.main-nav.wp-menu li{position:relative}
.main-nav.wp-menu a{display:block;padding:10px 8px;font-weight:600;white-space:nowrap}
.main-nav.wp-menu li ul{position:absolute;left:0;top:100%;display:none;min-width:220px;background:white;z-index:30;box-shadow:0 12px 36px #0002;border:1px solid #ddd;padding:12px;flex-direction:column;align-items:stretch;gap:0}
.main-nav.wp-menu li:hover>ul,.main-nav.wp-menu li:focus-within>ul {display:flex}
.main-nav.wp-menu li ul li ul{top:0;left:100%}

/* V6.3 — nguyên layout V6.2, cân chỉnh navbar WordPress native */
body.admin-bar .header { z-index:90; }
.main-nav .nav-level-3 { padding-left:28px; font-size:12px; border-left:2px solid #e9f4f1; }
.mobile-drawer .menu-third { padding-left:30px; font-size:12px; }
.mobile-drawer details summary { cursor:pointer; }
.mobile-drawer details[open] summary { color:var(--red); }
.header .logo img.custom-logo { object-fit:contain; }
.footer .logo img.custom-logo { filter:none; }
@media(min-width:1100px){.main-nav .nav-panel{max-height:min(75vh,690px);overflow-y:auto;}}
