/** Shopify CDN: Minification failed

Line 636:3 Expected "}" to go with "{"

**/
/* =========================================================
   TMS BOOKS & MAGAZINES
   ========================================================= */

.tms-books-magazines {
  background: #ffffff;
  color: #19334a;
}


.tms-books-magazines__hero {
  position: relative;
  isolation: isolate;
  min-height: 470px;
  overflow: hidden;
  border-radius: 0;

  background: linear-gradient(
    90deg,
    #101820 0%,
    #101820 25%,
    rgba(16, 24, 32, 0.96) 42%,
    rgba(16, 24, 32, 0.75) 58%,
    rgba(16, 24, 32, 0.2) 78%,
    rgba(16, 24, 32, 0) 100%
  ) !important;
}

/* HERO IMAGE WITH NAVY GRADIENT */

.tms-books-magazines__hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.tms-books-magazines__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 100%
  );
  mask-image: none;
}

/* NAVY COLOUR WASH */

.tms-books-magazines__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
  90deg,
  #101820 0%,
  #101820 25%,
  rgba(16, 24, 32, 0.96) 35%,
  rgba(16, 24, 32, 0.78) 45%,
  rgba(16, 24, 32, 0.42) 58%,
  rgba(16, 24, 32, 0.12) 72%,
  rgba(16, 24, 32, 0) 82%
);
}

/* NAVY HERO OVERLAY */

.tms-books-magazines__hero-overlay {
  display: none !important;
}

.tms-books-magazines__hero-content {
  position: relative;
  z-index: 2;

  max-width: 620px;

  padding:
    clamp(32px, 5vw, 70px)
    clamp(28px, 4vw, 60px);
}

.tms-books-magazines__breadcrumbs,
.tms-books-magazines__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tms-books-magazines__breadcrumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
}

.tms-books-magazines__breadcrumbs span {
  opacity: 0.55;
}

.tms-books-magazines__hero-title {
  max-width: 600px;
  margin: 18px 0 24px;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #ffffff;
}

.tms-books-magazines__hero-text {
  max-width: 580px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #ffffff;
}


/* CONTENT
--------------------------------------------------------- */

.tms-books-magazines__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 68px 40px 70px;
}

.tms-books-magazines__intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.9fr);
  gap: 55px;
  align-items: center;
  margin-bottom: 46px;
}

.tms-books-magazines__intro h2 {
  margin: 12px 0 18px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.tms-books-magazines__intro > p:last-child {
  max-width: 760px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #617489;
}


/* ADVICE BOX
--------------------------------------------------------- */

.tms-books-magazines__advice {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 30px;
  border-radius: 22px;
  background: #f3efe6;
}

.tms-books-magazines__advice-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e5e0d6;
  font-size: 25px;
}

.tms-books-magazines__advice h3 {
  margin: 8px 0 10px;
  font-size: 21px;
}

.tms-books-magazines__advice p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #617489;
}


/* CATEGORY GRID
--------------------------------------------------------- */

.tms-books-magazines__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.tms-books-magazines__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce2e7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(25, 51, 74, 0.04);
  text-decoration: none;
  color: inherit;
}

.tms-books-magazines__card-image {
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  background: #f5f5f3;
}

.tms-books-magazines__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tms-books-magazines__card:hover .tms-books-magazines__card-image img {
  transform: scale(1.025);
}

.tms-books-magazines__card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.tms-books-magazines__card-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.tms-books-magazines__card-content p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #65788a;
}

.tms-books-magazines__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding: 13px 16px;
  border: 1px solid #aebdca;
  border-radius: 9px;
  color: #19334a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.tms-books-magazines__button:hover {
  background: #19334a;
  border-color: #19334a;
  color: #ffffff;
}


/* TRUST BAR
--------------------------------------------------------- */

.tms-books-magazines__trust {
  display: block;
  margin-top: 26px;
  padding: 28px 20px;
  border-radius: 0px;
  background: #17344a;
  overflow: hidden;
}

.tms-books-magazines__trust-track {
  display: block;
  width: 100%;
}

.tms-books-magazines__trust-set {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.tms-books-magazines__trust-set[aria-hidden="true"] {
  display: none;
}

.tms-books-magazines__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 95px;
  text-align: center;
  color: #ffffff;
  border-right: 1px solid rgba(255,255,255,0.25);
}

.tms-books-magazines__trust-item:last-child {
  border-right: 0;
}

.tms-books-magazines__trust-icon {
  margin-bottom: 8px;
  font-size: 27px;
}

.tms-books-magazines__trust-item strong {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.tms-books-magazines__trust-item span:last-child {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.8;
}


/* TABLET
--------------------------------------------------------- */

@media screen and (max-width: 990px) {

  .tms-books-magazines__intro-row {
    grid-template-columns: 1fr;
  }

  .tms-books-magazines__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tms-books-magazines__trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .tms-books-magazines__trust-item:nth-child(2) {
    border-right: 0;
  }

  .tms-books-magazines__trust-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }
}


/* ==================================================
   MOBILE — BOOKS & MAGAZINES HERO
   Compact image-above-text layout
   ================================================== */

@media screen and (max-width: 749px) {

  .tms-books-magazines__hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

    /* Mobile — subtle dark navy wash */

.tms-books-magazines__hero::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 26, 43, 0.12) 0%,
    rgba(7, 26, 43, 0.30) 100%
  );
}

  /* Image at the top */

.tms-books-magazines__hero-image {
  position: relative;
  order: 1;
  width: 100%;
  height: 175px;
  min-height: 175px;
  overflow: hidden;
}

.tms-books-magazines__hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
}

/* Remove the dark overlay on mobile */

.tms-books-magazines__hero-overlay {
  display: none;
}

  /* Text underneath */

  .tms-books-magazines__hero-content {
  position: relative;
  order: 2;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 22px 24px;
  background: #071a2b;
  color: #ffffff;
}

  .tms-books-magazines__breadcrumbs {
    margin-bottom: 10px;
  }

  .tms-books-magazines__hero-title {
  margin: 0;
  font-size: 29px;
  line-height: 1.12;
  color: #ffffff;
}

  .tms-books-magazines__hero-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: #e2e8f0;
}




  /* -------------------------------------------------------
     CONTENT — REDUCE EXCESSIVE TOP GAP
     ------------------------------------------------------- */

  .tms-books-magazines__content {
    padding: 30px 22px 50px;
  }

  .tms-books-magazines__intro-row {
    gap: 24px;
    margin-bottom: 30px;
  }

  .tms-books-magazines__intro h2 {
    font-size: 29px;
    margin-top: 6px;
  }


  /* -------------------------------------------------------
     ADVICE BOX — TIGHTER
     ------------------------------------------------------- */

  .tms-books-magazines__advice {
    padding: 22px;
    gap: 18px;
  }

  .tms-books-magazines__advice-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }


  /* -------------------------------------------------------
   CATEGORY CARDS — MOBILE HORIZONTAL CAROUSEL
   APPROX. 2½ CARDS VISIBLE
   ------------------------------------------------------- */

.tms-books-magazines__grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;

  width: calc(100vw - 44px);

  overflow-x: auto;
  overflow-y: hidden;

  padding: 4px 0 0;

  margin-bottom: 0;
  min-height: 0;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}

.tms-books-magazines__grid::-webkit-scrollbar {
  display: none;
}


.tms-books-magazines__card {
  flex: 0 0 40%;
  min-width: 0;

  height: auto;
  min-height: 0;

  align-self: stretch;

  display: flex;
  flex-direction: column;
}


.tms-books-magazines__card-image {
  aspect-ratio: 1.45 / 1;
  flex-shrink: 0;
}


.tms-books-magazines__card-content {
  padding: 14px;

  flex: 1;
}


.tms-books-magazines__card-content h3 {
  font-size: 18px;
}


.tms-books-magazines__card-content p {
  font-size: 13px;
}


    /* -------------------------------------------------------
     TRUST BAR — MOBILE AUTO-SCROLL
     ------------------------------------------------------- */

  .tms-books-magazines__trust {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 7px 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .tms-books-magazines__trust-track {
    display: flex;
    width: max-content;
    animation: tms-books-trust-scroll 24s linear infinite;
    will-change: transform;
  }

  .tms-books-magazines__trust-set {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    padding-right: 10px;
  }

  .tms-books-magazines__trust-item {
    flex: 0 0 68vw;
    width: 68vw;
    min-width: 0;
    min-height: 68px;
    padding: 8px 14px;
    box-sizing: border-box;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
  }

  .tms-books-magazines__trust-icon {
    margin-bottom: 3px;
    font-size: 1.15rem;
  }

  .tms-books-magazines__trust-item strong {
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
  }

  .tms-books-magazines__trust-item span:last-child {
    margin-top: 3px;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  @keyframes tms-books-trust-scroll {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(-50%);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .tms-books-magazines__trust-track {
      animation: none;
    }
  }