/* mobile.css 2026-11-10: responsive fixes (layout only; no copy/price changes) */
/* Top utility bar: one clean row, no overlap */
.utility .wrap{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:nowrap!important;min-height:36px}
.utility .wrap>*{grid-column:auto!important;justify-self:auto!important;min-width:0}
.utility .utility-serve{flex:1 1 auto;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.utility .pf-ccpick,.utility a[data-phone]{flex:0 0 auto;white-space:nowrap}
.utility .pf-ccpick a{min-width:36px;justify-content:center}
@media (max-width:1024px){
 .utility .wrap{min-height:44px}
 .utility .pf-ccpick a{min-width:44px;min-height:44px}
 .utility a[data-phone]{min-height:44px}
}
@media (max-width:760px){
 .utility .utility-serve{display:none!important}
 .utility{font-size:.8125rem}
 .utility .wrap{min-height:44px}
 .utility .pf-ccpick a{min-width:44px;min-height:44px}
 .utility a[data-phone]{min-height:44px;font-weight:600}
}
/* Compact mobile header: logo + CTA + menu */
@media (max-width:600px){
 .site-header .header-bar{gap:8px!important;min-height:60px}
 .site-header .brand{flex:0 1 auto;min-width:0;margin-right:auto}
 .site-header .brand img{height:32px!important;width:auto!important;max-width:100%}
 .site-header .theme-toggle-bar{display:none!important}
 .site-header .header-book{flex:0 0 auto;min-height:44px!important;padding:0 14px!important;font-size:.875rem!important;white-space:nowrap!important;max-width:none!important;overflow:visible}
 #nav-toggle{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0!important;font-size:0!important;position:relative;justify-content:center}
 #nav-toggle::before{content:"";width:20px;height:2px;background:currentColor;border-radius:2px;box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor}
 #nav-toggle[aria-expanded="true"]::before{box-shadow:none;transform:rotate(45deg)}
 #nav-toggle[aria-expanded="true"]::after{content:"";position:absolute;width:20px;height:2px;background:currentColor;border-radius:2px;transform:rotate(-45deg)}
}
@media (max-width:359px){
 .site-header .header-book{padding:0 10px!important;font-size:.8125rem!important}
 .site-header .brand img{height:28px!important}
}
/* Hero: fluid headline, demoted quick-answer heading */
@media (max-width:600px){
 .hero h1{font-size:clamp(1.85rem,7.2vw + .3rem,2.5rem)!important;line-height:1.12!important;letter-spacing:-.01em}
 .hero .aeo-answer h2{font-size:1.25rem!important;line-height:1.3!important}
 .hero .hero-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 .hero .hero-actions .btn{width:100%;justify-content:center}
}
.home-answer{padding-top:clamp(28px,5vw,48px);padding-bottom:clamp(4px,2vw,16px)}
.home-answer .aeo-answer{max-width:760px}
.home-answer .aeo-answer h2{font-size:clamp(1.35rem,2.2vw + .8rem,1.9rem);line-height:1.25;margin:0 0 .6rem}
.home-answer .last-updated{font-size:.875rem;opacity:.8;margin:.75rem 0 0}
/* Buttons never clip their text */
.btn{max-width:100%}
@media (max-width:600px){ .btn{white-space:normal!important;text-align:center;height:auto;line-height:1.25;padding-top:.7em;padding-bottom:.7em} .site-header .header-book{white-space:nowrap!important;padding-top:0;padding-bottom:0} }
/* Contrast: hero pill and ghost buttons on light panels */
.hero .gwc-pill{background:rgba(247,243,234,.12)!important;color:#f7f3ea!important;border:1px solid #c4a46a!important}
html:not([data-theme="dark"]) .pf-cta .btn-ghost{background:#fffcf8!important;color:#0c2744!important;border:2px solid #0c2744!important}
.sc-card .sc-k{color:#7a5c22!important}
html[data-theme="dark"] .sc-card .sc-k{color:#e0c48c!important}
/* Cards: buttons aligned to the bottom */
.gwc-card{display:flex;flex-direction:column}
.gwc-card>p:last-child:has(.btn),.gwc-card>.btn:last-child{margin-top:auto!important;padding-top:.5rem}
/* No orphan card in the 9-item grant grid on tablets */
@media (min-width:600px) and (max-width:1023px){ html body .grant-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important} }
@media (min-width:600px) and (max-width:719px){ .grant-grid{gap:12px!important} .grant-grid>*{padding-left:14px;padding-right:14px} }
/* Inputs >=16px (prevents iOS zoom) */
@media (min-width:0){
 input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}
}
/* Tap targets */
.site-footer .footer-grid>div>a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
@media (max-width:1023px){
 .gwc-links a,nav.toc li a{display:inline-flex;align-items:center;min-height:44px}
 .gwc-check,.gwc-rush-toggle,.footer-news label.choice{min-height:44px;align-items:center}
}
/* Bottom quick bar readable + not covering content */
.quick-cta a{font-size:.8125rem!important;min-height:48px}
/* Cookie notice: compact, clearly separated panel */
#consent{border-top:2px solid #c4a46a;box-shadow:0 -10px 30px rgba(0,0,0,.28)}
@media (max-width:600px){
 #consent{padding:10px 14px calc(10px + env(safe-area-inset-bottom))!important;gap:8px 10px!important;font-size:.875rem;line-height:1.4}
 #consent p{font-size:.875rem!important;flex:1 1 100%}
 #consent button{min-height:44px;padding:8px 16px!important;font-size:.9375rem!important;flex:1 1 0}
}
@media (max-height:480px) and (orientation:landscape){
 #consent{left:12px!important;right:12px!important;bottom:10px!important;flex-wrap:nowrap!important;align-items:center!important;border:2px solid #c4a46a;border-radius:14px;padding:8px 12px!important;gap:10px!important}
 #consent p{font-size:.8125rem!important;line-height:1.35!important;flex:1 1 auto!important}
 #consent button{min-height:44px;flex:0 0 auto!important;padding:6px 14px!important;font-size:.875rem!important}
}
/* Tables never push the page wide */
@media (max-width:760px){ main table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch} }

/* Card buttons: one line where the card is wide enough, so rows line up */
@media (min-width:600px) and (max-width:767px),(min-width:1200px){
 .gwc-grid4 .gwc-card .btn,.gwc-grid2 .gwc-card .btn,.gwc-grid3 .gwc-card .btn{white-space:nowrap!important;font-size:.875rem;padding-left:.9em!important;padding-right:.9em!important}
}
html body .utility .pf-ccpick a{min-width:44px!important;min-height:44px!important;display:inline-flex!important;align-items:center;justify-content:center}
html body .utility .wrap{min-height:44px!important}
.gwc-links a{display:inline-flex;align-items:center;min-height:32px}
@media (max-width:1023px){.gwc-links a{min-height:44px}}
.dr-steps{padding-left:1.25rem;display:grid;gap:.75rem;max-width:720px}
.dr-steps li{line-height:1.55}
.dr-steps li{overflow-wrap:anywhere}
nav.toc li a{display:inline-flex;align-items:center;min-height:28px}
.nf-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;padding:0;list-style:none;max-width:900px}
.nf-links a{display:flex;align-items:center;min-height:48px;padding:10px 16px;border:1px solid rgba(12,39,68,.18);border-radius:12px;background:#fffcf8;color:#0c2744;font-weight:600;text-decoration:none}
html[data-theme="dark"] .nf-links a{background:#0f1d2e;color:#f7f3ea;border-color:#2c3d57}
.nf-search{margin-top:20px;max-width:640px}.nf-search label{display:block;font-weight:600;margin-bottom:6px}.nf-row{display:flex;gap:8px}.nf-row input{flex:1;min-height:48px;padding:0 14px;border:1px solid #9aa5b4;border-radius:12px;font-size:16px}
