/* ...existing code... */
:root {
    --bg: #f5f9f8;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #f7bdb5;
    /* banner tint */
    --primary: #0b72ff;
    --container: 1100px;
    --soft-gray: rgba(128, 128, 128, 0.05);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: #07122a
}

/* container centering */
.container {
    width: 94%;
    max-width: var(--container);
    margin: 0 auto
}

.hidden {
    display: none !important;
}

header a {
    text-decoration: none;
    color: inherit;
}


/* --- 스위치 버튼 --- */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 8px;
    display: inline-flex;
    position: relative;
}

.toggle-btn {
    padding: 16px 48px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #78716c;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem; /* 0.7rem → 1.1rem */
}

/* 활성화 상태 스타일 */
.toggle-btn.active {
    /* background-color: white;
    color: var(--stone-800);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); */

    background-color: white;
    color: #b45309;
    /* amber-700 (구축 색상) */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-btn.active[data-type="new"] {
    color: #0369a1;
    /* sky-700 */
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(11, 18, 49, 0.04);
    position: sticky;
    top: 0;
    z-index: 40
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0
}

.logo {
    font-weight: 700;
    color: #b02f2f;
    font-size: 1.5rem /* 18px → 1.5rem (24px) */
}

.top-nav {
    display: flex;
    margin-left: auto; 
    display: flex; 
    align-items: center; 
    gap: 18px;
}

.top-nav .nav-item {
    color: #213047;
    text-decoration: none;
    font-size: 1.1rem; /* 14px → 1.1rem */
}

.top-nav form {
    display: inline; 
    margin: 0;
}

.user-area {
    margin-left: auto;
    color: #666;
    font-size: 1.0rem /* 13px → 1.0rem */
}


/* Diagram area */

.diagram-container {
    position: relative;
    margin: 50px auto;
    border-radius: 12px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 8px 30px rgba(11, 18, 49, 0.08);
    width: 80%; /* 40% → 80% */
    max-width: 1400px; /* 최대 너비 추가 */
}

.diagram-image {
    display: block;
    width: 100%;
    height: auto;
}

/* hotspot (기존 스타일 보강) */
.hotspot {
    position: absolute;
    border: 2px solid rgba(128, 128, 128, 0.12);
    /* 연한 회색 테두리 */
    background-color: rgba(128, 128, 128, 0.03);
    /* 3% 회색 배경 */
    border-radius: 6px;
}

/* tooltip 스타일 */
.tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: -8px;
    transform: translateY(-100%);

    background: #fff;
    border: 1px solid rgba(11, 18, 49, 0.06);
    padding: 16px; /* 10px → 16px */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(11, 18, 49, 0.12);
    width: 320px; /* 220px → 320px */
    font-size: 15px; /* 13px → 15px */
    color: #12243b;
    z-index: 9999;
}

.hotspot:hover .tooltip {
    display: block;
}

/* 클릭으로 고정되는 상태 */
.hotspot.open .tooltip {
    display: block !important;
    /* pointer-events 유지(툴팁 내부 클릭 지원) */
    pointer-events: auto;
}


.tooltip-3 {
    display: none;
    position: absolute;
    left: 0;
    top: -8px;
    transform: translateY(-100%);

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.t3-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tooltip-title {
    font-size: 1.0rem;
    font-weight: 700;
}

.tooltip-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}



.tooltip-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.tooltip a {
    text-decoration: none;
    color: inherit;
}

.tooltip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}




@media(max-width:640px) {

    .header-inner {
        padding: 10px 0
    }

}