/* ═══ BLOG · SEMPRE BLANC (10 nov 2026) ══════════════════════════════════════
   Portada del blog (CA/ES/EN), tots els articles (CA/ES/EN/FR/DE) i les 45 fitxes
   de projecte (mateixa plantilla .article-page; portada de projectes a projectes-blanc.css).
   L'usuari, 10 nov: «tiene que ser en blog siempre blanco, de tarjetas y back de
   página», «imágenes cortadas», «0 coherencia de marca en botones».
   · Fons de pàgina i de targetes: blanc. La regla genèrica de «secció de tancament»
     de tokens.css pintava de menta l'única secció dels articles (tota la pàgina).
   · Foto de capçalera sense retallar: el marc pren la proporció real de cada foto
     (--pk-ratio, escrit a l'atribut style per BACKUPS/2026-11-10-blog-blanc) i
     s'atura a una alçada màxima; les verticals queden més estretes, no tallades.
   · Botons: un sol model, el contorn de la capçalera (1px, radi 10, 46px d'alt).
   · Titulí sense píndola.
   Cap text, foto ni estructura canviats. */

/* ── Articles: pàgina blanca ─────────────────────────────────────────────── */
html body.article-page > section.rl-featured:not(#pk-b1):not(#pk-b2):not(#pk-b3) {
  --btn-ink: #002819; --btn-paper: #ffffff; /* botó: criteri únic */
  background: #ffffff !important;
  background-image: none !important;
}
html body.article-page .rl-featured__container,
html body.article-page .rl-featured__inner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ── Articles: foto de capçalera amb la seva proporció ───────────────────── */
html body.article-page {
  --pk-hero-h: min(640px, calc(72vh / var(--z, 1)));
}
html body.article-page .rl-featured__img[style*="--pk-ratio"] {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--pk-ratio);
  width: min(100%, calc(var(--pk-hero-h) * var(--pk-ratio)));
  background-size: cover !important;
  background-position: center !important;
  border-radius: 10px;
}

/* Fitxes de projecte: el segell Passivhaus a la cantonada de la foto, no del contenidor */
html body.article-page .rl-featured__container > .rl-cert-badge[style*="--pk-ratio"] {
  right: auto !important;
  left: calc(min(100%, var(--pk-hero-h) * var(--pk-ratio)) - 58px) !important;
}

/* (12 nov 2026) Titulí i botons: tokens.css, CRITERI ÚNIC DE COMPONENTS. */
html body.article-page .article-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 0 !important;
}

/* Portada: la secció de targetes sempre blanca */
html body #lectures.blog-cards-only.blog-cards-only:not(#pk-b1):not(#pk-b2) {
  --btn-ink: #002819; --btn-paper: #ffffff; /* botó: criteri únic */
  background: #ffffff !important;
}
/* Fotos verticals dins el marc 16:10: es retallen per sota, no pel cap */
html body #lectures.blog-cards-only .hp-posts-cards .rl-featured__card-visual img[width][height] {
  object-position: center 30%;
}

@media (max-width: 600px) {
  html body.article-page .article-foot { justify-content: flex-start; }
  html body.article-page .article-foot :is(.article-foot__back, .article-foot__pdf) { flex: 1 1 auto; }
}
