/* Components added on top of the mirrored WordPress theme. */

/* Retailer note under the Buy buttons */
.ps-buy-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.7;
}

/* Inline newsletter sign-up card */
.ps-signup-cta {
  padding: 0 20px;
}
.ps-signup-cta__inner {
  background: var(--basic-cream, #f7f5e8);
  border-radius: 16px 16px 80px 16px;
  box-shadow: 0 8px 24px rgba(48, 38, 31, 0.12);
  margin: 56px auto;
  max-width: 760px;
  padding: 32px 40px 36px;
}
.ps-signup-cta__title {
  color: #85601f;
  font-family: var(--gp-font--robinson, inherit);
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  margin: 0 0 20px;
  text-align: center;
}
@media (max-width: 767px) {
  .ps-signup-cta__inner {
    padding: 24px 20px 28px;
  }
  .ps-signup-cta__title {
    font-size: 19px;
    line-height: 26px;
  }
}

/* Home "Media" band: paper-textured gradient in place of the marble-paper photograph.
   Three layers make the paper: fine tooth (grain), slow tonal clouds, and sparse fibres. */
.gb-element-acf5944b {
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='500'%20height='500'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.55%20.018'%20numOctaves='2'%20seed='21'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%201%20%200%200%200%200%20.96%20%200%200%200%200%20.88%20%201.3%200%200%200%20-.9'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 500px 500px,
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='300'%3E%3Cfilter%20id='g'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.95'%20numOctaves='4'%20seed='3'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%20.98%20%200%200%200%200%20.93%20%200%200%200%200%20.84%20%201.2%201.2%201.2%200%20-1.2'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 300px 300px,
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='700'%20height='700'%3E%3Cfilter%20id='c'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.012%20.02'%20numOctaves='5'%20seed='8'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%20.95%20%200%200%200%200%20.88%20%200%200%200%200%20.78%20%200%200%200%20.5%20-.16'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23c)'/%3E%3C/svg%3E") 0 0 / 700px 700px,
    radial-gradient(ellipse 70% 90% at 92% 88%, rgba(190, 146, 118, 0.55), transparent 62%),
    radial-gradient(ellipse 50% 70% at 8% 12%, rgba(70, 52, 40, 0.5), transparent 70%),
    linear-gradient(93deg, #261c16 23%, #2e241d 46%, #8f6f5c 100%);
  background-blend-mode: soft-light, soft-light, soft-light, normal, normal, normal;
}

/* Carousel controls: previous, dots and next sit together in one row under the text, clear of the cards.
   (The theme pins the arrows to opposite edges, so the next button overlapped the first card.) */
.gb-element-5e231639 .ps-post-cat-media-slider-navigation {
  align-items: center;
  display: flex;
  gap: 18px;
  height: auto;
  inset: auto auto 0 0;
  width: auto;
}
.gb-element-5e231639 .ps-post-cat-media-slider-navigation .ps-post-cat-media-slider-nav {
  display: contents;
}
.gb-element-5e231639 .ps-post-cat-media-slider-navigation button.slick-arrow.slick-prev,
.gb-element-5e231639 .ps-post-cat-media-slider-navigation button.slick-arrow.slick-next {
  flex: 0 0 auto;
  inset: auto;
  margin: 0;
  position: static;
  transform: none;
}
.gb-element-5e231639 .ps-post-cat-media-slider-navigation button.slick-arrow.slick-prev {
  order: 1;
}
.gb-element-5e231639 .ps-post-cat-media-slider-navigation .ps-post-cat-media-slider-dots {
  order: 2;
}
.gb-element-5e231639 .ps-post-cat-media-slider-navigation button.slick-arrow.slick-next {
  order: 3;
}
.gb-element-5e231639 .ps-post-cat-media-slider-dots ul.slick-dots li:not(.slick-active) button {
  background: rgba(247, 245, 232, 0.38);
}
@media (max-width: 767px) {
  .gb-element-5e231639 {
    padding-bottom: 88px;
  }
  .gb-element-5e231639 .ps-post-cat-media-slider-navigation {
    inset: auto auto 24px 0;
  }
}

/* 404 page */
.ps-not-found {
  padding: 120px 20px 140px;
}
.ps-not-found .ps-contianer-main {
  max-width: 720px;
  text-align: center;
}
.ps-not-found p {
  margin: 0 0 28px;
}
.ps-not-found__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Links inside article text are underlined so they do not rely on colour alone (WCAG 1.4.1) */
.dynamic-entry-content p a,
.dynamic-entry-content li a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Thank-you page (QR code on the blow-in card) */
.ps-thanks {
  padding: 150px 20px 24px;
}
.ps-thanks .ps-contianer-main {
  max-width: 880px;
}
.ps-thanks__kicker {
  color: #85601f;
  font-size: 14px;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.ps-thanks__book {
  align-items: center;
  display: flex;
  gap: 40px;
  margin-top: 32px;
}
.ps-thanks__cover--lead {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(48, 38, 31, 0.25);
  flex: 0 0 auto;
  max-width: 200px;
  height: auto;
}
.ps-thanks__more {
  padding: 24px 20px 96px;
}
.ps-thanks__more .ps-contianer-main {
  max-width: 1000px;
}
.ps-thanks__more-title {
  font-size: 28px;
  line-height: 34px;
  margin: 0 0 24px;
}
.ps-thanks__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}
.ps-thanks__card {
  color: inherit;
  display: block;
  font-size: 15px;
  line-height: 1.3;
}
.ps-thanks__card .ps-thanks__cover {
  border-radius: 6px;
  display: block;
  height: auto;
  margin-bottom: 10px;
  width: 100%;
}
@media (max-width: 767px) {
  .ps-thanks {
    padding-top: 56px;
  }
  .ps-thanks__book {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .ps-thanks__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Launch pages (ad and email landing pages for new releases) */
.ps-launch__subtitle {
  font-size: 22px;
  line-height: 30px;
  margin: 8px 0 0;
}
.ps-launch__author {
  font-size: 18px;
  margin: 8px 0 0;
}
.ps-launch__pitch {
  font-size: 20px;
  line-height: 30px;
  margin: 0 0 24px;
}
.ps-launch .ps-buy-section {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ps-launch__about {
  margin-top: 56px;
  max-width: 720px;
}
@media (max-width: 767px) {
  .ps-thanks.ps-launch {
    padding-top: 110px;
  }
  .ps-launch .ps-buy-section {
    justify-content: center;
  }
}

/* Horizontal wordmark in the nav (the old lockup was square-ish, so it needed far less width) */
.site-header .header-image,
.main-navigation .is-logo-image {
  width: 280px;
  height: auto;
}
@media (max-width: 768px) {
  .site-header .header-image,
  .main-navigation .is-logo-image {
    width: 200px;
  }
}

/* Donate link in the header and footer menus, styled as a button */
.main-navigation .main-nav ul li.ps-menu-donate > a,
.footer-widgets .menu li.ps-menu-donate > a {
  background: var(--basic-red, #b62c1a);
  border-radius: 30px;
  color: var(--basic-parchment, #eeead0);
  line-height: 1;
  padding: 12px 22px;
  text-align: center;
}
.main-navigation .main-nav ul li.ps-menu-donate {
  align-self: center;
  margin-left: 16px;
}
@media (max-width: 768px) {
  .main-navigation .main-nav ul li.ps-menu-donate {
    margin: 8px 0 8px 20px;
  }
  .main-navigation .main-nav ul li.ps-menu-donate > a {
    display: inline-block;
  }
  #site-navigation .main-nav ul li.ps-menu-donate > a {
    padding: 12px 22px;
  }
}
.main-navigation .main-nav ul li.ps-menu-donate > a:is(:hover, :focus),
.footer-widgets .menu li.ps-menu-donate > a:is(:hover, :focus) {
  background: var(--basic-ink, #30261f);
  color: var(--basic-parchment, #eeead0);
}
.footer-widgets .menu li.ps-menu-donate > a {
  display: inline-block;
}
/* The theme reserves space before menu links for the current-page dot */
.main-navigation .main-nav ul li.ps-menu-donate > a::before {
  display: none;
}

/* Donor form on the Donate page */
.ps-donor-form {
  margin-top: 24px;
  width: 100%;
}
.ps-donor-fallback {
  font-size: 14px;
  margin-top: 16px;
  opacity: 0.8;
}
