/* Quietlist search — the card, its dropdown states and the /search results page.
   Own sheet (not styles.css): tokens come from tokens.css via @import in styles.css, so this file only
   COMPOSES them. Shape from the founder's mocks (2026-09-11): one 18px card holding input · city · arrow,
   the dropdown inside the same card, tracked uppercase group labels, icon tiles, a tinted top match, a
   footer with the count on the left and one accent action on the right. Status is quiet grey text; every
   "% built" carries its filing date. */

.ql-search { position: relative; max-width: 660px; margin: 0 auto; font-family: var(--sans); color: var(--ink); text-align: left; }
.ql-search.is-wide { max-width: none; }
.ql-search .sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ql-results mark, .ql-search mark { background: transparent; color: var(--accent); font-weight: inherit; }
.ql-card { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius-md, 18px); box-shadow: 0 14px 40px var(--shadow-color); overflow: visible; position: relative; z-index: 3; }
.ql-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; }
.ql-bar .ql-ico { color: var(--muted); flex: none; display: inline-flex; }
.ql-bar input[type=search], .ql-bar input[type=text] { flex: 1 1 auto; min-width: 0; width: auto; border: 0; border-radius: 0; box-shadow: none; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); padding: 10px 0; margin: 0; outline: none; }
.ql-bar input:focus { border: 0; outline: none; }
.ql-bar input::placeholder { color: var(--muted); }
.ql-bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ql-scope { position: relative; border-left: 1px solid var(--hair); padding-left: 10px; flex: none; display: flex; align-items: center; margin: 0; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); font-size: inherit; }
.ql-scope select { appearance: none; -webkit-appearance: none; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 500; padding: 8px 30px 8px 12px; border-radius: 10px; cursor: pointer; outline: none; box-shadow: none; width: auto; margin: 0; }
.ql-scope::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ql-go { flex: none; width: 42px; height: 42px; padding: 0; margin: 0; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }
.ql-go svg { flex: none; width: 18px; height: 18px; display: block; }
.ql-go:hover { background: var(--accent-soft); }
.ql-go:focus-visible, .ql-scope select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ql-card:focus-within { border-color: var(--tint-line); }

/* dropdown, inside the card */
.ql-drop { border-top: 1px solid var(--hair); display: none; }
.ql-drop.is-open { display: block; }
.ql-grp { padding: 12px 18px 4px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ql-row { display: flex; align-items: center; gap: 14px; padding: 10px 18px; text-decoration: none; color: inherit; border-radius: 12px; margin: 2px 8px; }
.ql-row:hover, .ql-row.is-active { background: var(--tint); }
.ql-row.is-top { background: var(--tint); }
.ql-row.is-dim { opacity: .62; }
.ql-row--plain .ql-main { padding-left: 2px; }
.ql-hint { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin: 8px 18px 6px; }
.ql-more .ql-caret { color: var(--muted); display: inline-flex; }
.ql-more[aria-expanded="true"] { color: var(--accent); }
.ql-drop [data-group] .ql-foot { border-radius: 0; }
.ql-side .ql-arrow svg { vertical-align: middle; }
.ql-tile { flex: none; width: 40px; height: 40px; border: 1px solid var(--hair); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--paper); }
.ql-main { flex: 1 1 auto; min-width: 0; }
.ql-name { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.ql-name mark { background: transparent; color: var(--accent); font-weight: 600; }
.ql-meta { color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.ql-meta mark { background: transparent; color: var(--accent); }
.ql-side { flex: none; text-align: right; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ql-side .ql-arrow { color: var(--ink-soft); margin-left: 8px; }
.ql-more { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; margin: 0 8px; font-size: .88rem; color: var(--ink-soft); cursor: pointer; border-top: 1px solid var(--hair); background: none; border-left: 0; border-right: 0; border-bottom: 0; width: calc(100% - 16px); font-family: inherit; text-align: left; }
.ql-more:hover { color: var(--accent); }
.ql-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--hair); background: color-mix(in srgb, var(--tint) 45%, var(--paper)); border-radius: 0 0 var(--radius-md, 18px) var(--radius-md, 18px); font-size: .86rem; color: var(--muted); }
.ql-foot a, .ql-foot button { color: var(--accent); font-weight: 600; text-decoration: none; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.ql-state { padding: 22px 18px 8px; }
.ql-state h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 0 0 4px; color: var(--ink); }
.ql-state p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.ql-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--tint-line); background: var(--tint); color: var(--accent); margin: 14px 18px 0; }
.ql-pill.is-warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--paper)); color: var(--warn); }
.ql-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--ink-soft); padding: 4px 18px 10px; word-break: break-all; }
.ql-code small { display: block; color: var(--muted); font-family: var(--sans); margin-top: 2px; }
.ql-skel { height: 10px; border-radius: 6px; background: var(--chart-track); margin: 12px 18px 0; }
.ql-skel.w2 { width: 55%; } .ql-skel.w3 { width: 40%; }
.ql-btn { display: inline-flex; align-items: center; gap: 8px; margin: 14px 18px 8px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; border: 0; cursor: pointer; text-decoration: none; }
.ql-btn--ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--hair); margin: 0; padding: 8px 14px; font-size: .88rem; }
.ql-mobile-tools { display: none; }
.ql-note { margin: 12px 18px 4px; padding: 12px 14px; border-radius: 12px; background: var(--tint); color: var(--ink); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.ql-note.is-warn { background: color-mix(in srgb, var(--warn) 10%, var(--paper)); }
.ql-note b { font-weight: 600; }
.ql-try { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin: 14px auto 0; font-size: .82rem; color: var(--muted); }
.ql-try a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 1px; }
.ql-try a:hover { color: var(--accent); border-color: var(--accent); }

/* search-first hero (homepage + /search) */
.ql-hero { text-align: center; padding: clamp(28px, 6vw, 64px) 0 12px; }
.ql-hero .eyebrow, .ql-hero .ql-eyebrow { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 18px; }
.ql-hero .eyebrow::before, .ql-hero .ql-eyebrow::before { content: "●"; font-size: .5rem; margin-right: 8px; vertical-align: 1px; }
/* the homepage's own .hero/.hero-center rules wrap this block; the shape lives on .ql-hero */
.hero-center > .ql-hero h1 { max-width: none; margin: 0 auto; }
.ql-places { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; text-align: left; max-width: 820px; margin: 44px auto 0; padding-top: 28px; border-top: 1px solid var(--hair); }
.ql-places p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; margin: 0; color: var(--ink); }
.ql-places nav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; font-size: .88rem; }
.ql-places nav a { color: var(--ink-soft); text-decoration: none; } .ql-places nav a:hover { color: var(--accent); }
@media (max-width: 760px) { .ql-places { flex-direction: column; } .ql-places nav { justify-content: flex-start; } }
.ql-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.ql-hero h1 em { font-style: italic; color: var(--accent); }
.ql-hero .ql-sub { color: var(--ink-soft); max-width: 460px; margin: 18px auto 30px; font-size: 1rem; line-height: 1.55; }

/* results page */
.ql-results { font-family: var(--sans); color: var(--ink); }
.ql-crumb { font-size: .82rem; color: var(--muted); margin: 26px 0 8px; } .ql-crumb a { color: var(--muted); text-decoration: none; } .ql-crumb span { margin: 0 8px; }
.ql-results h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; margin: 0; line-height: 1.05; }
.ql-results .ql-sub { color: var(--ink-soft); margin: 8px 0 0; font-size: .95rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ql-results .ql-sub a { color: var(--accent); text-decoration: none; font-weight: 600; }
.ql-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 34px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hair); }
.ql-rail h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: baseline; color: var(--ink); }
.ql-rail h4 a { font-size: .78rem; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; text-decoration: none; }
.ql-rail h5 { font-size: .82rem; margin: 18px 0 8px; font-weight: 600; color: var(--ink-soft); }
.ql-rail label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .88rem; font-weight: 400; color: var(--ink-soft); padding: 4px 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.ql-rail label > span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ql-rail details { margin: 0 0 6px; } .ql-rail summary { list-style: none; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding: 10px 0 6px; } .ql-rail summary::-webkit-details-marker { display: none; }
.ql-rail label span.n { color: var(--muted); font-variant-numeric: tabular-nums; }
.ql-rail label input { accent-color: var(--accent); margin: 0; width: 15px; height: 15px; flex: none; }
.ql-rail select { width: 100%; font: inherit; font-size: .88rem; color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: 8px; padding: 8px 10px; }
.ql-rail .ql-fine { font-size: .78rem; color: var(--muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); line-height: 1.5; }
.ql-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--hair); font-size: .86rem; color: var(--muted); }
.ql-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--tint); border: 1px solid var(--tint-line); color: var(--accent); font-size: .82rem; text-decoration: none; }
.ql-sort select { font: inherit; font-size: .86rem; border: 0; background: transparent; color: var(--ink); font-weight: 600; }
.ql-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.ql-item .ql-title { font-size: 1.08rem; font-weight: 600; margin: 0; }
.ql-item .ql-title a { color: var(--ink); text-decoration: none; } .ql-item .ql-title a:hover { color: var(--accent); }
.ql-item .ql-line { color: var(--ink-soft); font-size: .9rem; margin: 4px 0 0; }
.ql-item .ql-rel { color: var(--muted); font-size: .82rem; margin-top: 10px; }
.ql-fig { text-align: right; min-width: 120px; }
.ql-fig .v { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ql-fig .v small { font-family: var(--sans); font-size: .78rem; color: var(--muted); margin-left: 4px; }
.ql-fig .bar { height: 3px; background: var(--chart-track); border-radius: 2px; margin: 8px 0 8px auto; width: 72px; overflow: hidden; }
.ql-fig .bar i { display: block; height: 100%; background: var(--accent); }
.ql-fig .d { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.ql-fig .s { color: var(--muted); font-size: .78rem; }
.ql-pager { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; color: var(--muted); font-size: .86rem; }
.ql-pager a, .ql-pager span.p { display: inline-flex; min-width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; text-decoration: none; color: var(--ink-soft); margin-left: 4px; }
.ql-pager span.p.is-on { background: var(--tint); color: var(--accent); }
.ql-empty { padding: 34px 0; }
.ql-empty h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 6px; }
.ql-empty p { color: var(--ink-soft); margin: 0 0 12px; }
.ql-source { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .82rem; padding: 18px 0; border-top: 1px solid var(--hair); margin-top: 8px; }
@media (max-width: 760px) {
  .ql-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico input go" "scope scope scope"; align-items: center; padding: 8px 10px 10px 14px; }
  .ql-bar .ql-ico { grid-area: ico; } .ql-bar input { grid-area: input; } .ql-go { grid-area: go; }
  .ql-scope { grid-area: scope; border-left: 0; padding-left: 0; margin-top: 6px; }
  .ql-scope select { width: 100%; }
  .ql-layout { grid-template-columns: 1fr; gap: 18px; }
  .ql-rail { display: none; }
  .ql-rail.is-open { display: block; border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px; }
  .ql-mobile-tools { display: flex; gap: 8px; margin-top: 16px; }
  .ql-item { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; }
  .ql-fig .v { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) { .ql-drop.is-open { animation: ql-in .12s ease-out; } @keyframes ql-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } } }

/* ── /record/<id>: a registration on record with no page yet ─────────────────────────────── */
.ql-record{max-width:720px;margin:0 auto;padding:8px 0 40px}
.ql-record h1{margin:6px 0 8px}
.ql-record .ql-code{margin:18px 0}
.ql-record .ql-hint{margin:14px 0 0;font-size:.9rem}
.ql-record .ql-hint a{color:var(--accent);text-decoration:underline;text-decoration-color:var(--tint-line);text-underline-offset:3px}
.ql-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:0 0 18px;padding:0}
.ql-facts div{border-top:1px solid var(--hair);padding-top:10px}
.ql-facts dt{font:600 11px/1.4 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ql-facts dd{margin:4px 0 0;font:500 17px/1.3 var(--serif);color:var(--ink)}
