/* ============================================================
   Partner single page (.pn-*)
   Hero (logo box + headline + 4 stats) → body sidebar + content → related grid
   ============================================================ */

.pn-intro {
  padding-bottom: 24px;
}


/* ============================================================
   Hero — logo + headline + 4 stats
   ============================================================ */

.pn-hero {
  background: var(--white);
  padding: 16px 0 56px;
}

@media (max-width: 767.98px) {
  .pn-hero { padding: 8px 0 40px; }
}

.pn-hero__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1023.98px) {
  .pn-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}


/* Logo box — square paper card */
.pn-hero__logo {
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

@media (max-width: 1023.98px) {
  .pn-hero__logo {
    max-width: 240px;
    padding: 28px;
  }
}

.pn-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* Body column */
.pn-hero__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.pn-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.pn-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  background: var(--paper);
  border-radius: var(--r-pill);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.pn-hero__tag--sector {
  background: var(--red);
  color: var(--white);
}

.pn-hero__name {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.pn-hero__tagline {
  font-size: var(--fs-15, 0.9375rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 60ch;
}

.pn-hero__lede {
  font-size: var(--fs-14);
  line-height: 1.65;
  color: var(--ink-2, #1C1D21);
  max-width: 62ch;
  margin-top: 4px;
}


/* 4-stat grid */
.pn-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-top: 12px;
}

@media (max-width: 767.98px) {
  .pn-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1px; }
}

@media (max-width: 379.98px) {
  .pn-hero__stats { grid-template-columns: 1fr; }
}

.pn-stat {
  background: var(--white);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pn-stat__num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pn-stat__label {
  font-size: var(--fs-12);
  color: var(--text-muted);
  line-height: 1.4;
}


/* Hero actions */
.pn-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pn-hero__actions .btn svg { width: 14px; height: 14px; }

.pn-hero__btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.pn-hero__btn-ghost:hover {
  background: var(--paper);
  border-color: var(--ink-3);
}


/* ============================================================
   Body — sidebar + content
   ============================================================ */

.pn-body {
  background: var(--paper);
  padding: 56px 0 72px;
}

@media (max-width: 767.98px) {
  .pn-body { padding: 40px 0 56px; }
}

.pn-body__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1023.98px) {
  .pn-body__inner { grid-template-columns: 1fr; gap: 32px; }
}


/* Content */
.pn-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.pn-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 28px 32px 30px;
}

@media (max-width: 575.98px) {
  .pn-section { padding: 22px 22px 24px; }
}

.pn-section__title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.pn-section__lead {
  font-size: var(--fs-15, 0.9375rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 12px;
}

.pn-section__text {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--ink-2, #1C1D21);
  margin-bottom: 12px;
}

.pn-section__text:last-child { margin-bottom: 0; }


/* Scope list */
.pn-scope {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pn-scope__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.pn-scope__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
}

.pn-scope__icon svg { width: 14px; height: 14px; }

.pn-scope__title {
  font-size: var(--fs-15, 0.9375rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-bottom: 4px;
}

.pn-scope__desc {
  font-size: var(--fs-13);
  line-height: 1.6;
  color: var(--text-muted);
}


/* Reuse .tm-list pattern from team-member.css for timeline (loaded already)
   Just override here if needed for partner context */


/* Testimonial section */
.pn-section--quote {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pn-quote__mark {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.pn-quote__text {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--white);
  letter-spacing: -0.005em;
  margin: 0;
}

.pn-quote__person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pn-quote__name {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--white);
}

.pn-quote__role {
  font-size: var(--fs-12);
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================================
   Sticky aside
   ============================================================ */

.pn-aside {
  position: sticky;
  top: calc(var(--header-h, 64px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 1023.98px) {
  .pn-aside { position: static; }
}

.pn-aside__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 20px 22px;
}

.pn-aside__card--cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.pn-aside__eyebrow {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pn-aside__card--cta .pn-aside__eyebrow {
  color: rgba(255, 255, 255, 0.55);
}


/* Facts list */
.pn-aside__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pn-aside__facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-13);
}

.pn-aside__facts li:last-child { border-bottom: 0; }
.pn-aside__facts li:first-child { padding-top: 0; }

.pn-aside__fact-label {
  color: var(--text-muted);
  font-weight: 500;
}

.pn-aside__fact-value {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.pn-aside__fact-value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-3);
  padding-bottom: 1px;
}

.pn-aside__fact-value a:hover { color: var(--red); border-color: var(--red); }


/* CTA card text */
.pn-aside__cta-text {
  font-size: var(--fs-13);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.pn-aside__cta-btn { width: 100%; justify-content: center; }


/* ============================================================
   Related partners grid
   ============================================================ */

.pn-related {
  background: var(--white);
  padding: 72px 0 88px;
}

@media (max-width: 767.98px) {
  .pn-related { padding: 48px 0 64px; }
}

.pn-related__head {
  text-align: center;
  margin-bottom: 32px;
}

.pn-related__eyebrow {
  display: inline-block;
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pn-related__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
  text-wrap: balance;
}


/* Grid */
.pn-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1023.98px) {
  .pn-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479.98px) {
  .pn-related__grid { grid-template-columns: 1fr; }
}

.pn-related-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur) var(--ease);
}

.pn-related-card:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

.pn-related-card__logo {
  aspect-ratio: 16 / 10;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
}

.pn-related-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pn-related-card__body {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
}

.pn-related-card__name {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.pn-related-card:hover .pn-related-card__name { color: var(--red); }

.pn-related-card__sector {
  font-size: var(--fs-12);
  color: var(--text-muted);
  line-height: 1.4;
}


.pn-related__foot {
  text-align: center;
  margin-top: 32px;
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pn-related-card:hover { transform: none; }
}
