@layer ficha {

@scope (.cos-ficha) {

:scope { --realce: var(--il-herba); --realce-fosc: var(--il-verd-fosc); --realce-suau: var(--il-groc); }
.pg { height: 100%; display: grid; gap: 4mm; }
.cn-p1 { grid-template-rows: minmax(0, 1fr); }
.cn-p2 { grid-template-rows: auto minmax(0, 1fr); }
.pg > .ex { min-height: 0; }


.cn-conte { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 4mm; }
.cn-banner { width: 100%; aspect-ratio: 9 / 4; display: grid; }
.cn-frases { min-height: 0; display: grid; grid-template-rows: repeat(7, minmax(0, 1fr)); gap: 2.5mm; }
button.cn-frase { font: inherit; text-align: left; padding: 0 5mm; font-size: var(--t-l); font-weight: 700; color: var(--tinta); background: var(--paper); border: var(--gruix) solid var(--realce-fosc); border-radius: var(--radi); }
button.cn-frase.on { background: var(--realce-suau); border-style: double; border-width: 1.2mm; }


.cn-llocs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5mm; }
.cn-lloc { display: grid; gap: 2mm; padding: 2mm; border: var(--gruix) solid var(--realce); border-radius: var(--radi); }
.cn-foto { width: 100%; aspect-ratio: 1 / 1; display: grid; }
.cn-nom { text-align: center; font-size: var(--t-l); font-weight: 800; }
.cn-volums { display: grid; gap: 2mm; padding: 0 2mm 1mm; font-weight: 700; }


.cn-obert { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 3mm; }

}
}
