/* MiễnPhí.vn V2.3 — full-width header, 2-section homepage, compact type across VietnamYello V8 */
:root{--fontmacdinh:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;--vy-text-size:13px}
html{font-size:14px!important}
body.vy-reference{font-size:13px!important;line-height:1.58!important;letter-spacing:-.008em}
body.vy-reference *:not(svg):not(path):not(i){font-family:var(--fontmacdinh)!important}
body.vy-reference :is(h1,h2,h3,h4,h5,h6,strong,b){font-weight:600!important;letter-spacing:-.022em}
body.vy-reference :is(input,button,select,textarea,label){font-size:13px!important;line-height:1.45!important}
/* Header spans viewport: no previous 1,250px max-width restriction. */
body.vy-reference .vy8-header{width:100%;max-width:none}
body.vy-reference .vy8-header .vy8-shell{width:100%;max-width:none;margin:0;padding-left:clamp(16px,2.4vw,44px);padding-right:clamp(16px,2.4vw,44px)}
body.vy-reference .vy8-inner{min-height:68px;gap:clamp(7px,1vw,18px);justify-content:space-between;flex-wrap:nowrap}
body.vy-reference .vy8-brand{width:120px;flex:0 0 auto}
body.vy-reference .vy8-brand img{width:110px!important;height:42px!important;max-width:110px}
body.vy-reference .vy8-nav{flex:1 1 auto;min-width:0;max-width:100%;gap:2px;justify-content:center;margin:0 4px}
body.vy-reference .vy8-nav .mft-primary-menu{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;max-width:100%;padding:0;margin:0;list-style:none}
body.vy-reference .vy8-nav .menu-item{min-width:0}
body.vy-reference .vy8-nav-link,body.vy-reference .vy8-nav .menu-item>a{font-size:12px!important;line-height:1.3!important;padding:9px 7px;white-space:nowrap;font-weight:500!important}
body.vy-reference .vy8-nav-link .vy8-icon{width:14px;height:14px}
body.vy-reference .vy8-actions{gap:5px;flex:0 0 auto;margin-left:0}
body.vy-reference .vy8-actions :is(a,button){font-size:11.5px!important;min-height:35px;gap:5px}
body.vy-reference .vy8-add,body.vy-reference .vy8-partner{padding:8px 9px}
body.vy-reference .vy8-signin{padding:8px 4px}
body.vy-reference .vy8-action-icon{width:35px;min-width:35px}
body.vy-reference .vy8-header-form input{font-size:13px!important}
body.vy-reference .vy8-header-form button{font-size:12px!important}
/* Home hero + content listing compact */
body.vy-reference .v6-main{padding-top:22px}
body.vy-reference .v6-breadcrumb{font-size:11px!important;margin-bottom:15px}
body.vy-reference .v6-eyebrow{font-size:10px!important;margin-bottom:6px}
body.vy-reference .v6-main h1{font-size:clamp(25px,2.5vw,34px)!important;line-height:1.26!important;margin-bottom:8px}
body.vy-reference .v6-subtitle{font-size:13px!important;line-height:1.6!important;margin-bottom:17px}
body.vy-reference .v6-search-area{padding-bottom:17px}
body.vy-reference .v6-control-caption{font-size:10px!important}
body.vy-reference .v6-field input,body.vy-reference .v6-field select{font-size:13px!important}
body.vy-reference .v6-search-btn{font-size:13px!important;min-width:125px}
body.vy-reference .v6-toolbar h2{font-size:18px!important;line-height:1.3!important}
body.vy-reference .v6-count,body.vy-reference .v6-filterbar label{font-size:12px!important}
body.vy-reference .v6-tabs :is(a,button){font-size:12px!important;min-height:37px;padding-top:8px;padding-bottom:9px}
body.vy-reference .v6-filterbar select{height:37px;font-size:12px!important;min-width:150px}
body.vy-reference .v6-kind{font-size:9px!important}
body.vy-reference .v6-entry h3{font-size:16px!important;line-height:1.4!important;margin-bottom:5px}
body.vy-reference .v6-entry-sub{font-size:12px!important;line-height:1.6!important;margin-bottom:9px}
body.vy-reference .v6-entry-category,body.vy-reference .v6-entry-details span{font-size:11px!important}
body.vy-reference .v6-entry-linkrow :is(a,button){font-size:11px!important}
body.vy-reference .v6-entry{padding:14px!important;min-height:0}
body.vy-reference .v6-footer-brand p,body.vy-reference .v6-footer-links a{font-size:12px!important}
body.vy-reference .v6-footer-links strong{font-size:12px!important}
/* Exactly 2 listing sections, compact navigation only for other content */
body.vy-reference .mf-compact-nav{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;max-width:100%;padding:15px 0 4px;white-space:nowrap}
body.vy-reference .mf-compact-nav a{flex:0 0 auto;font-size:11px!important;padding:8px 10px;border-radius:6px}
body.vy-reference .mf-home-section{margin-top:24px;padding-top:18px}
body.vy-reference .mf-home-toolbar{margin-bottom:12px}
body.vy-reference .mf-home-toolbar h2{font-size:18px!important;margin:3px 0 0}
body.vy-reference .mf-home-kicker{font-size:9px!important}
body.vy-reference .mf-home-more{font-size:11px!important}
body.vy-reference .mf-home-grid{gap:11px 14px}
body.vy-reference .mf-home-grid .v6-entry{padding:13px!important;gap:9px}
body.vy-reference .mf-home-grid .v6-entry h3{font-size:14px!important;line-height:1.45!important}
body.vy-reference .mf-home-grid .v6-entry-sub{font-size:11.5px!important;line-height:1.55!important;margin-bottom:7px}
body.vy-reference .mf-home-grid .v6-entry-details span{font-size:10px!important}
body.vy-reference .mf-home-grid .v6-entry-thumb{width:78px!important;height:78px!important}
body.vy-reference .mf-home-grid .mf-card-image-link{flex:0 0 78px}
body.vy-reference .mf-section-empty{font-size:12px!important;padding:16px}
/* Archive + detail pages (same structural layout, smaller typography) */
body.vy-reference .vy8-directory-intro h1{font-size:26px!important;line-height:1.3!important}
body.vy-reference .vy8-directory-intro p{font-size:13px!important}
body.vy-reference .vy8-directory-sectionbar h2{font-size:16px!important}
body.vy-reference .vy8-dir-group-head h2{font-size:15px!important}
body.vy-reference .vy8-dir-links a{font-size:12px!important}
body.vy-reference .vy8-dir-summary strong{font-size:17px!important}
body.vy-reference .vy8-partner-copy h1{font-size:clamp(25px,2.3vw,35px)!important}
body.vy-reference .vy8-partner-copy>p{font-size:13px!important}
body.vy-reference .vy8-partner-card h2{font-size:18px!important}
body.vy-reference .vy8-partner-card :is(input,select,textarea){font-size:12px!important}
body.vy-reference .ref-category-container>h1,body.vy-reference .ref-company-container>h1{font-size:27px!important}
body.vy-reference .ref-category-lead{font-size:13px!important}
body.vy-reference .ref-result h2{font-size:18px!important}
body.vy-reference .ref-result-address,body.vy-reference .ref-row-spec,body.vy-reference .ref-detail{font-size:12px!important;line-height:1.6!important}
body.vy-reference .ref-profile-section h2,body.vy-reference .ref-related-searches h2{font-size:18px!important}
body.vy-reference .ref-profile-section>p{font-size:12px!important}
body.vy-reference .ref-filter-section h2{font-size:18px!important}
body.vy-reference .ref-inline-links a{font-size:12px!important}
body.vy-reference .ref-action{font-size:12px!important;height:39px}
/* Proper collapse of desktop menu on small laptop/tablet; preserve mobile menu interactions. */
@media (max-width:1180px){
  body.vy-reference .vy8-inner{min-height:62px;flex-wrap:wrap;gap:8px}
  body.vy-reference .vy8-brand{width:106px}
  body.vy-reference .vy8-brand img{width:98px!important;height:40px!important}
  body.vy-reference .vy8-hamburger{display:inline-flex!important}
  body.vy-reference .vy8-nav{display:none;order:3;width:100%;flex-basis:100%;margin:0;padding:8px 0 12px;border-top:1px solid #eef2ef;align-items:stretch;flex-direction:column;max-height:70vh;overflow-y:auto;gap:2px}
  body.vy-reference .vy8-header.vy8-menu-open .vy8-nav{display:flex}
  body.vy-reference .vy8-nav .mft-primary-menu{display:flex;flex-direction:column;align-items:stretch;gap:2px;width:100%}
  body.vy-reference .vy8-nav .menu-item>a,body.vy-reference .vy8-nav-link{display:flex;width:100%;min-height:38px;padding:10px 12px;font-size:13px!important}
  body.vy-reference .vy8-nav .sub-menu{display:block;position:static;box-shadow:none;border:0;padding-left:15px;min-width:0}
  body.vy-reference .vy8-actions{margin-left:auto}
}
@media (max-width:780px){
  body.vy-reference .vy8-header .vy8-shell{padding-left:15px;padding-right:15px}
  body.vy-reference .vy8-inner{min-height:59px}
  body.vy-reference .vy8-add span,body.vy-reference .vy8-partner,body.vy-reference .vy8-signin{display:none!important}
  body.vy-reference .v6-main h1{font-size:25px!important}
  body.vy-reference .v6-subtitle{font-size:12px!important}
  body.vy-reference .v6-entry h3{font-size:14px!important}
  body.vy-reference .v6-entry-sub{font-size:11.5px!important}
  body.vy-reference .mf-home-toolbar h2{font-size:16px!important}
  body.vy-reference .mf-home-grid{grid-template-columns:1fr}
  body.vy-reference .mf-home-grid .v6-entry-thumb{width:70px!important;height:70px!important}
  body.vy-reference .mf-home-grid .mf-card-image-link{flex:0 0 70px}
  body.vy-reference .mf-compact-nav{margin-left:-2px;margin-right:-2px}
  body.vy-reference .ref-category-container>h1,body.vy-reference .ref-company-container>h1{font-size:23px!important}
}
@media (min-width:1181px) and (max-width:1480px){
  body.vy-reference .vy8-nav-link .vy8-icon{display:none}
  body.vy-reference .vy8-nav .menu-item>a,body.vy-reference .vy8-nav-link{padding:8px 5px;font-size:11.5px!important}
  body.vy-reference .vy8-actions{gap:3px}
}
@media(max-width:380px){
  body.vy-reference .vy8-header .vy8-shell{padding-left:12px;padding-right:12px}
  body.vy-reference .mf-home-toolbar{align-items:flex-start}
  body.vy-reference .mf-home-more{white-space:nowrap}
}
