/* ==========================================================================
   Page banner visuals (loaded after site.css; overrides .tn-banner-visual*)
   - default: original SVG illustration per banner_icon (assets/img/banners/{icon}.svg)
   - .tn-banner-visual--photo: the page's uploaded hero_image, cover + brand overlay
   Wedge geometry and the red edge band come from site.css.
   ========================================================================== */

.tn-banner-visual__art {
  background:
    radial-gradient(60% 70% at 64% 52%, rgba(233, 15, 24, .28) 0%, rgba(233, 15, 24, 0) 70%),
    radial-gradient(90% 100% at 70% 40%, #4a0c11 0%, #26090c 50%, #110708 100%);
}
.tn-banner-visual__art::after { z-index: 0; }
.tn-banner-visual__lines { z-index: 0; opacity: .32; }

/* Illustration: right-aligned in the visible part of the wedge, never under the slanted edge */
.tn-banner-visual__illo {
  position: absolute; z-index: 1; top: 5%; right: 3%;
  width: 74%; height: 90%; max-width: none;
  object-fit: contain; object-position: 60% 55%;
  pointer-events: none; user-select: none;
}

/* Uploaded photo */
.tn-banner-visual--photo .tn-banner-visual__art { background: #1a0b0c; }
.tn-banner-visual__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center;
}
.tn-banner-visual--photo .tn-banner-visual__art::after {
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(233, 15, 24, .55) 0%, rgba(192, 11, 19, .24) 34%, rgba(35, 31, 29, .12) 70%, rgba(35, 31, 29, .22) 100%),
    linear-gradient(0deg, rgba(18, 7, 8, .5) 0%, rgba(18, 7, 8, 0) 55%);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tn-banner-visual__illo { top: 6%; right: 0; width: 84%; height: 88%; object-position: 65% 55%; }
}

/* Mobile: the wedge becomes a slanted strip under the copy; give the art room to read */
@media (max-width: 767px) {
  .tn-banner-visual { height: 176px; clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%); }
  .tn-banner-visual__art { clip-path: polygon(0 calc(22% + 6px), 100% 6px, 100% 100%, 0 100%); }
  .tn-banner-visual__illo { top: 12%; right: 4%; width: 70%; height: 86%; object-position: right 60%; }
}
@media (max-width: 479px) {
  .tn-banner-visual { display: block; height: 150px; }
  .tn-banner-visual__illo { top: 14%; right: 2%; width: 84%; height: 84%; object-position: center 60%; }
}
