/*
  The guides' comparison table and tags (Live, Coming, a figure's label). Loaded after guide.css;
  kit tokens only, so light and dark follow the theme switch.
*/
/* tags: Live, Coming, and a figure's label */
.tag {
  display: inline-block;
  vertical-align: 0.15em;
  margin-left: 6px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--muted);
}
.tag--live {
  color: var(--ink);
  border-color: currentColor;
}
.tag--coming {
  color: var(--p-link);
  border-color: currentColor;
}

/* the comparison table: it scrolls inside its own frame on a phone, the feature column stays put */
.guide-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.guide-table:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 2px;
}
.guide-table [data-slot="table-container"] {
  overflow: visible;
}
.guide-table table {
  min-width: 960px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.guide-table :is(th, td) {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  white-space: normal;
  height: auto;
}
.guide-table tr:last-child > * {
  border-bottom: 0;
}
.guide-table tr {
  border: 0;
}
.guide-table tr:hover {
  background: none;
}
.guide-table thead th {
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
}
.guide-table th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg);
  font-weight: 500;
  width: 150px;
}
.guide-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
.guide-table .product {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.guide-table .product > :is(img, svg) {
  width: 20px;
  height: 20px;
  flex: none;
}
.guide-table .tag {
  display: block;
  width: fit-content;
  margin: var(--s-2) 0 0;
  line-height: 1.2;
}
.guide-table td.is-us {
  background: color-mix(in oklab, var(--p-accent) 6%, transparent);
}
