/* Layout: page shell, header, footer, containers. */
.gnd-container {
  width: 100%;
  max-width: var(--gnd-container);
  margin-inline: auto;
  padding-inline: var(--gnd-gutter);
}
.gnd-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.gnd-main {
  flex: 1;
  padding-block: var(--gnd-space-5) var(--gnd-space-8);
}
.is-front .gnd-main {
  padding-top: 0;
}

/* Header. */
.gnd-header {
  position: sticky;
  z-index: 50;
  /* Below the masquerade bar when it is shown (--gnd-masq-h). */
  top: var(--gnd-masq-h, 0px);
  border-bottom: 1px solid color-mix(in srgb, var(--gnd-line) 70%, transparent);
  background: color-mix(in srgb, var(--gnd-paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}
.gnd-header__inner {
  display: flex;
  align-items: center;
  gap: var(--gnd-space-4);
  min-height: 68px;
}
.gnd-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--gnd-space-2);
  margin-inline-end: auto;
  color: var(--gnd-ink);
  font-family: var(--gnd-font-display);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}
/* Wordmark: the SVG keeps its aspect ratio, only the height is set. */
.gnd-brand img {
  display: block;
  width: auto;
  height: 45px;
}
.gnd-footer__brand .gnd-brand img {
  height: 56px;
}
.gnd-brand:hover {
  color: var(--gnd-leaf-dark);
  text-decoration: none;
}
.gnd-header__nav {
  display: none;
}
.gnd-header__nav ul {
  display: flex;
  gap: var(--gnd-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gnd-header__nav a {
  display: block;
  padding: var(--gnd-space-2) var(--gnd-space-3);
  border-radius: var(--gnd-radius-pill);
  color: var(--gnd-ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.gnd-header__nav a:hover,
.gnd-header__nav a.is-active {
  background: var(--gnd-leaf-soft);
  color: var(--gnd-leaf-dark);
}
.gnd-header__tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--gnd-space-2);
}
@media (max-width: 420px) {
  .gnd-brand img {
    height: 38px;
  }
}
@media (min-width: 860px) {
  .gnd-header__nav {
    display: block;
  }
  .gnd-brand {
    margin-inline-end: var(--gnd-space-4);
  }
  .gnd-header__tools {
    margin-inline-start: auto;
  }
}

/* Mobile bottom navigation. */
.gnd-mobile-nav {
  position: sticky;
  z-index: 40;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: var(--gnd-space-2) var(--gnd-space-2) calc(var(--gnd-space-2) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gnd-line);
  background: var(--gnd-surface);
}
.gnd-mobile-nav a {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: var(--gnd-space-1) var(--gnd-space-2);
  color: var(--gnd-ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.gnd-mobile-nav span[aria-hidden] {
  font-size: 1.3rem;
  line-height: 1;
}
@media (min-width: 860px) {
  .gnd-mobile-nav {
    display: none;
  }
}

/* Page title and tabs. */
.gnd-page-head {
  margin-bottom: var(--gnd-space-5);
}
.gnd-page-head h1 {
  margin: 0;
}

/* Footer. */
.gnd-footer {
  margin-top: auto;
  padding-block: var(--gnd-space-7) var(--gnd-space-5);
  background: var(--gnd-ink);
  color: #d9dfd3;
}
.gnd-footer a {
  color: #fff;
}
.gnd-footer__grid {
  display: grid;
  gap: var(--gnd-space-6);
}
@media (min-width: 760px) {
  .gnd-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.gnd-footer__brand {
  max-width: 30rem;
}
.gnd-footer__brand .gnd-brand {
  color: #fff;
}
.gnd-footer h2 {
  color: #fff;
  font-family: var(--gnd-font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gnd-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gnd-footer li + li {
  margin-top: var(--gnd-space-2);
}
.gnd-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gnd-space-4);
  margin-top: var(--gnd-space-7);
  padding-top: var(--gnd-space-4);
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: var(--gnd-step--1);
}

/* Masquerade (grownnextdoor_web account menu): always visible while an
   administrator or moderator views the site as another user. */
.gnd-masquerade {
  position: fixed;
  z-index: 1000;
  inset-inline: 0;
  inset-block-start: 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--gnd-space-3);
  padding: var(--gnd-space-2) var(--gnd-space-4);
  background: var(--gnd-tomato);
  color: #fff;
  font-weight: 600;
  font-size: var(--gnd-step--1);
}
.gnd-masquerade .button {
  background: #fff;
  color: var(--gnd-ink);
}
/* The bar is fixed: push the page (and the sticky header) down by its
   height. js/ui.js sets the exact height; these are the fallbacks. */
body:has(.gnd-masquerade) {
  --gnd-masq-h: 52px;
  padding-top: var(--gnd-masq-h);
}
@media (max-width: 600px) {
  body:has(.gnd-masquerade) {
    --gnd-masq-h: 84px;
  }
}
/* The bar is rendered inside the header (account menu). backdrop-filter
   would make "fixed" relative to the header instead of the screen, so the
   header gets a solid background while masquerading. */
body:has(.gnd-masquerade) .gnd-header {
  background: var(--gnd-paper);
  backdrop-filter: none;
}

/* Language switcher (footer bottom): labelled select with a globe icon, so it
   stays compact when more languages are added. */
.gnd-lang {
  display: inline-flex;
  align-items: center;
  gap: var(--gnd-space-2);
}
.gnd-lang__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d9dfd3;
  font-weight: 600;
}
.gnd-lang__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.gnd-lang__control {
  position: relative;
  display: inline-block;
}
/* Chevron. */
.gnd-lang__control::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  color: #fff;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.gnd-lang__select {
  min-height: 40px;
  padding: 0.35rem 2.3rem 0.35rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--gnd-radius-pill);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
}
.gnd-lang__select:hover {
  border-color: rgb(255 255 255 / 0.6);
}
.gnd-lang__select:focus-visible {
  outline: 3px solid var(--gnd-butter);
  outline-offset: 2px;
}
/* The open list uses the system colours: keep the options readable. */
.gnd-lang__select option {
  background: #fff;
  color: var(--gnd-ink);
}
.gnd-lang__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gnd-space-3);
}
.gnd-footer .gnd-lang__links li + li {
  margin-top: 0;
}

/* Feedback button: small and quiet, bottom right (logged-in users only).
   On small screens an icon above the bottom bar. */
.gnd-feedback-button {
  position: fixed;
  z-index: 30;
  right: var(--gnd-space-3);
  bottom: calc(4.5rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gnd-space-1);
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--gnd-space-3);
  border: 1px solid var(--gnd-line);
  border-radius: var(--gnd-radius-pill);
  background: rgb(255 255 255 / 0.9);
  box-shadow: var(--gnd-shadow-sm);
  color: var(--gnd-muted);
  font-size: var(--gnd-step--1);
  font-weight: 600;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s var(--gnd-ease), color 0.15s var(--gnd-ease), border-color 0.15s var(--gnd-ease);
}
.gnd-feedback-button:hover,
.gnd-feedback-button:focus-visible {
  border-color: var(--gnd-leaf);
  color: var(--gnd-leaf);
  opacity: 1;
}
.gnd-feedback-button__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 860px) {
  .gnd-feedback-button {
    right: var(--gnd-space-4);
    bottom: var(--gnd-space-4);
    min-height: 36px;
  }
  .gnd-feedback-button__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}
@media print {
  .gnd-feedback-button {
    display: none;
  }
}
