/* Third-Party Software page (templates/legal/third_party.html) — tp-*. KPI cards / section headers: css/account/user_detail.css. */

.tp-hero { display: flex; gap: 1.2rem; align-items: center; padding: 1.4rem 1.6rem; border-radius: 18px;
    border: 1px solid var(--border-color); background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(25,135,84,.05)), var(--card-bg-color); }
.tp-hero__icon { width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff; background: linear-gradient(135deg, #0d6efd, #198754); box-shadow: 0 8px 22px rgba(13,110,253,.25); }
.tp-hero__title { font-size: 1.35rem; font-weight: 800; margin: 0 0 .35rem; color: var(--text-color); }
.tp-hero__text { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--subtle-text-color); }

.tp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }

.tp-toc { display: flex; flex-wrap: wrap; gap: .4rem; }
.tp-toc a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    text-decoration: none; color: var(--text-color); background: var(--card-bg-color); border: 1px solid var(--border-color); }
.tp-toc a:hover { border-color: #0d6efd; color: #0d6efd; }
.tp-toc i { color: #0d6efd; font-size: .8rem; }

.tp-group { scroll-margin-top: 1.5rem; padding: 1.3rem; border-radius: 16px; border: 1px solid var(--border-color); background: var(--card-bg-color); }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.tp-item { padding: .8rem .95rem; border-radius: 12px; background: var(--light-bg-color); border: 1px solid var(--border-color); }
.tp-item__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tp-item__name { font-weight: 700; font-size: .92rem; color: var(--text-color); text-decoration: none; overflow-wrap: anywhere; }
a.tp-item__name:hover { color: #0d6efd; }
.tp-item__name i { font-size: .6rem; opacity: .4; margin-left: .15rem; }
.tp-version, .tp-mono { font-family: var(--bs-font-monospace); font-size: .74rem; color: var(--subtle-text-color); }
.tp-version { padding: 0 .4rem; border-radius: 6px; background: var(--card-bg-color); border: 1px solid var(--border-color); white-space: nowrap; }
.tp-license { margin-top: .35rem; font-size: .8rem; font-weight: 600; color: #198754; display: flex; gap: .4rem; align-items: baseline; }
.tp-license i { font-size: .72rem; }
.tp-use { margin-top: .2rem; font-size: .78rem; color: var(--subtle-text-color); }

.tp-search { max-width: 260px; border-radius: 999px; }
.tp-licenses { display: flex; flex-wrap: wrap; gap: .35rem; }
.tp-licenses span { font-size: .74rem; padding: .15rem .6rem; border-radius: 999px; background: rgba(25,135,84,.08);
    border: 1px solid rgba(25,135,84,.25); color: var(--text-color); }
.tp-licenses b { color: #198754; margin-left: .2rem; }
.tp-table-wrap { max-height: 640px; overflow: auto; border-radius: 12px; border: 1px solid var(--border-color); }
.tp-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.tp-table th { position: sticky; top: 0; z-index: 1; background: var(--light-bg-color); text-align: left; padding: .55rem .8rem;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle-text-color); border-bottom: 1px solid var(--border-color); }
.tp-table td { padding: .45rem .8rem; border-bottom: 1px solid var(--border-color); color: var(--text-color); vertical-align: top; }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table a { text-decoration: none; font-weight: 600; }
.tp-summary { color: var(--subtle-text-color) !important; font-size: .78rem; }
.tp-direct { margin-left: .35rem; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .05rem .4rem;
    border-radius: 6px; color: #0d6efd; background: rgba(13,110,253,.1); }
.tp-note { font-size: .82rem; color: var(--subtle-text-color); }

@media (max-width: 576px) {
    .tp-hero { flex-direction: column; text-align: center; }
    .tp-search { max-width: none; width: 100%; }
}
