/* Verified Historical Job Proof & Neighborhood Pin Map (v1)
 * 100% first-party, zero CLS, WCAG AA+ contrast, system-ui stack only.
 */
.ra-jobproof {
  padding: clamp(2.25rem, 4vw, 3.5rem) 0;
  background: #f8fafc;
  color: #0f172a;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.ra-jobproof--home {
  padding: clamp(2rem, 3.5vw, 3rem) 0;
}
.ra-jobproof *,
.ra-jobproof *::before,
.ra-jobproof *::after {
  box-sizing: border-box;
}
.ra-jobproof__wrap {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}
.ra-jobproof__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}
.ra-jobproof__eyebrow {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #0b1f3a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ra-jobproof__title {
  margin: 0;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
}
.ra-jobproof__lead {
  margin: 0.5rem 0 0;
  max-width: 72ch;
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
  font-size: 1rem;
  line-height: 1.55;
}
.ra-jobproof__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.ra-jobproof__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}
.ra-jobproof__btn--primary {
  background: #0b1f3a;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #0b1f3a;
}
.ra-jobproof__btn--primary:hover,
.ra-jobproof__btn--primary:focus-visible {
  background: #17345f;
}
.ra-jobproof__btn--outline {
  background: #ffffff;
  color: #0b1f3a !important;
  -webkit-text-fill-color: #0b1f3a !important;
  border: 1.5px solid #0b1f3a;
}
.ra-jobproof__btn--outline:hover,
.ra-jobproof__btn--outline:focus-visible {
  background: #f1f5f9;
}

/* KPI Grid */
.ra-jobproof__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
}
.ra-jobproof__kpi {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0;
}
.ra-jobproof__kpi dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 0.25rem;
}
.ra-jobproof__kpi dd {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.ra-jobproof__kpi-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
}

/* Map Card */
.ra-jobmap {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.25rem;
}
.ra-jobmap__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
}
.ra-jobmap__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.ra-jobmap__pill {
  appearance: none;
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ra-jobmap__pill:hover,
.ra-jobmap__pill:focus-visible {
  border-color: #0b1f3a;
  background: #f8fafc;
}
.ra-jobmap__pill[aria-pressed="true"] {
  background: #0b1f3a;
  color: #ffffff;
  border-color: #0b1f3a;
}
.ra-jobmap__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ra-jobmap__search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.ra-jobmap__input,
.ra-jobmap__select {
  border: 1px solid #64748b;
  background: #ffffff;
  color: #0f172a;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  min-height: 32px;
}
.ra-jobmap__input {
  width: 132px;
}
.ra-jobmap__go {
  border: 1px solid #0b1f3a;
  background: #0b1f3a;
  color: #ffffff;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  min-height: 32px;
  cursor: pointer;
}
.ra-jobmap__stage {
  position: relative;
  width: 100%;
  height: 430px;
  background: #dbeafe;
  overflow: hidden;
  user-select: none;
}
.ra-jobproof--home .ra-jobmap__stage {
  height: 360px;
}
@media (max-width: 767px) {
  .ra-jobmap__stage,
  .ra-jobproof--home .ra-jobmap__stage {
    height: 330px;
  }
}
.ra-jobmap__canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}
.ra-jobmap__canvas:active {
  cursor: grabbing;
}
.ra-jobmap__controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}
.ra-jobmap__ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #64748b;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}
.ra-jobmap__ctrl-btn:hover,
.ra-jobmap__ctrl-btn:focus-visible {
  background: #0b1f3a;
  color: #ffffff;
}
.ra-jobmap__status {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 64px);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #94a3b8;
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  z-index: 2;
  pointer-events: none;
}
.ra-jobmap__card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: min(350px, calc(100% - 24px));
  background: #ffffff;
  border: 1.5px solid #0b1f3a;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  z-index: 4;
  color: #0f172a;
}
.ra-jobmap__card[hidden] {
  display: none !important;
}
.ra-jobmap__card-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}
.ra-jobmap__card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #e2e8f0;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.ra-jobmap__card-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  padding-right: 1.25rem;
}
.ra-jobmap__card-meta {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.4;
}
.ra-jobmap__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  background: #0b1f3a;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none !important;
}
.ra-jobmap__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #cbd5e1;
  font-size: 0.78rem;
  color: #334155;
}

/* Town Details Two-Column Grid (Archetype + Equipment + Recent Jobs Table) */
.ra-jobproof__details {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .ra-jobproof__details {
    grid-template-columns: 1fr;
  }
}
.ra-jobproof__box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
}
.ra-jobproof__box h3 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
.ra-jobproof__box p {
  margin: 0 0 0.75rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
}
.ra-jobproof__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.ra-jobproof__tags li {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.ra-jobproof__table-wrap {
  width: 100%;
  overflow-x: auto;
}
.ra-jobproof__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}
.ra-jobproof__table th {
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
}
.ra-jobproof__table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}
.ra-jobproof__method {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}
.ra-jobproof a:not(.ra-jobproof__btn):not(.ra-jobmap__card-cta) {
  color: #0b1f3a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
