/* NJ Property Maps — editorial property-data UI */
:root {
  --ink: #121a22;
  --muted: #5a6a76;
  --paper: #f3f5f6;
  --card: #ffffff;
  --line: #d5dde3;
  --accent: #0a5c58;
  --accent-hover: #084743;
  --accent-2: #a85a2a;
  --rail: 316px;
  --max: 1180px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --header-bg: rgba(243, 245, 246, 0.92);
  --footer-bg: #e8ecef;
  --ease: 160ms ease;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  align-items: center; padding: .95rem 0;
}
.brand {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.03em;
}
.site-search { display: flex; flex: 1; min-width: 220px; gap: .45rem; }
.site-search input {
  flex: 1; border: 1px solid var(--line); border-radius: 4px;
  padding: .6rem .75rem; background: #fff; font: inherit;
}
.site-search input:focus {
  outline: 2px solid rgba(10, 92, 88, .25);
  outline-offset: 1px;
  border-color: var(--accent);
}
.site-search button, .btn {
  border: 0; border-radius: 4px; background: var(--accent); color: #fff;
  padding: .6rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
  transition: background var(--ease);
}
.site-search button:hover, .btn:hover { background: var(--accent-hover); }
.nav-links { display: flex; gap: 1.15rem; font-size: .92rem; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  opacity: .82;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }

/* Layout */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .page-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .rail { display: none; }
}
@media (min-width: 961px) {
  .rail { display: block; }
}

.breadcrumbs { font-size: .86rem; color: var(--muted); margin: 1.1rem 0 .4rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

h1 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 650;
  line-height: 1.12;
  margin: 0 0 .55rem;
  letter-spacing: -.03em;
}
.home-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}
.home-actions {
  margin: 0 0 1.5rem;
}
.home-actions .btn {
  text-decoration: none;
  display: inline-block;
  padding: .7rem 1.15rem;
  font-size: 1rem;
}
.lede {
  color: var(--muted);
  margin: 0 0 1.35rem;
  max-width: 38rem;
  font-size: 1.02rem;
}

.hero-tax {
  background: var(--ink);
  color: #f2f6f7;
  border-radius: 6px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}
.hero-tax .eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .68rem;
  opacity: .7;
  font-weight: 600;
}
.hero-tax .big {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 650;
  margin: .25rem 0;
  letter-spacing: -.02em;
}
.hero-tax .big.up { color: #f0c9a0; }
.hero-tax .big.down { color: #9fdbc8; }
.hero-tax .sub { opacity: .88; font-size: .95rem; max-width: 40rem; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.1rem;
}
.panel h2, .panel h3 {
  margin: 0 0 .75rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -.015em;
}
.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td {
  text-align: left;
  padding: .5rem 0;
  border-bottom: 1px solid #e8eef1;
  vertical-align: top;
}
.kv th { color: var(--muted); font-weight: 500; width: 42%; }
.kv td { font-variant-numeric: tabular-nums; }
.hist { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hist th, .hist td { text-align: left; padding: .45rem .3rem; border-bottom: 1px solid #e8eef1; }
.hist th { color: var(--muted); font-weight: 600; }
.hist td:nth-child(n+2) { font-variant-numeric: tabular-nums; }

.bar-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: .55rem;
  align-items: center;
  font-size: .9rem;
  margin: .35rem 0;
}
.bar-row strong em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  margin-left: .35rem;
  font-size: .85em;
}
.bar-track { height: .4rem; background: #e6ecf0; border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.bar-fill.school { background: #0a5c58; }
.bar-fill.county { background: #2a4d7a; }
.bar-fill.municipal { background: #a85a2a; }

/* County / mun lists — editorial links, not app tiles */
.county-grid, .mun-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  list-style: none;
  padding: 0;
  margin: .35rem 0 0;
}
@media (max-width: 560px) {
  .county-grid, .mun-grid { grid-template-columns: 1fr; }
}
.county-grid a, .mun-grid a {
  display: block;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--ease);
}
.county-grid a:hover, .mun-grid a:hover { color: var(--accent); }

.map-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.map-cta p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: .95rem;
}
.map-cta .btn { text-decoration: none; display: inline-block; }

.disclaimer { font-size: .84rem; color: var(--muted); }
.legal-page { max-width: 42rem; padding-bottom: 1rem; }
.legal-page h2 {
  margin: 1.75rem 0 .55rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink);
}
.legal-page ul { margin: .4rem 0 1rem; padding-left: 1.2rem; }
.legal-page li { margin-bottom: .4rem; }
.feedback-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.feedback-form input[type="email"],
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .65rem .75rem;
  font: inherit;
  background: #fff;
}
.feedback-form textarea { resize: vertical; min-height: 10rem; }
.feedback-form p { margin: 0 0 1rem; }
.feedback-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.meta-years { font-size: .9rem; color: var(--muted); margin: -.2rem 0 1rem; }
.notice {
  margin: 0 0 1rem;
  padding: .7rem .85rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: .9rem;
  line-height: 1.4;
}
.notice-info { background: #eef5f3; border-color: #c5d9d4; color: #1e4a45; }
.notice-warn { background: #f8f1e8; border-color: #e2c9a8; color: #6a4012; }
.results { padding-left: 1.1rem; }
.results li { margin-bottom: .55rem; }
.empty {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--muted);
  font-size: .88rem;
}
.footer-inner { padding: 1.75rem 0 2.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ——— Ads: quiet frames, intentional placement ——— */
.ad-cap {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b97a1;
  margin: 0 0 .45rem;
}
.rail {
  position: sticky;
  top: 4.75rem;
  padding-top: .15rem;
}
.ad-slot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
}
.ad-slot__gpt {
  width: 100%;
  display: flex;
  justify-content: center;
}
.ad-slot--rail {
  min-height: 600px;
  width: 300px;
  max-width: 100%;
}
.ad-slot--rail .ad-slot__gpt { min-height: 600px; }

.ad-native {
  margin: 1.75rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  align-items: center;
}
.ad-native .ad-cap { align-self: flex-start; width: min(300px, 100%); }
.ad-slot--native {
  width: min(300px, 100%);
  min-height: 250px;
}
.ad-slot--native .ad-slot__gpt { min-height: 250px; }

@media (max-width: 960px) {
  .ad-native { display: flex; }
}
