/* Shared site chrome: global header and footer on every page (landing, gallery, help, policy). Markup comes from scripts/chrome.mjs. */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
header.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
header.site-header .brand:hover { text-decoration: none; }
header.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
header.site-header nav a {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
header.site-header nav a:hover {
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
}
header.site-header nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-fg);
  font-weight: 600;
}
header.site-header .lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}
header.site-header .lang-switch a {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
header.site-header .lang-switch a:hover {
  background: var(--panel);
  color: var(--fg);
  border-color: var(--border-strong);
  text-decoration: none;
}
header.site-header .theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-secondary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
header.site-header .theme-btn:hover {
  background: var(--panel);
  color: var(--fg);
  border-color: var(--border-strong);
}
header.site-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border-radius: 7px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.4;
  transition: filter 0.15s, background 0.15s;
}
header.site-header .btn:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.08);
}
@media (max-width: 640px) {
  header.site-header { padding: 8px 14px; gap: 8px 10px; }
  header.site-header nav { order: 3; flex-basis: 100%; margin-right: 0; }
  header.site-header .brand { margin-right: auto; }
}

footer.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
footer.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
footer.site-footer .footer-links a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
}
footer.site-footer .footer-links a:hover {
  color: var(--accent-fg);
  text-decoration-color: var(--accent-fg);
}
@media (max-width: 740px) {
  footer.site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px 28px;
    gap: 10px;
  }
}
