/* Heritage Fields Farm: birds near the farm. Loaded only by /birds.
   Colours and fonts come from site.css. The card look follows the iris cards (iris.css). */
.birds__top { display: grid; gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
@media (min-width: 900px) { .birds__top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* Bird of the day */
.bird-day { display: grid; grid-template-columns: clamp(110px, 30%, 200px) minmax(0, 1fr); gap: clamp(14px, 2.4vw, 26px); align-items: center; padding: clamp(12px, 1.8vw, 18px); border-radius: 24px; border: 1px solid rgba(190, 150, 60, 0.4);
	background: radial-gradient(120% 140% at 0% 0%, #fffaf0 0%, #f7efd9 70%, #f1e6c8 100%); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(35, 43, 28, 0.05); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.bird-day:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bird-day 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: #f6e8d0; }
.bird-day__label { display: block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #9a6a12; }
.bird-day__name { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.1; color: var(--green-deep); margin: 4px 0 2px; }
.bird-day__sci { display: block; font-style: italic; color: var(--muted); font-size: 0.95rem; }
.bird-day__note { display: block; margin-top: 10px; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.bird-day__more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--green); }

/* Live numbers */
.birds__live { background: #fffdf8; border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 12px; }
.birds__big { margin: 0; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 1.05rem; line-height: 1.35; }
.birds__big b { font-family: var(--serif); font-weight: 600; color: var(--green-deep); font-size: clamp(3rem, 7vw, 4.4rem); line-height: 0.9; }
.birds__big span b { font-family: inherit; font-size: inherit; line-height: inherit; color: var(--ink); font-weight: 700; }
.birds__latest { margin: 0; color: var(--ink); }
.birds__latest b { font-weight: 700; }
.birds__rare h3 { margin: 6px 0 8px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.birds__rare h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #d9a12a; box-shadow: 0 0 0 3px rgba(217, 161, 42, 0.25); flex: none; }
.birds__rare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.birds__rare li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.birds__rare li button { font: inherit; font-weight: 700; color: var(--green); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(31, 92, 54, 0.35); }
.birds__rare li button:hover { text-decoration-color: currentColor; }
.birds__rare li span { color: var(--muted); font-size: 0.92rem; }
.birds__rare-note { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }
.birds__updated { margin: auto 0 0; padding-top: 6px; color: var(--muted); font-size: 0.86rem; }
.birds__off { background: #fffdf8; border: 1px dashed rgba(52, 69, 42, 0.3); border-radius: 24px; padding: clamp(16px, 2.4vw, 26px); color: var(--muted); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.birds__off b { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.birds__off p { margin: 0; }

/* Filters and the card grid */
.birds__count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; margin: 0 0 20px; color: var(--muted); font-size: 1.05rem; }
.birds__count b { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.15rem; }
.birds__count .birds__n b { font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; margin-right: 6px; }
.birds__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.birds__filters button { font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, 0.6); color: var(--ink); border: 1.5px solid rgba(52, 69, 42, 0.3); padding: 9px 18px; border-radius: 999px; }
.birds__filters button[hidden] { display: none; }
.birds__filters button:hover { border-color: var(--green); }
.birds__filters button[aria-pressed="true"] { border-color: var(--ink); border-width: 2.5px; padding: 8px 17px; background: #fff; }
.birds__filters button:focus-visible, .bird-card:focus-visible, .bird-day:focus-visible, .birds__more button:focus-visible, .birds__rare button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.birds__filters i { width: 11px; height: 11px; border-radius: 50%; background: #3c9a5f; box-shadow: 0 0 0 3px rgba(60, 154, 95, 0.22); flex: none; }
.birds__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.6vw, 18px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .birds__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .birds__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1120px) { .birds__grid { grid-template-columns: repeat(6, 1fr); } }
.birds__grid > li { display: flex; scroll-margin-top: 110px; }
.birds__grid > li[hidden] { display: none; }
.bird-card { position: relative; display: flex; flex-direction: column; width: 100%; background: #fffdf8; border: 1px solid var(--line); border-radius: 20px; padding: 10px 10px 14px; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(35, 43, 28, 0.05); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.bird-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bird-card img, .birdd__art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 13px; border: 1px solid rgba(120, 96, 60, 0.16); background: radial-gradient(120% 90% at 30% 20%, #fbf2e0 0%, #f6e8d0 60%, #f1dfc3 100%); }
.bird-card__name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.15; margin: 12px 4px 2px; color: var(--ink); }
.bird-card:hover .bird-card__name { color: var(--green); }
.bird-card__sci { margin: 0 4px; font-style: italic; color: var(--muted); font-size: 0.84rem; line-height: 1.25; }
.bird-card__when { margin: auto 4px 0; padding-top: 10px; font-size: 0.84rem; color: var(--muted); }
.bird-card__seen { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(23, 64, 42, 0.86); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; }
.bird-card__seen::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8fe0a8; }
.bird-card__seen[hidden] { display: none; }
.birds__none { font-size: 1.05rem; color: var(--muted); }
.birds__note { margin: 22px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 86ch; }

/* Species reported nearby that we have no painting of yet */
.birds__more { margin-top: clamp(26px, 4vw, 44px); }
.birds__more h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 4px; }
.birds__more p { margin: 0 0 14px; color: var(--muted); }
.birds__more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.birds__more button { font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; background: #fffdf8; color: var(--ink); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.birds__more button:hover { border-color: var(--green); color: var(--green); }
.birds__more button.is-rare { border-color: #d9a12a; background: #fdf6e0; }

/* Links out */
.birds__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .birds__links { grid-template-columns: repeat(3, 1fr); } }
.birds__links a { display: block; height: 100%; background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: inherit; text-decoration: none; }
.birds__links a:hover { border-color: var(--green); }
.birds__links b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--green-deep); }
.birds__links span { display: block; color: var(--muted); margin-top: 3px; font-size: 0.95rem; }

/* Details card */
dialog.birdd { border: 0; padding: 0; width: min(95vw, 1040px); max-height: min(93vh, 900px); border-radius: var(--radius); background: linear-gradient(160deg, #f6f3e2 0%, #eef2e2 100%); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55); overflow: hidden; }
dialog.birdd[open] { display: flex; flex-direction: column; }
dialog.birdd::backdrop { background: rgba(18, 24, 14, 0.72); }
.birdd__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--green-deep); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.birdd__x:hover { background: var(--wheat); }
.birdd__body { overflow-y: auto; overscroll-behavior: contain; padding: clamp(16px, 3vw, 30px); display: grid; gap: clamp(16px, 3vw, 30px); }
@media (min-width: 820px) { .birdd__body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: start; } .birdd__art { position: sticky; top: 0; } }
.birdd__art { margin: 0; position: relative; }
.birdd__art img { border-radius: 18px; }
@media (max-width: 819px) { .birdd__art { max-width: 300px; margin-inline: auto; width: 100%; } }
.birdd__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; }
.birdd__blank { aspect-ratio: 1; border-radius: 18px; border: 1.5px dashed rgba(120, 96, 60, 0.4); background: radial-gradient(120% 90% at 30% 20%, #fbf2e0 0%, #f6e8d0 60%, #f1dfc3 100%); display: grid; place-items: center; text-align: center; color: #8a7350; padding: 20px; font-size: 0.92rem; }
.birdd__blank svg { width: 42%; height: auto; display: block; margin: 0 auto 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.birdd__head { padding-right: 46px; }
.birdd__head h2 { margin: 0 0 4px; font-family: var(--sans); font-weight: 800; letter-spacing: -0.01em; font-size: clamp(1.8rem, 4.4vw, 2.5rem); line-height: 1.05; }
.birdd__sci { margin: 0; font-style: italic; color: var(--muted); font-size: 1.02rem; }
.birdd__tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.birdd__tags li { padding: 4px 11px; border-radius: 999px; background: var(--sand); font-size: 0.88rem; font-weight: 600; }
.birdd__tags li.is-rare, .birdd__tags li.is-day { background: var(--wheat); }
.birdd__tags li.is-seen { background: #dcefe0; color: #17402a; }
.birdd__tiles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.birdd__tiles li { background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.birdd__tiles span { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.birdd__tiles b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.2; margin-top: 3px; overflow-wrap: break-word; }
.birdd__panel { margin-top: 12px; background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px; }
.birdd__row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.birdd__row:last-child { border-bottom: 0; }
.birdd__row h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.birdd__row p { margin: 0; color: var(--muted); }
.birdd__src { margin: 12px 2px 0; font-size: 0.82rem; color: var(--muted); }
.birdd__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .bird-card, .bird-day { transition: none; } .bird-card:hover, .bird-day:hover { transform: none; } }

.birds__live[hidden], .birds__off[hidden], .birds__rare[hidden] { display: none; }

/* The visitor's own Farm Passport: a tick on each bird they have seen, and the strip in a bird's card. */
.bird-card__mine { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--wheat); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(15, 51, 32, 0.3); }
.bird-card__mine::after { content: ""; position: absolute; left: 9px; top: 5px; width: 7px; height: 13px; border: solid var(--green-deep); border-width: 0 3px 3px 0; transform: rotate(42deg); }
.bird-card__mine[hidden] { display: none; }
.birds__mine { margin: -6px 0 20px; color: var(--muted); }
.birds__mine b { color: var(--ink); }
.birds__mine a { font-weight: 700; white-space: nowrap; }
.birds__filters i.is-mine { background: var(--wheat); box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.3); }
.birdd__pass { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 12px; padding: 14px 18px; border-radius: 18px; background: #fff7dd; border: 1.5px dashed #d9b64a; }
.birdd__pass.is-mine { background: #e6f2e4; border: 1.5px solid #9cc5a3; }
.birdd__pass p { margin: 0; flex: 1 1 220px; min-width: 0; }
.birdd__pass p b { display: block; font-family: var(--serif); font-size: 1.12rem; }
.birdd__pass p span { display: block; font-size: 0.9rem; color: var(--muted); }
.birdd__pass-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.birdd__back { font: inherit; font-size: 0.9rem; background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.birdd__medal { flex: none; width: 64px; height: 64px; 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; }
.birdd__pass.is-mine .birdd__medal { border-color: #fff8e0; box-shadow: 0 0 0 4px #e0aa1e, 0 4px 10px rgba(15, 51, 32, 0.25); filter: none; opacity: 1; }
.birdd__pass p { flex-basis: 170px; }
.birdd__told { margin: 10px 2px 0; font-size: 0.9rem; font-weight: 600; color: var(--green); }
.birdd__told:empty { display: none; }

/* ---- Did you know: birds are dinosaurs (foot of the page) ---- */
.dino .section-head .lede { max-width: 62ch; color: #e6ecdc; }
.dino__top { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .dino__top { grid-template-columns: 1.15fr 1fr; gap: 44px; } }
.dino__fig { margin: 0; background: #fbf6ea; border-radius: 22px; padding: 18px 16px 14px; box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.6); }
.dino__fig figcaption { margin-top: 8px; font-size: 0.86rem; color: #5d5544; text-align: center; }
.dino__tree { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; font-family: var(--sans); }
.dino__lines path { fill: none; stroke: #b9ad92; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dino__live { fill: none; stroke: #d99a12; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.dino__dot { fill: #d99a12; }
.dino__node text { font-size: 10.5px; fill: #7a6f58; font-weight: 600; letter-spacing: 0.02em; }
.dino__node .dino__root { font-family: var(--serif); font-size: 15px; fill: var(--green-deep); letter-spacing: 0; }
.dino__tip text { font-size: 12.5px; fill: #4d4636; }
.dino__tip .is-live { font-weight: 700; fill: var(--green-deep); }
.dino__why h3, .dino__h { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 0 0 10px; }
.dino__why p { margin: 0 0 12px; color: #e6ecdc; font-size: 1.05rem; line-height: 1.6; }
.dino__h { margin: 44px 0 16px; }
.dino__steps, .dino__clues { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dino__steps { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .dino__steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.dino__steps li { background: #fbf6ea; color: var(--ink); border-radius: 18px; padding: 10px 10px 14px; display: flex; flex-direction: column; box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.6); }
.dino__steps img { width: 100%; height: auto; border-radius: 12px; display: block; margin-bottom: 10px; }
.dino__steps li:last-child { outline: 3px solid #e0aa1e; outline-offset: -3px; }
.dino__when { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #a3690a; padding: 0 4px; }
.dino__steps b { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--green-deep); padding: 0 4px; line-height: 1.2; margin: 2px 0 4px; }
.dino__steps li > span:last-child { font-size: 0.93rem; color: #4a5245; padding: 0 4px; line-height: 1.45; }
@media (min-width: 620px) { .dino__clues { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .dino__clues { grid-template-columns: repeat(5, 1fr); } }
.dino__clues li { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 18px; padding: 16px; }
.dino__clues svg { width: 44px; height: 44px; display: block; margin-bottom: 8px; fill: none; stroke: var(--wheat); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dino__clues b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.dino__clues span { font-size: 0.94rem; color: #dfe6d4; line-height: 1.5; }
.dino__src { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.88rem; color: #cfd8c4; }
.dino__src p { margin: 0 0 8px; }
.dino__src ul { margin: 0; padding-left: 18px; }
.dino__src a { color: #fff; }
