@layer components {
  /* Review Component
     ========================================================================== */

  /* No-comment warning visibility (CSS-only, replaces JS). The descendant
     selector keeps `none` ahead of .warning-hint's `flex` regardless of file
     order; the shown state is flex for the same reason. */
  .review .review__no-comment-warning {
    display: none;
  }

  .review:not(:has([id^="comment_"])) .review__no-comment-warning {
    display: flex;
  }

  /* Title underline when award review has no comments */
  .review:has(.review__no-comment-warning):not(:has([id^="comment_"])) h3 {
    text-decoration: underline;
    text-decoration-color: var(--color-yellow);
  }
}
