/* r47: audited contrast and layout corrections. Scoped to documented problem areas. */
.site-footer.compact-footer,.site-footer.compact-footer .compact-footer-grid,.site-footer.compact-footer .compact-footer-bottom,.site-footer.compact-footer .compact-footer-nav{background:#102a25!important;color:#f4faf7!important}
.site-footer.compact-footer :is(a,p,small,span,strong,h2,h3){color:#f4faf7!important;opacity:1!important}
.site-footer.compact-footer .compact-footer-grid,.site-footer.compact-footer .compact-footer-bottom{box-sizing:border-box!important;max-width:min(1160px,calc(100% - 32px))!important;min-width:0!important}
.site-footer.compact-footer .compact-footer-bottom>*{min-width:0!important;overflow-wrap:anywhere!important;white-space:normal!important}
.knowledge-guides .knowledge-guides-intro :is(h1,h2,h3,p,label,.eyebrow,.lead),html[data-theme='light'] .knowledge-guides .knowledge-guides-intro :is(h1,h2,h3,p,label,.eyebrow,.lead),html[data-theme='dark'] .knowledge-guides .knowledge-guides-intro :is(h1,h2,h3,p,label,.eyebrow,.lead){color:#effaf5!important;opacity:1!important}
.knowledge-guides .guide-toolbar label{color:#effaf5!important;opacity:1!important}
.services-faq{background:#0d211d!important;color:#f4faf7!important}
.services-faq :is(h2,h3,p),.services-faq .faq-item>summary,.services-faq .faq-item>summary *,html[data-theme='light'] .services-faq .faq-item>summary,html[data-theme='dark'] .services-faq .faq-item>summary{color:#f4faf7!important;opacity:1!important}
.services-faq .faq-item>summary::after{color:#b8eddd!important}
.knowledge-guides .guide-item>.guide-toggle>span:first-child{display:flex!important;flex-direction:column!important;gap:7px!important}
.knowledge-guides .guide-item>.guide-toggle>span:first-child>small,.knowledge-guides .guide-item>.guide-toggle>span:first-child>strong{display:block!important;line-height:1.4!important}
@media(max-width:720px){.site-footer.compact-footer .compact-footer-nav{grid-template-columns:minmax(0,1fr)!important}.site-footer.compact-footer .compact-footer-grid,.site-footer.compact-footer .compact-footer-bottom{width:calc(100% - 32px)!important}.free-resources-section .free-resource-card{min-height:0!important;height:auto!important;justify-content:flex-start!important}.free-resources-section .free-resource-card .text-link{margin-top:12px!important}}

/* r48: repair verified light-background / light-text collisions at component level. */
html:not([data-theme="dark"]) :is(.editorial-split-section,.g46-editorial,.knowledge-practice-split){background:#faf9f5!important;color:#17342f!important}
html:not([data-theme="dark"]) :is(.editorial-split-section,.g46-editorial,.knowledge-practice-split) :is(.eyebrow,h1,h2,h3,p,.lead,.editorial-split-copy,.g46-editorial-copy){color:#17342f!important;opacity:1!important}
html:not([data-theme="dark"]) .knowledge-guides .guide-item{background:#fff!important;border-color:#c5d8d0!important}
html:not([data-theme="dark"]) .knowledge-guides .guide-item :is(.guide-toggle,.guide-toggle strong,.guide-toggle small,.guide-panel,.guide-panel p,.guide-panel li){color:#17342f!important;opacity:1!important}
html:not([data-theme="dark"]) .knowledge-guides .guide-item .guide-toggle>span:last-child{color:#17342f!important}
html[data-theme="dark"] .knowledge-guides .guide-item{background:#1b302c!important;border-color:#59746b!important}
html[data-theme="dark"] .knowledge-guides .guide-item :is(.guide-toggle,.guide-toggle strong,.guide-toggle small,.guide-panel,.guide-panel p,.guide-panel li){color:#f4faf7!important;opacity:1!important}
html:not([data-theme="dark"]) .knowledge-guides .knowledge-guides-intro :is(h1,h2,h3,p,label,.eyebrow,.lead),html:not([data-theme="dark"]) .knowledge-guides .guide-toolbar label{color:#17342f!important;opacity:1!important}
html[data-theme="dark"] .knowledge-guides .knowledge-guides-intro :is(h1,h2,h3,p,label,.eyebrow,.lead),html[data-theme="dark"] .knowledge-guides .guide-toolbar label{color:#f4faf7!important;opacity:1!important}
.services-faq,.services-faq .faq-item{background:#102a25!important;color:#f4faf7!important}
.services-faq .faq-item :is(summary,summary *,p,a),html[data-theme="light"] .services-faq .faq-item :is(summary,summary *,p,a),html[data-theme="dark"] .services-faq .faq-item :is(summary,summary *,p,a){color:#f4faf7!important;opacity:1!important}
.site-footer.compact-footer,.site-footer.compact-footer :is(.compact-footer-grid,.compact-footer-bottom,.compact-footer-nav){background:#102a25!important}
.site-footer.compact-footer :is(a,p,small,span,strong,h2,h3){color:#f4faf7!important;opacity:1!important}
@media(max-width:720px){.free-resources-section .free-resource-card{min-height:0!important;height:auto!important;padding:22px!important;gap:10px!important}.free-resources-section .free-resource-card .text-link{margin-top:14px!important}.site-footer.compact-footer :is(.compact-footer-grid,.compact-footer-bottom){width:calc(100% - 32px)!important;max-width:100%!important}.site-footer.compact-footer .compact-footer-bottom{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}}

/* r50: scoped booking FAQ contrast, preserving the working light theme. */
html[data-theme="dark"] .coach-faq,
html[data-theme="dark"] .coach-faq .faq-list,
html[data-theme="dark"] .coach-faq .faq-item {background:#0d211d!important;color:#f5faf8!important}
html[data-theme="dark"] .coach-faq .faq-item>summary,
html[data-theme="dark"] .coach-faq .faq-item>summary *,
html[data-theme="dark"] .coach-faq .faq-item>summary::after,
html[data-theme="dark"] .coach-faq .faq-item[open]>p,
html[data-theme="dark"] .coach-faq .faq-item>p {color:#f5faf8!important;opacity:1!important;-webkit-text-fill-color:#f5faf8!important}
html[data-theme="dark"] .coach-faq .faq-item {border-color:#526c64!important}
html:not([data-theme="dark"]) .coach-faq .faq-item>summary,
html:not([data-theme="dark"]) .coach-faq .faq-item>summary *,
html:not([data-theme="dark"]) .coach-faq .faq-item>summary::after,
html:not([data-theme="dark"]) .coach-faq .faq-item>p {color:#17332e!important;opacity:1!important;-webkit-text-fill-color:#17332e!important}
/* Guide reading: leave space below the sticky header for scrollIntoView and hash navigation. */
html {scroll-padding-top:160px}
.knowledge-guides .guide-item,
.knowledge-guides .guide-item.is-reading-guide,
.knowledge-guides .guide-item>.guide-toggle,
.knowledge-guides .guide-item>.guide-panel {scroll-margin-top:160px!important}
@media(max-width:760px){html{scroll-padding-top:170px}.knowledge-guides .guide-item,.knowledge-guides .guide-item.is-reading-guide,.knowledge-guides .guide-item>.guide-toggle,.knowledge-guides .guide-item>.guide-panel{scroll-margin-top:170px!important}}
