/* css/partners.css: the Partners page, "Become a WIDTH Partner" (2026-11-17). Built in the design system from slides 8 to
   13 of the partnership deck. The hero, section heads, bands, cards, points, ticks, steps and the closing band come from
   css/site.css and css/product-page.css; only the page's own pieces are styled here: the hero strip under an About-size
   title, the hero picture, the stage photo, the models panel and the partner logos. The call to action is an e-mail link. */

/* ---- hero: the About layout with the About title size (a short title). An even split gives the picture room; the
        audience line and the key figures bar under both columns are the strip of the copy-built pages ---- */
@media (min-width: 901px) { .hero--partners .donb-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero--partners h1 { text-wrap: balance; }
.hero--partners h1.rv { transition-delay: .1s; }
.hero--partners .hero-note { margin: 0 auto; max-width: 84ch; font-size: 13px; line-height: 1.5; color: var(--sub); }
.hero--partners .hero-note.rv { transition-delay: .75s; } .hero--partners .hero-figs.rv { transition-delay: .85s; } .hero--partners .hero-figs-note.rv { transition-delay: .95s; }

/* the hero strip: under the audience line, the three things a partner gains, in the white bar of the copy-built pages.
   Each is a bare icon over a short title in WIDTH blue, as large as a card title, with a hairline between the three, so
   the bar reads at a glance (17 Nov 2026: "make this obvious"; before that the titles were 15px beside 24px icons).
   The gains took the place of the four key figures, and the separate What You Gain section went */
.hero-figs.pt-gains { max-width: 1060px; padding: 26px 18px; gap: 0; }
.pt-gains li { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 16px; padding: 4px 16px; border-left: 1px solid var(--line); }
.pt-gains li:first-child { border-left: 0; }
.hero-figs.pt-gains .ico { flex: none; display: block; width: 44px; height: 44px; margin: 0; max-width: none; color: var(--blue); }
.pt-gains .ico svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pt-gains .ico .t { fill: currentColor; fill-opacity: .13; stroke: none; }   /* the soft tint inside each drawing */
.pt-gains .ico .n { fill: #fff; }                                             /* the three points of the first drawing stay white inside */
.hero-figs.pt-gains b { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; color: var(--blue); white-space: normal; text-align: left; }
@media (max-width: 1000px) {
  .hero-figs.pt-gains { grid-template-columns: minmax(0, 1fr); max-width: 440px; padding: 6px 24px; }
  .pt-gains li { justify-content: flex-start; gap: 14px; padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .pt-gains li:first-child { border-top: 0; }
  .hero-figs.pt-gains .ico { width: 32px; height: 32px; }
  .hero-figs.pt-gains b { font-size: 16.5px; } .pt-gains b br { display: none; }
}

/* the picture is drawn in the page (inline SVG): it uses the page's Gotham, and each language carries its own words,
   so no picture file per language is needed. Light panels, WIDTH blue, nothing dark. */
.pt-nw { white-space: nowrap; }   /* a hyphenated word that must not break at its hyphen ("mid-sized", "$M-scale") */
.pt-kv { max-width: 560px; }
.pt-kv svg { display: block; width: 100%; height: auto; overflow: visible; font-family: 'Gotham', 'Helvetica Neue', Arial, 'PingFang SC', 'PingFang TC', sans-serif; }
html[lang="zh-Hans"] .pt-kv svg { font-family: 'Gotham', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif; }   /* the Chinese pages' own fonts (css/cn.css) */
html[lang="zh-Hant"] .pt-kv svg { font-family: 'Gotham', 'PingFang HK', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif; }

/* ---- partnership models: four boxes on the pale-blue band. Each has a WIDTH-blue header bar with the model's icon (the
        same icon as in the hero picture) and name, the model in a line or two, and "Ideal for" in a soft tile; the three
        parts share their height across the row (subgrid), so the tiles are one size. Under them, the six partner
        benefits in one white bar ---- */
.pt-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin-top: 56px; }
.pt-model { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); box-shadow: 0 26px 50px -42px rgba(7,34,89,.3); }
@supports (grid-template-rows: subgrid) { .pt-model { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; } }
.pt-model h3 { display: flex; align-items: center; gap: 10px; margin: -1px -1px 0; padding: 15px 22px; background: var(--blue); color: #fff; font-size: 19px; letter-spacing: -.015em; line-height: 1.3; }
.pt-model h3 svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pt-model > p { margin: 0; padding: 20px 22px; font-size: 14.5px; line-height: 1.6; color: var(--sub); }
.pt-model > p.pt-ideal { margin: 0 22px 22px; padding: 12px 14px 13px; background: #F4F7FD; color: var(--ink); }
.pt-ideal b { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--blue); }
.pt-benefits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr); align-items: center; gap: 0 28px; margin-top: 24px; padding: 22px 26px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 26px 50px -42px rgba(7,34,89,.3); }
.pt-benefits h3 { margin: 0; font-size: 19px; letter-spacing: -.015em; line-height: 1.3; color: var(--blue); }
.pt-benefits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; }
.pt-benefits li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.pt-benefits li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--blue); }
@media (max-width: 1000px) {
  .pt-models { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-model:nth-child(n+3) { margin-top: 24px; }
  .pt-benefits { grid-template-columns: minmax(0, 1fr); gap: 14px; } .pt-benefits ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .pt-models { grid-template-columns: minmax(0, 1fr); margin-top: 36px; } .pt-model + .pt-model { margin-top: 20px; }
  .pt-benefits { padding: 20px; } .pt-benefits ul { grid-template-columns: minmax(0, 1fr); }
}

/* ---- what we do together: the stage photo of WIDTH and its partners (12th anniversary, 6 Oct 2026) on the left, rounded
        with a soft shadow and its caption below, like a product screen; the four points on the right. An event photo
        of real partners is an exception to "no photos of people" (asked for on 17 Nov 2026, to build trust) ---- */
@media (min-width: 1001px) { .pt-together { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.pt-photo { margin: 0; min-width: 0; }
.pt-photo img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -34px rgba(7,34,89,.38), 0 0 0 1px rgba(13,79,211,.08); }
.pt-photo figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--sub); text-align: center; }
@media (max-width: 1000px) { .pt-photo { justify-self: center; width: 100%; max-width: 640px; } }

/* ---- the partner logos: straight on the band, no box, in alphabetical order. FIVE to a row on a desktop (management,
        19 Nov 2026: first four to a row, then "smaller, five in one row"), four on tablets, three on phones; the first
        version had eight. The files are square with the logo in the middle on white (made with
        _copy-build/tools/logotile.py: no logo taller than 40% of its file); "multiply" lets the band show through the
        white, and each cell shows the middle 46% of its file, so the rows sit close. The row carries no "rv" fade: an
        element that is fading is drawn as a group of its own, the blending stops for that moment and the white
        backgrounds show as boxes (seen on 17 Nov 2026) ---- */
.pt-logos { --g: 32px; --n: 5; list-style: none; margin: 48px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px var(--g); }
.pt-logos li { --w: calc((100% - (var(--n) - 1) * var(--g)) / var(--n) - .1px); flex: none; width: var(--w); aspect-ratio: 1 / .46; overflow: hidden; }
.pt-logos img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
@media (max-width: 1000px) { .pt-logos { --g: 24px; --n: 4; } }
/* no logo is left alone on the last row, whatever the count: a margin beside a row's first and last logo makes a shorter
   row full, so the rest wraps to the next one. Half a cell each side shortens a row by one logo, a whole cell by two */
/* desktop, five to a row: one left over, the last six stand as three and three; two left over, the last seven as four and three */
@media (min-width: 1001px) {
  .pt-logos li:nth-last-child(6):nth-child(5n+1) { margin-left: calc(var(--w) + var(--g)); }
  .pt-logos li:nth-last-child(6):nth-child(5n+1) ~ li:nth-last-child(4) { margin-right: calc(var(--w) + var(--g)); }
  .pt-logos li:nth-last-child(7):nth-child(5n+1) { margin-left: calc(var(--w) / 2 + var(--g) / 2); }
  .pt-logos li:nth-last-child(7):nth-child(5n+1) ~ li:nth-last-child(4) { margin-right: calc(var(--w) / 2 + var(--g) / 2); }
}
/* tablets, four to a row: one left over, the last five stand as three and two; two left over, the last six as three and three */
@media (min-width: 621px) and (max-width: 1000px) {
  .pt-logos li:nth-last-child(5):nth-child(4n+1), .pt-logos li:nth-last-child(6):nth-child(4n+1) { margin-left: calc(var(--w) / 2 + var(--g) / 2); }
  .pt-logos li:nth-last-child(5):nth-child(4n+1) ~ li:nth-last-child(3), .pt-logos li:nth-last-child(6):nth-child(4n+1) ~ li:nth-last-child(4) { margin-right: calc(var(--w) / 2 + var(--g) / 2); }
}
/* phones: three to a row; one left over becomes two and two */
@media (max-width: 620px) {
  .pt-logos { --g: 12px; --n: 3; margin-top: 32px; gap: 8px var(--g); }
  .pt-logos li:nth-last-child(4):nth-child(3n+1) { margin-left: calc(var(--w) / 2 + var(--g) / 2); }
  .pt-logos li:nth-last-child(4):nth-child(3n+1) ~ li:nth-last-child(3) { margin-right: calc(var(--w) / 2 + var(--g) / 2); }
}

/* ---- the line under the logos (management, 19 Nov 2026): one quiet sentence, centred, with no link ---- */
.pt-next { margin: 44px auto 0; text-align: center; font-size: 17px; line-height: 1.5; color: var(--sub); }
@media (max-width: 620px) { .pt-next { margin-top: 28px; font-size: 16px; } }

/* ---- the closing band: under the button, "Write to" and the e-mail address with a small envelope (the site owner,
        19 Nov 2026). The button opens the same e-mail; the line spells the address out for readers whose button opens
        nothing. Used by the Partners and the University Programme pages ---- */
section.cta .cta-mail { order: 4; margin: 20px 0 0; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.86); }
section.cta .cta-mail a { display: inline-flex; align-items: center; gap: 7px; margin-left: 5px; vertical-align: bottom; color: #fff; font-weight: 700; text-decoration: none; }
section.cta .cta-mail a:hover { color: #BFD4FF; }
section.cta .cta-mail svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
