/* Partnerships page (/partners/). Loaded only there. Uses the tokens and components from main.css (type ladder, .eyebrow,
   .mega, .h2-display, .checks, .faq-*, .btn-*, .page-hero). Only what main.css does not already provide lives here.
   Layout: hero, 2x2 program cards (native <details>, one open at a time), compact 10/10 feature, three steps, FAQ, form.
   Design rules followed: one yellow action per block, hard offset shadows only on buttons, square-ish corners, numbers only
   where the content really is a sequence (the three steps), no icon-grid cards.
   Prefix map: pt- = page layout, pf- = inquiry form. */

/* ---------- shared bits ---------- */
#programs, #fundraising, #partner-form, .pt-card { scroll-margin-top: 80px; }
.pt-label {
  margin: 20px 0 8px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark);
}
.pt-label:first-child { margin-top: 0; }
.on-dark .pt-label { color: var(--gold); }
.pt-head { margin-bottom: 28px; }
.pt-h2 { font-size: clamp(36px, 5vw, 60px); line-height: 0.93; }
.pt-mega { font-size: clamp(38px, 6vw, 76px); }
.pt-trust { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.pt-cta { margin-top: 26px; }
.pt-programs, .pt-fund, .pt-how, .pt-faq, .pt-form-section { padding-block: 64px; }
.pt-how { padding-block: 52px; }
@media (max-width: 780px) { .pt-programs, .pt-fund, .pt-how, .pt-faq, .pt-form-section { padding-block: 48px; } }
@media (max-width: 480px) {
  .pt-cta .btn, .hero-ctas .btn, .pt-det-body .btn { white-space: normal; text-align: center; width: 100%; }
}

/* ---------- 1. hero ---------- */
.pt-hero .wrap { padding-block: 16px 44px; z-index: 1; }
/* The existing Duck Soup mascot, cropped on the bottom edge the way the closing band on other pages uses it. Decorative only,
   wide screens only, and set as a CSS background inside the media query so phones and tablets never download it. */
@media (min-width: 1000px) {
  .pt-hero::after {
    content: ""; position: absolute; right: 5%; bottom: 0; z-index: 0;
    width: min(28%, 340px); height: 86%;
    background: url("/assets/duck-mascot.webp") no-repeat right bottom / contain;
    pointer-events: none;
  }
}
.pt-hero h1 { font-size: clamp(44px, 7.6vw, 100px); max-width: 15ch; }
.pt-hero h1 .accent { color: var(--gold); }
.pt-hero .lede { max-width: 52ch; }

/* ---------- 2. program cards ---------- */
.pt-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 700px) {
  .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  /* Tidy by default: with every card closed the two cards in a row end on the same line. As soon as one is open, the cards
     keep their own height so the open one can grow without stretching its neighbor. (:has() is progressive: older
     browsers simply keep the natural heights.) */
  .pt-grid:not(:has(.pt-det[open])) { align-items: stretch; }
}
.pt-card { display: flex; flex-direction: column; }
.pt-card .checks { margin-bottom: 18px; }
.pt-card .pt-det { margin-top: auto; }
.pt-card {
  min-width: 0; padding: 26px 26px 0;
  background: var(--paper-raised); color: var(--ink);
  border: 1px solid var(--line); border-top: 5px solid var(--gold);
}
.pt-card.on-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); border-top-color: var(--gold); }
@media (max-width: 480px) { .pt-card { padding: 22px 20px 0; } }
.pt-card h3 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 3.2vw, 42px); line-height: 0.94; color: var(--ink);
}
.pt-card.on-dark h3 { color: var(--on-dark); }
.pt-card-name {
  display: block; margin-bottom: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: 0.16em; color: var(--gold-dark);
}
.pt-card.on-dark .pt-card-name { color: var(--gold); }
.pt-card-lede { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.pt-card.on-dark .pt-card-lede { color: var(--on-dark-soft); }
.pt-card .checks { margin-top: 16px; max-width: none; }
.pt-card .checks li { padding: 10px 0 10px 34px; font-size: 16px; line-height: 1.45; }
.pt-card .checks li::before { top: 11px; }
.pt-card .checks li::after { top: 14px; }

/* details: native <details> so the content is always in the HTML; name="pt-program" makes browsers keep one open at a time */
.pt-det { border-top: 2px solid var(--ink); }
.pt-card.on-dark .pt-det { border-top-color: var(--gold); }
.pt-det > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 2px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: inherit;
}
.pt-det > summary::-webkit-details-marker { display: none; }
.pt-det > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.pt-card.on-dark .pt-det > summary:focus-visible { outline-color: var(--gold); }
.pt-sum-o { display: none; }
.pt-det[open] .pt-sum-o { display: inline; }
.pt-det[open] .pt-sum-c { display: none; }
.pt-det summary .plus {
  flex-shrink: 0; position: relative; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--gold-dark); color: var(--gold-dark);
}
.pt-card.on-dark .pt-det summary .plus { border-color: var(--gold); color: var(--gold); }
.pt-det summary .plus::before, .pt-det summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.pt-det summary .plus::before { width: 10px; height: 1.5px; }
.pt-det summary .plus::after { width: 1.5px; height: 10px; transition: transform 0.15s ease; }
.pt-det[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.pt-det-body { padding: 2px 0 26px; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chips li {
  padding: 7px 12px; border: 1.5px solid var(--ink);
  font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; color: var(--ink);
}
.pt-card.on-dark .pt-chips li { border-color: var(--on-dark-line); color: var(--on-dark); }
.pt-list li { position: relative; padding: 5px 0 5px 20px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.pt-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; background: var(--gold); border: 1.5px solid var(--ink); }
.pt-note { margin: 18px 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.pt-card.on-dark .pt-note { color: var(--on-dark-soft); }
.pt-note a, .pt-list a {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.pt-note a:hover, .pt-list a:hover { text-decoration-color: var(--ink); }
.pt-card.on-dark .pt-note a { color: var(--on-dark); }
.pt-card.on-dark .pt-note a:hover { text-decoration-color: var(--on-dark); }

/* ---------- 3. featured 10/10 fundraising ---------- */
.pt-fund-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .pt-fund-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.pt-fund-grid > * { min-width: 0; }
.pt-fund h2.mega { font-size: clamp(48px, 7.4vw, 100px); }
.pt-sub {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px); line-height: 1; color: var(--gold);
}
.pt-trio { margin-top: 22px; border-top: 2px solid var(--gold); }
.pt-trio li { display: grid; gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--on-dark-line); }
@media (min-width: 620px) { .pt-trio li { grid-template-columns: minmax(150px, 4fr) minmax(0, 8fr); align-items: baseline; } }
.pt-big {
  display: block; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 0.9; color: var(--on-dark);
}
.pt-big .n { color: var(--gold); }
.pt-trio p { font-size: 16px; line-height: 1.6; color: var(--on-dark-soft); }
.pt-example { padding: 24px 26px 22px; border: 1px solid var(--on-dark-line); border-left: 5px solid var(--gold); }
.pt-example-label { font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.pt-flow { margin-top: 16px; display: grid; gap: 8px; }
.pt-flow-step { display: grid; grid-template-columns: 5.2ch minmax(0, 1fr); align-items: center; gap: 16px; font-size: clamp(46px, 5.4vw, 60px); }
.pt-flow-n { font-family: var(--font-display); font-weight: 900; font-size: 1em; line-height: 0.95; color: var(--on-dark); }
.pt-flow-end .pt-flow-n { color: var(--gold); }
.pt-flow-t { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; color: var(--on-dark-soft); }
.pt-flow-arrow { display: block; width: 5.2ch; padding-left: 0.2em; line-height: 0; color: var(--gold); font-size: clamp(46px, 5.4vw, 60px); }
.pt-flow-arrow svg { width: 26px; height: 26px; }
.pt-example-text { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.pt-fine { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--on-dark-soft); }

/* ---------- 4. how partnerships work: three steps, the one real sequence ---------- */
.pt-steps { margin: 26px 0 0; padding: 0; list-style: none; display: grid; border-top: 2px solid var(--ink); }
.pt-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pt-step-n { grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 0.9; color: var(--gold-dark); }
.pt-steps h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 40px); line-height: 0.95; color: var(--ink); }
.pt-steps p { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--ink-faint); max-width: 40ch; }
@media (min-width: 860px) {
  .pt-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-steps li { display: block; padding: 24px 28px 6px 0; border-bottom: 0; }
  .pt-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
  .pt-step-n { display: block; margin-bottom: 10px; font-size: 60px; }
}

/* ---------- 5. FAQ ---------- */
.pt-faq .faq-answer a { color: var(--ink); }

/* ---------- 6. inquiry form ---------- */
.pt-form-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .pt-form-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.pt-form-grid > * { min-width: 0; }
.pt-form-intro h2.mega { font-size: clamp(46px, 7vw, 96px); }
.pt-form-intro h2.mega:focus { outline: none; }
.pt-reassure {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px); line-height: 1; color: var(--gold);
}
.pt-form-intro .lede { margin-top: 16px; max-width: 44ch; font-size: 17.5px; line-height: 1.6; color: var(--on-dark-soft); }
.pt-direct { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--on-dark); max-width: 44ch; }
.pt-direct a { color: var(--gold); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.pt-panel {
  --pf-field: #8f887c;      /* 3:1 against white: form boundary contrast */
  --pf-muted: #615b54;
  --pf-err: #b3261e;
  --pf-ok: #1a6b2f;
  background: var(--paper-raised); color: var(--ink);
  border-top: 5px solid var(--gold); padding: 28px 28px 24px;
}
@media (max-width: 480px) { .pt-panel { padding: 24px 18px 22px; } }
.pf-form { display: none; }
.js .pf-form { display: block; }
.pt-panel .pf-noscript { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.pt-panel .pf-noscript a { color: var(--ink); font-weight: 700; }

.pf-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .pf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf { margin: 0 0 18px; min-width: 0; }
.pf label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 7px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.pf-opt { font-size: 14.5px; font-weight: 400; color: var(--pf-muted); }
.pf input[type="text"], .pf input[type="tel"], .pf input[type="email"], .pf textarea, .pf select {
  display: block; width: 100%; min-height: 54px; padding: 0 14px;
  font: 400 17px/1.35 var(--font-body); color: var(--ink);   /* 17px: iOS never zooms the page on focus */
  background-color: var(--paper-raised); border: 1.5px solid var(--pf-field); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
}
.pf select {
  padding-right: 42px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.pf textarea { padding: 14px; min-height: 112px; max-height: 280px; resize: vertical; }
.pf input:focus, .pf textarea:focus, .pf select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.55); }
.pf [aria-invalid="true"] { border-color: var(--pf-err); }
/* The panel sits inside a dark section, and main.css colors every `.on-dark p/h3` light: the panel's own text rules are
   scoped to `.pt-panel` so they win (specificity) and stay readable on the white panel. */
.pt-panel .pf-err { margin: 7px 0 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--pf-err); }
.pf-err[hidden], .pf-alert[hidden], .pf-success[hidden] { display: none; }
.pf-alert { margin: 0 0 18px; padding: 12px 14px; border: 1.5px solid var(--pf-err); border-radius: var(--radius); background: #fff3f1; color: #7d1a14; font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.pf-alert a { color: #7d1a14; font-weight: 700; }
.pf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pf-turnstile:empty { display: none; }   /* Turnstile is invisible unless Cloudflare needs proof; then it appears here */
.pf-turnstile { margin: 0 0 16px; }
.pf-submit { margin-top: 6px; }
.pf-submit[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.pf-submit:disabled { cursor: progress; }
.pt-panel .pf-status { margin: 12px 0 0; min-height: 1.3em; text-align: center; font-size: 15px; font-weight: 700; color: var(--pf-muted); }
.pt-panel .pf-fine { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--pf-muted); }
.pt-panel .pf-fine a { color: var(--ink-soft); }
.pf-success { padding: 10px 0 6px; text-align: left; }
.pf-success:focus { outline: none; }
.pf-success svg { width: 44px; height: 44px; color: var(--pf-ok); }
.pt-panel .pf-success h3 { margin: 12px 0 8px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 5vw, 46px); line-height: 0.95; color: var(--ink); }
.pt-panel .pf-success p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 46ch; }

@media (prefers-reduced-motion: reduce) {
  .pt-det summary .plus::after { transition: none; }
}
