.marketing { padding: 32px 0; background: var(--ecla-background, #dce0da); }
.marketing[hidden] { display: none; }
.marketing__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.marketing__eyebrow { color: var(--ecla-terracotta, #97502e); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.marketing__heading h2 { margin: 7px 0; color: var(--ecla-emerald, #164e40); font: 400 clamp(1.7rem, 3vw, 2.5rem) var(--ecla-heading, Georgia); }
.marketing__heading p { color: var(--ecla-muted, #526057); font-size: .88rem; margin: 0; }
.marketing__viewport { position: relative; }
.marketing__controls { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.marketing__controls button { position: absolute; top: 42%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 5px; border: 0; border-radius: 50%; color: var(--ecla-emerald, #164e40); background: rgba(232,235,229,.94); background-clip: content-box; cursor: pointer; pointer-events: auto; font-size: .8rem; }
.marketing__controls button:first-child { left: -10px; }
.marketing__controls button:last-child { right: -10px; }
.marketing__controls button[hidden] { display: none; }
.marketing__controls button:hover { color: var(--ecla-emerald-dark); background-color: rgba(232,235,229,1); }
.marketing__position { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.marketing__autoplay { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--ecla-border); border-radius: 50%; background: transparent; color: var(--ecla-emerald); cursor: pointer; font-size: .75rem; }
.marketing__autoplay[hidden] { display: none; }
.marketing__autoplay:hover { background: var(--ecla-paper); }
.marketing__rail { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: none; scrollbar-width: none; padding-bottom: 12px; }
.marketing__rail::-webkit-scrollbar { display: none; }
.marketing-card { flex: 0 0 clamp(250px, 28vw, 350px); min-width: 0; scroll-snap-align: start; overflow: hidden; border-radius: var(--ecla-radius); background: var(--ecla-paper, #e8ebe5); }
.marketing-card__poster { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: var(--ecla-linen, #d1d7ce); overflow: hidden; }
.marketing-card__poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.marketing-card__body { padding: 16px; }
.marketing-card__body h3 { font: 400 1.25rem var(--ecla-heading, Georgia); color: var(--ecla-emerald, #164e40); margin: 0 0 8px; overflow-wrap: anywhere; }
.marketing-card__body p { color: var(--ecla-muted, #526057); font-size: .82rem; line-height: 1.6; margin: 0 0 12px; }
.marketing-card__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ecla-emerald, #164e40); font-size: .75rem; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.marketing-admin-thumb { width: 64px; height: 84px; object-fit: contain; border-radius: var(--ecla-radius); }
.marketing-editor__preview { display: block; width: min(100%, 420px); max-height: 500px; object-fit: contain; margin: 16px 0; }
.marketing-editor__preview[hidden] { display: none; }
.marketing-editor { display: grid; gap: 14px; max-width: 780px; }
.marketing-editor label { display: grid; gap: 7px; }
.marketing-editor input, .marketing-editor textarea { padding: 12px; min-width: 0; }
.marketing-editor .marketing-editor__publish { display: flex; align-items: center; gap: 10px; }
.marketing-editor__publish input { width: 18px; min-height: 18px; }
@media (max-width: 600px) {
  .marketing { padding: 24px 0; }
  .marketing__heading { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .marketing__heading p { font-size: .78rem; }
  .marketing__rail { gap: 12px; }
  .marketing-card { flex-basis: 82%; }
}

/* Placeholder cards hold the section's height until the offers arrive. */
.marketing-card--placeholder { pointer-events: none; }
.marketing-card--placeholder .marketing-card__poster,
.home-page .marketing-card--placeholder .marketing-card__poster { background: var(--ecla-linen, #d1d7ce); border-radius: var(--ecla-radius) var(--ecla-radius) 0 0; }
.marketing-card--placeholder .marketing-card__body span { display: block; height: 12px; margin: 6px 0 12px; border-radius: 6px; background: var(--ecla-linen, #d1d7ce); }
.marketing-card--placeholder .marketing-card__body span:first-child { width: 70%; height: 18px; margin-top: 4px; }
.marketing-card--placeholder .marketing-card__body span:nth-child(2) { width: 90%; }
.marketing-card--placeholder .marketing-card__body span:last-child { width: 40%; height: 14px; margin: 20px 0 15px; }
.marketing.is-loading .marketing-card--placeholder { animation: marketing-placeholder 1.4s ease-in-out infinite alternate; }
@keyframes marketing-placeholder { from { opacity: 1; } to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .marketing.is-loading .marketing-card--placeholder { animation: none; } }
