/* TAX TECHNICAL — definitive surface-aware contrast overrides.
   Applied last; explicit light/dark contexts avoid cross-panel regressions. */
:root{--tt-ink-strong:#10233d;--tt-ink-body:#35465a;--tt-bronze:#95651e;--tt-white:#f9fbff;--tt-light-copy:#d9e5f3;--tt-gold-light:#f2cf92}
/* LIGHT: content surfaces, pale accordion bodies, and their headings */
html body :is(.compact-panel,.services,.guide-section,.finder-section,.readiness-section,.smart-section,.hub-section,.planner-section,.reminder-section,.contactkit-section,.faq-section) :is(.section-head,.planner-header,.reminder-header,.hub-header,.meeting-hero,.appointment-hero,.tool-header) :is(h1,h2,h3,h4){color:var(--tt-ink-strong)!important;-webkit-text-fill-color:var(--tt-ink-strong)!important;opacity:1!important;text-shadow:none!important;filter:none!important}
html body :is(.compact-panel,.services,.guide-section,.finder-section,.readiness-section,.smart-section,.hub-section,.planner-section,.reminder-section,.contactkit-section,.faq-section) :is(.section-head,.planner-header,.reminder-header,.hub-header,.meeting-hero,.appointment-hero,.tool-header) :is(h1,h2,h3,h4) :is(i,em){color:var(--tt-bronze)!important;-webkit-text-fill-color:var(--tt-bronze)!important;opacity:1!important}
html body :is(.compact-panel,.services,.guide-section,.finder-section,.readiness-section,.smart-section,.hub-section,.planner-section,.reminder-section,.contactkit-section,.faq-section) :is(.section-head,.planner-header,.reminder-header,.hub-header,.meeting-hero,.appointment-hero,.tool-header) :is(p,small,.subtitle,.description){color:var(--tt-ink-body)!important;-webkit-text-fill-color:var(--tt-ink-body)!important;opacity:1!important;text-shadow:none!important}
/* LIGHT: specifically the user-reported meeting and reminder headings */
html body :is(.planner-section,.reminder-section,.hub-section,.smart-section,.contactkit-section,.readiness-section,.finder-section) > .wrap > :is(.section-head,.planner-header,.reminder-header) :is(h1,h2,h3,p,span){opacity:1!important}
html body :is(.planner-section,.reminder-section,.hub-section,.smart-section,.contactkit-section,.readiness-section,.finder-section) .section-head h2{color:var(--tt-ink-strong)!important;-webkit-text-fill-color:var(--tt-ink-strong)!important}
html body :is(.planner-section,.reminder-section,.hub-section,.smart-section,.contactkit-section,.readiness-section,.finder-section) .section-head h2 :is(i,em){color:var(--tt-bronze)!important;-webkit-text-fill-color:var(--tt-bronze)!important}
html body :is(.planner-section,.reminder-section,.hub-section,.smart-section,.contactkit-section,.readiness-section,.finder-section) .section-head p{color:var(--tt-ink-body)!important;-webkit-text-fill-color:var(--tt-ink-body)!important;opacity:1!important}
/* Contact: navy section on the right, ivory call-to-action on the left */
html body .contact-section{color:var(--tt-white)!important}
html body .contact-section .contact-grid > div:not(.contact-primary-cta):not(.contact-form-drawer) > h2{color:var(--tt-white)!important;-webkit-text-fill-color:var(--tt-white)!important;opacity:1!important}
html body .contact-section .contact-grid > div:not(.contact-primary-cta):not(.contact-form-drawer) > h2 i{color:var(--tt-gold-light)!important;-webkit-text-fill-color:var(--tt-gold-light)!important;opacity:1!important}
html body .contact-section .contact-grid > div:not(.contact-primary-cta):not(.contact-form-drawer) > p{color:var(--tt-light-copy)!important;-webkit-text-fill-color:var(--tt-light-copy)!important;opacity:1!important}
html body .contact-section .contact-links a span{color:#c7d6e7!important;-webkit-text-fill-color:#c7d6e7!important;opacity:1!important}
html body .contact-section .contact-links a strong{color:#fff4db!important;-webkit-text-fill-color:#fff4db!important;opacity:1!important}
html body .contact-section .contact-links a:hover strong{text-decoration:underline;text-underline-offset:4px}
html body .contact-section .contact-primary-cta{background:#fffaf0!important;color:var(--tt-ink-strong)!important}
html body .contact-section .contact-primary-cta h3{color:var(--tt-ink-strong)!important;-webkit-text-fill-color:var(--tt-ink-strong)!important;opacity:1!important;text-shadow:none!important}
html body .contact-section .contact-primary-cta p{color:var(--tt-ink-body)!important;-webkit-text-fill-color:var(--tt-ink-body)!important;opacity:1!important}
html body .contact-section .contact-primary-cta .btn{color:#10233d!important;-webkit-text-fill-color:#10233d!important}
/* Contact drawer contains light form fields despite dark parent section */
html body .contact-section .contact-form{color:var(--tt-ink-strong)!important;background:#fff!important}
html body .contact-section .contact-form :is(h3,label,strong){color:var(--tt-ink-strong)!important;-webkit-text-fill-color:var(--tt-ink-strong)!important;opacity:1!important}
html body .contact-section .contact-form :is(p,small){color:var(--tt-ink-body)!important;-webkit-text-fill-color:var(--tt-ink-body)!important;opacity:1!important}
html body .contact-section .contact-form :is(input,select,textarea){color:var(--tt-ink-strong)!important;background:#fff!important}
/* DARK: VAT calculator, reminder navy tile, planner navy tile */
html body .vat-lab .vat-heading :is(h2,h3){color:var(--tt-white)!important;-webkit-text-fill-color:var(--tt-white)!important;opacity:1!important}
html body .vat-lab .vat-heading :is(h2,h3) :is(i,em){color:var(--tt-gold-light)!important;-webkit-text-fill-color:var(--tt-gold-light)!important}
html body .vat-lab .vat-heading p{color:var(--tt-light-copy)!important;-webkit-text-fill-color:var(--tt-light-copy)!important;opacity:1!important}
html body .vat-lab .vat-result-main small{color:var(--tt-light-copy)!important;-webkit-text-fill-color:var(--tt-light-copy)!important;opacity:1!important}
html body :is(.reminder-copy,.planner-form-panel,.hub-assurance,.guide-side) :is(h2,h3,h4){color:var(--tt-white)!important;-webkit-text-fill-color:var(--tt-white)!important;opacity:1!important}
html body :is(.reminder-copy,.planner-form-panel,.hub-assurance,.guide-side) p{color:var(--tt-light-copy)!important;-webkit-text-fill-color:var(--tt-light-copy)!important;opacity:1!important}
/* Preserve readable inputs and user preferences */
html body input::placeholder,html body textarea::placeholder{opacity:1}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #f2c780!important;outline-offset:3px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
