/* Shared by the public pages other than the homepage (which carries the same
   rules inline): the "More from Nic" strip in the footer, and phone fixes for
   the top nav and footer links so no page scrolls sideways at 390 px. */
.footer-inner > .f-more { flex: 1 0 100%; align-self: stretch; width: 100%; }
.f-more {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.f-more-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 16px;
}
.f-more-head p, .f-more-all {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.f-more-head p { color: var(--muted); }
.f-more-all { color: var(--accent); text-decoration: none; }
.f-more-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-more ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 760px) { .f-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .f-more ul { grid-template-columns: minmax(0, 1fr); } }
.f-more li a {
  display: block;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.f-more li a:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.02); }
.f-more li a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-more b {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--chalk);
  line-height: 1.3;
}
.f-more span {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

footer.site .f-links { flex-wrap: wrap; row-gap: 10px; }

@media (max-width: 600px) {
  nav.site .nav-inner { flex-wrap: wrap; row-gap: 12px; }
  nav.site .nav-links {
    flex: 1 0 100%; gap: 18px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; padding-bottom: 2px;
  }
  nav.site .nav-links::-webkit-scrollbar { display: none; }
  nav.site .nav-links a { white-space: nowrap; flex: none; }
  nav.site .nav-sep { display: none; }
  nav.site .nav-cta { margin-left: auto; }
  /* reference tables scroll inside themselves instead of widening the page */
  .ref-table { display: block; max-width: 100%; overflow-x: auto; }
}
