/* Directory engine: "field ledger" design system.
   One typeface (Geist) with Geist Mono for figures. Paper, ink, one action green, ember for prices.
   Hairline rules instead of shadows. Spacing: 2 4 8 12 16 24 32 40 48 64 80 96. Type: Tailwind scale. */

:root {
  --paper: #f5f2ea;
  --surface: #fbf9f4;
  --sunk: #eeeadf;
  --ink: #1b1a17;
  --ink-2: #45423b;
  --ink-3: #66625a;
  --rule: #dfd9cb;
  --rule-2: #c9c1b0;
  --green: #1d4a37;
  --green-2: #153828;
  --green-tint: #e3ebe4;
  --ember: #a8401a;
  --warn: #8a5a0b;
  --focus: #1d4a37;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast: 180ms; --t-med: 320ms;

  --wrap: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.5rem;
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
.mono { font-family: var(--mono); font-feature-settings: "tnum", "zero" 0; letter-spacing: -0.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; line-height: 1.25rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; text-decoration: none; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--rule-2); }
.btn-quiet:hover { border-color: var(--ink-3); color: var(--ink); background: #fff; text-decoration: none; }
.btn-text { background: none; color: var(--ink-2); padding-left: 8px; padding-right: 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.btn-lg { min-height: 48px; padding: 12px 24px; }
.btn-block { width: 100%; }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--green); font-weight: 500; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px;
}
.btn-link .i { width: 16px; height: 16px; }
.btn-link:hover { color: var(--green-2); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--r-md); color: var(--ink); }
.icon-btn:hover { background: var(--sunk); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.arrow-link .i { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.arrow-link:hover .i, a:hover .arrow-link .i { transform: translateX(2px); }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo-mark { width: 24px; height: 24px; fill: none; stroke: var(--ember); stroke-width: 2; }
.header-search {
  flex: 1; max-width: 480px; display: flex; align-items: center; height: 44px;
  border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--t-fast) var(--ease);
}
.header-search:focus-within { border-color: var(--green); }
.header-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 12px; font-size: 0.875rem; }
.header-search input:focus { outline: none; }
.header-search .near-input { flex: 0 1 140px; }
.hs-div { width: 1px; height: 24px; background: var(--rule); }
.header-search button { height: 100%; width: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--green); border-radius: 0 var(--r-md) var(--r-md) 0; }
.header-search button:hover { background: var(--green-tint); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; border-radius: var(--r-md); }
.main-nav a:hover { color: var(--ink); background: var(--sunk); }
.main-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--ember); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--r-md); }
  .main-nav ul { display: none; }
  .main-nav ul.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 16px 16px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 4px; color: var(--rule-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- shared type ---------- */
.page-head { padding-top: 24px; padding-bottom: 24px; }
.page-head h1, .p-head h1, .home-intro h1, .notfound h1 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.025em; max-width: 24ch; }
.lede { margin-top: 12px; font-size: 1.125rem; line-height: 1.75rem; color: var(--ink-2); max-width: 68ch; }
.section-h { font-size: 1.25rem; line-height: 1.75rem; margin-bottom: 16px; }
.small-h { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; margin: 24px 0 8px; }
.n { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .page-head h1, .p-head h1, .home-intro h1, .notfound h1 { font-size: 1.875rem; line-height: 2.25rem; }
  .lede { font-size: 1rem; line-height: 1.5rem; }
}

/* facts strip: real counts only */
.facts { display: flex; flex-wrap: wrap; margin: 24px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts > div { padding: 12px 24px 12px 0; margin-right: 24px; }
.facts > div + div { padding-left: 24px; margin-left: -24px; box-shadow: inset 1px 0 0 var(--rule); }
.facts dt { font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.facts-na { font-family: var(--font); font-size: 0.875rem; color: var(--ink-3); font-weight: 400; }
@media (max-width: 640px) {
  .facts { display: grid; grid-template-columns: 1fr 1fr; }
  .facts > div, .facts > div + div { padding: 12px 0; margin: 0; box-shadow: none; }
  .facts > div:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--rule); }
  .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* narrow-to links: text list, not pills */
.narrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 16px; font-size: 0.875rem; line-height: 1.25rem; }
.narrow-label { color: var(--ink-3); }
.narrow ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.narrow a { font-weight: 500; }

/* ---------- home ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 48px; padding-bottom: 32px; }
.home-intro h1 { font-size: 3rem; line-height: 1; letter-spacing: -0.035em; max-width: 14ch; }
.home-intro .lede { margin-top: 16px; }
@media (max-width: 1024px) { .home-top { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .home-top { padding-top: 24px; } .home-intro h1 { font-size: 2.25rem; line-height: 2.5rem; } }

.composer { margin-top: 32px; background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-xl); padding: 8px; }
.composer-row { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr) auto; align-items: stretch; }
.cfield { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; margin: 0; border: 0; padding: 8px 12px; border-radius: var(--r-md); transition: background-color var(--t-fast) var(--ease); }
.cfield + .cfield { box-shadow: inset 1px 0 0 var(--rule); }
.cfield:focus-within { background: var(--paper); }
.clabel { font-size: 0.75rem; line-height: 1rem; font-weight: 500; color: var(--ink-3); padding: 0; }
.cfield input, .cfield select { width: 100%; border: 0; background: none; padding: 4px 0; font-size: 1rem; line-height: 1.5rem; min-height: 32px; }
.cfield input::placeholder { color: #736e64; }
.cfield input:focus, .cfield select:focus { outline: none; }
.cfield:has(input:focus-visible), .cfield:has(select:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.seg { display: inline-flex; gap: 2px; background: var(--sunk); border-radius: var(--r-md); padding: 2px; margin-top: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-sm); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--rule-2); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.composer-go { border-radius: var(--r-lg); align-self: center; margin-left: 8px; }
.composer-go .i { width: 18px; height: 18px; }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 0 12px; }
.composer-err { color: var(--ember); font-size: 0.875rem; font-weight: 500; }
.composer-compact { margin-top: 16px; }
.composer-compact .composer-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1fr) 110px auto; }
@media (max-width: 900px) {
  .composer-row, .composer-compact .composer-row { grid-template-columns: 1fr 1fr; }
  .cfield-what { grid-column: 1 / -1; }
  .cfield-how { grid-column: 1 / -1; box-shadow: inset 0 1px 0 var(--rule) !important; }
  .cfield-where { box-shadow: inset 0 1px 0 var(--rule) !important; }
  .composer .cfield-where:not(:has(~ .cfield-r)) { grid-column: 1 / -1; }
  .cfield-get { box-shadow: inset 0 1px 0 var(--rule) !important; }
  .cfield-r { box-shadow: inset 0 1px 0 var(--rule), inset 1px 0 0 var(--rule) !important; }
  .composer-go { grid-column: 1 / -1; margin: 8px 0 0; width: 100%; }
}

.popular { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 24px; font-size: 0.875rem; line-height: 1.25rem; }
.popular-label { color: var(--ink-3); }
.popular ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.popular a { color: var(--ink); font-weight: 500; text-decoration-color: var(--rule-2); }
.popular a:hover { text-decoration-color: var(--ink); }

.price-ledger { border: 1px solid var(--rule-2); border-radius: var(--r-xl); background: var(--surface); padding: 24px; }
.price-ledger h2 { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.price-ledger th { text-align: left; font-weight: 500; padding: 12px 0; font-size: 1rem; line-height: 1.5rem; }
.price-ledger th .sub { display: block; font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); font-weight: 400; }
.price-ledger td { text-align: right; font-size: 1.25rem; line-height: 1.75rem; color: var(--ember); font-weight: 500; white-space: nowrap; }
.price-ledger tr + tr { border-top: 1px solid var(--rule); }
.price-ledger p { margin: 12px 0 16px; }

.facts-home { margin-top: 0; }
.home-section { padding-top: 48px; }
.home-section:last-child { padding-bottom: 64px; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .home-section { padding-top: 40px; } }

.index-rows { border-top: 1px solid var(--rule); }
.index-rows li { border-bottom: 1px solid var(--rule); }
.index-rows a { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 12px 4px; color: var(--ink); text-decoration: none; transition: background-color var(--t-fast) var(--ease); }
.index-rows a:hover { background: var(--surface); }
.index-rows a:hover .ir-name { text-decoration: underline; text-underline-offset: 3px; }
.ir-name { font-weight: 600; }
.ir-sub { color: var(--ink-3); font-size: 0.875rem; line-height: 1.25rem; }
.index-rows-tight a { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 640px) { .index-rows a { grid-template-columns: minmax(0, 1fr) auto; } .ir-sub { grid-column: 1; grid-row: 2; } .index-rows a .n { grid-row: 1; grid-column: 2; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule-2); border-radius: var(--r-xl); background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.compare-col { display: flex; flex-direction: column; gap: 8px; padding: 24px; color: var(--ink); text-decoration: none; transition: background-color var(--t-fast) var(--ease); }
.compare-col + .compare-col { box-shadow: inset 1px 0 0 var(--rule); }
.compare-col:hover { background: #fff; color: var(--ink); }
.compare-t { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.compare-p { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-3); }
.compare-p .mono { font-size: 1.5rem; line-height: 2rem; color: var(--ember); margin-right: 4px; font-weight: 500; }
.compare-x { color: var(--ink-2); max-width: 40ch; }
.compare-col .arrow-link { color: var(--green); margin-top: auto; padding-top: 8px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } .compare-col + .compare-col { box-shadow: inset 0 1px 0 var(--rule); } }

.steps { counter-reset: step; margin-bottom: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.875rem; line-height: 1.5rem; color: var(--ember); grid-row: span 2; }
.steps h3 { font-size: 1rem; line-height: 1.5rem; }
.steps p { color: var(--ink-2); font-size: 0.875rem; line-height: 1.25rem; }

.guide-list { border-top: 1px solid var(--rule); margin-bottom: 16px; }
.guide-list li { border-bottom: 1px solid var(--rule); }
.guide-list a { display: block; padding: 12px 4px; text-decoration: none; color: var(--ink); transition: background-color var(--t-fast) var(--ease); }
.guide-list a:hover { background: var(--surface); }
.guide-list a:hover .gl-t { text-decoration: underline; text-underline-offset: 3px; }
.gl-t { display: block; font-weight: 600; }
.gl-d { display: block; color: var(--ink-3); font-size: 0.875rem; line-height: 1.25rem; margin-top: 2px; }
.guide-list-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
.guide-list-2 li:nth-child(-n+2) { border-top: 1px solid var(--rule); }
@media (max-width: 640px) { .guide-list-2 { grid-template-columns: 1fr; } .guide-list-2 li:nth-child(2) { border-top: 0; } }

.linkcols { columns: 3 200px; column-gap: 32px; }
.linkcols-4 { columns: 4 180px; }
.linkcols li { break-inside: avoid; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.25rem; }
.linkcols a { text-decoration: none; color: var(--ink); font-weight: 500; }
.linkcols a:hover { color: var(--green); text-decoration: underline; }
.supplier-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.supplier-line p { color: var(--ink-2); max-width: 60ch; }

/* ---------- listing layout ---------- */
.listing { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 48px; }
.listing.no-rail { grid-template-columns: minmax(0, 1fr); }
.results-col { min-width: 0; }

.rail { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; scrollbar-width: thin; }
.rail-head, .rail-foot { display: none; }
.fgroup { padding: 16px 0; border-top: 1px solid var(--rule); }
.fgroup:first-child { border-top: 0; padding-top: 4px; }
.fgroup-label { font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.fopts { display: flex; flex-direction: column; }
.fopt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; min-height: 36px; padding: 4px 8px 4px 4px; border: 0; background: none; border-radius: var(--r-md);
  text-align: left; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink);
  transition: background-color var(--t-fast) var(--ease);
}
.fopt:hover { background: var(--sunk); }
.fopt .box { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--surface); color: #fff; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.fopt .box .i { width: 14px; height: 14px; stroke-width: 2.4; opacity: 0; transform: scale(0.6); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.fopt[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); }
.fopt[aria-pressed="true"] .box .i { opacity: 1; transform: scale(1); }
.fopt[aria-pressed="true"] .fl { font-weight: 600; }
.fopt:disabled { color: #a39e92; cursor: default; background: none; }
.fopt:disabled .box { background: transparent; border-color: var(--rule); }
.filters-more { border-top: 1px solid var(--rule); }
.filters-more > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 0.875rem; font-weight: 600; color: var(--green); cursor: pointer; }
.filters-more > summary::-webkit-details-marker { display: none; }
.filters-more > summary::after { content: "+"; font-family: var(--mono); font-size: 1.125rem; }
.filters-more[open] > summary::after { content: "−"; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.count { font-size: 1rem; line-height: 1.5rem; color: var(--ink-2); }
.count strong { color: var(--ink); font-size: 1.125rem; font-weight: 600; }
.inline-select select { border: 0; border-bottom: 1px dashed var(--ink-3); background: none; padding: 0 2px; font-weight: 600; color: var(--ink); border-radius: 0; cursor: pointer; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.tbtn, .tselect select {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.tbtn .i { width: 18px; height: 18px; }
.tbtn:hover, .tselect select:hover { border-color: var(--ink-3); }
.tbtn[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tselect select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%2345423b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.tbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--green); color: #fff; font-size: 0.75rem; }
.only-mobile { display: none; }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.active-chips:not(:empty) { padding-top: 12px; }
.active-chips button, .empty-actions button, .empty-actions a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 8px 0 12px;
  border: 1px solid var(--ink); border-radius: var(--r-md); background: var(--surface); font-size: 0.875rem; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}
.active-chips button:hover, .empty-actions button:hover, .empty-actions a:hover { background: var(--sunk); }
.active-chips .i { width: 14px; height: 14px; }
.active-chips .clear-all { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; color: var(--ink-2); }

.locate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.locate label { display: inline-flex; align-items: center; gap: 8px; }
.locate label .i { width: 16px; height: 16px; color: var(--ink-3); }
.locate-field { display: inline-flex; align-items: center; border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--surface); height: 36px; }
.locate-field:focus-within { border-color: var(--green); }
.locate-field input { border: 0; background: none; width: 140px; padding: 0 8px; font-size: 0.875rem; height: 100%; }
.locate-field input:focus { outline: none; }
.locate-field .btn { min-height: 34px; height: 34px; padding: 0 12px; border: 0; border-left: 1px solid var(--rule); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 0.875rem; }
.locate-status { color: var(--ink-3); }
.locate-status.err { color: var(--ember); }

.results-layout.with-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.map-panel { position: sticky; top: calc(var(--header-h) + 16px); height: calc(100vh - var(--header-h) - 32px); min-height: 360px; border: 1px solid var(--rule-2); border-radius: var(--r-lg); overflow: hidden; background: var(--sunk); }
.map-msg { padding: 16px; color: var(--ink-3); font-size: 0.875rem; }
.show-more { margin-top: 24px; width: 100%; }

/* ---------- result rows (ledger) ---------- */
.results { display: flex; flex-direction: column; }
.result {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px 24px;
  padding: 16px 12px; margin: 0 -12px; border-bottom: 1px solid var(--rule); border-radius: var(--r-md);
  transition: background-color var(--t-fast) var(--ease);
}
.result:hover, .result.hl { background: var(--surface); }
.r-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.r-name { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.015em; }
.r-name a { color: var(--ink); text-decoration: none; }
.r-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.r-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.r-name a:focus-visible { outline: none; }
.r-name a:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
.r-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.r-dist { font-family: var(--mono); color: var(--ink); font-size: 0.875rem; }
.r-dist:empty { display: none; }
.r-rating { color: var(--ink); }
.r-rating > span[aria-hidden] { color: var(--ember); }
.r-get { font-size: 0.875rem; line-height: 1.25rem; color: var(--green); font-weight: 500; }
.r-warn { font-size: 0.75rem; line-height: 1rem; color: var(--warn); }
.r-wood { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink); }
.r-amt { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-3); }
.r-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; text-align: right; }
.r-price { display: flex; flex-direction: column; align-items: flex-end; }
.r-price .mono { font-size: 1.25rem; line-height: 1.75rem; color: var(--ember); font-weight: 500; }
.r-unit { font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); }
.r-price-alt { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.r-noprice { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-3); }
.r-call {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--surface); color: var(--green); font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.r-call .i { width: 16px; height: 16px; }
.r-call:hover { border-color: var(--green); background: var(--green-tint); text-decoration: none; }
@media (max-width: 640px) {
  .result { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 0; margin: 0; border-radius: 0; }
  .result:hover { background: none; }
  .r-name { font-size: 1rem; line-height: 1.5rem; }
}

/* skeletons, empty, start, error */
.skel { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.skel span { display: block; height: 12px; border-radius: var(--r-sm); background: var(--sunk); animation: skel 1.4s var(--ease) infinite; }
.skel span:nth-child(1) { width: 42%; height: 16px; }
.skel span:nth-child(2) { width: 28%; }
.skel span:nth-child(3) { width: 64%; }
@keyframes skel { 50% { opacity: 0.45; } }
.empty, .start, .error-box { padding: 32px 0; }
.empty h3, .start h2, .error-box h3 { font-size: 1.125rem; line-height: 1.75rem; margin-bottom: 4px; }
.empty p, .start > p, .error-box p { color: var(--ink-2); max-width: 60ch; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.empty-actions .strong { background: var(--ink); color: var(--paper); }
.empty-actions .strong:hover { background: var(--ink-2); }
.error-box { border: 1px solid var(--ember); border-radius: var(--r-lg); padding: 24px; margin-top: 16px; }
.error-box .btn { margin-top: 16px; }
.notice { margin-top: 12px; padding: 8px 12px; border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--surface); font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }

/* listing mobile: filter sheet + bottom action bar */
@media (max-width: 1023px) {
  .listing { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .only-mobile { display: inline-flex; }
  .rail {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 60; max-height: 88vh; height: 88vh; padding: 0;
    background: var(--paper); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 -8px 32px rgba(27, 26, 23, 0.18);
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(104%); visibility: hidden;
    transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .rail.open { transform: none; visibility: visible; transition: transform var(--t-med) var(--ease), visibility 0s; }
  .rail-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--rule); }
  .rail-head h2 { font-size: 1.125rem; line-height: 1.75rem; }
  .rail-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 16px; }
  .rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper); }
  .rail-foot .btn-primary { flex: 1; }
  .fopt { min-height: 44px; font-size: 1rem; line-height: 1.5rem; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgba(27, 26, 23, 0.4); opacity: 0; transition: opacity var(--t-med) var(--ease); }
  .scrim.on { opacity: 1; }
  body.sheet-open { overflow: hidden; }
  .toolbar { border-bottom-color: var(--rule); }
  .toolbar-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: stretch; gap: 8px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule);
    transform: translateY(110%); transition: transform var(--t-med) var(--ease);
  }
  .toolbar-actions > * { flex: 1; justify-content: center; }
  .toolbar-actions .tselect select { width: 100%; }
  body.bar-on .toolbar-actions { transform: none; }
  body.bar-on { padding-bottom: 72px; }
  .results-layout.with-map { display: flex; flex-direction: column-reverse; gap: 16px; }
  .map-panel { position: relative; top: 0; height: 60vh; min-height: 320px; margin-top: 12px; }
}

/* ---------- national category ---------- */
.national { padding-bottom: 48px; }
.stat-line { font-size: 1.125rem; line-height: 1.75rem; color: var(--ink-2); padding: 16px 0 32px; max-width: 70ch; }
.stat-line strong { color: var(--ember); font-weight: 500; }
.national-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.national-grid > div > .muted { margin-bottom: 8px; }
.index-list { border-top: 1px solid var(--rule); }
.index-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.25rem; }
.index-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.index-list a:hover { color: var(--green); text-decoration: underline; }
.index-list span:not(.n) { color: var(--ink-3); }
@media (max-width: 900px) { .national-grid { grid-template-columns: 1fr; } }

/* ---------- related ---------- */
.related { padding-top: 16px; padding-bottom: 32px; display: grid; gap: 40px; }
.callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 24px; border: 1px solid var(--rule-2); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color var(--t-fast) var(--ease); }
.callout:hover { border-color: var(--ink-3); color: var(--ink); }
.callout-k { font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); grid-column: 1; }
.callout-t { font-weight: 600; grid-column: 1; }
.callout .i { grid-column: 2; grid-row: 1 / span 2; color: var(--green); transition: transform var(--t-fast) var(--ease); }
.callout:hover .i { transform: translateX(2px); }

/* ---------- FAQ ---------- */
.faq { padding-top: 16px; padding-bottom: 64px; }
.faq-list { border-top: 1px solid var(--rule); max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 1.25rem; color: var(--ink-3); flex: none; transition: transform var(--t-fast) var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 16px; color: var(--ink-2); max-width: 68ch; }

/* ---------- search ---------- */
.search-head { padding-top: 24px; padding-bottom: 24px; }
.search-title { font-size: 1.5rem; line-height: 2rem; }
.search-head .composer { margin-top: 12px; }
.start .linkcols { max-width: 720px; }

/* ---------- profile ---------- */
.profile { padding-bottom: 48px; }
.p-head { padding: 24px 0 32px; border-bottom: 1px solid var(--ink); }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 12px; color: var(--ink-2); }
.p-meta > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.p-meta .i { width: 16px; height: 16px; color: var(--ink-3); }
.open-now { font-size: 0.875rem; font-weight: 500; }
.open-now.open { color: var(--green); }
.open-now.closed { color: var(--ink-3); }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.p-main { min-width: 0; }
.p-sec { padding-top: 32px; }
.spec { margin: 0; border-top: 1px solid var(--rule); }
.spec > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--ink-3); font-size: 0.875rem; line-height: 1.5rem; }
.spec dd { margin: 0; }
.spec .na { color: var(--ink-3); }
.price-strong { font-size: 1.25rem; line-height: 1.75rem; color: var(--ember); font-weight: 500; margin-right: 8px; }
@media (max-width: 640px) { .spec > div { grid-template-columns: 1fr; gap: 2px; } }
.table-scroll { overflow-x: auto; }
.data-table { font-size: 0.875rem; line-height: 1.25rem; }
.data-table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 0.75rem; line-height: 1rem; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.data-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data-table .num { text-align: right; padding-right: 0; padding-left: 12px; white-space: nowrap; }
.data-table + p, .table-scroll + p { margin-top: 12px; }
.p-sources p + p, .p-sources details + p { margin-top: 12px; }
.p-sources > p:first-of-type { color: var(--ink-2); max-width: 68ch; }
.quotes { margin-top: 12px; border: 1px solid var(--rule-2); border-radius: var(--r-lg); background: var(--surface); }
.quotes summary { min-height: 48px; display: flex; align-items: center; padding: 0 16px; font-weight: 600; color: var(--green); cursor: pointer; }
.quotes ul { padding: 0 16px 16px; }
.quotes li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.25rem; }
.q-label { display: block; font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.quotes q { color: var(--ink); }

.p-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; padding-top: 32px; }
.contact { border: 1px solid var(--rule-2); border-radius: var(--r-xl); background: var(--surface); padding: 16px; display: grid; gap: 12px; }
.contact .btn-primary .mono { font-weight: 500; }
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.contact-links .i, .contact .btn .i { width: 18px; height: 18px; }
.contact-dl { margin: 0; }
.contact-dl > div { padding: 8px 0; border-top: 1px solid var(--rule); }
.contact-dl dt { font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); }
.contact-dl dd { margin: 2px 0 0; font-size: 0.875rem; line-height: 1.25rem; }
.hours { font-size: 0.875rem; line-height: 1.25rem; border-top: 1px solid var(--rule); }
.hours th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 4px 8px 4px 0; width: 48px; }
.hours td { padding: 4px 0; }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 600; }
.mini-map { height: 200px; border: 1px solid var(--rule-2); border-radius: var(--r-lg); overflow: hidden; background: var(--sunk); }
.claim { color: var(--ink-3); }
.p-related { padding-top: 48px; display: grid; gap: 16px; }
.nearby { border-top: 1px solid var(--rule); }
.nearby li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.25rem; }
.nearby a { font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; }
.nearby a:hover { text-decoration: underline; color: var(--green); }
.sticky-cta { display: none; }
@media (max-width: 1023px) {
  .p-grid { grid-template-columns: 1fr; gap: 0; }
  .p-aside { position: static; }
  .sticky-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule);
  }
  .sticky-cta .btn { flex: 1; }
  .page-profile { padding-bottom: 72px; }
}
@media (max-width: 640px) { .nearby li { grid-template-columns: minmax(0, 1fr) auto; } .nearby li .muted { grid-column: 1; grid-row: 2; } }

/* ---------- docs: guides, prices, static ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 64px; padding-top: 24px; padding-bottom: 64px; align-items: start; }
.doc-single { grid-template-columns: minmax(0, 800px); }
.doc-meta { margin-top: 8px; }
.prose h1 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.025em; }
.prose h2 { font-size: 1.5rem; line-height: 2rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.125rem; line-height: 1.75rem; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--ink-2); max-width: 68ch; }
.prose .lede { margin: 12px 0 24px; }
.prose ul { list-style: disc; padding-left: 24px; }
.prose ol { list-style: decimal; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); }
.prose table { margin: 16px 0 24px; font-size: 0.875rem; line-height: 1.25rem; }
.prose table th { text-align: left; font-size: 0.75rem; line-height: 1rem; color: var(--ink-3); border-bottom: 1px solid var(--ink); padding: 8px 12px 8px 0; }
.prose table td { border-bottom: 1px solid var(--rule); padding: 12px 12px 12px 0; vertical-align: top; }
.doc-aside { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 64px; }
.side-search { border: 1px solid var(--rule-2); border-radius: var(--r-xl); background: var(--surface); padding: 16px; }
.side-search h2 { font-size: 1rem; line-height: 1.5rem; margin-bottom: 12px; }
.side-form { display: grid; gap: 12px; }
.side-form .cfield { border: 1px solid var(--rule-2); border-radius: var(--r-md); padding: 4px 12px; background: var(--paper); }
.side-links { margin-top: 16px; border-top: 1px solid var(--rule); }
.side-links li { border-bottom: 1px solid var(--rule); }
.side-links a { display: block; padding: 8px 0; font-size: 0.875rem; font-weight: 500; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; } .doc-aside { position: static; padding-top: 0; } .prose h1 { font-size: 1.875rem; line-height: 2.25rem; } }

.browse-groups { display: grid; gap: 40px; padding-bottom: 64px; }
.notfound { padding-top: 64px; padding-bottom: 96px; max-width: 800px; }
.nf-code { font-size: 0.875rem; color: var(--ember); margin-bottom: 8px; }
.notfound .composer { margin: 32px 0 24px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: 48px 0 32px; background: var(--paper); font-size: 0.875rem; line-height: 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .muted { margin-top: 8px; max-width: 32ch; }
.footer-h { font-size: 0.75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 12px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-note { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-3); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- leaflet overrides ---------- */
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); box-shadow: 0 2px 8px rgba(27, 26, 23, 0.2); }
.leaflet-popup-content a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
[data-filters] { display: contents; }
.composer-row-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.composer-row-2 .cfield-where { grid-column: auto; }
.composer .composer-foot { padding: 8px 12px 4px; box-shadow: inset 0 1px 0 var(--rule); margin-top: 8px; }
.seg-field { border: 0; margin: 0; padding: 0; }
.seg-field .seg { margin: 0; }
.summary p { color: var(--ink-2); max-width: 72ch; }
@media (max-width: 900px) { .composer-row-2 { grid-template-columns: 1fr; } .composer-row-2 .cfield-where { box-shadow: inset 0 1px 0 var(--rule) !important; grid-column: 1; } }
.header-search { min-width: 0; }
.header-search input { width: 0; }
.header-search .near-input { flex: 0 1 140px; width: 140px; }
@media (max-width: 900px) {
  /* Header scrolls away on phones but stays the menu's anchor: static here put the open menu one screen down the page */
  .site-header { position: relative; z-index: 50; }
  .p-aside, .map-panel, .doc-aside { top: 16px; }   /* not .rail: on phones it's the bottom sheet */
  .main-nav ul.open { box-shadow: 0 12px 24px rgba(27, 26, 23, 0.12); }
  .main-nav ul.open a { min-height: 48px; font-size: 1rem; }
}
@media (max-width: 1023px) {
  .toolbar-actions .tselect { flex: 1.4; min-width: 0; }
  .toolbar-actions .tselect select { padding-left: 8px; padding-right: 24px; background-position: right 8px center; }
}
input::placeholder { color: #736e64; opacity: 1; }
.narrow-more { flex-basis: 100%; }
.narrow-more > summary { display: inline-flex; min-height: 32px; align-items: center; color: var(--green); font-weight: 500; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.narrow-more > summary::-webkit-details-marker { display: none; }
.narrow-more[open] > summary { margin-bottom: 4px; }

/* ---------- design review, 2026-09-27 ---------- */

/* Home: search is the one job, so the headline carries it; the price ledger steps back to a ruled table */
.home-intro h1 { font-size: clamp(2.5rem, 2rem + 2.5vw, 4.25rem); line-height: 0.98; letter-spacing: -0.04em; }
.home-intro .lede { max-width: 52ch; }
.price-ledger { border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: none; padding: 16px 0 0; }
.price-ledger td { font-size: 1.125rem; }

/* Cord diagram: hairline oblique drawing, to scale (20px = 1 ft) */
.cord-band { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 0 0 40px; border-bottom: 1px solid var(--rule); }
.cord-fig { margin: 0; }
.cord-diagram { width: 100%; height: auto; overflow: visible; }
.cord-diagram .cd-front { stroke: none; }
.cord-diagram .cd-log { fill: var(--sunk); stroke: var(--rule-2); stroke-width: 1; }
.cord-diagram .cd-edge { fill: none; stroke: var(--ink-2); stroke-width: 1.25; }
.cord-diagram .cd-top, .cord-diagram .cd-side { fill: var(--sunk); stroke: var(--ink-2); stroke-width: 1.25; stroke-linejoin: round; }
.cord-diagram .cd-side { fill: var(--rule); }
.cord-diagram text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.cord-diagram .cd-depth { fill: var(--ember); }
.cord-diagram .cd-name { font-family: var(--font); font-size: 14px; font-weight: 600; fill: var(--ink); }
.cord-diagram .cd-vol { font-size: 12px; fill: var(--ink-2); }
.cord-copy p + p { margin-top: 12px; }
.cord-copy .arrow-link { margin-top: 16px; }
.cord-fig-doc { margin: 32px 0; padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.cord-fig-doc figcaption { margin-top: 12px; }
@media (max-width: 900px) { .cord-band { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) {
  .cord-fig-doc { padding: 16px 8px; }
  .cord-diagram text { font-size: 15px; }
  .cord-diagram .cd-name { font-size: 18px; }
  .cord-diagram .cd-vol { font-size: 15px; }
}

/* Ratings from a handful of reviews: a count, not a star score */
.r-rating.r-few { color: var(--ink-3); }

/* Several locations of one business, folded into one card */
.r-locs { margin-top: 4px; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-3); }
.r-locs .mono { font-size: 0.8125rem; }

/* Profile: what the supplier didn't publish, in one line instead of a row each */
.spec-gaps { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.5rem; color: var(--ink-3); }
.spec-gaps a { font-weight: 500; }
.spec + .spec-gaps { border-top: 0; }
.p-sec > .spec-gaps:first-of-type { border-top: 1px solid var(--rule); }

/* Mini map before Leaflet arrives: a pin and the place, not an empty box */
.mini-map:not(.leaflet-container) { position: relative; display: grid; place-items: center; align-content: center; gap: 8px;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 32px 32px; background-position: center; }
.mini-map:not(.leaflet-container)::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--rule-2); }
.mini-map:not(.leaflet-container)::after { content: attr(aria-label); padding: 2px 8px; font-size: 0.75rem; line-height: 1rem; color: var(--ink-2); background: var(--surface); border-radius: var(--r-sm); }

/* Phones: 16px text in every field, or iOS Safari zooms the page when one is tapped */
@media (max-width: 1023px) {
  .header-search input, .locate-field input, .tselect select, .inline-select select, .side-form input { font-size: 1rem; }
}
/* "Also at [City]" links sit above the row's full-card link, or taps open the wrong listing */
.r-locs a { position: relative; z-index: 1; }
/* "Did you mean" alternatives for place names that exist in several states */
.alts { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-left: 4px; }
.alts button { border: 0; background: none; padding: 0; min-height: 32px; color: var(--green); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Place suggestions under every ZIP or city field (replaces the native datalist) */
.has-suggest { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70; margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-lg); box-shadow: 0 8px 24px rgba(27, 26, 23, 0.14);
  max-height: 288px; overflow-y: auto; text-align: left;
}
.suggest li { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-md); font-size: 1rem; line-height: 1.5rem; color: var(--ink); cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--sunk); }
.locate-field.has-suggest .suggest { min-width: 240px; right: auto; }
