/* Public leaderboard pages (/leaderboards and /leaderboards/<industry>), served by the app. Loaded after styles.css.
   Rules: the data opens within the first screen; no gray outlines around blocks; labels and numbers, not sentences;
   yellow means "named"; equal ranks look equal; rank changes sit beside each brand in the full table. */
[hidden] { display: none !important; }
.lb-page main { padding-top: 104px; }
.fig { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.of { color: var(--ink-4); }

/* The current page in the header and the mobile menu. */
.lb-page .nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow-deep);
  text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lb-page .mm-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 3px; text-underline-offset: 6px; }

.lb-head { padding: 8px 0 0; }
.lb-head h1 { margin: 0; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.lb-crumb { display: inline-flex; align-items: center; min-height: 32px; margin: -6px 0 4px; font-size: 13.5px; color: var(--ink-3); text-decoration: none; }
.lb-crumb::before { content: "\2190"; margin-right: 6px; }
.lb-crumb:hover { color: var(--ink); }
.lb-crumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.lb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); }
.lb-meta > span { white-space: nowrap; }
.lb-meta > span, .lb-method, .lb-methodbtn { display: inline-flex; align-items: center; gap: 6px; }
.lb-meta b { color: var(--ink); font-weight: 500; }
.lb-meta svg { color: var(--ink-4); flex: none; }
.lb-apps img + img { margin-left: -2px; }
.lb-body { padding: 32px 0 96px; }
.lb-close-cta { margin: 28px 0 0; }
.lb-down { padding-bottom: 96px; }

/* Logos: checked files, or the first letter on a quiet tile. */
.lg { width: 20px; height: 20px; border-radius: 5px; flex: none; object-fit: contain; }
.lg-mono { --s: 20px; width: var(--s); height: var(--s); display: inline-grid; place-items: center; background: var(--chalk-2); color: var(--ink-2);
  font: 600 calc(var(--s) * .5)/1 "Geist", sans-serif; }

/* Pop-overs: the question list, the industry picker, and search results fade in. */
.pop { opacity: 0; transform: translateY(-4px) scale(.985); transform-origin: top left; transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); }
.pop.in { opacity: 1; transform: none; }

/* The question list behind "9 questions". */
.lb-method { position: relative; }
.lb-methodbtn { font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 32px; cursor: pointer; text-decoration: underline dotted var(--line-strong); text-underline-offset: 4px; }
.lb-methodbtn:hover { color: var(--ink); text-decoration-color: var(--ink-3); }
.lb-methodbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.lb-qs { position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; width: 460px; max-width: calc(100vw - 32px); max-height: 60vh; overflow-y: auto;
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-3); padding: 16px 18px; color: var(--ink); display: block; }
.lb-qshead { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.lb-qs ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lb-qs li { font-size: 14.5px; line-height: 1.4; }
.lb-qs li span { display: block; font-size: 12px; color: var(--ink-3); }

/* Ranked rows: rank, logo, name, then a 0 to 100% track with the share at its end. */
.lb-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; }
.lb-col { min-width: 0; }
.lb-colhead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.lb-col h2, .lb-h2 { margin: 0; font-size: 20px; letter-spacing: -0.025em; font-weight: 650; }
.lb-tag { font-size: 13px; color: var(--ink-3); }
.lb-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lb-row { display: grid; grid-template-columns: 26px 20px minmax(0, 168px) minmax(0, 1fr) 44px; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 6px;
  border-radius: 8px; color: var(--ink); text-decoration: none; transition: background .15s; }
.lb-row:hover { background: var(--chalk); }
.lb-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.lb-rank { font-size: 13px; line-height: 20px; color: var(--ink-3); text-align: right; padding-top: 1px; }
.lb-name { font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row.is-lead .lb-name { font-weight: 650; }
/* The leader's name sits on a full highlighter chip, never a partial stroke: a stroke on data reads as a glitch. The
   name box reaches 6px left so the chip's padding shows and the text keeps the column's left edge. */
.lb-row.is-lead .lb-name { margin-left: -6px; padding-left: 6px; }
.lb-row.is-lead .lb-name > span { background: var(--yellow); color: #111111; padding: 2px 6px; margin-left: -6px; border-radius: 4px; }
.lb-track { height: 14px; border-radius: 4px; background: var(--chalk); overflow: hidden; }
.lb-track i { display: block; height: 100%; width: var(--p); background: var(--yellow); border-radius: 4px; transform-origin: left; animation: lb-grow .8s var(--ease-out) both; }
.lb-row:hover .lb-track i { background: var(--yellow-deep); }
@keyframes lb-grow { from { transform: scaleX(0); } }
.lb-bars li:nth-child(2) i { animation-delay: 25ms; } .lb-bars li:nth-child(3) i { animation-delay: 50ms; } .lb-bars li:nth-child(4) i { animation-delay: 75ms; }
.lb-bars li:nth-child(5) i { animation-delay: 100ms; } .lb-bars li:nth-child(6) i { animation-delay: 125ms; } .lb-bars li:nth-child(7) i { animation-delay: 150ms; }
.lb-bars li:nth-child(8) i { animation-delay: 175ms; } .lb-bars li:nth-child(9) i { animation-delay: 200ms; } .lb-bars li:nth-child(10) i { animation-delay: 225ms; }
.lb-pct { font-size: 14.5px; font-weight: 500; text-align: right; }

/* Highlights: brand, short label, and a number with its unit. */
.lb-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lb-note { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
a.lb-note { transition: background .15s; }
a.lb-note:hover { background: var(--chalk); }
a.lb-note:focus-visible { outline: 2px solid var(--ink); }
.lb-note .lg { width: 28px; height: 28px; border-radius: 7px; }
.lb-n { display: flex; flex-direction: column; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lb-n small { font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.lb-find { font-weight: 600; }
.lb-find small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.lb-v { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.25; }
.lb-v b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.lb-v small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.lb-cite { margin-top: 20px; }
.lb-cite h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.lb-ext { font-weight: 400; color: var(--ink-4); }
.vs { font-size: 12px; font-weight: 400; color: var(--ink-3); margin: 0 6px; }

/* All brands. */
.lb-tablewrap { margin-top: 64px; }
.lb-tablehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.lb-count { font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.lb-filter, .ix-field, .pick-search { display: flex; align-items: center; gap: 8px; border-radius: 10px; background: var(--chalk); color: var(--ink-3); transition: background .15s, color .15s; }
.lb-filter { height: 40px; padding: 0 12px; width: min(100%, 280px); }
.lb-filter:focus-within, .ix-field:focus-within, .pick-search:focus-within { background: var(--chalk-2); color: var(--ink); }
.lb-filter input, .ix-field input, .pick-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 15px/1 "Geist", sans-serif; color: var(--ink); box-shadow: none; }
.lb-filter input::placeholder, .ix-field input::placeholder, .pick-search input::placeholder { color: #7A7A73; }
.lb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; table-layout: fixed; }
.lb-table col.c-rank { width: 56px; } .lb-table col.c-num { width: 112px; } .lb-table col.c-app { width: 128px; }
.lb-table td { font-variant-numeric: tabular-nums; }
.lb-sub { display: none; }
.lb-table tbody tr, #all-brands { scroll-margin-top: 150px; }
.lb-table th { position: sticky; top: 72px; z-index: 2; background: var(--paper); text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-3);
  padding: 8px 12px 10px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
/* While the header is stuck, a white band behind the floating site header hides the rows that scroll under it. */
.lb-table.is-stuck th { box-shadow: 0 -36px 0 var(--paper), 0 -72px 0 var(--paper); }
.lb-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; min-height: 28px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lb-table th button:hover, .lb-table th[aria-sort="ascending"] button, .lb-table th[aria-sort="descending"] button { color: var(--ink); }
.lb-table th button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.lb-sorticon::after { content: "\2195"; font-size: 11px; color: var(--ink-4); }
.lb-table th[aria-sort="ascending"] .lb-sorticon::after { content: "\2191"; color: var(--ink); }
.lb-table th[aria-sort="descending"] .lb-sorticon::after { content: "\2193"; color: var(--ink); }
.lb-table th.num button { flex-direction: row; }
.lb-table td { padding: 10px 12px; border-bottom: 1px solid var(--chalk-2); vertical-align: middle; line-height: 20px; }
.lb-table th:first-child, .lb-table td:first-child { padding-left: 4px; width: 44px; }
.lb-table th:last-child, .lb-table td:last-child { padding-right: 4px; }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table tbody tr:hover td { background: var(--chalk); }
/* The row a visitor came to find: a tint, an ink notch, and a bold name that stay until they leave. */
.lb-table tbody tr.is-you td { animation: lb-you 1.6s var(--ease-out) both; background: var(--chalk); }
.lb-table tbody tr.is-you td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.lb-table tbody tr.is-you .lb-tbname { font-weight: 650; }
@keyframes lb-you { 0%, 35% { background: var(--yellow-soft); } 100% { background: var(--chalk); } }
.lb-table .num { text-align: right; }
.lb-tb { display: flex; align-items: center; gap: 10px; font-weight: 500; min-width: 0; }
.lb-tbname { line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-appcell { white-space: nowrap; }
.lb-mini { display: inline-block; vertical-align: middle; width: 36px; height: 6px; border-radius: 3px; background: var(--chalk-2); overflow: hidden; margin-right: 10px; }
.lb-mini i { display: block; height: 100%; width: var(--p); background: var(--yellow-deep); }
.lb-empty { margin: 16px 0 0; color: var(--ink-3); font-size: 14.5px; }
.lb-empty a { color: var(--ink); }
.chg { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px;
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chg.up { color: #137333; background: #E6F4EA; }
.chg.down { color: #B3261E; background: #FCE8E6; }
.chg.same { color: var(--ink-3); background: var(--chalk); }
.chg.new { color: var(--ink); background: var(--yellow-soft); }

/* Industry picker in the title. */
.pick { position: relative; display: inline-block; }
.pick-meta .pick-btn { font-size: 13.5px; letter-spacing: 0; color: var(--ink-3); min-height: 32px; gap: 6px; text-decoration: underline dotted var(--line-strong); text-underline-offset: 4px; }
.pick-meta .pick-btn b { color: var(--ink); font-weight: 500; }
.pick-meta .pick-btn:hover { color: var(--ink); text-decoration-color: var(--ink-3); }
.pick-meta .pick-chev { width: 12px; height: 12px; }
.pick-btn { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .14em; text-decoration-color: var(--yellow-deep); text-decoration-skip-ink: none; }
.pick-btn:hover { text-decoration-color: var(--ink); }
.pick-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.pick-chev { width: .5em; height: .5em; transition: transform .2s var(--ease-out); }
.pick-btn[aria-expanded="true"] .pick-chev { transform: rotate(180deg); }
.pick-pop { position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; width: 340px; max-width: calc(100vw - 32px); background: var(--paper); border-radius: 14px;
  box-shadow: var(--shadow-3); padding: 8px; display: block; font-size: 15px; letter-spacing: 0; font-weight: 400; line-height: 1.4; }
.pick-search { height: 40px; padding: 0 10px; border-radius: 9px; }
.pick-list { display: block; max-height: 360px; overflow-y: auto; margin-top: 6px; }
.pick-group { display: block; margin: 8px 10px 4px; font-size: 12px; color: var(--ink-3); }
.pick-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 10px; border-radius: 8px; font: 500 15px/1 "Geist", sans-serif;
  color: var(--ink); text-decoration: none; }
.pick-opt:hover, .pick-opt.active { background: var(--chalk); }
.pick-opt.active { background: var(--chalk-2); }
.pick-name { display: inline-flex; align-items: center; gap: 8px; }
.pick-check { font-size: 13px; color: var(--ink); }
.pick-none { display: block; padding: 10px 10px 6px; font-size: 14px; color: var(--ink-3); }
.pick-none b { color: var(--ink); font-weight: 500; }
.pick-logos { display: inline-flex; gap: 4px; }
.pick-logos .lg { width: 18px; height: 18px; border-radius: 4px; }

/* Index: industry leaders by group, then find your brand. */
.ix-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.ix-chips:has(a:only-child) { display: none; }
.ix-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--chalk); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.ix-chips a:hover { background: var(--chalk-2); }
.ix-chips .fig, .ix-gname .fig { color: var(--ink-3); font-weight: 500; }
.ix-group { scroll-margin-top: 96px; }
.ix-group + .ix-group { margin-top: 56px; }
.ix-gname { margin: 0 0 18px; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.ix-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px 56px; }
.ix-board { min-width: 0; }
.ix-bhead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ix-bhead h3 { margin: 0; font-size: 22px; letter-spacing: -0.025em; font-weight: 650; }
.ix-bhead h3 a { color: var(--ink); text-decoration: none; }
.ix-bhead h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ix-more { margin-left: auto; font-size: 14px; color: var(--ink-3); white-space: nowrap; text-decoration: none; transition: color .15s; }
.ix-more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.ix-more span { display: inline-block; transition: transform .15s var(--ease-out); }
.ix-more:hover span { transform: translateX(2px); }
.ix-bhead a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ix-find { margin-top: 72px; }
.ix-field, .ix-res { max-width: 640px; }
.ix-findh { margin: 0; }
.ix-find label { display: block; font-size: 22px; letter-spacing: -0.025em; font-weight: 650; margin-bottom: 14px; }
.ix-field { height: 52px; padding: 0 16px; border-radius: 14px; }
.ix-field input { font-size: 17px; }
.ix-res { margin-top: 8px; display: grid; gap: 2px; }
.ix-res a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.ix-res a:hover, .ix-res a.active { background: var(--chalk); }
.ix-res .lg { width: 22px; height: 22px; }
.ix-res .ix-none { grid-template-columns: minmax(0, 1fr) auto; }
.ix-res .ix-hint { font-size: 12.5px; color: var(--ink-3); padding: 4px 10px 2px; }
.ix-res .lb-v { font-size: 15px; font-weight: 500; }

@media (max-width: 900px) {
  .lb-page main { padding-top: 92px; }
  .lb-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .lb-tablewrap { margin-top: 48px; }
  .ix-find { margin-top: 56px; }
}
@media (max-width: 760px) {
  .lb-crumb { min-height: 44px; margin: -12px 0 0; }
  .lb-methodbtn, .lb-table th button { min-height: 44px; }
  /* Rows: name and share on one line, the track under them. */
  .lb-row { grid-template-columns: 26px 20px minmax(0, 1fr) 44px; grid-template-rows: 22px 10px; row-gap: 6px; height: auto; padding: 8px 6px; }
  .lb-row .lb-track { grid-column: 3 / 5; grid-row: 2; height: 8px; }
  .lb-row .lb-rank, .lb-row .lg, .lb-row .lb-name { grid-row: 1; }
  .lb-row .lb-pct { grid-column: 4; grid-row: 1; }
  /* Phones: rank, brand, and named in; each brand's split by AI app and its named-first count sit on a line under the name.
     The other columns collapse to zero width, so there is no sideways scroll and the header stays in view. */
  .lb-table col.c-app { width: 0; }
  .lb-table col:nth-child(4) { width: 0; }
  .lb-table tr > :nth-child(n+4) { padding: 0 !important; overflow: hidden; font-size: 0; border-bottom-width: 0; }
  .lb-table tr > :nth-child(n+4) > * { display: none; }
  .lb-table td { padding: 10px 6px; vertical-align: top; }
  .lb-table th { padding: 8px 6px 10px; }
  .lb-table td:first-child, .lb-table td:nth-child(3) { padding-top: 10px; }
  .lb-tb { gap: 8px; }
  .lb-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0 28px; font-size: 12.5px; color: var(--ink-3); }
  .lb-sub > span { display: inline-flex; align-items: center; gap: 4px; }
  .lb-sub .fig { color: var(--ink-2); }
  .pop.pick-pop, .pop.lb-qs { position: fixed; left: 16px; right: 16px; top: 88px; width: auto; max-width: none; max-height: calc(100vh - 120px); }
  .pop.lb-qs { top: auto; bottom: 16px; max-height: 60vh; transform-origin: bottom center; }
  .lb-table col.c-rank { width: 46px; } .lb-table col.c-num { width: 82px; }
  .lb-table th { font-size: 12px; } .lb-table th button { gap: 3px; }
  .lb-meta { gap: 4px 14px; font-size: 13px; }
  .lb-filter { width: 100%; }
  .ix-bhead { flex-wrap: wrap; row-gap: 2px; }
  .ix-bhead h3 { order: 1; }
  .ix-more { order: 2; }
  .ix-bhead .lb-tag { order: 3; flex-basis: 100%; }
  /* Phones: the top 3 per industry keep the index short; "All N brands" opens the rest. */
  .ix-board .lb-bars li:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-track i, .lb-table tbody tr.is-you td { animation: none; }
  .lb-table tbody tr.is-you td { background: var(--chalk); animation: none; }
  .pop { transition: none; }
}

/* On the dark header state the current link turns light, like its neighbors. */
.lb-page .site-header.on-dark .nav-link[aria-current="page"] { color: #FFFFFF; }

.lb-table a:hover { text-decoration-thickness: 2px; text-underline-offset: 4px; }
