/* Partners page. Builds on site.css tokens; no new colors. */

.p-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.p-head .eyebrow { margin-bottom: 16px; }
.p-head .btn { flex: none; margin-bottom: 0.3em; }

/* ---------- Hero: their Jul 28 call ---------- */

.p-hero { padding: clamp(40px, 7vh, 88px) 0 clamp(64px, 10vh, 112px); }
.p-title { font-size: clamp(56px, 9.4vw, 128px); margin: 20px 0 28px; max-width: 10.5em; text-wrap: balance; }
.p-hero .lede { max-width: 34em; }

.p-call { margin-top: clamp(48px, 7vw, 88px); border-bottom: 2px solid var(--ink); }
.p-call .step { align-items: start; padding: 32px 0 40px; }
.p-call-body { min-width: 0; }
.p-call-h {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin-bottom: 18px;
}
.p-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 2.9vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  max-width: 22em;
  text-wrap: pretty;
}
.p-quote p::before { content: "\201C"; }
.p-quote p::after { content: "\201D"; }
.p-call-body .text-link { display: inline-block; margin-top: 22px; }
.p-call-src { margin-top: 16px; max-width: 44em; }

/* ---------- Brands (dark) ---------- */

.p-brands .h2 { max-width: 9em; }
.p-marks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
}
.p-marks li {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1;
  padding: clamp(28px, 3.4vw, 44px) 20px;
  min-width: 0;
  overflow-wrap: break-word;
}
.p-marks li:nth-child(4n + 1) { padding-left: 0; }
.p-marks li:not(:nth-child(4n + 1)) { border-left: 1px solid rgba(243, 242, 238, 0.2); }
.p-marks li:nth-child(n + 5) { border-top: 1px solid rgba(243, 242, 238, 0.2); }
.p-marks li:last-child:nth-child(4n + 1) { grid-column: 1 / -1; }
.p-marks li:last-child:nth-child(4n + 2) { grid-column: span 3; }
.p-marks li:last-child:nth-child(4n + 3) { grid-column: span 2; }
.p-brands-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: baseline;
  margin-top: 24px;
}
.p-brands-note { font-size: 17px; font-weight: 600; }

@media (max-width: 860px) {
  .p-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-marks li { padding: 24px 16px; }
  .p-marks li:nth-child(4n + 1) { padding-left: 16px; }
  .p-marks li:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .p-marks li:nth-child(2n) { border-left: 1px solid rgba(243, 242, 238, 0.2); }
  .p-marks li:nth-child(n + 3) { border-top: 1px solid rgba(243, 242, 238, 0.2); }
  .p-marks li:last-child:nth-child(even) { grid-column: auto; }
  .p-marks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .p-brands-foot { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reach ---------- */

.p-reach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.p-reach-copy .eyebrow:first-child { margin-bottom: 16px; }
.p-reach-copy .h2 { margin-bottom: 24px; }
.reach-list { margin-top: clamp(32px, 4vw, 48px); border-bottom: 2px solid var(--ink); }
.reach-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.36fr) minmax(0, 1fr);
  column-gap: 20px;
  padding: 22px 0 20px;
  border-top: 2px solid var(--ink);
}
.reach-row > .eyebrow { grid-row: span 2; padding-top: 0.5em; }
.reach-v {
  font-size: clamp(44px, 5.2vw, 68px);
  font-family: var(--body);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.02em;
  line-height: 1;
}
.reach-v span {
  font-size: 16px;
  font-weight: 600;
  font-stretch: 100%;
  font-variation-settings: "wdth" 100;
  letter-spacing: 0;
  margin-left: 4px;
}
.reach-row .source-note { margin-top: 10px; }

.p-shot { min-width: 0; }
.p-shot-frame { border: 2px solid var(--ink); padding: 12px; }
.p-shot-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.p-shot figcaption { padding-top: 14px; display: grid; gap: 4px; }
.p-shot-label { font-size: 14px; font-weight: 700; line-height: 1.4; text-wrap: pretty; }
main .source-note, main .lede { text-wrap: pretty; }

@media (max-width: 860px) {
  .p-reach-grid { grid-template-columns: minmax(0, 1fr); }
  .p-shot { max-width: 460px; }
}
@media (max-width: 560px) {
  .reach-row { grid-template-columns: minmax(0, 1fr); padding: 20px 0 18px; }
  .reach-row > .eyebrow { grid-row: auto; padding-top: 0; margin-bottom: 12px; }
}

/* ---------- Series fit ---------- */

.p-reach:not([hidden]) + .p-fit,
.p-fit + .p-form { padding-top: 0; }

.p-fit-note { max-width: 22em; color: var(--muted-dark); font-size: 15px; margin-bottom: 0.4em; }
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.fit {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  min-width: 0;
}
.fit-img { aspect-ratio: 1; }
.fit-body { min-width: 0; }
.fit-num { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted-dark); margin-bottom: 4px; }
.fit-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 0.95; margin-bottom: 12px; }
.fit-k { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 6px; }
.fit-list li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.4; }
.fit-list li + li { margin-top: 4px; }
.fit-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; background: var(--ink); }

@media (max-width: 1100px) { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .fit-grid { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 2px solid var(--ink); }
  .fit { padding: 18px 0; }
}

/* ---------- Partner form ---------- */

.p-form { scroll-margin-top: calc(var(--head-h) + 8px); }
.p-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.p-form-intro .eyebrow { margin-bottom: 16px; }
.p-form-intro .h2 { margin-bottom: 24px; font-size: clamp(40px, 5.4vw, 76px); }
.p-form-alt { margin-top: 24px; font-size: 15px; overflow-wrap: anywhere; }

.pf { border: 2px solid var(--ink); padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; min-width: 0; }
.pf[hidden] { display: none; }
.pf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.pf .field { min-width: 0; align-content: start; }
.pf-opt { font-weight: 600; letter-spacing: 0.12em; color: var(--muted-dark); margin-left: 6px; }

.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.pf-select { position: relative; }
.pf-select .select { padding-right: 48px; cursor: pointer; }
.pf-select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.pf .textarea { min-height: 150px; }

/* Errors stay ink: a double rule on the field and a boxed "!" on the message. */
.pf .is-invalid .input,
.pf .is-invalid .textarea { border: 6px double var(--ink); padding: 10px 12px; }
.pf .is-invalid .chip span { border-style: double; border-width: 6px; padding: 12px 4px; }
.pf-err {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.pf-err[hidden] { display: none; }
.pf-err::before {
  content: "!" / "";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 13px;
  line-height: 1;
}

.pf-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 4px; }
.pf-submit .small { flex: 1 1 16em; max-width: 26em; }
.pf-status { font-size: 15px; font-weight: 600; }
.pf-status:empty, .pf-check:empty, .pf-alert:empty { display: none; }
.pf-alert { font-weight: 700; line-height: 1.5; text-wrap: pretty; }
/* Turnstile keeps an invisible widget here, so it stays out of the layout until it asks the visitor something. */
.pf-check:not([data-asking]) { position: absolute; }
.pf-draft { display: grid; justify-items: start; gap: 12px; }
.pf-draft-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-draft .small:empty { display: none; }
.pf-draft-text { width: 100%; font-size: 14px; }

.pf-done { border: 2px solid var(--ink); padding: clamp(20px, 3vw, 36px); display: grid; gap: 12px; outline: none; }
.pf-done[hidden] { display: none; }
.pf-done .display { font-size: clamp(32px, 3.6vw, 48px); line-height: 0.95; }
.pf-done p:last-child { overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .p-form-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 48px); }
  .p-form-intro { max-width: 40em; }
}
@media (max-width: 560px) {
  .pf-row { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-submit .btn { width: 100%; }
}
