/* Weekly PromptUp Challenge page (/challenge/, challengePage() in scripts/build-pages.mjs, week switching in challenge.js).
   The hero is dark in both themes, like the prototype. */
.ch-head { margin: 8px 0 20px; }
.ch-k { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); }
.ch-head p { margin: 6px 0 0; color: var(--ink-muted); font-size: 15px; }

.ch-week[hidden] { display: none; }
.ch-week { display: flex; flex-direction: column; gap: 36px; }

.ch-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border-radius: 28px; background: #17171B; color: #F3F2EE; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.7); }
.ch-hero.no-img { grid-template-columns: 1fr; background: radial-gradient(70% 90% at 100% 0%, rgba(255, 170, 60, 0.32), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(31, 94, 255, 0.28), transparent 60%), #17171B; }
.ch-hero-text { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-chip { padding: 4px 12px; border-radius: 999px; background: #2A2A31; color: #ECECEF; font-size: 13px; font-weight: 600; }
.ch-chip.is-blue { background: #1F5EFF; color: #FFFFFF; }
.ch-h { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.03em; line-height: 1.02; color: #FFFFFF; }
.ch-lede { margin: 0; max-width: 560px; font-size: 17.5px; line-height: 1.55; color: #C4C3CA; }
.ch-lede strong { color: #FFFFFF; }
.ch-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ch-acts .btn { min-height: 50px; padding: 0 22px; border-radius: 12px; font-size: 16px; }
.btn.ch-copy { display: inline-flex; align-items: center; gap: 10px; border: 0; background: #FFFFFF; color: #17171B; font-weight: 700; }
.btn.ch-copy:hover { background: #E7EEFF; }
.btn.ch-copy[hidden] { display: none; }
.btn.ch-ghost { display: inline-flex; align-items: center; border: 1px solid #4A4950; background: transparent; color: #F3F2EE; font-weight: 600; }
.btn.ch-ghost:hover { border-color: #F3F2EE; color: #FFFFFF; }
.ch-hero-art { position: relative; min-height: 380px; overflow: hidden; }
.ch-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* before/after pictures: show only the right-hand "after" half */
.ch-hero-art.is-cmp img { inset: 0 0 0 auto; width: 200%; max-width: none; object-position: 100% 50%; }

.ch-prompt .pp-win .prompt-text { max-height: 300px; }
.ch-prompt-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ch-prompt-acts .btn { display: inline-flex; align-items: center; gap: 8px; }
.ch-prompt-acts .btn[hidden] { display: none; }

.ch-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.ch-sec-head h3 { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
.ch-sec-head span { color: var(--ink-muted); font-size: 14px; }
.ch-picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ch-pick { margin: 0; overflow: hidden; border: 1px solid var(--border-line); border-radius: 18px; background: var(--bg-card); }
.ch-pick img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ch-pick figcaption { padding: 10px 12px; font-size: 14px; font-weight: 600; }
.ch-pick figcaption a { color: var(--ink-primary); }
.ch-pick figcaption span { color: var(--cat-photo-accent); }
.ch-slot { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; min-height: 150px; padding: 20px; border: 1.5px dashed var(--outline); border-radius: 18px; text-align: center; color: var(--ink-secondary); }
.ch-slot p { margin: 0; line-height: 1.5; }
.ch-slot a { font-weight: 600; }

.ch-next-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ch-next-chip { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 11px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.ch-next-chip small { font-weight: 500; opacity: 0.85; }
.ch-next-chip:hover { text-decoration: underline; }
.ch-next-chip.is-orange { background: var(--cat-photo); color: var(--cat-photo-accent); }
.ch-next-chip.is-green { background: var(--cat-video); color: var(--cat-video-accent); }
.ch-next-chip.is-pink { background: var(--cat-text); color: var(--cat-text-accent); }
.ch-next-chip.is-blue { background: var(--accent-light); color: var(--accent-ink); }

.ch-how { margin: 48px 0 8px; scroll-margin-top: 88px; }
.ch-how h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; }
.ch-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ch-steps li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--border-line); border-radius: 20px; background: var(--bg-card); }
.ch-n { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; }
.ch-n.is-blue { color: var(--accent-ink); }
.ch-n.is-orange { color: var(--cat-photo-accent); }
.ch-n.is-green { color: var(--cat-video-accent); }
.ch-steps strong { font-size: 17px; color: var(--ink-primary); }
.ch-steps p { margin: 0; color: var(--ink-secondary); line-height: 1.5; }
.ch-tip { margin: 16px 0 0; color: var(--ink-secondary); line-height: 1.5; }

@media (max-width: 760px) {
  .ch-hero { grid-template-columns: 1fr; border-radius: 22px; }
  .ch-hero-art { order: -1; min-height: 0; aspect-ratio: 1 / 1; }
  .ch-acts .btn { flex: 1 1 auto; justify-content: center; }
}
