/* Partner services — thin page layer on top of home_page.css.
   Reuses .page-hero-*, .content-band, .section-label and .assessment-cta-*;
   only the toolkit map and provider profiles live here. */

.ps-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 40px;
}

/* ---------- Toolkit map ---------- */

.ps-toolkit-head {
    max-width: 680px;
    margin-bottom: 52px;
}

.ps-toolkit-head h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.ps-toolkit-head p {
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 1.75;
}

.ps-toolkit {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

/* Subgrid keeps titles, descriptions and logo rows aligned across columns. */
.ps-tool {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    padding: 36px 28px 8px;
    border-right: 1px solid var(--line);
}

.ps-tool:first-child {
    padding-left: 0;
}

.ps-tool:last-child {
    padding-right: 0;
    border-right: none;
}

.ps-tool h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.ps-tool p {
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 28px;
}

.ps-tool-providers {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.ps-tool-logo {
    width: 148px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.ps-tool-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ps-tool-logo:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(46,195,150,0.16);
    transform: translateY(-2px);
}

.ps-tool-logo:focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 3px;
}

/* ---------- Logo plates (shared by map, profiles and featured band) ---------- */

.ps-logo {
    flex-shrink: 0;
    width: 148px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.ps-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Raster logos with their own background (Edison, Ledgy) fill the plate edge to edge. */
.ps-logo--fill,
.ps-tool-logo--fill {
    padding: 0;
}

.ps-logo--fill img,
.ps-tool-logo--fill img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

/* White-on-transparent logos (focusIR) sit on the dark band colour. */
.ps-logo--ink,
.ps-tool-logo--ink {
    background: var(--dark);
    border-color: var(--dark);
}

/* ---------- Category split: heading + provider profiles ---------- */

/* Heading centres against the profile stack, as .csplit text centres against its image.
   (Sticky would suit this, but html+body overflow-x:hidden in jpjenkins.css disables
   sticky sitewide — including the header's own — so don't rely on it here.) */
.ps-split {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 72px;
    align-items: center;
}

.ps-split-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.13;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.ps-nowrap {
    white-space: nowrap;
}

.ps-split-head p {
    font-size: 1.02rem;
    color: var(--ink-2);
    line-height: 1.8;
}

.ps-profiles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ps-profile {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 36px 30px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 96px;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ps-profile:hover {
    border-color: rgba(46,195,150,0.4);
    box-shadow: var(--shadow-md);
}

.ps-profile:has(.ps-profile-link:focus-visible) {
    outline: 2px solid var(--accent-deep);
    outline-offset: 3px;
}

.ps-profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ps-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-deep);
    white-space: nowrap;
}

/* Stretch the link over the whole profile so the card is one click target. */
.ps-profile-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
}

.ps-profile-link:focus-visible {
    outline: none;
}

.ps-profile-link i,
.ps-profile-link:hover i {
    color: inherit;
    font-size: 0.72rem;
    text-shadow: none;
}

.ps-profile:hover .ps-profile-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ps-profile h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ps-profile-kind {
    margin-top: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-3);
}

.ps-profile-desc {
    margin-top: 16px;
    font-size: 0.97rem;
    color: var(--ink-2);
    line-height: 1.75;
}

.ps-profile-features {
    list-style: none;
    margin: 24px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line-2);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 24px;
}

.ps-profile-features li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.5;
}

.ps-profile-features li i {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--accent-deep);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .ps-toolkit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ps-tool,
    .ps-tool:first-child,
    .ps-tool:last-child {
        padding: 32px 28px 32px 0;
        border-right: 1px solid var(--line);
    }

    .ps-tool:nth-child(2n) {
        padding: 32px 0 32px 28px;
        border-right: none;
    }

    .ps-tool:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 900px) {
    .ps-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .ps-inner {
        padding: 64px 20px;
    }

    .ps-profile {
        padding: 24px 22px;
    }

    .ps-profile-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ps-logo {
        width: 128px;
        height: 56px;
    }
}

@media (max-width: 580px) {
    .ps-toolkit {
        grid-template-columns: 1fr;
    }

    .ps-tool,
    .ps-tool:first-child,
    .ps-tool:last-child,
    .ps-tool:nth-child(2n) {
        padding: 28px 0;
        border-right: none;
    }

    .ps-tool:nth-child(n+2) {
        border-top: 1px solid var(--line);
    }

    .ps-tool-providers {
        flex-direction: row;
        flex-wrap: wrap;
    }

}

@media (prefers-reduced-motion: reduce) {
    .ps-tool-logo,
    .ps-profile {
        transition: none;
    }

    .ps-tool-logo:hover {
        transform: none;
    }
}
