.rfj-archive-light-body {
    background: #f5f7fb;
    color: #111827;
}

.rfj-archive-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 18px 16px 48px;
}

.rfj-archive-hero,
.rfj-archive-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    margin-bottom: 18px;
    padding: 18px;
}

.rfj-archive-hero__kicker {
    color: #d1191a;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
}

.rfj-archive-hero h1 {
    color: #111827;
    font-size: 28px;
    line-height: 1.35;
    margin: 0;
}

.rfj-archive-hero__desc {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.8;
    margin: 10px 0 0;
}

.rfj-archive-tools {
    border-top: 1px solid #eef0f3;
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
}

.rfj-archive-search,
.rfj-archive-filter-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rfj-archive-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.rfj-archive-filter-form--company {
    align-items: end;
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto;
}

.rfj-archive-search .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.rfj-archive-search label {
    margin: 0;
    min-width: 0;
}

.rfj-archive-search input,
.rfj-archive-filter-form input,
.rfj-archive-filter-form select {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 9px;
    color: #111827;
    font-size: 15px;
    height: 40px;
    padding: 0 12px;
    width: 100%;
}

.rfj-archive-search button,
.rfj-archive-filter-form button,
.rfj-archive-search__clear,
.rfj-archive-filter-form a {
    align-items: center;
    border: 1px solid #dfe4ea;
    border-radius: 9px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    height: 40px;
    padding: 0 15px;
    text-decoration: none;
    white-space: nowrap;
}

.rfj-archive-search button,
.rfj-archive-filter-form button {
    background: #f8fafc;
    color: #1f2937;
}

.rfj-archive-search__clear,
.rfj-archive-filter-form a {
    background: #fff;
    color: #4b5563;
}

.rfj-archive-search button:hover,
.rfj-archive-search button:focus,
.rfj-archive-filter-form button:hover,
.rfj-archive-filter-form button:focus,
.rfj-archive-search__clear:hover,
.rfj-archive-search__clear:focus,
.rfj-archive-filter-form a:hover,
.rfj-archive-filter-form a:focus {
    border-color: #f2b8b8;
    color: #d1191a;
    text-decoration: none;
}

.rfj-archive-filter-form label {
    display: grid;
    flex: 1 1 180px;
    gap: 5px;
    margin: 0;
}

.rfj-archive-filter-form label span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.rfj-archive-filter-actions {
    display: flex;
    gap: 8px;
}

.rfj-archive-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rfj-archive-chip {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #374151;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    min-height: 34px;
    padding: 0 12px;
    text-decoration: none;
}

.rfj-archive-chip:hover,
.rfj-archive-chip:focus,
.rfj-archive-chip.is-active {
    background: #fff5f5;
    border-color: #d1191a;
    color: #d1191a;
    text-decoration: none;
}

.rfj-archive-section__head {
    align-items: center;
    border-bottom: 1px solid #eef0f3;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.rfj-archive-section__head h2 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.rfj-archive-section__head span {
    color: #6b7280;
    font-size: 13px;
}

.rfj-archive-list {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rfj-archive-list--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rfj-archive-list--wide {
    grid-template-columns: minmax(0, 1fr);
}

.rfj-archive-list--simple {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rfj-archive-list--brand {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rfj-archive-list--book {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rfj-archive-card,
.rfj-archive-card > article {
    height: 100%;
    min-width: 0;
    max-width: none;
}

.rfj-archive-card > .rfzj_video_card,
.rfj-archive-card > .rfzj_event_card--media_top,
.rfj-archive-card > .rfzj_ranking_card,
.rfj-archive-card > .rfzj_case_card,
.rfj-archive-card > .rfzj_job_card,
.rfj-archive-card > .rfzj_question_card,
.rfj-archive-card > .rfzj_generic_card {
    max-width: none;
}

.rfj-archive-card > .rfzj_event_card--media_top {
    height: 100%;
}

.rfj-archive-card--software,
.rfj-archive-card--company,
.rfj-archive-card--post,
.rfj-archive-card--case,
.rfj-archive-card--customer,
.rfj-archive-card--download,
.rfj-archive-card--guide,
.rfj-archive-card--hao,
.rfj-archive-card--job,
.rfj-archive-card--question,
.rfj-archive-card--generic {
    background: #fff;
}

.rfj-archive-hao-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    height: 100%;
    min-width: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rfj-archive-hao-card:hover {
    border-color: #f2b8b8;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transform: translateY(-2px);
}

.rfj-archive-hao-card__link {
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 14px;
    text-decoration: none;
}

.rfj-archive-hao-card__link:hover,
.rfj-archive-hao-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.rfj-archive-hao-card__head {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 46px minmax(0, 1fr);
    min-width: 0;
}

.rfj-archive-hao-card__logo {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    display: flex;
    height: 46px;
    justify-content: center;
    overflow: hidden;
    width: 46px;
}

.rfj-archive-hao-card__logo img {
    display: block;
    max-height: 32px;
    max-width: 32px;
    object-fit: contain;
}

.rfj-archive-hao-card__logo span {
    color: #d1191a;
    font-size: 18px;
    font-weight: 800;
}

.rfj-archive-hao-card__head strong {
    color: #111827;
    font-size: 15px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfj-archive-hao-card__desc {
    color: #64748b;
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rfj-archive-hao-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.rfj-archive-hao-card__tags em {
    background: #f1f5f9;
    border-radius: 999px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 8px;
}

.rfj-archive-pagination {
    margin-top: 20px;
}

.rfj-archive-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rfj-archive-pagination a,
.rfj-archive-pagination span {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    display: inline-flex;
    font-size: 14px;
    min-height: 36px;
    padding: 0 12px;
    text-decoration: none;
}

.rfj-archive-pagination .current {
    background: #d1191a;
    border-color: #d1191a;
    color: #fff;
}

.rfj-archive-empty {
    color: #6b7280;
    font-size: 15px;
    padding: 24px;
    text-align: center;
}

.rfj-brand-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    height: 100%;
    min-width: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rfj-brand-card:hover {
    border-color: #f2b8b8;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transform: translateY(-2px);
}

.rfj-brand-card__link {
    align-items: center;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: 76px minmax(0, 1fr);
    height: 100%;
    padding: 16px;
    text-decoration: none;
}

.rfj-brand-card__link:hover,
.rfj-brand-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.rfj-brand-card__logo {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    display: flex;
    height: 76px;
    justify-content: center;
    overflow: hidden;
    width: 76px;
}

.rfj-brand-card__logo img {
    display: block;
    max-height: 58px;
    max-width: 62px;
    object-fit: contain;
}

.rfj-brand-card__logo span {
    color: #d1191a;
    font-size: 28px;
    font-weight: 800;
}

.rfj-brand-card__body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rfj-brand-card__body strong {
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfj-brand-card__body em {
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .rfj-archive-page {
        padding: 12px 12px 76px;
    }

    .rfj-archive-hero,
    .rfj-archive-section {
        border-radius: 10px;
        padding: 14px;
    }

    .rfj-archive-hero h1 {
        font-size: 22px;
    }

    .rfj-archive-search input,
    .rfj-archive-filter-form input,
    .rfj-archive-filter-form select {
        font-size: 16px;
    }

    .rfj-archive-search,
    .rfj-archive-filter-form {
        align-items: center;
    }

    .rfj-archive-search {
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .rfj-archive-search button,
    .rfj-archive-search__clear {
        height: 38px;
        padding: 0 12px;
    }

    .rfj-archive-search input {
        height: 38px;
    }

    .rfj-archive-filter-form--company {
        align-items: end;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rfj-archive-filter-form--company .rfj-archive-filter-form__search {
        grid-column: 1 / -1;
    }

    .rfj-archive-filter-form label {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .rfj-archive-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .rfj-archive-filter-actions button,
    .rfj-archive-filter-actions a {
        min-height: 38px;
        padding: 0 14px;
        width: auto;
    }

    .rfj-archive-chip-row {
        flex-wrap: nowrap;
        margin: 0 -14px;
        overflow-x: auto;
        padding: 0 14px 2px;
        -webkit-overflow-scrolling: touch;
    }

    .rfj-archive-chip {
        flex: 0 0 auto;
    }

    .rfj-archive-list,
    .rfj-archive-list--compact,
    .rfj-archive-list--wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .rfj-archive-list--simple {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rfj-archive-list--book {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rfj-archive-list--brand {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rfj-brand-card__link {
        align-content: start;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        padding: 12px 10px;
        text-align: center;
    }

    .rfj-brand-card__logo {
        height: 68px;
        width: 68px;
    }

    .rfj-brand-card__logo img {
        max-height: 50px;
        max-width: 54px;
    }

    .rfj-brand-card__body strong {
        font-size: 15px;
        white-space: normal;
    }

    .rfj-brand-card__body em {
        display: none;
    }

    .rfj-archive-hao-card__link {
        padding: 12px;
    }

    .rfj-archive-hao-card__head {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .rfj-archive-hao-card__logo {
        height: 42px;
        width: 42px;
    }

    .rfj-archive-hao-card__desc {
        font-size: 12px;
    }
}
