:root{
  --sw-ink:#002f6c;
  --sw-ink-2:#004080;
  --sw-accent:#00ffff;         /* your neon accent */
  --sw-bg:#0b0f14;             /* dark glass backdrop */
  --sw-card:rgba(255,255,255,0.06);
  --sw-border:rgba(255,255,255,0.12);
  --sw-ok:#4caf50;
  --sw-warn:#ffb300;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background: #172740;
  color:#e9eef6; 
  font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.sw-header{
  background: #0D1222;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 20px;
  border-bottom:1px solid var(--sw-border);
  backdrop-filter:blur(6px)}
.sw-header h1{
  margin:0;font-weight:700;
  letter-spacing:1px;
  color: #E6A23A;
}

.sw-back-pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  text-decoration:none;
  color:#E6A23A;
  padding:8px 12px;
  border:1px solid #aaaaaa;
  border-radius:999px}
.sw-back-pill .chev{font-weight:700}
.sw-main{
  max-width:1100px;
  margin:0 auto;
  padding:18px}
.controls{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:12px;
  margin-bottom:16px
}
.field label{display:block;
  font-size:12px;
  color:#fce269;
  margin-bottom:4px}
.field input{
  width:100%;
  padding:10px 12px;
  background:#0D1222;
  border:1px solid var(--sw-border);
  border-radius:12px;
  color:#E6A23A;
  text-overflow:ellipsis; 
  white-space:nowrap; 
  overflow:hidden;
}
.sw-btn{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--sw-border);
  background:var(--sw-card);
  color:#fce269;
  border: 1px solid #aaaaaa;
}
/* inside the controls row, keep button compact and aligned */
.controls #search{ 
  width:max-content; 
  justify-self:end; 
  align-self:end; }

.sw-btn:hover{
  border-color:var(--sw-accent)}
.sw-btn.ghost{
  background:transparent}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px}
@media (max-width:1000px){.cards-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.cards-grid{grid-template-columns:1fr}}

.card{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)); 
  border:1px solid var(--sw-border); 
  border-radius:18px; 
  padding:14px; 
  box-shadow:0 6px 20px rgba(0,0,0,0.25)}
.card .row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:6px 0}
/* Ensure long addresses wrap nicely inside card rows */
.card .row span { 
  overflow-wrap:anywhere; }

.card .title{
  font-weight:700;
  margin:2px 0 6px 0}
.card .badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--sw-border);
  background:rgba(255,255,255,0.06)}
.badge.ok{
  border-color:rgba(76,175,80,0.5)}
.badge.warn{
  border-color:rgba(255,179,0,0.5)}
.badge .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--sw-ok)}
.badge.warn .dot{
  background:var(--sw-warn)}

.card .meta{
  font-size:13px;
  color:#c6d7ea}
.card .cta{
  display:flex;
  gap:8px;
  margin-top:10px}
.card .cta a, .card .cta button{
  flex:1;text-align:center;
  text-decoration:none;
  padding:10px;
  border-radius:12px;
  border:1px solid var(--sw-border);
  background:var(--sw-card);
  color:#e9eef6}
.card .cta a:hover, .card .cta button:hover{
  border-color:var(--sw-accent)}
small.muted{color:#a7b8cc}
.pager{
  display:none;
  justify-content:center;
  gap:12px;
  margin:16px 0;
}

.empty{
  opacity:.8;
  text-align:center;
  border:1px dashed var(--sw-border);
  border-radius:16px;
  padding:24px}





/* keep badge text on one line and add a tooltip */
.badge{ 
  white-space:nowrap; 
  hyphens:none; }
.badge[data-tip]{ position:relative; cursor:help; }
.badge[data-tip]::after{
  content: attr(data-tip);
  position:absolute;
  left:50%; 
  transform:translateX(-50%);
  bottom:calc(100% + 8px);
  min-width:220px; 
  max-width:320px; 
  padding:8px 10px;
  border-radius:10px; 
  background:rgba(15,22,30,.95);
  border:1px solid var(--sw-border); 
  color:#e9eef6;
  font-size:12px; 
  line-height:1.3; 
  white-space:normal;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  pointer-events:none; 
  opacity:0; 
  transition:opacity .12s ease, transform .12s ease;
}
.badge[data-tip]:hover::after,
.badge[data-tip]:focus-visible::after{
  opacity:1; transform:translateX(-50%) translateY(-2px);
}
.tip-icon{ 
  margin-left:6px; 
  opacity:.85; 
  font-size:12px }

/* “public info” notice (used by the JS injector) */
.notice{
  display:flex; 
  align-items:stretch; 
  gap:12px; 
  margin:12px 0 18px 0;
  padding:12px 14px; 
  border:1px solid var(--sw-border); 
  border-radius:14px;
  background: #0c1d39;
  color: #fce269;
  /* box-shadow:0 6px 20px rgba(0,0,0,.18); */
}
.notice a{ color:#E6A23A; text-decoration:underline }
.notice-close{
  margin-left:auto; 
  align-self:flex-start; 
  border:1px solid var(--sw-border);
  background:transparent; 
  color:#fce269; 
  border-radius:10px; 
  padding:2px 8px; 
  cursor:pointer
}
.notice-close:hover{ 
  border-color:var(--sw-accent) }


/* reuse tooltip style for score badge */
.score-tip[data-tip]{ position:relative; cursor:help }
.score-tip[data-tip]::after{
  content: attr(data-tip);
  position:absolute; 
  left:0; bottom:calc(100% + 8px);
  min-width:240px; 
  max-width:360px; 
  padding:8px 10px;
  border-radius:10px; 
  background:rgba(15,22,30,.95);
  border:1px solid var(--sw-border); 
  color:#e9eef6; font-size:12px; line-height:1.3;
  box-shadow:0 8px 24px rgba(0,0,0,.35); 
  pointer-events:none; opacity:0;
  transition:opacity .12s ease, transform .12s ease;
}
.score-tip[data-tip]:hover::after,
.score-tip[data-tip]:focus-visible::after{ 
  opacity:1; transform:translateY(-2px) }




/* OR divider between County and ZIP */
.or-divider{
  align-self:end; 
  justify-self:center;
  color:#fce269; 
  opacity:.85; 
  margin:0 2px 6px 2px;
  font-size:12px; 
  user-select:none;
}


.or-divider {
  align-self: end;
  justify-self: center;
  color: #fce269;
  opacity: .85;
  margin: 0 2px 6px 2px;
  font-size: 12px;
  user-select: none;
}
