@layer ficha {

@scope (.cos-ficha) {

.p1 { height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 6mm; }
.p1 .ex:first-child .ex-cos { display: flex; }
.p1 .ex:first-child .ex-cos > * { flex: 1; min-width: 0; }
.classes { display: grid; grid-template-rows: auto auto; gap: 3mm; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.colu { display: grid; grid-template-rows: auto 1fr; border: var(--gruix) solid var(--acento); border-radius: var(--radi); background: var(--acento-suau); overflow: hidden; }
.colu h4 { margin: 0; padding: 1mm 3mm; background: var(--acento); color: var(--paper); text-align: center; }
.colu small { font-weight: 400; margin-left: 2mm; }
.colu .zona { border: 0; background: transparent; align-content: flex-start; justify-content: center; padding: 2mm; min-height: 24mm; }
.banc { justify-content: center; }
.banc-t { font-size: var(--t-s); color: var(--tinta-suau); text-transform: uppercase; letter-spacing: .05em; }
.arrossega { font-size: var(--t-m); }

.p1 .ex:last-child .ex-cos { display: flex; }
.taula { flex: 1; display: grid; grid-template-columns: 28mm repeat(4, minmax(0, 1fr)); grid-template-rows: auto repeat(4, minmax(0, 1fr)); min-height: 0; border: 2px solid var(--acento); border-radius: var(--radi); overflow: hidden; background: var(--paper); }
.taula > * { padding: 1mm 1.5mm; border-bottom: 1px solid var(--il-gris); border-right: 1px solid var(--il-gris); display: flex; align-items: center; justify-content: center; }
.taula > .th { background: var(--acento); color: var(--paper); font-weight: 800; font-size: var(--t-xs); text-align: center; line-height: 1.25; border: 0; }
.taula > .nom { background: var(--acento-suau); font-weight: 800; flex-direction: column; gap: 1mm; }
.mini { display: flex; }
.mini > .img, .mini > .img-ph { width: 16mm; aspect-ratio: 1; }
.taula .c { gap: 1mm; white-space: nowrap; font-size: var(--t-s); }
.taula .r { --n: 3; font-weight: 800; width: 2.7em; padding: 0; text-align: center; }

.p2 { height: 100%; display: grid; grid-template-rows: auto auto 1fr; gap: 5mm; }
.p2 .ex:last-child .ex-cos { display: flex; }
.concorda { display: grid; gap: 2mm; }
.concorda p { display: flex; align-items: center; flex-wrap: wrap; gap: 3mm; padding: 1.3mm 4mm; border: var(--gruix) solid var(--linia); border-radius: var(--radi); font-size: var(--t-s); }
.sel { display: inline-flex; gap: 4mm; padding: 0 2mm; border: var(--gruix) dashed var(--acento); border-radius: 999px; background: var(--acento-suau); }
.redaccio { display: grid; grid-template-columns: 52mm 1fr; gap: 3mm 4mm; align-items: stretch; }
.redaccio .banc { grid-column: 1 / 3; }
.foto { border: var(--gruix) solid var(--il-contorn); border-radius: var(--radi); overflow: hidden; display: flex; }
.foto > .img, .foto > .img-ph { width: 100%; height: 100%; aspect-ratio: auto; }
.redaccio .text { line-height: 2.3; }
.redaccio .zona { display: inline-flex; vertical-align: middle; min-width: 4.2em; min-height: 2em; padding: 0; }
.escriu { flex: 1; border: var(--gruix) solid var(--acento); border-radius: var(--radi); background-color: var(--paper); min-height: 0; }

}
}
