/*
 * Nepal Postal Atlas - Seamless 100% Full-Width WordPress, LiveCanvas & Picostrap Stylesheet
 * - 100% edge-to-edge full-bleed layout (breaks out of boxed .container automatically)
 * - Zero rounded borders (border-radius: 0 everywhere)
 * - Modern SVG chevron breadcrumbs (no raw slashes or ugly underlines)
 * - Follows global WordPress / Bootstrap 5 (Picostrap) CSS variables
 * - Strict .npa-* namespace and zero !important declarations
 */

.npa-root {
  --npa-primary: var(--bs-primary, var(--wp--preset--color--primary, #c64736));
  --npa-primary-rgb: var(--bs-primary-rgb, 198, 71, 54);
  --npa-secondary: var(--bs-secondary, var(--wp--preset--color--secondary, #495057));
  --npa-accent: var(--bs-warning, #f4a45a);
  --npa-bg: var(--bs-body-bg, var(--wp--preset--color--base, #ffffff));
  --npa-surface: var(--bs-tertiary-bg, var(--bs-light, #f6f5f2));
  --npa-map-bg: var(--bs-dark, #141c2e);
  --npa-map-panel-bg: #182238;
  --npa-map-text: var(--bs-light, #f8f9fa);
  --npa-text: var(--bs-body-color, var(--wp--preset--color--contrast, #1e2128));
  --npa-muted: var(--bs-secondary-color, #686c75);
  --npa-border: var(--bs-border-color, #dedad2);

  --npa-font-sans: var(--bs-body-font-family, var(--bs-font-sans-serif, system-ui, -apple-system, sans-serif));
  --npa-font-mono: var(--bs-font-monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);

  color: var(--npa-text);
  font-family: var(--npa-font-sans);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  background: var(--npa-bg);
  box-sizing: border-box;
  overflow-x: clip;
}

.npa-root *,
.npa-root *::before,
.npa-root *::after {
  box-sizing: border-box;
  border-radius: 0;
}

.npa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Seamless Top SEO Breadcrumb Bar */
.npa-seo-breadcrumbs-bar {
  width: 100%;
  background: var(--npa-surface);
  border-bottom: 1px solid var(--npa-border);
  padding: 0.75rem clamp(1.25rem, 4vw, 3.5rem);
}

.npa-seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--npa-muted);
  margin: 0;
  padding: 0;
  list-style: none;
}

.npa-bc-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.npa-bc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--npa-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.2rem 0.45rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.npa-bc-link:hover {
  color: var(--npa-primary);
  background: rgba(var(--npa-primary-rgb), 0.08);
  text-decoration: none;
}

.npa-bc-current {
  display: inline-flex;
  align-items: center;
  color: var(--npa-text);
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: var(--npa-bg);
  border: 1px solid var(--npa-border);
}

.npa-bc-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--npa-muted);
  opacity: 0.55;
  flex-shrink: 0;
}

.npa-bc-sep svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Main Seamless 100% Full-Width Interactive Atlas Grid */
.npa-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  width: 100%;
  border-top: 1px solid var(--npa-border);
  border-bottom: 1px solid var(--npa-border);
  border-left: 0;
  border-right: 0;
  background: var(--npa-bg);
}

/* Left Panel: Cartographic Map Stage */
.npa-map-panel {
  background: var(--npa-map-bg);
  color: var(--npa-map-text);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.npa-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem clamp(1.25rem, 3.5vw, 3rem) 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--npa-map-panel-bg);
  position: relative;
}

.npa-map-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--npa-primary) 0%, var(--npa-accent) 50%, var(--npa-primary) 100%);
}

.npa-map-kicker {
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--npa-accent);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.npa-map-kicker::before {
  content: '+';
  color: var(--npa-primary);
  font-weight: 700;
}

.npa-map-title {
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
  line-height: 1.15;
}

.npa-map-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0.45rem 0 0;
  line-height: 1.5;
}

.npa-stat-badge {
  border: 1px dashed rgba(244, 164, 90, 0.65);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.25rem;
  text-align: center;
  color: var(--npa-accent);
  flex-shrink: 0;
  min-width: 130px;
}

.npa-stat-badge-top {
  font-family: var(--npa-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.npa-stat-badge strong {
  display: block;
  font-size: 2.35rem;
  line-height: 1.05;
  font-weight: 800;
  margin: 0.15rem 0;
  color: var(--npa-accent);
}

.npa-stat-badge span {
  font-family: var(--npa-font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

/* Interactive Map Breadcrumb & Reset Toolbar */
.npa-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem clamp(1.25rem, 3.5vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

.npa-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8125rem;
}

.npa-crumb-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.npa-crumb-btn:hover {
  background: rgba(244, 164, 90, 0.18);
  border-color: var(--npa-accent);
  color: #ffffff;
}

.npa-crumb-active {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: var(--npa-accent);
  color: #141c2e;
  font-size: 0.75rem;
  font-weight: 700;
}

.npa-crumb-sep {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 0.1rem;
}

.npa-crumb-sep svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.npa-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--npa-map-text);
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.npa-reset-btn:hover {
  border-color: var(--npa-accent);
  color: var(--npa-accent);
  background: rgba(244, 164, 90, 0.1);
}

/* Cartographic SVG Stage with Subtle Grid */
.npa-map-stage {
  position: relative;
  padding: 1.25rem clamp(1.25rem, 3.5vw, 3rem);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.npa-map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.npa-map-svg {
  width: 100%;
  height: 440px;
  display: block;
}

.npa-map-svg path {
  stroke: #e2e8f0;
  stroke-opacity: 0.92;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.15s ease, stroke-width 0.15s ease;
}

.npa-map-svg path:hover,
.npa-map-svg path:focus {
  fill: var(--npa-accent);
  stroke: #ffffff;
  stroke-width: 2.3;
  outline: none;
}

.npa-map-svg text {
  font-family: var(--npa-font-sans);
  font-size: 14px;
  font-weight: 600;
  fill: #ffffff;
  paint-order: stroke;
  stroke: rgba(20, 28, 46, 0.85);
  stroke-width: 3.5px;
  stroke-linejoin: round;
  pointer-events: none;
}

.npa-map-footer {
  padding: 0.875rem clamp(1.25rem, 3.5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--npa-map-panel-bg);
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
}

.npa-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.npa-status-dot {
  width: 8px;
  height: 8px;
  background: var(--npa-accent);
  flex-shrink: 0;
}

.npa-hover-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
}

.npa-map-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.68);
}

.npa-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.npa-legend-swatch {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.npa-legend-swatch-default {
  background: #596cc4;
}

.npa-legend-swatch-active {
  background: var(--npa-accent);
}

/* Right Panel: Search & Destination Inspector */
.npa-side-panel {
  background: var(--npa-bg);
  border-left: 1px solid var(--npa-border);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.npa-search-section {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--npa-border);
  background: var(--npa-surface);
  position: relative;
}

.npa-overline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--npa-primary);
  font-weight: 700;
}

.npa-search-label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0.5rem 0 0.625rem;
  color: var(--npa-text);
}

.npa-search-box {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--npa-border);
  background: var(--npa-bg);
  padding: 0 0.875rem;
  min-height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.npa-search-box:focus-within {
  border-color: var(--npa-primary);
  box-shadow: 0 0 0 3px rgba(var(--npa-primary-rgb), 0.14);
}

.npa-search-icon {
  width: 17px;
  height: 17px;
  stroke: var(--npa-primary);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.npa-search-input {
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--npa-text);
  font-size: 0.9375rem;
  width: 100%;
  min-width: 0;
  height: 44px;
}

.npa-kbd {
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  color: var(--npa-muted);
  border: 1px solid var(--npa-border);
  background: var(--npa-surface);
  padding: 0.1rem 0.45rem;
}

.npa-search-help {
  font-size: 0.75rem;
  color: var(--npa-muted);
  margin: 0.5rem 0 0;
}

.npa-results {
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  top: calc(100% - 0.5rem);
  background: var(--npa-bg);
  border: 1px solid var(--npa-text);
  z-index: 30;
  max-height: 320px;
  overflow: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.npa-results:empty {
  display: none;
}

.npa-results-empty {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--npa-muted);
}

.npa-content-section {
  padding: 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.npa-heading {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.4rem 0 0.25rem;
  color: var(--npa-text);
}

.npa-hint {
  font-size: 0.8125rem;
  color: var(--npa-muted);
  margin: 0;
}

.npa-list {
  max-height: 380px;
  overflow: auto;
  margin-top: 1rem;
  border-top: 1px solid var(--npa-border);
}

.npa-list-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--npa-border);
  padding: 0.8rem 0.5rem;
  text-align: left;
  color: var(--npa-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.12s ease, padding-left 0.12s ease;
}

.npa-list-btn:hover,
.npa-list-btn:focus-visible {
  background: var(--npa-surface);
  padding-left: 0.75rem;
  outline: none;
}

.npa-item-index {
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  color: var(--npa-muted);
  min-width: 1.5rem;
}

.npa-item-name {
  flex: 1;
  font-weight: 600;
}

.npa-item-name small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--npa-muted);
  margin-top: 0.15rem;
}

.npa-item-code {
  font-family: var(--npa-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--npa-primary);
  white-space: nowrap;
}

.npa-item-swatch {
  display: block;
  width: 4px;
  height: 22px;
  flex-shrink: 0;
}

/* Architectural Segmented Postal Code Ticket */
.npa-ticket {
  margin: 1.125rem 0 1rem;
  border: 1px solid var(--npa-border);
  border-top: 3px solid var(--npa-primary);
  padding: 1.125rem;
  background: var(--npa-surface);
}

.npa-ticket-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--npa-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--npa-muted);
  margin-bottom: 0.875rem;
}

.npa-ticket-meta b {
  color: var(--npa-primary);
  font-weight: 700;
}

.npa-ticket-code {
  display: flex;
  justify-content: center;
  align-items: stretch;
  font-family: var(--npa-font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--npa-primary);
  background: var(--npa-bg);
  border: 1px solid var(--npa-border);
}

.npa-digit-cell {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-right: 1px solid var(--npa-border);
  line-height: 1.1;
}

.npa-digit-cell:last-child {
  border-right: 0;
}

.npa-ticket-code.npa-ward-code {
  font-size: 1.6rem;
}

.npa-ticket-code.npa-ward-code .npa-digit-cell:nth-last-child(-n+2) {
  color: var(--npa-map-bg);
  background: rgba(var(--npa-primary-rgb), 0.08);
}

.npa-ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--npa-border);
  margin-top: 0.875rem;
  padding-top: 0.625rem;
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  color: var(--npa-muted);
}

.npa-detail-meta {
  font-size: 0.8125rem;
  color: var(--npa-muted);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.5;
}

.npa-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.npa-source-link,
.npa-permalink {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--npa-primary);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--npa-border);
  background: var(--npa-surface);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.npa-source-link:hover,
.npa-permalink:hover {
  border-color: var(--npa-primary);
  background: var(--npa-bg);
  text-decoration: none;
}

.npa-ward-label {
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin: 0.75rem 0 0.4rem;
  color: var(--npa-text);
}

.npa-ward-select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--npa-border);
  background: var(--npa-bg);
  color: var(--npa-text);
  font-size: 0.875rem;
  min-height: 44px;
}

.npa-ward-select:focus {
  border-color: var(--npa-primary);
  outline: none;
}

.npa-copy-btn {
  margin-top: 0.75rem;
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 1rem;
  background: var(--npa-primary);
  border: 1px solid var(--npa-primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.npa-copy-btn:hover {
  opacity: 0.92;
}

/* Seamless 100% Full-Width Coverage & Export Strip */
.npa-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  width: 100%;
  background: var(--npa-surface);
  border-bottom: 1px solid var(--npa-border);
  padding: 1.25rem clamp(1.25rem, 3.5vw, 3rem);
  gap: 1.5rem;
}

.npa-stat-cell {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.npa-stat-cell strong {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1;
  color: var(--npa-text);
}

.npa-stat-cell span {
  font-family: var(--npa-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--npa-muted);
}

.npa-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.npa-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--npa-text);
  background: var(--npa-bg);
  border: 1px solid var(--npa-border);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.npa-export-btn:hover {
  border-color: var(--npa-primary);
  color: var(--npa-primary);
  text-decoration: none;
}

/* Full-Width Crawlable SEO Directory & Ward Tables */
.npa-seo-section {
  width: 100%;
  padding: 2.5rem clamp(1.25rem, 3.5vw, 3rem);
  background: var(--npa-bg);
  border-bottom: 1px solid var(--npa-border);
}

.npa-seo-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.npa-seo-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--npa-text);
}

.npa-seo-lead {
  font-size: 0.9375rem;
  color: var(--npa-muted);
  margin: 0;
}

.npa-seo-lead a {
  color: var(--npa-primary);
  text-decoration: none;
  font-weight: 600;
}

.npa-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--npa-border);
}

.npa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.npa-table th,
.npa-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--npa-border);
  text-align: left;
}

.npa-table th {
  background: var(--npa-surface);
  font-family: var(--npa-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--npa-text);
}

.npa-table tbody tr:hover {
  background: var(--npa-surface);
}

.npa-table a {
  color: var(--npa-primary);
  text-decoration: none;
  font-weight: 600;
}

.npa-table a:hover {
  text-decoration: underline;
}

.npa-code-pill {
  font-family: var(--npa-font-mono);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  background: var(--npa-surface);
  border: 1px solid var(--npa-border);
  color: var(--npa-primary);
  display: inline-block;
}

.npa-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.npa-directory-card {
  padding: 1.25rem;
  border: 1px solid var(--npa-border);
  border-top: 3px solid var(--npa-primary);
  background: var(--npa-surface);
}

.npa-directory-card h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.npa-directory-card h3 a {
  color: var(--npa-text);
  text-decoration: none;
}

.npa-directory-card h3 a:hover {
  color: var(--npa-primary);
}

.npa-district-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.npa-district-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  background: var(--npa-bg);
  border: 1px solid var(--npa-border);
  color: var(--npa-text);
  text-decoration: none;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.npa-district-tag:hover {
  border-color: var(--npa-primary);
  color: var(--npa-primary);
}

@media (max-width: 1100px) {
  .npa-shell {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  .npa-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .npa-shell {
    grid-template-columns: 1fr;
  }
  .npa-side-panel {
    border-left: 0;
    border-top: 1px solid var(--npa-border);
  }
}

@media (max-width: 575px) {
  .npa-map-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .npa-map-svg {
    height: 300px;
  }
  .npa-stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .npa-strip-actions {
    grid-column: 1 / -1;
  }
}
