/* Trusted partners: styles scoped to these shortcodes only. */
.tp-ticker, .tp-grid { box-sizing: border-box; width: 100%; max-width: 100%; }
.tp-ticker { overflow: hidden; padding: 14px 0; }
.tp-ticker-track { display: flex; align-items: center; width: max-content; animation: none; }
.tp-ticker.tp-ready .tp-ticker-track { animation: tp-scroll var(--tp-speed, 45s) linear infinite; }
.tp-ticker-group { display: flex; align-items: center; flex: 0 0 auto; gap: 48px; padding-right: 48px; }
.tp-item { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; }
.tp-ticker .tp-item { flex: 0 0 150px; height: 140px; }
.tp-logo { display: block !important; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 115px !important; object-fit: contain; margin: auto !important; box-shadow: none !important; border: 0 !important; }
.tp-ticker:hover .tp-ticker-track { animation-play-state: paused; }
@keyframes tp-scroll { to { transform: translateX(-50%); } }
.tp-grid { display: grid; grid-template-columns: repeat(var(--tp-grid-columns, 5), minmax(0, 1fr)); gap: 20px; }
.tp-grid .tp-item { min-height: 160px; padding: 22px; background: #fff; border: 1px solid #eceeea; border-radius: 14px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tp-grid .tp-item:hover { transform: translateY(-3px); border-color: #d3e5d9; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.tp-grid .tp-logo { max-height: 110px !important; }
@media (max-width: 991px) { .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tp-ticker-group { gap: 24px; padding-right: 24px; } .tp-ticker .tp-item { flex-basis: 120px; height: 110px; } .tp-ticker .tp-logo { max-height: 95px !important; } .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .tp-grid .tp-item { min-height: 125px; padding: 14px; } .tp-grid .tp-logo { max-height: 90px !important; } }
@media (prefers-reduced-motion: reduce) { .tp-ticker.tp-ready .tp-ticker-track { animation: none; } }

/* Linked and unlinked logos retain identical dimensions. */
.tp-item .tp-partner-link, .tp-item .tp-partner-static { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; text-decoration: none; }
.tp-item .tp-partner-link:focus-visible { outline: 2px solid #38885d; outline-offset: -3px; border-radius: 8px; }

/* Grid: equal square logo areas with partner titles beneath. */
.tp-grid .tp-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding: 14px;
    gap: 12px;
    text-align: center;
}
.tp-grid .tp-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 16px;
    box-sizing: border-box;
    background: #fafbf9;
    border-radius: 10px;
    overflow: hidden;
}
.tp-grid .tp-logo-box .tp-partner-link,
.tp-grid .tp-logo-box .tp-partner-static {
    width: 100%;
    height: 100%;
}
.tp-grid .tp-logo-box .tp-logo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}
.tp-grid .tp-partner-title {
    display: block;
    color: #26332c;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
/* Ticker remains logo-only and retains its original proportions. */
.tp-ticker .tp-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.tp-ticker .tp-partner-title { display: none; }
@media (max-width: 767px) {
    .tp-grid .tp-item { padding: 10px; gap: 9px; }
    .tp-grid .tp-logo-box { padding: 10px; }
    .tp-grid .tp-partner-title { font-size: 13px; }
}
