/* Bulletin archive. Shared by initial page navigation and AJAX year updates. */
.page-banner .page-banner-content > h1 + p {
    max-width: 85ch;
}

/* The current issue is featured above every archive year. */
.bulletin-latest {
    --text-link-color: #fff;
    --text-link-hover: var(--gold-on-dark);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    background: var(--navy);
    color: #fff;
    border-inline-start: 4px solid var(--gold-on-dark);
    padding: clamp(1rem, 3vw, 1.75rem);
    margin-bottom: 2rem
}

.bulletin-latest h2 {
    font-size: var(--section-heading-size);
    color: inherit;
    margin: 0
}

.bulletin-latest .button {
    min-height: 44px;
    background: #fff;
    color: var(--navy);
    border-color: #fff
}

.bulletin-latest .button:hover {
    background: #f4ead8;
    border-color: #f4ead8
}

#content .bulletin-latest .button:focus-visible {
    outline: 3px solid var(--gold-on-dark);
    outline-offset: 3px
}

.bulletin-latest .button:active {
    background: #e6d8ba;
    border-color: #e6d8ba
}

.bulletin-years {
    margin-bottom: 1.75rem
}

.bulletin-year-picker,
.bulletin-recent-years {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem
}

.bulletin-years ul,
.bulletin-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.bulletin-years :is(a, summary) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .4rem .75rem;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: .875rem
}

.bulletin-years :is(a, summary):hover {
    border-color: #b1bbc9;
    background: #f5f7fa
}

.bulletin-years :is(a[aria-current], summary.is-selected) {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff
}

.bulletin-older-years summary {
    cursor: pointer;
    list-style: none;
    --ui-corner-radius: var(--ui-control-radius)
}

.bulletin-older-years summary::-webkit-details-marker {
    display: none
}

.bulletin-older-years summary .icon {
    width: .75em;
    height: .75em;
    transform: rotate(90deg)
}

.bulletin-older-years[open] {
    display: grid;
    justify-items: start;
    flex-basis: 100%;
    gap: .45rem
}

/* Keep the summary in the picker row and give the disclosure content its own row. */
@supports selector(details::details-content) {
    .bulletin-older-years,
    .bulletin-older-years[open] {
        display: contents;
    }

    .bulletin-older-years:not([open])::details-content {
        display: none;
    }

    .bulletin-older-years[open]::details-content {
        flex: 0 0 100%;
        min-width: 0;
    }
}

.bulletin-older-years[open] summary .icon {
    transform: rotate(-90deg)
}

.bulletin-older-years ul {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem
}

.bulletin-year-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem 1rem;
    margin-bottom: 1.25rem
}

.bulletin-year-heading {
    font-size: var(--section-heading-size);
    color: var(--navy);
    margin: 0
}

.bulletin-count {
    --ui-corner-radius: 999px;
    padding: .25rem .7rem;
    border: 1px solid var(--line);
    background: #edf2f7;
    color: var(--navy);
    font-size: .8rem;
    font-weight: 600;
    margin: 0
}

.bulletin-month + .bulletin-month {
    margin-top: 1.75rem
}

.bulletin-month h3 {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: var(--subsection-heading-size);
    color: var(--navy);
    margin: 0 0 .65rem
}

.bulletin-month h3::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--line)
}

.bulletin-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
    gap: .65rem
}

.bulletin-issue-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .5rem
}

/* Archive rows use a compact icon action beside each PDF. */
.bulletin-list .item-share {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    color: inherit;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer
}

/* Keep the compact row action within its 44px target. */
#bulletin-archive .bulletin-list button.item-share {
    padding-inline: .5rem
}

.bulletin-page .item-share .icon {
    width: 1.125rem;
    height: 1.125rem
}

.bulletin-list .item-share:is(:hover, :focus-visible) {
    background: color-mix(in srgb, currentColor 9%, transparent)
}

.bulletin-list .item-share:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px
}

.bulletin-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line)
}

.bulletin-list .item-share {
    position: relative;
    width: 44px;
    margin-inline: .25rem;
    color: #536078
}

.bulletin-list .item-share::before {
    content: "";
    position: absolute;
    inset-inline-start: -.25rem;
    height: 1.5rem;
    border-inline-start: 1px solid var(--line)
}

.bulletin-list .item-share-label {
    display: none
}

.bulletin-list .item-share-status:not(:empty) {
    border-top: 1px solid var(--line);
    padding: .5rem .7rem;
    color: var(--navy);
    font-size: .8125rem
}

.bulletin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    width: 100%;
    min-height: 66px;
    padding: .55rem .7rem;
    --public-card-shadow: none;
    color: var(--navy);
    text-decoration: none
}

.bulletin-card:is(:hover, :focus-visible) {
    --public-card-shadow: inset 2px 0 #b1843b;
    background: #fcfaf5
}

.bulletin-card-text {
    display: grid;
    gap: .15rem;
    min-width: 0
}

.bulletin-card-date {
    font-weight: 700;
    font-size: .95rem
}

.bulletin-card-day {
    font-size: .78rem;
    color: #536078
}

.bulletin-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .4rem;
    background: #f4ead8;
    color: #805919;
    font-size: .72rem;
    font-weight: 700
}

.bulletin-badge .icon {
    width: 1em;
    height: 1em
}

@media (hover: hover) and (pointer: fine) {
    .bulletin-card:hover {
        --public-card-shadow: inset 2px 0 var(--gold);
        background-color: #f3f9fd;
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .bulletin-card {
        --public-card-transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
    }

    .bulletin-card .bulletin-badge {
        transition: transform 160ms ease-out;
    }

    .bulletin-card:hover .bulletin-badge {
        transform: translateX(4px);
    }
}

.bulletin-empty {
    background: #fff;
    border-left: 4px solid var(--line);
    padding: 1.25rem 1.5rem;
    margin: 0
}

@media (max-width: 767.98px) {

    .bulletin-latest {
        padding-inline: 12px
    }

    .bulletin-issue-actions {
        width: 100%;
        gap: 8px
    }

    #content .bulletin-latest .bulletin-issue-actions > .button {
        flex: 1 1 0;
        min-width: 44px;
        padding-inline: 6px;
        column-gap: 4px;
        flex-wrap: wrap;
        overflow-wrap: anywhere
    }

    #content .bulletin-latest .bulletin-issue-actions > a.button {
        flex-grow: 2
    }
}

.bulletin-feedback {
    position: fixed;
    z-index: 15;
    left: 50%;
    bottom: 5rem;
    transform: translateX(-50%);
    width: min(560px,calc(100% - 32px));
    padding: 1rem 1.25rem;
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line);
    box-shadow: 0 4px 18px #26304d33;
    border-radius: 6px
}

    .bulletin-feedback p {
        margin: 0
    }

    .bulletin-feedback .button {
        margin-top: .75rem
    }

    .bulletin-feedback:not(.bulletin-feedback-error) {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap
    }

#bulletin-archive[aria-busy="true"] .bulletin-years {
    cursor: progress
}
