@layer ficha {

@scope (.cos-ficha) {

:scope { --realce: var(--il-rosa); --realce-fosc: var(--il-lila); --realce-suau: var(--il-cel); }
.pg { height: 100%; display: grid; gap: 4mm; }
.po-p1 { grid-template-rows: minmax(0, 2.1fr) minmax(0, 1fr); }
.po-p2 { grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); }
.pg > .ex { min-height: 0; }


.po-portades { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4mm; }
.po-portada { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 2mm; padding: 2mm; border: var(--gruix) solid var(--realce-fosc); border-radius: var(--radi); }
.po-foto { width: 100%; aspect-ratio: 1 / 1; display: grid; }
.po-titol { text-align: center; padding: 1mm 0; font-size: 1em; font-weight: 800; line-height: 1.2; background: var(--realce-suau); border-radius: 6px; }
.po-ops { display: grid; align-content: space-evenly; gap: .5mm; font-weight: 700; font-size: .75em; }


.po-uneix { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16mm; }
.po-col { min-height: 0; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 2.5mm; }
.po-un-titol, .po-un-pred { display: flex; align-items: center; gap: 3mm; padding: 0 4mm; font-size: 1em; font-weight: 700; line-height: 1.2; border: var(--gruix) solid var(--realce-fosc); border-radius: var(--radi); }
.po-un-titol { justify-content: space-between; background: var(--realce-suau); }
.po-un-pred { background: var(--paper); }


.po-conte { height: 100%; display: grid; grid-template-columns: 62mm minmax(0, 1fr); gap: 5mm; }
.po-foto2 { width: 62mm; aspect-ratio: 5 / 9; display: grid; }
.po-frases { min-height: 0; display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 2mm; }
button.po-frase { font: inherit; font-size: 1.05em; text-align: center; padding: 0 4mm; font-weight: 700; color: var(--tinta); background: var(--paper); border: var(--gruix) solid var(--realce-fosc); border-radius: var(--radi); }
button.po-frase.on { background: var(--realce-suau); border-style: double; border-width: 1.2mm; }


.po-obert { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 3mm; }

}
}
