/* Compatibility only — original HTML CSS is the primary visual source. */
:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
h1,h2,h3,h4,.btn,.nav-item>a,.nav-item>button{font-weight:600}
body.admin-bar .sitehead{top:32px}
@media(max-width:782px){body.admin-bar .sitehead{top:46px}}
.brand.custom-logo-link img,.brand img{width:auto;max-width:220px;max-height:66px;height:auto;object-fit:contain}
.footer-logo.custom-logo-link img{width:auto;max-width:210px;max-height:70px;object-fit:contain;height:auto}
.profile-card img,.hospital-list-card img,.card img.thumbnail,.blog-tile img,.profile-image img,.dentist-related-img img,.dentist-wp-media img{aspect-ratio:1/1;object-fit:cover}
.profile-card .portrait,.hospital-list-card img{aspect-ratio:1/1!important;object-fit:cover}
.dentist-wp-placeholder{background:#edf6fb;display:flex;justify-content:center;align-items:center;color:#1576a5;aspect-ratio:1/1;border-radius:10px;font-size:32px;font-weight:600}
.dentist-wp-placeholder img{width:60%;height:60%;object-fit:contain}
.dentist-wp-archive-empty{border:1px dashed #d4e1ed;background:#f7faff;border-radius:12px;padding:28px 22px;color:#57687b}
.dentist-wp-pages{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:28px 0}
.dentist-wp-pages .page-numbers{display:inline-flex;min-width:38px;min-height:38px;align-items:center;justify-content:center;border:1px solid #dae6ef;border-radius:8px;padding:4px 12px;color:var(--navy)}
.dentist-wp-pages .page-numbers.current{background:var(--blue);color:white}
.dentist-wp-archive-wrap{padding-top:20px;padding-bottom:28px}
.dentist-wp-fact-list{margin:0;padding:0;list-style:none}
.dentist-wp-label{color:#6c7d90;font-weight:500}
.dentist-wp-fact-list .fact-row{overflow-wrap:anywhere}
.dentist-wp-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dentist-wp-related-grid .vn-related-card{min-width:0}
.dentist-wp-article-content{line-height:1.85;overflow-wrap:anywhere}
.dentist-wp-article-content img{max-width:100%;height:auto}
.dentist-wp-related-media{width:58px;height:58px;display:block;flex:0 0 58px}
.dentist-wp-article-content table{display:block;max-width:100%;overflow-x:auto}
.dentist-wp-single-media img{aspect-ratio:1/1;object-fit:cover}
.dentist-sidebar-nav .side-links{display:flex;flex-direction:column;gap:1px}
.dentist-sidebar-nav .side-links a{padding:10px 10px;border-radius:7px;display:block}
.dentist-sidebar-nav .side-links a:hover{background:#edf7fa;color:var(--blue)}
/* Child menu remains reachable on hover (no invisible gap). */
.sitehead .nav-item .drop{top:calc(100% - 1px)}
.sitehead .nav-item:hover .drop,.sitehead .nav-item:focus-within .drop{display:block}
.dentist-wp-menu-wrap .menu-item{position:relative}
.dentist-wp-menu-wrap .sub-menu{position:absolute;top:100%;z-index:100;background:white;display:none;border-radius:12px;padding:10px;min-width:210px;box-shadow:0 10px 30px #10264d23;list-style:none}
.dentist-wp-menu-wrap .menu-item:hover>.sub-menu,.dentist-wp-menu-wrap .menu-item:focus-within>.sub-menu{display:block}
.dentist-wp-menu-wrap .sub-menu .sub-menu{left:100%;top:0}
.dentist-wp-nav-menu{display:flex;gap:12px;list-style:none;margin:0;padding:0}
.dentist-wp-nav-menu>li>a{display:block;padding:12px 8px}
.dentist-wp-menu-wrap .sub-menu a{display:block;padding:9px;white-space:normal}
@media(max-width:1024px){.dentist-wp-nav-menu{display:block}.dentist-wp-menu-wrap .sub-menu,.dentist-wp-menu-wrap .sub-menu .sub-menu{position:static;box-shadow:none;display:block}.dentist-wp-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dentist-wp-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand.custom-logo-link img{max-width:180px;max-height:52px}}
/* Match HTML V4 blog cards when posts come from WordPress. */
.blog-tile .blog-visual-img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover}
.blog-tile .blog-visual:has(img){padding:0}
.dentist-wp-single-media .dentist-wp-placeholder{width:100%;border:1px solid var(--line)}
/* WP original HTML includes a generic stock-image label; show it only on reference sample cards, not user-uploaded WP thumbnails. */
.dentist-dynamic-card>a:first-child:after{content:none!important}

/* Dentist.com.vn V9: 4 compact editorial listings in exactly one desktop row. */
.home-blog-section{padding-top:42px;padding-bottom:48px}
.home-blog-section .home-section-heading{margin-bottom:16px}
.dentist-home-knowledge-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dentist-home-knowledge-list .dentist-knowledge-item{display:flex;flex-direction:row;align-items:flex-start;min-width:0;min-height:114px;padding:12px;gap:11px;border:1px solid #e4eaf0;border-radius:9px;box-shadow:none}
.dentist-home-knowledge-list .blog-visual,.dentist-home-knowledge-list .blog-visual:has(img){display:block;width:76px;height:76px;flex:0 0 76px;border-radius:6px;overflow:hidden;padding:0;background:#f0f6fc}
.dentist-home-knowledge-list .blog-visual img,.dentist-home-knowledge-list .blog-visual .blog-visual-img{display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover}
.dentist-home-knowledge-list .blog-copy{padding:0;min-width:0;display:flex;flex-direction:column;flex:1}
.dentist-home-knowledge-list .post-meta{font-size:11px;line-height:1.3;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dentist-home-knowledge-list .blog-copy h3{font-size:14px;line-height:1.4;font-weight:600;margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dentist-home-knowledge-list .blog-copy p{display:none}
.dentist-home-knowledge-list .read-link{font-size:12px;margin-top:auto;display:block;line-height:1.4;color:#087e98;font-weight:600}
/* The current 34 province-level locations are available without free-text typing. */
.home-search .province-select{border:0;outline:0;box-shadow:none;min-width:0;width:100%;height:100%;font-size:15px;color:#20334b;background:transparent;cursor:pointer;padding:0 23px 0 0;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23087e98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 2px center;background-size:16px}
.searchbox .province-select{min-width:0;width:100%;font-size:14px;border:0;background:white;padding:9px 6px;color:#20334b}
.province-select:focus-visible{outline:2px solid #14b9c7;outline-offset:3px;border-radius:4px}
/* Icons for HTML-source menu and optional WordPress menus; plus indicates level 2. */
.sitehead .nav-item>button,.sitehead .nav-item>a,.sitehead .dentist-wp-nav-menu>li>a{display:inline-flex;align-items:center;gap:7px}
.sitehead .dentist-nav-icon{width:18px;height:18px;display:inline-flex;flex:none;align-items:center;justify-content:center;color:#087e98}
.sitehead .dentist-nav-icon svg{width:17px;height:17px;display:block}
.sitehead .nav-item .chev{width:17px;flex:0 0 17px;height:17px;font-size:16px;font-weight:600;line-height:1;transform:none;color:#087e98;border-radius:4px;background:#ebf8fb}
.sitehead .nav-item.is-open>.chev,.sitehead .nav-item.is-open>button .chev{background:#d4f2f5}
.dentist-wp-menu-wrap .dentist-wp-nav-menu>li>a{font-size:14px;font-weight:500}
.dentist-wp-menu-wrap .menu-item-has-children>a:after{content:'+';display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;margin-left:3px;border-radius:4px;background:#ebf8fb;color:#087e98;font-weight:600;font-size:16px}
.dentist-wp-menu-wrap .dentist-submenu-toggle{display:none}
@media(max-width:1100px){
 .dentist-home-knowledge-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1024px){
 .sitehead .nav-item>button,.sitehead .nav-item>a{display:flex;justify-content:flex-start;gap:9px}
 .sitehead .nav-item>button .chev{margin-left:auto}
 .dentist-wp-menu-wrap .dentist-wp-nav-menu>li>a{display:flex;align-items:center;gap:8px;padding-right:45px}
 .dentist-wp-menu-wrap .menu-item-has-children{position:relative}
 .dentist-wp-menu-wrap .menu-item-has-children>a:after{display:none}
 .dentist-wp-menu-wrap .dentist-submenu-toggle{display:flex;align-items:center;justify-content:center;position:absolute;top:4px;right:4px;width:35px;height:35px;border:1px solid #d8e7ed;background:#f5fcff;border-radius:7px;font-size:20px;font-weight:500;color:#087e98}
 .dentist-wp-menu-wrap .menu-item-has-children>.sub-menu{display:none}
 .dentist-wp-menu-wrap .menu-item-has-children.dentist-submenu-open>.sub-menu{display:block}
}
@media(max-width:640px){
 .dentist-home-knowledge-list{grid-template-columns:1fr;gap:9px}
 .dentist-home-knowledge-list .dentist-knowledge-item{min-height:95px;padding:10px}
 .dentist-home-knowledge-list .blog-visual,.dentist-home-knowledge-list .blog-visual:has(img){width:68px;height:68px;flex-basis:68px}
 .dentist-home-knowledge-list .blog-copy h3{font-size:14px;-webkit-line-clamp:2;margin-bottom:5px}
 .home-blog-section{padding:32px 0}
}

/* Prevent the source stat strip from causing sideways scroll at tablet widths. */
@media(min-width:641px) and (max-width:860px){.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stat-item{min-width:0;gap:8px}.stat-item strong{font-size:19px}.stat-item span:last-child{font-size:12px}}
