/* Scoped additions keep the original articles, code and documentation layout intact. */
body.wow:has(.cx-reading-bar) .top {
  background: #080a12;
}
.cx-reading-cta,
.cx-reading-bar,
.linkedin-rail {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
  color: #f1efff;
}
.cx-reading-cta {
  width: calc(100% - 36px);
  max-width: 1100px;
  margin: 64px auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid #695689;
  border-radius: 24px;
  background: radial-gradient(ellipse at 0 0, #3e2c61, transparent 70%), #111323;
}
.cx-reading-cta span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #c3a5ff;
}
.cx-reading-cta h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  margin: 12px 0;
  letter-spacing: -0.04em;
  color: #f1efff;
}
.cx-reading-cta p {
  font-size: 14px;
  line-height: 1.7;
  color: #bdb7cc;
  margin: 0 auto;
  max-width: 460px;
}
.cx-reading-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
}
.cx-reading-actions a,
.cx-reading-bar a {
  text-decoration: none;
  border-radius: 9px;
  padding: 12px 17px;
  transition:
    background 0.2s,
    transform 0.2s;
  color: inherit;
  font-weight: 600;
  font-size: 13px;
}
.cx-reading-actions a:first-child,
.cx-reading-primary {
  background: #d7c7ff !important;
  color: #171023 !important;
}
.cx-reading-actions a:last-child {
  border: 1px solid #625578;
  text-align: center;
}
.cx-reading-actions a:hover {
  transform: translateY(-3px);
}
.cx-reading-bar {
  position: fixed;
  z-index: 60;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 950px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #141322f2;
  backdrop-filter: blur(20px);
  border: 1px solid #65527c;
  border-radius: 16px;
  box-shadow: 0 15px 50px #0008;
}
.cx-reading-bar .cx-reading-brand {
  padding: 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.cx-reading-brand span {
  color: #b59ae7;
}
.cx-reading-bar > span {
  font-size: 12px;
  color: #bfb7d0;
}
.cx-reading-bar > div {
  margin-left: auto;
  display: flex;
  gap: 5px;
  align-items: center;
}
body:has(.cx-reading-bar) {
  padding-bottom: 95px;
}
.linkedin-rail {
  position: fixed;
  left: 16px;
  bottom: 115px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #171c2beb;
  border: 1px solid #53566e;
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 30px #0004;
  backdrop-filter: blur(16px);
  transition:
    background 0.25s,
    border-color 0.25s;
}
.linkedin-rail svg {
  width: 21px;
  height: 21px;
  color: #c5b6f4;
  flex-shrink: 0;
}
.linkedin-rail span,
.linkedin-rail b {
  font-size: 12px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 0.3s,
    opacity 0.3s;
}
.linkedin-rail:hover,
.linkedin-rail:focus-visible {
  border-color: #b6a1eb;
  background: #26223c;
}
.linkedin-rail:hover span,
.linkedin-rail:focus-visible span {
  max-width: 130px;
  opacity: 1;
}
.linkedin-rail:hover b,
.linkedin-rail:focus-visible b {
  max-width: 20px;
  opacity: 1;
}
@media (max-width: 700px) {
  .cx-reading-cta {
    width: auto;
    margin: 40px 18px;
    padding: 26px;
    flex-direction: column;
    align-items: stretch;
  }
  .cx-reading-bar {
    width: calc(100% - 20px);
    bottom: 10px;
    padding: 8px;
    gap: 4px;
  }
  .cx-reading-bar > span {
    display: none;
  }
  .cx-reading-bar a {
    font-size: 11px;
    padding: 11px;
  }
  .cx-reading-bar .cx-reading-brand {
    font-size: 20px;
  }
  .linkedin-rail {
    position: relative;
    left: auto;
    bottom: auto;
    justify-content: center;
    margin: 22px auto;
    width: max-content;
    max-width: calc(100% - 32px);
  }
  .linkedin-rail span,
  .linkedin-rail b {
    max-width: 160px;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx-reading-actions a,
  .linkedin-rail,
  .linkedin-rail span {
    transition: none;
  }
}
