/* Competition process cards share rows and equal-width ACSS actions. */
.ch-competition-hub__process > .ch-competition__timeline {
  grid-template-columns: var(--grid-1);
}
.ch-competition-hub__process > .ch-competition__timeline > li {
  grid-column: auto;
  grid-row: span 3;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr);
  min-inline-size: 0;
  inline-size: auto;
  justify-self: stretch;
  align-content: stretch;
}
@media (min-width: 48rem) {
  .ch-competition-hub__process > .ch-competition__timeline {
    grid-template-columns: var(--grid-3);
  }
}
.ch-competition-hub__process .ch-competition-hub__entry-action {
  display: flex;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  margin-block: 0;
  align-self: stretch;
}
.ch-competition-hub__process .ch-competition-hub__entry-action > .btn--primary {
  box-sizing: border-box;
  flex: 1 1 0;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: calc(2lh + 2 * var(--btn-padding-block));
  block-size: 100%;
  white-space: normal;
}

/* Recognition items keep native numbering, with ACSS space between them. */
.ch-competition-hub .ch-competition-hub__prizes {
  display: grid;
  gap: var(--space-xs);
}

/* Keep the recognition note aligned to the card's padded content frame. */
.ch-competition-hub .ch-competition-hub__sponsor-note {
  max-inline-size: none;
  inline-size: 100%;
  text-align: center;
}

/* Use the white theme token within this existing ACSS contextual surface. */
.ch-competition-hub__round-feature.bg--light {
  --bg-light: var(--white);
}

/* Native disclosure controls, fed from the existing published FAQ library. */
.ch-competition-hub__faq {
  --bg-ultra-light: var(--white);
  display: grid;
  gap: var(--space-m);
}
.ch-competition-hub__faq-list { border-block-start: 1px solid var(--primary); }
.ch-competition-hub__faq-item { border-block-end: 1px solid var(--primary); }
.ch-competition-hub__faq-item > summary {
  padding: var(--space-s);
  min-block-size: var(--btn-height, 44px);
  font-weight: 700;
  cursor: pointer;
}
.ch-competition-hub__faq-item > summary:focus-visible {
  outline: var(--focus-width, 2px) solid var(--primary);
  outline-offset: var(--focus-offset, 2px);
}
.ch-competition-hub__faq-answer {
  padding: 0 var(--space-s) var(--space-s);
  max-inline-size: 70ch;
  overflow-wrap: anywhere;
}
.ch-competition-hub__faq-link { justify-self: start; }

/* Requested Competition theme artwork/caption frame only. Shared seam stays one token wide. */
.ch-competition-hub .ch-competition-hub__theme-art { border: 0; }
.ch-competition-hub .ch-competition-hub__theme-art > img,
.ch-competition-hub .ch-competition-hub__theme-art > figcaption {
  box-sizing: border-box;
  border: var(--border-size) var(--border-style) var(--primary);
  border-radius: var(--radius-none);
}
.ch-competition-hub .ch-competition-hub__theme-art > figcaption { border-block-start: 0; }

/* Font-relative underline offset keeps wrapped journey labels clear. */
.ch-competition-app .ch-competition-journey__link:is(:hover, :focus-visible, [aria-current="page"]) {
  text-underline-offset: 0.15em;
  text-decoration-skip-ink: auto;
}

/* Current-round hero navigation: status first, Vote now to its right. */
.ch-competition-hub__vote-now {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-xs);
}
.ch-competition-hub__vote-now > .ch-competition-hub__round-state {
  min-inline-size: 0;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 0.5em;
  white-space: nowrap;
}
.ch-competition-hub__vote-now > .btn--primary {
  flex: 0 0 auto;
}

/* Decorative native voting icon; slow opacity breathing only while voting is open. */
.ch-competition-hub__vote-now .ch-competition-hub__round-state > span[aria-hidden="true"] {
  flex: 0 0 auto;
  inline-size: 1.5em;
  block-size: 1.5em;
  border-radius: 0;
  background: var(--primary);
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 13V3h10v10M10 7l2 2 3-3M7 11H4l-2 5v5h20v-5l-2-5h-3M2 16h20M8 13h8'/%3E%3C/svg%3E");
  animation: ch-hub-voting-breathe 2.2s ease-in-out infinite;
}
@keyframes ch-hub-voting-breathe {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-competition-hub__vote-now .ch-competition-hub__round-state > span[aria-hidden="true"] {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 22rem) {
  .ch-competition-hub__vote-now { grid-template-columns: 1fr; }
  .ch-competition-hub__vote-now > .btn--primary { justify-self: start; }
}
