/* Band › Drums (js/drumdrawer.js): what the drums add to guitar.css, whose package cards, rail, style cards and
   faders they wear. Nick's side, on Moon, as guitar.css. The kit cards wear their own finish and typeface, the
   agreed exception to "colour only means music"; the groove grids are the music. */

/* ---------- Choose your kit ---------- */

/* The kit's drawing is the card's own shape (shared/kits/<id>.svg, 300 by 400), so it fills the card: the kit whole in
   the lower right, clear of the name and the keys. Where the rail is wide, the wide drawing (guitar.css .gpk-wide). */
.gpk-kt {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

@container gtrplay (min-width: 520px) {
  .gpk-kt {
    display: none;
  }
}

/* A kit still on its way plays on the nearest one: the card says so, quietly, under its name. */
.gpk-soon {
  margin-top: 5px;
  font-family: var(--ui);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  opacity: .78;
}

/* ---------- How it's played: each groove drawn as its bar, sixteen steps, hats over snare over kick ---------- */

.dstys[hidden] {
  display: none;
}

.gstys-more {
  margin-top: 4px;
}

.dsty .gsty-pick {
  gap: 1px;
  padding-right: 13px;
}

.dsty-fam,
.dsty .gsty-name {
  padding-right: 28px;
}

.dsty-fam {
  font-size: 12px;
  line-height: 1.3;
  opacity: .72;
}

.dsty-art {
  display: block;
  margin-top: 9px;
}

.dsty-grid {
  display: block;
  width: 100%;
  max-width: 172px;
  height: auto;
}

/* ---------- Fine-tune: Feel, Sound, Mix, Add percussion ---------- */

.drm-grp {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--moon-line);
}

.drm-grp .gfds {
  margin: 2px 0 4px;
}

.drm-keys {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-bottom: 6px;
}

.drm-keys .gtr-wayrow {
  margin-top: 0;
}

.drm-keyname {
  font-size: 14px;
  font-weight: 500;
}

@container gtrtweak (max-width: 360px) {
  .drm-keys {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* ---------- The wide kit card: the kit on the right, the name and keys on the left ---------- */
/* Nick, 2026-11-09: "the drum images should go to the right on the wide cards." The drawing's file puts the kit on
   the right (shared/kits/wide/<id>.svg); the name keeps to the left half, and play and "i" sit at the bottom left. */
@container gtrplay (min-width: 520px) {
  .gpk-kit .gpk-name {
    max-width: calc(50% + 2 * var(--scx)); /* the name's scrim takes its sides back (guitar.css .gpk-name) */
  }

  .gpk-kit .gpk-i {
    right: auto;
    left: 10px;
  }

  .gpk-kit .gpk-hear {
    right: auto;
    left: 56px;
  }
}

/* ---------- How it's played: its heading, and the key to hear this part alone ---------- */
.drm-hrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.drm-hrow .gtr-h {
  margin: 0;
}

.drm-alone {
  min-height: 40px;
}
