/* Our layer on top of the design's own CSS (everything else in this folder is
   copied from the design repo unchanged): what is switched off, the page
   rhythm, and the parts driven by the platform (real brands, applications). */

/* ---- Switched off ----------------------------------------------------------
   Sections: the "how it works" walkthrough, "Creator work" (content formats,
   platforms and campaign rules) and "Where do we start?". Also the slider
   controls (shuffle / previous / pause / next) and the notes around the post
   feed; the sliders still pause on hover and can be dragged.
   All of it stays in the markup because the design's scripts (app.js,
   upgrade.js, experience.js) look these elements up at load and stop working
   if they are missing. */
.workflow,.brand-section,.start-section{display:none!important}
.partner-controls,.feed-toolbar,.feed-bottom{display:none!important}

/* ---- Page rhythm -----------------------------------------------------------
   One ground and one rhythm for the whole page: every section sits on the
   same white (no washes or gradient steps, hero and closing band included),
   has the same space above and below, and is separated from the next by a
   hairline the width of the content column. */
:root{--section-space:clamp(52px,6.5vw,96px);--split-gap:clamp(32px,5vw,64px)}
.hero,.x-stream,.closing-section{background:#fff!important}
.hero-wash{display:none!important}
.experience-strip,.x-stream{border-bottom:0!important}
.x-stream,.campaigns-section,.faq-section{padding-block:var(--section-space)!important}
.x-feed-window{padding-bottom:12px!important}
.experience-strip,.x-stream,.campaigns-section,.faq-section,.closing-section,.site-footer{position:relative}
.experience-strip::before,.x-stream::before,.campaigns-section::before,.faq-section::before,.closing-section::before,.site-footer::before{
  content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:min(1280px,100vw - 48px);height:1px;background:var(--line);pointer-events:none}

/* ---- Brand application dialog ----------------------------------------------
   The note that used to sit between the last field and the button is gone, and
   took the gap with it. */
.application-dialog .application-submit{margin-top:24px}
.application-dialog .form-feedback{margin:20px 0 0}

/* ---- Explore campaigns -----------------------------------------------------
   Same split as the FAQ below it: heading on the left, content on the right,
   so the two sections read as one system and the row has no dead space. */
.campaigns-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:var(--split-gap);align-items:start}
.campaigns-section .campaigns-heading{margin:0}
.campaigns-section .campaigns-heading h2{font-size:clamp(32px,3.1vw,44px);letter-spacing:-1.6px;line-height:1.1}
.campaign-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.campaigns-section .campaign-list .campaign-card{width:auto;min-width:0;max-width:none;min-height:0;display:flex;flex-direction:column;gap:0}
.campaign-list .campaign-card-body{flex:1;display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:18px}
.campaign-list .campaign-action{margin-top:auto;padding-top:4px}
.campaign-list .campaign-project h3{font-size:18px;letter-spacing:-.4px}
.campaign-list .campaign-logo{width:40px;height:40px}
.campaign-action form{margin:0}
.campaign-logo-initials{display:grid;place-items:center;flex:none;border-radius:50%;background:var(--ice);color:var(--cobalt);font-weight:700}
.campaign-status{margin:0;padding:12px 16px;border-radius:9px;background:var(--ice);color:var(--ink);font-size:13px;line-height:1.4;text-align:center}
.campaign-status[data-status="rejected"]{background:#f3f5f7;color:var(--muted)}
.campaign-card:not(.campaign-card-soon){transition:border-color .25s var(--ease),box-shadow .25s var(--ease),transform .25s var(--ease)}
.campaign-card:not(.campaign-card-soon):hover{border-color:rgba(36,107,253,.45);box-shadow:0 18px 36px -22px rgba(36,107,253,.5);transform:translateY(-2px)}

/* A programme that hasn't opened yet: the same card, quietened down. */
.campaign-card-soon{border-style:dashed!important;background:transparent!important}
.campaign-cover-soon{display:grid;place-items:center;background:linear-gradient(135deg,var(--ice),#fff)}
.campaign-cover-soon img{opacity:.3}
.campaign-card-soon .campaign-project h3,.campaign-card-soon .campaign-logo-initials{color:var(--muted)}
.campaign-status[data-status="soon"]{background:transparent;border:1px dashed var(--line);color:var(--muted)}

/* The FAQ takes the campaigns' columns, so both right-hand blocks start on
   the same line. Below this width the design's own stacking takes over. */
@media(min-width:1101px){
  .faq-section{grid-template-columns:minmax(0,1fr) minmax(0,2fr)!important;gap:var(--split-gap)!important}
  .faq-section .faq-heading h2{font-size:clamp(32px,3.1vw,44px);letter-spacing:-1.6px;line-height:1.1}
}
@media(max-width:1100px){
  .campaigns-section{grid-template-columns:minmax(0,1fr);row-gap:28px}
  .campaigns-section .campaigns-heading h2 br{display:none}
}
/* Stacked narrower, one placeholder is enough. */
@media(max-width:820px){
  .campaign-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .campaigns-section .campaign-list .campaign-card-soon+.campaign-card-soon{display:none}
}
@media(max-width:560px){
  .campaign-list{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
  .campaign-card:not(.campaign-card-soon){transition:none}
  .campaign-card:not(.campaign-card-soon):hover{transform:none}
}
html[data-motion="reduced"] .campaign-card:not(.campaign-card-soon):hover{transform:none}

/* ---- Creator dialog --------------------------------------------------------*/
.creator-campaign-logo[hidden]{display:none}
.creator-account-view a.button{width:100%;justify-content:center;margin-top:24px}
a.creator-logout{text-align:center;text-decoration:none}
a.creator-logout:hover{text-decoration:underline}
