/**
 * Pilbe Agent Directory — Phase 9c-2.
 *
 * Implements SKILL §4.4 layout for /agents/ (national hub) and
 * /agents/{location}/ (regional). Cards-only column in 9c-2; the 55/45
 * cards/map split activates in 9c-3 by adding `--withmap` to
 * `.pilbe-agents-layout`.
 *
 * Token-only colour references. No hardcoded hex outside pilbe-tokens.css.
 * Lato weights 400/700/900 only (project hard rule).
 *
 * Reuses primitives from:
 *   - pilbe-cards.css (.pilbe-card, .pilbe-card-branded, __accent, __logotype)
 *   - pilbe-agency-claimed.css (.pilbe-pill, .pilbe-breadcrumbs)
 *
 * @package Pilbe
 * @version 1.0.0
 */

/* ──────────────────────────────────────────────────────────────────
   Page chrome
   ────────────────────────────────────────────────────────────────── */

.pilbe-agents-page {
  background: var(--pilbe-bg-page);
  padding: var(--pilbe-space-8) 0 var(--pilbe-space-16);
  min-height: 60vh;
}

.pilbe-agents-page__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pilbe-space-6);
}

/* ──────────────────────────────────────────────────────────────────
   Hero — heading + right-aligned controls
   ────────────────────────────────────────────────────────────────── */

.pilbe-agents-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--pilbe-space-4);
  margin-bottom: var(--pilbe-space-6);
}

.pilbe-agents-hero__heading {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-h3);
  line-height: var(--pilbe-lh-h3);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.pilbe-agents-hero__controls {
  display: flex;
  align-items: center;
  gap: var(--pilbe-space-3);
  flex-wrap: wrap;
}

.pilbe-agents-hero__verified {
  display: inline-flex;
  align-items: center;
  gap: var(--pilbe-space-2);
  padding: var(--pilbe-space-2) var(--pilbe-space-3);
  background: var(--pilbe-bg-surface);
  border: 1px solid var(--pilbe-border-default);
  border-radius: var(--pilbe-radius-pill);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  font-weight: 400;
  color: var(--pilbe-text-secondary);
  cursor: pointer;
  user-select: none;
}

.pilbe-agents-hero__namesearch input[type="search"] {
  padding: var(--pilbe-space-2) var(--pilbe-space-3);
  background: var(--pilbe-bg-surface);
  border: 1px solid var(--pilbe-border-default);
  border-radius: var(--pilbe-radius-md);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  line-height: var(--pilbe-lh-sm);
  color: var(--pilbe-text-primary);
  min-width: 220px;
  transition: border-color var(--pilbe-duration-base) var(--pilbe-ease-standard),
              box-shadow var(--pilbe-duration-base) var(--pilbe-ease-standard);
}

.pilbe-agents-hero__namesearch input[type="search"]:focus {
  outline: none;
  border-color: var(--pilbe-border-focus);
  box-shadow: var(--pilbe-shadow-focus);
}

.pilbe-agents-hero__submit {
  padding: var(--pilbe-space-2) var(--pilbe-space-4);
  background: var(--pilbe-bg-surface);
  border: 1px solid var(--pilbe-border-default);
  border-radius: var(--pilbe-radius-md);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  cursor: pointer;
  transition: background var(--pilbe-duration-base) var(--pilbe-ease-standard);
}

.pilbe-agents-hero__submit:hover,
.pilbe-agents-hero__submit:focus {
  background: var(--pilbe-bg-surface-hover);
}

.pilbe-agents-hero__count {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  color: var(--pilbe-text-secondary);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* ──────────────────────────────────────────────────────────────────
   Quick pills row (above the layout grid)
   ────────────────────────────────────────────────────────────────── */

.pilbe-agents-quickpills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pilbe-space-2);
  margin-bottom: var(--pilbe-space-5);
}

.pilbe-pill--toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--pilbe-space-1);
  padding: var(--pilbe-space-2) var(--pilbe-space-3);
  background: var(--pilbe-bg-surface);
  border: 1px solid var(--pilbe-border-default);
  border-radius: var(--pilbe-radius-pill);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  text-decoration: none;
  transition: background var(--pilbe-duration-base) var(--pilbe-ease-standard),
              border-color var(--pilbe-duration-base) var(--pilbe-ease-standard);
}

.pilbe-pill--toggle:hover,
.pilbe-pill--toggle:focus {
  background: var(--pilbe-bg-surface-hover);
  border-color: var(--pilbe-border-strong);
}

.pilbe-pill--toggle-active {
  background: var(--pilbe-brand-50);
  border-color: var(--pilbe-brand-500);
  color: var(--pilbe-brand-700);
}

.pilbe-pill--location .pilbe-pill__pin,
.pilbe-pill--location .pilbe-pill__close {
  font-size: var(--pilbe-text-xs);
  color: var(--pilbe-text-secondary);
}

/* ──────────────────────────────────────────────────────────────────
   Layout grid — Phase 9c-3 Q1 sign-off: 2-column 55/45 cards/map.
   Filterbar migrates inside the cards column as a <details> accordion;
   the layout itself drops the historical 240px filter sidebar.
   ────────────────────────────────────────────────────────────────── */

.pilbe-agents-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pilbe-space-6);
  align-items: start;
}

.pilbe-agents-layout--withmap {
  grid-template-columns: 55fr 45fr;
}

/* Map-failure recovery: JS adds --map-hidden on F1/F3/F5/etc, restoring
   the cards-only single-column shape so failure modes degrade gracefully
   (per Phase 9c-3 audit §0.7.C). */
.pilbe-agents-layout--map-hidden {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .pilbe-agents-layout,
  .pilbe-agents-layout--withmap {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────
   Filter bar — accordion at top of cards column (Phase 9c-3 Q1).
   Default open >900px; default closed ≤767px via inline JS in the
   directory template (matches polish-todo §35 fix sketch but lands
   in 9c-3 since the layout reshape is the trigger).
   ────────────────────────────────────────────────────────────────── */

.pilbe-agents-filterbar {
  background: var(--pilbe-bg-surface);
  border: 1px solid var(--pilbe-border-default);
  border-radius: var(--pilbe-radius-lg);
  padding: var(--pilbe-space-4);
  margin-bottom: var(--pilbe-space-4);
}

.pilbe-agents-filterbar__details > summary {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-base);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pilbe-agents-filterbar__details > summary::-webkit-details-marker {
  display: none;
}

.pilbe-agents-filterbar__details > summary::after {
  content: '▾';
  color: var(--pilbe-text-muted);
  font-size: var(--pilbe-text-sm);
}

.pilbe-agents-filterbar__details[open] > summary::after {
  content: '▴';
}

.pilbe-agents-filterbar__form {
  display: flex;
  flex-direction: column;
  gap: var(--pilbe-space-4);
  margin-top: var(--pilbe-space-4);
}

.pilbe-agents-filterbar__group {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pilbe-space-2);
}

.pilbe-agents-filterbar__group > legend {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pilbe-text-muted);
  margin-bottom: var(--pilbe-space-1);
  padding: 0;
}

.pilbe-agents-filterbar__group label {
  display: inline-flex;
  align-items: center;
  gap: var(--pilbe-space-2);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  color: var(--pilbe-text-primary);
  cursor: pointer;
}

.pilbe-agents-filterbar__group input[type="number"] {
  padding: var(--pilbe-space-2) var(--pilbe-space-3);
  background: var(--pilbe-bg-surface);
  border: 1px solid var(--pilbe-border-default);
  border-radius: var(--pilbe-radius-md);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  color: var(--pilbe-text-primary);
  width: 100%;
}

.pilbe-agents-filterbar__actions {
  display: flex;
  align-items: center;
  gap: var(--pilbe-space-3);
}

.pilbe-agents-filterbar__reset {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  color: var(--pilbe-text-secondary);
  text-decoration: none;
}

.pilbe-agents-filterbar__reset:hover,
.pilbe-agents-filterbar__reset:focus {
  color: var(--pilbe-text-link);
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────────────
   Sort bar
   ────────────────────────────────────────────────────────────────── */

.pilbe-agents-sortbar {
  display: flex;
  align-items: center;
  gap: var(--pilbe-space-2);
  margin-bottom: var(--pilbe-space-4);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  color: var(--pilbe-text-secondary);
}

.pilbe-agents-sortbar__select {
  padding: var(--pilbe-space-2) var(--pilbe-space-3);
  background: var(--pilbe-bg-surface);
  border: 1px solid var(--pilbe-border-default);
  border-radius: var(--pilbe-radius-md);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  cursor: pointer;
}

/* ──────────────────────────────────────────────────────────────────
   Cards grid + standard agent card variant (40px accent)
   ────────────────────────────────────────────────────────────────── */

.pilbe-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--pilbe-space-4);
}

/* SKILL §4.4 standard card — 40px accent strip (vs the 88px default).
 * The narrow 40px strip is sized for the rotated agency-name fallback
 * (writing-mode: vertical-rl, 14px font). When the card actually has
 * a logo image (set as the agency's featured image by the seeder), the
 * 40px column squashes the logo to ~40×20 px — visually invisible. The
 * :has() rule below detects that case and widens the column to 96 px
 * so the logo gets meaningful space without changing the layout for
 * agencies that still rely on the rotated-text fallback.
 *
 * :has() is supported in all evergreen browsers (Chrome 105+,
 * Safari 15.4+, Firefox 121+). For older browsers the card degrades
 * to the original 40px strip — still functional, just smaller logos.
 */
.pilbe-card-branded--compact {
  grid-template-columns: 40px 1fr;
}

.pilbe-card-branded--compact:has(.pilbe-card-branded__accent img) {
  grid-template-columns: 96px 1fr;
}

.pilbe-card-agent {
  text-decoration: none;
  color: inherit;
  display: grid;
  min-height: 200px;
}

/* Drop the desktop min-height on mobile — cards stack vertically and a
   uniform 200px floor leaves cards without a locality (e.g. agencies
   with no fave_agency_address) looking visibly empty (Phase 9c-2 sitting
   2 finding S2-A). Stacked cards collapse to content height instead. */
@media (max-width: 767px) {
  .pilbe-card-agent {
    min-height: 0;
  }
}

.pilbe-card-agent .pilbe-card-branded__accent {
  padding: var(--pilbe-space-3);
}

.pilbe-card-agent__body {
  display: flex;
  flex-direction: column;
  gap: var(--pilbe-space-2);
  padding: var(--pilbe-space-4);
  flex: 1;
  min-width: 0;
}

.pilbe-card-agent__name {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-h4);
  line-height: var(--pilbe-lh-h4);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pilbe-card-agent__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pilbe-space-1);
}

.pilbe-card-agent__locality {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  line-height: var(--pilbe-lh-sm);
  color: var(--pilbe-text-secondary);
  margin: 0;
}

.pilbe-card-agent__count {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  margin: 0;
  margin-top: auto;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* ──────────────────────────────────────────────────────────────────
   Pagination
   ────────────────────────────────────────────────────────────────── */

.pilbe-agents-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pilbe-space-1);
  justify-content: center;
  margin-top: var(--pilbe-space-8);
}

.pilbe-agents-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: var(--pilbe-space-2) var(--pilbe-space-3);
  background: var(--pilbe-bg-surface);
  border: 1px solid var(--pilbe-border-default);
  border-radius: var(--pilbe-radius-md);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  text-decoration: none;
  transition: background var(--pilbe-duration-base) var(--pilbe-ease-standard);
}

.pilbe-agents-pagination .page-numbers:hover,
.pilbe-agents-pagination .page-numbers:focus {
  background: var(--pilbe-bg-surface-hover);
}

.pilbe-agents-pagination .page-numbers.current {
  background: var(--pilbe-brand-500);
  border-color: var(--pilbe-brand-500);
  color: var(--pilbe-text-inverse);
}

.pilbe-agents-pagination .page-numbers.dots {
  background: transparent;
  border: 0;
  color: var(--pilbe-text-muted);
}

/* ──────────────────────────────────────────────────────────────────
   Empty state (regional with no matches)
   ────────────────────────────────────────────────────────────────── */

.pilbe-agents-empty {
  background: var(--pilbe-bg-surface);
  border: 1px solid var(--pilbe-border-default);
  border-radius: var(--pilbe-radius-lg);
  padding: var(--pilbe-space-8);
  text-align: center;
}

.pilbe-agents-empty p {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-base);
  line-height: var(--pilbe-lh-base);
  color: var(--pilbe-text-secondary);
  margin: 0 0 var(--pilbe-space-4);
}

.pilbe-agents-empty__heading {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-h4);
  line-height: var(--pilbe-lh-h4);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  margin: var(--pilbe-space-6) 0 var(--pilbe-space-3);
}

.pilbe-agents-empty__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pilbe-space-2);
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}

.pilbe-agents-empty__list a {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  color: var(--pilbe-text-link);
  text-decoration: none;
}

.pilbe-agents-empty__list a:hover,
.pilbe-agents-empty__list a:focus {
  text-decoration: underline;
}

.pilbe-agents-empty__browseall {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  font-weight: 700;
  color: var(--pilbe-text-link);
  text-decoration: none;
}

/* Screen-reader-only utility (labels for inputs) */
.pilbe-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ──────────────────────────────────────────────────────────────────
   Phase 9c-4 — Featured Partner card
   Hero variant (280px branded accent) rendered above .pilbe-agents-grid
   on page 1 when pilbe_find_featured_agency() returns an eligible ID
   that's also a member of the active filtered query. Reuses .pilbe-card,
   .pilbe-card-branded, --hero modifier, .pilbe-btn--gradient/--ghost.
   ────────────────────────────────────────────────────────────────── */

.pilbe-card-agent-featured {
  margin-bottom: var(--pilbe-space-6);
  min-height: 280px;
}

.pilbe-card-agent-featured__body {
  display: flex;
  flex-direction: column;
  gap: var(--pilbe-space-3);
  padding: var(--pilbe-space-5) var(--pilbe-space-6);
  min-width: 0;
}

/* Featured pill + count row */
.pilbe-card-agent-featured__featured-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pilbe-space-3);
  flex-wrap: wrap;
}

.pilbe-pill--featured-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--pilbe-space-1);
  padding: var(--pilbe-space-1) var(--pilbe-space-3);
  background: var(--pilbe-gradient);
  border-radius: var(--pilbe-radius-pill);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pilbe-text-inverse);
}

.pilbe-card-agent-featured__count {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  font-weight: 700;
  color: var(--pilbe-text-secondary);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* Title */
.pilbe-card-agent-featured__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--pilbe-space-2);
  margin: 0;
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-h3);
  line-height: var(--pilbe-lh-h3);
  font-weight: 700;
  color: var(--pilbe-text-primary);
}

.pilbe-card-agent-featured__name a {
  color: inherit;
  text-decoration: none;
}

.pilbe-card-agent-featured__name a:hover,
.pilbe-card-agent-featured__name a:focus {
  color: var(--pilbe-text-link);
}

/* Pills (location + kind) */
.pilbe-card-agent-featured__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pilbe-space-1);
}

/* Address */
.pilbe-card-agent-featured__address {
  display: flex;
  align-items: flex-start;
  gap: var(--pilbe-space-2);
  margin: 0;
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  line-height: var(--pilbe-lh-sm);
  color: var(--pilbe-text-secondary);
}

.pilbe-card-agent-featured__address-pin {
  flex: 0 0 auto;
}

/* CTA row */
.pilbe-card-agent-featured__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pilbe-space-3);
  margin-top: var(--pilbe-space-1);
}

.pilbe-card-agent-featured__cta {
  margin-left: auto;
}

/* Stats row — 3 columns */
.pilbe-card-agent-featured__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pilbe-space-3);
  margin-top: var(--pilbe-space-3);
  padding-top: var(--pilbe-space-4);
  border-top: 1px solid var(--pilbe-border-default);
}

.pilbe-card-agent-featured__stat {
  display: flex;
  flex-direction: column;
  gap: var(--pilbe-space-1);
  cursor: help;
}

.pilbe-card-agent-featured__stat-label {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pilbe-text-muted);
}

.pilbe-card-agent-featured__stat-value {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-h4);
  line-height: var(--pilbe-lh-h4);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* Thumbnail strip */
.pilbe-card-agent-featured__thumbs {
  list-style: none;
  margin: var(--pilbe-space-2) 0 0;
  padding: 0;
  display: flex;
  gap: var(--pilbe-space-2);
  overflow-x: auto;
  scrollbar-width: thin;
}

.pilbe-card-agent-featured__thumbs > li {
  flex: 0 0 auto;
}

.pilbe-card-agent-featured__thumb,
.pilbe-card-agent-featured__thumbs-more > a {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 96px;
  height: 96px;
  border-radius: var(--pilbe-radius-md);
  background: var(--pilbe-bg-subtle);
  overflow: hidden;
  text-decoration: none;
  color: var(--pilbe-text-primary);
}

.pilbe-card-agent-featured__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pilbe-card-agent-featured__thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: var(--pilbe-icon-xl);
  color: var(--pilbe-text-muted);
}

.pilbe-card-agent-featured__thumb-price {
  position: relative;
  z-index: 1;
  margin: var(--pilbe-space-2);
  padding: 2px var(--pilbe-space-2);
  background: var(--pilbe-bg-surface);
  border-radius: var(--pilbe-radius-sm);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-xs);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  box-shadow: var(--pilbe-shadow-xs);
}

.pilbe-card-agent-featured__thumbs-more > a {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--pilbe-space-1);
  background: var(--pilbe-bg-sidebar);
  color: var(--pilbe-text-inverse);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-h4);
  font-weight: 900;
}

.pilbe-card-agent-featured__thumbs-more > a:hover,
.pilbe-card-agent-featured__thumbs-more > a:focus {
  background: var(--pilbe-text-primary);
}

.pilbe-card-agent-featured__thumbs-more-label {
  font-size: var(--pilbe-text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pilbe-text-inverse);
}

/* Mobile collapse — accent strip already collapses to a top row via
   pilbe-cards.css:103-113. Tighten body padding, allow CTAs to stack
   when they wrap, and let the stats row keep 3 inline columns at
   smaller scales (labels shrink, values stay readable). */
@media (max-width: 767px) {
  .pilbe-card-agent-featured {
    min-height: 0;
  }
  .pilbe-card-agent-featured__body {
    padding: var(--pilbe-space-4);
    gap: var(--pilbe-space-3);
  }
  .pilbe-card-agent-featured__name {
    font-size: var(--pilbe-text-h4);
    line-height: var(--pilbe-lh-h4);
  }
  .pilbe-card-agent-featured__cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .pilbe-card-agent-featured__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .pilbe-card-agent-featured__ctas > .pilbe-btn--ghost {
    width: 100%;
    justify-content: center;
  }
  .pilbe-card-agent-featured__stat-value {
    font-size: var(--pilbe-text-lg);
    line-height: var(--pilbe-lh-lg);
  }
  .pilbe-card-agent-featured__thumb,
  .pilbe-card-agent-featured__thumbs-more > a {
    width: 80px;
    height: 80px;
  }
}
