/* ═══ Public transparency page ═══
   Shares the .ip-* section furniture with the Mudarabah and Musharakah
   pages; everything specific to this page is .tp-*. */

.tp-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(251, 191, 36, .10) 0%, transparent 45%),
        radial-gradient(circle at 88% 6%, rgba(15, 118, 110, .05) 0%, transparent 40%),
        #FFFFFF;
    padding: 28px 0 64px;
    color: #1E293B;
}
.tp-section { padding: 46px 0; }

/* ── hero ───────────────────────────────────────────── */
.tp-hero {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 30px; align-items: center; padding: 10px 0 26px;
}
.tp-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 40px;
    background: rgba(217, 119, 6, .09); border: 1px solid rgba(217, 119, 6, .28);
    color: #B45309; font-size: .75rem; font-weight: 700; letter-spacing: .4px;
}
.tp-hero h1 {
    margin: 14px 0 12px; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 850;
    letter-spacing: -1px; line-height: 1.15; color: #1E293B;
}
.tp-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tp-lead { font-size: 1.02rem; line-height: 1.72; color: #57534E; margin: 0; }
.tp-art svg { width: 100%; height: auto; max-width: 440px; margin-inline: auto; display: block; }
.tp-svg-t { font: 800 14px Inter, sans-serif; fill: #1E293B; }

/* ── stat cards ─────────────────────────────────────── */
.tp-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px;
}
.tp-stats--four { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin-top: 20px; }
.tp-stat {
    padding: 20px 22px; border-radius: 17px; background: #FFFDF7;
    border: 1px solid #E9E2D0; border-top: 3px solid #D97706;
}
.tp-stat--wide { grid-column: 1 / -1; background: linear-gradient(150deg, #FFF8E7 0%, #FFFFFF 100%); }
.tp-stat span {
    display: block; font-size: .74rem; font-weight: 800; letter-spacing: .7px;
    text-transform: uppercase; color: #78716C; margin-bottom: 8px;
}
.tp-stat strong {
    display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 850;
    color: #B45309; line-height: 1.15; letter-spacing: -.5px;
}
.tp-stat--wide strong { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.tp-stat small { display: block; margin-top: 8px; font-size: .8rem; color: #78716C; line-height: 1.55; }
.tp-up { color: #15803D !important; }
.tp-down { color: #B91C1C !important; }

/* ── the record ─────────────────────────────────────── */
.tp-chart {
    padding: 18px 18px 12px; border-radius: 17px; background: #FFFDF7; border: 1px solid #E9E2D0;
}
.tp-chart svg { width: 100%; height: auto; display: block; }
.tp-chart-ends {
    display: flex; justify-content: space-between; margin-top: 8px;
    font-size: .74rem; color: #78716C; letter-spacing: .3px;
}
.tpx-draw { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: tpx-line 3.2s ease forwards; }
@keyframes tpx-line { to { stroke-dashoffset: 0; } }

/* ── partner sample ─────────────────────────────────── */
.tp-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.tp-partner {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 17px; border-radius: 15px; background: #FFFDF7; border: 1px solid #E9E2D0;
}
.tp-partner-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tp-avatar {
    flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #7C3E06; font-weight: 850; font-size: .85rem;
}
.tp-partner p { margin: 0; font-size: .92rem; font-weight: 650; color: #1E293B; }
.tp-partner-mail { font-size: .78rem !important; font-weight: 400 !important; color: #78716C !important; }
/* The values are already masked server-side; the blur is the look, not the lock. */
.tp-blur { filter: blur(3px); user-select: none; }
.tp-partner:hover .tp-blur { filter: blur(2px); }
.tp-partner-num { text-align: right; flex: 0 0 auto; }
.tp-partner-num small { display: block; font-size: .72rem; color: #78716C; margin-bottom: 2px; }
.tp-partner-num strong { font-size: .98rem; font-weight: 800; color: #B45309; }

@media (max-width: 991.98px) {
    .tp-hero { grid-template-columns: minmax(0, 1fr); }
    .tp-hero .tp-art { order: -1; }
}
@media (max-width: 575.98px) {
    .tp-page { padding: 16px 0 44px; }
    .tp-section { padding: 32px 0; }
    .tp-stat { padding: 16px 17px; }
    .tp-partner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .tp-partner-num { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .tpx-draw { animation: none; stroke-dashoffset: 0; }
}
