/* MEDIPHARM Super App v1.3.14 — canonical footer styling for all Super App templates.
 * Front-page.php (footer INSIDE #syh-app) and Theme footer.php (footer OUTSIDE app)
 * share colors, columns and responsive spacing. Override old v114..v1170 !important rules. */
:root{--med-footer-light:#f8fbfe;--med-footer-dark:#10293b;--med-footer-light-ink:#173a54;--med-footer-dark-ink:#eef8ff;--med-footer-dark-muted:#c9deeb;}
/* reset the actual footer, NEVER a centered/rounded faux-card */
html body.tvm-site footer.syh-footer[data-syh-site-footer],
html body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer]{
 box-sizing:border-box!important;display:block!important;position:relative!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin:0!important;padding:clamp(26px,3vw,48px) 0!important;
 border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;
 overflow:clip!important;background:var(--med-footer-light)!important;background-image:none!important;
 color:var(--med-footer-light-ink)!important;filter:none!important;opacity:1!important;
}
html body.tvm-site footer.syh-footer[data-syh-site-footer]::before,
html body.tvm-site footer.syh-footer[data-syh-site-footer]::after{content:none!important;display:none!important;}
html body.tvm-site footer.syh-footer[data-syh-site-footer] > :is(.syh-footer-grid,.syh-footer-bottom),
html body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer] > :is(.syh-footer-grid,.syh-footer-bottom){
 box-sizing:border-box!important;width:min(calc(100% - 2 * clamp(14px,2.2vw,40px)), 1640px)!important;
 max-width:100%!important;min-width:0!important;margin-inline:auto!important;
 padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;background-image:none!important;
}
html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-grid{
 display:grid!important;grid-template-columns:minmax(0,1.8fr) repeat(2,minmax(0,.65fr))!important;
 gap:clamp(18px,2.4vw,42px)!important;align-items:start!important;
}
html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-grid > *{min-width:0!important;max-width:100%!important;}
html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-nav{
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;min-height:0!important;padding:0!important;
}
html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-bottom{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;
 gap:clamp(12px,2vw,32px)!important;margin-top:clamp(18px,3vw,34px)!important;
}
html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-bottom span{
 min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-bottom span:last-child{text-align:right!important;}
html body.tvm-site footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy strong,.syh-footer-nav h3){color:#173a54!important;}
html body.tvm-site footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy small,.syh-footer-lead,.syh-footer-nav a,.syh-footer-nav button,.syh-footer-bottom,.syh-footer-bottom span){color:#4d6d82!important;}
/* App-local and page-global states. Footer's own attribute also handles external providers. */
:is(html.tvm-dark,html.yhlsm-dark,html.medipharm-global-dark,html.nah-sdp-night-active,html.nah-sdp-night-mode,html.nah-sdp-dark-mode,html[data-theme="dark"],html[data-color-scheme="dark"]) body.tvm-site footer.syh-footer[data-syh-site-footer],
html body.tvm-site:has(#syh-app[data-syh-theme="dark"]) footer.syh-footer[data-syh-site-footer],
html body.tvm-site footer.syh-footer[data-syh-site-footer][data-med-footer-mode="dark"],
html body.tvm-site.tvm-footer-dark-active footer.syh-footer[data-syh-site-footer]{
 background:var(--med-footer-dark)!important;background-image:none!important;
 color:var(--med-footer-dark-ink)!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;outline:0!important;
}
:is(html.tvm-dark,html.yhlsm-dark,html.medipharm-global-dark,html.nah-sdp-night-active,html.nah-sdp-night-mode,html.nah-sdp-dark-mode,html[data-theme="dark"],html[data-color-scheme="dark"]) body.tvm-site footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy strong,.syh-footer-nav h3),
html body.tvm-site:has(#syh-app[data-syh-theme="dark"]) footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy strong,.syh-footer-nav h3),
html body.tvm-site footer.syh-footer[data-syh-site-footer][data-med-footer-mode="dark"] :is(.syh-brand-copy strong,.syh-footer-nav h3),
html body.tvm-site.tvm-footer-dark-active footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy strong,.syh-footer-nav h3){color:var(--med-footer-dark-ink)!important;}
:is(html.tvm-dark,html.yhlsm-dark,html.medipharm-global-dark,html.nah-sdp-night-active,html.nah-sdp-night-mode,html.nah-sdp-dark-mode,html[data-theme="dark"],html[data-color-scheme="dark"]) body.tvm-site footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy small,.syh-footer-lead,.syh-footer-nav a,.syh-footer-nav button,.syh-footer-bottom,.syh-footer-bottom span),
html body.tvm-site:has(#syh-app[data-syh-theme="dark"]) footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy small,.syh-footer-lead,.syh-footer-nav a,.syh-footer-nav button,.syh-footer-bottom,.syh-footer-bottom span),
html body.tvm-site footer.syh-footer[data-syh-site-footer][data-med-footer-mode="dark"] :is(.syh-brand-copy small,.syh-footer-lead,.syh-footer-nav a,.syh-footer-nav button,.syh-footer-bottom,.syh-footer-bottom span),
html body.tvm-site.tvm-footer-dark-active footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy small,.syh-footer-lead,.syh-footer-nav a,.syh-footer-nav button,.syh-footer-bottom,.syh-footer-bottom span){color:var(--med-footer-dark-muted)!important;}
:is(html.tvm-dark,html.yhlsm-dark,html.medipharm-global-dark,html.nah-sdp-night-active,html.nah-sdp-night-mode,html.nah-sdp-dark-mode,html[data-theme="dark"],html[data-color-scheme="dark"]) body.tvm-site:has(#syh-app),
html body.tvm-site:has(#syh-app[data-syh-theme="dark"]),
html body.tvm-site:has(footer[data-med-footer-mode="dark"]){background-color:var(--med-footer-dark)!important;}
/* The plugin home page's document shell is NOT Theme/footer.php.
   Its canvas must therefore own its own dark seam. */
:is(html.tvm-dark,html.yhlsm-dark,html.medipharm-global-dark,html.nah-sdp-night-active,html.nah-sdp-night-mode,html.nah-sdp-dark-mode,html[data-theme="dark"],html[data-color-scheme="dark"]) body.tvm-site #syh-app.syh-homepage-flow,
html body.tvm-site #syh-app.syh-homepage-flow[data-syh-theme="dark"],
html body.tvm-site #syh-app.syh-homepage-flow:has(footer[data-med-footer-mode="dark"]){
 background-color:var(--med-footer-dark)!important;
}
@media(max-width:820px){
 html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-branding{grid-column:1/-1!important;}
 html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-bottom{grid-template-columns:minmax(0,1fr)!important;}
 html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-bottom span:last-child{text-align:left!important;}
}
@media(max-width:520px){
 html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-grid{gap:20px 12px!important;}
}

/* HOME ownership exception: the structural reset above is more specific than generic
 * dark selectors. Repeat the SAME ownership chain here to prevent light background
 * from winning while heading text turns light (the actual screenshot regression). */
:is(html.tvm-dark,html.yhlsm-dark,html.medipharm-global-dark,html.nah-sdp-night-active,html.nah-sdp-night-mode,html.nah-sdp-dark-mode,html[data-theme="dark"],html[data-color-scheme="dark"]) body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer],
html body.tvm-site #syh-app.syh-app.syh-homepage-flow[data-syh-theme="dark"] > footer.syh-footer[data-syh-site-footer],
html body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer][data-med-footer-mode="dark"],
html body.tvm-site.tvm-footer-dark-active #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer]{
 background:#10293b!important;background-image:none!important;color:#eef8ff!important;
 border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;
}
:is(html.tvm-dark,html.yhlsm-dark,html.medipharm-global-dark,html.nah-sdp-night-active,html.nah-sdp-night-mode,html.nah-sdp-dark-mode,html[data-theme="dark"],html[data-color-scheme="dark"]) body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy strong,.syh-footer-nav h3),
html body.tvm-site #syh-app.syh-app.syh-homepage-flow[data-syh-theme="dark"] > footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy strong,.syh-footer-nav h3),
html body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer][data-med-footer-mode="dark"] :is(.syh-brand-copy strong,.syh-footer-nav h3){color:#eef8ff!important;}
:is(html.tvm-dark,html.yhlsm-dark,html.medipharm-global-dark,html.nah-sdp-night-active,html.nah-sdp-night-mode,html.nah-sdp-dark-mode,html[data-theme="dark"],html[data-color-scheme="dark"]) body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy small,.syh-footer-lead,.syh-footer-nav a,.syh-footer-nav button,.syh-footer-bottom,.syh-footer-bottom span),
html body.tvm-site #syh-app.syh-app.syh-homepage-flow[data-syh-theme="dark"] > footer.syh-footer[data-syh-site-footer] :is(.syh-brand-copy small,.syh-footer-lead,.syh-footer-nav a,.syh-footer-nav button,.syh-footer-bottom,.syh-footer-bottom span),
html body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer][data-med-footer-mode="dark"] :is(.syh-brand-copy small,.syh-footer-lead,.syh-footer-nav a,.syh-footer-nav button,.syh-footer-bottom,.syh-footer-bottom span){color:#c9deeb!important;}

/* Remove historic v115 homepage faux-card nav backgrounds — footer is three
 * genuine text columns in BOTH schemes, even with old !important selectors. */
html body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer] :is(.syh-footer-branding,.syh-footer-nav),
html body.tvm-site footer.syh-footer[data-syh-site-footer] :is(.syh-footer-branding,.syh-footer-nav){
 background:transparent!important;background-image:none!important;
 border:0!important;border-radius:0!important;outline:0!important;
 box-shadow:none!important;padding:0!important;min-height:0!important;
}
html body.tvm-site #syh-app.syh-app.syh-homepage-flow > footer.syh-footer[data-syh-site-footer] .syh-footer-nav :is(a,button)::before,
html body.tvm-site footer.syh-footer[data-syh-site-footer] .syh-footer-nav :is(a,button)::before{
 content:none!important;display:none!important;
}
