/* Site-wide footer layout. Loaded after styles.css from every page. */

footer .footer-grid{
  display:grid;
  grid-template-columns:minmax(260px, .9fr) minmax(0, 2.2fr);
  column-gap:64px;
  row-gap:40px;
  align-items:start;
  justify-items:stretch;
  padding-bottom:48px;
}

footer .footer-nav{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  column-gap:32px;
  row-gap:28px;
  align-items:start;
  min-width:0;
}

footer .footer-col{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:0;
  min-width:0;
  margin:0;
  padding:0;
  text-align:left;
}

footer .footer-heading{
  display:block;
  width:100%;
  margin:0 0 20px;
  padding:0;
  color:var(--on-dark);
  font:600 12px/1.2 var(--font-sans);
  letter-spacing:.16em;
  text-transform:uppercase;
}

footer .footer-col ul{
  list-style:none;
  margin:0;
  padding:0;
  width:100%;
}

footer .footer-col li{
  margin:0;
  color:var(--on-dark-muted);
  font-size:14px;
  line-height:1.45;
}

footer .footer-col li + li{
  margin-top:10px;
}

/* Wrap only at word boundaries so the long Resources link stays in the grid. */
footer .footer-nav a{
  color:var(--on-dark);
  text-decoration:none;
  display:block;
  width:100%;
  max-width:100%;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
  text-wrap:balance;
  line-height:1.45;
}

footer .footer-nav a:hover{
  color:#e08a58;
}

footer .footer-contact p,
footer .footer-contact a{
  margin:0;
  color:var(--on-dark-muted);
  font-size:14px;
  line-height:1.5;
  max-width:100%;
  overflow-wrap:break-word;
  word-break:normal;
}

footer .footer-contact a{
  color:var(--on-dark);
  text-decoration:none;
  display:inline;
}

footer .footer-contact a:hover{
  color:#e08a58;
}

footer .footer-contact > p + p{
  margin-top:8px;
}

footer .footer-identity{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  max-width:20.5rem;
  min-width:0;
}

footer .footer-identity .footer-brand{
  display:block;
  width:100%;
  max-width:100%;
}

footer .footer-identity .footer-brand .brand-logo{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  max-height:none;
  aspect-ratio:var(--logo-ratio);
  object-fit:contain;
  object-position:left center;
  background:transparent;
}

footer .footer-tagline{
  color:var(--on-dark)!important;
  font-weight:600;
  font-size:14px;
  line-height:1.4;
  margin:14px 0 20px!important;
  width:100%;
  max-width:100%;
  overflow-wrap:normal;
  word-break:normal;
}

footer .footer-bottom{
  border-top:1px solid #2a2a2a;
  margin:0;
  padding:20px 0 28px;
}

footer .footer-bottom p{
  margin:0;
  color:#8d8982;
  font-size:13px;
  line-height:1.5;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  text-wrap:balance;
}

/* Mid-width: brand block on top, three equal link columns underneath, headers still on one line. */
@media (max-width:980px) and (min-width:761px){
  footer .footer-grid{
    grid-template-columns:1fr;
    column-gap:0;
    row-gap:40px;
    padding-bottom:44px;
  }
  footer .footer-nav{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    column-gap:28px;
  }
  footer .footer-identity{
    max-width:22rem;
  }
}

/* Mobile: stacked brand/contact, then a clear single-column list of sections. */
@media (max-width:760px){
  footer .footer-grid{
    grid-template-columns:1fr;
    gap:32px;
    padding-bottom:36px;
  }
  footer .footer-nav{
    grid-template-columns:1fr;
    row-gap:28px;
    column-gap:0;
  }
  footer .footer-identity{
    max-width:100%;
  }
  footer .footer-identity .footer-brand .brand-logo{
    max-width:240px;
  }
  footer .footer-heading{
    margin-bottom:14px;
  }
  footer .footer-bottom p{
    overflow-wrap:break-word;
  }
}
