/*
 * Feature pages and the features index. Built on notes.css: the hero, the
 * list rows and the related lists are the notes' own. What is new is the
 * release-stage pill, the facts panel above the article, and the board of
 * recent stage changes. Colours from tokens.css only.
 */

.feature-stage {
  display: inline-block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.1em 0.65em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.feature-stage--generally-available {
  border-color: var(--tip-accent);
  color: var(--tip-accent);
}
.feature-stage--beta,
.feature-stage--public-preview,
.feature-stage--private-preview {
  border-color: var(--note-accent);
  color: var(--note-accent);
}
.feature-stage--deprecated,
.feature-stage--retired {
  border-color: var(--warning-accent);
  color: var(--warning-accent);
}

.feature-facts {
  margin: var(--space-6) 0 var(--space-7);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}
.feature-facts dl {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}
.feature-facts dl > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--space-4);
}
.feature-facts dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.2em;
}
.feature-facts dd {
  margin: 0;
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.feature-facts a {
  color: var(--accent);
}
@media (max-width: 560px) {
  .feature-facts dl > div {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

/* A feature row has no cover, so the notes' three columns become two. */
@media (min-width: 64rem) {
  .notes-row.feature-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.6fr);
  }
}

.feature-board__title {
  margin-top: var(--space-9);
  font-family: var(--font-display);
  font-size: var(--text-xl);
}
.feature-board__lede {
  margin-top: var(--space-3);
  color: var(--ink-muted);
  max-width: var(--measure);
}
.feature-board__lede a {
  color: var(--accent);
}
.feature-board {
  margin-top: var(--space-5);
  overflow-x: auto;
}
.feature-board table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.feature-board th,
.feature-board td {
  text-align: left;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  vertical-align: baseline;
}
.feature-board th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.feature-board td a {
  color: inherit;
}
.feature-board td a:hover {
  color: var(--accent);
}
.feature-board td:last-child,
.feature-board th:last-child {
  white-space: nowrap;
  padding-right: 0;
}
@media (max-width: 560px) {
  .feature-board th,
  .feature-board td {
    padding-right: var(--space-2);
  }
  .feature-board .feature-stage {
    white-space: normal;
  }
}
