/* ==========================================================
   FOOTER
   Pinned left like the header. On desktop, the links column
   starts exactly where the first header link starts: nav.js
   measures that spot and stores it as --nav-left.
   ========================================================== */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem var(--gutter);
  padding: 2.5rem var(--gutter) 1.5rem;
}

@media (min-width: 64em) {
  .site-footer__inner {
    /* column 1 fills the space up to the first header link */
    grid-template-columns: calc(var(--nav-left, 45vw) - var(--gutter)) auto auto;
    column-gap: 0;
    justify-content: start;
  }
  .footer-ids { margin-left: clamp(3rem, 6vw, 6rem); }
}

.footer-name {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.site-footer address { font-style: normal; line-height: 1.8; }

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

.footer-links { list-style: none; line-height: 2; }

.footer-ids div { display: flex; gap: 0.6rem; line-height: 1.8; }
.footer-ids dt { color: var(--text); font-weight: 600; }

/* Bottom row: copyright on the left, emblem on the right.
   The emblem's right edge lines up with where the header links end
   (same formula as .site-nav in header.css). */
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 0 max(var(--gutter), 100% - var(--header-max)) 2rem var(--gutter);
}

.footer-legal { font-size: 0.8125rem; }

.emblem {
  flex: none;
  width: clamp(2.75rem, 2rem + 1.5vw, 3.5rem);
  height: auto;
}
.emblem__b       { fill: var(--text-muted); }
.emblem__diamond { fill: none; stroke: var(--emblem-line); stroke-width: 3; }
