/* Tool and skill pages (/tools, /tools/figma, /skills, /skills/user-research): the map's KPI tiles, chips, charts and
   lock card on the site pages' layout (page.css). Loaded after page.css, so its large body text is scaled back where
   the map's components expect less. */

.catalog .crumbs { margin-bottom: var(--space-3); }
.catalog .kpis-3 { margin: var(--space-4) 0 var(--space-2); }
@media (min-width: 640px) { .catalog .kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.catalog-chart { margin: var(--space-3) 0; }
.catalog .legend-chips { margin-top: var(--space-2); }
.doc .legend-chips li { margin: 0; color: var(--ink-2); font-size: var(--text-xs); line-height: var(--line-label); } /* not page.css's body-size list items */
.catalog .data-table { margin: 0 0 var(--space-3); }
.catalog .data-table table { min-width: 0; }

/* Every table on these pages lines up: fixed layout, where the header row sets the widths. The name column takes what's
   left; the share, change, trend and count columns are the same width in every section, so they sit in one place. */
.catalog-table { table-layout: fixed; }
.catalog-table .col-share { width: 160px; }
.catalog-table .col-change { width: 120px; }
.catalog-table .col-trend { width: 96px; }
.catalog-table .col-ads { width: 128px; }
.catalog .catalog-table { min-width: 0; } /* page.css lets tables run to 560px and scroll; these fit the column */
/* On a phone the number columns narrow and the small trend line goes (decorative: the change column has the figure),
   so the shares stay on screen without scrolling the table sideways. */
@media (max-width: 560px) {
  .catalog-table .col-share { width: 96px; }
  .catalog-table .col-change { width: 88px; }
  .catalog-table .col-ads { width: 112px; }
  .catalog-table .col-trend { display: none; }
}
.catalog-table th.num, .catalog-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.catalog-table td.num { white-space: nowrap; } /* figures stay on one line; a header may wrap in a narrow column */
.catalog-table thead th { vertical-align: bottom; }
.catalog-table .muted { margin-left: var(--space-1); color: var(--muted); font-size: var(--text-sm); }
.catalog-table tr.is-self th, .catalog-table tr.is-self td { color: var(--ink); font-weight: var(--weight-semibold); }
.catalog-table .spark { vertical-align: middle; }
.catalog-table .delta { justify-content: flex-end; }

.tag-new {
  display: inline-block; padding: 1px var(--space-2); border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--ink); font-size: var(--text-xs); font-weight: var(--weight-semibold);
}

.catalog .chips { margin: var(--space-2) 0; }
.doc p.note { margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); }
.doc .locked p { font-size: var(--text-md); }

.catalog-links { list-style: none; padding: 0 !important; }
.catalog-links a { display: inline-flex; align-items: center; gap: var(--space-1); }
.catalog-links .icon { width: var(--icon-sm); height: var(--icon-sm); }
.doc p.foot { margin-top: var(--space-6); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-body); }
.catalog-links .muted { color: var(--muted); font-size: var(--text-sm); }
.catalog-links li + li { margin-top: var(--space-1); }
