/* Compact layout shared by federation footers. */
#federation-footer {
  --footer-space: clamp(12px, 1.5vw, 22px);
  padding-block: var(--footer-space) 0 !important;
}
#federation-footer :is(.footer-top, .pub-footer-inner, .footer-inner) {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 12px clamp(14px, 4vw, 60px) !important;
  padding-block: 0 var(--footer-space) !important;
}
#federation-footer .footer-top { grid-template-columns: 1fr 2fr !important; }
#federation-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px clamp(14px, 4vw, 60px);
}
#federation-footer :is(.footer-identity,.pub-footer-brand) {
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  grid-column: auto;
  padding: 0 !important;
  border: 0 !important;
}
#federation-footer :is(.aaf-footer-emblem,.footer-emblem) {
  display: grid;
  place-items: center;
  width: 64px !important;
  height: 64px !important;
  flex: 0 0 64px !important;
  padding: 0 !important;
}
#federation-footer :is(.aaf-footer-emblem,.footer-emblem) img {
  width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  max-width: 100% !important;
  margin: 0;
}
#federation-footer :is(.pub-footer-brand,.footer-identity) strong {margin: 0; max-width: 22ch; line-height: 1.35;}
#federation-footer :is(.pub-footer-col,.footer-links > div) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 14px;
  align-content: start;
  grid-column: auto;
}
#federation-footer :is(.pub-footer-col:nth-child(2),.footer-links > div:first-child) {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
#federation-footer :is(h3,h4) {grid-column: 1/-1; margin: 0 0 4px !important;}
#federation-footer :is(.pub-footer-col,.footer-links) :is(a,span) {
  margin: 0 !important;
  min-height: 0;
  padding: 0 !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere;
}
#federation-footer .footer-social {grid-column:auto; margin:0; display:flex; gap:4px 12px;}
#federation-footer :is(.footer-bottom,.pub-footer-bottom) {
  display:flex;
  flex-flow:row wrap;
  align-items:center;
  margin-block:0;
  padding-block:10px !important;
  gap:4px 14px !important;
}
#federation-footer .footer-bottom .home-credit {margin-left:auto}
@media (max-width: 800px) {
  #federation-footer {--footer-space:8px;}
  #federation-footer :is(.footer-top,.pub-footer-inner,.footer-inner) {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 6px 12px !important;
  }
  #federation-footer :is(.footer-top .footer-links) {display:contents}
  #federation-footer :is(.footer-brand,.footer-identity,.pub-footer-brand) {grid-column:1/-1;gap:8px !important;}
  #federation-footer :is(.footer-emblem,.aaf-footer-emblem) {width:32px !important;height:32px !important;flex-basis:32px !important;}
  #federation-footer :is(.footer-identity,.pub-footer-brand) strong {max-width:none !important;font-size:13px !important;}
  #federation-footer :is(.pub-footer-col:nth-child(2),.footer-links > div:first-child) {grid-template-columns:1fr;}
  #federation-footer :is(.footer-links,.pub-footer-col) :is(a,span) {font-size:12px !important;}
  #federation-footer .footer-social .ui-symbol {display:none}
  #federation-footer :is(.footer-bottom,.pub-footer-bottom) {padding-block:6px !important;font-size:10px;line-height:1.35;}
  #federation-footer .footer-bottom .home-credit {margin-left:0}
  #federation-footer .pub-footer-bottom :is(a,span) {line-height:1.35 !important;}
}
#federation-footer .nt-footer-inner {grid-template-columns: 1.3fr 1fr 1fr;gap:14px;padding-block:0 12px;}
#federation-footer .nt-footer-logo-card {width:90px; min-height:42px; padding:4px;}
#federation-footer .nt-footer-logo-card img {max-height:38px; max-width:80px;}
#federation-footer .nt-footer-col :is(a,p) {margin-block:2px; padding-block:2px;}
#federation-footer .nt-footer-bottom {padding-block:8px;}
@media (max-width:800px) {
  #federation-footer .nt-footer-inner {grid-template-columns:1fr 1fr;}
  #federation-footer .nt-footer-brand {grid-column:1/-1;display:flex;align-items:center;gap:8px;}
}
#federation-footer .footer-bottom :is(ul,p) {margin:0;padding:0;list-style:none;}
#federation-footer :is(.footer-bottom,.pub-footer-bottom) :is(a,span) {min-height:0;padding-block:0 !important;}
@media (min-width:801px) {
  #federation-footer .footer-links > div:last-child {grid-template-columns:auto auto;}
  #federation-footer .footer-links > div:last-child > span {grid-column:1/-1;}
}
@media (max-width:800px) {
  #federation-footer :is(.footer-top,.pub-footer-inner) {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr) !important;}
  #federation-footer .footer-links > div {row-gap:0;}
  #federation-footer .footer-bottom {font-size:10px;line-height:1.35;}
  #federation-footer .footer-bottom .footer-policies {font-size:inherit;line-height:inherit;}
  body.film-home #federation-footer {--footer-space:14px;}
  body.film-home #federation-footer .footer-links :is(a,span) {font-size:14px !important;min-height:32px;}
  body.film-home #federation-footer .footer-top {row-gap:14px !important;}
}
@media (min-width:801px) {
  body.unique-home #federation-footer, #federation-footer.pub-footer {--footer-space:28px;}
}
@media (max-width:800px) {
  #federation-footer .pub-footer-bottom {column-gap:8px !important;row-gap:2px !important;}
  body.film-home #federation-footer .footer-links :is(a,span) {min-height:38px;}
}

/* The gallery's paper-blue palette across the public footer layouts. */
#federation-footer {
  --footer-ink: #1a428a;
  --footer-paper: color-mix(in srgb, var(--footer-ink) 10%, white);
  --footer-rule: color-mix(in srgb, var(--footer-ink) 27%, white);
  background: #e8ecf3 !important;
  background: var(--footer-paper) !important;
  color: var(--footer-ink) !important;
  border-top: 1px solid var(--footer-rule) !important;
}
#federation-footer :is(a,span,h3,h4,p,strong,.footer-copy,.footer-brand-name,.footer-brand-sub,.footer-contact-item),
#federation-footer :is(.footer-bottom,.pub-footer-bottom,.nt-footer-bottom) {
  color: var(--footer-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}
#federation-footer :is(.footer-bottom,.pub-footer-bottom,.nt-footer-bottom,.nt-footer-contact-pill) {
  background: transparent !important;
  border-color: var(--footer-rule) !important;
}
#federation-footer img[src$="circular-az-reverse.svg"] {
  content: url("/public/aaf-public-v27-20261012/brand/circular-az-primary.svg");
}
#federation-footer img[src$="circular-en-reverse.svg"] {
  content: url("/public/aaf-public-v27-20261012/brand/circular-en-primary.svg");
}
#federation-footer :is(.footer-emblem,.aaf-footer-emblem) img { filter: none !important; mix-blend-mode: normal !important; }
#federation-footer :is(.pub-footer-bottom > span:last-child,.home-credit) {
  display: block !important;
  font-size: .8rem !important;
  line-height: 1.45 !important;
  font-weight: 400;
  margin-inline-start: auto;
}
@media(max-width:800px) {
  #federation-footer :is(.pub-footer-bottom > span:last-child,.home-credit) {
    flex-basis: 100%;
    margin-inline-start: 0;
    margin-block-start: 4px;
  }
}
