/**
 * Site footer — three-column grouped nav, sits at page bottom on every
 * route. Visual register: plum chrome per DESIGN.md, sans labels, no
 * column rules. Token discipline: 13px floor on titles (was 11px),
 * weight 500 not 600 (DESIGN.md sanctions 400 / 500 only), --np-text-sm
 * (15px) on links to match the rest of the site.
 */

.np-footer {
  background: var(--np-bg-chrome);
  color: var(--np-text-on-chrome);
  /* Left padding accommodates the fixed plum sidebar at desktop sizes
     so columns don't slide under it. Mobile breakpoint resets below. */
  padding: var(--np-space-8) var(--np-space-6) var(--np-space-8) calc(var(--np-sidebar-width) + var(--np-space-6));
  margin-top: var(--np-space-12);
  font-family: var(--np-font-sans);
}

.np-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--np-space-6);
  max-width: 880px;
  /* Left-aligned within the content area, not centered across the full
     viewport — keeps the columns close to the body content above. */
  margin: 0;
}

.np-footer .np-footer__col {
  min-width: 0;
}

/* The footer renders inside .main-content, so chrome.css `.main-content h3`
   and `.main-content a` rules beat single-class selectors here. Scope every
   rule with .np-footer ancestor to win the cascade without !important. */
.np-footer .np-footer__title {
  font-family: var(--np-font-sans);
  font-size: var(--np-text-xs);
  font-weight: var(--np-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--np-tracking-wider);
  color: rgba(240, 232, 216, 0.6);
  margin: 0 0 var(--np-space-3);
  line-height: var(--np-leading-tight);
}

.np-footer .np-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-footer .np-footer__list li {
  margin: var(--np-space-1) 0;
  line-height: var(--np-leading-snug);
}

.np-footer .np-footer__list a {
  font-family: var(--np-font-sans);
  font-size: var(--np-text-sm);
  color: var(--np-text-on-chrome);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--np-duration-base) var(--np-ease-standard);
}

.np-footer .np-footer__list a:hover,
.np-footer .np-footer__list a:focus-visible {
  opacity: 1;
  color: var(--np-text-on-chrome);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile / tablet: sidebar collapses behind the hamburger, so the
   footer can use the full width again. */
@media (max-width: 767px) {
  .np-footer {
    padding: var(--np-space-8) var(--np-space-6);
  }
  .np-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .np-footer__inner {
    grid-template-columns: 1fr;
  }
}
