/* Public market-test directory. No brand name. Distinctive, map-led, not a standard listings layout. */
:root {
  --ink: #10181c;
  --ink-2: #182328;
  --panel: #1c3038;
  --paper: #f3efe4;
  --paper-2: #fffdf8;
  --rule: #d4cebf;
  --text: #172126;
  --muted: #4a5960;
  --amber: #c48412;
  --amber-2: #f0c14b;
  --teal: #1f6f64;
  --link: #0f5a72;
  --link-on-ink: #9ad4ea;
  --ok: #24643a;
  --focus: #e3a008;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 24, 28, 0.18);
  --sans: "Segoe UI", "Source Sans 3", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font: 1rem/1.55 var(--sans);
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip {
  position: absolute; left: 0.75rem; top: -3rem;
  background: var(--amber-2); color: var(--ink);
  padding: 0.4rem 0.7rem; z-index: 100; font-weight: 600;
}
.skip:focus { top: 0.5rem; }
.site-header, .site-footer { width: 100%; }
.site-header {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem 1.25rem; padding: 0.75rem 1.25rem;
  background: var(--ink-2); color: var(--paper);
  border-bottom: 1px solid rgba(243, 239, 228, 0.12);
}
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--paper);
  font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em;
  line-height: 1.25; white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand .mark {
  display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--amber-2), var(--teal));
  flex: 0 0 auto; margin-right: 0.15rem; align-self: center;
}
nav[aria-label="Main"] {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.9375rem;
  margin-left: auto;
}
nav[aria-label="Main"] a { color: var(--paper); text-decoration: none; }
nav[aria-label="Main"] a:hover,
nav[aria-label="Main"] a[aria-current="page"] { color: var(--amber-2); text-decoration: underline; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 1.5rem, 90rem); margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
h1 { font-size: clamp(1.45rem, 2.2vw, 2.1rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); margin: 0 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.85rem; }
.lede { font-size: 1.05rem; max-width: 42rem; }
.muted, .hint, .sub, .attr { color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem;
  color: var(--teal); margin: 0 0 0.5rem; font-weight: 600;
}
.section { padding: 1.5rem 0 2rem; }
.home-hero { padding: 1.75rem 0 1.25rem; }
.page-links {
  display: grid; gap: 1rem; margin: 1.25rem 0 1.75rem;
}
@media (min-width: 700px) {
  .page-links { grid-template-columns: 1fr 1fr; }
}
.page-link {
  display: block; background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none;
  color: var(--text); box-shadow: 0 1px 0 rgba(16,24,28,0.04);
}
.page-link:hover { border-color: var(--teal); color: var(--text); }
.page-link h2 { color: var(--link); margin-bottom: 0.35rem; }
.page-link p { margin: 0; color: var(--muted); }
.notice, .callout, .about-note {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
}
.callout p:last-child, .notice p:last-child, .about-note p:last-child { margin-bottom: 0; }
.disclaimer {
  font-size: 0.9375rem; color: var(--muted); max-width: 48rem;
}

/* County results */
.results-intro { padding: 1.25rem 0 0.5rem; }
.results-layout {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--rule);
}
.results-map {
  min-height: 16rem; height: 16rem; background: #d9e0dc;
}
.results-side { padding: 1.1rem 1.1rem 2rem; }
@media (min-width: 1001px) {
  .results-layout {
    grid-template-columns: minmax(22rem, 1fr) minmax(24rem, 32rem);
    align-items: start;
  }
  .results-map {
    height: min(70vh, 42rem);
    min-height: 28rem;
    position: sticky; top: 0;
  }
  .results-side { padding: 1.25rem 1.5rem 2.5rem; overflow: auto; }
}
@media (min-width: 1366px) {
  .results-layout { grid-template-columns: minmax(28rem, 1.2fr) minmax(26rem, 36rem); }
  .results-map { height: min(72vh, 44rem); }
}
@media (min-width: 1920px) {
  .results-layout { grid-template-columns: minmax(36rem, 1.3fr) minmax(28rem, 40rem); }
  .results-map { height: min(74vh, 48rem); }
}
.map-caption { font-size: 0.75rem; color: var(--muted); margin: 0.4rem 0 0; }
.filters {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 1rem;
}
.filters legend, .filter-label {
  width: 100%; font-weight: 600; font-size: 0.875rem; margin: 0 0 0.25rem;
}
.filter-chip {
  appearance: none; border: 1px solid var(--rule); background: var(--paper-2);
  color: var(--text); border-radius: 999px; padding: 0.28rem 0.7rem;
  font: inherit; font-size: 0.8125rem; cursor: pointer;
}
.filter-chip:hover { border-color: var(--teal); }
.filter-chip[aria-pressed="true"], .filter-chip.is-active {
  background: var(--teal); color: #fff; border-color: var(--teal);
}
.result-count { font-size: 0.9375rem; margin: 0 0 0.75rem; }
.listing-card {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 0.9rem 1rem 1rem;
  margin: 0 0 0.75rem;
}
.listing-card h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.listing-card .meta { font-size: 0.8125rem; color: var(--muted); margin: 0 0 0.45rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 0.5rem; }
.pill {
  font-size: 0.72rem; background: #e7eeec; color: #1c3330;
  border-radius: 999px; padding: 0.12rem 0.45rem;
}
.bw-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 650;
  background: #e7f0e8; color: var(--ok); border: 1px solid #b7d0bb;
  border-radius: 6px; padding: 0.12rem 0.45rem; margin: 0 0 0.45rem;
}
.listing-card .hint { font-size: 0.8125rem; margin: 0 0 0.3rem; }
.listing-card .sources { font-size: 0.75rem; color: var(--muted); margin: 0.45rem 0 0; }
.claim-link { margin: 0.55rem 0 0; font-size: 0.875rem; }
.trading { font-size: 0.8125rem; color: var(--muted); margin: 0 0 0.4rem; }

/* Guide */
.guide-body { max-width: 42rem; padding: 1.5rem 0 2.5rem; }
.guide-body ol { padding-left: 1.2rem; }
.guide-body li { margin: 0 0 0.65rem; }
.guide-meta { font-size: 0.875rem; color: var(--muted); margin: 0 0 1rem; }

.site-footer {
  background: var(--ink-2); color: #d7ddd8;
  padding: 1.35rem 0 1.6rem; margin-top: auto;
  font-size: 0.875rem; line-height: 1.5;
}
.site-footer a { color: var(--link-on-ink); }
.site-footer a:hover { color: #fff; }
.site-footer .attr { color: #9aa7ab; font-size: 0.8125rem; }
.site-footer p { margin: 0 0 0.65rem; }
.site-footer p:last-child { margin-bottom: 0; }

.leaflet-container { font: inherit; background: #d9e0dc; }
.leaflet-popup-content { margin: 0.7rem 0.85rem; color: var(--text); }
.leaflet-popup-content a { color: var(--link); }
.leaflet-popup-content .hint { font-size: 0.75rem; color: var(--muted); }

@media (max-width: 390px) {
  html { font-size: 100%; }
  h1 { font-size: 1.4rem; }
  .brand { font-size: 1.05rem; }
  .listing-card { padding: 0.8rem 0.85rem; }
  .results-side { padding: 1rem 0.85rem 1.75rem; }
  .site-header { padding: 0.7rem 0.85rem; }
}
@media (min-width: 1920px) {
  :root { --max: 80rem; }
}
