/* =========================================================
   마산교구 서브 > 주보 (jubo/layout.css) — 동거형 재배치
   - @media를 각 셀렉터군 base 바로 아래에 배치(큰→작은). 값 변경 없음(위치만 이동).
   - 브레이크 정규화: 768→767 · 1024→1023 / 잡브레이크(1300·600·480·419·320) 유지
   - 혼합 @media(구 768·600·419)는 셀렉터군별로 분해. base가 이 파일에 없는 @media는 하단 별도.
   - 반응형 브레이크(이 파일): 1300 · 1201 · 1023 · 767 · 600 · 480 · 419 · 320
   ========================================================= */

/* ─────────────────────────────────────────────
   주보 목록 (ul.boardJubo)
   ───────────────────────────────────────────── */
ul.boardJubo
{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow: hidden;
    gap: 15px 40px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

ul.boardJubo li
{
    position: relative;
    display: block;
    /* width: calc(33.333% - 10px); */
    /* width: calc((100% - 40px * (4 - 1)) / 4); */
    width: 100%;
}

ul.boardJubo li:nth-child(4n+4) {
    /* margin-right: 0px; */
}

ul.boardJubo li:nth-last-of-type(-n+4) {
    padding: 0;
    /* margin-bottom: 0; */
}

ul.boardJubo li div.juboBox
{
    position: relative;
    display: block;
    margin: 0px;
    padding: 34px 0 20px 0;
    width: 100%;
    min-height: 100%;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    background: linear-gradient(180deg, #f3f3f3 52.82%, #fff 95.02%);
    overflow: hidden;
}

/* ul.boardJubo li div.juboBox:before
{
    position: absolute;
    content: '';
    width: 100%;
    height: 150px;
    background: #fafafa;
    top: 0px;
    left: 0px;
} */

ul.boardJubo li div > span.thumb
{
    position: relative;
    display: block;
    width: 124px;
    height: 180px;
    line-height: normal;
    overflow: hidden;
    background: #ededed;
    margin: 0 auto 20px;
    box-shadow: 3px 4px 0px rgb(0 0 0 / 10%);
    border: 1px solid #cecece;
}

ul.boardJubo li div > span.thumb img
{
    width: 100%;
    height: 100%;
    position: absolute;
    display: block;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
}

ul.boardJubo li div > span.category
{
    position: relative;
    display: inline-block;
    padding: 0px 7px 2px;
    background: #535353;
    color: #FFF;
    border-radius: 30px;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 23px;
    min-width: 80px;
}

ul.boardJubo li div > span.title,
ul.boardJubo li div > span.content
{
    position: relative;
    display: block;
    width: calc(100% - 40px);
    height: auto;
    color: #343434;
    font-size: 15px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 auto 13px;
}

ul.boardJubo li div > span.date
{
    position: relative;
    display: block;
    color: #8c8c8c;
    font-size: 14px;
    line-height: 20px;
}

ul.boardJubo li div > div.juboBtn
{
    position: relative;
    display: inline-block;
    clear: both;
    text-align: center;
    margin: 20px auto 0px;
}

ul.boardJubo li div > div.juboBtn > a
{
    display: block;
    float: left;
    width: 35px;
    height: 35px;
    margin: 0 5px;
	color: rgba(255,255,255,0);
    border-radius: 35px;
    border: 1px solid #7a7a7a;
}

ul.boardJubo li div > div.juboBtn > a.btnPdf
{
    background: url('/assets/msd01/image/jubo_icon_pdf_gray_s.png') no-repeat #FFF;
    background-size: 100%;
}

ul.boardJubo li div > div.juboBtn > a.btnDown
{
    background: url('/assets/msd01/image/jubo_icon_down_gray_s.png') no-repeat #FFF;
    background-size: 100%;
}

ul.boardJubo li div > div.juboBtn > a.btnVoice
{
    background: url('/assets/msd01/image/jubo_icon_voice_gray_s.png') no-repeat #FFF;
    background-size: 100%;
}

/* 반응형: 목록(ul.boardJubo) */
@media screen and (max-width:1023px) {
    /* 주보 LIST */
    ul.boardJubo {
        grid-template-columns: repeat(3, 1fr);
    }
    ul.boardJubo li {

    }

    ul.boardJubo li:nth-child(3n+3) {

    }

    ul.boardJubo li:nth-child(3n+3) {

    }

    ul.boardJubo li:nth-child(4n+4):after {

    }
    ul.boardJubo li div > span.category{
        padding-bottom: 1px;
        padding-top: 0px;
    }
}
@media screen and (max-width:767px) {
    /* 주보 LIST */
    ul.boardJubo {
        grid-template-columns: repeat(2, 1fr);
    }
    ul.boardJubo li {

    }

    ul.boardJubo li:nth-child(2n+2) {

    }

    ul.boardJubo li:nth-child(2n+2) {

    }

    ul.boardJubo li:nth-child(4n+4):after {

    }
}
@media screen and (max-width:419px)
{
    /* 주보 LIST */
    ul.boardJubo li div.juboBox {
        padding: 23px 0 20px;
    }
}


/* ─────────────────────────────────────────────
   소리주보 (.audioPlayer)  ※목록 카드 내부에 절대배치
   ───────────────────────────────────────────── */
.audioPlayer
{
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 40px;
    overflow: hidden;
    z-index: 10;
}

.audioPlayer audio {
    display: block;
    float: left;
    width: calc(100% - 30px);
    margin: 0 auto;
    height: 40px;
}

/* 반응형: 소리주보(.audioPlayer) — 구 768 → 767 정규화 */
@media screen and (max-width:767px) {
    /* 소리주보 css */
    .audioPlayer {
        width: 100%;
        bottom: 64px;
    }

    .audioBox {
        bottom: 0;
        transform: translateX(-50%) translateY(50%);
    }

    .audioPlayer audio {
        width: calc(100% - 30px);
        height: 36px;
    }

    @media screen and (-webkit-min-device-pixel-ratio:0){
        .audioPlayer {
            border-radius: 10px;
        }

        .audioPlayer audio {
            width: calc(100% - 40px);
            height: 30px;
            margin: 5px 0px;
            margin-left: 5px;
        }

    }
}


/* ─────────────────────────────────────────────
   주보 상세보기 (div.viewJubo)
   ───────────────────────────────────────────── */
/* 주보 상세보기 */
div.viewJubo div.vjTop {
    position: relative;
    display: flex;
    width: 100%;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
}

div.viewJubo div.vjTop > div.vjImg {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    background: #f6f6f6;
    padding: 60px;
    border-radius: 20px 0 0 20px;
}

div.viewJubo div.vjTop > div.vjImg > span.thumb {
    position: relative;
    display: block;
    width: 270px;
    aspect-ratio: 270 / 375;
    line-height: normal;
    overflow: hidden;
    box-shadow: 3px 5px 10px #00000029;
    padding: 5px;
    background-color: #fff;
}

div.viewJubo div.vjTop > div.vjImg > span.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

div.viewJubo div.vjTop > div.vjTit {
    position: relative;
    display: block;
    width: calc(100% - 320px);
    height: 100%;
    text-align: center;
    padding: 60px 20px 70px;
}

div.viewJubo div.vjTop > div.vjTit > h3 {
    position: relative;
    display: block;
    width: 100%;
    font-size: 22px;

    line-height: 22px;
    margin-bottom: 15px;
}

div.viewJubo div.vjTop > div.vjTit > p {
    position: relative;
    display: block;
    width: 100%;
    font-size: 24px;
    color: #447499;
    letter-spacing: -0.96px;
    color: #231915;
    font-weight: 700;
}
div.viewJubo div.vjTop > div.vjTit > p.l_title{
    margin-top: 7px;
    letter-spacing: -0.8px;
    color: #817C79;
    font-size: 20PX;
    font-weight: 500;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn {
    position: relative;
    display: inline-block;
    clear: both;
    text-align: center;
    margin: 40px auto 40px;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a {
    display: block;
    float: left;
    width: 80px;
    margin: 0 17px;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a > span {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 80px;
    overflow: hidden;
    color: rgba(255,255,255,0);
    margin-bottom: 15px;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a > p {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    letter-spacing: -0.64px;
    color: #231915;
    font-weight: 500;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a.btnPdf > span{
    background: url(/assets/msd01/image/light_search.png) no-repeat #2E8B57 50% 50%;
    background-size: 70%;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a.btnPdf:hover > span {
    background: url(/assets/msd01/image/light_search.png) no-repeat #2E8B57 50% 50%;
    background-size: 70%;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a.btnDown > span {
    background: url(/assets/msd01/image/light_download.png) no-repeat #A4A377 50% 50%;
    background-size: 70%;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a.btnDown:hover > span {
    background: url(/assets/msd01/image/light_download.png) no-repeat #A4A377 50% 50%;
    background-size: 70%;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a.btnVoice > span {
    background: url(/assets/msd01/image/light_sound.png) no-repeat #807980 50% 50%;
    background-size: 70%;
}

div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a.btnVoice:hover > span {
    background: url(/assets/msd01/image/light_sound.png) no-repeat #807980 50% 50%;
    background-size: 70%;
}

div.viewJubo div.vjTop > div.vjTit > div.btnAdobe {
    position: relative;
    display: block;
    width: 100%;
    letter-spacing: -1px;
    font-size: 14px;
}

div.viewJubo div.vjTop > div.vjTit > div.btnAdobe > span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #817C79;
}

div.viewJubo div.vjTop > div.vjTit > div.btnAdobe > span > span {
    color:#9E1F3D;
    text-decoration: underline;
    text-underline-position: under;
}

div.viewJubo div.vjTop > div.vjTit > div.btnAdobe > a {
    display: inline-block;
    border: 1px solid #797979;
    line-height: 21px;
    color: #656464;
    border-radius: 22px;
    padding: 0 15px;
    margin-top: 10px;
}
div.viewJubo div.vjTop > div.vjTit > div.hlBottom{
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    border-top: 0;
}

/* 반응형: 상세(div.viewJubo) */
@media screen and (max-width:1300px) {
    div.viewJubo div.vjTop > div.vjImg{
        padding: 30px 45px;
    }

    div.viewJubo div.vjTop > div.vjImg > span.thumb{
        width: 200px;
    }

    div.viewJubo div.vjTop > div.vjTit{
        padding: 65px 20px;
        padding-top: 60px;
        width: calc(100% - 275px);
    }
    div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a > span{
        width: 70px;
        height: 70px;
    }

}
@media screen and (max-width:1023px) {
    div.viewJubo div.vjTop > div.vjTit > div.juboBtn {
        margin-bottom: 65px;
    }
}
@media screen and (max-width:767px) {
    /* 주보 상세보기 (구 768 → 767) */
    div.viewJubo div.vjTop{
        display: flex;
        flex-direction: column;
    }
    div.viewJubo div.vjTop > div.vjImg {
        width: 100%;
        padding: 30px 45px 34px;
        border-radius: 20px 20px 0 0;
    }

    div.viewJubo div.vjTop > div.vjImg > span.thumb {
        width: 50%;
        height: auto;
        margin: 0 auto;
    }

    div.viewJubo div.vjTop > div.vjImg > span.thumb img {
        width: 100%;
        position: relative;
    }

    div.viewJubo div.vjTop > div.vjTit {
        width: 100%;
        text-align: center;
        padding: 30px 10px 25px;
    }

    div.viewJubo div.vjTop > div.vjTit > h3 {
        font-size: 20px;
        line-height: 20px;
        margin-bottom: 10px;
    }

    div.viewJubo div.vjTop > div.vjTit > p {
        font-size: 16px;
    }
    div.viewJubo div.vjTop > div.vjTit > p.l_title{
        font-size: 14px;
    }

    div.viewJubo div.vjTop > div.vjTit > div.juboBtn {
        margin: 20px auto 0px;
    }

    div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a {
        width: 60px;
        margin: 0 8px;
    }

    div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a > span {
        width: 60px;
        height: 60px;
        border-radius: 60px;
        margin-bottom: 7px;
    }

    div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a > p {
        font-size: 15px;
    }

    div.viewJubo div.vjTop > div.vjTit > div.btnAdobe {
        display: none;
    }

    div.viewJubo div.vjTop > div.vjTit > div.hlBottom{
        margin-top: 30px;
    }
}
@media screen and (max-width:600px)
{
    /* 주보 상세보기 */
    div.viewJubo div.vjTop > div.vjImg > span.thumb {
        width: 70%;
    }

    div.viewJubo div.vjTop > div.vjTit {
        width: 100%;
        text-align: center;
    }

    div.viewJubo div.vjTop > div.vjTit > h3 {
        font-size: 18px;
        line-height: 18px;
        margin-bottom: 7px;
    }

    div.viewJubo div.vjTop > div.vjTit > div.juboBtn > a > p {
        font-size: 14px;
    }
}
@media screen and (max-width:419px)
{
    div.viewJubo div.vjTop > div.vjTit > p {
        font-size: 15px;
        line-height: 15px;
    }
}


/* ─────────────────────────────────────────────
   정렬(뷰타입 토글) (.list-type)
   ───────────────────────────────────────────── */
/* 정렬 스타일 */
.list-type{
    margin-top: 30px;
}
.list-type a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 19px;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
}
.list-type a.on{
    color:#2E8B57;
    border: 1px solid #2E8B57;
}
/* 반응형: .list-type — 구 1024 → 1023 정규화 */
@media screen and (max-width:1023px) {
    .list-type a i{
        transform: translateY(1px);
    }
}


/* ─────────────────────────────────────────────
   교회소식 리스트 테이블 (.churchJournal)
   ───────────────────────────────────────────── */
.churchJournal table.basic{
    margin-top: 50px;
}
.churchJournal table.basic tbody tr:first-of-type{
}
.churchJournal table.basic tbody tr:first-child th,
.churchJournal table.basic tbody tr:first-child td{
    border-top: 1px solid #1E1E1E;
}
.churchJournal table.basic .down_icon_i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    margin-left: 5px;
}
.churchJournal table.basic .down_li{
    display: flex;
    align-items: center;
    font-weight: 600;
}
.churchJournal table.basic .down_icon_i img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translateY(1px);
}
/* 반응형: .churchJournal */
@media screen and (max-width:767px){
    .churchJournal table.basic{
        margin-top: 15px;
    }
    .churchJournal table.basic tbody tr{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;

    }
    .churchJournal table.basic tbody tr:first-child th,
    .churchJournal table.basic tbody tr:first-child td{
        border-top: 0;
    }
    .churchJournal table.basic tbody tr th,
    .churchJournal table.basic tbody tr td{
        border-top: 1px solid transparent;
        padding: 0;
    }
    .churchJournal table.basic tbody tr td:first-child{
        margin-bottom: 8px;
    }
    .churchJournal table.basic tbody tr td:nth-child(2) ul{
        display: flex;
        gap: 15px;
    }
    .churchJournal table.basic tbody tr td:nth-child(3){
        margin-top: 5px;
    }
    .churchJournal table.basic tbody tr td:nth-child(4){
        margin-top: 10px;
    }
    .churchJournal table.basic tbody tr td:nth-child(4) ul{
        display: flex;
        gap: 15px;
    }
}


/* ===== 주보 그리드 (구 pages/jubo/figma-jubo.css 통합) ===== */
/* 주보 그리드 — Figma node 297:10946 / card 510:159 (layout.css 위에 로드되어 오버라이드) */

/* 리스트 토글(갤러리/리스트 전환) 아이콘 — Figma에 없음 */
body.msd-sub .bbsTop .list-type { display: none; }

/* 총건수 */
body.msd-sub .bbsTop .board_count .number { font-size: 18px; color: #222; }
body.msd-sub .bbsTop .board_count .number .red { color: #0455a1; font-weight: 700; }

/* ===== 카드 그리드 ===== */
body.msd-sub ul.boardJubo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    width: 100%;
}
body.msd-sub ul.boardJubo li {
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
    list-style: none;
}
body.msd-sub ul.boardJubo li::after,
body.msd-sub ul.boardJubo li::before { content: none; display: none; }

/* 카드 박스 */
body.msd-sub ul.boardJubo li div.juboBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 510px;
    padding: 30px 25px 25px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    background: linear-gradient(180deg, #f3f3f3 53%, #ffffff 95%);
    position: static;
}
body.msd-sub ul.boardJubo li div.juboBox::before { content: none; display: none; }

/* 표지 썸네일 200x271 */
body.msd-sub ul.boardJubo li div.juboBox > span.thumb {
    display: block;
    width: 200px;
    max-width: 80%;
    aspect-ratio: 200 / 271;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    position: static;
}
body.msd-sub ul.boardJubo li div.juboBox > span.thumb a { display: block; width: 100%; height: 100%; }
body.msd-sub ul.boardJubo li div.juboBox > span.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    position: static;
}

/* 제N호 뱃지 */
body.msd-sub ul.boardJubo li div.juboBox > span.category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    padding: 8px 13px;
    border-radius: 50px;
    background: #0455a1;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1;
    position: static;
    width: auto;
    height: auto;
}

/* 제목 */
body.msd-sub ul.boardJubo li div.juboBox > span.title {
    display: block;
    margin: 14px auto 0;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #222;
    line-height: 23px;
    letter-spacing: -0.8px;
    position: static;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 날짜 */
body.msd-sub ul.boardJubo li div.juboBox > span.date {
    display: block;
    margin: 8px auto 0;
    text-align: center;
    font-size: 16px;
    color: #7d7d7d;
    letter-spacing: -0.8px;
    position: static;
}

/* 버튼 행 */
body.msd-sub ul.boardJubo li div.juboBox > div.juboBtn {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 20px;
    width: 100%;
    position: static;
}
body.msd-sub ul.boardJubo li div.juboBox > div.juboBtn > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    max-width: 137px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1dfed;
    border-radius: 25px;
    background: #fff;
    color: #222;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.8px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    position: static;
    text-indent: 0;
}
body.msd-sub ul.boardJubo li div.juboBox > div.juboBtn > a:hover {
    background: #f3f8ff;
    border-color: #0455a1;
}
body.msd-sub ul.boardJubo li div.juboBox > div.juboBtn > a .jb-ic {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}
body.msd-sub ul.boardJubo li div.juboBox > div.juboBtn > a .jb-ic svg { width: 100%; height: 100%; }

/* 반응형: body.msd-sub 그리드 — 구 1024 → 1023 정규화 */
@media (max-width: 1023px) {
    body.msd-sub ul.boardJubo { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
    body.msd-sub ul.boardJubo { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    body.msd-sub ul.boardJubo li div.juboBox { min-height: 0; padding: 20px 14px 16px; border-radius: 20px; }
    body.msd-sub ul.boardJubo li div.juboBox > span.title { font-size: 16px; }
    body.msd-sub ul.boardJubo li div.juboBox > div.juboBtn > a { font-size: 14px; height: 38px; gap: 5px; }
}
@media (max-width: 480px) {
    body.msd-sub ul.boardJubo { grid-template-columns: 1fr; }
}

/* =========================================================
   .msd-jubo — 시안 297-10946 갤러리 카드형 (샌드박스 이관 2026-07-30)
   - 구형 .boardJubo와 클래스명 분리(공존). bookList.php mode 'g'가 사용.
   - 변수(:root)=common/layout.css. 페이지네이션=공용 .msd-page.
   - 반응형 브레이크(이 블록): 1201 · 767 · 419 (+ @container 245)
   ========================================================= */
/* .msd-jubo 자체 규칙(font-family/color/letter-spacing/word-break)은 body(common/layout.css)와
   완전히 중복이라 제거(2026-09-02) — body 상속으로 그대로 유지됨. font-family는 오히려 body의
   'Pretendard','Roboto',sans-serif 스택을 그대로 받는 게 맞음(숫자 등은 Roboto 표기 원칙과 일치). */
/* 상단바(총건수+검색)는 공용 .msd-board-top / .msd-board-count / .msd-board-search--single(common/board.css) 사용 — 다른 게시판과 반응형 동일(2026-11-10) */
/* 카드 그리드 (갤러리 4열) */
.msd-jubo__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(42.67px, 4.1667vw, 60px) clamp(20px, 2.778vw, 40px);   /* 시안 297-10946: 행 간격 60 / 열 간격 40 */
}
@media (max-width: 1201px) { .msd-jubo__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .msd-jubo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 419px)  { .msd-jubo__grid { grid-template-columns: minmax(0, 1fr); } }
.msd-jubo__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: clamp(21.33px, 2.083vw, 30px) clamp(17.78px, 1.736vw, 25px) clamp(17.78px, 1.736vw, 25px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: clamp(16px, 2.083vw, 30px);
    background: linear-gradient(180deg, #F3F3F3 52.82%, #FFF 95.02%);
    text-align: center;
}
.msd-jubo__thumb {
    width: clamp(142.22px, 13.889vw, 200px);
    aspect-ratio: 31 / 42;
    margin-bottom: clamp(12px, 1.4vw, 20px);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.msd-jubo__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msd-jubo__thumb img.is-noimg { object-fit: contain; background: #F3F4F6; }
.msd-jubo__round {
    display: inline-block;
    margin-bottom: 10px;
    padding: clamp(5.69px, 0.556vw, 8px) clamp(9.24px, 0.903vw, 13px);
    border-radius: 999px;
    background: var(--color-brand);
    color: #fff;
    font-size: clamp(0.875rem, 1.1111vw, 1rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 81.25%;   /* 시안 글줄 13px(16px 기준) → 뱃지 높이 29 */
}
.msd-jubo__title {
    margin: 0 0 clamp(10.67px, 1.0417vw, 15px);   /* 시안: 제목→날짜 15 */
    font-size: clamp(16px, 1.25vw, 18px);
    font-weight: 500;
    letter-spacing: -0.04444em;
    color: var(--color-text);
    line-height: 127.778%;
    width: 100%;
    min-height: 1.27778em;   /* 전례명이 비어도 한 줄 높이 유지 → 버튼 위치 통일. 길면 말줄임 없이 줄바꿈 */
}
.msd-jubo__date {
    margin-top: auto;   /* 날짜+버튼 묶음을 카드 하단에 배치(옆 카드 높이에 맞춰 늘어나도 둘 사이 20px 유지). 제목과의 최소 간격 15는 제목 margin-bottom */
    color: #7d7d7d;
    font-size: clamp(14px, 1.1111vw, 16px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 156.25%;
}
/* 소리주보 오디오(마산 기능 보존 — 조건부 표시) */
.msd-jubo__card .audioPlayer { width: 100%; margin-top: 10px; }
.msd-jubo__card .audioPlayer audio { width: 100%; }
/* 버튼: 바로보기 / 다운받기 / (소리주보) */
.msd-jubo__btns {
    display: flex;
    gap: clamp(4.27px, 0.4167vw, 6px);
    justify-content: center;
    width: 100%;
    margin-top: 0;                                 /* 날짜↔버튼 간격 고정(옆 카드 높이에 맞춰 늘어나도 벌어지지 않음). 전례명 없어도 위치 통일은 제목 min-height가 담당 */
    padding-top: clamp(14.22px, 1.389vw, 20px);    /* 날짜와 최소 간격(데스크탑 20) */
    flex-wrap: wrap;
    container-type: inline-size;   /* 버튼이 상하로 쌓이는 폭을 @container로 감지 */
}
.msd-jubo__btn {
    flex: 1 1 120px;   /* 120 미만으로 좁아지면 줄바꿈(상하 배치) */
    max-width: 137px;   /* 시안 137×42, 두 버튼 gap 6 */
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(4.27px, 0.4167vw, 6px);
    height: 42px;   /* 화면이 줄어도 시안 높이 유지 */
    padding: 0 clamp(10.67px, 1.0417vw, 15px) 0 clamp(13.51px, 1.3194vw, 19px);   /* 시안: 글자 좌 20(테두리 포함) · 바로보기 아이콘 우 16 */
    border: 1px solid var(--color-primary-100);
    border-radius: 999px;
    background: #fff;
    color: var(--color-text);
    font-size: clamp(0.875rem, 1.1111vw, 1rem);
    font-weight: 500;
    letter-spacing: -0.05em;
}
.msd-jubo__btn svg, .msd-jubo__btn img { width: clamp(19px, 1.528vw, 22px); height: clamp(19px, 1.528vw, 22px); flex: 0 0 auto; }
/* 다운받기: 아이콘 20×20 · 우 17(바로보기는 22×22 · 우 16) */
.msd-jubo__btn.btn-down { padding-right: clamp(11.38px, 1.1111vw, 16px); }
.msd-jubo__btn.btn-down img { width: clamp(19px, 1.389vw, 20px); height: clamp(19px, 1.389vw, 20px); }
/* 버튼이 상하로 쌓이는 좁은 카드(두 버튼 120×2+간격 미만): 버튼 가로 100% + 좌우 여백 확대 */
@container (max-width: 245px) {
    .msd-jubo__btn { flex-basis: 100%; max-width: none; padding-left: 28px; padding-right: 24px; }
    .msd-jubo__btn.btn-down { padding-right: 25px; }
}
.msd-jubo__btn:hover { border-color: var(--color-brand); color: var(--color-brand); }
/* 페이지네이션 상단 여백 (공용 .msd-page) */
.msd-jubo .msd-page { margin-top: clamp(42.67px, 4.1667vw, 60px); }
