/* DingDongWork — public-records look: navy ink, teal "verified" accent, calm surfaces. */
:root {
  --ink: #0f2a43;
  --ink-2: #33475b;
  --muted: #5b6b7b;
  --line: #e3e8ee;
  --surface: #f6f8fa;
  --tint: #eef6f5;
  --teal: #0f766e;
  --teal-2: #0b5f59;
  --teal-soft: #ccfbf1;
  --red: #b42318;
  --red-soft: #fee4e2;
  --amber: #b54708;
  --amber-soft: #fef0c7;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 42, 67, .06), 0 4px 16px rgba(15, 42, 67, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; font-size: 16px; }
a { color: var(--teal-2); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h2 { font-size: 1.3rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section--tint { background: var(--tint); }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 70ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .5em; }
.mono { font-family: var(--mono); font-size: .92em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #14b8a6; outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; padding: .7em 1.15em; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .96rem; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); border-color: var(--teal-2); color: #fff; }
.link-more { font-weight: 600; text-decoration: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-name span { color: var(--teal); }
.header-search { flex: 1; display: flex; max-width: 460px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.header-search input { flex: 1; border: 0; background: transparent; padding: .6em .9em; font: inherit; color: var(--ink); min-width: 0; }
.header-search button { border: 0; background: transparent; padding: 0 .8em; cursor: pointer; }
.header-search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.header-nav { margin-left: auto; display: flex; gap: 18px; }
.header-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.header-nav a:hover { color: var(--teal-2); }
@media (max-width: 760px) { .header-nav { display: none; } .header-row { flex-wrap: wrap; padding: 10px 20px; } .header-search { order: 3; max-width: none; flex-basis: 100%; } }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #9aa7b4; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-2); text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--tint), #fff); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 64px 20px 56px; text-align: center; }
.hero h1 { max-width: 20ch; margin: 0 auto .4em; }
.hero-lead { color: var(--ink-2); font-size: 1.15rem; max-width: 60ch; margin: 0 auto 1.6em; }
.hero-search { display: flex; gap: 8px; max-width: 760px; margin: 0 auto; background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-search input, .hero-search select { border: 0; font: inherit; padding: .7em .9em; color: var(--ink); background: transparent; }
.hero-search input { flex: 1; min-width: 0; }
.hero-search select { border-left: 1px solid var(--line); max-width: 170px; }
.hero-note { margin-top: 1em; color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .hero-search { flex-direction: column; } .hero-search select { border-left: 0; border-top: 1px solid var(--line); max-width: none; } }

/* Grids and tiles */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head h2 { margin-top: 0; }
.state-grid, .tile-grid, .city-list, .biz-list, .chip-list, .source-list { list-style: none; padding: 0; margin: 0; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.state-tile { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.state-tile:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--ink); }
.state-code { font-family: var(--mono); font-weight: 700; color: var(--teal); }
.state-name { font-weight: 700; }
.state-count { font-size: .86rem; color: var(--muted); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.tile:hover { border-color: var(--teal); color: var(--ink); }
.tile-count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.city-list { columns: 4 200px; column-gap: 24px; }
.city-list li { break-inside: avoid; padding: 3px 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chip { display: inline-flex; gap: 6px; padding: .4em .85em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
a.chip:hover { border-color: var(--teal); }
.chip span { color: var(--muted); font-weight: 500; }
.biz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.biz-list--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 16px; }
.biz-list a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); height: 100%; }
.biz-list a:hover { border-color: var(--teal); }
.biz-name { font-weight: 700; }
.biz-meta, .biz-addr { font-size: .86rem; color: var(--muted); }

/* Steps / FAQ / callouts */
.step-list { padding-left: 1.3em; display: grid; gap: .6em; max-width: 75ch; }
.step-list--compact { margin-bottom: 1.2em; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; max-width: 80ch; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .7em 0 0; color: var(--ink-2); }
.callout { margin: 28px 0; padding: 22px; border-radius: var(--radius); background: var(--tint); border: 1px solid #cfe7e4; }
.callout h2 { margin-top: 0; }
.prose { max-width: 80ch; }
.prose h2 { margin-top: 1.4em; }
.source-list li { padding: 4px 0; }

/* Profile */
.profile { padding-bottom: 48px; }
.profile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px 0 8px; flex-wrap: wrap; }
.profile-head h1 { margin-bottom: .2em; }
.profile-place { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.profile-summary { font-size: 1.05rem; color: var(--ink-2); max-width: 80ch; }
.verdict { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius); min-width: 260px; }
.verdict svg { width: 40px; height: 40px; flex: none; }
.verdict svg path { fill: currentColor; }
.verdict svg .tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.verdict strong { display: block; font-size: 1.05rem; }
.verdict span { font-size: .9rem; }
.verdict--active { background: var(--teal-soft); color: var(--teal-2); }
.verdict--inactive { background: var(--red-soft); color: var(--red); }
.verdict--unknown { background: var(--amber-soft); color: var(--amber); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 12px; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; background: #fff; }
.panel h2 { margin-top: 0; font-size: 1.12rem; }
.panel--note { background: var(--surface); font-size: .93rem; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.licence-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.licence-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.licence-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.licence-table tr:last-child td { border-bottom: 0; }
.licence-table .sub { display: block; color: var(--muted); font-size: .85em; }
.facts { margin: 0 0 12px; display: grid; gap: 12px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 2px 0 0; }

/* Badges */
.badge { display: inline-block; padding: .2em .65em; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.badge--active { background: var(--teal-soft); color: var(--teal-2); }
.badge--inactive { background: var(--red-soft); color: var(--red); }
.badge--unknown { background: var(--amber-soft); color: var(--amber); }

/* Search results */
.results-title { margin-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select { font: inherit; padding: .6em .8em; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.filters input { flex: 1 1 260px; }
.results-count { color: var(--muted); }
.card-list { display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-left: 4px solid #c3ccd5; border-radius: 10px; padding: 16px 18px; background: #fff; }
.card--active { border-left-color: var(--teal); }
.card__header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card__business-name { font-size: 1.08rem; margin: 0 0 8px; }
.card__business-name a { color: var(--ink); text-decoration: none; }
.card__business-name a:hover { color: var(--teal-2); text-decoration: underline; }
.card__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 16px; margin: 0; font-size: .92rem; }
.card__grid dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.card__grid dd { margin: 0; }
.card__wide { grid-column: span 2; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 28px 0; color: var(--muted); }
.empty { text-align: center; padding: 48px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 24px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-text { color: var(--muted); font-size: .92rem; margin-top: 10px; max-width: 40ch; }
.footer-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px; }
.footer-states { list-style: none; padding: 0; margin: 0; columns: 3 120px; font-size: .92rem; }
.footer-states li, .footer-links li { padding: 2px 0; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--teal-2); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 22px; font-size: .85rem; color: var(--muted); }

/* Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 12px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: .92rem; margin-top: 8px; }
.form input, .form textarea { font: inherit; padding: .65em .8em; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.form button { justify-self: start; margin-top: 12px; }
.field-error { color: var(--red); font-size: .88rem; margin: 0; }
