.hub-bottom-banner {
  position: relative;
  width: 100%;
  z-index: 50;
  text-decoration: none;
}

body {
  padding-bottom: var(--bottom-banner-height, 0);
}

.hub-bottom-banner.is-sticky {
  position: fixed;
  left: 0;
  bottom: 0;
}
.hub-bottom-banner[data-preview='true'] {
  position: relative;
  left: auto;
  bottom: auto;
  box-shadow: none;
}

.hub-bottom-banner__link {
  display: block;
  color: #fff;
  position: relative;
  text-decoration: none;
}
.hub-bottom-banner.is-sticky {
  width: 100%;
}
.hub-bottom-banner[data-preview='true'] .hub-bottom-banner__link {
  pointer-events: none;
}

.hub-bottom-banner__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hub-bottom-banner__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.2;
  pointer-events: none;
}

.hub-bottom-banner__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 2;
  pointer-events: auto;
}
.hub-bottom-banner__close:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.hub-bottom-banner__decor::before,
.hub-bottom-banner__decor::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  filter: blur(60px);
}

.hub-bottom-banner__decor::before {
  top: -40px;
  left: -40px;
}

.hub-bottom-banner__decor::after {
  right: -40px;
  bottom: -50px;
  background: rgba(255, 255, 255, 0.12);
}

.hub-bottom-banner__media {
  display: none;
}

@media (min-width: 640px) {
  .hub-bottom-banner__media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: visible;
  }
}

@media (min-width: 920px) {
  .hub-bottom-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    text-align: left;
  }
  .hub-bottom-banner__text {
    text-align: left;
  }
}

.hub-bottom-banner__media.is-absolute {
  position: absolute;
  top: calc(50% + var(--media-offset-y, 0px));
  left: var(--media-offset-x, 0px);
  transform: translateY(-50%);
}
.hub-bottom-banner__media.is-absolute.media-right {
  left: auto;
  right: var(--media-offset-x, 0px);
  transform: translateY(-50%);
}
.hub-bottom-banner__text.has-absolute-media {
  padding-left: calc(var(--media-size, 48px) + 1.5rem);
}
.hub-bottom-banner--media-right .hub-bottom-banner__text.has-absolute-media {
  padding-left: 0;
  padding-right: calc(var(--media-size, 48px) + 1.5rem);
}

.hub-bottom-banner__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
}
.hub-bottom-banner__media.fit-contain img { object-fit: contain; }
.hub-bottom-banner__media.fit-cover img { object-fit: cover; }
.hub-bottom-banner__media.fit-none img { object-fit: none; }

@media (max-width: 639px) {
  .hub-bottom-banner__media {
    display: flex;
  }
  .hub-bottom-banner__media.is-absolute {
    position: static;
    transform: none;
    left: auto;
    right: auto;
    margin-bottom: 0.5rem;
  }
  .hub-bottom-banner__text.has-absolute-media {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 919px) {
  .hub-bottom-banner__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .hub-bottom-banner__text {
    text-align: center;
  }
  .hub-bottom-banner__media {
    width: 100%;
    height: 100%;
    max-width: 64px;
    max-height: 64px;
    margin-bottom: 0.5rem;
  }
  .hub-bottom-banner__media.is-absolute {
    position: static;
    transform: none;
    left: auto;
    right: auto;
  }
  .hub-bottom-banner__media img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
  }
  .hub-bottom-banner__text.has-absolute-media {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 768px) {
  body.sidebar-expanded .hub-bottom-banner.is-sticky {
    left: var(--sidebar-width, 280px);
    width: calc(100% - var(--sidebar-width, 280px));
  }
  body.sidebar-collapsed .hub-bottom-banner.is-sticky {
    left: var(--sidebar-width-icon, 72px);
    width: calc(100% - var(--sidebar-width-icon, 72px));
  }
}

.hub-bottom-banner__text {
  flex: 1;
  min-width: 0;
}

.hub-bottom-banner__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.2rem;
}

.hub-bottom-banner__title {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

@media (min-width: 640px) {
  .hub-bottom-banner__title {
    font-size: 1.25rem;
  }
}

.hub-bottom-banner__description {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

:not(.dark) #primary .prose,
:not(.dark) #main-content .prose,
:not(.dark) #primary .prose p.hub-bottom-banner__description,
:not(.dark) #main-content .prose p.hub-bottom-banner__description {
  color: rgba(255, 255, 255, 0.92) !important;

}

.hub-bottom-banner__cta {
  flex-shrink: 0;
}

.hub-bottom-banner__cta-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: #1d4ed8;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


:not(.dark) #primary .prose,
:not(.dark) #main-content .prose,
:not(.dark) #primary .prose span.hub-bottom-banner__cta-inner,
:not(.dark) #main-content .prose span.hub-bottom-banner__cta-inner {
  color: #1d4ed8 !important;
}

.hub-bottom-banner__link:hover .hub-bottom-banner__cta-inner {
  transform: scale(1.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.hub-bottom-banner--media-right .hub-bottom-banner__cta {
  order: 3;
}

.hub-bottom-banner--indigo {
  background: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.hub-bottom-banner--emerald {
  background: linear-gradient(90deg, #059669, #0ea5e9);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.hub-bottom-banner--amber {
  background: linear-gradient(90deg, #ea580c, #f59e0b, #facc15);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.dark .hub-bottom-banner__cta-inner {
  color: #0f172a;
}

.hub-bottom-banner--media-right .hub-bottom-banner__inner {
  flex-direction: row-reverse;
}
