/* /style/review-chip.css */
@scope (html[data-site-styles~="385be8c909029246"]) {/**
 * Human-review trust chip (#72).
 *
 * Owned by assets/js/review-chip.js, which injects a <link> to this
 * stylesheet itself (self-contained -- does not depend on being wired into
 * _quarto.yml / scripts/generate-book-configs.py). Uses the same
 * design-system custom-property tokens, with the same fallback chain, as
 * learner-feedback.js's and chapter-progress.css's injected styles, so it
 * matches whichever surface it renders on without needing platform.css.
 */

.iot-review-chip:where(:scope, *) {
  --rc-success: #0f684e;
  --rc-success-tint: #e6f6ef;
  --rc-ink: var(--ds-ink, var(--bs-body-color, #243746));
  --rc-line: var(--ds-line, #e6e8eb);
  --rc-radius: 999px;

  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 0.75rem 0 0;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--rc-success) 30%, var(--rc-line));
  border-radius: var(--rc-radius);
  background: color-mix(in srgb, var(--rc-success) 7%, var(--rc-success-tint));
  color: color-mix(in srgb, var(--rc-success) 88%, black);
  font: 650 0.78rem/1.3 var(--ds-font, var(--font-family-base, system-ui, sans-serif));
  cursor: default;
}

.iot-review-chip *:where(:scope, *),
.iot-review-chip *:where(:scope, *)::before,
.iot-review-chip *:where(:scope, *)::after {
  box-sizing: border-box;
}

.iot-review-chip-icon:where(:scope, *) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rc-success);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1;
}

.iot-review-chip-label:where(:scope, *) {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .iot-review-chip:where(:scope, *) {
    white-space: normal;
  }
  .iot-review-chip-label:where(:scope, *) {
    white-space: normal;
  }
}

@media (prefers-color-scheme: dark) {
  .iot-review-chip:where(:scope, *) {
    --rc-success: #3ddc97;
    --rc-success-tint: #123326;
    color: color-mix(in srgb, var(--rc-success) 82%, white);
  }
  .iot-review-chip-icon:where(:scope, *) {
    color: #0b2016;
  }
}
}
