/* Prosper UK news and article polish */
body.page-pages-show-blog,
body.page-pages-show-blog-wide,
body.page-pages-show-blog-post,
body.page-pages-show-blog-post-wide {
  background: #f3f5f8;
}

body.page-pages-show-blog #content,
body.page-pages-show-blog-wide #content,
body.page-pages-show-blog-post #content,
body.page-pages-show-blog-post-wide #content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background: #f3f5f8;
}

body.page-pages-show-blog #content.site-content-frame,
body.page-pages-show-blog-wide #content.site-content-frame {
  padding-top: 0 !important;
}

body.page-pages-show-blog .hero .hero-container,
body.page-pages-show-blog-wide .hero .hero-container {
  margin-bottom: 0 !important;
}

body.page-pages-show-blog .prosper-news-shell,
body.page-pages-show-blog-wide .prosper-news-shell {
  padding-top: 1.5rem;
}

.prosper-news-page,
.prosper-article-page {
  background: #f3f5f8;
}

.prosper-news-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

/* Nested container keeps Bootstrap gutters inside full-bleed pages */
.prosper-news-page .prosper-news-grid-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.prosper-news-page .prosper-news-grid-container .prosper-news-grid {
  margin-left: 0;
  margin-right: 0;
}

.prosper-news-intro {
  max-width: 780px;
  margin-bottom: 2.25rem;
}

.prosper-news-kicker,
.prosper-article-kicker,
.prosper-blog-card__kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: #273356;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prosper-news-intro h2 {
  color: #273356;
  font-size: clamp(1.8rem, 2.5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.prosper-news-intro p {
  color: #536274;
  font-size: 1.08rem;
  line-height: 1.7;
}

.prosper-news-grid {
  row-gap: 1.5rem;
}

.prosper-blog-filter {
  text-align: center;
  margin-top: 0;
}

.prosper-blog-filter__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.prosper-blog-filter__btn {
  appearance: none;
  border: 2px solid rgba(39, 51, 86, 0.2);
  background: #fff;
  color: #273356;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.prosper-blog-filter__btn:hover,
.prosper-blog-filter__btn:focus {
  border-color: #273356;
  color: #273356;
  outline: none;
}

.prosper-blog-filter__btn.is-active {
  background: #273356;
  border-color: #273356;
  color: #fff;
}

.prosper-blog-filter__empty {
  color: #536274;
  font-size: 1rem;
  padding: 2rem 0 0.5rem;
}

/* Blog listing cards */
.blog-excerpt.prosper-blog-card {
  min-height: 0;
}

.prosper-blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #273356;
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 42px rgba(9, 23, 44, 0.14);
  color: #fff;
  overflow: hidden;
}

.prosper-blog-card__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.prosper-blog-card__media-link:focus {
  outline: none;
}

.prosper-blog-card__media-link:focus .prosper-blog-card__media {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
}

.prosper-blog-card__media {
  position: relative;
  min-height: 210px;
  background: linear-gradient(135deg, #10253f 0%, #173a64 100%);
  overflow: hidden;
}

.prosper-blog-card__image {
  width: 100%;
  min-height: 210px;
  height: 210px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.prosper-blog-card__placeholder {
  min-height: 210px;
  height: 210px;
  background: linear-gradient(135deg, #10253f 0%, #173a64 100%);
}

.prosper-blog-card__arrow-motif {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 2;
  transform: translate(0, 0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.prosper-blog-card:hover .prosper-blog-card__arrow-motif,
.prosper-blog-card:focus-within .prosper-blog-card__arrow-motif {
  transform: translate(14px, -14px);
}

.prosper-blog-card__arrow-motif::before,
.prosper-blog-card__arrow-motif::after {
  content: "";
  position: absolute;
  --prosper-arrow-stroke: 5px;
  --prosper-arrow-gap: var(--prosper-arrow-stroke);
  --prosper-arrow-offset: calc(var(--prosper-arrow-stroke) + var(--prosper-arrow-gap));
  --prosper-arrow-inset: 24px;
  --prosper-arrow-arm: 58px;
  top: var(--prosper-arrow-inset);
  right: var(--prosper-arrow-inset);
  width: var(--prosper-arrow-arm);
  height: var(--prosper-arrow-arm);
  border-top: var(--prosper-arrow-stroke) solid #fff;
  border-right: var(--prosper-arrow-stroke) solid #fff;
  transition: border-color 0.32s ease;
}

.prosper-blog-card__arrow-motif::after {
  top: calc(var(--prosper-arrow-inset) + var(--prosper-arrow-offset));
  right: calc(var(--prosper-arrow-inset) + var(--prosper-arrow-offset));
  border-top-color: rgba(255, 255, 255, 0.55);
  border-right-color: rgba(255, 255, 255, 0.55);
}

.prosper-blog-card:hover .prosper-blog-card__arrow-motif::before,
.prosper-blog-card:focus-within .prosper-blog-card__arrow-motif::before {
  border-top-color: #fff;
  border-right-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .prosper-blog-card__arrow-motif {
    transition: none;
  }

  .prosper-blog-card:hover .prosper-blog-card__arrow-motif,
  .prosper-blog-card:focus-within .prosper-blog-card__arrow-motif {
    transform: none;
  }
}

.prosper-blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.65rem 1.5rem 0.5rem;
}

.prosper-blog-card__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
}

.prosper-blog-card__title a {
  color: #fff;
  text-decoration: none;
}

.prosper-blog-card__title a:hover,
.prosper-blog-card__title a:focus {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.prosper-blog-card__footer {
  margin-top: auto;
  padding: 0.35rem 1.5rem 1.15rem;
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.prosper-blog-card__footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: 100%;
  min-width: 0;
}

.prosper-blog-card__footer-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.15rem;
  min-width: 0;
}

.prosper-blog-card__footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.prosper-blog-card__footer-item i {
  flex-shrink: 0;
  width: 0.95rem;
  text-align: center;
  opacity: 0.92;
  font-size: 0.82rem;
}

.prosper-blog-card__footer-item a {
  color: #fff;
  text-decoration: none;
}

.prosper-blog-card__footer-item a:hover,
.prosper-blog-card__footer-item a:focus {
  color: #fff;
  text-decoration: underline;
}

.prosper-blog-card__footer-item--author {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prosper-blog-card__footer-category {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prosper-blog-card__footer-category a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.prosper-blog-card__footer-category a:hover,
.prosper-blog-card__footer-category a:focus {
  color: #fff;
  text-decoration: underline;
}

.prosper-news-actions {
  margin-top: 2.6rem;
  padding: 1.6rem;
  background: #273356;
  color: #fff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.prosper-news-actions p {
  margin: 0;
  color: rgba(255,255,255,0.82);
}

.prosper-article-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 4.5rem 48px 5rem;
}

.prosper-article-card {
  background: #fff;
  border: 1px solid rgba(11,31,58,0.08);
  box-shadow: 0 18px 48px rgba(10,30,60,0.08);
  padding: clamp(1.6rem, 4vw, 3.2rem);
}

.prosper-article-page .intro {
  color: #17384c;
  font-size: 1.08rem;
  line-height: 1.85;
}

.prosper-article-page .intro > *:first-child {
  margin-top: 0;
}

.prosper-article-page .intro p,
.prosper-article-page .intro li {
  color: #17384c;
}

.prosper-article-page .intro h2,
.prosper-article-page .intro h3,
.prosper-article-page .intro h4 {
  color: #273356;
  letter-spacing: -0.02em;
  margin-top: 2rem;
}

.prosper-article-page .intro blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid #273356;
  background: #f3f5f8;
  color: #273356;
}

.prosper-article-page .page-tags,
.prosper-article-page .author-card,
.prosper-news-page .page-tags {
  margin-top: 2rem;
}

/* Share bar docked to the left edge, vertically centred in the viewport */
.prosper-share-bar {
  --prosper-share-teal: var(--prosper-teal, #1b8098);
  --prosper-share-teal-pale: var(--prosper-teal-pale, #8fbfcc);
  --prosper-share-teal-dark: #156a7f;
  --prosper-share-panel-max: 22rem;
  --prosper-share-icon-filter: brightness(0) saturate(100%) invert(42%) sepia(13%) saturate(2475%) hue-rotate(152deg) brightness(95%) contrast(88%);
  --prosper-share-icon-filter-hover: brightness(0) saturate(100%) invert(33%) sepia(28%) saturate(1200%) hue-rotate(152deg) brightness(88%) contrast(92%);

  position: fixed;
  left: 0;
  top: 50%;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(27, 128, 152, 0.22);
  border-left: 3px solid var(--prosper-share-teal);
  border-radius: 0;
  box-shadow: 4px 12px 28px rgba(27, 128, 152, 0.14);
  overflow: hidden;
  transform: translateY(-50%);
  will-change: transform;
}

.prosper-share-bar__toggle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.85rem 0.55rem 1.1rem;
  min-height: 5.5rem;
  border: 0;
  border-radius: 0;
  background: rgba(27, 128, 152, 0.08);
  color: var(--prosper-share-teal);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.prosper-share-bar__toggle-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.prosper-share-bar__chevrons {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  --prosper-share-arrow-stroke: 3px;
  --prosper-share-arrow-gap: var(--prosper-share-arrow-stroke);
  --prosper-share-arrow-offset: calc(var(--prosper-share-arrow-stroke) + var(--prosper-share-arrow-gap));
  --prosper-share-arrow-arm: 12px;
  width: calc(var(--prosper-share-arrow-arm) + var(--prosper-share-arrow-offset));
  height: calc(var(--prosper-share-arrow-arm) + var(--prosper-share-arrow-offset));
  pointer-events: none;
}

.prosper-share-bar__chevron {
  position: absolute;
  box-sizing: border-box;
  width: var(--prosper-share-arrow-arm);
  height: var(--prosper-share-arrow-arm);
  border-top: var(--prosper-share-arrow-stroke) solid transparent;
  border-right: var(--prosper-share-arrow-stroke) solid transparent;
}

.prosper-share-bar__chevron--inner {
  top: 0;
  right: 0;
  border-top-color: var(--prosper-share-teal);
  border-right-color: var(--prosper-share-teal);
}

.prosper-share-bar__chevron--outer {
  top: var(--prosper-share-arrow-offset);
  right: var(--prosper-share-arrow-offset);
  border-top-color: var(--prosper-share-teal-pale, #8fbfcc);
  border-right-color: var(--prosper-share-teal-pale, #8fbfcc);
}

.prosper-share-bar__toggle:hover,
.prosper-share-bar__toggle:focus {
  background: rgba(27, 128, 152, 0.16);
  color: #156a7f;
  outline: none;
}

.prosper-share-bar--open .prosper-share-bar__toggle {
  background: var(--prosper-share-teal);
  color: #fff;
}

.prosper-share-bar--open .prosper-share-bar__chevron--inner {
  border-top-color: #fff;
  border-right-color: #fff;
}

.prosper-share-bar--open .prosper-share-bar__chevron--outer {
  border-top-color: rgba(255, 255, 255, 0.45);
  border-right-color: rgba(255, 255, 255, 0.45);
}

.prosper-share-bar__panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border-top: 0 solid rgba(27, 128, 152, 0.18);
  transition:
    max-height 0.26s ease,
    opacity 0.22s ease,
    border-top-width 0.26s ease;
}

.prosper-share-bar--open .prosper-share-bar__panel {
  max-height: var(--prosper-share-panel-max);
  opacity: 1;
  pointer-events: auto;
  border-top-width: 1px;
}

.prosper-share-bar__panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.5rem 0.35rem;
}

.prosper-share-bar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.prosper-share-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(27, 128, 152, 0.1);
  color: var(--prosper-share-teal);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.prosper-share-bar__btn:hover,
.prosper-share-bar__btn:focus {
  background: rgba(27, 128, 152, 0.22);
  color: var(--prosper-share-teal-dark);
  box-shadow: none;
  outline: none;
}

.prosper-share-bar__btn.is-copied {
  background: var(--prosper-share-teal);
  color: #fff;
}

.prosper-share-bar__btn img {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  filter: var(--prosper-share-icon-filter);
  transition: filter 0.15s ease;
}

.prosper-share-bar__btn:hover img,
.prosper-share-bar__btn:focus img {
  filter: var(--prosper-share-icon-filter-hover);
}

.prosper-share-bar__btn.is-copied img {
  filter: brightness(0) saturate(100%) invert(100%);
}

.prosper-share-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.prosper-share-bar__icon svg {
  display: block;
}

.prosper-share-bar__feedback {
  margin: 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--prosper-share-teal, #1b8098);
  text-align: center;
  line-height: 1.3;
}

.prosper-share-bar__feedback:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .prosper-share-bar__panel {
    transition: none;
  }
}

@media (max-width: 767.98px) {
  .prosper-share-bar {
    top: 50%;
    transform: translateY(-50%);
  }

  .prosper-share-bar__toggle {
    padding: 1.65rem 0.45rem 0.95rem;
    min-height: 4.75rem;
  }

  .prosper-share-bar__toggle-label {
    font-size: 0.68rem;
  }

  .prosper-share-bar__chevrons {
    top: 5px;
    right: 5px;
    --prosper-share-arrow-stroke: 2.5px;
    --prosper-share-arrow-arm: 10px;
  }

  .prosper-share-bar__panel-inner {
    padding-top: 0.55rem;
  }

  .prosper-share-bar__btn {
    width: 2.2rem;
    height: 2.2rem;
  }

  .prosper-share-bar__btn img {
    width: 1rem;
    height: 1rem;
  }
}

/* Post-action share modal: keep centred, soften open/close motion */
#flash-share.flash-share.modal.fade .modal-dialog {
  transition: transform 0.26s ease-out, opacity 0.22s ease-out;
  transform: translateY(-1.25rem);
}

#flash-share.flash-share.modal.show .modal-dialog {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #flash-share.flash-share.modal.fade .modal-dialog {
    transition: none;
    transform: none;
  }
}

/* Signup bar on blog posts — rendered outside .site-shell in layout.html */
body.page-pages-show-blog-post .prosper-signup-band--inline,
body.page-pages-show-blog-post-wide .prosper-signup-band--inline {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

body.page-pages-show-blog-post .prosper-signup-band--inline .prosper-section-full,
body.page-pages-show-blog-post-wide .prosper-signup-band--inline .prosper-section-full,
body.page-pages-show-blog-post .prosper-signup-band--inline .prosper-signup-wrap,
body.page-pages-show-blog-post-wide .prosper-signup-band--inline .prosper-signup-wrap {
  width: 100%;
  max-width: none;
  border-radius: 0;
}

@media (max-width: 991.98px) {
  .prosper-article-shell {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 767.98px) {
  .prosper-blog-card__footer-meta {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .prosper-blog-card__footer-category {
    margin-left: 0;
    align-self: flex-end;
    width: 100%;
  }

  .prosper-blog-card__footer-item--author {
    max-width: 100%;
    white-space: normal;
  }

  body.page-pages-show-blog .prosper-news-shell,
  body.page-pages-show-blog-wide .prosper-news-shell {
    padding-top: 1.25rem;
    padding-bottom: 3.5rem;
  }

  .prosper-news-shell {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .prosper-article-shell {
    padding: 3rem 20px 3.5rem;
  }

  .prosper-news-actions {
    display: block;
  }

  .prosper-news-actions .btn {
    margin-top: 1rem;
  }
}
