/* XG UI PRO V1 — shared UX/UI + SEO presentation layer for Xe Ghép Master.
   Loaded last. Keeps the existing content/SEO contracts and normalizes layout only. */
body.xe-ghep-service-site{--xg-shell:1280px;--xg-gap:24px;--xg-section-y:44px;--xg-card-radius:16px;--xg-line:#dce7ef;--xg-ink:#102236;--xg-muted:#60758a;--xg-blue:#0f6aa8;--xg-blue-dark:#075d99;--xg-soft:#f5f9fc}
body.xe-ghep-service-site .txs-shell,
body.xe-ghep-service-site :is(.ct5-container,.txp-shell,.txsp-container,.w11-pro-container,.txseo-shell){width:min(var(--xg-shell),calc(100% - 48px))!important;max-width:var(--xg-shell)!important;margin-inline:auto!important}

/* Header: logo occupies its natural visual width first, then menu, then CTA. */
@media (min-width:1190px){
  body.xe-ghep-service-site .txs-vf-navbar .txs-vf-shell{width:min(var(--xg-shell),calc(100% - 48px))!important;max-width:var(--xg-shell)!important;min-height:74px!important;padding:0!important;gap:22px!important}
  body.xe-ghep-service-site .txs-vf-navbar .txs-vf-left{display:flex!important;align-items:center!important;gap:24px!important;flex:1 1 auto!important;min-width:0!important;max-width:none!important;overflow:visible!important}
  body.xe-ghep-service-site .txs-vf-navbar .txs-vf-brand{display:inline-flex!important;flex:0 0 auto!important;width:auto!important;max-width:280px!important;overflow:visible!important}
  body.xe-ghep-service-site .txs-vf-navbar .txs-vf-logo-box{display:inline-flex!important;width:auto!important;max-width:280px!important;height:48px!important;overflow:visible!important}
  body.xe-ghep-service-site .txs-vf-navbar .txs-vf-logo-img{display:block!important;width:auto!important;height:auto!important;max-width:260px!important;max-height:48px!important;object-fit:contain!important;object-position:left center!important}
  body.xe-ghep-service-site .txs-vf-navbar .txs-vf-logo-text{width:auto!important;max-width:280px!important;white-space:nowrap!important;font-size:var(--txs-vf-logo-text-size,20px)!important;line-height:1.05!important}
  body.xe-ghep-service-site .txs-vf-desktop-menu{flex:0 1 auto!important;min-width:0!important;overflow:visible!important}
  body.xe-ghep-service-site .txs-vf-desktop-menu>ul{gap:2px!important}
  body.xe-ghep-service-site .txs-vf-menu-item>a{min-height:44px!important;padding:0 10px!important;border-radius:9px!important;font-size:14px!important;font-weight:750!important}
  body.xe-ghep-service-site .txs-vf-menu-item>a:hover{background:#f2f7fb!important;color:var(--xg-blue)!important}
  body.xe-ghep-service-site .txs-vf-right{gap:8px!important;margin-left:auto!important}
  body.xe-ghep-service-site .txs-vf-hotline{min-height:42px!important;padding:0 12px!important;border-radius:10px!important}
}
@media (min-width:1190px) and (max-width:1280px){
  body.xe-ghep-service-site .txs-vf-navbar .txs-vf-brand{max-width:220px!important}
  body.xe-ghep-service-site .txs-vf-navbar .txs-vf-logo-img{max-width:210px!important}
  body.xe-ghep-service-site .txs-vf-navbar .txs-vf-left{gap:14px!important}
  body.xe-ghep-service-site .txs-vf-menu-item>a{padding-inline:7px!important;font-size:13px!important}
}

/* Home: denser vertical rhythm, no giant blank bands between sections. */
body.xg-ui01-home .xg-home-ui01 .txm-section{padding:46px 0!important}
body.xg-ui01-home .xg-home-ui01 .txm-section-head{margin-bottom:20px!important}
body.xg-ui01-home .xg-home-ui01 .txm-services{padding-top:42px!important}
body.xg-ui01-home .xg-home-ui01 :is(.txm-local-section,.txm-routes,.xg-money-ui01){scroll-margin-top:112px}
body.xg-ui01-home .xg-home-ui01 .txm-service-grid{gap:12px!important}
body.xg-ui01-home .xg-home-ui01 .txm-service-card{min-height:176px!important;padding:18px!important}
body.xg-ui01-home .xg-home-ui01 .xg-money-content-intro{margin:28px 0 16px!important}
body.xg-ui01-home .xg-home-ui01 .xg-money-content-grid{gap:12px!important}

/* Inner pages: one 1280px grid, consistent edge spacing and section rhythm. */
body.xe-ghep-service-site:not(.taxi-page-home) .taxi-service-main{padding-bottom:0!important}
body.xe-ghep-service-site:not(.taxi-page-home) .ct5-shop-page{padding-top:10px!important}
body.xe-ghep-service-site:not(.taxi-page-home) .ct5-breadcrumb{margin-bottom:10px!important}
body.xe-ghep-service-site:not(.taxi-page-home) :is(.txp-section,.txseo-section){padding-block:18px!important}

/* Xe Ghép Money Page — 1280 container, clean reading width, compact but breathable. */
.xgmp{--xg-blue:#0f6aa8;--xg-ink:#102236;--xg-muted:#60758a;--xg-line:#dbe7ef;--xg-soft:#f5f9fc;width:100%;max-width:1280px;margin:0 auto;padding:0 0 38px;color:var(--xg-ink)}
.xgmp *{box-sizing:border-box}.xgmp a{text-decoration:none}.xgmp-hero{padding:30px 32px;border:1px solid var(--xg-line);border-radius:18px;background:linear-gradient(135deg,#f8fbfd,#eef7fc);margin:8px 0 16px}.xgmp-kicker{font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--xg-blue)}.xgmp h1{margin:7px 0 10px;font-size:clamp(34px,4vw,50px);line-height:1.06;letter-spacing:-.035em}.xgmp-lead{max-width:900px;margin:0;color:var(--xg-muted);font-size:16px;line-height:1.68}.xgmp-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.xgmp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border-radius:10px;font-weight:900}.xgmp-btn-primary{background:#ffca18;color:#17314c}.xgmp-btn-primary:hover{background:#f1ba00;color:#17314c}.xgmp-btn-secondary{background:#fff;border:1px solid #b8cedd;color:#0a5f99}.xgmp-btn-secondary:hover{border-color:#80b5d5;background:#f5fbff;color:#075d99}
.xgmp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.xgmp-card,.xgmp-section{border:1px solid var(--xg-line);border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(15,62,91,.035)}.xgmp-card{padding:17px}.xgmp-card small{display:block;color:var(--xg-muted);font-weight:800;margin-bottom:4px}.xgmp-card strong{font-size:18px}.xgmp-section{padding:24px 26px;margin:0 0 14px}.xgmp-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:15px}.xgmp-head h2{margin:4px 0 0;font-size:clamp(23px,2.4vw,30px);line-height:1.16}.xgmp-head p{max-width:650px;margin:0;color:var(--xg-muted);line-height:1.55;font-size:14.5px}.xgmp-table-wrap{overflow-x:auto;border:1px solid #e5edf3;border-radius:13px}.xgmp-table{width:100%;border-collapse:collapse}.xgmp-table th,.xgmp-table td{padding:12px 13px;border-bottom:1px solid var(--xg-line);text-align:left;vertical-align:top}.xgmp-table tr:last-child td{border-bottom:0}.xgmp-table th{background:var(--xg-soft);font-size:12.5px;white-space:nowrap}.xgmp-mode-grid,.xgmp-vehicle-grid,.xgmp-support-grid,.xgmp-news-grid,.xgmp-gallery{display:grid;gap:11px}.xgmp-mode-grid,.xgmp-vehicle-grid,.xgmp-support-grid,.xgmp-news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.xgmp-mini{padding:16px;border:1px solid var(--xg-line);border-radius:14px;background:#fff}.xgmp-mini h3{margin:0 0 7px;font-size:18px;line-height:1.28}.xgmp-mini p{margin:0;color:var(--xg-muted);line-height:1.55;font-size:14.5px}.xgmp-mini a{display:block;color:inherit}.xgmp-mini a:hover h3{color:var(--xg-blue)}.xgmp-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.xgmp-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;border:1px solid var(--xg-line)}.xgmp-copy{max-width:960px;font-size:16.5px;line-height:1.78;color:#334d64}.xgmp-content-section{padding-top:18px;margin-top:18px;border-top:1px solid var(--xg-line)}.xgmp-content-section h2{font-size:clamp(22px,2.2vw,28px);line-height:1.25;margin:0 0 11px}.xgmp-content-section h3{font-size:19px;margin:15px 0 8px}.xgmp-content-section p{margin:0 0 13px}.xgmp-content-section ul{margin:0 0 14px;padding-left:21px}.xgmp-geo{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.xgmp-geo ul{margin:10px 0 0;padding-left:18px;color:#36546d}.xgmp-faq details{border-top:1px solid var(--xg-line);padding:13px 0}.xgmp-faq details:first-of-type{border-top:0}.xgmp-faq summary{cursor:pointer;font-weight:900;line-height:1.45}.xgmp-faq p{margin:8px 0 0;color:var(--xg-muted);line-height:1.65}.xgmp-empty{color:var(--xg-muted);font-style:italic}

/* Local-service / legacy money hosts: normalize margins if they appear on this master. */
body.xe-ghep-service-site .ct5-local-service-page-host .lsp-page{padding-bottom:28px!important}
body.xe-ghep-service-site .ct5-local-service-page-host .lsp-section{margin-top:18px!important;padding:26px 28px!important}
body.xe-ghep-service-site .ct5-local-service-page-host :is(.lsp-hero,.lsp-call-hero){margin-bottom:14px!important}

/* Better focus state = keyboard UX + accessibility. */
body.xe-ghep-service-site :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid rgba(15,106,168,.28)!important;outline-offset:2px!important}

@media(max-width:991px){
  body.xe-ghep-service-site .txs-shell,body.xe-ghep-service-site :is(.ct5-container,.txp-shell,.txsp-container,.w11-pro-container,.txseo-shell){width:min(100% - 32px,1280px)!important}
  .xgmp-mode-grid,.xgmp-vehicle-grid,.xgmp-support-grid,.xgmp-news-grid,.xgmp-grid{grid-template-columns:1fr 1fr}.xgmp-gallery{grid-template-columns:1fr 1fr}.xgmp-head{display:block}.xgmp-head p{margin-top:8px}
}
@media(max-width:767px){
  body.xg-ui01-home .xg-home-ui01 .txm-section{padding:36px 0!important}
  body.xe-ghep-service-site .txs-shell,body.xe-ghep-service-site :is(.ct5-container,.txp-shell,.txsp-container,.w11-pro-container,.txseo-shell){width:min(100% - 24px,1280px)!important}
  .xgmp{padding-bottom:24px}.xgmp-hero,.xgmp-section{padding:19px 18px}.xgmp-hero{margin-top:6px}.xgmp h1{font-size:clamp(30px,9vw,40px)}.xgmp-grid,.xgmp-mode-grid,.xgmp-vehicle-grid,.xgmp-support-grid,.xgmp-news-grid,.xgmp-geo{grid-template-columns:1fr}.xgmp-table{min-width:680px}.xgmp-copy{font-size:16px}
}
