/* Quick fixes for the old static site, loaded after main.css.
   Kept small on purpose — the rebuild replaces all of this. */

/* ---------- No sideways scroll on phones ---------- */
body {
  overflow-x: hidden;
}

.footer-menu-item-l9 {
  margin-left: 0;
  margin-right: 0;
}

.footer-menu-item-l9 li {
  margin-left: 12px;
  margin-right: 12px;
}

/* full-bleed image rows sit in .container-fluid.p-0, so the row gutters spill over */
.project-brief-area .container-fluid.p-0 > .row {
  margin-left: 0;
  margin-right: 0;
}

/* ---------- Main menu: fit all 6 items on small laptops / iPad landscape ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-menu-main .nav-link-item {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* long French titles in the Publications dropdown */
.site-menu-main .sub-menu--item a {
  white-space: normal;
}

@media (min-width: 992px) {
  .site-menu-main .sub-menu {
    min-width: 360px;
    max-width: 360px;
  }
}

/* ---------- Articles: make cards read as tappable on touch / tablet ---------- */
@media (hover: none), (max-width: 1199.98px) {
  .blog-items-l9 .blog-content-area {
    background: #f2f1f3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  .blog-items-l9 .blog-content-area .blog-image {
    border-radius: 0;
  }

  .blog-items-l9 .blog-content-area .content {
    padding: 20px 20px 22px 20px;
  }

  .blog-items-l9 .blog-content-area .content p {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 0;
  }

  .blog-items-l9 .blog-content-area .content a::after {
    content: "Read article \2192";
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #046380;
    border-bottom: 2px solid currentColor;
  }
}

/* ---------- Publication / article detail pages ---------- */
.blog-btn {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 575.98px) {
  .project-info-area-pr-de-2 .port-details-1-content .project-details ul li span {
    display: block;
    margin-left: 0;
  }

  .project-info-area-pr-de-2 .port-details-1-content .project-details .btn {
    margin-top: 12px;
  }

  .prev-next-project-area .project-link-area-next {
    margin-top: 24px;
  }
}

/* ---------- Bookstores: Amazon logos with store caption ---------- */
.brand-area-l11 .amazon-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.brand-area-l11 .amazon-brand img {
  height: auto;
}

.brand-area-l11 .amazon-brand span {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #221f1f;
}
