/* Bulletin shortcodes: parent Elementor content container controls the 1560px width. */
.kpcm-bulletin-latest-date {
    display: block;
    color: #694045;
    font: 500 clamp(35px,4.1vw,66px)/1.35 "Noto Serif KR",serif;
    letter-spacing: -.045em;
}

/* Previous Bulletins: fixed 260px columns and aligned month rows. */
.kpcm-bulletin-title-ko,.kpcm-bulletin-title-ko .elementor-heading-title {
    color: #714a4d !important;
    font: 600 36px/1.35 "Noto Serif KR",serif !important;
}

.kpcm-bulletin-title-en,.kpcm-bulletin-title-en .elementor-heading-title {
    color: #442b17 !important;
    font: 500 26px/1.35 "Lora",serif !important;
}

.kpcm-bulletin-previous {
    width: 100%;
    color: #442b17;
    font-family: "Pretendard Variable",sans-serif;
}

.kpcm-bulletin-previous * {
    box-sizing: border-box;
}

.kpcm-bulletin-columns {
    display: grid;
    grid-template-columns: repeat(6,260px);
    width: 100%;
    justify-content: start;
}

.kpcm-bulletin-column {
    position: relative;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    width: 260px;
    min-width: 0;
    padding: 0 22px;
}

.kpcm-bulletin-column::before {
    position: absolute;
    top: 48px;
    bottom: 0;
    left: 0;
    width: 1px;
    background: #eae7e4;
    content: "";
}

.kpcm-bulletin-column:nth-child(6n+1) {
    padding-left: 0;
}

.kpcm-bulletin-column:nth-child(6n+1)::before {
    content: none;
}

.kpcm-bulletin-column__heading {
    min-height: 48px;
}

.kpcm-bulletin-column__heading h3 {
    margin: 0;
    color: #714a4d;
    font: 500 23px/1.4 "Noto Serif KR",serif;
}

.kpcm-bulletin-month {
    display: grid;
    grid-template-columns: 60px minmax(0,1fr);
    gap: 10px;
    align-content: start;
    min-height: 150px;
    padding: 15px 0 20px;
    border-bottom: 1px solid #eae7e4;
}

.kpcm-bulletin-month:last-child {
    border-bottom: 0;
}

.kpcm-bulletin-month h4 {
    margin: 0;
    color: #442b17;
    white-space: nowrap;
    font: 500 22px/1.4 "Noto Serif KR",serif;
}

.kpcm-bulletin-month ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kpcm-bulletin-month li {
    margin: 0 0 9px;
}

.kpcm-bulletin-month a {
    color: #714a4d !important;
    white-space: nowrap;
    font: 400 16px/1.5 "Pretendard Variable",sans-serif;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.kpcm-bulletin-month a:hover,.kpcm-bulletin-month a:focus-visible {
    color: #442b17 !important;
}

.kpcm-bulletin-pagination {
    margin: 50px 0 0;
}

.kpcm-bulletin-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kpcm-bulletin-pagination li {
    margin: 0;
}

.kpcm-bulletin-pagination a,.kpcm-bulletin-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    min-height: 34px;
    padding: 3px 5px;
    color: #694045;
    text-decoration: none;
}

.kpcm-bulletin-pagination .current {
    background: #694045;
    color: #fff;
}

.kpcm-bulletin-pagination .prev,.kpcm-bulletin-pagination .next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f2eeee;
    font-size: 25px;
    line-height: 1;
}

.kpcm-bulletin-pagination a:hover {
    color: #ae5166;
}

.kpcm-bulletin-empty {
    padding: 30px 0;
    color: #694045;
}

/* The optional dropdown shortcode still works if it remains on the Elementor page. */
.kpcm-bulletin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
}

.kpcm-bulletin-filters select,.kpcm-bulletin-filters__submit {
    min-height: 43px;
    padding: 7px 13px;
    border: 1px solid #dedbd9;
    background: #fff;
    color: #442b17;
    font: 400 15px/1.3 "Pretendard Variable",sans-serif;
}

/* Fixed width means 3 columns begin as soon as 6 columns no longer fit. */
@media (max-width: 1559px) {
    .kpcm-bulletin-columns {
        grid-template-columns: repeat(3,260px);
        justify-content: center;
        row-gap: 35px;
    }
    .kpcm-bulletin-column:nth-child(6n+1) {
        padding-left: 22px;
    }
    .kpcm-bulletin-column:nth-child(6n+1)::before {
        content: "";
    }
    .kpcm-bulletin-column:nth-child(3n+1) {
        padding-left: 0;
    }
    .kpcm-bulletin-column:nth-child(3n+1)::before {
        content: none;
    }
}

@media (max-width: 767px) {
    .kpcm-bulletin-columns {
        grid-template-columns: 260px;
        justify-content: center;
    }
    .kpcm-bulletin-column:nth-child(n) {
        padding-left: 0;
        padding-right: 0;
    }
    .kpcm-bulletin-column:nth-child(n)::before {
        content: none;
    }
    .kpcm-bulletin-month {
        min-height: 0;
    }

/* Bulletin archive: two columns on mobile only. */

    .kpcm-bulletin-previous,
    .kpcm-bulletin-columns {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .kpcm-bulletin-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 35px;
        justify-content: stretch;
    }

    .kpcm-bulletin-column:nth-child(n) {
        width: auto;
        min-width: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Dividers start below the year heading. */
    .kpcm-bulletin-column:nth-child(n)::before {
        content: "";
        left: -10px;
        top: 48px;
        bottom: 0;
    }

    /* No divider before the first column of each row. */
    .kpcm-bulletin-column:nth-child(3n + 1)::before {
        content: none;
    }

    .kpcm-bulletin-month {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}