/* =====================================================================
   webvitals.css  (new, 2026-11-13)
   Small, low-risk UI/UX and rendering fixes. Loaded last in
   header_head_section.cfm so it wins over the older stylesheets.
   Nothing here changes the header height (#contentHolder uses fixed
   margin-top values that depend on it).
   ===================================================================== */

/* ---------- Accessibility: skip link (first thing keyboard users reach) ---------- */
.skip-link{
	position:absolute;left:-9999px;top:0;z-index:100000;
	background:#0451BF;color:#fff;padding:10px 16px;font-weight:600;text-decoration:none;
}
.skip-link:focus{left:10px;top:10px;color:#fff;}

/* ---------- Visible keyboard focus (mouse clicks are unaffected) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible{
	outline:3px solid #0451BF;
	outline-offset:2px;
}

/* ---------- Department + brand menus open from the keyboard too (were hover-only) ---------- */
#middle .left:focus-within #hamnav{display:block;}
#middle .left #hamnav ul li:focus-within .sidemenu{display:block;position:absolute;left:100%;width:50vw;height:auto;background:#fff;}
@media (max-width:991px){
	#middle .left #hamnav ul li:focus-within .sidemenu{position:relative;left:0;top:34px;width:100%;}
}

/* ---------- Mobile: 16px inputs stop iOS Safari from zooming the page on focus ---------- */
@media (max-width:767px){
	#middle .center form input,
	#mc_embed_signup input[type="email"],
	#mc_embed_signup input[type="text"],
	.pdp-email-form input[type="text"]{font-size:16px;}
	#middle .center form input::placeholder{font-size:14px;}
}

/* ---------- Newsletter radios: whole line is clickable ---------- */
#mc_embed_signup ul li label{display:flex;align-items:flex-start;gap:8px;cursor:pointer;font-weight:normal;margin:0;}
#mc_embed_signup ul li label input{margin:4px 0 0 0;flex:0 0 auto;}

/* ---------- Product page ---------- */
/* clear hover/focus feedback on the main call to action */
#productcontent #purchasing #atcHolder .product-addcart .addTocart{transition:filter .15s ease;}
#productcontent #purchasing #atcHolder .product-addcart .addTocart:hover,
#productcontent #purchasing #atcHolder .product-addcart .addTocart:focus-visible{filter:brightness(1.12);}
/* images never overflow their column (prevents sideways scroll on phones) */
#prod-main-image img,
.altimg img{max-width:100%;height:auto;}
.altimg img{height:100px;width:auto;object-fit:contain;}
/* product video keeps its 16:9 box before the iframe loads (no layout shift) */
#productcontent iframe[src*="youtube.com/embed"]{max-width:100%;aspect-ratio:16/9;height:auto;}

/* ---------- Rendering: skip layout/paint work for the footer link block until it is near the screen ---------- */
/* (applied to #innerfooter, not <footer>, because the fixed back-to-top button lives inside <footer>) */
#innerfooter{content-visibility:auto;contain-intrinsic-size:auto 420px;}

/* ---------- Respect "reduce motion" in the OS ---------- */
@media (prefers-reduced-motion:reduce){
	*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important;}
}

/* ---------- Homepage banners: width/height attributes are now set, keep them fluid ---------- */
#indexSlider img[width],
#index .poster img[width],
.sideposter img[width]{max-width:100%;height:auto;}

/* ---------- YouTube facade (thumbnail + play button until clicked) ---------- */
.yt-facade{display:block;padding:0;border:0;background:#000;cursor:pointer;overflow:hidden;}
.yt-facade img{width:100%;height:100%;object-fit:cover;display:block;opacity:.92;transition:opacity .2s;}
.yt-facade:hover img,.yt-facade:focus-visible img{opacity:1;}
.yt-facade-play{position:absolute;left:50%;top:50%;width:68px;height:48px;margin:-24px 0 0 -34px;border-radius:12px;background:#f00;box-shadow:0 2px 10px rgba(0,0,0,.35);}
.yt-facade-play::after{content:"";position:absolute;left:27px;top:14px;border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent #fff;}
