/* Your Local Phone Book: layout idea is a printed directory column.
   Condensed bold names, dotted leader lines to the phone number, yellow header band. */
:root {
  --brand: #ffcf33;
  --on-brand: #181a1f;
  --bg: #ffffff;
  --bg-soft: #f6f5ef;
  --ink: #181a1f;
  --muted: #5a5f6b;
  --line: #dedbd0;
  --link: #1b4db3;
  --btn: #181a1f;
  --on-btn: #ffcf33;
  --focus: #1b4db3;
  --font-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a;
    --bg-soft: #1c1f25;
    --ink: #f1efe6;
    --muted: #a7abb5;
    --line: #34373f;
    --link: #8fb3ff;
    --btn: #ffcf33;
    --on-btn: #181a1f;
    --focus: #8fb3ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14161a;
  --bg-soft: #1c1f25;
  --ink: #f1efe6;
  --muted: #a7abb5;
  --line: #34373f;
  --link: #8fb3ff;
  --btn: #ffcf33;
  --on-btn: #181a1f;
  --focus: #8fb3ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.muted { color: var(--muted); }

/* Preview strip */
.preview-bar { background: var(--ink); color: var(--bg); font-size: .85rem; text-align: center; padding: .3rem 1rem; }

/* Header */
.site-head { background: var(--brand); color: var(--on-brand); border-bottom: 3px solid var(--on-brand); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-top: .6rem; padding-bottom: .4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; min-height: 44px; }
.brand img { height: 36px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.nav a { color: inherit; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { text-decoration: underline; }

/* Hero + search */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-top: 1.75rem; padding-bottom: 1.5rem; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 8vw, 3.25rem); font-weight: 700; }
.hero p { margin: .6rem 0 1rem; color: var(--muted); max-width: 40rem; }
.search { display: block; }
.search label { display: block; font-weight: 700; margin-bottom: .3rem; }
.search input {
  width: 100%; min-height: 52px; font: inherit; font-size: 1.1rem; padding: .6rem .9rem;
  color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 4px;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 600; background: var(--bg); }
.chip:hover { background: var(--brand); color: var(--on-brand); }

/* Sections */
main { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.block { margin-top: 2rem; }
.block:first-child { margin-top: 0; }
.h2 { font-size: 1.9rem; font-weight: 700; padding-bottom: .35rem; border-bottom: 3px solid var(--ink); margin-bottom: .5rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 .75rem; }
.crumbs a { color: var(--muted); }
.intro { color: var(--muted); max-width: 42rem; margin: .5rem 0 1rem; }

/* Listing rows: name ..... phone */
.rows { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); padding: .55rem 0; }
.row-link { display: flex; align-items: baseline; gap: .5rem; color: var(--ink); text-decoration: none; min-height: 40px; }
.row-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
.leader { flex: 1 1 1rem; min-width: 1rem; border-bottom: 2px dotted var(--muted); opacity: .6; align-self: flex-end; margin-bottom: .4em; }
.row-phone { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--link); font-weight: 600; }
.row-meta { display: block; color: var(--muted); font-size: .9rem; }
.row-link:hover .row-name, .row-link:focus-visible .row-name { text-decoration: underline; }
.badge { display: inline-block; vertical-align: .15em; margin-left: .5rem; padding: 0 .4rem; font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--brand); color: var(--on-brand); border-radius: 2px; }

/* Index lists (categories, towns) in columns like a printed index */
.index { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 2rem; }
.index li { break-inside: avoid; }
.idx { display: flex; align-items: baseline; gap: .5rem; min-height: 44px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.idx-name { font-weight: 600; }
.idx:hover .idx-name { text-decoration: underline; }
.idx-count { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .index { columns: 2; } }
@media (min-width: 900px) { .index { columns: 3; } }

/* Business page */
.biz h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
.cats { margin: .5rem 0 0; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.2rem; font: inherit; font-weight: 700; text-decoration: none; border-radius: 4px; border: 2px solid var(--btn); background: var(--btn); color: var(--on-btn); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn:hover { filter: brightness(1.08); }
.facts { display: grid; grid-template-columns: 1fr; gap: .15rem 1.5rem; margin: 0; }
.facts dt { font-weight: 700; margin-top: .8rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .facts { grid-template-columns: 9rem 1fr; }
  .facts dt { margin-top: 0; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .facts dd { padding: .55rem 0; border-bottom: 1px solid var(--line); }
}
.bizcols { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.list-plain { margin: .5rem 0 0; padding-left: 1.2rem; }
.offer { border: 2px dashed var(--ink); padding: .9rem 1rem; margin-top: 1.5rem; }
.offer b { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase; }
.logo { max-height: 90px; margin-bottom: 1rem; }
.claim { margin-top: 2rem; padding: 1rem; background: var(--bg-soft); border: 1px solid var(--line); }
.claim p { margin: 0 0 .5rem; }

/* Footer */
.site-foot { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 1.5rem; padding-bottom: 2rem; font-size: .95rem; color: var(--muted); }
.site-foot a { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin: .5rem 0; }
.foot-links a { min-height: 40px; display: inline-flex; align-items: center; }
.prose p { max-width: 42rem; }
.prose h2 { font-size: 1.6rem; margin: 1.5rem 0 .4rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

