/* NO raw hex/rgba/rem values — use var(--token) from base/variables.css */
/* ========================================
   CARDS
   ========================================
   The shared box of a card container -- GitHub Primer's Box: a background, a
   thin border and the medium radius -- and its variants. The markup names .card
   (and any variant) beside the container's own class, which keeps the
   container's place and inner spacing; tests/test_frontend_code_rules.py
   -k shared_components refuses a box look set anywhere else for a declared card
   that has moved onto .card, for .card itself or for a variant. main.css imports
   this file; a standalone page that loads no main.css (the login page) links it. */

.card {
  background: var(--color-bg-tertiary);
  border: var(--line-width-thin) solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

/* An opaque form panel: the surface the style guide gives a panel or dialog. */
.card-panel {
  background: var(--color-bg-secondary);
}

/* A soft accent glow that lifts the card off the page. */
.card-elevated {
  box-shadow: var(--shadow-accent-subtle);
}

/* A recessed well -- a box inside another card, or a form opened under a group's
   header: the darker inset surface and the stronger border. The inset surface is
   semi-transparent too, so it still stacks on what it sits in -- a darker well, not
   an opaque surface for nesting a card. */
.card-inset {
  background: var(--color-bg-inset);
  border-color: var(--color-border);
}

/* A card that answers the pointer: the hover border and glow. */
.card-interactive:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-accent-subtle);
}
