/* Local Expert Finder
   Idea: US road-sign wayfinding. One green "sign" panel per page is the memorable element;
   everything else is quiet paper, ink and thin rules. Yellow only marks rank and focus. */
:root {
  --green: #0E5A3A;
  --green-deep: #0A4630;
  --paper: #F6F7F4;
  --white: #FFFFFF;
  --ink: #1C2421;
  --muted: #56645D;
  --line: #D5DBD6;
  --yellow: #F2C12E;
  --head: 'Overpass', 'Public Sans', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 68ch;
  --wide: 1120px;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-feature-settings: 'kern', 'liga';
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -.005em; margin: 0 0 var(--s4); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; margin-top: var(--s7); }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: var(--s5); }
p, ul, ol { margin: 0 0 var(--s4); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--s5); }
.prose { max-width: var(--measure); }
.prose li { margin-bottom: var(--s2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--white); padding: var(--s2) var(--s3); z-index: 10; }

/* Header and footer */
.top { border-bottom: 1px solid var(--line); background: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font: 800 1.15rem/1 var(--head); color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 6px; background: var(--green); box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 4px var(--white); }
.top nav a { font: 600 .95rem/1 var(--head); color: var(--ink); text-decoration: none; margin-left: var(--s5); }
.top nav a:hover { color: var(--green); }
.foot { margin-top: var(--s8); padding: var(--s7) 0 var(--s6); background: var(--ink); color: #C9D2CD; font-size: .95rem; }
.foot a { color: var(--white); }
.foot .cols { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot h2 { font-size: 1rem; color: var(--white); margin: 0 0 var(--s3); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: var(--s2); }
.foot .fine { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid #3A4541; font-size: .85rem; color: #9AA6A0; }

/* Breadcrumbs */
.crumbs { font-size: .9rem; color: var(--muted); padding: var(--s4) 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.crumbs li + li::before { content: '/'; margin-right: var(--s2); color: var(--line); }
.crumbs a { color: var(--muted); }

/* The sign: the one bold element on each page */
.sign {
  background: var(--green); color: var(--white);
  border-radius: 14px; padding: var(--s6) var(--s6) var(--s5);
  box-shadow: inset 0 0 0 4px var(--green), inset 0 0 0 6px rgba(255,255,255,.92);
  margin: var(--s5) 0 var(--s6);
}
.sign h1 { color: var(--white); margin-bottom: var(--s3); }
.sign .sub { font: 600 1.15rem/1.35 var(--head); color: #E3EEE8; margin: 0 0 var(--s4); max-width: 46ch; }
.sign .facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; padding: var(--s4) 0 0; border-top: 1px solid rgba(255,255,255,.28); list-style: none; font-size: .95rem; color: #D5E6DC; }
.sign .facts strong { color: var(--white); font-weight: 700; }
.sign a { color: var(--white); }

/* Short answer under the sign */
.answer { font-size: 1.15rem; line-height: 1.55; max-width: var(--measure); }

/* Ranked list */
.ranked { list-style: none; padding: 0; margin: var(--s5) 0 0; counter-reset: rank; max-width: 860px; }
.firm { display: grid; grid-template-columns: 52px 1fr; gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.firm:last-child { border-bottom: 1px solid var(--line); }
.rank { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font: 800 1.2rem/1 var(--head); }
.firm h3 { margin: 0 0 var(--s1); font-size: 1.3rem; }
.firm .rating { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 600; color: var(--ink); }
.firm .rating svg { color: #B8860B; }
.firm .rating span { color: var(--muted); font-weight: 400; }
.firm .blurb { margin: var(--s3) 0; max-width: 64ch; }
.firm .meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: .95rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.firm .meta li { display: inline-flex; align-items: center; gap: var(--s1); }
.firm .meta a { color: var(--green); font-weight: 600; }

/* Method box and notes */
.method { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--green); padding: var(--s5); margin: var(--s7) 0 0; max-width: var(--measure); }
.method h2 { margin-top: 0; font-size: 1.25rem; }
.method p:last-child { margin-bottom: 0; }
.note { font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq { max-width: var(--measure); }
.faq details { border-top: 1px solid var(--line); padding: var(--s4) 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 1.1rem/1.35 var(--head); list-style: none; padding-right: var(--s6); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-weight: 800; color: var(--green); }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding-top: var(--s3); }

/* Link lists: services, cities */
.groups { display: grid; gap: var(--s6) var(--s7); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: var(--s5); }
.groups h2 { margin-top: 0; font-size: 1.2rem; padding-bottom: var(--s2); border-bottom: 3px solid var(--green); }
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.links a { font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.links .soon { color: var(--muted); }
.links .soon::after { content: ' (coming soon)'; font-size: .85rem; }
.cols-3 { columns: 3 220px; column-gap: var(--s6); }
.cols-3 li { break-inside: avoid; }

/* Home */
.home-sign { padding: var(--s7) var(--s6) var(--s6); }
.home-sign h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem); max-width: 18ch; }
.steps { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 960px; }
.steps li { padding-top: var(--s3); border-top: 3px solid var(--ink); }
.steps strong { display: block; font: 700 1.1rem/1.3 var(--head); margin-bottom: var(--s1); }

/* Article (hub guide, posts, pages) */
.article { display: grid; gap: var(--s7); grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
.article aside { position: sticky; top: var(--s5); font-size: .95rem; }
.article aside h2 { font-size: 1rem; margin: 0 0 var(--s3); }
.tldr { background: var(--white); border: 1px solid var(--line); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); max-width: var(--measure); }
.tldr h2 { font-size: 1.05rem; margin: 0 0 var(--s2); }
.tldr ul { margin: 0; padding-left: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; margin: var(--s4) 0 var(--s5); font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--head); background: var(--white); }
.sources { font-size: .9rem; color: var(--muted); }
.updated { font-size: .95rem; color: var(--muted); margin-bottom: var(--s5); }

@media (max-width: 860px) {
  .article { grid-template-columns: 1fr; }
  .article aside { position: static; }
  .top nav a + a { display: none; }
  .sign { padding: var(--s5) var(--s4) var(--s4); }
  .firm { grid-template-columns: 44px 1fr; }
  .rank { width: 36px; height: 36px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* City page top: answer beside an at-a-glance table */
.city-top { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.city-top .answer p:last-child { margin-bottom: 0; }
.glance { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: .95rem; }
.glance caption { text-align: left; font: 700 1rem/1.3 var(--head); padding: 0 0 var(--s2); }
.glance th, .glance td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); text-align: left; }
.glance th { font: 700 .85rem/1.2 var(--head); color: var(--muted); }
.glance tbody tr:last-child td { border-bottom: 0; }
.glance td:first-child { font: 800 1rem/1 var(--head); width: 2.2em; }
.glance a { text-decoration: none; font-weight: 600; }
.muted { color: var(--muted); }
.list-head { margin-top: var(--s7); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Firm actions */
.firm .rating { margin: 0; }
.firm .rating .area { margin-left: var(--s3); padding-left: var(--s3); border-left: 1px solid var(--line); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin: var(--s3) 0 var(--s2); }
.btn { display: inline-flex; align-items: center; gap: var(--s2); padding: .55rem .95rem; border-radius: 8px; background: var(--green); color: var(--white); font: 700 .95rem/1 var(--head); text-decoration: none; }
.btn:hover { background: var(--green-deep); color: var(--white); text-decoration: none; }
.btn-quiet { background: var(--white); color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-quiet:hover { background: #EAF2ED; color: var(--green-deep); }
.actions .link { font-size: .95rem; }
.addr { font-size: .9rem; color: var(--muted); display: flex; gap: var(--s1); align-items: center; margin: 0; }
.related { display: grid; gap: var(--s5) var(--s7); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related h3 { margin-top: 0; }

/* Guide pages */
.sign-guide { padding-bottom: var(--s4); }
.sign-guide h1 { margin-bottom: var(--s4); }
.article .answer { font-size: 1.2rem; line-height: 1.55; padding-bottom: var(--s5); border-bottom: 3px solid var(--green); margin-bottom: var(--s5); }
.city-strip { margin: 0 0 var(--s5); }
.city-strip h2 { margin-top: 0; font-size: 1.1rem; }
.city-strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.city-strip a { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; }
.city-strip a:hover { border-color: var(--green); }
.toc { padding-left: 1.2em; margin: 0; }
.toc li { margin-bottom: var(--s2); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.sample-banner { margin: var(--s4) 0 0; padding: var(--s2) var(--s3); background: var(--yellow); font-weight: 700; border-radius: 6px; }

@media (max-width: 860px) {
  .city-top { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .firm .rating .area { display: block; margin: var(--s1) 0 0; padding: 0; border: 0; }
}

/* Polish pass: shield, firm head, chips, checked line, footer brand */
.sign-city { position: relative; padding-right: 120px; }
.plate { position: absolute; top: var(--s5); right: var(--s5); width: 64px; height: 76px; border-radius: 8px; background: var(--white); display: grid; place-items: center; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.plate span { display: grid; place-items: center; width: 54px; height: 66px; border-radius: 5px; background: var(--green); color: var(--white); font: 800 1.35rem/1 var(--head); letter-spacing: .02em; }
.firm-head { display: flex; gap: var(--s3); align-items: center; margin-bottom: var(--s2); }
.logo { width: 48px; height: 48px; border-radius: 10px; flex: none; object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.initials { display: grid; place-items: center; font: 800 1rem/1 var(--head); color: var(--green); background: #EAF2ED; border-color: #CFE0D6; }
.good-for { margin: 0 0 var(--s2); }
.chips { list-style: none; padding: 0; margin: 0 0 var(--s2); display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li { font-size: .85rem; padding: .2rem .6rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.checked { display: flex; gap: var(--s2); align-items: flex-start; font-size: .95rem; color: var(--muted); margin: var(--s4) 0 0; max-width: 860px; }
.checked svg { color: var(--green); flex: none; margin-top: .2em; }
.brand-foot { color: var(--white); margin-bottom: var(--s3); }
.brand-foot .brand-mark { box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 4px var(--ink); }
.rating, .glance td { font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .sign-city { padding-right: var(--s4); padding-top: calc(var(--s5) + 56px); }
  .plate { top: var(--s4); left: var(--s4); right: auto; width: 46px; height: 54px; }
  .plate span { width: 38px; height: 46px; font-size: 1rem; }
}
