/* ════════════════════════════════════════════════════════════════════════════
   PARTNER PAGE
   Page-specific styles for the partner/sponsoring overview.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Page header ── */
.page-header {
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}

.page-header__cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 10px 20px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--text-white);
	white-space: nowrap;
	transition: background 0.15s, border-color 0.15s;
}

.page-header__cta:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.22);
}

.page-header--partner .page-header__sub {
	max-width: 46em;
}

.page-header--partner .page-header__sub + .page-header__sub {
	margin-top: 10px;
}

@media (max-width: 900px) {
	.page-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.page-header__cta {
		width: 100%;
		justify-content: center;
	}
}

/* ── Partner hero ── */
.partner-hero {
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  overflow: hidden;
}

.partner-hero__copy {
  padding: 68px 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}

.partner-hero__tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.partner-hero__title {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 620px;
}

.partner-hero__desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
}

/* ── Section divider ── */
.sec-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 0;
  flex-wrap: wrap;
}

.sec-divider__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.sec-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 20px;
}

/* ── Partners card ── */
.partners-card {
  background: var(--card);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  padding: 48px 52px;
  gap: 20px;
}

/* .partner-tier {
  margin-bottom: 44px;
} */

.partner-tier:last-child {
  margin-bottom: 0;
}

.partner-tier__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-tier__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Tier grids (width-driven, set per category in the plugin admin) ── */
.partner-grid {
  display: grid;
  gap: 12px;
}

.partner-grid--fullwide {
  grid-template-columns: 1fr;
  gap: 16px;
}

.partner-grid--wide {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.partner-grid--normal {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.partner-grid--narrow {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

/* fullwide inherits the former single-card .partner-hauptsponsor treatment.
   Height and logo size are fixed and identical on desktop and mobile.
   Selectors are chained with .partner-item (not just the modifier class alone)
   so they reliably outrank the base .partner-item rules below regardless of
   source order — a bare .partner-item--fullwide has the same specificity as
   .partner-item and would otherwise lose to whichever is declared later. */
.partner-item.partner-item--fullwide {
  padding: 24px 48px;
  border-radius: 12px;
  min-height: 100px;
}

.partner-item.partner-item--fullwide img {
  max-height: 70px;
  max-width: 100%;
}

.partner-item.partner-item--wide {
  min-height: 90px;
  padding: 20px 24px;
}

.partner-item.partner-item--wide img {
  max-height: 50px;
}

.partner-item {
  background: #fafafa;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition:
    border-color 0.2s,
    background 0.2s;
  cursor: pointer;
}

.partner-item:hover { border-color: var(--ink-dim); background: #f0f0f0; }
.partner-item:focus-visible {
  border-color: var(--ink-dim);
  background: #f0f0f0;
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.partner-item img {
  max-height: 48px;
  max-width: 80%;
  width: auto;
  object-fit: contain;
  filter: invert(0.75) opacity(0.75);
  transition: filter 0.2s;
}

.partner-item:hover img,
.partner-item:focus-visible img {
  filter: invert(0.75) opacity(1);
}

/* ── Bottom bar ── */
.bottom-bar {
  background: var(--bg);
  border-radius: var(--r);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bottom-copy {
  font-size: 0.68rem;
  color: var(--ink-dim);
}

.bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.bottom-links a {
  font-size: 0.68rem;
  color: var(--ink-dim);
  transition: color 0.15s;
}

.bottom-links a:hover { color: var(--ink); }
.bottom-links a:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Ad / promo strip (shared with home) ── */

.promo-strip__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.promo-strip__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  line-height: 1.2;
}

.promo-strip__sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
}

.promo-strip__cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: #f0b429;
  padding: 11px 22px;
  border-radius: 10px;
  transition: background 0.15s;
  white-space: nowrap;
}

.promo-strip__cta:hover {
  background: #e0a820;
}

.promo-strip__cta svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.promo-strip__cta:hover svg {
  transform: translateX(3px);
}

/* ══════════════════════════════════════
   RESPONSIVE - PARTNER
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .partner-hero__copy {
    padding: 44px 34px 32px;
  }

  .partners-card {
    padding: 36px 28px;
  }

  .partner-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid--normal {
    grid-template-columns: repeat(3, 1fr);
  }

  .partner-grid--narrow {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 580px) {
  .partner-hero__copy {
    padding: 30px 22px 24px;
  }

  .partner-hero__desc {
    font-size: 0.82rem;
  }

  .partners-card {
    padding: 20px 14px;
  }

  .partner-item.partner-item--fullwide {
    padding: 20px 16px;
  }

  /* Every sponsor logo is exported on the same 650×200 canvas. 4 columns of
     that on a ~375px phone leaves very little width no matter what — padding
     and gaps are cut to the minimum that still reads as a card, to give the
     logo as much of that width as possible. */
  .partner-grid--wide {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .partner-grid--wide .partner-item {
    padding: 14px 10px;
    min-height: 72px;
  }

  .partner-grid--normal {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .partner-grid--narrow {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .partner-grid--normal .partner-item {
    padding: 10px 6px;
    min-height: 64px;
  }

  .partner-grid--narrow .partner-item {
    padding: 6px 4px;
    min-height: 52px;
    border-radius: 8px;
  }

  .partner-grid--narrow .partner-item img {
    max-height: 34px;
    max-width: 92%;
  }

  .bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 12px;
  }

  .promo-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }

  .promo-strip__cta {
    width: 100%;
    justify-content: center;
  }
}
