/*
 * Trucker Path Services — page composition.
 *
 * LAYER 3 ONLY. Foundation owns tokens, typography roles, the container rail,
 * Button, Link and Icon; this file owns how those pieces are arranged on the
 * Services surfaces and nothing else. No colour is defined here that is not a
 * var(--tpl-*) reference, and no gradient is hand-rolled — the dark-hero
 * heading uses Foundation's named .tp-site-type-gradient-on-dark.
 *
 * Every selector is prefixed with .tp-services-page. That prefix is a
 * containment boundary against the legacy global CSS on this domain; it is not
 * a licence for a second palette or a parallel set of primitives.
 *
 * GEOMETRY FOLLOWS THE APPROVED PROTOTYPE. Where a value could not be carried
 * over verbatim it is noted inline; the two systematic cases are fractional
 * font sizes (mapped to the nearest named integer role) and page-local colours
 * (mapped to the nearest Foundation token).
 */

.tp-services-page {
  box-sizing: border-box;
}

.tp-services-page *,
.tp-services-page *::before,
.tp-services-page *::after {
  box-sizing: inherit;
}

/* ---------------------------------------------------------------- Hero ---- */

.tp-services-page.tp-services-hero {
  /* THE DESIGN CANVAS'S HERO (Services-Hub-Hero round 29, 2026-11-05): one
     centred column on the nav-dark surface, three soft brand glows and a truck
     lot rising from the foot. The glows are the canvas's stops in the brand
     tokens (color-mix keeps them tokens, not copied rgba). */
  position: relative;
  overflow-x: clip;
  padding: 0 0 96px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 8%, color-mix(in srgb, var(--tpl-blue) 34%, transparent) 0%, transparent 70%),
    radial-gradient(circle at 8% 92%, color-mix(in srgb, var(--tpl-blue-bright) 16%, transparent) 0%, transparent 38%),
    radial-gradient(circle at 94% 64%, color-mix(in srgb, var(--tpl-blue-bright) 10%, transparent) 0%, transparent 34%),
    var(--tpl-ink-nav);
  color: var(--tpl-white);
}

/* The canvas's 3200x910 truck lot, which is this repository's own Fleet CTA
   image. Full width, 554px tall from the foot, fading out to the left and to
   the top through two intersected masks (alpha ramps, not colour). */
.tp-services-page .tp-services-hero__bg {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 554px;
  background: url("/assets/locations/fleet-cta-trucks.jpg") center / cover no-repeat;
  filter: brightness(1.35) saturate(1.05);
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 1) 62%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 22%, rgba(0, 0, 0, 0.8) 52%, rgba(0, 0, 0, 1) 72%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 1) 62%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 22%, rgba(0, 0, 0, 0.8) 52%, rgba(0, 0, 0, 1) 72%);
  mask-composite: intersect;
}

.tp-services-page .tp-services-hero__inner {
  position: relative;
  z-index: 2;
}

/*
 * The shared header is fixed and sits over the top of a dark hero, so the
 * first block on the page reserves its height, plus the canvas's 72px of air.
 * Both measurements come from Site Chrome's own custom properties.
 */
.tp-site-chrome--dark-hero #tp-main > .tp-services-page.tp-services-hero:first-child .tp-services-hero__inner {
  padding-top: calc(var(--tp-site-announcement-height) + var(--tp-site-header-height) + 72px);
}

.tp-services-page .tp-services-hero__copy {
  display: flex;
  max-width: 1200px;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.tp-services-page .tp-services-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  padding: 8px 16px;
  border: 1px solid var(--tpl-on-dark-accent-border);
  border-radius: 4px;
  background: var(--tpl-on-dark-accent-surface);
  /* Canvas #8fd8ff has no token; the bright brand blue is the nearest. */
  color: var(--tpl-blue-bright);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

/* Barlow Condensed is this headline's face only (hub.blade.php loads it;
   /__design/site shows the specimen). */
.tp-services-page .tp-services-hero__title {
  max-width: none;
  margin: 0;
  color: var(--tpl-white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 58px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.tp-services-page .tp-services-hero__line {
  display: block;
}

/* The canvas's blue second line is a three-stop gradient whose ends are all
   near the brand blue; Foundation allows one named dark-hero gradient and it
   is white, so this line is the brand blue itself. */
.tp-services-page .tp-services-hero__accent {
  color: var(--tpl-blue);
}

.tp-services-page .tp-services-hero__lede {
  max-width: 900px;
  margin: 22px auto 0;
  color: var(--tpl-on-dark-secondary);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

/* -------------------------------------------------------------- Search ---- */

.tp-services-page .tp-services-searchwrap {
  position: relative;
  z-index: 5;
  /* Under the copy, inside the hero (canvas round 29): no straddle. */
  margin-top: 48px;
}

.tp-services-page .tp-services-search {
  display: grid;
  /* Where → What do you need? → Within → Search Now (canvas 11-03): the wide
     place box leads. */
  grid-template-columns: 1.6fr 1.3fr minmax(176px, 0.6fr) auto;
  align-items: stretch;
  padding: 6px;
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 8px 24px rgba(1, 25, 50, 0.18);
  text-align: left;
}

.tp-services-page .tp-services-search__field {
  /* THE PANEL'S CONTAINING BLOCK, as it is in the source — its own field label
     carries `position:relative` (proto @98062). Without it the suggestion
     panel resolves `left`/`right` against `.tp-services-searchwrap`, the whole
     card, and lands beside the field it belongs to rather than under it. */
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0;
  padding: 6px 28px;
  border-right: 1px solid var(--tpl-line-soft);
}

/* THE THIRD CELL IS NARROWER, IN THE DESIGN SOURCE TOO. `Within` holds the
   shortest value on the card ("50 miles") and sits against the submit key, so
   the prototype gives it 20px of side padding where the other two take 24px.
   Four pixels, but they are what keeps the chevron off the button. */
.tp-services-page .tp-services-search__field--last {
  padding: 6px 20px;
}

.tp-services-page .tp-services-search__label {
  color: var(--tpl-ink-soft);
  /* Prototype: 10.5px. Named Caption role instead. */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.tp-services-page .tp-services-search__field select,
.tp-services-page .tp-services-search__field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tpl-ink);
  font-family: inherit;
  /* The prototype's 18px. Body L is a named role, so this is carried over as
     written rather than mapped down; the box is the page's primary control and
     reads as one at this size. */
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

/* The design source's own -2px. A select carries a little left inset of its
   own that an input does not, and this pulls the two back onto one line. */
.tp-services-page .tp-services-search__field select {
  margin-left: -2px;
}

/*
 * The disclosure chevron, not the operating system's. Left native it is a
 * different shape on every platform and none of them is the one the design
 * source draws.
 *
 * DRAWN TO THE DESIGN SOURCE, NOT COPIED FROM `.tp-site-select`. The shared
 * field's chevron is 18px in --tpl-ink-soft; this one is the prototype's own
 * 17px in #6B7A87, a step darker. The two are separate marks on purpose — the
 * shared one sits in a bordered 40px control, this one inside an 18px
 * borderless field on a white card — so this is not the Foundation asset with
 * a tweak, and changing one must not silently change the other.
 *
 * The stroke is written into the data URI because that is the only place an
 * SVG `stroke` can live; it cannot read a custom property. #6B7A87 has no
 * token because nothing else on this domain uses it.
 */
.tp-services-page .tp-services-search__field select {
  padding-right: 26px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 4px center;
  background-repeat: no-repeat;
  background-size: 17px 17px;
}

.tp-services-page .tp-services-search__field input::placeholder {
  color: var(--tpl-ink-soft);
  font-weight: 400;
}

/* KEYBOARD ONLY. The design source draws no ring on these controls, and a
   driver who clicks the box is already looking at it; design-system.md §7
   still requires a visible focus for the keyboard, so the ring stays and the
   pointer stands it down — the inline script under the search form in
   hub.blade.php sets `data-quiet-focus` for the one focus a pointer caused.
   Inline rather than deferred on purpose: this rule paints from the first
   frame, so whatever withholds it has to be armed just as early, or a slow
   network opens a window in which a click draws the ring. A select is not
   marked because the UA already withholds `:focus-visible` from a clicked
   one. */
/* .tp-services-page .tp-services-search__field select:focus-visible,
.tp-services-page .tp-services-search__field input:focus-visible {
  outline: 2px solid var(--tpl-blue);
  outline-offset: 2px;
} */

.tp-services-page .tp-services-search__field input[data-quiet-focus]:focus-visible {
  outline: none;
}

.tp-services-page .tp-services-search__submit {
  display: flex;
  align-items: center;
  padding: 8px;
}

.tp-services-page .tp-services-search__button {
  display: flex;
  min-width: 172px;
  height: 64px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 26px;
  border: 0;
  border-radius: 6px;
  background: var(--tpl-blue);
  color: var(--tpl-white);
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 140ms ease;
}

.tp-services-page .tp-services-search__button:hover,
.tp-services-page .tp-services-search__button:focus-visible {
  background: var(--tpl-blue-strong);
}

/*
 * Waiting for a place to be chosen. Set by services-hub.js and never in the
 * HTML, so a page without JavaScript never reaches this state.
 *
 * It has to read as unavailable rather than merely quiet: a full-strength
 * button that does nothing when clicked is the worse of the two failures.
 */
.tp-services-page .tp-services-search__button:disabled {
  background: var(--tpl-line);
  color: var(--tpl-ink-soft);
  cursor: not-allowed;
}

.tp-services-page .tp-services-search__button:disabled:hover {
  background: var(--tpl-line);
}

.tp-services-page .tp-services-search__button .tp-site-icon {
  fill: currentColor;
}

/* ----------------------------------------------------------- Shortcuts ---- */

.tp-services-page .tp-services-shortcuts {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 20px;
  padding-left: 6px;
  flex-wrap: wrap;
}

.tp-services-page .tp-services-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tpl-blue-bright);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.tp-services-page .tp-services-shortcut:hover,
.tp-services-page .tp-services-shortcut:focus-visible {
  text-decoration: underline;
}

.tp-services-page .tp-services-shortcut .tp-site-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------- Body ----- */

.tp-services-page.tp-services-main {
  padding: 0;
  background: var(--tpl-white);
  color: var(--tpl-ink);
}

/* What We Cover: 80px above and below (canvas `tph-cover`, inline 80/80). */
.tp-services-page.tp-services-main .tp-services-section {
  padding: 80px 0;
}

.tp-services-page .tp-services-section__title {
  margin: 0 0 32px;
  color: var(--tpl-ink);
  font-family: var(--tpl-font-head);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

/* -------------------------------------------------------------- Tiles ----- */

.tp-services-page .tp-services-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-services-page .tp-services-tiles > li {
  display: flex;
}

.tp-services-page .tp-services-tile {
  display: flex;
  width: 100%;
  min-height: 112px;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: inset 0 0 0 1px var(--tpl-line), 0 1px 2px rgba(1, 25, 50, 0.04);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 240ms ease;
}

.tp-services-page .tp-services-tile:hover,
.tp-services-page .tp-services-tile:focus-visible {
  box-shadow: inset 0 0 0 1px var(--tpl-line), 0 14px 32px rgba(1, 25, 50, 0.12);
}

/* The canvas's 44px icon cell with a 40px mark in it. */
.tp-services-page .tp-services-tile__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 2px;
  flex: none;
  object-fit: contain;
}

.tp-services-page .tp-services-tile__copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.tp-services-page .tp-services-tile__label {
  display: block;
  color: var(--tpl-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

/* ------------------------------------------------------------- Claims ----- */

/* A full-width grey band with white cards (canvas `tph-why`, 2026-11-05). */
.tp-services-page.tp-services-claims-band {
  padding: 80px 0;
  background: var(--tpl-surface);
  color: var(--tpl-ink);
}

.tp-services-page .tp-services-claims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-services-page .tp-services-claim {
  padding: 36px 32px;
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 1px 2px rgba(1, 25, 50, 0.04), 0 10px 28px rgba(1, 25, 50, 0.06);
}

/* A type selector here outranks the three .tp-services-claim__* rules below
   it; only the spacing those rules set between the three lines is wanted. */
.tp-services-page .tp-services-claim p {
  margin: 0;
}

.tp-services-page .tp-services-claim__value {
  color: var(--tpl-blue);
  font-family: var(--tpl-font-head);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}

.tp-services-page .tp-services-claim p.tp-services-claim__title {
  margin-top: 12px;
  color: var(--tpl-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.tp-services-page .tp-services-claim p.tp-services-claim__body {
  margin-top: 10px;
  color: var(--tpl-ink-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ------------------------------------------------------------- Browse ----- */

.tp-services-page.tp-services-browse {
  border-top: 1px solid var(--tpl-line);
  background: var(--tpl-surface-alt);
}

.tp-services-page .tp-services-browse__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 38px;
  padding-bottom: 50px;
}

.tp-services-page .tp-services-browse__title {
  margin: 0 0 10px;
  color: var(--tpl-ink-soft);
  /* Prototype: 11.5px. Named Caption role instead. */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tp-services-page .tp-services-browse__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-services-page .tp-services-browse__links li {
  display: flex;
  align-items: baseline;
}

.tp-services-page .tp-services-browse__links a {
  color: var(--tpl-link);
  /* Prototype: 13.5px. Named Body Small role instead. */
  font-size: 14px;
  text-decoration: none;
}

.tp-services-page .tp-services-browse__links a:hover,
.tp-services-page .tp-services-browse__links a:focus-visible {
  text-decoration: underline;
}

.tp-services-page .tp-services-browse__sep {
  padding: 0 9px;
  color: var(--tpl-ink-faint);
}

/* The last item in a group has nothing after it to separate from. */
.tp-services-page .tp-services-browse__links li:last-child .tp-services-browse__sep {
  display: none;
}

/* -------------------------------------------------------------- Empty ----- */

.tp-services-page .tp-services-empty {
  padding: 32px;
  border: 1px solid var(--tpl-line);
  border-radius: 12px;
  background: var(--tpl-surface-alt);
}

.tp-services-page .tp-services-empty p {
  margin: 0;
}

.tp-services-page .tp-services-empty p + p {
  margin-top: 8px;
  color: var(--tpl-ink-secondary);
}

/* ------------------------------------------------- Below the full rail ---- */

/*
 * The prototype's hero is a 472px measure beside a 640px figure on an 1152px
 * rail, and those two only both hold their size while the rail is full. Under
 * that width the split stays in the prototype's proportion rather than the
 * copy paying for all of the loss: a fixed figure against a shrinking column
 * reaches a 300px measure at 1024px, which is not a column a 52px heading can
 * be set in.
 */
@media screen and (max-width: 1199px) {
  /* Canvas: 48px headline, the photo a little quieter, two tile columns, the
     claims one per row with the figure in a 180px column beside its words. */
  .tp-services-page .tp-services-hero__title {
    font-size: 48px;
  }

  .tp-services-page .tp-services-hero__bg {
    opacity: 0.8;
  }

  .tp-services-page .tp-services-section__title {
    font-size: 34px;
  }

  .tp-services-page .tp-services-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-services-page .tp-services-claims {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-services-page .tp-services-claim {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 28px;
    padding: 28px;
  }

  .tp-services-page .tp-services-claim__value {
    grid-row: span 2;
    align-self: start;
    font-size: 40px;
    line-height: 44px;
  }

  .tp-services-page .tp-services-claim p.tp-services-claim__title {
    margin-top: 8px;
    line-height: 28px;
  }
}

/* ------------------------------------------------------ Narrow desktop ---- */

/*
 * A component edge, not a third page tier. design-system.md §3.5 allows a
 * smaller breakpoint for a definite local structural change and forbids it
 * becoming a second typographic system: nothing here touches type or the
 * container. What changes is arity — four tiles to two, three claims to two,
 * four search cells to two, and the hero figure out — because at this width
 * those rows are compressed rather than merely narrow.
 */
@media screen and (max-width: 1023px) {
  /* Canvas (tablet and phone): the card's fields stack, one per row, 16/24 inside,
     a hairline between them, and Search Now full width at 56px. */
  .tp-services-page.tp-services-hero .tp-services-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-services-page.tp-services-hero .tp-services-search__field,
  .tp-services-page.tp-services-hero .tp-services-search__field--last {
    margin: 0;
    padding: 16px 24px;
    border-right: 0;
  }

  .tp-services-page.tp-services-hero .tp-services-search__field + .tp-services-search__field {
    border-top: 1px solid var(--tpl-line-soft);
  }

  .tp-services-page.tp-services-hero .tp-services-search__submit {
    grid-column: auto;
  }

  .tp-services-page.tp-services-hero .tp-services-search__button {
    width: 100%;
    height: 56px;
  }

  .tp-services-page .tp-services-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tp-services-page .tp-services-search__field--last {
    border-right: 0;
  }

  .tp-services-page .tp-services-search__submit {
    grid-column: 1 / -1;
    border-top: 1px solid var(--tpl-line-soft);
  }

  .tp-services-page .tp-services-search__button {
    width: 100%;
    height: 48px;
  }
}

/* -------------------------------------------------------------- Phone ----- */

/*
 * 809px, NOT 743px. design-system.md §3.5 sets the tiers for new page bodies at
 * Desktop >=1200 / Tablet 810-1199 / Phone <810, and names 743px explicitly as a
 * Site Chrome compatibility edge that must not be copied into a new page body.
 *
 * It also has to be 809 to be correct: site-design.css switches
 * --tp-site-gutter to its mobile value at 809, so every .tp-site-container on
 * this page was already narrowing there. At 743 the type and the grid changed
 * 66px later than the gutter did, and 744-809px rendered desktop headings
 * inside phone margins.
 */
@media screen and (max-width: 809px) {
  /* Canvas (phone): 40px of air under the header, 48 at the foot; a 32px
     headline; the photo widened and quieter behind the card. */
  .tp-services-page.tp-services-hero {
    padding-bottom: 48px;
  }

  .tp-site-chrome--dark-hero #tp-main > .tp-services-page.tp-services-hero:first-child .tp-services-hero__inner {
    padding-top: calc(var(--tp-site-announcement-height) + var(--tp-site-header-height) + 40px);
  }

  .tp-services-page .tp-services-hero__bg {
    right: -30%;
    left: auto;
    width: 160%;
    opacity: 0.55;
  }

  .tp-services-page .tp-services-eyebrow {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .tp-services-page .tp-services-hero__title {
    font-size: 32px;
  }

  .tp-services-page .tp-services-hero__lede {
    max-width: 100%;
    margin-top: 16px;
    font-size: 16px;
  }

  .tp-services-page .tp-services-searchwrap {
    margin-top: 32px;
  }

  /* Canvas (phone): one row, the two links pushed to either end. */
  .tp-services-page .tp-services-shortcuts {
    justify-content: space-between;
    gap: 8px 16px;
    padding-left: 0;
  }

  .tp-services-page .tp-services-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-services-page .tp-services-search {
    padding: 4px;
  }

  .tp-services-page .tp-services-search__field,
  .tp-services-page .tp-services-search__field--last {
    margin: 0;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--tpl-line-soft);
  }

  .tp-services-page .tp-services-search__field select,
  .tp-services-page .tp-services-search__field input {
    font-size: 18px;
    line-height: 28px;
  }

  .tp-services-page .tp-services-search__button {
    width: 100%;
    height: 56px;
  }

  .tp-services-page .tp-services-search__submit {
    border-top: 0;
  }

  /* Canvas (phone): 56px bands, one tile per row, 16px tiles. */
  .tp-services-page.tp-services-main .tp-services-section,
  .tp-services-page.tp-services-claims-band {
    padding: 56px 0;
  }

  .tp-services-page .tp-services-tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tp-services-page .tp-services-tile {
    min-height: 0;
    padding: 16px;
  }

  .tp-services-page .tp-services-claim {
    display: block;
    padding: 24px;
  }

  .tp-services-page .tp-services-claim__value {
    font-size: 36px;
    line-height: 1.1;
  }

  .tp-services-page .tp-services-claim p.tp-services-claim__title {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.4;
  }

  .tp-services-page .tp-services-section__title {
    margin-bottom: 24px;
    font-size: 28px;
  }
}

/* ------------------------------------------------- Blocked permission ----- */

/*
 * The only thing left of the location gate's own surface. The primer dialog
 * that used to stand here — our reason over a replica of the browser's
 * permission sheet — was removed 2026-09-22; the request now goes straight to
 * the browser. This line is what a refusal looks like, and it has to exist
 * because a refused browser will not prompt again.
 */

.tp-services-page .tp-services-geo-blocked {
  margin: 14px 0 0;
  /* It sits on the dark hero, under the links: the canvas's white at 72%
     ("定位被拒绝 · 下方提示"). Ink read as near-invisible there. */
  color: var(--tpl-on-dark-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Nothing has happened yet, so nothing is reserved. */
.tp-services-page .tp-services-geo-blocked:empty {
  display: none;
}

/* ==================================================== Search view ========= */

/*
 * Option A's application screen. A full-viewport three-column layout: filters,
 * results, map. Correct here and only here — this page is noindex, so controls
 * and a dominant map may own the first screen without costing search traffic.
 */

.tp-services-page.tp-services-search-page {
  background: var(--tpl-white);
  color: var(--tpl-ink);
}

.tp-services-page .tp-services-toolbar {
  flex: none;
}

/* ------------------------------------------------------------ Toolbar ----- */

/* A BAND, NOT A CONTINUATION OF THE LIST. The design source puts the query on
   --tp-bg-gray under the nav; white made it read as the top of the results
   column rather than as the control strip above all three. */
.tp-services-page .tp-services-toolbar {
  border-bottom: 1px solid var(--tpl-line);
  background: var(--tpl-surface-alt);
}

/*
 * Clear the fixed header, whose height Site Chrome publishes. Applied to the
 * sentinel rather than to the toolbar so the reserved space and the element
 * that sets the header's treatment stay the same object.
 */
/*
 * `.tpl-hero` brings a dark gradient and, on a dark-hero body, a large
 * padding-top. Both are neutralised here: this element only reserves the fixed
 * header's height and gives Site Chrome something to measure.
 *
 * The compound selector matches the specificity of the layout rule it has to
 * beat rather than relying on source order.
 */
/* ------------------------------------------------------------- Top bar ---- */

/*
 * The Services tree's own header. See services.partials._product-header for
 * why these pages do not wear the marketing one.
 *
 * STICKY, AND THAT IS THE WHOLE REASON THE SENTINELS ARE GONE. The marketing
 * header is `position: fixed` and reserves no space, so each Services page had
 * to reserve 114px for it and then tell Site Chrome where its dark hero ended.
 * Three mechanisms for one problem the flow solves by itself.
 */
/*
 * The results page wears the site's own header (services.partials.
 * _site-header-light), which is fixed and reserves nothing; this is its row.
 * Outside .tp-services-page because it sits above <main>.
 */
.tp-services-header-space {
  height: var(--tp-site-header-height);
}

/* The canvas's Site-Header "Full width": no 1200px rail, 20px gutters. */
.tp-services-site-header-wide .tp-site-header__inner {
  max-width: none;
  padding-right: 20px;
  padding-left: 20px;
}

/*
 * ITS DROPDOWNS FOLLOW ITS MENUS, NOT THE RAIL (Ria Wang, 2026-11-13). The
 * shared panels centre on the 1200px rail; on a full-width header the menus
 * sit at the right gutter instead, so on a wide screen the panel opened far
 * to the left of its trigger. Here they hang from the header's right gutter,
 * as canvas TopNav-Services `.tn-panel` does (right of the nav row). Desktop
 * only -- below 1280 the menus are the drawer. Our Products keeps its own
 * panel under its trigger.
 */
@media screen and (min-width: 1280px) {
  .tp-site-chrome .tp-services-site-header-wide .tp-site-menu:not(:first-child) .tp-site-menu__panel {
    right: 20px;
    left: auto;
    transform: none;
  }
}

.tp-services-topbar {
  position: sticky;
  z-index: 60;
  top: 0;
  /* Same role as the hero it sits on — see .tp-services-hero. */
  background: var(--tpl-ink-nav);
}

.tp-services-topbar__inner {
  display: flex;
  align-items: center;
  /* The design source's own 48px. */
  gap: 48px;
  /* Not .tp-site-container: the design source's bar runs the full width with
     its own 18px gutter, because the screen below it is a three-column
     application rather than a reading measure. */
  min-height: 72px;
  padding: 0 18px;
}

.tp-services-topbar__logo {
  display: block;
  flex: none;
  line-height: 0;
}

.tp-services-topbar__logo img {
  display: block;
  width: auto;
  /* 36px, the design source's own height. The shared asset is 197x36 and the
     prototype's is 1373x251 — the same 5.47 ratio — so at this height the mark
     is 197px wide in both, to the pixel. It was set to 22px, which is the
     marketing header's size, not this bar's. */
  height: 36px;
}

.tp-services-topbar__spacer {
  flex: 1;
}

.tp-services-topbar__link {
  flex: none;
  color: var(--tpl-white);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.tp-services-topbar__link:hover,
.tp-services-topbar__link:focus-visible {
  color: var(--tpl-white);
  text-decoration: underline;
}

/* The account entry points use the shared text-link renderer
   (components.site.link), which is the one producer for text links on this
   site. Its default ink is for light surfaces and this bar is dark, so the
   bar restates its own treatment — at matching specificity, because the
   shared rule is `.tp-site-chrome .tp-site-link` and a single class would
   lose to it. Surface only: size, weight and focus behaviour stay the
   renderer's. */
.tp-site-chrome .tp-services-topbar .tp-site-link,
.tp-site-chrome .tp-services-topbar .tp-site-link:visited {
  color: var(--tpl-white);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.tp-site-chrome .tp-services-topbar .tp-site-link:hover,
.tp-site-chrome .tp-services-topbar .tp-site-link:focus-visible {
  color: var(--tpl-white);
  text-decoration: underline;
}

/* Same edge as the page below it. This bar used to switch at 767px while the
   hero and the search card switched at 743px, so 744-767px showed a phone bar
   over a tablet page. */
@media screen and (max-width: 809px) {
  /* 四个入口 + logo 在 390 下横排放不下：实测需要 506px，视口只有 390，
     于是 Log in 和 Sign up 被挤到 389–490，再被 body 的 overflow-x: hidden
     整个裁掉 —— 手机上这两个账号入口不可见也点不到，违反 Design System
     §6「Primary content、Control 和状态不能在响应式下被裁切、遮挡或变成零
     尺寸」。收窄 gap、padding 和字号救不回来，差的是 116px。

     所以窄屏换行，而不是藏链接：四个入口都是已批准的真实去处（Map view、
     List your business 各有目标，两个账号入口带 EntryAttribution 归因），
     藏掉任何一个都是在删已批准内容。也不引入汉堡菜单 —— 当前设计画布
     （S2，2026-11-09 复核）所有 Services 画板都没有这条产品栏，它来自更早的
     `TP Services B - PC.dc.html`，是 PC 专用稿，手机形态无来源；新的折叠态
     属于要先进 /__design/site 评审的共享模式，不在本次修复范围。 */
  .tp-services-topbar__inner {
    flex-wrap: wrap;
    /* 行内间距仍是 14px；换行后的行距单独给，否则 gap 会把两件事一起放大。 */
    column-gap: 14px;
    row-gap: 0;
    min-height: 0;
    padding: 10px 16px 12px;
  }

  /* 桌面它是把入口推到尾部的弹性间隔；窄屏改当整行断点，让 logo 独占一行、
     四个入口整体落到下一行，位置稳定而不是按字符宽度随机折行。 */
  .tp-services-topbar__spacer {
    flex-basis: 100%;
    height: 10px;
  }

  .tp-services-topbar__logo img {
    height: 28px;
  }

  .tp-services-topbar__link {
    font-size: 12px;
  }
}

.tp-services-page .tp-services-toolbar__inner {
  display: flex;
  align-items: center;
  /* The design source's own 20px 18px / 14px. */
  gap: 14px;
  padding: 20px 18px;
}

.tp-services-page .tp-services-toolbar__form {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.tp-services-page .tp-services-toolbar__where {
  display: flex;
  /* The design source's 230px. The field sits in a row with the radius select,
     the category rail and two buttons; taking 280 pushed the rail's scroll
     start 50px to the right on every width. */
  width: 230px;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  background: var(--tpl-white);
  transition: border-color 140ms ease;
}

.tp-services-page .tp-services-toolbar__where:focus-within {
  border-color: var(--tpl-blue);
}

.tp-services-page .tp-services-toolbar__where .tp-site-icon {
  flex: none;
  fill: var(--tpl-ink-soft);
}

.tp-services-page .tp-services-toolbar__where input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--tpl-ink);
  font-family: inherit;
  /* Prototype: 12.5px. Named Body Small role instead. */
  font-size: 13px;
  font-weight: 500;
}

.tp-services-page .tp-services-toolbar__where input:focus-visible {
  outline: none;
}

/* The same chevron the hub's search card carries, at this bar's own size: the
   design source draws it 15px and 12px in from the edge, against the hub's 17px
   at 4px. The 34px of right padding is what keeps "50 miles" off it. */
.tp-services-page .tp-services-toolbar__radius {
  height: 38px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--tpl-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  color: var(--tpl-ink);
  font-family: inherit;
  /* Prototype: 12.5px, same as the Where field beside it. */
  font-size: 13px;
  font-weight: 500;
}

.tp-services-page .tp-services-toolbar__rail {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 8px;
  overflow-x: auto;
}

/* A rule between the query and the category rail, as the prototype has. */
.tp-services-page .tp-services-toolbar__divide {
  width: 1px;
  height: 24px;
  flex: none;
  background: var(--tpl-line);
}

.tp-services-page .tp-services-railitem {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.tp-services-page .tp-services-railitem:hover,
.tp-services-page .tp-services-railitem:focus-visible {
  border-color: var(--tpl-blue);
  color: var(--tpl-blue);
}

/* The selected category is brand blue, not ink: the rail is a filter, and the
   selection is the page's own accent rather than a heavier surface. */
.tp-services-page .tp-services-railitem.is-active {
  border-color: var(--tpl-blue);
  background: var(--tpl-blue);
  color: var(--tpl-white);
}

.tp-services-page .tp-services-railitem__icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
}

/* The icons are dark-stroked SVGs served as <img>, so their colour cannot be
   inherited. On the selected chip's blue they are inverted to white rather
   than left as near-black on blue. */
.tp-services-page .tp-services-railitem.is-active .tp-services-railitem__icon {
  filter: brightness(0) invert(1);
}

.tp-services-page .tp-services-railitem__n {
  color: var(--tpl-ink-soft);
  /* The design source's own 11px: the count is a footnote to the label beside
     it, not a second label. */
  font-size: 11px;
  font-weight: 500;
}

.tp-services-page .tp-services-railitem.is-active .tp-services-railitem__n {
  color: var(--tpl-on-dark-secondary);
}

/* ------------------------------------------------------------ Columns ----- */

/*
 * The prototype subtracts a fixed 151px for the chrome above this grid. That
 * number is only right for the chrome it was drawn against — here the
 * announcement bar, header and toolbar are each their own height, and the sum
 * is 26px different, which shows up as a page that scrolls by exactly that.
 *
 * A flex column measures it instead: the sentinel and toolbar take what they
 * need, the grid takes the rest, and the page is exactly one viewport tall
 * whatever the chrome does.
 */
.tp-services-page.tp-services-search-page {
  display: flex;
  flex-direction: column;
  /* The sentinel above this element already occupies the fixed chrome's
     height, so one viewport minus that is what is left to fill. */
  height: calc(100vh - var(--tp-site-announcement-height) - var(--tp-site-header-height));
}

.tp-services-page .tp-services-results {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 225px 500px minmax(0, 1fr);
}

/* A category with no rail: the column goes, and
   the list and map close over the space rather than leaving an empty strip. */
.tp-services-page .tp-services-results.is-unfiltered {
  grid-template-columns: 500px minmax(0, 1fr);
}

/* ------------------------------------------------------------ Filters ----- */

.tp-services-page .tp-services-filters {
  padding: 18px;
  border-right: 1px solid var(--tpl-line);
  overflow-y: auto;
}

.tp-services-page .tp-services-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}

/* The drawer's own close control. Only a phone has a drawer. */
.tp-services-page .tp-services-filters__close {
  display: none;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--tpl-ink-secondary);
  cursor: pointer;
}

.tp-services-page .tp-services-filters__title {
  margin: 0;
  color: var(--tpl-ink);
  font-size: 15px;
  font-weight: 600;
}

.tp-services-page .tp-services-filters__group + .tp-services-filters__group {
  margin-top: 18px;
}

/* A HEADING, NOT AN OVERLINE. The design source sets these in the primary ink
   at .05em and does not upper-case them — they name the group you are choosing
   inside. Rendering them as soft grey small-caps pushed them behind the very
   options they label. */
.tp-services-page .tp-services-filters__legend {
  margin: 0 0 9px;
  color: var(--tpl-ink);
  /* Prototype: 11.5px. Named Caption role instead. */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tp-services-page .tp-services-filters__items {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Density only. The box, its checked state and its focus ring belong to
   `.tp-site-checkbox`; this rule sets the size and colour the rail reads at and
   centres the mark against a single-line label. */
.tp-services-page .tp-services-filters__item {
  align-items: center;
  gap: 9px;
  color: var(--tpl-ink-secondary);
  /* Prototype: 13.5px. Named Body Small role instead. */
  font-size: 13px;
  line-height: 1.4;
}

.tp-services-page .tp-services-filters__item .tp-site-checkbox__mark {
  margin-top: 0;
}

/* The box's count for this circle, the chips' own footnote style. Empty until
   an answer lands. */
.tp-services-page .tp-services-filters__n {
  margin-left: auto;
  color: var(--tpl-ink-soft);
  font-size: 11px;
  font-weight: 500;
}

/* Nothing in range (§1 rule 3): greyed and not clickable. Pending — no data
   behind the box yet, doc 4544593933 §4.1 v4 — looks the same, and its count
   slot says so in words. */
.tp-services-page .tp-services-filters__item.is-empty,
.tp-services-page .tp-services-filters__item.is-pending {
  color: var(--tpl-ink-soft);
  cursor: default;
}

/* Phone-only pieces of the rail; hidden above the phone breakpoint. */
.tp-services-page .tp-services-filterbar,
.tp-services-page .tp-services-filters__backdrop {
  display: none;
}

/* What the empty-result fallback loosened. */
.tp-services-page .tp-services-relaxed {
  margin: 0 0 12px;
  color: var(--tpl-ink-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.tp-services-page .tp-services-relaxed[hidden] {
  display: none;
}

.tp-services-page .tp-services-filters__items + .tp-services-filters__more {
  margin-top: 9px;
}

.tp-services-page .tp-services-filters__more > .tp-services-filters__items {
  margin-top: 9px;
}

.tp-services-page .tp-services-filters__more-toggle {
  color: var(--tpl-ink-secondary);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.tp-services-page .tp-services-filters__more-toggle:hover {
  color: var(--tpl-ink);
}

/* The All rail's last line: where the category-only filters are. */
.tp-services-page .tp-services-filters__hint {
  margin: 16px 0 0;
  color: var(--tpl-ink-secondary);
  font-size: 13px;
  line-height: 1.4;
}

/* "Show unconfirmed too", under the heading when a strict box held rows back. */
.tp-services-page .tp-services-list__unconfirmed {
  /* Its own line under the head's row, not a column inside it (QA #8). */
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}

/* ------------------------------------------------------------- Results ---- */

/* The head is fixed and the answer takes what is left. Stated here because the
   loading placeholder sizes itself against that remainder — without it the
   skeleton has no height to fill and ends in a band of white. */
.tp-services-page .tp-services-list {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-right: 1px solid var(--tpl-line);
  overflow-y: auto;
}

.tp-services-page .tp-services-results-region {
  flex: 1;
  min-height: 0;
}

.tp-services-page .tp-services-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  /* The design source's own 4px. The gap that separates the head from the rows
     belongs to whatever sits between them, not to the head. */
  margin-bottom: 4px;
}

/* THE COUNT IS A COLUMN HEADING, NOT A PAGE TITLE. The design source sets it
   at 15px/600 — the same weight as a result's name — because the three columns
   are one application screen and no part of it should read as a document
   title. It had grown to 20px/700, which made the list look like the page and
   the map like an illustration beside it. */
.tp-services-page .tp-services-list__count {
  /* Takes the row's remaining width and wraps inside it, so "Sorted by" keeps
     its place on the right instead of being pushed against the text. */
  min-width: 0;
  flex: 1;
  margin: 0;
  color: var(--tpl-ink);
  font-family: var(--tpl-font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.tp-services-page .tp-services-list__fixture-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--tpl-line);
  background: var(--tpl-surface-alt);
  color: var(--tpl-ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

/* The design source's note under the count. It carried only a top margin, so
   it ended flush against the first card — the paragraph and the list read as
   one block. The 12px below is what separates a note about the search from the
   answer to it. */
.tp-services-page .tp-services-list__gap {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--tpl-caution-border);
  border-radius: var(--tpl-radius-sm);
  background: var(--tpl-caution-wash);
  color: var(--tpl-caution-text);
  font-size: 13px;
  line-height: 1.5;
}

.tp-services-page .tp-services-list__anchor {
  margin: 0 0 12px;
  color: var(--tpl-ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.tp-services-page .tp-services-list__sort {
  flex: none;
  color: var(--tpl-ink-soft);
  font-size: 12px;
}

.tp-services-page .tp-services-list__sub {
  margin: 6px 0 14px;
  color: var(--tpl-ink-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.tp-services-page .tp-services-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A RESULT ROW, TO THE DESIGN SOURCE'S OWN GEOMETRY.
 *
 * Every number below is the prototype's, not an approximation: card radius 10
 * and padding 14/15, an 18px pin, a 15px/1.3 name, a 12px grey meta line, a
 * 6px-radius button pair with a 7px gap.
 *
 * TWO FONT SIZES ARE ROUNDED, AND THAT IS DELIBERATE. The source specifies
 * 9.5px for the pin, 11.5px for the buttons and 12.5px for the reach line.
 * AGENTS.md: "Fractional font-size values such as 12.5px are not valid density
 * tools: map the content to Caption, Body Small, Body". They map to 12, 12
 * and 13.
 */
.tp-services-page .tp-services-row {
  padding: 14px 15px;
  border: 1px solid var(--tpl-line);
  border-radius: 12px;
  background: var(--tpl-white);
  transition: border-color 140ms ease, box-shadow 180ms ease;
}

.tp-services-page .tp-services-row:hover {
  border-color: var(--tpl-line);
  box-shadow: 0 4px 16px rgba(1, 25, 50, 0.08);
}

.tp-services-page .tp-services-row__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* The same number the map marker carries. That is the only reason it is here. */

.tp-services-page .tp-services-row__name {
  flex: 1;
  min-width: 0;
  color: var(--tpl-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

/* A row with no page behind it keeps the name as text rather than linking
 * somewhere that 404s. It has to read the same either way. */
.tp-services-page .tp-services-row__name_flat {
  cursor: default;
}

.tp-services-page .tp-services-row__name:hover,
.tp-services-page .tp-services-row__name:focus-visible {
  text-decoration: underline;
}

/* One grey line carrying the junction, the score and the kind of place — the
 * position the design source fills with exit, rating, hours, rate and kind. */
/* THE RATING SITS IN THE META LINE, NOT ABOVE IT. The shared compact variant
   renders 16px/700, which on this 12px row came out larger than the shop's own
   name one line up and pulled the eye to the score before the business. The
   design source keeps it level with the text around it: the row's size, one
   weight heavier, with a 13px mark. Overridden here rather than in the shared
   variant because other surfaces use it at its own scale. */
.tp-services-page .tp-services-row__meta .tp-data-rating_compact {
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  /* The variant carries `line-height: 24px` for the surfaces it was built for.
     Left standing it makes the score a 24px-tall box inside a 12px line and
     stretches the whole meta row around it; the design source's score is just
     text on that row. */
  line-height: inherit;
}

/* THE MARK AND THE GLYPH INSIDE IT ARE TWO BOXES. `__mark` is a wrapper; the
   `components.site.icon` it holds is `size: sm`, which is 16px. Resizing only
   the wrapper left a 16px star in a 13px box — it overflowed 3px past the
   bottom and read as sitting below the number it belongs to. Both are set. */
.tp-services-page .tp-services-row__meta .tp-data-rating__mark,
.tp-services-page .tp-services-row__meta .tp-data-rating__mark > .tp-site-icon {
  width: 13px;
  height: 13px;
}

.tp-services-page .tp-services-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  color: var(--tpl-ink-soft);
  font-size: 12px;
}

.tp-services-page .tp-services-row__dot {
  color: var(--tpl-ink-faint);
}

/* Distance, in the design's green. `--tpl-go` is the Foundation's own token at
 * the value the design system calls `--tp-success`. */

.tp-services-page .tp-services-row__marker {
  margin-top: 6px;
  color: var(--tpl-ink-secondary);
  font-size: 13px;
  font-weight: 500;
}

.tp-services-page .tp-services-row__marker--yes {
  color: var(--tpl-go);
}

.tp-services-page .tp-services-row__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tp-services-page .tp-services-row__counts li {
  color: var(--tpl-ink-secondary);
  font-size: 12px;
}

.tp-services-page .tp-services-row__counts li::after {
  margin-left: 6px;
  color: var(--tpl-line);
  content: "\00b7";
}

.tp-services-page .tp-services-row__counts li:last-child::after {
  content: none;
}

.tp-services-page .tp-services-row__counts strong {
  color: var(--tpl-ink);
  font-weight: 600;
}

/* How many of the total are paid — a qualifier on the number beside it, not a
   count of its own, so it stays at the line's own weight. */
.tp-services-page .tp-services-row__count-note {
  color: var(--tpl-ink-faint);
}

/* --------------------------------------------------- Parking card ---- */

/*
 * A parking lot's own lines: the Parking service's paid block, then the facility
 * chips. Composition only, on the Foundation's tokens: no new palette, no motion.
 * The badge and price follow the parking detail page's nearby cards, so a lot
 * reads the same in the list and on its own page.
 */
.tp-services-page .tp-services-row__parking {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}

.tp-services-page .tp-services-row__parking-photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: var(--tpl-surface-alt);
  object-fit: cover;
}

.tp-services-page .tp-services-row__parking-body {
  min-width: 0;
}

.tp-services-page .tp-services-row__parking-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}

.tp-services-page .tp-services-row__parking-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tpl-ink);
  color: var(--tpl-white);
  font-size: 12px;
  font-weight: 600;
}

.tp-services-page .tp-services-row__parking-badge.is-full {
  background: var(--tpl-surface-alt);
  color: var(--tpl-ink-secondary);
}

.tp-services-page .tp-services-row__parking-price {
  color: var(--tpl-ink-secondary);
  font-size: 13px;
}

.tp-services-page .tp-services-row__parking-price strong {
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 700;
}

.tp-services-page .tp-services-row__parking-original {
  color: var(--tpl-ink-soft);
  font-size: 12px;
}

.tp-services-page .tp-services-row__parking-deal {
  color: var(--tpl-go);
  font-size: 12px;
  font-weight: 600;
}

.tp-services-page .tp-services-row__parking-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  color: var(--tpl-ink-secondary);
  font-size: 12px;
}

.tp-services-page .tp-services-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tp-services-page .tp-services-row__chips li {
  padding: 2px 8px;
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  color: var(--tpl-ink-secondary);
  font-size: 12px;
}

/* Full width under the Call / Open pair: the one filled action on a card, and
   only on a lot that can be booked. */
.tp-services-page .tp-services-row__reserve {
  display: flex;
  margin-top: 7px;
}

.tp-services-page .tp-services-row__reserve .tp-site-button {
  flex: 1;
}

/* ------------------------------------------- Truck parking card (tid 8) ---- */

/*
 * THE PROTOTYPE'S PARKING CARD — "TP Parking - Commercial Branch.dc.html", tab
 * Parking results. Drawn by _search-row-parking-card only while Truck parking is
 * the active category; every other list keeps the numbered row above.
 *
 * Token map (prototype → Foundation): --tp-brand → --tpl-blue, --tp-brand-dark
 * → --tpl-blue-strong, --tp-brand-light → --tpl-blue-wash, --tp-nav-dark →
 * --tpl-ink-nav, --tp-bg-gray → --tpl-surface, --tp-text-3 → --tpl-ink-muted,
 * --tp-urgent-* → --tpl-caution-* with --tpl-warn as the fill, --tp-success →
 * --tpl-go. Fractional sizes map to the integer roles (9.5 / 11 / 11.5 → 12,
 * 12.5 → 13). The buttons are the shared Button, so they keep its typography
 * rather than the prototype's uppercase 11.5px. No motion.
 */
.tp-services-page .tp-services-row.tp-services-lot {
  overflow: hidden;
  padding: 0;
  border-radius: 13px;
}

/* The prototype's card does not lift on hover, so the row's hover is undone. */
.tp-services-page .tp-services-row.tp-services-lot:hover {
  box-shadow: none;
}

.tp-services-page .tp-services-row.tp-services-lot_paid,
.tp-services-page .tp-services-row.tp-services-lot_paid:hover {
  border: 1.5px solid var(--tpl-blue);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--tpl-blue) 12%, transparent);
}

.tp-services-page .tp-services-lot__ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  background: var(--tpl-surface);
  color: var(--tpl-ink-secondary);
}

.tp-services-page .tp-services-lot_paid .tp-services-lot__ribbon {
  background: var(--tpl-blue);
  color: var(--tpl-white);
}

.tp-services-page .tp-services-lot_full .tp-services-lot__ribbon {
  background: var(--tpl-caution-wash);
  color: var(--tpl-caution-text);
}

.tp-services-page .tp-services-lot__ribbon-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tp-services-page .tp-services-lot__ribbon-price {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tp-services-page .tp-services-lot__hero {
  position: relative;
  aspect-ratio: 16 / 6.2;
  background: var(--tpl-surface);
}

.tp-services-page .tp-services-lot__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-services-page .tp-services-lot__photos {
  position: absolute;
  right: 11px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--tpl-ink-nav) 80%, transparent);
  color: var(--tpl-white);
  font-size: 12px;
  font-weight: 600;
}

a.tp-services-lot__photos {
  text-decoration: none;
}

a.tp-services-lot__photos:focus-visible {
  outline: 2px solid var(--tpl-white);
  outline-offset: 2px;
}

.tp-services-page .tp-services-lot__body {
  padding: 14px 17px 16px;
}

.tp-services-page .tp-services-lot__head {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* The lot's icon before its name, as /reserve-truck-parking/'s card. */
.tp-services-page .tp-services-lot__poi {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
}

.tp-services-page .tp-services-lot__name {
  flex: 1;
  min-width: 0;
  color: var(--tpl-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.tp-services-page a.tp-services-lot__name:hover {
  text-decoration: underline;
}

.tp-services-page .tp-services-lot__tag {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--tpl-line);
  border-radius: 4px;
  background: var(--tpl-white);
  color: var(--tpl-ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tp-services-page .tp-services-lot_paid .tp-services-lot__tag,
.tp-services-page .tp-services-lot_full .tp-services-lot__tag {
  border-color: var(--tpl-blue);
  background: var(--tpl-blue-wash);
  color: var(--tpl-blue-strong);
}

.tp-services-page .tp-services-lot__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--tpl-ink-muted);
  font-size: 13px;
}

.tp-services-page .tp-services-lot__avail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.tp-services-page .tp-services-lot__avail-label {
  color: var(--tpl-go);
  font-size: 13px;
  font-weight: 600;
}

.tp-services-page .tp-services-lot__avail.is-urgent .tp-services-lot__avail-label {
  color: var(--tpl-warn);
}

.tp-services-page .tp-services-lot__avail-note {
  color: var(--tpl-ink-muted);
  font-size: 12px;
}

.tp-services-page .tp-services-lot__bar {
  overflow: hidden;
  height: 7px;
  margin-top: 7px;
  border: 1px solid var(--tpl-line-soft);
  border-radius: 999px;
  background: var(--tpl-surface);
}

.tp-services-page .tp-services-lot__bar span {
  display: block;
  height: 100%;
  background: var(--tpl-blue);
}

.tp-services-page .tp-services-lot__bar.is-urgent span {
  background: var(--tpl-warn);
}

.tp-services-page .tp-services-lot__price {
  margin: 10px 0 0;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.tp-services-page .tp-services-lot_paid .tp-services-lot__price,
.tp-services-page .tp-services-lot_full .tp-services-lot__price {
  color: var(--tpl-blue-strong);
}

.tp-services-page .tp-services-lot__price strong {
  font-weight: 600;
}

.tp-services-page .tp-services-lot__price s {
  color: var(--tpl-ink-soft);
}

.tp-services-page .tp-services-lot__deal {
  color: var(--tpl-go);
  font-weight: 600;
}

.tp-services-page .tp-services-lot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.tp-services-page .tp-services-lot__actions .tp-site-button {
  flex: 1 1 auto;
}

/* View Location Details takes its own full-width line under the filled
   button and Save (user 2026-12-01): its label is longer than Lot details
   was, and beside them it pushed Save onto a line of its own. Same order as
   the phone sheet, where the button sits under the card. */
.tp-services-page .tp-services-lot__actions [data-services-lot-details] {
  order: 1;
  flex-basis: 100%;
}

/* The same in the map panel's foot, which gives every lot button
   `flex: 1 1 0` on the branches that still carry that rule. */
.tp-services-page .tp-services-detail__foot > .tp-services-lot__actions > [data-services-lot-details] {
  flex: 1 1 100%;
}

/* Save on a lot card (PRD phase 2 25.6): the numbered rows' 36px icon button, not a third stretched button. The rule
   above gives every shared Button in the row `flex: 1`; this one is one class more, so it wins. */
.tp-services-page .tp-services-lot__actions .tp-services-lot__save {
  flex: none;
  width: 36px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--tpl-line);
  border-radius: 4px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
}

.tp-services-page .tp-services-lot__actions .tp-services-lot__save:hover,
.tp-services-page .tp-services-lot__actions .tp-services-lot__save:focus-visible {
  background: var(--tpl-surface);
}

/* The glyph's own `flex: 0 0 18px` beats `width` in a flex row, so the basis is set too (as on `.tp-services-row__save`). */
.tp-services-page .tp-services-lot__actions .tp-services-lot__save.tp-site-button > .tp-site-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------- Unconfirmed band ---- */

/*
 * The line between the rows a filter confirmed and the rows it could not
 * judge.
 *
 * Quiet on purpose. It is not a warning and the rows under it are not worse
 * results — they are results we know less about, and a driver reading past it
 * should feel informed rather than warned off.
 */
.tp-services-page .tp-services-unconfirmed {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 14px;
}

.tp-services-page .tp-services-unconfirmed__rule {
  flex: none;
  width: 24px;
  height: 1px;
  background: var(--tpl-line);
}

.tp-services-page .tp-services-unconfirmed__note {
  margin: 0;
  color: var(--tpl-ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

/* TWO BUTTONS, EQUAL WIDTH. The design's pair: primary then Open, `gap: 7px`,
 * `margin-top: 11px`, both `flex: 1`.
 *
 * Neither is filled. The design fills the primary only for book and eta, and
 * its own unclaimed branch — the one every row here lands on — returns
 * `kind: 'call'`, whose style is the neutral outline. */
.tp-services-page .tp-services-row__actions {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

/* THE TWO ARE NOT THE SAME SIZE IN THE DESIGN SOURCE. The primary action is
   13px on 10px of padding, the secondary 11.5px on 8px — the pair reads as an
   action and its alternative rather than as two equal choices. They had been
   flattened to one 12px/9px rule for both. */
.tp-services-page .tp-services-row__call,
.tp-services-page .tp-services-row__listing {
  flex: 1;
  /* CENTRED AGAINST THE STRETCHED HEIGHT, NOT THE NATURAL ONE. The row is a
     flex container with the default `align-items: stretch`, so the shorter of
     the two buttons is pulled up to the taller one's height — and as an
     ordinary block that extra space all lands below the text, which keeps
     starting after its own padding-top. Measured: Call is 42.5px tall and
     sits centred, Check is 37px naturally, is stretched to 42.5px, and its
     label ends up 2.75px above centre.

     Centring the label inside each button is the fix rather than equalising
     the two boxes: the size difference is deliberate — see the note above on
     13px/10px against 11.5px/8px — and only the alignment was unintended. */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--tpl-white);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 140ms ease;
}

.tp-services-page .tp-services-row__call {
  padding: 10px 0;
  border: 1.5px solid var(--tpl-line);
  color: var(--tpl-ink);
  font-size: 13px;
}

.tp-services-page .tp-services-row__listing {
  padding: 8px 0;
  border: 1.5px solid var(--tpl-blue);
  color: var(--tpl-blue);
  /* Prototype: 11.5px. Named Caption role instead. */
  font-size: 12px;
}

.tp-services-page .tp-services-row__call:hover,
.tp-services-page .tp-services-row__call:focus-visible {
  background: var(--tpl-surface);
}

.tp-services-page .tp-services-row__listing:hover,
.tp-services-page .tp-services-row__listing:focus-visible {
  background: var(--tpl-blue-wash);
}

.tp-services-page .tp-services-list__note {
  margin: 18px 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--tpl-surface-alt);
  color: var(--tpl-ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.tp-services-page .tp-services-list__out {
  margin-bottom: 8px;
}

/* ------------------------------------------------------- Sponsored -------- */

.tp-services-page .tp-services-ad {
  display: block;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--tpl-line);
  border-radius: 10px;
  background: var(--tpl-surface-alt);
}

.tp-services-page .tp-services-ad__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

/* Disclosure is a heading before the entry, never an inline badge inside it. */
.tp-services-page .tp-services-ad__label {
  color: var(--tpl-ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tp-services-page .tp-services-ad__why {
  color: var(--tpl-link);
  font-size: 12px;
  text-decoration: none;
}

.tp-services-page .tp-services-ad__creative {
  position: relative;
  display: flex;
  height: 132px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 8px;
  background: var(--tpl-surface);
  text-align: center;
}

.tp-services-page .tp-services-ad__creative-note {
  max-width: 34ch;
  color: var(--tpl-ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.tp-services-page .tp-services-ad__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--tpl-ink);
  color: var(--tpl-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tp-services-page .tp-services-ad__head-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-services-page .tp-services-ad__name {
  color: var(--tpl-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.tp-services-page .tp-services-ad__rating {
  color: var(--tpl-ink-secondary);
  font-size: 13px;
}

.tp-services-page .tp-services-ad__pro {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--tpl-go-wash);
  color: var(--tpl-go-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tp-services-page .tp-services-ad__meta,
.tp-services-page .tp-services-ad__reach {
  margin-top: 5px;
  color: var(--tpl-ink-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.tp-services-page .tp-services-ad__reach {
  color: var(--tpl-ink-soft);
}

.tp-services-page .tp-services-ad__actions {
  margin-top: 10px;
}

.tp-services-page .tp-services-ad__tel {
  color: var(--tpl-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------------------------------------------------------------- Map ----- */

.tp-services-page .tp-services-map {
  position: relative;
  overflow: hidden;

  /* A FLOOR, BECAUSE THE GRID ROW IS NOT ONE.
     On desktop this column takes its height from the row, and the row takes
     its height from the list beside it. An empty list is therefore a map with
     no height — and an empty list is the search being unavailable, or matching
     nothing, which are the two moments a driver most needs to see where they
     are. The narrow breakpoints already state a height; this is the same
     promise at full width, and it costs nothing once there are rows, because
     the row is taller than the floor by then. */
  min-height: 420px;
  background: var(--tpl-surface);
}

/* The lot card (services-map.js showLotCard), drawn at its pin as the parking
   prototype draws its preview (QA #13). `left` / `top` are set by the script
   from the pin's position; the photo, when there is one, runs to the edges. */
.tp-services-page .tp-services-map__lot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 290px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  border: 1px solid var(--tpl-line);
  border-radius: 11px;
  background: var(--tpl-white);
  box-shadow: 0 6px 22px rgba(1, 25, 50, 0.22);
}

.tp-services-page .tp-services-map__lot[hidden] {
  display: none;
}

.tp-services-page .tp-services-map__lot-body {
  padding: 12px 14px 14px;
}

.tp-services-page .tp-services-map__lot-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.tp-services-page .tp-services-map__lot-name {
  flex: 1;
  min-width: 0;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 600;
}

.tp-services-page .tp-services-map__lot-price {
  flex: none;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.tp-services-page .tp-services-map__lot-close {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tpl-ink-secondary);
  font-size: 12px;
  cursor: pointer;
}

.tp-services-page .tp-services-map__lot .tp-services-lot__actions {
  margin-top: 10px;
}

.tp-services-page .tp-services-map__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-services-page .tp-services-map__caption {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border: 1px solid var(--tpl-line);
  border-radius: 6px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(1, 25, 50, 0.12);
}

/* §3.2A estimate note: the map is centred on a guess (time zone / national),
   not the driver's position. Sits at the foot of the map, plainly subordinate to
   the map itself, and reuses the same card treatment as the caption so the two
   read as one family. Tokens only. */
.tp-services-page .tp-services-map__estimate {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--tpl-line);
  border-radius: 6px;
  background: var(--tpl-white);
  color: var(--tpl-ink-muted, var(--tpl-ink));
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(1, 25, 50, 0.12);
}

.tp-services-page .tp-services-map__estimate[hidden] {
  display: none;
}

/*
 * THE MAP COLUMN WITH NO MAP IN IT — Confluence CT/4474830867 item 49.
 *
 * Centred in the column the map would have filled, on the same grey the column
 * already carries, because this is the column's own resting state and not a
 * card floating over something. No caution colour: a reader who declined
 * cookies got what they asked for, and nothing has gone wrong.
 */
.tp-services-page .tp-services-map__blocked {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--tpl-surface);
  text-align: center;
}

.tp-services-page .tp-services-map__blocked-copy {
  max-width: 34ch;
  margin: 0;
  color: var(--tpl-ink-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.tp-services-page .tp-services-map__blocked-act {
  padding: 8px 14px;
  border: 1px solid var(--tpl-line);
  border-radius: 6px;
  background: var(--tpl-white);
  color: var(--tpl-blue);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.tp-services-page .tp-services-map__blocked-act:hover {
  text-decoration: underline;
}

/*
 * THE STATIC MAP'S PIN.
 *
 * Geometry is the design source's: a 34x44 pin, the 16px glyph centred on its
 * head, and the rank in an 18px badge on its shoulder. Keep it in step with
 * pin() in services-map.js — the two draw the same marker, one out of the
 * asset files and one as an inline SVG.
 *
 * ONE MAPPED COLOUR. The badge in the design source is the pin file's own ink,
 * #0277AD — the app's POI blue, which is not a Foundation token because
 * nothing else on the website is drawn in it. This file does not declare
 * colours, so the badge takes the nearest token instead: --tpl-blue-strong is
 * #146FA3 against the source's #0277AD, a difference of about eight levels per
 * channel on an 18px disc. The live map, which draws the asset's paths itself
 * rather than through this stylesheet, keeps the exact ink. Recorded in
 * docs/services-fidelity.md.
 */
.tp-services-page .tp-services-pin {
  position: absolute;
  left: var(--tp-pin-x);
  top: var(--tp-pin-y);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -100%);
}

/* The hover is the comp's, and it is the mark that grows — not the label
   under it, which would drag the whole pin's footprint around with it. */
.tp-services-page .tp-services-pin__mark {
  position: relative;
  display: block;
  width: 34px;
  height: 44px;
  transform-origin: 50% 100%;
  transition: transform 0.15s ease;
}

.tp-services-page .tp-services-pin:hover .tp-services-pin__mark,
.tp-services-page .tp-services-pin:focus-visible .tp-services-pin__mark {
  transform: scale(1.35);
}

.tp-services-page .tp-services-pin__body {
  display: block;
  width: 100%;
  height: 100%;
}

/*
 * 38.6% of 44 is the head's centre. Written as the source writes it, so the
 * glyph stays on the head if the pin is ever scaled.
 */
.tp-services-page .tp-services-pin__glyph {
  position: absolute;
  left: 50%;
  top: 38.6%;
  display: block;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
}

/* On the shoulder, lifted off the pin by a shadow rather than cut out of it
   with a stroke. */
.tp-services-page .tp-services-pin__idx {
  position: absolute;
  top: -3px;
  right: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--tpl-blue-strong);
  color: var(--tpl-white);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(1, 25, 50, 0.25);
}

.tp-services-page .tp-services-pin__label {
  padding: 5px 9px;
  border: 1px solid var(--tpl-line);
  border-radius: 6px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(1, 25, 50, 0.2);
  white-space: nowrap;
}

/* ------------------------------------------------- Search, narrow --------- */

@media screen and (max-width: 1100px) {
  /* Below this the map moves under the list, so the page is taller than the
     viewport by design and the one-screen cap has to come off. */
  .tp-services-page.tp-services-search-page {
    height: auto;
  }

  .tp-services-page .tp-services-results {
    grid-template-columns: 200px minmax(0, 1fr);
    flex: none;
  }

  .tp-services-page .tp-services-results.is-unfiltered {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The map follows the list rather than competing with it for width. */
  .tp-services-page .tp-services-map {
    grid-column: 1 / -1;
    height: 420px;
  }

  .tp-services-page .tp-services-list {
    border-right: 0;
  }
}

@media screen and (max-width: 743px) {
  .tp-services-page .tp-services-toolbar__inner {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .tp-services-page .tp-services-toolbar__form {
    width: 100%;
  }

  .tp-services-page .tp-services-toolbar__where {
    width: auto;
    flex: 1;
  }


  .tp-services-page .tp-services-results {
    grid-template-columns: minmax(0, 1fr);
  }

  /* FILTERS ARE A DRAWER ON A PHONE (§9 移动端). The rail leaves the flow and
     waits off-canvas; the "Filters" button in the list's head opens it, and the
     ticked boxes stay visible as chips beside that button. Shown and hidden
     outright — no slide, per the motion rule. */
  .tp-services-page .tp-services-filters {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: none;
    width: min(360px, 88vw);
    border-right: 1px solid var(--tpl-line);
    background: var(--tpl-white);
  }

  .tp-services-page .tp-services-filters.is-open:not([hidden]) {
    display: block;
  }

  .tp-services-page .tp-services-filters__close {
    display: inline-flex;
  }

  .tp-services-page .tp-services-filters__backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 39;
    display: block;
    background: var(--tpl-ink);
    opacity: 0.4;
  }

  .tp-services-page .tp-services-filterbar:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .tp-services-page .tp-services-filterbar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tp-services-page .tp-services-filterchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--tpl-line);
    border-radius: 999px;
    background: var(--tpl-surface-alt);
    color: var(--tpl-ink);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
  }

  .tp-services-page .tp-services-filters__items {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .tp-services-page .tp-services-map {
    height: 320px;
  }
}


/* ------------------------------------------- Search, application state ---- */

/* The banner shown when a position was asked for and refused. */
.tp-services-page .tp-services-gps {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--tpl-caution-border);
  border-radius: 10px;
  background: var(--tpl-caution-wash);
}

.tp-services-page .tp-services-gps p {
  margin: 0;
  color: var(--tpl-caution-text);
  font-size: 13px;
  line-height: 1.6;
}

.tp-services-page .tp-services-gps button {
  margin-top: 10px;
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  background: var(--tpl-ink);
  color: var(--tpl-white);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tp-services-page button.tp-services-row__name {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

/* R2 "Last viewed" (requirement page 2026-11-19, prototype `.row.is-last`):
   the card the panel just showed, marked when the list comes back. */
.tp-services-page .tp-services-row__last {
  display: block;
  width: max-content;
  margin: 0 0 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--tpl-blue-wash);
  color: var(--tpl-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.tp-services-page .tp-services-row.is-open {
  border-color: var(--tpl-blue);
}

/* Suggestions under the query field. */
/* Both boxes anchor the same panel; see services-suggest.js. */
.tp-services-page .tp-services-toolbar__where,
.tp-services-page .tp-services-search__field {
  position: relative;
}

/*
 * THE SUGGESTION PANEL, AND IT IS TWO PANELS IN THE SOURCE.
 *
 * One script builds it for both hosts, which is right — but the design source
 * draws it differently in each, and this file had collapsed the two into one
 * shape plus an override that only moved it:
 *
 *   results toolbar (proto @218654)  left:0; width:320px; radius 12;
 *                                    shadow 0 16px 44px rgba(1,25,50,.24)
 *   hub search card (proto @98757)   left:0; right:0 — the field's own width;
 *                                    radius 10; shadow …,.28
 *
 * The base below is the toolbar's, because that host (`__where`) is 230px wide
 * and a panel tied to it would be too narrow to read. The hub's is stated
 * beside its field, where the wider shape belongs.
 *
 * `padding: 7px 0` rather than `8px`: the source insets its rows by 15px each
 * and leaves the container's sides at zero, so a highlighted row runs the full
 * width of the panel instead of floating inside a margin.
 */
.tp-services-page .tp-services-suggest {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  /* Never wider than the viewport — the card is narrow at 390px and a fixed
     320px panel would hang off the side of the screen. */
  width: 320px;
  max-width: calc(100vw - 32px);
  flex-direction: column;
  padding: 7px 0;
  border: 1px solid var(--tpl-line);
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 16px 44px rgba(1, 25, 50, 0.24);
}

.tp-services-page .tp-services-suggest__geo,
.tp-services-page .tp-services-suggest__item {
  display: flex;
  /* `baseline`, as the source has it: the place and its kind sit on one line
     of type rather than being centred against each other, so a two-line label
     keeps its first line level with the word beside it. */
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
  /* 15px each side, and no radius: the rows are full-bleed against a container
     whose own sides are zero, so a highlight reaches the panel edge. */
  padding: 8px 15px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--tpl-ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
}

/* The one row that is an action rather than an answer: centred, because it
   pairs a 15px icon with its label rather than two runs of text. */
.tp-services-page .tp-services-suggest__geo {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 15px;
  color: var(--tpl-blue);
  /* 13.5px in the source; the named Body S role is 13. */
  font-weight: 500;
}

/* The crosshair takes the row's own colour rather than carrying one. */
.tp-services-page .tp-services-suggest__geo .tp-site-icon {
  flex: none;
  color: currentColor;
}

.tp-services-page .tp-services-suggest__geo .tp-site-icon {
  fill: currentColor;
}

.tp-services-page .tp-services-suggest__geo:hover,
.tp-services-page .tp-services-suggest__item:hover {
  background: var(--tpl-surface-alt);
}

/* THE SEPARATOR IS ITS OWN ELEMENT, as it is in the source — a 1px rule with
   5px of air on each side, not a border hung off the row above it. It carries
   `--tp-border-2`, the lighter of the two lines: it divides the action from the
   answers inside one panel, which is a smaller job than the panel's own edge.

   This rule existed and matched the source already, and nothing rendered it —
   services-suggest.js drew the border instead. The script builds it now. */
.tp-services-page .tp-services-suggest__rule {
  height: 1px;
  margin: 5px 0;
  background: var(--tpl-line-soft);
}

.tp-services-page .tp-services-suggest__label {
  padding: 5px 15px 4px;
  color: var(--tpl-ink-soft);
  /* ⚠️ 9.5px in the source, and it stays 12 here. The named roles are
     integers and Caption is the smallest of them; shrinking a tracked
     all-caps label below it is not a density tool this design system offers.
     Recorded as an intentional deviation — see docs/services-fidelity.md. */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* THE APP'S TWO LINES: the name over where it is. The text column takes the
   row's width so a long address ellipsises before it reaches the kind. */
.tp-services-page .tp-services-suggest__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tp-services-page .tp-services-suggest__title {
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 500;
}

.tp-services-page .tp-services-suggest__address {
  overflow: hidden;
  color: var(--tpl-ink-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The kind sits in the Caption role beside the place, not the faint one: the
   source spends `--tp-text-4` on separators and nothing else. */
.tp-services-page .tp-services-suggest__kind {
  color: var(--tpl-ink-soft);
  font-size: 12px;
}

/* The listbox itself. Built by script, so these only ever apply with JS. */
.tp-services-page .tp-services-suggest__list {
  max-height: 280px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

/*
 * Keyboard and pointer share one highlight. Two different-looking "current"
 * rows in one list is two things to explain and one of them will be wrong.
 */
.tp-services-page .tp-services-suggest__item[aria-selected='true'] {
  background: var(--tpl-surface-alt);
}

.tp-services-page .tp-services-suggest__status {
  margin: 0;
  padding: 8px 10px;
  color: var(--tpl-ink-soft);
  font-size: 13px;
}

/* The hub's card sits on the dark hero; its panel needs the same lift the
   toolbar's has, and the field's own divider must not show through it. */
/*
 * THE HUB'S PANEL IS THE FIELD'S OWN WIDTH — proto @98757 `left:0; right:0`.
 *
 * It used to inherit the toolbar's fixed 320px and get nudged 14px to the
 * right, so on a card whose Where field is several hundred pixels wide the
 * panel sat narrow and inset, with the field's right half empty above it. That
 * is the difference visible in the page owner's screenshot.
 *
 * `right: 0` with `width: auto` rather than `width: 100%`: the host is the
 * field `<label>`, and `100%` would measure its content box while `left/right`
 * span the padding box the source's own field also spans.
 *
 * Radius 12 and `0 16px 40px` at 20%: the design canvas's Where panel
 * (Services-Hub-Hero, iteration 2), the same as the shared rule above.
 */
.tp-services-page .tp-services-search__field .tp-services-suggest {
  /* 8px UNDER THE FIELD (design canvas, iteration 2: `top: calc(100% + 8px)`
   * from 810 up). The field keeps 12px of card under it, so the panel's top
   * edge lies over the card's lower edge, as the canvas draws it. Until
   * 2026-11-06 it hung clear of the card (`100% + 14px + 6px`, proto @98757);
   * the user chose the canvas (2026-11-06). */
  top: calc(100% + 8px);
  /* 420px AT EVERY WIDTH (UI walkthrough QA-17, 2026-11-11): it was the field's
     own 443px from 1024 up. Never past the field less 24px on a narrow card. */
  right: auto;
  left: 0;
  width: 420px;
  max-width: calc(100% - 24px);
  border-radius: 12px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--tpl-ink) 20%, transparent);
}

/* Stacked fields have no margin, so the field's own bottom is where the next row
   starts. Canvas: 4px under it. */
@media screen and (max-width: 1023px) {
  .tp-services-page .tp-services-search__field .tp-services-suggest {
    top: calc(100% + 4px);
  }
}

/* The detail panel, over the map. */
.tp-services-page .tp-services-panel {
  position: absolute;
  z-index: 10;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 16px 18px;
  border: 1px solid var(--tpl-line);
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 12px 40px rgba(1, 25, 50, 0.18);
}

.tp-services-page .tp-services-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tp-services-page .tp-services-panel__name {
  margin: 0;
  color: var(--tpl-ink);
  font-size: 16px;
  font-weight: 600;
}

.tp-services-page .tp-services-panel__close {
  flex: none;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--tpl-ink-soft);
  cursor: pointer;
}

.tp-services-page .tp-services-panel__close .tp-site-icon {
  fill: currentColor;
}

.tp-services-page .tp-services-panel__meta,
.tp-services-page .tp-services-panel__reach,
.tp-services-page .tp-services-panel__note {
  margin: 6px 0 0;
  color: var(--tpl-ink-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.tp-services-page .tp-services-panel__note {
  margin-top: 12px;
  color: var(--tpl-ink-soft);
  font-size: 12px;
}

.tp-services-page .tp-services-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* A pin is a control now. */
.tp-services-page button.tp-services-pin {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/*
 * `display` on these beats the reset's [hidden] rule on specificity, so they
 * would stay laid out while marked hidden — visible, and in the case of the
 * panels, swallowing clicks on what is behind them. Restore the attribute's
 * meaning for every element on this page that uses it.
 */
.tp-services-page [hidden] {
  display: none !important;
}

/* The live map fills the column the static image otherwise would. */
.tp-services-page .tp-services-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/*
 * THE LIVE MAP'S PIN, AND THE HOVER BOTH MAPS SHARE.
 *
 * services-map.js draws this node through an OverlayView rather than a Marker
 * precisely so these three declarations can exist: the comp gives the pin
 * `transform-origin: 50% 100%`, `scale(1.35)` and `transition: transform .15s
 * ease`, and a Marker is an image with nothing to hang them on.
 *
 * The box is the comp's 34x44 pin, so `50% 100%` is the same point here as it
 * is there — bottom centre, just under the tip, which is what makes the pin
 * grow out of the map rather than off it. The image is larger than the box on
 * purpose: the exported document is 48x56 so the rank badge and the two
 * shadows are not clipped, and it is offset by the -4,-8 its viewBox opens
 * out to.
 */
/* A CLUSTER on the live map (services-map.js, 2026-10-14): how many results
   sit under it, with the pin's white rim. Three sizes by the count; no hover
   state beyond the cursor. Dark ink, not the brand blue (2026-11-09): the
   pins are the app's now, and a blue disc among the blue fuel / parking /
   hotel pins read as one more pin, beside the charcoal repair ones as the
   loudest mark on the map. The brand blue stays with the radius ring. The
   shadow is the pins' own (dy 1, sigma 1.5, 30%). */
.tp-services-page .tp-services-map__cluster {
  position: absolute;
  /* Over the free stores' dots, under a paid pin (canvas round 41: dot 1,
     bubble 2, paid 4, hover 6, selected 7; here paid is LISTING_Z 5 and a
     linked pin 10). */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 2px solid var(--tpl-white);
  border-radius: 999px;
  background: var(--tpl-ink);
  box-shadow: 0 1px 3px rgba(1, 25, 50, 0.3);
  color: var(--tpl-white);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
}

.tp-services-page .tp-services-map__cluster_s {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.tp-services-page .tp-services-map__cluster_m {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.tp-services-page .tp-services-map__cluster_l {
  width: 46px;
  height: 46px;
  font-size: 14px;
}

/* THE DOT SCHEME'S BUBBLE (canvas round 41, Rui Wang 2026-11-23), only on a
   search for one of the service picker's types (services-map.js dotScheme,
   user 2026-11-24): solid grey #5c6873, which has no token -- the nearest grey
   role is --tpl-ink-secondary (#525c66), design system 3.2, ledger 97 -- at
   30 / 36 / 42px with 11 / 12 / 13px type. Every other search keeps the dark
   bubble above. */
.tp-services-page .tp-services-map__cluster_dots {
  background: var(--tpl-ink-secondary);
}

.tp-services-page .tp-services-map__cluster_dots.tp-services-map__cluster_s {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.tp-services-page .tp-services-map__cluster_dots.tp-services-map__cluster_m {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.tp-services-page .tp-services-map__cluster_dots.tp-services-map__cluster_l {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.tp-services-page .tp-services-map__cluster:focus-visible {
  outline: 2px solid var(--tpl-ink);
  outline-offset: 2px;
}

/* THE TOP OF A LIST WINDOW THAT DOES NOT START AT THE TOP: where it is, a
   page back, or straight back to the nearest. */
.tp-services-page .tp-services-earlier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 12px;
}

.tp-services-page .tp-services-earlier__note {
  color: var(--tpl-ink-secondary);
  font-size: 13px;
}

.tp-services-page .tp-services-earlier__nearest {
  padding: 0;
  border: 0;
  background: none;
  color: var(--tpl-blue);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.tp-services-page .tp-services-map__pin {
  position: absolute;
  width: 34px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform 0.15s ease;
}

/* The driver's own position (services-map.js drawSelf; PRD-20 v8 §5.3): a
   brand-blue dot on a white rim, centred on the point, under the pins and
   not a target. Still: it marks where the driver is, nothing more. */
.tp-services-page .tp-services-map__self {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--tpl-white);
  border-radius: 50%;
  background: var(--tpl-blue);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tpl-ink) 20%, transparent), 0 1px 4px color-mix(in srgb, var(--tpl-ink) 30%, transparent);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.tp-services-page .tp-services-map__pin img:not(.tp-services-map__saved-badge) {
  position: absolute;
  top: -8px;
  left: -4px;
  display: block;
  width: 48px;
  height: 56px;
}

.tp-services-page .tp-services-map__pin:hover,
.tp-services-page .tp-services-map__pin:focus-visible,
.tp-services-page .tp-services-map__pin.is-linked {
  /* Match the live map: the pin and its badges grow together at 1.7x. */
  transform: scale(1.7);
}

/* A pin under the pointer stands over the paid pins and the bubbles (canvas
   round 41: hover 6); a linked one keeps its own 10. The inline z-index is
   the script's, hence the weight. */
.tp-services-page .tp-services-map__pin:not(.is-linked):hover,
.tp-services-page .tp-services-map__pin:not(.is-linked):focus-visible {
  z-index: 6 !important;
}

/*
 * A FREE STORE'S DOT (canvas Services-Search round 41, "Services 地图 Pin
 * 主次" 2026-11-20; Rui Wang 2026-11-23): 12px, ink at 72% with a 1.5px white
 * rim, its centre on the store -- the pin's tip, PIN_TIP 17,40 in this box.
 * The pin itself is hidden and takes no pointer; the dot and an 18px ring
 * round it do, so hovering the dot is hovering the pin, which then draws in
 * full (and grown, as any hovered pin). services-map.js sets .is-dot.
 */
.tp-services-page .tp-services-map__pin.is-dot:not(:hover):not(:focus-visible):not(.is-linked) {
  pointer-events: none;
}

.tp-services-page .tp-services-map__pin.is-dot:not(:hover):not(:focus-visible):not(.is-linked) img {
  visibility: hidden;
}

.tp-services-page .tp-services-map__pin.is-dot:not(:hover):not(:focus-visible):not(.is-linked)::before,
.tp-services-page .tp-services-map__pin.is-dot:not(:hover):not(:focus-visible):not(.is-linked)::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: auto;
}

.tp-services-page .tp-services-map__pin.is-dot:not(:hover):not(:focus-visible):not(.is-linked)::before {
  top: 34px;
  left: 11px;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--tpl-white);
  background: color-mix(in srgb, var(--tpl-ink) 72%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--tpl-ink) 25%, transparent);
}

.tp-services-page .tp-services-map__pin.is-dot:not(:hover):not(:focus-visible):not(.is-linked)::after {
  top: 31px;
  left: 8px;
  width: 18px;
  height: 18px;
}

/* A paid listing's star is 18px on the pin's top-right, 2px out.
   It scales only with the pin, just like the reservable parking calendar. */
.tp-services-page .tp-services-map__star {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Saved corner badge (app ic_corner_badge_saved; CMO-93 phase 2 Services search).
   With a paid listing star the badges line right to left: star in the corner,
   saved beside it. Both badges keep their offsets throughout the animation. */
.tp-services-page .tp-services-map__saved-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  left: auto;
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
}

.tp-services-page .tp-services-map__saved-badge.is-second {
  right: 14px;
}

/* Optical alignment with the paid listing star; the bookmark paints higher. */
.tp-services-page .tp-services-map__pin.is-listing .tp-services-map__saved-badge.is-second {
  top: -1px;
}

/* The paid form's price, hung under the pin's tip in the same ink as the pin
   (`--tpl-ink`, which services-map.js reads for the marker body). */
.tp-services-page .tp-services-map__price,
.tp-services-page .tp-services-pin__price {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--tpl-ink);
  color: var(--tpl-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.tp-services-page .tp-services-map__price {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* The static fallback's pin body is a fixed asset, so the paid form there is the
   price chip and the rank badge in the paid ink. */
.tp-services-page .tp-services-pin_paid .tp-services-pin__idx {
  background: var(--tpl-ink);
}

/*
 * TRUCK PARKING PINS — the prototype's three forms, on both maps. Set only on
 * rows the server drew as parking cards (Truck parking active), so every other
 * marker is untouched. Paid: the asset's pin at full size with a "$" coin and a
 * brand-dark chip. Free / on-site and full: the 26x34 pin, greyed by the
 * prototype's own filters, with a white chip. No rank on any of them.
 */
.tp-services-page .tp-services-map__pin.is-lot-free,
.tp-services-page .tp-services-map__pin.is-lot-onsite,
.tp-services-page .tp-services-map__pin.is-lot-full {
  width: 26px;
  height: 34px;
}

.tp-services-page .tp-services-map__pin.is-lot-free img:not(.tp-services-map__saved-badge),
.tp-services-page .tp-services-map__pin.is-lot-onsite img:not(.tp-services-map__saved-badge),
.tp-services-page .tp-services-map__pin.is-lot-full img:not(.tp-services-map__saved-badge) {
  top: -6px;
  left: -3px;
  width: 37px;
  height: 43px;
}

.tp-services-page .tp-services-map__pin.is-lot-free img:not(.tp-services-map__saved-badge),
.tp-services-page .tp-services-map__pin.is-lot-onsite img:not(.tp-services-map__saved-badge),
.tp-services-page .tp-services-pin_lot-free .tp-services-pin__mark img,
.tp-services-page .tp-services-pin_lot-onsite .tp-services-pin__mark img,
.tp-services-page .tp-services-map__legend-pin_free {
  filter: grayscale(0.85) brightness(1.04);
}

/* A host that hands the map its own lot files (`data-map-lot-pins`: the app's
   purple paid, blue not-reservable and orange full "P", user 2026-11-24) places each file so
   its tip sits on the overlay's — paid 34x44 box, tip (17, 40); free, on site
   and full 26x34 box, tip (13, 31) — and takes none of the greying above. */
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-paid img:not(.tp-services-map__saved-badge) {
  top: -4px;
  left: 0;
  width: 38px;
  height: 48px;
}

.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-free img:not(.tp-services-map__saved-badge),
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-onsite img:not(.tp-services-map__saved-badge),
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-full img:not(.tp-services-map__saved-badge) {
  top: -9px;
  left: -4px;
  width: 34px;
  height: 44px;
  filter: none;
}

/* Keep the app parking assets' 34×44 layout (CMO-93). */
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-paid,
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-free,
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-onsite,
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-full {
  width: 34px;
  height: 44px;
}

/* Parking badges start at the upper-right shoulder, outside the P glyph. */
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-free .tp-services-map__saved-badge,
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-onsite .tp-services-map__saved-badge,
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-full .tp-services-map__saved-badge {
  top: -8px;
  right: -3px;
}

/* Unreservable blue P: align the bookmark with the parking pin's top shoulder. */
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-free .tp-services-map__saved-badge {
  top: -12px;
  right: 0px;
}

/* The purple asset already draws the calendar in the rightmost slot.
   Keep the bookmark in the next slot to its left, above the P. */
.tp-services-page .tp-services-map[data-map-lot-pins] .tp-services-map__pin.is-lot-paid .tp-services-map__saved-badge {
  top: -4.7px;
  right: 13px;
}

.tp-services-page .tp-services-map__legend-icon {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
}

.tp-services-page .tp-services-map__pin.is-lot-full img:not(.tp-services-map__saved-badge),
.tp-services-page .tp-services-pin_lot-full .tp-services-pin__mark img,
.tp-services-page .tp-services-map__legend-pin_full {
  filter: grayscale(1) brightness(0.92);
}

.tp-services-page .tp-services-map__pin[class*="is-lot-"] .tp-services-map__price,
.tp-services-page .tp-services-pin__chip {
  padding: 4px 8px;
  border: 1px solid var(--tpl-line);
  border-radius: 5px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(1, 25, 50, 0.26);
}

.tp-services-page .tp-services-map__pin[class*="is-lot-"] .tp-services-map__price {
  top: 47px;
}

.tp-services-page .tp-services-map__pin.is-lot-free .tp-services-map__price,
.tp-services-page .tp-services-map__pin.is-lot-onsite .tp-services-map__price,
.tp-services-page .tp-services-map__pin.is-lot-full .tp-services-map__price {
  top: 37px;
}

.tp-services-page .tp-services-map__pin.is-lot-paid .tp-services-map__price,
.tp-services-page .tp-services-pin_lot-paid .tp-services-pin__chip {
  border-color: var(--tpl-blue-strong);
  background: var(--tpl-blue-strong);
  color: var(--tpl-white);
}

.tp-services-page .tp-services-map__pin.is-lot-full .tp-services-map__price,
.tp-services-page .tp-services-pin_lot-full .tp-services-pin__chip {
  color: var(--tpl-caution-text);
}

/* The static map's lot pins: the same forms, out of the asset files. */
.tp-services-page .tp-services-pin_lot {
  gap: 3px;
}

.tp-services-page .tp-services-pin_lot .tp-services-pin__glyph {
  width: 14px;
  height: 14px;
}

.tp-services-page .tp-services-pin_lot-free .tp-services-pin__mark,
.tp-services-page .tp-services-pin_lot-onsite .tp-services-pin__mark,
.tp-services-page .tp-services-pin_lot-full .tp-services-pin__mark {
  width: 26px;
  height: 34px;
}

.tp-services-page .tp-services-pin_lot-free .tp-services-pin__glyph,
.tp-services-page .tp-services-pin_lot-onsite .tp-services-pin__glyph,
.tp-services-page .tp-services-pin_lot-full .tp-services-pin__glyph {
  width: 11px;
  height: 11px;
}

.tp-services-page .tp-services-pin__coin,
.tp-services-page .tp-services-map__legend-coin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--tpl-white);
  border-radius: 999px;
  background: var(--tpl-ink-nav);
  color: var(--tpl-white);
  font-weight: 700;
}

.tp-services-page .tp-services-pin__coin {
  top: -5px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  font-size: 10px;
}

/* "Parking on this map" — the prototype's key, bottom-left of the map. */
.tp-services-page .tp-services-map__legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--tpl-line);
  border-radius: 10px;
  background: var(--tpl-white);
  box-shadow: 0 4px 16px rgba(1, 25, 50, 0.14);
}

/* Above the estimate note when that is showing, rather than under it. */
.tp-services-page .tp-services-map__estimate:not([hidden]) ~ .tp-services-map__legend {
  bottom: 64px;
}

.tp-services-page .tp-services-map__legend-title {
  color: var(--tpl-ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tp-services-page .tp-services-map__legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--tpl-ink-secondary);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.tp-services-page .tp-services-map__legend-pin {
  position: relative;
  display: block;
  flex: none;
  width: 17px;
  height: 22px;
}

.tp-services-page .tp-services-map__legend-pin img {
  display: block;
  width: 100%;
  height: 100%;
}

.tp-services-page .tp-services-map__legend-pin .tp-services-map__legend-glyph {
  position: absolute;
  left: 50%;
  top: 38.6%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
}

.tp-services-page .tp-services-map__legend-coin {
  top: -4px;
  right: -5px;
  width: 11px;
  height: 11px;
  border-width: 1px;
  font-size: 8px;
}

/* The caption sits over the map, so it has to outrank the map's own controls. */
.tp-services-page [data-services-map="live"] .tp-services-map__caption {
  z-index: 2;
}

/*
 * A pin that grows on hover is explaining which pin the cursor is on, so the
 * size stays and only the travel between the two sizes goes.
 */
@media (prefers-reduced-motion: reduce) {
  .tp-services-page .tp-services-map__pin,
  .tp-services-page .tp-services-pin__mark {
    transition: none;
  }
}

/* ------------------------------------------------------------------ CSR -- */

/*
 * The results arrive from a fetch, so the column has three states rather than
 * one: waiting, answered, and unreachable.
 */

/* Waiting. It holds the column open and says it is working — and claims
 * nothing else. A skeleton shaped like "5 results within 50 mi" before
 * anything has been asked is a lie with an animation over it. */
/*
 * FULL COLUMN, NOT A HEADER AND THEN NOTHING. The template renders more cards
 * than fit and this clips them, so the placeholder reaches the bottom of the
 * list at any viewport height. Without the clip the extra cards would lengthen
 * the column and give the loading state a scrollbar the answer does not have.
 */
.tp-services-page .tp-services-skeleton {
  display: flex;
  height: 100%;
  flex-direction: column;
}

/*
 * FULL COLUMN, NOT A HEADER AND THEN NOTHING. The template renders more cards
 * than fit and this clips them, so the placeholder reaches the bottom of the
 * list at any viewport height. Without the clip the extra cards would lengthen
 * the column and give the loading state a scrollbar the answer does not have.
 */
.tp-services-page .tp-services-skeleton__cards {
  display: block;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

/* The result card's own geometry — see .tp-services-row. */
.tp-services-page .tp-services-skeleton__card {
  display: block;
  padding: 14px 15px;
  border: 1px solid var(--tpl-line);
  border-radius: 12px;
  background: var(--tpl-white);
  animation: tp-services-skeleton 1.1s ease-in-out infinite;
}

.tp-services-page .tp-services-skeleton__card + .tp-services-skeleton__card {
  margin-top: 10px;
}


/* The rank dot, which is the one shape on the card that is never text. */

.tp-services-page .tp-services-skeleton__line {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: var(--tpl-surface-alt);
}

/* Name and dot are a shade stronger: they are what the eye lands on first in
   the real card, and the placeholder keeps that order. */





/*
 * The design source's own 1.1s breath. It explains one thing — that the page is
 * still working — and stops at opacity; nothing moves, nothing resizes.
 */
@keyframes tp-services-skeleton {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-services-page .tp-services-skeleton__card {
    animation: none;
  }
}

/* Below the cards and always in view: the clip above never reaches it. */
.tp-services-page .tp-services-skeleton__say {
  margin: 16px 0 0;
  flex: none;
  color: var(--tpl-ink-secondary);
  font-size: 14px;
}

/*
 * Answered, and a new question asked before the reply.
 *
 * THE COLUMN GOES BACK TO THE SKELETON. It used to keep the previous answer on
 * screen at 55% opacity, on the reasoning that clearing it on every keystroke
 * makes the page flash. The flash is real but the cure was worse: a dimmed list
 * is still a list, and after changing the radius from 50 to 80 the rows on
 * screen belonged to a search nobody was running any more. AGENTS.md: never
 * keep old target data visible while a new target loads.
 *
 * The flash is handled where it belongs instead — services-search.js debounces
 * the ask, so a driver typing never reaches the request at all, and Show more
 * appends rather than replacing.
 */

/* Unreachable. Only the retry needs a control; the copy is the empty box. */
.tp-services-page .tp-services-retry {
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid var(--tpl-line);
  border-radius: 8px;
  background: var(--tpl-surface);
  color: var(--tpl-ink);
  font: inherit;
  cursor: pointer;
}

/* The static map's pins arrive with the results that placed them. The wrapper
 * covers exactly the box they were already positioned against, so the
 * percentages on each pin mean what they always meant. */
.tp-services-page .tp-services-map__pins {
  position: absolute;
  inset: 0;
}

/* One more page of the same answer. */
.tp-services-page .tp-services-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 4px;
}

.tp-services-page .tp-services-more__btn {
  padding: 9px 18px;
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  background: var(--tpl-white);
  color: var(--tpl-blue);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.tp-services-page .tp-services-more__btn:hover {
  border-color: var(--tpl-blue);
}

.tp-services-page .tp-services-more__note {
  color: var(--tpl-ink-soft);
  font-size: 12px;
}

/* The empty state's own action — ask for a position, or ask again. */
.tp-services-page .tp-services-empty__act {
  margin-top: 12px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--tpl-blue);
  color: var(--tpl-white);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

/* ------------------------------------------------------------ buttons --- */

/*
 * THE CANVAS'S OWN BUTTONS, ON THE SHARED RENDERER — page owner, 2026-10-08.
 *
 * Markup, semantics, focus ring and the reduced-motion rule still come from
 * components.site.button; only the drawing is the Services tree's. That is a
 * deliberate exception to AGENTS.md's Button invariant ("page variants may
 * not change typography, radius…"), taken on the owner's instruction to match
 * TP Services B.dc.html without touching the shared component. Opt-in by
 * class (`className` on components.site.button), so a Services button that
 * does not ask for it keeps the shared drawing. First used on the corridor
 * page, then lifted here for Top rated. Recorded in docs/services-fidelity.md
 * §57.2 and §58.
 *
 * Three classes beat the shared `.tp-site-chrome .tp-site-button_variant-*`
 * (two classes, plus the same pseudo-class on hover).
 */
.tp-services-page .tp-site-button.tp-services-btn {
  height: auto;
  min-height: 0;
  border-radius: 6px;
  /* Source: 500 11.5–12px, uppercase, .04em. Caption 12. */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}

/* `All at this exit`: white, 1.5px brand outline, brand text, 8px 14px. */
.tp-services-page .tp-site-button.tp-services-btn_outline,
.tp-services-page .tp-site-button.tp-services-btn_outline:visited {
  border: 1.5px solid var(--tpl-blue);
  padding: 8px 14px;
  background: var(--tpl-white);
  color: var(--tpl-blue);
}

/* `Get ETA`: brand fill, no border, 11px 20px. */
.tp-services-page .tp-site-button.tp-services-btn_fill,
.tp-services-page .tp-site-button.tp-services-btn_fill:visited {
  border: 0;
  padding: 11px 20px;
  background: var(--tpl-blue);
  color: var(--tpl-white);
}

/* `Request a quote`: the canvas's nav-dark fill (--tp-nav-dark #05101C is the
   --tpl-ink-nav role), for a shop that quotes rather than books. */
.tp-services-page .tp-site-button.tp-services-btn_dark,
.tp-services-page .tp-site-button.tp-services-btn_dark:visited {
  border: 0;
  padding: 11px 20px;
  background: var(--tpl-ink-nav);
  color: var(--tpl-white);
}

/* The phone number: white, 1px line, ink, sentence case, 9px 18px. */
.tp-services-page .tp-site-button.tp-services-btn_plain,
.tp-services-page .tp-site-button.tp-services-btn_plain:visited {
  border: 1px solid var(--tpl-line);
  padding: 9px 18px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
  letter-spacing: 0;
  text-transform: none;
}

/* HOVER — page owner, 2026-10-08. The canvas draws none; the owner asked for
   one. It is the shared button's own vocabulary, so the page reads like the
   rest of the site: the outline buttons take the blue wash under a stronger
   blue, the fill darkens to the pressed blue. Colour only — no lift, shadow,
   offset or scale (AGENTS.md: UI motion and polish). Keyboard focus shows the
   same state, as the shared button does. */
.tp-services-page .tp-site-button.tp-services-btn {
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.tp-services-page .tp-site-button.tp-services-btn_outline:hover,
.tp-services-page .tp-site-button.tp-services-btn_outline:focus-visible,
.tp-services-page .tp-site-button.tp-services-btn_plain:hover,
.tp-services-page .tp-site-button.tp-services-btn_plain:focus-visible {
  border-color: var(--tpl-blue-strong);
  background: var(--tpl-blue-wash);
  color: var(--tpl-blue-strong);
}

.tp-services-page .tp-site-button.tp-services-btn_fill:hover,
.tp-services-page .tp-site-button.tp-services-btn_fill:focus-visible {
  background: var(--tpl-blue-strong);
  color: var(--tpl-white);
}

/* The dark fill cannot darken further; it lifts to the raised dark surface. */
.tp-services-page .tp-site-button.tp-services-btn_dark:hover,
.tp-services-page .tp-site-button.tp-services-btn_dark:focus-visible {
  background: var(--tpl-surface-dark);
  color: var(--tpl-white);
}

@media (prefers-reduced-motion: reduce) {
  .tp-services-page .tp-site-button.tp-services-btn {
    transition: none;
  }
}


/* ===========================================================================
 * THE SERVICE AND WITHIN CONTROLS — Services 三期 需求 1 (Confluence 4621074441
 * §3; canvas "Trucker Services" › Services-Hub-Hero / -Service-Panel-810 /
 * -Service-Panel-390, 2026-11-03). Drawn by services-category.js over the two
 * native selects on the card; the selects stay in the DOM as the form's value
 * carriers (visually hidden below), so a page without the script keeps the
 * native optgroup control.
 *
 * Canvas values mapped to roles: the panel's 12px radius, 1px line and
 * 0 16px 40px shadow; group titles Caption (12px, uppercase; canvas 11px);
 * item titles Body (16/500; canvas 15); descriptions Body Small (14; canvas
 * 13); the picked item on --tpl-blue-wash, hover on --tpl-surface. No hex.
 * ======================================================================== */

/* The select stays — hidden, not removed. Stacked under the button it hands
   the form its value from; aria-hidden and tabindex=-1 take it out of the
   accessibility tree and the tab order. */
.tp-services-page .tp-services-search__field select.is-enhanced {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
}

/* ---- the two buttons: the card's own type, the card's own chevron ---- */

.tp-services-page .tp-services-catpick,
.tp-services-page .tp-services-radpick {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-left: -2px;
  padding: 0 26px 0 0;
  border: 0;
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 4px center;
  background-repeat: no-repeat;
  background-size: 17px 17px;
  color: var(--tpl-ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  text-align: left;
  transition: background-image 140ms ease;
}

/* Same step as the Where input below 810: 18/28. */
@media screen and (max-width: 809px) {
  .tp-services-page .tp-services-catpick,
  .tp-services-page .tp-services-radpick {
    font-size: 18px;
    line-height: 28px;
  }
}

.tp-services-page .tp-services-search__field.is-open .tp-services-catpick,
.tp-services-page .tp-services-search__field.is-open .tp-services-radpick {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
}

.tp-services-page .tp-services-catpick__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The placeholder reads like the Where box's: same --tpl-ink-soft, regular. */
.tp-services-page .tp-services-catpick:not(.has-value) .tp-services-catpick__text {
  color: var(--tpl-ink-soft);
  font-weight: 400;
}

/* Canvas Selected state: the count beside the title. Caption on blue-wash. */
.tp-services-page .tp-services-catpick__count {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tpl-blue-wash);
  color: var(--tpl-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.tp-services-page .tp-services-catpick:focus-visible,
.tp-services-page .tp-services-radpick:focus-visible {
  outline: 2px solid var(--tpl-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- the service panel ---- */

.tp-services-page .tp-services-search {
  /* The service panel's containing block: see .tp-services-catpanel. */
  position: relative;
}

.tp-services-page .tp-services-catpanel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--tpl-ink) 8%, transparent);
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 16px 40px rgba(1, 25, 50, 0.24);
  color: var(--tpl-ink);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.tp-services-page .tp-services-catpanel[hidden],
.tp-services-page .tp-services-catpanel__backdrop[hidden],
.tp-services-page .tp-services-catpanel__results[hidden],
.tp-services-page .tp-services-catpanel__groups[hidden],
.tp-services-page .tp-services-catpanel__empty[hidden],
.tp-services-page .tp-services-catpanel__meta[hidden],
.tp-services-page .tp-services-catpanel__clear[hidden],
.tp-services-page .tp-services-catpick__count[hidden] {
  display: none;
}

/* Phone-only chrome of the sheet; hidden above the phone breakpoint. */
.tp-services-page .tp-services-catpanel__head,
.tp-services-page .tp-services-catpanel__backdrop,
.tp-services-page .tp-services-radpanel__head,
.tp-services-page .tp-services-radpanel__backdrop {
  display: none;
}

/* Canvas: not a boxed field but a 56px strip across the panel's top edge,
   ruled underneath, the lens 20px. */
.tp-services-page .tp-services-catpanel__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  margin: -16px -16px 0;
  padding: 0 16px 0 24px;
  border-bottom: 1px solid var(--tpl-line-soft);
}

.tp-services-page .tp-services-catpanel__search-icon {
  display: inline-flex;
  flex: none;
  color: var(--tpl-ink-muted);
}

.tp-services-page .tp-services-catpanel__search-icon .tp-site-icon,
.tp-services-page .tp-services-catpanel__clear .tp-site-icon,
.tp-services-page .tp-services-catpanel__close .tp-site-icon,
.tp-services-page .tp-services-catgroup__icon .tp-site-icon,
.tp-services-page .tp-services-catrow__icon .tp-site-icon,
.tp-services-page .tp-services-radrow__check .tp-site-icon {
  fill: currentColor;
}

.tp-services-page .tp-services-catpanel__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tpl-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  outline: none;
}

.tp-services-page .tp-services-catpanel__input::placeholder {
  color: var(--tpl-ink-faint);
  font-weight: 400;
}

.tp-services-page .tp-services-catpanel__clear,
.tp-services-page .tp-services-catpanel__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--tpl-ink-secondary);
  cursor: pointer;
}

.tp-services-page .tp-services-catpanel__clear:hover,
.tp-services-page .tp-services-catpanel__close:hover {
  background: var(--tpl-line-soft);
  color: var(--tpl-ink);
}

/* The grouped grid: four columns, the canvas's own (Services-Hub-Hero keeps
   Wash as its own group; the results page draws three -- see the toolbar
   Service control below). */
.tp-services-page .tp-services-catpanel__groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 16px;
  padding-top: 20px;
}

/* The results page's Service control: three groups, Wash under Roadside
   (canvas Services-Search, ServicesTaxonomy::forControl()). */
@media screen and (min-width: 810px) {
  .tp-services-page .tp-services-toolbar__service .tp-services-catpanel__groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Canvas 11px; Caption (12px) is the nearest named role. */
.tp-services-page .tp-services-catgroup__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0 12px;
  color: var(--tpl-ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 16px;
  text-transform: uppercase;
}

/* A group drawn under another's column (results page: Wash under Roadside,
   canvas Services-Search round 45): its heading, with room above it. */
.tp-services-page .tp-services-catgroup__title.tp-services-catgroup__title_sub {
  margin-top: 24px;
}

@media screen and (max-width: 809px) {
  .tp-services-page .tp-services-catgroup__title.tp-services-catgroup__title_sub {
    margin-top: 16px;
  }
}

.tp-services-page .tp-services-catgroup__icon {
  display: inline-flex;
  flex: none;
  color: var(--tpl-ink-muted);
}

.tp-services-page .tp-services-catgroup__icon img {
  display: block;
  width: 18px;
  height: 18px;
}

.tp-services-page .tp-services-catgroup__list,
.tp-services-page .tp-services-catpanel__list,
.tp-services-page .tp-services-radpanel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-services-page .tp-services-catitem {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--tpl-ink);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background-color 120ms ease;
}

.tp-services-page .tp-services-catitem:hover,
.tp-services-page .tp-services-catitem:focus-visible {
  background: var(--tpl-surface);
  outline: none;
}

.tp-services-page .tp-services-catitem:focus-visible {
  box-shadow: inset 0 0 0 2px var(--tpl-blue);
}

.tp-services-page .tp-services-catitem.is-on {
  background: var(--tpl-blue-wash);
}

.tp-services-page .tp-services-catitem.is-on .tp-services-catitem__title {
  color: var(--tpl-blue-strong);
}

.tp-services-page .tp-services-catitem__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.tp-services-page .tp-services-catitem__desc {
  display: block;
  margin-top: 2px;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  line-height: 18px;
}

.tp-services-page .tp-services-catitem:disabled {
  cursor: not-allowed;
  color: var(--tpl-ink-faint);
}

/* The typed results: "Suggested services" and the count, 13/18, under the strip. */
.tp-services-page .tp-services-catpanel__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 12px 8px;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  line-height: 18px;
}

.tp-services-page .tp-services-catpanel__list {
  max-height: 456px;
  overflow: auto;
}

.tp-services-page .tp-services-catrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.tp-services-page .tp-services-catrow:hover,
.tp-services-page .tp-services-catrow.is-active {
  background: var(--tpl-blue-wash);
}

.tp-services-page .tp-services-catrow.is-disabled {
  color: var(--tpl-ink-faint);
  cursor: not-allowed;
}

.tp-services-page .tp-services-catrow__icon {
  display: inline-flex;
  flex: none;
  margin: 0 2px;
  color: var(--tpl-ink-muted);
}

.tp-services-page .tp-services-catrow__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.tp-services-page .tp-services-catrow__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.tp-services-page .tp-services-catrow__title mark {
  background: transparent;
  color: var(--tpl-blue);
  font-weight: inherit;
}

.tp-services-page .tp-services-catrow__sub {
  display: block;
  overflow: hidden;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-services-page .tp-services-catpanel__empty {
  margin: 0;
  padding: 20px 12px 14px;
  color: var(--tpl-ink-muted);
  font-size: 15px;
  line-height: 22px;
}

/* ---- under a miss (CMO-104): the shops named like that, then Ask Luna ---- */

/* Not on the canvas: worded and set like the matches' heading above. */
.tp-services-page .tp-services-catpanel__shops {
  margin: 0;
  padding: 16px 12px 8px;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  line-height: 18px;
}

.tp-services-page .tp-services-catpanel__shops[hidden],
.tp-services-page .tp-services-catpanel__luna[hidden] {
  display: none;
}

.tp-services-page .tp-services-catrow--shop .tp-services-catrow__title {
  font-weight: 400;
}

.tp-services-page .tp-services-catpanel__luna {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--tpl-blue-wash);
  color: var(--tpl-ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.tp-services-page .tp-services-catpanel__luna:hover {
  background: color-mix(in srgb, var(--tpl-blue) 10%, var(--tpl-white));
}

.tp-services-page .tp-services-catpanel__luna:focus-visible {
  outline: 2px solid var(--tpl-blue);
  outline-offset: 2px;
}

.tp-services-page .tp-services-catpanel__luna-icon {
  display: inline-flex;
  flex: none;
  color: var(--tpl-blue);
  /* Canvas: the sparkle breathes, 3.2s (UI QA-06). */
  animation: tp-services-catpanel-breathe 3.2s ease-in-out infinite;
}

.tp-services-page .tp-services-catpanel__luna-text {
  flex: 1;
  min-width: 0;
}

/* The words in the "Ask Luna" gradient of the row under the card: the canvas's
   two blues mapped the same way, to blue-strong → blue-bright. */
.tp-services-page .tp-services-catpanel__luna-text b {
  background: linear-gradient(90deg, var(--tpl-blue-strong), var(--tpl-blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.tp-services-page .tp-services-catpanel__luna-arrow {
  display: inline-flex;
  flex: none;
  color: var(--tpl-ink-secondary);
}

.tp-services-page .tp-services-catpanel__luna-arrow .tp-site-icon {
  fill: currentColor;
}

@keyframes tp-services-catpanel-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .tp-services-page .tp-services-catpanel__luna-icon {
    animation: none;
  }
}

/* Luna is busy (the limiter; canvas "Service search · no match · Luna busy"):
   the row stays, greyed, and says so; it does nothing. */
.tp-services-page .tp-services-catpanel__luna.is-busy {
  background: var(--tpl-surface);
  color: var(--tpl-ink-muted);
  font-size: 14px;
  line-height: 20px;
  cursor: default;
}

.tp-services-page .tp-services-catpanel__luna.is-busy:hover {
  background: var(--tpl-surface);
}

.tp-services-page .tp-services-catpanel__luna.is-busy .tp-services-catpanel__luna-icon {
  opacity: 0.45;
  filter: grayscale(1);
  animation: none;
}

.tp-services-page .tp-services-catpanel__luna.is-busy .tp-services-catpanel__luna-arrow {
  display: none;
}

/* ---- the within panel: 240px, four rows, a check on the current ---- */

.tp-services-page .tp-services-radpanel {
  position: absolute;
  /* Canvas: under the field's left edge, 8px down (UI QA-09). */
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 240px;
  padding: 8px;
  border: 1px solid var(--tpl-line);
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 16px 40px rgba(1, 25, 50, 0.24);
  color: var(--tpl-ink);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.tp-services-page .tp-services-radpanel[hidden],
.tp-services-page .tp-services-radpanel__backdrop[hidden] {
  display: none;
}

.tp-services-page .tp-services-radrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  outline: none;
  transition: background-color 120ms ease;
}

.tp-services-page .tp-services-radrow:hover,
.tp-services-page .tp-services-radrow:focus-visible {
  background: var(--tpl-surface);
}

.tp-services-page .tp-services-radrow:focus-visible {
  box-shadow: inset 0 0 0 2px var(--tpl-blue);
}

/* Canvas: the current row has no plate, only its words in the strong blue and
   the check (UI QA-09). */
.tp-services-page .tp-services-radrow.is-on {
  color: var(--tpl-blue-strong);
  font-weight: 500;
}

.tp-services-page .tp-services-radrow__check {
  display: inline-flex;
  flex: none;
  color: var(--tpl-blue);
  visibility: hidden;
}

.tp-services-page .tp-services-radrow.is-on .tp-services-radrow__check {
  visibility: visible;
}

/* ---- the What We Cover tile, with its group and its line ---- */

.tp-services-page .tp-services-tile__eyebrow {
  display: block;
  /* Canvas: brand blue, 11px. 11px is not a named role; Caption (12px). */
  color: var(--tpl-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tp-services-page .tp-services-tile__desc {
  display: block;
  color: var(--tpl-ink-muted);
  font-size: 14px;
  line-height: 20px;
}

/* ---- tablet: two columns that scroll ---- */

@media screen and (max-width: 1023px) {
  .tp-services-page .tp-services-catpanel__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-height: 480px;
    overflow: auto;
  }
}

/* ---- phone: a bottom sheet with a handle, a title and a close ---- */

@media screen and (max-width: 809px) {
  html.tp-services-sheet-open,
  html.tp-services-sheet-open body {
    overflow: hidden;
  }

  /* The search card is its own stacking context (z-index 5), so the sheet's 41 and the
     backdrop's 40 only count inside it and the fixed site header (1000) and announcement
     (1110) stayed on top. While a sheet is open the card itself goes above them; still
     under the demo modal (1400) and product picker (1450). */
  html.tp-services-sheet-open .tp-services-page .tp-services-searchwrap {
    z-index: 1300;
  }

  .tp-services-page .tp-services-catpanel,
  .tp-services-page .tp-services-radpanel {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 41;
    width: auto;
    max-width: none;
    max-height: 86vh;
    padding: 8px 16px 24px;
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(1, 25, 50, 0.24);
    overflow: auto;
  }

  .tp-services-page .tp-services-catpanel__backdrop:not([hidden]),
  .tp-services-page .tp-services-radpanel__backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    background: var(--tpl-ink);
    opacity: 0.4;
  }

  .tp-services-page .tp-services-catpanel__head,
  .tp-services-page .tp-services-radpanel__head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 12px;
  }

  .tp-services-page .tp-services-catpanel__handle,
  .tp-services-page .tp-services-radpanel__handle {
    grid-column: 1 / -1;
    width: 36px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 2px;
    background: var(--tpl-line);
  }

  .tp-services-page .tp-services-catpanel__title,
  .tp-services-page .tp-services-radpanel__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .tp-services-page .tp-services-radpanel__done {
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--tpl-blue);
    color: var(--tpl-white);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
  }

  .tp-services-page .tp-services-catpanel__groups {
    grid-template-columns: minmax(0, 1fr);
    max-height: none;
    overflow: visible;
  }

  .tp-services-page .tp-services-catpanel__list {
    max-height: none;
  }

  /* Canvas "Select service" sheet (tpm-sheet): 86% tall, a 40px grab, the title
     row 8/16/8/20 with a 40px round close, the search strip edge to edge, one
     column of groups ruled apart. */
  .tp-services-page .tp-services-catpanel {
    height: 86vh;
    padding: 0 16px 12px;
    box-shadow: 0 -8px 32px color-mix(in srgb, var(--tpl-ink) 20%, transparent);
  }

  .tp-services-page .tp-services-catpanel__head {
    margin: 0;
    padding: 0 0 8px 4px;
  }

  .tp-services-page .tp-services-catpanel__handle {
    width: 40px;
    margin: 8px auto;
    border-radius: 999px;
  }

  .tp-services-page .tp-services-catpanel__title {
    line-height: 26px;
  }

  .tp-services-page .tp-services-catpanel__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tpl-surface);
    color: var(--tpl-ink);
  }

  .tp-services-page .tp-services-catpanel__search {
    margin: 0 -16px;
    padding: 0 8px 0 20px;
  }

  .tp-services-page .tp-services-catpanel__groups {
    gap: 0;
    padding-top: 16px;
  }

  .tp-services-page .tp-services-catgroup + .tp-services-catgroup {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--tpl-line);
  }

  .tp-services-page .tp-services-catgroup__title {
    padding: 0 4px;
  }

  .tp-services-page .tp-services-catitem {
    padding: 10px 4px;
  }

  .tp-services-page .tp-services-catitem.is-on {
    padding-right: 8px;
    padding-left: 8px;
  }

  .tp-services-page .tp-services-catpanel__meta,
  .tp-services-page .tp-services-catpanel__shops {
    padding: 14px 4px 6px;
  }

  .tp-services-page .tp-services-catrow {
    padding: 10px 8px;
  }
}


/* ===========================================================================
 * ASK LUNA — the canvas's row under the card (Confluence 4621074441 §3.4;
 * design canvas "Trucker Services" › Services-Hub-Hero, rounds 27–38,
 * 2026-11-05). The card nests in a light shell; Luna's row sits under it
 * inside the shell: sparkle + "Ask Luna", the driver's words in a box that
 * grows to three lines, a plain mic, a light-blue wand. One supporting line
 * under the words says the state; nothing rings or recolours the row.
 *
 * Canvas values mapped to roles: its #edf2f8 shell is `--tpl-surface`; the
 * "Ask Luna" gradient #1257c8 → #1b9fd8 is `--tpl-blue-strong` → `--tpl-blue-
 * bright`; its greys (#7d8893 placeholder, #6b7a87 support, #5f6b77 note,
 * #4a5a68 mic, #b6bfc8 disabled) are ink-soft / ink-muted / ink-muted /
 * ink-secondary / ink-faint; its #12a150 / #0b7a45 green are `--tpl-go` /
 * `--tpl-go-text`; its #b3261e red is `--tpl-danger-text`. The wand's
 * #d3e5f6 / #c3dcf2 surfaces are the brand blue at 16% / 24% over white.
 * The row is `hidden` until services-luna.js takes it over; every state
 * below is a value of `data-services-luna-state` on the row.
 * ======================================================================== */

/* The shell (canvas round 27): plain until the script lights it. */
.tp-services-page .tp-services-nest {
  position: relative;
}

.tp-services-page .tp-services-nest.is-luna {
  padding: 6px;
  border-radius: 18px;
  background: var(--tpl-surface);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.42);
}

.tp-services-page .tp-services-nest.is-luna .tp-services-search {
  box-shadow: 0 1px 3px rgba(1, 25, 50, 0.1), 0 0 0 1px rgba(1, 25, 50, 0.04);
}

.tp-services-page .tp-services-luna {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 10px 9px 20px;
  color: var(--tpl-ink);
}

.tp-services-page .tp-services-luna[hidden] {
  display: none;
}

/* ---- the brand ---- */

.tp-services-page .tp-services-luna__brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 44px;
}

.tp-services-page .tp-services-luna__ai {
  width: 24px;
  height: 24px;
  fill: var(--tpl-blue);
}

.tp-services-page .tp-services-luna__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--tpl-blue-strong), var(--tpl-blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tp-services-page .tp-services-luna.is-busy .tp-services-luna__name {
  background: none;
  -webkit-text-fill-color: var(--tpl-ink-muted);
  color: var(--tpl-ink-muted);
}

.tp-services-page .tp-services-luna.is-busy .tp-services-luna__ai {
  opacity: 0.45;
  filter: grayscale(1);
}

/* ---- the words ---- */

.tp-services-page .tp-services-luna__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  padding-left: 4px;
}

/* The box grows with the words, to three lines (canvas round 31): a hidden
   twin of the text in the same grid cell sets the height, and the textarea
   and the ghost STRETCH to it. Not `height: 100%`: WebKit resolves a child's
   percentage height against a parent's `max-height` when its height is auto,
   so in Safari the textarea stood 92px tall over a one-line sentence and
   drew its focus ring across the line under it (test site, 2026-11-05). */
.tp-services-page .tp-services-luna__grow {
  position: relative;
  display: grid;
  align-items: stretch;
  max-height: 92px;
}

.tp-services-page .tp-services-luna__grow[hidden] {
  display: none;
}

.tp-services-page .tp-services-luna__grow::after {
  content: attr(data-v) " ";
  grid-area: 1 / 1 / 2 / 2;
  box-sizing: border-box;
  max-height: 92px;
  padding: 10px 0;
  overflow: hidden;
  visibility: hidden;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tp-services-page .tp-services-luna__q {
  display: block;
  grid-area: 1 / 1 / 2 / 2;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 44px;
  max-height: 92px;
  margin: 0;
  padding: 10px 0;
  overflow-y: auto;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 6px;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--tpl-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.tp-services-page .tp-services-luna__q::placeholder {
  color: var(--tpl-ink-soft);
  font-weight: 500;
  opacity: 1;
}

/* No ring (UI QA-08, 2026-11-10): the canvas draws the box with outline 0 and
   shows typing by the caret and the line under it (__sub). A text box matches
   :focus-visible on a click as well, so a ring here was on every focus. */
.tp-services-page .tp-services-luna__q:focus-visible {
  outline: 0;
}

/* Luna's question trails the words in the same box (canvas round 37): a
   ghost over the textarea, the words transparent, the question in blue. */
.tp-services-page .tp-services-luna__ghost {
  grid-area: 1 / 1 / 2 / 2;
  box-sizing: border-box;
  padding: 10px 0;
  overflow: hidden;
  pointer-events: none;
  color: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tp-services-page .tp-services-luna__ghost[hidden] {
  display: none;
}

.tp-services-page .tp-services-luna__ghost-t {
  color: transparent;
}

.tp-services-page .tp-services-luna__follow {
  color: var(--tpl-blue);
  font-weight: 500;
}

.tp-services-page .tp-services-luna__caret {
  display: inline-block;
  width: 2px;
  height: 20px;
  margin: 0 1px;
  vertical-align: -4px;
  background: var(--tpl-blue);
  animation: tp-services-luna-caret 1.1s steps(1) infinite;
}

.tp-services-page .tp-services-luna__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Listening / busy: a line in the words' place. */
.tp-services-page .tp-services-luna__line {
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  font-size: 16px;
  line-height: 24px;
}

.tp-services-page .tp-services-luna__line[hidden] {
  display: none;
}

.tp-services-page .tp-services-luna__wait {
  color: var(--tpl-ink-soft);
  font-weight: 500;
}

.tp-services-page .tp-services-luna__wait[hidden],
.tp-services-page .tp-services-luna__said[hidden] {
  display: none;
}

.tp-services-page .tp-services-luna__said {
  min-width: 0;
  max-height: 72px;
  overflow-y: auto;
  color: var(--tpl-ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tp-services-page .tp-services-luna__busy {
  align-items: center;
  color: var(--tpl-ink-muted);
  font-weight: 500;
}

/* ---- the supporting line ---- */

.tp-services-page .tp-services-luna__sub {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  /* Below the box's focus ring, never under it: the ring ends 2px past the box,
     so the line starts 4px past it. It used to be pulled 6px up into the box. */
  margin: 4px 0 0;
  padding: 0 0 10px;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  line-height: 18px;
}

/* The grey note reads as the green line's second line, as before. */
.tp-services-page .tp-services-luna__sub_ok + .tp-services-luna__sub_note {
  margin-top: -6px;
}

.tp-services-page .tp-services-luna__sub[hidden] {
  display: none;
}

.tp-services-page .tp-services-luna__sub_ok {
  color: var(--tpl-go-text);
}

.tp-services-page .tp-services-luna__sub_ok .tp-site-icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: var(--tpl-go);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp-services-page .tp-services-luna__sub_note {
  color: var(--tpl-ink-muted);
}

.tp-services-page .tp-services-luna__sub_note .tp-site-icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: currentColor;
}

/* ---- what Luna understood: a row of chips and "Not right? Edit it" ---- */

.tp-services-page .tp-services-luna__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: -4px 0 0;
  padding: 0 0 10px;
}

.tp-services-page .tp-services-luna__chips[hidden] {
  display: none;
}

.tp-services-page .tp-services-luna__chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-services-page .tp-services-luna__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 10px;
  border: 1px solid var(--tpl-line);
  border-radius: 999px;
  background: var(--tpl-surface);
  color: var(--tpl-ink);
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.tp-services-page .tp-services-luna__chip-tag {
  color: var(--tpl-ink-muted);
  font-size: 12px;
}

.tp-services-page .tp-services-luna__chip_warn {
  border-color: var(--tpl-caution-border);
  background: var(--tpl-caution-wash);
  color: var(--tpl-caution-text);
}

.tp-services-page .tp-services-luna__edit {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tpl-link);
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  text-decoration: underline;
  cursor: pointer;
}

.tp-services-page .tp-services-luna__sub_err {
  color: var(--tpl-danger-text);
}

.tp-services-page .tp-services-luna__spin {
  flex: none;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 2px solid var(--tpl-line);
  border-top-color: var(--tpl-blue);
  border-radius: 999px;
  animation: tp-services-luna-spin 0.8s linear infinite;
}

/* ---- the keys: a plain mic, a light-blue wand ---- */

.tp-services-page .tp-services-luna__mic,
.tp-services-page .tp-services-luna__go,
.tp-services-page .tp-services-luna__pause {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.tp-services-page .tp-services-luna__mic[hidden],
.tp-services-page .tp-services-luna__go[hidden],
.tp-services-page .tp-services-luna__rec[hidden] {
  display: none;
}

.tp-services-page .tp-services-luna__mic {
  background: transparent;
  color: var(--tpl-ink-secondary);
}

.tp-services-page .tp-services-luna__mic:hover {
  background: rgba(22, 136, 202, 0.24);
  color: var(--tpl-blue);
}

.tp-services-page .tp-services-luna__mic:disabled {
  color: var(--tpl-ink-faint);
  cursor: default;
}

.tp-services-page .tp-services-luna__mic:disabled:hover {
  background: transparent;
}

.tp-services-page .tp-services-luna__go,
.tp-services-page .tp-services-luna__pause {
  background: rgba(22, 136, 202, 0.16);
  color: var(--tpl-blue);
}

.tp-services-page .tp-services-luna__go:hover,
.tp-services-page .tp-services-luna__pause:hover {
  background: rgba(22, 136, 202, 0.24);
}

.tp-services-page .tp-services-luna__go:disabled,
.tp-services-page .tp-services-luna__go:disabled:hover {
  background: transparent;
  color: var(--tpl-ink-faint);
  cursor: default;
}

.tp-services-page .tp-services-luna__mic .tp-site-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.tp-services-page .tp-services-luna__go .tp-site-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tp-services-page .tp-services-luna__mic:focus-visible,
.tp-services-page .tp-services-luna__go:focus-visible,
.tp-services-page .tp-services-luna__pause:focus-visible {
  outline: 2px solid var(--tpl-blue-bright);
  outline-offset: 2px;
}

/* Listening: the level bars open out of the mic's place; a square key stops. */
.tp-services-page .tp-services-luna__rec {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  height: 44px;
}

.tp-services-page .tp-services-luna__bars {
  display: inline-flex;
  width: 132px;
  height: 22px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  animation: tp-services-luna-open 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tp-services-page .tp-services-luna__bars i {
  display: block;
  flex: none;
  width: 3px;
  height: 4px;
  border-radius: 2px;
  /* Canvas: each bar its own colour, #4fc3ea at the first to #1688ca at the
     last (UI QA-16): blue-bright into blue, by --m below. */
  background: color-mix(in srgb, var(--tpl-blue) var(--m, 100%), var(--tpl-blue-bright));
  opacity: 0.55;
}

.tp-services-page .tp-services-luna__bars.is-live i {
  height: var(--h);
  opacity: 1;
  animation: tp-services-luna-wave 1s ease-in-out infinite;
}

.tp-services-page .tp-services-luna__bars i:nth-child(1) { --h: 6px; animation-delay: 0s; --m: 0%; }
.tp-services-page .tp-services-luna__bars i:nth-child(2) { --h: 10px; animation-delay: 0.11s; --m: 5%; }
.tp-services-page .tp-services-luna__bars i:nth-child(3) { --h: 7px; animation-delay: 0.22s; --m: 10%; }
.tp-services-page .tp-services-luna__bars i:nth-child(4) { --h: 13px; animation-delay: 0.33s; --m: 14%; }
.tp-services-page .tp-services-luna__bars i:nth-child(5) { --h: 9px; animation-delay: 0.44s; --m: 19%; }
.tp-services-page .tp-services-luna__bars i:nth-child(6) { --h: 16px; animation-delay: 0.55s; --m: 24%; }
.tp-services-page .tp-services-luna__bars i:nth-child(7) { --h: 12px; animation-delay: 0s; --m: 29%; }
.tp-services-page .tp-services-luna__bars i:nth-child(8) { --h: 18px; animation-delay: 0.11s; --m: 33%; }
.tp-services-page .tp-services-luna__bars i:nth-child(9) { --h: 14px; animation-delay: 0.22s; --m: 38%; }
.tp-services-page .tp-services-luna__bars i:nth-child(10) { --h: 21px; animation-delay: 0.33s; --m: 43%; }
.tp-services-page .tp-services-luna__bars i:nth-child(11) { --h: 17px; animation-delay: 0.44s; --m: 48%; }
.tp-services-page .tp-services-luna__bars i:nth-child(12) { --h: 21px; animation-delay: 0.55s; --m: 52%; }
.tp-services-page .tp-services-luna__bars i:nth-child(13) { --h: 14px; animation-delay: 0s; --m: 57%; }
.tp-services-page .tp-services-luna__bars i:nth-child(14) { --h: 18px; animation-delay: 0.11s; --m: 62%; }
.tp-services-page .tp-services-luna__bars i:nth-child(15) { --h: 12px; animation-delay: 0.22s; --m: 67%; }
.tp-services-page .tp-services-luna__bars i:nth-child(16) { --h: 16px; animation-delay: 0.33s; --m: 71%; }
.tp-services-page .tp-services-luna__bars i:nth-child(17) { --h: 9px; animation-delay: 0.44s; --m: 76%; }
.tp-services-page .tp-services-luna__bars i:nth-child(18) { --h: 13px; animation-delay: 0.55s; --m: 81%; }
.tp-services-page .tp-services-luna__bars i:nth-child(19) { --h: 7px; animation-delay: 0s; --m: 86%; }
.tp-services-page .tp-services-luna__bars i:nth-child(20) { --h: 10px; animation-delay: 0.11s; --m: 90%; }
.tp-services-page .tp-services-luna__bars i:nth-child(21) { --h: 6px; animation-delay: 0.22s; --m: 95%; }
.tp-services-page .tp-services-luna__bars i:nth-child(22) { --h: 7px; animation-delay: 0.33s; --m: 100%; }

.tp-services-page .tp-services-luna__sq {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--tpl-blue);
}

/* The card, once Luna has written into it: each field Luna wrote flashes
   once (the canvas's tps-filled), not the ones it left alone (UI QA-16).
   services-luna.js sets the class per field, removed before a new reading
   so the flash plays again. */
.tp-services-page .tp-services-search__field.is-luna-flash {
  border-radius: 8px;
  animation: tp-services-luna-flash 1.4s ease-out 1;
}

/* THE HERO REACHES UNDER THE ROW. The search wrap is translated 80px over the
   next section so the card straddles the hero's edge; with Luna's row under
   the card inside the shell, the hero takes that height back so the shell
   stays on the dark surface it was drawn for. Rendered by hub.blade.php with
   the row (Sunny Wang 方案 1, 2026-11-06). */
.tp-services-page.tp-services-hero--luna {
  padding-bottom: 96px;
}

@keyframes tp-services-luna-flash {
  0% { background: rgba(22, 136, 202, 0); }
  25% { background: rgba(22, 136, 202, 0.18); }
  100% { background: rgba(22, 136, 202, 0); }
}

@keyframes tp-services-luna-caret {
  50% { opacity: 0; }
}

@keyframes tp-services-luna-wave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@keyframes tp-services-luna-open {
  from { width: 0; opacity: 0; }
  to { width: 132px; opacity: 1; }
}

@keyframes tp-services-luna-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tp-services-page .tp-services-luna__caret,
  .tp-services-page .tp-services-luna__bars,
  .tp-services-page .tp-services-luna__bars.is-live i,
  .tp-services-page .tp-services-luna__spin,
  .tp-services-page .tp-services-search__field.is-luna-flash {
    animation: none;
  }
}

/* Tablet and phone (canvas rounds 35 / 38): the words on their own row, the
   mic and the wand — or the level bars — under them, right-aligned. */
@media screen and (max-width: 1023px) {
  .tp-services-page .tp-services-luna {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand brand brand" "body body body" ". mic go";
    gap: 2px 6px;
    align-items: start;
    padding: 14px 8px 8px 18px;
  }

  .tp-services-page .tp-services-luna[hidden] {
    display: none;
  }

  .tp-services-page .tp-services-luna__brand {
    grid-area: brand;
    height: 28px;
  }

  .tp-services-page .tp-services-luna__body {
    grid-area: body;
    padding-left: 0;
  }

  .tp-services-page .tp-services-luna__mic {
    grid-area: mic;
  }

  .tp-services-page .tp-services-luna__go {
    grid-area: go;
  }

  .tp-services-page .tp-services-luna__rec {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
  }
}

@media screen and (max-width: 809px) {
  .tp-services-page .tp-services-nest.is-luna {
    padding: 4px;
    border-radius: 16px;
  }

  .tp-services-page .tp-services-luna {
    padding: 12px 6px 8px 14px;
  }

  .tp-services-page .tp-services-luna__bars {
    width: 120px;
  }

  @keyframes tp-services-luna-open {
    from { width: 0; opacity: 0; }
    to { width: 120px; opacity: 1; }
  }

  /* The canvas's 48px foot on a phone, as for the hero without Luna. */
  .tp-services-page.tp-services-hero--luna {
    padding-bottom: 48px;
  }
}

/* ==========================================================================
 * SEARCH RESULTS — THE DESIGN CANVAS'S PAGE (需求 2, CMO-96; canvas
 * Services-Search 1920 / 810 / 390 and its S-* boards, 38 rounds, read
 * 2026-11-04; docs/services-fidelity.md).
 *
 * Toolbar: the Where box, the radius chip and its panel, Map | List at the
 * right. Category: a pill over the map (Map view) or beside the heading
 * (List view); on a phone a chip that opens a sheet. Filters: a 245px column
 * on a desktop, a drawer from the left on a tablet and a phone. Map view:
 * filters | 430px panel | map. List view: filters | list, centred.
 *
 * The view is `data-services-view` on the page root, set before first paint
 * by the shell's inline script and remembered per browser (Q34: never a
 * URL). Breakpoints are the design system's (1199 / 809); these rules come
 * later in the cascade than the older search rules above and win at equal
 * specificity. Tokens only: every colour is a `--tpl-*` role (the canvas's
 * own hex values are mapped to the nearest role, see the ledger).
 * ========================================================================== */

/* ---- the toolbar ---- */

.tp-services-page .tp-services-toolbar {
  position: relative;
  z-index: 60;
  border-bottom: 0;
  background: var(--tpl-white);
  box-shadow: 0 1px 0 rgba(1, 25, 50, 0.04), 0 4px 12px rgba(1, 25, 50, 0.04);
}

.tp-services-page .tp-services-toolbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
}

.tp-services-page .tp-services-toolbar__form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tp-services-page .tp-services-toolbar__where {
  width: 310px;
  height: 34px;
  border-color: transparent;
  border-radius: 999px;
  background-color: var(--tpl-surface);
}

.tp-services-page .tp-services-toolbar__where input {
  font-size: 13px;
}

/* The radius chip (canvas round 5, 14): a grey pill naming the circle. */
.tp-services-page .tp-services-toolbar__radius,
.tp-services-page .tp-services-chip {
  display: inline-flex;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--tpl-surface);
  color: var(--tpl-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.tp-services-page .tp-services-toolbar__radius {
  min-width: 131px;
}

.tp-services-page .tp-services-toolbar__radius .tp-site-icon,
.tp-services-page .tp-services-chip .tp-site-icon {
  flex: none;
  color: var(--tpl-ink-muted);
}

.tp-services-page .tp-services-toolbar__radius[aria-expanded="true"] {
  box-shadow: inset 0 0 0 1.5px var(--tpl-blue);
}

/* Its panel: 240px, four rows, a check on the current (canvas rounds 5 / 8). */
.tp-services-page .tp-services-radiuspanel {
  position: absolute;
  z-index: 40;
  top: calc(100% - 4px);
  left: 338px;
  width: 240px;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid rgba(1, 25, 50, 0.08);
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 16px 40px rgba(1, 25, 50, 0.24);
}

.tp-services-page .tp-services-radiuspanel[hidden] {
  display: none;
}

.tp-services-page .tp-services-radiuspanel__opt,
.tp-services-page .tp-services-sheet__row {
  display: flex;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 0;
  border-radius: var(--tpl-radius-sm);
  background: transparent;
  color: var(--tpl-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

.tp-services-page .tp-services-radiuspanel__opt:hover {
  background: var(--tpl-surface-alt);
}

.tp-services-page .tp-services-radiuspanel__opt .tp-site-icon,
.tp-services-page .tp-services-sheet__row .tp-site-icon {
  display: none;
  color: var(--tpl-blue);
}

.tp-services-page .tp-services-radiuspanel__opt[aria-selected="true"],
.tp-services-page .tp-services-sheet__row[aria-selected="true"] {
  color: var(--tpl-blue-strong);
  font-weight: 500;
}

.tp-services-page .tp-services-radiuspanel__opt[aria-selected="true"] .tp-site-icon,
.tp-services-page .tp-services-sheet__row[aria-selected="true"] .tp-site-icon {
  display: block;
}

/* Map | List: one tab control with pill corners (canvas round 7). */
.tp-services-page .tp-services-viewtoggle {
  display: inline-flex;
  flex: none;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--tpl-surface);
}

.tp-services-page .tp-services-viewtoggle__btn {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tpl-ink-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.tp-services-page .tp-services-viewtoggle__btn .tp-site-icon {
  color: currentColor;
}

.tp-services-page .tp-services-viewtoggle__btn[aria-pressed="true"] {
  background: var(--tpl-white);
  box-shadow: 0 1px 3px rgba(1, 25, 50, 0.14);
  color: var(--tpl-ink);
  font-weight: 600;
}

/* The phone's chips: off above the phone width. */
.tp-services-page .tp-services-mbar {
  display: none;
}

.tp-services-page .tp-services-chip__icon {
  width: 18px;
  height: 18px;
}

.tp-services-page .tp-services-chip__count,
.tp-services-page .tp-services-cat__count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tpl-blue);
  color: var(--tpl-white);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.tp-services-page .tp-services-chip__count[hidden],
.tp-services-page .tp-services-cat__count[hidden] {
  display: none;
}

/* ---- the columns, per view ---- */

.tp-services-page .tp-services-filters { grid-area: filters; }
.tp-services-page .tp-services-list { grid-area: list; }
.tp-services-page .tp-services-map { grid-area: map; }

.tp-services-page[data-services-view="map"] .tp-services-results {
  grid-template-columns: 285px 430px minmax(0, 1fr);
  grid-template-areas: "filters list map";
}

.tp-services-page[data-services-view="map"] .tp-services-results.is-unfiltered {
  grid-template-columns: 430px minmax(0, 1fr);
  grid-template-areas: "list map";
}

/* The panel casts onto the map (canvas round 6). */
.tp-services-page[data-services-view="map"] .tp-services-list {
  position: relative;
  z-index: 2;
  border-right: 0;
  box-shadow: 6px 0 16px -6px rgba(1, 25, 50, 0.16);
}

.tp-services-page[data-services-view="list"] .tp-services-results {
  grid-template-columns: 285px minmax(0, 1fr);
  grid-template-areas: "filters list";
}

.tp-services-page[data-services-view="list"] .tp-services-results.is-unfiltered {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "list";
}

.tp-services-page[data-services-view="list"] .tp-services-map {
  display: none;
}

.tp-services-page[data-services-view="list"] .tp-services-list {
  border-right: 0;
}

/* List view: the answer centred in the results area, 1152px wide (canvas
   rounds 7 / 10 / 15). */
.tp-services-page[data-services-view="list"] .tp-services-list > * {
  width: 100%;
  max-width: 1152px;
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
}

.tp-services-page[data-services-view="list"] .tp-services-rows {
  max-width: none;
}

.tp-services-page .tp-services-filters {
  padding: 20px;
  border-right: 0;
  background: var(--tpl-white);
}

.tp-services-page .tp-services-list {
  padding: 0;
  border-right: 0;
  background: var(--tpl-surface);
}

.tp-services-page .tp-services-results-region {
  padding: 0;
}

/* The rows: white cards on the grey ground, 20px in (canvas round 1). */
.tp-services-page .tp-services-rows {
  gap: 16px;
  padding: 16px 20px 20px;
}

/* The map's own "Radius · N mi" caption: the canvas draws the circle alone,
   and the pill now sits where the caption sat. */
.tp-services-page .tp-services-map__caption {
  display: none;
}

.tp-services-page .tp-services-map {
  border-left: 0;
}

/* ---- the filter column (canvas round 1) ---- */

.tp-services-page .tp-services-filters__head {
  margin: 0 0 18px;
}

.tp-services-page .tp-services-filters__title {
  margin: 0;
  font-size: 18px;
}

.tp-services-page .tp-services-filters__group + .tp-services-filters__group {
  margin-top: 22px;
}

.tp-services-page .tp-services-filters__legend,
.tp-services-page .tp-services-filters__more-toggle {
  margin: 0 0 10px;
  color: var(--tpl-ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tp-services-page .tp-services-filters__items {
  gap: 12px;
}

.tp-services-page .tp-services-filters__item,
.tp-services-page .tp-services-filters__item > span:nth-of-type(2) {
  color: var(--tpl-ink);
  font-size: 14px;
}

.tp-services-page .tp-services-filters__n {
  color: var(--tpl-ink-soft);
}

/* "More filters" is a heading, always open: the summary is drawn as the
   legends are and takes no click. */
.tp-services-page .tp-services-filters__more {
  margin-top: 18px;
}

.tp-services-page .tp-services-filters__more > summary {
  display: block;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.tp-services-page .tp-services-filters__more > summary::-webkit-details-marker {
  display: none;
}

.tp-services-page .tp-services-filters__more > summary::before,
.tp-services-page .tp-services-filters__more > summary::after {
  display: none;
  content: none;
}

.tp-services-page .tp-services-filters__more > .tp-services-filters__items {
  margin-top: 0;
}

/* The drawer's foot: a phone's and a tablet's. */
.tp-services-page .tp-services-filters__foot {
  display: none;
}

/* ---- the category pill and its rows (canvas rounds 13 / 14 / 37) ---- */

.tp-services-page .tp-services-cat {
  display: none;
  position: relative;
  z-index: 6;
}

.tp-services-page[data-services-view="map"] .tp-services-cat_map {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* A zero-height row at the top of the list, so the pill sits at the right of
   the heading the answer draws under it (canvas round 15). */
.tp-services-page[data-services-view="list"] .tp-services-cat_list {
  display: flex;
  height: 0;
  justify-content: flex-end;
  gap: 8px;
  overflow: visible;
}

.tp-services-page[data-services-view="list"] .tp-services-cat_list .tp-services-cat__panel {
  right: 0;
  left: auto;
}

.tp-services-page[data-services-view="list"] .tp-services-list__head {
  padding-right: 200px;
}

.tp-services-page .tp-services-cat__btn {
  display: inline-flex;
  height: 36px;
  box-sizing: border-box;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 10px;
  background: var(--tpl-white);
  box-shadow: 0 1px 2px rgba(1, 25, 50, 0.12), 0 6px 18px rgba(1, 25, 50, 0.16);
  color: var(--tpl-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.tp-services-page[data-services-view="list"] .tp-services-cat__btn {
  box-shadow: 0 1px 2px rgba(1, 25, 50, 0.08);
}

.tp-services-page .tp-services-cat__icon {
  width: 20px;
  height: 20px;
}

.tp-services-page .tp-services-cat__btn .tp-site-icon {
  color: var(--tpl-ink-secondary);
  transition: transform 120ms ease;
}

.tp-services-page .tp-services-cat__btn[aria-expanded="true"] .tp-site-icon {
  transform: rotate(180deg);
}

/* The tablet's Filters pill: only between the widths. */
.tp-services-page .tp-services-cat__filters {
  display: none;
}

.tp-services-page .tp-services-cat__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  max-height: 360px;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(1, 25, 50, 0.08);
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 16px 40px rgba(1, 25, 50, 0.24);
}

.tp-services-page .tp-services-cat__panel[hidden] {
  display: none;
}

.tp-services-page .tp-services-catopt {
  display: flex;
  height: 44px;
  box-sizing: border-box;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: var(--tpl-radius-sm);
  color: var(--tpl-ink);
  font-size: 14px;
  text-decoration: none;
}

.tp-services-page .tp-services-catopt:hover {
  background: var(--tpl-surface-alt);
  color: var(--tpl-ink);
}

.tp-services-page .tp-services-catopt__icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.tp-services-page .tp-services-catopt__label {
  flex: 1 1 auto;
}

.tp-services-page .tp-services-catopt__n {
  color: var(--tpl-ink-soft);
  font-size: 13px;
}

.tp-services-page .tp-services-catopt__check {
  display: none;
  color: var(--tpl-blue);
}

.tp-services-page .tp-services-catopt.is-active {
  color: var(--tpl-blue-strong);
  font-weight: 600;
}

.tp-services-page .tp-services-catopt.is-active .tp-services-catopt__n {
  display: none;
}

.tp-services-page .tp-services-catopt.is-active .tp-services-catopt__check {
  display: inline-flex;
}

/* ---- the list's head, the mobility switch (canvas rounds 1 / 3 / 5 / 8) ---- */

.tp-services-page .tp-services-list__head {
  display: block;
  margin: 0;
  padding: 16px 20px 0;
}

.tp-services-page .tp-services-list__count {
  color: var(--tpl-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.tp-services-page .tp-services-list__sort {
  display: block;
  margin-top: 2px;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  line-height: 20px;
}

.tp-services-page .tp-services-list__unconfirmed {
  padding: 0 20px;
}

/* List view above the phone width (canvas rounds 8 / 10): the answer 40px
   down, its head and rows flush with the centred column. */
@media screen and (min-width: 810px) {
  .tp-services-page[data-services-view="list"] .tp-services-list {
    padding: 40px 24px 64px;
  }

  /* Room at the right for the category pill beside the heading. */
  .tp-services-page[data-services-view="list"] .tp-services-list__head {
    padding: 0 200px 0 0;
  }

  .tp-services-page[data-services-view="list"] .tp-services-list__unconfirmed {
    padding: 0;
  }

  .tp-services-page[data-services-view="list"] .tp-services-rows {
    padding: 16px 0 0;
  }

  .tp-services-page[data-services-view="list"] .tp-services-sortnote,
  .tp-services-page[data-services-view="list"] .tp-services-golink {
    margin-right: 0;
    margin-left: 0;
  }
}

/* ---- the row's open line, and the empty state (canvas S-Empty, round 7) ---- */

.tp-services-page .tp-services-row__open {
  margin-top: 4px;
  color: var(--tpl-ink-secondary);
  font-size: 13px;
  line-height: 18px;
}

.tp-services-page .tp-services-row__open_open {
  color: var(--tpl-go);
  font-weight: 500;
}

.tp-services-page .tp-services-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 20px;
  padding: 40px 24px;
  border-radius: 12px;
  background: var(--tpl-white);
  text-align: center;
}

.tp-services-page .tp-services-empty__ic {
  display: inline-flex;
  width: 100px;
  height: 100px;
  color: var(--tpl-placeholder);
}

.tp-services-page .tp-services-empty__title {
  margin: 16px 0 6px;
  color: var(--tpl-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.tp-services-page .tp-services-empty__body {
  max-width: 340px;
  margin: 0;
  color: var(--tpl-ink-secondary);
  font-size: 14px;
  line-height: 22px;
}

.tp-services-page .tp-services-empty__body b {
  color: var(--tpl-ink);
  font-weight: 600;
}

.tp-services-page .tp-services-empty__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.tp-services-page .tp-services-empty__acts_stack {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tp-services-page .tp-services-empty__act_text {
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--tpl-danger-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tp-services-page .tp-services-empty__act_text:hover {
  background: none;
  color: var(--tpl-danger-text);
  text-decoration: underline;
}

/* ---- the map's loading veil and empty note (canvas S-Loading / S-Empty) ---- */

.tp-services-page .tp-services-map__veil {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 500;
}

.tp-services-page .tp-services-map__veil[hidden],
.tp-services-page .tp-services-map__note[hidden] {
  display: none;
}

.tp-services-page .tp-services-map__spin {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 3px solid var(--tpl-blue-wash);
  border-top-color: var(--tpl-blue);
  border-radius: 50%;
  animation: tp-services-spin 900ms linear infinite;
}

@keyframes tp-services-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tp-services-page .tp-services-map__spin {
    animation: none;
  }
}

.tp-services-page .tp-services-map__note {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 50%;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--tpl-white);
  box-shadow: 0 4px 16px rgba(1, 25, 50, 0.16);
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* UNDER THE CATEGORY PILL, NOT BESIDE IT (2026-11-16, Sarah Dong). Both sat
   at the map's top edge -- the pill top-left (24px in, 36px tall), this note
   centred -- so on a narrow map a long note ("No towing & recovery in this
   area") ran under the pill and lost its first words. The note now starts a
   12px gap below the pill column: 24 + 36 + 12. */
.tp-services-page .tp-services-map__note {
  top: 72px;
}

/* Tablet: the Filters pill stacks under the category pill (8px gap, 36px). */
@media screen and (max-width: 1199px) {
  .tp-services-page .tp-services-map__note {
    top: 116px;
  }
}

/* Phone: no category pill over the map, so the note keeps its old place. */
@media screen and (max-width: 809px) {
  .tp-services-page .tp-services-map__note {
    top: 20px;
  }
}

/* ---- the phone's view switch, pin sheet and the two sheets: off above the phone width ---- */

.tp-services-page .tp-services-viewfab,
.tp-services-page .tp-services-sheet {
  display: none;
}

.tp-services-page .tp-services-map__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-height: 68vh;
  overflow: auto;
  padding: 8px 16px 20px;
  border-radius: 16px 16px 0 0;
  background: var(--tpl-white);
  box-shadow: 0 -8px 32px rgba(1, 25, 50, 0.2);
}

.tp-services-page .tp-services-map__sheet[hidden] {
  display: none;
}

.tp-services-page .tp-services-map__sheet-grab {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--tpl-line);
}

.tp-services-page .tp-services-map__sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--tpl-ink-secondary);
  cursor: pointer;
}

.tp-services-page .tp-services-map__sheet .tp-services-row.is-sheet {
  border: 0;
  padding: 0;
}

/* CMO-253 §3.1: a swipe down closes the sheet (services-search.js). Its drag
   stays inside it -- no pull-to-refresh, no scroll chaining to the page -- and
   a drag that does not close settles back on transform alone. */
.tp-services-page .tp-services-map__sheet {
  overscroll-behavior: contain;
  transition: transform 160ms ease-out;
}

.tp-services-page .tp-services-map__sheet.is-dragging {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .tp-services-page .tp-services-map__sheet {
    transition: none;
  }
}

/* CMO-253 §3.2 block 4: no reviews says so. */
.tp-services-page .tp-services-detail__rate-none {
  color: var(--tpl-ink-muted);
}

/* CMO-253 §3.3: the sheet's card has no list bullet and no selected ring. */
.tp-services-page .tp-services-map__sheet-body {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-services-page .tp-services-map__sheet .tp-services-row.is-sheet,
.tp-services-page .tp-services-map__sheet .tp-services-row.is-sheet.is-open {
  box-shadow: none;
}

.tp-services-page .tp-services-row__sheet-details {
  margin: 12px 0 0;
}

.tp-services-page .tp-services-row__sheet-details > a {
  width: 100%;
}

/* ---- tablet and phone: the filters are a drawer from the left (canvas rounds 6 / 36 / 38) ---- */

@media screen and (max-width: 1199px) {
  /* The app layout stays (canvas: "keep the app layout, the list scrolls
     inside"); the older narrow rules above let the page grow instead. */
  .tp-services-page.tp-services-search-page {
    height: calc(100vh - var(--tp-site-announcement-height) - var(--tp-site-header-height));
  }

  .tp-services-page .tp-services-results {
    flex: 1;
    min-height: 0;
  }

  .tp-services-page .tp-services-list {
    overflow-y: auto;
  }

  .tp-services-page[data-services-view="map"] .tp-services-results,
  .tp-services-page[data-services-view="map"] .tp-services-results.is-unfiltered {
    grid-template-columns: 400px minmax(0, 1fr);
    grid-template-areas: "list map";
  }

  .tp-services-page[data-services-view="list"] .tp-services-results,
  .tp-services-page[data-services-view="list"] .tp-services-results.is-unfiltered {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "list";
  }

  .tp-services-page[data-services-view="map"] .tp-services-map {
    grid-column: auto;
    height: auto;
  }

  .tp-services-page .tp-services-filters {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    z-index: 2000;
    display: none;
    width: 360px;
    max-width: 88vw;
    flex-direction: column;
    padding: 0;
    border-right: 0;
    background: var(--tpl-white);
    box-shadow: 8px 0 32px rgba(1, 25, 50, 0.2);
  }

  .tp-services-page .tp-services-filters.is-open:not([hidden]) {
    display: flex;
  }

  .tp-services-page .tp-services-filters__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--tpl-line-soft);
  }

  .tp-services-page .tp-services-filters__title {
    margin: 0;
    font-size: 18px;
  }

  .tp-services-page .tp-services-filters__close {
    display: inline-flex;
  }

  .tp-services-page .tp-services-filters__rails {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 16px 16px;
  }

  .tp-services-page .tp-services-filters__group + .tp-services-filters__group {
    margin-top: 8px;
  }

  .tp-services-page .tp-services-filters__legend,
  .tp-services-page .tp-services-filters__more-toggle {
    margin: 16px 0 4px;
  }

  /* One box per row, ruled (canvas S-Filters-390). */
  .tp-services-page .tp-services-filters__items {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .tp-services-page .tp-services-filters__item {
    display: flex;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--tpl-line-soft);
  }

  .tp-services-page .tp-services-filters__item > span:nth-of-type(2) {
    flex: 1 1 auto;
  }

  .tp-services-page .tp-services-filters__item .tp-site-checkbox__mark {
    margin-top: 0;
  }

  .tp-services-page .tp-services-filters__foot {
    display: flex;
    flex: none;
    gap: 12px;
    padding: 12px 16px 20px;
    border-top: 1px solid var(--tpl-line-soft);
    background: var(--tpl-white);
  }

  .tp-services-page .tp-services-filters__clear,
  .tp-services-page .tp-services-filters__apply {
    height: 44px;
    flex: 1 1 0;
    border: 1px solid var(--tpl-line);
    border-radius: var(--tpl-radius-sm);
    background: var(--tpl-white);
    color: var(--tpl-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
  }

  .tp-services-page .tp-services-filters__apply {
    border-color: var(--tpl-blue);
    background: var(--tpl-blue);
    color: var(--tpl-white);
  }

  /* Clear all is a red outline button (canvas round 38). */
  .tp-services-page .tp-services-filters__clear {
    border-color: var(--tpl-danger-text);
    color: var(--tpl-danger-text);
  }

  .tp-services-page .tp-services-filters__backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1999;
    display: block;
    background: var(--tpl-ink);
    opacity: 0.45;
  }

  /* The Filters pill beside the category pill (canvas round 36): under it
     on the map, as wide as it; before it beside the heading. */
  .tp-services-page .tp-services-cat__filters {
    display: inline-flex;
    gap: 8px;
    padding: 0 14px 0 12px;
  }

  .tp-services-page .tp-services-cat__filters .tp-site-icon {
    width: 20px;
    height: 20px;
  }

  .tp-services-page[data-services-view="map"] .tp-services-cat_map {
    align-items: stretch;
  }

  .tp-services-page[data-services-view="list"] .tp-services-cat_list .tp-services-cat__filters {
    order: -1;
  }
}

/* ---- phone: the chips, the sheets, one column, the map alone ---- */

@media screen and (max-width: 809px) {
  .tp-services-page .tp-services-toolbar__inner {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 12px 16px;
  }

  .tp-services-page .tp-services-toolbar__form {
    width: 100%;
  }

  .tp-services-page .tp-services-toolbar__where {
    width: auto;
    height: 40px;
    flex: 1 1 auto;
  }

  .tp-services-page .tp-services-toolbar__radius,
  .tp-services-page .tp-services-radiuspanel,
  .tp-services-page .tp-services-viewtoggle,
  .tp-services-page .tp-services-cat {
    display: none;
  }

  .tp-services-page .tp-services-mbar {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .tp-services-page .tp-services-mbar .tp-services-chip {
    height: 36px;
  }

  .tp-services-page .tp-services-chip_filters {
    margin-left: auto;
  }

  /* Named with the view attribute, or the desktop view rules above (the same
     specificity, earlier) would keep their columns on a phone. */
  .tp-services-page[data-services-view="map"] .tp-services-results,
  .tp-services-page[data-services-view="list"] .tp-services-results,
  .tp-services-page[data-services-view="map"] .tp-services-results.is-unfiltered,
  .tp-services-page[data-services-view="list"] .tp-services-results.is-unfiltered {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "list";
  }

  .tp-services-page[data-services-view="map"] .tp-services-results,
  .tp-services-page[data-services-view="map"] .tp-services-results.is-unfiltered {
    grid-template-areas: "map";
  }

  .tp-services-page[data-services-view="map"] .tp-services-list {
    display: none;
  }

  .tp-services-page[data-services-view="map"] .tp-services-map {
    display: block;
    grid-column: auto;
    height: auto;
    min-height: 0;
  }

  .tp-services-page[data-services-view="list"] .tp-services-list__head {
    padding-right: 16px;
  }

  .tp-services-page .tp-services-list__head,
  .tp-services-page .tp-services-list__unconfirmed {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tp-services-page .tp-services-rows {
    padding: 16px;
  }

  /* No pills on a phone: the chip in the toolbar does their job. */
  .tp-services-page[data-services-view="list"] .tp-services-cat_list,
  .tp-services-page[data-services-view="map"] .tp-services-cat_map {
    display: none;
  }

  .tp-services-page .tp-services-empty {
    margin: 16px;
  }

  /* The map is viewport-tall and sits below the toolbar, so its own bottom
     edge is often off screen when a pin is tapped: the sheet pins to the
     viewport instead, over the view switch, until it is closed. */
  .tp-services-page[data-services-view="map"] .tp-services-map__sheet {
    position: fixed;
    z-index: 1500;
  }

  /* View Map / View List: a white pill with a blue mark (canvas round 5). */
  .tp-services-page .tp-services-viewfab {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 1400;
    display: inline-flex;
    height: 44px;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--tpl-white);
    color: var(--tpl-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(1, 25, 50, 0.1), 0 8px 24px rgba(1, 25, 50, 0.18);
    cursor: pointer;
  }

  .tp-services-page .tp-services-viewfab__icon {
    display: none;
    color: var(--tpl-blue);
  }

  .tp-services-page[data-services-view="list"] .tp-services-viewfab__icon_map,
  .tp-services-page[data-services-view="map"] .tp-services-viewfab__icon_list {
    display: inline-flex;
  }

  .tp-services-page .tp-services-filters {
    width: min(320px, 86vw);
    max-width: none;
  }

  /* The two sheets (canvas rounds 37 / S-Radius-390). */
  .tp-services-page .tp-services-sheet:not([hidden]) {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: block;
  }

  .tp-services-page .tp-services-sheet__scrim {
    position: absolute;
    inset: 0;
    background: rgba(1, 25, 50, 0.45);
  }

  .tp-services-page .tp-services-sheet__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    max-height: 86%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: var(--tpl-white);
    box-shadow: 0 -8px 32px rgba(1, 25, 50, 0.2);
    color: var(--tpl-ink);
  }

  .tp-services-page .tp-services-sheet__grab {
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: var(--tpl-line);
  }

  .tp-services-page .tp-services-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 8px 20px;
  }

  .tp-services-page .tp-services-sheet__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
  }

  .tp-services-page .tp-services-sheet__close {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tpl-surface);
    color: var(--tpl-ink);
    cursor: pointer;
  }

  .tp-services-page .tp-services-sheet__list {
    flex: 1 1 auto;
    margin: 0;
    padding: 4px 0 8px;
    overflow-y: auto;
  }

  .tp-services-page .tp-services-sheet__row {
    height: 52px;
    padding: 0 20px;
    border-radius: 0;
    font-size: 16px;
  }

  .tp-services-page .tp-services-sheet__row[aria-selected="true"] {
    background: var(--tpl-blue-wash);
  }

  .tp-services-page .tp-services-sheet__list_cats .tp-services-catopt {
    min-height: 56px;
    height: auto;
    gap: 14px;
    padding: 0 20px;
    border-radius: 0;
    font-size: 16px;
    line-height: 22px;
  }

  /* 24px, as the dropdown (UI walkthrough QA-28: the App's list icons at 24 in both). */
  .tp-services-page .tp-services-sheet__list_cats .tp-services-catopt__icon {
    width: 24px;
    height: 24px;
  }

  .tp-services-page .tp-services-sheet__list_cats .tp-services-catopt__n {
    font-size: 14px;
  }

  .tp-services-page .tp-services-sheet__foot {
    padding: 12px 20px 20px;
    border-top: 1px solid var(--tpl-line-soft);
  }

  .tp-services-page .tp-services-sheet__done {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: var(--tpl-radius-sm);
    background: var(--tpl-blue);
    color: var(--tpl-white);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
}

/* ---- a paid merchant's row (PRD 4621074441 §5.1): Verified, title, card image ---- */

/* The ad card's "Verified Pro" plate (.tp-services-ad__pro), so one mark means
   one thing on this page. `align-self` keeps it on the name's line when the
   name wraps, rather than riding the head's baseline to its last line. */
.tp-services-page .tp-services-row__verified {
  flex: none;
  align-self: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--tpl-go-wash);
  color: var(--tpl-go-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}



/* CMO-96 — WHAT IT DOES AND WHY PICK IT (canvas Services-Search `.tpc-tags` /
   `.tpc-copy`). Chips: 24 tall, 9 across, radius 4, the surface grey, 12/500.
   Selling points: 14/20 with a soft bullet; list view only, never at ≤809. */
.tp-services-page .tp-services-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

/* THE RAIL'S TWO QUESTIONS (canvas Services-Search `.tsr-fq`, 2026-11-06):
   "Can the truck still move?" over "What's wrong?", ruled off from the
   boxes. Radio rows styled like the Availability options: a round mark,
   regular weight, 12 apart. */
.tp-services-page .tp-services-fq {
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--tpl-line-soft);
  color: var(--tpl-ink);
}

.tp-services-page .tp-services-mobility__q,
.tp-services-page .tp-services-symptoms__q {
  margin: 0 0 10px;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.tp-services-page .tp-services-symptoms__q {
  margin-bottom: 2px;
}

.tp-services-page .tp-services-mobility + .tp-services-symptoms .tp-services-symptoms__q {
  margin-top: 20px;
}

.tp-services-page .tp-services-symptoms__sub,
.tp-services-page .tp-services-mobility__hint {
  margin: 0 0 10px;
  color: var(--tpl-ink-secondary);
  font-size: 12px;
  line-height: 18px;
}

.tp-services-page .tp-services-mobility__hint {
  margin: 8px 0 0;
}

.tp-services-page .tp-services-mobility__hint[hidden] {
  display: none;
}

.tp-services-page .tp-services-fq__items,
.tp-services-page .tp-services-symptoms__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-services-page .tp-services-fq__item,
.tp-services-page .tp-services-fq__item > span:nth-of-type(2),
.tp-services-page .tp-services-symptoms__item,
.tp-services-page .tp-services-symptoms__item > span:nth-of-type(2) {
  font-weight: 400;
  cursor: pointer;
}

.tp-services-page .tp-services-fq__item .tp-site-checkbox__mark,
.tp-services-page .tp-services-symptoms__item .tp-site-checkbox__mark {
  border-radius: 50%;
}

.tp-services-page .tp-services-fq__item .tp-site-checkbox__mark::before,
.tp-services-page .tp-services-fq__item .tp-site-checkbox__mark::after,
.tp-services-page .tp-services-symptoms__item .tp-site-checkbox__mark::before,
.tp-services-page .tp-services-symptoms__item .tp-site-checkbox__mark::after {
  display: none;
  content: none;
}

.tp-services-page .tp-services-fq__item input:checked + .tp-site-checkbox__mark,
.tp-services-page .tp-services-symptoms__item input:checked + .tp-site-checkbox__mark {
  border-color: var(--tpl-blue);
  background: radial-gradient(circle, var(--tpl-white) 0 3px, var(--tpl-blue) 3.5px);
}

/* Clear on the Filters title row (canvas `.tsr-fhclear`): plain red text,
   grey while there is nothing to clear. Desktop only -- the drawer's foot
   has Clear all. A rule under the row, 20 above it and 24 below, as under
   the questions. */
.tp-services-page .tp-services-filters__hclear {
  display: none;
}

@media screen and (min-width: 1200px) {
  .tp-services-page .tp-services-filters__head {
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--tpl-line-soft);
  }

  .tp-services-page .tp-services-filters__hclear {
    display: inline-block;
    margin-left: auto;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--tpl-danger-text);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  .tp-services-page .tp-services-filters__hclear:hover {
    text-decoration: underline;
  }

  .tp-services-page .tp-services-filters__hclear:disabled {
    color: var(--tpl-ink-faint);
    cursor: default;
    text-decoration: none;
  }
}

/* Tablet and phone drawer (canvas round 39): the web column's rhythm -- no
   48px ruled rows, 12 between options, 22 between groups. */
@media screen and (max-width: 1199px) {
  .tp-services-page .tp-services-filters__rails {
    padding: 16px;
  }

  .tp-services-page .tp-services-fq {
    margin: 0 0 22px;
  }

  .tp-services-page .tp-services-filters__group {
    margin: 0 0 22px;
  }

  .tp-services-page .tp-services-filters__group + .tp-services-filters__group {
    margin-top: 0;
  }

  .tp-services-page .tp-services-filters__legend,
  .tp-services-page .tp-services-filters__more-toggle {
    margin: 0 0 10px;
  }

  .tp-services-page .tp-services-filters__items {
    gap: 12px;
  }

  .tp-services-page .tp-services-filters__item {
    min-height: 0;
    align-items: flex-start;
    border-bottom: 0;
  }

  .tp-services-page .tp-services-filters__item .tp-site-checkbox__mark {
    margin-top: 2px;
  }
}

/* "Sorted for …" (canvas Services-Search `.tsr-sortnote` / `.tsr-golink`). */
.tp-services-page .tp-services-sortnote {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  /* Inset like the answer's heading and its first card. */
  margin: 12px 20px 0;
  padding: 12px 12px 12px 16px;
  border: 1px solid #b9dcf2;
  border-radius: 12px;
  background: #e8f3fb;
  color: var(--tpl-ink);
}

.tp-services-page .tp-services-sortnote__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tp-services-page .tp-services-sortnote__text b {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.tp-services-page .tp-services-sortnote__text span {
  color: #33414e;
  font-size: 13px;
  line-height: 19px;
}

.tp-services-page .tp-services-sortnote__clear {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5221f;
  cursor: pointer;
  font: 500 14px/20px Poppins, "Helvetica Neue", Arial, sans-serif;
}

.tp-services-page .tp-services-sortnote__clear:hover {
  text-decoration: underline;
}

.tp-services-page .tp-services-golink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 20px 0;
  color: #4a5a68;
  font-size: 13px;
}

.tp-services-page .tp-services-golink__btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #c9dff0;
  border-radius: 4px;
  background: #fff;
  color: #146fa3;
  font-weight: 600;
  text-decoration: none;
}

/* On a phone the answer's blocks sit 16px in, like its heading. Kept
   after the rules above: the same specificity, so the later one wins. */
@media screen and (max-width: 809px) {
  .tp-services-page .tp-services-sortnote,
  .tp-services-page .tp-services-golink {
    margin-right: 16px;
    margin-left: 16px;
  }
}

.tp-services-page .tp-services-row__lists {
  margin: 6px 0 0;
  color: var(--tpl-go);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.tp-services-page .tp-services-row__tags li {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--tpl-surface);
  color: var(--tpl-ink-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}


.tp-services-page .tp-services-row__points li {
  position: relative;
  padding-left: 16px;
}

.tp-services-page .tp-services-row__points li::before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: var(--tpl-ink-soft);
}

/* The map panel's check (see .tp-services-detail__points); the card keeps the
   bullet above. */
.tp-services-page .tp-services-row__point-check {
  display: none;
}

/* The merchant's photo strip is the map panel's (see .tp-services-detail
   .tp-services-row__photos); the card never draws it. */
.tp-services-page .tp-services-row__photos {
  display: none;
}

/* ===========================================================================
   RESULT CARD AS THE CANVAS DRAWS IT (Services-Search `.tpc`, 2026-11-06,
   ui-dev diff rows 2–9 and 12). Values are the canvas's computed ones at
   1920 / 810 / 390; colours are the nearest `--tpl-*` roles. The left icon
   column, the meta line's format and the rating's own row wait on the
   page owner (rows 1 / 10 / 11), so the numbered chip stays in the head.
   Parking-lot rows (`.tp-services-lot`) keep their own card.
   =========================================================================== */

.tp-services-page .tp-services-row:not(.tp-services-lot) {
  padding: 16px;
  border: 0;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--tpl-ink) 5%, transparent);
}

/* Selected (marker or hover sync): the canvas's 2px brand ring, now that
   the card has no border to recolour. */
.tp-services-page .tp-services-row:not(.tp-services-lot).is-open {
  box-shadow: 0 0 0 2px var(--tpl-blue);
}

/* Head (canvas `.tpc-head2`): the 32px category icon, 10px, then the name
   row (16/22 600, Verified straight after it) over the open line. */
.tp-services-page .tp-services-row__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-services-page .tp-services-row__poi {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
}

.tp-services-page .tp-services-row__info {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.tp-services-page .tp-services-row__namerow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}

.tp-services-page .tp-services-row__name {
  overflow: hidden;
  font-size: 16px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-services-page .tp-services-row__verified {
  display: inline-flex;
  height: 26px;
  box-sizing: border-box;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--tpl-blue-wash);
  color: var(--tpl-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.tp-services-page .tp-services-row__verified .tp-site-icon {
  flex: none;
}

/* In the list view the name hugs its text so Verified follows it; in the
   map column it fills the line and Verified ends it (canvas `.v-list
   .tpc-name`). */
.tp-services-page[data-services-view="list"] .tp-services-row__name {
  flex: 0 1 auto;
}

/* Open line straight under the name. */
.tp-services-page .tp-services-row__open {
  margin-top: 0;
}

/* Buttons: 36 tall, radius 4, registry icon + label; Check is the primary. */
.tp-services-page .tp-services-row__actions {
  gap: 8px;
  margin-top: 12px;
}

.tp-services-page .tp-services-row__call,
.tp-services-page .tp-services-row__listing {
  height: 36px;
  box-sizing: border-box;
  gap: 6px;
  padding: 0 16px;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

/* Save: a 36px square beside Call and Check, same border and radius as them (phase-2
   design: white, 1px line, radius 4, a 20px bookmark). The toggle between the outline and
   the filled glyph is the shared Button's, keyed off `aria-pressed`. */
.tp-services-page .tp-services-row__save {
  flex: none;
  width: 36px;
  height: 36px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--tpl-line);
  border-radius: 4px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
}
.tp-services-page .tp-services-row__save:hover,
.tp-services-page .tp-services-row__save:focus-visible {
  background: var(--tpl-surface);
}
/* One class more than the shared Button's own icon rule (0,3,0), which would otherwise tie
   with this. `flex` too: that rule gives the glyph `flex: 0 0 18px`, and in a flex row the
   basis beats `width`, so setting only the size would leave it at 18px. */
.tp-services-page .tp-services-row__save.tp-site-button > .tp-site-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.tp-services-page .tp-services-row__call .tp-site-icon,
.tp-services-page .tp-services-row__listing .tp-site-icon {
  flex: none;
}

/* Call is the card's primary action now that Check is gone (CMO-253 §3.4/§3.5;
   user 2026-11-26): blue with white type, the /truck-repair/ list's Call
   (truck-landing/repair.css). The panel's copy of the row's buttons is the same
   element, so it follows. */
.tp-services-page .tp-services-row__call {
  border-color: var(--tpl-blue);
  background: var(--tpl-blue);
  color: var(--tpl-white);
}

.tp-services-page .tp-services-row__call:hover,
.tp-services-page .tp-services-row__call:focus-visible {
  border-color: var(--tpl-blue-strong);
  background: var(--tpl-blue-strong);
  color: var(--tpl-white);
}

.tp-services-page .tp-services-row__listing {
  border-color: var(--tpl-blue);
  background: var(--tpl-blue);
  color: var(--tpl-white);
}

.tp-services-page .tp-services-row__listing:hover,
.tp-services-page .tp-services-row__listing:focus-visible {
  border-color: var(--tpl-blue-strong);
  background: var(--tpl-blue-strong);
  color: var(--tpl-white);
}

/* Map column and phone: Check first and wider, then a hairline. 3:2, and the
   pair starts at the card's left edge, under the POI icon -- design (Ria Wang,
   2026-11-13) over the 11-11 indent under the name (QA-18); canvas `.tpc-acts`
   has no indent. The list view states its own margin. */
.tp-services-page .tp-services-row:not(.tp-services-lot) > .tp-services-row__actions {
  margin-left: 0;
}

.tp-services-page .tp-services-row__listing {
  order: -1;
  flex: 3 1 0;
}

.tp-services-page .tp-services-row__call {
  flex: 2 1 0;
}

.tp-services-page .tp-services-row__rule {
  height: 1px;
  margin: 12px 0;
  background: var(--tpl-line-soft);
}

.tp-services-page .tp-services-row__rule + .tp-services-row__meta {
  margin-top: 0;
}

.tp-services-page .tp-services-row__tags {
  margin-top: 6px;
}

/* Image at the card's width; the copy is list-view only. */
.tp-services-page .tp-services-row__promo {
  margin-top: 10px;
}

.tp-services-page .tp-services-row__card-image {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px solid var(--tpl-line-soft);
  border-radius: 12px;
  background: var(--tpl-line);
  object-fit: cover;
}

.tp-services-page .tp-services-row__card-image_large {
  aspect-ratio: 334 / 206;
}

.tp-services-page .tp-services-row__card-image_small {
  aspect-ratio: 334 / 120;
}

.tp-services-page .tp-services-row__copy {
  display: none;
  --tp-services-copy-lines: 10;
  min-width: 0;
  max-width: 640px;
  max-height: calc(var(--tp-services-copy-lines) * 20px);
  overflow: hidden;
  color: var(--tpl-ink-secondary);
  font-size: 14px;
  line-height: 20px;
}

.tp-services-page .tp-services-row__copy_small {
  --tp-services-copy-lines: 5;
}

.tp-services-page .tp-services-row__headline {
  margin: 0 0 2px;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.tp-services-page .tp-services-row__points {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (max-width: 809px) {
  .tp-services-page .tp-services-row__call,
  .tp-services-page .tp-services-row__listing {
    padding: 0 12px;
  }
}

/* List view, tablet and up: the buttons move to the head's right (Call,
   then Check, hugging), the hairline goes, and the image sits left of the
   copy. */
@media screen and (min-width: 810px) {
  .tp-services-page[data-services-view="list"] .tp-services-row:not(.tp-services-lot) {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 20px;
  }

  /* Everything after the head hangs under the name, past the icon column. */
  .tp-services-page[data-services-view="list"] .tp-services-row:not(.tp-services-lot) > * {
    grid-column: 2 / -1;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row:not(.tp-services-lot) > .tp-services-row__head,
  .tp-services-page[data-services-view="list"] .tp-services-row:not(.tp-services-lot) .tp-services-row__info {
    display: contents;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row:not(.tp-services-lot) .tp-services-row__poi {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row:not(.tp-services-lot) .tp-services-row__namerow {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row:not(.tp-services-lot) .tp-services-row__open {
    grid-row: 2;
    grid-column: 2 / -1;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row:not(.tp-services-lot) > .tp-services-row__actions {
    grid-row: 1;
    grid-column: 3;
    align-self: center;
    margin: 0;
    padding-left: 24px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__listing,
  .tp-services-page[data-services-view="list"] .tp-services-row__call {
    order: 0;
    flex: none;
    padding: 0 12px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__rule {
    display: none;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__open {
    margin-top: 2px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__meta,
  .tp-services-page[data-services-view="list"] .tp-services-row__rule + .tp-services-row__meta {
    margin-top: 8px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__tags {
    margin-top: 8px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__promo {
    display: flex;
    align-items: flex-start;
    margin-top: 14px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__card-image {
    flex: none;
    width: 256px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__copy {
    display: block;
    flex: 1 1 auto;
    --tp-services-copy-lines: 7;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__copy_small {
    --tp-services-copy-lines: 4;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__card-image + .tp-services-row__copy {
    padding-left: 20px;
  }
}

@media screen and (min-width: 1200px) {
  .tp-services-page[data-services-view="list"] .tp-services-row:not(.tp-services-lot) {
    padding: 20px 24px 24px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__listing,
  .tp-services-page[data-services-view="list"] .tp-services-row__call {
    padding: 0 16px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__card-image {
    width: 344px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__copy {
    --tp-services-copy-lines: 10;
  }

  .tp-services-page[data-services-view="list"] .tp-services-row__copy_small {
    --tp-services-copy-lines: 5;
  }
}

/* ===========================================================================
   STATES AS THE CANVAS DRAWS THEM (Services-Search, 2026-11-06, ui-dev diff
   rows 1-hours / 2 / 3 / 4): the open line, the Where panel (shared with the
   hub, whose canvas draws it with the same values), the empty state and the
   loading skeleton. Colours are the nearest `--tpl-*` roles.
   =========================================================================== */

/* Open line (`.tpc-hours`): 14/20, the state in its colour at 600, a soft
   dot, the hours in muted grey. */
.tp-services-page .tp-services-row__open,
.tp-services-page .tp-services-row__open_open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--tpl-ink-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.tp-services-page .tp-services-row__open-state {
  font-weight: 600;
}

.tp-services-page .tp-services-row__open_open .tp-services-row__open-state {
  color: var(--tpl-go);
}

.tp-services-page .tp-services-row__open_closed .tp-services-row__open-state {
  color: var(--tpl-danger-text);
}

.tp-services-page .tp-services-row__open-sep {
  color: var(--tpl-ink-soft);
}

/* Where panel (`.tp-services-suggest`): 8px inset, a hairline edge, 44px
   "Use my location" at 15/600, ruled groups, 15/22 places over 13/18
   addresses. The label stays 12px (Caption; see the note on the rule above). */
.tp-services-page .tp-services-suggest {
  padding: 8px 0;
  border-color: color-mix(in srgb, var(--tpl-ink) 8%, transparent);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--tpl-ink) 20%, transparent);
}

.tp-services-page .tp-services-suggest__geo {
  height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
}

.tp-services-page .tp-services-suggest__geo,
.tp-services-page .tp-services-suggest__geo span {
  text-decoration: none;
}

.tp-services-page .tp-services-suggest__rule {
  margin: 8px 0 0;
}

.tp-services-page .tp-services-suggest__label {
  padding: 16px 16px 6px;
  line-height: 16px;
}

.tp-services-page .tp-services-suggest__label ~ .tp-services-suggest__label {
  margin-top: 8px;
  border-top: 1px solid var(--tpl-line-soft);
}

.tp-services-page .tp-services-suggest__item {
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}

.tp-services-page .tp-services-suggest__geo:hover,
.tp-services-page .tp-services-suggest__item:hover,
.tp-services-page .tp-services-suggest__item[aria-selected='true'] {
  background: var(--tpl-surface);
}

.tp-services-page .tp-services-suggest__title {
  font-size: 15px;
  line-height: 22px;
}

.tp-services-page .tp-services-suggest__address {
  color: var(--tpl-ink-muted);
  font-size: 13px;
  line-height: 18px;
}

.tp-services-page .tp-services-suggest__status {
  padding: 12px 16px 6px;
  color: var(--tpl-ink-secondary);
  font-size: 14px;
  line-height: 20px;
}

/* Empty state (`.tsr-empty`): the illustration asset, 16px to the title (an
   older `.tp-services-empty p { margin: 0 }` had been winning), and the
   canvas's 36px / radius-4 primary button -- the result card's own. */
.tp-services-page .tp-services-empty__ic img {
  display: block;
  width: 100px;
  height: 100px;
}

.tp-services-page .tp-services-empty p.tp-services-empty__title {
  margin: 16px 0 6px;
}

.tp-services-page .tp-services-empty p.tp-services-empty__body {
  margin: 0;
}

.tp-services-page .tp-services-empty__act:not(.tp-services-empty__act_text) {
  height: 36px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 140ms ease;
}

.tp-services-page .tp-services-empty__act:not(.tp-services-empty__act_text):hover,
.tp-services-page .tp-services-empty__act:not(.tp-services-empty__act_text):focus-visible {
  background: var(--tpl-blue-strong);
}

.tp-services-page .tp-services-empty__acts .tp-services-empty__act {
  margin-top: 0;
}

/* Loading (`.tsr-h-load` / `.tsr-skel`): the words where the count goes, then
   white cards of grey bones -- icon, name, sub line, two lines, the image --
   16px apart inside a 16 / 20 / 20 inset (16 on a phone). */
.tp-services-page .tp-services-skeleton {
  padding: 16px 20px 20px;
}

.tp-services-page .tp-services-skeleton__say {
  order: -1;
  margin: 0 0 16px;
  color: var(--tpl-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.tp-services-page .tp-services-skeleton__card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 0;
}

.tp-services-page .tp-services-skeleton__card + .tp-services-skeleton__card {
  margin-top: 16px;
}

.tp-services-page .tp-services-skeleton__bone {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--tpl-surface), var(--tpl-surface-alt) 50%, var(--tpl-surface));
}

.tp-services-page .tp-services-skeleton__bone_ic {
  width: 32px;
  height: 32px;
  grid-row: span 2;
  border-radius: 50%;
}

.tp-services-page .tp-services-skeleton__bone_t {
  width: 60%;
  height: 16px;
}

.tp-services-page .tp-services-skeleton__bone_s {
  width: 36%;
}

.tp-services-page .tp-services-skeleton__bone_l,
.tp-services-page .tp-services-skeleton__bone_l2,
.tp-services-page .tp-services-skeleton__bone_img {
  grid-column: 1 / -1;
}

.tp-services-page .tp-services-skeleton__bone_l {
  width: 80%;
  margin-top: 8px;
}

.tp-services-page .tp-services-skeleton__bone_l2 {
  width: 55%;
}

.tp-services-page .tp-services-skeleton__bone_img {
  height: auto;
  margin-top: 4px;
  border-radius: 12px;
  aspect-ratio: 334 / 120;
}

.tp-services-page .tp-services-skeleton__bone_c1,
.tp-services-page .tp-services-skeleton__bone_c2 {
  display: none;
}

@media screen and (max-width: 809px) {
  .tp-services-page .tp-services-skeleton {
    padding: 16px;
  }
}

/* List view: the card's own columns -- image left, the copy's two lines right
   -- centred like the result cards. */
@media screen and (min-width: 810px) {
  .tp-services-page[data-services-view="list"] .tp-services-skeleton {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 16px 0 0;
  }

  .tp-services-page[data-services-view="list"] .tp-services-skeleton__card {
    grid-template-columns: 32px 320px minmax(0, 1fr);
    grid-template-areas:
      "ic t t"
      ". s s"
      ". l l"
      ". l2 l2"
      ". img c1"
      ". img c2"
      ". img .";
    column-gap: 10px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_ic { grid-area: ic; grid-row: auto; }
  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_t { grid-area: t; }
  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_s { grid-area: s; }
  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_l { grid-area: l; }
  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_l2 { grid-area: l2; }

  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_img {
    grid-area: img;
    width: 100%;
    margin-top: 6px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_c1,
  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_c2 {
    display: block;
    margin-top: 10px;
  }

  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_c1 { grid-area: c1; width: 40%; }
  .tp-services-page[data-services-view="list"] .tp-services-skeleton__bone_c2 { grid-area: c2; width: 70%; }
}

@media screen and (min-width: 810px) and (max-width: 1199px) {
  .tp-services-page[data-services-view="list"] .tp-services-skeleton__card {
    grid-template-columns: 32px 240px minmax(0, 1fr);
  }
}

/* Meta and rating (canvas `.tpc-meta` / `.tpc-rate`, 2026-11-06): one 14/20
   ink line -- distance, exit, place -- split by 3px dots; the rating on its
   own 13px line under it. */
.tp-services-page .tp-services-row__meta {
  gap: 4px 6px;
  color: var(--tpl-ink);
  font-size: 14px;
  line-height: 20px;
}

.tp-services-page .tp-services-row__dot {
  display: block;
  width: 3px;
  height: 3px;
  flex: none;
  border-radius: 999px;
  background: var(--tpl-ink-secondary);
}

.tp-services-page .tp-services-row__rate {
  display: flex;
  align-items: center;
  margin-top: 6px;
  color: var(--tpl-ink-soft);
  font-size: 13px;
  line-height: 20px;
}

.tp-services-page .tp-services-row__rate .tp-data-rating_compact {
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: inherit;
}

.tp-services-page .tp-services-row__rate .tp-data-rating__mark,
.tp-services-page .tp-services-row__rate .tp-data-rating__mark > .tp-site-icon {
  width: 16px;
  height: 16px;
}

/* The canvas reads mark first, then the score in ink (`.tpc-rate svg` +
   `strong`). The shared compact rating draws score-then-mark in the score
   colour; reordered and re-inked here only, inside this row. */
.tp-services-page .tp-services-row__rate .tp-data-rating__mark {
  order: -1;
}

.tp-services-page .tp-services-row__rate .tp-data-rating__value {
  color: var(--tpl-ink);
}

/* ==========================================================================
   RESULTS TOOLBAR · SERVICE CONTROL (canvas Services-Search-S-Service-810 /
   -390, 2026-11-12). The hub's own control (services-category.js), drawn as a
   toolbar chip on a tablet with its panel spanning the toolbar; on a phone the
   chip in the row below opens the same panel as the hub's sheet, with a check
   on the current service and Done at the foot. At 1200px and up (canvas
   round 40) the chips carry their helper words: "Within", "Service".
   ========================================================================== */

.tp-services-page .tp-services-toolbar__service {
  display: none;
}

.tp-services-page .tp-services-toolbar__service select.is-enhanced {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* The check and the Done exist only where the select asks for them. */
.tp-services-page .tp-services-catitem__check {
  display: none;
}

.tp-services-page .tp-services-catpanel__foot {
  display: none;
}

/* The helper words, at 1200px and up only. */
.tp-services-page .tp-services-toolbar__key,
.tp-services-page .tp-services-catpick__key {
  display: none;
}

@media screen and (min-width: 810px) and (max-width: 1199px) {
  /* Where narrows so Where, Within and Service fit on one row. */
  .tp-services-page .tp-services-toolbar__where {
    width: 250px;
  }
}

@media screen and (min-width: 810px) {
  .tp-services-page .tp-services-toolbar__inner {
    position: relative;
  }

  .tp-services-page .tp-services-toolbar__service {
    display: block;
    flex: none;
  }

  /* The chip: the radius chip's pill, naming the service. */
  .tp-services-page .tp-services-toolbar__service .tp-services-catpick {
    width: auto;
    max-width: 230px;
    height: 34px;
    margin: 0;
    padding: 0 30px 0 14px;
    border-radius: 999px;
    background-color: var(--tpl-surface);
    background-position: right 10px center;
    background-size: 16px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
  }

  .tp-services-page .tp-services-toolbar__service .tp-services-catpick__text,
  .tp-services-page .tp-services-toolbar__service .tp-services-catpick:not(.has-value) .tp-services-catpick__text {
    color: var(--tpl-ink);
    font-weight: 600;
  }

  .tp-services-page .tp-services-toolbar__service.is-open .tp-services-catpick {
    box-shadow: inset 0 0 0 1.5px var(--tpl-blue);
  }

  .tp-services-page .tp-services-toolbar__service .tp-services-catpick__count {
    display: none;
  }

  /* The panel spans the toolbar, three columns, and scrolls when taller than
     the screen below it. */
  .tp-services-page .tp-services-toolbar__service .tp-services-catpanel {
    top: calc(100% - 4px);
    right: 20px;
    left: 20px;
    max-height: calc(100vh - 160px);
    overflow: auto;
  }

  .tp-services-page .tp-services-toolbar__service .tp-services-catpanel__groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media screen and (max-width: 809px) {
  /* The control's own button is off: the chip in the row opens the sheet. */
  .tp-services-page .tp-services-toolbar__service {
    display: block;
    width: 0;
    height: 0;
    flex: none;
  }

  .tp-services-page .tp-services-toolbar__service .tp-services-catpick {
    display: none;
  }

  /* The sheet sits over the site header, as the hub's does, and the floating
     Map / List button (1400) steps aside while it is open. */
  html.tp-services-sheet-open .tp-services-page .tp-services-toolbar {
    z-index: 1300;
  }

  html.tp-services-sheet-open .tp-services-page .tp-services-viewfab {
    visibility: hidden;
  }

  .tp-services-page .tp-services-catpanel_done {
    display: flex;
    flex-direction: column;
  }

  .tp-services-page .tp-services-catpanel_done .tp-services-catpanel__groups,
  .tp-services-page .tp-services-catpanel_done .tp-services-catpanel__results {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  .tp-services-page .tp-services-catpanel_done .tp-services-catitem {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
  }

  .tp-services-page .tp-services-catpanel_done .tp-services-catitem__desc {
    grid-column: 1;
  }

  .tp-services-page .tp-services-catpanel_done .tp-services-catitem__check {
    display: none;
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--tpl-blue);
  }

  .tp-services-page .tp-services-catpanel_done .tp-services-catitem.is-on .tp-services-catitem__check {
    display: block;
  }

  .tp-services-page .tp-services-catpanel_done .tp-services-catpanel__foot {
    display: block;
    flex: none;
    padding: 12px 0 0;
    border-top: 1px solid var(--tpl-line);
  }

  .tp-services-page .tp-services-catpanel__done {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--tpl-blue);
    color: var(--tpl-white);
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }
}

/* Results toolbar at 1200px and up: after the 810px rules it refines. */
@media screen and (min-width: 1200px) {
  .tp-services-page .tp-services-toolbar__key,
  .tp-services-page .tp-services-toolbar__service .tp-services-catpick__key {
    display: inline;
    flex: none;
    color: var(--tpl-ink-muted);
    font-weight: 400;
  }

  .tp-services-page .tp-services-toolbar__radius {
    min-width: 0;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 12px 0 14px;
  }

  .tp-services-page .tp-services-toolbar__service .tp-services-catpick {
    gap: 8px;
    max-width: 300px;
  }

  /* The hub card's width, from the toolbar's left edge. */
  .tp-services-page .tp-services-toolbar__service .tp-services-catpanel {
    right: auto;
    width: min(1200px, calc(100% - 40px));
  }
}

/* ===================================================================
   MAP · A PIN'S DETAILS IN THE LIST'S COLUMN (design canvas
   Services-Search `tsr-det`, Ria Wang 2026-11-17; replaces the 11-12
   card over the map). Desktop and pad map view only; a phone keeps its
   sheet. The panel shares the list's grid cell and covers it, so the
   list keeps its scroll underneath. services-map.js fills it from the
   row: the card's head, meta, rating and tags, and the card's own
   buttons pinned at the bottom.
   =================================================================== */
.tp-services-page .tp-services-detail {
  display: none;
}

@media (min-width: 810px) {
  .tp-services-page[data-services-view="map"] .tp-services-detail {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 0;
    min-height: 0;
    grid-area: list;
    flex-direction: column;
    overflow: hidden;
    background: var(--tpl-white);
    box-shadow: 1px 0 0 var(--tpl-line), 8px 0 24px rgba(1, 25, 50, 0.08);
    color: var(--tpl-ink);
  }

  .tp-services-page[data-services-view="map"] .tp-services-detail[hidden] {
    display: none;
  }

  .tp-services-page .tp-services-detail__top {
    display: flex;
    height: 52px;
    flex: none;
    box-sizing: border-box;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid var(--tpl-line-soft);
  }

  .tp-services-page .tp-services-detail__back {
    display: inline-flex;
    height: 36px;
    box-sizing: border-box;
    align-items: center;
    gap: 4px;
    padding: 0 10px 0 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--tpl-blue);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 140ms ease;
  }

  .tp-services-page .tp-services-detail__back:hover,
  .tp-services-page .tp-services-detail__back:focus-visible {
    background: var(--tpl-blue-wash);
  }

  .tp-services-page .tp-services-detail__body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px 20px 24px;
  }

  /* The name wraps at 20 / 28 instead of the card's one-line ellipsis. */
  .tp-services-page .tp-services-detail .tp-services-row__name {
    overflow: visible;
    font-size: 20px;
    line-height: 28px;
    white-space: normal;
  }

  .tp-services-page .tp-services-detail .tp-services-row__rule {
    display: block;
    margin: 12px 0;
  }

  .tp-services-page .tp-services-detail__facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tp-services-page .tp-services-detail__facts > * {
    margin-top: 0;
  }

  .tp-services-page .tp-services-detail .tp-services-row__tags {
    flex-wrap: wrap;
  }

  /* A paid listing's panel (requirement page "面板内容分档", 2026-11-19): the
     card image at the top at the body's width, keeping the tier's ratio
     (334/206 for 199, 334/120 for 49 and 99); the headline under the name;
     the selling points after the tags. */
  /* A pin past the loaded page while its row is fetched (R6). */
  .tp-services-page .tp-services-detail__loading {
    margin: 0;
    color: var(--tpl-ink-muted);
    font-size: 14px;
    line-height: 20px;
  }

  .tp-services-page .tp-services-detail__image {
    flex: none;
    margin: 0 0 16px;
  }

  .tp-services-page .tp-services-detail__headline {
    margin: 4px 0 0;
    color: var(--tpl-ink-secondary);
    font-weight: 400;
  }

  .tp-services-page .tp-services-detail__points {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--tpl-ink-secondary);
    font-size: 14px;
    line-height: 20px;
  }

  .tp-services-page .tp-services-detail__points li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding-left: 0;
  }

  .tp-services-page .tp-services-detail__points li::before {
    content: none;
  }

  /* Three thumbs and "+N" (prototype `.d-photos`): four square tiles. */
  .tp-services-page .tp-services-detail .tp-services-row__photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .tp-services-page .tp-services-detail .tp-services-row__photo {
    display: flex;
    overflow: hidden;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--tpl-surface);
    color: var(--tpl-ink-secondary);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
  }

  .tp-services-page .tp-services-detail .tp-services-row__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .tp-services-page .tp-services-detail__points .tp-services-row__point-check {
    display: inline-flex;
    flex: none;
    margin-top: 2px;
    color: var(--tpl-go);
  }

  /* A lot keeps its own card body; its buttons moved to the foot. */
  .tp-services-page .tp-services-detail .tp-services-lot__hero {
    margin: -20px -20px 16px;
  }

  /* The card's buttons, pinned under the scrolling body: equal halves,
     36 tall; one button takes the row. */
  .tp-services-page .tp-services-detail__foot {
    flex: none;
    padding: 14px 20px;
    border-top: 1px solid var(--tpl-line-soft);
    background: var(--tpl-white);
  }

  .tp-services-page .tp-services-detail__foot[hidden] {
    display: none;
  }

  .tp-services-page .tp-services-detail__foot > .tp-services-lot__actions {
    margin: 0;
  }

  .tp-services-page .tp-services-detail__foot > .tp-services-row__actions {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .tp-services-page .tp-services-detail__foot > .tp-services-row__actions > a {
    width: 100%;
    height: 36px;
    justify-content: center;
  }

  /* ---- CMO-253 §3.2: the panel filled ---- */

  /* 1. Previous / next at the top bar's right. Disabled at an end. */
  .tp-services-page .tp-services-detail__step {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
  }

  .tp-services-page .tp-services-detail__step-btn {
    display: inline-flex;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--tpl-line-strong);
    border-radius: 6px;
    background: var(--tpl-white);
    color: var(--tpl-ink);
    cursor: pointer;
  }

  .tp-services-page .tp-services-detail__step-btn:disabled {
    border-color: var(--tpl-line);
    color: var(--tpl-ink-disabled);
    cursor: default;
  }

  /* 5. The buttons follow the facts instead of the pinned foot: equal
     halves, 36 tall; one button takes the row. */
  .tp-services-page .tp-services-detail__actions {
    display: grid;
    flex: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
  }

  .tp-services-page .tp-services-detail__actions > a {
    width: 100%;
    height: 36px;
    justify-content: center;
  }

  /* With Save on the row (CMO-93 phase 2) the buttons share the row and the
     bookmark keeps its 36px square, as on a lot's foot. */
  .tp-services-page .tp-services-detail__actions:has(> .tp-services-row__save) {
    display: flex;
  }

  .tp-services-page .tp-services-detail__actions:has(> .tp-services-row__save) > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .tp-services-page .tp-services-detail__actions > .tp-services-row__save {
    flex: none;
    width: 36px;
  }

  /* 6. The paid listing's block. */
  .tp-services-page .tp-services-detail__paid {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 0;
  }

  .tp-services-page .tp-services-detail__paid .tp-services-detail__image {
    margin: 0;
  }

  /* 7-12. */
  .tp-services-page .tp-services-detail__more {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--tpl-line-soft);
  }

  .tp-services-page .tp-services-detail__intro {
    margin: 0;
    color: var(--tpl-ink-secondary);
    font-size: 14px;
    line-height: 20px;
  }

  .tp-services-page .tp-services-detail__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .tp-services-page .tp-services-detail__info > div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .tp-services-page .tp-services-detail__info dt {
    color: var(--tpl-ink-muted);
  }

  .tp-services-page .tp-services-detail__info dd {
    margin: 0;
    color: var(--tpl-ink);
  }

  .tp-services-page .tp-services-detail__week {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tp-services-page .tp-services-detail__week li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .tp-services-page .tp-services-detail__week li.is-grey {
    color: var(--tpl-ink-soft);
  }

  .tp-services-page .tp-services-detail__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tp-services-page .tp-services-detail__h {
    margin: 0;
    color: var(--tpl-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
  }

  .tp-services-page .tp-services-detail__reviews {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tp-services-page .tp-services-detail__review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .tp-services-page .tp-services-detail__review-when {
    color: var(--tpl-ink-soft);
    font-size: 12px;
    line-height: 16px;
  }

  .tp-services-page .tp-services-detail__review-text {
    margin: 4px 0 0;
    color: var(--tpl-ink-secondary);
    font-size: 14px;
    line-height: 20px;
  }

  /* 11. A full-width outline button, pinned in the panel's foot (user
     2026-11-26: "按钮吸底"). */
  .tp-services-page .tp-services-detail__view {
    margin: 0;
  }

  .tp-services-page .tp-services-detail__view > a {
    width: 100%;
    justify-content: center;
  }
}

/* The panel row's count, "{service} · {n}", or "New" on a row a page has
   disabled for want of its field (PRD-20 §4.2; /truck-repair/ writes both). */
.tp-services-page .tp-services-catitem__count {
  margin-left: 6px;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  font-weight: 500;
}

.tp-services-page .tp-services-catitem__count_new {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--tpl-blue-wash);
  color: var(--tpl-blue);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* THE WHOLE CARD OPENS THE BUSINESS'S PAGE (CMO-253 §3.1): services-search.js
   clicks the row's name for any press on the card outside its controls, so
   the card says it can be pressed. No hover effect beyond the pointer
   (AGENTS.md, UI motion); hovering still grows the pin. */
.tp-services-page .tp-services-rows > li[data-services-row],
.tp-services-page .tp-services-row.is-sheet {
  cursor: pointer;
}

/*
 * THE HOURS ROW — board `.pv-hrs*`, Services-Provider-Hours-States, 2026-11-12.
 *
 * THE BOARD'S OWN HEX VALUES, BY INSTRUCTION (product, 2026-11-12: "严格按照设计稿的色值").
 * design-system.md §3.2 says page files take their colours from the shared tokens and bring a
 * missing role back to review; this row is the recorded exception, and the five values live in
 * ONE place -- the custom properties on `.tp-services-provider__hours-row` below -- so promoting
 * them to tokens later is a rename, not a hunt.
 *
 *   --tp-hrs-open    #3aa14a   `Open` / `Open now`        (results-page green, per the board)
 *   --tp-hrs-closed  #d93a35   `Closed`                   (results-page red, per the board)
 *   --tp-hrs-grey    #9aa4ad   the `·` and the grey days  (`Closed` / `Not reported` in the list)
 *   --tp-hrs-line    #e6e9ec   the two hairlines around the week
 *   --tp-hrs-chev    #6b7a87   the chevron
 * The day / time / today colours already equal tokens (#868f98 --tpl-ink-soft, #5f6980
 * --tpl-ink-muted, #011932 --tpl-ink) and keep using them.
 * Known cost: #9aa4ad on the panel is below 3:1, which is why the shared tokens avoid it.
 * The list's 13px is the board's own final value (its `!important` pass) and an
 * integer the page already uses; Body Small is 14.
 *
 * IN services.css SINCE 2026-11-26 (CMO-253 §3.2): the detail page and the results
 * page's map panel draw the same row from the same markup, and both load this file.
 * The parking detail page draws none of these classes.
 *
 */
.tp-services-page .tp-services-provider__hours-row {
  --tp-hrs-open: #3aa14a;
  --tp-hrs-closed: #d93a35;
  --tp-hrs-grey: #9aa4ad;
  --tp-hrs-line: #e6e9ec;
  --tp-hrs-chev: #6b7a87;
}

.tp-services-page .tp-services-provider__address > .tp-services-provider__hours-row {
  align-items: start;
}

.tp-services-page .tp-services-provider__hours-row dt {
  padding-top: 2px;
}

.tp-services-page .tp-services-provider__hrs-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.tp-services-page .tp-services-provider__hrs-toggle {
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

/* The weekly row is a native <details>; its summary is the line. No marker: the chevron is. */
.tp-services-page .tp-services-provider__hrs-toggle {
  list-style: none;
}

.tp-services-page .tp-services-provider__hrs-toggle::-webkit-details-marker {
  display: none;
}

.tp-services-page .tp-services-provider__hrs-toggle:focus-visible {
  outline: 2px solid var(--tpl-blue);
  outline-offset: 2px;
}

.tp-services-page .tp-services-provider__hrs-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tp-services-page .tp-services-provider__hrs-toggle .tp-site-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--tp-hrs-chev);
  transition: transform 150ms ease-out;
}

.tp-services-page .tp-services-provider__hrs[open] > .tp-services-provider__hrs-toggle .tp-site-icon {
  transform: rotate(180deg);
}

/* Two or more segments in the day, when no verdict can be given: `Today` then the segments stacked,
   aligned with the first (board rule 5). The chevron stays on the first line. */
.tp-services-page .tp-services-provider__hrs-slots {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.tp-services-page .tp-services-provider__hrs-toggle.is-stacked,
.tp-services-page .tp-services-provider__hrs-toggle.is-stacked .tp-services-provider__hrs-status {
  align-items: flex-start;
}

.tp-services-page .tp-services-provider__hrs-open {
  color: var(--tp-hrs-open);
  font-weight: 600;
}

.tp-services-page .tp-services-provider__hrs-closed {
  color: var(--tp-hrs-closed);
  font-weight: 600;
}

.tp-services-page .tp-services-provider__hrs-nr {
  color: var(--tpl-ink-soft);
  font-weight: 400;
}

.tp-services-page .tp-services-provider__hrs-sep {
  color: var(--tp-hrs-grey);
}

/* The two hairlines: under the status line and at the foot of the list. */
.tp-services-page .tp-services-provider__hrs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 4px;
  padding: 14px 0;
  border-top: 1px solid var(--tp-hrs-line);
  border-bottom: 1px solid var(--tp-hrs-line);
  list-style: none;
}

.tp-services-page .tp-services-provider__hrs-day {
  display: flex;
  align-items: baseline;
  gap: 24px;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.tp-services-page .tp-services-provider__hrs-d {
  flex: 0 0 96px;
  color: var(--tpl-ink-soft);
}

.tp-services-page .tp-services-provider__hrs-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--tpl-ink-muted);
  font-variant-numeric: tabular-nums;
}

.tp-services-page .tp-services-provider__hrs-day.is-today .tp-services-provider__hrs-d,
.tp-services-page .tp-services-provider__hrs-day.is-today .tp-services-provider__hrs-t {
  color: var(--tpl-ink);
  font-weight: 500;
}

.tp-services-page .tp-services-provider__hrs-day.is-grey .tp-services-provider__hrs-t {
  color: var(--tp-hrs-grey);
}

@media (prefers-reduced-motion: reduce) {
  .tp-services-page .tp-services-provider__hrs-toggle .tp-site-icon {
    transition: none;
  }
}
