/* ============================================================
   BULLETIN LISTING PAGE — bulletin-* styles
   ============================================================ */

/* ── Top section: insight LEFT + flipbook RIGHT ────────────── */
.bulletin-top {
    display: grid;
    grid-template-columns: 350px 1fr;
    align-items: stretch;
    min-height: 500px;
    background: #fff;
    padding-top: 30px;
}

/* ── Left panel ────────────────────────────────────────────── */
.bulletin-top__left {
    display: flex;
    flex-direction: column;
    background: #EBEBEB;
    overflow: hidden;
}

.bulletin-top__photo {
    width: 100%;
    flex-shrink: 0;
}

.bulletin-top__photo img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.bulletin-top__insight {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
}

.bulletin-top__insight-label {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.bulletin-top__insight-name {
    font-family: var(--font-body, sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.1rem;
}

.bulletin-top__insight-title {
    font-size: 0.78rem;
    color: #555;
    margin: 0 0 0.75rem;
}

.bulletin-top__insight-text {
    font-size: 10px;
    line-height: 1.7;
    color: #444;
}

.bulletin-top__insight-text p {
    margin-bottom: 0.5rem;
}

.bulletin-top__insight-text p:last-child {
    margin-bottom: 0;
}

.bulletin-top__insight-more {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.bulletin-top__insight-more:hover,
.bulletin-top__insight-more:focus {
    color: var(--color-primary, #FFC200);
    text-decoration: none;
}

/* ── Right panel ───────────────────────────────────────────── */
.bulletin-top__right {
    background: #fff;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}

/* ── Featured bulletin callout ─────────────────────────────── */
.bulletin-featured__callout {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.9rem 1.25rem 0.5rem;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.bulletin-featured__callout p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0;
}

.bulletin-featured__callout-arrow {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-top: 0.3rem;
}

/* ── Download button row ───────────────────────────────────── */
.bulletin-featured__dl-wrap {
    text-align: center;
    padding: 1.25rem 0 0.5rem;
}

/* ── Flipbook wrapper ──────────────────────────────────────── */
.bulletin-flipbook-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    min-height: 340px;
    position: relative;
    overflow: hidden;
}

.bulletin-flipbook__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    padding: 2rem;
}

.bulletin-spinner {
    width: 40px;
    height: 40px;
    animation: bulletin-spin 1s linear infinite;
}

.bulletin-spinner circle {
    stroke: var(--color-primary, #FDBA31);
    stroke-linecap: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 60;
}

@keyframes bulletin-spin {
    to { transform: rotate(360deg); }
}

#bulletin-flipbook {
    max-width: 100%;
}

/* ── Flipbook controls ─────────────────────────────────────── */
.bulletin-flipbook__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.bulletin-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    background-color: var(--color-btn, #fff);
    color: var(--color-btn-text, #1a1a1a);
    font-family: var(--font-body, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.bulletin-ctrl-btn:hover,
.bulletin-ctrl-btn:focus {
    background-color: var(--color-btn-hover, #FDBA31);
    color: var(--color-btn-text, #1a1a1a);
    text-decoration: none;
}

.bulletin-ctrl-info {
    font-size: 0.82rem;
    color: #555;
    min-width: 55px;
    text-align: center;
}

/* ── Archive section ───────────────────────────────────────── */
.bulletin-archive {
    padding: 2rem 0 1rem;
}

.bulletin-archive__heading {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
    text-align: left;
}

.bulletin-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Archive card ──────────────────────────────────────────── */
.bulletin-acard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: #1a1a1a;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bulletin-acard:hover,
.bulletin-acard:focus {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: #1a1a1a;
}

.bulletin-acard__img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fff;
}

.bulletin-acard__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bulletin-acard__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulletin-acard__img--placeholder svg {
    width: 48px;
    height: 48px;
    color: #aaa;
}

.bulletin-acard__body {
    padding: 0.75rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.bulletin-acard__title {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    color: #1a1a1a;
}

.bulletin-acard__date {
    font-size: 0.78rem;
    color: #666;
}

.bulletin-acard__dl {
    font-size: 0.78rem;
    color: var(--color-primary, #FDBA31);
    font-weight: 700;
    margin-top: auto;
    padding-top: 0.4rem;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.bulletin-cta {
    /* dark only in the centre 150px; the 50px overhang zones stay transparent */
    padding: 50px 0;
    background: linear-gradient(
        to bottom,
        transparent 50px,
        var(--color-footer-bg, #1a1a1a) 50px,
        var(--color-footer-bg, #1a1a1a) calc(100% - 50px),
        transparent calc(100% - 50px)
    );
    overflow: visible;
}

.bulletin-cta__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 0 2.5rem;
    height: 150px;
    overflow: visible;
    text-decoration: none;
    color: var(--color-footer-text, #fff);
    transition: opacity 0.2s ease;
}

.bulletin-cta__inner:hover,
.bulletin-cta__inner:focus {
    text-decoration: none;
    color: var(--color-footer-text, #fff);
}

.bulletin-cta__inner:hover .bulletin-cta__label,
.bulletin-cta__inner:focus .bulletin-cta__label {
    opacity: 0.8;
}

.bulletin-cta__img {
    width: 645px;
    height: 250px; /* 50px overhang top + 150px strip + 50px overhang bottom */
    flex-shrink: 0;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.bulletin-cta__label {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-footer-text, #fff);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .bulletin-top {
        grid-template-columns: 1fr;
    }

    .bulletin-top__photo img {
        height: 260px;
    }

    .bulletin-top__right {
        padding: 1.5rem;
    }

    .bulletin-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .bulletin-archive__grid {
        grid-template-columns: 1fr;
    }

    .bulletin-cta__label {
        font-size: 1.2rem;
    }
}
