/* Kholoh – Runes Grid (v3) */

/* Conteneur + titre */
.blockgen > h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

/* Grille 3/2/1 colonnes */
.khrg-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .khrg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .khrg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Carte – pas de background ni de bordure/ombre */
.khrg-card {
  background: transparent;
  color: inherit;
  border-radius: 1rem;
  box-shadow: none;
  border: none;              /* retiré */
  overflow: hidden;
}

/* Disposition 25/75, image à gauche alignée en haut */
.khrg-card-inner {
  display: flex;
  align-items: flex-start;   /* aligne les deux colonnes en haut */
  gap: 0;
}

/* Colonne image (25%) sans centrage */
.khrg-media {
  flex: 0 0 25%;
  max-width: 25%;
  display: block;
  background: transparent;
  align-self: flex-start;    /* ancre le bloc en haut */
}
.khrg-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;       /* pas de crop */
}

/* Colonne texte (75%) */
.khrg-body {
  flex: 1 1 75%;
  padding: 1rem 1.125rem;
  position: relative;
}

/* Titre en gras */
.khrg-title {
  margin: 0;
  font-size: 1em;
  line-height: 1.3;
  font-weight: 700;          /* gras */
}

/* Description en italique */
.khrg-desc {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-style: italic;        /* italique */
  opacity: 0.95;
}

.khrg-desc p{
  margin: 0;
}

/* Badge a/b collé à gauche de la barre */
.khrg-progress-label {
  float: left;
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 5px;
  background: #e0e0e0;       /* petit badge gris */
  color: #333;
  font-weight: 600;
}

/* Progress bar : 4px, rail rgba(0,0,0,0.1), bar #e9e9e9 */
.khrg-progress {
  display: block;
  overflow: hidden;          /* BFC pour s’aligner à côté du float */
  height: 4px;               /* max 4px */
  background: rgba(0,0,0,0.1); /* rail */
  border-radius: 999px;
  position: relative;
  margin: 20px 0;
}
.khrg-progress-bar {
  height: 100%;
  width: 0%;
  background: #e9e9e9;       /* bar */
  transition: width 0.6s ease;
}

.khrg-progress[aria-valuenow="100"] .khrg-progress-bar{
  background: #4caf50;
}

/* "Obtenu par" en italique + clear des floats */
.khrg-meta {
  font-size: 0.85rem;
  font-style: italic;        /* italique */
  opacity: 0.9;
  margin-top: 0.5rem;
  clear: both;
}

/* Optionnel : très petits écrans, on garde 25/75 (pas de stack) */

.khrg-card--locked img{
  opacity: 0.6;
}