/* VETERAN FORUM STEP 06 — Progressive responsive/accessibility improvements.
 * Include AFTER STEP 02–05 CSS. All selectors scoped to VETERAN FORUM modules.
 */
:root{color-scheme:light;scroll-padding-top:1rem}
.vfh,.vff,.vfip{overflow-wrap:break-word}
.vfh img,.vff img,.vfip img{max-width:100%;height:auto}
.vfip-main{min-width:0}
.vfip-main pre,.vfip-main code{overflow-wrap:anywhere}
.vfip-table-scroll{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.vfip-table-scroll:focus-visible{outline:3px solid #a47713;outline-offset:3px}
.vfip :is(a,button,summary,input,select,textarea):focus-visible,.vff :is(a,button):focus-visible,.vfh :is(a,button,input):focus-visible{outline:3px solid #b7790b;outline-offset:3px}
.vfip a:not(.vfip-resource):hover{text-decoration-thickness:2px}
.vfip-faq summary:focus-visible{outline-offset:-3px}
.vfh .vfh-search-results{overflow-wrap:anywhere}
.vfh .vfh-drawer{max-width:100vw}
.vfh .vfh-modal{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.vfh .vfh-modal-layer{overflow-y:auto;overscroll-behavior:contain}
.vfip-main :is(h2,h3){scroll-margin-top:1.25rem}
@media(max-width:600px){
 .vfh .vfh-brandline{gap:7px}
 .vfh .vfh-brand-text{min-width:0}
 .vfh .vfh-brand-text strong{font-size:clamp(14px,4.4vw,19px);letter-spacing:0}
 .vfh .vfh-brand-text small{font-size:clamp(7px,2.1vw,9px);line-height:1.35;overflow-wrap:anywhere}
 .vfh .vfh-brand img{width:clamp(32px,10vw,48px);height:auto;flex-shrink:0}
 .vfh .vfh-brand-actions{flex-shrink:0;gap:4px}
 .vfh .vfh-search-open,.vfh .vfh-mobile-open{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:7px}
 .vfh .vfh-search-open span{font-size:22px}
 .vfh .vfh-modal-head,.vfh .vfh-search-field{padding:14px 15px}
 .vfh .vfh-search-results{padding:0 15px 15px}
 .vfip-wrap{width:calc(100% - 28px)}
 .vfip-hero h1{overflow-wrap:anywhere}
 .vfip-linkgrid{grid-template-columns:minmax(0,1fr)}
 .vfip-panel{padding:15px}
}
@media(max-width:360px){
 .vfh .vfh-inner{width:calc(100% - 18px)}
 .vfh .vfh-brand{gap:5px}
 .vfh .vfh-brand-text small{font-size:7px;letter-spacing:0}
 .vfh .vfh-search-open,.vfh .vfh-mobile-open{min-width:42px;min-height:44px;padding:5px}
 .vfh .vfh-brand img{width:34px}
 .vff .vff-container{width:calc(100% - 24px)}
 .vfip-wrap{width:calc(100% - 24px)}
}
@media(hover:none) and (pointer:coarse){
 .vfh .vfh-panel a,.vfh .vfh-mobile-row>a,.vfh .vfh-mobile-sub a,.vff .vff-col-links a{min-height:44px}
 .vfip-toc a{min-height:44px;display:flex;align-items:center}
 .vfip-faq summary{min-height:48px}
}
@media(prefers-reduced-motion:reduce){
 html:focus-within{scroll-behavior:auto!important}
 .vfh *, .vff *, .vfip *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print{.vfh,.vff,.vfip-side{display:none!important}.vfip{color:#111!important}.vfip-main{max-width:none!important}.vfip-table-scroll{overflow:visible!important}}

.vf06-skip-link{position:fixed;top:8px;left:8px;z-index:99999;transform:translateY(-180%);background:#fff;color:#071a33;padding:12px 18px;border:3px solid #b7790b;border-radius:9px;font-weight:750;text-decoration:none}.vf06-skip-link:focus{transform:translateY(0)}
