/* Full-bleed, image-only catalog banner. */
body.catalog-page .catalog-intro.is-wide {
  height: 303px;
  min-height: 303px;
  max-height: 303px;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}
body.catalog-page .catalog-intro.is-image-banner {
  background: transparent;
}
body.catalog-page .catalog-intro.is-image-banner::before,
body.catalog-page .catalog-intro.is-image-banner::after { display: none; }
body.catalog-page .catalog-intro.is-wide > .intro-art.is-wide {
  width: 100%;
  height: 301px;
  min-height: 301px;
  max-height: 301px;
  aspect-ratio: auto;
  background: #cbb99e;
}
body.catalog-page .catalog-intro.is-image-banner > .intro-art.is-image-banner {
  isolation: isolate;
  height: 301px;
  min-height: 301px;
  max-height: 301px;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 10px;
}
.intro-campaign-image,
.home-banner-stage,
.home-banner-slide,
.home-banner-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro-campaign-image { object-fit: cover; }
.catalog-intro.is-wide .intro-campaign-image { object-position: center 54%; }
.intro-wide-cta {
  position: absolute;
  z-index: 3;
  bottom: clamp(14px, 3vw, 32px);
  left: clamp(14px, 3vw, 32px);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 8px;
  padding: 7px 9px 7px 15px;
  background: var(--catalog-forest);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.intro-wide-cta:hover { background: #1c3026; color: #fff; text-decoration: none; }
.intro-wide-cta span { font-size: 1.1rem; }

.home-banner-stage { overflow: hidden; }
.home-banner-slide {
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
  visibility: hidden;
}
.home-banner-slide.is-active { opacity: 1; pointer-events: auto; visibility: visible; }
.home-banner-slide > img { display: block; object-fit: cover; object-position: center; }
.home-banner-controls {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  padding: 3px;
  background: rgba(25, 31, 27, .68);
  backdrop-filter: blur(8px);
}
.home-banner-arrow,
.home-banner-toggle,
.home-banner-dots button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 700 1rem/1 var(--font-sans);
}
.home-banner-arrow:hover,
.home-banner-toggle:hover,
.home-banner-dots button:hover { background: rgba(255, 255, 255, .16); }
.home-banner-dots { display: flex; align-items: center; }
.home-banner-dots button { width: 26px; }
.home-banner-dots button::before { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .68); content: ""; }
.home-banner-dots button[aria-current="true"]::before { width: 14px; border-radius: 999px; background: #fff; }
.home-banner-controls button:focus-visible,
.intro-wide-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(35, 47, 39, .7); }

/* Homepage editor controls and current image set. */
.admin-page .homepage-hero-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-page .homepage-hero-radio-field { display: block; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; }
.admin-page .homepage-hero-radio-field legend { padding: 0 5px; font-size: .83rem; font-weight: 700; }
.admin-page .homepage-hero-radio-field ul,
.admin-page .homepage-hero-radio-field > div[id^="id_"] { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.admin-page .homepage-hero-radio-field > div[id^="id_"] > div { min-width: 0; }
.admin-page .homepage-hero-radio-field li > label,
.admin-page .homepage-hero-radio-field > div[id^="id_"] > div > label {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f7f8f5;
  color: var(--ink);
  cursor: pointer;
  font-size: .87rem;
  font-weight: 650;
  line-height: 1.35;
}
.admin-page .homepage-hero-radio-field label:has(input[type="radio"]:checked) { border-color: var(--forest); background: #edf2eb; }
.admin-page .homepage-hero-radio-field label:has(input[type="radio"]:focus-visible) { outline: 3px solid rgba(89, 103, 81, .18); outline-offset: 2px; }
.admin-page .homepage-hero-radio-field input[type="radio"] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  accent-color: var(--forest);
}
.admin-page .homepage-hero-slide-count { display: block; margin: 0; color: var(--muted); font-size: .84rem; }
.admin-page .homepage-hero-slide-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.admin-page output.homepage-hero-slide-count { margin-top: 7px; }
.admin-page .homepage-hero-remove-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 12px; }
.admin-page .homepage-hero-remove-card { display: grid; min-width: 0; gap: 6px; margin: 0; color: var(--ink); font-size: .82rem; }
.admin-page .homepage-hero-remove-thumb { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 9px; background: #e9e3d8; }
.admin-page .homepage-hero-remove-thumb > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .15s ease, filter .15s ease; }
.admin-page .homepage-hero-remove-thumb > input[type="checkbox"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-page .homepage-hero-remove-button { position: absolute; z-index: 2; top: 6px; right: 6px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 999px; background: rgba(25,31,28,.76); color: #fff; cursor: pointer; font-size: 1.65rem; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.admin-page .homepage-hero-remove-button:hover { background: #8e3e31; }
.admin-page .homepage-hero-remove-thumb > input:focus-visible + .homepage-hero-remove-button { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(89,103,81,.72); }
.admin-page .homepage-hero-remove-pending { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: none; padding: 7px 8px; background: rgba(119,48,38,.88); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
.admin-page .homepage-hero-remove-thumb > input:checked ~ .homepage-hero-remove-pending { display: block; }
.admin-page .homepage-hero-remove-thumb:has(> input:checked) > img { opacity: .55; filter: grayscale(.8); }
.admin-page .homepage-hero-remove-thumb > input:checked + .homepage-hero-remove-button { background: #9b493b; }
.admin-page .homepage-hero-remove-card figcaption { color: var(--muted); }
.admin-page .homepage-hero-upload-note { max-width: 72ch; }
.admin-page .homepage-hero-remove-slides { min-width: 0; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.admin-page .homepage-hero-remove-slides legend { padding: 0 5px; font-size: .84rem; font-weight: 700; }
.admin-page .homepage-hero-remove-slides > .muted { margin: 0 0 9px; font-size: .82rem; line-height: 1.45; }
.admin-page .homepage-hero-slide-count.is-over-limit { color: #8e3e31; font-weight: 700; }
.admin-page .homepage-hero-upload-selection { display: block; min-height: 1.3em; overflow-wrap: anywhere; color: var(--forest-deep); font-size: .8rem; }

@media (prefers-reduced-motion: reduce) { .home-banner-slide { transition: none; } }
@media (max-width: 720px) {
  .admin-page .homepage-hero-mode-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .intro-wide-cta { bottom: 12px; left: 12px; min-height: 42px; font-size: .78rem; }
  .home-banner-controls { right: 8px; bottom: 8px; left: 8px; justify-content: center; gap: 3px; padding: 2px; }
  .home-banner-arrow,
  .home-banner-toggle { width: 42px; height: 42px; }
  .home-banner-dots button { width: 28px; height: 42px; }
}
@media (max-width: 359px) {
  .home-banner-dots { display: none; }
  .home-banner-controls { right: 50%; left: auto; width: max-content; transform: translateX(50%); }
}
