@import url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/nanumsquare.css");

.pg-wrap {
    --pg-navy: #283673;
    --pg-navy-hover: #3b4b92;
    --pg-cyan: #00a9e8;
    --pg-cyan-hover: #31bdf0;
    --pg-blue: #0a6fbd;
    --pg-blue-hover: #2a86cf;
    --pg-light: #6290c2;
    --pg-light-hover: #79a3d0;
    --pg-red: #d9241f;
    --pg-text: #1f2329;
    --pg-sub: #4a5059;
    --pg-line: #d6d9df;
    --pg-dash: #e3e5ea;

    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 40px;
    font-family: 'NanumSquare', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: var(--pg-text);
    line-height: 1.4em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.pg-wrap *,
.pg-wrap *::before,
.pg-wrap *::after {
    box-sizing: border-box;
}

.pg-wrap sup {
    font-size: 0.68em;
    line-height: 0;
    vertical-align: super;
    margin-left: 1px;
}

/* ----- 날짜 탭 (regist_info 페이지 3.css의 탭과 동일) ----- */
.pg-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.125rem;
    margin: 0.5rem 0 16px;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: .125rem .125rem 0 0;
}

.pg-tab {
    position: relative;
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 3.125rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(100, 100, 100, 0.2);
    outline: none;
    background: transparent;
    background-image: linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, 0.2) 100%);
    font-family: 'nskr', 'Noto Sans KR', sans-serif;
    font-size: 1.25rem;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s ease;
}

/* 마우스 오버 시 위에서 내려오는 파란 배경 */
.pg-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-image: linear-gradient(135deg, #3872ab 0%, #3872ab 100%);
    transition: 0.3s ease-in-out;
    z-index: 2;
}

.pg-tab:hover::before {
    height: 100%;
    bottom: 0;
}

.pg-tab.is-active {
    z-index: 3;
    height: 3.75rem;
    border-left: 0;
    border-right: 0;
    background-color: #fff;
    color: #3a7269;
    font-weight: 600;
}

.pg-tab.is-active::before {
    height: .3125rem;
}

.pg-tab span {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    opacity: 0.6;
    z-index: 2;
    transition: 0.5s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    font-weight: 600;
    color: #0c1631;
}

/* 뒤에서 위로 흘러가는 큰 글씨 */
.pg-tab span::before {
    content: attr(data-title);
    position: absolute;
    top: 110%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.1;
    font-size: 40px;
    font-weight: 600;
    color: #0c1631;
    transition: 1s ease-out;
    z-index: -1;
}

.pg-tab:hover span {
    color: #fff;
    opacity: 1;
}

.pg-tab:hover span::before {
    top: -80%;
}

.pg-tab.is-active span,
.pg-tab.is-active:hover span {
    opacity: 1;
    z-index: 3;
    background: linear-gradient(135deg, #24909f 0%, #5db6ce 100%);
    -webkit-background-clip: text;
    color: #0c1631;
}

.pg-tab:focus-visible {
    outline: 3px solid #ffb400;
    outline-offset: -3px;
}

@media screen and (max-width: 512px) {
    .pg-tabs,
    .pg-tab {
        height: 1.875rem;
    }

    .pg-tab {
        font-size: 1rem;
    }

    .pg-tab.is-active {
        height: 2.5rem;
    }

    .pg-tab span::before {
        display: none;
    }

    .pg-tab:hover span {
        opacity: 0.6;
    }
}

/* ----- 상단 버튼 ----- */
.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--pg-navy);
    border-radius: 4px;
    background: #fff;
    color: var(--pg-navy);
    font: inherit;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.pg-btn:hover {
    background: var(--pg-navy);
    color: #fff;
}

.pg-btn--fill {
    background: var(--pg-navy);
    color: #fff;
}

.pg-btn--fill:hover {
    background: var(--pg-navy-hover);
    border-color: var(--pg-navy-hover);
}

.pg-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 16px;
}

/* ----- 날짜 패널 ----- */
.pg-day {
    display: none;
}

.pg-day.is-active {
    display: block;
    animation: pg-fade .35s ease;
}

@keyframes pg-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.pg-day__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 14px;
    padding: 18px 22px;
    background: linear-gradient(120deg, #1d2645 0%, #26325a 60%, #3f6ea8 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pg-day__title small {
    font-size: 0.8em;
    font-weight: 600;
}

/* ----- 공통 행 (시간 + 제목) ----- */
.pg-row,
.pg-session__head {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 10px 18px;
    border: 0;
    text-align: left;
    font: inherit;
}

.pg-time {
    font-size: 1em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pg-label {
    font-size: 1.04em;
    font-weight: 600;
}

.pg-dur {
    font-weight: 400;
}

.pg-chair {
    font-size: 1em;
    font-weight: 600;
    text-align: right;
}

/* 등록·개회 등 정보 행 */
.pg-row--info {
    background: var(--pg-light);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}

/* 휴식·식사 행 */
.pg-row--break {
    background: #fff;
    border-bottom: 1px solid var(--pg-line);
}

.pg-row--break .pg-label {
    color: var(--pg-red);
    font-size: 1.1rem;
    font-weight: 900;
}

.pg-row--break .pg-dur {
    color: var(--pg-text);
    font-size: 0.95em;
}

/* ----- 세션 아코디언 ----- */
.pg-session {
    border-bottom: 1px solid var(--pg-line);
}

.pg-session__head {
    background: var(--pg-navy);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s;
}

.pg-session__head:hover {
    background: var(--pg-navy-hover);
}

.pg-session__head:focus-visible {
    outline: 3px solid #ffb400;
    outline-offset: -3px;
}

.pg-session--lecture .pg-session__head { background: var(--pg-cyan); }
.pg-session--lecture .pg-session__head:hover { background: var(--pg-cyan-hover); }
.pg-session--symposium .pg-session__head { background: var(--pg-blue); }
.pg-session--symposium .pg-session__head:hover { background: var(--pg-blue-hover); }
.pg-session--info .pg-session__head { background: var(--pg-light); }
.pg-session--info .pg-session__head:hover { background: var(--pg-light-hover); }
.pg-session--poster .pg-session__head { background: var(--pg-navy); }

.pg-arrow {
    position: relative;
    width: 26px;
    height: 26px;
    border: 1.5px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    flex-shrink: 0;
}

.pg-arrow::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 8px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-135deg);
    transform-origin: 60% 60%;
    transition: transform .3s;
}

.pg-session.is-closed .pg-arrow::before {
    transform: rotate(45deg);
}

.pg-session__body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .35s ease;
}

.pg-session.is-closed .pg-session__body {
    grid-template-rows: 0fr;
}

.pg-session__inner {
    min-height: 0;
    overflow: hidden;
}

.pg-session.is-closed .pg-session__inner {
    visibility: hidden;
    transition: visibility 0s .35s;
}

/* ----- 연제 ----- */
.pg-talks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-talk {
    padding: 14px 18px;
    border-top: 1px solid var(--pg-dash);
}

.pg-talk:first-child {
    border-top: 0;
}

.pg-talk__title {
    display: flex;
    margin: 0;
    font-size: 1em;
    font-weight: 600;
}

.pg-no {
    flex: 0 0 auto;
    min-width: 1.6em;
    padding-right: 4px;
}

.pg-talk__author {
    margin: 6px 0 0;
    text-align: right;
    font-size: 1em;
}

.pg-aff {
    color: var(--pg-sub);
}

.pg-talk__author b {
    font-size: 1.1em;
    font-weight: 800;
}

.pg-line {
    display: block;
}

/* ===== 반응형 ===== */
@media (max-width: 940px) {
    .pg-wrap {
        padding: 16px 16px 32px;
        font-size: 0.95em;
    }
}

@media (max-width: 645px) {
    .pg-wrap {
        font-size: 0.89em;
    }

    .pg-btn {
        padding: 6px 10px;
    }

    .pg-day__title {
        padding: 14px 16px;
        font-size: 1.4em;
    }

    .pg-row,
    .pg-session__head {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "time arrow"
            "label arrow"
            "chair arrow";
        row-gap: 2px;
        padding: 10px 14px;
    }

    .pg-time { grid-area: time; }
    .pg-label { grid-area: label; }
    .pg-chair { grid-area: chair; text-align: left; }
    .pg-arrow { grid-area: arrow; }

    .pg-talk {
        padding: 12px 14px;
    }

    .pg-talk__author {
        padding-left: 1.6em;
        text-align: left;
    }
}

@media print {
    .pg-actions, .pg-tabs { display: none; }
    .pg-day { display: block; }
    .pg-session.is-closed .pg-session__body { grid-template-rows: 1fr; }
    .pg-session.is-closed .pg-session__inner { visibility: visible; }
    .pg-arrow { display: none; }
}