/* Phone usability enhancements; desktop styles remain authoritative above 820px. */
.mobile-menu-toggle{display:none}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #a87919;outline-offset:3px}
.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:1.8rem 0;border:1px solid #d5dce3;border-radius:12px}
.table-scroll table{width:100%;border-collapse:collapse;margin:0}
.table-scroll caption{padding:1rem;text-align:left;font-weight:600}
.table-scroll th,.table-scroll td{padding:.85rem 1rem;text-align:left;vertical-align:top;border-bottom:1px solid #d5dce3;font-size:1rem;line-height:1.55}
.table-scroll th{background:#0b2545;color:white}
.article-contents{background:#f5f8fc;padding:1.2rem;border-radius:12px;margin:1.5rem 0}
.article-contents ul{padding-left:1.3rem}
.flyer-site-header{width:100%;max-width:680px;align-self:center;margin-bottom:1rem;background:white}
.flyer-site-header .nav{padding:.5rem 1rem;min-height:44px}
.flyer-site-header .nav-links{display:flex;flex-wrap:wrap;gap:1.2rem;align-items:center;font-size:.82rem;font-weight:600;color:#0b2545}
body.flyer-page{flex-direction:column;align-items:center;justify-content:flex-start}
@media(max-width:820px){
 .site-header .nav{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;padding:.6rem 0;min-height:0}
 .site-header .brand{min-width:0}
 .site-header .nav-links{width:100%;min-width:0;flex-wrap:wrap;gap:.25rem;flex-shrink:1}
 .site-header .nav-links a{display:inline-flex;align-items:center;min-height:44px;padding:.65rem .75rem!important;font-size:1rem!important;white-space:normal}
 .mobile-nav-ready .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;padding:.6rem .8rem;background:#0b2545;color:#fff;border:2px solid #0b2545;border-radius:8px;font:600 1rem/1.2 system-ui;cursor:pointer}
 .mobile-nav-ready .nav-links{display:none}
 .mobile-nav-ready .nav-links.mobile-nav-open{display:flex;flex-direction:column;align-items:stretch;flex-basis:100%;max-height:65vh;overflow-y:auto}
 .mobile-nav-ready .nav-links.mobile-nav-open a{width:100%}
 input:not([type=hidden]),select,textarea{font-size:16px!important;min-height:44px;max-width:100%;min-width:0}
 textarea{resize:vertical!important}
 .article-body,.article-layout>*{min-width:0}
 .table-scroll table{min-width:36rem}
 .table-scroll th,.table-scroll td{overflow-wrap:break-word}
 .hero-actions .btn{white-space:normal;text-align:center;min-height:44px}
 .flyer-site-header .nav{padding:.6rem 1rem}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
 [data-sr],.reveal,.hero-sub,.hero-actions-wrap,.stagger-char{opacity:1!important;transform:none!important;visibility:visible!important}
}

/* Keep animated headline words intact; allow breaks between words, not letters. */
.stagger-word{display:inline-block;white-space:nowrap}
@media(max-width:820px){
 html{scroll-padding-top:calc(var(--mobile-header-offset,100px) + 16px)}
 [id]{scroll-margin-top:16px}
 #xd-h1{font-size:clamp(2rem,8.5vw,3rem)!important;line-height:1.15}
 #xd-h1 #xd-l1,#xd-h1 #xd-l2{overflow:visible!important;white-space:normal}
}

/* Closed phone header: keep brand and disclosure on the same row. */
@media(max-width:820px){
 .site-header .nav>.brand{flex:1 1 0;min-width:0;max-width:calc(100% - 80px)}
 .site-header .brand>span{min-width:0}
 .site-header .mobile-menu-toggle{flex:0 0 auto;margin-left:auto}
 .site-header .brand-tag{white-space:normal;overflow-wrap:break-word}
}
@media(max-width:420px){
 .site-header .brand-tag{display:none}
 .site-header .brand-mark{width:48px;height:48px;flex:0 0 48px}
 .site-header .brand{gap:.55rem}
 .site-header .brand-name{font-size:1.5rem;white-space:nowrap}
}
/* Phone and reduced-motion users get the same four steps in normal flow. */
@media(max-width:820px),(prefers-reduced-motion:reduce){
 #process-section{height:auto!important;padding:2rem 0!important}
 #process-sticky{position:static!important;top:auto!important;height:auto!important;display:block!important;overflow:visible!important}
 #process-card{position:relative!important;width:calc(100% - 2rem)!important;max-width:900px!important;height:auto!important;margin:0 auto!important;padding:1.25rem!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:1rem!important;overflow:visible!important;transform:none!important;opacity:1!important}
 #process-heading,#process-card .step-card,#card-center,#process-cta{position:static!important;inset:auto!important;opacity:1!important;transform:none!important;transition:none!important;visibility:visible!important}
 #process-heading{margin-bottom:1rem!important}
 #process-card .step-card{width:100%!important;max-width:none!important;padding:1.25rem!important;box-sizing:border-box!important}
 #process-card .step-desc{font-size:1rem!important;color:rgba(255,255,255,.8)!important}
 #process-card .step-num-big{color:rgba(255,255,255,.45)!important}
 #card-center{margin:1rem 0!important}
 #process-cta{pointer-events:auto!important;white-space:normal!important;text-align:center!important}
 #process-cta a{max-width:100%!important;white-space:normal!important;min-height:44px!important;padding:.9rem 1rem!important;font-size:1rem!important}
 #process-bg-text,#process-bar-wrap,#card-sheen{display:none!important}
}

/* The cross-dock contact summary had an inline desktop-only three-track grid. */
@media(max-width:820px){
 .xd-contact-cards{grid-template-columns:minmax(0,1fr)!important}
 .xd-contact-cards>*{min-width:0}
 .xd-contact-cards a{overflow-wrap:anywhere}
}

/* Performance: reserve media space and avoid expensive phone compositing. */
img{height:auto}
.warehouse-visual-fallback{padding:2rem;color:#fff;line-height:1.7;text-align:center;max-width:36rem;margin:auto}
.hero-reveal{animation-delay:0s!important}
@media(max-width:820px),(prefers-reduced-motion:reduce){
 .site-header,.step-card{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 .gooey-stage,.gooey-t1,.gooey-t2{filter:none!important}
 .gooey-t1{display:none!important}.gooey-t2{opacity:1!important}
 .cs-card,.cs-title,#px-stage,.px-row{transform:none!important;transition:none!important}
 .cs-card{box-shadow:0 8px 20px rgba(7,21,38,.12)!important}
 .sev-outer{height:auto!important}.sev-stage{position:relative!important;height:auto!important;min-height:0!important;padding:1rem!important;display:block!important}
 .sev-frame{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;aspect-ratio:16/9;transform:none!important;box-shadow:none!important}
 .sev-frame video{width:100%;height:100%;object-fit:cover}
 .sev-words,.sev-hint{display:none!important}
 .sev-overlay{opacity:.15!important}
 #sev-bg{opacity:1!important}
 .marquee-inner,.ticker-track{animation:none!important}
 .hero-reveal,.hero-reveal.visible{opacity:1!important;transform:none!important;transition:none!important}
 .xd-sub,.xd-acts,.hero-sub,.hero-actions-wrap{opacity:1!important;transform:none!important;transition:none!important}
}

@media(max-width:820px){
 .prime-nav-pending .site-header .nav-links{display:none}
 body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important}
 h1,h2,.brand-name{font-family:Georgia,'Times New Roman',serif!important}
}

/* Blog index: override any leftover two-column article+sidebar layout on phones. */
@media(max-width:900px){
 .blog-with-sidebar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:2rem!important;width:100%;max-width:100%;}
 .blog-with-sidebar > *{min-width:0;max-width:100%;}
}

/* Fail-visible scroll reveal: keep content readable if JS is off, the observer does not run, or the visitor prefers reduced motion. */
@media (prefers-reduced-motion: reduce){
 [data-sr]{opacity:1!important;transform:none!important;transition:none!important;}
}
