/* Shared header, nav, and footer. Page styles should not restyle these classes. */
:root {
  --accent: #2f7a4a;
  --accent-strong: #24633b;
  --tint: #eef6f1;
  --ink: #1c1917;
  --chrome-muted: #5f5952;
  --line: #ece9e5;
  --max: 1080px;
}

.site-header,
.site-footer {
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}

.site-header .wrap,
.site-footer .wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.site-header::after {
  content: none;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.site-header .brand,
.footer-brand .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.site-header .brand img,
.footer-brand .brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav > a {
  text-decoration: none;
  color: var(--ink);
}
.nav > a:hover {
  color: var(--accent);
  text-decoration: none;
}
.nav-stores {
  position: relative;
}
.nav-stores > summary {
  list-style: none;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  transition: background 0.22s ease;
}
.nav-stores > summary::-webkit-details-marker {
  display: none;
}
.nav-stores > summary::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  vertical-align: middle;
}
.nav-stores[open] > summary,
.nav-stores > summary:hover {
  color: #fff;
  background: var(--accent-strong);
}
.nav-stores-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 11.5rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(28, 25, 23, 0.14);
  display: grid;
}
.store-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  display: block;
}
.nav-stores-panel a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.nav-stores-panel a:hover {
  background: var(--tint);
  color: var(--accent);
  text-decoration: none;
}

.site-footer {
  padding: 4.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-brand p {
  margin: 1rem 0 0;
  max-width: 18rem;
  color: var(--chrome-muted);
  font-size: 0.95rem;
}
.footer-col h4 {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.footer-col a {
  color: var(--chrome-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-meta {
  margin: 3.5rem 0 0;
  color: var(--chrome-muted);
  font-size: 0.85rem;
}
.footer-meta a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 760px) {
  .nav {
    gap: 0;
  }
  .nav > a {
    display: none;
  }
}
