/* Announcement list + detail company mark (logo / hidden / short name). */

.cc-job-company-mark {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.cc-job-company-mark--list {
    border-radius: 5px 0 0 5px;
    width: 112px;
    min-width: 112px;
    height: 100%;
    padding: 5px 7px;
}

@media (max-width: 991px) {
    .cc-job-company-mark--list {
        width: 90px;
        min-width: 90px;
    }
}

.cc-job-company-mark--list.cc-job-company-mark--logo {
    display: block;
    padding: 5px 7px;
}

.cc-job-company-mark--list img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cc-job-company-mark--detail {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    min-height: 64px;
    max-height: 120px;
    aspect-ratio: 1 / 1;
}

@media (max-width: 767px) {
    .cc-job-company-mark--detail {
        width: 64px;
        min-width: 64px;
        max-width: 64px;
        max-height: 64px;
    }
}

.cc-job-company-mark--detail.cc-job-company-mark--logo {
    display: block;
    padding: 0;
    aspect-ratio: auto;
    height: auto;
}

.cc-job-company-mark--detail img.job-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .cc-job-company-mark--detail img.job-logo {
        max-height: 64px;
    }
}

.cc-job-company-mark--hidden {
    /* Keep list/detail alignment footprint; never paint Logo_Placeholder.png. */
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    visibility: hidden;
    pointer-events: none;
}

.cc-job-company-mark--short {
    container-type: size;
    container-name: cc-job-company-mark;
    background: rgba(74, 142, 217, 0.12);
    border: 1px solid rgba(74, 142, 217, 0.28);
    color: #24558f;
}

.cc-job-company-mark--list.cc-job-company-mark--short {
    border-radius: 5px 0 0 5px;
    border-right: 0;
}

.cc-job-company-mark--detail.cc-job-company-mark--short {
    border-radius: 8px;
}

.cc-job-company-mark__short {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
    padding: 0.2rem 0.25rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: break-word;
    /* Fit short name inside the logo placeholder box. */
    font-size: clamp(0.45rem, 22cqmin, 0.95rem);
}

html[data-theme="dark"] .cc-job-company-mark--short {
    background: rgba(74, 142, 217, 0.18);
    border-color: rgba(143, 190, 248, 0.34);
    color: rgba(220, 232, 248, 0.95);
}

html[data-theme="light"] .cc-job-company-mark--short {
    background: rgba(74, 142, 217, 0.12);
    border-color: rgba(74, 142, 217, 0.28);
    color: #24558f;
}
