/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  PAPIK · Plantilla clàssica en pla (oct 2026)                             ║
   ║  comunitats, glossari i preguntes-frequents (CA). Mateix model que el     ║
   ║  bloc "Trenta anys": sense caixes; targetes → columnes amb hairline verda ║
   ║  a dalt, titulí uppercase, text 15px light; recuadre d'enllaços i cita    ║
   ║  sense fons, només línies; botons-enllaç → text amb línia al cursor.      ║
   ║  Els botons d'enviar formulari continuen sent botons.                     ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

:is(body.page--community, body.page--article) .section--light { background: #ffffff; }
/* Menys menta (27 oct 2026): les seccions consecutives de text són un sol
   document; van totes sobre blanc i les separa un filet verd, no un canvi
   de fons. El bloc final verd (block-cta) tanca la pàgina. */
:is(body.page--community, body.page--article) :is(.section, .article-body) + :is(.section, .article-body) { border-top: 1px solid #002819; }

/* ── Targetes → columnes amb hairline a dalt ───────────────────────────── */
:is(body.page--community, body.page--article) .card-grid { gap: 40px clamp(24px, 3vw, 48px); }
:is(body.page--community, body.page--article) .card,
:is(body.page--community, body.page--article) .card:hover {
  background: none;
  border: 0;
  border-top: 1px solid #002819;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  padding: 20px 0 0;
}
:is(body.page--community, body.page--article) .card .card__icon { display: none; }
:is(body.page--community, body.page--article) .card__title {
  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 14px;
}
:is(body.page--community, body.page--article) .card__excerpt {
  font-size: 15px;
  font-weight: var(--fw-light, 300);
  line-height: 1.6;
  color: #002819;
}

/* ── Recuadre d'enllaços creuats: sense fons, hairline a dalt i a baix ─── */
:is(body.page--community, body.page--article) .cross-links {
  padding: 20px 0;
  background: none;
  border-radius: 0;
  border-top: 1px solid #002819;
  border-bottom: 1px solid #002819;
}
:is(body.page--community, body.page--article) .cross-links li { border-bottom: 0; }

/* ── Cita: sense caixa ─────────────────────────────────────────────────── */
:is(body.page--community, body.page--article) .article-body__content blockquote {
  padding: 28px 0;
  background: none;
  border-radius: 0;
  border-top: 1px solid #002819;
  border-bottom: 1px solid #002819;
  color: #002819;
}

/* ── Taules i FAQ: línies verdes sòlides ───────────────────────────────── */
:is(body.page--community, body.page--article) .data-table th { background: none; }
:is(body.page--community, body.page--article) :is(.data-table th, .data-table td) { border: 0; border-bottom: 1px solid #002819; }
:is(body.page--community, body.page--article) .faq-list { border-top-color: #002819; }
:is(body.page--community, body.page--article) .faq-item { border-bottom-color: #002819; }

/* ── Botons que són enllaços → text amb línia inferior al cursor ───────── */
:is(body.page--community, body.page--article) a:is(.btn-white, .btn-accent) {
  position: relative;
  display: inline-block;
  padding: 4px 0 6px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: var(--fw-regular, 400);
  letter-spacing: 0.01em;
  text-decoration: none;
}
:is(body.page--community, body.page--article) a:is(.btn-white, .btn-accent):hover { background: none; transform: none; }
:is(body.page--community, body.page--article) a:is(.btn-white, .btn-accent)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms ease;
}
:is(body.page--community, body.page--article) a:is(.btn-white, .btn-accent):is(:hover, :focus-visible)::after { transform: scaleX(1); }
@media (hover: none) {
  :is(body.page--community, body.page--article) a:is(.btn-white, .btn-accent)::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  :is(body.page--community, body.page--article) a:is(.btn-white, .btn-accent)::after { transition: none; }
}

/* ═══ Pàgines legals (CA) i plantilla clàssica · marge lateral únic ══════
   Mateix var(--gutter-x) que la resta de la web; contingut fins a 1440px.
   Filets en verd sòlid (sense opacitats). */
:is(body.page--community, body.page--article, body.page--legal) .container {
  width: 100%;
  max-width: calc(1440px + 2 * var(--gutter-x));
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x);
}
body.page--legal .legal-layout { max-width: none; }
body.page--legal .legal-hero { border-bottom-color: #002819; }
body.page--legal .legal-hero__meta .legal-chip + .legal-chip { border-left-color: #002819; }
/* Columna de lectura alineada a l'esquerra, a la vora del marge únic */
:is(body.page--community, body.page--article) .article-body__content { margin-left: 0; margin-right: auto; }
