/* 성피나라 header logo — original image: 250 x 72.
   Only the logo/header is styled here. The sidebar, widgets and URLs are untouched. */
.apc-header.apc-header-with-logo {
    padding: 14px 0 16px;
    align-items: center;
}

.apc-header-with-logo .apc-brand.apc-brand-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 250px;
    width: 250px;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
}

.apc-brand-logo > img.apc-logo-image {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    box-shadow: none;
    filter: none;
}

/* Match the existing 225px sidebar on narrower desktop layouts. */
@media (min-width: 901px) and (max-width: 1150px) {
    .apc-header-with-logo .apc-brand.apc-brand-logo {
        flex-basis: 225px;
        width: 225px;
    }
}

/* Keep the community button beside the logo; industry links stay on row two.
   Only shrink when space is limited. Never crop or stretch the image. */
@media (max-width: 900px) {
    .apc-header.apc-header-with-logo {
        display: grid;
        grid-template-columns: minmax(0, 250px) auto;
        justify-content: space-between;
        align-items: center;
        gap: 12px 14px;
        padding: 12px 0;
    }

    .apc-header-with-logo .apc-brand.apc-brand-logo {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 250px;
    }

    .apc-header-with-logo .apc-menu-button {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
        white-space: nowrap;
    }

    .apc-header-with-logo .apc-industry-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }
}
