/* Shared shell for every listlogic page: header, nav, footer.
   Colours come from each page's own :root tokens (--surface, --ink, --line, --accent, --muted). */
html { scroll-padding-top: 72px; }
body { margin: 0; }
img { max-width: 100%; }
[hidden]:not([hidden="until-found" i]) { display: none !important; }

.site-header {
  display: block; position: sticky; top: 0; z-index: 10;
  background: var(--surface, #fff); border-bottom: 1px solid var(--line, #d6dee3);
}
.site-footer {
  display: block; margin-top: 8px;
  border-top: 1px solid var(--line, #d6dee3); color: var(--muted, #5a6a74); font-size: 13px;
}
.site-bar {
  max-width: 1240px; margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
}
.site-footer .site-bar { justify-content: space-between; padding-block: 18px; }
.site-logo {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-weight: 500; font-size: 18px;
  color: var(--ink, #17232b); text-decoration: none; letter-spacing: -0.01em;
}
.site-logo span { color: var(--accent, #1f5f7a); }
.site-nav {
  display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a, .site-footer a {
  color: var(--muted, #5a6a74); text-decoration: none; font-size: 14px; white-space: nowrap;
  padding: 10px 10px; border-radius: 4px;
}
.site-nav a:hover, .site-footer a:hover { color: var(--ink, #17232b); }
.site-nav a[aria-current="page"] { color: var(--ink, #17232b); box-shadow: inset 0 -2px 0 var(--accent, #1f5f7a); border-radius: 0; }
.site-nav a:focus-visible, .site-logo:focus-visible, .site-footer a:focus-visible {
  outline: 2px solid var(--accent, #1f5f7a); outline-offset: 2px;
}
@media (max-width: 640px) {
  .site-bar { gap: 4px 12px; }
  .site-nav { flex-basis: 100%; order: 2; margin: 0 -10px; }
}
