/* Partner Programme pages: become-a-partner.html, partner.html (dashboard), partner-print.html
   (statement and reconciliation). TroveUniverse deep green #0E3B2E, gold #C99A3B.
   Phone first: cards stack, wide tables scroll inside their own box, long codes wrap. */

.pp-hero h1 { max-width: 22ch; }
.pp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.pp-steps li { display: flex; flex-direction: column; gap: 6px; counter-increment: step; }
.pp-steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--brand-dark); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pp-steps span { color: var(--secondary); font-size: 15px; }
.pp-tier { display: flex; flex-direction: column; gap: 6px; }
.pp-tier .pp-rate { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 34px; font-weight: 700; color: var(--brand); }
.pp-tier .pill { align-self: flex-start; }
.pp-terms { max-height: 340px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 16px; background: #FCFCF9; margin-bottom: 14px; font-size: 15px; }
.pp-terms h2 { font-size: 18px; }
.pp-terms h3 { font-size: 16px; }

/* dashboard */
.pd-wrap { padding-bottom: 56px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.pd-card h2 { font-size: 20px; margin-bottom: 10px; }
.pd-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; background: var(--gold-soft); color: var(--brand-dark); padding: 8px 12px; border-radius: 8px; overflow-wrap: anywhere; word-break: break-word; }
.pd-link { font-size: 13px; overflow-wrap: anywhere; word-break: break-all; color: var(--secondary); }
.pd-tier-name { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 30px; font-weight: 700; color: var(--brand); }
.pd-bar { height: 12px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.pd-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--gold)); border-radius: 999px; }
.pd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.pd-kpi { padding: 16px; }
.pd-kpi .pd-num { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 22px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.pd-kpi .label { display: block; margin-bottom: 4px; }
.pd-section { margin: 28px 0 0; }
.pd-section > h2 { font-size: 22px; margin-bottom: 4px; }
.pd-section > .section-sub { margin-bottom: 14px; }
.pd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pd-co { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pd-co h3 { font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.pd-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pd-apps li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 8px; }
.pd-apps li:first-child { border-top: 0; padding-top: 0; }
.pd-meta { font-size: 13px; color: var(--muted); }
.num, table.data td.num, table.data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-neg { color: var(--bad-fg); }
.pd-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }

/* print view */
.pp-print { padding-bottom: 40px; }
.pp-date { width: auto; min-height: 36px; padding: 6px 8px; }
.pp-sheet h1 { font-size: 24px; margin-bottom: 2px; }
.pp-sheet h2 { font-size: 18px; margin: 22px 0 8px; }
.pp-sheet table.data { font-size: 13px; }
.pp-sheet table.data th, .pp-sheet table.data td { padding: 6px 8px; }
.pp-totals td { font-weight: 700; }

@media (max-width: 980px) {
  .pp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pp-steps, .pd-grid, .pd-cards, .pd-form { grid-template-columns: 1fr; }
  .pd-kpi .pd-num { font-size: 19px; }
  .pd-tier-name { font-size: 26px; }
  .pd-apps li .btn-primary, .pd-apps li .btn-ghost { width: 100%; }
}
@media print {
  .pp-noprint, .wa-float { display: none !important; }
  .pp-print { max-width: none; padding: 0; }
  .pp-sheet table.data th { background: #fff; }
  .pp-sheet tr { break-inside: avoid; }
  .table-wrap { overflow: visible; }
}
