/* Heritage Fields Farm: meet the farm animals. Loaded only by /animals.
   Colours and fonts come from site.css. The card look follows the bird and iris cards. */
.animals__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2.2vw, 26px); }
@media (min-width: 700px) { .animals__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .animals__grid { grid-template-columns: repeat(3, 1fr); } }
.animals__grid > li { display: flex; scroll-margin-top: 110px; }
.animal-card { position: relative; display: flex; flex-direction: column; width: 100%; background: #fffdf8; border: 1px solid var(--line); border-radius: 24px; padding: 12px 12px 16px; box-shadow: 0 1px 2px rgba(35, 43, 28, 0.05); }
.animals__grid > li:target .animal-card { border-color: var(--green); box-shadow: var(--shadow); }
.animal-card__art { margin: 0; position: relative; }
.animal-card__art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid rgba(120, 96, 60, 0.16); background: radial-gradient(120% 90% at 30% 20%, #fbf2e0 0%, #f6e8d0 60%, #f1dfc3 100%); }
.animal-card__art figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 11px; border-radius: 999px; background: rgba(27, 36, 23, 0.72); color: #fff; font-size: 0.74rem; font-weight: 600; }
.animal-card__mine { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--wheat); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(15, 51, 32, 0.3); }
.animal-card__mine::after { content: ""; position: absolute; left: 11px; top: 6px; width: 7px; height: 14px; border: solid var(--green-deep); border-width: 0 3px 3px 0; transform: rotate(42deg); }
.animal-card__mine[hidden] { display: none; }
.animal-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 8px 0; }
.animal-card__role { margin: 0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #9a6a12; }
.animal-card h3 { margin: 4px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.12; color: var(--green-deep); }
.animal-card__names { margin: 4px 0 0; font-weight: 700; color: var(--ink); }
.animal-card__ours { margin: 12px 0 0; font-size: 1.05rem; color: var(--ink); }
.animal-card__about { margin: 8px 0 0; color: var(--muted); }
.animal-card__facts { margin: 16px 0 0; border-top: 1px solid var(--line); }
.animal-card__facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.animal-card__facts dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.animal-card__facts dd { margin: 2px 0 0; color: var(--ink); }

/* The visitor's own Farm Passport: the strip at the foot of each card. */
.animal-pass { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: auto; padding: 12px 14px; border-radius: 18px; background: #fff7dd; border: 1.5px dashed #d9b64a; }
.animal-card__gap { flex: 1; min-height: 16px; }
.animal-pass.is-mine { background: #e6f2e4; border: 1.5px solid #9cc5a3; }
.animal-pass__medal { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #f3f4ee; box-shadow: 0 0 0 3px #c5ccbd; filter: grayscale(1) contrast(0.85); opacity: 0.55; }
.animal-pass.is-mine .animal-pass__medal { border-color: #fff8e0; box-shadow: 0 0 0 4px #e0aa1e, 0 4px 10px rgba(15, 51, 32, 0.25); filter: none; opacity: 1; }
.animal-pass p { margin: 0; flex: 1 1 150px; min-width: 0; }
.animal-pass p b { display: block; font-family: var(--serif); font-size: 1.08rem; }
.animal-pass p span { display: block; font-size: 0.88rem; color: var(--muted); }
.animal-pass__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.animal-pass__back { font: inherit; font-size: 0.9rem; background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.animal-pass[hidden] { display: none; }

.animals__tally { margin: -8px 0 22px; color: var(--muted); }
.animals__tally b { color: var(--ink); }
.animals__tally a { font-weight: 700; white-space: nowrap; }
.animals__tally[hidden] { display: none; }
.animals__more { margin: clamp(22px, 3vw, 34px) 0 0; padding: 18px 22px; border-radius: 20px; border: 1px dashed rgba(52, 69, 42, 0.3); background: #fffdf8; color: var(--muted); max-width: 86ch; }
.animals__more b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.animals__note { margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 86ch; }

/* How to say hello */
.animals__manners { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .animals__manners { grid-template-columns: repeat(3, 1fr); } }
.animals__manners li { background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.animals__manners b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--green-deep); }
.animals__manners span { display: block; color: var(--muted); margin-top: 3px; font-size: 0.98rem; }
.animal-pass__act .btn:focus-visible, .animal-pass__back:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
