/* tabmenu */
.tab_list{
    position: relative;
    display: flex;
    width: 100%;
}

.tab_list li{
    width: 50%;
}

.tab_list li button,
.tab_list li a{
    padding: 22px 10px;
    width: 100%;
    text-align: center;
    font-size: 18px;
    line-height: 27px;
    letter-spacing: -0.9px;
    color: #999;
    border-bottom: 1px solid #ddd;
	display: inline-block;
}

.tab_list li button.this,
.tab_list li.active a{
    color: #FE493C;
    border-bottom: 2px solid #FE493C;
}

@media screen and ( max-width: 1023px ) {
    .tab_list li button,
    .tab_list li a{
        padding: 15px 10px;
    }
}

@media screen and ( max-width: 767px ) {
	.tab_list
	{
		flex-flow:row wrap;
	}
    .tab_list li button,
    .tab_list li a{
        padding: 13px 10px;
        font-size: 16px;
        line-height: 21px;
    }
}
/* tabmenu end */


/* 주간 LIST */
div.calendarCon {
    position: relative;
    display: block;
    width: 100%;
    margin: 30px 0 0;
    padding: 0px; 
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}

div.calendarCon ul.calendarWeek {
    position: relative;
    /* margin: 0 auto; */
    padding: 0px;
    display: flex;
    justify-content: center;
}

div.calendarCon ul.calendarWeek li {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
div.calendarCon ul.calendarWeek li.right_btn{
    min-width: 30px;
}

div.calendarCon ul.calendarWeek li > a.calBtn {
    position: relative;
    display: inline-block;
    font-size: 16px;
    letter-spacing: -0.5px;
    font-size: 0;
    width: 30px;
    height: 30px;
}

div.calendarCon ul.calendarWeek li > a.btnPrev:after {
    position: relative;
    content: '';
    color: #535353;
    width: 100%;
    height: 100%;
    background: url(/assets/msd01/image/icon_arrow_left_more_black.svg) center center no-repeat;
    background-size: contain;
    display: inline-block;
    align-items: center;
    justify-content: center;
}
div.calendarCon ul.calendarWeek li > a.btnNext:after {
    position: relative;
    content: '';
    color: #535353;
    width: 100%;
    height: 100%;
    background: url(/assets/msd01/image/icon_arrow_left_more_black.svg) center center no-repeat;
    background-size: contain;
    display: inline-block;
    align-items: center;
    justify-content: center;
    transform: rotate(180deg);
}

div.calendarCon ul.calendarWeek li > span {
    position: relative;
    display: block;
    font-size: 24px;
    padding: 0 20px;
    font-weight: 700;
}

div.calendarCon ul.calendarWeek li > span:nth-child(2) {
    font-size: 16px;
    font-weight: 400;
    margin-top: 10px;
    color: #777;
}

p.btnPlan {
    position: relative;
    display: block;
    margin: 0px;
    padding: 0px;
    text-align: center;
}

div.calendarCon p.btnPlan > a {
    background: #fff;
    border-radius: 5px;
    font-size: 14px;
    color: #010101;
    padding: 4px 10px 6px;
    border: 1px solid #4e4e4e;
    margin: 0 2px;
    box-shadow: 0 4px 5px #d9d9d9;
    cursor: pointer;
    position: relative;
    /* margin-top: 10px;
    margin-bottom: 15px; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

div.calendarCon p.btnPlan > a:after {
    content: '\f1c1';
    position: relative;
    font-family: "FontAwesome";
    margin-left: 5px;
    font-size: 12px;
    transform: translateY(1px);
    display: inline-block;
}
.responsive_table{
    overflow: auto;
    width: 100%;
}
div.calendarCon .calendar_table {
    position: relative;
    width: 100%;    
    margin-top: 20px;
}

div.calendarCon .calendar_table caption {
    display: none;
}

div.calendarCon .calendar_table thead {
    border-radius: 5px;
    border-top: 1px solid #5b5b5b;
    border-bottom: 1px solid #e5e5e5;
}

div.calendarCon .calendar_table thead tr th {
    position: relative;
    font-size: 16px;
    font-weight: normal;
    padding: 10px 0;
    line-height: 30px;
}

div.calendarCon .calendar_table thead tr th.sun { color: #ce382d; }
div.calendarCon .calendar_table thead tr th.sat { color: #2254c0; }

div.calendarCon .calendar_table tbody tr td {
    font-size: 15px;
    color: #bebebe;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
    padding: 0px;
    line-height: 50px;
}

div.calendarCon .calendar_table tbody tr td.circle span {
    color: #3a3a3a;
    position: relative;
}
div.calendarCon .calendar_table tbody tr td.circle span::before{
    content: '';
    position: absolute;
    top: 0px;
    right: -5px;
    width: 3px;
    height: 3px;
    background-color: #2E8B57;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
}

div.calendarCon .calendar_table tbody tr td.today span {
    border: 1px solid #5b5b5b;
    padding: 0px 5px 1px;
    border-radius: 10px;
    margin-bottom: 4px;
    font-weight: bold;
}

div.schedule {
    position: relative;
    display: block;
    width: 100%;    
    margin: 20px 0 0;
}

div.schedule ul.scheduleList {
    position: relative;
    display: block;
    width: 100%;
    margin: 0px;
    padding: 0px;    
}

div.schedule ul.scheduleList > li {
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    overflow: hidden;
}

div.schedule ul.scheduleList > li > div.schDate {
    position: relative;    
    display: block;
    width: 100%;
    margin: 0px;
    padding: 15px 15px;
    background: #f9f9f9;
    font-size: 16px;
}

div.schedule ul.scheduleList > li > div.schDate > span {
    display: inline-block;
    margin-left: 10px;
    color: #5c5c5c;
    font-size: 15px;
}

div.schedule ul.scheduleList > li > div.schCon {
    position: relative;
    display: block;
    width: calc(100% - 40px);
    clear: both;
    margin: 10px 20px;
    padding: 0;
    overflow: hidden;
    display: flex;
    gap: 40px;
}

div.schedule ul.scheduleList > li > div.schCon:after {
    position: absolute;
    content: '';
    width: 1px;
    height: 100%;
    background: #e5e5e5;
    top: 0px;
    left: 50%;
    z-index: 1;
}

div.schedule ul.scheduleList > li > div.schCon > div.schBox {
    display: block;
    width: calc(50% - 20px);
    padding: 9px 0 20px;
    font-size: 15px;
    font-weight: normal;
}
div.schedule ul.scheduleList > li > div.schCon > div.schBox{

}

div.schedule ul.scheduleList > li > div.schCon > div.schDiocese {

}

div.schedule ul.scheduleList > li > div.schCon > div.schBox h4 {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 17px;
}
div.schedule ul.scheduleList > li > div.schCon > div.schBox h4 .schIcon{
    margin-bottom: -1px;
}

span.schIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    margin-right: 7px;
    border-radius: 5px;
}
span.schIcon img { 
    width: 100%; 
    height: 100%;
}
/* span.iconBishop { background: #00b8e7; } */
span.iconDiocese { background: #184B44; } 
span.iconBishop { background: #2E8B57; }
span.iconAnniversary { background: #000; }
span.iconFestive { background: #9E1F3D; }
span.iconEtc { background: #184B44; }

div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul > li {
    position: relative;
    display: block;
    width: 100%;
    padding: 0 0 0 0px;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    font-size: 16px;
    line-height: 1.3;
}

div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul > li:after {
    /* position: absolute;
    content: '';
    width: 2px;
    height: 2px;
    background: #595959;
    top: 10px;
    left: 0px;  */
}

div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul > li > a span {
    margin-right: 10px;
}
div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul::after{
    display: none;
}


div.schedule ul.scheduleList > li.today {
    border: 1px solid #2E8B57;
    /* box-shadow: 0px 5px 0px rgba(0,0,0,0.05); */
}

div.schedule ul.scheduleList > li.today > div.schDate {
    background-color: #FBF0ED;
    color: #2E8B57;
    font-weight: 700;
}

div.schedule ul.scheduleList > li.today > div.schDate > span {
    color: #231915;
}

div.schedule ul.scheduleList > li.today > div.schCon > div.schBishop > h4 {

}

div.schedule ul.scheduleList > li.today > div.schCon > div.schDiocese > h4 {

}




.scheduleDate { 
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 20px;    
}

.scheduleDate > p {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 5px;
    color: #414040;
    letter-spacing: -0.3px;
}

.scheduleDate > p > span {
    margin-right: 10px;
    padding: 0px 10px 1px;
    font-size: 13px;
    color: #2E8B57;
    border: 1px solid #2E8B57;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.scheduleDate > p:last-of-type{
    margin-bottom: 0;
}

.scheduleTxt {
    position: relative;
    display: block;
    width: 100%;
}
div.bbsViewTop div.bbsTitleInfo{

}
div.bbsViewTop div.bbsTitleInfo > span{
    display: flex;
    align-items: center;
}
div.bbsViewCon{
    padding: 25px 13px;
}



@media screen and (max-width:1220px) {
   
}

@media screen and (max-width:1110px) {
   
}

@media screen and (max-width:1023px) {
    
}
@media screen and (max-width:767px) {

    .scheduleDate > p > span {
        font-size: 14px;
        line-height: 21px;
        padding: 0 7px;
        margin-right: 10px;
        border-radius: 250px;
    }
    div.calendarCon{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    p.btnPlan{
        margin-top: 15px;
    }
    div.calendarCon .responsive_table{
        padding-left: 15px;
        margin-left: -15px;
        width: calc(100% + 30px);
        padding-right: 15px;
    }
    div.calendarCon .calendar_table thead tr th{
        padding: 7px 0;
        font-size: 15px;
    }

    div.calendarCon .calendar_table tbody tr td{
        font-size: 14px;
    }
    div.bbsBottom{
        margin: 0 auto;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    div.calendarCon {
        margin: 30px 0 0;
    }
    div.calendarCon ul.calendarWeek li > span {
        font-size: 20px;
    }
    
    div.calendarCon ul.calendarWeek li > span:nth-child(2) {
        font-size: 14px;
    }
    
    div.calendarCon p.btnPlan > a {
        /* padding: 0px 18px 0px 38px;
        line-height: 31px;
        font-size: 13px;
        border-radius: 36px;
        margin: 15px 0 5px; */
    }
    
    div.calendarCon p.btnPlan > a:after {
        font-size: 14px;
    }
    div.schedule{
        margin-top: 15px;
    }
    div.schedule ul.scheduleList > li {
        margin-bottom: 15px;
    }

    div.schedule ul.scheduleList > li > div.schDate {
        padding: 10px 15px;
        font-size: 15px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    div.schedule ul.scheduleList > li > div.schDate > span {
        display: block;
        width: 100%;
        margin: 0;
        color: #5c5c5c;
        font-size: 14px;
        line-height: 1.2;
    }

    div.schedule ul.scheduleList > li > div.schCon {
        width: 100%;
        margin: 0px;
        padding: 15px;
        flex-direction: column;
        gap: 0;
    }

    div.schedule ul.scheduleList > li > div.schCon:after {
        display: none;
    }
    
    div.schedule ul.scheduleList > li > div.schCon > div.schBox {
        width: 100%;
        padding: 0px 0 0px;        
        font-size: 14px;
    }
    
    div.schedule ul.scheduleList > li > div.schCon > div.schBox:last-child {
        border: none;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #e5e5e5;

    }

    div.schedule ul.scheduleList > li > div.schCon > div.schBox h4 {
        font-size: 16px;
        margin-bottom: 0;
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox h4 + ul li:first-of-type{

    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox.schBishop h4{
        padding-bottom: 0;
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul{
        min-height: 40px;
        /* background-color: orange; */
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox.schBishop > ul > li:first-of-type{
        /* margin-top: 12px; */
        /* background-color: olivedrab; */
    }

    span.schIcon {
        width: 21px;
        height: 21px;
    }

    div.schedule ul.scheduleList > li > div.schCon > div.schDiocese {
        margin-left: 0px;
        padding-bottom: 0px;
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul > li {
        padding: 0 0 0 0px;
        font-size: 15px;
        /* background-color: orangered; */
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul > li a{
        padding-top: 3px;
        display: inline-block;
    }

    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul > li:after {
        top: 9px;
        left: 7px;
    }
    div.calendarCon .calendar_table tbody tr td.today span{
        padding-top: 2px;
        padding-bottom: 2px;
    }
}





/* 마산교구  */
.bbsViewTop h3.viewTitle{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.bbsViewTop span.schIcon{
    margin-right: 0;
    /* transform: translateY(2px); */
}



/* ============================================================
   교구일정 월별 재디자인 (msd-cal-*) — sandbox 이관 7528f8e
   ※ 위 레거시(calendarCon/scheduleList/bbsView 등)는 week/view.php가 계속 사용 → 보존.
      구 month 레거시(monthCon/monBox/schIcon)는 month.php 재작성으로 dead(무해).
   ============================================================ */
div.msd-cal-body {
    position: relative;
    display: block;
    width: 100%;    
    margin-top: 0;
    border-top: 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
}
div.msd-cal-body .in_wrap{
    padding: 0 60px 0 0;   /* 좌측 달력 ↔ 중앙선 여백(데스크탑). aside 폭 breakpoint에 맞춰 단계 축소 */
}

div.msd-cal-body div.msd-cal-aside {
    position: sticky;
    display: block;
    top: 135px;
    width: 464px;      /* 시안: 좌측 고정 너비(vw 스케일 대신 고정). 반응형은 breakpoint로 단계 처리 */
    flex: 0 0 auto;
    padding: 20px;
}

div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;            /* 시안: 년/월 select 사이 10px */
    width: 100%;
    margin: 10px 0;
}

div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav > select {
	min-width:inherit;
	height: 50px;         /* 시안: 높이 50px */
	color:#000;
    padding: 0 42px 0 16px;
    line-height: 48px;
    font-size: 18px;
    border: 1px solid #999;
    border-radius: 3px;
    /* 아이콘: 커스텀 드롭다운(icon_select_arrow.svg) 재활용 + 크게 — church/layout.css의 .msd-parish-search 캐럿과 동일 사이즈 토큰(clamp) */
    background: url(/assets/msd01/image/board/icon_select_arrow.svg) no-repeat right 14px center #FFF !important;
    background-size: clamp(20px, 2.0833vw, 26px) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 3px;
    cursor: pointer;
}

div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav > select#move-year {
    width: 140px;        /* 시안: 년 select 폭 140px */
}
div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav > select#move-month {
    width: 120px;        /* 시안: 년 select 폭 120px */
}

div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini {
    position: relative;
    margin: 20px auto 0;
    padding: 0px;
    width: 100%;
    text-align: center;    
}

div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini  thead th {
    font-family: 'NotoKrM', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 1.53vw, 22px);
    line-height: 1.3636;   /* = 30px ÷ 22px(기준) */
    color: #2c2c2c;
    padding: 5px;  
}

div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini  thead th.sun { color: var(--color-cal-sun); }
div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini  thead th.sat { color: var(--color-cal-sat); }

div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini  tbody td {
    line-height: 29px;
    padding: 6px 5px;
    color: #a1a1a1;
}

div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini  tbody td > span {
    display: block;
    width: 34px;
    height: 31px;
    border-radius: 13px;
}

div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini  tbody td.circle > span {
    background-color: #fff;
    border: 1px dashed var(--color-green-500);
    color: #3c3c3c;
    cursor: pointer;
}

div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini  tbody td.today > span {
    background-color: var(--color-green-500);
    border: 0px;
    color: #FFF;
}

div.msd-cal-body div.msd-cal-list {
    position: relative;
    display: block;
    flex: 1;
    min-width: 0;
    height: auto;
    overflow: auto;
}
/* 좌측 선: border-left 대신 ::before 오버레이(1px 박스 확장 없이 선만 표시) */
div.msd-cal-body div.msd-cal-list::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 1px;
    background: #e5e5e5;
    pointer-events: none;
}

/* 일정 없음(.msd-cal-empty): msd-cal-list 영역 안에서 좌우상하 정중앙 정렬 — flex:1인 msd-cal-list가
   같은 행(msd-cal-aside)만큼 늘어난 높이를 그대로 상속받아 100% 기준이 성립한다(flex stretch로 정의된 높이). */
div.msd-cal-body div.msd-cal-list > div.msd-cal-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

div.msd-cal-body div.msd-cal-list > ul {
    position: relative;
    display: block;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

div.msd-cal-body div.msd-cal-list > ul > li {
    position: relative;
    display: block;
    width: 100%;
    padding: 15px 15px 27px;
    border-bottom: 1px solid #e5e5e5;
}
div.msd-cal-body div.msd-cal-list > ul > li[style*='display: block']:last-of-type{
    border-bottom: 1px solid #e5e5e5 !important;
}

div.msd-cal-body div.msd-cal-list > ul > li.today {
    border-top: 1px solid #5b5b5b;
    border-top: 0;
    z-index: 10;
}

div.msd-cal-body div.msd-cal-list > ul > li:last-child {
    border-bottom: 0px;
}

div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day {
    display: block;
    width: 100%;
    /* height: 45px; */
    background: #f5f5f5;
    color: #000000;
    font-size: 15px;
    padding-left: 20px;
    overflow: hidden;
    line-height: 1.2;
    padding: 15px;
}

div.msd-cal-body div.msd-cal-list > ul > li.today > div.msd-cal-day {
    background-color: #FBF0ED;
    color: var(--color-green-500);
    font-weight: 700;
}

div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span {
    display: inline-block;
    font-size: 15px;
}

div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span:nth-child(2) {
	display: inline-block;
    width: calc(100% - 170px);
    margin-left: 20px;
    color: #3e3e3e;
    font-size: 15px;
    letter-spacing: -0.5px;
}
div.msd-cal-body div.msd-cal-list > ul > li.today > div.msd-cal-day > span:nth-child(2)
{

}

div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-sch {
    position: relative;
    display: block;
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

@media screen and (max-width:1220px) {
   div.msd-cal-body div.msd-cal-aside { width: 420px; }
   div.msd-cal-body .in_wrap { padding-right: 50px; }
   div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td { padding: 4px; }
}

@media screen and (max-width:1110px) {
   div.msd-cal-body div.msd-cal-aside { width: 380px; }
   div.msd-cal-body .in_wrap { padding-right: 40px; }
   div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td { padding: 3px; }
}

@media screen and (max-width:1023px) {
   div.msd-cal-body div.msd-cal-aside { width: 340px; }
   div.msd-cal-body .in_wrap { padding-right: 30px; }
   div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td { padding: 2px; }
}

/* (≤1024 radius override 제거 — span border-radius: 33% 전역 적용으로 크기 무관 라운드사각 유지) */
@media screen and (max-width:767px) {

    .scheduleDate > p > span {
        font-size: 14px;
        line-height: 21px;
        padding: 0 7px;
        margin-right: 10px;
        border-radius: 250px;
    }
    div.msd-cal-body{
        flex-direction: column;
        border-bottom: 0;
    }

    div.msd-cal-body div.msd-cal-aside {
        width: 100%;
        margin: 0 auto;
        max-width: 350px;
    }
    div.msd-cal-body .in_wrap { padding: 0; }   /* 모바일: 세로 스택 → 우측 여백 제거 */

    div.msd-cal-body div.msd-cal-list {
        position: relative;
        display: block;
        float: left;
        width: 100%;
        height: auto;
        border-top: 1px solid #535353;
        overflow: auto;
    }
    div.msd-cal-body div.msd-cal-list::before { display: none; } /* 모바일: 좌측 선 제거(기존 border-left:0 대체) */
    div.calendarCon{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    p.btnPlan{
        margin-top: 15px;
    }
    div.calendarCon .responsive_table{
        padding-left: 15px;
        margin-left: -15px;
        width: calc(100% + 30px);
        padding-right: 15px;
    }
    div.calendarCon .calendar_table thead tr th{
        padding: 7px 0;
        font-size: 15px;
    }

    div.calendarCon .calendar_table tbody tr td{
        font-size: 14px;
    }
    div.bbsBottom{
        margin: 0 auto;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    div.calendarCon {
        margin: 30px 0 0;
    }
    div.calendarCon ul.calendarWeek li > span {
        font-size: 20px;
    }
    
    div.calendarCon ul.calendarWeek li > span:nth-child(2) {
        font-size: 14px;
    }
    
    div.calendarCon p.btnPlan > a {
        /* padding: 0px 18px 0px 38px;
        line-height: 31px;
        font-size: 13px;
        border-radius: 36px;
        margin: 15px 0 5px; */
    }
    
    div.calendarCon p.btnPlan > a:after {
        font-size: 14px;
    }
    div.schedule{
        margin-top: 15px;
    }
    div.schedule ul.scheduleList > li {
        margin-bottom: 15px;
    }

    div.schedule ul.scheduleList > li > div.schDate {
        padding: 10px 15px;
        font-size: 15px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    div.schedule ul.scheduleList > li > div.schDate > span {
        display: block;
        width: 100%;
        margin: 0;
        color: #5c5c5c;
        font-size: 14px;
        line-height: 1.2;
    }

    div.schedule ul.scheduleList > li > div.schCon {
        width: 100%;
        margin: 0px;
        padding: 15px;
        flex-direction: column;
        gap: 0;
    }

    div.schedule ul.scheduleList > li > div.schCon:after {
        display: none;
    }
    
    div.schedule ul.scheduleList > li > div.schCon > div.schBox {
        width: 100%;
        padding: 0px 0 0px;        
        font-size: 14px;
    }
    
    div.schedule ul.scheduleList > li > div.schCon > div.schBox:last-child {
        border: none;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #e5e5e5;

    }

    div.schedule ul.scheduleList > li > div.schCon > div.schBox h4 {
        font-size: 16px;
        margin-bottom: 0;
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox h4 + ul li:first-of-type{

    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox.schBishop h4{
        padding-bottom: 0;
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul{
        min-height: 40px;
        /* background-color: orange; */
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox.schBishop > ul > li:first-of-type{
        /* margin-top: 12px; */
        /* background-color: olivedrab; */
    }

    span.schIcon {
        width: 21px;
        height: 21px;
    }

    div.schedule ul.scheduleList > li > div.schCon > div.schDiocese {
        margin-left: 0px;
        padding-bottom: 0px;
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul > li {
        padding: 0 0 0 0px;
        font-size: 15px;
        /* background-color: orangered; */
    }
    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul > li a{
        padding-top: 3px;
        display: inline-block;
    }

    div.schedule ul.scheduleList > li > div.schCon > div.schBox > ul > li:after {
        top: 9px;
        left: 7px;
    }
    div.msd-cal-body div.msd-cal-list > ul > li[style="display: block;"] {
        border-top: 0;
    }
    div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day{
        padding: 10px 15px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span:first-of-type{
        width: 100%;
    }
    div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span:last-of-type{
        width: 100%;
        margin-left: 0;
        font-size: 13px;
    }
    div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-sch{
        padding-bottom: 14px;
    }
    div.calendarCon .calendar_table tbody tr td.today span{
        padding-top: 2px;
        padding-bottom: 2px;
    }
    div.msd-cal-body div.msd-cal-list > ul > li:last-child{
        border-bottom: 1px solid #e5e5e5;
    }
}

/* ============================================================
   [sandbox 추가] 달력 날짜 클릭 → 포커싱 방식
   기존(필터: 나머지 숨김) 대신, 전체 목록은 유지하고
   해당 날짜 항목으로 스크롤(중앙) + 강조 스타일만 부여.
   ※ 마산 이관 시 이 블록과 subpage.js renderCalendar의
     포커싱 로직을 함께 회수.
   ============================================================ */
div.msd-cal-body div.msd-cal-list > ul > li.is-focus {
    position: relative;
    z-index: 5;
    box-shadow: inset 0 0 0 2px var(--color-green-500);
    border-radius: 4px;
    animation: msdCalFocus 1.2s ease-out 1;
}
div.msd-cal-body div.msd-cal-list > ul > li.is-focus > div.msd-cal-day {
    background-color: #FBF0ED;
    color: var(--color-green-500);
    font-weight: 700;
}
@keyframes msdCalFocus {
    0%   { box-shadow: inset 0 0 0 2px rgba(46,139,87,0.9); background-color: rgba(46,139,87,0.10); }
    100% { box-shadow: inset 0 0 0 2px rgba(46,139,87,0.9); background-color: transparent; }
}

/* ============================================================
   [폰트 규칙 §3 반영] 숫자 전용 요소 = Roboto.
   그 외(요일 한글, 날짜헤더 "07월 05일(일)" 혼재, 전례력 순수한글,
   년/월 셀렉트 "2026년" 혼재)는 body(Pretendard) 상속 유지.
   ※ Figma(297:10409)는 날짜/전례력을 Roboto로 그렸으나, 가이드 §3
     (혼재·한글=Pretendard 우선)에 따라 Pretendard로 둔다.
   ============================================================ */
div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td > span {
    font-family: 'Roboto', sans-serif;   /* 미니달력 날짜 숫자 1~31 */
}

/* ============================================================
   [시안 297:10409 정렬] 우측 컬럼 = 헤더(제목+새로고침+행사표+검색) +
   날짜 band + 카테고리 텍스트 pill + 제목. 기능(포커싱)은 유지.
   카테고리 색은 :root의 --cat-* 토큰 사용(교구/주교/축일/기일).
   ============================================================ */
/* 상단바(전체폭) — msd-cal-body '위'. 제목 flush-left + 우측 도구 */
.msd-cal > div.msd-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; padding: 4px 0 20px;
}
.msd-cal .msd-cal-head__title { display: flex; align-items: center; gap: 10px; }
.msd-cal .msd-cal-head__title > span {
    font-size: clamp(24.9px, 2.43vw, 35px); font-weight: 500; line-height: 1;
    color: var(--color-text); letter-spacing: -0.03em;
}
/* 새로고침 버튼 기본 스타일은 common/layout.css .msd-cal-refresh로 공용화(2026-07-28). 여기선 캘린더 전용 정렬 보정만 잔류. */
.msd-cal .msd-cal-refresh {
    margin: 0;   /* 년월(line-height:1)과 같은 중심선 — .msd-cal-head__title align-items:center (2026-11-09: 기존 상/하 보정 제거, 전 구간 중앙 정렬) */
}
.msd-cal .msd-cal-head__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.msd-cal .msd-cal-plan {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; white-space: nowrap;
    min-width: clamp(142px, 14.03vw, 202px); height: clamp(34px, 3.1944vw, 46px); padding: 0 clamp(12px, 1.3889vw, 20px); border-radius: 60px; /* 시안 202px: 글자 좌·아이콘 우 벌림 */
    background: var(--cat-org); border: 1px solid var(--color-black-10); color: var(--color-white);
    font-size: clamp(15px, 1.25vw, 18px); line-height: 166.667%; font-weight: 600;   /* 글자: 1440=18 → 비례 축소(최소 16), 줄 높이 30/18 */
}
.msd-cal .msd-cal-plan img { width: clamp(16px, 1.3889vw, 20px); height: clamp(14.4px, 1.25vw, 18px); }   /* 아이콘 20×18 → 최소 16×14.4(비율 유지) */
/* 시안(297:10409 / 432:1566): 글자 왼쪽 · 다운로드 아이콘 오른쪽(글자 20px 시작, 아이콘 오른쪽 끝 20px 안쪽) — 마크업은 아이콘이 앞이라 order로 뒤로 (2026-11-11) */
.msd-cal .msd-cal-plan img { order: 2; }
.msd-cal .msd-cal-search {
    position: relative; width: 300px; max-width: 42vw; height: 46px;
    background: #fff; border: 1px solid var(--color-neutral-280); border-radius: 60px;
}
.msd-cal .msd-cal-search input {
    width: 100%; height: 100%; border: 0; background: transparent;
    padding: 0 46px 0 20px; font-size: 16px; color: var(--color-text);
}
.msd-cal .msd-cal-search input::placeholder { color: var(--color-neutral-350); }
.msd-cal .msd-cal-search img {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px;
}
/* 제목 아래 2px 브랜드 라인 */
.msd-cal .msd-cal-line { height: 2px; background: var(--color-brand); margin: 0; }

/* 날짜 band(연녹색) + 전례력 — 기존 회색 바 스타일 override */
div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day {
    display: flex; align-items: center; gap: 20px;
    background: #f3f8f7; border-radius: 16px; padding: 14px 20px; margin: 0 0 12px;
}
div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span.msd-cal-day__date {
    float: none; width: auto; margin: 0; font-weight: 500; font-size: 18px;
    color: var(--color-text); white-space: nowrap;   /* 혼재(한글+숫자) → Pretendard 유지 */
}
div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span.msd-cal-day__lit {
    float: none; width: auto; margin: 0; font-size: 17px;
    color: var(--color-neutral-500); letter-spacing: -0.02em; font-weight: 400;   /* 전례력: 오늘/선택 무관 항상 400 */
}
div.msd-cal-body div.msd-cal-list > ul > li.today > div.msd-cal-day > span.msd-cal-day__date { color: var(--color-green-500); }
div.msd-cal-body div.msd-cal-list > ul > li.today > div.msd-cal-day > span.msd-cal-day__lit { color: #557b44; }

/* 일정 행: 카테고리 pill + 제목 */
div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-sch {
    display: block; padding: 4px 10px;
}
.msd-cal .msd-cal-item { display: flex; align-items: flex-start; gap: clamp(9.96px, 0.972vw, 14px); padding: 5px 0; }
.msd-cal .msd-cal-item__title { color: var(--color-text); font-size: 18px; letter-spacing: -0.02em; line-height: 1.6667; }
.msd-cal .msd-cal-item__title > span { font-family: 'Roboto', sans-serif; margin-right: 6px; }  /* 시간 HH:MM(숫자) */

/* 카테고리 텍스트 pill (아이콘 없음) */
.msd-cal .msd-cal-badge {
    flex: 0 0 auto; min-width: clamp(27.73px, 2.708vw, 39px); height: 23px; padding: 0 clamp(5.69px, 0.556vw, 8px); margin-top: 3px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 30px; font-size: 14px; font-weight: 500; letter-spacing: -0.03em;
}
.msd-cal .msd-cal-badge[data-cat="diocese"]  { background: #f2f8ff; border: 1px solid var(--cat-diocese); color: var(--cat-diocese); }
.msd-cal .msd-cal-badge[data-cat="bishop"]   { background: #fcf4ff; border: 1px solid var(--cat-bishop);  color: var(--cat-bishop); }
.msd-cal .msd-cal-badge[data-cat="feast"]    { background: var(--cat-feast); border: 1px solid #668c00; color: #fff; }
.msd-cal .msd-cal-badge[data-cat="memorial"] { background: #585858; border: 1px solid #000; color: #fff; }
.msd-cal .msd-cal-badge[data-cat="etc"]      { background: var(--color-neutral-100); border: 1px solid var(--color-line); color: var(--color-neutral-600); }

/* 날짜 그룹 구분선(시안 #e8e8e8 ≈ neutral-150) */
div.msd-cal-body div.msd-cal-list > ul > li { border-bottom: 1px solid var(--color-neutral-150); }

/* 포커싱 강조 = 시안 녹색 테두리 박스 (기존 .is-focus override) */
div.msd-cal-body div.msd-cal-list > ul > li.is-focus {
    box-shadow: inset 0 0 0 2px #298f1d; border-radius: 16px;
}
div.msd-cal-body div.msd-cal-list > ul > li.is-focus > div.msd-cal-day { background: #eaf6ea; }

/* ============================================================
   [보정 · 시안 297:10409]
   ① 미니달력 셀: 정사각 + 균등 간격 + radius 16
   ② 오른쪽 리스트 오늘: 흰 배경 + 초록 테두리(박스 확보)
   ③ 선택(포커스): 그림자 X, 헤더만 흰 배경, 일정 개당 초록배경·간격·흰글씨
   ============================================================ */

/* ① 미니달력 셀 — 시안 56×56/radius16/pitch68(간격12·td padding6).
      table-layout:fixed + aspect-ratio 로 aside 폭(≈464)에 맞춰 7칸 정사각 자동 스케일 */
div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini { table-layout: fixed; }
div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td { padding: 6px; font-size: clamp(16px, 1.53vw, 22px); }
div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td > span {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: auto; aspect-ratio: 1; line-height: 1;
    border-radius: 33%; margin: 0 auto;   /* =데스크탑 16/48.6, 크기무관 동일 라운드사각(원 아님) */
}

/* ② 오늘(오른쪽 리스트) = 흰 배경 + 초록 테두리 박스 (글자입력 자리 확보) */
div.msd-cal-body div.msd-cal-list > ul > li.today > div.msd-cal-day {
    background: #fff;
    border: 2px solid #298f1d;
    border-radius: 16px;
}
div.msd-cal-body div.msd-cal-list > ul > li.today > div.msd-cal-sch {
    min-height: 44px;   /* 일정 없어도 입력 자리 미리 확보 */
}

/* ③ 선택(포커스) — li 전체(padding 포함)가 초록 배경. 그림자 아님.
   위/아래 선 유지(위=border-top 추가, 아래=기본 li border-bottom), 좌측 선=list ::before 오버레이 유지 */
div.msd-cal-body div.msd-cal-list > ul > li.is-focus {
    background: #298f1d;
    box-shadow: none;
    animation: none;
    border-radius: 0;
    border-top: 1px solid #e5e5e5;
}
/* 날짜 헤더 = 흰 박스 */
div.msd-cal-body div.msd-cal-list > ul > li.is-focus > div.msd-cal-day {
    background: #fff;
}
/* 일정: 개별 배경 제거(li 전체가 배경), 안의 내용 흰 글씨 */
div.msd-cal-body div.msd-cal-list > ul > li.is-focus > div.msd-cal-sch {
    display: block;
}
div.msd-cal-body div.msd-cal-list > ul > li.is-focus .msd-cal-item {
    background: transparent;
    border-radius: 0;
    padding: 5px 0;
}
div.msd-cal-body div.msd-cal-list > ul > li.is-focus .msd-cal-item .msd-cal-item__title,
div.msd-cal-body div.msd-cal-list > ul > li.is-focus .msd-cal-item .msd-cal-item__title > span {
    color: #fff;
}


/* ============================================================
   [시안 297:10409 정합 · 2026-11-09] 1920 시안 값 = 데스크탑 최대값. (사용자 요청: 폰트·굵기·간격·배경·선·효과 동일)
   ============================================================ */

/* ── 상단바: 년월 ↔ 새로고침 24px, 새로고침 35/아이콘 17, 도구 간격 10, 검색 placeholder Medium·돋보기 우측 18 ── */
/* 새로고침 버튼 = 년월 글자 크기와 1:1(시안 35:35), 아이콘 = 버튼의 약 48.6%(17/35). round()로 정수 px에 맞춰 아이콘이 뭉개지지 않게(미지원 브라우저는 앞 선언 사용) */
.msd-cal .msd-cal-head__title { gap: 16px; --cal-ttl: clamp(24.9px, 2.43vw, 35px); }
.msd-cal .msd-cal-head__title > span { font-size: var(--cal-ttl); }
.msd-cal .msd-cal-head__title { --cal-rf: max(23px, var(--cal-ttl)); }   /* 새로고침 버튼 최소 23px */
.msd-cal .msd-cal-refresh { width: var(--cal-rf); height: var(--cal-rf); width: round(var(--cal-rf), 1px); height: round(var(--cal-rf), 1px); }
.msd-cal .msd-cal-refresh img { width: calc(var(--cal-rf) * .486); height: calc(var(--cal-rf) * .486); width: round(calc(var(--cal-rf) * .486), 1px); height: round(calc(var(--cal-rf) * .486), 1px); }
.msd-cal .msd-cal-head__tools { gap: 10px; flex: 1 1 auto; justify-content: flex-end; }
/* 검색창 최소폭 = placeholder("검색어를 입력하세요." ≈ 8.8em) + 좌우 padding + 테두리 → 좁은 화면에서 돋보기에 가려지지 않고, 자리가 모자라면 다음 줄로 내려가 최대 300px까지 늘어남 */
.msd-cal .msd-cal-search {
    flex: 1 1 300px; max-width: 300px;
    min-width: calc(clamp(14px, calc(0.2972vw + 11.72px), 16px) * 8.9 + clamp(32px, calc(2.08vw + 16.05px), 46px) + clamp(14px, calc(0.9vw + 8px), 21px) + 2px);
}
/* ≤500: 년월+새로고침 한 줄, 검색창은 다음 줄 가로 100% */
/* 검색창을 없앤 뒤: 월간 계획표 다운로드 버튼도 없으면 도구 영역을 통째로 숨겨 제목 아래 빈 줄·간격이 남지 않게 (2026-11-11) */
.msd-cal .msd-cal-head__tools:not(:has(*)) { display: none; }
@media screen and (max-width:500px) {
    .msd-cal .msd-cal-head__title { flex: 0 0 auto; justify-content: flex-start; }   /* 년월+새로고침 좌측 */
    .msd-cal .msd-cal-head__tools { flex: 1 1 auto; width: auto; justify-content: flex-end; flex-wrap: nowrap; }   /* 행사일정표 버튼 우측 — 한 줄에 좌우 나열 */
    .msd-cal .msd-cal-search { flex: 1 1 100%; width: 100%; max-width: none; }
}
@media screen and (max-width:370px) {
    .msd-cal .msd-cal-head__title { flex: 0 0 100%; justify-content: center; }   /* 370 이하: 년월+새로고침 위, 가운데 */
    .msd-cal .msd-cal-head__tools { flex: 0 0 100%; width: 100%; justify-content: center; }   /* 행사일정표 버튼 아래, 가운데 */
}
/* 파란 바(≤767) 노출 구간: 바 ↔ 년월·새로고침 영역 간격 확대 — 상단 여백 4px → 767=16 / 375=10px (2026-11-11) */
@media screen and (max-width:767px) {
    .msd-cal > div.msd-cal-head { padding-top: clamp(10px, calc(1.5306vw + 4.26px), 16px); padding-bottom: clamp(10px, calc(1.0204vw + 6.17px), 14px); }   /* 년월 영역 ↔ 파란 줄·달력 간격 축소 20px → 767=14 / 375=10px */
}
/* 검색창: 세로·글자·돋보기 크기는 다른 게시판 검색(.msd-board-search, common/board.css)과 동일 공식.
   높이 = 글자×line-height 187.5% + 상하 padding×2 + border 2 (1440: 30+14+2=46, 767 이하: 26.25+8+2=36.25) */
.msd-cal .msd-cal-search {
    height: calc(clamp(14px, calc(0.2972vw + 11.72px), 16px) * 1.875 + clamp(4px, calc(0.2972vw + 2.72px), 7px) * 2 + 2px);
}
.msd-cal .msd-cal-search input {
    padding: 0 clamp(32px, calc(2.08vw + 16.05px), 46px) 0 clamp(14px, calc(0.9vw + 8px), 21px);
    font-size: clamp(14px, calc(0.2972vw + 11.72px), 16px); font-weight: 500;
}
.msd-cal .msd-cal-search img {
    right: clamp(10px, calc(0.8vw + 6.5px), 18px);
    width: clamp(16px, calc(1.1887vw + 6.88px), 24px); height: clamp(16px, calc(1.1887vw + 6.88px), 24px);
}

/* ── 좌측 달력(≥768): aside 464 꽉 사용, 선택창 위 40, 요일 30px 줄, 칸 56·간격12(피치 68) ── */
@media screen and (min-width:768px) {
    div.msd-cal-body div.msd-cal-aside { padding: 0 0 40px; }   /* 달력 하단 여백 = 상단(선택창 위) 여백 40 (2026-11-10) */
    div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav { margin: 40px 0 0; }
    div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav > select {
        font-family: 'Roboto', 'Pretendard', sans-serif; font-size: 20px; font-weight: 400; letter-spacing: -0.96px;
        padding: 0 42px 0 13px; background-position: right 12px center !important;
    }
    div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav > select#move-month { padding-left: 15px; }
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini { width: calc(100% + 12px); margin: 30px -6px 0; }
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini thead th {
        font-family: 'Pretendard', sans-serif; font-weight: 500; color: #222; line-height: 30px; padding: 0 0 14px;
    }
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td { color: #bababa; }
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td > span { border-radius: 28.5714%; }
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td.circle > span { border: 1px dashed #777; color: #222; background: #fff; }
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td.today > span { background: #319c00; border: 0; color: #fff; font-weight: 500; }
}

/* ── 우측 일정 목록 ── */
div.msd-cal-body div.msd-cal-list::before { background: #e8e8e8; }
div.msd-cal-body div.msd-cal-list > ul > li { padding: 15px 15px 26px; border-bottom: 1px solid #e8e8e8; }
/* 날짜 띠 높이 = 고정값이 아니라 상하 padding + 글자 줄 수(한 줄 기준 55px = 14.9×2 + 줄높이 25.2). 두 줄·세 줄이어도 상하 여백 유지하며 늘어남 */
div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day { min-height: 0; padding: 14.9px 25px; margin: 0 0 15px; gap: 0; align-items: center; }
div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span.msd-cal-day__date,
div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span.msd-cal-day__lit { line-height: 1.4; }
@media screen and (min-width:768px) {
    div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span.msd-cal-day__date { flex: 0 0 auto; width: 7.5em; }   /* 전례력 시작 위치 고정(시안 x=700 = 18px×7.5=135px). em이라 글자 크기와 함께 비례 */
}
div.msd-cal-body div.msd-cal-list > ul > li.today > div.msd-cal-day { border-width: 1px; }
div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-sch { padding: 0 10px; }
.msd-cal .msd-cal-item { gap: clamp(8px, calc(1.079vw + 3.96px), 15px); padding: 1px 0; }
.msd-cal .msd-cal-item__title { letter-spacing: -0.044em; }
.msd-cal .msd-cal-badge { margin-top: 4px; padding: 0 4px; letter-spacing: -0.057em; }
/* 선택(포커스): 위 겹선 제거, 헤더 radius 10, 일정 간격 동일 */
div.msd-cal-body div.msd-cal-list > ul > li.is-focus { border-top: 0; }
div.msd-cal-body div.msd-cal-list > ul > li.is-focus > div.msd-cal-day { border-radius: 10px; }
div.msd-cal-body div.msd-cal-list > ul > li.is-focus .msd-cal-item { padding: 1px 0; }

/* ============================================================
   교구일정 ≤1024 반응형 비례 조절 (2026-11-09)
   1024(=기존 데스크탑 값) → 375 선형. 최소: 날짜·제목 16px / 카테고리 12px.
   ============================================================ */
@media screen and (max-width:1024px) {
    .msd-cal {
        --cal-lh: clamp(22px, calc(1.233vw + 17.38px), 30px);   /* 일정 제목 줄높이 30→22 */
        --cal-bh: clamp(19px, calc(.616vw + 16.69px), 23px);    /* 카테고리 알약 높이 23→19 */
    }
    /* 상단 년월 + 새로고침: 같은 중심선 정렬 */
    .msd-cal .msd-cal-head__title { gap: clamp(8px, calc(1.233vw + 3.38px), 16px); align-items: center; }
    .msd-cal .msd-cal-head__title { --cal-ttl: clamp(20px, calc(.755vw + 17.17px), 24.9px); }   /* 년월 글자 24.9→20, 새로고침도 같은 값 */
    .msd-cal .msd-cal-head__title > span { line-height: 1; }
    .msd-cal .msd-cal-refresh { margin: 0; }

    /* 요일(일~토) 글자: 20→16 비례 축소 */
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini thead th { font-size: clamp(16px, calc(.616vw + 13.69px), 20px); }

    /* 년·월 셀렉트 글자: 20→16 비례 축소 */
    div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav > select { font-size: clamp(16px, calc(.616vw + 13.69px), 20px); height: clamp(36px, calc(2.157vw + 27.9px), 50px); line-height: normal; }   /* 높이 50→36 비례 */

    /* 좌측 달력 위 년·월 셀렉트: 위 30→16 / 아래(요일 글자까지) 20→8 비례 축소 */
    div.msd-cal-body div.msd-cal-aside { padding-top: 0; padding-bottom: clamp(16px, calc(2.157vw + 7.9px), 30px); }   /* 하단 여백 = 상단(선택창 위) 여백과 동일 비례 */
    div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav { margin: clamp(16px, calc(2.157vw + 7.9px), 30px) 0 clamp(8px, calc(1.849vw + 1.07px), 20px); }
    /* 날짜 칸 사이 간격(가로·세로 동일): 12→4 비례 축소. 칸 크기는 남는 폭에서 자동 계산 */
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini {
        --cal-gap: clamp(4px, calc(1.233vw - .62px), 12px);
        width: calc(100% + var(--cal-gap)); margin-top: 0;
        margin-left: calc(var(--cal-gap) / -2); margin-right: calc(var(--cal-gap) / -2);
    }
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini tbody td { padding: calc(var(--cal-gap) / 2); }
    div.msd-cal-body div.msd-cal-aside > table.msd-cal-mini thead th { padding-top: 0; }

    /* 우측 일정 목록 */
    div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day {
        min-height: 0;
        padding: clamp(12px, calc(1.133vw + 3.3px), 14.9px) clamp(18px, calc(1.079vw + 13.96px), 25px);
        margin-bottom: clamp(8px, calc(1.079vw + 3.96px), 15px);
        border-radius: clamp(8px, calc(1.233vw + 3.38px), 16px);   /* 날짜 띠 라운드 16→8 */
    }
    div.msd-cal-body div.msd-cal-list > ul > li.today > div.msd-cal-day { border-radius: clamp(8px, calc(1.233vw + 3.38px), 16px); }
    div.msd-cal-body div.msd-cal-list > ul > li { padding: clamp(10px, calc(.77vw + 7.11px), 15px) 0 clamp(16px, calc(1.541vw + 10.22px), 26px) clamp(10px, calc(.77vw + 7.11px), 15px); }   /* 우측 여백 0: 날짜 띠가 구분선 끝까지 */
    div.msd-cal-body div.msd-cal-list > ul > li.is-focus > div.msd-cal-day { border-radius: clamp(6px, calc(.616vw + 3.69px), 10px); }
    div.msd-cal-body div.msd-cal-list > ul > li.is-focus { padding-right: clamp(10px, calc(.77vw + 7.11px), 15px); }   /* 선택(초록) 박스: 날짜 띠 우측 여백 = 좌측 여백 */
    div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span.msd-cal-day__date { font-size: clamp(16px, calc(.308vw + 14.84px), 18px); }
    div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day > span.msd-cal-day__lit { font-size: clamp(14px, calc(.462vw + 12.27px), 17px); }
    .msd-cal .msd-cal-item__title { font-size: clamp(16px, calc(.308vw + 14.84px), 18px); line-height: var(--cal-lh); }
    .msd-cal .msd-cal-badge {
        font-size: clamp(12px, calc(.308vw + 10.84px), 14px);
        height: var(--cal-bh);
        margin-top: calc((var(--cal-lh) - var(--cal-bh)) / 2);   /* 제목 첫 줄 중앙 정렬 */
    }
}
/* 태블릿(768~1024): 좌측 달력 영역 : 우측 일정 영역 = 50 : 50 (달력은 영역 폭에 맞춰 자동 스케일) */
@media screen and (min-width:768px) and (max-width:1024px) {
    div.msd-cal-body .in_wrap { flex: 0 0 50%; width: 50%; box-sizing: border-box; }
    div.msd-cal-body div.msd-cal-aside { width: 100%; }
    div.msd-cal-body div.msd-cal-list { flex: 0 0 50%; width: 50%; }
}
/* ≤767: 날짜 띠가 세로 2줄(날짜/전례력) — 높이는 내용 기준 */
@media screen and (max-width:767px) {
    div.msd-cal-body div.msd-cal-list > ul > li { padding-left: 0; padding-right: 0; }   /* 내용(날짜 띠) 좌우 여백 없음 */
    div.msd-cal-body div.msd-cal-list > ul > li.is-focus { padding-left: clamp(10px, calc(.77vw + 7.11px), 15px); padding-right: clamp(10px, calc(.77vw + 7.11px), 15px); }   /* 선택 시에만 좌우 여백 유지 */
    div.msd-cal-body div.msd-cal-aside { width: 100%; max-width: 450px; margin: 0 auto; }   /* 달력 폭 100%, 최대 450px */
    div.msd-cal-body div.msd-cal-aside > div.msd-cal-nav { margin-bottom: clamp(14px, calc(2.04vw + 6.35px), 22px); }   /* 셀렉트 ↔ 달력(요일) 간격 확대: 375=14, 767=22 */
    div.msd-cal-body div.msd-cal-list > ul > li > div.msd-cal-day {
        min-height: 0; gap: clamp(1px, calc(1vw - 2.75px), 5px); align-items: flex-start; text-align: left;   /* 날짜/전례력 상하 배치 → 좌측 정렬, 날짜↔문장 간격 1~5px */
        padding-top: clamp(6px, calc(.765vw + 3.13px), 9px); padding-bottom: clamp(6px, calc(.765vw + 3.13px), 9px);   /* 띠 상하 여백 6~9px */
    }
}

/* ============================================================
   교구일정 상세 본문 (2026-11-10)
   일시·시간·장소 라벨: 16→13px / 내용(값·본문): 20→16px / 항목 간격 10→7px — 1440→375 화면비례
   ============================================================ */
.bbsViewCon .scheduleDate > p {
    font-size: clamp(16px, calc(.3756vw + 14.59px), 20px); line-height: 1.5;
    margin: 0 0 clamp(7px, calc(.2817vw + 5.94px), 10px);
}
.bbsViewCon .scheduleDate > p:last-of-type { margin-bottom: 0; }
.bbsViewCon .scheduleDate > p > span {
    font-size: clamp(13px, calc(.2817vw + 11.94px), 16px); line-height: 1.4;
    padding: 0 .7em 1px; margin-right: .75em; border-radius: 1em;
}
.bbsViewCon .scheduleTxt,
.bbsViewCon .scheduleTxt p,
.bbsViewCon .scheduleTxt li { font-size: clamp(16px, calc(.3756vw + 14.59px), 20px); line-height: 1.6; }
/* 라벨 알약 ↔ 값 정렬: 같은 줄 기준선(baseline)에 맞춤(값이 여러 줄이어도 첫 줄 기준) */
.bbsViewCon .scheduleDate > p { display: flex; align-items: baseline; }
.bbsViewCon .scheduleDate > p > span { flex: 0 0 auto; }
/* 라벨 알약 세로 중앙 = 값 첫 줄 중앙 (값이 여러 줄이어도 첫 줄 기준) — 알약 높이(글자×1.4 + 여백1 + 테두리2)와 줄 높이(값 글자×1.5)로 계산 */
.bbsViewCon .scheduleDate > p {
    --sd-pf: clamp(16px, calc(.3756vw + 14.59px), 20px);
    --sd-lf: clamp(13px, calc(.2817vw + 11.94px), 16px);
    align-items: flex-start;
}
.bbsViewCon .scheduleDate > p > span { margin-top: calc((var(--sd-pf) * 1.5 - (var(--sd-lf) * 1.4 + 3px)) / 2); }

/* 교구일정 상세 하단: 게시판 상세와 동일하게 본문 하단 여백(1440=100 · 767=50 · 375=30)을 두고 하단 네비(.msd-board-view-nav)의 위 간격은 0 */
.bbsViewCon.cal-view-con { padding-bottom: clamp(50px, calc(7.4294vw - 6.98px), 100px); }
@media screen and (max-width:767px) { .bbsViewCon.cal-view-con { padding-bottom: clamp(30px, calc(5.102vw + 10.87px), 50px); } }
.bbsViewCon.cal-view-con + .msd-board-view-nav { margin-top: 0; }
/* 내용↔하단 네비 간격: 게시판 본문은 마지막 문단 아래 여백(p margin-bottom 11.4~16px)이 본문 하단 패딩에 더해져 보임 → 같은 값을 더해 동일하게(1440=115 · 375=41) */
.bbsViewCon.cal-view-con { padding-bottom: calc(clamp(50px, calc(7.4294vw - 6.98px), 100px) + clamp(11.38px, 1.1111vw, 16px)); }
@media screen and (max-width:767px) { .bbsViewCon.cal-view-con { padding-bottom: calc(clamp(30px, calc(5.102vw + 10.87px), 50px) + clamp(11.38px, 1.1111vw, 16px)); } }
/* 교구일정 상세: 일시·시간·장소 값 폰트 = 'Roboto', 'Pretendard', sans-serif (숫자 Roboto·한글 Pretendard) */
.bbsViewCon .scheduleDate > p { font-family: 'Roboto', 'Pretendard', sans-serif; }
