/* The red footer: brand and contact, then four lists. */

.g-footer {
  margin-top: 24px;
  padding: 28px 16px 0;
  background: var(--wp--preset--color--brand);
  color: #ffffff;
}

.g-footer a {
  color: inherit;
  text-decoration: none;
}

.g-footer a:hover {
  text-decoration: underline;
}

.g-footer :focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.g-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 12px;
}

.g-footer__col--brand {
  grid-column: 1 / -1;
  display: grid;
  align-content: start;
  gap: 12px;
}

.g-footer__col--brand p {
  margin: 0;
}

.g-footer .g-footer__logo {
  font-size: var(--wp--preset--font-size--pano-section);
}

.g-footer__col h2 {
  margin: 0 0 8px;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.15;
}

.g-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-footer__col ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.g-footer__contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  margin: 0;
}

.g-footer__contact dt {
  font-weight: 500;
}

.g-footer__contact dd {
  display: grid;
  margin: 0;
}

.g-footer__col ul.g-footer__social {
  display: flex;
  gap: 2px;
  margin-left: -10px;
}

.g-footer__col ul.g-footer__social a {
  justify-content: center;
  width: 44px;
  height: 44px;
}

.g-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-block: 16px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
  font-size: 0.9375rem;
}

.g-footer__bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .g-footer {
    margin-top: 34px;
    padding-top: 44px;
    padding-inline: max(16px, calc((100% - var(--g-page-max)) / 2));
  }

  .g-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .g-footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px 10px;
  }

  .g-footer__col {
    grid-column: span 2;
  }

  .g-footer__col--brand {
    grid-column: span 4;
    padding-right: 34px;
  }

  .g-footer__col ul a {
    min-height: 34px;
  }
}

/* Cookie choice: a bar on the bottom edge, above any sticky ad, until the reader decides. */
.g-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 2147483647;
  display: grid;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  border-top: 1px solid var(--wp--preset--color--line);
  box-shadow: 0 -4px 16px rgb(0 0 0 / 12%);
  font-size: 0.875rem;
  line-height: 1.45;
}

.g-consent[hidden] {
  display: none;
}

.g-consent__text {
  margin: 0;
}

.g-consent__text a {
  color: inherit;
  text-decoration: underline;
}

.g-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.g-consent__button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--wp--preset--color--ink);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.g-consent__button--accept {
  border-color: var(--wp--preset--color--brand);
  background: var(--wp--preset--color--brand);
  color: #ffffff;
}

.g-consent__button:focus-visible,
.g-consent__text a:focus-visible {
  outline: 2px solid var(--wp--preset--color--brand);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .g-consent {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-inline: max(16px, calc((100vw - var(--g-page-max)) / 2));
  }

  .g-consent__actions {
    grid-template-columns: auto auto;
  }
}
