/* ==========================================================================
   RaveRewards discover (WP2): feed, rails, results, dock, campaign modal and page, groups, join flow.
   Page layout only. Shared components (.card-campaign, .slide, .rail, .modal__*, .rate-tile, .btn, ...) come
   from base.css; this file positions them and adds the dc-* pieces that only discover uses.
   ========================================================================== */

/* ---------- Page shell ---------- */
.page-discover { --toast-bottom: 104px; }
.page-discover main { padding-bottom: 128px; }
/* The help button clears the search pill; while the cookie banner is open the pill rides --cookie-h higher, so the
   button does too (core.js already adds --cookie-fab when the banner itself is under the button) */
@media (max-width: 1023px) { .page-discover { --fab-lift: calc(64px + var(--cookie-h, 0px) - var(--cookie-fab, 0px)); } .page-discover main { padding-bottom: 104px; } }
.dc { position: relative; min-width: 0; }
.dc-rails { padding-top: 8px; }
.dc-section { margin-top: 40px; }
.dc-section:first-child { margin-top: 24px; }
.dc-feed-empty { margin-top: 32px; }
.dc-muted { color: var(--text-3); }

/* Sticky mobile bar: type segmented + Filters (below 1024) */
.dc-mbar { transition: top var(--dur-5) var(--ease-in-out); }
body:has(.nav.is-hidden) .dc-mbar { top: 0; }
.dc-mbar__btn .count { margin-left: 2px; }
@media (min-width: 1024px) { .dc-mbar { display: none; } }

/* ---------- Hero carousel (8.7) ---------- */
.dc-hero { --hero-w: min(calc(100% - 80px), 1760px); --hero-gap: 16px; position: relative; padding-top: 8px; overflow: hidden; outline: none; }
.dc-hero__track { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.dc-hero__sizer { width: var(--hero-w); margin-inline: auto; visibility: hidden; pointer-events: none; }
.dc-hero__slide {
  position: absolute; top: 0; left: 50%; width: var(--hero-w);
  transform: translateX(calc(-50% + var(--d, 0) * (100% + var(--hero-gap))));
  transition: transform 640ms var(--ease-emphasized), opacity var(--dur-5) var(--ease-out), filter var(--dur-5) var(--ease-out);
}
.dc-hero__slide:not(.is-active) { filter: brightness(.62) saturate(.85); }
.dc-hero__slide.is-far { visibility: hidden; opacity: 0; }
.dc-hero__slide.no-anim { transition: none; }
.dc-hero__hit { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.dc-hero__hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.dc-hero .slide__content { z-index: 1; pointer-events: none; }
.dc-hero .slide__content a, .dc-hero .slide__content button { pointer-events: auto; }
.dc-hero__text { min-width: 0; }
.dc-hero .slide__brand .avatar { --avatar-ring: transparent; }
.dc-hero__cta { flex: none; }
.dc-hero__peek { position: absolute; inset: 0; z-index: 3; display: none; cursor: pointer; border-radius: inherit; }
.dc-hero__slide:not(.is-active) .dc-hero__peek { display: block; }
.dc-hero .dots { top: 28px; right: calc((100% - var(--hero-w)) / 2 + 20px); z-index: 4; }
/* Tap targets: each 6px dot answers to a 24px square around it (the base dot clips its hit area with overflow),
   and the dots sit 18px apart so the squares never overlap */
.dc-hero .dots { gap: 18px; padding: 7px 14px; }
.dc-hero .dots__dot { cursor: pointer; overflow: visible; }
.dc-hero .dots__dot::before { inset: -9px; }
.dc-hero.is-single .dc-hero__slide { filter: none; }
.dc-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.dc-hero__plat, .dc-hero__cat {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: var(--r-pill);
  background: var(--glass-media); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 500;
}
.dc-hero__plat { width: 28px; }
.dc-hero__cat { padding: 0 10px; }
@media (max-width: 767px) {
  .dc-hero { --hero-w: calc(100% - 56px); --hero-gap: 12px; padding-top: 12px; }
  .dc-hero .dots { top: 26px; right: calc((100% - var(--hero-w)) / 2 + 14px); }
  .dc-hero .slide__meta { display: none; }
}

/* ---------- Rails ---------- */
.dc-rail-trend { --rail-w: auto; gap: 16px; }
.dc-trend .rank__num { transition: -webkit-text-stroke-color var(--dur-5) var(--ease-out); }
.dc-trend:hover .rank__num { -webkit-text-stroke-color: rgba(255, 176, 32, .7); }
.dc-trend__card {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-media), var(--sh-3); color: #fff; isolation: isolate;
  transition: transform var(--dur-5) var(--ease-out), box-shadow var(--dur-5) var(--ease-out);
}
.dc-trend__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dc-trend__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 9, 12, 0) 58%, rgba(10, 9, 12, .78) 100%); }
.dc-trend__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .dc-trend__card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), var(--sh-4); } }
.dc-trend__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dc-trend__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.dc-trend__org { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-on-media-2); min-width: 0; }
.dc-trend__org .avatar { --avatar-ring: transparent; }
.dc-trend__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-trend__meta { display: flex; flex: none; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--text-on-media-2); font-variant-numeric: tabular-nums; }
.dc-trend__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.dc-trend__rate { color: var(--money); }

/* Top clips: featured campaign on its blurred banner + a strip of vertical clips */
.dc-tc__panel {
  display: grid; grid-template-columns: 426px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px;
  margin-right: calc(var(--gutter) * -1); border-radius: var(--r-2xl) 0 0 var(--r-2xl); background: var(--surface);
  box-shadow: var(--ring-card); overflow: hidden;
}
.dc-tc__feature { position: relative; height: 415px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-media); }
.dc-tc__card { position: absolute; inset: 0; color: #fff; isolation: isolate; transition: opacity 450ms var(--ease-out), visibility 0s linear 450ms; }
.dc-tc__card:not(.is-active) { opacity: 0; visibility: hidden; pointer-events: none; }
.dc-tc__card.is-active { transition-delay: 0s; }
.dc-tc__blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.2); filter: blur(40px) brightness(.8) saturate(1.1); }
.dc-tc__art {
  position: absolute; left: 0; top: 0; width: 100%; height: 62%; object-fit: cover; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%), linear-gradient(180deg, #000 calc(100% - 72px), transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%), linear-gradient(180deg, #000 calc(100% - 72px), transparent 100%);
  mask-composite: intersect;
}
.dc-tc__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 9, 12, .82) 0%, rgba(10, 9, 12, .45) 48%, rgba(10, 9, 12, 0) 72%); pointer-events: none; }
.dc-tc__hit { position: absolute; inset: 0; z-index: 1; }
.dc-tc__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 12px; font-weight: 600; pointer-events: none;
}
.dc-tc__arrows { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; gap: 8px; }
.dc-tc__arrows .icon-btn { --s: 32px; }
.dc-tc__body { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; pointer-events: none; }
.dc-tc__body a { pointer-events: auto; }
.dc-tc__title { font-family: var(--font-ui); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: transform 400ms var(--ease-out); }
.dc-tc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--text-on-media-2); font-variant-numeric: tabular-nums; }
.dc-tc__meta b { color: #fff; font-weight: 600; }
.dc-tc__org { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.dc-tc__org .avatar { --avatar-ring: transparent; }
.dc-tc__desc { margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--text-on-media-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-tc__cta { margin-top: 16px; }
.dc-tc__card:not(.is-active) .dc-tc__title { transform: translateY(6px); }
.dc-tc__strip { position: relative; min-width: 0; align-self: stretch; display: flex; align-items: center; }
.dc-tc__clips { --rail-w: 200px; --container-pad: 4px; gap: 12px; width: 100%; }
.dc-tc__clips:not(.is-active) { display: none; }
.dc-tc__clips.is-entering { animation: dc-fade-in 320ms var(--ease-out); }
/* The strip plays like a playlist (discover.js): one clip at a time fills its bar, then the next visible one starts */
.dc-tc__clips .card-clip__bar::after { animation: none; }
.dc-tc__clips .card-clip.is-playing .card-clip__bar::after { animation: rr-clip var(--clip-dur, 12s) linear 1 both; animation-play-state: running; }
.dc-tc__clips.is-held .card-clip.is-playing .card-clip__bar::after { animation-play-state: paused; }
.dc-tc__clips .card-clip.is-playing .card-clip__media { box-shadow: var(--ring-card), 0 0 0 1px rgba(255, 255, 255, .22), var(--sh-3); }
@keyframes dc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1023px) { .dc-tc__panel { grid-template-columns: 340px minmax(0, 1fr); } .dc-tc__clips { --rail-w: 168px; } }
@media (max-width: 767px) {
  .dc-tc__panel { grid-template-columns: minmax(0, 1fr); margin-right: 0; border-radius: var(--r-lg); padding: 8px 8px 0; }
  .dc-tc__feature { height: 340px; }
  .dc-tc__title { font-size: 22px; }
  .dc-tc__body { left: 20px; right: 20px; bottom: 20px; }
  .dc-tc__clips { --rail-w: 150px; }
}

/* ---------- Grids, load more, skeletons ---------- */
.dc-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1920px) { .dc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .dc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.dc-grid .card-campaign.is-appended { animation: dc-rise-in 420ms var(--ease-out) both; }
@keyframes dc-rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dc-clipgrid { display: grid; gap: 20px 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 767px) { .dc-clipgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
.dc-more { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 24px; min-height: 1px; }
.dc-sentinel { width: 100%; height: 1px; }
.dc-more__end { display: inline-flex; align-items: center; gap: 8px; padding: 16px 0 8px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.dc-more__end .i { color: var(--success); }
.dc-more__error { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.dc-grid .card-campaign--skeleton { min-height: 0; }

/* ---------- Results view (search and filters) ---------- */
.dc-results { padding-top: 24px; }
.dc-results[aria-busy="true"] { opacity: .55; transition: opacity var(--dur-3) var(--ease-out); }
.dc-results__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.dc-results__query { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); overflow-wrap: anywhere; }
.dc-results__count { font-size: 14px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dc-results__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.dc-results__read { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.dc-results__read .i { color: var(--accent); }
.dc-readchip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--border-subtle); font-size: 12px; font-weight: 500; color: var(--text-2); }
.dc-results__block { margin-top: 24px; }
.dc-results__h { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 16px; }
.dc-nomatch { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); font-size: 14px; color: var(--text-2); }
.dc-nomatch .i { color: var(--text-3); margin-top: 2px; flex: none; }
.dc-nomatch b { color: var(--text); font-weight: 600; }
.dc-results .empty, .dc-sectionbody .empty { margin-top: 24px; }

/* ---------- View all pages ---------- */
.dc-subhead { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px var(--gutter); border-bottom: 1px solid var(--border-subtle); }
.dc-subhead__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-subhead__count { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dc-sectionbody { padding-top: 16px; }
.dc-lead { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text-3); max-width: 640px; margin-bottom: 20px; }
.dc-filters-summary { display: flex; align-items: center; gap: 8px; margin: -8px 0 20px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.dc-filters-summary .i { color: var(--accent); }
[data-section-body][aria-busy="true"] { opacity: .55; transition: opacity var(--dur-3); }
.dc-more--button { padding-top: 32px; }

/* ---------- Floating search and filter dock ---------- */
.dc-dockfade { position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-floating-bar) - 1); height: 132px; pointer-events: none; background: linear-gradient(0deg, rgba(14, 14, 18, .92) 0%, rgba(14, 14, 18, .6) 45%, rgba(14, 14, 18, 0) 100%); }
.dc-filters {
  position: fixed; left: 50%; z-index: var(--z-floating-bar); max-width: calc(100vw - 32px);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
.dc-dock.is-open .dc-filters { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dc-filterbar { overflow: visible; gap: 2px; }
.dc-filterbar .seg { flex: none; }
.dc-filterbar .dropdown { flex: none; }
.dc-filterbar .filter-bar__btn { position: relative; }
.dc-caret { opacity: .6; transition: transform var(--dur-3) var(--ease-out); }
.filter-bar__btn[aria-expanded="true"] .dc-caret { transform: rotate(180deg); }
.dc-plats { display: flex; align-items: center; gap: 2px; }
.dc-plat { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background-color var(--dur-2), color var(--dur-2), opacity var(--dur-2); }
.dc-plat .i { width: 16px; height: 16px; }
.dc-plat:hover { background: var(--fill-3); }
.dc-plat[aria-pressed="false"] { color: var(--text-4); }
.dc-plat[aria-pressed="false"] .i { opacity: .55; }
.dc-clear { gap: 8px; }
.dc-clear:disabled { opacity: .3; pointer-events: none; }
.dc-keys { display: inline-flex; gap: 2px; }
.dc-keys kbd { min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; }
@media (max-width: 1023px) { .dc-filters { display: none; } }

/* Menus opening upward from the filter bar */
.dc-menu { min-width: 208px; max-height: min(360px, 60dvh); overflow-y: auto; overscroll-behavior: contain; }
.dc-menu .dropdown__item { min-height: 32px; padding: 6px 10px; font-size: 13px; gap: 10px; }
.dc-radio { flex: none; margin-left: auto; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); transition: box-shadow var(--dur-2); }
.dropdown__item[aria-checked="true"] { color: var(--text); background: var(--fill-1); }
.dropdown__item[aria-checked="true"] .dc-radio { box-shadow: inset 0 0 0 4px var(--accent); }
.dc-menu__rich { align-items: flex-start; }
.dc-menu__txt { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.dc-menu__txt small { font-size: 12px; font-weight: 500; color: var(--text-3); }
.dc-menu__rich .dc-radio { margin-top: 3px; }
.dc-model-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--model-cpm); }
.dc-model-dot--per_post { background: var(--model-per-post); }
.dc-model-dot--retainer { background: var(--model-retainer); }
.dc-menu--cats { width: 288px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.dc-menu__search { padding: 8px; border-bottom: 1px solid var(--border-subtle); flex: none; width: 100%; }
.dc-menu__search .i { left: 20px; }
.dc-menu__scroll { overflow-y: auto; overscroll-behavior: contain; padding: 6px; max-height: 300px; }
.dc-menu__group { font-weight: 600; }
.dc-menu__group .i { width: 14px; height: 14px; color: var(--text-3); }
.dc-menu__niche { padding-left: 34px !important; color: var(--text-2); }
.dc-menu__none { padding: 16px 10px; font-size: 13px; color: var(--text-3); white-space: normal; }

/* Search pill states */
.dc-search { pointer-events: auto; }
.dc-search .dc-search__kbd { flex: none; }
.dc-search .search-float__submit { display: none; }
/* With a query in the pill the submit button stays in place, so focusing the pill (a tap on Clear focuses it first
   on touch screens) never shifts Clear out from under the finger before the click lands */
.dc-search:focus-within .search-float__submit, .dc-search.is-open .search-float__submit,
.dc-search.has-value .search-float__submit { display: grid; }
/* The cookie banner reserves --cookie-h at the bottom (core.js): the dock rides above it while it is open */
.dc-search { bottom: calc(20px + var(--cookie-h, 0px) + env(safe-area-inset-bottom)); }
.dc-filters { bottom: calc(81px + var(--cookie-h, 0px) + env(safe-area-inset-bottom)); }
@media (max-width: 767px) { .dc-search { bottom: calc(12px + var(--cookie-h, 0px) + env(safe-area-inset-bottom)); } }
.dc-search:focus-within .dc-search__kbd, .dc-search.is-open .dc-search__kbd, .dc-search.has-value .dc-search__kbd { display: none; }
.dc-search__clear {
  display: none; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 8px; border-radius: var(--r-pill); flex: none;
  background: var(--fill-4); color: var(--text); font-size: 12px; font-weight: 600;
}
.dc-search__clear:hover { background: var(--fill-5); }
.dc-search__clear .i { width: 12px; height: 12px; stroke-width: 2.25; }
.dc-search.has-value .dc-search__clear { display: inline-flex; }
.dc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
body:has(.overlay .dcm) .dc-dock, body:has(.overlay .dcm) .dc-dockfade, body:has(.overlay--sheet) .dc-search { visibility: hidden; }
@media (max-width: 767px) { .dc-search .dc-search__kbd { display: none; } .dc-search .search-float__submit { width: 36px; height: 36px; } }

/* Mobile filter sheet */
.dc-sheet__head { padding-right: 12px; }
.dc-sheet__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.dc-sheet { padding-bottom: 24px; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-modelcard { text-align: left; width: 100%; }
/* In the sheet the three models sit in one row (title, radio, icon), like the reference; the one line description
   returns from 480 up where the tiles are wide enough to hold it */
.dc-sheet .model-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 479px) { .dc-sheet .model-card__desc { display: none; } .dc-sheet .model-card__title { padding-right: 20px; } }
.dc-modelcard[aria-checked="true"] { background: color-mix(in srgb, var(--m) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m) 40%, transparent); }
.dc-modelcard[aria-checked="true"] .model-card__radio { box-shadow: inset 0 0 0 5px var(--m); background: var(--on-accent); }
.dc-modelcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dc-sheet__search { margin-bottom: 12px; }
.dc-sheet__cats .chip .i { width: 14px; height: 14px; }

/* ---------- Campaign detail (modal and page) ---------- */
.dc-modal { background: var(--surface); }
.dcm { position: relative; min-width: 0; }
.dcm.is-swapping { animation: dc-fade-in 240ms var(--ease-out); }
.dc-media { height: 313px; background: #0B0A0E; isolation: isolate; }
.dc-media img.dc-media__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.2); filter: blur(36px) brightness(.5) saturate(1.15); }
.dc-media img.dc-media__art {
  position: absolute; top: 0; left: 50%; z-index: -1; width: auto; max-width: 100%; height: 100%; object-fit: cover; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.dc-media .modal__media-tl, .dc-media .modal__media-tr, .dc-media .modal__media-cap { z-index: 2; }
/* Banner art carries its own words: a deeper scrim under the caption, and a glass panel behind the description,
   keep the header text readable over any art */
.dc-media::after { background: linear-gradient(0deg, rgba(10, 9, 12, .9) 0%, rgba(10, 9, 12, .62) 34%, rgba(10, 9, 12, 0) 66%); }
.dc-media .dc-media__desc {
  padding: 10px 12px; border-radius: var(--r-md); background: rgba(14, 14, 18, .72); color: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.dc-media__who { min-width: 0; }
.dc-media .slide__brand { margin-bottom: 8px; }
.dc-media .slide__brand .avatar { --avatar-ring: transparent; }
.dc-media .modal__media-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.dc-media__desc { line-height: 1.45; flex: none; width: min(280px, 40%); }
.dc-media__desc-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dc-backpill {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 8px; border-radius: var(--r-pill); color: #fff; font-size: 13px; font-weight: 600;
  background: rgba(14, 14, 18, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.dc-backpill:hover { background: rgba(14, 14, 18, .75); }
.dc-descband { display: none; }
.dc-bar { gap: 12px; }
.dc-bar__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.dc-bar__cta { margin-left: auto; flex: none; display: flex; }
.dc-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); flex: none;
  box-shadow: inset 0 0 0 1px var(--border); color: var(--text); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dc-chip .i { width: 14px; height: 14px; color: var(--text-3); }
.dc-chip--icon { width: 28px; padding: 0; justify-content: center; }
.dc-chip--icon .i { color: var(--text); }
.dc-chip--live { background: var(--success-soft); color: var(--success); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .28); }
.dc-chip--info { background: var(--info-soft); color: var(--info); box-shadow: none; }
.dc-chip--warn { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.dc-chip--warn .i { color: currentColor; }
.dc-chip--neutral { background: var(--fill-2); color: var(--text-2); box-shadow: none; }
.dc-chip__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: rr-pulse 2s var(--ease-out) infinite; }
.dc-chip[data-tip]:focus-visible, .badge-model[data-tip]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Tooltips at the edges of the bar open inward so the modal's rounded edge never clips them */
.dc-bar__chips > [data-tip]:first-child::after { left: 0; transform: translate(0, 4px); }
.dc-bar__cta [data-tip]::after { left: auto; right: 0; transform: translate(0, 4px); }
.dc-bar__chips > [data-tip]:first-child:hover::after, .dc-bar__chips > [data-tip]:first-child:focus-visible::after,
.dc-bar__cta [data-tip]:hover::after, .dc-bar__cta [data-tip]:focus-visible::after { transform: translate(0, 0); }
.dc-cta { display: inline-flex; }
.dc-cta--block { display: flex; width: 100%; }
@media (min-width: 768px) { .dc-bar { overflow: visible; flex-wrap: nowrap; } }

.dc-body { gap: 12px; padding: 16px; }
.dc-partof { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-softer); box-shadow: inset 0 0 0 1px var(--accent-border); font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text-2); transition: background-color var(--dur-2); }
.dc-partof:hover { background: var(--accent-soft); }
.dc-partof > .i:first-child { color: var(--accent-2); flex: none; }
.dc-partof > .i:last-child { margin-left: auto; color: var(--text-3); flex: none; }
.dc-partof b { color: var(--text); font-weight: 600; }
.dc-rates { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.dc-rates .rate-tile__head .dc-muted { margin-left: auto; font-size: 12px; font-weight: 500; }
.dc-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 0 4px; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text-3); }
.dc-note .i { flex: none; margin-top: 2px; }
.dc-pair { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.dc-pair--one { grid-template-columns: minmax(0, 1fr); }
.dc-panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.dc-panel .panel__head { min-height: 48px; padding: 0 16px; }
.dc-panel__title { display: inline-flex; align-items: center; gap: 8px; }
.dc-panel__title .i { color: var(--text-3); }
.dc-panel__aside { font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dc-panel__body { padding: 16px; }
.dc-panel__text { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.dc-panel__empty { padding: 16px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--text-3); }
.dc-budget { padding: 16px 16px 20px; }
.dc-budget__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dc-budget__paid { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.dc-budget__cur { opacity: .5; margin-right: 1px; }
.dc-budget__left { font-size: 14px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-budget__held { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dc-budget__held .i { flex: none; }
.dc-budget__held b { color: var(--text); font-weight: 600; }
.dc-budget__foot { position: relative; overflow: hidden; margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--border-subtle); background: rgba(52, 211, 153, .06); font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text-2); }
.dc-budget__foot b { color: var(--money); font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-budget__foot p { position: relative; z-index: 1; }
.dc-budget__foot--low { background: var(--warn-soft); }
.dc-budget__foot--low b { color: var(--warn); }
.dc-budget__foot--empty { background: var(--fill-1); color: var(--text-3); }
.dc-sparks i { position: absolute; bottom: -4px; width: 3px; height: 3px; border-radius: 50%; background: var(--money); opacity: 0; animation: dc-spark 3.6s linear infinite; }
.dc-sparks i:nth-child(1) { left: 12%; animation-delay: 0s; }
.dc-sparks i:nth-child(2) { left: 26%; animation-delay: 1.1s; }
.dc-sparks i:nth-child(3) { left: 41%; animation-delay: 2.3s; }
.dc-sparks i:nth-child(4) { left: 57%; animation-delay: .6s; }
.dc-sparks i:nth-child(5) { left: 70%; animation-delay: 1.8s; }
.dc-sparks i:nth-child(6) { left: 83%; animation-delay: 2.9s; }
.dc-sparks i:nth-child(7) { left: 94%; animation-delay: 1.4s; }
.dc-budget__foot--low .dc-sparks i { background: var(--warn); }
@keyframes dc-spark { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .75; } 100% { transform: translateY(-44px); opacity: 0; } }
.dc-refs { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.dc-ref { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 10px; color: var(--text); transition: background-color var(--dur-2); }
.dc-ref:hover { background: var(--fill-2); }
.dc-ref__ico { width: 32px; height: 32px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--fill-2); color: var(--text-2); }
.dc-ref__txt { display: flex; flex-direction: column; min-width: 0; }
.dc-ref__label { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-ref__host { font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-ref > .i:last-child { margin-left: auto; flex: none; color: var(--text-3); }
.dc-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.dc-list li::marker { color: var(--text-4); }
.dc-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--text); }
.dc-list + .dc-checks { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.dc-checks li { display: flex; gap: 8px; }
.dc-checks .i { flex: none; margin-top: 2px; color: var(--success); }
.dc-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dc-meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Top clippers with hexagon medals */
.dc-clippers { padding: 24px 8px 8px; }
.dc-clippers__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.dc-clippers__title { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.dc-clippers__avg { font-size: 14px; font-weight: 500; color: var(--text-3); }
.dc-clippers__avg b { color: var(--money); font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-clippers__n { color: var(--text-2); font-variant-numeric: tabular-nums; }
.dc-clippers__grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-clipper { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.dc-clipper__stage { height: 184px; display: grid; place-items: center; border-block: 1px solid var(--border-subtle); background: var(--fill-1); }
.dc-medal { width: 112px; height: auto; overflow: visible; transition: transform var(--dur-5) var(--ease-out); }
.dc-clipper:hover .dc-medal { transform: translateY(-4px) rotate(-3deg); }
.dc-medal__floor { fill: rgba(0, 0, 0, .5); }
.dc-medal--1 .dc-medal__rim { fill: #B8871F; } .dc-medal--1 .dc-medal__face { fill: #F2BF45; } .dc-medal--1 .dc-medal__lit { fill: #FAD98A; } .dc-medal--1 .dc-medal__shade { fill: #D9A331; }
.dc-medal--2 .dc-medal__rim { fill: #868B96; } .dc-medal--2 .dc-medal__face { fill: #C6CAD3; } .dc-medal--2 .dc-medal__lit { fill: #E6E8EE; } .dc-medal--2 .dc-medal__shade { fill: #A7ACB7; }
.dc-medal--3 .dc-medal__rim { fill: #945C34; } .dc-medal--3 .dc-medal__face { fill: #D29161; } .dc-medal--3 .dc-medal__lit { fill: #E8B48A; } .dc-medal--3 .dc-medal__shade { fill: #B8764A; }
.dc-medal__glint { fill: rgba(255, 255, 255, .55); }
.dc-medal__num { font-family: var(--font-display); font-size: 46px; font-weight: 700; fill: rgba(23, 19, 10, .62); letter-spacing: -0.04em; }
.dc-clipper.is-open .dc-medal { opacity: .28; filter: grayscale(1); }
.dc-clipper .clipper-card__foot .avatar { --avatar-ring: var(--surface-2); }
.dc-empty { margin-top: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-subtle); }

/* Performance chart */
.dc-perf { padding: 24px 8px 8px; }
.dc-perf__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.dc-perf__value { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.dc-perf__unit { font-family: var(--font-ui); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-3); }
.dc-perf__sub { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.dc-perf__chart { margin-top: 16px; min-height: 262px; }

/* Make clips with RaveClip */
.dc-raveclip { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding: 20px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.dc-raveclip__mark { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); background: var(--accent-softer); box-shadow: inset 0 0 0 1px var(--accent-border); }
.dc-raveclip__svg { filter: drop-shadow(0 2px 9px rgba(255, 176, 32, .4)); }
.dc-raveclip__txt { min-width: 0; }
.dc-raveclip__txt h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.dc-raveclip__txt p { margin-top: 4px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--text-3); max-width: 520px; }
.dc-raveclip .btn { margin-left: auto; flex: none; }

@media (max-width: 767px) {
  .dc-media { height: 240px; }
  .dc-media .dc-media__desc { display: none; }
  .dc-descband { display: block; padding: 14px 16px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--border-subtle); }
  .dc-rates, .dc-pair { grid-template-columns: minmax(0, 1fr); }
  .dc-bar__cta { width: 100%; }
  .dc-bar__cta .btn { width: 100%; }
  .dc-clippers__grid { gap: 8px; }
  .dc-clipper__stage { height: 104px; }
  .dc-medal { width: 64px; }
  .dc-clipper .clipper-card__head { padding: 10px; font-size: 12px; }
  .dc-clipper .clipper-card__foot { flex-direction: column; align-items: flex-start; justify-content: center; height: auto; gap: 4px; padding: 10px; }
  .dc-clipper .clipper-card__foot .avatar { display: none; }
  .dc-clipper .clipper-card__name { font-size: 13px; width: 100%; }
  .dc-clipper .clipper-card__earned { font-size: 12px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--border); display: inline-flex; align-items: center; }
  .dc-perf__value { font-size: 28px; }
  .dc-raveclip { flex-wrap: wrap; }
  .dc-raveclip .btn { width: 100%; margin-left: 0; }
}

/* ---------- Group list ---------- */
.dcg { padding-bottom: 8px; }
.dcg__lead { display: flex; align-items: flex-start; gap: 10px; padding: 16px 20px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--text-3); }
.dcg__lead .i { color: var(--accent-2); flex: none; margin-top: 2px; }
.dcg__lead b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.dcg__lead b.c-money { color: var(--money); }
.dcg__sep { margin: 0 8px; opacity: .5; }
.dcg__list { list-style: none; margin: 0; padding: 0; }
.dcg-row { display: grid; grid-template-columns: 185px minmax(0, 1fr) 248px; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border-subtle); color: inherit; transition: background-color var(--dur-2); }
.dcg-row:hover { background: var(--fill-1); }
.dcg-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dcg-row__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--fill-2); box-shadow: 0 0 0 1px var(--border-media); }
.dcg-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-drawer); }
.dcg-row:hover .dcg-row__thumb img { transform: scale(1.04); }
.dcg-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dcg-row__title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcg-row__desc { font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcg-row__money { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.dcg-row__money .progress { flex: 1; max-width: 278px; }
.dcg-row__budget { font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dcg-row__budget b { color: var(--text); font-weight: 600; }
.dcg-row__pills { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.dcg-row__pills .pills { --pill-ring: var(--surface); }
.dcg-row:hover .dcg-row__pills .pills { --pill-ring: #1B1B21; }
.dcg-pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: var(--fill-3); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dcg-pill .i { width: 13px; height: 13px; color: var(--text-2); }
@media (max-width: 767px) {
  .dcg-row { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .dcg-row__pills { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .dcg-row__desc { -webkit-line-clamp: 1; }
}

/* ---------- Join, apply and invite ---------- */
.dcm--join { min-height: 420px; }
.dcm-join__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border-subtle); }
.dcm-join__body { padding: 28px 32px 32px; }
.dc-mini { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.dc-mini__img { width: 96px; height: 54px; flex: none; border-radius: var(--r-sm); object-fit: cover; background: var(--fill-2); box-shadow: 0 0 0 1px var(--border-media); }
.dc-mini__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dc-mini__org { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); min-width: 0; }
.dc-mini__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.dc-mini__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.dc-mini__plats { display: flex; margin-top: 2px; }
.dc-mini .pill-cpm { --pill-ring: var(--surface); }
.dc-join__lead { max-width: 560px; }
.dc-join__ico { width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; display: grid; place-items: center; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--text-2); }
.dc-join__ico--accent { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-border); color: var(--accent-2); }
.dc-join__ico--success { background: var(--success-soft); box-shadow: none; color: var(--success); }
.dc-join__ico--info { background: var(--info-soft); box-shadow: none; color: var(--info); }
.dc-join__title { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; outline: none; text-wrap: balance; }
.dc-join__sub { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--text-2); }
.dc-facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dc-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text-2); }
.dc-facts .i { flex: none; margin-top: 3px; color: var(--text-3); }
.dc-facts b { color: var(--money); font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-join__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.dc-steps { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dc-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.dc-step__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-3); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dc-step.is-done .dc-step__n { background: var(--success-soft); color: var(--success); }
.dc-step__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-step__txt b { font-size: 14px; font-weight: 600; }
.dc-step__txt span { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text-3); }
.dc-apply { margin-top: 24px; }
.dc-acct { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); cursor: pointer; transition: background-color var(--dur-2), box-shadow var(--dur-2); }
.dc-acct:hover { background: var(--fill-2); }
.dc-acct:has(input:checked) { background: var(--accent-softer); box-shadow: inset 0 0 0 1px var(--accent-border); }
.dc-acct.is-disabled { opacity: .6; cursor: not-allowed; }
.dc-acct__ico { width: 32px; height: 32px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--fill-3); }
.dc-acct__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dc-acct__txt b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.dc-acct__txt span { font-size: 12px; font-weight: 500; color: var(--text-3); }
.dc-apply__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.dc-apply__note { display: flex; align-items: flex-start; gap: 8px; max-width: 380px; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--text-3); }
.dc-apply__note .i { flex: none; margin-top: 2px; }
.dc-summary { display: grid; gap: 14px; margin-top: 20px; padding: 16px; border-radius: var(--r-md); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.dc-summary dt { font-size: 12px; font-weight: 500; color: var(--text-3); }
.dc-summary dd { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text); }
.dc-similar { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.dc-similar__title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.dc-similar .dc-grid { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.dcj { max-width: 880px; margin: 0 auto; padding: 24px var(--gutter) 80px; }
.dcj__card { padding: 24px; border-radius: var(--r-2xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-3); }
.dcj__card > .dc-mini { padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--border-subtle); }
.dc-backlink { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; padding: 4px 8px 4px 4px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--text-3); transition: color var(--dur-2), background-color var(--dur-2); }
.dc-backlink:hover { color: var(--text); background: var(--fill-2); }
.dc-invite__tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent-2); }
@media (max-width: 767px) {
  .dcm-join__body { padding: 24px 16px 28px; }
  .dcj { padding-top: 16px; }
  .dcj__card { padding: 20px 16px; border-radius: var(--r-xl); }
  .dc-mini .pill-cpm { display: none; }
  .dc-join__title { font-size: 22px; }
  .dc-join__actions .btn { flex: 1 1 100%; }
  .dc-step { grid-template-columns: 28px minmax(0, 1fr); }
  .dc-step > .btn { grid-column: 2; justify-self: start; }
  .dc-apply__foot .btn { width: 100%; }
}

/* ---------- Standalone page and compact header ---------- */
.page-campaign main { padding-bottom: 48px; }
.dcp { max-width: 880px; margin: 0 auto; padding: 16px var(--gutter) 48px; }
.dcp--narrow { max-width: 760px; }
.dcp__sheet { background: var(--surface); border-radius: var(--r-2xl); box-shadow: inset 0 0 0 1px var(--border), var(--sh-3); overflow: clip; --pill-ring: var(--surface); --avatar-ring: var(--surface); }
.dcp__sheet--pad { padding: 0; }
.dcp .dc-bar { top: var(--nav-h); transition: top var(--dur-5) var(--ease-in-out); }
body:has(.nav.is-hidden) .dcp .dc-bar { top: 0; }
.dcp__dock { display: none; }
.dcp__compact { display: none; }
@media (max-width: 767px) {
  .page-campaign { --fab-lift: 76px; }
  /* the fixed join dock covers the bottom of the viewport: the page ends that much lower, so the footer's last
     row (Privacy, terms, Cookie choices) scrolls clear of it; the dock itself rides above the cookie banner */
  body.site:has(.dcp__dock) { padding-bottom: calc(80px + var(--cookie-h, 0px) + env(safe-area-inset-bottom)); }
  .dcp { padding: 0 0 24px; }
  .dcp__sheet { border-radius: 0; box-shadow: none; }
  .dcp .dc-bar { position: static; }
  .dcp .dc-bar__cta { display: none; }
  .dcp__dock { display: block; position: fixed; left: 0; right: 0; bottom: var(--cookie-h, 0px); z-index: var(--z-floating-bar); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--glass-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--border-subtle); }
  .dcp__dock .btn { width: 100%; }
  .dcp__compact {
    display: flex; position: fixed; left: 0; right: 0; top: 0; z-index: calc(var(--z-nav) - 1); height: 56px; align-items: center; gap: 12px; padding: 0 12px;
    background: var(--glass-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-110%); transition: transform var(--dur-5) var(--ease-in-out), top var(--dur-5) var(--ease-in-out);
  }
  body:has(.nav:not(.is-hidden)) .dcp__compact { top: var(--nav-h); }
  .dcp__compact.is-on { transform: none; }
  .dcp__compact-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-campaign .dc-media { height: 260px; }
}

/* ---------- Clip viewer ---------- */
.dcclip { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px; }
.dcclip__media { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: var(--fill-1); box-shadow: var(--ring-card); color: #fff; }
.dcclip__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcclip__media::after { content: ""; position: absolute; inset: 0; background: var(--grad-media-bottom); pointer-events: none; }
.dcclip__media .card-clip__stats, .dcclip__media .card-clip__plat { z-index: 1; }
.dcclip__info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dcclip__who { padding-right: 40px; }
.dcp .dcclip { grid-template-columns: 240px minmax(0, 1fr); }
.dcp .dcclip__who { padding-right: 0; }
.dcclip__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dcclip__name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.dcclip__handle { font-size: 13px; font-weight: 500; color: var(--text-3); }
.dcclip__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dcclip__stats > div { padding: 12px; border-radius: var(--r-md); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); min-width: 0; }
.dcclip__stats dt { font-size: 12px; font-weight: 500; color: var(--text-3); }
.dcclip__stats dd { margin-top: 6px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcclip__caption { font-size: 14px; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dcclip__camp { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); transition: background-color var(--dur-2); }
.dcclip__camp:hover { background: var(--fill-2); }
.dcclip__camp-k { font-size: 12px; font-weight: 500; color: var(--text-3); }
.dcclip__camp-v { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; }
.dcclip__camp-v > .i { margin-left: auto; color: var(--text-3); flex: none; }
.dcclip__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 767px) {
  .dcclip { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .dcclip__media { width: min(240px, 70vw); margin: 0 auto; }
  .dcclip__info { padding-right: 0; }
  .dcclip__actions .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dc-hero__slide, .dc-tc__card, .dc-tc__title, .dc-medal, .dc-trend__card, .dcg-row__thumb img { transition: none !important; }
  .dc-sparks, .dc-chip__dot { display: none; }
  .dc-grid .card-campaign.is-appended, .dcm.is-swapping, .dc-tc__clips.is-entering { animation: none; }
  .dc-clipper:hover .dc-medal, .dc-trend__card:hover { transform: none; }
}

/* Top clips: the call to action card closing each strip */
.dc-tc__yours {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 9 / 16; padding: 20px;
  border-radius: var(--r-lg); border: 1.5px dashed var(--border-strong); background: var(--fill-1); color: var(--text-2); text-align: center;
  transition: border-color var(--dur-2), background-color var(--dur-2);
}
.dc-tc__yours:hover { border-color: var(--accent-border); background: var(--accent-softer); }
.dc-tc__yours:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dc-tc__yours-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.dc-tc__yours-t { font-size: 15px; font-weight: 600; color: var(--text); }
.dc-tc__yours-d { font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--text-3); }
.dc-hero.is-single { --hero-w: min(calc(100% - 2 * var(--gutter)), 1760px); }

/* One time search tip (desktop feed, discover.js initTip): sits above the filter row so the dock can open under it */
.dc-tip {
  position: fixed; left: 50%; bottom: calc(137px + var(--cookie-h, 0px) + env(safe-area-inset-bottom)); z-index: calc(var(--z-floating-bar) + 1);
  width: 321px; transform: translateX(-50%); border-radius: 19px; overflow: hidden; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border), var(--sh-pop); animation: dc-tip-in 360ms var(--ease-out) both;
}
.dc-tip__scene { position: relative; padding: 16px 16px 12px; background: #101010; border-bottom: 1px solid var(--border-subtle); }
.dc-tip__try { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; }
.dc-tip__examples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-tip__ex { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--text-2); text-align: left; transition: background-color var(--dur-2), color var(--dur-2); }
.dc-tip__ex .i { flex: none; color: var(--text-3); }
.dc-tip__ex:hover, .dc-tip__ex:focus-visible { background: var(--fill-2); color: var(--text); }
.dc-tip__ex:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dc-tip__txt { padding: 16px; }
.dc-tip__title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.dc-tip__body { margin: 4px 0 14px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--text-3); }
@keyframes dc-tip-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 1023px) { .dc-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .dc-tip { animation: none; } }
body:has(.overlay) .dc-tip { visibility: hidden; }
