:root {
  --clt-topic-bar-offset: 0px;
  --clt-topic-bar-max-width: 1240px;
  --clt-topic-bar-z-index: 12000;
  --clt-topic-bar-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --clt-topic-flip-duration: 700ms;
}

.clt-topic-bar-spacer {
  display: block;
  width: 100%;
  height: 0;
  pointer-events: none;
  transition: height 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#clt-topic-bar-root {
  position: relative;
  z-index: var(--clt-topic-bar-z-index, 12000);
  isolation: isolate;
}

#clt-topic-bar-root,
#clt-topic-bar-root *,
#clt-topic-bar-root *::before,
#clt-topic-bar-root *::after {
  box-sizing: border-box !important;
}

#clt-topic-bar-root .clt-topic-bar {
  --clt-topic-bar-scroll-translate-y: 0px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--clt-topic-bar-z-index, 12000);
  background-color: rgba(180, 180, 220, 0.92) !important;
  background-image: linear-gradient(135deg, rgba(251, 248, 254, 0.98), rgba(242, 235, 247, 0.9)) !important;
  color: #09090b !important;
  font-family: "Esphimere", system-ui, sans-serif !important;
  box-shadow: 0 18px 42px rgba(15, 8, 24, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.24s ease-in-out,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

#clt-topic-bar-root .clt-topic-bar[data-scroll-hide-active="true"] {
  transition:
    opacity 0.24s ease-in-out,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

#clt-topic-bar-root .clt-topic-bar-enter {
  transform: translate3d(0, var(--clt-topic-bar-scroll-translate-y, 0px), 0);
  opacity: 1;
  pointer-events: auto;
}

#clt-topic-bar-root .clt-topic-bar-exit {
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  pointer-events: none;
}

#clt-topic-bar-root .clt-topic-bar-deferred {
  transform: translate3d(0, -110%, 0);
  opacity: 0;
  pointer-events: none;
}

#clt-topic-bar-root .clt-topic-inner {
  max-width: var(--clt-topic-bar-max-width, 1240px);
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  min-height: 36px;
  box-sizing: border-box;
  position: relative;
  text-align: center;
  flex-wrap: nowrap;
  transition:
    opacity 0.32s var(--clt-topic-bar-ease),
    transform 0.32s var(--clt-topic-bar-ease);
}

#clt-topic-bar-root .clt-topic-top-row {
  width: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 30px;
  margin-left: auto;
  order: 2;
  transition: opacity 0.28s var(--clt-topic-bar-ease);
}

#clt-topic-bar-root .clt-topic-top-row:empty {
  min-height: 0;
}

#clt-topic-bar-root .clt-topic-content-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  flex: 1;
  order: 1;
  transition: opacity 0.28s var(--clt-topic-bar-ease);
  transform-style: preserve-3d;
  perspective: 1200px;
}

#clt-topic-bar-root .clt-topic-text-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  flex: 1;
  min-width: 0;
}

#clt-topic-bar-root .clt-topic-message {
  font-weight: 400;
  font-size: clamp(0.74rem, 1.3vw, 0.9rem);
  line-height: 1.3;
  color: #09090b !important;
  font-family: "Gill Sans", system-ui, sans-serif !important;
  word-break: break-word;
  flex: 1 1 auto;
  min-width: 150px;
  transition: opacity 0.28s var(--clt-topic-bar-ease);
  text-transform: none !important;
  letter-spacing: normal !important;
}

#clt-topic-bar-root .clt-topic-inline-link {
  all: unset;
  margin-left: 0.6rem;
  color: #09090b !important;
  font-family: "Esphimere", system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(9, 9, 11, 0.35) !important;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  box-shadow: none;
  cursor: pointer !important;
  line-height: 1.2 !important;
}

#clt-topic-bar-root .clt-topic-inline-link:hover,
#clt-topic-bar-root .clt-topic-inline-link:focus-visible {
  color: #09090b !important;
  border-color: rgba(9, 9, 11, 0.7) !important;
}

#clt-topic-bar-root .clt-topic-dismiss-button {
  all: unset;
  border: none !important;
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 30px;
  padding: 0;
  font-size: 18px;
  color: #09090b !important;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.28s var(--clt-topic-bar-ease);
  font-family: "Esphimere", system-ui, sans-serif !important;
  line-height: 1;
  box-shadow: none;
}

#clt-topic-bar-root .clt-topic-dismiss-button:hover {
  color: #09090b;
  transform: scale(1.05);
}

#clt-topic-bar-root .clt-topic-dismiss-button:focus-visible {
  outline: 2px solid rgba(9, 9, 11, 0.4);
  outline-offset: 3px;
}

#clt-topic-bar-root .clt-topic-bar[data-closing="true"] .clt-topic-inner {
  opacity: 0;
  transform: translateY(-10px);
}

#clt-topic-bar-root .clt-topic-bar[data-closing="true"] .clt-topic-top-row,
#clt-topic-bar-root .clt-topic-bar[data-closing="true"] .clt-topic-content-row,
#clt-topic-bar-root .clt-topic-bar[data-closing="true"] .clt-topic-message,
#clt-topic-bar-root .clt-topic-bar[data-closing="true"] .clt-topic-inline-link,
#clt-topic-bar-root .clt-topic-bar[data-closing="true"] .clt-topic-dismiss-button {
  opacity: 0;
}

#clt-topic-bar-root .clt-topic-bar[data-revealed="false"] .clt-topic-inner {
  opacity: 0;
}

#clt-topic-bar-root .clt-topic-content-row.clt-topic-flip-out {
  animation: clt-topic-flip-out var(--clt-topic-flip-duration, 700ms) ease-in both;
  transform-origin: center top;
  backface-visibility: hidden;
}

#clt-topic-bar-root .clt-topic-content-row.clt-topic-flip-in {
  animation: clt-topic-flip-in var(--clt-topic-flip-duration, 700ms) ease-out both;
  transform-origin: center bottom;
  backface-visibility: hidden;
}

@keyframes clt-topic-flip-out {
  0% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
  100% {
    opacity: 0;
    transform: rotateX(-85deg) translateY(-6px);
  }
}

@keyframes clt-topic-flip-in {
  0% {
    opacity: 0;
    transform: rotateX(85deg) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

@media (max-width: 1240px) {
  #clt-topic-bar-root .clt-topic-inner {
    padding: 9px 24px;
  }
}

@media (max-width: 1024px) {
  #clt-topic-bar-root .clt-topic-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding: 10px 16px;
    padding-top: 12px;
    text-align: center;
  }

  #clt-topic-bar-root .clt-topic-inline-link {
    font-size: 12px;
  }

  #clt-topic-bar-root .clt-topic-content-row {
    justify-content: center;
    order: 1;
    padding: 0 10px;
  }

  #clt-topic-bar-root .clt-topic-top-row {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    margin-left: 0;
    order: 2;
    z-index: calc(var(--clt-topic-bar-z-index, 12000) + 1);
  }

  #clt-topic-bar-root .clt-topic-text-group {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #clt-topic-bar-root .clt-topic-inner {
    gap: 0.4rem;
    padding: 10px 16px;
    padding-top: 12px;
  }

  #clt-topic-bar-root .clt-topic-text-group {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  #clt-topic-bar-root .clt-topic-content-row {
    padding: 0 10px;
  }

  #clt-topic-bar-root .clt-topic-message {
    font-size: 12px;
    line-height: 1.25;
  }

  #clt-topic-bar-root .clt-topic-inline-link {
    margin-left: 0;
    margin-top: 0.15rem;
  }
}

@media (max-width: 480px) {
  #clt-topic-bar-root .clt-topic-inner {
    padding: 10px 14px;
    padding-top: 12px;
  }

  #clt-topic-bar-root .clt-topic-message {
    font-size: 11px;
  }

  #clt-topic-bar-root .clt-topic-content-row {
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #clt-topic-bar-root .clt-topic-bar,
  #clt-topic-bar-root .clt-topic-inner,
  #clt-topic-bar-root .clt-topic-top-row,
  #clt-topic-bar-root .clt-topic-content-row,
  #clt-topic-bar-root .clt-topic-message,
  #clt-topic-bar-root .clt-topic-inline-link,
  #clt-topic-bar-root .clt-topic-dismiss-button,
  .clt-topic-bar-spacer {
    transition: none;
  }

  #clt-topic-bar-root .clt-topic-content-row.clt-topic-flip-out,
  #clt-topic-bar-root .clt-topic-content-row.clt-topic-flip-in {
    animation: none;
  }
}
