/* One shared close for home and application routes; the curves echo the banner. */
body:is(.is-home,.brand-app) #footer {
  position: relative;
  overflow: hidden;
  padding: 70px 0 0;
  border: 0;
  background: #17639b url('./assets/brand/scholarship-curves.svg') center bottom / cover no-repeat;
  color: #f7f2df;
  font-family: 'DM Sans','PingFang SC','Microsoft YaHei',sans-serif;
}
body:is(.is-home,.brand-app) #footer .ou-footer-inner { width: min(1220px,calc(100% - 80px)); margin-inline: auto; }
body:is(.is-home,.brand-app) #footer .ou-footer-top { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(240px,1fr) 160px; gap: 56px; align-items: center; }
body:is(.is-home,.brand-app) #footer .home-footer-brand { min-width: 0; max-width: 440px; }
body:is(.is-home,.brand-app) #footer .home-footer-brand .brand { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; width: fit-content; max-width: 100%; }
body:is(.is-home,.brand-app) #footer .brand img { display: block; width: 156px; height: auto; aspect-ratio: auto; object-fit: contain; padding: 10px 12px; border: 0; border-radius: 14px; background: #f7f2df; filter: none; transform: none; }
body:is(.is-home,.brand-app) #footer .brand-text { display: flex; flex-direction: column; padding-left: 0; border: 0; color: #f7f2df; font-size: 17px; font-weight: 700; line-height: 1.6; }
body:is(.is-home,.brand-app) #footer .brand-text small { display: block; font-size: 9px; color: #e5eff6; line-height: 1.8; letter-spacing: .06em; }
body:is(.is-home,.brand-app) #footer .home-footer-brand p { max-width: 370px; margin: 14px 0 0; color: #e5eff6; font-size: 14px; line-height: 1.95; }
body:is(.is-home,.brand-app) #footer .home-footer-brand .ou-footer-tagline { margin-top: 26px; color: #f7f2df; font-family: Manrope,'PingFang SC','Microsoft YaHei',sans-serif; font-size: 30px; font-weight: 700; line-height: 1.45; letter-spacing: -.025em; }
body:is(.is-home,.brand-app) #footer .ou-footer-local-note { margin: 0; color: #f7f2df; font-size: 18px; line-height: 1.6; font-weight: 600; }
body:is(.is-home,.brand-app) #footer .ou-footer-local-note span { display: block; margin-top: 12px; color: #e5eff6; font-size: 13px; line-height: 1.95; font-weight: 400; max-width: 340px; }
body:is(.is-home,.brand-app) #footer .ou-footer-character { display: block; width: 160px; height: 160px; object-fit: contain; justify-self: end; pointer-events: none; }
body:is(.is-home,.brand-app) #footer .home-footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 36px 64px; margin: 48px 0 0; padding: 36px 0 42px; border-top: 1px solid #ffffff2e; }
body:is(.is-home,.brand-app) #footer .home-footer-grid>div { min-width: 0; }
body:is(.is-home,.brand-app) #footer .home-footer-grid h3 { margin: 0 0 16px; color: #f7f2df; font-family: Manrope,'PingFang SC','Microsoft YaHei',sans-serif; font-size: 18px; font-weight: 700; line-height: 1.6; letter-spacing: 0; }
body:is(.is-home,.brand-app) #footer .home-footer-grid a { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 40px; margin: 0; padding: 7px 0; color: #e5eff6; font-size: 14px; font-weight: 400; line-height: 1.8; text-decoration: none; text-underline-offset: 5px; overflow-wrap: anywhere; }
body:is(.is-home,.brand-app) #footer a:hover { color: #ffe48b; text-decoration: underline; text-underline-offset: 5px; }
body:is(.is-home,.brand-app) #footer .brand:hover { text-decoration: none; }
body:is(.is-home,.brand-app) #footer a:focus-visible { outline: 3px solid #ffe48b; outline-offset: 6px; border-radius: 3px; }
body:is(.is-home,.brand-app) #footer .home-footer-legal { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 24px 0 22px; border-top: 1px solid #ffffff2e; color: #e5eff6; font-size: 12px; line-height: 1.9; }
body:is(.is-home,.brand-app) #footer .home-footer-legal span { max-width: 100%; color: #e5eff6; }
body:is(.is-home,.brand-app) #footer .ou-footer-edge { width: 110%; height: 58px; margin: 24px -5% 0; background: #f7f2df; border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; }

@media (max-width:1100px) {
  body:is(.is-home,.brand-app) #footer .ou-footer-inner { width: calc(100% - 56px); }
  body:is(.is-home,.brand-app) #footer .ou-footer-top { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) 124px; gap: 32px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-character { width: 124px; height: 124px; }
  body:is(.is-home,.brand-app) #footer .home-footer-grid { gap: 32px; }
  body:is(.is-home,.brand-app) #footer .brand-text { font-size: 16px; }
}
@media (max-width:800px) {
  body:is(.is-home,.brand-app) #footer { padding-top: 52px; background-size: auto 100%; }
  body:is(.is-home,.brand-app) #footer .ou-footer-inner { width: calc(100% - 40px); }
  body:is(.is-home,.brand-app) #footer .ou-footer-top { grid-template-columns: minmax(0,1fr) 140px; gap: 28px; }
  body:is(.is-home,.brand-app) #footer .home-footer-brand { max-width: 500px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-character { grid-column: 2; grid-row: 1; width: 140px; height: 140px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-local-note { grid-column: 1/-1; max-width: 610px; font-size: 17px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-local-note span { max-width: none; }
  body:is(.is-home,.brand-app) #footer .home-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 48px; margin-top: 32px; padding-block: 32px; }
  body:is(.is-home,.brand-app) #footer .home-footer-grid h3 { margin-bottom: 12px; }
  body:is(.is-home,.brand-app) #footer .home-footer-grid a { min-height: 44px; padding-block: 9px; }
  body:is(.is-home,.brand-app) #footer .home-footer-legal { padding-block: 24px 16px; font-size: 12px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-edge { height: 44px; margin-top: 16px; }
}
@media (max-width:520px) {
  body:is(.is-home,.brand-app) #footer { padding-top: 44px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-inner { width: calc(100% - 36px); }
  body:is(.is-home,.brand-app) #footer .ou-footer-top { grid-template-columns: minmax(0,1fr) 96px; gap: 24px 16px; align-items: end; }
  body:is(.is-home,.brand-app) #footer .home-footer-brand { grid-column: 1/-1; }
  body:is(.is-home,.brand-app) #footer .home-footer-brand .brand { gap: 16px; }
  body:is(.is-home,.brand-app) #footer .brand img { width: 138px; padding: 9px 11px; border-radius: 12px; }
  body:is(.is-home,.brand-app) #footer .brand-text { font-size: 15px; }
  body:is(.is-home,.brand-app) #footer .brand-text small { font-size: 8px; }
  body:is(.is-home,.brand-app) #footer .home-footer-brand .ou-footer-tagline { margin-top: 24px; font-size: 28px; }
  body:is(.is-home,.brand-app) #footer .home-footer-brand p { font-size: 13px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-local-note { grid-column: 1; grid-row: 2; font-size: 16px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-local-note span { font-size: 12px; line-height: 1.9; margin-top: 10px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-character { grid-column: 2; grid-row: 2; width: 96px; height: 96px; align-self: center; }
  body:is(.is-home,.brand-app) #footer .home-footer-grid { gap: 30px 24px; padding-top: 30px; }
  body:is(.is-home,.brand-app) #footer .home-footer-grid h3 { font-size: 17px; }
  body:is(.is-home,.brand-app) #footer .home-footer-grid a { font-size: 13px; }
  body:is(.is-home,.brand-app) #footer .home-footer-legal { gap: 10px; font-size: 11px; }
  body:is(.is-home,.brand-app) #footer .home-footer-legal span { width: 100%; }
  body:is(.is-home,.brand-app) #footer .ou-footer-edge { height: 32px; width: 120%; margin-left: -10%; margin-right: -10%; }
}
@media (max-width:340px) {
  body:is(.is-home,.brand-app) #footer .home-footer-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  body:is(.is-home,.brand-app) #footer .ou-footer-top { grid-template-columns: minmax(0,1fr); }
  body:is(.is-home,.brand-app) #footer .ou-footer-local-note { grid-column: 1; }
  body:is(.is-home,.brand-app) #footer .ou-footer-character { grid-column: 1; grid-row: 3; justify-self: start; }
}
