/* =============================================================================
   /locations content-area styles.
   =============================================================================

   WHY THIS FILE EXISTS
     Header and Footer now come from the shared semantic Site Chrome. The
     content between them previously used a palette and fonts that existed
     nowhere else in the product — a made-up navy (#141a42) and blue (#005ee9)
     next to the brand's #011932 / #1688CA, and system fonts against Poppins.
     Shared chrome around a differently-styled body reads as two sites stitched
     together.

     The CSS was also duplicated inline in both page templates, so any fix had
     to be made twice.

   TOKENS
     These readable names preserve the audited Trucker Path brand palette used
     by the shared Site Chrome. Keeping the values local to Locations makes a
     future palette mismatch visible and avoids coupling content styles to
     generated selectors.

     If the brand palette changes, update this block only.
   ========================================================================== */

:root {
  /* Brand */
  --tpl-blue: #1688ca;          /* primary brand blue */
  --tpl-blue-strong: #146fa3;   /* hover / pressed */
  --tpl-blue-bright: #18acf6;   /* accents, highlights */
  --tpl-blue-wash: #f0f9ff;     /* tinted surface */

  /* Ink */
  --tpl-ink: #011932;           /* headings, primary text */
  --tpl-ink-deep: #001728;      /* darkest surface */
  --tpl-ink-nav: #05101c;       /* product chrome and the hero it sits on */
  --tpl-ink-secondary: #525c66; /* production list and supporting text */
  --tpl-ink-muted: #5f6980;     /* secondary text */
  --tpl-ink-soft: #868f98;      /* tertiary / captions */
  --tpl-ink-faint: #babfc4;     /* disabled, em-dashes */

  /* Surfaces & lines */
  --tpl-surface: #f2f5f8;
  --tpl-surface-alt: #f9fafb;
  --tpl-surface-dark: #142a39;   /* raised dark section, distinct from the deepest footer */
  --tpl-line: #e2e6e9;
  /*
   * THREE ROLES THE PAGER NEEDED AND THE PALETTE DID NOT HAVE (2026-11-09).
   *
   * From the Pagination section of the Truck Stops list canvas
   * (@S2#Truck-Stops-Cards-ImageLeft.dc.html). The other five values it uses
   * already existed — #1688ca is --tpl-blue, #146fa3 --tpl-blue-strong,
   * #011932 --tpl-ink, #5f6980 --tpl-ink-muted, #e2e6e9 --tpl-line — so only
   * these three are new. Named here rather than written into site-design.css
   * because this :root is the palette's source of truth (docs/page-style.md);
   * a hex in a component file is how two palettes start.
   */
  --tpl-blue-wash-strong: #e3eff9;  /* pager page hover plate; deeper than --tpl-blue-wash */
  --tpl-line-strong: #d5dbe0;       /* pager Previous / Next border, enabled */
  --tpl-ink-disabled: #9aa5b1;      /* pager Previous / Next, unavailable */
  --tpl-line-soft: #f0f3f4;
  --tpl-white: #ffffff;

  /* Content and controls placed on dark surfaces */
  --tpl-on-dark-secondary: #ffffffb3;
  --tpl-on-dark-muted: #ffffff8f;
  --tpl-on-dark-subtle: #ffffff80;
  --tpl-on-dark-faint: #ffffff73;
  --tpl-on-dark-disabled: #ffffff40;
  --tpl-on-dark-surface: #ffffff14;
  --tpl-on-dark-surface-hover: #ffffff24;
  --tpl-on-dark-line: #ffffff1f;
  --tpl-on-dark-border: #ffffff33;
  --tpl-on-dark-border-hover: #ffffff59;

  /* The accent's own tint on dark, for a badge that has to read as brand
     rather than as one more neutral chip. The two above it are white at low
     alpha and cannot express that. */
  --tpl-on-dark-accent-surface: #18acf61a;
  --tpl-on-dark-accent-border: #18acf659;

  /* Semantic — separate from the accent on purpose */
  --tpl-link: var(--tpl-blue); /* text links use the primary brand blue */
  --tpl-link-transition: 140ms ease; /* matches the shared site chrome */
  --tpl-go: #08b86c;
  --tpl-go-wash: #ecfcf2;
  --tpl-go-text: #056b40;
  --tpl-go-border: #b6ecce;
  --tpl-chip-go-text: #067a48;
  --tpl-chip-go-border: #b7ecd0;
  --tpl-caution-text: #9a4a05;
  --tpl-caution-wash: #fff6ec;
  --tpl-caution-border: #ffd9b0;
  --tpl-danger-text: #a3231b;
  --tpl-danger-wash: #fdeceb;
  --tpl-danger-border: #f6c9c5;
  --tpl-warn: #eb5200;
  --tpl-clearance-warn: #8a4b00;
  --tpl-rating: #ffc043;
  --tpl-placeholder: #dfe5ea;

  /* Type */
  --tpl-font-head: "Poppins", "Poppins Placeholder", sans-serif;
  --tpl-font-body: "Poppins", "Poppins Placeholder", sans-serif;

  /* Shape — matches the homepage's cards and dropdown panels */
  --tpl-radius: 8px;
  --tpl-radius-sm: 4px;
  --tpl-shadow:
    rgba(92, 92, 94, 0.02) 0 0.68px 2.57px -0.125px,
    rgba(92, 92, 94, 0.03) 0 2.05px 7.8px -0.25px,
    rgba(92, 92, 94, 0.05) 0 5.43px 20.6px -0.375px,
    rgba(92, 92, 94, 0.08) 0 17px 64.6px -0.5px;
  --tpl-shadow-pricing:
    rgba(8, 20, 33, 0.07) 0 0.602px 2.288px -1.25px,
    rgba(8, 20, 33, 0.06) 0 2.289px 8.696px -2.5px,
    rgba(8, 20, 33, 0.03) 0 10px 38px -3.75px;

  --tpl-maxw: 1200px;           /* same content width as the homepage sections */
  --tpl-content-gap: 48px;      /* vertical rhythm between primary content blocks */
}

/* --- layout ---------------------------------------------------------------- */

.tpl-wrap {
  max-width: var(--tpl-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* The semantic shared chrome has no generated Framer flex root. Keep the page
   boundary explicit so full-bleed bands span the viewport and wide POI tables
   scroll inside their own wrapper instead of widening the document. */
#tp-main,
#tp-locations-main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: var(--tpl-font-body);
  color: var(--tpl-ink);
  background: var(--tpl-white);
}

/* Locations keeps its first dark section behind the fixed announcement/header.
   The extra top padding protects the breadcrumb while preserving one continuous
   dark surface instead of introducing a spacer band. */
.tp-site-chrome--dark-hero #tp-main > .tpl-hero:first-child {
  padding-top: calc(28px + var(--tp-site-announcement-height) + var(--tp-site-header-height));
}

.tpl-main { padding: 40px 0 16px; }

.tpl-main h2 {
  font-family: var(--tpl-font-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  color: var(--tpl-ink);
  text-wrap: balance;
}

/* BODY COPY ONLY — :not([class]) IS LOAD-BEARING.
   As `.tpl-main p` this rule is (0,0,1,1), which beats every single-class rule on a
   paragraph inside it. It was silently overriding four deliberate styles:

     .tpl-answer       wanted 17px / ink        got 16px / muted
     .tpl-empty-title  wanted 17px / ink        got 16px / muted
     .tpl-claim        wanted 14px / ink-soft got 16px / muted
     .tpl-inapp-title  wanted 24px / ink        got 16px / muted
     .tpl-inapp-eyebrow wanted 11px / blue      got 16px / muted

   So the topical answer block — the paragraph most likely to be quoted by an AI
   answer, sitting in its own tinted callout — was rendering in body grey at body
   size, and the "in the app" module had no heading hierarchy at all. Three
   redesigns of that module chased a problem that was this one line.

   A paragraph with a class has opted into its own styling by definition, so
   excluding classed paragraphs is both the fix and the rule. Verified: every
   classed <p> under .tpl-main (tpl-answer, tpl-empty-title, tpl-claim, tpl-cta-*,
   tpl-inapp-*) sets its own size and colour, so none of them lose anything. */
.tpl-main p:not([class]) { font-size: 16px; line-height: 1.65; color: var(--tpl-ink-muted); }

/* --- hero ----------------------------------------------------------------- */

.tpl-hero {
  background: linear-gradient(125deg, #0d2340 0%, #000000 100%);
  color: var(--tpl-white);
  padding: 28px 0 48px;
}

/* The Locations landing page carries one geographic cue, not a second hero.
   Keeping the state map as a background-only pseudo-element preserves the
   search and heading as the only interactive/semantic content. The source stays
   crisp; restraint comes from layout, opacity and a live edge mask so Retina
   screens do not expose a pre-faded raster edge. */
.tpl-root-hero,
.tpl-hub-hero,
.tpl-state-hero,
.tpl-detail-hero {
  position: relative;
}

.tpl-root-hero::after,
.tpl-hub-hero::after,
.tpl-state-hero::after,
.tpl-detail-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 150px;
  /* Keep the artwork inside the viewport without clipping interactive layers
     such as the city/state autocomplete that intentionally leaves the hero. */
  right: max(0px, calc((100vw - var(--tpl-maxw)) / 2 - 60px));
  width: min(48vw, 660px);
  aspect-ratio: 1611 / 976;
  background: url("/assets/locations/us-map-states.png") center / contain no-repeat;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.78) 66%,
    rgba(0, 0, 0, 0.22) 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.78) 66%,
    rgba(0, 0, 0, 0.22) 86%,
    transparent 100%
  );
  pointer-events: none;
}

/* 围栏图在场时不画水印 —— 设计源这一幕 `watermark=false`，地图块旁边
   的注释也写着它「取代共享的美国地图水印」。两张地图叠在一块，读者要先
   分辨哪张是这个地方。没围栏的页面水印照旧（实测只有 24% 的 POI 有围栏）。 */
.tpl-detail-hero_mapped::after { content: none; }

.tpl-state-hero::after,
.tpl-detail-hero::after {
  top: 118px;
  width: min(42vw, 580px);
  opacity: 0.2;
}

.tpl-hub-hero::after {
  top: 128px;
  width: min(45vw, 620px);
  opacity: 0.24;
}

.tpl-root-hero > .tpl-wrap,
.tpl-hub-hero > .tpl-wrap,
.tpl-state-hero > .tpl-wrap,
.tpl-detail-hero > .tpl-wrap {
  position: relative;
  z-index: 1;
}

.tpl-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tpl-on-dark-secondary);
  padding: 14px 0 24px;
}
.tpl-crumb a { color: var(--tpl-on-dark-secondary); text-decoration: none; }
.tpl-crumb a:hover { color: var(--tpl-white); text-decoration: underline; }
.tpl-crumb-parent { color: var(--tpl-on-dark-secondary); }
.tpl-crumb-separator { color: var(--tpl-on-dark-faint); }
.tpl-crumb-current { color: var(--tpl-white); }

.tpl-hero h1 {
  font-family: var(--tpl-font-head);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 24ch;
  text-wrap: balance;
  color: var(--tpl-white);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .tpl-hero h1 {
    background: linear-gradient(96deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

@media (forced-colors: active) {
  .tpl-hero h1 {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
}

.tpl-hero .sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--tpl-on-dark-secondary);
  max-width: 60ch;
  margin: 0;
}

.tpl-hero-meta {
  margin: 18px 0 0;
  color: var(--tpl-on-dark-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Route shield in the corridor hero */
.tpl-shield {
  display: inline-block;
  background: var(--tpl-blue);
  color: var(--tpl-white);
  font-family: var(--tpl-font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 5px 13px;
  border-radius: var(--tpl-radius-sm);
  margin-bottom: 14px;
}

.tpl-stats { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; min-width: 0; }
.tpl-stat {
  background: var(--tpl-on-dark-surface);
  border: 0;
  border-radius: var(--tpl-radius);
  padding: 16px 22px;
  min-width: 150px;
}
.tpl-stat .n {
  font-family: var(--tpl-font-head);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--tpl-white);
  font-variant-numeric: tabular-nums;
}
.tpl-stat .l { font-size: 12px; color: var(--tpl-on-dark-secondary); margin-top: 8px; }

/* --- answer block (the topical summary above the list) -------------------- */

.tpl-main .tpl-answer {
  font-size: 14px;
  line-height: 1.7;
  text-wrap: pretty;
  background: var(--tpl-blue-wash);
  border-left: 4px solid var(--tpl-blue);
  padding: 18px 22px;
  border-radius: var(--tpl-radius);
  color: var(--tpl-ink);
  margin: 0;
}
.tpl-answer strong { font-weight: 600; }
.tpl-answer a { white-space: nowrap; }

/* Ranking is a sibling discovery path, not another filter and not part of the
   answer callout. Each destination owns one complete navigation hit area; the
   Material geometry still renders through the shared semantic Icon registry. */
.tpl-ranking-entry { margin-top: 36px; }
.tpl-ranking-entry .tpl-ranking-entry__intro h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}
.tpl-ranking-entry__intro p {
  max-width: 62ch;
  margin: 5px 0 0;
  color: var(--tpl-ink-muted);
  font-size: 14px;
  line-height: 1.55;
}
.tpl-ranking-entry__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.tpl-ranking-entry__choice {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  gap: 16px;
  align-items: center;
  min-width: 0;
  min-height: 96px;
  padding: 16px 18px;
  box-sizing: border-box;
  color: var(--tpl-ink);
  text-decoration: none;
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  background: var(--tpl-white);
  transition:
    color var(--tpl-link-transition),
    border-color var(--tpl-link-transition);
}
.tpl-ranking-entry__choice:visited { color: var(--tpl-ink); }
.tpl-ranking-entry__choice:hover {
  color: var(--tpl-ink);
  border-color: var(--tpl-blue);
}
.tpl-ranking-entry__choice:focus-visible {
  color: var(--tpl-ink);
  outline: 2px solid var(--tpl-blue);
  outline-offset: 3px;
}
.tpl-ranking-entry__icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--tpl-blue);
  border-radius: var(--tpl-radius);
  background: var(--tpl-blue-wash);
}
.tpl-ranking-entry__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.tpl-ranking-entry__title {
  color: var(--tpl-ink);
  font-family: var(--tpl-font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.tpl-ranking-entry__description {
  color: var(--tpl-ink-muted);
  font-size: 14px;
  line-height: 1.5;
}
.tpl-ranking-entry__chevron {
  color: var(--tpl-ink-soft);
  transition: color var(--tpl-link-transition);
}
.tpl-ranking-entry__choice:hover .tpl-ranking-entry__chevron,
.tpl-ranking-entry__choice:focus-visible .tpl-ranking-entry__chevron {
  color: var(--tpl-blue);
}
.tpl-ranking-entry + h2 { margin-top: 40px; }

/* TEXT LINK CONTRACT.
   Light-surface text links share one color, underline and motion treatment.
   Navigation, cards, buttons and dark-surface links keep their own interaction
   patterns because their containers already provide the affordance. */
.tpl-answer a,
.tpl-answer a:visited,
.tpl-claim a,
.tpl-claim a:visited,
.tpl-appswitch a,
.tpl-appswitch a:visited,
.tpl-facts dd a,
.tpl-facts dd a:visited,
a.tpl-phone,
a.tpl-phone:visited,
a.tpl-poiname,
a.tpl-poiname:visited {
  color: var(--tpl-link);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color var(--tpl-link-transition),
    text-decoration-color var(--tpl-link-transition);
}
.tpl-answer a:hover,
.tpl-claim a:hover,
.tpl-appswitch a:hover,
.tpl-facts dd a:hover,
a.tpl-phone:hover,
a.tpl-poiname:hover {
  color: var(--tpl-blue-strong);
  text-decoration-color: currentColor;
}
.tpl-answer a:focus-visible,
.tpl-claim a:focus-visible,
.tpl-appswitch a:focus-visible,
.tpl-facts dd a:focus-visible,
a.tpl-phone:focus-visible,
a.tpl-poiname:focus-visible {
  color: var(--tpl-blue-strong);
  text-decoration-color: currentColor;
  outline: 2px solid var(--tpl-blue);
  outline-offset: 2px;
}

/* --- POI table ------------------------------------------------------------ */

/* overflow-x:auto alone does NOT stop the table's min-content width from
   propagating to the page — it only makes the overflow scrollable. Without
   min-width:0 the widest row (~550px) became a floor the whole page couldn't
   shrink below, so every phone width scrolled sideways. Measured: main was
   stuck at 599px from 320px through 414px viewports. */
.tpl-tablewrap { overflow-x: auto; min-width: 0; max-width: 100%; }


.tpl-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  /* With collapsed borders the terminal cell rule can compute correctly but
     disappear during border conflict resolution. Let the table surface paint
     its own closing edge so the boundary is guaranteed to render. */
  box-shadow: inset 0 -1px 0 var(--tpl-line-soft);
  border-radius: var(--tpl-radius);
  overflow: hidden;
  font-size: 14px;
}
.tpl-table th,
.tpl-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--tpl-line-soft);
  vertical-align: middle;
}
.tpl-table th {
  background: var(--tpl-surface);
  font-family: var(--tpl-font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tpl-ink-muted);
  white-space: nowrap;
}
.tpl-table tbody tr:last-child td { border-bottom: none; }
.tpl-table tbody tr:hover { background: var(--tpl-surface-alt); }

/* Save column (CMO-93 phase 2). The button is the shared icon-only Button; this only
   places it. Centered, and its header is centered over it. */
.tpl-table th[data-col="Save"],
.tpl-table td.tpl-cell-save { text-align: center; }
.tpl-table td.tpl-cell-save .tp-site-button { margin: 0 auto; }
/* The design's column is 65px wide (a 32px control and 16px of cell padding either side). */
.tpl-table th[data-col="Save"] { width: 65px; }

/* The row Save is a quiet icon, not a bordered Button: 32px, no border, 6px radius, a muted
   20px bookmark that turns brand blue once saved (phase-2 design review, measured on the list
   and the ranking table). It stays the shared Button underneath — markup, `aria-pressed`
   toggle and focus ring are the Foundation's; only the look is set here, with enough
   specificity to outrank the Button's own variant and icon rules (the icon's
   `flex: 0 0 18px` must be overridden too: in a flex row the basis beats `width`). */
.tp-site-chrome .tpl-table .tpl-save.tp-site-button {
  width: 32px;
  height: 32px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tpl-ink-muted);
}
.tp-site-chrome .tpl-table .tpl-save.tp-site-button:hover,
.tp-site-chrome .tpl-table .tpl-save.tp-site-button:focus-visible {
  background: var(--tpl-surface);
  color: var(--tpl-ink);
}
.tp-site-chrome .tpl-table .tpl-save.tp-site-button[aria-pressed="true"] {
  color: var(--tpl-blue);
}
.tp-site-chrome .tpl-table .tpl-save.tp-site-button > .tp-site-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

/* The Save under the rating in the detail hero. The distance from the rating is the design's
   (`.p2-hero-actions`, design-review/cmo-93-phase2): 24px on desktop, 20px on a phone. */
.tpl-detail-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@media (max-width: 809px) {
  /* Phone: Save and Share share the row equally (design `.p2-hero-actions`). */
  .tpl-detail-hero__actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; }
  .tpl-detail-hero__actions > .tp-site-button { width: 100%; }
}
/* The Actions card's Share is the phone dock's icon; on desktop the hero bar's is the one. */
[data-detail-desktop-actions] [data-provider-share] { display: none; }

/* The failure notice poi-save.js raises when a save or removal is refused. One element,
   created on first use. Fixed so it is seen wherever the press happened (a list row can
   be far below the fold), on the shared danger roles rather than a new colour. */
.tpl-save-notice {
  position: fixed;
  z-index: 950;
  top: 88px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--tpl-danger-border);
  border-radius: var(--tpl-radius);
  background: var(--tpl-white);
  box-shadow: 0 2px 12px rgb(1 25 50 / 8%);
}
.tpl-save-notice[hidden] { display: none; }
.tpl-save-notice__text { margin: 0; flex: 1 1 auto; color: var(--tpl-danger-text); font-size: 14px; line-height: 20px; }
.tpl-save-notice__dismiss {
  flex: 0 0 auto;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--tpl-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tpl-save-notice__dismiss:hover,
.tpl-save-notice__dismiss:focus-visible { color: var(--tpl-blue-strong); text-decoration: underline; }

.tpl-poi-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.tpl-poi-identity__icon {
  display: flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
}
.tpl-poi-identity__icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.tpl-poi-identity__icon--brand,
.tpl-poi-identity__icon--brand img {
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}
.tpl-poi-identity__icon--brand img { width: 24px; height: 24px; }
.tpl-poiname {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  color: var(--tpl-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.tpl-phone {
  color: var(--tpl-link);
  font: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Route position — the field that decides whether a stop is usable at all */
.tpl-route { white-space: nowrap; }
.tpl-hwy {
  display: inline-block;
  background: var(--tpl-ink);
  color: var(--tpl-white);
  font-family: var(--tpl-font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: var(--tpl-radius-sm);
}
.tpl-exit {
  display: inline-block;
  margin-left: 7px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
  color: var(--tpl-ink);
}
.tpl-muted { color: var(--tpl-ink-faint); }
.tpl-addr { display: block; color: var(--tpl-ink-soft); font-size: 12px; margin-top: 3px; }

.tpl-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tpl-surface);
  border: 1px solid var(--tpl-line);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--tpl-ink-muted);
  margin: 2px 4px 0 0;
  white-space: nowrap;
}
.tpl-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.tpl-chip-list .tpl-chip { margin: 0; }
/* Bypass support saves real time, so it reads as a "go" signal, not a neutral
   chip. Semantic colour, deliberately not the brand accent. */
/* Icons are pre-recoloured to the brand token at build time, not masked: several
   are multi-colour (restrooms uses three fills) and masking would flatten them. */
.tpl-chip-ico { width: 16px; height: 16px; flex: 0 0 auto; display: block; }
/* Quantity for the count amenities (showers, parking spots, ATMs, bulk DEF).
   Tinted rather than bolded: the number is the useful part of "Showers 8", but
   a row can carry several chips and bolding them all just makes the cell loud. */
.tpl-chip-n {
  margin-left: 2px;
  padding-left: 0;
  color: var(--tpl-ink);
  font-variant-numeric: tabular-nums;
}
.tpl-chip-go {
  background: var(--tpl-go-wash);
  border-color: var(--tpl-chip-go-border);
  color: var(--tpl-chip-go-text);
  font-weight: 600;
}

/* --- empty state ---------------------------------------------------------- */

.tpl-empty {
  background: var(--tpl-surface);
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--tpl-ink-muted);
}
.tpl-empty a { color: var(--tpl-blue); font-weight: 600; }
.tpl-empty-title { font-family: var(--tpl-font-head); font-weight: 600; font-size: 17px;
                   color: var(--tpl-ink); margin: 0 0 6px; }
.tpl-empty-alts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
                  margin: 18px 0 0; padding: 0; list-style: none; }
.tpl-empty-alts a {
  display: inline-block; background: var(--tpl-white); border: 1px solid var(--tpl-line);
  border-radius: 100px; padding: 8px 16px; font-size: 14px; color: var(--tpl-ink);
  font-weight: 500;
}
.tpl-empty-alts a:hover { border-color: var(--tpl-blue); color: var(--tpl-blue); }
.tpl-empty-error {
  border: 0;
  margin-top: var(--tpl-content-gap);
}
.tpl-empty-error p { margin: 0 auto 14px; max-width: 62ch; }
.tpl-empty-error .tpl-empty-title { margin-bottom: 6px; }

/* Empty results are one calm decision surface. The light gray panel spans the
   same content column as its surrounding modules, while centered copy keeps
   the reading measure controlled. Whitespace separates it from the answer and
   Fleet modules. */
.tpl-empty:not(.tpl-empty-error) {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 56px auto 0;
  padding: 28px 48px 30px;
  background: var(--tpl-surface-alt);
  border: 0;
  text-align: center;
}
.tpl-empty:not(.tpl-empty-error)::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  background: url('/assets/locations/empty-state-locations-nearby.svg') center / contain no-repeat;
}
.tpl-empty:not(.tpl-empty-error) .tpl-empty-title {
  margin-bottom: 6px;
  font-size: 19px;
  line-height: 1.4;
  text-wrap: balance;
}
.tpl-empty:not(.tpl-empty-error) p {
  width: 100%;
  max-width: 64ch;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.65;
  text-align: center;
  text-wrap: pretty;
}
.tpl-empty:not(.tpl-empty-error) .tpl-empty-alts {
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.tpl-empty:not(.tpl-empty-error) .tpl-empty-alts a {
  display: inline-flex;
  min-height: 42px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius-sm);
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition:
    color var(--tpl-link-transition),
    background-color var(--tpl-link-transition),
    border-color var(--tpl-link-transition);
}
.tpl-empty:not(.tpl-empty-error) .tpl-empty-alts a:hover {
  background: var(--tpl-blue-wash);
  border-color: var(--tpl-blue);
  color: var(--tpl-blue-strong);
}
.tpl-empty:not(.tpl-empty-error) .tpl-empty-alts a:focus-visible {
  color: var(--tpl-blue-strong);
  outline: 2px solid var(--tpl-blue);
  outline-offset: 3px;
}
.tpl-empty:not(.tpl-empty-error) + .tpl-cta { margin-top: 56px; }

/* The Figma assets are exported from a square component canvas. Brand touchpoints
   intentionally expose only the circular POI marker, never that rectangular canvas. */
.tpl-brand-card-icon,
.tpl-brand-links img {
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

/* The directory gives all chains equal visual weight: logo, name, one action.
   Counts remain on each live brand page, where the API can substantiate them. */
.tpl-brand-directory { margin-top: 44px; }
.tpl-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tpl-brand-card,
.tpl-brand-links a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  box-sizing: border-box;
  padding: 18px;
  color: var(--tpl-ink);
  text-decoration: none;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  transition:
    color 180ms cubic-bezier(0.2, 0, 0, 1),
    border-color 180ms cubic-bezier(0.2, 0, 0, 1);
}
.tpl-brand-card:hover,
.tpl-brand-card:focus-visible,
.tpl-brand-links a:hover,
.tpl-brand-links a:focus-visible {
  color: var(--tpl-blue);
  border-color: var(--tpl-blue);
}
.tpl-brand-card-icon,
.tpl-brand-links img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.tpl-brand-card-copy { display: block; min-width: 0; }
.tpl-brand-card-title,
.tpl-brand-card-note { display: block; }
.tpl-brand-card-title {
  font-family: var(--tpl-font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.tpl-brand-card-note {
  margin-top: 3px;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  line-height: 1.45;
}
.tpl-brand-card-arrow { color: var(--tpl-blue); font-size: 18px; }

/* Sibling brands are still secondary navigation, so they use the same approved
   icons at a shorter row height than the directory's primary cards. */
.tpl-brand-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 8px;
}
.tpl-brand-links a { min-height: 58px; padding: 10px 12px; }
.tpl-brand-links img { width: 32px; height: 32px; }
.tpl-brand-links span {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

/* The directory link closes the brand grid rather than joining it: it is one
   text link to a sibling index, not another brand tile, so it keeps the shared
   Link renderer's own typography and takes only the row gap from this block.
   The band's own `.tpl-browse p` rule is more specific than a lone class, so the
   scoped selector is what actually sets this spacing. */
.tpl-brand-links-more,
.tpl-browse .tpl-brand-links-more {
  margin: 12px 0 0;
}
/* --- section hierarchy ---------------------------------------------------- */

/* Everything used to carry the same visual weight, so "browse other states" read
   as important as the list the visitor actually came for. The secondary
   navigation blocks now sit on a banded background, visually below the content. */
.tpl-browse {
  background: var(--tpl-surface);
  border-top: 0;
  margin-top: 56px;
  padding: 8px 0 40px;
}
.tpl-browse h2 { font-size: 19px; margin: 32px 0 12px; }
.tpl-browse p { font-size: 14px; margin: 0 0 14px; }
.tpl-browse .tpl-states a,
.tpl-browse .tpl-links a { background: var(--tpl-white); }

/* --- link grids ----------------------------------------------------------- */

.tpl-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
.tpl-states--single { grid-template-columns: minmax(0, 320px); }
/* State links and non-interactive route metrics share one compact card shape.
   The route metrics become links only after the backend can filter corridors;
   until then, matching their layout without a hover/focus affordance keeps the
   counts useful without promising a destination. */
.tpl-states a,
.tpl-states .tpl-state-flat,
.tpl-states .tpl-highway-metric {
  display: flex;
  min-height: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  padding: 10px 13px;
  font-size: 14px;
  color: var(--tpl-ink);
  text-decoration: none;
}
.tpl-states a,
.tpl-links a {
  transition:
    color 180ms cubic-bezier(0.2, 0, 0, 1),
    border-color 180ms cubic-bezier(0.2, 0, 0, 1);
}

.tpl-states a:hover,
.tpl-links a:hover {
  border-color: var(--tpl-blue);
  color: var(--tpl-blue);
}
.tpl-states .tpl-state-flat { color: var(--tpl-ink-muted); background: var(--tpl-surface-alt); cursor: default; }
/* INERT ONLY WHEN IT IS NOT A LINK — hence span, not the bare class.
   These metrics were all inert: corridor pages needed a filter the endpoint did not
   have, so `border: 0; cursor: default` deliberately made them read as text. Now the
   linkable ones are anchors to state-scoped corridor pages, and this rule was
   defeating that: at (0,0,2,0) it outranks `.tpl-states a` at (0,0,1,1), so the anchor
   lost its chip border and got an arrow cursor — a link that neither looked nor felt
   like one. State routes are still spans, because fromSlug() rejects them and a link
   would 404, so they keep exactly the treatment they had. */
.tpl-states span.tpl-highway-metric {
  color: var(--tpl-ink);
  border: 0;
  cursor: default;
}
.tpl-states .c { color: var(--tpl-ink-soft); font-variant-numeric: tabular-nums; }
.tpl-highways a,
.tpl-highways .tpl-state-flat,
.tpl-highways .tpl-highway-metric { font-weight: 500; }
.tpl-highways .c { font-weight: 400; }

.tpl-list-note {
  margin: 14px 0 0;
  color: var(--tpl-ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- root Locations directory -------------------------------------------- */

.tpl-root-hero h1 { max-width: 19ch; }

.tpl-type-directory {
  background: var(--tpl-surface);
  padding: 56px 0 64px;
}
.tpl-section-intro { max-width: 62ch; margin-bottom: 28px; }
.tpl-section-eyebrow {
  margin: 0 0 8px;
  color: var(--tpl-blue);
  font-family: var(--tpl-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tpl-section-intro h2 {
  margin: 0 0 8px;
  color: var(--tpl-ink);
  font-family: var(--tpl-font-head);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tpl-section-intro > p:last-child {
  margin: 0;
  color: var(--tpl-ink-muted);
  font-size: 15px;
  line-height: 1.6;
}
.tpl-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tpl-type-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  box-sizing: border-box;
  padding: 22px;
  color: var(--tpl-ink);
  text-decoration: none;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  transition:
    color 180ms cubic-bezier(0.2, 0, 0, 1),
    border-color 180ms cubic-bezier(0.2, 0, 0, 1);
}
.tpl-type-card:hover {
  color: var(--tpl-blue);
  border-color: var(--tpl-blue);
}
.tpl-type-card-icon { display: block; width: 40px; height: 40px; object-fit: contain; }
.tpl-type-card-copy { display: block; min-width: 0; }
.tpl-type-card-title {
  display: block;
  font-family: var(--tpl-font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.tpl-type-card-description {
  display: block;
  margin-top: 5px;
  color: var(--tpl-ink-muted);
  font-size: 13px;
  line-height: 1.5;
}
.tpl-type-card-arrow { color: var(--tpl-blue); font-size: 19px; }
.tpl-root-list { padding-top: 64px; }
.tpl-root-hero .tps-form:has(#tps-type option[value=""]:checked) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.tpl-root-hero .tps-form:has(#tps-type option[value=""]:checked) .tps-field-amenity {
  display: none;
}
.tpl-poitype {
  color: var(--tpl-ink-muted);
  font-size: 12px;
  font-weight: 500;
}

/*
 * REMOVED 2026-11-09: the pre-2026-10-14 paginator's own styles.
 *
 * `.tpl-pagination`, `.tpl-pagination-summary`, `.tpl-pagination-actions` and
 * `.tpl-page-link` styled a Previous/Next row that stopped being rendered when
 * paging was replaced by the app hand-off, and no template, partial or script
 * has referenced any of them since.
 *
 * They are deleted rather than left dormant because dead CSS that keeps a
 * plausible name does not stay dead: T20's control reused `.tpl-pagination`
 * for placement and silently inherited `flex-direction: column` from the old
 * mobile rule below 760px, which stacked the arrows above and below the page
 * numbers. The shared `.tp-site-pagination` in site-design.css owns the
 * control's appearance now; the only Locations-owned rule is the placement one
 * further down this file.
 */

.tpl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-links a {
  display: inline-flex;
  min-height: 40px;
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  border-radius: 100px;
  padding: 9px 15px 9px 10px;
  font-size: 14px;
  color: var(--tpl-ink);
  text-decoration: none;
}
.tpl-type-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

/* The link out to the interactive app version. Quiet — it is a secondary route for
   the minority who want the map, not a competing call to action. */
.tpl-appswitch { margin: 20px 0 0; font-size: 14px; }
.tpl-appswitch a { font-weight: 600; }

/* --- CTA ------------------------------------------------------------------ */

.tpl-cta {
  display: grid;
  /* Was 1.15fr / 0.85fr with a one-line headline, which left most of the left
     column empty on a wide screen while the two cards crowded the right. The
     headline is now a real sentence, so the split is closer to even. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 48px;
  align-items: center;
  /* The fleet image comes from the current Trucker Path homepage. The lighter
     masks keep both text columns readable while letting the trucks remain a
     recognisable part of the card instead of disappearing into the surface. */
  background:
    linear-gradient(90deg, rgba(0, 24, 42, 0.78) 0%, rgba(0, 24, 42, 0.64) 48%, rgba(0, 24, 42, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 19, 34, 0.02) 0%, rgba(0, 19, 34, 0.18) 100%),
    url('/assets/locations/fleet-cta-trucks.jpg') center 58% / cover no-repeat;
  background-color: var(--tpl-ink-deep);
  border-radius: 14px;
  padding: 48px 52px;
  margin: var(--tpl-content-gap) 0;
  color: var(--tpl-white);
}
/* Was `.tpl-cta h2`. The CTA's title is now a <p role="heading"> so a promo
   label stays out of the document outline — see the note in _cta.blade.php. The
   h2 selector is kept so the block still looks right if any other page passes a
   real heading in. */
/* Eyebrow: names the product so the headline can be about the benefit. */
.tpl-cta-eyebrow {
  font-family: var(--tpl-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tpl-blue-bright);
  margin: 0 0 12px !important;
}
.tpl-cta h2,
.tpl-cta .tpl-cta-title {
  font-family: var(--tpl-font-head);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--tpl-white);
  margin: 0 0 10px;
  text-wrap: balance;
}
/* Must not inherit the body-copy rule below, which is also `.tpl-cta p`. */
.tpl-cta p:not(.tpl-cta-title) { color: var(--tpl-on-dark-secondary); margin: 0 0 20px; max-width: 46ch; font-size: 16px; }
.tpl-cta .tpl-cta-button { font-family: var(--tpl-font-head); }
/* ROWS, NOT BOXES.
   The two secondary items were cards with their own fill and 1px border, sitting
   inside an already-dark panel. Dark-on-dark at that size reads as an empty
   placeholder rather than as content, which is most of why the block looked
   unfinished. Hairline separators carry the same grouping without inventing a
   container. */
.tpl-cta-side { min-width: 0; align-self: center; }
.tpl-cta-sidelabel {
  font-family: var(--tpl-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tpl-on-dark-faint);
  margin: 0 0 10px !important;
}
.tpl-cta-rows { border-top: 1px solid var(--tpl-on-dark-line); }
.tpl-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--tpl-on-dark-line);
  padding: 14px 0;
  text-decoration: none;
}
.tpl-cta-rowtitle {
  display: block;
  font-family: var(--tpl-font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tpl-white);
}
.tpl-cta-rownote {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tpl-on-dark-muted);
  margin-top: 3px;
}
.tpl-cta-rowarrow {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.15s ease;
}
.tpl-cta-row:hover .tpl-cta-rowtitle,
.tpl-cta-row:focus-visible .tpl-cta-rowtitle { color: var(--tpl-blue-bright); }
.tpl-cta-row:hover .tpl-cta-rowarrow { transform: translateX(3px); }

/* --- business-owner claim ------------------------------------------------- */

/* A FOOTNOTE, NOT A BANNER.
   This was `background: var(--tpl-blue-wash)` with a border and 18px padding — the
   only tinted full-width band on the page, carrying more visual weight than the
   primary CTA, for the item that matters to the fewest visitors. `margin: 0 0 8px`
   also gave it no top margin, so it butted straight into the dark panel above and
   the two treatments collided.
   It is now a quiet text footnote. Same information and link, with weight
   proportional to its priority and no extra divider competing with the CTA. */
.tpl-claim {
  margin: 30px 0 0;
  padding: 0;
  border-top: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tpl-ink-soft);
}
.tpl-claim b { color: var(--tpl-ink); font-family: var(--tpl-font-head); font-weight: 600; }

/*
 * The page control's place on a Locations list, and nothing else about it.
 *
 * Geometry, type, the two breakpoints and every state belong to
 * .tp-site-pagination in site-design.css — this is the Foundation pattern, not
 * a Locations one, and a page file may not redefine it (AGENTS.md). All that is
 * owned here is where it sits relative to the list and the count line above it:
 * tighter than .tpl-claim's 30px because the two read as one block.
 */
.tpl-pagination {
  margin: 18px 0 0;
}

/*
 * The list while its next page is in flight.
 *
 * Dimmed rather than emptied: replacing the rows with a skeleton on every
 * click makes a fast page flash, and the old rows under a wash read as
 * "still here, being replaced". Opacity only — no layout change, so nothing
 * moves under the pointer and the scroll position cannot jump.
 *
 * Pointer events go because a half-faded row is still clickable otherwise,
 * and a reader who hits a detail link mid-swap lands on a page they did not
 * aim at.
 */
/*
 * NO FOCUS RING ON THE LIST ITSELF.
 *
 * locations-pagination.js focuses this container after the reader pages, so
 * the next Tab starts inside the new rows rather than at the top of the
 * document. The container carries `tabindex="-1"`, so Tab can never reach it
 * and the only focus it ever receives is that programmatic one — there is no
 * keyboard affordance to take away here, while the browser's default ring
 * draws a box around the whole table and reads as an error state.
 *
 * Every control inside keeps its own visible focus. If this element is ever
 * made reachable by Tab, this rule has to go with that change.
 */
[data-locations-list]:focus,
[data-locations-list]:focus-visible {
  outline: none;
}

[data-locations-list].is-paging {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 120ms ease;
}

@media (prefers-reduced-motion: reduce) {
  [data-locations-list].is-paging { transition: none; }
}
.tpl-claim a { font-weight: 600; white-space: nowrap; }

/* --- FAQ ------------------------------------------------------------------ */

.tpl-faq details {
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  margin-bottom: 8px;
  padding: 0 20px;
}
.tpl-faq details:last-of-type { margin-bottom: 0; }
.tpl-faq details[open] { box-shadow: 0 1px 4px rgba(16, 24, 40, 0.05); }
.tpl-faq summary {
  font-family: var(--tpl-font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--tpl-ink);
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tpl-faq summary::-webkit-details-marker { display: none; }
.tpl-faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.tpl-faq-icon::before,
.tpl-faq-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--tpl-blue);
}
.tpl-faq-icon::after {
  transform: rotate(90deg) scale(1);
  opacity: 1;
  filter: blur(0);
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1),
              opacity 200ms cubic-bezier(0.2, 0, 0, 1),
              filter 200ms cubic-bezier(0.2, 0, 0, 1);
}
.tpl-faq details[open] .tpl-faq-icon::after {
  transform: rotate(90deg) scale(0.25);
  opacity: 0;
  filter: blur(4px);
}
.tpl-faq-answer { overflow: hidden; }
.tpl-faq p { margin: 0 0 18px; color: var(--tpl-ink-muted); font-size: 15px; line-height: 1.7; }

/* FAQ is its own closing section. The generic `.tpl-main` rhythm is weighted
   toward content that continues below it, so its 40/16 padding plus the h2's
   top margin left much more air above the accordion than below it. Keep the
   closing section optically centered before the footer instead. */
.tpl-main.tpl-faq-section { padding: 48px 0; }
.tpl-faq-section .tpl-faq h2 { margin: 0 0 16px; }

/* --- search --------------------------------------------------------------- */

.tps-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  background: var(--tpl-on-dark-surface);
  border: 0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 26px;
}
.tpl-repair-entry {
  margin: 26px 0 0;
  font-size: 16px;
  line-height: 1.5;
}
.tpl-repair-entry .tp-site-link { color: #fff; }
.tpl-repair-entry + .tps-form { margin-top: 12px; }
.tps-form:has(.tps-field-brand:not([hidden])) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}
/* min-width:0 is load-bearing. Grid and flex items default to min-width:auto,
   which resolves to min-content — and a <select>'s min-content is the width of
   its longest option ("District of Columbia", "Walmart Stores"). That gave the
   whole page a ~490px floor that no media query could shrink, so it scrolled
   sideways on every phone. width:100% does not override min-width:auto. */
.tps-field { display: flex; flex-direction: column; gap: 6px; position: relative; min-width: 0; }
.tps-field[hidden] { display: none; }
.tps-field select, .tps-field input { min-width: 0; }
.tps-form { min-width: 0; }
.tps-field label {
  font-family: var(--tpl-font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tpl-on-dark-secondary);
}
.tps-optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--tpl-on-dark-subtle); }
.tps-field select,
.tps-field input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  margin: 0;
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius-sm);
  padding: 0 12px;
  font-family: var(--tpl-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--tpl-ink);
  background-color: var(--tpl-white);
  box-shadow: none;
}
.tps-field select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m5 7 4 4 4-4' fill='none' stroke='%23868f98' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}
.tps-field-location input[role="combobox"] {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m5 7 4 4 4-4' fill='none' stroke='%23868f98' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}
.tps-field input::placeholder { color: var(--tpl-ink-faint); }
.tps-field select:focus,
.tps-field input:focus {
  border-color: var(--tpl-blue);
  outline: 1px solid var(--tpl-blue);
  outline-offset: 0;
}

.tp-site-chrome .tp-site-button.tp-site-button--form {
  height: 42px;
  padding: 0 28px;
}
.tps-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  margin: 5px 0 0;
  padding: 5px;
  list-style: none;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  box-shadow: var(--tpl-shadow);
  max-height: 264px;
  overflow-y: auto;
}
.tps-suggest li {
  padding: 9px 11px;
  font-size: 14px;
  color: var(--tpl-ink);
  border-radius: 6px;
  cursor: pointer;
}
.tps-suggest li:hover,
.tps-suggest li[aria-selected="true"] { background: var(--tpl-blue-wash); color: var(--tpl-blue); }
.tps-suggest-status {
  max-height: none;
  min-height: 42px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  color: var(--tpl-ink-muted);
}
.tps-suggest-status[hidden] { display: none; }
.tps-suggest-status[data-state="loading"]::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--tpl-line);
  border-top-color: var(--tpl-blue);
  border-radius: 50%;
  animation: tpl-search-spin .72s linear infinite;
}
.tps-suggest-status[data-state="error"] { color: var(--tpl-ink); }
@keyframes tpl-search-spin { to { transform: rotate(360deg); } }

/* --- responsive ----------------------------------------------------------- */

/* --- POI detail page ------------------------------------------------------
   /location-details/{type}/{state}/{city}/{name}?id=N

   Same hero, same bands, same tokens as the state pages — a detail page is one
   level down the same tree, not a different product. What it adds is the action
   row under the h1 and the two-column facts/panels split.

   .tpl-detail-hero joins the .tpl-root-hero / .tpl-hub-hero / .tpl-state-hero
   family, so it gets the same US-map background pseudo-element, on the state
   tier's tuning (top 118px, min(42vw,580px), opacity .2) rather than a fourth set
   of hand-picked numbers. An earlier version deliberately left it out, arguing
   that a map of the country behind a page about one specific place is decoration
   arguing with the content. That reasoning is not wrong in the abstract and it was
   the wrong call here: these pages are one visual system, and a detail page that
   drops the hero treatment reads as a different site rather than as one level down
   the same tree. Consistency wins. */

/* BREADCRUMB, FOUR LEVELS DEEP.
   The shared .tpl-crumb is a nowrap flex row, which is fine for the list pages'
   three fixed-length levels. This trail has four, and the last one is a POI name of
   arbitrary length — so on a phone flex squeezed every item until "Truck Stops"
   broke across two lines and "Top Fuel Bracey" across three. Observed, not
   predicted.

   Wrap BETWEEN items instead of inside them: the parents and separators stay on one
   line each, and only the leaf may wrap, because it is last and has nothing after it
   to strand. Scoped to the detail variant so the list pages keep the behaviour they
   already have. */
.tpl-crumb-detail { flex-wrap: wrap; row-gap: 2px; }
/* 设计源 D3（Truck Stop Detail，2026-10-14 像素对齐）：面包屑 14px、项间 8px，
   与下方身份行之间 50px（源里是 hero 内层 `flex-direction:column; gap:50px`）。
   上方留白由 hero 的 padding-top 负责（见 slot 0），所以这里不要上内边距。 */
.tpl-hero.tpl-detail-hero .tpl-crumb-detail {
  column-gap: 8px;
  padding: 0 0 50px;
  font-size: 14px;
}
.tpl-crumb-detail > a,
.tpl-crumb-detail > .tpl-crumb-separator { white-space: nowrap; }

/* ACTION ROW.
   Both actions use the shared site-button geometry and typography. The secondary
   call action changes only its surface treatment so this row cannot drift from
   the Navigation and Locations CTA button contract. */
.tpl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.tpl-actions .tp-site-button { box-sizing: border-box; }

/* Call is a real link, so it gets a real affordance — but stays quieter than the
   shared primary button because the app is the conversion target. */
.tpl-actions .tpl-action {
  background-color: var(--tpl-on-dark-surface);
  border: 1px solid var(--tpl-on-dark-border);
}
.tpl-actions .tpl-action:hover,
.tpl-actions .tpl-action:focus-visible {
  background-color: var(--tpl-on-dark-surface-hover);
  border-color: var(--tpl-on-dark-border-hover);
  color: var(--tpl-white);
}

/* --- ROUTE MARKER --------------------------------------------------------
   The road sign for `highway` + `exit`, in the detail hero. Real data rendered in
   the visual language a North American driver already reads — it was six points of
   grey text at the tail of the subtitle before. See
   resources/views/poi/partials/_route-shield.blade.php.

   Sits on the dark hero, so the signs keep their real colours (they are legible on
   dark by design — that is what road signs are for) and the text beside them is
   white. */
.tpl-marker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.tpl-marker-sign { display: block; flex: 0 0 auto; line-height: 0; }
/* Highway numerals are set in a condensed-ish weight on real signage; Poppins at
   700 with tight tracking is the closest thing already loaded, and loading a
   dedicated sign font for one glyph run would cost more than it buys. */
.tpl-marker-num {
  font-family: var(--tpl-font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
/* Three- and four-digit routes (I-405, US-1187) overflow the shield at full size. */
.tpl-marker-n3 { font-size: 14px; letter-spacing: -0.8px; }
.tpl-marker-n4 { font-size: 12px; letter-spacing: -0.9px; }

.tpl-marker-text { display: flex; flex-direction: column; gap: 2px; }
.tpl-marker-route {
  font-family: var(--tpl-font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--tpl-white);
  line-height: 1.1;
}
.tpl-marker-exit {
  font-size: 14px;
  color: var(--tpl-on-dark-secondary);
  line-height: 1.1;
}

/* --- MANY / SOME / FEW LEGEND -------------------------------------------
   The app's own three words, shown TOGETHER so they read as a scale of what the app
   reports rather than as this location's current state. Nothing is highlighted and
   there is no timestamp — see the notes in _locked-band.blade.php and
   config/poi-detail.php for why one-of-three-highlighted would be both a real-time
   disclosure and wrong most of the time.

   Real semantic colours, not the accent: green/amber/red is what the app uses and
   what the words mean. The tones are the same tokens the bypass chip uses. */
.tpl-inapp-scale {
  display: flex;
  gap: 5px;
  margin: 10px 0 12px;
}
.tpl-scale-step {
  flex: 1 1 0;
  text-align: center;
  font-family: var(--tpl-font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 4px;
  border-radius: var(--tpl-radius-sm);
  /* Deliberately not saturated. At full app-strength green these three read as a
     status readout; muted, with all three present, they read as a key. */
  border: 1px solid transparent;
}
.tpl-scale-go   { background: var(--tpl-go-wash); color: var(--tpl-go-text); border-color: var(--tpl-go-border); }
.tpl-scale-warn { background: var(--tpl-caution-wash); color: var(--tpl-caution-text); border-color: var(--tpl-caution-border); }
.tpl-scale-stop { background: var(--tpl-danger-wash); color: var(--tpl-danger-text); border-color: var(--tpl-danger-border); }

/* --- PUBLISHED REVIEW EXCERPTS -------------------------------------------
   Real driver words, open on the page — the gate's other side, not behind it. The
   only section that meaningfully answers the thin-content problem, because a
   driver's sentence exists nowhere else while an address exists everywhere.

   Quoted with a left rule rather than boxed: a card around a one-line quote gives
   it more furniture than content, which is what made the first CTA block read as
   filler. */
.tpl-detail-reviews { min-width: 0; }
.tpl-quote {
  margin: 0 0 16px;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--tpl-blue-wash);
  max-width: 72ch;
}
.tpl-quote:last-child { margin-bottom: 0; }
.tpl-quote-stars { display: inline-flex; gap: 1px; font-size: 13px; line-height: 1; }
.tpl-qstar { color: var(--tpl-ink-faint); }
/* Amber, not the brand blue — a blue star does not read as a rating. Same token as
   the hero's aggregate row. */
.tpl-qstar-on { color: var(--tpl-rating); }
.tpl-quote-rating {
  font-size: 12px;
  color: var(--tpl-ink-soft);
  margin-left: 8px;
}
.tpl-detail-reviews .tpl-quote p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--tpl-ink);
  margin: 6px 0 0;
}

/* --- THE QUESTIONS (reviews row) ----------------------------------------
   Third variant of the same device: parking gets the app's three-word scale, fuel
   gets the two-price comparison, this gets the questions a driver arrives with.
   Each shows the shape of what the app answers; none states an answer.

   Quoted rather than bulleted — these are things a driver says, and a left rule
   reads as speech where a bullet reads as a feature list. */
.tpl-inapp-qs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 12px;
  padding-left: 10px;
  border-left: 2px solid var(--tpl-blue-wash);
}
.tpl-inapp-qitem {
  font-size: 14px;
  line-height: 1.45;
  color: var(--tpl-ink);
  font-style: italic;
}

/* --- TWO-PRICE COMPARISON (fuel) ----------------------------------------
   The posted price and the discounted one, as two LABELLED EMPTY slots. Same device
   as the scale and the questions: the shape of what the app shows, never the values.
   See _locked-band.blade.php for why no number goes in here, ever.

   STACKED, and the horizontal version is why. It lived in `grid-template-columns:
   1fr auto 1fr` with the arrow as a ::before pinned to column 2 — but a ::before on
   a grid container becomes a grid ITEM, so it competed with the two children for
   auto-placement and landed off to one side while the boxes ended up in the wrong
   cells at unequal heights. On top of that the row sits in a ~240px column of a
   three-across grid, which has no room for two priced boxes side by side; the
   longer label wrapped and broke the alignment again.

   A real element for the arrow, flex column, done. And vertical is how a discount
   reads anyway: this price, down to that one. */
.tpl-inapp-compare {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 12px;
}
.tpl-cmp {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border-radius: var(--tpl-radius-sm);
  border: 1px solid var(--tpl-line);
  background: var(--tpl-surface);
  min-width: 0;
}
.tpl-cmp-arrow {
  align-self: center;
  font-size: 12px;
  line-height: 1;
  color: var(--tpl-ink-faint);
}
.tpl-cmp-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tpl-ink-soft);
  line-height: 1.2;
}
/* The slot where the number would be. A bar plus the unit, on one line. */
.tpl-cmp-slot { display: flex; align-items: center; gap: 4px; }
.tpl-cmp-slot::before {
  content: "";
  display: block;
  width: 38px;
  height: 11px;
  border-radius: 3px;
  background: var(--tpl-placeholder);
}
.tpl-cmp-unit { font-size: 12px; color: var(--tpl-ink-soft); }
.tpl-cmp-hint { font-size: 12px; color: var(--tpl-ink-soft); line-height: 1.2; }

/* The discounted side reads as the better one — which is the product fact being
   stated. It carries no value, so it claims an ordering, not an amount. */
.tpl-cmp-save { background: var(--tpl-go-wash); border-color: var(--tpl-go-border); }
.tpl-cmp-save .tpl-cmp-label { color: var(--tpl-go-text); }
.tpl-cmp-save .tpl-cmp-slot::before { background: var(--tpl-go-border); }
.tpl-cmp-save .tpl-cmp-unit, .tpl-cmp-save .tpl-cmp-hint { color: var(--tpl-go-text); }

/* THE OPEN RATING, in the detail hero under the h1.
   Renders nothing today — the endpoint returns no aggregate, so ratingOf() is null
   and the reviews module stays locked instead. Styled now so the day the field
   lands it is a data change, not a design task.

   The number leads at display size because that is what a driver scans; the stars
   are a glyph row beside it, and the full sentence ("3.3 out of 5, from 9 drivers…")
   is the accessible text, since a row of ★ characters says nothing to a screen
   reader. */
.tpl-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
.tpl-rating-value {
  font-family: var(--tpl-font-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--tpl-white);
  font-variant-numeric: tabular-nums;
}
.tpl-rating-stars { display: inline-flex; gap: 1px; font-size: 17px; line-height: 1; }
.tpl-star { color: var(--tpl-on-dark-disabled); }
/* Amber, not the brand blue: a blue star does not read as a rating, and the app
   uses a warm fill for the same control. */
.tpl-star-on { color: var(--tpl-rating); }
.tpl-rating-count { font-size: 14px; color: var(--tpl-on-dark-secondary); }

/* Facts and Amenities share the desktop information band. Facts keep their readable
   640px measure; the compact, secondary Amenities summary uses the remaining width
   without becoming a bordered sidebar. Reviews, when present, stay full width below
   both columns. The locked product band remains outside this grid. */
/* ══ 七 slot 事实模板 ═══════════════════════════════════════════════════════
   设计源 `Truck Stop Detail - Safe Truck Parking.dc.html`（层 3 通用模板）。
   还原账本、取值仲裁与有名可依的偏离见 docs/locations-detail-fidelity.md。

   卡片外壳与事实行是 slot 1 / 2 / 4 共用的同一套规格 —— 设计源里这三段的
   内联样式逐字相同，所以这里只写一遍。 */

/* 卡片外壳。圆角 12 / 控件圆角 6 来自 PRD 验收 A11（「圆角 6/12」），与设计源
   里出现频次最高的两档一致；几何值不走颜色/排版 token。 */
.tpl-slot-card {
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: 0 1px 2px rgb(1 25 50 / 4%);
  min-width: 0;
}

/* 两个选择器，不是一个。`> h2` 是直接子元素，而 slot 3 的标题包在
   `.tpl-slot-inside__head` 的 flex 行里（标题 + 计数同排），所以它**没有**被这条
   命中 —— 实测全页只有那一个标题是 26px，其余都是 24。设计源每个 slot 的 H2 都是
   24/600/1.35。 */
.tpl-detail-main .tpl-slot-card > h2,
.tpl-detail-main .tpl-slot-inside__head > h2 {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
}

/* head 里标题与计数同排，纵向间距归 head 自己的 margin-bottom。 */
.tpl-detail-main .tpl-slot-inside__head > h2 { margin-bottom: 0; }

/* 事实行。每行自己是一个 grid —— 不是整张 dl 一个 grid：标签列要能在
   110–150px 之间自适应，值列要 minmax(0,1fr) 才会在窄屏正常收缩。 */
.tpl-slot-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.tpl-slot-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  gap: 8px 16px;
  padding: 11px 0;
  border-top: 1px solid var(--tpl-line-soft);
}

/* Only separate adjacent facts: no line before the first or after the last row. */
.tpl-slot-row:first-child { padding: 0 0 11px; border-top: 0; }

.tpl-slot-row > dt {
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: start;
  padding-top: 1px;
  color: var(--tpl-ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

.tpl-slot-row > dt .tp-site-icon { flex: 0 0 auto; color: var(--tpl-ink-soft); }
/* 设计源 D3（2026-10-14，只作用于详情页）：行标签图标 18px、上移 1px；Also here 设施图标
   18px、主文字色。共享注册表只有 16 / 20 / 24 三档，这里按本页覆盖尺寸，不改共享样式。 */
.tpl-detail-main .tpl-slot-row > dt .tp-site-icon {
  width: 18px;
  height: 18px;
  margin-top: -1px;
}
.tpl-detail-main .tpl-slot-amenity-glyph {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--tpl-ink);
}

.tpl-slot-row > dd {
  margin: 0;
  padding: 0;
  /* 设计源 D3 的值列不写字号，继承根容器的 14px / 1.5（2026-10-14 计算样式核对；
     注释里的「16/400 dl values」与实际渲染不符，以渲染为准）。 */
  font-size: 14px;
  line-height: 1.5;
}

/* 值列里需要换行的，自己排一列；强调用 600，不用更大的字号。 */
.tpl-slot-row > dd.tpl-slot-stack { display: flex; flex-direction: column; gap: 4px; }
.tpl-slot-row > dd.tpl-slot-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tpl-slot-row strong { font-weight: 600; }
.tpl-slot-row .tpl-slot-num { font-variant-numeric: tabular-nums; }
.tpl-slot-note { color: var(--tpl-ink-soft); font-size: 14px; line-height: 1.5; }

/* 长 URL 和长出口说明不许把卡片撑破。只在值列上开 anywhere —— 标签列是
   短词，开了反而会在不该断的地方断。 */
.tpl-slot-row > dd { overflow-wrap: anywhere; }

/* 窄屏把事实行叠成一列。设计源只有桌面稿，这一档是本仓库自己的决定：
   在 390px 上 150px 的标签列会吃掉一半宽度，值列只剩 118px，地址和电话
   每行都要折。叠起来两者都拿到整行。 */
@media (max-width: 560px) {
  .tpl-slot-card { padding: 20px 18px; }
  .tpl-slot-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tpl-slot-row > dt { padding-top: 0; }
  .tpl-slot-foot { gap: 10px; }
}

/* 卡片尾部的链接行。 */
.tpl-slot-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
}

/* 设计源 D3：尾部链接与旁边的说明同为 14px（页面基础字号），不是正文的 16px。 */
.tpl-detail-main .tpl-slot-foot .tp-site-link { font-size: 14px; }

.tpl-detail-main .tpl-slot-foot p {
  margin: 0;
  max-width: 52ch;
  color: var(--tpl-ink-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* 地址复制按钮。小尺寸的行内控件，不走 Button 基元：它不是页面动作，
   是值旁边的一个工具，Button 的最小高度会把这一行撑开一倍。 */
/* 右栏操作卡：设计源是四颗等宽按钮 + 一行「没装 App 怎么办」。 */
.tpl-detail-actions {
  gap: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  /* 设计源 D3：操作卡比内容卡多一层托起，0 2px 12px / 8%。 */
  box-shadow: 0 2px 12px rgb(1 25 50 / 8%);
}
.tpl-detail-actions__primary { display: flex; flex-direction: column; gap: 10px; }
.tpl-detail-mobile-actions { display: none; }

/* Phone dock reuses the same controls and existing rail_actions tracking module.
   Below shared navigation/modals; consent UI keeps its own higher stacking layer. */
@media (max-width: 809px), (max-width: 1199px) and (max-height: 500px) {
  body.tpl-detail-fixed-actions { padding-bottom: var(--tpl-detail-action-space, 80px); }
  body.tpl-detail-fixed-actions [data-detail-desktop-actions] { display: none; }
  .tpl-detail-mobile-actions:not(:empty) {
    display: block;
    position: fixed;
    z-index: 900;
    inset: auto 0 0;
    padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-top: 1px solid var(--tpl-line);
    background: var(--tpl-white);
    box-shadow: none;
  }
  .tpl-detail-mobile-actions .tpl-detail-actions__primary {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }
  .tpl-detail-mobile-actions .tpl-detail-actions__primary .tp-site-button {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    min-height: 44px;
    padding: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .tpl-detail-mobile-actions .tpl-detail-actions__primary > .tp-site-button.tpl-detail-directions { flex-grow: 1.8; }
  .tpl-detail-mobile-actions .tpl-detail-actions__primary > .tp-site-button.tpl-detail-share { flex: 0 0 44px; }
  /* Keep the existing app entry as one live node. Icon actions stay 44px;
     very narrow phones use two rows instead of shrinking touch targets. */
  .tpl-detail-mobile-actions .tpl-detail-actions__primary--with-app {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 44px;
  }
  .tpl-detail-mobile-actions .tpl-detail-actions__primary--with-app.tpl-detail-actions__primary--with-phone {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px 44px;
  }
  .tpl-detail-mobile-actions .tpl-detail-actions__primary > .tpl-detail-open-app { white-space: nowrap; }
  /* QA issue #19 / PRD 25.6a: the fourth cell is More (Save + Share), as design p2-detail draws it. */
  .tpl-detail-mobile-actions .tpl-detail-actions__primary--with-more > .tp-site-button.tpl-detail-share { display: none; }
  .tpl-detail-more { position: relative; display: flex; }
  .tpl-detail-mobile-actions .tpl-detail-actions__primary .tpl-detail-more__trigger {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  .tpl-detail-more__trigger svg { width: 20px; height: 20px; fill: currentColor; }
  .tpl-detail-more__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 2;
    min-width: 180px;
    padding: 8px;
    background: var(--tpl-white);
    border: 1px solid var(--tpl-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(1 25 50 / 16%);
  }
  .tpl-detail-more__menu[hidden] { display: none; }
  .tpl-detail-more__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--tpl-ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
  }
  .tpl-detail-more__item:hover,
  .tpl-detail-more__item:focus-visible { background: var(--tpl-surface); }
  .tpl-detail-more__item svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
  .tpl-detail-more__item.is-saved svg { color: var(--tpl-blue); }
  .tpl-detail-mobile-actions__phone-status { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--tpl-ink); }
  .tpl-detail-mobile-actions__phone-status[hidden] { display: none; }
  .tpl-detail-mobile-actions .tpl-detail-share > span,
  .tpl-detail-mobile-actions [data-provider-phone] > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 389px) {
  .tpl-detail-mobile-actions .tpl-detail-actions__primary--with-app.tpl-detail-actions__primary--with-phone {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
  }
  .tpl-detail-mobile-actions .tpl-detail-actions__primary--with-app.tpl-detail-actions__primary--with-phone > .tpl-detail-directions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 359px) {
  .tpl-detail-mobile-actions .tpl-detail-actions__primary--with-app:not(.tpl-detail-actions__primary--with-phone) {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .tpl-detail-mobile-actions .tpl-detail-actions__primary--with-app:not(.tpl-detail-actions__primary--with-phone) > .tpl-detail-directions {
    grid-column: 1 / -1;
  }
}

/* 设计源 D3：右栏底部 40px，右栏比正文长时页面也有同样的收尾留白。 */
.tpl-detail-rail { padding-bottom: 40px; }

.tpl-detail-actions .tp-site-button {
  width: 100%;
  justify-content: center;
  min-height: 42px;
}

/* 右栏按钮按设计源 D3 还原（2026-10-14，用户要求；只作用于详情页右栏，不改共享 Button）：
   圆角 6、500、字间距 .04em；主按钮品牌蓝底；次按钮透明底 + 1.5px 品牌蓝描边、品牌蓝字。
   选择器限定在 `.tpl-detail-rail .tpl-detail-actions` 下，其他页面的共享按钮不受影响。
   ⚠️ 这是对共享 Button 外观的页面级覆盖，与设计系统「页面不改按钮几何 / 字体」的规则有意偏离，
   见 docs/locations-detail-fidelity.md §12。 */
.tpl-detail-rail .tpl-detail-actions .tp-site-button {
  box-sizing: border-box;
  height: 42px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  /* 悬停只变颜色（AGENTS：不加位移 / 阴影）；只过渡会变的三个属性，140ms 同设计源。 */
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
/* 主按钮悬停：品牌蓝 → 深蓝。 */
.tpl-detail-rail .tpl-detail-actions .tp-site-button_variant-primary:hover,
.tpl-detail-rail .tpl-detail-actions .tp-site-button_variant-primary:focus-visible {
  background: var(--tpl-blue-strong);
  color: var(--tpl-white);
}
.tpl-detail-rail .tpl-detail-actions .tp-site-button_variant-secondary,
.tpl-detail-rail .tpl-detail-actions .tp-site-button_variant-secondary:visited {
  border: 1.5px solid var(--tpl-blue);
  background: transparent;
  color: var(--tpl-blue);
}
.tpl-detail-rail .tpl-detail-actions .tp-site-button_variant-secondary:hover,
.tpl-detail-rail .tpl-detail-actions .tp-site-button_variant-secondary:focus-visible {
  /* 次按钮悬停：浅蓝底 + 深蓝描边与文字（与共享次按钮的悬停同一套颜色）。 */
  border-color: var(--tpl-blue-strong);
  background: var(--tpl-blue-wash);
  color: var(--tpl-blue-strong);
}
@media (prefers-reduced-motion: reduce) {
  .tpl-detail-rail .tpl-detail-actions .tp-site-button { transition: none; }
}
/* Button 基元给的是 `inline-flex`，会盖掉 UA 的 `[hidden]{display:none}`。
   Share 现在是无条件渲染的（复制链接有 execCommand 兄底），只剩下
   地址行的 Copy 需要这一条。 */
.tpl-slot-copy[hidden] { display: none; }

/* 事实行里的网址：长 URL 允许在任意位置断，否则会把卡片撑破。 */
.tpl-slot-weblink { overflow-wrap: anywhere; }

/* ── 右栏展示位 ─────────────────────────────────────────
   本期静态内容。ADVERTISEMENT 标注照给 —— 标注是对读者的承诺，
   不因为投放方是自己就省掉。 */
/* 宽度封顶在右栏的桌面宽度。1100px 以上这条是空操作（栏本来就是 372px）；
   以下右栏整宽堆叠，不封顶的话这个 5/6 的框会跟着撑开 —— 实测 1024px 视口下
   单张就是 976×1171，比视口还高，一张自家产品图直接糊住整屏。右栏其余是操作
   卡（按钮，整宽才对），只有这块是图，所以封顶封在这里而不是整个 rail 上。 */
.tpl-detail-ad { display: flex; flex-direction: column; gap: 6px; max-width: 372px; }

/* aspect-ratio 固定成 5/6，图片按 cover 裁 —— 让两张不同尺寸的素材占一样的位，
   滚动时右栏不会因为图片加载而跳。 */
.tpl-detail-ad__frame {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--tpl-placeholder);
  line-height: 0;
}

.tpl-detail-ad__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tpl-detail-ad__label {
  color: var(--tpl-ink-faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tpl-slot-copy {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--tpl-line);
  border-radius: 6px;
  background: var(--tpl-white);
  color: var(--tpl-blue);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Phone 行的 Call（QA CT/4532764676 #68）：和 Copy 同一个外形，只是它是 `tel:` 链接，
   所以补上链接需要的盒模型；点开后 services-provider.js 写进来的号码链接用本页链接色。 */
.tpl-detail-main a.tpl-slot-call {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
}
.tpl-detail-main [data-provider-phone-value] a {
  color: var(--tpl-link);
  text-decoration: none;
}

/* ══ slot 2 · 这儿能办什么 ═══════════════════════════════════════════════════
   卡片与事实行复用 .tpl-slot-card / .tpl-slot-row；只有「Also here」那一行需要
   自己的排布：一串设施名，横向流排，不是分列。 */
.tpl-slot-amenities {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.tpl-slot-amenities > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 设施图标走仓库既有的 poi-amenity-icons 注册表（州页和详情页旧版都在用），
   不换成 Material 线性字形 —— 那会让同一个设施在两个页面上长得不一样。 */
.tpl-slot-amenities img { display: block; flex: 0 0 auto; }

/* ══ slot 3 · 这个站点里面有什么 ══════════════════════════
   三态中的父态。独立 POI 整段不渲染 —— 连容器都不留（PRD 验收 A10）。 */
.tpl-slot-inside__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tpl-slot-inside__count { color: var(--tpl-ink-soft); font-size: 14px; }

.tpl-detail-main .tpl-slot-inside__lede {
  margin: 0 0 18px;
  max-width: 64ch;
  color: var(--tpl-ink-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.tpl-slot-inside {
  display: grid;
  /* 设计源 D3 默认 `insideColumns: 2 columns`（2026-10-14 像素对齐）。窄屏见下方断点。 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 560px) {
  .tpl-slot-inside { grid-template-columns: minmax(0, 1fr); }
}

.tpl-slot-inside__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 10px;
  background: var(--tpl-surface);
  color: var(--tpl-ink);
  text-decoration: none;
  transition: background-color 140ms ease;
}

a.tpl-slot-inside__card:hover,
a.tpl-slot-inside__card:focus-visible { background: var(--tpl-line); }

.tpl-slot-inside__card .tp-site-icon { color: var(--tpl-ink-soft); }
.tpl-slot-inside__name { font-size: 16px; font-weight: 600; line-height: 1.35; }

/* 设计源每张 tile 的名称下面有一行事实摘要。T68 删掉它是因为契约里的 `summary`
   从未实现；现在改由本仓库从实现版契约的 tid 专属字段拼（见模板），样式照设计源。 */
/* 事实行三选一（QA #53）：营业时间和评分占同一个位置，同样靠底对齐。 */
.tpl-slot-inside__summary { margin-top: auto; color: var(--tpl-ink-secondary); font-size: 14px; line-height: 1.5; }


/* 评分行靠底，一排卡片的评分才在同一条线上。 */
.tpl-slot-inside__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
}

.tpl-slot-inside__rating .tp-site-icon,
.tpl-slot-inside__rating strong { color: var(--tpl-warn); }
/* 设计源 D3：分数 `strong` 是 600，不是 UA 默认的 bold。 */
.tpl-slot-inside__rating strong { font-weight: 600; }
.tpl-slot-inside__ratingn { color: var(--tpl-ink-soft); }

/* ── Add a place：虚线卡 ────────────────────────────────────────────────────
   它和旁边的卡片不是一类东西：那些是「这儿有什么」，这张是「这儿还缺什么」。
   设计源用虚线边 + 白底表达这个区别，悬停时边框转蓝。竖直居中是因为它没有图标，
   和有图标的卡片左上对齐会矮一截。

   边框取 `--tpl-line` 而不是设计源的 #BABFC4：后者的值在本仓库只存在于
   `--tpl-ink-faint`，而那是**文字**角色（全仓库只用作 `color:`）。唯一一处既有的
   dashed 边框用的是边框角色 token，按这个先例走。见账本 DEV-14。 */
/* 子页回链（QA #14）。它不是卡片 —— 卡片回答「这儿还有什么」，这一行回答
   「从哪儿来」，是整个 slot 唯一的出站方向，所以单独一行、跟在卡片网格之后。
   没有兄弟时它是这一节仅剩的内容，那时也要能独自站住。 */
.tpl-slot-inside__back {
  display: inline-block;
  margin-top: 16px;
  color: var(--tpl-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.tpl-slot-inside__back:hover,
.tpl-slot-inside__back:focus-visible { text-decoration: underline; }

.tpl-slot-inside__add {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--tpl-line);
  border-radius: 10px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
  text-decoration: none;
  transition: border-color 140ms ease;
}

a.tpl-slot-inside__add:hover,
a.tpl-slot-inside__add:focus-visible { border-color: var(--tpl-blue); }

.tpl-slot-inside__add-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.tpl-slot-inside__add-body { color: var(--tpl-ink-secondary); font-size: 14px; line-height: 1.5; }
.tpl-slot-inside__add-cta { color: var(--tpl-blue); font-size: 14px; font-weight: 400; }

/* ══ slot 5 · 司机怎么说 ═══════════════════════════════════════════════════ */
.tpl-slot-reviews__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px 40px;
  align-items: center;
  padding: 6px 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--tpl-line-soft);
}

.tpl-slot-reviews__score {
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  /* Keep the overall score and distribution bars in the same rating color. */
  color: var(--tpl-warn);
}

.tpl-slot-reviews__outof {
  margin-top: 10px;
  /* 设计源 D3：16px（2026-10-14 用户要求评论区字号按设计稿，原为 7C 的 15px）。 */
  font-size: 16px;
  font-weight: 600;
  color: var(--tpl-ink);
}

/* 这段话是 slot 5 唯一的「我们凭什么可信」—— 只有在 App 里签到过的司机能评价，
   商家要求也不删改。它比分布图更能解释这些分数的来源，所以不是装饰。 */
.tpl-slot-reviews__disclosure {
  margin: 8px 0 0;
  max-width: 56ch;
  /* 设计源 D3：#525C66（2026-10-14 用户要求颜色按设计稿，取代 7C 的 caption 色）。 */
  color: var(--tpl-ink-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.tpl-slot-reviews__barstitle {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tpl-ink);
}

.tpl-slot-reviews__bars { display: flex; flex-direction: column; gap: 5px; }

.tpl-slot-reviews__bar {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
}

.tpl-slot-reviews__bar > span:first-child,
.tpl-slot-reviews__barn {
  /* D3：分布条两侧数字 14px（2026-10-14 用户要求按设计稿，原 7C 12px）。 */
  font-size: 14px;
  line-height: 1;
  color: var(--tpl-ink-secondary); /* D3 #525C66（原 7C ink-soft） */
}

.tpl-slot-reviews__barn { text-align: right; }

/* Center each score label in its column; keep the review counts right-aligned. */
.tpl-slot-reviews__barstar { justify-self: center; }

.tpl-slot-reviews__track {
  position: relative;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tpl-line);
}

/* 条形填充用评分角色，不是设计稿里的 #EA580C。仓库已有具名的 --tpl-rating，
   slot 0 的星星也用它；再引一个没有角色的橙色，两处评分会是两个颜色。

   没有最小宽度（QA CT/4532764676 #73，照商家页 `__bar-fill`）：原先的 `min-width: 7px`
   让 0 条的档位也画出一个橙点，读起来像有评论。宽度就是接口的 `w`（以最多那一档为
   100%，与商家页自己算的一致），0% 时只剩灰色空槽。 */
.tpl-slot-reviews__fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: 999px;
  /* 7C 的 `__bar-fill` 跟的是分数的颜色，不是星星的。 */
  background: var(--tpl-warn);
}

/* WHAT DRIVERS MENTION MOST (QA CT/4532764676 #44), as 7C draws it: a
   heading and a wrapping row of chips, label + "N drivers". services-provider.js
   builds the inner markup with 7C's own class names; they are styled here,
   under this container, so nothing from services-provider.css is loaded or
   leaks. Hidden until the script has tags, and then takes no space when not. */
.tpl-slot-reviews__mentions { margin: 20px 0 8px; }
.tpl-slot-reviews__mentions .tp-services-provider__h3 {
  margin: 0 0 12px;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 600;
}
.tpl-slot-reviews__mentions .tp-services-provider__mentions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tpl-slot-reviews__mentions .tp-services-provider__mentions li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid var(--tpl-line);
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 2px 10px rgba(1, 25, 50, 0.06);
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 600;
}
.tpl-slot-reviews__mentions .tp-services-provider__mention-count {
  color: var(--tpl-ink-soft);
  font-size: 12px;
  font-weight: 400;
}

/* QUESTIONS & ANSWERS (CMO-93 phase 2, PRD 25.8).
   Native <details> folds, so the whole text is in the first response and the fold costs no
   script. Colours are existing roles only: the question mark uses the "go" wash and the
   answer mark the blue wash; there is no new brand value here. */
.tpl-qa__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Rule on the TOP edge and none on the first: the same drawing as the reviews list, for the
   same reason (a bottom rule would leave an ownerless line above "Show all"). */
/* `scroll-margin-top` so a landing from `#qa-<id>` is not tucked under the sticky header. The
   highlight (PRD 25.8.9: "two seconds") is a plain state, not an animation: the script adds
   `is-targeted` and takes it off again. */
.tpl-qa__item { border-top: 1px solid var(--tpl-line-soft); scroll-margin-top: 96px; }
.tpl-qa__item.is-targeted { background: var(--tpl-blue-wash); }
/* QA #25 (11-24): the landing focuses the question's summary so a keyboard / screen-reader user starts there, but
   the design's landed state is the tint alone — no box round the title row. A programmatic focus can still match
   :focus-visible, so the ring is held back while the item is tinted; Tab after that shows it as usual. */
.tpl-qa__item.is-targeted .tpl-qa__summary:focus-visible { outline: none; }
.tpl-qa__list > .tpl-qa__item:first-child { border-top: 0; }
.tpl-qa__more > .tpl-qa__list > .tpl-qa__item:first-child { border-top: 1px solid var(--tpl-line-soft); }

.tpl-qa__summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
/* The default disclosure triangle, in both spellings browsers use. */
.tpl-qa__summary::-webkit-details-marker { display: none; }
.tpl-qa__summary::marker { content: ""; }
.tpl-qa__summary:focus-visible,
.tpl-qa__more-summary:focus-visible { outline: 2px solid var(--tpl-blue); outline-offset: 2px; }

.tpl-qa__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tpl-go-wash);
  color: var(--tpl-go-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.tpl-qa__mark_answer { background: var(--tpl-blue-wash); color: var(--tpl-blue-strong); }
/* QA #22 ⑤: the marks are the app's own icons now (an <img>), so the letter disc's tint and type go. */
img.tpl-qa__mark { background: none; border-radius: 0; display: block; }
/* QA #22 ⑤: a question that has answers says so in green, as in the design. */
.tpl-qa__count_answered { color: var(--tpl-go-text); }
.tpl-qa__answer strong { font-weight: 700; }

.tpl-qa__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tpl-qa__question {
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  overflow-wrap: anywhere;
}
/* Design (phase-2 detail, desktop and phone): the question is 14/500 and its meta line 12px in the
   muted grey, not the caption grey. */
.tpl-qa__meta { color: var(--tpl-ink-muted); font-size: 12px; line-height: 1.6; }

.tpl-qa__chevron { flex: 0 0 auto; margin-top: 2px; color: var(--tpl-ink-soft); }
.tpl-qa__q[open] .tpl-qa__chevron { transform: rotate(90deg); }

.tpl-qa__answers { list-style: none; margin: 0; padding: 0 0 8px 32px; }
.tpl-qa__answer { display: flex; gap: 12px; padding: 6px 0; }
.tpl-qa__answer p { margin: 0; color: var(--tpl-ink); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
/* QA #22 ②: the answerer and the day under the answer — the design's p2-meta: 12px, the muted grey, 2px under the text. */
.tpl-qa__answer-body { flex: 1 1 auto; min-width: 0; }
.tpl-qa__answer .tpl-qa__answer-meta { margin: 0; color: var(--tpl-ink-muted); font-size: 12px; line-height: 1.6; }
/* QA #22 3: the visitor's own answer reads "You · Nov 9" and carries the edit and delete icons (design p2-answer-meta-row:
   a flex row, 32px square icon buttons with a 4px radius, 18px glyphs in the muted grey, the blue wash on hover). */
.tpl-qa__answer-meta-row { display: flex; align-items: center; justify-content: flex-start; margin-top: 2px; }
.tpl-qa__answer-actions { display: inline-flex; align-items: center; margin-left: 4px; }
.tpl-qa__answer-actions[hidden] { display: none; }
.tpl-qa__answer-dot { flex: none; margin-right: 4px; color: var(--tpl-ink-muted); font-size: 12px; }
.tpl-qa__answer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--tpl-ink-muted);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.tpl-qa__answer-action:hover { color: var(--tpl-blue-strong); background: var(--tpl-blue-wash); }
.tpl-qa__answer-action:focus-visible { outline: 2px solid var(--tpl-blue); outline-offset: 2px; }
.tpl-qa__answer-action .tp-site-icon { width: 18px; height: 18px; }
/* The editor and the delete question sit under the answer, in the answer column. */
.tpl-qa__answer-body > .tpl-qa__compose,
.tpl-qa__answer-body > .tpl-qa__confirm { margin: 12px 0 4px; }
.tpl-qa__answer-body > .tpl-qa__compose[hidden],
.tpl-qa__answer-body > .tpl-qa__confirm[hidden] { display: none; }
.tpl-qa__confirm { display: flex; flex-direction: column; gap: 12px; }
.tpl-qa .tpl-qa__confirm-text { color: var(--tpl-ink); font-size: 14px; font-weight: 600; line-height: 22px; }
/* `.tpl-qa__answer p` (14px, ink, no margin) would otherwise win over the shared error line inside an answer. */
.tpl-qa__answer .tpl-qa__error { margin: 8px 0 0; color: var(--tpl-danger-text); font-size: 14px; line-height: 20px; }
.tpl-qa__answer .tpl-qa__error[hidden] { display: none; }
.tpl-qa__q > .tpl-qa__note { margin: 0; padding: 0 0 16px 32px; }

.tpl-qa__note { margin: 0; color: var(--tpl-ink-soft); font-size: 14px; line-height: 20px; }
.tpl-qa__note_total { margin-top: 12px; }

.tpl-qa__more { border-top: 0; }
/* QA #22 ⑧: open, "Show fewer questions" sits under the last question, not between the third and the fourth.
   A <summary> has to be the first child, so the open fold is a column and the summary is ordered last. */
.tpl-qa__more[open] { display: flex; flex-direction: column; }
.tpl-qa__more[open] > .tpl-qa__more-summary { order: 2; align-self: flex-start; }
.tpl-qa__more-summary {
  display: inline-block;
  padding: 12px 0 4px;
  color: var(--tpl-link);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  list-style: none;
}
.tpl-qa__more-summary::-webkit-details-marker { display: none; }
.tpl-qa__more-summary::marker { content: ""; }
.tpl-qa__more-summary:hover { color: var(--tpl-blue-strong); text-decoration: underline; }
/* One label at a time: "Show all N" closed, "Show fewer" open. */
.tpl-qa__more-open { display: none; }
.tpl-qa__more[open] > .tpl-qa__more-summary .tpl-qa__more-closed { display: none; }
.tpl-qa__more[open] > .tpl-qa__more-summary .tpl-qa__more-open { display: inline; }

/* ASK AND ANSWER (CMO-93 phase 2). Measured on the phase-2 design review at 1440px: the heading
   row carries the Ask action at its right; the composer is a grey panel (20px padding, 8px
   radius) with a 14/500 label, a 112px textarea and the page's compact Buttons 12px apart; an
   answer editor is the same panel under a question's answers. Both ship `hidden` and poi-qa.js
   opens them. A card with no questions yet ships `hidden` as a whole. */
.tpl-qa[hidden],
.tpl-qa__compose[hidden],
.tpl-qa__error[hidden] { display: none; }

.tpl-qa__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}
/* The card's heading rule only reaches a direct child (`.tpl-slot-card > h2`); this heading sits
   in the row, so it states the same role itself. One class more than `.tpl-main h2`, which a
   desktop media rule later in this file gives a 52px top margin at the same specificity. */
.tpl-qa .tpl-qa__head > h2 {
  margin: 0;
  color: var(--tpl-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
}
.tpl-qa__action {
  flex: none;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tpl-blue-strong);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 21px;
}
.tpl-qa__action:hover,
.tpl-qa__action:focus-visible { text-decoration: underline; }

.tpl-qa__compose {
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  background: var(--tpl-surface);
}
.tpl-qa__compose label {
  display: block;
  margin: 0 0 12px;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}
.tpl-qa__compose textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 112px;
  margin: 8px 0 0;
  padding: 11px 12px;
  border: 1px solid var(--tpl-line);
  border-radius: 6px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
  font: inherit;
  font-size: 14px;
  line-height: 21px;
  resize: vertical;
}
.tpl-qa__compose textarea:focus-visible { outline: 2px solid var(--tpl-blue); outline-offset: 1px; }
.tpl-qa__error {
  margin: 8px 0 0;
  color: var(--tpl-danger-text);
  font-size: 14px;
  line-height: 20px;
}
.tpl-qa__actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* An answer: the editor spans the card, the trigger lines up with the answers above it. */
.tpl-qa__reply { padding: 4px 0 16px; }
.tpl-qa__reply > .tpl-qa__write { margin-left: 32px; }
.tpl-qa__reply > .tpl-qa__compose { margin: 12px 0 0; }
.tpl-qa__choices {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.tpl-qa__choice[aria-pressed="true"] {
  border-color: var(--tpl-blue);
  background: var(--tpl-blue-wash);
  color: var(--tpl-blue-strong);
}

/* The notice's success form, for "sent" (poi-save.js's is the failure one, in danger colours). */
.tpl-save-notice_ok { border-color: var(--tpl-go-border, var(--tpl-line)); }
.tpl-save-notice_ok .tpl-save-notice__text { color: var(--tpl-ink); }

/* RATE IN THE APP, the reviews card's last block (phase-2 design, measured at 1440px): a hairline,
   24px above and 24px below it, the 56px illustration with a 16/600 title and a 14px muted line
   beside it, and the page's compact secondary Button at the right. On a phone it stacks. */
.tpl-slot-reviews__app {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--tpl-line);
}
.tpl-slot-reviews__app-lead {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.tpl-slot-reviews__app-lead > img {
  flex: none;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.tpl-slot-reviews__app-lead strong {
  display: block;
  color: var(--tpl-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
/* A class of its own, so `.tpl-main p:not([class])` (16px / 1.65) does not apply to it. */
.tpl-slot-reviews__app-copy {
  margin: 8px 0 0;
  color: var(--tpl-ink-muted);
  font-size: 14px;
  line-height: 1.5;
}
.tpl-slot-reviews__app-cta {
  flex: none;
}
@media (max-width: 809px) {
  .tpl-slot-reviews__app {
    flex-direction: column;
    align-items: stretch;
  }
  .tpl-slot-reviews__app-cta {
    width: 100%;
  }
}

.tpl-slot-reviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 分隔线画在**上**边、首条不画 —— 7C 的做法。画在下边会在最后一条评论和
   「Show all N」之间留一条无主的线。 */
.tpl-slot-reviews__list > li {
  padding: 16px 0;
  border-top: 1px solid var(--tpl-line-soft);
}
.tpl-slot-reviews__list > li:first-child { border-top: 0; }

.tpl-slot-reviews__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--tpl-ink-soft);
  font-size: 14px; /* D3：评论头一行 14px（原 7C 13px） */
}

.tpl-slot-reviews__who { font-size: 14px; font-weight: 600; color: var(--tpl-ink); }
.tpl-slot-reviews__when { font-size: 14px; color: var(--tpl-ink-soft); } /* D3：14px（原 7C 12px） */

.tpl-slot-reviews__stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px; /* D3：14/600（原 7C 13px）；评分图标 13px */
  font-weight: 600;
  /* D3：分数与方块评分图标同为橙色（#EA580C，取最近的 --tpl-warn）。 */
  color: var(--tpl-warn);
}
/* 7C 的 `__review-head .tp-data-rating_compact`：13px / 600 / gap 4，星标 13px。
   用不了那个类 —— 它的 CSS 在 site-design/data-pages.css，本页不加载（实测只加载
   site-chrome / site-design.min / locations.min 三张），所以照值重写。 */
.tpl-slot-reviews__stars .tp-site-icon {
  width: 13px;
  height: 13px;
  /* 方块颜色跟随分数，白色星形由共享 SVG 自身提供。 */
  fill: currentColor;
}

.tpl-slot-reviews__text {
  margin: 0;
  color: var(--tpl-ink-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.tpl-slot-reviews__all {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 11px 20px;
  border: 1px solid var(--tpl-line);
  border-radius: 6px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.tpl-slot-reviews__all[hidden],
.tpl-slot-reviews__all--consumed {
  display: none !important;
}

/*
 * Card-owned placement for review paging. Geometry still comes from
 * `.tp-site-chrome .tp-site-pagination` in site-design.css — only margins
 * and width belong here.
 */
.tpl-slot-reviews__pagination.tp-site-pagination {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

/* Totals and page position live in SSR copy and page chips — no second meta line. */
.tpl-slot-reviews__pagination .tp-site-pagination__meta {
  display: none;
}

/*
 * List pages flip to a meta-left / controls-right row at 810px. Inside the
 * reviews card the row alone still inherits that flip and can misalign controls
 * (TA detail, 2026-12-01). Stack and center the row at every width; list pages
 * are unchanged.
 */
@media screen and (min-width: 810px) {
  .tpl-slot-reviews__pagination.tp-site-pagination {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }

  .tpl-slot-reviews__pagination .tp-site-pagination__row {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .tpl-slot-reviews__pagination .tp-site-pagination__list {
    align-items: center;
  }
}

@media screen and (max-width: 809px) {
  .tpl-slot-reviews__pagination.tp-site-pagination {
    margin-top: 12px;
    gap: 8px;
  }

  .tpl-slot-reviews__pagination .tp-site-pagination__row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /*
     * List pages use space-between so the thumb reaches the edges; inside the
     * reviews card the same rule plus any label overflow made the run collide
     * with direction controls. Centered with a fixed gap matches the canvas
     * density at this width without redefining pager geometry.
     */
    justify-content: center;
    gap: 8px;
  }

  .tpl-slot-reviews__pagination .tp-site-pagination__list_narrow {
    flex: 0 1 auto;
    min-width: 0;
  }

  .tpl-slot-reviews__all {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* Driver reviews dialog (logged-in pagination, Api doc §2.5.1). */
.tpl-locations-reviews-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.tpl-locations-reviews-modal.is-open {
  display: flex;
}

.tpl-locations-reviews-modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 48px);
  padding: 24px 24px 20px;
  overflow-y: auto;
  border-radius: var(--tpl-radius);
  background: var(--tpl-white);
  box-sizing: border-box;
}

.tpl-locations-reviews-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tpl-ink-muted);
  cursor: pointer;
}

.tpl-locations-reviews-modal__close:focus-visible {
  outline: 2px solid var(--tpl-blue);
  outline-offset: 2px;
}

.tpl-locations-reviews-modal__title {
  margin: 0 40px 12px 0;
  color: var(--tpl-ink);
  font-size: var(--tp-type-heading-5-size);
  line-height: var(--tp-type-heading-5-line);
  font-weight: var(--tp-type-heading-5-weight);
}

.tpl-locations-reviews-modal__status {
  margin: 0 0 12px;
  color: var(--tpl-ink-soft);
  font-size: var(--tp-type-body-small-size);
  line-height: var(--tp-type-body-small-line);
}

.tpl-locations-reviews-modal__list {
  margin: 0;
}

.tpl-locations-reviews-modal__foot {
  margin: 12px 0 0;
  color: var(--tpl-ink-soft);
  font-size: var(--tp-type-body-small-size);
  line-height: var(--tp-type-body-small-line);
}

.tpl-locations-reviews-modal__more {
  width: 100%;
  margin-top: 12px;
}

.tpl-slot-reviews__status {
  margin: 12px 0 0;
  color: var(--tpl-ink-soft);
  font-size: var(--tp-type-body-small-size);
  line-height: var(--tp-type-body-small-line);
}

[data-tp-reviews-pagination][hidden] {
  display: none !important;
}

/* ══ slot 6 · 附近有什么 ═══════════════════════════════════════════════════ */
/* 卡片外观对齐 provider 页的 `Shops nearby`（QA #28 / src:28，TL 2026-10-13）。
   复用的是**样式**，不是那个 partial —— ADR-14 说层 3 只复用 chrome + tokens，
   不复用层 1 的组合，T12 又冻结了 provider 模板。所以这里按 `__rival` 的值重写
   `tpl-slot-*`，token 全部走现有 `--tpl-*`，不复制十六进制，也不引用
   `tp-services-provider__*` 任何一个类。

   Three columns are a presentation choice; render every usable endpoint row. */
.tpl-slot-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tpl-slot-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* 设计源 D3：灰底无描边、圆角 10、内边距 18（2026-10-14 用户要求颜色按设计稿，
     取代 7C 的白底描边卡）。底色与场地卡片同用 --tpl-surface（D3 #F4F6F9）。 */
  padding: 18px;
  border: 0;
  border-radius: 10px;
  background: var(--tpl-surface);
  color: var(--tpl-ink);
  text-decoration: none;
  transition: background-color 140ms ease;
}

.tpl-slot-tile:hover,
.tpl-slot-tile:focus-within { background: var(--tpl-line); } /* 与场地卡片的悬停同一档 */

/* Nearby identity: existing type/brand artwork, current fields and link semantics. */
.tpl-slot-tile--nearby {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--tpl-surface);
}
.tpl-slot-tile__identity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.tpl-slot-tile__identity img { display: block; width: 32px; height: 32px; object-fit: contain; }
.tpl-slot-tile__identity--brand img { border-radius: 50%; }
.tpl-slot-tile__copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tpl-slot-tile__copy .tpl-slot-tile__name { overflow-wrap: anywhere; }

/* 整卡可点，命中区由名称链接的伪元素铺满 —— 卡片本身不是 `<a>`。
   `a.` 是承重的：没有 `href` 的卡片（将来若有）名称会是 `<span>`，那张卡就应该
   不可点，这条选择器自动与之保持一致，不需要第二个开关。 */
.tpl-slot-tile a.tpl-slot-tile__name::after {
  content: '';
  position: absolute;
  inset: 0;
}

.tpl-slot-tile__kicker {
  color: var(--tpl-ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tpl-slot-tile__name {
  color: var(--tpl-ink);
  /* 设计源 D3：卡片标题 14/600、说明 14px，行高 1.5（2026-10-14 用户要求按设计稿，原为 7C 的 15 / 13px）。 */
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.tpl-slot-tile__note { color: var(--tpl-ink-secondary); font-size: 14px; line-height: 1.5; }

.tpl-slot-typelinks {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-inline: 8px;
  font-size: 14px;
}

.tpl-slot-typelinks a { display: inline-flex; align-items: center; gap: 8px; }
/* 设计源 D3：同州类目链接是品牌蓝、无下划线（之前没有写颜色，落成了浏览器默认的
   深蓝 + 下划线）。悬停与聚焦沿用 components.site.link 的强调色和下划线。 */
.tpl-slot-typelinks a,
.tpl-slot-typelinks a:visited { color: var(--tpl-link); text-decoration: none; }
.tpl-slot-typelinks a:hover,
.tpl-slot-typelinks a:focus-visible { color: var(--tpl-blue-strong); text-decoration: underline; }
.tpl-slot-typelinks img { display: block; flex: 0 0 auto; }

/* ══ slot 7 · App band ═════════════════════════════════════════════════════
   第二块深色面。它和 hero 之间隔着整列白卡片，不相邻，所以不触发
   AGENTS.md「两块语义独立的深色面不得相邻」那条。 */
.tpl-slot-appband {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 28px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tpl-ink-deep), var(--tpl-surface-dark));
  color: var(--tpl-white);
}

/* Existing fleet photography is decorative; the mask protects the copy. */
.tpl-slot-appband__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .65;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 5%, #000 100%);
}

.tpl-slot-appband__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tpl-slot-appband__copy {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tpl-detail-main .tpl-slot-appband__copy h2 {
  margin: 0;
  color: var(--tpl-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
}

.tpl-detail-main .tpl-slot-appband__copy p { margin: 0; color: var(--tpl-on-dark-secondary); font-size: 14px; line-height: 1.5; }
.tpl-slot-appband__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* wrap，不是 nowrap —— 两个商店徽章各 184px，加 8px 间距是 376px，而 390 视口下
   band 的内容区只有 306px，nowrap 会把整页撑到 418 横向滚动。 */
.tpl-slot-appband__stores { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tpl-slot-appband__store {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--tpl-on-dark-border);
  border-radius: 6px;
  background: var(--tpl-on-dark-surface);
}

.tpl-slot-appband__store img {
  display: block;
  height: 32px;
  /* HTML 的 width="166" 是 49px 高时的固有宽；只设高度会留下 166px 宽的盒子，徽章缩在中间、两侧空白。
     设计源 D3 是 `height:32px` 且宽度按比例（≈108px）。 */
  width: auto;
}
/* 设计源 D3 的主按钮「Get the free app」：46px 高、左右 22、圆角 6、14 / 600、正常大小写
   （2026-10-14，只作用于详情页 App band，不改共享 Button）。悬停沿用共享主按钮的深蓝底。 */
.tpl-detail-main .tpl-slot-appband .tp-site-button {
  box-sizing: border-box;
  height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.tpl-detail-main .tpl-slot-appband__trust { margin: 0; color: var(--tpl-on-dark-secondary); font-size: 12px; }

/* 页脚那排小字：认领、NavPro、报错。 */
.tpl-slot-footnote {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding: 20px 0 40px;
  color: var(--tpl-ink-soft);
  font-size: 14px;
}

@media (max-width: 560px) {
  .tpl-slot-reviews__score { font-size: 48px; letter-spacing: -1.5px; }
  .tpl-slot-appband { padding: 22px 18px 20px; }
}

/* ══ slot 0 · 身份区 ════════════════════════════════════════════════════════
   共享 hero（.tpl-hero）服务 Hub / 州页 / 根页，几何只在这里按详情页收窄 ——
   改共享值会动到那三个页面，不在本任务范围内。 */

/* H1 取 40/700/−1px：PRD 验收 A11 的方法栏写「对照 Services B 原型」，该原型
   与已上线的 Services provider 页都是这个值。A11 行内的字面数字 38/700/−0.9
   在原型里查无出处，见 docs/locations-detail-fidelity.md DEV-1 与 open-questions Q76。 */
/* 双类选择器不是装饰：共享 hero 在 @media (min-width:1200px) 里把 h1 放大到
   52px、.sub 放大到 19px，那条规则与单类的 .tpl-detail-hero h1 权重相同且位置
   更靠后，会赢。详情页要自己的字号，就得比它重一档。 */
.tpl-hero.tpl-detail-hero { padding-bottom: 48px; }

.tpl-hero.tpl-detail-hero h1 {
  /* 2026-10-14 按设计源 D3 像素对齐（用户确认），取代 DEV-1 的 40/700/−1px：
     44/600、行高 1.12、字距 −0.02em，最宽 24ch 并平衡换行。 */
  max-width: 24ch;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* 设计源 D3：面包屑顶端离固定页头底部 28px（源里 142px = 28 + 页头 114）。共享规则
   在 1200px 以上用 36px、面包屑自身再有 14px 上内边距，所以详情页单独收回到 28。 */
.tp-site-chrome--dark-hero #tp-main > .tpl-hero.tpl-detail-hero:first-child {
  padding-top: calc(28px + var(--tp-site-announcement-height) + var(--tp-site-header-height));
}

/* 类目行 + 出口牌，一排，落在 H1 上方 —— 设计源把「这是什么、在哪条路上」
   放在名字之前，司机是先认路再认店。 */
.tpl-detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.tpl-detail-eyebrow__type {
  color: var(--tpl-blue-bright);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tpl-detail-eyebrow__type:hover,
.tpl-detail-eyebrow__type:focus-visible { text-decoration: underline; }

.tpl-detail-exit {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--tpl-on-dark-border);
  border-radius: 5px;
  background: var(--tpl-ink-deep);
  color: var(--tpl-white);
  white-space: nowrap;
}

.tpl-detail-exit__route { font-size: 12px; font-weight: 700; }

.tpl-detail-exit__exit {
  color: var(--tpl-on-dark-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* 地址行。共享 hero 在 1200px 以上把 .sub 放大到 19px，详情页这一行是地址
   而不是标语，保持 18px。 */
.tpl-hero.tpl-detail-hero .sub { font-size: 18px; color: var(--tpl-white); }

.tpl-detail-rating {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.tpl-detail-rating__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tpl-detail-rating__value { font-size: 18px; font-weight: 700; line-height: 1; }
.tpl-detail-rating__score { display: inline-flex; align-items: center; gap: 6px; }
.tpl-detail-rating__score .tp-site-icon {
  color: var(--tpl-warn);
}
.tpl-detail-rating__count { font-size: 16px; color: var(--tpl-white); }

/* 身份列 + 地图的两栏。没有地图时文字列占满，所以不需要第二套布局。 */
.tpl-detail-hero__row {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.tpl-detail-hero__identity { flex: 1 1 500px; min-width: 0; }

/* ══ slot 0 · 场地围栏地图 ═══════════════════════════════════════════════════
   设计源原来这个位置是一张 Leaflet/OSM 地图（瓦片 403）。TL 2026-10-12 改为
   用 Google Maps 画接口返回的 `fence` 多边形 —— 画的是场地实际边界和进出口，
   不是「这个地方在哪」。几何沿用设计源：右侧 560px、340px 高、圆角 12。 */
.tpl-detail-fence {
  flex: 0 1 560px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* 协作式滚轮提示浮在画布上，定位锚在这里。 */
  position: relative;
}

.tpl-detail-fence__canvas {
  height: 340px;
  max-width: 100%;
  /* 竖向滑动永远归页面，别的手势才交给地图 —— HERE 没有 Google 的
     `gestureHandling: 'cooperative'`，它的交互是全有或全无。把一个 340px
     的盒子变成滚动陷阱，是这个元素能干的最糟的事；双指缩放不受影响，那正是
     协作式手势在手机上真正有用的那一半。滚轮那一半在 poi-fence-map.js。 */
  touch-action: pan-y;
  border: 1px solid var(--tpl-on-dark-border);
  border-radius: 12px;
  overflow: hidden;
  /* 瓦片到达之前的底色。深色 hero 上留白洞比留一块浅灰更刺眼。 */
  background: var(--tpl-placeholder);
  box-shadow: 0 8px 32px rgb(0 0 0 / 28%);
}

/* 同意管理器把 Google 的脚本改写成 text/plain 时的第三态 —— 既不是「没配
   key」也不是「画出来了」。说清楚缺什么、怎么拿回来，并且声明其余内容不受
   影响：读者关心的是这页还能不能用。 */
.tpl-detail-fence__blocked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 1px dashed var(--tpl-on-dark-border);
  border-radius: 12px;
  color: var(--tpl-on-dark-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* `hidden` 是属性，不是咱们说了算。上面那条 `display:flex` 是类选择器，
   与 UA 的 `[hidden]{display:none}` 同权重且更靠后 —— 不补这一条，脚本把
   `hidden` 置上了也没用，地图画出来了还并排着一句「需要 cookie」。
   Services 那边踩过同一个坑（services-provider.css:1125）。 */
.tpl-detail-fence__blocked[hidden] { display: none; }

.tpl-detail-fence__blocked p { margin: 0; }
.tpl-detail-fence__blocked a { color: var(--tpl-blue-bright); }

/* 不按住 ctrl/⌘ 滚动时的提示。没有它，这张图就是「滚轮没反应」——读起来是坏了，
   而不是故意的。Google 的 cooperative 自带这句话，HERE 不带，所以由脚本建节点、
   由这里给样式。

   用的是已有的深色面与白字，不另造一个半透明蒙版：浮层出现在浅色瓦片上，
   `--tpl-surface-dark` 已经是页面里那块深色。 */
.tpl-detail-fence__hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 8px 14px;
  max-width: calc(100% - 32px);
  border-radius: var(--tpl-radius-sm);
  background: var(--tpl-surface-dark);
  color: var(--tpl-white);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  /* 只动 opacity —— 这两个状态之间本来变的就只有它。 */
  transition: opacity 160ms ease;
}

.tpl-detail-fence__hint.is-shown { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .tpl-detail-fence__hint { transition: none; }
}

/* 脚本读的字形模板，不占位。 */
.tpl-detail-fence__glyphs[hidden] { display: none; }


@media (max-width: 900px) {
  .tpl-detail-fence { flex-basis: 100%; }
  .tpl-detail-fence__canvas { height: 240px; }
  /* 三列挤到这个宽度时，像「Mr. Fuel Travel Center (One9 Fuel Network) #731」
     这种名字每列只剩一两个词。复用页面已有的断点，不另起一个。 */
  .tpl-slot-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ══ 页面骨架 ═══════════════════════════════════════════════════════════════
   正文列 + 372px 右栏，间距 32 —— 在 1200 的内容带里正文正好 796px，与设计源
   的 `flex:1 1 560px` / `flex:0 1 372px` 落点一致。右栏宽度同时满足 A11
   的「右栏 320–372」。 */
/* 设计源 D3 的根容器是 14px / 1.5，没写行高的文字都继承 1.5。详情页的 hero 与正文带
   照此给一个基准行高，免得这些文字落到浏览器的 `normal`。显式写了行高的不受影响。 */
.tpl-hero.tpl-detail-hero,
.tpl-main.tpl-detail-main { line-height: 1.5; }

.tpl-main.tpl-detail-main {
  background: var(--tpl-surface-alt);
  padding-top: 32px;
  /* 设计源 D3：正文带底部 8px，页尾那行链接自带 20 / 40 的上下留白。 */
  padding-bottom: 8px;
}

.tpl-detail-body { min-width: 0; }
.tpl-detail-col,
.tpl-detail-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tpl-detail-facts { min-width: 0; }
.tpl-detail-facts h2:first-child { margin-top: 0; }

/* Amenities are an independent, compact summary: right column on desktop and the
   next block after Facts in source order on narrow screens. */
.tpl-detail-amenities { min-width: 0; }
.tpl-detail-amenities h2 { margin-top: 44px; }

@media (min-width: 1100px) {
  .tpl-detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    column-gap: 32px;
    align-items: start;
  }
  .tpl-detail-col { grid-column: 1; grid-row: 1; }
  .tpl-detail-rail { grid-column: 2; grid-row: 1; }
  /* Amenities 现在落在正文列里（它回答的是 slot 2「这儿能办什么」），不再独占
     右栏 —— 右栏归操作卡。 */
  .tpl-detail-main .tpl-detail-amenities h2 { margin-top: 0; }
}

/* Definition list as a two-column grid: label left, value right. dt/dd rather
   than a table because these are name/value pairs about one thing, not rows.
   Capped rather than full-bleed — a 1200px-wide row for "Phone" would put the
   value a screen away from its own label. */
.tpl-facts {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  max-width: 640px;
  border-top: 1px solid var(--tpl-line);
}
.tpl-facts dt {
  font-family: var(--tpl-font-head);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tpl-ink-soft);
  padding: 15px 0;
  border-bottom: 1px solid var(--tpl-line);
}
.tpl-facts dd {
  margin: 0;
  padding: 15px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tpl-ink);
  border-bottom: 1px solid var(--tpl-line);
  min-width: 0;
  overflow-wrap: break-word;
}
.tpl-facts .tpl-addr {
  display: block;
  color: var(--tpl-ink);
  font-size: inherit;
}

/* Clearance and capacity are decision-bearing values. Weight carries emphasis;
   tabular numerals keep any numbers aligned without changing the row's type size. */
.tpl-clearance, .tpl-capnum {
  font-family: var(--tpl-font-head);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--tpl-ink);
}
/* A contextual bridge from a public fact to the app's richer action or signal.
   It stays a short shared text link so the locked product band remains primary. */
.tpl-fact-cta {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
}
/* Capacity values keep the same size and line-height as the other detail values;
   weight alone carries the additional emphasis, preserving one table rhythm. */
/* Clearance carries warning weight because getting it wrong hits the bridge. Amber
   rather than red: this is information to act on, not an error state. */
.tpl-clearance { color: var(--tpl-clearance-warn); font-size: 17px; }
.tpl-approx {
  display: block;
  font-size: 12px;
  color: var(--tpl-warn);
  margin-top: 2px;
}
/* Nearby POIs are real place choices, not service-filter chips. A stable icon
   slot plus stacked name/address gives each stop its own object hierarchy while
   keeping the browse band quieter than the primary detail content above it. */
.tpl-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tpl-nearby-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 76px;
  box-sizing: border-box;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--tpl-ink);
  background: var(--tpl-white);
  border: 1px solid var(--tpl-line);
  border-radius: 12px;
  text-decoration: none;
  transition:
    color 180ms cubic-bezier(0.2, 0, 0, 1),
    border-color 180ms cubic-bezier(0.2, 0, 0, 1);
}
.tpl-nearby-card:hover {
  color: var(--tpl-blue);
  border-color: var(--tpl-blue);
}
.tpl-nearby-card:focus-visible {
  color: var(--tpl-blue);
  border-color: var(--tpl-blue);
  outline: 2px solid var(--tpl-blue);
  outline-offset: 3px;
}
.tpl-nearby-card__icon {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.tpl-nearby-card__icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.tpl-nearby-card__icon--brand,
.tpl-nearby-card__icon--brand img {
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}
.tpl-nearby-card__icon--brand img { width: 32px; height: 32px; }
.tpl-nearby-card__copy,
.tpl-nearby-card__name,
.tpl-nearby-card__address { display: block; min-width: 0; }
.tpl-nearby-card__name {
  font-family: var(--tpl-font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpl-nearby-card__address {
  margin-top: 3px;
  color: var(--tpl-ink-soft);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Amenities: chips, wrapping, ALL of them. Never partially hidden — they are
   static facility attributes already published on the state list pages and in
   their JSON-LD, and they are the page's only substantive content. See the note
   in locations-detail.blade.php. */
.tpl-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tpl-amenity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tpl-surface);
  border: 0;
  border-radius: var(--tpl-radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--tpl-ink);
}
.tpl-amenity img { display: block; flex: 0 0 auto; }
.tpl-amenity b { font-weight: 600; color: var(--tpl-ink-muted); }
/* Bypass support is the one amenity that saves a driver time rather than
   describing a facility, so it carries the semantic green, not the accent. */
.tpl-amenity-bypass {
  background: var(--tpl-go-wash);
  border-color: var(--tpl-go-border);
  color: var(--tpl-go-text);
  font-weight: 600;
}

/* --- "IN THE APP" MODULE -------------------------------------------------
   Third attempt. The first two failed for the same reason, recorded here so the
   fourth does not repeat it:

     v1  three cards, each an UNLOCK pill over a group of grey bars -> read as a
         paywall: repeated pills, tinted panel, no real content anywhere.
     v2  one set of bars off to the side -> worse. The bars floated in half a screen
         of empty space, far from the list and too faint to signify, so they read as
         a skeleton loader that never finished. A bug, not a lock.

   Common cause: nothing is behind the lock, so any visual implying hidden content
   is either dishonest (blurring a real value publishes it — filter: blur() is
   paint-time only) or broken (empty skeleton bars). There is no third version of
   fake concealment that works, so there is no placeholder here at all.

   AND IT NO LONGER LOOKS LIKE AN AD. v1/v2 were a tinted rounded box on a page
   whose every other section is white with hairline rules, and that difference was
   most of why the eye skipped it. This uses the page's own language: a rule above,
   a heading, a list, one filled button. The button is still the only filled element
   below the hero, which is where the emphasis belongs. */
.tpl-inapp {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--tpl-line);
}
/* These two are <p> and would have been clobbered by `.tpl-main p` before that rule
   gained :not([class]) — see the note on it. That is why this module looked
   hierarchy-less through three redesigns. */
.tpl-inapp-eyebrow {
  font-family: var(--tpl-font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tpl-blue-strong);
  margin: 0 0 8px;
}
.tpl-inapp-title {
  font-family: var(--tpl-font-head);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  /* Full ink, matching the page's h2s. v2 rendered this in a muted grey, which put
     the section's own title at less contrast than the body text under it. */
  color: var(--tpl-ink);
  margin: 0 0 22px;
  max-width: 40ch;
  text-wrap: balance;
}

/* Three across, using the width the module actually has. Auto-fit rather than a
   fixed three, because the count is per type — a repair shop gets one. */
.tpl-inapp-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tpl-line);
}
.tpl-inapp-list > li { border-bottom: 1px solid var(--tpl-line); }
/* Vertical hairlines between columns, but only between — :not(:first-child) rather
   than a right border on every item, which would leave one hanging at the row end. */
.tpl-inapp-list > li + li { border-left: 1px solid var(--tpl-line); }

.tpl-inapp-item {
  display: block;
  padding: 18px 22px 18px 0;
  text-decoration: none;
  color: inherit;
  height: 100%;
  box-sizing: border-box;
  transition: background 120ms ease;
}
.tpl-inapp-list > li + li .tpl-inapp-item { padding-left: 22px; }
.tpl-inapp-item:hover { background: var(--tpl-blue-wash); }

/* The padlock sits ON the row. v2 moved it up into the eyebrow and the three rows
   immediately stopped reading as gated at all — they looked like ordinary links. */
.tpl-inapp-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tpl-blue-wash);
  color: var(--tpl-blue);
  margin-bottom: 10px;
}
.tpl-inapp-item:hover .tpl-inapp-lock { background: var(--tpl-blue); color: var(--tpl-white); }

.tpl-inapp-q {
  display: block;
  font-family: var(--tpl-font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tpl-ink);
  margin-bottom: 6px;
}
.tpl-inapp-note {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tpl-ink-muted);
  margin-bottom: 10px;
}
.tpl-inapp-go {
  display: block;
  font-family: var(--tpl-font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--tpl-blue);
}
.tpl-inapp-item:hover .tpl-inapp-go { color: var(--tpl-blue-strong); }

.tpl-inapp-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.tpl-inapp-footnote { font-size: 14px; color: var(--tpl-ink-muted); max-width: 40ch; }

/* --- NAVPRO LIVE TOOLS ---------------------------------------------------
   Parking, fuel and truck-safe routing are three equal product capabilities,
   not an information block followed by an unrelated directions button. The
   previews deliberately show interface structure rather than POI-specific live
   values: this server-rendered page does not own those continuously changing
   data points. All three actions keep the existing NavPro destinations and
   campaign attribution. */
.tpl-live-tools {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--tpl-line);
}
.tpl-live-tools__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 24px;
}
.tpl-live-tools__eyebrow {
  margin: 0 0 8px;
  color: var(--tpl-blue);
  font-family: var(--tpl-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}
.tpl-live-tools__title {
  max-width: 34ch;
  margin: 0;
  color: var(--tpl-ink);
  font-family: var(--tpl-font-head);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}
.tpl-live-tools__summary {
  max-width: 42ch;
  margin: 0 0 3px;
  color: var(--tpl-ink-muted);
  font-size: 14px;
  line-height: 1.6;
}
.tpl-live-tools__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tpl-live-tool {
  display: flex;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  background: var(--tpl-white);
  flex-direction: column;
}
.tpl-live-tool__header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}
.tpl-live-tool__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: var(--tpl-radius);
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  background: var(--tpl-blue-wash);
}
.tpl-live-tool__icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.tpl-live-tool__name {
  margin: 0;
  color: var(--tpl-ink);
  font-family: var(--tpl-font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.tpl-live-tool__note {
  color: var(--tpl-ink-muted);
  font-size: 14px;
  line-height: 1.55;
}
.tpl-live-tool__note { margin: 0 0 18px; }

.tpl-live-preview {
  position: relative;
  min-height: 190px;
  box-sizing: border-box;
  margin: 20px 0 16px;
  border: 0;
  border-radius: var(--tpl-radius);
  background: var(--tpl-placeholder);
  overflow: hidden;
}
.tpl-live-preview--image img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
}
.tpl-live-preview--parking img { padding: 8px; box-sizing: border-box; }
.tpl-live-preview--fuel img {
  padding: 0;
  box-sizing: border-box;
  transform: scale(1.08);
}
.tpl-live-preview--route img { object-fit: cover; }
.tpl-live-tool__button {
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
  font-size: 14px;
}

/* DETAIL TYPOGRAPHY FLOOR.
   The project body-copy contract is 14px. Keep navigational crumbs, field names,
   diagram labels and route-shield numerals compact, but do not shrink sentences,
   CTA supporting copy or browse links to manufacture density. The detail modifiers
   keep this correction local to the POI page instead of silently changing the
   established state-list hierarchy. */
.tpl-detail-main .tpl-cta-rownote,
.tpl-detail-main .tpl-claim,
.tpl-detail-browse .tpl-links a {
  font-size: 14px;
}
.tpl-detail-main .tpl-cta-eyebrow,
.tpl-detail-main .tpl-cta-sidelabel {
  font-size: 12px;
}

@media (max-width: 900px) {
  .tps-form,
  .tps-form:has(.tps-field-brand:not([hidden])) { grid-template-columns: 1fr; }
  .tpl-cta { grid-template-columns: 1fr; padding: 28px 24px; }
  .tpl-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-nearby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tpl-inapp { margin-top: 40px; padding-top: 24px; }
  .tpl-inapp-title { font-size: 20px; }
  /* Stacked: the vertical rules between columns become wrong once there is one
     column, and the first item needs the same left padding as the rest (none). */
  .tpl-inapp-list > li + li { border-left: 0; }
  .tpl-inapp-list > li + li .tpl-inapp-item { padding-left: 0; }
  .tpl-inapp-item { padding-right: 0; }
  .tpl-inapp-foot .tp-site-button { width: 100%; }

  .tpl-live-tools { margin-top: 40px; padding-top: 24px; }
  .tpl-live-tools__intro { grid-template-columns: 1fr; gap: 10px; }
  .tpl-live-tools__title { font-size: 24px; }
  .tpl-live-tools__grid { grid-template-columns: 1fr; }
}

@media (max-width: 1199px), (forced-colors: active) {
  .tpl-root-hero::after,
  .tpl-hub-hero::after,
  .tpl-state-hero::after,
  .tpl-detail-hero::after { display: none; }
}

/* Phone: each table row becomes a stacked card. Same markup — the table stays a
   table for screen readers and crawlers — but a horizontally scrolling table is
   a poor way to read a list on a phone, and phones are the primary device here.
   Cells surface their column name from data-label. */
@media (max-width: 720px) {
  .tpl-tablewrap { overflow-x: visible; }
  .tpl-table,
  .tpl-table tbody { display: block; width: 100%; }
  .tpl-table { border: 0; background: none; box-shadow: none; }
  .tpl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden;
                     clip: rect(0 0 0 0); white-space: nowrap; }
  .tpl-table tbody tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--tpl-white);
    border: 1px solid var(--tpl-line);
    border-radius: var(--tpl-radius);
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .tpl-table tbody tr:hover { background: var(--tpl-white); }
  .tpl-table td {
    display: block;
    border: 0;
    padding: 0;
    margin-bottom: 8px;
  }
  .tpl-table td:last-child { margin-bottom: 0; }
  /* Field name for every cell except the name, which is the card's own heading,
     route, which is self-evident from the shield, and Save, which is one icon at the card's
     corner (the `content: none` further down lost to this rule's specificity, so the word
     "SAVE" was drawn above the icon). */
  .tpl-table td[data-label]:not(.tpl-cell-name):not(.tpl-route):not(.tpl-cell-save)::before {
    content: attr(data-label);
    display: block;
    font-family: var(--tpl-font-head);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tpl-ink-soft);
    margin-bottom: 3px;
  }
  .tpl-table .tpl-cell-name { font-size: 16px; margin-bottom: 10px; }
  .tpl-table .tpl-route { margin-bottom: 10px; }
  /* A cell with no data is an em-dash holding a column open — there are no
     columns here, so it would render as a field name above nothing. */
  .tpl-table td.tpl-cell-blank { display: none; }
  /* Save sits at the card's top right instead of becoming a labelled row of its own:
     one icon on a line by itself would cost a whole row of the card. The name makes room. */
  .tpl-table tbody tr { position: relative; }
  .tpl-table td.tpl-cell-save { position: absolute; top: 10px; right: 10px; margin: 0; }
  .tpl-table td.tpl-cell-save::before { content: none; }
  /* Not `:has()`: the card layout above marks empty cells server-side so it does not
     lean on browser support, and this keeps to that. A row with no button reserves the
     space anyway; that is a row with a bad ident, which is rare. */
  .tpl-table .tpl-cell-name { padding-right: 48px; }
}

@media (max-width: 760px) {
  /* Keep editable controls at the browser-safe mobile text size. This is a
     usability exception to the compact 14px desktop control role, not a new
     typography step. */
  .tps-field select,
  .tps-field input { font-size: 16px; }
  .tpl-hero { padding: 20px 0 36px; }
  .tpl-hero h1 { font-size: 30px; }
  .tpl-hero .sub { font-size: 16px; }
  .tpl-main h2 { font-size: 22px; margin: 36px 0 14px; }
  .tpl-ranking-entry { margin-top: 28px; }
  .tpl-ranking-entry .tpl-ranking-entry__intro h2 { margin: 0; font-size: 19px; }
  .tpl-ranking-entry__choices { grid-template-columns: 1fr; }
  .tpl-ranking-entry__choice {
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 14px;
    min-height: 88px;
    padding: 14px 16px;
  }
  .tpl-ranking-entry__icon { width: 44px; height: 44px; }
  .tpl-ranking-entry + h2 { margin-top: 36px; }
  .tpl-stat { min-width: 0; flex: 1 1 140px; }
  .tpl-type-directory { padding: 40px 0 48px; }
  .tpl-section-intro h2 { font-size: 25px; }
  .tpl-type-grid { grid-template-columns: 1fr; }
  .tpl-type-card { min-height: 0; padding: 18px; }
  .tpl-brand-grid { grid-template-columns: 1fr; }
  .tpl-brand-directory { margin-top: 36px; }
  .tpl-empty:not(.tpl-empty-error) { max-width: none; margin-top: 48px; padding: 32px 20px; }
  .tpl-empty:not(.tpl-empty-error)::before {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
  }
  .tpl-empty:not(.tpl-empty-error) .tpl-empty-alts {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
  }
  .tpl-empty:not(.tpl-empty-error) .tpl-empty-alts a { width: 100%; min-height: 44px; }
  .tpl-empty:not(.tpl-empty-error) + .tpl-cta { margin-top: 48px; }
  .tpl-root-hero .tps-form:has(#tps-type option[value=""]:checked) { grid-template-columns: 1fr; }

  /* Amenities become the next mobile section after the fact rows. Keep a deliberate
     section gap so the heading does not attach itself to TYPE's final divider. */
  .tpl-detail-main .tpl-detail-amenities h2 { margin-top: 28px; }

  /* Facts stack: the desktop label column against a phone's width leaves an address
     wrapping after three words. Label above value instead. */
  .tpl-facts { grid-template-columns: 1fr; }
  .tpl-facts dt { padding: 14px 0 0; border-bottom: 0; }
  .tpl-facts dd { padding: 4px 0 14px; }
  /* Full-width buttons read as buttons on a phone; a 3-wide row of pills does
     not. Primary keeps the top slot. */
  .tpl-actions { gap: 8px; }
  .tpl-actions > * { flex: 1 1 100%; text-align: center; }
}

/* --- wide screens ---------------------------------------------------------
   Everything above is tuned for a ~1200px window, which is also the content
   width — so at 1200px the page looks right and nothing opened up beyond it.
   On a 1680px display the same values read as cramped: the reference layout at
   truckerpath.com/navigation gives its sections 80-130px of vertical padding,
   against 28-40px here.

   Only rhythm and scale change. The content stays at 1200px (--tpl-maxw), which
   already matches the homepage sections — widening the text column instead would
   push line length past comfortable reading. */
@media (min-width: 1200px) {
  :root { --tpl-content-gap: 56px; }
  .tp-site-chrome--dark-hero #tp-main > .tpl-hero:first-child {
    padding-top: calc(36px + var(--tp-site-announcement-height) + var(--tp-site-header-height));
  }
  .tpl-hero { padding: 52px 0 100px; }
  .tpl-hero.tpl-detail-hero { padding-bottom: 80px; }
  .tpl-hero h1 { font-size: 52px; }
  .tpl-hero .sub { font-size: 19px; }
  .tps-form { margin-top: 46px; }
  .tpl-repair-entry { margin-top: 46px; }
  .tpl-repair-entry + .tps-form { margin-top: 12px; }
  .tpl-main { padding: 72px 0 24px; }
  .tpl-browse { padding: 32px 0 72px; }
  .tpl-main h2 { margin: 52px 0 20px; }
  .tpl-browse h2 { margin: 40px 0 16px; }
  .tpl-stats { gap: 20px; margin-top: 36px; }
  .tpl-stat { min-width: 190px; }
  .tpl-cta { margin: var(--tpl-content-gap) 0 0; }
  .tpl-main.tpl-faq-section { padding: 64px 0; }
  .tpl-faq-section .tpl-faq h2 { margin: 0 0 20px; }

  /* Auto table layout spreads spare width across every column in proportion, so
     at 1200px "Route" was given 241px to hold "I-10 Exit 141" and Bypass 182px
     for a single chip, while Location and Amenities — the columns whose content
     actually varies in length — got no more than the short ones. Pinning the
     predictable columns hands the slack to the two that can use it.
     Sized by data-col, not position: Route, Bypass and Phone are conditional. */
  .tpl-table th[data-col="Route"] { width: 132px; }
  .tpl-table th[data-col="Bypass"] { width: 116px; }
  .tpl-table th[data-col="Phone"] { width: 148px; }
  .tpl-table th[data-col="Name"] { width: 22%; }
  .tpl-table th[data-col="Type"] { width: 132px; }
  .tpl-table th[data-col="Save"] { width: 72px; }

  /* Detail page gets the same opened-up rhythm. */
  .tpl-actions { margin-top: 34px; }
  .tpl-inapp,
  .tpl-live-tools { margin-top: 72px; padding-top: 34px; }
  .tpl-inapp-title { font-size: 27px; }
}

@media (max-width: 560px) {
  .tpl-brand-card { min-height: 76px; padding: 15px; }
  /* Brand links are repeated compact navigation, not full-width content cards.
     Two columns keep the directory scannable on phones; the full accessible
     label remains in the link while the visible name is capped at two lines. */
  .tpl-brand-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-brand-links a {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    min-height: 58px;
    padding: 10px;
  }
  .tpl-brand-links span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .tpl-nearby-grid { grid-template-columns: 1fr; }
  .tpl-live-tool { padding: 18px; }
  .tpl-live-preview { min-height: 0; }
  .tpl-live-preview--image img { height: auto; min-height: 168px; }
}

/* --- client transition shells --------------------------------------------
   These are structural placeholders, not replicas of the final UI. Dark Hero
   values use the existing on-dark tokens; list skeletons keep one quiet neutral
   hierarchy and one synchronized sweep instead of reproducing accent borders,
   route badges, chips, and table chrome while the SSR response is unknown. */
.tpl-transition-hero { min-height: 248px; }
.tpl-transition-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tpl-transition-line,
.tpl-transition-disc {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tpl-placeholder);
}
.tpl-transition-hero .tpl-transition-line,
.tpl-transition-hero .tpl-transition-disc {
  background: rgba(255, 255, 255, 0.16);
}
/* A clear travelling highlight tells the driver that data is still arriving
   without turning the placeholder into a flashing progress indicator. The
   highlighted layer is shared by every neutral block, so its colour continues
   to come from the existing token beneath it. */
.tpl-transition-line::after,
.tpl-transition-disc::after,
.tpl-transition-card--map::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateX(-105%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 22%, rgba(255, 255, 255, 0.78) 50%, rgba(255, 255, 255, 0.16) 78%, transparent 100%);
  animation: tpl-skeleton-sweep 1.12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes tpl-skeleton-sweep {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(105%); }
}
/* `min-height` is content-box sizing. On the wide detail Hero the fixed chrome
   paddings total 250px; 342px here therefore produces the same 592px footprint
   as a typical final detail page with a one-line title, without double-counting
   that height as the earlier implementation did. */
.tpl-transition-detail-hero-shell { min-height: 342px; }
.tpl-transition-detail-title,
.tpl-transition-detail-summary {
  display: flex;
  align-items: center;
}
.tpl-transition-detail-title { min-height: 1.12em; }
.tpl-transition-detail-title .tpl-transition-line {
  width: min(440px, 78vw);
  height: 0.82em;
  border-radius: 8px;
}
.tpl-transition-detail-summary { min-height: 1.55em; }
.tpl-transition-detail-summary .tpl-transition-line {
  width: min(420px, 82vw);
  height: 0.68em;
  border-radius: 6px;
}
.tpl-transition-detail-hero-hints {
  display: grid;
  gap: 22px;
  max-width: 500px;
  margin-top: 34px;
}
.tpl-transition-detail-route { width: 132px; height: 22px; border-radius: 6px; }
.tpl-transition-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tpl-transition-detail-action { width: 218px; height: 42px; border-radius: 6px; }
.tpl-transition-detail-action--short { width: 168px; }
.tpl-transition-results,
.tpl-transition-detail { min-height: 490px; }
.tpl-transition-results { position: relative; }
.tpl-transition-answer {
  max-width: 760px;
  margin-bottom: 32px;
  padding: 0;
}
.tpl-transition-answer .tpl-transition-line,
.tpl-transition-table .tpl-transition-line { background: rgba(12, 35, 64, 0.10); }
.tpl-transition-line--answer { width: 92%; height: 9px; margin-bottom: 9px; }
.tpl-transition-line--answer-short { width: 56%; height: 9px; }
.tpl-transition-table {
  overflow: hidden;
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  background: var(--tpl-white);
}
.tpl-transition-table-head,
.tpl-transition-table-row {
  display: grid;
  grid-template-columns: minmax(94px, 0.7fr) minmax(170px, 1.2fr) minmax(168px, 1.15fr) minmax(220px, 1.7fr);
  gap: 18px;
  align-items: center;
  padding: 0 18px;
}
.tpl-transition-table-head {
  height: 38px;
  background: var(--tpl-surface);
}
.tpl-transition-table-head span {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(12, 35, 64, 0.10);
}
.tpl-transition-table-row {
  min-height: 64px;
  border-top: 1px solid rgba(12, 35, 64, 0.08);
}
.tpl-transition-line--route { width: 42px; height: 10px; }
.tpl-transition-line--name { width: 72%; height: 10px; }
.tpl-transition-line--location { width: 62%; height: 10px; }
.tpl-transition-line--chips { width: 82%; height: 14px; }
.tpl-transition-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tpl-transition-type-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 112px;
  box-sizing: border-box;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  padding: 22px;
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  background: var(--tpl-white);
}
.tpl-transition-disc.tpl-transition-type-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 8px;
}
.tpl-transition-type-card .tpl-transition-line--card-title {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: 42%;
  height: 13px;
}
.tpl-transition-type-card .tpl-transition-line--card-copy {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  width: 72%;
  height: 10px;
  margin: 0;
}
.tpl-transition-type-card:nth-child(3n + 2) .tpl-transition-line--card-title { width: 49%; }
.tpl-transition-type-card:nth-child(3n + 2) .tpl-transition-line--card-copy { width: 64%; }
.tpl-transition-type-card:nth-child(3n) .tpl-transition-line--card-title { width: 37%; }
.tpl-transition-type-card:nth-child(3n) .tpl-transition-line--card-copy { width: 78%; }
.tpl-transition-brand-card {
  display: flex;
  min-height: 102px;
  box-sizing: border-box;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  background: var(--tpl-white);
}
.tpl-transition-disc { width: 38px; height: 38px; flex: 0 0 38px; }
.tpl-transition-line--card-title { width: 48%; height: 13px; }
.tpl-transition-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tpl-transition-brand-card { min-height: 82px; padding: 16px; }
.tpl-transition-brand-card .tpl-transition-disc { width: 34px; height: 34px; flex-basis: 34px; }
.tpl-transition-brand-card .tpl-transition-line { width: 54%; height: 12px; }
.tpl-transition-detail { position: relative; }
.tpl-transition-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
}
.tpl-transition-card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  background: var(--tpl-white);
}
.tpl-transition-card .tpl-transition-line { margin-bottom: 14px; }
.tpl-transition-line--label { width: 72px; height: 9px; margin-top: 4px; }
.tpl-transition-line--body { width: 92%; height: 15px; }
.tpl-transition-line--body-short { width: 58%; height: 15px; margin-bottom: 34px !important; }
.tpl-transition-card--map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 300px;
  background: var(--tpl-placeholder);
}
.tpl-transition-error {
  max-width: 540px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius);
  background: var(--tpl-white);
  text-align: center;
}
.tpl-transition-error p { margin: 0 0 10px; }
.tpl-transition-error .tpl-empty-title { margin-bottom: 8px; }
.tpl-transition-retry { margin-top: 12px; }

@media (max-width: 900px) {
  .tpl-transition-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-transition-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-transition-detail-grid { grid-template-columns: 1fr; }
  .tpl-transition-card--map { min-height: 220px; }
}

@media (max-width: 720px) {
  .tpl-transition-hero { min-height: 204px; }
  /* Mobile detail actions stack and rating copy wraps, adding about 83px to the
     one-line-title Hero. Reserve that real footprint so the completed POI does
     not push the results band down after loading. */
  .tpl-transition-detail-hero-shell { min-height: 425px; }
  .tpl-transition-results,
  .tpl-transition-detail { min-height: 420px; }
  .tpl-transition-table-head { display: none; }
  .tpl-transition-table { border: 0; background: transparent; overflow: visible; }
  .tpl-transition-table-row {
    grid-template-columns: 1fr;
    gap: 11px;
    min-height: 148px;
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid rgba(12, 35, 64, 0.08);
    border-radius: var(--tpl-radius);
    background: var(--tpl-white);
  }
  .tpl-transition-line--chips { width: 72%; }
  .tpl-transition-type-grid,
  .tpl-transition-brand-grid { grid-template-columns: 1fr; }
  .tpl-transition-type-card { min-height: 0; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .tpl-transition-line::after,
  .tpl-transition-disc::after,
  .tpl-transition-card--map::after { display: none; animation: none; }
  .tps-suggest-status[data-state="loading"]::before { animation: none; }
  .tpl-answer a,
  .tpl-claim a,
  .tpl-appswitch a,
  .tpl-facts dd a,
  a.tpl-phone,
  a.tpl-poiname,
  .tpl-ranking-entry__choice,
  .tpl-ranking-entry__chevron,
  .tpl-states a,
  .tpl-links a,
  .tpl-nearby-card,
  .tpl-type-card { transition: none; }
  .tpl-faq-icon::after { transition: none; }
}

/* PAID TRUCK PARKING — RIGHT RAIL
   ------------------------------------------------------------------
   4501307394 §六. The rail's own shell (border, radius, shadow, sticky) comes
   from `.tp-services-provider__rail` in services-provider.css, which this page
   loads: ADR-9 reuses the Services provider template, so the rail is that rail.
   Only what parking puts INSIDE it is defined here.

   These live in locations.css because the page is a Locations page — its URL
   never leaves /locations/ (TL, 2026-09-29). Every colour is a --tpl-* token
   read at runtime; no hex from the design canvas is copied down. */
.tpl-parking-rail__price {
  padding: 16px 18px;
  background: var(--tpl-ink-nav);
}
.tpl-parking-rail__rate {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
/* The two rates are PEERS, not a headline and a footnote — TL, 2026-09-30.

   The monthly amount rendered at 18px against the daily's 28px until then, which
   read as a rate and an aside about it. §六 records Jessica's correction on
   exactly this point: the monthly is a real subscription carrying a quarter of
   all bookings, and hiding it 「等于把客单价更高的那个产品藏起来」. Shrinking it is a
   softer version of the same thing.

   Only the amounts differed; both `__per` labels already measured 14px. */
.tpl-parking-rail__rate_secondary { margin-top: 6px; }
.tpl-parking-rail__amount {
  font: 700 28px/1.1 var(--tpl-font-head);
  color: var(--tpl-white);
}

.tpl-parking-rail__per {
  font: 400 14px/1.4 var(--tpl-font-body);
  color: var(--tpl-on-dark-secondary);
}
.tpl-parking-rail__body { padding: 16px 18px 18px; }
.tpl-parking-rail__inventory {
  margin: 0;
  font: 500 14px/1.5 var(--tpl-font-body);
  color: var(--tpl-ink);
}
/* Filled after paint by the availability request, hidden until it has a value —
   so the card never reserves a blank line for a number that may not arrive. */
.tpl-parking-rail__live {
  margin: 6px 0 0;
  font: 500 14px/1.5 var(--tpl-font-body);
  color: var(--tpl-go-text);
}
.tpl-parking-rail__body .tp-site-button { width: 100%; margin-top: 16px; }
.tpl-parking-rail__note {
  margin: 10px 0 0;
  font: 400 13px/1.5 var(--tpl-font-body);
  color: var(--tpl-ink-soft);
  text-align: center;
}
.tpl-parking-rail__hours-block {
  padding: 16px 18px;
  border-top: 1px solid var(--tpl-line-soft);
}
.tpl-parking-rail__subhead {
  margin: 0 0 10px;
  font: 600 16px/1.3 var(--tpl-font-head);
  color: var(--tpl-ink);
}
.tpl-parking-rail__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  font: 400 14px/1.5 var(--tpl-font-body);
}
.tpl-parking-rail__hours dt { color: var(--tpl-ink-secondary); }
.tpl-parking-rail__hours dd { margin: 0; color: var(--tpl-ink); text-align: right; }

/* The shared header is fixed and overlays the top of the page in dark-hero mode.
   The Services provider page escapes that by swapping in its own product bar
   (`chromeHeader`); this page must NOT — it lives at a /locations/ URL and a
   driver there should keep the Locations navigation. ADR-9 reuses the template,
   not the site chrome.

   So the first block reserves the header's height instead, from Site Chrome's
   own custom properties rather than numbers copied out of it — the same
   mechanism services.css uses for its hero. */
.tp-site-chrome--dark-hero #tp-main > .tpl-parking-provider:first-child .tp-services-provider__crumbs-band {
  padding-top: calc(var(--tp-site-announcement-height) + var(--tp-site-header-height));
}

/* NEARBY PARKING — the Lot-detail card grid
   ------------------------------------------------------------------
   设计源：TP Parking - Commercial Branch.dc.html · scene "Lot detail" ·
   区块 "Other parking near Exit 359"。实测（1280px / 390px 两档）：
   桌面三等列 gap 10px；卡片 radius 10px、padding 12px 14px、白底。

   字号偏差（有据）：原型用 8.5px / 11.5px / 12px / 13px。AGENTS.md 硬不变量禁止
   分数字号——「不是有效的密度工具」，须映射到整数级。故取 11 / 12 / 14。

   只出付费场地（TL 2026-09-30），所以原型的第三档 FREE 徽标不会出现。 */
.tpl-parking-nearby {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* 整卡是一个链接。默认只有中性描边 —— 原型那圈蓝色是 hover 态，不是常态
   （TL 2026-09-30）。边宽恒定 1px、只换颜色，所以 hover 不会让卡片跳动；
   过渡只命名 border-color 这一个属性，不用 `all`。 */
.tpl-parking-nearby__card {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--tpl-line);
  border-radius: 10px;
  background: var(--tpl-white);
  text-decoration: none;
  transition: border-color 140ms ease;
}
a.tpl-parking-nearby__card:hover,
a.tpl-parking-nearby__card:focus-visible {
  border-color: var(--tpl-blue);
}
@media (prefers-reduced-motion: reduce) {
  .tpl-parking-nearby__card { transition: none; }
}

.tpl-parking-nearby__badge {
  display: block;
  margin-bottom: 4px;
  font: 700 11px/1.2 var(--tpl-font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tpl-ink-soft);
}
/* 可预订的那张是这一块存在的理由，设计源给它品牌色。 */
.tpl-parking-nearby__badge.is-reservable { color: var(--tpl-blue); }

.tpl-parking-nearby__name {
  display: block;
  font: 600 14px/1.35 var(--tpl-font-body);
  color: var(--tpl-ink);
}
/* `highway` 是自由文本，一行实测长达 80+ 字符（"I-10 (Exit onto Hunter Street,
   turn left onto Enterprise and the black gate right next to Hom Boy Studios)"）。
   ServicesProvider 明确该串原样 travel、不解析，故在显示层截断，不在 PHP 里切字符串
   ——切了就是在改记录。 */
.tpl-parking-nearby__meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font: 400 12px/1.4 var(--tpl-font-body);
  color: var(--tpl-ink-soft);
}
/* 价格用品牌蓝的深一档，与卡内其余文字拉开——设计源也是这么分的。 */
.tpl-parking-nearby__price {
  display: block;
  margin-top: 8px;
  font: 600 14px/1.4 var(--tpl-font-body);
  color: var(--tpl-blue-strong);
}

@media (min-width: 1100px) {
  .tpl-parking-nearby { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* MORE TRUCK SERVICES BAND
   照搬免费 parking 页页尾的 `.tpl-links` 区块，只是收窄到 6 个类目。
   `.tpl-links` / `.tpl-type-icon` 的样式已在本文件上方定义并随本页加载，
   这里只补外层区块的节奏，使它与 provider 版式的模块间距对齐。 */
.tpl-parking-services-band {
  margin-top: 40px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--tpl-line);
  background: var(--tpl-surface-alt);
}
.tpl-parking-services-band h2 {
  margin: 0 0 14px;
  font: 600 18px/1.35 var(--tpl-font-head);
  color: var(--tpl-ink);
}

/* The rail sticks clear of the fixed chrome — measured, not guessed.
   services-provider.css pins it at `top: 88px`, which is right for the Services
   product bar. This page keeps the Locations marketing chrome (ADR-9 reuses the
   template, not the site chrome), and that stack is 42px announcement + 72px
   header = 114px — so 88px parked 26px of the card underneath it.
   Read from Site Chrome's own custom properties rather than a copied number.

   The selector carries BOTH classes off the same element: services-provider.css
   pins this with `.tp-services-page .tp-services-provider__rail`, which has the
   same specificity as a one-class prefix — and locations.css is loaded first, so
   an equal-weight rule here loses. Stacking the two classes wins it on weight
   instead of on order. */
.tp-services-page.tpl-parking-provider .tp-services-provider__rail {
  top: calc(var(--tp-site-announcement-height) + var(--tp-site-header-height) + 16px);
}

/* THE RAIL MUST SURVIVE ON A PHONE — this page, not Services.
   ------------------------------------------------------------------
   services-provider.css sets `display: none` on the rail below the desktop
   breakpoint, and on a Services provider page that is correct: its rail holds
   Call, hours and the app card, every one of which is repeated in the body or
   in the sticky action bar, so hiding it loses nothing.

   Paid parking's rail is not a repeat. It is the ONLY place the page states the
   price, the monthly rate, the lot's size and the booking hours — measured at
   390px on 2026-09-30, all four were absent from the phone render, which makes a
   paid-parking page with no price on it. §六 requires the rate; §四 gates the
   hours on status A. So this page shows the rail on a phone.

   IT TRAILS, IT DOES NOT LEAD — TL, 2026-09-30.

   This carried `order: -1` for one day, on the reading that the mobile Lot
   detail scene marks its price block `price / free reserve panel — sits high on
   mobile, no sticky rail`. That scene has no sticky bar, which is what earns the
   panel its place at the top. THIS page does have one: `_provider-actionbar`
   renders at the same width and already carries `Reserve a spot`, so the driver
   reaches the booking without scrolling either way. With the CTA covered, a
   full-height price card above the H1 pushed the lot's own name, address and
   gate below the fold — the page introduced itself with a price for something
   the reader had not been told the name of yet.

   So the rail keeps its content and loses its priority: no `order`, and it falls
   into ordinary flow after the body. Sticky is dropped with it — at that width
   it is a card in the flow, and a sticky one would fight the action bar for the
   same screen.

   THE BREAKPOINT IS 768px BECAUSE THAT IS THE ONLY ONE PROVIDER HAS.
   This read `1099px` until 2026-09-30, which invented a third band nobody
   designed: between 769 and 1099 the grid is still provider's two columns
   (`minmax(0,1fr) clamp(300px,32%,372px)`), so `order: -1` did not stack the
   rail — it moved the rail into the WIDE track and the body into the 300px one.
   Measured at 900px: rail x=24 w=504, main x=576 w=300, i.e. the page inverted.
   Page layout follows provider's PC/mobile pair and adds no band of its own. */
@media (max-width: 768px) {
  .tp-services-page.tpl-parking-provider .tp-services-provider__layout {
    row-gap: 24px;
  }

  .tp-services-page.tpl-parking-provider .tp-services-provider__rail {
    display: block;
    position: static;
  }
}

/* PAID LOT BADGE
   设计源：TP Parking - Commercial Branch.dc.html · Lot detail scene · H1 上方那一行。
   实测 1280px：实心 rgb(22,136,202)、白字、大写、padding 4px 8px、radius 4px。
   那个蓝**精确命中** --tpl-blue，所以照搬的是 token 不是 hex。

   几何与字号继承 `__kicker`（同一行里的既有 chip），只翻转配色 —— 原型这枚是
   两者中更响的一枚，用实心；`__kicker` 保持它的 wash 底。原型字号 9px 不采用，
   沿用 `__kicker` 已确立的整数 Caption 级（那条规则的先例就写在它自己的注释里）。 */
.tp-services-page .tp-services-provider__kicker.tpl-parking-badge {
  background: var(--tpl-blue);
  color: var(--tpl-white);
  text-transform: uppercase;
}

/* ENTRY PHOTOS · 进门指引图轮播（§五-5）
   ------------------------------------------------------------------
   设计源：TP Parking - Commercial Branch.dc.html · scene "Lot detail"。
   实测 1280px：预览 818×440 radius 12；chip left14/top13 radius6 pad 6/11，
   计数 10px/700；箭头 34×34 圆；缩略图 4 列 gap9 mt9，198×111 radius8，
   选中 2px 蓝 / 未选 1px 线色。单张也按轮播处理（结构不变）。

   蓝色与线色**精确命中** --tpl-blue / --tpl-line / --tpl-blue-bright，
   照搬的是 token 不是 hex；深色遮罩用 --tpl-ink-nav 加透明度。 */
.tpl-parking-photos__frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tpl-surface);
}
/* 原生 scroll-snap：无脚本也能翻页，缩略图锚点直接跳。 */
.tpl-parking-photos__strip {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tpl-parking-photos__strip::-webkit-scrollbar { display: none; }
/* 平滑滚动放在 CSS 里而不是 scrollTo 的参数里 —— 这样下面的 reduced-motion
   规则能一次性关掉它，脚本不必自己判断。 */
.tpl-parking-photos__strip { scroll-behavior: smooth; }
.tpl-parking-photos__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
/* 固定比例先占位：拿不到图片真实像素尺寸，这比 width/height 属性更能防 CLS。
   818 / 440 是设计源实测的预览比例。 */
.tpl-parking-photos__img {
  display: block;
  width: 100%;
  aspect-ratio: 818 / 440;
  object-fit: cover;
}
.tpl-parking-photos__chip {
  position: absolute;
  left: 14px;
  top: 13px;
  margin: 0;
  padding: 6px 11px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--tpl-ink-nav) 82%, transparent);
}
.tpl-parking-photos__count {
  font: 700 10px/1.4 var(--tpl-font-body);
  letter-spacing: .08em;
  color: var(--tpl-blue-bright);
}
.tpl-parking-photos__arrow {
  position: absolute;
  padding: 0;
  border: 0;
  cursor: pointer;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tpl-ink-nav) 72%, transparent);
  color: var(--tpl-white);
  font: 600 15px/1 var(--tpl-font-body);
  text-decoration: none;
}
.tpl-parking-photos__arrow_prev { left: 13px; }
.tpl-parking-photos__arrow_next { right: 13px; }

.tpl-parking-photos__thumbs {
  display: grid;
  /* 四列是设计源的格数。张数不足时用 4 列会把单张缩略图拉到 1/4 宽 —— 与预览
     严重失衡，所以列宽固定为设计实测的 198px 上限，不足四张时靠左排。 */
  grid-template-columns: repeat(auto-fit, minmax(0, 198px));
  gap: 9px;
  margin-top: 9px;
}
.tpl-parking-photos__thumb {
  display: block;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--tpl-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--tpl-surface);
  /* 只过渡边框色，宽度恒定 —— 选中不会让缩略图跳动。 */
  transition: border-color 140ms ease;
}
.tpl-parking-photos__thumb.is-active { border-width: 2px; border-color: var(--tpl-blue); }
.tpl-parking-photos__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 198 / 111;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .tpl-parking-photos__thumb { transition: none; }
  .tpl-parking-photos__strip { scroll-behavior: auto; }
}
/* 手机上四列太窄，改两列。 */
@media (max-width: 719px) {
  .tpl-parking-photos__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 标题下的评分行（Lot detail scene）。评分本身是共享的 data-rating 基元，
   这里只排版它与条数之间的关系。 */
/* 标题下的评分行 —— 设计源 Lot detail scene（`TP Parking - Commercial Branch.dc.html`
   桌面 327–332 行）：`display:flex; align-items:center; gap:8px; margin-top:8px`，
   字色走 `--tp-text-3`（本仓库同角色即 `--tpl-ink-soft`）。

   THE BOTTOM MARGIN IS THE FIX OF 2026-09-30. It read `margin: 8px 0 0`, so the
   measured gap between this row and `Address and gate` was **0px** — the card
   sat directly under the reviews count. The design source puts 22px there: its
   next block (the two-column grid at line 334) opens with `margin-top:22px`.
   Carried here as the row's own bottom margin because the section below is a
   shared Services partial this page must not restyle.

   原型字号 13.5px 不采用 —— AGENTS.md 明令分数字号无效，映射到既有整数 Body Small。 */
.tpl-parking-reviewline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 22px;
  font: 400 14px/1.45 var(--tpl-font-body);
  color: var(--tpl-ink-soft);
}

/* ---------------------------------------------------------------------------
   POI CARD LIST  (PRD $7 / T19)

   The three repair families only; every other type still renders `.tpl-table`
   above. Layout follows the ImageLeft canvas: identity and hours on the left,
   actions pinned top-right, then image, selling copy and the meta block.

   ONE GRID, TWO BREAKPOINTS. The card is a named-area grid rather than nested
   flex rows because four of its six blocks are optional today (B2 has not
   landed), and with flex a missing block collapses its neighbours into a
   different reading order. Named areas keep the rows that do exist in the same
   places whether a card has two parts or six.
   --------------------------------------------------------------------------- */

/* THE GREY IS THE SECTION'S, NOT THE LIST'S. The board draws white cards with a 5%
   hairline shadow on `rgb(243,246,249)`; without that contrast the card reads as
   nothing at all on this page's white main. The first build put the grey on the list
   element itself, which produced a rounded grey panel containing white cards -- a
   different composition from the board's full-width band. `.tpl-cards-band` carries
   it instead, the same shape `.tpl-browse` already uses on these pages, and the list
   goes back to being transparent. */
.tpl-cards-band {
  margin-top: 8px;
  padding: 24px 0 32px;
  background: var(--tpl-surface);
}

.tpl-cards-band > .tpl-wrap > h2 { margin-top: 0; }

.tpl-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

/* MEASURED, NOT INFERRED. The canvas board was Played and its computed grid read
   at 1920 and 390 (2026-11-05); reading the board's markup order alone had produced
   the wrong layout, because its CSS reorders the blocks with `grid-template-areas`
   and the file carries dozens of `!important` variant overrides that no amount of
   grepping resolves into a final value.

   Board at 1920:            Board at 390:
     "poi  id    id    acts"   "poi  id"
     ".    hours hours hours"  "poi  hours"
     ".    info  info  info"   "acts acts"
     ".    img   copy  copy"   "info info"
                               "img  img"

   Still no `grid-template-areas` on our side, for the reason the first build found
   the hard way: named areas declare every row up front, and four of the six blocks
   are absent until B2 lands. An explicit row with no child collapses to zero height
   but the row gaps around it do not collapse with it, which put 24px of dead space
   between every business name and its address. Explicit placement for the two blocks
   that need it, auto-placement for the rest, so an absent block costs nothing.
   --------------------------------------------------------------------------- */

.tpl-card {
  /* Measured on the board: a 42px identity column, a 320px image column, and no
     column gap at all -- the name starts at 24px padding + 42px = 66px, which is
     exactly where the board puts it. The first build used 32px + a 12px gap and
     landed everything 2px right of the design. */
  --tpl-card-img: 320px;
  display: grid;
  grid-template-columns: 42px var(--tpl-card-img) minmax(0, 1fr) auto;
  gap: 8px 0;
  /* Measured at 1920, not at 390 -- the first reading of this card was taken with
     the viewport still at phone width and brought back the mobile override (16px). */
  padding: 20px 24px 24px;
  /* NO BORDER. Measured on the board: `border-width: 0`, a 12px radius and a single
     hairline shadow -- it is a raised white card, not an outlined one. The first
     build gave it `1px solid var(--tpl-line)` by reflex, copying the table and chip
     styling that lives above in this file, which reads as a denser, flatter list
     than the design. `--tpl-radius` is 8px and does not fit here; 12px and this
     shadow both already appear in this stylesheet, so neither is a new value being
     invented at the page level. */
  border-radius: 12px;
  background: var(--tpl-white);
  box-shadow: 0 1px 2px rgb(1 25 50 / 5%);
  /* Named property, not `all` (AGENTS.md). 120ms matches the board. */
  transition: box-shadow 120ms ease;
}

/* HOVER IS THE BOARD'S, ON INSTRUCTION. AGENTS.md's default is no decorative hover
   elevation at all; TL asked on 2026-11-05 for the canvas treatment to be followed
   here, so this is the board's exact pair of shadows: a 1.5px brand ring plus a soft
   brand-tinted lift.

   `:focus-within` is ours, not the board's. The card holds two real links and a
   keyboard user tabbing into one gets no hover, so without this the ring would be a
   mouse-only affordance.

   ⚠️ TOKEN GAP: `rgb(22 136 202 / 12%)` is --tpl-blue at 12% alpha. There is no
   semantic role for a tinted brand glow in locations.css `:root`, and
   docs/design-system.md 3.2 forbids page files from introducing brand values. The
   literal is here because the instruction was to match the board; the missing role
   is logged as Q79 and should be named in the Design System rather than copied a
   second time. */
/* The whole card opens the business's page (CMO-253 §3.1; locations-pagination.js). */
.tpl-cards > .tpl-card { cursor: pointer; }

.tpl-card:hover,
.tpl-card:focus-within {
  box-shadow:
    0 0 0 1.5px var(--tpl-blue),
    0 8px 20px rgb(22 136 202 / 12%);
}

@media (prefers-reduced-motion: reduce) {
  .tpl-card,
  .tpl-card__name a { transition: none; }
}

.tpl-card__icon { grid-column: 1; grid-row: 1; display: block; width: 32px; height: 32px; }
.tpl-card__icon img { display: block; }
.tpl-card__id { grid-column: 2 / 4; grid-row: 1; min-width: 0; }

.tpl-card__namerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tpl-card__name {
  margin: 0;
  font-family: var(--tpl-font-head);
  font-size: 16px;
  font-weight: 600;
  /* 22px on the board, not the 24px this file uses elsewhere. */
  line-height: 22px;
  color: var(--tpl-ink);
}

/* Ink at rest, brand blue on hover -- measured on the board, where the resting
   anchor is rgb(1,25,50) with no underline. The first build made it a blue link at
   rest, which is this file's normal treatment for a list row but turns a page of 20
   cards into a page of 20 blue headlines. */
.tpl-card__name a {
  color: var(--tpl-ink);
  text-decoration: none;
  transition: color 120ms ease;
}

.tpl-card__name a:hover,
.tpl-card__name a:focus-visible { color: var(--tpl-link); }

/* A TINTED PILL, not bare text. Measured on the board: a pale blue plate with 8px
   of horizontal padding, a 4px radius and an 18px line box. The first build rendered
   the icon and the word with no plate at all, which reads as a caption rather than a
   badge. The plate colour has no role in `:root` (the board uses #EAF1FF against
   #005EE9 text); `--tpl-blue-wash` is the file's existing pale-blue surface and is
   used here, which is the same substitution docs/design-system.md 4.3 already
   records for this badge's foreground. */
.tpl-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: var(--tpl-radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: var(--tpl-blue);
  background: var(--tpl-blue-wash);
}

.tpl-card__hours {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--tpl-ink-muted);
}

.tpl-card__open { font-weight: 600; color: var(--tpl-go-text); }
.tpl-card__open--shut { color: var(--tpl-danger-text); }
.tpl-card__sep { margin: 0 6px; color: var(--tpl-ink-faint); }

.tpl-card__acts {
  /* The only other explicit placement: the DOM carries the phone order
     (name, hours, actions) so narrow screens need no reordering, and desktop
     pulls the actions back up to the name row. */
  grid-column: 4;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Save on a card: the design's icon-only button (round 23): a square, white, a 1px line, radius 4
   and a 16px bookmark, the same box as Call and Check beside it. The design draws all three at
   36px; here Call and Check are the shared Button's 38px, so Save takes 38 too and the row stays
   level (a 36px Save beside 38px buttons sat 2px short). From 810px up it is
   pulled in front of Call (the DOM puts it last, which is already where a phone wants it).
   The outline/filled glyph toggle is the shared Button's, keyed off `aria-pressed`. */
.tp-site-chrome .tpl-card__save.tp-site-button {
  flex: 0 0 38px;
  order: -1;
  width: 38px;
  height: 38px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--tpl-line);
  border-radius: 4px;
  background: var(--tpl-white);
  color: var(--tpl-ink);
}
.tp-site-chrome .tpl-card__save.tp-site-button:hover,
.tp-site-chrome .tpl-card__save.tp-site-button:focus-visible {
  background: var(--tpl-surface);
}
/* The Button's own icon rule gives the glyph `flex: 0 0 18px`, and in a flex row the basis beats
   `width`, so the size is set on both. */
.tp-site-chrome .tpl-card__save.tp-site-button > .tp-site-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
@media (max-width: 809px) {
  .tp-site-chrome .tpl-card__save.tp-site-button { order: 2; }
}

/* The canvas sizes the card image by tier: 334x206 for $199, 334x120 otherwise.
   `aspect-ratio` rather than a fixed height, for the same reason the provider
   banner uses it -- when the column is narrower than 334px a fixed height crops
   the picture instead of scaling it. */
.tpl-card__img {
  grid-column: 2;
  display: block;
  width: 100%;
  height: auto;
  /* Measured on the board: 2.783 for the small card, 1.621 for the large one --
     334/120 and 334/206, the two card sizes PRD $5.1 fixes. */
  aspect-ratio: 334 / 120;
  object-fit: cover;
  /* The board gives the image the card's own 12px radius and a hairline frame
     (rgb(236,239,242)); `--tpl-line-soft` is the nearest role. The first build used
     the 4px chip radius and no frame. */
  border: 1px solid var(--tpl-line-soft);
  border-radius: 12px;
  background: var(--tpl-placeholder);
}

.tpl-card--lg .tpl-card__img { aspect-ratio: 334 / 206; }

/* The copy sits beside the image when there is one and takes the whole rail when
   there is not. Expressed as an adjacent-sibling rule rather than a modifier class
   because the image is always the element immediately before it, so the DOM already
   carries the answer -- and today, with no `card_image` in any contract, the
   image-less branch is the one that actually renders. */
.tpl-card__copy {
  grid-column: 2 / -1;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--tpl-ink-secondary);
}

/* 20px between the image and its copy, measured. With the column gap now 0 this is
   the copy's own padding, exactly as the board writes it. */
.tpl-card__img + .tpl-card__copy { grid-column: 3 / -1; padding-left: 20px; }

/* The board clips the copy to a line count rather than letting it set the card's
   height -- a merchant with six points must not make its row twice as tall as its
   neighbours. Seven lines on the large card, five on the small one, both measured. */
.tpl-card__copy {
  max-height: calc(var(--tpl-card-lines, 5) * 20px);
  overflow: hidden;
}

.tpl-card--lg { --tpl-card-lines: 7; }

/* The board separates the image row from the block above it by 14px rather than the
   card's usual 8px row gap. */
.tpl-card__img,
.tpl-card__copy { margin-top: 6px; }

.tpl-card__headline {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--tpl-ink);
}

.tpl-card__points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--tpl-ink-secondary);
}

/* A bullet, which the board draws with a pseudo-element rather than list markers so
   the indent is fixed at 16px regardless of the glyph. Not an icon-registry case:
   this is a typographic bullet inside a paragraph list, not a named interface icon. */
.tpl-card__points li { position: relative; padding-left: 16px; }

.tpl-card__points li::before {
  position: absolute;
  left: 4px;
  content: "\2022";
  color: var(--tpl-ink-soft);
}

.tpl-card__info { grid-column: 2 / -1; min-width: 0; }

.tpl-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  /* Full ink on the board, not a secondary grey: the distance, city and address are
     the row's load-bearing facts, not metadata around them. */
  color: var(--tpl-ink);
}

.tpl-card__rate {
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
  /* 13px / --tpl-ink-soft. The token is an exact match for the board's
     rgb(134,143,152); the first build used 14px and the secondary grey. */
  font-size: 13px;
  line-height: 20px;
  color: var(--tpl-ink-soft);
}

.tpl-card__rate strong { color: var(--tpl-ink); }

.tpl-card__tags {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Filled, not outlined -- measured `border-width: 0` over a grey fill. Same reflex
   as the card border above: the chips further up this file are outlined, these are
   not. `--tpl-surface` is the nearest role to the board's fill. */
.tpl-card__tags li {
  padding: 2px 9px;
  border-radius: var(--tpl-radius-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--tpl-ink-secondary);
  background: var(--tpl-surface);
}

/* Phone. The actions leave the top-right corner and become a full row under the
   name: at 390px a two-button group beside a wrapping business name leaves the
   name about nine characters, and these names are long. */
@media (max-width: 767px) {
  .tpl-card {
    grid-template-columns: 42px minmax(0, 1fr);
    /* The board's own phone override. */
    padding: 16px;
  }

  .tpl-cards-band { padding: 16px 0 24px; }

  /* Everything but the icon becomes a full-width block, in DOM order -- which is
     already the board's phone order, so nothing has to be reordered here.
     EVERY child is re-placed, including the ones the desktop rules put in columns
     3 and 4: those columns do not exist here, and a `grid-column` pointing past the
     last track silently creates an implicit one rather than failing, which collapsed
     half the card to zero width on the first build.
     `.tpl-card__img + .tpl-card__copy` is repeated verbatim because the desktop rule
     is a compound selector and would otherwise outrank a single-class override. */
  .tpl-card__icon { grid-column: 1; grid-row: 1; }
  .tpl-card__id { grid-column: 2; grid-row: 1; }
  .tpl-card__hours { grid-column: 2; }
  .tpl-card__acts { grid-column: 1 / -1; grid-row: auto; margin-top: 4px; }
  .tpl-card__info,
  .tpl-card__img,
  .tpl-card__copy,
  .tpl-card__img + .tpl-card__copy { grid-column: 1 / -1; }

  /* The board hides the selling copy below 810px. We keep it, stacked under the
     image, and log the difference instead of implementing it: dropping a paid
     merchant's own words on the ~71% of sessions that are mobile (S8 8.2, GA4) is a
     product decision with revenue in it, and AGENTS.md forbids removing required
     information to make a layout fit. Reverting to the board here is one line. */
  .tpl-card__copy { margin-top: 4px; }
}
