/* AFMS October 2026 visual refinement — shared footer and About page */
.afms-footer-2026{background:#f7fbfe!important;border-top:1px solid #dceaf4!important;color:#153247!important;padding:0!important;margin:0!important;min-height:0!important}
.afms-footer-2026 .afms-footer-top{display:grid!important;grid-template-columns:1.15fr 1.35fr 1fr auto!important;gap:clamp(16px,2vw,34px)!important;align-items:center!important;padding:22px 0 18px!important;min-height:0!important}
.afms-footer-2026 .afms-footer-brand{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important}
.afms-footer-2026 .afms-footer-brand img{width:170px!important;max-width:100%!important;height:auto!important;max-height:52px!important;object-fit:contain!important;object-position:left center!important}
.afms-footer-2026 .afms-footer-brand span{font-size:12px!important;font-weight:600!important;color:#536d7e!important;line-height:1.4!important}
.afms-footer-2026 .afms-footer-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 15px!important;align-items:start!important}
.afms-footer-2026 .afms-footer-nav a,.afms-footer-2026 .afms-footer-contact a{display:inline!important;margin:0!important;padding:0!important;font-size:13px!important;font-weight:600!important;line-height:1.35!important;text-decoration:none!important;color:#315b76!important}
.afms-footer-2026 .afms-footer-nav a:hover,.afms-footer-2026 .afms-footer-contact a:hover{color:#0079c8!important;text-decoration:underline!important}
.afms-footer-2026 .afms-footer-contact{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important}
.afms-footer-2026 .afms-footer-contact span{font-size:12px!important;color:#627d8d!important;line-height:1.35!important}
.afms-footer-2026 .afms-footer-social{display:flex!important;align-items:center!important;gap:8px!important;white-space:nowrap!important}
.afms-footer-2026 .afms-social-icon{display:grid!important;place-items:center!important;width:31px!important;height:31px!important;border:1px solid #cbdfee!important;border-radius:50%!important;color:#0878be!important;background:white!important;cursor:default!important}
.afms-footer-2026 .afms-social-icon svg{width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.afms-footer-2026 .afms-footer-bottom{display:flex!important;justify-content:space-between!important;gap:16px!important;align-items:center!important;border-top:1px solid #dceaf4!important;padding:9px 0 12px!important;min-height:0!important;font-size:11px!important;color:#71899b!important}
.afms-footer-2026 .afms-footer-bottom span{font-size:11px!important}
/* Homepage: purpose immediately precedes partner logos */
.home-partners-section{margin-top:10px!important}
.afms-purpose-editorial{margin-bottom:36px!important}
/* About: readable editorial design with an asymmetric photo feature and two supporting stories */
.afms-story-page .afms-purpose-refresh{background:#fff!important;padding:48px 0 52px!important}
.afms-story-page .afms-purpose-refresh .story-wrap{max-width:1160px!important;margin:auto!important}
.afms-story-page .afms-purpose-refresh .story-section-title{max-width:770px!important;margin:0 auto 28px!important;text-align:center!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards{display:grid!important;grid-template-columns:1.1fr 1fr!important;grid-template-rows:repeat(2,minmax(205px,auto))!important;gap:18px!important;align-items:stretch!important;max-width:1120px!important;margin:0 auto!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article{display:grid!important;grid-template-columns:185px 1fr!important;grid-template-rows:auto auto 1fr!important;align-content:center!important;column-gap:20px!important;row-gap:7px!important;background:#f6fafe!important;border:1px solid #e0ebf5!important;border-radius:16px!important;box-shadow:none!important;overflow:hidden!important;padding:16px!important;margin:0!important;min-height:0!important;height:auto!important;text-align:left!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child{grid-row:1/span 2!important;grid-column:1!important;grid-template-columns:1fr!important;grid-template-rows:240px auto auto 1fr!important;align-content:start!important;padding:16px 16px 24px!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article:not(:first-child){grid-column:2!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article:nth-child(2){grid-row:1!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article:nth-child(3){grid-row:2!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article .story-purpose-image{grid-column:1!important;grid-row:1/span 3!important;width:185px!important;height:100%!important;min-height:170px!important;max-height:220px!important;object-fit:cover!important;border-radius:10px!important;margin:0!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child .story-purpose-image{grid-column:1!important;grid-row:1!important;width:100%!important;height:240px!important;min-height:0!important;max-height:none!important;object-fit:cover!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article .story-card-label{grid-column:2!important;grid-row:1!important;align-self:end!important;margin:0!important;font-size:11px!important;letter-spacing:.09em!important;color:#0079c8!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article h3{grid-column:2!important;grid-row:2!important;font-size:clamp(18px,1.6vw,23px)!important;line-height:1.15!important;margin:0!important;color:#152e3e!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article p{grid-column:2!important;grid-row:3!important;margin:0!important;font-size:14px!important;line-height:1.55!important;color:#4a6375!important}
.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child .story-card-label,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child h3,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child p{grid-column:1!important;grid-row:auto!important}
.afms-story-page .afms-purpose-refresh .story-goal-note{text-align:center!important;margin:16px auto 0!important;font-size:12px!important}
@media(max-width:1050px){.afms-footer-2026 .afms-footer-top{grid-template-columns:1fr 1.4fr!important}.afms-footer-2026 .afms-footer-social{justify-content:flex-start!important}}
@media(max-width:800px){.afms-story-page .afms-purpose-refresh .story-purpose-cards{grid-template-columns:1fr!important;grid-template-rows:auto!important}.afms-story-page .afms-purpose-refresh .story-purpose-cards article,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:not(:first-child){grid-column:1!important;grid-row:auto!important;grid-template-columns:165px 1fr!important;grid-template-rows:auto auto 1fr!important;padding:14px!important}.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child .story-purpose-image,.afms-story-page .afms-purpose-refresh .story-purpose-cards article .story-purpose-image{grid-column:1!important;grid-row:1/span 3!important;width:165px!important;height:170px!important;max-height:170px!important}.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child .story-card-label,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child h3,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child p{grid-column:2!important}.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child .story-card-label{grid-row:1!important}.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child h3{grid-row:2!important}.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child p{grid-row:3!important}}
@media(max-width:600px){.afms-footer-2026 .afms-footer-top{grid-template-columns:1fr!important;gap:14px!important;padding:19px 0 13px!important}.afms-footer-2026 .afms-footer-brand{gap:2px!important}.afms-footer-2026 .afms-footer-brand img{width:150px!important}.afms-footer-2026 .afms-footer-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.afms-footer-2026 .afms-footer-contact{gap:3px!important}.afms-footer-2026 .afms-footer-bottom{display:block!important}.afms-footer-2026 .afms-footer-bottom span:last-child{display:none!important}.afms-story-page .afms-purpose-refresh .story-purpose-cards article,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:not(:first-child){grid-template-columns:1fr!important;grid-template-rows:auto!important}.afms-story-page .afms-purpose-refresh .story-purpose-cards article .story-purpose-image,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child .story-purpose-image{grid-column:1!important;grid-row:1!important;width:100%!important;height:190px!important;max-height:none!important}.afms-story-page .afms-purpose-refresh .story-purpose-cards article .story-card-label,.afms-story-page .afms-purpose-refresh .story-purpose-cards article h3,.afms-story-page .afms-purpose-refresh .story-purpose-cards article p,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child .story-card-label,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child h3,.afms-story-page .afms-purpose-refresh .story-purpose-cards article:first-child p{grid-column:1!important;grid-row:auto!important}}

/* 21 Oct: final About Us, homepage purpose and social media revisions */
.afms-purpose-editorial .purpose-editorial-media{display:block!important;height:315px!important;max-width:100%!important}
.afms-purpose-editorial .purpose-editorial-media .purpose-editorial-primary{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:15px!important}
.afms-story-page .afms-journey-refresh{background:#fff!important;padding:48px 0 55px!important}
.afms-story-page .afms-journey-refresh>.story-wrap{display:grid!important;grid-template-columns:minmax(230px,.72fr) minmax(0,1.3fr)!important;gap:clamp(24px,5vw,75px)!important;align-items:start!important;max-width:1160px!important;margin:auto!important}
.afms-story-page .afms-journey-refresh .afms-journey-title{text-align:left!important;position:sticky;top:110px}
.afms-story-page .afms-journey-refresh .story-milestones{display:grid!important;grid-template-columns:1fr!important;gap:0!important;list-style:none!important;margin:0!important;padding:0 0 0 24px!important;border-left:2px solid #d2e9f8!important}
.afms-story-page .afms-journey-refresh .story-milestones li{display:grid!important;grid-template-columns:100px 1fr!important;column-gap:16px!important;align-items:start!important;background:transparent!important;border:0!important;border-bottom:1px solid #e0ebf2!important;border-radius:0!important;padding:13px 8px 15px 0!important;margin:0!important;box-shadow:none!important;min-height:0!important}
.afms-story-page .afms-journey-refresh .story-milestones li:last-child{border-bottom:0!important}
.afms-story-page .afms-journey-refresh .story-milestones li .story-year{grid-row:1/3!important;grid-column:1!important;font-size:25px!important;line-height:1.2!important;font-weight:800!important;color:#007ac2!important}
.afms-story-page .afms-journey-refresh .story-milestones li h3{grid-column:2!important;grid-row:1!important;margin:0 0 5px!important;font-size:17px!important}
.afms-story-page .afms-journey-refresh .story-milestones li p{grid-column:2!important;grid-row:2!important;margin:0!important;line-height:1.5!important;font-size:14px!important}
.afms-story-page .afms-journey-refresh .story-timeline-dot{display:none!important}
.afms-story-page .afms-purpose-refresh{background:#f7fbfe!important;padding:45px 0 55px!important}
.afms-story-page .afms-purpose-refresh .story-section-title{margin-bottom:26px!important}
.afms-story-page .afms-purpose-refresh .afms-guides-new{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important}
.afms-story-page .afms-purpose-refresh .afms-guides-new>article{display:flex!important;flex-direction:column!important;min-width:0!important;background:#fff!important;border:1px solid #dfedf7!important;border-radius:14px!important;padding:0 0 22px!important;overflow:hidden!important;box-shadow:none!important;grid-column:auto!important;grid-row:auto!important}
.afms-story-page .afms-purpose-refresh .afms-guides-new>article img{width:100%!important;height:190px!important;object-fit:cover!important;border-radius:0!important;margin:0 0 19px!important;float:none!important}
.afms-story-page .afms-purpose-refresh .afms-guides-new>article .story-card-label,.afms-story-page .afms-purpose-refresh .afms-guides-new>article h3,.afms-story-page .afms-purpose-refresh .afms-guides-new>article p{margin-left:20px!important;margin-right:20px!important}
.afms-story-page .afms-purpose-refresh .afms-guides-new>article h3{font-size:21px!important;line-height:1.25!important;margin-top:9px!important;margin-bottom:10px!important}
.afms-story-page .afms-purpose-refresh .afms-guides-new>article p{font-size:15px!important;line-height:1.55!important;margin-top:0!important}
.afms-story-page .afms-purpose-refresh .story-goal-note{text-align:center!important;margin-top:14px!important}
.afms-footer-social .afms-instagram{background:linear-gradient(35deg,#ffcc45,#fa4d58,#b536aa,#5b53cf)!important;color:white!important;border:0!important}
.afms-footer-social .afms-facebook{background:#1877f2!important;color:#fff!important;border:0!important}
.afms-footer-social .afms-x{background:#111!important;color:#fff!important;border:0!important}
.afms-footer-social .afms-social-pending{cursor:default!important;opacity:.8!important}
.afms-footer-social .afms-social-icon svg{stroke:currentColor!important}
@media(max-width:850px){.afms-story-page .afms-journey-refresh>.story-wrap{grid-template-columns:1fr!important}.afms-story-page .afms-journey-refresh .afms-journey-title{position:static!important}.afms-story-page .afms-purpose-refresh .afms-guides-new{grid-template-columns:1fr 1fr!important}}
@media(max-width:600px){.afms-story-page .afms-purpose-refresh .afms-guides-new{grid-template-columns:1fr!important}.afms-story-page .afms-journey-refresh .story-milestones li{grid-template-columns:76px 1fr!important}.afms-purpose-editorial .purpose-editorial-media{height:240px!important}}

/* Approved 21 Oct changes ONLY: three equal What Guides Us cards and Wheel to Meal image inset. */
@media (min-width: 851px) {
  body.afms-story-page section.afms-purpose-refresh > .story-wrap {
    width: min(1180px, calc(100% - 80px)) !important;
    max-width: 1180px !important;
    margin-inline: auto !important;
  }
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    gap: 22px !important;
    align-items: stretch !important;
  }
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article,
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article:first-child,
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article:not(:first-child) {
    display: flex !important;
    flex-direction: column !important;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 22px !important;
  }
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article .story-purpose-image,
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article:first-child .story-purpose-image {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    height: 195px !important;
    max-height: 195px !important;
    object-fit: cover !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin: 0 0 16px !important;
  }
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article .story-card-label,
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article h3,
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article p,
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article:first-child .story-card-label,
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article:first-child h3,
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article:first-child p {
    grid-column: auto !important;
    grid-row: auto !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}
/* Wheel to Meal image follows the same page gutter as other homepage content. */
body .afms-purpose-editorial {
  width: min(1200px, calc(100% - 80px)) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
body .afms-purpose-editorial .purpose-editorial-media {
  min-width: 0 !important;
}
@media (max-width: 850px) {
  body.afms-story-page section.afms-purpose-refresh > .story-wrap {
    width: calc(100% - 40px) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-template-rows: auto !important;
    max-width: 100% !important;
  }
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article,
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new > article:first-child {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  body .afms-purpose-editorial { width: calc(100% - 40px) !important; }
}
@media (max-width: 600px) {
  body.afms-story-page section.afms-purpose-refresh .story-purpose-cards.afms-guides-new {grid-template-columns: 1fr !important;}
  body .afms-purpose-editorial {width: calc(100% - 32px) !important;}
}
