/* Homepage weekly crypto events banner — continuous horizontal marquee */

.ci-event-week-banner {
  background: #111111;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ci-event-week-banner__cta {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ci-event-week-banner__cta:hover,
.ci-event-week-banner__cta:focus {
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.ci-event-week-banner__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5px 0;
  min-height: 28px;
}

.ci-event-week-banner__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
  width: 12px;
  height: 12px;
}

.ci-event-week-banner__content {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.ci-event-week-banner__label {
  flex-shrink: 0;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
}

.ci-event-week-banner__marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.ci-event-week-banner__marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: none;
}

.ci-event-week-banner.is-ready .ci-event-week-banner__marquee-track {
  animation: ci-event-week-marquee var(--ci-event-marquee-duration, 40s) linear infinite;
}

.ci-event-week-banner__marquee:hover .ci-event-week-banner__marquee-track,
.ci-event-week-banner__marquee:focus-within .ci-event-week-banner__marquee-track {
  animation-play-state: paused;
}

.ci-event-week-banner__set {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ci-event-week-banner__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.ci-event-week-banner__sep {
  margin: 0 10px;
  opacity: 0.4;
}

.ci-event-week-banner__text {
  color: rgba(255, 255, 255, 0.82);
}

.ci-event-week-banner__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes ci-event-week-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-event-week-banner__marquee-track {
    animation: none;
    transform: none;
  }

  .ci-event-week-banner__set + .ci-event-week-banner__set {
    display: none;
  }

  .ci-event-week-banner__marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (max-width: 768px) {
  .ci-event-week-banner {
    font-size: 11px;
    line-height: 1.25;
  }

  .ci-event-week-banner__inner {
    width: calc(100% - 24px);
    padding: 3px 0;
    min-height: 24px;
    gap: 6px;
  }

  .ci-event-week-banner__icon {
    width: 11px;
    height: 11px;
  }

  .ci-event-week-banner__label {
    font-size: 11px;
  }
}
/* Global newsletter subscribe modal */

.ci-subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.ci-subscribe-modal[hidden] {
  display: none !important;
}

.ci-subscribe-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(2px);
}

.ci-subscribe-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  margin: 0;
  padding: 28px 24px 22px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.ci-subscribe-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #555;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ci-subscribe-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

.ci-subscribe-modal__icon {
  margin-bottom: 8px;
  color: #8b1538;
  line-height: 0;
}

.ci-subscribe-modal__title {
  margin: 0 0 8px;
  font-family: "Playfair Display", "Times New Roman", Times, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.ci-subscribe-modal__text {
  margin: 0 0 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.ci-subscribe-modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ci-subscribe-modal__form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #111;
  background: #fff;
}

.ci-subscribe-modal__form input[type="email"]::placeholder {
  color: #9a9a9a;
}

.ci-subscribe-modal__form input[type="email"]:focus {
  outline: none;
  border-color: #8b1538;
  box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.15);
}

.ci-subscribe-modal__submit {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 13px 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: #8b1538;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ci-subscribe-modal__submit:hover {
  background: #6f112d;
}

.ci-subscribe-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ci-subscribe-modal__form .ci-mailpoet-subscribe__message {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.ci-subscribe-modal__form .ci-mailpoet-subscribe__message.is-success {
  color: #1a6b3a;
}

.ci-subscribe-modal__form .ci-mailpoet-subscribe__message.is-error {
  color: #8b1538;
}

.ci-subscribe-modal__legal {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #5c5c5c;
}

.ci-subscribe-modal__legal a {
  color: #8b1538;
  text-decoration: underline;
}

.ci-subscribe-modal__legal a:hover {
  color: #6f112d;
}

body.ci-subscribe-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .ci-subscribe-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .ci-subscribe-modal__dialog {
    width: 100%;
    padding: 24px 18px 18px;
    border-radius: 12px 12px 0 0;
  }
}