/* partner-kit.css: partner-kit.html (js/partner-kit.js). Class prefix pk-.
   Builds on css/pages.css tokens and css/help-center.css (.help-page tokens, .hc-btn, .hc-h2), light and dark.
   The flyer (.pk-sheet) is always black/navy on white, on screen too, so the preview looks like the paper.
   Print: only the flyer, one US Letter page (@page margin .5in → 7.5 × 10 in of space). */

.pk-page main { padding-bottom: 32px; }
.pk-page main :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.pk-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0 28px; margin-bottom: 24px; }
.pk-hero h1 { margin: 6px 0 10px; font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.pk-lead { margin: 0; max-width: 780px; color: var(--hc-text-2); font-size: 1.0625rem; line-height: 1.55; }
.pk-free { margin: 12px 0 0; font-weight: 700; color: var(--ink); }

.pk-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.pk-form { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px; }
.pk-form .hc-h2 { margin-bottom: 0; font-size: 1.375rem; }
.pk-field { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pk-step { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--gold); color: #14324F;
  font-size: .8125rem; font-weight: 800; }
.pk-select, .pk-input, .pk-text { width: 100%; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--hc-field); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; font-size: .9375rem; }
.pk-text { min-height: 96px; padding: 10px 14px; line-height: 1.45; resize: vertical; }
.pk-input[aria-invalid="true"] { border-color: var(--bad); }
.pk-msg { margin: 0; font-size: .875rem; color: var(--bad); font-weight: 600; }
.pk-msg:empty { display: none; }
#pk-action-msg { color: var(--good); }
.pk-variants legend { margin-bottom: 6px; }
.pk-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
  font-weight: 600; color: var(--text); }
.pk-radio + .pk-radio { margin-top: 6px; }
.pk-radio input { width: 20px; height: 20px; accent-color: #14324F; flex: none; }
[data-theme="dark"] .pk-radio input { accent-color: var(--gold); }
.pk-radio:has(input:checked) { border-color: var(--hc-navy); background: var(--hc-bg); }
[data-theme="dark"] .pk-radio:has(input:checked) { border-color: var(--gold); }
.pk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-actions .hc-btn { flex: 1 1 auto; white-space: normal; text-align: center; }
.pk-url-row { margin: 0; font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.pk-url { font-size: .8125rem; color: var(--text); }
.pk-texts { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--hc-line); }
.pk-texts .hc-h3 { margin-bottom: 4px; }
.pk-texts .hc-btn { align-self: flex-start; white-space: normal; margin-bottom: 8px; }
.pk-count-note a { display: inline-flex; align-items: center; min-height: 24px; }

/* ------------------------------------------------------------ the flyer (preview = paper) */
.pk-preview { min-width: 0; }
.pk-flyer { min-width: 0; }
.pk-sheet { background: #fff; color: #1B2633; border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px; }
.pk-sheet :focus-visible { outline-color: #14324F; }
.pk-f-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 12px; border-bottom: 4px solid #F2B33D; }
.pk-f-top svg { width: 40px; height: 40px; flex: none; }
.pk-f-brand { font-size: 1.25rem; font-weight: 800; color: #14324F; }
.pk-f-tag { margin-left: auto; font-size: .875rem; font-weight: 700; color: #3D4B5C; }
.pk-f-district { margin: 0; padding: 8px 12px; border-radius: 10px; background: #FFF6E5; color: #14324F; font-weight: 700; font-size: .9375rem; overflow-wrap: anywhere; }
.pk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pk-col { min-width: 0; }
.pk-col + .pk-col { border-left: 1px solid #DFE5EC; padding-left: 20px; }
.pk-f-title { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.2; font-weight: 800; color: #14324F; }
.pk-f-lead { margin: 0 0 10px; font-size: 1rem; line-height: 1.45; color: #1B2633; }
.pk-f-points { margin: 0; padding-left: 20px; font-size: .9375rem; line-height: 1.5; color: #1B2633; }
.pk-f-points li { margin-bottom: 4px; }
.pk-f-points li::marker { color: #C98A10; }
.pk-f-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: 14px; background: #F5F7FA; text-align: center; }
.pk-qr { width: 200px; height: 200px; max-width: 100%; }
.pk-f-scan { margin: 0; font-weight: 700; color: #14324F; }
.pk-f-url { margin: 0; font-size: .8125rem; color: #3D4B5C; overflow-wrap: anywhere; word-break: break-all; }
.pk-f-foot { margin: 0; text-align: center; font-size: .8125rem; color: #3D4B5C; }

@media (max-width: 900px) {
  .pk-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pk-hero { padding: 24px 0 18px; margin-bottom: 16px; }
  .pk-hero h1 { font-size: 1.5rem; }
  .pk-lead { font-size: 1rem; }
  .pk-form { padding: 16px; border-radius: 16px; }
  .pk-sheet { padding: 16px; gap: 12px; }
  .pk-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pk-col + .pk-col { border-left: 0; padding-left: 0; border-top: 1px solid #DFE5EC; padding-top: 14px; }
  .pk-f-title { font-size: 1.25rem; }
  .pk-f-tag { margin-left: 0; }
  .pk-qr { width: 180px; height: 180px; }
}

@media print {
  @page { size: letter; margin: .5in; }
  .pk-page, .pk-page main { background: #fff !important; padding: 0 !important; }
  .pk-page .topbar, .pk-page .site-foot, .pk-page .skip-link, .pk-hero, .pk-form, .pk-preview > .hc-h2, .pk-page noscript { display: none !important; }
  .pk-layout { display: block !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .pk-sheet { width: 7.5in; height: 9.9in; box-sizing: border-box; overflow: hidden; border: 0; border-radius: 0; box-shadow: none; padding: 0;
    gap: 14pt; break-inside: avoid; page-break-after: avoid; justify-content: space-between; }
  .pk-f-top svg { width: 34pt; height: 34pt; }
  .pk-f-brand { font-size: 17pt; }
  .pk-f-tag { font-size: 11pt; }
  .pk-f-district { font-size: 12pt; }
  .pk-cols { grid-template-columns: 1fr 1fr !important; gap: 18pt; }
  .pk-col + .pk-col { border-left: 1px solid #C9D4DF !important; padding-left: 18pt !important; border-top: 0 !important; padding-top: 0 !important; }
  .pk-f-title { font-size: 20pt; }
  .pk-f-lead { font-size: 12pt; }
  .pk-f-points { font-size: 11.5pt; }
  .pk-f-qr { background: #fff; border: 1.5pt solid #14324F; padding: 12pt; }
  .pk-qr { width: 2.6in; height: 2.6in; }
  .pk-f-scan { font-size: 12pt; }
  .pk-f-url { font-size: 10pt; }
  .pk-f-foot { font-size: 10pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
