/* Sits directly under the collection intro, which renders on white. Without a
   tint and rules of its own the two run together as one block, so the promo
   reads as part of the page header rather than as a distinct offer. */
.clover-promo-brother {
  background: rgba(4, 51, 130, 0.04);
  border-bottom: 1px solid rgba(4, 51, 130, 0.1);
  border-top: 1px solid rgba(4, 51, 130, 0.1);
  margin-top: 1.5rem;
  padding: 2.5rem 0 2.25rem;
}

.clover-promo-brother__inner {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.clover-promo-brother__eyebrow {
  color: rgb(var(--warm-amber));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.clover-promo-brother__title {
  color: rgb(var(--clover-navy));
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.clover-promo-brother__dates {
  color: rgb(var(--clover-azure));
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.clover-promo-brother__desc {
  color: rgba(4, 51, 130, 0.72);
  font-size: 1rem;
  line-height: 1.6;
}

.clover-promo-brother__desc p {
  margin: 0 0 0.75rem;
}

.clover-promo-brother__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Element+class selectors: SHOPLINE ships a global `a { color: ... }` rule that
   is more specific than a bare class, so a plain `.clover-promo-brother__cta`
   loses and the label renders dark on the azure fill. Same fix as
   `.clover-header a.clover-header__quote-cta`. */
.clover-promo-brother a.clover-promo-brother__cta,
a.clover-promo-brother__cta {
  background: rgb(var(--clover-azure));
  border-radius: 0.5rem;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.clover-promo-brother a.clover-promo-brother__cta:hover,
.clover-promo-brother a.clover-promo-brother__cta:focus-visible,
a.clover-promo-brother__cta:hover,
a.clover-promo-brother__cta:focus-visible {
  background: rgb(var(--clover-navy));
  color: #fff;
}

/* Secondary action: a filled button in its own right, just visually quieter
   than the azure primary. Terms are a legal read, not the thing we want
   clicked most, but it should still read as a button. */
.clover-promo-brother a.clover-promo-brother__cta--ghost,
a.clover-promo-brother__cta--ghost {
  background-color: #fff;
  border: 1px solid rgba(4, 51, 130, 0.22);
  box-shadow: 0 1px 2px rgba(4, 51, 130, 0.08);
  color: rgb(var(--clover-navy));
}

.clover-promo-brother a.clover-promo-brother__cta--ghost:hover,
.clover-promo-brother a.clover-promo-brother__cta--ghost:focus-visible,
a.clover-promo-brother__cta--ghost:hover,
a.clover-promo-brother__cta--ghost:focus-visible {
  background-color: rgba(4, 51, 130, 0.06);
  border-color: rgba(4, 51, 130, 0.45);
  color: rgb(var(--clover-navy));
}

.clover-promo-brother__figure {
  margin: 0;
}

.clover-promo-brother a.clover-promo-brother__figure-link,
a.clover-promo-brother__figure-link {
  cursor: zoom-in;
  display: block;
  position: relative;
  text-decoration: none;
}

.clover-promo-brother__zoom {
  background-color: rgba(4, 51, 130, 0.85);
  border-radius: 0.375rem;
  bottom: 0.75rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  left: 50%;
  letter-spacing: 0.02em;
  opacity: 0;
  padding: 0.4rem 0.85rem;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.clover-promo-brother__figure-link:hover .clover-promo-brother__zoom,
.clover-promo-brother__figure-link:focus-visible .clover-promo-brother__zoom {
  opacity: 1;
}

/* The flyer is a portrait A4 (1400x1812). Left uncapped it makes this section
   roughly a full viewport tall and pushes the tagged promo product grid below
   the fold, which is the wrong priority on a collection page. Cap it and let
   readers open the full-size asset. */
.clover-promo-brother__image {
  border: 1px solid rgba(4, 51, 130, 0.1);
  border-radius: 0.75rem;
  display: block;
  height: auto;
  max-height: 26rem;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  width: 100%;
}

/* Terms modal, driven by :target so it works with JavaScript disabled.
   Scoped per section id, so concurrent promotions each own their own terms
   rather than sharing one ambiguous page-level panel. */
/* Longhand offsets and an explicit background-color: SHOPLINE's asset pipeline
   drops the `inset` shorthand here, which collapsed the scrim to 0x0 and left
   the modal with no dimmed backdrop. */
.clover-promo-brother__modal {
  align-items: center;
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 1.5rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.clover-promo-brother__modal:target {
  display: flex;
}

/* The scrim is an <a> (so it closes without JS), which means SHOPLINE's global
   anchor rules outrank a bare class and reset its background. Element+class,
   same fix as the CTA. */
.clover-promo-brother a.clover-promo-brother__modal-scrim,
a.clover-promo-brother__modal-scrim {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-color: rgba(4, 51, 130, 0.55);
  bottom: 0;
  cursor: pointer;
  display: block;
  height: 100%;
  left: 0;
  position: fixed;
  right: 0;
  text-decoration: none;
  top: 0;
  width: 100%;
  z-index: 0;
}

.clover-promo-brother__modal-panel {
  background: #fff;
  border: 1px solid rgba(4, 51, 130, 0.14);
  border-top: 4px solid rgb(var(--warm-amber));
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(4, 51, 130, 0.32);
  color: rgba(4, 51, 130, 0.78);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-height: 80vh;
  max-width: 44rem;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Artwork lightbox: the flyer is portrait, so size to viewport height and let
   the panel shrink-wrap it rather than using the text panel's 44rem cap. */
.clover-promo-brother__modal-panel--media {
  max-width: min(96vw, 60rem);
  padding: 1rem;
  text-align: center;
  width: auto;
}

.clover-promo-brother__modal-image {
  border-radius: 0.375rem;
  display: block;
  height: auto;
  max-height: 78vh;
  max-width: 100%;
  width: auto;
}

.clover-promo-brother__modal-heading {
  color: rgb(var(--clover-navy));
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-right: 4rem;
}

.clover-promo-brother a.clover-promo-brother__modal-close {
  background: rgba(4, 51, 130, 0.06);
  border-radius: 0.5rem;
  color: rgb(var(--clover-navy));
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1.25rem;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
}

.clover-promo-brother a.clover-promo-brother__modal-close:hover,
.clover-promo-brother a.clover-promo-brother__modal-close:focus-visible {
  background: rgba(4, 51, 130, 0.12);
  color: rgb(var(--clover-navy));
}

.clover-promo-brother__terms-body p {
  margin: 0 0 0.75rem;
}

.clover-promo-brother__terms-body p:last-child {
  margin-bottom: 0;
}

.clover-promo-brother__terms-body ul {
  columns: 2;
  column-gap: 2.5rem;
  list-style: disc;
  margin: 0;
  padding-left: 1.1rem;
}

.clover-promo-brother__terms-body li {
  break-inside: avoid;
  margin-bottom: 0.6rem;
  padding-left: 0.15rem;
}

.clover-promo-brother__terms-body strong {
  color: rgb(var(--clover-navy));
}

@media (max-width: 48rem) {
  .clover-promo-brother__terms-body ul {
    columns: 1;
  }
}

@media (max-width: 48rem) {
  .clover-promo-brother__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .clover-promo-brother__figure {
    order: -1;
  }
}
