/*
 * 2026 rebrand: blue -> grey (per TPP_Website_Update.pdf).
 *
 * Loaded after style.css as an override layer. style.css is not regenerated
 * from src/less because the compiled file contains edits that are not in the
 * LESS sources.
 *
 *   Dark grey  #3C3D3A  (logo text colour)
 *   Mid grey   #9A9695  (link icons)
 *   Light grey #F2F2F2  (header / upper footer)
 */

/* ---------- Utilities ---------- */
/* .color-* / .bg-color-* are left alone: they carry the industry sector
   colours (Corrugated navy, Folding Carton orange, Flexible blue, Label grey). */
blockquote::before { color: #9A9695; }

/* ---------- Header ---------- */
.page-navigation {
  background-color: #F2F2F2;
  -webkit-box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08), 0 3px 6px 0 rgba(0, 0, 0, 0.06);
          box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08), 0 3px 6px 0 rgba(0, 0, 0, 0.06);
}
.page-navigation__logo img { width: 180px; height: auto; }
@media screen and (min-width: 992px) {
  .page-navigation__logo img { width: 285px; }
}
.page-navigation__icons a { color: #3C3D3A; }
.hamburger span { background: #3C3D3A; }
/* Heavier, shorter hamburger / close lines per PDF */
.hamburger .burger span { width: 26px; height: 3px; }
.hamburger .cross {
  -webkit-transform: rotate(45deg) scale(0.6);
          transform: rotate(45deg) scale(0.6);
}
.hamburger .cross span:nth-child(1) { width: 5px; left: 15px; }
.hamburger .cross span:nth-child(2) { height: 5px; top: 30px; }

/* ---------- Slide-out menu ---------- */
.main-nav { background-color: #3C3D3A; }
.main-nav .menu li a,
.main-nav .account-links a { color: #FFFFFF; font-weight: 700; }
.main-nav .account-links a { font-family: 'Roboto', sans-serif; }
.main-nav .menu li a:hover,
.main-nav .account-links a:hover { color: #9A9695; }
.main-nav .menu li.current-page-ancestor > a,
.main-nav .menu li.current_page_item > a { color: #9A9695; }
.main-nav .menu li:last-child { border-bottom-width: 2px; }

/* ---------- Search ---------- */
.search-form .submit-btn { background-color: #9A9695; }
.search-form .submit-btn:hover,
.search-form .submit-btn:focus { background-color: #717171; }
.search-form .close-btn:focus,
.search-form .close-btn:hover { color: #9A9695; }

/* ---------- Section blocks ---------- */
.section-block__tab { background-color: #3C3D3A; }
.section-block__title { border-top-color: #9A9695; }
.section-block__title a:hover {
  -webkit-text-decoration-color: #3C3D3A;
          text-decoration-color: #3C3D3A;
}

/* Grey sections (Digital Issues) keep their white rule */
.section-block.grey .section-block__title { border-top-color: #FFFFFF; }

/* Supplier Network (was .blue) */
.section-block.blue { background-color: #3C3D3A; }
.section-block.blue .section-block__title { border-top-color: #3C3D3A; }
.section-block.blue .section-block__tab {
  background-color: #FFFFFF;
  color: #3C3D3A;
  font-weight: 400;
}
/* The theme's bold is a separate webfont family, not a weight */
.block-suppliers__types li a,
.block-suppliers .section-block__text { font-family: 'Helvetica Neue LT W05_75 Bold'; }

/* Digital Issues subscribe CTA */
.simple-cta { background-color: #FFFFFF; color: #3C3D3A; }
.simple-cta__text { font-family: 'Helvetica Neue LT W05_75 Bold'; }

/* ---------- Buttons ---------- */
.btn { background-color: #3C3D3A; }
.btn:hover { background-color: #232422; }
.btn--transparent-black { background-color: transparent; }
.btn--transparent-black:hover { border-color: #3C3D3A; color: #3C3D3A; background-color: transparent; }
.btn--transparent-black:focus { border-color: #232422; color: #232422; }
.btn--transparent-white { background-color: transparent; }
.btn--transparent-white:hover { background-color: rgba(255, 255, 255, 0.15); }
.btn--transparent-white:focus { background-color: rgba(255, 255, 255, 0.25); }
.btn--transparent { background-color: transparent; }
.btn--transparent:hover { background-color: transparent; color: #3C3D3A; }
.btn--transparent:focus { background-color: transparent; color: #232422; }
.section-block.grey .btn--transparent:hover,
.section-block.blue .btn--transparent:hover { color: #FFFFFF; opacity: 0.8; }

/* ---------- Forms ---------- */
input:focus, textarea:focus, select:focus { border-color: #717171; }
form input[type="radio"]:checked + label::before,
form input[type="checkbox"]:checked + label::before { border-color: #3C3D3A; color: #3C3D3A; }
ul.gform_fields .gfield_checkbox input[type="checkbox"]:checked + label,
ul.gform_fields .gfield_checkbox input[type="radio"]:checked + label { color: #3C3D3A; }
ul.gform_fields .small-text a:hover {
  -webkit-text-decoration-color: #3C3D3A;
          text-decoration-color: #3C3D3A;
}

/* ---------- Archives / listings ---------- */
.archive-filter { border-top-color: #9A9695; }
.post-view__details { border-top-color: #9A9695; }
.pagination ul.page-numbers li > .page-numbers.current {
  background-color: #3C3D3A;
  border-color: #3C3D3A;
}
.pagination ul.page-numbers li > .page-numbers.next:hover,
.pagination ul.page-numbers li > .page-numbers.prev:hover { color: #3C3D3A; }
.page-intro__text a:hover { color: #3C3D3A; }

.block-feature:hover .block-feature__title { color: #3C3D3A; }
.block-supplier:hover .block-supplier__title,
.block-supplier:hover i { color: #3C3D3A; }
.block-video:hover .block-video__title,
.block-industry-post__link:hover .block-industry-post__title {
  -webkit-text-decoration-color: #3C3D3A;
          text-decoration-color: #3C3D3A;
}

/* Events */
.block-event { border-top-color: #9A9695; }
.block-event__link {
  color: #9A9695;
  font-size: 1.6rem;
  padding-left: 18px;
  background: url('../images/icons/external-link.svg') no-repeat left center / 11px 11px;
}
.block-event__link:hover {
  -webkit-text-decoration-color: #9A9695;
          text-decoration-color: #9A9695;
}

/* Social share / suppliers / sitemap */
.social-share__title { color: #3C3D3A; }
.social-share__list li a:hover { background-color: #3C3D3A; }
.single-suppliers .supplier-details__contact li i { color: #9A9695; }
.single-suppliers .supplier-form-title { color: #3C3D3A; }
.page-template-supplier-guide .supplier-types-list a:hover i { color: #3C3D3A; }
.sitemap ul { border-left-color: #9A9695; }
.sitemap a:hover { color: #3C3D3A; }
.sitemap h2,
.sitemap h2 a { color: #3C3D3A; }

/* ---------- CMS content (Advertise, About Us, etc.) ---------- */
/* Links always underlined, not just on hover */
.cms-content a { color: #9A9695; text-decoration: underline; }
.cms-content a:hover { text-decoration: underline; opacity: 0.8; }

/* Advertise page (ID 328): bold body copy, regular grey links with envelope icons */
.page-id-328 .cms-content p { font-family: 'Helvetica Neue LT W05_75 Bold'; }
.page-id-328 .cms-content p a[href^="mailto:"],
.page-id-328 .cms-content address a { font-family: 'Helvetica Neue LT W05_55 Roman'; }
.page-id-328 .cms-content a[href^="mailto:"] {
  padding-left: 19px;
  background: url('../images/icons/email.svg') no-repeat left center / 14px 11px;
}
/* Media pack downloads. Icon is an empty inline-block, so its bottom edge
   sits on the text baseline. Colour classes come from gp_tag_media_pack_links(). */
.cms-content a[href$=".pdf"]::after {
  content: '';
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.35em;
  vertical-align: baseline;
  background: url('../images/icons/download-navy.svg') no-repeat center / contain;
}
.cms-content a[href$=".pdf"],
.cms-content a.media-pack-link--ipbi { color: #1C3E76; }
.cms-content a.media-pack-link--fci { color: #F8B50C; }
.cms-content a.media-pack-link--fci::after { background-image: url('../images/icons/download-orange.svg'); }
.cms-content a.media-pack-link--tpp { color: #0178D3; }
.cms-content a.media-pack-link--tpp::after { background-image: url('../images/icons/download-blue.svg'); }
.cms-content a.media-pack-link--rfn { color: #00A030; }
.cms-content a.media-pack-link--rfn::after { background-image: url('../images/icons/download-green.svg'); }

/* ---------- Share ---------- */
.social-share__icon {
  display: inline-block;
  width: 0.9em;
  height: auto;
  margin-right: 0.5em;
  vertical-align: -0.1em;
}

/* ---------- CTA without a title (Digital Issues "Interactive issues") ---------- */
.block-cta.no-title { background-color: #9A9695; }
.block-cta.no-title .section-block__text {
  font-family: 'Helvetica Neue LT W05_75 Bold';
  font-size: 2.8rem;
  line-height: 3.6rem;
}
@media screen and (min-width: 992px) {
  .block-cta.no-title .section-block__text { font-size: 3.6rem; line-height: 4.4rem; }
  .block-cta.no-title.has-image { padding-top: 120px; padding-bottom: 120px; }
}

/* Image sits inside the grey box rather than overhanging it */
.block-cta.no-title .block-cta__image {
  padding: 30px 30px 40px;
  text-align: center;
}
.block-cta.no-title .block-cta__image img {
  max-width: 500px;
}
@media screen and (min-width: 992px) {
  .block-cta.no-title .block-cta__image {
    top: 0;
    bottom: 0;
    left: 48%;
    right: 8%;
    width: auto;
    padding: 0;
  }
  .block-cta.no-title .block-cta__image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
  }
}

/* ---------- Loader ---------- */
@-webkit-keyframes loader-anim {
  0%, 50%, 100% { height: 5px; -webkit-transform: translateY(0); transform: translateY(0); background: rgba(0, 0, 0, 0.25); }
  25% { height: 30px; -webkit-transform: translateY(15px); transform: translateY(15px); background: #3C3D3A; }
}
@keyframes loader-anim {
  0%, 50%, 100% { height: 5px; -webkit-transform: translateY(0); transform: translateY(0); background: rgba(0, 0, 0, 0.25); }
  25% { height: 30px; -webkit-transform: translateY(15px); transform: translateY(15px); background: #3C3D3A; }
}

/* ---------- Footer ---------- */
.page-footer { background-color: #F2F2F2; color: #3C3D3A; }
.page-footer__lower { background-color: #3C3D3A; color: #FFFFFF; }
.page-footer__lower a { color: #FFFFFF; }
.page-footer .social-media a { color: #FFFFFF; }
