/* Site additions on top of styles.css (the shared Brantford design, kept verbatim).
   Only covers parts styles.css has no rules for. */

/* Colour names used by inline styles in page content */
:root {
  --white: #ffffff;
  --text-dark: var(--text);
  --text-muted: #64748b;
  --primary-light: #f1f5f9;
}

/* Live search: wrapper around the Brantford search pill + results dropdown */
.nav-search-box {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
  margin: 8px 0;
}

.nav-search-box .nav-search {
  max-width: none;
  margin: 0;
}

@media (max-width: 768px) {
  .nav-search-box { flex: 1 1 100%; max-width: none; order: 2; margin: 0 0 10px; }
}

.nav-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  max-height: 70vh;
  overflow-y: auto;
  z-index: 1150;
  text-align: left;
}

.nav-search-results a.result-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.nav-search-results a.result-item:last-child { border-bottom: none; }
.nav-search-results a.result-item:hover { background: var(--primary-light); }

.nav-search-results .result-cat {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
}

.nav-search-results .result-title { font-weight: 700; font-size: 15px; color: var(--primary); }

.nav-search-empty { padding: 16px; }
.nav-search-empty p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.nav-search-empty form { display: flex; gap: 8px; }

.nav-search-empty input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

.nav-search__notify {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Cookie banner: hidden until the consent script adds .show */
.cookie-consent:not(.show) { display: none; }

/* Hero with no hero form (blog posts, 404): let the blue box fill the
   whole hero instead of leaving an empty half. */
.hero-container > .hero-section:only-child {
  grid-column: 1 / -1;
}
