/* Functional, mobile-first, iOS-first structure. Mark skins this later.
   Colour rule: green / blue / amber are RESERVED for fee type (.pb-*). Nothing else
   on the site uses those hues. Purple is reserved for the DispuPoint ad. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --ink: #14202e; --muted: #5a6776; --line: #d9e0e8; --card: #ffffff; --soft: #f3f6f9;
  --accent: #14385c;           /* neutral navy: links, buttons, the claimed badge */
  --flat: #1b7f4b;  --flat-bg: #e4f5ec;
  --hourly: #1f5fbf; --hourly-bg: #e6eefb;
  --cont: #a86400;  --cont-bg: #fdf0d8;
  --purple: #6b3fa0; --purple-bg: #f1eafa;
  --bad: #a3231f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1720; --ink: #e8eef5; --muted: #9db0c3; --line: #2a3745; --card: #16212c; --soft: #1a2733;
    --accent: #8cb8e8;
    --flat: #58d08a; --flat-bg: #14301f;
    --hourly: #7fb0ff; --hourly-bg: #16283f;
    --cont: #f0b14a; --cont-bg: #3a2b10;
    --purple: #c3a1f0; --purple-bg: #2a1f3d;
    --bad: #ff8a84;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
a { color: var(--accent); }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 1.1rem 0 .4rem; }
h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
/* s4 run 7 addendum: the practice page's question H1 (small accent line above the form), its statewide answer and
   the visitor's local answer; the old results heading is now an H2 that keeps the old H1 look (.results-h). */
.practice-question { margin: 1.1rem 0 .2rem; }
.q-heading { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--accent); margin: 0 0 .35rem; }
.q-answer { margin: 0; font-size: 1.05rem; line-height: 1.5; max-width: 54rem; }
.q-amt-flat { color: var(--flat); } .q-amt-hourly { color: var(--hourly); } .q-amt-contingency { color: var(--cont); }
.q-local { margin: .6rem 0 0; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); line-height: 1.5; max-width: 54rem; }
.q-local[hidden] { display: none; }
.results-h { font-size: 1.6rem; line-height: 1.2; margin: 1.1rem 0 .4rem; }
.home-cost-list { padding-left: 1.2rem; }
.home-cost-list li { margin: .25rem 0; }
h3 { font-size: 1.05rem; margin: 0; }

/* header / footer */
.site-h { border-bottom: 1px solid var(--line); }
.site-h .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.login { font-size: .95rem; }
.site-f { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0 3rem; background: var(--soft); }
.site-f ul { list-style: none; padding: 0; margin: .5rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.disclaimer p { font-size: .82rem; color: var(--muted); margin: .35rem 0; }
.operator { font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }

/* controls (iOS: 16px inputs so Safari does not zoom) */
.search { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; margin: 1rem 0 0; }
.search .f { display: flex; flex-direction: column; gap: .2rem; }
.search .wide { grid-column: 1 / -1; }
.search .f[hidden] { display: none; }
.statewide .dist { display: none; }
.search label { font-size: .8rem; color: var(--muted); }
select, input[type=text], input[type=email], textarea {
  font: inherit; font-size: 16px; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); width: 100%; min-height: 44px;
}
.search .btn, .search .zip-msg { grid-column: 1 / -1; }
.zip-msg { color: var(--bad); margin: 0; font-size: .92rem; }
.btn {
  font: inherit; min-height: 44px; padding: .6rem 1rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
/* s3 run 3 item 4: the Search button greys out right after a search, until any of its own fields changes */
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.contact-btn { margin-top: .5rem; }
.btn.more { width: 100%; margin: 1rem 0; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

/* s2 Part 4b: the results page's own full-width keyword bar, under search-controls */
.keyword-bar { display: flex; flex-direction: column; gap: .2rem; margin: .8rem 0 0; }
.keyword-bar label { font-size: .8rem; color: var(--muted); }
.keyword-bar input { width: 100%; }
/* s2 Part 4e: why a card matched a keyword search */
.match-reason { color: var(--muted); font-size: .88rem; margin: .2rem 0; }

.source-note { color: var(--muted); font-size: .92rem; margin: .3rem 0; }
.summary { color: var(--muted); margin: .2rem 0 .8rem; }
/* s3 run 3 addendum B: one compact line, small text - nowrap with its own horizontal scroll rather than
   wrapping to a second line, and deliberately excluded from the mobile body-text floor below (this is a
   key, not prose, so it stays small on phones too). */
.legend { list-style: none; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .8rem; padding: 0; margin: 0 0 .8rem; font-size: .78rem; color: var(--muted); -webkit-overflow-scrolling: touch; }
.legend li { display: inline-flex; align-items: center; flex: none; white-space: nowrap; }
.legend .sw { display: inline-block; width: .6rem; height: .6rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.sw.pb-flat { background: var(--flat); } .sw.pb-hourly { background: var(--hourly); } .sw.pb-contingency { background: var(--cont); }

/* results list + card: one left-aligned vertical stack, no right column */
.results { list-style: none; padding: 0; margin: 0; }
.blank-h { font-size: 1.05rem; margin: 1.5rem 0 .6rem; color: var(--muted); }
/* s4 run 3: a divider line before the first firm that doesn't publish a price */
.feed-divider { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.feed-divider { flex-wrap: wrap; row-gap: .2rem; }
.feed-divider span { flex: 0 1 auto; min-width: 0; }
.feed-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.unit-divider { font-size: .95rem; color: var(--muted); margin: 1.1rem 0 .5rem; flex-wrap: wrap; row-gap: .2rem; }
.unit-divider::after { display: none; }
.feed-divider .how-sort { flex: none; font-size: .85rem; font-weight: 400; }
.feed-divider[hidden] { display: none; } /* display:flex above would otherwise override the hidden attribute */
.card {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 14px; margin: 0 0 12px; cursor: pointer; overflow-wrap: anywhere;
}
.card.is-claimed { border-left: 4px solid var(--accent); }
.card p { margin: .35rem 0; }
.c-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.c-name { font-size: 1.05rem; margin: 0; flex: 1 1 10rem; }
.c-name a { color: var(--ink); text-decoration: none; }
.logo { width: 44px; height: 44px; border-radius: 8px; flex: none; object-fit: contain; }
.logo.mono { display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--muted); font-weight: 700; border: 1px solid var(--line); }
.badge-claimed { font-size: .8rem; white-space: nowrap; font-weight: 700; padding: .15rem .5rem; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; }
.c-meta, .c-addr { color: var(--muted); font-size: .92rem; }
.dist { margin-left: .3rem; color: var(--ink); }
/* s3 run 5 item 1: the minimal unclaimed card's price caption, and its phone/distance/website lines -
   all plain text (the price box itself is colored - see .pb-flat/.pb-hourly/.pb-contingency below, the
   same classes a claimed card's box uses, so both keep their fee-type color). */
.c-phone .ct-plain, .c-dist .ct-plain, .c-web .ct-plain { font-weight: 400; }

/* price blocks (s4 run 2): every box is the SAME fixed width and two single lines - "$75 flat fee" /
   "Deed preparation" - each line ending in an ellipsis when it doesn't fit. Boxes never squeeze or
   stretch; the strip scrolls sideways when it overflows (results card, profile, landing page). */
.prices { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 4px 24px 4px 0; margin: .5rem 0; }
.pb { box-sizing: border-box; flex: 0 0 14rem; width: 14rem; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .2rem; scroll-snap-align: start; padding: .5rem .75rem; border-radius: 10px; border: 1px solid transparent; }
.pb-l1 { display: flex; align-items: baseline; gap: .3rem; min-width: 0; white-space: nowrap; overflow: hidden; }
.pb-n { flex: none; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.pb-u { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.pb-s { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; line-height: 1.25; }
.pb-q { flex: none; font-size: .78rem; font-weight: 600; }
.c-found { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }
.pb-flat { background: var(--flat-bg); color: var(--flat); border-color: var(--flat); }
.pb-hourly { background: var(--hourly-bg); color: var(--hourly); border-color: var(--hourly); }
.pb-contingency { background: var(--cont-bg); color: var(--cont); border-color: var(--cont); }
.noprice { color: var(--muted); font-style: normal; margin: .5rem 0; }
/* s3 run 5 item 9: the homepage's "green/blue/amber" explainer - text color only (no background
   box), using the same tokens as the price boxes, which already flip to a brighter, dark-mode-safe
   shade under prefers-color-scheme: dark. */
.fee-word-flat { color: var(--flat); }
.fee-word-hourly { color: var(--hourly); }
.fee-word-contingency { color: var(--cont); }

.offer { font-weight: 600; }
.contact { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .95rem; }
.contact a.ct { display: inline-flex; align-items: center; min-height: 44px; }
.ct-plain { color: var(--ink); }
.warn, .prov, .arts { font-size: .85rem; color: var(--muted); }
.spec-strip { list-style: none; display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; padding: 2px 24px 2px 0; margin: .5rem 0 0; -webkit-overflow-scrolling: touch; }
.spec-strip li { flex: none; font-size: .8rem; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.spec-strip li.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.c-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .6rem; }
.lnk { font: inherit; font-size: .85rem; background: none; border: 0; padding: .6rem .2rem; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* s4 run 3: the DispuPoint ad - its own purple zone in the results feed (real estate only), after the last
   priced firm; never inside the price sort. Labelled "Ad" + "Not a law firm". */
.tag { font-size: .75rem; font-weight: 700; border: 1px solid var(--purple); color: var(--purple); padding: .1rem .5rem; border-radius: 999px; }
.ad-slot { list-style: none; margin: 0 0 12px; }
.ad-card { background: var(--purple-bg); border: 1px solid var(--purple); border-radius: 12px; padding: 14px 16px; }
.ad-tags { display: flex; gap: .4rem; margin: 0 0 .4rem; }
.ad-tag { background: var(--purple); color: var(--purple-bg); border-radius: 6px; }
.ad-main { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; }
.ad-title { margin: 0; font-size: 1.05rem; }
.ad-text { margin: .25rem 0 0; }
.ad-price { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--purple); white-space: nowrap; }
.ad-foot { display: flex; justify-content: space-between; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; margin-top: .4rem; }
.ad-disc { margin: 0; font-size: .82rem; color: var(--muted); }
.ad-link { color: var(--purple); font-weight: 600; padding: .6rem 0; }

.related ul { padding-left: 1.1rem; }
.crumbs { font-size: .88rem; margin-top: 1rem; }

/* dialogs */
/* s3 run 3, item 1 BUG FIX: this rule used to also set `position: relative`. An author's plain
   (non-!important) "position" declaration on `dialog` overrides the browser's own `dialog:modal {
   position: fixed; inset-block: 0 }` rule regardless of selector specificity (author styles always
   beat the UA stylesheet). That left every modal dialog rendered at its static in-flow position -
   wherever it happens to sit in the page's HTML, here right before the footer - instead of fixed and
   centered over the viewport. The dimmed ::backdrop still covered the whole viewport (its own
   position:fixed was never touched), so tapping "Report" appeared to freeze the page: nothing tappable
   was visible where the user was looking, and because the rest of the page is natively inert while a
   dialog is open modally, every next tap (Cookie settings, footer links, anything) was swallowed by the
   backdrop instead of reaching its real target. Not setting `position` here at all lets `:modal` keep
   its fixed+centered default; `.dlg-x`'s `position: absolute` still gets a valid containing block from
   that (a fixed positioned box is a valid containing block too). tests/dialog.test.mjs guards this. */
dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); width: min(92vw, 28rem); max-height: 92vh; overflow-y: auto; padding: 16px; }
/* s3: every dialog has an X close button, top right (a 44x44 tap target); it also closes on a tap outside and on Esc */
.dlg-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 1.7rem; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 8px; }
.dlg-x:hover { color: var(--ink); background: var(--soft); }
.dlg-form h2 { padding-right: 44px; }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
.dlg-form { display: grid; gap: .5rem; }
.dlg-form h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.dlg-actions { display: flex; gap: .6rem; margin-top: .4rem; }
.msg { padding: .5rem .7rem; border-radius: 8px; border: 1px solid var(--line); }
.msg.bad { border-color: var(--bad); color: var(--bad); }

/* homepage */
.hero { padding: 1.4rem 0 1rem; }
.lede { color: var(--muted); margin: .3rem 0 0; }
.trust-line { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-line p { margin: 0; padding: 1rem 0; font-size: 1.05rem; }
.band { padding: .5rem 0 1rem; }
.why-trust h2 { text-align: center; }
.trust-pt { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .8rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.trust-pt:last-child { margin-bottom: 0; }
.trust-pt .trust-ic { flex: none; color: var(--flat); margin-top: .2rem; }
.trust-pt p { margin: 0; }
.band.alt { background: var(--soft); }
.band.claim { background: var(--soft); padding-bottom: 1.5rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; margin: .8rem 0; }
.cmp th, .cmp td { text-align: left; border-bottom: 1px solid var(--line); padding: .5rem .4rem; vertical-align: top; }
.posts { list-style: none; padding: 0; }
.prose { padding-bottom: 1rem; }

/* s3 run 9 item 3: FAQ as a native <details>/<summary> accordion - keyboard/tap accessible with no
   JS (the browser handles open/close and Enter/Space natively), and the answer stays real DOM
   content (not hidden by script), so a crawler reads it exactly like before. Mark: keep this
   minimal - see docs/CSS-NOTES-FOR-MARK.md. */
.faq-item { border-top: 1px solid var(--line); padding: .2rem 0; }
.faq-item summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; display: inline-block; width: 1.2em; flex: none; color: var(--muted); }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { margin: 0 0 .8rem; }

@media (min-width: 720px) {
  .search { grid-template-columns: .9fr 1.3fr .9fr .9fr 1.1fr auto; align-items: end; }
  .search .wide { grid-column: auto; }
  .search .btn, .search .zip-msg { grid-column: auto; }
  .search .zip-msg { grid-column: 1 / -1; }
}

.kind { border: 0; padding: 0; margin: .3rem 0; display: grid; gap: .3rem; }
.opt { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; min-height: 44px; }
.opt { align-items: center; }
.opt input { width: 24px; height: 24px; min-height: 0; margin: 0; flex: none; }
.sr { position: absolute; left: -9999px; }

/* Consent banner (s2 Part B). Do not change: the two buttons must stay equal size/styling. */
.link-btn { font: inherit; font-size: .95rem; background: none; border: 0; padding: 0 .2rem; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; color: var(--accent); text-decoration: underline; cursor: pointer; }
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0,0,0,.08); padding: .9rem 0 calc(.9rem + env(safe-area-inset-bottom)); }
.consent-banner[hidden] { display: none; }
.consent-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; justify-content: space-between; }
.consent-banner p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 20rem; }
.consent-actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.consent-btn { flex: 1 1 0; min-width: 6.5rem; }

/* Firm profile page (s2 Part 3). Mobile-first: contact card comes first in source
   order so it naturally sits above prices on a phone; the desktop grid re-positions
   prices left / contact right without touching source order (crawler content order
   is unaffected either way - both are on the same page). */
.l-header { margin: 1rem 0 .5rem; }
.l-head-row { display: flex; align-items: center; gap: .7rem; }
.l-head-row h1 { margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.l-meta { color: var(--muted); font-size: .92rem; margin: .15rem 0 0; }
.l-layout { display: grid; gap: 1.2rem; margin-top: .5rem; }
.l-prices, .l-contact { min-width: 0; }
.l-cat { border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; margin-bottom: .8rem; background: var(--card); }
.l-cat[data-searched="true"] { border-color: var(--accent); }
.l-cat-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.l-cat-head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; flex-wrap: wrap; gap: .2rem; }
.your-search { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: .1rem .5rem; margin-left: .4rem; }
.l-also { margin-top: .6rem; color: var(--muted); font-size: .92rem; }
.l-also h3 { font-size: .95rem; color: var(--ink); margin: 0 0 .3rem; }
.l-also ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.l-contact { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; background: var(--soft); }
.l-contact h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.l-claim-card { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin-top: 1rem; }
.l-claim-card h2 { margin: 0 0 .2rem; font-size: 1.05rem; }
.l-claim-card p { margin: 0 0 .6rem; color: var(--muted); font-size: .92rem; }
.l-addr, .l-google { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
.ardc-check { font-size: .88rem; color: var(--muted); margin: .6rem 0 0; }
.ext-ic { vertical-align: -1px; }
.l-report-general { margin: 1rem 0; }
@media (min-width: 800px) {
  .l-layout { grid-template-columns: minmax(0, 1fr) 21rem; grid-template-areas: "prices contact" "prices claim" "prices local"; grid-template-rows: auto auto 1fr; align-items: start; column-gap: 1.75rem; }
  .l-prices { grid-area: prices; }
  .l-contact { grid-area: contact; }
  .l-claim-card { grid-area: claim; margin-top: 1rem; }
  .l-local { grid-area: local; }
}

/* s2: claim page (logged-out view) - minimal, one column */
.claim-page { max-width: 34rem; }
.claim-firm { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.claim-firm > div { flex: 1; min-width: 0; }
.claim-firm p { margin: 0; }
.claim-firm-k { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.claim-firm-n { font-weight: 700; overflow-wrap: anywhere; }
.claim-firm-w { font-size: .88rem; color: var(--muted); }
.claim-firm-x { font-size: .85rem; white-space: nowrap; }
.claim-lede { color: var(--muted); font-size: 1.05rem; margin: .2rem 0 1rem; }
.claim-checks { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.claim-checks li { display: flex; align-items: center; gap: .5rem; }
.claim-checks .trust-ic { flex: none; color: var(--flat); }
.signin-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; background: var(--card); }
/* Google sign-in branding: white button, official multicolor G, "Continue with Google" - stays white in dark mode */
.gbtn { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; min-height: 44px; padding: .55rem 1rem; box-sizing: border-box;
  background: #fff; color: #3c4043; border: 1px solid #dadce0; border-radius: 6px; font: 500 14px/1.2 Roboto, "Helvetica Neue", Arial, sans-serif; text-decoration: none; }
.gbtn:hover { background: #f8f9fa; box-shadow: 0 1px 2px rgba(60,64,67,.3); }
.gbtn:focus-visible { outline: 2px solid #4285F4; outline-offset: 2px; }
.signin-or { display: flex; align-items: center; gap: .7rem; margin: .9rem 0; color: var(--muted); font-size: .85rem; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin-card label { display: block; font-size: .85rem; color: var(--muted); margin: 0 0 .25rem; }
.signin-card .hint { font-size: .82rem; color: var(--muted); margin: .35rem 0 .8rem; }
.signin-card .btn { width: 100%; }
.claim-h2 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.claim-steps { margin: 0; padding-left: 1.2rem; }
.claim-steps li { margin: 0 0 .35rem; }
.claim-foot { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.claim-foot p { margin: .3rem 0; }

/* s3: the claim form's "Where should clients contact you?" field */
.contact-pref { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem .8rem; margin: .5rem 0; display: grid; gap: .5rem; }
.contact-pref legend { font-weight: 600; padding: 0 .3rem; }
.contact-pref p { margin: 0; font-size: .88rem; }

/* s3 item 3: mobile usability. Every tappable element is at least 44x44 CSS px with room between
   neighbours, and body text is at least 16px (only non-text chips and price captions go to 14px).
   Standalone links are inline-flex boxes; in-sentence links get vertical padding (which extends the
   tap area without moving the text) and a roomier line-height so two links never share a tap area. */
@media (max-width: 719px) {
  body { font-size: 1rem; line-height: 1.55; }
  .muted, .warn, .prov, .arts, .c-meta, .c-addr, .l-meta, .l-addr, .l-google, .ardc-check, .match-reason, .summary,
  .disclaimer p, .operator, .msg, .claim-lede, .claim-foot, .signin-card .hint, .signin-card label, .search label,
  .keyword-bar label, .l-also, .cmp, .zip-msg, .ad-disc, .claim-firm-k, .claim-firm-w, .claim-firm-x, .crumbs,
  .l-claim-card p, .contact, .consent-banner p, .opt, .lnk, .dist, .c-addr, .blank-h, .contact-pref p, .link-btn { font-size: 1rem; }
  .pb-q, .badge-claimed, .spec-strip li, .tag, .your-search { font-size: .875rem; }
  .pb-u, .pb-s, .c-found, .btn.more, .login, .gbtn, .signin-or { font-size: 1rem; }
  .prose p, .prose li, .claim-foot p, .related li, .disclaimer p { line-height: 1.75; }
  main p a:not(.btn):not(.gbtn), main li a:not(.btn):not(.gbtn), .disclaimer a, .claim-foot a, .operator a {
    padding: .8rem .3rem; margin: 0 -.3rem;
  }
  .site-h a, .site-f a, .crumbs a, .related a, .posts a, .l-also a, .l-report-general .lnk, .claim-firm-x, .c-name a, .brand {
    display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  }
  .site-f ul { gap: .2rem 1.2rem; }
  .related ul, .l-also ul, .posts { padding-left: 0; list-style: none; }
  .related li, .l-also li, .posts li { margin: 0 0 .25rem; }
  .c-links { gap: .2rem 1.2rem; }
  .contact { gap: .2rem 1.2rem; }
  .contact-btn, .btn.primary, .btn { min-width: 44px; }
  .consent-banner .wrap { gap: .6rem; }
  .l-claim-card .btn, .contact-btn { margin-top: .6rem; }
}

/* s3: the dated screenshot of the firm's own price page on the outreach landing page */
.snap { margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); padding: .6rem; }
.snap figcaption { font-weight: 600; margin: 0 0 .5rem; }
.snap img { display: block; width: 100%; height: auto; max-height: 30rem; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* s3 item 6: cost guides, the price report, the price-publishers index */
.stat-line { font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .6rem; margin: 1rem 0; }
.stats > div { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; background: var(--soft); }
.stats dt { font-size: .85rem; color: var(--muted); }
.stats dd { margin: .1rem 0 0; font-size: 1.35rem; font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .6rem 0 1rem; }
.publishers { list-style: none; padding: 0; margin: 1rem 0; }
.publishers li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 719px) { .stats dt { font-size: 1rem; } .publishers li a { display: inline-flex; align-items: center; min-height: 44px; } }

/* s3 item 7: the keyword typeahead */
.keyword-bar { position: relative; }
.kw-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: .15rem 0 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 8px; max-height: 18rem; overflow-y: auto; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.kw-list[hidden] { display: none; }
.kw-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; min-height: 44px; padding: .4rem .8rem; cursor: pointer; }
.kw-list li[aria-selected="true"], .kw-list li:hover { background: var(--soft); }
.kw-n { color: var(--muted); font-size: .9rem; white-space: nowrap; }
@media (max-width: 719px) { .kw-n { font-size: 1rem; } }

/* s3 item 3, data pages: links inside tables and lists are full-size tap targets on a phone */
@media (max-width: 719px) {
  .cmp td a, .cmp th a, .table-wrap a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .cmp td, .cmp th { padding: .4rem .5rem; }
  .btn { margin: .25rem 0; }
}

/* s3: a list whose items ARE the link (fee sources): each link is its own 44px row, no padding trick */
.fee-sources { list-style: none; padding: 0; margin: .4rem 0 1rem; }
@media (max-width: 719px) {
  .fee-sources li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0; }
}

/* s3 run 2, item 3: the mobile "Compare lawyer prices near you" bar, and the desktop header search.
   The bar is phone-only and sits below the cookie banner (z-index 40) in the stack; cta.js also hides it while
   the banner or a dialog is showing. body.has-cta reserves room for it so it never covers the footer links,
   and scroll-padding keeps a focused control from landing under it. Safe-area insets are respected. */
.sticky-cta, .h-search { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 720px) {
  .h-search { display: flex; align-items: center; gap: .5rem; margin: 0 1rem; flex: 1 1 auto; justify-content: flex-end; }
  .h-search input[name=zip] { width: 8rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
  .h-search .btn { padding: .4rem .9rem; white-space: nowrap; }
}
@media (max-width: 719px) {
  html { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-cta { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .sticky-cta {
    display: flex; align-items: center; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    min-height: 56px; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); box-sizing: border-box;
    background: var(--accent, #1d4ed8); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .15);
  }
  .sticky-cta:hover, .sticky-cta:focus { color: #fff; text-decoration: underline; }
  .sticky-cta[hidden] { display: none; }
}

/* s3 run 2, item 2: page statistics */
.page-stats { margin: 2rem 0; }
.page-stats h3 { margin: 1.2rem 0 .4rem; }
.page-stats ul { padding-left: 1.2rem; }
.stat-foot { font-size: .88rem; }
.profile-summary { font-size: 1.05rem; margin: .8rem 0 1rem; }
.profile-context { border: 1px solid var(--line); border-radius: 10px; background: var(--soft); padding: .3rem 1rem; margin: 0 0 1rem; }
.l-consult { font-weight: 600; margin: .2rem 0; }
.l-attorneys ul { columns: 2 14rem; padding-left: 1.2rem; }
.early-data { display: inline-block; margin: 0 0 .4rem; padding: .15rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); font-size: .9rem; font-weight: 600; }
@media (max-width: 719px) { .stat-foot, .early-data { font-size: 1rem; } .page-stats td, .page-stats th { font-size: 1rem; } }

/* s4 run 3: results-card price strip - never scrolls sideways. Fixed-width boxes (176px), at most 3 on desktop
   and 2 in a 2-column grid on a phone; "+{n} more prices" to the right (below on a phone). */
.card-prices { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: .5rem 0; }
.card-prices .prices { display: flex; flex-wrap: nowrap; overflow: visible; padding: 0; margin: 0; gap: 8px; }
.card-prices .pb { flex: 0 0 176px; width: 176px; padding: .5rem .7rem; }
.more-prices { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .3rem; font-size: .95rem; }
.more-m { display: none; }
@media (max-width: 719px) {
  .card-prices { display: block; }
  .card-prices .prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-prices .pb { flex: none; width: auto; }
  .card-prices .pb-x3, .more-d { display: none; }
  .more-m { display: inline-flex; }
}

/* s4 run 3: profile prices as a readable list - service (bold), the firm's wording, the median; the price
   right-aligned in its fee color; add-ons smaller under their own subheading; one source line per group. */
.pr-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.pr-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.pr-what { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pr-name { font-weight: 700; font-size: 1.02rem; }
.pr-wording, .pr-median { font-size: .88rem; color: var(--muted); }
.pr-amt { flex: none; text-align: right; white-space: nowrap; }
.pr-n { font-size: 1.4rem; font-weight: 800; }
.pr-u, .pr-q { font-size: .85rem; }
.pa-flat { color: var(--flat); } .pa-hourly { color: var(--hourly); } .pa-contingency { color: var(--cont); }
.pr-sub { margin: .6rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pr-extras .pr-row { padding: .45rem 0; border-top: 0; }
.pr-extras .pr-name { font-weight: 600; font-size: .95rem; }
.pr-extras .pr-n { font-size: 1.1rem; font-weight: 700; }
.l-cat .prov { margin: .5rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.l-also { border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; margin: 0 0 .8rem; background: var(--card); }
.l-also h2, .l-attorneys h2 { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--ink); }
.l-local p { margin: .6rem .2rem 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 719px) {
  .pr-row { align-items: flex-start; }
  .pr-wording, .pr-median, .pr-u, .pr-q, .l-local p, .ad-disc, .c-found, .l-cat .prov, .more-prices { font-size: 1rem; }
  .pr-sub, .ad-tags .tag { font-size: .875rem; }
}

/* s4 run 3: the profile's two-column layout (prices left, contact/claim/local right) gets the width the approved
   mockup uses on desktop; every other page keeps the 46rem reading column. */
@media (min-width: 1000px) {
  .wrap[data-profile] { max-width: 68rem; }
  .l-cat-head { flex-wrap: nowrap; }
}

/* s4 run 5 (sample on /illinois/real-estate/ only): neutral stats charts, server-rendered inline SVG. Fee-type
   fills reuse the reserved tokens (flat green / hourly blue / contingency amber - never purple); every label and
   number is HTML text beside the SVG, so they stay legible at 390px and readable by crawlers. Tokens for Mark:
   .chart (container), .chart-title, .chart-meta, .chart-bars .cb-row/.cb-label/.cb-track/.cb-value,
   .chart-spread .cs-svg/.cs-band/.cs-axis/.cs-median/.cs-labels, fills .cf-flat/.cf-hourly/.cf-contingency/.cf-neutral. */
.chart { margin: .8rem 0 1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); max-width: 40rem; }
.chart-title { font-weight: 700; font-size: .95rem; margin: 0 0 .5rem; }
.chart-unit { font-weight: 400; color: var(--muted); }
.chart-meta { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }
.chart-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.cb-row { display: grid; grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) auto; align-items: center; gap: .6rem; }
.cb-label { font-size: .9rem; }
.cb-track { display: block; width: 100%; height: 14px; }
.cb-bg { fill: var(--soft); }
.cb-value { font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-flat { fill: var(--flat); } .cf-hourly { fill: var(--hourly); } .cf-contingency { fill: var(--cont); } .cf-neutral { fill: var(--muted); }
.cs-svg { display: block; width: 100%; height: auto; }
.cs-band { fill: var(--soft); stroke: var(--line); }
.cs-axis { stroke: var(--line); stroke-width: 2; }
.cs-median { stroke: var(--ink); stroke-width: 2.5; }
.chart-spread circle { stroke: var(--card); stroke-width: 1.5; }
.cs-labels { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; margin: .3rem 0 0; font-variant-numeric: tabular-nums; }
.cs-mid { font-weight: 700; }
@media (max-width: 719px) {
  .cb-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cb-row .cb-track { grid-column: 1 / -1; grid-row: 2; }
  .cb-label, .cb-value, .cs-labels, .chart-meta, .chart-title { font-size: 1rem; }
}

/* s4 run 6: operator qualifier ("approx.") before an amount, and an operator note ("+ $338 court costs") after it */
.pb-qx { font-size: .78rem; font-weight: 600; margin-right: .15rem; }
.pr-note { display: block; font-size: .82rem; color: var(--muted); white-space: normal; }
@media (max-width: 719px) { .pb-qx { font-size: .875rem; } .pr-note { font-size: 1rem; } }
