/* XG P49 | XGv33 + P48: background/foreground ROLE preservation.
   Loaded only for non-original themes. Do not edit spacing, structure or images.
   Dark surfaces take the chosen deep color; WHITE/light body text remains light.
   Important: brand network icons, gold decorations and reference prices stay unchanged. */

/* Every real footer (home and subpages) must change its BACKGROUND, not its white text. */
html body footer.trf61,
html body footer.qnvf-p05-footer,
html body footer.qnvf-p15-footer,
html body footer.qnvf23f-footer,
html body footer.txs-footer,
html body footer.txf-footer,
html body .txs-footer,
html body .trf61 {
  background:linear-gradient(180deg,var(--xg-footer) 0%,color-mix(in srgb,var(--xg-footer) 88%,#000) 100%)!important;
  color:var(--xg-footer-ink)!important;
}
/* Some historic homepage rules hardcode footer surface with !important. */
html body.transport-native.qnvf-p10-home footer.trf61,
html body.transport-native.qnvf-p09-home footer.trf61,
html body.transport-native.transport-home-p81 footer.trf61,
html body.transport-native.qnvf-p17-home footer.trf61 {
  background:linear-gradient(180deg,var(--xg-footer),color-mix(in srgb,var(--xg-footer) 88%,#000))!important;
}
html body footer.trf61 :is(.trf61-intro,.trf61-slogan,.trf61-info,.trf61-bottom,
  .trf61-svg,.trf61-list a,.trf61-list button,.trf61-bottom nav a,.trf61-rule+.trf61-info),
html body footer.qnvf-p05-footer :is(.trf61-intro,.trf61-slogan,.trf61-info,.trf61-bottom,
  .trf61-svg,.trf61-list a,.trf61-list button,.trf61-bottom nav a),
html body footer.qnvf-p15-footer :is(.trf61-intro,.trf61-slogan,.trf61-info,.trf61-bottom,
  .trf61-svg,.trf61-list a,.trf61-list button,.trf61-bottom nav a),
html body footer.qnvf23f-footer :is(.footer-merge-copy,.footer-merge-copy a,.footer-merge-copy p,.footer-merge-copy span),
html body .txs-footer :is(p,small,li,span,a) {
  color:var(--xg-footer-ink)!important;
}
html body footer.trf61 :is(h2,h3,h4,.trf61-brand h2),
html body footer.qnvf-p05-footer :is(h2,h3,h4),
html body footer.qnvf-p15-footer :is(h2,h3,h4),
html body footer.qnvf23f-footer :is(h2,h3,h4) {color:#fff!important}
html body footer.trf61 .trf61-list :is(a,button):hover,
html body footer.qnvf-p05-footer .trf61-list :is(a,button):hover,
html body footer.qnvf-p15-footer .trf61-list :is(a,button):hover {
  color:#ffd21b!important;
}
html body footer.trf61 .xgqn-design-credit,
html body footer.qnvf23f-footer .xgqn-design-credit {color:#ffb52b!important}

/* Original solid-primary categories: text/icons are INVERSE; no foreground-only tint. */
html body.transport-native .tmvf-card:not(.xg-cat-custom-color),
html body.taxi-service-site .tmvf-card:not(.xg-cat-custom-color) {
 background:var(--xg-primary)!important;
 color:var(--xg-on-primary)!important;
}
html body.transport-native .tmvf-card:not(.xg-cat-custom-color) :is(.tmvf-label,.tmvf-title,.tmvf-tag,.tmvf-desc,.tmvf-description,.tmvf-action,.tmvf-icon),
html body.taxi-service-site .tmvf-card:not(.xg-cat-custom-color) :is(.tmvf-label,.tmvf-title,.tmvf-tag,.tmvf-desc,.tmvf-description,.tmvf-action,.tmvf-icon) {
 color:inherit!important;
}
html body.transport-native .tmvf-card:not(.xg-cat-custom-color):hover,
html body.taxi-service-site .tmvf-card:not(.xg-cat-custom-color):hover {
 background:var(--xg-primary-dark)!important;
 color:var(--xg-on-dark)!important;
}

/* Original directory: ink stays DARK; only link hover, action and icon recolor. */
html body.transport-native .qn17-directory .qn17-directory-column :is(a,button):not(:hover):not(:focus-visible){
 color:var(--xg-ink)!important;
 background:transparent!important;
 background-image:none!important;
}
html body.transport-native .qn17-directory .qn17-directory-column :is(a,button):is(:hover,:focus-visible){
 background:transparent!important;
 background-image:none!important;
 color:var(--xg-link)!important;
}
html body.transport-native .qn17-directory .qn17-directory-column .qn17-directory-name{color:inherit!important}
html body.transport-native .qn17-directory .qn17-directory-column .qn17-directory-action{color:var(--xg-link)!important}
html body.transport-native .qn17-directory .qn17-directory-column .qn17-directory-icon{
 color:var(--xg-link)!important;background:var(--xg-soft)!important;
}

/* The booking form body was pale-blue with dark labels in the original.
   Some legacy themes incorrectly mapped its text as light foreground. */
html body.transport-native .trm-home .qn23c-section :is(
  .vinfast-lead-form,.vinfast-lead-form-body,.vinfast-lead-heading,
  .vinfast-lead-field,.vinfast-lead-field label,.qn23c-form-note),
html body.transport-native .trm-home .qn23c-section #form_datxe :is(label,.q22-field-label){
 color:var(--xg-ink)!important;
}
html body.transport-native .trm-home .qn23c-section :is(
  .vinfast-lead-heading h1,.vinfast-lead-heading h2){color:var(--xg-link)!important}
html body.transport-native .trm-home .qn23c-section .vinfast-lead-heading span,
html body.transport-native .trm-home .qn23c-section .qn23c-form-note {color:var(--xg-muted)!important}
html body.transport-native .trm-home .qn23c-section :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
 background:#fff!important;color:var(--xg-ink)!important;
}
html body.transport-native .trm-home .qn23c-section :is(input,textarea)::placeholder{color:var(--xg-muted)!important;opacity:1}

/* White/neutral backgrounds must never inherit the brand foreground;
   pricing red, actual logo colors and gold hero remain original. */
html body.transport-native #xgg-p41-price .xgg-p41-board :is(h2,h3),
html body.transport-native :is(.qn17-support,.qn17-directory,.tx98-local) :is(h2,h3) {color:var(--xg-ink)!important}
@media(prefers-reduced-motion:reduce){html body .tmvf-card{transition:none}}
