/* ==========================================================================
   Technology partners index.

   Loaded after global.css / site.css / interactions.css / final-site-fixes.css,
   and before the sheets shared.js injects at runtime (design-system,
   homepage-palette, professional-polish). Those later sheets set card colour
   with !important, so anything this file needs to win outright is stated at
   the same weight and at a higher specificity.

   The explore control is the reason this file exists. site.css painted
   .btn-explore with a solid --o2 fill and white text; professional-polish then
   recoloured the text to #c8420f with !important. Neither sheet was wrong on
   its own, but together they produced #c8420f on #e5551a - orange on orange,
   about 1.3:1. The control is now what every other card on the site uses: an
   orange text action in the bottom-right corner, with one arrow.
   ========================================================================== */

.partner-index-body {
  --px-ink: #0f2238;
  --px-ink-2: #33455a;
  --px-muted: #5a6b7f;
  --px-line: #e3e9f0;
  --px-line-soft: #eef2f6;
  --px-paper: #f6f8fa;
  --px-accent: #c8420f;
}

/* ----------------------------------------------------------------- hero -- */

.partner-crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font: 600 11.5px/1 var(--f-mono, 'JetBrains Mono', monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.partner-crumbs a { color: #ffb18d; text-decoration: none; border-bottom: 1px solid transparent; }
.partner-crumbs a:hover { border-bottom-color: currentColor; }
.partner-crumbs span[aria-hidden] { color: rgba(255, 255, 255, .58); }
.partner-crumbs > span:last-child { color: rgba(255, 255, 255, .66); }

html body .partner-hero .ph-sub { max-width: 68ch; }

/* ------------------------------------------------------------- sections -- */

.partner-index { padding: 12px 0 8px; background: #fff; }

.partner-group { padding: 52px 0; border-top: 1px solid var(--px-line-soft); }
.partner-group:first-child { border-top: 0; }

.partner-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--px-line);
}

html body .partner-group__title {
  margin: 0;
  color: var(--px-ink);
  font-family: var(--f-head, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}

/* Each group names where the whole category lives, so the index is a route
   into the catalogue rather than a dead end of seventeen cards. */
.partner-group__link {
  flex: none;
  color: var(--px-accent);
  font: 700 12px/1 var(--f-body, Inter, sans-serif);
  text-decoration: none;
  white-space: nowrap;
}

.partner-group__link::after { content: " \2192"; }
.partner-group__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- grid --- */

/* auto-fill made each group resolve its own column count, so rows in
   different groups did not line up. Three fixed tracks keeps every card the
   same width down the page. */
html body .partner-card-grid.partner-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-top: 0 !important;
  align-items: stretch;
}

.pcard-wrap { display: flex; flex-direction: column; min-width: 0; }

/* ---------------------------------------------------------------- card --- */

html body a.partner-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--px-line);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
}

html body a.partner-card:hover { border-color: #c3d0dd; }

/* logo strip */
html body .partner-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  min-height: 92px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--px-line-soft);
  background: var(--px-paper);
}

html body .partner-card-logo img {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 42px;
  object-fit: contain;
}

/* only shown when the logo file fails to load */
html body .partner-card-logo-text {
  color: var(--px-ink) !important;
  font-family: var(--f-head, 'Plus Jakarta Sans', sans-serif);
  font-size: 17px !important;
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
}

html body .partner-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 20px 22px 6px;
}

html body .partner-card-sub {
  color: var(--px-accent);
  font: 700 9.5px/1.3 var(--f-mono, 'JetBrains Mono', monospace);
  letter-spacing: .14em;
  text-transform: uppercase;
}

html body .partner-card-name {
  color: var(--px-ink);
  font-family: var(--f-head, 'Plus Jakarta Sans', sans-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
}

/* global.css and final-site-fixes.css both set text-align:justify !important
   on this class. At 13px in a ~34-character column that opens visible rivers
   of white space, so it is set back at the same weight. */
html body .partner-card-desc {
  flex: 1;
  color: var(--px-muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: left !important;
  text-align-last: left !important;
  hyphens: none !important;
}

html body .partner-card-footer {
  display: flex;
  padding: 14px 22px 18px;
  border-top: 0;
}

/* ------------------------------------------------------- explore action -- */

/* The fix. Stated at !important because site.css, interactions.css and
   professional-polish.css all reach this element that way. */
html body a.partner-card .btn-explore.btn-explore {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: auto !important;          /* bottom-right corner of the card */
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--px-accent) !important;
  font-family: var(--f-body, Inter, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  transition: color .17s ease, transform .17s ease !important;
}

html body a.partner-card:hover .btn-explore.btn-explore {
  color: var(--px-ink) !important;
  transform: translateX(3px) !important;
}

/* one arrow: the markup no longer carries a literal one, this is the only
   source left */
html body a.partner-card .btn-explore.btn-explore::after {
  content: "\2192" !important;
  display: inline !important;
  font-size: 1.05em !important;
  transform: none !important;
}

/* ------------------------------------------------- per-card cross-ref ---- */

.pcard-xref {
  margin: 9px 0 0;
  padding: 0 4px;
  font-size: 11.5px;
  line-height: 1.4;
}

.pcard-xref a {
  color: var(--px-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pcard-xref a::before { content: "\2192  "; color: #a9b7c6; }
.pcard-xref a:hover { color: var(--px-accent); border-bottom-color: currentColor; }

/* ------------------------------------------------------- become a partner */

html body .partner-join {
  padding: 54px 0;
  background: var(--px-paper);
  border-top: 1px solid var(--px-line);
}

.partner-join__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: center;
}

html body .partner-join__inner h2 {
  margin: 10px 0 8px;
  color: var(--px-ink);
  font-family: var(--f-head, 'Plus Jakarta Sans', sans-serif);
  letter-spacing: -.02em;
  text-align: left;
}

html body .partner-join__inner p {
  max-width: 62ch;
  margin: 0;
  color: var(--px-muted);
  font-size: 14.5px;
  line-height: 1.7;
  text-align: left;
}

.partner-join__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1040px) {
  html body .partner-card-grid.partner-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  .partner-join__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  html body .partner-card-grid.partner-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .partner-group { padding: 38px 0; }
  .partner-group__head { flex-direction: column; align-items: flex-start; }
  .partner-join__actions .btn { width: 100%; justify-content: center; }
}
