/* Elowen branded cover: shown wherever an item has no uploaded image
   (Library "New in the library" cards, Templates page cards and preview).
   Deep green tinted by the item's accent (--acc), a fine gold inset frame,
   the Elowen tree on a soft cream halo, the wordmark and a short caption
   naming what the item is. Markup: brandCover() in library-landing.js and
   templates.html. */
.ebc {
  --acc: #2F6F4F;
  position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35em; font-size: clamp(11px, 1.05vw, 14px); text-align: center; color: #FBF8F2;
  background:
    radial-gradient(circle at 50% 42%, rgba(229, 198, 151, 0.22), transparent 46%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--acc) 55%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--acc) 38%, #0C1E14) 0%, #0C1E14 60%, #08150E 100%);
}
.ebc::before {  /* fine gold inset frame */
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(229, 198, 151, 0.35); border-radius: 10px; pointer-events: none;
}
.ebc::after {   /* soft light catching the top edge */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
}
.ebc-mark {
  position: relative; display: grid; place-items: center; width: 5.4em; height: 5.4em; border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 249, 246, 0.96) 0%, rgba(250, 249, 246, 0.9) 58%, rgba(250, 249, 246, 0) 72%);
  box-shadow: 0 0 0 1px rgba(229, 198, 151, 0.4), 0 14px 30px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.ebc-mark img { width: 72%; height: auto; display: block; }
.ebc-word { margin-top: 0.55em; font-family: 'Montserrat', sans-serif; font-size: 0.78em; font-weight: 700; letter-spacing: 0.42em; padding-left: 0.42em; color: #E5C697; }
.ebc-rule { width: 2.2em; height: 1px; background: rgba(229, 198, 151, 0.55); }
.ebc-sub { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.05em; color: rgba(251, 248, 242, 0.88); }
a:hover .ebc-mark, .template-grid-card:hover .ebc-mark { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .ebc-mark { transition: none; } }
