/* components/animal-card/animal-card.css — the Antz app's animal card (recordings of 17 Nov), on the kit's tokens (shared/tokens.css). */
.az-ac { position: relative; border-radius: 12px; background: var(--OnPrimary); border: 1.5px solid transparent; box-shadow: 0 4px 14px rgb(from var(--neutralPrimary) r g b / 8%); transition: opacity .15s ease, border-color .15s ease; cursor: default; }
.az-ac[data-act] { cursor: pointer; }
.az-ac[data-act]:active { opacity: .45; }                     /* pressed animation */
.az-ac.is-picked { border-color: var(--Primary); box-shadow: none; }
.az-ac-row { display: flex; align-items: center; gap: 8px; padding: 8px; }
.az-ac-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
/* photo: 104 square, sex tag top left, expand corner bottom right */
.az-ac-ph { position: relative; flex: none; width: 104px; height: 104px; border-radius: 8px; overflow: hidden; background: var(--SecondaryContainer); display: grid; place-items: center; }
.az-ac-ph--big { width: 100%; height: 150px; }
.az-ac-ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.az-ac-ph__sil { width: 78%; height: 78%; object-fit: contain; }
.az-ac-ph__sil--logo { width: 46%; height: 46%; opacity: .55; }
.az-ac-ph--big .az-ac-ph__sil { width: 58%; height: 72%; }
.az-ac-tag { position: absolute; top: 4px; left: 4px; min-width: 24px; height: 24px; padding: 4px 6px; box-sizing: border-box; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: var(--t-small); color: var(--OnPrimary); white-space: nowrap; filter: drop-shadow(0 2px 1px rgb(from var(--neutralPrimary) r g b / 10%)); }
.az-ac-tag img { display: block; transform: scaleY(-1); }
/* gender tags, Figma 38280:31074 (colour over white) */
.az-ac-tag--m { background: var(--Secondary); }
.az-ac-tag--f { background: linear-gradient(rgb(from var(--Tertiary) r g b / 70%), rgb(from var(--Tertiary) r g b / 70%)), var(--OnPrimary); }
.az-ac-tag--ud { background: linear-gradient(rgb(from var(--Error) r g b / 70%), rgb(from var(--Error) r g b / 70%)), var(--OnPrimary); }
.az-ac-tag--id { background: linear-gradient(rgb(from var(--addPrimary) r g b / 60%), rgb(from var(--addPrimary) r g b / 60%)), var(--OnPrimary); }
.az-ac-tag--g { background: linear-gradient(rgb(from var(--OnSurface) r g b / 60%), rgb(from var(--OnSurface) r g b / 60%)), var(--OnPrimary); }
.az-ac-tag--dead { background: var(--OnErrorContainer); }                        /* MD3_Antz/OnErrorContainer */
.az-ac-cites { position: absolute; top: 4px; right: 4px; height: 24px; padding: 4px 6px; box-sizing: border-box; border-radius: 6px; background: rgb(from var(--neutralPrimary) r g b / 40%); box-shadow: 0 2px 2px rgb(from var(--neutralPrimary) r g b / 10%); font: var(--t-small); line-height: 16px; color: var(--OnPrimary); text-shadow: 0 1px 4px rgb(from var(--neutralPrimary) r g b / 25%); }
.az-ac-exp { position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.az-ac-ph--84 { width: 84px; height: 84px; }
.az-ac-ph--big .az-ac-exp { top: 2px; bottom: auto; }
/* expanded photo strip: AAID left, age + weight chips right */
.az-ac-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; background: rgb(from var(--neutralPrimary) r g b / 40%); }
.az-ac-strip__id { font: var(--t-body-title); color: var(--OnPrimary); }
.az-ac-chips { display: flex; gap: 6px; }
.az-ac-chip { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--OnPrimary); font: var(--t-small); color: var(--OnSurfaceVariant); }
.az-ac-chip--w { background: var(--TertiaryContainer); color: var(--Error); }   /* TertiaryContainer + Error */
/* text */
.az-ac-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-self: center; }
.az-ac-top { display: flex; align-items: center; gap: 2px; min-width: 0; }
.az-ac-top .az-ac-l--aaid { flex: 1; }
.az-ac-extra { font: var(--t-body-title); color: var(--OnSurface); }
.az-ac-l { font: var(--t-body-medium); letter-spacing: .1px; color: var(--OnSurfaceVariant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-ac-l--aaid { font: var(--t-body-title); letter-spacing: 0; color: var(--OnPrimaryContainer); }
.az-ac-l--sci { font: var(--t-body-regular); font-style: italic; color: var(--neutralSecondary); }
.az-ac-b--big { gap: 4px; padding: 0 2px 2px; }
.az-ac-d { font: var(--t-body-regular); color: var(--OnSurfaceVariant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-ac-d b { font: var(--t-body-medium); letter-spacing: .1px; }
.az-ac-d i { color: var(--neutralSecondary); }
.az-ac-status { align-self: flex-start; margin-top: 4px; padding: 3px 8px; border-radius: 4px; background: var(--addPrimary); font: var(--t-subtext-title); color: var(--OnPrimary); }
/* trailing control */
.az-ac-ctl { flex: none; display: grid; place-items: center; min-width: 24px; }
.az-ac-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--Outline); box-sizing: border-box; }
.az-ac-radio.is-on { border-color: var(--Primary); box-shadow: inset 0 0 0 3px var(--OnPrimary); background: var(--Primary); }
.az-ac-check { color: var(--OnPrimary); width: 18px; height: 18px; border-radius: 3px; border: 2px solid var(--Outline); box-sizing: border-box; display: grid; place-items: center; }
.az-ac-check.is-on { border-color: var(--Primary); background: var(--Primary); }
.az-ac-remove { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--Error); cursor: pointer; }
.az-ac--big .az-ac-row { align-items: center; }
/* list with "+ N more" */
.az-ac-list { display: flex; flex-direction: column; gap: 8px; }
.az-ac-more { align-self: center; border: 0; background: none; padding: 6px 12px; font: var(--t-body-medium); color: var(--OnPrimaryContainer); cursor: pointer; }
/* skeleton */
.az-ac--sk { box-shadow: none; }
.az-ac-sk__ph { width: 104px; height: 104px; flex: none; border-radius: 8px; }
.az-ac-sk__b { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.az-ac-sk__b i { display: block; height: 10px; border-radius: 5px; }
.az-ac-sk__b i:nth-child(1) { width: 70%; } .az-ac-sk__b i:nth-child(2) { width: 85%; } .az-ac-sk__b i:nth-child(3) { width: 60%; } .az-ac-sk__b i:nth-child(4) { width: 75%; } .az-ac-sk__b i:nth-child(5) { width: 40%; }
.az-ac-sk__ph, .az-ac-sk__b i { background: linear-gradient(90deg, var(--SurfaceVariant) 0%, var(--Background) 50%, var(--SurfaceVariant) 100%); background-size: 200% 100%; animation: ac-sk 1.2s ease-in-out infinite; }
@keyframes ac-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .az-ac-sk__ph, .az-ac-sk__b i { animation: none; } .az-ac { transition: none; } }

.az-ac--sum { cursor: default; }
.az-ac--sum .az-ac-row { align-items: center; }

/* expanded: photo full width on top, then the details (left aligned with the photo) and the control */
.az-ac-top-ph { padding: 8px 8px 0; }
.az-ac-row--big { align-items: center; padding: 10px 8px 10px; }
.az-ac-row--big .az-ac-b--big { align-self: auto; padding: 0; }

/* expand / collapse motion: height glide + content fade (the photo grows on expand, settles on collapse) */
.az-ac--anim { overflow: hidden; transition: height .28s cubic-bezier(.2, .8, .2, 1), border-color .15s ease; }
.az-ac--anim .az-ac-row, .az-ac--anim .az-ac-top-ph { animation: ac-fade .28s ease both; }
.az-ac--opening .az-ac-ph--big { animation: ac-grow .28s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top left; }
.az-ac--closing .az-ac-ph { animation: ac-settle .28s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top left; }
@keyframes ac-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ac-grow { from { transform: scale(.42, .7); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes ac-settle { from { transform: scale(1.35); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .az-ac--anim, .az-ac--anim * { transition: none !important; animation: none !important; } }
