/* The service providers pages: the directory (service_providers/index, _league_row) and a firm's or
   provider's page (service_providers/show). Grouped by space, pale fills and faintly alternating rows
   rather than rules; names left, comparable figures right. */

/* Shared: the line under a heading, the tables and the link to a full list. */
.fd .sp-sub { margin: 6px 0 0; max-width: 780px; color: #56616b; font-size: 15px; line-height: 1.5; }
.fd .sp-sub .sep { margin: 0 7px; color: #a0abb3; }
.fd .sp-tbl { margin-top: 14px; overflow-x: auto; }
.fd .sp-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.fd .sp-table th { padding: 9px 12px; background: #edf4f7; color: #56616b; font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.fd .sp-table th:first-child { border-radius: 4px 0 0 4px; }
.fd .sp-table th:last-child { border-radius: 0 4px 4px 0; }
.fd .sp-table td { padding: 11px 12px; text-align: left; vertical-align: baseline; }
.fd .sp-table tbody tr:nth-child(even) td { background: #f8fafb; }
.fd .sp-table .end { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd .sp-table .sp-n { width: 3.5rem; color: #62727e; font-variant-numeric: tabular-nums; }
.fd .sp-table a { text-decoration: none; }
.fd .sp-table a:hover { text-decoration: underline; }
.fd .sp-table .sp-firm { font-weight: 600; }
.fd .sp-table .sp-amount { color: #173d53; font-weight: 600; }
.fd .sp-table .muted { color: #8a979f; font-weight: 400; }
.fd .sp-table small { display: block; margin-top: 3px; color: #62727e; font-size: 12.5px; line-height: 1.45; }
.fd .sp-table small a { color: #3d5566; }
.fd .sp-table .sp-place { color: #3d4a54; }
/* A ranking's firm cell takes the room the figures leave, its clients on one line cut short. */
.fd .sp-league .sp-firm-cell { width: 100%; max-width: 0; }
.fd .sp-league .sp-clients { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd .sp-table .sp-narrow { display: none; }
.fd .sp-nw { white-space: nowrap; }
.fd .sp-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 600; text-decoration: none; }
.fd .sp-all:hover { text-decoration: underline; }

/* The directory: heading and search box side by side, then the categories on the left and one table. */
.fd .sp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.fd .sp-head-text { flex: 1 1 520px; min-width: 0; }
.fd .sp-head h1 { margin-bottom: 0; }
.fd .sp-find { display: flex; flex: 0 1 340px; align-items: stretch; border: 1px solid #d6e1e7; border-radius: 6px; background: #fff; }
.fd .sp-find:focus-within { outline: 2px solid #0074ad; outline-offset: 1px; }
.fd .sp-find input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: #243442; font: inherit; font-size: 14px; }
.fd .sp-find input:focus { outline: 0; }
.fd .sp-find button { padding: 0 16px; border: 0; border-radius: 0 5px 5px 0; background: #edf4f7; color: #0074ad; font: inherit; font-weight: 600; cursor: pointer; }
.fd .sp-find button:hover { background: #e1edf2; }
.fd .sp-workspace { display: grid; grid-template-columns: minmax(200px, 22%) minmax(0, 1fr); gap: 36px; max-width: 1180px; margin-top: 30px; }
.fd .sp-smallcap { margin: 0 10px 10px; color: #62727e; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fd .sp-rail ul { margin: 0; padding: 0; list-style: none; }
.fd .sp-choice { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 4px; color: #243442; font-size: 14px; text-decoration: none; }
.fd .sp-choice span { color: #62727e; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fd .sp-choice:hover { background: #edf4f7; }
.fd .sp-choice[aria-current=page] { background: #edf4f7; color: #0074ad; font-weight: 650; }
.fd .sp-ranking { min-width: 0; }
.fd .sp-ranking h2 { margin-top: 6px; }
.fd .sp-cat + .sp-cat { margin-top: 30px; }
.fd .sp-how { margin-top: 18px; color: #62727e; font-size: 13px; line-height: 1.55; }
.fd .sp-how summary { display: inline-flex; align-items: center; min-height: 44px; color: #0074ad; font-weight: 600; cursor: pointer; }
.fd .sp-how p { max-width: 640px; margin: 0; }

/* A firm's or provider's page: the category in the kicker links to its list; the figures in one pale
   band, each rank beneath its figure; then tabs over the clients, the filed names and the other roles. */
.fd .kick a.sp-kick { color: #0074ad; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fd .kick a.sp-kick:hover { color: #005a87; }
.fd .sp-band { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; max-width: 1100px; margin: 22px 0 0; padding: 18px 0; border-radius: 6px; background: #edf4f7; }
.fd .sp-metric { padding: 0 24px; border-left: 1px solid #d6e3ea; }
.fd .sp-metric:first-child { border-left: 0; }
.fd .sp-metric dt { color: #3d4a54; font-size: 13.5px; }
.fd .sp-metric dd { margin: 0; }
.fd .sp-metric strong { display: block; color: #173d53; font-size: clamp(26px, 3vw, 38px); font-weight: 620; letter-spacing: -.04em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.fd .sp-metric strong.muted { color: #8a979f; font-size: 22px; font-weight: 400; letter-spacing: 0; }
.fd .sp-metric small { display: block; color: #56616b; font-size: 12.5px; line-height: 1.5; }
.fd .sp-tabbed { max-width: 1100px; margin-top: 26px; }
.fd .sp-tabs { display: flex; flex-wrap: wrap; gap: 0 26px; border-bottom: 1px solid #e6edf0; }
.fd .sp-tabs a { display: inline-flex; align-items: center; min-height: 44px; color: #56616b; font-size: 14px; text-decoration: none; }
.fd .sp-tabs a:hover { color: #0074ad; }
.fd .sp-tabs .sp-tab-main,
.fd .sp-tabbed:has(#entities:target) a[href="#entities"],
.fd .sp-tabbed:has(#roles:target) a[href="#roles"] { color: #0074ad; font-weight: 650; box-shadow: inset 0 -2px #0074ad; }
.fd .sp-tabbed:has(#entities:target, #roles:target) .sp-tab-main { color: #56616b; font-weight: 400; box-shadow: none; }
.fd .sp-panel { padding-top: 20px; scroll-margin-top: 64px; }
.fd .sp-tabbed:has(.sp-tabs) .sp-panel:not(.sp-panel-main):not(:target),
.fd .sp-tabbed:has(.sp-panel:target) .sp-panel-main:not(:target) { display: none; }
.fd .sp-list { max-width: 1100px; padding-top: 6px; }

/* Tablets and phones: the categories above the table, as a row of choices. */
@media (max-width: 860px) {
  .fd .sp-workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 22px; }
  .fd .sp-find { flex: 1 1 100%; }
  .fd .sp-smallcap { margin: 0 0 8px; }
  .fd .sp-rail ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .fd .sp-choice { min-height: 40px; padding: 6px 12px; background: #f5f8fa; }
  .fd .sp-choice span { margin-left: 2px; }
  .fd .sp-metric { padding: 0 16px; }
}

/* Phones: the figures one under another; tables drop their secondary columns (the place goes under the
   adviser's name). */
@media (max-width: 600px) {
  .fd .sp-sub { font-size: 14px; }
  .fd .sp-band { grid-auto-flow: row; gap: 12px; padding: 14px 0; }
  .fd .sp-metric { padding: 0 16px; border-left: 0; }
  .fd .sp-metric + .sp-metric { padding-top: 12px; border-top: 1px solid #d6e3ea; }
  .fd .sp-metric strong { font-size: 28px; }
  .fd .sp-tabs { gap: 0 18px; }
  .fd .sp-table { font-size: 13.5px; }
  .fd .sp-table th, .fd .sp-table td { padding: 9px 7px; }
  .fd .sp-table .sp-n { width: 1.75rem; padding-right: 2px; }
  /* Headers wrap ("Gross fund / assets") so a figure's column is as wide as its figures, not its header. */
  .fd .sp-table th, .fd .sp-table th.end { white-space: normal; vertical-align: bottom; line-height: 1.25; }
  .fd .sp-table .sp-wide { display: none; }
  .fd .sp-table .sp-narrow { display: block; }
  .fd .sp-league .sp-clients { white-space: normal; }
}
