/* Address County & City Limits Lookup (2026-10-11). No map: a form, then a results table. */
.jl-tool {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}
.jl-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.jl-tabs button {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.jl-tabs button[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.jl-panel { margin-bottom: 1rem; }
.jl-label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.jl-row { display: flex; gap: 0.5rem; }
.jl-row input { flex: 1; min-width: 0; }
.jl-panel input[type="text"], .jl-panel textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--card, var(--bg));
  color: var(--text);
  box-sizing: border-box;
}
.jl-panel textarea { resize: vertical; font-family: inherit; }
.jl-file { margin-top: 0.75rem; }
.jl-file input[type="file"] { max-width: 100%; }
.jl-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; align-items: center; }
.jl-small { font-size: 0.85rem; color: var(--text-muted); margin: 0.35rem 0; }
.jl-error { color: var(--danger, #b91c1c); }
.jl-privacy {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  line-height: 1.5;
}
.jl-progress { height: 6px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; margin-top: 0.5rem; }
.jl-progress > div { height: 100%; width: 0; background: var(--primary); transition: width 0.2s; }

.jl-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  background: var(--card, var(--bg));
}
.jl-card--warn { border-color: var(--warning, #d97706); }
.jl-found { margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.jl-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; }
.jl-facts dt { font-weight: 600; color: var(--text); }
.jl-facts dd { margin: 0; overflow-wrap: anywhere; }
.jl-notes { margin: 0.75rem 0 0; padding-left: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.jl-notes li { margin-bottom: 0.3rem; }
.jl-candidates { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.35rem; }
.jl-candidates button { text-align: left; white-space: normal; }

.jl-results { max-width: 1400px; margin: 0 auto 2rem; padding: 0 1rem; }
.jl-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
.jl-results-head p { margin: 0; font-weight: 600; }
.jl-table-scroll { overflow-x: auto; margin-top: 0.75rem; border: 1px solid var(--border); border-radius: 8px; max-width: 100%; }
.jl-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.jl-table th, .jl-table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.jl-table th { background: var(--bg-secondary); position: sticky; top: 0; white-space: nowrap; }
.jl-table td { min-width: 6rem; }
.jl-table td:first-child { min-width: 0; color: var(--text-muted); }
.jl-table td.jl-notes-cell { min-width: 18rem; color: var(--text-muted); }
.jl-table td.jl-notes-cell ul { margin: 0; padding-left: 1rem; }
.jl-row--fail td { background: rgba(217, 119, 6, 0.06); }
.jl-row--waiting td { color: var(--text-muted); }
.jl-reason { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; min-width: 12rem; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; margin-top: 0.3rem; }

@media (max-width: 600px) {
  .jl-row { flex-direction: column; }
  .jl-facts { grid-template-columns: 1fr; }
  .jl-facts dd { margin-bottom: 0.4rem; }
}
