/* DinnTro Partners page. Uses the site tokens from site.css. */
.pp-hero { min-height: 0; padding: 120px 0 44px; }
.pp-hero .ph-grid { grid-template-columns: 1fr; }
.pp-hero .lead { max-width: 40rem; }

/* Two boxes, the wider one holding the partner cards */
.pp-block { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.pp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(1rem, 2vw, 1.5rem); }
.pp-box { min-width: 0; padding: clamp(1.25rem, 2.5vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 105px; }
.pp-title { font-size: clamp(1.45rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

/* Become a partner */
.pp-pitch { margin: 0.5rem 0 0; color: var(--ink-soft); line-height: 1.45; }
.pp-more { margin: 0.75rem 0 0; font-size: 0.92rem; color: var(--muted); }
.pp-more a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pp-alt + .pp-more { margin-top: 1.25rem; }
.pp-scan { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; }
.pp-qr { width: min(100%, 240px); aspect-ratio: 1; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pp-qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.pp-scan-note { margin: 0.65rem 0 0; font-size: 0.92rem; color: var(--muted); }
.pp-steps { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); counter-reset: pp-step; display: grid; gap: 0.75rem; }
.pp-steps li { counter-increment: pp-step; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.65rem; align-items: center; line-height: 1.4; color: var(--ink-soft); }
.pp-steps li::before { content: counter(pp-step); width: 1.6rem; height: 1.6rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); color: var(--primary); font: 700 0.8rem/1 var(--display); }
.pp-alt { margin: 1.25rem 0 0; font-size: 0.92rem; color: var(--muted); }
.pp-alt a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pp-phone-actions { display: none; flex-direction: column; gap: 0.65rem; margin-top: 1.25rem; }
.pp-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.25rem; border: 1px solid var(--primary); border-radius: 8px; background: var(--primary); color: #fff; font-weight: 600; text-align: center; }
.pp-btn-quiet { background: #fff; color: var(--primary); }
.pp-btn[hidden] { display: none; }

/* Current partners */
.pp-current-head { margin-bottom: 1.5rem; }
.pp-current-head p { margin: 0.4rem 0 0; color: var(--muted); }
.pp-track { display: flex; gap: 8px; /* so no sliver of the next slide's border shows at a fractional width */ overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pp-track::-webkit-scrollbar { display: none; }
.pp-grid { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 1.5rem 0.75rem; }
.pp-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.pp-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--primary); cursor: pointer; }
.pp-arrow:hover { background: var(--surface-2); }
.pp-count { min-width: 3.5rem; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pp-nav[hidden] { display: none; }
/* Partner card: a framed row, with the poster or photo filling the left edge in the poster's shape */
.pp-card { position: relative; display: flex; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.pp-photo { position: relative; flex: 0 0 140px; min-height: 197px; background: var(--surface-2); }
.pp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-tile { position: absolute; inset: 0; width: 44px; height: 44px; margin: auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: #fff; font: 700 1.15rem/1 var(--display); }
.pp-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 0.85rem; min-width: 0; }
.pp-name { font-size: 1.08rem; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; }
.pp-line { margin: 0.25rem 0 0; font-size: 0.86rem; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.pp-deal { margin: 0.65rem 0 0; padding: 0.28rem 0.7rem; border-radius: 999px; background: var(--surface-2); color: var(--primary); font: 700 0.95rem/1.2 var(--display); }
.pp-link { margin-top: auto; padding-top: 0.5rem; font-size: 0.88rem; font-weight: 600; white-space: nowrap; color: var(--primary); }
.pp-link::after { content: ''; position: absolute; inset: 0; border-radius: 13px; } /* the whole card opens the link */
.pp-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(106, 45, 180, 0.12); }
.pp-card:hover .pp-link { text-decoration: underline; text-underline-offset: 2px; }

/* Focus */
.pp-link:focus-visible { outline: none; }
.pp-btn:focus-visible, .pp-alt a:focus-visible, .pp-more a:focus-visible, .pp-arrow:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pp-link:focus-visible::after { outline: 2px solid var(--primary); outline-offset: -2px; } /* inside the card, which clips anything outside it */

/* Keep the QR in view beside a long partner list, when the screen is tall enough to show all of it */
@media (min-width: 1201px) and (min-height: 860px) { .pp-join-inner { position: sticky; top: 105px; } }
/* Below this, two cards no longer fit beside the other box */
@media (max-width: 1200px) { .pp-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .pp-scan, .pp-alt { display: none; }
  .pp-steps { margin-top: 1.1rem; padding-top: 0; border-top: 0; }
  .pp-phone-actions { display: flex; }
}
@media (max-width: 700px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-photo { flex-basis: 120px; min-height: 169px; }
}
