/* bylaw_public 전용 스타일 */

/* ===== 레이아웃 ===== */
.bylaw_public_body {
    all: unset;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #f5f6fa;
}

.bylaw_pub_container {
    width: 100%;
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 56px; /* nav 높이만큼 여백 */
}

.bylaw_pub_main {
    position: relative;
    width: 800px;
    max-width: 100%;
    padding: 60px 0 120px 0;
    display: flex;
    flex-direction: column;
    gap: 70px;
    background-color: white;
    border-radius: 12px;
    padding: 60px 48px 120px 48px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* ===== 네비게이션 ===== */
.bylaw_pub_nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: white;
    border-bottom: 1px solid var(--outlineColor);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.bylaw_pub_nav_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.bylaw_pub_nav_logo {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}
.bylaw_pub_nav_logo_img {
    height: 24px;
}
.bylaw_pub_nav_logo_text {
    font-weight: 700;
    font-size: 15px;
    color: var(--mainColor);
    letter-spacing: -0.3px;
}

.bylaw_pub_nav_actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bylaw_pub_nav_btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
    color: var(--mainColor);
    fill: var(--mainColor);
    user-select: none;
    white-space: nowrap;
}

.bylaw_pub_nav_btn:hover {
    background-color: #f0f4ff;
}

.bylaw_pub_nav_btn_cta {
    background-color: var(--subColor);
    color: white;
    fill: white;
}

.bylaw_pub_nav_btn_cta:hover {
    background-color: var(--mainColor);
}

/* 검색 활성 상태 */
.bylaw_pub_nav_btn_active {
    background-color: #e8eeff;
    color: var(--subColor);
    fill: var(--subColor);
}

/* ===== 검색 드롭다운 ===== */
.bylaw_pub_search_box {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid var(--outlineColor);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px 20px 16px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bylaw_pub_search_input_wrap {
    display: flex;
    align-items: center;
}

.bylaw_pub_search_input {
    all: unset;
    width: 100%;
    max-width: 500px;
    border: 1.5px solid var(--subColor);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    box-sizing: border-box;
}

.bylaw_pub_search_input:focus {
    outline: none;
    border-color: var(--mainColor);
}

.bylaw_pub_search_result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
    max-width: 500px;
}

.bylaw_pub_search_placeholder {
    color: grey;
    font-size: 13px;
    padding: 6px 2px;
}

.bylaw_pub_search_item {
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background-color 0.1s;
}

.bylaw_pub_search_item:hover {
    background-color: #f0f4ff;
}

.bylaw_pub_search_item_name {
    font-weight: 600;
    color: var(--mainColor);
}

.bylaw_pub_search_item_date {
    font-size: 12px;
    color: grey;
}

.bylaw_pub_search_loading {
    color: grey;
    font-size: 13px;
    padding: 6px 2px;
}

.bylaw_pub_search_empty {
    color: grey;
    font-size: 13px;
    padding: 6px 2px;
}

/* ===== 하단 CTA ===== */
.bylaw_pub_bottom_cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 0 20px 0;
    border-top: 1px solid var(--outlineColor);
}

.bylaw_pub_bottom_cta_text {
    font-size: 15px;
    color: grey;
    text-align: center;
}

.bylaw_pub_bottom_cta_btn {
    background-color: var(--subColor);
    color: white;
    font-weight: 900;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.bylaw_pub_bottom_cta_btn:hover {
    background-color: var(--mainColor);
}

/* ===== 유틸 ===== */
.bylaw_pub_hidden {
    display: none !important;
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 680px) {
    .bylaw_pub_main {
        padding: 40px 20px 80px 20px;
    }
    .bylaw_pub_nav_btn span {
        display: none;
    }
    .bylaw_pub_nav_btn {
        padding: 6px 8px;
    }
}
