/* TAX TECHNICAL / Final candidate: readability and accessible contrast */
:root{--tt-readable:#24344a;--tt-gold-readable:#92651d}
/* In light panels, never render low-opacity white or pale gold text. */
:is(.premium-drawer,.premium-panel,.smart-hub,.smart-card,.planner,.planner-section,.modal-content,.signature-section,.signature-light,.vat-calculator) :is(p,small,li,label,legend){opacity:1}
:is(.premium-drawer,.premium-panel,.smart-hub,.smart-card,.planner,.planner-section,.signature-light) :is(p,small,li){color:var(--tt-readable)}
/* Light backgrounds: preserve gold accents but use accessible navy for major headlines. */
:is(.premium-drawer,.premium-panel,.smart-hub,.smart-card,.planner,.planner-section,.signature-light) :is(h1,h2,h3,h4){color:#102b49}
:is(.premium-drawer,.premium-panel,.smart-hub,.smart-card,.planner,.planner-section,.signature-light) :is(h1,h2,h3,h4) em{color:var(--tt-gold-readable)}
/* Make faint subtitles legible regardless of nested decorative styling. */
:is(.premium-drawer,.premium-panel,.smart-hub,.smart-card,.planner,.planner-section,.signature-light) :is(.section-intro,.section-lead,.section-description,.lead,.subtitle,.drawer-sub){color:#33465b;opacity:1}
/* The planner is displayed on a light surface. */
[id*="planner"] :is(h1,h2,h3,p,small),[class*="planner"] :is(h1,h2,h3,p,small){opacity:1}
[class*="planner"] :is(h1,h2,h3){color:#112c4a}
[class*="planner"] p{color:#33465b}
/* Explicit white surface corrections (not dark cards). */
:is(.premium-drawer,.smart-hub,.planner-section) [style*="color: #fff"],:is(.premium-drawer,.smart-hub,.planner-section) [style*="color:#fff"]{color:#102b49!important}
:focus-visible{outline:3px solid #c99a47;outline-offset:3px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Consistent contrast on white/off-white panels, including appointment planner */
:is(.meeting-planner,.meeting-hero,.appointment-planner,.appointment-hero,.personal-planner,.planner-shell,.planner-header) :is(h1,h2,h3,p,span,small){opacity:1}
:is(.meeting-planner,.meeting-hero,.appointment-planner,.appointment-hero,.personal-planner,.planner-shell,.planner-header) :is(h1,h2,h3){color:#102b49}
:is(.meeting-planner,.meeting-hero,.appointment-planner,.appointment-hero,.personal-planner,.planner-shell,.planner-header) p{color:#33465b}

/* Screenshot-specific: faint gold italic title and white paragraph on light background */
.planner-section .section-head h2,.planner-section .section-head h2 i,.smart-section .section-head h2,.smart-section .section-head h2 i{color:#102b49!important;opacity:1!important;text-shadow:none!important}
.planner-section .section-head p,.smart-section .section-head p{color:#30445b!important;opacity:1!important;text-shadow:none!important}
.planner-section .section-kicker,.smart-section .section-kicker{color:#8d621e!important;opacity:1!important}
.lead-section .lead-intro,.lead-card p{color:#30445b!important;opacity:1!important}

/* TAX TECHNICAL — crystal clear contrast / 2026-10-13
   Applies only to pale surfaces; preserves white type on navy cards. */
:root{--tt-ink:#102846;--tt-body:#34465b;--tt-gold:#94651d}
/* All headings and descriptions on the pale Smart Desk tool panels. */
:is(.hub-section,.planner-section,.reminder-section,.finder-section,.guide-section,.quickstart-section,.contactkit-section,.lead-section,.services,.toolbox-section) .section-head :is(h1,h2,h3),
:is(.hub-section,.planner-section,.reminder-section,.finder-section,.guide-section,.quickstart-section,.contactkit-section,.lead-section,.services,.toolbox-section) .section-head :is(h1,h2,h3) :is(span,i,em){color:var(--tt-ink)!important;opacity:1!important;text-shadow:none!important;-webkit-text-fill-color:currentColor!important;filter:none!important}
:is(.hub-section,.planner-section,.reminder-section,.finder-section,.guide-section,.quickstart-section,.contactkit-section,.lead-section,.services,.toolbox-section) .section-head :is(p,small),
:is(.hub-section,.planner-section,.reminder-section,.finder-section,.guide-section,.quickstart-section,.contactkit-section,.lead-section,.services,.toolbox-section) :is(.section-intro,.lead-intro,.toolbox-lead){color:var(--tt-body)!important;opacity:1!important;text-shadow:none!important;-webkit-text-fill-color:currentColor!important;filter:none!important}
/* Readable bronze/gold emphasis against cream backgrounds. */
:is(.hub-section,.planner-section,.reminder-section,.finder-section,.guide-section,.quickstart-section,.contactkit-section,.lead-section,.services,.toolbox-section) .section-head h2 :is(i,em,.dot),
:is(.hub-section,.planner-section,.reminder-section,.finder-section,.guide-section,.quickstart-section,.contactkit-section,.lead-section,.services,.toolbox-section) .section-kicker{color:var(--tt-gold)!important;opacity:1!important;-webkit-text-fill-color:currentColor!important}
/* Other light cards: no washed-out body copy. */
:is(.hub-card,.planner-result,.planner-form,.reminder-form,.service-card,.lead-card,.guide-card,.finder-card) :is(p,small,li,label){color:var(--tt-body);opacity:1;text-shadow:none}
:is(.hub-card,.planner-result,.planner-form,.reminder-form,.service-card,.lead-card,.guide-card,.finder-card) :is(h2,h3,h4){color:var(--tt-ink);opacity:1;text-shadow:none}
/* Navy panel deliberately retains its high-contrast light lettering. */
.reminder-copy{color:#fff}
.reminder-copy h3{color:#fff!important;opacity:1!important}
.reminder-copy p{color:#d5dfec!important;opacity:1!important}
.reminder-copy .reminder-caution{color:#f0d49e!important}
/* Inputs and accessibility. */
:is(.hub-section,.planner-section,.reminder-section) :is(input,select,textarea){color:#102846}
:is(.hub-section,.planner-section,.reminder-section) :is(input,textarea)::placeholder{color:#626f7e;opacity:1}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* TAX TECHNICAL | Unified legibility layer | light and dark surfaces */
:root{--tt-readable-ink:#10243e;--tt-readable-body:#34465b;--tt-readable-gold:#996b27;--tt-readable-light:#f5f7fc;--tt-readable-muted:#c8d6e5}
/* Light accordion sections: headings and their decorative descendants */
.compact-panel :is(.section-head,.planner-header,.reminder-header,.appointment-hero,.tool-header) :is(h1,h2,h3),
.compact-panel :is(.section-head,.planner-header,.reminder-header,.appointment-hero,.tool-header) :is(h1,h2,h3) :is(span,strong){color:var(--tt-readable-ink)!important;-webkit-text-fill-color:var(--tt-readable-ink)!important;opacity:1!important;filter:none!important;text-shadow:none!important}
.compact-panel :is(.section-head,.planner-header,.reminder-header,.appointment-hero,.tool-header) :is(h1,h2,h3) :is(i,em,.dot){color:var(--tt-readable-gold)!important;-webkit-text-fill-color:var(--tt-readable-gold)!important;opacity:1!important;filter:none!important;text-shadow:none!important}
.compact-panel :is(.section-head,.planner-header,.reminder-header,.appointment-hero,.tool-header) :is(p,small,.subtitle),
.compact-panel :is(.section-intro,.lead-intro,.toolbox-lead){color:var(--tt-readable-body)!important;-webkit-text-fill-color:var(--tt-readable-body)!important;opacity:1!important;filter:none!important;text-shadow:none!important}
/* Make the main pale content surfaces consistently legible. */
.compact-panel :is(.hub-card,.planner-form,.planner-result,.reminder-form,.finder-card,.guide-card,.lead-card,.service-card) :is(h2,h3,h4,label,strong){color:var(--tt-readable-ink);opacity:1}
.compact-panel :is(.hub-card,.planner-form,.planner-result,.reminder-form,.finder-card,.guide-card,.lead-card,.service-card) :is(p,small,li,.muted){color:var(--tt-readable-body);opacity:1}
/* Gold is a readable bronze on ivory, champagne on navy. */
.compact-panel .section-kicker{color:var(--tt-readable-gold)!important;-webkit-text-fill-color:var(--tt-readable-gold)!important;opacity:1!important}
/* DARK VAT LAB: override pale-panel inherited selectors and low opacity text. */
html body .vat-lab{color:var(--tt-readable-light)!important}
html body .vat-lab .vat-heading h3,
html body .vat-lab .vat-heading h3 :is(span,strong){color:#fff8ed!important;-webkit-text-fill-color:#fff8ed!important;opacity:1!important;text-shadow:none!important}
html body .vat-lab .vat-heading h3 :is(em,i){color:#f0c98d!important;-webkit-text-fill-color:#f0c98d!important;opacity:1!important}
html body .vat-lab .vat-heading p{color:#dbe6f3!important;-webkit-text-fill-color:#dbe6f3!important;opacity:1!important}
html body .vat-lab .vat-decoration{color:#e7c38c!important;opacity:.82!important}
html body .vat-lab :is(.vat-result-main small,.vat-result-eyebrow){color:#e6c38b!important;opacity:1!important}
html body .vat-lab :is(.vat-result-line,.vat-result-line small,.vat-hint,.vat-disclaimer){color:#d1dfef!important;opacity:1!important}
html body .vat-lab :is(.vat-inputs legend,.vat-field,.vat-modes label,.vat-result-line strong){color:#fff!important;opacity:1!important}
html body .vat-lab .vat-field input{color:#fff!important;background:#07182a!important}
html body .vat-lab .vat-rates span{color:#fff!important}
html body .vat-lab .vat-rates input:checked+span{color:#0b1a2b!important}
html body .vat-lab .vat-result-main strong{color:#f1d39c!important}
html body .vat-lab .vat-copy{color:#f2d49f!important}
/* Other dark panels: restore text that generic compact-panel rules washed out. */
html body :is(.reminder-copy,.planner-form-panel,.hub-assurance,.signature-path,.financial-glass-label) :is(h2,h3,h4,p,small,li){opacity:1!important}
html body .reminder-copy :is(h2,h3,h4),html body .planner-form-panel :is(h2,h3,h4){color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .reminder-copy p,html body .planner-form-panel p{color:#d9e3f0!important;-webkit-text-fill-color:#d9e3f0!important}
html body .hub-assurance :is(p,strong){color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Prevent placeholder text from disappearing on white form controls. */
.compact-panel :is(input,textarea)::placeholder{color:#647184!important;opacity:1!important}
/* Visible keyboard focus */
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #d6a35b!important;outline-offset:3px}
@media(prefers-contrast:more){html body .vat-lab .vat-heading p{color:#fff!important}.compact-panel .section-head p{color:#14253a!important}}
