/*
 * The footer of the website: address, phone, opening hours, language and the copyright. Only on screens of 1024px and
 * wider with a mouse (see layout.css).
 */

@layer components {
  .site-footer {
    display: none;
    margin-top: var(--s-6);
    background: var(--page);
    color: var(--text);
    border-top: 1px solid var(--border);
  }

  @media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .site-footer {
      display: block;
    }
  }

  /* The blocks (two or three: the hours are left out when they are not known) share the width, and wrap at large text. */
  .site-footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--s-6);
    max-width: var(--frame-max);
    margin-inline: auto;
    padding: var(--s-6);
  }

  .site-footer__title {
    margin-bottom: var(--s-3);
    font-family: var(--font-display);
    font-style: var(--display-style);
    font-weight: var(--display-weight);
    font-size: 1.125rem;
  }

  .site-footer__address {
    color: var(--muted);
    line-height: 1.6;
  }

  .site-footer__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: var(--tap);
    color: var(--primary);
    font-weight: 700;
  }

  .site-footer__hours {
    max-width: 320px;
    margin: 0;
    font-variant-numeric: tabular-nums;
  }

  .site-footer__hours-line {
    display: flex;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-1) 0;
  }

  .site-footer__hours dt {
    color: var(--muted);
  }

  .site-footer__hours dd {
    margin: 0;
    font-weight: 600;
  }

  .site-footer__copyright {
    padding: var(--s-4) var(--s-6);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
  }
}
