/* ================================================
   TOTAL_today - 오늘의 일정형 latest 스킨
   회색 박스 + 검정 라벨 pill + 오늘 날짜 + 컬러 동그라미 리스트
   (TOTAL_month 톤 계승)
   ================================================ */

.TOTAL_today {
    width: 100%;
    float: left;
    box-sizing: border-box;
}

/* 박스 높이 100% 모드 */
.TOTAL_today.tt-full-height { height: 100%; }
.TOTAL_today.tt-full-height .tt_box {
    height: 100%;
    box-sizing: border-box;
}

/* 회색 박스 */
.TOTAL_today .tt_box {
    width: 100%;
    background: var(--tt-box-bg, #f5f5f5);
    border-radius: var(--tt-box-radius, clamp(12px, calc(0.94vw + 9px), 24px));
    padding: var(--tt-box-padding, clamp(20px, calc(1.56vw + 15px), 35px));
    box-sizing: border-box;
}

/* 박스 헤더 (라벨 + 플러스) */
.TOTAL_today .tt_box_head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--tt-head-mb, clamp(12px, calc(0.63vw + 10px), 20px));
}

/* 라벨 (검정 둥근 pill) */
.TOTAL_today .tt_label {
    display: inline-flex;
    align-items: center;
    padding: var(--tt-label-padding, clamp(6px, calc(0.31vw + 5px), 10px) clamp(12px, calc(0.63vw + 10px), 20px));
    border-radius: var(--tt-label-radius, 100px);
    background: var(--tt-label-bg, #111);
    color: var(--tt-label-color, #fff);
    font-size: var(--tt-label-size, clamp(12px, calc(0.31vw + 11px), 16px));
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1.2;
}

/* + 링크 버튼 */
.TOTAL_today .tt_plus_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(30px, calc(0.94vw + 27px), 42px);
    height: clamp(30px, calc(0.94vw + 27px), 42px);
    border-radius: 50%;
    border: 1.5px solid var(--tt-plus-border, #ccc);
    background: var(--tt-plus-bg, transparent);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
}
.TOTAL_today .tt_plus_btn:hover {
    background: var(--tt-plus-hover-bg, #000);
    border-color: var(--tt-plus-hover-bg, #000);
}
.TOTAL_today .tt_plus_btn:hover .tt_plus_icon { transform: rotate(180deg); }
.TOTAL_today .tt_plus_btn:hover .tt_plus_icon::before,
.TOTAL_today .tt_plus_btn:hover .tt_plus_icon::after {
    background: var(--tt-plus-hover-color, #fff);
}
.TOTAL_today .tt_plus_btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}
.TOTAL_today .tt_plus_icon {
    position: relative;
    width: clamp(12px, calc(0.47vw + 10.5px), 18px);
    height: clamp(12px, calc(0.47vw + 10.5px), 18px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
}
.TOTAL_today .tt_plus_icon::before,
.TOTAL_today .tt_plus_icon::after {
    content: '';
    position: absolute;
    background: var(--tt-plus-color, #555);
    transition: background 0.25s ease;
}
.TOTAL_today .tt_plus_icon::before {
    width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%);
}
.TOTAL_today .tt_plus_icon::after {
    width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%);
}

/* ★ 오늘 날짜 헤더 */
.TOTAL_today .tt_today_date {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: var(--tt-date-mb, clamp(12px, calc(0.78vw + 9.5px), 22px));
    padding-bottom: var(--tt-date-pb, clamp(10px, calc(0.63vw + 8px), 18px));
    border-bottom: 1px solid var(--tt-date-line, rgba(0,0,0,0.08));
}
.TOTAL_today .tt_today_num {
    font-size: var(--tt-date-size, clamp(18px, calc(0.78vw + 15.5px), 28px));
    color: var(--tt-date-color, #111);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.TOTAL_today .tt_today_dow {
    font-size: var(--tt-dow-size, clamp(13px, calc(0.31vw + 12px), 17px));
    color: var(--tt-date-color, #888);
    font-weight: 600;
    line-height: 1.2;
}

/* 행 리스트 */
.TOTAL_today .tt_list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.TOTAL_today .tt_item {
    width: 100%;
    padding: var(--tt-row-gap, clamp(8px, calc(0.31vw + 7px), 12px)) 0;
    box-sizing: border-box;
}
.TOTAL_today .tt_item:first-child { padding-top: 0; }
.TOTAL_today .tt_item:last-child  { padding-bottom: 0; }

/* 구분선 모드 */
.TOTAL_today .tt_box.tt-has-divider .tt_item + .tt_item {
    border-top: 1px solid var(--tt-divider-color, rgba(0,0,0,0.08));
    padding-top: calc(var(--tt-row-gap, clamp(8px, calc(0.31vw + 7px), 12px)) + 2px);
}

/* 링크 (행 전체 클릭) */
.TOTAL_today .tt_link {
    display: flex;
    align-items: center;
    gap: clamp(8px, calc(0.47vw + 6.5px), 14px);
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}
.TOTAL_today .tt_link:hover { opacity: 0.7; }
.TOTAL_today .tt_link:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ★ 일정 컬러 동그라미 */
.TOTAL_today .tt_dot {
    flex: 0 0 auto;
    width: var(--tt-dot-size, clamp(8px, calc(0.16vw + 7.5px), 10px));
    height: var(--tt-dot-size, clamp(8px, calc(0.16vw + 7.5px), 10px));
    border-radius: 50%;
    background: var(--tt-dot-default, #2196f3);
    display: inline-block;
}

/* 제목 */
.TOTAL_today .tt_title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--tt-title-size, clamp(14px, calc(0.31vw + 13px), 18px));
    color: var(--tt-title-color, #222);
    font-weight: var(--tt-title-weight, 500);
    letter-spacing: -0.3px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 빈 상태 */
.TOTAL_today .tt_empty {
    margin: 0;
    padding: clamp(14px, calc(0.78vw + 11.5px), 24px) 0;
    text-align: center;
    color: #999;
    font-size: clamp(13px, calc(0.16vw + 12.5px), 15px);
}

/* ================================================
   모바일
   ================================================ */
@media only all and (max-width: 767px) {
    .TOTAL_today .tt_box_head { margin-bottom: 12px; }
    /* ★ 모바일에서도 설정값(변수)을 우선 — 비어있으면 기존 모바일 폴백값 사용 */
    .TOTAL_today .tt_label { padding: var(--tt-label-padding, 5px 12px); font-size: var(--tt-label-size, 12px); }
    .TOTAL_today .tt_today_num { font-size: var(--tt-date-size, 18px); }
    .TOTAL_today .tt_today_dow { font-size: var(--tt-dow-size, 13px); }
    .TOTAL_today .tt_link { gap: 8px; }
    .TOTAL_today .tt_title { font-size: var(--tt-title-size, 14px); }
}
