/**
 * Design upgrade layer — Impeccable principles
 * Editorial civic atlas. Loads after site.css + explore.css
 */

/* Nav: paper glass, serif brand */
.site-nav {
  background: rgba(251, 246, 236, 0.9);
  border-bottom-color: rgba(24, 35, 28, 0.1);
}
.site-nav-brand {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-nav-links a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.site-nav-links a:hover {
  color: var(--accent);
}

/* Freshness chips on hero */
.freshness-bar {
  background: rgba(247, 242, 232, 0.08);
  border-color: rgba(247, 242, 232, 0.18);
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.freshness-bar strong {
  color: #f0e2c4;
  font-weight: 650;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}
.freshness-bar a {
  color: #f0e2c4;
  text-underline-offset: 3px;
}

/* Philosophy: editorial quote, not nested card stack */
.philosophy {
  margin: 8px 0 0;
  padding: 36px 0 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.philosophy blockquote {
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--accent-2);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 480;
  color: var(--ink);
  max-width: 36ch;
}
.philosophy .ph-source {
  margin-top: 16px;
  padding-left: 22px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Specials: ruled columns, not soft SaaS cards */
.special-item {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  background: transparent;
  box-shadow: none;
}
.special-item h3 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.02em;
  font-size: 22px;
}
.special-item .card-summary {
  background: rgba(166, 107, 43, 0.09);
  border-radius: 10px;
  color: var(--ink);
}

/* Explore shell */
.explore-toolbar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.search-input {
  border: 1.5px solid rgba(24, 35, 28, 0.14) !important;
  border-radius: 14px !important;
  background: #fffef9 !important;
  font-family: var(--font-sans) !important;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search-input:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(27, 92, 72, 0.14);
}
.map-select {
  border-radius: 999px;
  border: 1px solid rgba(24, 35, 28, 0.14);
  background: #fffef9;
  font-family: var(--font-sans);
}
.map-reset {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.map-reset:hover {
  background: rgba(27, 92, 72, 0.06);
}

.explore-list-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
}
.list-head h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 17px;
}
.region-pill {
  border-radius: 12px !important;
  border: 1px solid rgba(24, 35, 28, 0.1) !important;
  background: #fffef9 !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.region-pill:hover {
  border-color: rgba(27, 92, 72, 0.35) !important;
}
.region-pill.active {
  background: rgba(27, 92, 72, 0.1) !important;
  border-color: rgba(27, 92, 72, 0.35) !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
}
.region-pill.interest.active {
  background: rgba(166, 107, 43, 0.12) !important;
  border-color: rgba(166, 107, 43, 0.35) !important;
  color: var(--interest) !important;
}
.pill-meta {
  font-family: var(--font-mono);
  font-size: 12px !important;
  color: var(--muted);
}

.map-stage {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  overflow: hidden;
}
#leaflet-map {
  border-radius: 12px;
  background: #e4e0d4 !important;
}

/* Panel: one surface, clear hierarchy */
.trade-card {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow) !important;
  padding: 22px !important;
}
.trade-card h3 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.025em;
  font-size: clamp(26px, 3vw, 32px) !important;
}
.trade-sub {
  color: var(--muted);
  font-size: 14px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 12px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600 !important;
}
.trade-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.trade-stat > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(24, 35, 28, 0.04);
  border: 1px solid rgba(24, 35, 28, 0.06);
}
.trade-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.trade-stat span {
  font-size: 12px;
  color: var(--muted);
}
.chart-block h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.chart-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.mini-bar {
  background: var(--accent);
  opacity: 0.85;
}
.mini-bar.interest {
  background: var(--interest);
}
.insight-line {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(27, 92, 72, 0.07);
  border: 1px solid rgba(27, 92, 72, 0.12);
  font-size: 14px;
  line-height: 1.55;
}
.caution-line {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(166, 107, 43, 0.09);
  border: 1px solid rgba(166, 107, 43, 0.16);
  color: #5c4420;
  font-size: 13.5px;
  line-height: 1.55;
}
.panel-actions .btn {
  min-height: 36px;
  font-size: 13px;
  font-weight: 650;
}

.compare-tray {
  background: rgba(27, 92, 72, 0.06);
  border: 1px solid rgba(27, 92, 72, 0.12);
  border-radius: 14px;
}
.compare-tray strong {
  font-family: var(--font-display);
  font-weight: 560;
}

/* Tables quieter */
.compare-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(27, 92, 72, 0.06);
  color: var(--muted);
}
.compare-table td {
  font-size: 13.5px;
}
.compare-summary summary {
  font-family: var(--font-display);
  font-weight: 560;
}

/* Hero aside */
.hero-aside {
  border: 1px solid rgba(247, 242, 232, 0.18);
  background: rgba(247, 242, 232, 0.06);
  border-radius: 18px;
  padding: 22px;
  color: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(8px);
}
.hero-aside strong {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 20px;
  display: block;
  margin-bottom: 10px;
  color: #f7f2e8;
}
.hero-aside p {
  color: rgba(247, 242, 232, 0.82);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
footer a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Toast */
.toast {
  background: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

/* Onboarding strip */
.onboarding {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(27, 92, 72, 0.05);
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 16px;
}
.onboarding strong {
  color: var(--accent);
  margin-right: 6px;
}

/* Sample badges */
.sample-badge {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Mono data bits */
#filter-count,
#map-zoom-note,
.data-status-note {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Brand mark: solid copper, no gradient slop */
.brand-mark {
  background: #d4a35c !important;
  box-shadow: 0 0 0 5px rgba(212, 163, 92, 0.18) !important;
}

/* Reduce bounce-feel transitions */
.btn {
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease) !important;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .philosophy blockquote {
    font-size: 20px;
    max-width: none;
  }
  .hero-aside {
    width: 100%;
  }
}

.tax-h {
  font-family: var(--font-display);
  font-size: 18px !important;
  font-weight: 560;
  margin: 0 0 14px !important;
}
.tl-label { font-size: 12px !important; }
.tax-note { font-size: 12px !important; line-height: 1.55 !important; }
.section-kicker { display: none !important; }

/* 2026-08 atlas pass: make the first viewport unmistakably searchable */
.hero-inner {
  grid-template-columns: minmax(0, 650px) minmax(320px, 0.78fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
  padding-bottom: 58px;
}
.hero h1 { max-width: 12ch; }
.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: min(590px, 100%);
  margin-top: 26px;
  padding: 7px;
  border: 1px solid rgba(247, 242, 232, 0.22);
  border-radius: 16px;
  background: rgba(247, 242, 232, 0.1);
  box-shadow: 0 20px 60px rgba(5, 18, 13, 0.22);
  backdrop-filter: blur(14px);
}
.hero-search input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: #f7f2e8;
  background: transparent;
  font: 550 16px/1 var(--font-sans);
}
.hero-search input::placeholder { color: rgba(247, 242, 232, 0.64); }
.hero-search:focus-within {
  border-color: rgba(240, 226, 196, 0.62);
  box-shadow: 0 0 0 3px rgba(240, 226, 196, 0.1), 0 20px 60px rgba(5, 18, 13, 0.22);
}
.hero-search button {
  min-height: 48px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: #f0e2c4;
  font: 700 14px/1 var(--font-sans);
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-search button:hover { background: #fff4db; transform: translateY(-1px); }
.hero-search button span { margin-left: 6px; }
.hero-atlas {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  color: #f7f2e8;
  animation: rise 1.1s var(--ease) .18s both;
}
.hero-atlas-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(247, 242, 232, .18);
}
.hero-atlas-label span {
  color: rgba(247, 242, 232, .58);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-atlas-label strong { font-family: var(--font-display); font-size: 17px; font-weight: 560; }
.hero-map-figure { position: relative; flex: 1; min-height: 360px; }
.hero-map-figure img {
  position: absolute;
  inset: 16px 0 18px;
  width: 100%;
  height: calc(100% - 34px);
  object-fit: contain;
  opacity: .72;
  filter: brightness(0) invert(1);
}
.atlas-point {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4a35c;
  box-shadow: 0 0 0 6px rgba(212, 163, 92, .12);
}
.atlas-point::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(212, 163, 92, .46);
  border-radius: 50%;
  animation: atlasPulse 3s ease-out infinite;
}
.point-a { left: 38%; top: 28%; }
.point-b { right: 26%; top: 46%; }
.point-c { left: 34%; bottom: 26%; }
.point-d { right: 34%; bottom: 18%; }
.point-b::after { animation-delay: .8s; }
.point-c::after { animation-delay: 1.6s; }
.point-d::after { animation-delay: 2.2s; }
.atlas-key {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: flex;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(247, 242, 232, .16);
  border-radius: 999px;
  background: rgba(15, 36, 30, .72);
  font-size: 11px;
}
.atlas-key span { display: inline-flex; align-items: center; gap: 6px; }
.atlas-key i { width: 7px; height: 7px; border-radius: 50%; background: #d4a35c; }
.atlas-key i.interest { background: #e9d5a9; }
.hero-atlas-note {
  padding-top: 14px;
  border-top: 1px solid rgba(247, 242, 232, .18);
}
.hero-atlas-note strong { font-family: var(--font-display); font-size: 18px; font-weight: 560; }
.hero-atlas-note p { margin: 4px 0 0; color: rgba(247, 242, 232, .68); font-size: 13px; }
@keyframes atlasPulse {
  0% { opacity: .8; transform: scale(.5); }
  70%, 100% { opacity: 0; transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-point::after { animation: none; }
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 36px; }
  .hero-atlas { min-height: 440px; }
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-atlas { min-height: 390px; }
  .hero-map-figure { min-height: 250px; }
}

@media (max-width: 720px) {
  .site-nav-inner {
    width: 100%;
    padding-left: 14px;
    gap: 14px;
  }
  .site-nav-brand {
    flex: 0 0 92px;
    white-space: normal;
    font-size: 12px !important;
    line-height: 1.12;
  }
  .site-nav-links {
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 13px 14px 13px 0;
    gap: 16px !important;
    scrollbar-width: none;
  }
  .site-nav-links::-webkit-scrollbar { display: none; }
  .site-nav-links a { flex: 0 0 auto; }
  .hero-inner { padding-top: 52px; padding-bottom: 34px; }
  .hero h1 { max-width: none; font-size: clamp(34px, 10.5vw, 42px); line-height: 1.06; }
  .hero-search { grid-template-columns: 1fr; padding: 6px; }
  .hero-search button { width: 100%; }
  .hero .cta-row { flex-direction: row; align-items: center; gap: 8px; }
  .hero .cta-row .btn { min-height: 42px; padding: 0 13px; font-size: 13px; }
  .metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-strip strong { font-size: 24px; }
  .hero-atlas { min-height: 350px; }
  .hero-atlas-label strong { font-size: 15px; }
}

@media (max-width: 420px) {
  .hero .cta-row .btn { flex: 1 1 calc(50% - 4px); }
  .hero .cta-row .btn:last-child { flex-basis: 100%; }
}

/* Secondary pages: keep the same paper-and-atlas language */
.explore-main h1,
.sources-main h1 { color: var(--ink); }
.explore-main > .eyebrow,
.sources-main > .eyebrow {
  border: 0 !important;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent) !important;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: none;
}
.compare-picker {
  margin-top: 26px;
  padding: 18px;
  border-top: 2px solid var(--ink);
  background: rgba(251, 246, 236, .72);
}
.compare-picker label {
  display: grid;
  grid-template-columns: 120px minmax(0, 420px);
  align-items: center;
  gap: 12px;
}
.peer-box:empty { display: none; }

.region-hero,
.directory-hero {
  position: relative;
  overflow: hidden;
  color: #f7f2e8;
  background:
    radial-gradient(circle at 82% 25%, rgba(212, 163, 92, .18), transparent 28%),
    linear-gradient(140deg, #163c31, #0d231d 72%);
}
.region-hero::after,
.directory-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(247, 242, 232, .12) 25%);
}
.region-hero-inner,
.directory-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 0 42px;
}
.region-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  color: rgba(247, 242, 232, .66);
  font: 550 13px/1 var(--font-sans);
}
.region-back::before { content: "←"; }
.region-kicker {
  margin-bottom: 9px;
  color: #d4a35c;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.region-hero h1,
.directory-hero h1 {
  max-width: none;
  color: #f7f2e8;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  animation: none;
}
.region-hero p,
.directory-hero p {
  margin: 14px 0 0;
  color: rgba(247, 242, 232, .72);
  font-size: 16px;
}
.region-record {
  flex: 0 0 210px;
  padding: 16px 0 4px 20px;
  border-left: 1px solid rgba(247, 242, 232, .22);
}
.region-record span,
.region-record small {
  display: block;
  color: rgba(247, 242, 232, .58);
  font: 500 10px/1.5 var(--font-mono);
  letter-spacing: .08em;
}
.region-record strong {
  display: block;
  margin: 4px 0 12px;
  color: #f0e2c4;
  font: 500 clamp(34px, 5vw, 52px)/1 var(--font-mono);
  letter-spacing: -.06em;
}
.region-page { background: var(--paper); }
.region-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: clamp(44px, 7vw, 88px);
  padding-top: 54px;
  padding-bottom: 82px;
}
.region-overview { padding: 0; border: 0; }
.region-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.region-section-head .badge { margin: 0 0 12px; }
.region-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 560;
}
.region-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.region-metrics > div {
  min-width: 0;
  padding: 24px 18px 22px 0;
}
.region-metrics > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.region-metrics span { display: block; color: var(--muted); font-size: 12px; }
.region-metrics strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.region-metrics strong small { margin-left: 3px; color: var(--muted); font: 500 12px/1 var(--font-sans); }
.region-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0 0; }
.region-facts > div { display: grid; grid-template-columns: minmax(100px, .8fr) 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.region-facts > div:nth-child(odd) { margin-right: 22px; }
.region-facts dt { color: var(--muted); font-size: 13px; }
.region-facts dt small { font-size: 10px; }
.region-facts dd { margin: 0; font-weight: 650; text-align: right; }
.region-caution {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent-2);
  background: rgba(166, 107, 43, .07);
  color: #5c4420;
  font-size: 14px;
}
.region-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.region-actions .btn { min-height: 42px; font-size: 13px; cursor: pointer; }
.region-citation { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.region-citation summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.region-citation pre {
  margin: 15px 0 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffef9;
  white-space: pre-wrap;
  font: 12px/1.65 var(--font-mono);
}
.region-evidence {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: rgba(239, 232, 219, .48);
}
.region-evidence-label { color: var(--accent); font: 600 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.region-evidence h2 { margin: 8px 0 20px; font-size: 25px; font-weight: 560; }
.region-evidence dl { margin: 0; }
.region-evidence dl div { display: grid; grid-template-columns: 95px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.region-evidence dt { color: var(--muted); font-size: 12px; }
.region-evidence dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.region-evidence h3 { margin: 28px 0 8px; font-size: 17px; }
.region-evidence p { margin: 0; color: var(--muted); font-size: 13px; }
.region-source-link { display: inline-block; margin-top: 24px; color: var(--accent); font-size: 13px; font-weight: 700; }

.directory-hero-inner { padding-top: 64px; padding-bottom: 48px; }
.directory-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.directory-count { min-width: 126px; padding-left: 22px; border-left: 1px solid rgba(247, 242, 232, .22); }
.directory-count strong { display: block; color: #f0e2c4; font: 500 48px/1 var(--font-display); }
.directory-count span { display: block; margin-top: 7px; color: rgba(247, 242, 232, .58); font-size: 12px; }
.directory-main { padding-top: 32px; padding-bottom: 84px; }
.directory-toolbar {
  position: sticky;
  top: 68px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(251, 246, 236, .94);
  backdrop-filter: blur(14px);
}
.directory-search input,
.directory-toolbar select,
.directory-toolbar button {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fffef9;
  color: var(--ink);
  font: 550 13px/1 var(--font-sans);
}
.directory-search input { font-size: 15px; }
.directory-toolbar button { width: auto; cursor: pointer; background: var(--ink); color: #f7f2e8; }
.directory-list { border-top: 1px solid var(--ink); }
.region-directory-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(100px, .6fr) minmax(100px, .7fr) auto 24px;
  gap: 20px;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  transition: background .18s var(--ease), padding .18s var(--ease);
}
.region-directory-item:hover { padding-left: 20px; background: rgba(27, 92, 72, .055); }
.region-directory-item[hidden] { display: none; }
.region-directory-name small,
.region-directory-data small { display: block; color: var(--muted); font-size: 11px; }
.region-directory-name strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 20px; font-weight: 560; }
.region-directory-data strong { display: block; margin-top: 3px; font-size: 15px; }
.region-directory-data strong i { margin-left: 2px; color: var(--muted); font-size: 10px; font-style: normal; }
.region-directory-data .quality-text { font-size: 13px; }
.region-type-mark { padding: 5px 8px; border: 1px solid rgba(27, 92, 72, .2); color: var(--accent); font: 600 10px/1 var(--font-mono); white-space: nowrap; }
.region-type-mark.interest { border-color: rgba(166, 107, 43, .24); color: var(--interest); }
.region-directory-arrow { color: var(--accent); font-size: 16px; }
.directory-empty { padding: 56px 20px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .region-detail-shell { grid-template-columns: 1fr; gap: 32px; }
  .region-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .region-evidence-label, .region-evidence h2, .region-evidence .region-source-link { grid-column: 1 / -1; }
  .directory-toolbar { grid-template-columns: 1fr 1fr; }
  .directory-search { grid-column: 1 / -1; }
  .directory-toolbar button { width: 100%; }
}

@media (max-width: 640px) {
  .region-hero-inner,
  .directory-hero-inner { align-items: start; padding: 40px 0 32px; }
  .region-record { display: none; }
  .directory-count { min-width: 74px; padding-left: 14px; }
  .directory-count strong { font-size: 34px; }
  .directory-hero p { font-size: 14px; }
  .region-detail-shell { padding-top: 36px; padding-bottom: 56px; }
  .region-section-head { align-items: start; }
  .region-metrics { grid-template-columns: 1fr 1fr; }
  .region-metrics > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .region-metrics > div:nth-child(4) { border-top: 1px solid var(--line); }
  .region-facts { grid-template-columns: 1fr; }
  .region-facts > div:nth-child(odd) { margin-right: 0; }
  .region-evidence { display: block; }
  .directory-toolbar { position: static; grid-template-columns: 1fr; }
  .directory-search { grid-column: auto; }
  .region-directory-item {
    grid-template-columns: minmax(0, 1fr) auto 18px;
    gap: 10px;
    min-height: 76px;
    padding: 10px 4px;
  }
  .region-directory-data { display: none; }
  .region-directory-item:hover { padding-left: 8px; }
  .region-type-mark { font-size: 9px; }
  .compare-picker label { grid-template-columns: 1fr; }
  .compare-picker input[type="search"] { max-width: none; }
}
