/*
  The SEO family's pictures (docs/pages/service_pages/pictures/seo.py), for the SEO page and the pages under it, linked after
  service-page.css as the pages' picture_css. They follow service-page.css's rules for every picture: sizes in em, the font size
  from the box's width (100cqw divided by --w, set here and never inline), so each scales whole from 2560 px to 320, and a box
  under 480 px draws the wide ones 22 em wide with their parts stacked. They reuse its parts (.ui, .ui-box, .ui-label, .ui-kpi,
  .ui-gauge, .ui-tick, .ui-skel, .ui-mark) and add their own: a top row with the Example tag, a small table, spot pills on
  Google's results (green 1 to 3, amber 4 to 10, red 11 or lower, every one 4.5:1 or better) and status tags. Flat fills only.

  At the end, one thing of the SEO page's own outside the pictures: the size of Fieldshare's wide logo in the quote, until the
  quote kind sets a logo-size class (#2 changed quote.py on its branch). The header's note line and the two-card case row are
  service-page.css's, for every service page.
*/

/* Each picture's width in em: the header's 34 (its four parts side by side), the steps' 26, the rows' 34, the rankings 30 */
.ui-clicks, .ui-map, .ui-audit, .ui-article, .ui-health, .ui-answer, .ui-report { --w: 34; }
.ui-check, .ui-rivals, .ui-plan { --w: 26; }
.ui-ladder { --w: 30; }

/* ── Shared parts ── */
/* The top row: the screen's title, a quieter line beside it, and the Example tag in the corner of a screen with a before number */
.ui-top { display: flex; align-items: flex-start; gap: 0.6em; margin-bottom: 0.85em; }
.ui p.ui-top__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1em 0.55em; min-width: 0; }
.ui-top__title b { font-size: 1.05em; font-weight: 650; letter-spacing: -0.015em; }
.ui-top__title span { color: var(--slate); font-size: max(0.76em, min(11px, 0.95em)); font-weight: 500; white-space: nowrap; }
.ui-example {
  flex: none; margin-left: auto; padding: 0.25em 0.6em; border: 0.0625em solid var(--ui-line); border-radius: 9999px;
  background-color: var(--ui-fill); color: var(--slate); font-size: max(0.64em, min(11px, 0.8em)); font-weight: 600; line-height: 1.2; white-space: nowrap;
}

/* A small table: quiet column titles, hairlines between rows, numbers to the right and in step */
.ui-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ui-table th { padding: 0 0.55em 0.5em; color: var(--slate); font-size: max(0.62em, min(11px, 0.775em)); font-weight: 600; line-height: 1.2; text-align: right; white-space: nowrap; }
.ui-table td { padding: 0.42em 0.5em; border-top: 0.0875em solid var(--ui-line); font-size: max(0.72em, min(11px, 0.9em)); font-weight: 600; text-align: right; white-space: nowrap; }
.ui-table :is(th, td):first-child { padding-left: 0; text-align: left; }
.ui-table :is(th, td):last-child { padding-right: 0; }

/* A spot on Google: a pill with a dot, in the spot's band */
.ui-spot { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.18em 0.55em; border-radius: 9999px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.ui-spot i { flex: none; width: 0.5em; height: 0.5em; border-radius: 9999px; background-color: currentColor; }
.ui-spot.is-top { background-color: #dcfce7; color: #15803d; }
.ui-spot.is-near { background-color: #fef3c7; color: #a15c07; }
.ui-spot.is-far { background-color: #fee4e2; color: #b42318; }
.ui-spot.is-none { background-color: var(--ui-fill); color: var(--slate); font-weight: 600; }

/* A status tag */
.ui-tag { display: inline-flex; align-items: center; padding: 0.2em 0.6em; border-radius: 9999px; font-size: max(0.64em, min(11px, 0.8em)); font-weight: 650; line-height: 1.3; white-space: nowrap; }
.ui-tag.is-live, .ui-tag.is-done, .ui-tag.is-cited { background-color: #dcfce7; color: #15803d; }
.ui-tag.is-writing { background-color: #fef3c7; color: #a15c07; }
.ui-tag.is-add { background-color: var(--tint); color: var(--anchor-deep); }

/* A number's value before the work, green because each grew */
.ui-before { display: inline-block; margin-top: 0.5em; padding: 0.15em 0.55em; border-radius: 9999px; background-color: #dcfce7; color: #15803d; font-size: max(0.62em, min(11px, 0.775em)); font-weight: 650; white-space: nowrap; }

/* The half gauge: Local SEO's arc, here amber for a low share and green for a full one */
.ui-gauge.is-low .ui-gauge__fill { stroke: var(--amber); }

/* ── The header: Kestrel's Google search numbers ── */
.ui-clicks .ui-kpis { margin-top: 0; }
.ui-clicks .ui-kpi { display: flex; flex-direction: column; align-items: flex-start; }
.ui-clicks__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 0.75em; margin-top: 0.75em; }
/* The chart: the line and its tint drawn to the box, the scale and the months as text beside them */
.ui-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 6.2em auto; column-gap: 0.45em; }
.ui p.ui-chart__y { position: relative; min-width: 1.5em; }
.ui-chart__y span { position: absolute; right: 0; color: var(--slate); font-size: max(0.56em, min(11px, 0.7em)); line-height: 1; transform: translateY(-50%); }
.ui-chart__y span:nth-child(2) { top: 33.33%; }
.ui-chart__y span:nth-child(3) { top: 66.67%; }
.ui-chart__plot { display: block; width: 100%; height: 100%; overflow: visible; }
.ui-chart__grid { stroke: var(--ui-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ui-chart__fill { fill: var(--tint); }
.ui-chart__line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ui p.ui-chart__x { grid-column: 2; display: flex; justify-content: space-between; margin-top: 0.45em; color: var(--slate); font-size: max(0.56em, min(11px, 0.7em)); }

/* ── The steps. Local SEO's step pictures sit in a box 230 px tall that cuts them wherever it falls; these hold more rows, so the
   box follows the picture and the card's bottom edge cuts only the white under the last row. The three share one height, so
   their tops line up across the row of cards ── */
.svc-shot--step:has(> :is(.ui-check, .ui-rivals, .ui-plan)) { height: auto; }
.svc-shot--step > :is(.ui-check, .ui-rivals, .ui-plan) { min-height: 15.9em; margin-bottom: -1em; }

/* ── Step 1: the site check ── */
.ui-check__body { display: grid; grid-template-columns: 6.8em minmax(0, 1fr); align-items: start; gap: 0.75em; }
.ui-check__gauge { position: relative; padding-top: 0.5em; text-align: center; }
.ui-check__gauge .ui-gauge { width: 100%; }
.ui p.ui-check__score { position: absolute; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.ui-check__score b { font-size: 1.15em; font-weight: 700; letter-spacing: -0.02em; }
.ui-check__score span { color: var(--slate); font-size: max(0.58em, min(11px, 0.725em)); font-weight: 500; }
.ui-check__list .ui-spot { font-size: 0.95em; }
.ui-check__list .ui-table th { white-space: normal; }

/* ── Step 2: you against two competitors ── */
.ui-rivals__table th { padding-inline: 0.4em; white-space: normal; vertical-align: bottom; text-align: center; text-wrap: balance; }   /* "Tall Pine" / "Heating & Air", never a lone "&" or "Air" */
.ui-rivals__table th:first-child { width: 33%; }   /* the search column at a third: Safari had put "Air" of "Tall Pine Heating & Air" on a line of its own */
.ui-rivals__table td { padding-inline: 0.3em; text-align: center; }
.ui-rivals__table td:first-child { white-space: normal; line-height: 1.25; }
.ui-rivals__table :is(th, td):nth-child(2) { background-color: var(--tint); }   /* your column */
.ui-rivals__table th:nth-child(2) { border-radius: 0.6em 0.6em 0 0; color: var(--anchor-deep); }
.ui-rivals__table .ui-spot { font-size: 0.92em; }
.ui p.ui-rivals__key { display: flex; flex-wrap: wrap; gap: 0.3em 0.9em; margin-top: 0.75em; color: var(--slate); font-size: max(0.6em, min(11px, 0.75em)); font-weight: 500; }
.ui-rivals__key i { display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.35em; border-radius: 9999px; vertical-align: -0.05em; }
.ui-rivals__key .is-top { background-color: #16a34a; }
.ui-rivals__key .is-near { background-color: var(--amber); }
.ui-rivals__key .is-far { background-color: #d92d20; }

/* ── Step 3: the plan for one page ── */
.ui-plan .ui-table td:nth-child(2) { color: var(--slate); font-weight: 500; }
.ui-plan .ui-table td { white-space: normal; }
.ui-plan .ui-table .ui-tag { font-size: 0.9em; }
.ui p.ui-plan__links { display: flex; align-items: center; gap: 0.4em; margin-top: 0.7em; color: var(--anchor-deep); font-size: max(0.72em, min(11px, 0.9em)); font-weight: 600; }
.ui-plan__links svg { flex: none; width: 1.15em; height: 1.15em; }

/* ── Row 1: the service pages, Home at the top and a page per service under it, wired down a spine ── */
.ui-map { --card: 3.9em; --wire: var(--chart); }
.ui p.ui-map__home { display: flex; align-items: center; justify-content: center; gap: 0.4em; width: max-content; margin-inline: auto; padding: 0.5em 1.1em; border-radius: 0.6em; background-color: var(--night); color: #fff; font-size: 0.8em; }
.ui-map__home svg { flex: none; width: 1.15em; height: 1.15em; }
.ui ul.ui-map__pages { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7em 2.6em; margin-top: 1.1em; }   /* ul. outranks .ui ul's margin reset */
.ui-map__pages::before { content: ""; position: absolute; top: -1.1em; bottom: calc(var(--card) / 2 - 0.05em); left: calc(50% - 0.05em); width: 0.1em; background-color: var(--wire); }
.ui-map__pages li { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0.35em; height: var(--card); padding: 0 0.75em; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; background-color: #fff; }
.ui-map__pages li::after { content: ""; position: absolute; top: calc(50% - 0.05em); width: 1.3em; height: 0.1em; background-color: var(--wire); }
.ui-map__pages li:nth-child(odd)::after { left: 100%; }
.ui-map__pages li:nth-child(even)::after { right: 100%; }
.ui p.ui-map__name { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; }
.ui-map__name b { min-width: 0; overflow: hidden; font-size: max(0.78em, min(11px, 0.975em)); text-overflow: ellipsis; white-space: nowrap; }
.ui p.ui-map__q { display: flex; align-items: center; gap: 0.35em; width: max-content; max-width: 100%; padding: 0.22em 0.55em; border-radius: 0.4em; background-color: var(--ui-fill); color: var(--slate); font-size: max(0.64em, min(11px, 0.8em)); font-weight: 500; }
.ui-map__q svg { flex: none; width: 1em; height: 1em; }
.ui-map__q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Row 2: a page check, what to fix by how much it matters, and the fix for the first. The fix sits beside the list, level
   with the row it fixes and joined to it by a short line; in a narrow box it drops in under that row ── */
.ui-audit__rows { display: grid; grid-template-columns: minmax(0, 1fr) 14em; align-items: start; gap: 0.4em 0.75em; }
.ui-audit__row { position: relative; grid-column: 1; display: flex; align-items: center; gap: 0.55em; padding: 0.55em 0.7em; border-left: 0.25em solid; border-radius: 0.2em 0.55em 0.55em 0.2em; font-size: max(0.74em, min(11px, 0.925em)); font-weight: 600; }
.ui-audit__row svg { flex: none; width: 1.2em; height: 1.2em; }
.ui-audit__row b { font-weight: 700; white-space: nowrap; }   /* a search stays whole: Safari had split "ac tune / up" */
.ui-audit__row.is-bad { border-color: #d92d20; background-color: #fef3f2; box-shadow: 0 0 0 0.09em #d92d20; }   /* the row the fix is for */
.ui-audit__row.is-bad::after { content: ""; position: absolute; top: calc(50% - 0.06em); left: 100%; width: 1.02em; height: 0.12em; background-color: #d92d20; }
.ui-audit__row.is-bad svg { color: #d92d20; }
.ui-audit__row.is-warn { border-color: var(--amber); background-color: #fffaeb; }
.ui-audit__row.is-warn svg { color: #b45309; }
.ui-audit__row.is-ok { border-color: #16a34a; background-color: var(--ui-fill); color: var(--slate); }
.ui-audit__row.is-ok svg { color: #15803d; }
.ui-fix { grid-column: 2; grid-row: 1 / span 5; overflow: hidden; border: 0.0625em solid #d92d20; border-radius: 0.7em; background-color: #fff; box-shadow: 0 0.5em 1.4em rgb(12 14 18 / 0.14); }
.ui p.ui-fix__head { padding: 0.6em 0.8em; font-size: max(0.78em, min(11px, 0.975em)); font-weight: 650; }
.ui-fix__body { padding: 0.7em 0.8em 0.8em; border-top: 0.0625em solid #b7e4c7; background-color: #ecfdf3; }
.ui p.ui-fix__title { margin-top: 0.3em; padding: 0.45em 0.6em; border: 0.0625em solid #b7e4c7; border-radius: 0.4em; background-color: #fff; font-size: max(0.7em, min(11px, 0.875em)); font-weight: 600; line-height: 1.3; }
.ui p.ui-fix__count { display: flex; align-items: center; gap: 0.5em; margin-top: 0.55em; color: #15803d; font-size: max(0.62em, min(11px, 0.775em)); font-weight: 600; white-space: nowrap; }
.ui-fix__meter { flex: 1; height: 0.5em; overflow: hidden; border-radius: 9999px; background-color: #d1fadf; }
.ui-fix__meter i { display: block; height: 100%; border-radius: 9999px; background-color: #16a34a; }

/* ── Row 3: the next article, checked before it goes out, and November's four ── */
.ui-article__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 0.9em; }
.ui-article__doc { padding: 0.85em; border: 0.0625em solid var(--ui-line); border-radius: 0.75em; }
.ui p.ui-article__title { margin: 0.25em 0 0.55em; font-size: 1.02em; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.ui-article__doc .ui-skel { width: 100%; }
.ui-article__doc .ui-skel--short { width: 62%; }
.ui-article__checks { display: grid; gap: 0.6em; }
.ui-article__checks li { display: flex; align-items: center; gap: 0.5em; font-size: max(0.74em, min(11px, 0.925em)); font-weight: 600; }
.ui-article__checks .ui-tick { font-size: 0.95em; }
.ui-article__month { margin-top: 0.9em; }
.ui-article__month ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45em; }
.ui-article__month li { display: flex; flex-direction: column; gap: 0.1em; padding: 0.5em 0.6em; border: 0.0625em solid var(--ui-line); border-radius: 0.6em; }
.ui-article__month b { font-size: max(0.74em, min(11px, 0.925em)); font-weight: 700; }
.ui-article__month li span { color: var(--slate); font-size: max(0.62em, min(11px, 0.775em)); font-weight: 500; }
.ui-article__month .is-done span { color: #15803d; font-weight: 600; }
.ui-article__month .is-now { border-color: var(--anchor); background-color: var(--tint); box-shadow: inset 0 0 0 0.0625em var(--anchor); }
.ui-article__month .is-now span { color: var(--anchor-deep); font-weight: 650; }

/* ── Row 4: website health ── */
.ui-health__body { display: grid; grid-template-columns: 9em minmax(0, 1fr); align-items: center; gap: 1.1em; }
.ui-health__gauge { position: relative; text-align: center; }
.ui-health__gauge .ui-gauge { width: 100%; }
.ui p.ui-health__score { position: absolute; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.ui-health__score b { font-size: 1.3em; font-weight: 700; letter-spacing: -0.02em; }
.ui-health__score span { color: var(--slate); font-size: max(0.6em, min(11px, 0.75em)); font-weight: 500; }
.ui-health__rows { display: grid; gap: 0.5em; }
.ui-health__rows > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2em 0.5em; padding-bottom: 0.5em; border-bottom: 0.0625em solid var(--ui-line); }
.ui-health__rows > li:last-child { padding-bottom: 0; border-bottom: 0; }
.ui-health__rows > li > span:first-child { color: var(--slate); font-size: max(0.72em, min(11px, 0.9em)); }
.ui-health__rows > li > b { display: flex; align-items: baseline; gap: 0.45em; font-size: 0.95em; font-weight: 700; font-variant-numeric: tabular-nums; }
.ui-health__rows > li > b small { color: #15803d; font-size: max(0.64em, min(11px, 0.8em)); font-weight: 650; }
/* Phone load time against Google's good mark: a bar from 0 to 4 s, filled to 2.1, the mark at 2.5 */
.ui-speed { flex: 0 0 100%; display: block; padding-top: 0.2em; }
.ui-speed__bar { position: relative; display: block; height: 0.45em; border-radius: 9999px; background-color: var(--ui-fill); }
.ui-speed__bar i { position: absolute; inset: 0 auto 0 0; width: 52.5%; border-radius: 9999px; background-color: #16a34a; }
.ui-speed__bar b { position: absolute; top: -0.3em; bottom: -0.3em; left: 62.5%; width: 0.12em; background-color: var(--night); }
.ui-speed__mark { display: block; margin-top: 0.45em; margin-left: calc(62.5% - 0.06em); color: var(--slate); font-size: max(0.58em, min(11px, 0.725em)); font-weight: 600; white-space: nowrap; transform: translateX(-50%); width: max-content; }
.ui-health__left { margin-top: 0.9em; }
.ui-health__left li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.15em 0.6em; padding-block: 0.35em; border-top: 0.0625em solid var(--ui-line); font-size: max(0.72em, min(11px, 0.9em)); }
.ui-health__left li:first-child { padding-top: 0; border-top: 0; }
.ui-health__left b { font-weight: 650; }
.ui-health__left li span { color: var(--slate); }

/* ── Row 5: Google's AI Overview, citing the business ── */
.ui p.ui-answer__head { display: flex; align-items: center; gap: 0.45em; margin-bottom: 0.8em; font-size: 0.86em; }
.ui-answer__head .ui-mark { width: 1.25em; height: 1.25em; }
.ui-answer__body { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: start; gap: 0.9em; }
.ui p.ui-answer__q { display: flex; align-items: center; gap: 0.5em; padding: 0.6em 0.85em; border-radius: 1.2em; background-color: var(--ui-fill); font-size: max(0.76em, min(11px, 0.95em)); font-weight: 600; }
.ui-answer__q svg { flex: none; width: 1.1em; height: 1.1em; color: var(--slate); }
.ui p.ui-answer__text { display: flex; gap: 0.6em; margin-top: 0.85em; padding-inline: 0.2em; }
.ui-answer__text svg { flex: none; width: 1.1em; height: 1.1em; color: var(--anchor); }
.ui-answer__text > span { flex: 1; }
.ui-answer__text .ui-skel { width: 100%; height: 0.5em; margin: 0.35em 0 0.55em; }
.ui-answer__text .ui-skel--short { width: 58%; }
.ui-answer__sources { display: grid; gap: 0.45em; }
.ui-answer__source { display: flex; align-items: center; gap: 0.55em; padding: 0.6em 0.65em; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; }
.ui-answer__site { display: grid; place-items: center; flex: none; width: 1.7em; height: 1.7em; border-radius: 0.45em; background-color: #c2410c; color: #fff; font-size: 0.8em; font-weight: 700; }
.ui-answer__source p { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 0.1em; }
.ui-answer__source p b { font-size: max(0.7em, min(11px, 0.875em)); }
.ui-answer__source p span { color: var(--anchor-deep); font-size: max(0.66em, min(11px, 0.825em)); font-weight: 500; }
.ui-answer__source .ui-tag { align-self: flex-start; }

/* ── Row 6: where each search stands, spots 1 to 20 from the top, page one shaded ── */
.ui p.ui-ladder__chips { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: 0.75em; }
.ui-ladder__chips span { padding: 0.28em 0.65em; border: 0.0625em solid var(--ui-line); border-radius: 9999px; color: var(--slate); font-size: max(0.66em, min(11px, 0.825em)); font-weight: 500; white-space: nowrap; }
.ui-ladder__chips b { color: var(--night); font-weight: 700; }
.ui-ladder__page { position: relative; padding: 0.35em 0.6em; border-radius: 0.65em; }
.ui-ladder__page.is-one { background-color: var(--tint); }
.ui-ladder__page.is-two { margin-top: 0.25em; }
.ui p.ui-ladder__label { position: absolute; top: 0.6em; right: 0.75em; color: var(--anchor-deep); font-size: max(0.62em, min(11px, 0.775em)); font-weight: 650; }
.ui-ladder__page.is-two .ui-ladder__label { top: 0.35em; color: var(--slate); }
.ui-ladder__page li { display: flex; align-items: center; gap: 0.55em; height: 1.6em; }
.ui-ladder__page li > b { flex: none; width: 1.5em; color: var(--slate); font-size: max(0.66em, min(11px, 0.825em)); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ui-ladder__page li.is-hit > b { color: var(--night); font-weight: 700; }
.ui-ladder__page li > span { flex: 1; min-width: 0; overflow: hidden; padding: 0.3em 0.6em; border-radius: 0.4em; background-color: #fff; font-size: max(0.72em, min(11px, 0.9em)); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 0.05em 0.2em rgb(12 14 18 / 0.08); }
.ui-ladder__page li > em { display: inline-flex; flex: none; align-items: center; gap: 0.15em; min-width: 4.4em; color: #166534; font-size: max(0.62em, min(11px, 0.775em)); font-style: normal; font-weight: 650; white-space: nowrap; }
.ui-ladder__page li > em svg { width: 1em; height: 1em; stroke-width: 3; }
.ui-ladder__page li > em.is-new { color: var(--anchor-deep); }
/* Page two, empty now: a short scale, 11 and 20 marked and a tick for each spot between */
.ui-ladder__page.is-two li { height: 0.62em; }
.ui-ladder__page.is-two li > b { color: var(--slate); font-size: max(0.56em, min(11px, 0.7em)); }
.ui-ladder__page.is-two li > i { width: 0.5em; height: 0.08em; margin-left: 0.55em; background-color: #c5cad3; }

/* ── Row 7: the October report, a page an owner reads on a phone ── */
.ui-report .ui-top { padding-bottom: 0.75em; border-bottom: 0.14em solid var(--night); }
.ui p.ui-report__h { margin-top: 0.85em; font-size: 0.8em; font-weight: 700; }
.ui ul.ui-report__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; margin-top: 0.55em; }
.ui-report__stats li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15em; padding: 0.75em; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; }
.ui-report__icon { display: grid; place-items: center; width: 1.8em; height: 1.8em; margin-bottom: 0.35em; border-radius: 0.5em; background-color: var(--tint); color: var(--anchor-deep); }
.ui-report__icon svg { width: 1em; height: 1em; }
.ui-report__stats li > b { font-size: 1.45em; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ui-report__stats li > span:not(.ui-report__icon) { color: var(--slate); font-size: max(0.66em, min(11px, 0.825em)); font-weight: 500; line-height: 1.3; }
.ui-report__stats li > em { margin-top: 0.4em; padding: 0.15em 0.55em; border-radius: 9999px; background-color: #dcfce7; color: #15803d; font-size: max(0.6em, min(11px, 0.75em)); font-style: normal; font-weight: 650; white-space: nowrap; }
.ui p.ui-report__line { margin-top: 0.6em; font-size: max(0.72em, min(11px, 0.9em)); line-height: 1.4; }
.ui-report__line b { font-weight: 700; }
.ui-report__h + .ui-report__stats + .ui-report__line { margin-top: 0.85em; }

/* The steps in a card under 340 px (phones, and the three side by side from 1024 to 1365 px): drawn 22 em wide so the words stay
   readable, the site check's gauge in a row of its own over the list */
@container (max-width: 339px) {
  .ui-check, .ui-rivals, .ui-plan { --w: 22; }
  .svc-shot--step > :is(.ui-check, .ui-rivals, .ui-plan) { min-height: 16.9em; }
  .ui-check__body { grid-template-columns: minmax(0, 1fr); gap: 0.6em; }
  .ui-check__gauge { display: flex; align-items: center; gap: 0.7em; padding-top: 0; text-align: left; }
  .ui-check__gauge .ui-gauge { flex: none; width: 5.4em; }
  .ui p.ui-check__score { position: static; align-items: flex-start; }
  .ui-check__score b { font-size: 1.3em; }
  .ui-check__score span { font-size: max(0.66em, min(11px, 0.825em)); }
  .ui-check__list { padding: 0; border: 0; }
  .ui p.ui-rivals__key { font-size: max(0.64em, min(11px, 0.8em)); }
}

/* The header's card under 440 px (phones, and from 1024 to about 1240 px): 22 em wide, the chart over the searches */
@container (max-width: 439px) {
  .ui-clicks { --w: 22; }
  .ui-clicks__body { grid-template-columns: minmax(0, 1fr); }
  .ui-clicks .ui-kpi .ui-label { white-space: normal; }
  .ui-clicks .ui-kpi .ui-value { margin-top: auto; font-size: 1.2em; }   /* the numbers in line however many lines their labels take */
}
/* The header's box from 440 to 559 px (screens 1133 to 1439 px wide): the wide drawing with its small labels at their floor, so in
   the searches' table a long search and "Avg. spot" take two lines rather than run out of the card */
@container (min-width: 440px) and (max-width: 559px) {
  .ui-clicks__table th { vertical-align: bottom; white-space: normal; }
  .ui-clicks__table td:first-child { white-space: normal; }
}

/* A narrow box (a phone, and the rows from 1024 to 1249 px): the wide pictures 22 em wide, their parts stacked */
@container (max-width: 479px) {
  .ui-map, .ui-audit, .ui-article, .ui-health, .ui-answer, .ui-report, .ui-ladder { --w: 22; }
  .ui-article__body, .ui-answer__body, .ui-health__body { grid-template-columns: minmax(0, 1fr); }
  /* The map: one column, the spine down the left, a branch to each page */
  .ui p.ui-map__home { margin-inline: 0; }
  .ui ul.ui-map__pages { grid-template-columns: minmax(0, 1fr); padding-left: 1.7em; }
  .ui-map__pages::before { left: 0.7em; }
  .ui-map__pages li:nth-child(n)::after { right: 100%; left: auto; width: 1em; }
  /* The page check: the fix under the row it fixes */
  .ui-audit__rows { grid-template-columns: minmax(0, 1fr); }
  .ui-fix { grid-column: 1; grid-row: auto; }
  .ui-audit__row.is-bad::after { top: 100%; left: calc(50% - 0.06em); width: 0.12em; height: 0.55em; }
  .ui-article__month ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Website health: the gauge over the rows */
  .ui-health__body { gap: 0.9em; }
  .ui-health__gauge { width: 9em; margin-inline: auto; }
  /* The report: each number in a row, its icon, the number, then what it counts and where it stood */
  .ui ul.ui-report__stats { grid-template-columns: minmax(0, 1fr); }
  .ui-report__stats li { display: grid; grid-template-columns: auto 3.9em minmax(0, 1fr); align-items: center; gap: 0 0.6em; }
  .ui-report__icon { grid-row: 1 / span 2; margin-bottom: 0; }
  .ui-report__stats li > b { grid-row: 1 / span 2; }
  .ui-report__stats li > span:not(.ui-report__icon) { grid-column: 3; align-self: end; }
  .ui-report__stats li > em { grid-column: 3; justify-self: start; align-self: start; margin-top: 0.25em; }
}

/* The narrowest boxes (a 320 px phone, and the steps from 1024 to 1249 px): the smallest labels a size up, so none is under about 6.5 px */
@container (max-width: 259px) {
  .ui-table th, .ui-before { font-size: max(0.66em, min(11px, 0.825em)); }
  .ui-chart__y span, .ui p.ui-chart__x, .ui-ladder__page.is-two li > b { font-size: max(0.62em, min(11px, 0.775em)); }
  .ui-speed__mark, .ui-report__stats li > em { font-size: max(0.64em, min(11px, 0.8em)); }
  .ui-example { font-size: max(0.66em, min(11px, 0.825em)); }
  .ui-tag { font-size: max(0.68em, min(11px, 0.85em)); }
  .ui-health__score span, .ui p.ui-rivals__key, .ui-health__rows > li > b small { font-size: max(0.68em, min(11px, 0.85em)); }
}

/* ── The SEO page's one touch outside the pictures ── */
/* The quote's logo: the quote's box is an 88 px square, made for a square mark like Spice on a Slice's. Fieldshare's is a wordmark
   5.5 times as wide as it is tall, which that box shrank to 16 px; here it is set by its height, as wide as it needs. It moves to
   service-page.css as a logo-size class from the quote kind once #2's quote.py change is merged */
.svc-quote__logo[src$="/fieldshare.svg"] { width: auto; height: 28px; }
@media (min-width: 768px) { .svc-quote__logo[src$="/fieldshare.svg"] { height: 32px; } }

/* ══ The AI SEO page's pictures (/services/seo/ai; pictures/seo.py, its last section): Kestrel's AI answer check and what follows
   it. Same rules as the rest of the family: sizes in em, --w here and never inline, the wide ones 22 em wide and stacked in a box
   under 480 px, the steps in a card under 340 px and the header's card under 440 px. ══ */
.ui-aicheck { --w: 30; }
.ui-ask, .ui-source, .ui-again { --w: 26; }
.ui-crawl, .ui-agree { --w: 34; }   /* row 2's .ui-answer and row 4's .ui-report have theirs above */

/* An answer's mark: named (a green dot), cited without the name (an amber ring), not found (a small gray dot) */
.ui-res { display: inline-block; flex: none; width: 0.95em; height: 0.95em; border-radius: 9999px; vertical-align: middle; }
.ui-res.is-named { background-color: #16a34a; }
.ui-res.is-cited { box-shadow: inset 0 0 0 0.2em #d97706; }
.ui-res.is-none { width: 0.5em; height: 0.5em; background-color: #c5cad3; }
.ui-tag.is-hit { background-color: var(--tint); color: var(--anchor-deep); }
.ui-tag.is-half { background-color: #fef3c7; color: #a15c07; }
.ui-tag.is-blocked { background-color: #fee4e2; color: #b42318; }
/* The words an answer took from a page, or a page adds: a soft highlight that follows the line breaks */
.ui-source__said mark, .ui-agree__add mark { padding: 0.08em 0.2em; border-radius: 0.25em; background-color: #fef08a; color: var(--night); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ── The header: five questions against four tools ── */
.ui-aicheck__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ui-aicheck__grid :is(th, td) { padding: 0; }
.ui-aicheck__grid thead th { padding: 0 0.15em 0.55em; color: var(--slate); font-size: max(0.62em, min(11px, 0.775em)); font-weight: 600; line-height: 1.2; text-align: center; vertical-align: bottom; white-space: nowrap; }
.ui-aicheck__grid thead th:first-child { width: 36%; padding-left: 0; text-align: left; }
.ui-aicheck__grid thead .ui-mark { display: block; width: 2.15em; height: 2.15em; margin: 0 auto 0.5em; }   /* 2.15 of the head's 0.62em: about 1.35em */
.ui-aicheck__grid tbody th { padding-block: 0.62em; border-top: 0.0875em solid var(--ui-line); font-size: max(0.74em, min(11px, 0.925em)); font-weight: 600; line-height: 1.25; text-align: left; white-space: nowrap; }
.ui-aicheck__grid td { border-top: 0.0625em solid var(--ui-line); text-align: center; vertical-align: middle; }
.ui p.ui-aicheck__key { display: flex; flex-wrap: wrap; gap: 0.35em 1.1em; margin-top: 0.75em; color: var(--slate); font-size: max(0.64em, min(11px, 0.8em)); font-weight: 500; }
.ui-aicheck__key span { display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap; }
.ui-aicheck__key .ui-res { width: 1.35em; height: 1.35em; }
.ui-aicheck__key .ui-res.is-cited { box-shadow: inset 0 0 0 0.3em #d97706; }
.ui-aicheck__key .ui-res.is-none { width: 0.75em; height: 0.75em; margin-inline: 0.3em; }

/* ── The steps: on this page too the box follows the picture, and the three share one height ── */
.svc-shot--step:has(> :is(.ui-ask, .ui-source, .ui-again)) { height: auto; }
.svc-shot--step > :is(.ui-ask, .ui-source, .ui-again) { min-height: 15.85em; margin-bottom: -1em; }   /* the tallest, 15.1em, and a line of white under it */

/* Step 1: a customer's question, then each tool's verdict */
.ui p.ui-ask__q { width: max-content; max-width: 100%; margin-left: auto; padding: 0.55em 0.9em; border-radius: 1.1em 1.1em 0.3em 1.1em; background-color: var(--night); color: #fff; font-size: 0.8em; font-weight: 600; }
.ui ul.ui-ask__tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4em; margin-top: 0.9em; }
.ui-ask__tools li { display: flex; flex-direction: column; align-items: center; gap: 0.4em; padding: 0.65em 0.15em 0.55em; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; }
.ui-ask__tools .ui-mark { width: 1.45em; height: 1.45em; }
.ui-ask__tools li > span { color: var(--slate); font-size: max(0.6em, min(11px, 0.75em)); font-weight: 600; white-space: nowrap; }
.ui-ask__verdict { display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 9999px; background-color: var(--ui-fill); color: var(--slate); }
.ui-ask__verdict svg { width: 0.8em; height: 0.8em; stroke-width: 3; }
.ui-ask__tools .is-yes { border-color: #16a34a; background-color: #f0fdf4; }
.ui-ask__tools .is-yes .ui-ask__verdict { background-color: #16a34a; color: #fff; }
.ui p.ui-ask__total { margin-top: 0.85em; font-size: max(0.78em, min(11px, 0.975em)); font-weight: 650; }

/* Step 2: the cited page, opened */
.ui-source__page { padding: 0.8em 0.85em; border: 0.0625em solid var(--ui-line); border-radius: 0.75em; }
.ui p.ui-source__first { display: flex; align-items: center; gap: 0.5em; }
.ui-source__first .ui-skel { flex: 1; height: 0.55em; margin-top: 0; }
.ui-skel.is-lit { background-color: #a9c6f8; }
.ui-source__page > .ui-skel { width: 100%; }
.ui-source__page > .ui-skel--short { width: 64%; }
.ui p.ui-source__said { margin-top: 0.75em; font-size: max(0.74em, min(11px, 0.925em)); font-weight: 600; line-height: 1.5; }
.ui-source__said + .ui-tag { margin: 0.35em 0 0.2em; }

/* Step 3: the same question asked again, each saved answer with its day */
.ui p.ui-again__q { display: flex; align-items: center; gap: 0.5em; padding: 0.6em 0.8em; border-radius: 0.8em; background-color: var(--ui-fill); font-size: max(0.78em, min(11px, 0.975em)); font-weight: 600; }
.ui-again__q .ui-mark { width: 1.35em; height: 1.35em; }
.ui ol.ui-again__runs { display: grid; gap: 0.45em; margin-top: 0.8em; }
.ui-again__runs li { display: flex; align-items: center; gap: 0.65em; padding: 0.6em 0.75em; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; }
.ui-again__runs li.is-now { border-color: #16a34a; background-color: #f0fdf4; }
.ui-again__runs p { display: flex; flex-direction: column; gap: 0.1em; }
.ui-again__runs b { font-size: max(0.74em, min(11px, 0.925em)); font-weight: 700; }
.ui-again__runs span { color: var(--slate); font-size: max(0.66em, min(11px, 0.825em)); font-weight: 600; }
.ui-again__runs .is-now span { color: #15803d; }

/* ── Row 1: the crawler check ── */
.ui-crawl__bots { display: grid; gap: 0.45em; }
.ui-crawl__bots li { display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0.75em; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; }
.ui-crawl__bots li.is-blocked { border-color: #fecdca; background-color: #fffbfa; }
.ui-crawl__bots .ui-mark { width: 1.35em; height: 1.35em; }
.ui-crawl__bots p { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 0.05em; }
.ui-crawl__bots b { font-size: max(0.78em, min(11px, 0.975em)); font-weight: 650; }
.ui-crawl__bots p span { color: var(--slate); font-size: max(0.64em, min(11px, 0.8em)); }
.ui-crawl__html { margin-top: 0.8em; }
.ui p.ui-crawl__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2em 0.6em; font-size: max(0.78em, min(11px, 0.975em)); }
.ui-crawl__head span { color: var(--slate); font-weight: 500; }
.ui-crawl__head b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ui-crawl__bar { display: block; height: 0.5em; margin-top: 0.55em; overflow: hidden; border-radius: 9999px; background-color: var(--ui-fill); }
.ui-crawl__bar i { display: block; width: 94.3%; height: 100%; border-radius: 9999px; background-color: #16a34a; }   /* 50 of 53 */

/* ── Row 2: an answer that cites Kestrel and names a competitor ── */
.ui-named .ui-answer__head span { color: var(--slate); font-weight: 500; }
.ui-named .ui-answer__text > span > .ui-named__line { display: flex; align-items: center; gap: 0.4em; margin: 0.1em 0 0.3em; }
.ui-named__line b { flex: none; padding: 0.15em 0.45em; border-radius: 0.3em; background-color: #fef08a; font-size: max(0.74em, min(11px, 0.925em)); font-weight: 700; white-space: nowrap; }
.ui-named .ui-answer__text .ui-named__line .ui-skel { flex: 1; margin: 0; }
.ui-answer__site.is-rival { background-color: #0f766e; }
.ui-named .ui-answer__source p .ui-tag { align-self: flex-start; margin-top: 0.35em; }   /* under the page's name, so the name keeps its line */

/* ── Row 3: the AI Overview's claim, and the page that agrees with it and adds its own numbers ── */
.ui-agree { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 0.8em; }
.ui-agree__card { min-width: 0; padding: 0.85em; border: 0.0625em solid var(--ui-line); border-radius: 0.75em; }
.ui-agree__aio { border-color: transparent; background-color: var(--ui-fill); }
.ui p.ui-agree__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15em 0.45em; margin-bottom: 0.7em; font-size: max(0.78em, min(11px, 0.975em)); }
.ui-agree__head .ui-mark { width: 1.25em; height: 1.25em; }
.ui-agree__head b { font-weight: 650; }
.ui-agree__head span { flex-basis: 100%; color: var(--slate); font-size: 0.86em; font-weight: 500; }
.ui p.ui-agree__claim { font-size: 0.86em; font-weight: 600; line-height: 1.4; }
.ui p.ui-agree__line { display: flex; align-items: center; gap: 0.5em; }
.ui-agree__line .ui-skel { flex: 1; margin-top: 0; }
.ui p.ui-agree__add { margin-top: 0.8em; font-size: max(0.74em, min(11px, 0.925em)); font-weight: 600; line-height: 1.5; }
.ui-agree__add + .ui-tag { margin-top: 0.35em; }

/* ── Row 4: the AI part of the report, each count with the tool it comes from ── */
.ui-aireport .ui-report__icon .ui-mark { width: 1.05em; height: 1.05em; }
.ui-aireport .ui-report__stats li > small { margin-top: auto; padding-top: 0.6em; color: var(--slate); font-size: max(0.6em, min(11px, 0.75em)); font-weight: 600; white-space: nowrap; }   /* at the card's foot, level across the three */

@container (max-width: 439px) {
  .ui-aicheck { --w: 23; }
  .ui-aicheck__grid tbody th { white-space: normal; }
}
@container (max-width: 339px) {
  .ui-ask, .ui-source, .ui-again { --w: 22; }
  .svc-shot--step > :is(.ui-ask, .ui-source, .ui-again) { min-height: 17.1em; }   /* 16.35em at most here: step 2's title takes two lines */
}
@container (max-width: 259px) {
  .ui-ask__tools li > span, .ui-aireport .ui-report__stats li > small { font-size: max(0.68em, min(11px, 0.85em)); }   /* a size up, as the family's smallest labels above */
}
@container (max-width: 479px) {
  .ui-crawl, .ui-agree { --w: 22; }
  .ui-agree { grid-template-columns: minmax(0, 1fr); }
  .ui-aireport .ui-report__stats li > small { grid-column: 3; justify-self: start; align-self: start; margin-top: 0.25em; padding-top: 0; }
}

/* The calm pass (2026-11-17): the SEO page's pictures hold fewer rows, so they draw larger; no label under 12 px on a desktop */
.svc-calm .ui-check { --w: 18.5; }
.svc-calm .ui-plan { --w: 17; }
.svc-calm .ui-rivals { --w: 19; }
.svc-calm .ui-article, .svc-calm .ui-health, .svc-calm .ui-answer, .svc-calm .ui-report { --w: 28; }
.svc-calm .ui-map { --w: 31.5; }
.svc-calm .ui-audit { --w: 31; }
.svc-calm .ui-ladder { --w: 20; }
@media (max-width: 767px) {
  .svc-calm .ui-check, .svc-calm .ui-plan, .svc-calm .ui-rivals { --w: 16; }
  .svc-calm .ui-map, .svc-calm .ui-audit, .svc-calm .ui-article, .svc-calm .ui-health, .svc-calm .ui-answer, .svc-calm .ui-report { --w: 17.5; }
  .svc-calm .ui-ladder { --w: 20; }   /* its longest search fits whole */
}

/* The calm pass on AI SEO (2026-11-17): its pictures draw larger */
.svc-calm :is(.ui-ask, .ui-source, .ui-again) { --w: 19; }
.svc-calm :is(.ui-crawl, .ui-agree) { --w: 28; }
@media (max-width: 767px) {
  .svc-calm :is(.ui-ask, .ui-source, .ui-again) { --w: 17; }
  .svc-calm :is(.ui-crawl, .ui-agree) { --w: 17.5; }
}
