/* FIX2797.8 R10 — single authoritative footer grid. No brand/image/text resizing. */
/* Avoid former R7/R8/R9 mutually overriding grid media queries. */
footer .footer-grid > .footer-brand,
footer .footer-grid > .footer-learn,
footer .footer-grid > .footer-explore,
footer .footer-grid > .footer-support,
footer .footer-grid > .footer-subscribe { min-width: 0 !important; }
/* 1280 CSS-pixel desktop: five columns on ONE row; original branding retained. */
@media (min-width:1240px) {
  footer .footer-grid {
    display:grid !important;
    grid-template-columns: minmax(350px,1.6fr) minmax(85px,.42fr) minmax(122px,.60fr) minmax(295px,1.22fr) minmax(220px,1fr) !important;
    gap: 0 11px !important;
    align-items:start !important;
  }
  footer .footer-grid > .footer-brand,
  footer .footer-grid > .footer-learn,
  footer .footer-grid > .footer-explore,
  footer .footer-grid > .footer-support,
  footer .footer-grid > .footer-subscribe {
    grid-column: auto !important;
    grid-row: 1 !important;
    margin:0 !important;
    max-width:none !important;
  }
}
/* Narrow desktops and landscape tablets: three columns above two balanced sections. */
@media (min-width:900px) and (max-width:1239px) {
  footer .footer-grid {display:grid !important;grid-template-columns:minmax(350px,1.6fr) minmax(105px,.5fr) minmax(155px,.8fr) !important;gap:22px 16px !important;align-items:start!important;}
  footer .footer-grid > .footer-brand {grid-column:1 !important;grid-row:1 !important;}
  footer .footer-grid > .footer-learn {grid-column:2 !important;grid-row:1 !important;}
  footer .footer-grid > .footer-explore {grid-column:3 !important;grid-row:1 !important;}
  footer .footer-grid > .footer-support {grid-column:1 !important;grid-row:2 !important;}
  footer .footer-grid > .footer-subscribe {grid-column:2 / 4 !important;grid-row:2 !important;}
}
/* Tablet: brand first, paired links, then full-width Support and Stay Ahead. */
@media (min-width:641px) and (max-width:899px) {
  footer .footer-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 20px!important;align-items:start!important;}
  footer .footer-grid > .footer-brand {grid-column:1/-1!important;grid-row:1!important;}
  footer .footer-grid > .footer-learn {grid-column:1!important;grid-row:2!important;}
  footer .footer-grid > .footer-explore {grid-column:2!important;grid-row:2!important;}
  footer .footer-grid > .footer-support {grid-column:1/-1!important;grid-row:3!important;}
  footer .footer-grid > .footer-subscribe {grid-column:1/-1!important;grid-row:4!important;}
}
/* Below 641px retain existing FIX277 mobile footer order/layout. */
/* Support email intact where width allows, with natural fallback on small phones. */
footer .footer-support .footer-contact-email {display:inline-flex!important;align-items:center!important;gap:8px!important;min-width:0!important;max-width:100%!important;}
footer .footer-support .footer-contact-email .footer-contact-icon {flex:0 0 14px!important;width:14px!important;height:14px!important;}
footer .footer-support .footer-contact-email > span {font-size:12px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;letter-spacing:-.15px!important;}
@media(max-width:480px) {footer .footer-support .footer-contact-email > span {font-size:clamp(10px,3vw,12px)!important;}}
/* Subscription controls may shrink inside fifth desktop column; do not alter fonts or brand. */
footer .footer-grid > .footer-subscribe .subscribe-form {min-width:0!important;max-width:100%!important;}
footer .footer-grid > .footer-subscribe .subscribe-form input[type=email] {min-width:0!important;flex:1 1 0!important;}
footer .footer-grid > .footer-subscribe .subscribe-form button {flex:0 0 auto!important;}
