/* CPS-Vault docs — feature-card accents and status badges. */

/* Feature-card left accent bar, colored per topic to make the grid on the
   landing page easier to scan at a glance. attr_list can only attach a class
   to the title paragraph inside each card's <li> (not the <li> itself), so
   the accent border is applied to the <li> via :has() targeting that
   paragraph. */
.md-typeset .grid.cards > ul > li:has(> p.card-accent) {
  border-left: 0.2rem solid var(--card-accent-color, var(--md-primary-fg-color));
}

.md-typeset .grid.cards > ul > li:has(> p.card-blue) {
  --card-accent-color: #448aff;
}
.md-typeset .grid.cards > ul > li:has(> p.card-teal) {
  --card-accent-color: #00bfa5;
}
.md-typeset .grid.cards > ul > li:has(> p.card-purple) {
  --card-accent-color: #7c4dff;
}
.md-typeset .grid.cards > ul > li:has(> p.card-orange) {
  --card-accent-color: #ff9100;
}
.md-typeset .grid.cards > ul > li:has(> p.card-pink) {
  --card-accent-color: #f50057;
}
.md-typeset .grid.cards > ul > li:has(> p.card-cyan) {
  --card-accent-color: #00b8d4;
}

/* The title paragraph itself only carries the class for :has() to key off
   of - it shouldn't visibly look different from any other paragraph. */
.md-typeset .grid.cards > ul > li > p.card-accent {
  margin-bottom: 0.5em;
}

/* Status badges — used in SDK/feature-availability tables so "Available"
   vs. "Coming soon" is distinguishable by color, not just text. */
.status-badge {
  display: inline-block;
  padding: 0.15em 0.65em;
  border-radius: 1em;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.status-available {
  color: #00733e;
  background-color: rgba(0, 200, 83, 0.16);
}

.status-soon {
  color: #b45300;
  background-color: rgba(255, 145, 0, 0.16);
}

.status-deprecated {
  color: #b71c1c;
  background-color: rgba(255, 23, 68, 0.14);
}

[data-md-color-scheme="slate"] .status-available {
  color: #69f0ae;
  background-color: rgba(0, 230, 118, 0.14);
}

[data-md-color-scheme="slate"] .status-soon {
  color: #ffd180;
  background-color: rgba(255, 145, 0, 0.18);
}

[data-md-color-scheme="slate"] .status-deprecated {
  color: #ff8a80;
  background-color: rgba(255, 23, 68, 0.18);
}

/* Slightly tighter, more scannable feature-card body text. */
.md-typeset .grid.cards > ul > li p {
  margin-bottom: 0.5em;
}

/* Give the requirements/method-summary tables a touch more breathing room. */
.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding: 0.6em 1em;
}
