:root {
  --nj-blue: #0077ff;
  --nj-blue-soft: #e4f0ff;
  --nj-teal: #00b8a9;
  --nj-yellow: #ffd166;
  --nj-dark: #1f2933;
  --nj-grey: #f4f5f7;
  --nj-border: #dde2eb;
  --radius-lg: 12px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f4f8;
  color: #1f2933;
  line-height: 1.6;
}

/* Header & Navigation */

.site-header {
  background: linear-gradient(120deg, var(--nj-blue), var(--nj-teal));
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #ffd166 45%, #ff8c42 75%);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #1f2933;
}

.brand-text-main {
  font-weight: 700;
  font-size: 1.7rem; /* larger brand text */
  letter-spacing: 0.03em;
}

.brand-tagline {
  font-size: 1.05rem; /* larger tagline */
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-toggle span {
  margin-left: 0.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 1.2rem;      /* larger nav text */
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Layout */

.page-wrapper {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.5rem;
}

/* Sidebar */

.sidebar-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--nj-border);
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sidebar-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.6rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 420px;
  overflow: auto;
}

.sidebar-list li a {
  display: block;
  padding: 0.25rem 0.3rem;
  font-size: 0.88rem;
  color: #1f2933;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-list li a:hover {
  background: var(--nj-blue-soft);
  color: var(--nj-blue);
}

/* Main content */

.main-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--nj-border);
}

.page-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #6b7280;
}

.page-title {
  margin: 0.3rem 0 0.2rem;
  font-size: 1.6rem;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1.1rem;
}

/* Hero for homepage */

.hero-strip {
  background: linear-gradient(120deg, var(--nj-yellow), var(--nj-blue-soft));
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1.2rem;
  margin-bottom: 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr);
  gap: 1rem;
}

.hero-heading {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.hero-text {
  font-size: 0.95rem;
  color: #374151;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.hero-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 5px 16px rgba(148, 163, 184, 0.35);
  height: 100%;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.hero-stat-number {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Town info blocks */

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.info-card {
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: var(--nj-grey);
  border: 1px solid var(--nj-border);
}

.info-card h3 {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.info-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.info-value {
  font-size: 0.95rem;
}

/* Simple button */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(120deg, var(--nj-blue), var(--nj-teal));
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 0.5rem;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

/* Lists & tables */

.simple-list {
  padding-left: 1.1rem;
  margin: 0.4rem 0;
}

.simple-list li {
  margin-bottom: 0.25rem;
}

/* Counties list on its own page */

.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.county-card {
  background: var(--nj-grey);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--nj-border);
}

.county-card a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2933;
}

.county-card small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Footer */

.site-footer {
  padding: 1.1rem 1rem 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.site-footer a {
  color: var(--nj-blue);
  text-decoration: none;
}

/* Responsive */

@media (max-width: 840px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    position: absolute;
    left: 0;
    right: 0;
    top: 55px;
    padding: 0.8rem 1rem 0.9rem;
  }

  .site-nav a {
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
}

/* FINAL OVERRIDE – make header text black and larger */
.site-header,
.site-header a,
.brand-text-main,
.brand-tagline,
.site-nav a {
  color: #000000 !important;
  text-shadow: none !important;
}
.hero-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
  display: block;
}
.site-logo {
  height: 70px;
  width: auto;
  display: block;
}

.hero-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
  display: block;
}
.feature-links {
  margin: 1rem 0 1.25rem;
}

.feature-links h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.feature-card {
  display: block;
  padding: 0.9rem;
  border-radius: 12px;
  background: #f4f5f7;
  border: 1px solid #dde2eb;
  color: #1f2933;
  text-decoration: none;
}

.feature-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feature-card span {
  display: block;
  font-size: 0.85rem;
  color: #4b5563;
}

.feature-card:hover {
  background: #e4f0ff;
  color: #0077ff;
}