/* Partner cards — canonical card pattern for partners in three tiers.
   Used on the support/partners directory and on app/solution detail
   pages ("Provided by partners"). Pages link this file; do not re-inline.

   Modifiers: .tier-partner (default), .tier-certified (gold), .tier-strategic
   (cobalt-fill inverse). The tier pill in the top-right conveys tier; the
   logo plate stays white so transparent / dark logos read on every tier. */

.partner-card {
  background: white;
  border: 1px solid var(--c-cobalt-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-1);
  text-decoration: none; color: inherit;
  transition: all 160ms ease;
  position: relative;
}
.partner-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

.partner-card .pc-tier {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--conduction-typography-font-family-code);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  background: var(--c-cobalt-50); color: var(--c-cobalt-700);
}

.partner-card.tier-certified .pc-tier { background: var(--c-gold-500); color: var(--c-cobalt-900); }
.partner-card.tier-strategic { background: var(--c-blue-cobalt); color: white; border-color: var(--c-blue-cobalt); }
.partner-card.tier-strategic .pc-tier { background: white; color: var(--c-blue-cobalt); }

/* Logo lock-up. Height-capped, width-capped, on a subtle white panel so
   dark / transparent logos still read on the Strategic (cobalt-fill) card. */
.partner-card .pc-avatar {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  height: 36px;
  box-sizing: content-box;
}
.partner-card .pc-avatar img {
  max-height: 36px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.partner-card .pc-name { font-size: 18px; font-weight: 700; color: var(--c-cobalt-900); }
.partner-card.tier-strategic .pc-name { color: white; }

.partner-card .pc-summary { font-size: 14px; line-height: 1.55; color: var(--c-cobalt-700); }
.partner-card.tier-strategic .pc-summary { color: rgba(255,255,255,0.78); }

/* Apps-used pill row at the foot of the card. */
.partner-card .pc-apps {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-cobalt-100);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.partner-card.tier-strategic .pc-apps { border-top-color: rgba(255,255,255,0.18); }
.partner-card .pc-apps .app-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-cobalt-50);
  color: var(--c-cobalt-700);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-family: var(--conduction-typography-font-family-code);
}
.partner-card.tier-strategic .pc-apps .app-pill { background: rgba(255,255,255,0.12); color: white; }
.partner-card .pc-apps .app-pill .h { width: 8px; height: 9px; clip-path: var(--hex-pointy-top); background: var(--c-blue-cobalt); }
.partner-card.tier-strategic .pc-apps .app-pill .h { background: var(--c-orange-knvb); }
/* Nextcloud-supplier pill: real Nextcloud logo + brand-cited text. */
.partner-card .pc-apps .app-pill.nextcloud { cursor: help; }
.partner-card .pc-apps .app-pill.nextcloud img { width: 14px; height: 14px; display: block; flex-shrink: 0; }

/* Become-a-partner CTA tile that fills the trailing slot in the directory grid. */
.partner-card.become {
  background: var(--c-cobalt-50);
  border: 1px dashed var(--c-cobalt-300);
  box-shadow: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
}
.partner-card.become:hover { border-color: var(--c-blue-cobalt); transform: none; box-shadow: var(--shadow-1); }
.partner-card.become .become-eyebrow {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-cobalt-400);
  margin-bottom: 8px;
}
.partner-card.become h4 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.partner-card.become p {
  font-size: 14px; color: var(--c-cobalt-700); line-height: 1.55;
  margin: 0 0 14px;
  max-width: 56ch;
}
.partner-card.become .arrow {
  color: var(--c-blue-cobalt); font-weight: 600; font-size: 14px;
}

/* Compact "other partners" card. Used on partner-detail to point to a
   handful of related partners; smaller and denser than the full
   partner-card. Layout: small logo plate on the left + name + why on
   the right. The mini-avatar gets a tier-coloured ring to echo the tier
   styling on the full card. */
.other-card {
  background: white;
  border: 1px solid var(--c-cobalt-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none; color: inherit;
  display: flex; gap: 14px; align-items: flex-start;
  transition: all 160ms ease;
}
.other-card:hover { border-color: var(--c-blue-cobalt); transform: translateY(-1px); }
.other-card .mini-avatar {
  width: 44px; height: 50px;
  clip-path: var(--hex-pointy-top);
  background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.other-card .mini-avatar img { max-width: 28px; max-height: 28px; object-fit: contain; }
.other-card.tier-certified .mini-avatar { box-shadow: inset 0 0 0 2px var(--c-gold-500); }
.other-card.tier-strategic .mini-avatar { box-shadow: inset 0 0 0 2px var(--c-orange-knvb); }
.other-card .name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.other-card .why { font-size: 13px; color: var(--c-cobalt-700); line-height: 1.5; }
