/* Floating peek card. Always dark, like a toast, so it reads on both themes. */
.cc-peek {
  position: fixed; left: 20px; bottom: 20px; z-index: 3400;
  width: 348px; max-width: calc(100vw - 24px); height: 112px;
  border-radius: 22px; overflow: hidden; color: #fff;
  background: rgba(13, 27, 42, .95);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55);
  /* entrance: rises, un-blurs and fades in */
  opacity: 0; transform: translateY(16px) scale(.98); filter: blur(8px); pointer-events: none;
  transition: opacity .5s var(--ease-out, ease-out), transform .5s var(--ease-out, ease-out), filter .5s var(--ease-out, ease-out);
}
.cc-peek[hidden] { display: none; }
.cc-peek.is-in { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.cc-peek.is-out { opacity: 0; transform: translateY(12px) scale(.97); filter: blur(6px); pointer-events: none; transition-duration: .3s; }

.cc-peek__stage { display: grid; height: 100%; padding: 0 44px 0 16px; }

/* Slides are stacked; the active one fades/un-blurs in from below, the previous one leaves upward. */
.cc-peek__slide {
  grid-area: 1 / 1; display: flex; align-items: center; gap: 14px; min-width: 0;
  color: inherit; text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); filter: blur(6px);
  transition: opacity .35s ease, transform .4s var(--ease-out, ease-out), filter .35s ease, visibility 0s linear .35s;
}
.cc-peek__slide.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.cc-peek__slide.is-past { transform: translateY(-8px); }
.cc-peek__slide:focus-visible { outline: 2px solid var(--brand-400, #00d084); outline-offset: -4px; border-radius: 18px; }

.cc-peek__logo {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: rgba(0, 208, 132, .14); color: var(--brand-400, #00d084); font-size: 1.5rem;
}
.cc-peek__logo--initial { background: var(--brand-400, #00d084); color: var(--navy-900, #0d1b2a); font-size: 1.35rem; font-weight: 700; }

.cc-peek__body { display: grid; gap: 3px; min-width: 0; }
/* The tag sits above the title (not beside it) so the title always has the full width and is never cut to "Advertise with…". */
.cc-peek__head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cc-peek__head .cc-peek__tag { order: -1; padding: 2px 8px; font-size: .58rem; }
.cc-peek__head .cc-peek__title { max-width: 100%; }
.cc-peek__title { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-peek__tag {
  flex: none; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .22);
}
.cc-peek__text {
  font-size: .8rem; line-height: 1.4; color: rgba(255, 255, 255, .62);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.cc-peek__close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 26px; height: 26px; border: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: .6rem; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); transition: background .2s, color .2s, transform .2s var(--ease-out, ease-out);
}
.cc-peek__close:hover { background: rgba(255, 255, 255, .2); color: #fff; transform: scale(1.08); }

/* Vertical progress dots on the right edge */
.cc-peek__dots { position: absolute; right: 19px; top: 48px; z-index: 2; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cc-peek__dot {
  position: relative; display: block; width: 4px; height: 5px; padding: 0; border: 0; border-radius: 3px; overflow: hidden;
  background: rgba(255, 255, 255, .35); cursor: pointer; transition: height .3s var(--ease-out, ease-out);
}
.cc-peek__dot::before { content: ""; position: absolute; inset: -6px -9px; }   /* larger tap target */
.cc-peek__dot.is-active { height: 18px; }
.cc-peek__fill { position: absolute; inset: 0; background: #fff; border-radius: inherit; transform: scaleY(0); transform-origin: top; }
.cc-peek__dot.is-active .cc-peek__fill { animation: ccPeekFill var(--peek-dur, 4500ms) linear forwards; }
.cc-peek:hover .cc-peek__fill, .cc-peek:focus-within .cc-peek__fill, .cc-peek.is-paused .cc-peek__fill { animation-play-state: paused; }
@keyframes ccPeekFill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 575.98px) {
  .cc-peek { left: 12px; right: 12px; width: auto; bottom: 78px; height: 88px; border-radius: 18px; }
  .cc-peek__stage { padding: 0 40px 0 12px; }
  .cc-peek__logo { width: 42px; height: 42px; border-radius: 12px; font-size: 1.25rem; }
  .cc-peek__title { font-size: .95rem; }
  .cc-peek__text { font-size: .76rem; -webkit-line-clamp: 2; }
  .cc-peek__dots { right: 15px; top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-peek, .cc-peek__slide { transition: none; filter: none; transform: none; }
  .cc-peek__dot { transition: none; }
  .cc-peek__dot.is-active .cc-peek__fill { animation: none; transform: scaleY(1); }
}
@media print { .cc-peek { display: none !important; } }

@media (max-width: 575.98px) {
  .cc-peek__tag { font-size: .55rem; padding: 2px 6px; letter-spacing: .05em; }
  .cc-peek__head { gap: 3px; }
}
