/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  PAPIK · Pàgines de lectura en pla (oct 2026)                             ║
   ║  Articles del blog, fitxes de projecte i landings de comarques i zones    ║
   ║  (body.article-page, només CA). Model del bloc "Trenta anys" de la home:  ║
   ║  sense targeta ni franja menta, fons blanc, foto amb radi 10 als quatre   ║
   ║  cantons, titulí uppercase sense píndola, hairlines verdes sòlides només  ║
   ║  a dalt o a baix, cita sense caixa i enllaços de text amb la línia        ║
   ║  inferior al cursor. Textos, fotos i estructura, els de sempre.           ║
   ║  Va enllaçat DESPRÉS de footer-flat.css per guanyar els estils inline.    ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ── Franja i targeta → pàgina blanca ───────────────────────────────────── */
body.article-page .rl-featured {
  background: #ffffff;
}
/* Marge lateral únic (oct 2026): el mateix var(--gutter-x) que la home i
   la resta de pàgines, contingut fins a 1440px; la columna de lectura queda
   alineada a l'esquerra amb la foto i el header. */
body.article-page .rl-featured {
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x);
}
body.article-page .rl-featured__container {
  max-width: 1440px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

/* Foto: radi 10 als quatre cantons (el retall el fa la pròpia foto; el
   Ken Burns continua al ::before, vegeu pages-premium.css) */
body.article-page .rl-featured__img {
  border-radius: 10px;
}

/* Cos: sense panell, sense solapament; alineat amb la vora de la foto */
body.article-page .rl-featured__inner {
  max-width: none;
  margin: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(36px, 4vw, 56px) 0 0;
}

/* ── Fila meta: categoria com a titulí, sense píndola ──────────────────── */
body.article-page .article-meta-top__cat {
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 11.5px;
  font-weight: var(--fw-regular, 400);
  letter-spacing: 0.04em;
  color: #002819;
}
body.article-page .article-meta-top { color: #002819; }

/* ── Entradeta: hairline verda sòlida a baix ───────────────────────────── */
body.article-page .article-lead {
  color: #002819;
  border-bottom: 1px solid #002819;
}
/* Entradeta i cos amb el mateix ample: totes les hairlines fan la mateixa
   llargada (abans 760/720 a les landings i 1000/950 als articles) */
body.article-page .article-lead,
body.article-page .article-prose { max-width: 950px; }

/* ── Seccions del cos: cada h2 obre amb una hairline a dalt ────────────── */
body.article-page .article-prose h2 {
  border-top: 1px solid #002819;
  padding-top: 24px;
  line-height: 1.2;
}
body.article-page .article-prose h2:first-child {
  border-top: 0;
  padding-top: 0;
}
body.article-page .article-prose h2 + p { margin-top: 0; }

/* Enllaços dins el text: la línia passa a verd sòlid amb el cursor */
body.article-page .article-prose a { border-bottom-color: #d9e4e0; }
body.article-page .article-prose a:hover { border-bottom-color: #002819; }

/* ── Cita: sense caixa, només hairlines a dalt i a baix ────────────────── */
body.article-page .article-prose blockquote {
  margin: 48px 0;
  padding: 28px 0;
  background: none;
  border: 0;
  border-top: 1px solid #002819;
  border-bottom: 1px solid #002819;
  border-radius: 0;
}
body.article-page .article-prose blockquote p {
  color: #002819;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: var(--fw-light, 300);
  line-height: 1.45;
}

/* ── Peu de l'article: enllaços de text, sense píndoles ────────────────── */
body.article-page .article-foot {
  border-top: 0;
  padding-top: 0;
  margin-top: 56px;
}
body.article-page .article-foot__back,
body.article-page .article-foot__pdf {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #002819;
  font-size: 14px;
  font-weight: var(--fw-regular, 400);
  letter-spacing: 0.01em;
  text-decoration: none;
}
body.article-page .article-foot__back:hover,
body.article-page .article-foot__pdf:hover {
  background: none;
  color: #002819;
  border: 0;
}
body.article-page .article-foot__back::after,
body.article-page .article-foot__pdf::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #002819;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms ease;
}
body.article-page .article-foot__back:hover::after,
body.article-page .article-foot__pdf:hover::after,
body.article-page .article-foot__back:focus-visible::after,
body.article-page .article-foot__pdf:focus-visible::after { transform: scaleX(1); }

/* ── Landings geo: municipis com a llista de text separada per «|» ─────── */
body.article-page .geo-chips { gap: 6px 0; }
body.article-page .geo-chip {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 15px;
  font-weight: var(--fw-light, 300);
  line-height: 1.5;
  color: #002819;
}
body.article-page .geo-chip:hover { background: none; }
body.article-page .geo-chip i { display: none; }
body.article-page .geo-chip + .geo-chip::before {
  content: "|";
  margin: 0 12px;
  color: #002819;
}

@media (hover: none) {
  body.article-page .article-foot__back::after,
  body.article-page .article-foot__pdf::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.article-page .article-foot__back::after,
  body.article-page .article-foot__pdf::after { transition: none; }
}

/* Mòbil: anul·la la "targeta fusionada" de rl-system.css i pages-premium.css */
@media (max-width: 600px) {
  body.article-page .rl-featured__container {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  body.article-page .rl-featured__img { border-radius: 10px; }
  body.article-page .rl-featured__inner {
    margin-top: 0;
    padding: 28px 0 0;
    background: transparent;
    border: 0;
  }
}
