/* 2026-11-08 partner pages v6 (owner: "the partner pages look black and empty"). Loaded after partners-v5.css on /partners,
   /partners/{affiliate,creator,reseller}, /partners/apply, /partners/signup, /partners/dashboard and the /ar/ twins.
   Original art only (layout/partner-art.php, assets/img/partners): no game characters, logos or splash art. A facts band over the
   hero edge, a picture on every program card and application type, a full-bleed band for the approval steps, rule cards, an art
   side on the FAQ and an art closing band. Green #45f882 on near-black. Logical properties only. */
.nxp-art { display: contents; }

/* hero: the new art is already dark on the copy side, so it keeps its own light. The picture is the positioned box (not a flex item). */
.nxp5-hero > .nxp-art { display: block; position: absolute; inset: 0; z-index: -2; }
.nxp5-page .nxp5-hero-art { filter: none; object-position: 64% 50%; }
.nxp5-page .nxp5-hero::before { background: linear-gradient(90deg, rgba(4, 10, 7, .94) 0, rgba(4, 10, 7, .66) 36%, rgba(4, 10, 7, 0) 64%), linear-gradient(0deg, #04100a 0, rgba(4, 16, 10, 0) 34%); }
[dir="rtl"] .nxp5-page .nxp5-hero::before { background: linear-gradient(270deg, rgba(4, 10, 7, .94) 0, rgba(4, 10, 7, .66) 36%, rgba(4, 10, 7, 0) 64%), linear-gradient(0deg, #04100a 0, rgba(4, 16, 10, 0) 34%); }
[dir="rtl"] .nxp5-page .nxp5-hero-art { object-position: 36% 50%; transform: scaleX(-1); }
.nxp5-page .nxp5-hero:not(.nxp5-hero--compact) { padding-block-end: clamp(96px, 9vw, 128px); }
.nxp5-page .nxp5-hero--compact { min-block-size: clamp(300px, 34vw, 400px); display: flex; align-items: flex-end; }

/* rhythm: one gap between blocks instead of margin + the global section padding stacked */
.nxp6 { overflow-x: clip; }
.nx-ui-v2 main.nxp6 > section { padding-block: 0 !important; }
.nx-ui-v2 main.nxp6 > section.nxp5-ask { padding-block: 32px !important; }
.nxp6 > .nxp5-sec { margin-block-start: clamp(56px, 6.5vw, 96px); }

/* facts band, lifted over the bottom of the hero */
.nxp6-facts { position: relative; z-index: 1; margin-block-start: calc(-1 * clamp(64px, 6vw, 92px)); }
.nxp6-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; margin: 0; border-radius: 20px; border: 1px solid rgba(69, 248, 130, .22);
  background: linear-gradient(180deg, rgba(12, 24, 17, .92), rgba(6, 12, 9, .94)); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .9); backdrop-filter: blur(12px); overflow: hidden; }
.nxp6-facts dl > div { padding: 22px 24px; border-inline-start: 1px solid rgba(156, 170, 160, .14); }
.nxp6-facts dl > div:first-child { border-inline-start: 0; }
.nxp6-facts dt { margin: 0 0 6px; font: 700 clamp(28px, 2.6vw, 36px)/1 Rajdhani, Poppins, sans-serif; color: var(--p5-g); letter-spacing: -.01em; }
.nxp6-facts dd { margin: 0; font-size: 14px; line-height: 1.55; color: #c9d2cc; }

/* program cards with their picture */
.nxp6 .nxp5-card { overflow: hidden; padding-block-start: 0; }
.nxp6-card-art { display: block; inline-size: calc(100% + 52px); max-inline-size: none; block-size: auto; aspect-ratio: 16 / 9; margin-block: 0 4px; margin-inline: -26px; object-fit: cover; object-position: 70% 50%;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent); mask-image: linear-gradient(180deg, #000 58%, transparent); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.nxp6 .nxp5-card:hover .nxp6-card-art { transform: scale(1.03); }
.nxp6 .nxp5-card-top { margin-block-start: -34px; position: relative; }

/* what you get: the lead tile carries the program picture */
.nxp6--affiliate { --nxp6-art: url(/assets/img/partners/affiliate-768.webp); }
.nxp6--creator { --nxp6-art: url(/assets/img/partners/creator-768.webp); }
.nxp6--reseller { --nxp6-art: url(/assets/img/partners/reseller-768.webp); }
.nxp6 .nxp5-tile--lead { min-block-size: 220px; align-items: flex-end; background: linear-gradient(0deg, rgba(7, 14, 10, .96) 0, rgba(7, 14, 10, .7) 42%, rgba(7, 14, 10, 0) 78%), linear-gradient(90deg, rgba(7, 14, 10, .9) 0, rgba(7, 14, 10, .35) 55%, rgba(7, 14, 10, 0)), var(--nxp6-art, none) 70% 40% / cover no-repeat, #0a110d; }
[dir="rtl"] .nxp6 .nxp5-tile--lead { background: linear-gradient(0deg, rgba(7, 14, 10, .96) 0, rgba(7, 14, 10, .7) 42%, rgba(7, 14, 10, 0) 78%), linear-gradient(270deg, rgba(7, 14, 10, .9) 0, rgba(7, 14, 10, .35) 55%, rgba(7, 14, 10, 0)), var(--nxp6-art, none) 30% 40% / cover no-repeat, #0a110d; }
.nxp6 .nxp5-tile { background-color: #0b140f; }

/* approval steps on a full-bleed band */
.nx-ui-v2 main.nxp6 > section[aria-labelledby="nxp-flow-h"] { position: relative; isolation: isolate; padding-block: clamp(40px, 4.5vw, 64px) !important; }
.nxp6 > [aria-labelledby="nxp-flow-h"]::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline: calc(50% - 50vw); border-block: 1px solid rgba(69, 248, 130, .16);
  background: radial-gradient(60% 120% at 85% 0, rgba(69, 248, 130, .1), transparent 60%), linear-gradient(180deg, rgba(8, 19, 13, .72), rgba(5, 11, 8, .5)); }
.nxp6 .nxp5-flow li { padding-block-end: 8px; }
.nxp6 .nxp5-flow li::before { box-shadow: 0 0 0 6px rgba(69, 248, 130, .06); }

/* rules as cards */
.nxp6 .nxp5-rules.nxp-rules { gap: 14px; }
.nxp6 .nxp-rules > div { position: relative; padding: 22px 22px 20px; border: 1px solid var(--p5-line); border-radius: 16px; background: linear-gradient(180deg, #0c1610, #080d0a); }
.nxp6 .nxp-rules > div::before { content: ""; display: block; inline-size: 28px; block-size: 3px; margin-block-end: 14px; border-radius: 3px; background: var(--p5-g); }
.nxp6 .nxp-rules dt { font: 700 18px/1.25 Rajdhani, Poppins, sans-serif; margin-block-end: 8px; }

/* FAQ with an art side */
.nxp6-faq { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.nxp6-faq-side { position: sticky; inset-block-start: 96px; }
.nxp6-faq-side .nxp-sub { margin: 0; max-inline-size: 40ch; }
.nxp6-faq-art { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; margin-block-start: 24px; object-fit: cover; object-position: 70% 50%; border-radius: 18px; border: 1px solid rgba(69, 248, 130, .2); }
.nxp6-faq .nxp5-faq-list { max-inline-size: none; }

/* closing band with art */
.nxp6 .nxp5-final { position: relative; isolation: isolate; overflow: hidden; min-block-size: 260px; }
.nxp6 .nxp5-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #060c08 0, rgba(6, 12, 8, .9) 34%, rgba(6, 12, 8, .55) 62%, rgba(6, 12, 8, .78)); }
[dir="rtl"] .nxp6 .nxp5-final::before { background: linear-gradient(270deg, #060c08 0, rgba(6, 12, 8, .9) 34%, rgba(6, 12, 8, .55) 62%, rgba(6, 12, 8, .78)); }
.nxp6 .nxp5-final .nxp-link { text-shadow: 0 1px 8px #000; }
.nxp6 .nxp5-final > .nxp-art { display: block; position: absolute; inset: 0; z-index: -2; }
.nxp6-final-art { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 70% 50%; }
[dir="rtl"] .nxp6-final-art { transform: scaleX(-1); }

/* application: each type shows its picture */
.nxp5 .nxp-type { overflow: hidden; padding-block-start: 0; }
.nxp6-type-art { display: block; inline-size: calc(100% + 44px); max-inline-size: none; block-size: auto; aspect-ratio: 16 / 8; margin-block: 0 6px; margin-inline: -22px; object-fit: cover; object-position: 70% 50%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); opacity: .85; transition: opacity .2s ease-out; }
.nxp-type:hover .nxp6-type-art, .nxp-type:has(input:checked) .nxp6-type-art { opacity: 1; }

@media (max-width: 991.98px) {
  .nxp6-facts dl > div:nth-child(odd) { border-inline-start: 0; }
  .nxp6-facts dl > div:nth-child(n+3) { border-block-start: 1px solid rgba(156, 170, 160, .14); }
  .nxp6-faq { grid-template-columns: minmax(0, 1fr); }
  .nxp6-faq-side { position: static; }
  .nxp6-faq-art { aspect-ratio: 16 / 7; }
}
@media (max-width: 640px) {
  /* phones: the picture is a band at the top, the copy sits under it on solid dark */
  .nxp5-page .nxp5-hero { padding-block: calc(58vw - 24px) 92px; }
  .nxp5-page .nxp5-hero--compact { min-block-size: 0; padding-block: calc(44vw - 16px) 28px; }
  .nxp5-page .nxp5-hero-art { inset-block-end: auto; block-size: 58vw; object-position: 72% 50%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .nxp5-page .nxp5-hero--compact .nxp5-hero-art { block-size: 44vw; }
  [dir="rtl"] .nxp5-page .nxp5-hero-art { object-position: 28% 50%; }
  .nxp5-page .nxp5-hero::before, [dir="rtl"] .nxp5-page .nxp5-hero::before { background: linear-gradient(180deg, rgba(4, 10, 7, .5) 0, rgba(4, 10, 7, 0) 30%); }
  .nxp6-facts { margin-block-start: -64px; }
  .nxp6-facts dl { grid-template-columns: 1fr 1fr; }
  .nxp6-facts dl > div { padding: 16px; }
  .nxp6-facts dt { font-size: 24px; }
  .nxp6-facts dd { font-size: 12.5px; }
  .nxp6 .nxp5-tile--lead { min-block-size: 180px; }
  .nx-ui-v2 main.nxp6 > section.nxp5-ask { padding-block: 22px !important; }
  .nxp6 .nxp5-final { min-block-size: 0; }
  .nxp6 .nxp5-final::before, [dir="rtl"] .nxp6 .nxp5-final::before { background: linear-gradient(0deg, #060c08 0, rgba(6, 12, 8, .9) 55%, rgba(6, 12, 8, .35)); }
}
@media (prefers-reduced-motion: reduce) { .nxp6-card-art, .nxp6-type-art { transition: none; } .nxp6 .nxp5-card:hover .nxp6-card-art { transform: none; } }

/* partner dashboard: every part is a glass panel on the site backdrop; the global section padding no longer stacks into 100px gaps */
main.nxp-dash #nxd-root { position: relative; z-index: 2; margin-block-start: clamp(-48px, -3.5vw, -24px); }
.nx-ui-v2 main.nxp-dash #nxd-root > section { margin: 0 0 18px; padding: clamp(18px, 2.4vw, 30px) !important; border: 1px solid rgba(69, 248, 130, .14); border-radius: 18px;
  background: rgba(8, 16, 11, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nx-ui-v2 main.nxp-dash #nxd-root > .nxd-head { isolation: isolate; overflow: hidden; min-block-size: 150px; align-items: flex-end; border-color: rgba(69, 248, 130, .26);
  background: linear-gradient(90deg, rgba(6, 13, 9, .97) 0, rgba(6, 13, 9, .84) 45%, rgba(6, 13, 9, .3)), url(/assets/img/partners/hub-1280.webp) 80% 45% / cover no-repeat, #07100b; }
[dir="rtl"].nx-ui-v2 main.nxp-dash #nxd-root > .nxd-head, [dir="rtl"] .nx-ui-v2 main.nxp-dash #nxd-root > .nxd-head { background: linear-gradient(270deg, rgba(6, 13, 9, .97) 0, rgba(6, 13, 9, .84) 45%, rgba(6, 13, 9, .3)), url(/assets/img/partners/hub-1280.webp) 20% 45% / cover no-repeat, #07100b; }
main.nxp-dash .nxd-head .nxp-display { font-size: clamp(1.7rem, 3vw, 2.4rem); }
main.nxp-dash #nxd-root .nxp-h { font-size: clamp(1.2rem, 1.8vw, 1.55rem); margin-block-end: 14px; }
main.nxp-dash .nxd-stats { gap: 10px; border: 0; }
main.nxp-dash .nxd-stats + .nxd-stats { margin-block-start: 10px; }
main.nxp-dash .nxd-stat, main.nxp-dash .nxd-stat:first-child { position: relative; padding: 18px 16px 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(0, 0, 0, .24); }
main.nxp-dash .nxd-stat::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 16px; inline-size: 26px; block-size: 2px; border-radius: 2px; background: #45f882; }
main.nxp-dash .nxd-bars { padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
main.nxp-dash .nxd-tablewrap { background: rgba(0, 0, 0, .2); }
main.nxp-dash #nxd-root section > * + .nxp-h, main.nxp-dash #nxd-root section > * + .nxd-sec-head { margin-block-start: 24px; }
@media (max-width: 640px) {
  .nx-ui-v2 main.nxp-dash #nxd-root > .nxd-head, [dir="rtl"] .nx-ui-v2 main.nxp-dash #nxd-root > .nxd-head { min-block-size: 170px; background: linear-gradient(180deg, rgba(6, 13, 9, .45) 0, rgba(6, 13, 9, .95) 72%), url(/assets/img/partners/hub-768.webp) 70% 30% / cover no-repeat, #07100b; }
  main.nxp-dash .nxd-stat:nth-child(n) { border: 1px solid rgba(255, 255, 255, .08); padding-inline-start: 16px; }
}
