.idx {
  display: grid;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
}
.idx li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--slate);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.idx li a:hover {
  border-color: var(--muted);
  color: var(--ink);
}


.idx {
  display: grid;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
}
@media (min-width: 640px) {
  .idx {
    grid-template-columns: repeat(2, 1fr);
  }
}


.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}


.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
@media (min-width: 640px) {
  .search-form {
    flex-direction: row;
  }
  .search-form .input {
    flex: 1;
  }
}


.pill { ... }
.pill-tax { background: #fef3c7; color: var(--alert); }
.pill-lien { background: #fee2e2; color: var(--danger); }
.pill-vacant { background: #f1f5f9; color: var(--slate); }
.pill-default { background: #ecfdf5; color: var(--accent); }


:root {
  --ink: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --hairline: #e2e8f0;
  --bg: #ffffff;
  --band: #f8fafc;
  --accent: #047857;
  --accent-hover: #065f46;
  --alert: #b45309;
  --danger: #b91c1c;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --container: 1100px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Geist", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--slate);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  max-width: 70ch;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
  padding: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */
.hero {
  padding: var(--space-2xl) 0;
  background: var(--band);
  border-bottom: 1px solid var(--hairline);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.hero > .container > p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 520px;
}

.trust-strip {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Hub index */
.idx {
  display: grid;
  gap: var(--space-sm);
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-md);
}

.card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  width: fit-content;
}

.pill-tax {
  background: #fef3c7;
  color: var(--alert);
}

.pill-lien {
  background: #fee2e2;
  color: var(--danger);
}

.pill-vacant {
  background: #f1f5f9;
  color: var(--slate);
}

.pill-default {
  background: #ecfdf5;
  color: var(--accent);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--band);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
}

.chip strong {
  color: var(--ink);
  font-weight: 600;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.box {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - var(--space-xl));
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.box h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.box > p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: var(--space-md);
}

.checkbox input {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.turnstile-slot {
  min-height: 65px;
  background: var(--band);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.error-line {
  color: var(--danger);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.modal-actions {
  display: flex;
  gap: var(--space-sm);
}

.modal-actions .btn {
  flex: 1;
}

/* Reveal */
.reveal {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-sm);
}

.reveal p {
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.reveal a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reveal a:hover {
  color: var(--accent-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  background: var(--band);
  border-color: var(--muted);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Inputs */
.input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.25;
}

.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.input::placeholder {
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--band);
  padding: var(--space-xl) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 80ch;
}

/* Breakpoints */
@media (min-width: 640px) {
  .idx {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-form {
    flex-direction: row;
  }

  .search-form .input {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card,
  .btn {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

/* --- generator supplemental --- */
.cards{display:grid;grid-template-columns:1fr;gap:16px;margin-top:16px}
@media(min-width:640px){.cards{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.cards{grid-template-columns:repeat(3,1fr)}}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.idx li span{color:#64748b;font-size:13px;margin-left:auto}

/* modal hidden by default (fix: was showing on load) */
.modal{display:none !important;position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:100;align-items:center;justify-content:center;padding:16px}
.modal.open{display:flex !important}
.modal .box{background:#fff;border-radius:14px;padding:22px;max-width:440px;width:100%;max-height:92vh;overflow:auto}
