/*
 * themes/alder/css/alder-footer.css
 * The footer's link columns (11-23, Eric: "make footer more columns so its
 * even and less tall"). The groups in .al-foot__links
 * (partials/_shell-footer-education.tpl.php) stand side by side, one
 * column each, so no single group runs long and the link block sits about
 * as tall as the masthead beside it. Loaded after alder.css (the footer's
 * base rules, two CSS columns) and alder-app.css (the footer below 921px),
 * and only on pages that print the footer (partials/_shell-head.tpl.php).
 * It also sets the follow buttons (Instagram, Facebook, LinkedIn) in a row.
 *
 *   under 600px   two CSS columns (unchanged), 44px rows
 *   600 to 767    three CSS columns
 *   from 768      one column per group, any count (3 under core, 5 open),
 *                 never narrower than its longest link (no wrapped labels)
 *   from 921      the masthead on the left (200px, 280px from 1100), the
 *                 groups sharing the rest
 */
/* In the CSS columns each group carries its own space above it (the first
   one in every column too, so the columns' tops stay level), and nothing
   sits between groups: WebKit moved space between groups to the top of
   the next column and set its first group about 11px low. */
@media (max-width: 767.98px) {
  .al-foot__links { margin-top: 0; }
  .al-foot__links .al-foot__col { padding: 12px 0 0; }
}
@media (min-width: 600px) and (max-width: 767.98px) {
  .al-foot__links { columns: 3; }
}
@media (min-width: 768px) {
  .al-foot__links {
    columns: auto; display: grid; grid-auto-flow: column;
    grid-auto-columns: minmax(max-content, 1fr); column-gap: 24px;
  }
  /* The three-group column break (alder.css) means nothing in a grid. */
  .al-foot__col:nth-child(2):nth-last-child(2) { break-before: auto; }
}
@media (min-width: 921px) {
  .al-foot__grid { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
  .al-foot__links { column-gap: 20px; }
}
@media (min-width: 1100px) {
  .al-foot__grid { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
  .al-foot__links { column-gap: 32px; }
}

/* Follow buttons (11-23): Instagram, Facebook and LinkedIn as the house
   round buttons (.al-round) in one row under the masthead; on a phone the
   row sits at the end of the logo line (alder-app.css puts the masthead
   in a line there); under 380px the line runs out, so the row takes its
   own line under the logo, from the column's left edge. */
.al-foot__follow { display: flex; gap: 8px; margin-top: 10px; }
.al-foot__follow .al-foot__ig { margin: 0; }
.al-foot__follow svg { display: block; width: 20px; height: 20px; }
@media (max-width: 920px) {
  .al-foot__brand { flex-wrap: wrap; gap: 8px 12px; }
  .al-foot__follow { margin: 0 0 0 auto; gap: 4px; }
}
@media (max-width: 379.98px) {
  .al-foot__follow { flex-basis: 100%; margin: 0; }
}
