.contest-banner {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--rk-radius-sm);
  background: var(--rk-paper-2);
  container-type: inline-size;
}
.contest-banner-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; min-height: clamp(190px, 17.1cqw, 320px); max-width: 64%; margin-inline-end: auto; padding: 22px 32px; }
.contest-banner-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--rk-ink-soft); font-size: 13px; font-weight: 650; margin-block-end: 10px; }
.contest-banner-phase { padding: 2px 9px; border-radius: 99px; background: var(--rk-emerald-soft); color: var(--rk-ink); }
.contest-banner-title { max-width: 24ch; font-family: var(--rk-font-display); font-size: clamp(26px, 3.15cqw, 46px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--rk-ink); margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.contest-banner-dates { display: grid; gap: 3px; margin-block-start: 12px; color: var(--rk-ink-soft); font-size: clamp(14px, 1.35cqw, 19px); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.contest-banner-dates:empty { display: none; }
.contest-banner-dates p { margin: 0; }
.contest-banner-actions { position: absolute; z-index: 2; inset-block-start: 20px; inset-inline-end: 24px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 34%; }
.contest-banner-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 1px solid var(--rk-line); border-radius: 8px; padding: 10px 20px; font: inherit; font-size: 14px; font-weight: 750; line-height: 1.4; color: var(--rk-ink); background: var(--rk-surface); box-shadow: var(--rk-shadow-card); text-decoration: none; cursor: pointer; }
/* White text needs the deeper ink: --rk-emerald gives it only 3.2:1 (2026-10-21). */
.contest-banner-button.is-primary { color: var(--rk-surface); background: var(--rk-emerald-ink); border-color: var(--rk-emerald-ink); }
.contest-banner-button.is-primary:hover { background: var(--rk-emerald-ink-hover); border-color: var(--rk-emerald-ink-hover); }
.contest-banner-button:focus-visible { outline: 2px solid var(--rk-emerald); outline-offset: 4px; }
.contest-banner-button:disabled { opacity: .55; cursor: default; }
.contest-banner-media { position: absolute; inset: 0; pointer-events: none; }
.contest-banner-media img { position: absolute; inset-block-start: 0; inset-inline-end: 0; display: block; width: auto; height: 100%; max-width: none; }
.contest-banner.is-text-only .contest-banner-copy { max-width: 100%; }
.contest-banner-media[hidden] { display: none; }
.contest-banner.is-compact .contest-banner-copy { min-height: clamp(180px, 17.1cqw, 300px); }
.contest-banner-stack { display: grid; gap: 18px; margin-block-start: 24px; }
[dir="rtl"] .contest-banner-button > span { transform: scaleX(-1); }
/* Opt-in (Discover): actions under the dates, in the copy block's flow, at every width. */
.contest-banner.is-inline-actions .contest-banner-actions { position: static; inset: auto; width: auto; max-width: none; padding: 0; margin-block-start: 20px; }
@media (max-width: 760px) {
  .contest-banner-copy, .contest-banner.is-compact .contest-banner-copy { max-width: 100%; min-height: 0; padding: 24px 22px 16px; }
  .contest-banner-title, .contest-banner.is-compact .contest-banner-title { font-size: 26px; max-width: 26ch; }
  .contest-banner-eyebrow { font-size: 12px; }
  .contest-banner-dates { font-size: 14px; }
  .contest-banner-media { opacity: .14; }
  .contest-banner-media img { inset-block-start: auto; inset-block-end: 0; height: 180px; }
  .contest-banner-actions { position: relative; inset: auto; max-width: none; width: 100%; padding: 0 22px 24px; }
  .contest-banner-button { flex: 1; min-height: 44px; }
  .contest-banner.is-inline-actions .contest-banner-actions { position: static; width: 100%; padding: 0; }
}
/* Image-only poster (Kim 2026-10-30): a fixed 6:1 strip, so a tall image cannot push the page down. Designers work to
   that ratio because the words are part of the picture; other ratios crop evenly top and bottom. The live copy returns
   only if the image fails. Buttons, when the page leaves them here, go under the picture. */
.contest-banner.is-image-only { background: transparent; }
.contest-banner.is-image-only .contest-banner-copy { display: none; }
.contest-banner.is-image-only .contest-banner-media { position: static; }
.contest-banner.is-image-only .contest-banner-media img { position: static; width: 100%; height: auto; aspect-ratio: 6 / 1; object-fit: cover; border-radius: var(--rk-radius-sm); }
.contest-banner.is-image-only .contest-banner-actions { position: static; justify-content: flex-end; width: auto; max-width: none; padding: 12px 0 0; }
@media (max-width: 760px) { .contest-banner.is-image-only .contest-banner-media { opacity: 1; } .contest-banner.is-image-only .contest-banner-media img { height: auto; } }
