/* Input modality, not viewport size, controls touch focus feedback. */
html.kw-touch-input body :focus{outline:none!important}
html.kw-touch-input body .kw-tap-pressed,
html.kw-touch-input body #mobile-nav .kw-tap-pressed,
html.kw-touch-input body #lead-form .check-grid label.kw-tap-pressed{
 outline:none!important;box-shadow:none!important;background-color:#eceeef!important;color:#29323a!important;
 filter:none!important;transition:none!important;
}
@media(max-width:750px){
 html body .kw46-consult{bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;right:16px!important;width:44px!important;height:44px!important;box-sizing:border-box!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
 html body .kw64-chapters:not([hidden]){bottom:calc(128px + env(safe-area-inset-bottom,0px))!important;right:16px!important;width:44px!important;height:82px!important;border-radius:18px!important;padding:10px 8px!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px;font-size:12px;box-sizing:border-box}
 html body .kw64-chapters svg{width:18px;height:18px;flex:none}
 html body .back-top{display:flex!important;align-items:center;justify-content:center;bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;right:16px!important;width:44px!important;height:44px!important;padding:0!important;color:#43505b!important;background:#fffffff5!important;border:1px solid #e2e5e7!important;font-size:21px!important;box-sizing:border-box}
 html body.menu-open .kw64-chapters,html body.menu-open .back-top,html body.menu-open .kw46-consult,
 html body.kw64-modal-open .back-top,html body.kw64-modal-open .kw46-consult{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition-delay:0s,.45s!important}
 html body .kw64-sheet nav button[aria-current]{background:#f0f1f2;color:#29323a}
}
/* Higher specificity matches the existing page-level accessibility rules only for touch input. */
html.kw-touch-input :is(#main#main#main,#mobile-nav#mobile-nav#mobile-nav,#header,#kw-footer,#info-dialog) :focus{outline:none!important}
html.kw-touch-input :is(#main#main#main,#mobile-nav#mobile-nav#mobile-nav,#header,#kw-footer,#info-dialog) .kw-tap-pressed{
 outline:none!important;box-shadow:none!important;background-color:#eceeef!important;color:#29323a!important;filter:none!important;transition:none!important;
}

/* Compact mobile footer with device safe-area clearance. */
@media(max-width:750px){
 html body #kw-footer .footer-legal-row{flex-direction:column!important;align-items:flex-start!important;gap:6px!important;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
 html body #kw-footer .footer-legal-row>span,
 html body #kw-footer .footer-legal-row a,
 html body #kw-footer .footer-legal-row button{
  font-size:clamp(7.5px,2.35vw,11px)!important;line-height:1.6!important;letter-spacing:0!important;white-space:nowrap!important;
 }
 html body #kw-footer .footer-legal-row>span{max-width:100%!important;flex-shrink:0!important}
}

@media(max-width:750px){html body .kw64-chapters>span{writing-mode:vertical-rl;text-orientation:upright;letter-spacing:2px;line-height:1.2}html body .kw64-chapters{background:#f5f6f7!important;color:#43505b!important;border:1px solid #e2e5e7!important}}

/* Floating controls fade in place; hidden controls cannot receive input. */
@media(max-width:750px){
 html body .kw46-consult,html body .kw64-chapters,html body .back-top{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transform:none!important;animation:none!important;
  transition:opacity .45s ease,visibility 0s linear .45s!important;
 }
 html body:not(.menu-open):not(.kw64-modal-open) .kw46-consult.is-visible,
 html body:not(.menu-open):not(.kw64-modal-open) .kw64-chapters.is-visible,
 html body:not(.menu-open):not(.kw64-modal-open) .back-top.visible{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;transition-delay:0s!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html body .kw46-consult,html body .kw64-chapters,html body .back-top{transition:none!important}
}

/* Shared chapter layout: new articles inherit wrapping without clipping or shrinking rows. */
html body .kw64-sheet nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}
html body .kw64-sheet nav button{flex:0 0 auto!important;max-height:none!important;display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:start!important;column-gap:12px!important;width:100%!important;min-width:0!important;height:auto!important;min-height:48px!important;padding:14px 10px!important;box-sizing:border-box!important;font-size:15px!important;line-height:1.65!important;letter-spacing:0!important;white-space:normal!important;overflow:visible!important}
html body .kw64-sheet nav button .kw64-chapter-number{font:inherit!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
html body .kw64-sheet nav button .kw64-chapter-label{display:block!important;min-width:0!important;font:inherit!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;overflow:visible!important;text-overflow:clip!important}

/* Keep consent feedback close to its field, with clear space before submit. */
html body #main#main#main #lead-form .privacy-check.kw138-invalid{margin-bottom:0!important}
html body #main#main#main #lead-form #lead-consent-error138{margin:8px 0 18px!important;padding:0!important;position:static!important;transform:none!important}

/* Optical balance between confirmation icon and heading. */
html body #main#main .r23-receipt-eyebrow{position:relative;top:4px;font-size:12px!important;letter-spacing:.1em!important}
@media(max-width:750px){html body #main#main .r23-receipt-eyebrow{font-size:10px!important}}
