/* =========
   Partners Showcase (scoped)
   ========= */

.ps-section{ margin: 28px 0 42px; }

/* ===== Tier title (responsive, skewed 3 bars, white text) ===== */
.ps-title{
  position: relative;
  width: calc(100% - 64px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;

  margin: 5px auto;
  padding: 18px 0;
  line-height: 1;
  z-index: 1;

  /* responsive title size */
  font-size: clamp(22px, 4.6vw, 56px);

  /* bars */
  --skew: -25deg;
  --bar-thickness: clamp(10px, 2.2vw, 22px);
  --bar-gap: clamp(0px, 0.25vw, 0px);
}

/* bars */
.ps-title::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  transform: translateY(-50%) skewX(var(--skew));
  height: calc((3 * var(--bar-thickness)) + (2 * var(--bar-gap)));
  z-index:-1;

  background:
    linear-gradient(#f05a28, #f05a28),
    linear-gradient(#1a4fa3, #1a4fa3),
    linear-gradient(#44b9e6, #44b9e6);

  background-repeat:no-repeat;

  background-size:
    88% var(--bar-thickness),
    94% var(--bar-thickness),
    100% var(--bar-thickness);

  background-position:
    left 0,
    left calc(var(--bar-thickness) + var(--bar-gap)),
    left calc(2 * (var(--bar-thickness) + var(--bar-gap)));
}

/* title text */
.ps-title > span{
  display:inline-block;
  transform: skewX(var(--skew));
  color:#fff;
  padding: 0 10px;

  text-wrap: balance;
  word-break: normal;
  overflow-wrap: anywhere;

  position: relative;
  top: 0px;
}


.ps-title--bare{
  height: calc((3 * var(--bar-thickness)) + (2 * var(--bar-gap)));
  padding: 0;
  margin: 5px auto;
}

.ps-title--bare::before{
  content:"";
}

.ps-title--bare > span{
  display:none;
}

/* Mobile: reduce skew a bit for cleaner wrap */
@media (max-width:640px){
  .ps-title{
    padding: 14px 0;
    --skew: -14deg;
  }
  .ps-title > span{
    padding: 0 6px;
    top: 0px;
  }
}

/* ===== Grid ===== */
.ps-grid{
  display: grid !important;
  gap: 10px !important;
  align-items: stretch !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

/* ===== Card =====
   1px border in the partner's accent colour, taken from the logo unless it has
   been set by hand. The tile itself is white unless a tile colour is set, which
   is how a boxed logo (ESAB yellow, GSB black) stops reading as a box inside a
   box. No glow at rest — the glow is the hover state. */
.ps-item{
  --ps-brand: #7d8aa0;
  --ps-brand-rgb: 125,138,160;
  --ps-tile: #fff;

  box-sizing: border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius: 14px !important;
  overflow:hidden !important;
  border: 1px solid var(--ps-brand) !important;
  background: var(--ps-tile) !important;
  padding: var(--ps-pad, 2px) !important;
  box-shadow: none !important;
  transition: transform 200ms ease, box-shadow 200ms ease !important;
  text-decoration: none !important;
}

.ps-item:hover,
.ps-item:focus-visible{
  transform: translateY(-3px) !important;
  box-shadow:
    0 14px 34px -10px rgba(var(--ps-brand-rgb), 0.75),
    0 0 26px -6px rgba(var(--ps-brand-rgb), 0.50) !important;
}

/* ===== Logo ===== */
.ps-logo{
  display:block !important;
  height: var(--ps-logo-h, 100px) !important;
  width:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  transition: transform 200ms ease, filter 200ms ease !important;
}

.ps-item:hover .ps-logo{
  filter: brightness(1.08) saturate(1.10) !important;
  transform: scale(1.04) !important;
}

.ps-logo--placeholder{
  width:100% !important;
  height: var(--ps-logo-h, 100px) !important;
  background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02)) !important;
  border-radius:10px !important;
}

/* Keep the colour, drop the movement, for anyone who asks for less motion. */
@media (prefers-reduced-motion: reduce){
  .ps-item, .ps-logo{ transition: none !important; }
  .ps-item:hover{ transform: none !important; }
  .ps-item:hover .ps-logo{ transform: none !important; }
}

/* ===== Tier columns (desktop/tablet/mobile same) ===== */
.ps-tier-title .ps-grid{ grid-template-columns: repeat(1, minmax(0,1fr)) !important; }
.ps-tier-main  .ps-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
.ps-tier-general .ps-grid{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
.ps-tier-supporting .ps-grid{ grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
.ps-tier-supplying .ps-grid{ grid-template-columns: repeat(5, minmax(0,1fr)) !important; }
.ps-tier-institutions .ps-grid{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; }

/* ===== Tier logo sizes ===== */
.ps-tier-title{ --ps-logo-h: 200px; --ps-pad: 26px; }
.ps-tier-main{ --ps-logo-h: 160px; --ps-pad: 22px; }
.ps-tier-general{ --ps-logo-h: 135px; --ps-pad: 18px; }
.ps-tier-supporting{ --ps-logo-h: 110px; --ps-pad: 14px; }
.ps-tier-supplying{ --ps-logo-h: 95px; --ps-pad: 12px; }
.ps-tier-institutions{ --ps-logo-h: 105px; --ps-pad: 12px; }

/* ===== Mobile: prevent tall stretched cards but keep 3/4/5 columns ===== */
@media (max-width:640px){
  .ps-grid{ gap: 6px !important; }

  .ps-item{
    padding: 6px !important;
    aspect-ratio: 16 / 9;
    border-radius: 11px !important;
  }

  .ps-logo{
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
  }

  .ps-tier-title{ --ps-pad: 14px; }
  .ps-tier-main{ --ps-pad: 12px; }
  .ps-tier-general{ --ps-pad: 10px; }
  .ps-tier-supporting{ --ps-pad: 9px; }
  .ps-tier-supplying{ --ps-pad: 8px; }
  .ps-tier-institutions{ --ps-pad: 9px; }
}

/* =========
   Honour page (single partner)
   ========= */

.ps-honour{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.ps-honour__header{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  margin: 0 0 20px;
}

.ps-honour__logoWrap{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ps-honour__logo{
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display:block;
}

.ps-honour__title{
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.1;
}

.ps-honour__meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ps-btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  text-decoration:none;
  font-weight: 700;
}

.ps-btn:hover{
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

.ps-btn--primary{
  background: #111;
  color: #fff;
  border-color: rgba(0,0,0,0.20);
}

.ps-btn--ghost{
  background: #fff;
  color: #111;
}

.ps-honour__content{
  margin-top: 18px;
  line-height: 1.7;
}

@media (max-width:700px){
  .ps-honour__header{
    grid-template-columns: 1fr;
  }
  .ps-honour__logo{
    max-height: 120px;
  }
}



/* Honour page template v1.16.37 */
.ps-honour{max-width:1200px;margin:0 auto;padding:5px 16px 24px;}
.ps-honour__hero{margin:5px 0;}
.ps-honour__cover{display:block;width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:20px;border:1px solid rgba(255,255,255,.12);}
.ps-honour__panel{margin:5px 0;padding:24px;border-radius:20px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(90deg, rgba(7,25,56,.95) 0%, rgba(10,14,24,.98) 55%, rgba(7,25,56,.95) 100%);}
.ps-honour__panel--hero{padding:28px;}
.ps-honour__eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;opacity:.8;margin-bottom:8px;}
.ps-honour__subtitle{margin:0 0 12px;font-size:18px;line-height:1.5;color:rgba(255,255,255,.88);}
.ps-honour__sectionTitle{margin:0 0 8px;font-size:clamp(24px,2.8vw,38px);line-height:1.08;font-weight:900;font-style:italic;text-transform:uppercase;color:#fff;}
.ps-honour__content,.ps-honour__content p,.ps-honour__content li{color:#fff;line-height:1.75;}
.ps-honour__content p{margin:0 0 10px;}
.ps-honour__zigs{display:grid;gap:5px;}
.ps-honour__zig{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center;}
.ps-honour__zigLogoWrap{display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:18px;background:rgba(255,255,255,.04);min-height:180px;}
.ps-honour__quote blockquote{margin:0;font-size:clamp(20px,2.4vw,32px);line-height:1.45;font-style:italic;color:#fff;}
.ps-honour__quoteAuthor{margin-top:12px;font-weight:700;opacity:.85;}
@media (max-width: 800px){
  .ps-honour__zig{grid-template-columns:1fr;}
}


.ps-honour__zigMediaWrap{display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:18px;background:rgba(255,255,255,.04);min-height:180px;overflow:hidden;}
.ps-honour__zigMediaWrap .metaslider,.ps-honour__zigMediaWrap .metaslider img{max-width:100%;width:100%;}
.ps-honour__mediaImg{display:block;width:100%;height:auto;border-radius:14px;}
.ps-honour__pressWrap{margin:5px 0;}


/* ===== v1.16.47 honour page layout fix ===== */
.ps-honour__panel {
  padding: 24px !important;
}

.ps-honour__zigs {
  gap: 12px !important;
}

.ps-honour__zig {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) !important;
  gap: 24px !important;
  align-items: flex-start !important;
}

.ps-honour__zig:nth-child(even) {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr) !important;
}

.ps-honour__zigMediaWrap {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  align-self: start !important;
}

.ps-honour__zigMediaWrap .metaslider,
.ps-honour__zigMediaWrap .metaslider img,
.ps-honour__mediaImg {
  width: 100% !important;
  display: block !important;
}

.ps-honour__mediaImg {
  height: 100% !important;
  min-height: 260px !important;
  max-height: 420px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 18px !important;
}

.ps-honour__zig > div:first-child,
.ps-honour__zig > div:last-child {
  align-self: start !important;
}

@media (max-width: 800px) {
  .ps-honour__zig,
  .ps-honour__zig:nth-child(even) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .ps-honour__mediaImg {
    min-height: 220px !important;
    max-height: none !important;
  }
}


/* Honour footer buttons */
.ps-honour__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 5px 0 0;
}

.ps-honour__visitBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
}

@media (max-width: 700px){
  .ps-honour__footer{
    flex-direction:column-reverse;
    align-items:stretch;
  }
  .ps-honour__footer .ps-btn{
    text-align:center;
  }
}

/* ===== v1.16.45 honour page light/dark mode support ===== */
html:not([data-theme="dark"]) .ps-honour__cover{
  border-color: rgba(11,45,85,.14);
  box-shadow: 0 18px 42px rgba(11,45,85,.10);
}

html:not([data-theme="dark"]) .ps-honour__panel{
  border-color: rgba(11,45,85,.12);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.96) 0%,
    rgba(245,248,252,.98) 55%,
    rgba(255,255,255,.96) 100%
  ) !important;
  box-shadow: 0 18px 42px rgba(11,45,85,.08);
}

html:not([data-theme="dark"]) .ps-honour__eyebrow{
  color: rgba(11,45,85,.72);
}

html:not([data-theme="dark"]) .ps-honour__title,
html:not([data-theme="dark"]) .ps-honour__sectionTitle{
  color: var(--brand-blue);
}

html:not([data-theme="dark"]) .ps-honour__subtitle{
  color: rgba(11,45,85,.84);
}

html:not([data-theme="dark"]) .ps-honour__content,
html:not([data-theme="dark"]) .ps-honour__content p,
html:not([data-theme="dark"]) .ps-honour__content li,
html:not([data-theme="dark"]) .ps-honour__quote blockquote,
html:not([data-theme="dark"]) .ps-honour__quoteAuthor{
  color: #16283e;
}

html:not([data-theme="dark"]) .ps-honour__logoWrap,
html:not([data-theme="dark"]) .ps-honour__zigLogoWrap{
  border-color: rgba(11,45,85,.12);
  background: rgba(255,255,255,.82);
}

html:not([data-theme="dark"]) .ps-honour__zigMediaWrap{
  box-shadow: 0 16px 34px rgba(11,45,85,.08);
}

html:not([data-theme="dark"]) .ps-honour__footer .ps-btn--ghost{
  background: rgba(255,255,255,.9);
  color: var(--brand-blue);
  border-color: rgba(11,45,85,.14);
}

html:not([data-theme="dark"]) .ps-honour__footer .ps-btn--primary,
html:not([data-theme="dark"]) .ps-honour__visitBtn{
  background: var(--brand-blue);
  color: #fff;
  border-color: rgba(11,45,85,.20);
}

html:not([data-theme="dark"]) .ps-honour__footer .ps-btn:hover{
  box-shadow: 0 12px 28px rgba(11,45,85,.14);
}


/* ===== v1.16.46 honour page fixed header offset ===== */
.ps-honour{
  padding-top: calc(78px + 12px) !important;
}

@media (max-width: 980px){
  .ps-honour{
    padding-top: calc(78px + 10px) !important;
  }
}
