
/*
 * NYC Career & Procurement News
 * news.css - Clean Compact V6
 * Joomla 3 / Artisteer
 *
 * Features:
 * - Compact horizontal news cards
 * - Alternating white / light blue cards
 * - Two category tabs
 * - Responsive mobile layout
 * - Pagination styling
 * - Scoped only to .nyc-cp
 */

/* =========================================
   1. BASE
   ========================================= */

.nyc-cp,
.nyc-cp * {
    box-sizing: border-box;
}

.nyc-cp {
    width: 100%;
    max-width: 100%;
    margin: 0 0 8px;
    color: #15345a;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
}

/* =========================================
   2. OPTIONAL HEADING
   ========================================= */

.nyc-cp__heading {
    margin: 0 0 8px;
    padding: 9px 14px;

    background: linear-gradient(
        112deg,
        #940e16 0 7%,
        #151725 7% 85%,
        #a10d1b 85% 92%,
        #151725 92%
    );

    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.nyc-cp__heading-icon {
    margin-right: 10px;
    font-size: 18px;
}

/* =========================================
   3. CATEGORY TABS
   ========================================= */

.nyc-cp__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;
    padding: 8px 12px;

    background: #e8eff9;
    border: 1px solid #d6e1ee;
    border-radius: 8px 8px 0 0;
}

.nyc-cp .nyc-cp__tab,
.nyc-cp .nyc-cp__tab:link,
.nyc-cp .nyc-cp__tab:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;
    min-height: 38px;
    padding: 7px 13px;

    border: 1px solid #d2daea;
    border-radius: 22px;

    background: #ffffff;
    color: #38475c !important;

    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.3;

    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(21,55,95,.06);
}

.nyc-cp .nyc-cp__tab:hover {
    background: #f3f7fd;
}

.nyc-cp .nyc-cp__tab.is-active,
.nyc-cp .nyc-cp__tab.is-active:link,
.nyc-cp .nyc-cp__tab.is-active:visited {
    background: linear-gradient(
        180deg,
        #1884ed,
        #0754c9
    );

    color: #ffffff !important;
    border-color: #0760da;
}

/* =========================================
   4. NEWS LIST
   ========================================= */

.nyc-cp__list {
    border: 1px solid #d6e1ee;
    border-top: 0;

    background: #f6f9ff;
    padding: 8px 10px;
}

/* =========================================
   5. NEWS CARD - ALTERNATING COLORS
   ========================================= */

.nyc-cp .nyc-cp__item {
    position: relative;
    display: grid;

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

    align-items: center;
    column-gap: 12px;

    min-height: 92px;
    margin: 0 0 8px;
    padding: 11px 13px;

    background: #ffffff;
    border: 1px solid #d7e2f1;
    border-radius: 9px;

    box-shadow:
        0 2px 5px rgba(24,47,73,.04);

    transition:
        background-color .2s ease,
        border-color .2s ease;
}

/* Odd cards - white */

.nyc-cp .nyc-cp__item:nth-child(odd) {
    background: #ffffff;
}

/* Even cards - very light blue */

.nyc-cp .nyc-cp__item:nth-child(even) {
    background: #f1f6fd;
}

/* Hover on both card types */

.nyc-cp .nyc-cp__item:hover {
    background: #e7f1ff;
    border-color: #a8c5e8;
}

/* Remove bottom spacing from final card */

.nyc-cp .nyc-cp__item:last-child {
    margin-bottom: 0;
}

/* =========================================
   6. PDF ICON
   ========================================= */

.nyc-cp .nyc-cp__file {
    grid-column: 1;
    grid-row: 1;

    align-self: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 1px;

    width: 42px;
    height: 48px;

    background: #fff0f1;
    border: 1px solid #f2d9dd;
    border-radius: 6px;

    color: #b91629;
    font-size: 10px;
    font-weight: 700;
}

.nyc-cp__paper {
    width: 20px;
    height: 24px;

    border: 2px solid #ba1728;
    border-radius: 3px;

    background: #ffffff;

    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* =========================================
   7. NEWS CONTENT
   ========================================= */

.nyc-cp .nyc-cp__item-main {
    grid-column: 2;
    grid-row: 1;

    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 0;
    margin: 0;
    padding: 0;
}

/* News title - 15px */

.nyc-cp .nyc-cp__item-title,
.nyc-cp .nyc-cp__item-title:link,
.nyc-cp .nyc-cp__item-title:visited {
    display: block;
    order: 1;

    width: 100%;
    max-width: 100%;
    margin: 0;

    color: #0e376e !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.45 !important;

    text-decoration: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.nyc-cp .nyc-cp__item-title:hover {
    color: #0759b2 !important;
    text-decoration: underline !important;
}

/* Publication date - 13px */

.nyc-cp .nyc-cp__meta {
    order: 2;

    margin: 0;
    color: #687789;

    font-size: 13px !important;
    line-height: 1.45;
}

/* Summary - 14px */
/* Reserve space for the Read More button */

.nyc-cp .nyc-cp__summary {
    display: block;
    order: 3;

    width: calc(100% - 140px);
    max-width: 100%;
    min-width: 0;
    margin: 0;

    color: #414f62;
    font-size: 14px !important;
    line-height: 1.45;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   8. ACTIONS
   ========================================= */

.nyc-cp .nyc-cp__item-actions {
    position: absolute;

    right: 13px;
    bottom: 11px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;

    gap: 5px;
    width: auto;
    min-width: 0;
    margin: 0;
}

/* Hide duplicate category label */

.nyc-cp .nyc-cp__tag {
    display: none !important;
}

/* Read More button */

.nyc-cp .nyc-cp__read,
.nyc-cp .nyc-cp__read:link,
.nyc-cp .nyc-cp__read:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    min-height: 34px;
    padding: 5px 10px;

    border: 1px solid #0769ce;
    border-radius: 20px;

    background: #ffffff;
    color: #0759b2 !important;

    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.3;

    text-decoration: none !important;
    white-space: nowrap;
}

.nyc-cp .nyc-cp__read:hover {
    background: #e8f3ff;
}

.nyc-cp .nyc-cp__read span {
    font-size: 16px;
    line-height: 1;
}

/* =========================================
   9. EMPTY STATE
   ========================================= */

.nyc-cp__empty {
    margin: 8px 0;
    padding: 14px;

    background: #ffffff;
    border-radius: 7px;

    color: #667386;
    text-align: center;
    font-size: 14px;
}

/* =========================================
   10. PAGINATION FOOTER
   ========================================= */

.nyc-cp__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

    gap: 8px;
    padding: 8px 12px;

    border: 1px solid #d6e1ee;
    border-top: 0;
    border-radius: 0 0 8px 8px;

    background: #e8eff9;
}

.nyc-cp__count {
    color: #4a5d74;
    font-size: 13px;
}

/* Pagination controls */

.nyc-cp__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.nyc-cp__pagination a,
.nyc-cp__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;
    min-height: 30px;
    padding: 3px 7px;

    border: 1px solid #d0deec;
    border-radius: 6px;

    background: #ffffff;
    color: #16528e;

    font-size: 13px;
    text-decoration: none;
}

.nyc-cp__pagination a:hover {
    background: #edf5ff;
}

.nyc-cp__pagination span.is-current {
    background: #0763cf;
    border-color: #0763cf;

    color: #ffffff;
    font-weight: 700;
}

/* =========================================
   11. ACCESSIBILITY
   ========================================= */

.nyc-cp__tab:focus-visible,
.nyc-cp__read:focus-visible,
.nyc-cp__item-title:focus-visible,
.nyc-cp__pagination a:focus-visible {
    outline: 3px solid #1d80d3;
    outline-offset: 2px;
}

/* =========================================
   12. MOBILE RESPONSIVE
   ========================================= */

@media screen and (max-width: 700px) {

    .nyc-cp__heading {
        font-size: 17px;
        padding: 9px 12px;
    }

    .nyc-cp__tabs {
        padding: 8px;
        gap: 6px;
    }

    .nyc-cp .nyc-cp__tab,
    .nyc-cp .nyc-cp__tab:link,
    .nyc-cp .nyc-cp__tab:visited {
        min-height: 44px;
        padding: 8px 11px;
        font-size: 13px !important;
    }

    .nyc-cp__list {
        padding: 7px;
    }

    .nyc-cp .nyc-cp__item {
        grid-template-columns:
            38px minmax(0, 1fr);

        column-gap: 9px;
        row-gap: 6px;

        min-height: 0;
        padding: 10px;
    }

    .nyc-cp .nyc-cp__file {
        grid-column: 1;
        grid-row: 1;
        align-self: start;

        width: 38px;
        height: 45px;
    }

    .nyc-cp .nyc-cp__item-main {
        grid-column: 2;
        grid-row: 1;

        gap: 4px;
    }

    .nyc-cp .nyc-cp__item-title,
    .nyc-cp .nyc-cp__item-title:link,
    .nyc-cp .nyc-cp__item-title:visited {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .nyc-cp .nyc-cp__meta {
        font-size: 12px !important;
    }

    .nyc-cp .nyc-cp__summary {
        width: 100%;
        max-width: 100%;
        font-size: 13px !important;
    }

    /* Move button below content on mobile */

    .nyc-cp .nyc-cp__item-actions {
        position: static;

        grid-column: 2;
        grid-row: 2;

        justify-content: flex-end;
        margin-top: 2px;
    }

    .nyc-cp .nyc-cp__read,
    .nyc-cp .nyc-cp__read:link,
    .nyc-cp .nyc-cp__read:visited {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 12px !important;
    }

    .nyc-cp__footer {
        padding: 8px;
    }

    .nyc-cp__count {
        font-size: 12px;
    }
}

/* =========================================
   13. SMALL MOBILE
   ========================================= */

@media screen and (max-width: 380px) {

    .nyc-cp__tabs {
        gap: 5px;
    }

    .nyc-cp .nyc-cp__tab,
    .nyc-cp .nyc-cp__tab:link,
    .nyc-cp .nyc-cp__tab:visited {
        padding: 7px 9px;
        font-size: 12px !important;
    }

    .nyc-cp .nyc-cp__item-title,
    .nyc-cp .nyc-cp__item-title:link,
    .nyc-cp .nyc-cp__item-title:visited {
        font-size: 14px !important;
    }
}

/* =========================================
   END NYC NEWS CSS V6
   ========================================= */
