/* Reference photographs (references.js). Variables fall back so the app, which defines other names, still reads. */
.refp{margin:0;border-radius:14px;overflow:hidden;background:var(--glass,rgba(255,255,255,.04));border:1px solid var(--hair2,rgba(255,255,255,.12));display:flex;flex-direction:column}
.refp .refimg{display:block;background:#0b1015}
.refp img{display:block;width:100%;height:auto}
.refp figcaption,.refp.refmiss{padding:11px 14px 13px;display:flex;flex-direction:column;gap:7px}
/* The heading names its colour because index.html's body never does: inherited, it was the browser's black on the plate's
   rgba(6,8,11,.94) box, measured at 1.07:1 (Build 55). --eco-ink is the sibling pages' text token; the fallback is #plateName's. */
.refp h4{margin:0;font-weight:400;font-size:18px;line-height:1.2;color:var(--eco-ink,rgba(255,255,255,.94))}
.refp .refcredit,.refp .nores{margin:0;font-family:var(--ui,system-ui,sans-serif);font-weight:300;font-size:11px;letter-spacing:.06em;color:var(--dim,#a9b1b9);line-height:1.6}
.refp .nores{border:0;padding:0}
.refp a{color:inherit;text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(255,255,255,.35)}
.refp .refin,.refp .refout{align-self:flex-start;font-family:var(--ui,system-ui,sans-serif);font-size:10px;letter-spacing:.14em;text-transform:uppercase}
.refp .refin{color:#8fcf9b}
.refp .refout{color:var(--mute,#8a929a)}
.refp .refnc{display:block;opacity:.8}
.refpair{display:grid;gap:clamp(12px,1.6vw,20px);grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.refpair.one{grid-template-columns:minmax(0,1fr)}
@media (max-width:640px){.refpair{grid-template-columns:minmax(0,1fr)}}
/* Over a feed card (regions.js) and over the region plate (app-card.js). */
.refbox{position:absolute;left:10px;right:10px;top:72px;z-index:6;max-height:min(72vh,560px);overflow:auto;background:rgba(6,8,11,.92);border-radius:14px}
.refbox[hidden],#plateRefBox[hidden],#plateRef[hidden]{display:none}
#plateRefBox{position:absolute;left:12px;bottom:92px;width:min(46%,420px);max-height:70%;overflow:auto;z-index:7;background:rgba(6,8,11,.94);border-radius:14px}
@media (max-width:640px){#plateRefBox{width:auto;right:12px;bottom:84px}}
#cardSpecies .refrow{display:flex;gap:7px;margin-top:8px}
#cardSpecies .refrow .refp{flex:1 1 0;min-width:0}
#cardSpecies .refrow .refp h4{font-size:11px}
#cardSpecies .refrow .refp .refcredit{font-size:9px}
.refbox .refp img{position:static;inset:auto;height:auto;object-fit:initial}
