/* ==========================================================
   FREELANEWS — CATEGORY / SEARCH
   Authoritative V2 single-page archive presentation
   ========================================================== */

.fn-archive-page {
    box-sizing: border-box;

    width: 100%;
    max-width: 1140px;

    margin: 0 auto;
    padding: 36px 15px 60px;
}


.fn-archive-header {
    margin-bottom: 28px;

    border-bottom: 2px solid #111;

    padding-bottom: 16px;
}


.fn-archive-header > span {
    display: block;

    margin-bottom: 5px;

    color: #e4313b;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}


.fn-archive-header h1 {
    margin: 0;

    color: #111;

    font-family:
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 31px;
    line-height: 1.2;

    font-weight: 500;
}


.fn-archive-header p {
    max-width: 760px;

    margin:
        10px 0
        0;

    color: #777;

    font-size: 14px;
    line-height: 1.6;
}


.fn-search-count {
    margin-top: 8px;

    color: #999;

    font-size: 11px;
}


.fn-archive-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        30px
        28px;
}


.fn-archive-card {
    display: grid;

    grid-template-columns:
        210px
        minmax(0, 1fr);

    gap: 17px;

    min-width: 0;

    border-bottom:
        1px solid #ededed;

    padding-bottom: 24px;
}


.fn-archive-image {
    display: block;

    width: 210px;

    aspect-ratio:
        16 / 10;

    overflow: hidden;

    background: #eee;
}


.fn-archive-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.fn-archive-copy {
    min-width: 0;
}


.fn-archive-category {
    display: inline-block;

    margin-bottom: 5px;

    color: #e4313b;

    font-size: 9px;
    line-height: 1.2;

    font-weight: 700;

    text-decoration: none;

    text-transform: uppercase;
}


.fn-archive-card h2 {
    margin:
        0 0
        7px;

    font-size: 17px;
    line-height: 1.3;

    font-weight: 500;
}


.fn-archive-card h2 a {
    color: #111;

    text-decoration: none;
}


.fn-archive-meta {
    display: flex;
    flex-wrap: wrap;

    gap:
        4px
        10px;

    margin-bottom: 8px;

    color: #aaa;

    font-size: 9px;
}


.fn-archive-card p {
    margin: 0;

    color: #666;

    font-size: 12px;
    line-height: 1.55;
}


.fn-archive-pagination {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 34px;
}


.fn-archive-pagination a,
.fn-archive-pagination span {
    box-sizing: border-box;

    display: inline-flex;

    min-width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    border: 1px solid #ddd;

    padding:
        0 10px;

    color: #555;

    font-size: 11px;

    text-decoration: none;
}


.fn-archive-pagination .is-current {
    border-color: #111;

    background: #111;

    color: #fff;
}


.fn-main-search-form {
    display: flex;

    width: 100%;
    max-width: 680px;
}


.fn-main-search-form input {
    box-sizing: border-box;

    flex: 1;

    min-width: 0;
    height: 46px;

    border:
        1px solid #ddd;

    padding:
        0 14px;

    font-family: inherit;
}


.fn-main-search-form button {
    border: 0;

    padding:
        0 22px;

    background: #e4313b;

    color: #fff;

    font-family: inherit;

    font-weight: 700;
}


.fn-no-results,
.fn-page-error {
    width: 100%;

    padding:
        40px 0;

    color: #777;

    font-size: 14px;
}


/* Tablet */

@media (max-width: 900px) {

    .fn-archive-list {
        grid-template-columns: 1fr;
    }

}


/* Mobile */

@media (max-width: 560px) {

    .fn-archive-page {
        padding:
            25px 18px
            42px;
    }

    .fn-archive-header {
        margin-bottom: 22px;
    }

    .fn-archive-header h1 {
        font-size: 26px;
    }

    .fn-archive-card {
        grid-template-columns:
            120px
            minmax(0, 1fr);

        gap: 13px;

        padding-bottom: 19px;
    }

    .fn-archive-image {
        width: 120px;
    }

    .fn-archive-card h2 {
        font-size: 15px;
    }

    .fn-archive-card p {
        display: none;
    }

    .fn-archive-meta {
        font-size: 8px;
    }

    .fn-main-search-form {
        width: 100%;
    }

}


/* ==========================================================
   FREELANEWS — UNIVERSAL ARCHIVE EXCERPT POLICY

   Search/category excerpts remain in HTML but are not shown
   beneath public-facing headlines.
   ========================================================== */

.fn-archive-excerpt {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: -1px !important;
    padding: 0 !important;

    overflow: hidden !important;

    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;

    border: 0 !important;
}
