/* News listing only. Public shell and native post details are separate. */
body.swei-news-archive-page .swei-blog-archive {
    --swei-blog-brand: #c62330;
    color: #333;
    background: #fff;
    font: 300 16px/24px var(--swei-font-family,Roboto,Arial,Helvetica,sans-serif);
    letter-spacing: 0;
}
.swei-blog-archive *, .swei-blog-archive *::before, .swei-blog-archive *::after { box-sizing: border-box; }
.swei-blog-archive .swei-blog-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1920/478;
    overflow: hidden;
    background: #555 var(--swei-blog-banner-image, none) center/cover no-repeat;
}
.swei-blog-archive .swei-blog-banner-inner {
    position: absolute;
    inset: 10% 0;
    width: 100%;
    max-width: 1330px;
    margin: 0 auto;
    padding: 0 15px;
}
.swei-blog-archive .swei-blog-banner-lock {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    padding: 0 80px;
    color: #fff;
    background: linear-gradient(to right, var(--swei-blog-brand), transparent);
}
.swei-blog-archive .swei-blog-banner h1 {
    margin: 0;
    color: #fff;
    font: 600 56px/60px var(--swei-font-family,Roboto,Arial,Helvetica,sans-serif);
    letter-spacing: 0;
    text-transform: uppercase;
}
.swei-blog-archive .swei-blog-breadcrumb {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    margin: 0;
    font-size: 18px;
    line-height: 24px;
}
.swei-blog-archive .swei-blog-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    color: #fff;
    text-decoration: none;
}
.swei-blog-archive .swei-blog-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.swei-blog-archive .swei-blog-content {
    width: 100%;
    margin: 0;
    padding: 0 0 180px;
    background: linear-gradient(to bottom, #f2f6fa calc(100% - 180px), transparent);
}
.swei-blog-archive .swei-blog-container { width: 100%; max-width: 1330px; margin: 0 auto; padding: 0 15px; }
.swei-blog-archive .swei-blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px 40px; }
.swei-blog-archive .swei-blog-card { min-width: 0; margin: 0; align-self: start; background: #fff; }
.swei-blog-archive .swei-blog-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    background: #fff;
}
.swei-blog-archive .swei-blog-card-image img {
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}
.swei-blog-archive .swei-blog-card-image:hover img { transform: scale(1.1); }
.swei-blog-archive .swei-blog-card-copy { height: auto; padding: 30px 30px 40px; }
.swei-blog-archive .swei-blog-date { display: block; margin: 0; color: var(--swei-blog-brand); font: 300 16px/36px var(--swei-font-family,Roboto,Arial,Helvetica,sans-serif); }
.swei-blog-archive .swei-blog-card h2 { margin: 0; color: #333; font: 600 22px/28px var(--swei-font-family,Roboto,Arial,Helvetica,sans-serif); letter-spacing: 0; text-transform: none; }
.swei-blog-archive .swei-blog-card h2 > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }
.swei-blog-archive .swei-blog-card-link { display: block; color: inherit; text-decoration: none; }
.swei-blog-archive .swei-blog-card-link:hover h2 { color: var(--swei-blog-brand); }
.swei-blog-archive .swei-blog-card h2::after { content: ''; display: block; width: 20px; height: 3px; margin: 20px 0; background: var(--swei-blog-brand); }
.swei-blog-archive .swei-blog-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 0; overflow: hidden; text-overflow: ellipsis; color: #666; font-size: 16px; line-height: 28px; }
/* Native pagination is necessary for the real archive; the reference has 12 items only. */
.swei-blog-archive .swei-blog-pagination { margin-top: 50px; font-size: 16px; line-height: 24px; }
.swei-blog-archive .swei-blog-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.swei-blog-archive .swei-blog-pagination li { margin: 0; padding: 0; }
.swei-blog-archive .swei-blog-pagination a, .swei-blog-archive .swei-blog-pagination span { display: block; min-width: 40px; padding: 8px 12px; color: #333; background: #fff; text-align: center; text-decoration: none; }
.swei-blog-archive .swei-blog-pagination .current, .swei-blog-archive .swei-blog-pagination a:hover { color: #fff; background: var(--swei-blog-brand); }
.swei-blog-archive a:focus-visible { outline: 2px solid var(--swei-blog-brand); outline-offset: 4px; }
.swei-blog-archive .swei-blog-banner a:focus-visible { outline-color: #fff; }
.swei-blog-archive .swei-blog-empty { margin: 0; text-align: center; }
@media (min-width: 1200px) { .swei-blog-archive .swei-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
    .swei-blog-archive .swei-blog-banner { height: 130px; aspect-ratio: auto; }
    .swei-blog-archive .swei-blog-banner-lock { padding: 0 20px; }
    .swei-blog-archive .swei-blog-banner h1 { font-size: 22px; line-height: 28px; }
    .swei-blog-archive .swei-blog-breadcrumb { font-size: 14px; line-height: 20px; }
    .swei-blog-archive .swei-blog-content { padding: 0 0 30px; }
    .swei-blog-archive .swei-blog-grid { gap: 20px 10px; }
    .swei-blog-archive .swei-blog-card-image { height: auto; }
    .swei-blog-archive .swei-blog-card-image img { width: 100%; max-width: 100%; height: 100%; }
    .swei-blog-archive .swei-blog-card-copy { height: auto; padding: 15px 15px 40px; }
    .swei-blog-archive .swei-blog-date { font-size: 12px; }
    .swei-blog-archive .swei-blog-card h2 { font-size: 20px; line-height: 24px; }
    .swei-blog-archive .swei-blog-excerpt { font-size: 14px; line-height: 22px; }
    .swei-blog-archive .swei-blog-pagination { margin-top: 30px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .swei-blog-archive .swei-blog-card-image img { transition: none; } }
/* Native category links use the existing Our Factory tab appearance. */
/* Tab and article cards share the content container; keep exactly 50px above/below tabs. */
body.swei-shell.swei-news-archive-page .swei-blog-archive .swei-blog-content { padding-top: 0; }
.swei-blog-archive .swei-blog-categories { margin: 0; padding: 50px 0; background: transparent; border: 0; }
.swei-blog-archive .swei-blog-categories ul { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0; padding: 0; list-style: none; }
.swei-blog-archive .swei-blog-categories li { flex: 0 0 auto; margin: 0; padding: 0; }
.swei-blog-archive .swei-blog-categories a { position: relative; display: block; overflow: hidden; min-width: 240px; min-height: 0; padding: 15px 29px; border: 1px solid var(--swei-brand, var(--swei-blog-brand)); background: #fff; color: var(--swei-brand, var(--swei-blog-brand)); font: 700 18px/24px var(--swei-font-family,Roboto,Arial,Helvetica,sans-serif); text-align: center; text-decoration: none; white-space: nowrap; transition: background-color .6s ease-in-out, color .6s ease-in-out; }
.swei-blog-archive .swei-blog-categories a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 24px; height: 24px; background: var(--swei-brand, var(--swei-blog-brand)); transform: translate(50%,50%) rotate(45deg); }
.swei-blog-archive .swei-blog-categories a:hover,
.swei-blog-archive .swei-blog-categories a:focus-visible,
.swei-blog-archive .swei-blog-categories a[aria-current="page"] { background: var(--swei-brand, var(--swei-blog-brand)); color: #fff; }
.swei-blog-archive .swei-blog-categories a:focus-visible { outline-width: 3px; }
@media (max-width: 768px) {
    .swei-blog-archive .swei-blog-categories a { min-width: 0; padding: 9px 14px; font-size: 14px; line-height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .swei-blog-archive .swei-blog-categories a { transition: none; } }

/* Phone/tablet: one row, first/last plus current +/- 1, native page URLs. */
.swei-blog-archive .swei-blog-pagination-compact { display: none; }
@media (max-width: 1199px) {
    .swei-blog-archive .swei-blog-pagination-desktop { display: none; }
    .swei-blog-archive .swei-blog-pagination-compact { display: block; }
    .swei-blog-archive .swei-blog-pagination-compact ul {
        flex-wrap: nowrap;
        align-items: center;
        gap: clamp(2px, 1vw, 6px);
    }
    .swei-blog-archive .swei-blog-pagination-compact li {
        flex: 0 1 34px;
        min-width: 0;
    }
    .swei-blog-archive .swei-blog-pagination-compact .page-numbers:not(ul) {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        height: 40px;
        padding: 0;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
    }
    .swei-blog-archive .swei-blog-pagination-compact .screen-reader-text {
        min-width: 0;
        padding: 0;
    }
    .swei-blog-archive .swei-blog-pagination-compact .swei-blog-page-arrow {
        display: block;
        min-width: 0;
        padding: 0;
        color: inherit;
        background: none;
    }
    .swei-blog-archive .swei-blog-page-arrow::before {
        content: '';
        display: block;
        width: 16px;
        height: 12px;
        background: currentColor;
        clip-path: polygon(0 40%, 65% 40%, 65% 0, 100% 50%, 65% 100%, 65% 60%, 0 60%);
    }
    .swei-blog-archive .swei-blog-page-arrow-prev::before { transform: rotate(180deg); }
}