.ibl-library {
    --ibl-navy: #022340;
    --ibl-green: #6ea435;
    --ibl-pale-green: #eef6e8;
    --ibl-text: #022340;
    --ibl-muted: #71818e;
    --ibl-line: #dce5e8;
    --ibl-archive-bg: #eef2f3;
    width: 100%;
    max-width: none;
    padding: clamp(18px, 2.5vw, 40px);
    font-family: inherit;
    color: var(--ibl-text);
    box-sizing: border-box;
}

.ibl-library *, .ibl-library *::before, .ibl-library *::after { box-sizing: border-box; }

.ibl-intro { margin-bottom: clamp(22px, 2.2vw, 34px); }

.ibl-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 clamp(7px, .8vw, 11px);
    color: var(--ibl-green);
    font-size: clamp(13px, 1vw, 17px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ibl-eyebrow-line {
    width: clamp(20px, 2vw, 30px);
    height: 1px;
    flex: 0 0 auto;
    background: var(--ibl-green);
}

.ibl-heading {
    margin: 0;
    color: var(--ibl-navy);
    font-size: clamp(31px, 3vw, 42.6px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: 0;
}

.ibl-featured {
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    min-height: clamp(370px, 36vw, 560px);
    border-radius: clamp(26px, 2.5vw, 40px);
    overflow: hidden;
    background: var(--ibl-navy);
    margin: 0 0 clamp(26px, 2.8vw, 40px);
}

.ibl-featured-media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-right: 2px solid var(--ibl-green);
}

.ibl-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ibl-latest-pill {
    position: absolute;
    z-index: 2;
    top: clamp(16px, 1.8vw, 24px);
    left: clamp(16px, 1.8vw, 24px);
    padding: 10px 17px;
    border-radius: 90px;
    background: var(--ibl-green);
    color: #fff;
    font-size: clamp(11px, .9vw, 14px);
    font-weight: 600;
    letter-spacing: .11em;
    line-height: 1;
    text-transform: uppercase;
}

.ibl-featured-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(30px, 4.2vw, 64px) clamp(28px, 3.4vw, 52px);
    color: #fff;
}

.ibl-featured-month {
    margin-bottom: clamp(7px, .8vw, 12px);
    color: var(--ibl-green);
    font-size: clamp(20px, 1.75vw, 27px);
    font-weight: 300;
    line-height: 1.15;
}

.ibl-featured-title {
    max-width: 9.5em;
    margin: 0 0 clamp(22px, 2.1vw, 34px);
    color: #fff;
    font-size: clamp(39px, 4vw, 60px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.ibl-read-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 16px;
    padding: 13px 22px;
    border-radius: 90px;
    background: var(--ibl-green);
    color: #fff !important;
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .08em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform .18s ease, filter .18s ease;
}

.ibl-read-arrow {
    position: relative;
    width: 20px;
    height: 12px;
    flex: 0 0 20px;
}
.ibl-read-arrow::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.ibl-read-arrow::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.ibl-cover-fallback,
.ibl-mini-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(22px, 2.3vw, 36px);
    background: linear-gradient(145deg, #124d72, #062c49 60%, #021d32);
    color: #fff;
}
.ibl-cover-fallback span,
.ibl-mini-fallback span {
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ibl-cover-fallback strong { font-size: clamp(34px, 3.6vw, 54px); line-height: .86; }
.ibl-mini-fallback strong { font-size: clamp(22px, 2vw, 30px); line-height: .86; }

.ibl-archive {
    padding: clamp(22px, 2.7vw, 40px);
    border-radius: clamp(26px, 2.5vw, 40px);
    background: var(--ibl-archive-bg);
}

.ibl-archive-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: clamp(18px, 2vw, 28px);
}

.ibl-archive-heading {
    margin: 0;
    color: var(--ibl-navy);
    font-size: clamp(26px, 2.1vw, 34px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.ibl-archive-subtext {
    margin: 7px 0 0;
    color: var(--ibl-muted);
    font-size: clamp(12px, .9vw, 15px);
    line-height: 1.4;
}

.ibl-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.ibl-search-wrap { min-width: min(250px, 100%); }
.ibl-search {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #e0e5e8;
    border-radius: 90px;
    outline: none;
    background: #fff;
    color: var(--ibl-text);
    font-family: inherit;
    font-size: 14px;
}
.ibl-search:focus { border-color: var(--ibl-green); box-shadow: 0 0 0 3px rgba(110,164,53,.12); }

.ibl-year-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.ibl-filter {
    min-width: 44px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #dfe5e8;
    border-radius: 90px;
    background: #fff;
    color: var(--ibl-navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.ibl-filter.is-active { background: var(--ibl-pale-green); border-color: #c9dfb6; }

.ibl-issue-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.5vw, 22px);
}

.ibl-issue-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(2,35,64,.05);
}
.ibl-card-link { display: block; height: 100%; color: inherit !important; text-decoration: none !important; }
.ibl-card-cover { aspect-ratio: 1.25 / 1; overflow: hidden; background: var(--ibl-navy); }
.ibl-card-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ibl-card-body { padding: 15px 16px 16px; }
.ibl-card-body h3 {
    margin: 0;
    color: var(--ibl-navy);
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 800;
    line-height: 1.15;
}
.ibl-card-body p {
    min-height: 2.8em;
    margin: 6px 0 11px;
    color: var(--ibl-muted);
    font-size: clamp(11px, .85vw, 13px);
    line-height: 1.4;
}
.ibl-open-link { color: var(--ibl-green); font-size: 12px; font-weight: 700; }

.ibl-no-results,
.ibl-empty-state {
    padding: 24px;
    border-radius: 18px;
    background: var(--ibl-archive-bg);
    color: var(--ibl-muted);
}
.ibl-empty-state { display: grid; gap: 5px; }

@media (hover:hover) and (pointer:fine) {
    .ibl-read-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
    .ibl-issue-card { transition: transform .18s ease, box-shadow .18s ease; }
    .ibl-issue-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(2,35,64,.1); }
}

@media (max-width: 1180px) {
    .ibl-featured { grid-template-columns: minmax(0, 56%) minmax(0, 44%); }
    .ibl-issue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .ibl-featured { grid-template-columns: 1fr 1fr; }
    .ibl-archive-top { align-items: flex-start; flex-direction: column; }
    .ibl-controls { width: 100%; justify-content: flex-start; }
    .ibl-search-wrap { flex: 1 1 260px; }
}

@media (max-width: 700px) {
    .ibl-library { padding: clamp(16px, 4.5vw, 22px); }
    .ibl-featured { grid-template-columns: 1fr; min-height: 0; }
    .ibl-featured-media {
        min-height: clamp(260px, 62vw, 420px);
        border-right: 0;
        border-bottom: 2px solid var(--ibl-green);
    }
    .ibl-featured-copy { padding: clamp(27px, 7vw, 40px); }
    .ibl-featured-title { max-width: 12em; }
    .ibl-issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ibl-search-wrap { flex-basis: 100%; }
}

@media (max-width: 480px) {
    .ibl-archive { padding: 18px; }
    .ibl-issue-grid { grid-template-columns: 1fr; }
    .ibl-card-cover { aspect-ratio: 1.45 / 1; }
}

/* Unified Insta-Bulletin hover accent — v2.4.14 */
@media (hover:hover) and (pointer:fine) {
    .ibl-library a:hover {
        color: #6ea435;
    }

    .ibl-read-button:hover {
        border-color: #6ea435 !important;
        background-color: #6ea435 !important;
        color: #fff !important;
    }

    .ibl-issue-card:hover {
        border-color: #6ea435 !important;
    }
}
