/*
 * Sponsor profile (themes/_base/sections/sponsor). Token-only, with two fixed exceptions: the
 * tier "medal" colours (a fill + ink pair, same on every theme and mode — also in sponsors.css)
 * and the share buttons' network colours (brand marks). White text + a dark shade only over the
 * sponsor's own banner photo, as base.css does for .zt-hero--photo. Logos sit on .zt-chip
 * (--z-chip) so dark-on-transparent logos stay visible in Dark mode.
 */
.zt-tier--title    { --zt-tier: #fbbf24; --zt-tier-ink: #78350f; }
.zt-tier--platinum { --zt-tier: #e5e7eb; --zt-tier-ink: #374151; }
.zt-tier--gold     { --zt-tier: #fbbf24; --zt-tier-ink: #78350f; }
.zt-tier--silver   { --zt-tier: #9ca3af; --zt-tier-ink: #1f2937; }
.zt-tier--bronze   { --zt-tier: #d97706; --zt-tier-ink: #431407; }
.zt-tier-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
    font-size: .75rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
    background: var(--zt-tier); color: var(--zt-tier-ink); text-shadow: none;
}
.zt-tier-badge--lg { padding: 6px 16px; font-size: .875rem; }
.zt-tier-badge--soft { padding: 6px 16px; font-size: .875rem; color: var(--z-text); background: color-mix(in srgb, var(--zt-tier) 28%, var(--z-surface)); }

.zt-sponsor-logo { width: 96px; height: 96px; padding: 8px; border: 4px solid var(--z-surface); box-shadow: var(--z-shadow-lg); }
.zt-sponsor-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.zt-sponsor-initials {
    display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: var(--z-radius);
    border: 4px solid var(--z-surface); box-shadow: var(--z-shadow-lg); font-family: var(--z-font-display); font-weight: 800;
    color: var(--z-hero-ink); background: linear-gradient(135deg, var(--z-hero-from), var(--z-hero-to));
}

/* ---- Header: banner, back link, logo, name ------------------------------------------- */
.zt-sponsor-hero { position: relative; }
.zt-sponsor-hero__media {
    position: relative; isolation: isolate; height: 250px; overflow: hidden;
    background: linear-gradient(135deg, var(--z-hero-from), var(--z-hero-to));
}
@media (min-width: 768px) { .zt-sponsor-hero__media { height: 350px; } }
.zt-sponsor-hero__media::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .3;
    background-image: radial-gradient(var(--z-hero-ink) 1px, transparent 1.5px); background-size: 30px 30px;
}
.zt-sponsor-hero--photo .zt-sponsor-hero__media::before { display: none; }
.zt-sponsor-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.zt-sponsor-hero__shade { display: none; }
.zt-sponsor-hero--photo .zt-sponsor-hero__shade {
    display: block; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .1) 100%);
}
.zt-sponsor-back {
    position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 8px 14px; border-radius: var(--z-radius); font-weight: 600; text-decoration: none;
    color: var(--z-text); background: var(--z-surface); box-shadow: var(--z-shadow-lg); transition: transform .25s ease;
}
.zt-sponsor-back:hover { text-decoration: none; transform: translateX(-4px); }
.zt-sponsor-back__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 640px) { .zt-sponsor-back__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }

.zt-sponsor-hero__bar { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: -64px; }
.zt-sponsor-logo--lg, .zt-sponsor-initials--lg { width: 128px; height: 128px; }
.zt-sponsor-initials--lg { font-size: 2.25rem; }
.zt-sponsor-hero__logo { flex: 0 0 auto; }
.zt-sponsor-hero__id { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; max-width: 100%; color: var(--z-text); }
.zt-sponsor-hero__name { margin: 0; color: inherit; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 3rem); font-weight: 800; overflow-wrap: anywhere; }
@media (min-width: 640px) {
    .zt-sponsor-hero__bar { flex-direction: row; gap: 28px; margin-top: -80px; }
    .zt-sponsor-logo--lg, .zt-sponsor-initials--lg { width: 160px; height: 160px; }
    /* The top 80px of the bar sits over the banner: the name block fills it from the bottom up. */
    .zt-sponsor-hero__id { flex: 1 1 auto; height: 80px; justify-content: flex-end; padding-bottom: 14px; color: var(--z-hero-ink); }
    .zt-sponsor-hero--photo .zt-sponsor-hero__id { color: #ffffff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
}

/* ---- About ---------------------------------------------------------------------------- */
.zt-sponsor-about { padding: 40px 0 0; }
.zt-sponsor-about__body { padding: 24px; }
@media (min-width: 768px) { .zt-sponsor-about__body { padding: 32px 36px; } }
.zt-sponsor-about__title { margin: 0 0 12px; font-size: 1.375rem; font-weight: 800; }

/* ---- Body: links + events | side panel ------------------------------------------------ */
.zt-sponsor-main { padding: 40px 0 80px; }
.zt-sponsor-main__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .zt-sponsor-main__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
@media (min-width: 1024px) { .zt-sponsor-main__grid--side { grid-template-columns: minmax(0, 420px); } }
.zt-sponsor-main__col, .zt-sponsor-main__side { display: grid; gap: 28px; align-content: start; min-width: 0; }
.zt-sponsor-main__side { gap: 24px; }

.zt-sponsor-links__site { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-width: 0; }
.zt-sponsor-links__icon, .zt-sponsor-block__icon {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--z-radius); display: flex; align-items: center; justify-content: center;
}
.zt-sponsor-links__icon { color: var(--z-muted); background: var(--z-surface-2); }
.zt-sponsor-links__text { min-width: 0; }
.zt-sponsor-links__label { margin: 0; font-size: .875rem; }
.zt-sponsor-links__text a { font-weight: 600; overflow-wrap: anywhere; }
.zt-sponsor-links__row { display: flex; flex-wrap: wrap; gap: 12px; }
.zt-sponsor-social {
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
    color: var(--z-muted); background: var(--z-surface-2); transition: transform .25s ease, color .25s ease, background-color .25s ease;
}
.zt-sponsor-social--lg { width: 48px; height: 48px; border-radius: var(--z-radius); font-size: 1.125rem; box-shadow: var(--z-shadow); }
.zt-sponsor-social:hover { text-decoration: none; color: var(--z-accent-text); background: var(--z-accent-soft); transform: translateY(-4px); }

.zt-sponsor-block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.zt-sponsor-block__icon { color: var(--z-hero-ink); background: linear-gradient(135deg, var(--z-hero-from), var(--z-hero-to)); }
.zt-sponsor-block--past .zt-sponsor-block__icon { color: var(--z-muted); background: var(--z-surface-2); }
.zt-sponsor-block__title { margin: 0; font-size: 1.25rem; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.zt-sponsor-block__count {
    margin-left: auto; flex: 0 0 auto; padding: 4px 12px; border-radius: 999px; font-size: .875rem; font-weight: 600;
    color: var(--z-accent-text); background: var(--z-accent-soft);
}
.zt-sponsor-block--past .zt-sponsor-block__count { color: var(--z-muted); background: var(--z-surface-2); }

.zt-sponsor-events { display: grid; gap: 16px; }
.zt-sponsor-event {
    display: flex; align-items: center; gap: 16px; padding: 14px; text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease, border-color .3s ease;
}
.zt-sponsor-event:hover { text-decoration: none; transform: translateX(6px); box-shadow: var(--z-shadow-lg); border-color: var(--z-accent-text); }
.zt-sponsor-event__img { flex: 0 0 auto; width: 80px; height: 80px; border-radius: var(--z-radius); overflow: hidden; background: var(--z-surface-2); }
@media (min-width: 640px) { .zt-sponsor-event__img { width: 96px; height: 96px; } }
.zt-sponsor-event__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.zt-sponsor-event:hover .zt-sponsor-event__img img { transform: scale(1.1); }
.zt-sponsor-event__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.zt-sponsor-event__name { font-family: var(--z-font-display); font-size: 1.0625rem; font-weight: 700; color: var(--z-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zt-sponsor-event__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; color: var(--z-muted); }
.zt-sponsor-event__meta i { color: var(--z-accent-text); margin-right: 2px; }
.zt-sponsor-event__arrow { display: none; }
@media (min-width: 640px) {
    .zt-sponsor-event__arrow {
        flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
        color: var(--z-muted); background: var(--z-surface-2);
    }
}
.zt-sponsor-event--past { opacity: .75; }
.zt-sponsor-event--past:hover { opacity: 1; border-color: var(--z-border); }
.zt-sponsor-event--past .zt-sponsor-event__img img { filter: grayscale(1); }
.zt-sponsor-event--past .zt-sponsor-event__meta i { color: inherit; }

.zt-sponsor-info .zt-card__body { text-align: center; padding: 24px; }
.zt-sponsor-logo--sm { display: flex; margin: 0 auto 16px; border-width: 1px; border-color: var(--z-border); box-shadow: var(--z-shadow); }
.zt-sponsor-info__name { margin: 0 0 10px; font-family: var(--z-font-display); font-size: 1.125rem; font-weight: 800; overflow-wrap: anywhere; }
.zt-sponsor-info__visit { margin-top: 20px; border-radius: var(--z-radius); }

.zt-sponsor-share .zt-card__body { padding: 24px; }
.zt-sponsor-share__row { display: flex; gap: 10px; }
.zt-sponsor-share__btn {
    flex: 1 1 0; min-width: 0; height: 48px; border: 0; border-radius: var(--z-radius); cursor: pointer; font-size: 1.125rem;
    display: flex; align-items: center; justify-content: center; color: #ffffff; box-shadow: var(--z-shadow); transition: transform .25s ease, filter .25s ease;
}
.zt-sponsor-share__btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.zt-sponsor-share__btn--facebook { background: #1877f2; }
.zt-sponsor-share__btn--twitter  { background: #0284c7; }
.zt-sponsor-share__btn--linkedin { background: #0a66c2; }
.zt-sponsor-share__btn--email    { color: var(--z-text); background: var(--z-surface-2); border: 1px solid var(--z-border); }
.zt-sponsor-share__copy { margin-top: 16px; border-radius: var(--z-radius); }

.zt-sponsor-stats {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; padding: 24px; text-align: center;
    border-radius: var(--z-radius-lg); color: var(--z-hero-ink); box-shadow: var(--z-shadow);
    background: linear-gradient(135deg, var(--z-hero-from), var(--z-hero-to));
}
.zt-sponsor-stats__num { display: block; font-family: var(--z-font-display); font-size: 1.875rem; font-weight: 800; line-height: 1.2; }
.zt-sponsor-stats__label { display: block; margin-top: 4px; font-size: .875rem; font-weight: 500; opacity: .85; }

@media (prefers-reduced-motion: reduce) {
    .zt-sponsor-back, .zt-sponsor-social, .zt-sponsor-event, .zt-sponsor-event__img img, .zt-sponsor-share__btn { transition: none; }
    .zt-sponsor-back:hover, .zt-sponsor-social:hover, .zt-sponsor-event:hover, .zt-sponsor-event:hover .zt-sponsor-event__img img,
    .zt-sponsor-share__btn:hover { transform: none; }
}
