/*
  A service page with its own copy (docs/pages/make-service-pages.py builds it), laid out after Semrush's local SEO page
  (semrush.com/features/local-seo, Rahul's pick, 2026-10-27): the dark header with a profile insights picture, the clients'
  logos, three steps on tinted cards, one client's words, the parts of the work (a picture panel and the words, sides
  swapping), where people find you, the other services, more clients' words, case studies (work.css's
  cards), articles, questions beside their title, and a dark band to book a call.
  The pictures (.ui, inside .svc-shot) are product screens drawn in HTML and SVG. Every size in them is in em, and their
  font size follows the width of the box they sit in (100cqw divided by --w, the picture's width in em), so a picture
  shrinks as a whole, from a 2560 px screen down to a 320 px phone, and never wraps or reflows; under 8 px a line it stops
  shrinking and its right edge is cut off instead.
  Load after blog.css (the tokens, .blog-section, .blog-container, .blog-button), connect.css (the calendar dialog) and
  work.css (the case study cards). Breakpoints are the site's: 768, 1024 and 1250 px. Motion: the buttons' and cards' press and the
  questions' plus turning, transform and color only, under 300 ms; hover only for a mouse.
*/
.service-page {
  --mist: #f5f5f7; --tint: #eaf0fd; --tint-deep: #dde7fc; --panel: #f0f4fa; --ui-line: #e6e9ef; --ui-fill: #f2f4f7;
  --good: #15803d; --bad: #b42318; --chart: #3b82f6; --amber: #f59e0b;
}

/* ── Dark header: the words, then the picture (beside them from 1024 px) ── */
.svc-hero { padding-top: 112px; padding-bottom: 56px; }
@media (min-width: 768px) { .svc-hero { padding-top: 140px; padding-bottom: 72px; } }
@media (min-width: 1250px) { .svc-hero { padding-top: 160px; padding-bottom: 96px; } }
.svc-hero__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .svc-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 56px; } }
/* From 1440 px the two halves are equal, so the picture can be about as wide as Semrush's hero card (636 px at 1598; Rahul,
   2026-10-28: "make it a little wider like Semrush's hero image") while the words keep 650 px or more (narrower, they wrap to a
   fourth line) */
@media (min-width: 1440px) { .svc-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.svc-crumbs { margin-bottom: 24px; color: var(--muted); }
.svc-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
/* The slash leads each crumb after the first and travels with it, so a trail that wraps (the Bakersfield pages' long names at 320 to 430 px)
   never leaves one hanging at the end of a line (the review of 2026-11-13; it closed the item before until then) */
.svc-crumbs li:not(:first-child)::before { content: "/"; margin-right: 10px; opacity: 0.6; }
/* A 44 px tap target without a taller trail: padding that a negative margin takes back */
.svc-crumbs a { display: inline-flex; align-items: center; min-height: 24px; padding-block: 10px; margin-block: -10px; color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* The h1 is the big line alone, with no eyebrow over it (Rahul, 2026-10-27: "remove these 'eye brows'"); the steps' titles too */
.svc-hero__title { max-width: 12em; color: var(--fg); text-wrap: balance; }
/* The narrowest phones: the h1 at 30 px, so a long service name does not take the first screen */
@media (max-width: 339.98px) { .svc-hero__title { font-size: 1.875rem; } }
.svc-hero__intro { max-width: 34em; margin-top: 20px; color: var(--muted); }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
/* An optional note under the buttons (sections/header.py's note, such as what follows the free call): quieter, as wide as the lead */
.svc-hero__note { max-width: 34em; margin-top: 20px; color: var(--muted); }

/* The phone number: a quiet pill beside the white one */
.svc-ghost {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 9999px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); color: #fff;
  transition: scale 160ms var(--ease-out), background-color 150ms var(--ease-out);
}
.svc-ghost svg { width: 18px; height: 18px; }
.svc-ghost:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .svc-ghost:hover { background-color: rgb(255 255 255 / 0.08); } }
.svc-hero :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 1024px) { .svc-hero__grid > .svc-shot--hero { justify-self: end; max-width: 660px; } }

/* ── Light sections: a centered title over the content, white space between them ── */
.svc-section { padding-block: 64px; scroll-margin-top: -16px; }
@media (min-width: 768px) { .svc-section { padding-block: 88px; } }
@media (min-width: 1250px) { .svc-section { padding-block: 112px; } }
.svc-section + .svc-section { padding-top: 0; }
.svc-title { max-width: 17em; margin: 0 auto 40px; color: var(--night); text-align: center; text-wrap: balance; }
@media (min-width: 768px) { .svc-title { margin-bottom: 56px; } }

/* ── The clients' logos, quiet and gray, under the header: one row drifting left and faded at both ends, as the home page's
   reviews (marquee.js copies the set and starts it). Without scripts, or with reduced motion, they wrap into rows and stay put.
   No logo may show twice at once: a logo's copy sits one set away, so a set (the ten logos and ten gaps, about 1,850 px from
   768 px, 1,290 on a phone) must be at least the row plus one logo. So the row is never wider than 1,200 px (a 2560 screen's
   column is 2,176). Each logo's height follows its shape (see CLIENT_LOGOS), a fifth smaller on phones. ── */
.svc-logos { --gap: 32px; --dur: 55s; padding-block: 40px 0; }
@media (min-width: 768px) { .svc-logos { --gap: 64px; --dur: 70s; } }
.svc-logos__row { position: relative; }
.svc-logos__list { --s: 0.8; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px; max-width: 1080px; margin-inline: auto; }
@media (min-width: 768px) { .svc-logos__list { --s: 1; gap: 32px 52px; } }
.svc-logos__list[aria-hidden="true"] { display: none; }
[data-marquee="on"] .svc-logos__row {
  display: flex; gap: var(--gap); max-width: 1200px; margin-inline: auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
[data-marquee="on"] .svc-logos__list { flex: none; flex-wrap: nowrap; justify-content: flex-start; gap: var(--gap); max-width: none; margin: 0; padding-block: 6px; animation: svc-logos-run var(--dur) linear infinite; }
[data-marquee="on"] .svc-logos__list[aria-hidden="true"] { display: flex; }
@keyframes svc-logos-run { to { transform: translateX(calc(-100% - var(--gap))); } }
/* It stops under a mouse, under a held finger and while the keyboard is in it. No pause button (Rahul, 2026-10-27: "remove
   from all marquee") */
@media (hover: hover) and (pointer: fine) {
  .svc-logos__row:hover .svc-logos__list { animation-play-state: paused; }
  [data-marquee="on"] .svc-logos__row { cursor: grab; }
}
[data-marquee="on"] .svc-logos__row[data-dragging] { cursor: grabbing; }
.svc-logos__row[data-held] .svc-logos__list, .svc-logos__row:has(:focus-visible) .svc-logos__list { animation-play-state: paused; }
.svc-logos__list img { width: auto; height: calc(30px * var(--s)); max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: 0.75; }
.svc-logos__list img.is-slim { height: calc(21px * var(--s)); }
.svc-logos__list img.is-mid { height: calc(44px * var(--s)); }
.svc-logos__list img.is-tall { height: calc(64px * var(--s)); }
.svc-logos__list img.is-knockout { height: calc(36px * var(--s)); filter: brightness(0); opacity: 0.6; }
/* A strip that stays still (logos.py's svc-logos--still, under eight logos): two to a row on a phone and three from 600 px, each
   row centered; from 900 px one row across the whole content width, one equal column a logo (--n, the count, set by logos.py), each
   logo centered in its column, so any count spreads evenly over the page (Rahul, 2026-11-17: "regardless of the number of logos,
   the spacing between them fits the width of the page") */
.svc-logos--still .svc-logos__list { gap: 28px 16px; }
.svc-logos--still .svc-logos__list > li { display: flex; flex: 0 0 calc((100% - 16px) / 2); justify-content: center; min-width: 0; }
.svc-logos--still .svc-logos__list img { max-width: 100%; }
@media (min-width: 600px) { .svc-logos--still .svc-logos__list > li { flex-basis: calc((100% - 32px) / 3); } }
@media (min-width: 900px) {
  .svc-logos--still .svc-logos__list { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0 32px; max-width: none; }
  .svc-logos--still .svc-logos__list > li { flex: none; }
}
.svc-logos + .svc-section { padding-top: 64px; }
@media (min-width: 768px) { .svc-logos + .svc-section { padding-top: 88px; } }

/* ── Three steps: tinted cards, each picture at the bottom, cut off by the card's edge ── */
.svc-steps { display: grid; gap: 16px; }
@media (min-width: 1024px) { .svc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-step { display: flex; flex-direction: column; min-width: 0; padding: 28px 24px 0; overflow: hidden; border-radius: 24px; background-color: var(--tint); }
.svc-step__title { color: var(--night); text-wrap: balance; }
.svc-step__text { max-width: 32em; margin-top: 8px; color: var(--slate); }
.svc-shot--step { height: 230px; margin-top: auto; padding-top: 24px; overflow: hidden; }
.svc-shot--step > .ui { min-height: calc(100% + 1.5em); border-bottom-right-radius: 0; border-bottom-left-radius: 0; }

/* ── One client's words, on a tinted card ── */
.svc-quote { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 960px; margin-inline: auto; padding: 48px 24px; border-radius: 28px; background-color: var(--tint); text-align: center; }
@media (min-width: 768px) { .svc-quote { padding: 72px 64px; } }
.svc-quote__logo { width: 88px; height: 88px; object-fit: contain; }
.svc-quote__text { max-width: 24em; color: var(--night); text-wrap: balance; }
.svc-quote__who { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; }
.svc-quote__name { color: var(--night); font-weight: 600; }
.svc-quote__role { color: var(--slate); }

/* ── The parts of the work: a panel with the picture, the words beside it, sides swapping from 1024 px ── */
.svc-flow { display: grid; gap: 72px; }
@media (min-width: 1024px) { .svc-flow { gap: 112px; } }
/* An optional paragraph between the flow's title and its first row (flow.py's intro: the AI receptionist's three levels), tucked up under the title */
.svc-flow__intro { max-width: 40em; margin: -16px auto 56px; color: var(--slate); text-align: center; text-wrap: pretty; }
@media (min-width: 1024px) { .svc-flow__intro { margin-bottom: 72px; } }
.svc-row { display: grid; gap: 28px; scroll-margin-top: 16px; }
@media (min-width: 1024px) {
  .svc-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 64px; }
  .svc-row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .svc-row:nth-child(even) > .svc-row__panel { order: 2; }
}
.svc-row__panel { display: grid; place-items: center; min-width: 0; padding: clamp(28px, 8%, 80px) clamp(16px, 7%, 72px); border-radius: 28px; background-color: var(--panel); }
.svc-row__title { color: var(--night); text-wrap: balance; }
.svc-row__line { max-width: 26em; margin-top: 14px; color: var(--slate); }
/* A row that sends the reader to several pages (sections/flow.py takes a list of links): the links stack, one under the other */
.svc-row__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
.svc-row__links .svc-outline { height: auto; min-height: 48px; margin-top: 0; padding-block: 12px; }
/* A row's booking button: the filled action blue every booking button on a light ground has (blog.css's .blog-button), spaced as the outline */
.svc-row__book { margin-top: 28px; }
.svc-outline {
  display: inline-flex; align-items: center; height: 48px; margin-top: 28px; padding: 0 24px; border-radius: 9999px;
  box-shadow: inset 0 0 0 1.5px var(--night); color: var(--night);
  transition: scale 160ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.svc-outline:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .svc-outline:hover { background-color: var(--night); color: #fff; } }

/* ── Where people find you: the platforms' marks over their names, hairlines between; three a row (two from 768 px), and a
   short last row centered under the full ones (Rahul, 2026-10-27: "center these two") ── */
.svc-where { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 32px; }
.svc-where li { display: flex; flex: 0 0 100%; flex-direction: column; gap: 16px; min-width: 0; padding: 24px 0 36px; border-top: 1px solid var(--hairline); }
@media (min-width: 768px) { .svc-where li { flex-basis: calc((100% - 32px) / 2); } }
@media (min-width: 1024px) { .svc-where li { flex-basis: calc((100% - 64px) / 3); } }
.svc-where__marks { display: flex; align-items: center; gap: 12px; height: 30px; color: var(--night); }
.svc-where__marks svg { width: 30px; height: 30px; }
.svc-where__marks svg[stroke] { stroke-width: 1.75; }
.svc-where__name { max-width: 15em; color: var(--night); text-wrap: balance; }

/* ── The other services: one row of tinted cards that scrolls sideways, with a round arrow in each corner and Previous and Next above the row
   (related.js; Rahul, 2026-10-28: "put them in one row with arrow to move", then "Can we use the actual service card images on the
   individual service page"). The row is a plain scroll-snap scroller, so a swipe, the wheel and the keyboard work without the script; it runs
   to the edge of the screen but starts where the page content starts (.blog-bleed, as the blog's rows do). Each card has its service's own card
   picture on top, whole, in a slot of the picture's own ratio, so nothing is cropped. ── */
.svc-tools__head { display: grid; margin-bottom: 40px; }
.svc-tools__head > .svc-title { margin-bottom: 0; }
.svc-tools__bar { display: flex; justify-self: end; gap: 12px; margin: 16px 0 -24px; }   /* under the title, tucked into the gap above the row */
.svc-tools__bar[hidden] { display: none; }
@media (min-width: 1024px) {
  .svc-tools__head { grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: end; margin-bottom: 56px; }   /* the title stays centered, the arrows sit at the right end */
  .svc-tools__head > .svc-title { grid-column: 2; }
  .svc-tools__bar { grid-column: 3; margin: 0; }
}
.svc-tools__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9999px; box-shadow: inset 0 0 0 1.5px var(--night); color: var(--night); transition: opacity 150ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out), scale 160ms var(--ease-out); }
.svc-tools__arrow svg { width: 20px; height: 20px; }
.svc-tools__arrow[aria-disabled="true"] { opacity: 0.25; cursor: default; }
.svc-tools__arrow:not([aria-disabled="true"]):active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .svc-tools__arrow:not([aria-disabled="true"]):hover { background-color: var(--night); color: #fff; } }
/* The padding and the matching negative margin leave room for a card's focus ring (the blog's, 2px out and 2px thick), which the scroller
   would clip; with scripts off the scrollbar stays, since nothing else shows that the row moves */
.svc-tools { display: flex; gap: 16px; margin-block: -6px; padding-block: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
.js .svc-tools { scrollbar-width: none; }
.js .svc-tools::-webkit-scrollbar { display: none; }
.svc-tools > li { display: flex; flex: 0 0 min(320px, calc(100vw - 88px)); scroll-snap-align: start; }
@media (min-width: 768px) { .svc-tools > li { flex-basis: 320px; } }
@media (min-width: 1250px) { .svc-tools > li { flex-basis: 338px; } }
.svc-tool { position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 12px 12px 76px; border-radius: 20px; background-color: var(--panel); color: var(--night); transition: background-color 150ms var(--ease-out), scale 160ms var(--ease-out); }
/* The whole card is the link, so under a finger it presses in a little as the buttons do (not under a mouse, which has the hover fill: the card
   would shrink away from the pointer and a click at its very edge would land outside it) */
@media (hover: none), (pointer: coarse) { .svc-tool:active { scale: 0.97; } }
.svc-tool__visual { display: block; aspect-ratio: 2752 / 1536; overflow: hidden; border-radius: 12px; background-color: var(--ui-line); }   /* the gray shows until the picture is in */
.svc-tool__visual picture { display: block; width: 100%; }   /* a width of its own: a lazy picture that shrinks to its content has none yet, so it would stay 0 px wide and never load */
.svc-tool__visual img { display: block; width: 100%; height: auto; }
.svc-tool__name { margin: 20px 12px 0; color: var(--night); }
.svc-tool__pitch { margin: 8px 12px 0; color: var(--slate); text-wrap: pretty; }
.svc-tool__go { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px; box-shadow: inset 0 0 0 1.5px var(--night); transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.svc-tool__go svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .svc-tool:hover { background-color: var(--tint-deep); }
  .svc-tool:hover .svc-tool__go { background-color: var(--night); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .svc-tools__arrow { transition: opacity 150ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out); } .svc-tools__arrow:not([aria-disabled="true"]):active { scale: 1; } }
/* Under the row, one link to the services page (sections/tools.py), centered under the title; a 44 px tall target */
.svc-tools__all { margin-top: 24px; margin-bottom: 0; text-align: center; }
.svc-tools__all a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── More clients' words: white cards, a quote mark on top ── */
.svc-says { display: grid; gap: 16px; }
@media (min-width: 768px) { .svc-says { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svc-says { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-say { display: flex; flex-direction: column; height: 100%; padding: 28px; border: 1px solid var(--hairline); border-radius: 20px; background-color: #fff; }
.svc-say__mark { width: 28px; height: 28px; color: var(--anchor); }
.svc-say__mark svg { width: 100%; height: 100%; }
.svc-say__text { flex: 1; margin-top: 16px; color: var(--night); }
.svc-say__who { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; color: var(--night); }
.svc-say__who .t-small { color: var(--slate); }

/* ── Case studies: work.css's cards ── */
.service-page main .work-card__link:focus-visible { outline: none; }
.service-page main .work-card__link:focus-visible::after { outline: 2px solid var(--anchor); outline-offset: 4px; }
/* Two case studies in work.css's grid of three: from 1250 px, two cards of the usual width, centered under the title */
@media (min-width: 1250px) { .svc-cases:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, calc((100% - 48px) / 3)); justify-content: center; } }
/* One case study: a column wide, centered under the title, not at the left of a row built for two or three (Custom builds shows Anchor Safety's alone) */
@media (min-width: 768px) { .svc-cases:has(> li:only-child) { grid-template-columns: calc((100% - 24px) / 2); justify-content: center; } }
@media (min-width: 1250px) { .svc-cases:has(> li:only-child) { grid-template-columns: calc((100% - 48px) / 3); justify-content: center; } }
/* "Results vary by business." under the cards (sections/cases.py; work.css's .work-vary), centered as the cards and the title are */
.svc-cases + .work-vary { margin-inline: auto; text-align: center; }

/* ── Articles: an icon and the title, hairlines between ── */
.svc-reads { display: grid; column-gap: 32px; }
@media (min-width: 768px) { .svc-reads { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-read { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 24px 0 32px; border-top: 1px solid var(--hairline); color: var(--night); }
.svc-read__icon svg { width: 24px; height: 24px; }
.svc-read__title { text-wrap: balance; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color 150ms var(--ease-out); }
.svc-read__meta { color: var(--slate); }
@media (hover: hover) and (pointer: fine) { .svc-read:hover .svc-read__title { text-decoration-color: currentColor; } }

/* ── Questions: the title on the left from 1024 px; closed until opened, the first one open; the plus turns into a cross ── */
.svc-faq-wrap { display: grid; gap: 32px; }
@media (min-width: 1024px) { .svc-faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: 56px; } }
.svc-faq-title { color: var(--night); text-wrap: balance; }
.svc-faq { border-top: 1px solid var(--hairline); }
.svc-faq__item { border-bottom: 1px solid var(--hairline); }
.svc-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 18px; color: var(--night); cursor: pointer; list-style: none; }
.svc-faq__q::-webkit-details-marker { display: none; }
.svc-faq__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--night); border-radius: 9999px; transition: rotate 200ms var(--ease-out); }
.svc-faq__icon svg { width: 18px; height: 18px; }
.svc-faq__item[open] .svc-faq__icon { rotate: 45deg; }
.svc-faq__a { max-width: 44em; padding-bottom: 24px; color: var(--night); }
/* The top questions drawn open (a div, not a details): a heading with its answer under it, no pointer, no plus, no 64 px row */
div.svc-faq__item > .svc-faq__q { display: block; min-height: 0; padding-block: 24px 8px; cursor: auto; }
.svc-link { color: var(--anchor); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .svc-link:hover { color: var(--anchor-deep); } }
/* On Night (the header's note, the closing band) the blue fails contrast, so a link there is the section's white, still underlined */
.blog-section--dark .svc-link { color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .blog-section--dark .svc-link:hover { color: var(--fg); text-decoration-thickness: 2px; } }

/* ── The last call: a dark band ── */
.svc-band { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 56px 24px; border-radius: 28px; text-align: center; }
@media (min-width: 768px) { .svc-band { padding: 88px 56px; } }
/* Behind the closing card (Rahul, 2026-10-28: "we need to add a nice visual behind the cta card towards the end"): the Local SEO
   picture, the glass pin, comes in from the right and fades into the night, and from 1024 px the words take the left half. Below
   that it sits above the words and fades down into the card, short enough that the words start below the pin, on night (AA). */
.svc-band { position: relative; overflow: hidden; isolation: isolate; padding-top: min(64vw, 440px); }
.svc-band > :not(.svc-band__art) { position: relative; }
.svc-band__art {
  position: absolute; inset: 0 0 auto; display: block; height: min(70vw, 460px); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
}
.svc-band__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 1024px) {
  .svc-band { align-items: flex-start; padding: 88px 52% 88px 56px; text-align: left; }
  .svc-band__art {
    inset: 0 0 0 auto; width: 60%; height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
  }
  .svc-band__art img { object-position: 50% 50%; }
}
/* A band without the picture (sections/cta.py leaves art out and adds svc-band--plain; the AI training page's, whose glass object carries three AI
   vendors' marks): Night, centered, with the band's own padding from its first rule, not the room the picture takes on top (a phone) or at the
   right (from 1024 px) */
.svc-band.svc-band--plain { align-items: center; padding: 56px 24px; text-align: center; }
@media (min-width: 768px) { .svc-band.svc-band--plain { padding: 88px 56px; } }
.svc-band__title { max-width: 15em; color: #fff; text-wrap: balance; }
.svc-band__line { max-width: 30em; color: rgb(255 255 255 / 0.75); }
/* Book a call and the phone side by side, stacked full width on phones */
.svc-band__actions { justify-content: center; margin-top: 8px; }
@media (min-width: 1024px) { .svc-band:not(.svc-band--plain) .svc-band__actions { justify-content: flex-start; } }
@media (max-width: 639.98px) { .svc-band__actions { flex-direction: column; align-items: stretch; align-self: stretch; } .svc-band__actions > a { justify-content: center; } }
.svc-band :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.service-page main :is(a, button, summary):focus-visible { outline: 2px solid var(--anchor); outline-offset: 2px; border-radius: 4px; }
.service-page main .svc-band :is(a, button):focus-visible, .service-page main .svc-hero :is(a, button):focus-visible { outline-color: #fff; }

/* ══ The pictures ══════════════════════════════════════════════════════════════════════════════════════════════════ */
.svc-shot { container-type: inline-size; width: 100%; min-width: 0; overflow: hidden; }
.ui {
  --w: 30;
  box-sizing: border-box; width: calc(var(--w) * 1em); margin-inline: auto; padding: 1.25em; border-radius: 1.1em;
  background-color: #fff; color: var(--night); text-align: left;
  font-family: var(--font-text); font-size: clamp(8px, calc(100cqw / var(--w)), max(16px, 0.75vw)); line-height: 1.35; letter-spacing: -0.01em;
  box-shadow: 0 0.06em 0.15em rgb(12 14 18 / 0.06), 0 0.9em 2.2em rgb(12 14 18 / 0.12);
}
/* The header's picture sits on a pane of glass (Rahul, 2026-10-27, from a reference he sent): a see-through rim around
   the card, lighter at the top, with a hairline edge. The rim is the card's ::before, so it hugs the card at every width
   and its corners stay concentric (the card's radius plus the rim); the shot's padding gives it room inside the clipping
   box, and isolation keeps the rim (z-index -1) above the header's background. The header behind it is flat, so there
   is nothing to blur. */
.svc-shot--hero { --rim: 8px; padding: var(--rim); isolation: isolate; }
@media (min-width: 768px) { .svc-shot--hero { --rim: 12px; } }
.svc-hero .ui { position: relative; box-shadow: 0 0.15em 0.6em rgb(0 0 0 / 0.3); }
/* The header's card may grow past the 16 px the other pictures stop at, so it fills its wider box (636 px at 1598) */
.svc-shot--hero > .ui { font-size: clamp(8px, calc(100cqw / var(--w)), 22px); }
.svc-shot--hero > .ui::before {
  content: ""; position: absolute; inset: calc(var(--rim) * -1); z-index: -1; pointer-events: none;
  border-radius: calc(1.1em + var(--rim));
  background-image: linear-gradient(rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.07));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), inset 0 1px 0 rgb(255 255 255 / 0.2);
}
/* Each picture's width in em: the header's 30, the steps' 24, the parts of the work 34 */
.ui-flow, .ui-assist, .ui-rankcard { --w: 24; }
.ui-agent, .ui-listings, .ui-reviews, .ui-maprank, .ui-pos { --w: 34; }
.ui :is(p, ul, ol, dl, dd, dt) { margin: 0; }
.ui-h { font-size: 1.05em; font-weight: 650; letter-spacing: -0.015em; }
.ui-label { display: block; color: var(--slate); font-size: max(0.72em, min(11px, 0.9em)); font-weight: 500; white-space: nowrap; }
.ui-value { display: flex; align-items: baseline; gap: 0.3em; font-size: 1.4em; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ui-value--big { font-size: 1.85em; }
.ui-up, .ui-down { display: inline-flex; align-items: center; gap: 0.1em; color: var(--good); font-size: max(0.5em, min(11px, 0.625em)); font-style: normal; font-weight: 650; letter-spacing: 0; }
.ui-down { color: var(--bad); }
.ui-up svg, .ui-down svg { width: 1em; height: 1em; stroke-width: 3; }
.ui-box { min-width: 0; padding: 0.85em; border: 0.0625em solid var(--ui-line); border-radius: 0.75em; }
.ui-box__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; font-size: max(0.78em, min(11px, 0.975em)); font-weight: 650; white-space: nowrap; }
/* A box's title and the split's key are p's, which the reset above zeroes, so their space needs the extra weight (Rahul,
   2026-10-27, on "Recent actions" and "Where views came from": "space it out a little, looks tight") */
.ui p.ui-box__head { margin-bottom: 0.8em; }
.ui p.ui-split__key { margin-top: 0.8em; }
.ui-box__head small { color: var(--slate); font-size: 0.9em; font-weight: 500; }
.ui-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75em; margin-top: 0.9em; }
.ui-key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3em 0.4em; color: var(--slate); font-size: 0.85em; font-weight: 500; }
.ui-key i { flex: none; width: 0.6em; height: 0.6em; border-radius: 9999px; background-color: #c7cdd8; }
.ui-key i.is-now { background-color: var(--chart); }
.ui-key i.is-before { background-color: #a9c6f8; }
.ui-key i.is-alt { background-color: #8b5cf6; }
.ui-stars { display: inline-flex; gap: 0.06em; color: var(--amber); }
.ui-stars svg { width: 0.9em; height: 0.9em; fill: currentColor; }
.ui-stars .is-off { fill: #d9dce1; }
.ui-tick { display: grid; place-items: center; flex: none; width: 1.3em; height: 1.3em; border-radius: 0.3em; background-color: #16a34a; color: #fff; }
.ui-tick svg { width: 0.85em; height: 0.85em; stroke-width: 3.5; }
.ui-skel { display: block; width: 70%; height: 0.45em; margin-top: 0.35em; border-radius: 0.3em; background-color: var(--ui-fill); }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.55em 0.9em; border-radius: 9999px; font-size: max(0.72em, min(11px, 0.9em)); font-weight: 650; white-space: nowrap; }
.ui-btn--dark { background-color: var(--night); color: #fff; }
.ui-mark { flex: none; width: 1.3em; height: 1.3em; }
.ui-you { display: inline-block; margin-left: 0.4em; padding: 0.1em 0.55em; border-radius: 9999px; background-color: var(--good); color: #fff; font-size: 0.8em; font-style: normal; font-weight: 650; }
.ui-dot { display: grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: 9999px; color: #fff; font-weight: 700; box-shadow: 0 0 0 0.14em #fff, 0 0.1em 0.3em rgb(12 14 18 / 0.2); font-variant-numeric: tabular-nums; }
.ui-dot.is-top { background-color: var(--good); }
.ui-dot.is-near { background-color: var(--amber); color: var(--night); }
.ui-dot.is-far { background-color: #d92d20; }
/* The map under the spots, one drawing for step 3's rank card and the heat map (Rahul, 2026-10-27: "show map behind the grid points",
   "add a map behind this"). Kept quiet, since he has found line patterns busy: land, one park, one stretch of water and four white
   roads, all soft, so the spots stay what the eye goes to. It covers its box, so it grows with the picture. */
.ui-rankcard__map, .ui-maprank__map { background: #eaeff6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='160' height='120' fill='%23eaeff6'/%3E%3Cpath d='M-4-4h50c5 15-3 29-18 33-13 3-26-1-32-10z' fill='%23dcefe3'/%3E%3Cpath d='M116 124c4-21 18-35 48-39v39z' fill='%23d6e5fa'/%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath d='M-4 52c40 6 90-8 168 4' stroke-width='5'/%3E%3Cpath d='M98-4c-6 40 4 80-4 128' stroke-width='4'/%3E%3Cpath d='M-4 92h168M44-4v128' stroke-width='2.5'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }

/* The header's: the profile's numbers, search and Maps views against last year, where the views came from */
.ui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; margin-top: 0.9em; }
.ui-kpi { min-width: 0; padding: 0.7em 0.8em; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; }
.ui-kpi .ui-value { margin-top: 0.15em; }
.ui-lines { display: block; width: 100%; height: 4em; overflow: visible; }
.ui-lines__now { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* Last year's line: a lighter blue under this year's, which is shaded beneath (Rahul, 2026-10-27: "the second graph line can be
   better looking on both graphs"; his reference draws it this way) */
.ui-lines__fill { fill: var(--tint); }
.ui-lines__before { fill: none; stroke: #a9c6f8; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ui-split { margin-top: 0.75em; }
.ui-split__bar { display: flex; gap: 0.15em; height: 0.7em; overflow: hidden; border-radius: 9999px; }
.ui-split__bar i { display: block; height: 100%; }
.ui-split__key { display: flex; flex-wrap: wrap; gap: 0.3em 1em; color: var(--slate); font-size: max(0.72em, min(11px, 0.9em)); }
.ui-split__key i { display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.4em; border-radius: 0.15em; vertical-align: -0.05em; }
.is-maps { background-color: var(--chart); }
.is-search { background-color: var(--amber); }

/* Step 1: the business's details, wired out to the directories */
.ui-flow { display: grid; grid-template-columns: 10em 2.6em minmax(0, 1fr); align-items: center; padding: 1em; }
.ui-flow__form { overflow: hidden; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; }
.ui-flow__head { padding: 0.6em 0.8em; background-color: var(--tint-deep); color: var(--anchor-deep); font-size: max(0.78em, min(11px, 0.975em)); font-weight: 650; }
.ui-flow__fields { padding: 0.3em 0.8em 0; }
.ui-flow__fields li { padding: 0.35em 0; border-bottom: 0.0625em solid var(--ui-line); color: var(--slate); font-size: max(0.72em, min(11px, 0.9em)); }
.ui-flow__form .ui-btn { margin: 0.8em; }
.ui-flow__wires { align-self: stretch; width: 100%; height: auto; overflow: visible; }
.ui-flow__wires path { fill: none; stroke: #b9c2d0; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.ui-flow__dirs { display: grid; gap: 0.4em; }
.ui-flow__dirs li { display: flex; align-items: center; gap: 0.55em; padding: 0.3em 0.45em; border: 0.0625em solid var(--ui-line); border-radius: 0.5em; font-size: max(0.78em, min(11px, 0.975em)); font-weight: 600; white-space: nowrap; }
.ui-tile { display: grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: 0.4em; }
.ui-tile .ui-mark { width: 1.05em; height: 1.05em; }
.ui-tile--more { background-color: var(--ui-fill); color: var(--slate); }
.ui-tile--color { background-color: #fff; box-shadow: inset 0 0 0 0.0625em var(--ui-line); }
.ui-tile--more svg { width: 1em; height: 1em; stroke-width: 2.5; }

/* Step 2: the week's views beside the assistant's last two actions */
.ui-assist .ui-duo { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.ui-assist .ui-value--big { flex-wrap: wrap; font-size: 1.6em; }
.ui-acts { display: grid; gap: 0.6em; }
.ui-acts li { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; font-size: max(0.74em, min(11px, 0.925em)); font-weight: 600; }
.ui-acts li > span:first-child { min-width: 0; }
.ui-acts small { display: block; color: var(--slate); font-size: 0.85em; font-weight: 500; }
.ui-acts--list li { padding-bottom: 0.5em; border-bottom: 0.0625em solid var(--ui-line); }
.ui-acts--list li:last-child { padding-bottom: 0; border-bottom: 0; }
.ui-acts--list li > span:first-child { flex: 1; }

/* Step 3: you and two competitors beside a corner of the map */
.ui-rankcard__head { display: flex; align-items: center; gap: 0.45em; font-size: 0.85em; }
.ui-rankcard__head svg { flex: none; width: 1.15em; height: 1.15em; color: var(--slate); }
.ui-rankcard__head span { margin-left: auto; color: var(--slate); white-space: nowrap; }
.ui-rankcard__head span b { color: var(--night); }
.ui-rankcard__body { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); margin-top: 0.8em; overflow: hidden; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; }
.ui-rankcard__list li { display: flex; flex-direction: column; gap: 0.25em; padding: 0.6em 0.75em; border-bottom: 0.0625em solid var(--ui-line); font-size: max(0.74em, min(11px, 0.925em)); font-weight: 600; white-space: nowrap; }
.ui-rankcard__list li:last-child { border-bottom: 0; }
.ui-rankcard__list .is-you { background-color: #edf7f1; }
/* Here the name and its tag sit in a line of text, so the space common.spaced() puts between them shows: the margin is what it leaves of the 0.4em gap */
.ui-rankcard__list .ui-you { margin-left: 0.06em; }
.ui-rankcard__map { display: grid; grid-template-columns: repeat(3, auto); place-content: center; gap: 0.6em; }
.ui-rankcard__map .ui-dot { width: 1.5em; height: 1.5em; }

/* Google Business Profile: the week's performance beside the assistant's recent actions */
.ui-perf { display: grid; gap: 0.55em; }
.ui-perf div { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5em; padding-bottom: 0.5em; border-bottom: 0.0625em solid var(--ui-line); }
.ui-perf div:last-child { padding-bottom: 0; border-bottom: 0; }
.ui-perf dt { color: var(--slate); font-size: max(0.74em, min(11px, 0.925em)); white-space: nowrap; }
.ui-perf dd { display: flex; align-items: baseline; gap: 0.3em; font-size: 1.15em; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ui-perf .ui-up { font-size: max(0.55em, min(11px, 0.688em)); }

/* Listings (Rahul, 2026-10-27, from a Yext screen: "can we get a visual like this here"): the business's details, wired out to the
   directories and AI assistants that show them, each with a check. The wires are SVG drawn 10 units to the em, each exactly as many em
   as its space, and the short wire between two logos is a line as long as the gap, so every line meets its logo at any size. Under
   480 px the logos sit in two rows of four below the details and the wires come down instead (the container query at the end). */
.ui-listings { --net: var(--chart); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.ui-listings__card { overflow: hidden; border: 0.0625em solid var(--ui-line); border-radius: 0.7em; background-color: #fff; }
.ui p.ui-listings__head { display: flex; align-items: center; gap: 0.45em; padding: 0.6em 0.8em; background-color: var(--tint-deep); color: var(--anchor-deep); font-size: max(0.78em, min(11px, 0.975em)); font-weight: 650; }
.ui-listings__head svg { flex: none; width: 1.15em; height: 1.15em; }
.ui-listings__fields > div { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); gap: 0.6em; align-items: baseline; padding: 0.5em 0.8em; border-top: 0.0625em solid var(--ui-line); }
.ui-listings__fields dt { color: var(--slate); font-size: max(0.68em, min(11px, 0.85em)); }
.ui-listings__fields dd { font-size: max(0.74em, min(11px, 0.925em)); font-weight: 600; white-space: nowrap; }
.ui-listings__hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0.2em 0.8em; }
.ui-listings__hours span:nth-child(odd) { color: var(--slate); font-weight: 500; }
.ui-listings__net { display: flex; align-items: center; }
.ui-listings__wires { display: block; flex: none; fill: none; stroke: var(--net); stroke-width: 1; }
.ui-listings__wires.is-across { width: 6em; height: 15.8em; }
.ui-listings__wires.is-down { display: none; width: 19.5em; height: 2.4em; }
.ui-listings__sites { display: grid; grid-template-columns: repeat(2, 3.2em); gap: 1em 1.6em; }
.ui-listings__sites li { position: relative; width: 3.2em; height: 3.2em; }
.ui-listings__logo { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 9999px; background-color: #fff; box-shadow: inset 0 0 0 0.0625em var(--ui-line), 0 0.15em 0.5em rgb(12 14 18 / 0.08); }
.ui-listings__logo .ui-mark { width: 1.55em; height: 1.55em; }
.ui-listings__ok { position: absolute; top: -0.2em; right: -0.25em; display: grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 9999px; background-color: var(--net); color: #fff; box-shadow: 0 0 0 0.14em #fff; }
.ui-listings__ok svg { width: 0.75em; height: 0.75em; stroke-width: 3.5; }
.ui-listings__sites li:nth-child(odd)::after { content: ""; position: absolute; top: calc(50% - 0.05em); left: 100%; width: 1.6em; height: 0.1em; background-color: var(--net); }

/* Reviews: new reviews a month beside the average rating */
.ui-duo--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); margin-top: 0; }
.ui-bars { display: flex; align-items: flex-end; gap: 0.55em; height: 9.5em; }
.ui-bars__col { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.35em; height: 100%; }
.ui-bars__col i { display: block; width: 100%; max-width: 1.9em; border-radius: 0.3em 0.3em 0 0; background-color: var(--chart); }
.ui-bars__col:last-child i { background-color: var(--anchor-deep); }
.ui-bars__col small { color: var(--slate); font-size: max(0.62em, min(11px, 0.775em)); }
.ui-reviews__score { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ui-gauge { display: block; width: 85%; height: auto; }
.ui-gauge__track, .ui-gauge__fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.ui-gauge__track { stroke: var(--ui-fill); }
.ui-gauge__fill { stroke: #16a34a; }
.ui-gauge__value { margin-top: -1.35em; font-size: 1.5em; font-weight: 700; line-height: 1.1; }
.ui-reviews__score .ui-stars { margin-top: 0.2em; margin-bottom: auto; }
.ui-reviews__score .ui-gauge { margin-top: auto; }   /* the gauge, the rating and its stars sit in the middle of the box under its title */

/* The heat map: three businesses ranked beside the map's spots */
.ui-maprank { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); padding: 0; overflow: hidden; }
.ui-maprank__list li { display: flex; gap: 0.55em; padding: 0.8em 0.85em; border-bottom: 0.0625em solid var(--ui-line); }
.ui-maprank__list li:last-child { border-bottom: 0; }
.ui-maprank__list .is-you { background-color: #edf7f1; }
.ui-maprank__n { flex: none; width: 1.3em; padding-top: 0.05em; color: var(--slate); font-size: 0.85em; font-weight: 700; text-align: center; }
.ui-maprank__biz { display: flex; flex-direction: column; gap: 0.25em; min-width: 0; }
.ui-maprank__biz b { display: flex; align-items: center; gap: 0.3em; font-size: 0.8em; white-space: nowrap; }
.ui-maprank__biz b svg { flex: none; width: 1em; height: 1em; color: var(--slate); }
.ui-maprank__biz small { color: var(--slate); font-size: max(0.66em, min(11px, 0.825em)); white-space: nowrap; }
.ui-maprank__rate { display: flex; align-items: center; gap: 0.35em; }
.ui-maprank__rate .ui-stars svg { width: 0.85em; height: 0.85em; }
.ui-maprank__map { display: grid; grid-template-columns: repeat(5, auto); place-content: center; gap: 0.5em; padding: 0.9em; }
.ui-maprank__map .ui-dot { width: 2.3em; height: 2.3em; font-size: max(0.72em, min(11px, 0.9em)); }

/* Rankings: the average spot on the map for two tracked searches, a point for each month's heat map, spot 1 at the top (pictures/local_seo.py) */
.ui-pos__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 0.75em; margin-top: 0.9em; }
.ui-tabs { display: flex; gap: 0.35em; font-size: max(0.66em, min(11px, 0.825em)); white-space: nowrap; }
.ui-tabs span { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.3em 0.6em; border: 0.1em solid var(--ui-line); border-radius: 0.4em; color: var(--slate); }
.ui-tabs .is-on { border-color: var(--night); background-color: var(--night); color: #fff; }
.ui-tabs svg { width: 0.95em; height: 0.95em; stroke-width: 3; }
.ui-pos__chart { display: block; width: 100%; height: 7em; margin-top: 0.7em; overflow: visible; }
.ui-pos__grid { stroke: var(--ui-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ui-pos__line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ui-pos__line--alt { stroke: #8b5cf6; }   /* the key's is-alt */
.ui-pos__axis { display: flex; justify-content: space-between; margin-top: 0.35em; color: var(--slate); font-size: max(0.56em, min(11px, 0.7em)); white-space: nowrap; }
.ui-pos__spots { margin-top: 0.5em; }
.ui-pos__spots dt { display: flex; align-items: baseline; gap: 0.45em; white-space: normal; }   /* a name that wraps hangs past its dot */
.ui-pos__spots dt i { flex: none; width: 0.6em; height: 0.6em; border-radius: 9999px; background-color: var(--chart); }   /* the list is the key: each search's dot is its line's color */
.ui-pos__spots dt i.is-alt { background-color: #8b5cf6; }
.ui p.ui-pos__link { margin-top: 1.2em; font-size: max(0.62em, min(11px, 0.775em)); text-decoration: underline; }   /* p. outranks .ui p's margin reset; the link clears the last line (Rahul, 2026-10-28: "space the line a little") */

/* A narrow box (a phone): the wide pictures drawn 22 em wide instead of 30 or 34, their side by side parts stacked, so their
   words stay readable (about 13 to 15 px a line) rather than shrinking to 8 */
@container (max-width: 479px) {
  .ui-insights, .ui-agent, .ui-listings, .ui-reviews, .ui-maprank, .ui-pos { --w: 22; }
  .ui-insights .ui-duo, .ui-agent .ui-duo, .ui-duo--rev, .ui-pos__body { grid-template-columns: minmax(0, 1fr); }
  .ui-insights .ui-kpi .ui-value { flex-direction: column; align-items: flex-start; gap: 0.1em; font-size: 1.15em; }   /* each change under its number: side by side they ran out of the box */
  .ui-insights .ui-kpi .ui-label { font-size: max(0.66em, min(11px, 0.825em)); }
  .svc-shot--hero > .ui { font-size: clamp(8px, calc(100cqw / var(--w)), 16px); }   /* stacked, the header's card keeps the 16 px cap, so it never balloons */
  .ui-maprank { grid-template-columns: minmax(0, 1fr); }
  .ui-bars { height: 7em; }
  .ui-reviews__score .ui-gauge { width: 60%; }
  /* Listings: the logos in two rows of four under the details, the wires coming down to the first row, a short one down to each logo below */
  .ui-listings { grid-template-columns: minmax(0, 1fr); }
  .ui-listings__net { flex-direction: column; }
  .ui-listings__wires.is-across { display: none; }
  .ui-listings__wires.is-down { display: block; }
  .ui-listings__sites { grid-template-columns: repeat(4, 3.2em); gap: 1.2em 2em; }
  .ui-listings__sites li:nth-child(-n+4)::after { content: ""; position: absolute; top: 100%; left: calc(50% - 0.05em); width: 0.1em; height: 1.2em; background-color: var(--net); }
  .ui-listings__sites li:nth-child(n+5)::after { content: none; }
}

/* Reduced motion: the colors still change gently, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .svc-ghost, .svc-tool { transition: background-color 150ms var(--ease-out); }
  .svc-outline { transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
  .svc-faq__icon { transition: none; }
  .svc-ghost:active, .svc-outline:active, .svc-tool:active { scale: 1; }
  [data-marquee="on"] .svc-logos__list { animation: none; }
}

/* A section's booking button (common.section_book()): centered under the steps, the case cards, the comparison and the sites, the
   page's call to action between the header's and the closing band's; under the questions it sits in their column, after the last answer */
.svc-book { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 40px; }
.svc-faq-wrap > .svc-book { justify-content: flex-start; margin-top: 0; }
.svc-book__line { max-width: 30em; margin: 40px auto 0; color: var(--night); text-align: center; text-wrap: balance; }
.svc-book__line + .svc-book { margin-top: 24px; }
.svc-section--book .svc-book__line { margin-top: 0; }
.svc-sites .svc-book__line { color: rgb(255 255 255 / 0.8); }
.svc-book__call { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 8px; }
@media (min-width: 1024px) { .svc-faq-wrap > .svc-book { grid-column: 2; } }
/* A row's text link under its booking button (sections/flow.py, the Automations page's missed call row): a quiet line, its link padded to a 44 px target */
.svc-row__more { margin-top: 12px; color: var(--slate); }
.svc-row__more .svc-link { display: inline-block; padding-block: 12px; }
/* The logos row's label, one small line under the logos (sections/logos.py) */
.svc-logos__label { margin-top: 16px; color: var(--slate); text-align: center; }
/* Under the header's buttons on the Bakersfield pages: Rahul's small photo and who takes the call (sections/header.py, founder) */
.svc-hero__founder { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); }
.svc-hero__founder img { flex: none; width: 32px; height: 32px; border-radius: 9999px; object-fit: cover; }
.svc-hero__founder + .svc-hero__note { margin-top: 12px; }

/* ── The calmer layout (<main class="svc-calm">, a page's "calm": True; Rahul, 2026-11-16: "I don't even know where to look").
   Measured on Semrush's feature pages at 1440: one feature per screen (rows about 700 px apart), 16 to 21 words in 18 px near-black
   body type beside a 40 px heading, outline buttons only, one filled button per section at most ── */
.svc-calm .svc-section { padding-block: 96px; }
@media (min-width: 768px) { .svc-calm .svc-section { padding-block: 128px; } }
@media (min-width: 1250px) { .svc-calm .svc-section { padding-block: 160px; } }
.svc-calm .svc-section + .svc-section { padding-top: 0; }
.svc-calm .svc-flow { gap: 96px; }
@media (min-width: 1024px) { .svc-calm .svc-flow { gap: 176px; } .svc-calm .svc-row { gap: 96px; } }
.svc-calm .svc-row__line { max-width: 24em; margin-top: 20px; font-family: var(--font-text); font-size: 1.125rem; font-weight: 400; line-height: 1.55; letter-spacing: -0.01em; color: rgb(12 14 18 / 0.78); }
.svc-calm .svc-row__line + .svc-row__line { margin-top: 12px; }
.svc-calm .svc-row__links, .svc-calm .svc-row__text > .svc-outline { margin-top: 32px; }

.svc-calm .svc-step { padding: 32px 28px 0; }
.svc-calm .svc-step__text { margin-top: 12px; font-size: 1rem; line-height: 1.55; color: rgb(12 14 18 / 0.72); }
.svc-calm .svc-faq__a { max-width: 36em; color: rgb(12 14 18 / 0.78); }
.svc-calm .svc-faq__a + .svc-faq__a { margin-top: -12px; }
/* The calm pass's pictures: fewer rows, so they can draw larger (the default caps the base at 16 px, which left labels at 9 to 11) */
.svc-calm :is(.svc-row, .svc-step) .ui { font-size: clamp(9px, calc(100cqw / var(--w)), 20px); }
.svc-calm .ui-flow { --w: 20.5; grid-template-columns: 8.6em 2.2em minmax(0, 1fr); }
.svc-calm .ui-assist, .svc-calm .ui-rankcard { --w: 17; }
.svc-calm .ui-pos__axis { font-size: max(0.68em, min(11px, 0.85em)); }
.svc-calm .ui-agent { --w: 22; }
.svc-calm .ui-maprank, .svc-calm .ui-pos { --w: 28; }
.svc-calm .ui-aisrc { --w: 30; }
.svc-calm .ui-rankcard__body { grid-template-columns: minmax(0, 1fr); }
.svc-calm .ui-rankcard__map { grid-template-columns: repeat(5, auto); padding: 0.9em; }
.svc-calm .ui-assist .ui-acts { margin-top: 0.9em; padding-top: 0.8em; border-top: 0.0625em solid var(--ui-line); }
.svc-calm .ui-agent .ui-acts li { font-size: 0.9em; }
@media (max-width: 767px) {   /* a phone's picture is about 290 px wide: these draw at 16 to 17 px so no label goes under 11 */
  .svc-calm .ui-agent { --w: 19; }
  .svc-calm .ui-maprank, .svc-calm .ui-pos, .svc-calm .ui-aisrc, .svc-calm .ui-sms { --w: 17.5; }
  .svc-calm .ui-listings { --w: 19.6; }
  .svc-calm .ui-assist { --w: 16; }
}
.svc-calm .svc-shot--step { height: 270px; }
@media (min-width: 768px) { .svc-calm .ui-pos__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Every row's button, on every page: an outline with the arrow, named for its row (Rahul, 2026-11-17) */
.svc-outline { gap: 8px; }
.svc-outline svg { flex: none; width: 20px; height: 20px; transition: translate 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .svc-outline:hover svg { translate: 4px 0; } }
@media (prefers-reduced-motion: reduce) { .svc-outline svg { transition: none; } }
/* On a phone, a row reads heading, line and button first, then its picture (Semrush's order), so the picture never comes before what it shows */
@media (max-width: 1023.98px) { .svc-calm .svc-row__text { order: -1; } .svc-calm .svc-row { gap: 24px; } }

/* ══ Pictures wide enough to read (<main class="svc-big-shots">, a page's "big_shots": True) ═══════════════════════════════════════
   A picture is drawn 100cqw / --w em wide, so its labels are only as big as its box allows. On a phone the drawing was 294 px wide at 390
   (labels down to 9 px); at 1280 the rows' drawing was 519 px and a step's 310 (labels 10 px). Nothing is re-drawn and no --w changes:
   the boxes get more of the width. From 640 to 1023 px and from 1440 up the sizes are as they were.
   The labels themselves have a floor, on every page: a size under 0.8 em is written max(X em, min(11px, 1.25 X em)), so in a narrow box
   a small label grows by up to a quarter to reach 11 px and no further, and a row of them never outgrows its card. */
@media (max-width: 639.98px) {
  /* A row's panel runs to 8 px of the screen's edge (the page's gutter is 24) and holds its drawing 8 px in: 358 px wide at 390 */
  .svc-big-shots .svc-row__panel { margin-inline: -16px; padding: 16px 8px; }
  /* The header's picture the same: its glass rim (8 px) reaches 8 px from the edge */
  .svc-big-shots .svc-shot--hero { width: auto; margin-inline: -16px; }
}
@media (max-width: 639.98px), (min-width: 1024px) and (max-width: 1439.98px) {
  /* A step's picture reaches 8 px from the card's sides; the card keeps its width and its words keep their padding */
  .svc-big-shots .svc-shot--step { width: auto; margin-inline: -20px; }
}
@media (min-width: 1024px) and (max-width: 1439.98px) {
  /* The rows' picture takes 62% of the row, the words the rest. Up to 1132 px it stops at 556 px (a drawing 478 px wide): from 480 the
     wide pictures turn from their stacked drawing, at 22 em, to their wide one, at 34 em, and draw smaller */
  .svc-big-shots .svc-row { --pic: min(62%, 556px); grid-template-columns: minmax(0, var(--pic)) minmax(0, 1fr); gap: 64px; }
  .svc-big-shots .svc-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, var(--pic)); }
  /* The header's picture fills its box, as it does from 1320 px (a 16 px cap held it to 384 px in a 464 px box at 1280) */
  .svc-big-shots .svc-shot--hero > .ui { font-size: clamp(8px, calc(100cqw / var(--w)), 22px); }
}
@media (min-width: 1133px) and (max-width: 1439.98px) {
  .svc-big-shots .svc-row { --pic: min(62%, 696px); }   /* 696 px is the panel's width from 1440 up: a drawing 599 px wide, 596 at 1280 */
}
