/* Taxi Master Inner Pages Pro — shared visual system for money/supporting/static pages. */
body.taxi-service-site:not(.taxi-page-home){--tip-bg:#f5f8fb;--tip-panel:#fff;--tip-ink:#102a43;--tip-muted:#60758a;--tip-line:#dce7ef;--tip-blue:#0f6aa8;--tip-blue-dark:#075d99;--tip-soft:#edf6fb;--tip-yellow:#ffc21c;background:var(--tip-bg)}
body.taxi-service-site:not(.taxi-page-home) .taxi-service-main{background:var(--tip-bg)}
body.taxi-service-site:not(.taxi-page-home) .taxi-service-main>section:first-child,
body.taxi-service-site:not(.taxi-page-home) .taxi-service-main>main:first-child{padding-top:14px!important}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-shell,.txsp-container,.ct5-container,.w11-pro-container,.txseo-shell){width:min(1280px,calc(100% - 48px));max-width:1280px;margin-inline:auto}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-page,.txsp-wrap,.ct5-page,.route-seo-page,.service-cluster-page,.geo-landing-page,.txseo-page-pro){background:transparent!important}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-section,.txseo-section){padding-block:22px}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-section.soft,.txseo-section.is-soft){background:#eef4f8}
body.taxi-service-site:not(.taxi-page-home) h1{font-size:clamp(34px,4.3vw,54px);line-height:1.05;letter-spacing:-.04em}
body.taxi-service-site:not(.taxi-page-home) h2{line-height:1.12}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-breadcrumb,.txsp-breadcrumb,.ct5-breadcrumb,.breadcrumb-mini,.txseo-breadcrumb){margin-bottom:10px!important;color:#71869a;font-size:13px;font-weight:700}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-card,.txp-side-box,.txp-feature-copy,.txsp-owner-card,.txsp-contact-card,.txsp-related a,.route-card,.card-soft,.support-box,.txseo-card,.txseo-content-card,.txseo-side-card){border:1px solid var(--tip-line)!important;border-radius:16px!important;background:var(--tip-panel)!important;box-shadow:0 8px 24px rgba(19,62,91,.045)!important}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-card,.route-card,.card-soft,.txsp-related a,.txseo-card){transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
@media (hover:hover){body.taxi-service-site:not(.taxi-page-home) :is(.txp-card,.route-card,.card-soft,.txsp-related a,.txseo-card):hover{transform:translateY(-2px);border-color:#bdd7e7!important;box-shadow:0 12px 28px rgba(19,62,91,.075)!important}}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-content,.txsp-article,.prose-content,.txseo-prose){font-size:17px;line-height:1.78;color:#385268}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-content,.txsp-article,.prose-content,.txseo-prose) h2{margin:32px 0 12px;font-size:clamp(25px,2.7vw,34px);color:var(--tip-ink)}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-content,.txsp-article,.prose-content,.txseo-prose) h3{margin:25px 0 9px;font-size:22px;color:var(--tip-ink)}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-content,.txsp-article,.prose-content,.txseo-prose) :is(p,ul,ol){margin-bottom:15px}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-content,.txsp-article,.prose-content,.txseo-prose) img{border-radius:14px;height:auto}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-btn.primary,.txsp-call,.btn-primary,.txseo-btn-primary){background:var(--tip-blue)!important;border-color:var(--tip-blue)!important;color:#fff!important}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-btn.primary,.txsp-call,.btn-primary,.txseo-btn-primary):hover{background:var(--tip-blue-dark)!important;border-color:var(--tip-blue-dark)!important}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-btn,.txsp-call,.txsp-zalo,.btn,.txseo-btn){border-radius:11px;font-weight:800}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-side,.txsp-side,.txseo-side){top:104px}
/* Legacy route / geo pages: normalize away the marketplace/dashboard look. */
body.taxi-service-site:not(.taxi-page-home) :is(.route-seo-page,.service-cluster-page,.geo-landing-page){padding-block:16px 22px!important}
body.taxi-service-site:not(.taxi-page-home) :is(.route-seo-page,.service-cluster-page,.geo-landing-page) :is(.route-hero,.hero){padding:30px!important;border:1px solid #dce7ef!important;border-radius:18px!important;background:linear-gradient(135deg,#f8fcff 0%,#eef7fc 100%)!important;color:var(--tip-ink)!important;box-shadow:none!important}
body.taxi-service-site:not(.taxi-page-home) :is(.route-seo-page,.service-cluster-page,.geo-landing-page) :is(.route-hero,.hero) :is(.text-white-50,p){color:#5e7488!important}
body.taxi-service-site:not(.taxi-page-home) :is(.route-seo-page,.service-cluster-page,.geo-landing-page) .metric{font-size:20px!important;color:var(--tip-ink)!important}
body.taxi-service-site:not(.taxi-page-home) :is(.route-seo-page,.service-cluster-page,.geo-landing-page) .answer-box{border:1px solid #d9e8f1!important;background:#fff!important;border-radius:16px!important;padding:20px!important}
/* Generic static / SEO page */
.txseo-page-pro{padding:16px 0 24px}
.txseo-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:20px;align-items:stretch;margin-bottom:14px}
.txseo-hero-copy{padding:32px;border:1px solid var(--tip-line);border-radius:18px;background:linear-gradient(135deg,#fff,#f1f8fc)}
.txseo-kicker{color:var(--tip-blue);font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.txseo-hero h1{margin:9px 0 13px}.txseo-lead{max-width:820px;margin:0;color:var(--tip-muted);font-size:17px;line-height:1.65}
.txseo-hero-side{display:grid;align-content:center;gap:10px;padding:24px;border:1px solid var(--tip-line);border-radius:18px;background:#fff}
.txseo-hero-side strong{font-size:19px;color:var(--tip-ink)}.txseo-hero-side p{margin:0;color:var(--tip-muted);font-size:14px}
.txseo-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.txseo-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:var(--tip-soft);color:#245779;font-size:12px;font-weight:800}
.txseo-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.txseo-content-card{padding:30px}.txseo-side{display:grid;gap:14px;position:sticky;top:104px}.txseo-side-card{padding:20px}.txseo-side-card h2{margin:5px 0 8px;font-size:20px}.txseo-side-card p{margin:0 0 14px;color:var(--tip-muted);font-size:14px}.txseo-side-card a{color:var(--tip-blue);font-weight:850}
.txseo-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.txseo-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border:1px solid var(--tip-line);background:#fff;color:var(--tip-ink)}
/* Supporting detail refinement */
body.taxi-service-site .txsp-wrap{padding-top:14px!important;padding-bottom:20px!important}.txsp-hero{margin-bottom:14px!important}.txsp-layout{gap:18px!important}.txsp-intro-strip,.txsp-quick-guide{margin-bottom:12px!important}.txsp-owner-card p{color:var(--tip-muted)!important}
/* Money-page host: preserve SEO order, only make rhythm leaner and cleaner. */
body.taxi-page-shop-detail .ct5-shop-page-local-service .ct5-container{padding-top:8px!important;padding-bottom:10px!important}
body.taxi-page-shop-detail .ct5-shop-page-local-service :is(.ct5-panel,.ct5-ad-card){border-color:var(--tip-line)!important;box-shadow:0 8px 24px rgba(19,62,91,.045)!important}
body.taxi-page-shop-detail .ct5-shop-page-local-service h1{font-size:clamp(34px,4vw,50px)!important;line-height:1.05!important}
/* Mobile */
@media(max-width:991px){.txseo-hero,.txseo-layout{grid-template-columns:1fr}.txseo-side{position:static}.txseo-hero{gap:14px}body.taxi-service-site:not(.taxi-page-home) :is(.txp-side,.txsp-side){position:static}}
@media(max-width:767px){body.taxi-service-site:not(.taxi-page-home) .taxi-service-main>section:first-child,body.taxi-service-site:not(.taxi-page-home) .taxi-service-main>main:first-child{padding-top:8px!important}body.taxi-service-site:not(.taxi-page-home) :is(.txp-shell,.txsp-container,.ct5-container,.w11-pro-container,.txseo-shell){width:min(100% - 28px,1280px)}body.taxi-service-site:not(.taxi-page-home) :is(.txp-section,.txseo-section){padding-block:16px}.txseo-page-pro{padding:10px 0 18px}.txseo-hero-copy,.txseo-content-card{padding:20px}.txseo-hero-side,.txseo-side-card{padding:18px}.txseo-layout{gap:16px}.txseo-cta{flex-direction:column}.txseo-btn{width:100%}.txsp-layout{gap:12px!important}}

/* CN08-AUDIT-1280-PRO */
/* Route-by-route container normalization. Full-width section backgrounds remain full bleed;
   only the content shells are capped at the shared 1280px desktop grid. */
body.taxi-service-site:not(.taxi-page-home){--cn08-shell:1280px;--cn08-gutter:24px;--cn08-gap:20px;overflow-x:hidden}
body.taxi-service-site:not(.taxi-page-home) .taxi-service-main{overflow:clip}
body.taxi-service-site:not(.taxi-page-home) :is(
  .txp-shell,.txsp-container,.ct5-container,.w11-pro-container,.txseo-shell,
  .txnews-wrap,.dt-news-wrap,.lgc-shell,.lgp-shell,.search-page-shell,.ctcat-container,
  .wt-market-container,.wt-shop-container,.posts-container,.ua-shell,.kc-container,.authx-container
){
  width:min(var(--cn08-shell),calc(100% - 48px))!important;
  max-width:var(--cn08-shell)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}

/* Plain Bootstrap pages (favorites, conversations and legacy public utilities): only normalize the OUTER rail. */
body.taxi-service-site:not(.taxi-page-home) .taxi-service-main > .container{
  width:min(var(--cn08-shell),calc(100% - 48px))!important;
  max-width:var(--cn08-shell)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
/* Auth page uses a 1280 outer rail; the card itself may remain intentionally narrower for form readability. */
body.taxi-page-auth .authx-container{max-width:1280px!important;width:min(1280px,calc(100% - 48px))!important;padding-left:0!important;padding-right:0!important}
body.taxi-page-auth .authx-card{max-width:1120px;margin-left:auto;margin-right:auto}

/* Header/footer/content rails use the same desktop axis. */
body.taxi-service-site:not(.taxi-page-home) :is(.txs-vf-shell,.txf-wrap){
  width:min(var(--cn08-shell),calc(100% - 48px))!important;
  max-width:var(--cn08-shell)!important;
  margin-inline:auto!important;
}

/* NEWS INDEX + CATEGORY: legacy 1180/1200 rules must not shrink the magazine rail. */
body.taxi-page-news-index :is(.txnews-wrap,.dt-news-wrap),
body.taxi-page-news-category :is(.txnews-wrap,.dt-news-wrap){
  width:min(var(--cn08-shell),calc(100% - 48px))!important;
  max-width:var(--cn08-shell)!important;
}
body.taxi-page-news-index :is(.txnews-home-feature,.txnews-interest,.txnews-main),
body.taxi-page-news-category :is(.dt-news-topbar,.dt-category-hero,.dt-topic-cluster-wrap){
  margin-bottom:18px!important;
}

/* NEWS DETAIL: align media, article and sidebar to one 1280 rail; remove the large visual void. */
body.taxi-page-news-detail .txp-section{padding-block:20px!important}
body.taxi-page-news-detail .txp-content-grid{
  grid-template-columns:minmax(0,1fr) 320px!important;
  gap:22px!important;
}
body.taxi-page-news-detail .txp-news-detail-cover{
  max-width:none!important;
  width:100%!important;
  margin:0 0 20px!important;
  border-radius:16px!important;
}
body.taxi-page-news-detail .txp-content{
  padding:28px 30px;
  border:1px solid var(--tip-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(19,62,91,.04);
}
body.taxi-page-news-detail .txp-side{top:92px!important}
body.taxi-page-news-detail .txp-side-box{padding:18px!important;border-radius:16px!important}

/* SUPPORTING: keep the owner sidebar useful without squeezing long-form content. */
body.txs-supporting-page .txsp-wrap{padding:10px 0 34px!important}
body.txs-supporting-page .txsp-layout{
  grid-template-columns:minmax(0,1fr) 320px!important;
  gap:20px!important;
  margin-top:16px!important;
}
body.txs-supporting-page .txsp-content{padding:26px 28px!important}
body.txs-supporting-page .txsp-hero-copy{padding:26px 30px!important}
body.txs-supporting-page .txsp-intro-strip,
body.txs-supporting-page .txsp-quick-guide{margin-bottom:14px!important}

/* MONEY PAGE / local-service shop host: 1280 rail, tighter vertical rhythm, no nested shrink. */
body.taxi-page-shop-detail .ct5-shop-page-local-service > .ct5-container,
body.taxi-page-shop-detail .ct5-local-service-page-host > .ct5-container{
  width:min(var(--cn08-shell),calc(100% - 48px))!important;
  max-width:var(--cn08-shell)!important;
  padding-left:0!important;
  padding-right:0!important;
}
body.taxi-page-shop-detail .mmp{width:100%!important;max-width:1280px!important;margin-top:0!important}
body.taxi-page-shop-detail .mmp-section{margin-top:16px!important;padding:28px!important}
body.taxi-page-shop-detail .mmp-parent{margin-top:14px!important}
body.taxi-page-shop-detail .mmp-final-cta{margin-top:16px!important}
body.taxi-page-shop-detail .mmp-jump{margin-top:10px!important}

/* GENERIC SEO / ROUTE / SERVICE CLUSTER / GEO */
body.taxi-page-content .txseo-layout{grid-template-columns:minmax(0,1fr) 320px!important;gap:20px!important}
body.taxi-page-content .txseo-hero{gap:18px!important;margin-bottom:14px!important}
body.taxi-page-content .txseo-content-card{padding:28px!important}
body.taxi-page-route :is(.route-seo-page,.w11-pro-container),
body.taxi-page-service-cluster :is(.service-cluster-page,.w11-pro-container),
body.taxi-page-geo-landing :is(.geo-landing-page,.w11-pro-container){
  width:min(var(--cn08-shell),calc(100% - 48px))!important;
  max-width:var(--cn08-shell)!important;
}
body.taxi-page-route :is(.route-hero,.card,.answer-box),
body.taxi-page-service-cluster :is(.hero,.card,.answer-box),
body.taxi-page-geo-landing :is(.hero,.card,.answer-box){margin-bottom:16px!important}

/* PRICING + LOGISTICS: source templates used 1120/1160. */
body.taxi-page-pricing :is(.txp-shell,.lgp-shell,.lgc-shell){
  width:min(var(--cn08-shell),calc(100% - 48px))!important;
  max-width:var(--cn08-shell)!important;
}
.lgc-shell,.lgp-shell{box-sizing:border-box}
.lgc-grid{grid-template-columns:minmax(0,1fr) 360px!important;gap:20px!important}
.lgc-section,.lgp-section{padding-block:28px!important}

/* CATEGORY / LISTING / SEARCH rails. */
body.taxi-page-category :is(.ctcat-container,.w11-pro-container,.ct5-container,.wt-market-container),
body.taxi-page-search :is(.search-page-shell,.w11-pro-container,.ct5-container){
  width:min(var(--cn08-shell),calc(100% - 48px))!important;
  max-width:var(--cn08-shell)!important;
}

/* Common UX guardrails found during template audit. */
body.taxi-service-site:not(.taxi-page-home) :is(.txp-shell,.txsp-container,.ct5-container,.txseo-shell,.txnews-wrap,.dt-news-wrap,.lgc-shell,.lgp-shell,.w11-pro-container) > *{min-width:0}
body.taxi-service-site:not(.taxi-page-home) img{max-width:100%;height:auto}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-card,.txp-side-box,.txsp-content,.txsp-side>section,.txseo-content-card,.txseo-side-card,.mmp-section){box-sizing:border-box}
body.taxi-service-site:not(.taxi-page-home) :is(.txp-section,.txseo-section){scroll-margin-top:92px}

@media(max-width:991.98px){
  body.taxi-service-site:not(.taxi-page-home){--cn08-gutter:16px}
  body.taxi-service-site:not(.taxi-page-home) :is(
    .txp-shell,.txsp-container,.ct5-container,.w11-pro-container,.txseo-shell,
    .txnews-wrap,.dt-news-wrap,.lgc-shell,.lgp-shell,.search-page-shell,.ctcat-container,
    .wt-market-container,.wt-shop-container,.posts-container,.ua-shell,.kc-container,.authx-container,.txs-vf-shell,.txf-wrap
  ){
    width:min(100% - 32px,1280px)!important;
    max-width:1280px!important;
  }
  body.taxi-service-site:not(.taxi-page-home) .taxi-service-main > .container{width:min(100% - 32px,1280px)!important;max-width:1280px!important}
  body.taxi-page-news-detail .txp-content-grid,
  body.txs-supporting-page .txsp-layout,
  body.taxi-page-content .txseo-layout,
  .lgc-grid{grid-template-columns:1fr!important}
  body.taxi-page-news-detail .txp-side,
  body.txs-supporting-page .txsp-side,
  body.taxi-page-content .txseo-side{position:static!important}
}
@media(max-width:640px){
  body.taxi-service-site:not(.taxi-page-home) :is(
    .txp-shell,.txsp-container,.ct5-container,.w11-pro-container,.txseo-shell,
    .txnews-wrap,.dt-news-wrap,.lgc-shell,.lgp-shell,.search-page-shell,.ctcat-container,
    .wt-market-container,.wt-shop-container,.posts-container,.ua-shell,.kc-container,.authx-container,.txs-vf-shell,.txf-wrap
  ){
    width:calc(100% - 20px)!important;
    max-width:calc(100% - 20px)!important;
  }
  body.taxi-service-site:not(.taxi-page-home) .taxi-service-main > .container{width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important}
  body.taxi-page-auth .authx-card{max-width:none}
  body.taxi-page-news-detail .txp-content{padding:20px 17px}
  body.txs-supporting-page .txsp-content{padding:20px 17px!important}
  body.taxi-page-shop-detail .mmp-section{padding:21px 17px!important}
  .lgc-section,.lgp-section{padding-block:20px!important}
}
