/* The neighbours program: the /neighbours page and the thank-you band that
   sits above the shared footer on every other page. Every colour comes from
   the --nb-* tokens below: the band's on the site's soft blue and pale grey,
   the page's on white and lake blue (owner's approved design, 9 October
   2026). No pills, no shadows, no gradients, and square corners in the
   page body. Nothing here reaches the shared chrome: the band is its own
   <section class="nb-band">, never styled through footer or .lfhx-*. Every
   rule is scoped and sets its own type, because the band lands on pages
   whose own sheets style bare h2, p and a. */

.nb-band {
  --nb-ground: #F2F5F3;
  --nb-card: #FFFFFF;
  --nb-line: #D4DCDD;
  --nb-tint: #EAF0F2;
  --nb-ink: #283339;
  --nb-muted: #57656B;
  --nb-accent: #356382;
  --nb-accent-hover: #3C7194;
}

.neighbours-page {
  --nb-ground: #FFFFFF;
  --nb-card: #FFFFFF;
  --nb-line: #D4DCDD;
  --nb-tint: #EEF3F7;
  --nb-ink: #283339;
  --nb-muted: #57656B;
  --nb-accent: #1E6A9C;
  --nb-accent-hover: #174F75;
}

/* ── The band, above the footer on every page but /neighbours ─────────── */

.nb-band {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 24px;
  background: var(--nb-card);
  border-top: 1px solid var(--nb-line);
  color: var(--nb-ink);
  font-family: 'Inter', system-ui, sans-serif;
  text-align: left;
}
.nb-band *,
.nb-band *::before,
.nb-band *::after { box-sizing: border-box; }
.nb-band .nb-band-inner { max-width: 760px; margin: 0 auto; }
.nb-band .nb-band-h {
  margin: 0 0 8px;
  padding: 0;
  font: 600 18px/1.35 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: var(--nb-ink);
}
.nb-band .nb-band-names,
.nb-band .nb-band-text {
  margin: 0;
  font: 400 16px/1.75 'Inter', system-ui, sans-serif;
  color: var(--nb-ink);
  overflow-wrap: break-word;
}
.nb-band .nb-band-more {
  margin: 2px 0 0;
  font: 400 15px/1.6 'Inter', system-ui, sans-serif;
  color: var(--nb-muted);
}
.nb-band .nb-band-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 16px 0 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--nb-accent);
  color: var(--nb-card);
  font: 600 16px/1.3 'Inter', system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.nb-band .nb-band-btn:hover {
  background: var(--nb-accent-hover);
  color: var(--nb-card);
  text-decoration: none;
}
.nb-band .nb-band-btn:focus-visible,
.nb-page a:focus-visible,
.nb-page button:focus-visible {
  outline: 3px solid var(--nb-accent);
  outline-offset: 2px;
}

/* ── /neighbours ───────────────────────────────────────────────────────── */

.neighbours-page {
  background: var(--nb-ground);
  color: var(--nb-ink);
  font-family: 'Inter', system-ui, sans-serif;
}
.nb-page {
  box-sizing: border-box;
  max-width: 1152px; /* 1120px of content inside the 16px gutters */
  margin: 0 auto;
  padding: 40px 16px 64px;
  color: var(--nb-ink);
  font-size: 16px;
  line-height: 1.6;
}
.nb-page *,
.nb-page *::before,
.nb-page *::after { box-sizing: border-box; border-radius: 0; }
.nb-page:focus { outline: none; }
.nb-page p { margin: 0; }
.nb-page strong { font-weight: 700; }
.nb-page a {
  color: var(--nb-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Only where a pointer can hover: phones keep :hover after a tap. */
@media (hover: hover) {
  .nb-page a:hover { color: var(--nb-accent-hover); }
  .nb-page .nb-copy:hover { background: var(--nb-accent-hover); }
}

/* Hero */
.nb-hero { max-width: 860px; margin: 0 0 40px; }
.nb-page h1 {
  margin: 0 0 16px;
  font-family: 'Playfair', Georgia, serif;
  font-size: 44px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--nb-ink);
}
.nb-page .nb-lede {
  font-family: 'Playfair', Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--nb-ink);
}
.nb-page > .premier-band { margin-bottom: 40px; }

/* On phones: the story, then the join card, then the thank-you list and
   the sponsor line. From 900px the story and the list share the left column
   and the join card sits beside them. The bottom space is a margin, not
   main's padding: nav-footer.css zeroes that on phones. */
.nb-cols { display: grid; gap: 48px; margin-bottom: 64px; }

/* Join card */
.nb-join {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px;
  background: var(--nb-card);
  border: 1px solid var(--nb-line);
  border-top: 4px solid var(--nb-accent);
}
.nb-page .nb-join h2 {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--nb-ink);
}
.nb-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nb-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 18px;
  line-height: 1.45;
}
.nb-steps li > span:last-child { padding-top: 4px; }
.nb-num {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--nb-accent);
  color: var(--nb-card);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.nb-send {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--nb-tint);
}
.nb-page .nb-email {
  /* 20px from 417px up; a touch smaller below, so the address stays on one
     line on a phone instead of breaking at ".ca". */
  font-size: clamp(16px, 4.8vw, 20px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--nb-ink);
  user-select: all;
  overflow-wrap: anywhere;
}
.nb-page .nb-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  background: var(--nb-accent);
  color: var(--nb-card);
  font: 600 16px/1.3 'Inter', system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
}
.nb-copy[hidden] { display: none; }
.nb-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.5;
}
.nb-notes .nb-fine { font-size: 15px; color: var(--nb-muted); }

/* Story column */
.nb-prose { max-width: 600px; }
.nb-prose p { font-size: 19px; line-height: 1.7; }
.nb-prose p + p { margin-top: 20px; }

.nb-page .nb-village h2 {
  margin: 0 0 20px;
  font-family: 'Playfair', Georgia, serif;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--nb-ink);
}
.nb-names {
  display: grid;
  /* At most two columns, each wide enough for the longest name on one line
     (about 240px at 18px bold); one column where two would not fit, which
     is every phone and the narrowest two-column desktop widths. */
  grid-template-columns: repeat(auto-fit, minmax(max(260px, calc((100% - 32px) / 2)), 1fr));
  gap: 14px 32px;
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--nb-line);
  border-bottom: 1px solid var(--nb-line);
  list-style: none;
}
.nb-name {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--nb-ink);
  overflow-wrap: anywhere;
}

.nb-page .nb-business {
  margin-top: 48px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--nb-muted);
}
.nb-business a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* Only the page's own: the band ships on pages with their own .sr-only. */
.nb-page .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (min-width: 700px) {
  .nb-band { padding: 28px 24px; }
  .nb-page { padding: 72px 16px 96px; }
  .nb-page h1 { font-size: 68px; }
  .nb-page .nb-lede { font-size: 28px; }
  .nb-hero { margin-bottom: 56px; }
  .nb-join { padding: 32px; }
  .nb-send { padding: 20px; }
  .nb-cols { margin-bottom: 0; }
}

@media (min-width: 900px) {
  .nb-cols {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    /* The last row is flexible, so a join card taller than the story pushes
       space below the list rather than between the story and the list. */
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "prose join"
      "more  join";
    gap: 48px 64px;
    align-items: start;
  }
  .nb-prose { grid-area: prose; }
  .nb-join { grid-area: join; }
  .nb-more { grid-area: more; }
}
