/* Local visual candidate: replace only the catalog hero title with APhero branding. */
.ap-subjects-page .subjects-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ap-subjects-page .subjects-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
    text-align: left;
}

.ap-subjects-page .subjects-brand-heading {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 180px;
    max-width: 46vw;
    margin-inline: 0 auto;
    justify-content: center;
    line-height: 1;
}

.ap-subjects-page .subjects-brand-heading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #ffffff;
    pointer-events: none;
    clip-path: polygon(28.15% 13.48%, 71.93% 13.48%, 93.22% 35.89%, 93.46% 39.15%, 85.89% 68.82%, 51.12% 88.60%, 48.96% 88.60%, 14.04% 68.98%, 6.54% 39.15%, 6.78% 35.89%);
}

.ap-subjects-page .subjects-main-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    background: transparent;
}

.ap-subjects-page .subjects-hero-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

@media (max-width: 640px) {
    .ap-subjects-page .subjects-hero {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        padding: 24px 18px;
        gap: 20px;
    }

    .ap-subjects-page .subjects-brand {
        grid-column: 1;
        justify-self: start;
    }

    .ap-subjects-page .subjects-hero-actions {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }

    .ap-subjects-page .subjects-brand-heading {
        width: 160px;
    }
}
