/* ============================================================
   Container — shared responsive layout constraint
   Provides 1024px max content width with responsive side padding.
   Import this in any component that uses the .container class.
   ============================================================ */

.container {
  position:   relative;
  width:      100%;
  max-width:  calc(1024px + 160px); /* 1024px content + 80px × 2 */
  padding:    0 80px;
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet (≤991px): 60px sides */
@media (max-width: 991px) {
  .container {
    padding: 0 60px;
  }
}

/* Landscape mobile (≤767px): 2rem sides */
@media (max-width: 767px) {
  .container {
    padding: 0 2rem;
  }
}



/* ============================================================
   Wide container — 1360px content + 48px side padding
   Used for full-bleed section content blocks (slider, big cards)
   that need to be wider than the standard 1024px text container.
   ============================================================ */

.container-wide {
  width:      100%;
  max-width:  calc(1384px + 96px);   /* 1384px content + 48px × 2 */
  padding:    0 3rem;                /* 48px sides */
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet (≤991px): 16px less than .container (60px → 44px) */
@media (max-width: 991px) {
  .container-wide {
    padding: 0 44px;
  }
}

/* Landscape mobile (≤767px): 16px less than .container (2rem → 1rem) */
@media (max-width: 767px) {
  .container-wide {
    padding: 0 1rem;
  }
}


/* ============================================================
   Tabs — Segmented pill tab bar
   Design tokens from src/styles/tokens.css.
   ============================================================ */

.seg-tabs {
  display:       inline-flex;
  align-items:   center;
  flex-shrink:   0;
  height:        40px;
  background:    var(--muted);
  border-radius: var(--radius-full);
  column-gap:    1px;
}

/* Individual tab — button or anchor */
.seg-tabs__tab {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--spacing-1-5);
  height:          100%;
  padding:         var(--spacing-2) var(--spacing-4); /* 8px 16px */
  border:          1px solid transparent; /* size-stable when active border appears */
  border-radius:   var(--radius-full);
  background:      transparent;
  color:           var(--foreground);
  font-family:     var(--font-family-default);
  font-size:       var(--font-size-sm);   /* 14px */
  font-weight:     var(--font-weight-medium);
  line-height:     var(--line-height-sm);
  cursor:          pointer;
  text-decoration: none;  /* reset <a> default */
  white-space:     nowrap;
  transition:      background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.seg-tabs__tab:hover {
  background: var(--opacity-background-50);
}

.seg-tabs__tab:focus-visible {
  outline:        2px solid var(--ring);
  outline-offset: 2px;
}

/* Active tab — only visible in playing state (.seg-tabs--active) */
.seg-tabs--active .seg-tabs__tab.is-active {
  background: var(--background);
  border:     1px solid var(--border);
}

.seg-tabs--active .seg-tabs__tab.is-active:hover {
  background: var(--background);
}

/* Icon slot */
.seg-tabs__tab-icon {
  display:     flex;
  align-items: center;
  flex-shrink: 0;
}

.seg-tabs__tab-icon svg {
  display: block;
  width:   1rem;
  height:  1rem;
}

/* Trailing badge slot — e.g. a small discount pill after the label.
   Color/background is supplied by the consumer; this only handles layout. */
.seg-tabs__tab-badge {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}


/* ============================================================
   Compact size — content-sized segmented control
   ============================================================ */

.seg-tabs--compact {
  height:  auto;
  padding: var(--spacing-px);
}

.seg-tabs--compact .seg-tabs__tab {
  height:  auto;
  padding: var(--spacing-1-5) var(--spacing-5);
}


/* ============================================================
   Light scheme — warm secondary track, card active pill
   Matches the light DemoPlayer variant.
   ============================================================ */

.seg-tabs--light {
  background: var(--secondary);
}

.seg-tabs--light .seg-tabs__tab:hover {
  background: var(--popover);
}

.seg-tabs--light.seg-tabs--active .seg-tabs__tab.is-active,
.seg-tabs--light.seg-tabs--active .seg-tabs__tab.is-active:hover {
  background: var(--card);
}


/* ============================================================
   Light-alt scheme — muted track, background active pill + shadow
   Used in the Demo section on the accent background.
   ============================================================ */

.seg-tabs--light-alt {
  background: var(--muted);
}

.seg-tabs--light-alt .seg-tabs__tab {
  font-weight: var(--font-weight-medium);
}

.seg-tabs--light-alt .seg-tabs__tab:hover {
  background: var(--opacity-background-50);
}


/* ============================================================
   Card scheme — muted track, card active pill
   Matches Figma "Advance Tabs" (node 4374:9779) — e.g. the AIR
   pricing-page switch (AI-first / Human-first).
   ============================================================ */

.seg-tabs--card {
  background: var(--muted);
}

.seg-tabs--card .seg-tabs__tab:hover {
  background: var(--accent);
}

.seg-tabs--card.seg-tabs--active .seg-tabs__tab.is-active {
  background: var(--card);
  border:     1px solid var(--input);
  box-shadow:
    0 1px 3px rgba(26, 26, 24, 0.05),
    0 1px 2px -1px rgba(26, 26, 24, 0.05);
  font-weight: var(--font-weight-regular);
}

.seg-tabs--card.seg-tabs--active .seg-tabs__tab.is-active:hover {
  background: var(--card);
  box-shadow:
    0 2px 6px rgba(26, 26, 24, 0.08),
    0 1px 2px -1px rgba(26, 26, 24, 0.08);
}


/* ============================================================
   Card-alt scheme — same card active-pill treatment as "card",
   but on a `--background` track instead of `--muted`. Used for
   controls that sit on a white/near-white card (e.g. the plan
   card's call-volume selector) where the muted track would read
   too dark against the surrounding chrome.
   ============================================================ */

.seg-tabs--card-alt {
  background: var(--background);
}

.seg-tabs--card-alt .seg-tabs__tab:hover {
  background: var(--muted);
}

.seg-tabs--card-alt.seg-tabs--active .seg-tabs__tab.is-active {
  background: var(--card);
  border:     1px solid var(--input);
  box-shadow:
    0 1px 3px rgba(26, 26, 24, 0.05),
    0 1px 2px -1px rgba(26, 26, 24, 0.05);
  font-weight: var(--font-weight-regular);
}

.seg-tabs--card-alt.seg-tabs--active .seg-tabs__tab.is-active:hover {
  background: var(--card);
  box-shadow:
    0 2px 6px rgba(26, 26, 24, 0.08),
    0 1px 2px -1px rgba(26, 26, 24, 0.08);
}

/* ============================================================
   Button — Component Styles
   Scheme-aware: inherits data-scheme from a parent element.
   All color tokens flip automatically in dark context.
   ============================================================ */

.btn {
  /* Layout */
  align-items:      center;
  border:           1px solid transparent;
  box-sizing:       border-box;
  cursor:           pointer;
  display:          inline-flex;
  flex-shrink:      0;
  justify-content:  center;
  overflow:         hidden;
  text-decoration:  none;
  user-select:      none;
  white-space:      nowrap;
  background-clip:  padding-box;

  /* Typography */
  font-family: var(--font-family-default);
  font-weight: var(--font-weight-medium);

  /* Transition */
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease;
}


/* ============================================================
   Sizes
   Heights: xs=26px  sm=32px  md=36px  lg=40px
   All use font-size-sm (14px) except xs which uses font-size-xs (12px).
   ============================================================ */

.btn[data-size="xs"] {
  font-size:   var(--font-size-xs);      /* 12px */
  line-height: var(--line-height-xs);    /* 16px */
  gap:         0.25rem;                  /* 4px  */
  padding:     0.3125rem 0.75rem;        /* 5px 12px → height 26px */
  --btn-gap:   0.25rem;
}

.btn[data-size="sm"] {
  font-size:   var(--font-size-sm);      /* 14px */
  line-height: var(--line-height-sm);    /* 20px */
  gap:         0.375rem;                 /* 6px  */
  padding:     0.375rem 1rem;            /* 6px 16px → height 32px */
  --btn-gap:   0.375rem;
}

.btn[data-size="md"] {
  font-size:   var(--font-size-sm);      /* 14px */
  line-height: var(--line-height-sm);    /* 20px */
  gap:         0.375rem;                 /* 6px  */
  padding:     0.5rem 1rem;              /* 8px 16px → height 36px */
  --btn-gap:   0.375rem;
}

.btn[data-size="lg"] {
  font-size:   var(--font-size-sm);      /* 14px */
  line-height: var(--line-height-sm);    /* 20px */
  gap:         0.5rem;                   /* 8px  */
  padding:     0.625rem 1.5rem;          /* 10px 24px → height 40px */
  --btn-gap:   0.5rem;
}

.btn[data-icon-only="true"] {
  padding: 0;
}

.btn[data-size="xs"][data-icon-only="true"] {
  width:  1.625rem; /* 26px */
  height: 1.625rem;
}

.btn[data-size="sm"][data-icon-only="true"] {
  width:  2rem; /* 32px */
  height: 2rem;
}

.btn[data-size="md"][data-icon-only="true"] {
  width:  2.25rem; /* 36px */
  height: 2.25rem;
}

.btn[data-size="lg"][data-icon-only="true"] {
  width:  2.5rem; /* 40px */
  height: 2.5rem;
}


/* ============================================================
   Shapes
   ============================================================ */

.btn[data-shape="rounded"] { border-radius: var(--radius-sm);   } /* 8px  */
.btn[data-shape="round"]   { border-radius: var(--radius-full); } /* pill */


/* ============================================================
   Variants
   ============================================================ */

.btn[data-variant="primary"][data-tone="default"] {
  background-color: var(--primary);
  border-color:     var(--primary);
  color:            var(--primary-foreground);
}

.btn[data-variant="secondary"][data-tone="default"] {
  background-color: transparent;
  border-color:     var(--primary);
  color:            var(--primary);
}

.btn[data-variant="primary"][data-tone="accent"] {
  background-color: var(--accent);
  border-color:     var(--accent);
  color:            var(--foreground);
}

.btn[data-variant="secondary"][data-tone="accent"] {
  background-color: transparent;
  border-color:     var(--accent);
  color:            var(--accent);
}


.btn[data-variant="info"] {
  background-color: var(--info);
  border-color:     var(--info);
  color:            var(--info-foreground);
}

.btn[data-variant="success"] {
  background-color: var(--success);
  border-color:     var(--success);
  color:            var(--success-foreground);
}

.btn[data-variant="warning"] {
  background-color: var(--warning);
  border-color:     var(--warning);
  color:            var(--warning-foreground);
}

.btn[data-variant="destructive"] {
  background-color: var(--destructive);
  border-color:     var(--destructive);
  color:            var(--destructive-foreground);
}


/* ============================================================
   States
   ============================================================ */

/* Primary hover — 20% dark overlay on background, full opacity */
.btn[data-variant="primary"][data-tone="default"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--primary) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--primary) 80%, #282825 20%);
  opacity:          1;
}

.btn[data-variant="primary"][data-tone="accent"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--accent) 80%, transparent);
  border-color:     color-mix(in srgb, var(--accent) 80%, transparent);
  opacity:          1;
}

/* Secondary hover — darker primary border + text, no fill */
.btn[data-variant="secondary"][data-tone="default"]:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: color-mix(in srgb, var(--primary) 80%, #282825 20%);
  color:        color-mix(in srgb, var(--primary) 80%, #282825 20%);
  opacity:      1;
}

.btn[data-variant="secondary"][data-tone="accent"]:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: color-mix(in srgb, var(--accent) 80%, transparent);
  color:        color-mix(in srgb, var(--accent) 80%, transparent);
  opacity:      1;
}

.btn[data-variant="info"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--info) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--info) 80%, #282825 20%);
  color:            var(--info-foreground);
  opacity:          1;
}

.btn[data-variant="success"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--success) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--success) 80%, #282825 20%);
  color:            var(--success-foreground);
  opacity:          1;
}

.btn[data-variant="warning"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--warning) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--warning) 80%, #282825 20%);
  color:            var(--warning-foreground);
  opacity:          1;
}

.btn[data-variant="destructive"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background-color: color-mix(in srgb, var(--destructive) 80%, #282825 20%);
  border-color:     color-mix(in srgb, var(--destructive) 80%, #282825 20%);
  color:            var(--destructive-foreground);
  opacity:          1;
}

/* Active / pressed */
.btn:active:not(:disabled):not([aria-disabled="true"]) {
  opacity: 0.76;
}

/* Focus */
.btn:focus-visible {
  outline:        2px solid var(--ring);
  outline-offset: 2px;
}

/* Disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor:         not-allowed;
  opacity:        0.4;
  pointer-events: none;
}


/* ============================================================
   Icon slot
   ============================================================ */

.btn__icon {
  align-items:     center;
  display:         inline-flex;
  flex-shrink:     0;
  justify-content: center;
}

.btn[data-size="xs"] .btn__icon:not(.btn__icon--hover-only) { height: 0.75rem; width: 0.75rem; } /* 12px */
.btn[data-size="sm"] .btn__icon:not(.btn__icon--hover-only),
.btn[data-size="md"] .btn__icon:not(.btn__icon--hover-only),
.btn[data-size="lg"] .btn__icon:not(.btn__icon--hover-only) { height: 1rem;    width: 1rem;    } /* 16px */

.btn__icon svg {
  display: block;
  height:  100%;
  width:   100%;
}


/* ============================================================
   Hover-only icon — hidden by default, slides/fades in on :hover.
   Negative margin-right cancels the flex gap when collapsed so
   the label stays flush with the padding edge.
   ============================================================ */

/* Must come after the .btn[data-size] .btn__icon rules to win specificity tie */
.btn .btn__icon--hover-only {
  min-width:    0;        /* override flex min-width: auto so item can truly collapse */
  width:        0;
  overflow:     hidden;
  opacity:      0;
  margin-right: calc(-1 * var(--btn-gap, 0.5rem));
  transition:   width 0.2s ease, opacity 0.15s ease, margin-right 0.2s ease;
}

.btn:hover:not(:disabled):not([aria-disabled="true"]) .btn__icon--hover-only {
  width:        1rem; /* sm / md / lg */
  height:       1rem;
  opacity:      1;
  margin-right: 0;
}

.btn[data-size="xs"]:hover:not(:disabled):not([aria-disabled="true"]) .btn__icon--hover-only {
  width:  0.75rem;
  height: 0.75rem;
}


/* ============================================================
   Badge slot — optional count pill inside the button
   ============================================================ */

.btn__badge {
  align-items:      center;
  background-color: var(--primary);
  border-radius:    var(--radius-full);
  color:            var(--primary-foreground);
  display:          inline-flex;
  font-size:        var(--font-size-xs);   /* 12px */
  font-weight:      var(--font-weight-medium);
  justify-content:  center;
  line-height:      var(--line-height-xs); /* 16px */
  min-width:        1.25rem;               /* 20px */
  padding:          0.125rem 0.375rem;     /* 2px 6px */
}

/* ============================================================
   ArrowLink — see ArrowLink.tsx. Colour, hover and focus come from
   the shared `.text-link` (section.css); type size from the consumer.
   ============================================================ */

/* Plain inline text, so a long label wraps like any sentence. */
.arrow-link {
  display: inline;
}

/* The last word + the arrow never break apart. */
.arrow-link__tail {
  white-space: nowrap;
}

.arrow-link__icon {
  display:        inline-block;
  margin-left:    var(--spacing-2);             /* 8px, the shared arrow gap */
  vertical-align: -0.125em;
}

.arrow-link__sr-only {
  position:    absolute;
  width:       1px;
  height:      1px;
  margin:      -1px;
  padding:     0;
  overflow:    hidden;
  clip:        rect(0 0 0 0);
  white-space: nowrap;
  border:      0;
}

/* ============================================================
   PartnerDirectoryListSection — Figma CshEzqh2PKzuy4aCQCX7iu, node 129:8157.
   Spec: PartnerDirectoryListSection.figma.md.

   A redesign inset panel (16px white border, 48px radius — the
   HomeDemoSection / AboutTimelineSection recipe) holding the standard
   header convention on one `.container`, then the filter and the tiers.
   ============================================================ */


/* ---- Panel ------------------------------------------------ */

/* Figma measures from the frame edge, border included: the heading sits
   64 below it (16 border + 48) and the last card ends 128 above it
   (16 + 112). */
.pd-list {
  background:    var(--panel-cream);            /* #FAF6F0 */
  border:        16px solid var(--background-white);
  border-radius: 48px;                          /* no 48px radius token */
  padding:       3rem 0 7rem;                   /* 48px / 112px */
  box-sizing:    border-box;
  font-family:   var(--font-family-default);
  color:         var(--foreground);
}

/* Below 1480 the border would push the content 16px further in than the
   white sections around it, so the container gives it back (80 → 64). At
   1480+ the stock container stays: the sticky rail badge is positioned off
   its 80px padding. (HomeDemoSection's recipe.) */
@media (max-width: 1479px) {
  .pd-list__inner.container {
    max-width:      calc(1024px + 128px);
    padding-inline: 64px;
  }
}

/* header → filter, 64px (the convention's `__content` stack). */
.pd-list__content {
  display:        flex;
  flex-direction: column;
  gap:            4rem;                         /* 64px */
}

/* Two body paragraphs, a blank 28px line between (`.section-header__text`
   keeps its 36 heading → body gap; the 800px body cap still applies). */
.pd-list__intro {
  display:        flex;
  flex-direction: column;
  gap:            1.75rem;                      /* 28px */
}

/* The Integrations and "Visit …" links are the shared `.text-link`
   (section.css): orange, never underlined, colour shift on hover. */

.pd-list__logo-link:focus-visible {
  outline:        2px solid var(--ring);
  outline-offset: 2px;
  border-radius:  2px;
}

.pd-list__sr-only {
  position:    absolute;
  width:       1px;
  height:      1px;
  margin:      -1px;
  padding:     0;
  overflow:    hidden;
  clip:        rect(0 0 0 0);
  white-space: nowrap;
  border:      0;
}


/* ---- Directory: filter → tier → tier, 48px ------------------ */

.pd-list__directory {
  display:        flex;
  flex-direction: column;
  gap:            3rem;                         /* 48px */
}

/* The tiers. Same gap as the directory (48, 40 on phones). A filter change
   animates in the .tsx (filterWithFlip). */
.pd-list__results {
  display:        flex;
  flex-direction: column;
  gap:            inherit;
}


/* ---- Filter (129:8168) -------------------------------------
   The shared Tabs (`card-alt` + `compact`: cream track, white selected pill
   with the `--input` border and shadow-sm) in a white tray. On a narrow
   screen the bar scrolls sideways inside its tray. */
.pd-list__filter {
  display:          flex;
  align-self:       flex-start;
  max-width:        100%;
  padding:          6px;
  background:       var(--card);
  border-radius:    2rem;                       /* 32px */
  overflow-x:       auto;
  scrollbar-width:  none;
  box-sizing:       border-box;
}

.pd-list__filter::-webkit-scrollbar {
  display: none;
}

/* Figma's track is 38 tall (1px padding + 36px items). `compact` gives
   6px + 1px border = 34px; one more pixel each side matches. Figma's
   unselected tabs have 20px sides and no border, back to back; ours keep
   Tabs' size-stable 1px transparent border, so 19px padding + the border
   is Figma's 20, and the track's 1px column gap goes. Every tab keeps those
   sides (Figma's selected "All" draws 12px sides with a 56px minimum — the
   same width), so the bar never shifts on a click. */
.pd-list__filter .seg-tabs.seg-tabs--compact {
  column-gap: 0;
}

.pd-list__filter .seg-tabs.seg-tabs--compact .seg-tabs__tab {
  padding:   7px 19px;
  min-width: 3.5rem;                            /* 56px */
}

/* card-alt sets the selected label Regular (Figma's selected "All"); the
   others are Medium, so each label narrowed when picked and every tab after
   it moved ~2px. One weight for all keeps the bar still (owner, 2026-11-17). */
.pd-list__filter .seg-tabs--card-alt.seg-tabs--active .seg-tabs__tab.is-active {
  font-weight: var(--font-weight-medium);
}


/* ---- Tier ------------------------------------------------- */

.pd-list__tier {
  display:        flex;
  flex-direction: column;
  gap:            2.25rem;                      /* 36px heading → cards */
}

/* Filtered-out cards and emptied tiers stay in the markup with `hidden`. */
.pd-list__tier[hidden],
.pd-list__item[hidden] {
  display: none;
}

/* Rowan Semibold 24/32 — no 600 token (as ClioconOfferCard). */
.pd-list__tier-heading {
  margin:      0;
  font-family: var(--font-family-serif);
  font-size:   var(--font-size-2xl);            /* 24px */
  line-height: var(--line-height-2xl);          /* 32px */
  font-weight: 600;
  color:       var(--foreground);
}

.pd-list__grid {
  display:    grid;
  gap:        0.75rem;                          /* 12px */
  margin:     0;
  padding:    0;
  list-style: none;
}

.pd-list__grid--gold {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-list__grid--silver,
.pd-list__grid--partner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards fill the row's height (Gold rows are equal height). */
.pd-list__item {
  display: flex;
}

/* min-width 0: a flex item's auto minimum is its widest logo + padding,
   which pushed cards out of narrow grid cells (and 7px past a 320 phone). */
.pd-list__item > * {
  flex:      1 1 auto;
  min-width: 0;
}


/* ---- Shared card parts ------------------------------------ */

.pd-list__card {
  display:        flex;
  flex-direction: column;
  padding:        1.75rem;                      /* 28px */
  background:     var(--card);
  border-radius:  var(--radius-md);             /* 16px */
  box-sizing:     border-box;
}

/* Logo slot: 40 tall (64 on Gold). Each logo is drawn at its Figma box
   (the img's width/height, from `logoSize`), centred vertically; a box
   taller than the slot overflows it evenly, as Figma places Great Legal
   Marketing, NLBM, Simple Smart Solo and Lawfecta. A logo wider than a
   narrow card scales down, left-aligned. */
.pd-list__logo {
  display:     flex;
  align-items: center;
  height:      2.5rem;                          /* 40px */
  min-width:   0;
  overflow:    visible;
}

.pd-list__logo--lg {
  height: 4rem;                                 /* 64px */
}

.pd-list__logo-link {
  display:     flex;
  align-items: center;
  height:      100%;
  max-width:   100%;
  min-width:   0;
  color:       inherit;
  text-decoration: none;
}

.pd-list__logo-img {
  display:         block;
  flex:            none;
  width:           var(--pd-logo-w);            /* Figma box, from `logoSize` */
  height:          var(--pd-logo-h);
  max-width:       100%;
  object-fit:      contain;
  object-position: left center;
  /* Figma shows every partner logo monochrome. The files keep the brands'
     own colours on transparency, so the grey is applied here, not baked
     in (docs/figma-asset-pipeline.md): dropping this line brings the
     colour back without re-exporting anything. */
  filter:          grayscale(1);
}

/* No logo: the name as a text wordmark — Figma's text-only card (draft
   129:8783), II Increments Sans Bold 18/28, centred in the slot like a
   logo. It wraps rather than overflow a narrow card; two lines (56) spill
   over the 40 slot evenly, as the taller logos do. */
.pd-list__wordmark {
  display:       block;
  flex:          0 1 auto;
  min-width:     0;
  max-width:     100%;
  font-size:     var(--font-size-lg);           /* 18px */
  line-height:   var(--line-height-lg);         /* 28px */
  font-weight:   var(--font-weight-bold);
  color:         var(--foreground);
  overflow-wrap: break-word;
}

/* Category chip — Figma amber-50 fill (= `--secondary`) and amber-500 text. */
.pd-list__chip {
  display:       inline-flex;
  align-items:   center;
  align-self:    flex-start;
  height:        1.625rem;                      /* 26px */
  padding:       0 0.75rem;                     /* 12px */
  border-radius: var(--radius-full);
  background:    var(--secondary);              /* #FAF6F0 */
  color:         #B2AB9A;                       /* Figma amber-500 — no token */
  font-size:     var(--font-size-xs);           /* 12px */
  line-height:   var(--line-height-xs);         /* 16px */
  font-weight:   var(--font-weight-medium);
  white-space:   nowrap;
}

.pd-list__chip--premium {
  background: var(--color-brand-blue-600);      /* #2684A6 */
  color:      var(--color-brand-blue-100);      /* #D1EFFA */
}


/* ---- Premium (129:8181) ------------------------------------ */

/* 374 | 562 on the 1024 column: 2fr / 3fr of the 936 left after the gap. */
.pd-list__premium {
  display:               grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap:                   1.5rem;                /* 24px */
  padding:               2rem;                  /* 32px */
  background:            var(--color-brand-blue-700);   /* #186581 */
  border-radius:         var(--radius-md);      /* 16px */
  color:                 var(--background-white);
}

/* Chip pinned top-left; the logo centred in the whole column. */
.pd-list__premium-brand {
  position:        relative;
  display:         flex;
  align-items:     center;
  justify-content: center;
  min-height:      6.25rem;                     /* 100px logo */
}

.pd-list__premium-brand > .pd-list__chip {
  position: absolute;
  top:      0;
  left:     0;
}

/* The logo is transparent (white mark only); the card's cyan-700 shows
   through, so a new card colour needs no re-export. */
.pd-list__premium-logo {
  display:         flex;
  justify-content: center;
  height:          6.25rem;                     /* 100px */
  max-width:       100%;
}

.pd-list__premium-logo .pd-list__logo-img {
  object-position: center;
}

.pd-list__premium-body {
  display:        flex;
  flex-direction: column;
  gap:            2rem;                         /* 32px */
}

.pd-list__premium-bio {
  margin:      0;
  font-size:   var(--font-size-lg);             /* 18px */
  line-height: var(--line-height-lg);           /* 28px */
}

.pd-list__premium-actions {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: space-between;
  align-items:     flex-end;
  gap:             0.75rem 1.5rem;              /* 12px rows */
}

.pd-list__person {
  display:     flex;
  align-items: center;
  gap:         0.75rem;                         /* 12px */
}

.pd-list__avatar {
  display:       block;
  flex-shrink:   0;
  width:         3rem;                          /* 48px */
  height:        3rem;
  border-radius: 50%;
  object-fit:    cover;
  background:    var(--color-brand-blue-50);
}

.pd-list__person-text {
  display:        flex;
  flex-direction: column;
  margin:         0;
  font-size:      var(--font-size-base);        /* 16px */
  line-height:    var(--line-height-base);      /* 24px */
}

.pd-list__person-role {
  color: var(--color-brand-blue-100);           /* #D1EFFA */
}

/* The white outline button — Button has no on-dark variant. HomeCtaBand's
   recipe: the variant's own selector, prefixed, so it outranks Button.css.
   Figma's button is 40 tall; `lg` is 40 + its 1px border top and bottom. */
.pd-list .pd-list__premium-btn.btn {
  height: 2.5rem;                               /* 40px */
}

.pd-list .pd-list__premium-btn.btn[data-variant="secondary"][data-tone="default"] {
  border-color: var(--background-white);
  color:        var(--background-white);
}

.pd-list .pd-list__premium-btn.btn[data-variant="secondary"][data-tone="default"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background:   color-mix(in srgb, var(--background-white) 10%, transparent);
  border-color: var(--background-white);
  color:        var(--background-white);
}

.pd-list .pd-list__premium-btn.btn:focus-visible {
  outline-color: var(--background-white);
}


/* ---- Gold (129:8229) --------------------------------------- */

.pd-list__card--gold {
  gap: 2rem;                                    /* 32px */
}

.pd-list__desc,
.pd-list__tagline {
  margin:      0;
  font-size:   var(--font-size-lg);             /* 18px */
  line-height: var(--line-height-lg);           /* 28px */
  color:       var(--foreground);
}

/* Chip + link, pinned to the bottom of an equal-height card. */
.pd-list__card-foot {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: space-between;
  align-items:     center;
  gap:             0.75rem;                     /* 12px */
  margin-top:      auto;
}

.pd-list__card-foot > .pd-list__chip {
  align-self: center;
}

/* When a Gold card is too narrow for chip + link on one row, every card
   stacks them, so row-mates don't wrap differently. 365 = the longest
   footer today (chip + "Visit Your Practice Mastered") — revisit if copy grows. */
.pd-list__card--gold {
  container-type: inline-size;
}

@container (max-width: 365px) {
  .pd-list__card-foot {
    flex-direction: column;
    align-items:    flex-start;
    gap:            1rem;                       /* 16px stacked; 12 side by side (owner, 2026-11-17) */
  }

  /* Stacked, `align-self: center` above would centre the chip across the
     card; it lines up with the link instead. */
  .pd-list__card-foot > .pd-list__chip {
    align-self: flex-start;
  }
}

/* The shared ArrowLink gives the colour, hover, arrow and how it wraps. */
.pd-list__visit {
  font-size:   var(--font-size-base);           /* 16px */
  line-height: var(--line-height-base);         /* 24px */
}



/* ---- Silver (129:8346) ------------------------------------- */

/* A 178px column: logo top, chip bottom, tagline between (or nothing
   between — a partner with no tagline keeps the same card). */
.pd-list__card--silver {
  justify-content: space-between;
  gap:             1rem;                        /* floor when a tagline runs long */
  min-height:      calc(178px + 3.5rem);        /* 178 + 2 × 28 padding */
}


/* ---- Partners (145:10739) ---------------------------------- */

.pd-list__card--partner {
  gap: 1.75rem;                                 /* 28px */
}


/* ---- Empty filter ------------------------------------------
   Not in Figma: a filter no partner carries would otherwise leave the
   panel blank under the bar. Every category has a partner today, so
   this only shows if data changes.
   One quiet line. */
.pd-list__empty {
  margin:      0;
  font-size:   var(--font-size-lg);             /* 18px */
  line-height: var(--line-height-lg);           /* 28px */
  color:       var(--muted-foreground);
}


/* ============================================================
   Responsive (no mobile frame)
   ============================================================ */

@media (max-width: 1199px) {
  .pd-list {
    padding-bottom: 6rem;                       /* 96px */
  }
}

/* ≤991: 4-col grids → 2; radius and container step like HomeDemoSection. */
@media (max-width: 991px) {
  .pd-list {
    border-radius: 32px;
    padding:       3rem 0 5rem;                 /* 48px / 80px */
  }

  /* `.container`'s 60 less the border's 16. */
  .pd-list__inner.container {
    padding-inline: 44px;
  }

  .pd-list__grid--silver,
  .pd-list__grid--partner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 992–1199: four Partner cards no longer fit their widest logo (191 + 2 ×
   28 padding = 247 a cell; 4 cells need a 1024 column, reached at ~1184),
   so each card's min-content pushed it into its neighbour. Three columns
   keep every logo at its Figma size. Silver's logos (≤139) still fit four. */
@media (min-width: 992px) and (max-width: 1199px) {
  .pd-list__grid--partner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 768–991: the bar (760 wide) outgrows the column below ~880, so it wraps
   instead of scrolling — the phone treatment below, so every category
   shows at once at every width. */
@media (min-width: 768px) and (max-width: 991px) {
  .pd-list__filter {
    overflow-x:    visible;
    border-radius: 1.5rem;                      /* 24px: the tray hugs 2 rows */
  }

  .pd-list__filter .seg-tabs.seg-tabs--compact {
    flex-wrap:     wrap;
    flex-shrink:   1;
    min-width:     0;
    row-gap:       2px;
    border-radius: 1.25rem;                     /* 20px: half a 38px row + its 1px pad */
  }
}

/* ≤767: Gold → 1 column; the premium card stacks (logo panel over copy). */
@media (max-width: 767px) {
  .pd-list {
    border-width:  12px;
    border-radius: 24px;
    padding:       3rem 0 4rem;                 /* 48px / 64px — HomeDemoSection's phone padding */
  }

  /* The page's 2rem mobile edge: 20 + the 12px border. */
  .pd-list__inner.container {
    padding-inline: 20px;
  }

  .pd-list__content {
    gap: 2.5rem;                                /* 40px — as HomeDemoSection on phones */
  }

  .pd-list__directory {
    gap: 2.5rem;                                /* 40px */
  }

  /* Phones: no sideways scroller (as ComparisonJumpNavSection) — the bar
     wraps so every category shows at once. Each tab keeps its own pill, so
     the rows read as one cream track with rounded row ends. */
  .pd-list__filter {
    overflow-x: visible;
    border-radius: 1.5rem;                      /* 24px: the tray hugs 2+ rows */
  }

  .pd-list__filter .seg-tabs.seg-tabs--compact {
    flex-wrap:     wrap;
    flex-shrink:   1;
    min-width:     0;
    row-gap:       2px;
    border-radius: 1.25rem;                     /* 20px: half a 38px row + its 1px pad */
  }

  .pd-list__tier {
    gap: 1.5rem;                                /* 24px */
  }

  .pd-list__grid--gold {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-list__premium {
    grid-template-columns: minmax(0, 1fr);
    gap:                   2rem;                /* 32px */
    padding:               1.5rem;              /* 24px */
  }

  /* Stacked, the chip takes its own row above the logo. */
  .pd-list__premium-brand {
    flex-direction: column;
    align-items:    flex-start;
    gap:            1.5rem;                     /* 24px */
  }

  .pd-list__premium-brand > .pd-list__chip {
    position: static;
  }

  /* Stacked, the logo sits left like every other card's (owner, 2026-11-17);
     desktop keeps Figma's centred logo column. */
  .pd-list__premium-logo {
    align-self:      flex-start;
    justify-content: flex-start;
    height:          5rem;                      /* 80px */
  }

  .pd-list__premium-logo .pd-list__logo-img {
    width:           auto;
    height:          100%;
    object-position: left center;
  }

  .pd-list__card {
    padding: 1.5rem;                            /* 24px */
  }

  .pd-list__card--silver {
    min-height: 0;
  }
}

/* ≤479 phones: Partners stay two-up (the owner's exploration, 2026-11-16 —
   no mobile frame). A cell is 142 wide at 360, 163 at 402, 177 at 430, so
   the card keeps its desktop parts on proportionally smaller spacing:
   padding 28 → 16 and logo → chip 28 → 20 (~11% of the card, as on
   desktop). Logos up to 191 wide scale down to the content width
   (`max-width: 100%`, `object-fit: contain`, left-aligned). The chip keeps
   its one-line desktop pill with 8px sides ("Business Consulting", the
   longest, is 122 wide); if a chip still can't fit (larger text settings),
   it wraps to two balanced lines in a rounded box rather than overflow.
   Wordmarks drop to 16/20 so two lines fill the 40 slot exactly.
   Silver stays one-up: its 18/28 taglines would run 4–5 lines in a 2-up
   cell (it is two-up from 480, as before). */
@media (max-width: 479px) {
  .pd-list__grid--silver {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-list__card--partner {
    padding: 1rem;                              /* 16px */
    gap:     1.25rem;                           /* 20px */
  }

  .pd-list__card--partner .pd-list__chip {
    height:        auto;
    min-height:    1.625rem;                    /* 26px: one line, as desktop */
    max-width:     100%;
    padding:       0.3125rem 0.5rem;            /* 5px 8px */
    box-sizing:    border-box;
    border-radius: 0.8125rem;                   /* 13px: a full pill on one line */
    white-space:   normal;
    text-wrap:     balance;
  }

  .pd-list__card--partner .pd-list__wordmark {
    font-size:   var(--font-size-base);         /* 16px */
    line-height: var(--line-height-sm);         /* 20px */
  }
}

/* 360–389: 16px padding leaves 110–124 of content, under the 122 chip, so
   padding → 12 and chip sides → 5 (the longest chip 116 in 118 at 360).
   One line for every chip from 360 up. */
@media (max-width: 389px) {
  .pd-list__card--partner {
    padding: 0.75rem;                           /* 12px */
  }

  .pd-list__card--partner .pd-list__chip {
    padding-inline: 0.3125rem;                  /* 5px */
  }
}

/* ≤359 (320-class phones): a two-up cell would leave ~90px of content —
   logos under half size and every long chip on two lines — so one card per
   row, at the ≤767 card's 24px padding and Figma's 28 gap. */
@media (max-width: 359px) {
  .pd-list__grid--partner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-list__card--partner {
    padding: 1.5rem;                            /* 24px */
    gap:     1.75rem;                           /* 28px */
  }

  .pd-list__card--partner .pd-list__chip {
    padding-inline: 0.75rem;                    /* 12px, as desktop */
  }

  .pd-list__card--partner .pd-list__wordmark {
    font-size:   var(--font-size-lg);           /* 18px */
    line-height: var(--line-height-lg);         /* 28px */
  }
}

