/* Récits — hub éditorial (/recits) + listes par catégorie (/recits/categorie/{slug}).
   S'appuie sur geo.css (.wrap, .lead, .crumb, .muted-link). Couleur d'accent = --c
   (Taxonomy::color de la catégorie). */

/* --- Grille des blocs de catégories (hub) --- */
.rc-cats {
  list-style: none;
  padding: 0;
  margin: 18px 0 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) { .rc-cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .rc-cats { grid-template-columns: 1fr 1fr 1fr; } }
.rc-cats li { display: flex; } /* hauteur égale : le bloc remplit la cellule de la grille */

.rc-cat {
  position: relative;
  display: block;
  width: 100%;
  background: #15161a;
  border: 1px solid color-mix(in srgb, var(--c, #888) 32%, #24262c);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: #e9eaec;
  transition: background .15s, border-color .15s, transform .15s;
}
.rc-cat:hover { background: #1b1c21; border-color: color-mix(in srgb, var(--c, #888) 60%, #24262c); transform: translateY(-1px); }
.rc-cat .rc-head { display: flex; align-items: center; gap: 8px; }
.rc-cat .rc-emoji { font-size: 20px; line-height: 1; }
.rc-cat .rc-label { font-weight: 700; font-size: 15px; flex: 1; }
.rc-cat .rc-n {
  font-size: 12px; font-weight: 700; color: #0c0d10;
  background: var(--c, #888); border-radius: 999px; padding: 1px 8px; white-space: nowrap;
}
.rc-cat .rc-blurb { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #9aa0a7; }

/* Desktop : au survol, le fond prend la couleur de la bordure (teinte atténuée, texte lisible). */
@media (hover: hover) and (pointer: fine) {
  .rc-cat:hover {
    background: color-mix(in srgb, var(--c, #888) 60%, #15161a);
    border-color: color-mix(in srgb, var(--c, #888) 60%, #15161a);
  }
  .rc-cat:hover .rc-blurb { color: #f3f5f7; }
  .rc-cat:hover .rc-n { background: #fff; color: #0c0d10; }
}

/* --- Grille des cartes-récits (hub « derniers récits » + liste catégorie) --- */
.rc-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
@media (min-width: 620px) { .rc-list { grid-template-columns: 1fr 1fr; } }

.rc-item a {
  display: block;
  height: 100%;
  background: #15161a;
  border: 1px solid #24262c;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #e9eaec;
  transition: background .15s, border-color .15s;
}
.rc-item a:hover { background: #1b1c21; border-color: #3a3d44; }
.rc-item .rc-angle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--c, #ff7a5c); margin-bottom: 6px;
}
.rc-item .rc-angle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #ff7a5c); }
.rc-item h3 { font-size: 16px; line-height: 1.3; margin: 2px 0 6px; }
.rc-item p { margin: 0; color: #9aa0a7; font-size: 13px; line-height: 1.45; }

/* Titres de section (« Derniers récits », rappel catégorie) */
.rc-section-h { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: #8b9097; margin: 26px 0 4px; }

/* --- Pagination --- */
.rc-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 0; }
.rc-pager a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid #2a2c33; border-radius: 999px;
  color: #cdd1d6; text-decoration: none; font-size: 14px;
}
.rc-pager a:hover { border-color: #3a3d44; background: #1b1c21; }
.rc-pager .rc-pos { font-size: 13px; color: #8b9097; }
.rc-pager .rc-spacer { flex: 1; }
