/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  PAPIK · Home · #lectures "El que hem escrit últimament" (oct 2026)       ║
   ║  Mateix disseny que el bloc "Trenta anys" (hp-manifest.css), sobre fons   ║
   ║  blanc: columnes sense caixa, només una hairline a dalt, títol de         ║
   ║  l'article en titulí (com "Sobre PAPIK Group") i resum en text light.     ║
   ║  La foto va entre la hairline i el títol, perquè les sis imatges quedin   ║
   ║  alineades. Amb el cursor, el títol pren la línia inferior.               ║
   ║  Sense foto de capçalera ni panell blanc. Només afecta #lectures.         ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

body.is-home #lectures.rl-featured { background: #ffffff; }
body.is-home #lectures .rl-featured__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0; /* el marge lateral el dona només var(--gutter-x) de la secció */
  background: transparent;
  border-radius: 0;
}
/* Mòbil (<=600px): rl-system.css converteix el contenidor de tot rl-featured
   en targeta blanca fusionada; aquí no hi ha foto ni panell. */
body.is-home #lectures .rl-featured__container {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
#lectures .rl-featured__title { margin-bottom: clamp(36px, 4vw, 56px); }

/* ── Columnes · recepta de .hp-manifest__col ───────────────────────────── */
#lectures .hp-posts-cards {
  gap: clamp(48px, 5vw, 64px) clamp(24px, 3vw, 48px);
  grid-auto-rows: auto;
}
#lectures .hp-posts-cards .rl-featured__card,
#lectures .hp-posts-cards .rl-featured__card:hover,
#lectures .hp-posts-cards .rl-featured__card:active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: 0;
  border-top: 1px solid #002819;
  border-radius: 0;
  padding-top: 20px;
  overflow: visible;
  transform: none;
}
#lectures .hp-posts-cards .rl-featured__card-visual {
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
}
#lectures .hp-posts-cards .rl-featured__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 0 0;
  margin: 0;
  border: 0;
}
/* Títol = titulí (.hp-manifest__label) */
#lectures .hp-posts-cards .rl-featured__card-title {
  position: relative;
  display: inline-block;
  font-size: 11.5px;
  font-weight: var(--fw-regular, 400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #002819;
  margin: 0 0 12px;
  padding-bottom: 0;
}
/* Cursor (oct 2026): ja no se subratlla el títol (s'encavalcava amb la
   hairline de dalt de cada article i sumava ratlles). Ara es dibuixa el
   PERÍMETRE de tota la targeta en verd corporatiu: el costat de dalt coincideix
   amb la hairline i la caixa s'obre uns píxels a banda i banda i per sota,
   perquè la foto i el text no toquin la línia. No mou cap element. */
#lectures .hp-posts-cards .rl-featured__card { position: relative; }
#lectures .hp-posts-cards .rl-featured__card::before {
  --pk-perim: clamp(10px, 1.1vw, 16px);
  content: "";
  position: absolute;
  top: -1px;
  left: calc(-1 * var(--pk-perim));
  right: calc(-1 * var(--pk-perim));
  bottom: calc(-1 * var(--pk-perim) - 4px);
  border: 1px solid #002819;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}
#lectures .hp-posts-cards .rl-featured__card:hover::before,
#lectures .hp-posts-cards .rl-featured__card:focus-visible::before { opacity: 1; }
/* Resum = text (.hp-manifest__text) */
#lectures .hp-posts-cards .rl-featured__card-desc {
  font-size: 15px;
  font-weight: var(--fw-light, 300);
  line-height: 1.6;
  color: #002819;
  margin: 0;
}
/* Teclat: el mateix perímetre (::before) fa de focus; sense contorn doble */
#lectures .hp-posts-cards .rl-featured__card:focus-visible { outline: none; }
/* Simetria: foto, títol i resum comparteixen files entre les tres columnes
   (subgrid), de manera que els resums arrenquen a la mateixa alçada encara
   que un títol faci una línia i el del costat dues. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 601px) {
    #lectures .hp-posts-cards .rl-featured__card,
    #lectures .hp-posts-cards .rl-featured__card:hover,
    #lectures .hp-posts-cards .rl-featured__card:active {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    #lectures .hp-posts-cards .rl-featured__card-body { display: contents; }
    /* El gap vertical de la graella mare es repartia DINS de cada targeta
       (subgrid) i afegia ~32px entre foto i títol i entre títol i resum.
       La graella mare va a gap vertical 0 i la separació entre files la
       dona el marge inferior de cada targeta. */
    #lectures .hp-posts-cards { row-gap: 0; }
    #lectures .hp-posts-cards .rl-featured__card { margin-bottom: clamp(48px, 5vw, 64px); }
    #lectures .hp-posts-cards .rl-featured__card-visual { margin-bottom: 18px; }
    #lectures .hp-posts-cards .rl-featured__card-title { justify-self: start; align-self: start; }
  }
}
@media (prefers-reduced-motion: reduce) {
  #lectures .hp-posts-cards .rl-featured__card::before { transition: none; }
}
@media (max-width: 600px) {
  #lectures .hp-posts-cards { row-gap: 40px; }
}

/* ── Proposta 0 · correcció mínima (2 nov 2026, triada per l'usuari) ──────
   Jerarquia corregida: línia «Categoria | data» (.pk-post-meta) a sobre, el
   títol de l'article fa de titular (19–22px, minúscula) i el resum a sota.
   Fora la hairline de dalt (filet doble amb la foto). Subgraella de 4 files:
   foto | context | títol | resum. */
#lectures .hp-posts-cards .rl-featured__card,
#lectures .hp-posts-cards .rl-featured__card:hover,
#lectures .hp-posts-cards .rl-featured__card:active { border-top: 0; padding-top: 0; }
#lectures .hp-posts-cards .rl-featured__card::before { top: calc(-1 * var(--pk-perim)); }
#lectures .hp-posts-cards .rl-featured__card-visual { margin-bottom: 18px; }
#lectures .hp-posts-cards .pk-post-meta {
  display: block;
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #002819;
}
#lectures .hp-posts-cards .rl-featured__card-title {
  display: block;
  margin: 0 0 10px;
  font-size: clamp(19px, 1.5vw, 22px);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.25;
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 601px) {
    #lectures .hp-posts-cards .rl-featured__card,
    #lectures .hp-posts-cards .rl-featured__card:hover,
    #lectures .hp-posts-cards .rl-featured__card:active { grid-row: span 4; }
  }
}
