/* Mobile demo refinements: touch targets, natural flow and small-screen forms. */
.form-grid>* ,.hero-grid>*,.application-layout>*,.contact-grid>*,.admin-detail-layout>*,.footer-grid>*{min-width:0}
input,select,textarea{max-width:100%}.sample-file{padding:9px 0;color:var(--forest)!important}.upload-label{overflow-wrap:anywhere}.photo-editorial img,.loan-banner>img{object-position:center 40%}.image-story:nth-child(3) img{object-position:55% 35%}
@media(max-width:1050px) and (min-width:801px){.nav-links{gap:12px;font-size:12px}.nav-actions .button{padding-inline:12px;gap:8px}.site-nav{gap:12px}.hero h1{font-size:clamp(46px,6vw,60px)}}
@media(max-width:800px){input:not([type=checkbox]):not([type=radio]),select,textarea,.filters input,.filters select{font-size:16px!important}.menu-toggle,.admin-menu-toggle,.logout,.link-button,.photo-controls button,.goal-tabs button{min-height:44px;min-width:44px}.photo-controls{padding:5px}.site-nav.open{max-height:calc(100dvh - 25px);overflow-y:auto}.hero-grid{grid-template-columns:1fr}.hero-copy{max-width:620px}.hero-visual{height:440px;margin-top:0}.hero-foot{flex-direction:row}.hero-visual>img{object-position:50% 35%}.chapter-grid{grid-template-columns:1fr}.image-story,.image-story:nth-child(2),.image-story:nth-child(3){height:420px;margin:0}.image-story:nth-child(3) img{object-position:center 30%}.goal-explorer{grid-template-columns:1fr}.explorer-photo{height:420px}.application-aside li:before{width:40px;height:40px}.form-nav{gap:10px;flex-wrap:wrap}.form-nav .button{flex:1}.admin-sidebar{max-width:85vw}.admin-heading-actions{max-width:100%}.table-scroll{max-width:100%;overscroll-behavior-x:contain}.report-controls{flex-wrap:wrap}.document-row{flex-wrap:wrap}.product-dialog{max-height:90dvh}.loan-banner h2{max-width:90%}}
@media(max-width:600px){.hero h1{font-size:clamp(42px,12vw,60px)}.page-intro h1{font-size:clamp(36px,10.5vw,45px)}h2{font-size:clamp(29px,8.5vw,36px)}.hero-visual{height:380px}.hero .floating-card{bottom:82px;max-width:calc(100% - 28px)}.floating-card strong{font-size:19px}.floating-card small{font-size:7px}.hero .actions .button{width:100%}.hero-foot{flex-wrap:wrap}.photo-label{max-width:calc(100% - 35px)}.image-story{height:360px!important}.image-story:nth-child(3){height:320px!important}.photo-editorial img{height:290px;object-position:center}.loan-banner{height:330px}.loan-banner>img{object-position:center}.loan-banner>div{top:auto;bottom:20px;left:20px}.loan-banner:after{background:linear-gradient(transparent,#08251eef)}.loan-banner h2{font-size:31px}.loan-banner p{margin-bottom:6px}.application-panel .detail-grid,.admin-detail-layout .detail-grid{grid-template-columns:1fr}.conditional-fields .form-grid{grid-template-columns:1fr}.application-panel{scroll-margin-top:90px}.form-nav{position:sticky;bottom:0;background:#fff;padding:14px 0 max(14px,env(safe-area-inset-bottom));z-index:3;border-top:1px solid var(--line)}.form-nav .button{gap:5px;white-space:normal}.form-nav #submit-application{flex-basis:100%}.quote-summary{grid-template-columns:1fr}.quote-summary strong{font-size:25px}.quote-summary small{font-size:10px}.quote-summary>div{padding:17px}.admin-topbar{gap:8px;padding-inline:12px}.admin-main{padding-inline:14px}.filters{grid-template-columns:1fr}.admin-panel{padding:18px}.product-dialog{padding:18px;max-width:calc(100% - 20px)}.report-controls label{flex-basis:100%}.back-top{bottom:18px}.application-layout~.back-top,body[data-page=apply] .back-top{display:none}.product-photo img{object-position:center 35%}.footer-grid{gap:20px}.success-card h2{font-size:30px}.reference{font-size:16px}}
@media(max-width:359px){.wrap{width:calc(100% - 28px)}.site-nav{gap:8px}.brand{gap:8px}.brand>span{font-size:15px}.brand img{width:44px;height:44px}.menu-toggle{padding:7px 10px}.metrics{grid-template-columns:1fr}.form-nav .button{padding:12px}.hero-visual{height:340px}.floating-card .round-icon{display:none}.admin-topbar p{font-size:9px}.stats-section strong{font-size:29px}}

.photo-credit{font-size:9px;line-height:1.5;margin:-14px 0 16px;color:var(--muted)}.photo-credit a{text-decoration:underline}.car-cover{margin:0 0 28px}.car-cover img{width:100%;height:340px;object-fit:cover;border-radius:14px}.car-cover figcaption{font-size:10px;color:var(--muted);margin-top:8px}@media(max-width:600px){.car-cover img{height:230px}}

/* Loan imagery crop positions only. */
.product-photo[data-loan-image=salary] img{object-position:45% 25%}.product-photo[data-loan-image=mwalimu] img{object-position:65% 50%}.product-photo[data-loan-image=car] img,.car-cover img{object-position:center 50%}.product-photo[data-loan-image=group] img{object-position:center 45%}.photo-credit{display:block;font-size:9px;line-height:1.5;margin:-12px 0 16px;color:var(--muted)}.photo-credit a{text-decoration:underline}#goal-image-credit{position:absolute;bottom:0;left:0;right:0;background:#ffffffed;padding:5px;margin:0;font-size:8px}

.product-photo[data-loan-image=car] img,.car-cover img{object-position:center 75%}

/* Fill the car image frames with the supplied photo. */
.product-photo[data-loan-image=car],.car-cover img{background:#edf0e8}.product-photo[data-loan-image=car] img,.car-cover img{object-fit:cover;object-position:center 62%}.product-photo[data-loan-image=salary] img{object-position:center 35%}
