/*
 * CSP shared layout styles for siteHeader/footer fragments.
 * Used by newMain and member pages that share the portal shell.
 */
html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: #111;
    font-family: Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    background: #fff;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.csp-wrap {
    min-width: 0;
}

.csp-content {
    min-height: 400px;
}

/* 포털 본문 헤더: 배경은 전체 폭, 제목·경로만 내부 .w_custom 폭을 따른다.
 * 헤더를 .w_custom 안에 넣지 않고 #container 또는 .csp-content 바로 아래에 둔다.
 * 100vw를 사용하지 않아 세로 스크롤바가 있는 화면에도 가로 스크롤이 생기지 않는다. */
#wrap #container > .sub_top,
#wrap .csp-content > .sub_top {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

/* 퍼블의 노트북 퀵메뉴 여백(#container .w_custom)을 회원 화면 헤더에도 동일 적용한다. */
@media (min-width: 1441px) and (max-width: 1680px) {
    #wrap .csp-content > .sub_top > .w_custom {
        width: calc(100% - 192px);
    }
}

.fragment-area {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

.fragment-label {
    display: none;
}

.fragment-site-header {
    background: #fff;
}

.fragment-gnb {
    background: transparent;
}

.fragment-content {
    background: var(--gray-0, #fff);
}

.fragment-footer {
    background: #dfe6f2;
}

.fragment-loading {
    background: transparent;
}

.site-header {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.site-header-dim {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, .55);
    pointer-events: none;
    z-index: 35;
}

.site-header.is-menu-overlay-open .site-header-dim {
    display: block;
}

.fragment-site-header.site-header {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d9d9d9;
}

.site-header-bar {
    position: relative;
    width: 100%;
    background: #fff;
    z-index: 60;
}

.site-header-inner {
    display: flex;
    align-items: center;
    max-width: 1280px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 28px;
    box-sizing: border-box;
}

.site-logo {
    flex: 0 0 auto;
    margin: 0;
    min-width: 170px;
    font-size: 0;
}

.site-logo a {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.logo-text-small {
    font-size: 0.875rem;
    font-weight: 700;
    color: #222;
}

.logo-text-main {
    font-size: 1.1875rem;
    font-weight: 800;
    color: #1f6eea;
}

.gnb {
    flex: 1 1 auto;
    min-width: 0;
}

.site-header .fragment-gnb {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.site-header .fragment-gnb .fragment-label {
    display: none;
}

.gnb-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gnb-item {
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
}

.gnb-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-bottom-color: #d9dfe7;
    background: transparent;
    color: #111827;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.gnb-link:hover,
.gnb-link:focus {
    color: #111827;
    background: #f6f8fb;
    text-decoration: none;
}

.gnb-item.is-active .gnb-link {
    border-color: #d6dee8;
    border-bottom-color: #d6dee8;
    background: #dfe9f3;
    color: #111827;
}

.gnb-arrow {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.gnb-item.is-active .gnb-arrow {
    transform: rotate(225deg);
}

.site-util {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.75rem;
}

.util-link,
.util-button {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.util-link:hover,
.util-link:focus,
.util-button:hover,
.util-button:focus {
    color: #1f6eea;
    text-decoration: none;
}

.util-logout-form {
    display: inline-flex;
    margin: 0;
}

.util-language,
.util-screen {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 8px;
    border-left: 1px solid #ddd;
}

.language-list,
.screen-list {
    position: absolute;
    top: 100%;
    min-width: 120px;
    margin: 4px 0 0;
    padding: 8px;
    border: 1px solid #ddd;
    background: #fff;
    list-style: none;
    z-index: 50;
}

.language-list {
    left: 0;
}

.screen-list {
    right: 0;
    min-width: 130px;
}

.language-list[hidden],
.screen-list[hidden],
.gnb-mega[hidden],
.gnb-mega-section[hidden],
.all-menu-panel[hidden] {
    display: none !important;
}

.language-list a,
.screen-list button {
    display: block;
    width: 100%;
    padding: 4px 6px;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 0.75rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.language-list a:hover,
.language-list a:focus,
.screen-list button:hover,
.screen-list button:focus,
.screen-list .is-current {
    color: #1f6eea;
}

.screen-list .is-current {
    font-weight: 700;
}

.screen-list .screen-reset {
    margin-top: 4px;
    border-top: 1px solid #eee;
    color: #666;
}

.util-search-button,
.util-all-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    line-height: 1;
    cursor: pointer;
}

.util-search-button {
    width: 28px;
    height: 28px;
    background: transparent;
    font-size: 1.25rem;
}

.util-all-menu-button {
    width: 36px;
    height: 36px;
    background: #1769e0;
    color: #fff;
    font-size: 1.375rem;
}

.gnb-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    margin-top: 0;
    box-shadow: 0 14px 24px rgba(0, 0, 0, .12);
    border-bottom: 1px solid #d9d9d9;
    background: #fff;
}

.gnb-mega-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 14px 34px;
    box-sizing: border-box;
}

.gnb-mega-title-area {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid #1f2937;
}

.gnb-mega-title {
    margin: 0;
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
}

.gnb-mega-desc {
    margin: 0 0 3px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #333;
}

.gnb-mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 64px;
    row-gap: 28px;
}

.gnb-mega-menu-card {
    min-width: 0;
}

.gnb-mega-menu-title {
    display: inline-block;
    margin-bottom: 8px;
    color: #111;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.gnb-mega-menu-title:hover,
.gnb-mega-menu-title:focus {
    color: #1f6eea;
    text-decoration: none;
}

.gnb-mega-menu-desc {
    margin: 0;
    color: #222;
    font-size: 0.8125rem;
    line-height: 1.5;
    word-break: keep-all;
}

.gnb-mega-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.gnb-mega-link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #9db8e8;
    background: #fff;
    color: #1f4f9f;
    font-size: 0.75rem;
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
}

.gnb-mega-link-list a:hover,
.gnb-mega-link-list a:focus {
    border-color: #1f6eea;
    background: #f4f8ff;
    color: #1f6eea;
    text-decoration: none;
}

.gnb-mega-close,
.all-menu-close {
    position: absolute;
    right: 14px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 0.8125rem;
    cursor: pointer;
}

.gnb-mega-close {
    top: 18px;
}

.all-menu-close {
    top: 12px;
}

.gnb-mega-close:hover,
.gnb-mega-close:focus,
.all-menu-close:hover,
.all-menu-close:focus {
    color: #1f6eea;
    text-decoration: underline;
}

.all-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 45;
    box-shadow: 0 14px 24px rgba(0, 0, 0, .12);
    border-bottom: 1px solid #d9d9d9;
    background: #fff;
}

.all-menu-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 14px 28px;
    box-sizing: border-box;
}

.all-menu-row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.all-menu-title {
    flex: 0 0 180px;
    margin: 0;
    color: #111;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.all-menu-list {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.all-menu-list a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid #999;
    background: #f8f8f8;
    color: #111;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.all-menu-list a:hover,
.all-menu-list a:focus {
    border-color: #1f6eea;
    background: #f4f8ff;
    color: #1f6eea;
    text-decoration: none;
}

.site-footer {
    width: 100%;
}

.fragment-footer.site-footer {
    margin: 0;
    padding: 32px 10px 24px;
    border-top: 1px solid #c7d2e3;
    background: #dfe6f2;
}

.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    min-height: 170px;
    box-sizing: border-box;
}

.footer-left {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px 8px;
    box-sizing: border-box;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-brand-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.footer-brand-logo-image {
    display: block;
    height: 100%;
    width: auto;
}

.footer-brand-text {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-brand-klis {
    color: #6f6f6f;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-address,
.footer-contact {
    color: #4d4d4d;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-address {
    margin: 0 0 16px;
    font-style: normal;
}

.footer-contact {
    margin: 0 0 22px;
}

.footer-contact-email {
    margin-left: 8px;
    color: #444;
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #111;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #1f6eea;
    text-decoration: underline;
}

.footer-link-divider {
    color: #666;
    font-size: 0.875rem;
    line-height: 1;
}

.footer-right {
    flex: 0 0 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 170px;
    padding: 8px 8px 8px 0;
    box-sizing: border-box;
    text-align: center;
}

.footer-extra {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    width: 100%;
    margin: 2px 0 18px;
}

.footer-accessibility,
.footer-qr {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-accessibility-mark {
    width: 96px;
    height: 76px;
    border: 1px solid #999;
    border-radius: 50%;
    background: #f5f5f5;
    box-sizing: border-box;
}

.footer-qr-box {
    width: 88px;
    height: 88px;
    border: 1px solid #888;
    background: #fff;
    box-sizing: border-box;
}

.footer-copy {
    margin: 0;
    color: #333;
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
}

.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/*.login-page {
    padding-bottom: 56px;
    background:var(--gray-5);
}*/

.login-heading {
    padding: 18px 24px 16px;
    background: #dfeaf7;
    box-sizing: border-box;
}

.login-heading,
.login-tabs {
    width: 100%;
}

.login-breadcrumb {
    max-width: 1280px;
    margin: 0 auto 10px;
}

.login-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 0.8125rem;
    list-style: none;
}

.login-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.login-breadcrumb li::after {
    content: ">";
    margin-left: 6px;
    color: #999;
}

.login-breadcrumb li:last-child::after {
    content: "";
    margin-left: 0;
}

.login-breadcrumb a,
.login-breadcrumb span {
    color: #666;
    text-decoration: none;
}

.login-breadcrumb li:first-child a::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 13px;
    margin-right: 5px;
    background: #aaa;
    clip-path: polygon(50% 0, 100% 42%, 84% 42%, 84% 100%, 58% 100%, 58% 64%, 42% 64%, 42% 100%, 16% 100%, 16% 42%, 0 42%);
    vertical-align: -2px;
}

.login-title {
    max-width: 1280px;
    margin: 0 auto;
    color: #000;
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.25;
}

/* 스크롤 중에도 브라우저가 퀵메뉴의 화면 위치를 유지한다. */
.ft_quick.is-csp-floating-quick {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    transition: none;
    /* 메뉴 사이의 투명 여백이 본문 입력·등록 버튼 클릭을 가로채지 않도록 한다. */
    pointer-events: none;
}

.ft_quick.is-csp-floating-quick > * {
    pointer-events: auto;
}

/*
 * 퀵메뉴 z-index.
 * 퍼블 custom.css:955 는 .ft_quick 에 z-index:6 을 준다. 속성 선택자로 특이도(0,2,0)를 올려,
 * 상위 래퍼(#wrap · .csp-wrap)가 페이지마다 달라도 같은 값이 적용되게 한다.
 * 값 10 은 헤더(#header 10 · #wrap #header 100) 아래이며, 전체메뉴(.all_cate) dim 이 열리면
 * 퀵메뉴도 함께 가려진다. 모바일 퀵 시트 .quick_layer(9999)보다도 낮다.
 */
.ft_quick[data-csp-floating-quick] {
    z-index: 10;
}

/* 좁은 데스크톱에서 회원 게시글 등록 버튼이 실제 퀵메뉴 링크 밑으로 들어가지 않게 한다. */
@media (min-width: 861px) and (max-width: 1640px) {
    #reviewForm .form_btns,
    #opinionForm .form_btns {
        padding-inline-end: 120px;
    }
}

/* ============================================================
   로그인 본화면 — 퍼블 member_login_* 디자인 이식 (마크업·클래스는 개발 템플릿 그대로 유지)
   회색 박스(.login-tabs) 안에 밑줄 탭 → 흰 패널(.login-panel).
   아이디 로그인은 입력 2줄 + 오른쪽 큰 로그인 버튼의 2열 폼이다.
   ============================================================ */
.login-page .login-tabs {
    width: calc(100% - 32px);
    max-width: 720px;
    margin: 40px auto 0;
    padding: 24px;
    border: 1px solid var(--alpha-g40);
    border-radius: var(--radius-16);
    background: var(--gray-5);
    overflow: hidden;
}

.login-page .login-tab-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
    margin: 0 0 clamp(12px, 2.2vw, 24px);
    border-bottom: 0;
}

.login-page .login-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 8px 4px 16px;
    border: 0;
    border-bottom: 4px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: var(--text-20);
    color: var(--gray-70);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.login-page .login-tab.is-active {
    border-bottom-color: var(--secondary-50);
    background: transparent;
    color: var(--secondary-50);
}

.login-page .login-tab:is(:hover, :focus-visible) {
    color: var(--secondary-50);
}

.login-page .login-tab:focus-visible,
.login-page .login-panel :is(a, button, input):focus-visible {
    outline: 3px solid var(--primary-60);
    outline-offset: 3px;
}

.login-tab-body {
    min-height: 0;
    padding: 0;
}

.login-page .login-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: none;
    min-height: 204px;
    margin: 0;
    padding: 24px;
    border: 0;
    border-radius: var(--radius-10);
    background: var(--gray-0);
    overflow: visible;
}

.login-tab-panel[hidden] {
    display: none !important;
}

.login-page .login-panel-title {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--gray-90);
    font-size: var(--text-24);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.5px;
}

/* 아이디 로그인 폼: 왼쪽 입력 2줄 + 오른쪽 큰 로그인 버튼 */
.login-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 144px;
    align-items: start;
    gap: 8px 24px;
    padding: 0;
}

.login-form > * {
    grid-column: 1;
    min-width: 0;
}

.login-form > .login-submit {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: stretch;
}

/* 라벨은 화면에서 숨기고(placeholder 로 안내) 보조기기에는 그대로 읽힌다 */
.login-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--gray-60);
    border-radius: var(--radius-06);
    background: var(--gray-0);
    color: var(--gray-90);
    font-size: var(--text-15);
    line-height: 1.5;
    letter-spacing: -0.5px;
    box-sizing: border-box;
}

.login-form input::placeholder {
    color: var(--gray-60);
    opacity: 1;
}

.login-form input[aria-invalid="true"] {
    border: 2px solid var(--danger-60, #b10e1e);
}

.login-password-field {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.login-password-field input[type="password"],
.login-password-field input[type="text"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.login-password-toggle {
    flex: 0 0 72px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--primary-60);
    border-radius: var(--radius-06);
    background: var(--gray-0);
    color: var(--primary-60);
    font-size: var(--text-14);
    font-weight: 700;
    cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    background: var(--primary-5);
}

.login-field-help,
.login-field-error {
    margin: 0;
    font-size: var(--text-14);
    line-height: 1.45;
}

.login-field-help {
    color: var(--gray-70);
}

.login-field-error {
    color: var(--danger-60, #b10e1e);
    font-weight: 700;
}

.login-submit,
.login-auth-button,
.login-sns-button,
.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius-08);
    background: var(--primary-50);
    color: var(--on-primary);
    font-size: var(--text-17);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.login-submit {
    min-height: 96px;
    padding: 20px;
    font-size: var(--text-24);
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.login-submit:hover,
.login-submit:focus-visible,
.login-auth-button:hover,
.login-auth-button:focus-visible,
.logout-button:hover,
.logout-button:focus-visible {
    background: var(--primary-60);
}

.login-links,
.login-auth,
.login-sns,
.login-logout {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 0;
}

/* 아이디 찾기 | 비밀번호 찾기 | 회원가입 — 3등분, 사이에 구분선 */
.login-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 48px;
    padding: 0;
}

.login-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 4px;
    border: 0;
    color: var(--gray-80);
    font-size: var(--text-17);
    line-height: 1.5;
    letter-spacing: -0.5px;
    text-align: center;
    text-decoration: none;
}

.login-links a + a::before {
    content: "";
    position: absolute;
    left: 0;
    width: 1px;
    height: 16px;
    background: var(--gray-30);
}

.login-links a:is(:hover, :focus-visible) {
    color: var(--primary-60);
    text-decoration: underline;
}

/* 안내문 — 패널 안에서 위쪽 구분선으로 나눈다 */
.login-guide {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0 0;
    border-top: 1px solid var(--alpha-g20);
    color: var(--gray-90);
    font-size: var(--text-17);
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.login-guide p {
    margin: 0 0 8px;
}

.login-guide ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-guide li {
    display: flex;
    align-items: flex-start;
    margin-top: 4px;
}

.login-guide li::before {
    content: "·";
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.login-help-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    margin-top: 8px;
    color: var(--primary-60);
    font-weight: 700;
    text-underline-offset: 3px;
}

.login-help-link::after {
    margin-left: 5px;
    content: ">";
}

.login-auth,
.login-sns {
    padding: 0;
}

/* SNS 로그인 — 퍼블 .member_login_sns: 카카오·네이버를 2열 큰 버튼(아이콘 위, 글자 아래)으로 */
.login-sns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px 24px;
}

.login-sns-button {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-height: 140px;
    padding: 16px;
    font-size: var(--text-22);
    line-height: 1.5;
    letter-spacing: -0.5px;
    text-align: center;
    white-space: nowrap;
}

/* 마크업에 아이콘 img 가 없으므로 ::before 로 넣는다 */
.login-sns-button::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    background: center / contain no-repeat;
}

.login-sns-button.kakao {
    grid-column: 1;
    grid-row: 1;
    border: 1px solid #aa9046;
    background: #f7e111;
    color: #3f2423;
}

.login-sns-button.kakao::before {
    background-image: url('../pub/images/skin/ico_kakao.svg');
}

.login-sns-button.naver {
    --naver-login-text-color: #191D21;
    --naver-login-background: #3ACE01;
    grid-column: 2;
    grid-row: 1;
    border: 1px solid #2c8f33;
    background: var(--naver-login-background);
    color: var(--naver-login-text-color);
}

.login-sns-button.naver::before {
    background-image: url('../pub/images/skin/ico_naver.svg');
}

/* 카카오 다른 계정 링크는 두 버튼 아래 한 줄. 마크업의 인라인 스타일(12px · #555)은 읽기 어려워 덮어쓴다 */
.login-sns .login-sns-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 !important;
}

.login-sns .login-sns-switch a {
    font-size: var(--text-15) !important;
    color: var(--gray-70) !important;
}

/* 간편인증 — 제공기관 로고 버튼을 퍼블 .member_easy_submit 박스 톤으로 */
.easy-login-box {
    padding: 0;
}

.easy-login-button {
    display: grid;
    grid-template-columns: repeat(5, 52px);
    justify-content: center;
    gap: 14px 18px;
    width: 100%;
    padding: 18px 12px;
    border: 2px solid var(--primary-50);
    border-radius: var(--radius-06);
    background: var(--primary-5);
    cursor: pointer;
    box-sizing: border-box;
}

.easy-login-button:hover {
    background: var(--primary-10);
}

.easy-provider {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
}

.emphasis-blue {
    color: var(--primary-60);
}

.emphasis-red {
    color: var(--danger-60, #d92d20);
}

.hidden-form {
    display: none;
}

@media all and (max-width: 640px) {
    .login-page .login-tabs {
        width: calc(100% - 32px);
        margin-top: 24px;
        padding: 16px;
        border-radius: var(--radius-14);
    }

    .login-page .login-tab-list {
        gap: 4px;
    }

    .login-page .login-tab {
        font-size: var(--text-17);
    }

    .login-page .login-panel {
        padding: 20px 16px;
    }

    .login-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .login-form > .login-submit {
        grid-column: 1;
        grid-row: auto;
        min-height: 48px;
        padding: 10px;
        font-size: var(--text-20);
    }

    .login-links a {
        font-size: var(--text-15);
    }

    .easy-login-button {
        grid-template-columns: repeat(3, 52px);
    }

    .login-sns {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-sns-button {
        min-height: 105px;
    }

    .login-sns-button.naver {
        grid-column: 1;
        grid-row: 2;
    }

    .login-sns .login-sns-switch {
        grid-row: 3;
    }
}

/* ============================================================
   회원가입 (본문 콘텐츠)  th/csp5/join.html
   퍼블 member_join_* 디자인 이식 — 마크업·클래스·id 는 개발 템플릿 그대로 유지하고 CSS 만 맞춘다.
   (퍼블은 한 화면이지만 개발은 2단계라 진행 단계 표시(.join-steps)는 남긴다)
   ============================================================ */
.join-page {
    padding-bottom: 120px;
}

.join-body {
    width: calc(100% - 60px);
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 0 0;
    box-sizing: border-box;
}

/* 진행 단계 표시 (stepper) — 완료 단계 체크(Check) 전환형 */
.join-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 34px;
    margin: 0 auto 40px;
    padding: 0 0 20px;
    list-style: none;
    border-bottom: 1px solid var(--alpha-g20);
    box-sizing: border-box;
}

.join-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gray-60);          /* 미진행(pending) 기본 */
    font-size: var(--text-17);
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* 단계 사이 구분 표시 (>>) */
.join-step + .join-step::before {
    content: ">>";
    margin-right: 7px;
    color: var(--gray-60);
    font-size: var(--text-15);
    font-weight: 400;
    letter-spacing: -1px;
}

.join-step-num,
.join-step-mark {
    font-size: var(--text-17);
    font-weight: 800;
    line-height: 1;
    color: inherit;
}

.join-step-mark {
    display: none;                  /* 완료(is-done)일 때만 노출 */
}

.join-step-label {
    color: inherit;
}

/* 완료(체크) 단계 */
.join-step.is-done {
    color: var(--primary-60);
}
.join-step.is-done .join-step-num {
    display: none;
}
.join-step.is-done .join-step-mark {
    display: inline;
}

/* 진행 중(활성) 단계 */
.join-step.is-active {
    color: var(--secondary-50);
}

/* 단계 패널 / 단계 이동 버튼 영역 */
.join-step-panel.is-hidden {
    display: none;
}

.join-step-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 64px;
}

.join-step-btn {
    min-width: 200px;
    min-height: 64px;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--radius-08);
    font-size: var(--text-20);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.5px;
    cursor: pointer;
    box-sizing: border-box;
}

.join-step-btn-next {
    --join-button-text-color: #fff;
    background: var(--primary-50);
    color: var(--join-button-text-color);
}

.join-step-btn-next:hover {
    filter: brightness(0.94);
}

.join-step-btn-prev {
    min-width: 120px;
    border: 1px solid var(--alpha-g40);
    background: var(--gray-0);
    color: var(--gray-80);
}

.join-step-btn-prev:hover {
    background: var(--gray-5);
}

.join-page :is(button, input, [tabindex]):focus-visible {
    outline: 3px solid var(--primary-60);
    outline-offset: 3px;
}

.join-page .registration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.join-page #registrationLogin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.join-page #registrationLogin[hidden] { display: none; }
.join-page #registrationMessage:empty { display: none; }
.join-page #registrationMessage { margin-top: 16px; line-height: 1.6; }
.join-page #btn_snsJoin:disabled { background: #747b83; cursor: not-allowed; }

/* 섹션: 위쪽 굵은 선 + 제목 + 안내문 */
.join-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 0;
    padding-top: 40px;
    border-top: 4px solid var(--alpha-g80);
}

.join-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--gray-90);
    font-size: var(--text-24);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.join-required-guide {
    font-size: var(--text-15);
    font-weight: 400;
    color: var(--primary-60);
}

.join-required-guide em,
.join-label em {
    color: var(--primary-60);
    font-style: normal;
}

.join-section-desc {
    margin: -16px 0 0;
    color: var(--gray-80);
    font-size: var(--text-17);
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.agree-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: 1px solid var(--alpha-g15);
    border-radius: var(--radius-08);
    background: var(--primary-5);
    color: var(--gray-90);
    font-size: var(--text-17);
}

/* 체크박스는 label 안에 들어 있다 — 라벨 전체가 클릭 영역이고 박스와 글자가 같은 줄에 정렬된다 */
.agree-all label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-left: 0;
    cursor: pointer;
}

.agree-all .agrChk {
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

/* 약관 그룹: 소제목 → 스크롤 박스 → 동의 선택 바 */
.join-terms-title {
    margin: 8px 0 -8px;
    color: var(--gray-90);
    font-size: var(--text-20);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.agree-scroll {
    height: 128px;
    padding: 24px;
    overflow-y: auto;
    border: 1px solid var(--alpha-g15);
    background: var(--gray-5);
    color: var(--gray-70);
    font-size: var(--text-15);
    line-height: 1.5;
    letter-spacing: -0.5px;
    box-sizing: border-box;
}

.terms-list,
.terms-list ol {
    margin: 0;
    padding-left: 1.2em;
}

/* 약관 장 제목: 약관동의(h3) > 이용약관(h4) 아래라 h5 (2026-10-26 h4→h5, 개발 템플릿 반영 전까지 h4 유지) */
.terms-list h4,
.terms-list h5 {
    margin: 10px 0 4px;
    font-size: var(--text-15);
    font-weight: 700;
    color: var(--gray-80);
}

.terms-list li {
    margin: 3px 0;
}

.terms-list p {
    margin: 3px 0;
}

.terms-table {
    width: 100%;
    margin: 8px 0;
    border-collapse: collapse;
    font-size: var(--text-14);
}

.terms-table caption {
    text-align: left;
    padding-bottom: 4px;
    color: var(--gray-70);
}

.terms-table th,
.terms-table td {
    padding: 6px 8px;
    border: 1px solid var(--alpha-g40);
    text-align: center;
    vertical-align: middle;
}

.terms-table thead th {
    background: var(--secondary-10);
    color: var(--gray-90);
}

/* 동의 / 비동의 선택 바 — 퍼블 .agree_confirm (회색 바, 선택지를 오른쪽 정렬) */
.agree-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px clamp(16px, 4vw, 64px);
    margin-top: -24px;
    padding: 12px 24px;
    border: 1px solid var(--alpha-g15);
    border-top: 0;
    background: var(--gray-5);
    font-size: var(--text-15);
}

.agree-check label {
    min-height: 44px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-90);
    white-space: nowrap;
    cursor: pointer;
}

.agree-check .agrChk,
.agree-check .disagrChk {
    margin: 0;
    cursor: pointer;
}

/* 회원정보 입력 표 → 회색 박스 안에 라벨 | 입력 2열 */
.join-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--alpha-g15);
    border-radius: var(--radius-08);
    background: var(--gray-5);
}

.join-row {
    display: grid;
    grid-template-columns: minmax(88px, 200px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    border-bottom: 0;
}

.join-label {
    padding: 10px 0 0;
    background: transparent;
    color: var(--gray-90);
    font-size: var(--text-15);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.5px;
}

.join-label-sub {
    font-size: var(--text-14);
    font-weight: 400;
    color: var(--gray-70);
}

.join-control {
    min-width: 0;
    padding: 0;
}

.join-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.join-input {
    flex: 1 1 240px;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--gray-60);
    border-radius: var(--radius-06);
    background: var(--gray-0);
    color: var(--gray-90);
    font-size: var(--text-15);
    line-height: 1.5;
    box-sizing: border-box;
}

.join-input::placeholder {
    color: var(--gray-60);
    opacity: 1;
}

.join-input[readonly] {
    background: var(--gray-5);
    color: var(--gray-70);
}

.join-help {
    margin: 4px 0 0;
    color: var(--gray-70);
    font-size: var(--text-14);
    line-height: 1.5;
}

.join-auth-button,
.join-dup-button {
    --join-button-text-color: #fff;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-06);
    background: var(--primary-50);
    color: var(--join-button-text-color);
    font-size: var(--text-17);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.5px;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.join-auth-button:hover,
.join-dup-button:hover {
    filter: brightness(0.94);
}

/* 이메일 수신 여부 — 두 선택지를 큰 카드형 라디오로 (선택 시 파란 테두리 + ✓) */
.join-control:has(> .join-radio) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.join-row:has(> .join-control > .join-radio) > .join-label {
    padding-top: 15px;
}

.join-radio {
    position: relative;
    display: flex;
    margin: 0;
}

.join-radio input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.join-radio label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 52px;
    padding: 13px 25px;
    border: 1px solid var(--alpha-g40);
    border-radius: var(--radius-08);
    background: var(--gray-0);
    color: var(--gray-80);
    font-size: var(--text-17);
    line-height: 1.5;
    letter-spacing: -0.5px;
    cursor: pointer;
    box-sizing: border-box;
}

.join-radio:has(input:checked) label {
    border: 2px solid var(--primary-50);
    background: var(--primary-5);
    color: var(--primary-60);
    font-weight: 700;
}

.join-radio:has(input:checked) label::before {
    content: "✓";
    color: var(--primary-text);
    font-weight: 700;
}

.join-radio:has(input:focus-visible) label {
    outline: 3px solid var(--primary-60);
    outline-offset: 3px;
}

/* 체크박스 기본 모양은 공통 CSP/pub/css/custom.css 의 #wrap input[type="checkbox"] 를 따른다. 여기서는 회원가입 크기만 조정한다. */
#wrap .join-page .agree-all input[type="checkbox"] {
    width: 32px;
    height: 32px;
}

.join-submit-wrap {
    margin-top: 64px;
    text-align: center;
}

.join-submit {
    --join-button-text-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    min-height: 64px;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--radius-08);
    background: var(--primary-50);
    color: var(--join-button-text-color);
    font-size: var(--text-20);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.join-submit:hover {
    filter: brightness(0.94);
}

@media all and (max-width: 640px) {
    .join-page {
        padding-bottom: 80px;
    }

    .join-body {
        width: calc(100% - 32px);
        padding-top: 24px;
    }

    .join-steps {
        gap: 8px 16px;
        margin-bottom: 24px;
    }

    .join-section {
        gap: 20px;
        padding-top: 24px;
    }

    .join-section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .agree-check {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .join-table {
        padding: 20px 16px;
    }

    .join-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .join-label,
    .join-row:has(> .join-control > .join-radio) > .join-label {
        padding-top: 0;
    }

    .join-inline {
        flex-direction: column;
    }

    #wrap .join-page .agree-all input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    .join-input,
    .join-auth-button,
    .join-dup-button {
        flex: none;
        width: 100%;
    }

    .join-control:has(> .join-radio) {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .join-step-nav {
        margin-top: 40px;
    }

    .join-step-btn,
    .join-submit {
        min-height: 56px;
    }

    .join-submit {
        width: 100%;
    }
}

/* ============================================================
   회원가입 완료 (STEP 3)  th/csp5/joinComplete.html
   ============================================================ */
.join-complete {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px 8px;
    text-align: center;
    box-sizing: border-box;
}

.join-complete-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf7f2;
}

.join-complete-icon svg {
    width: 52px;
    height: 52px;
    display: block;
}

.join-complete-title {
    margin: 0 0 12px;
    color: #143a8c;
    font-size: 1.6875rem;
    font-weight: 800;
    line-height: 1.3;
}

.join-complete-desc {
    margin: 0 0 30px;
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.join-complete-info {
    margin: 0 auto 34px;
    max-width: 460px;
    border: 1px solid #e0e5ec;
    border-radius: 6px;
    background: #f7f9fc;
    overflow: hidden;
    text-align: left;
}

.join-complete-info > div {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e6eaf0;
}

.join-complete-info > div:last-child {
    border-bottom: 0;
}

.join-complete-info dt {
    flex: 0 0 150px;
    padding: 14px 18px;
    background: #eef2f7;
    color: #33507d;
    font-size: 0.875rem;
    font-weight: 700;
    box-sizing: border-box;
}

.join-complete-info dd {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 14px 18px;
    color: #222;
    font-size: 0.875rem;
    font-weight: 600;
    word-break: break-all;
}

.join-complete-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.join-complete-actions .join-submit,
.join-complete-actions .join-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media all and (max-width: 768px) {
    .join-complete-info dt {
        flex-basis: 120px;
    }

}

@media all and (max-width: 1280px) {
    .footer-top {
        gap: 18px;
    }

    .footer-right {
        flex-basis: 280px;
    }

    .footer-brand-text {
        gap: 12px;
    }
}

/*
 * 레이어 팝업 패널(.pop_layer[tabindex=-1]) 프로그램 포커스 outline 억제.
 *
 * 오픈 시 main.js / custom.js 가 포커스 트랩 진입점으로 .pop_layer 에 focus() 한다.
 * 새로고침 직후 첫 오픈 등에서 UA outline 이 딤 위 하얀 바깥 테두리처럼 보인다
 * (바깥 클릭 시 blur 되며 사라짐). #container:focus{outline:none} 과 동일 패턴.
 * 실제 조작 포커스 표시는 내부 버튼·링크의 :focus-visible 에 맡긴다.
 */
.pop_layer:focus,
.pop_layer:focus-visible {
    outline: none;
}

/*
 * 주제별 생활법령(themeList): 서브 타이틀(sub_top)과 대분류 아이콘 사이 간격.
 * .law_list 의 gap 은 자식끼리만 적용되고, sub_top 은 #contents 밖이라 타이틀·아이콘이 붙어 보인다.
 */
/* (#contents 위쪽 여백은 pub/css/custom.css 공통 규칙으로 통일) */

/*
 * 데스크톱 전체메뉴: 헤더 아래 남은 화면 높이 안에서 메뉴가 보이도록
 * 세로 여백을 줄이고, 더 낮은 화면에서는 전체메뉴 내부를 스크롤한다.
 */
#wrap #aside {
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#wrap #aside > .w_custom {
    gap: 0;
    padding-block: 20px;
}

#wrap #aside .aside_cate > li {
    padding-block: 12px;
}

#wrap #aside .aside_cate > li > a,
#wrap #aside .aside_cate > li .dep02 li a {
    min-height: 40px;
}

#wrap #aside .aside_cate > li .dep02 {
    row-gap: 8px;
}

#wrap #aside .aside_cate > li .dep02 li a {
    padding-block: 2px;
}

/*
 * 주제별 생활법령 페이징: 공통 .paging 규칙의 중앙 절대배치를 해제해
 * 화면 전용 3열 grid 흐름을 복원하고 숫자 칸 크기를 통일한다.
 */
#wrap .law_subcategory .paging > .pagination {
    position: static;
    top: auto;
    left: auto;
    translate: none;
    margin-top: 0;
}

#wrap .law_subcategory .paging > .pagination > :is(.page_num, .page_ctrl) {
    width: 40px;
    min-width: 40px;
    height: 40px;
    box-sizing: border-box;
}

/*
 * 주제별 생활법령 소분류: 긴 제목 때문에 일부 박스만 늘어나지 않도록
 * 표시 영역을 고정하고 데스크톱은 두 줄, 모바일은 한 줄로 말줄임한다.
 */
#wrap .theme-law-subcategory-grid > li {
    min-width: 0;
}

#wrap .theme-law-subcategory-grid .law_item_btn {
    height: 72px;
    min-height: 72px;
    overflow: hidden;
    box-sizing: border-box;
}

#wrap .theme-law-subcategory-grid .law-item-text {
    display: -webkit-box;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 640px) {
    #wrap .theme-law-subcategory-grid .law_item_btn {
        height: 48px;
        min-height: 48px;
    }

    #wrap .theme-law-subcategory-grid .law-item-text {
        display: block;
        white-space: nowrap;
    }
}

#wrap .paging .pagination > :is(.page_ctrl.first, .page_ctrl.last)::before,
#wrap .paging .pagination > :is(.page_ctrl.first, .page_ctrl.last)::after {
    width: 8px;
    height: 8px;
    content: "";
    flex-shrink: 0;
    border: solid var(--gray-70);
    border-width: 1px 1px 0 0;
    translate: none;
}

#wrap .paging .pagination > .page_ctrl.first::before,
#wrap .paging .pagination > .page_ctrl.first::after {
    rotate: -135deg;
}

#wrap .paging .pagination > .page_ctrl.last::before,
#wrap .paging .pagination > .page_ctrl.last::after {
    rotate: 45deg;
}

#wrap .paging .pagination > :is(.page_ctrl.first, .page_ctrl.last)::after {
    margin-left: -5px;
}

/*
 * .sub_btn 공통 — 퍼블 CSS 에 베이스 정의가 없어(부분 오버라이드만 존재)
 * 소분류 검색 등에서 button/a + 아이콘이 baseline 정렬되며 입력창과 수평(세로 중심)이 어긋난다.
 * 퍼블 의도(inline-flex + 48px 높이 + point/reset)를 복원한다.
 */
.sub_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--gray-60, #767676);
    border-radius: var(--radius-08, 8px);
    background: var(--gray-0, #fff);
    font-size: var(--text-17);
    color: var(--gray-80);
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
}
.sub_btn.point {
    --sub-btn-point-text-color: #fff;
    border-color: var(--primary-50);
    background: var(--primary-50);
    color: var(--sub-btn-point-text-color);
}
.sub_btn.reset {
    border-color: var(--alpha-g40);
    background: var(--gray-0, #fff);
    color: var(--gray-80);
}
.sub_btn .ico_search,
.sub_btn .ico_reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    line-height: 0;
}
.sub_btn .ico_search img,
.sub_btn .ico_reset img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 소분류 검색 패널: fieldset UA 기본값·범례로 인한 미세 어긋남 제거 */
.law_filter fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-inline-size: 0;
}
.law_filter_panel,
.law_filter_inner {
    align-items: center;
}

/* ============================================================
   규제등록 카드 레이어 (UI-A-03-01-04)
   - 생활법령 본문(관심규정해설저장)에 박혀 있는 [규제] 아이콘이 어느 화면에서든 열 수 있어야 하므로
     화면별 CSS 가 아니라 전 화면 공통으로 로드되는 이 파일에 둔다.
   - 레이어 골격(.ly_pop/.pop_layer/.pop_title/.pop_content_box)은 퍼블 custom.css 를 그대로 쓰고,
     카드 내부 구성만 여기서 정의한다.
   ============================================================ */
/* 규제정보포털 카드 화면은 800px 안팎을 전제로 만들어져 있어(AS-IS iframe 폭도 800),
   퍼블 기본 폭(.w_800)에 넣으면 프레임 안에서 가로로 잘린다. 이 레이어만 넓게 잡는다.
   레이어 높이도 기본(45rem)으로는 프레임과 이중 스크롤이 생겨 함께 키운다. */
#regCardPop .pop_layer {
    width: min(96vw, 1400px);
    max-width: none;
    max-height: 96vh;
}
.reg_card_wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.reg_card_side {
    flex: 0 0 200px;
    max-height: min(78vh, 800px);
    overflow-y: auto;
    border: 1px solid #d5dbd4;
    border-radius: 4px;
}
.reg_card_side_title {
    margin: 0;
    padding: 8px 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    color: #1f3b1a;
    background: #eef3ec;
    border-bottom: 1px solid #d5dbd4;
}
.reg_card_btr_list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.reg_card_btr_list > li + li {
    border-top: 1px solid #eaeeea;
}
.reg_card_btr_list .btn_regCardBtr {
    display: block;
    padding: 10px 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #333;
    text-decoration: none;
    word-break: keep-all;
}
.reg_card_btr_list .btn_regCardBtr:hover,
.reg_card_btr_list .btn_regCardBtr:focus-visible {
    background: #f4f6f3;
}
.reg_card_btr_list > li.on .btn_regCardBtr {
    color: #111;
    background: #e4e6e4;
}
.reg_card_btr_list > li.on .reg_card_btr_name {
    font-weight: 700;
}
.reg_card_btr_date,
.reg_card_btr_name,
.reg_card_btr_ofi {
    display: block;
}
.reg_card_btr_date {
    font-size: 0.8125rem;
    color: #1f3b1a;
}
.reg_card_btr_ofi {
    font-size: 0.8125rem;
    color: #767676;
}
.reg_card_body {
    flex: 1 1 auto;
    min-width: 0;
}
/* 규제정보포털이 제공하는 카드 화면.
   카드 내용은 세로 1286px 고정(실측 3건 동일)이라 일반 화면 높이에는 원본 크기로 다 들어가지 않는다.
   축소해서 다 보여주면 글자가 너무 작아지므로 원본 크기를 유지하고 프레임 안에서 세로로 스크롤한다.
   높이는 팝업 가용 공간에 맞춰 cspCom.regCard 가 잡는다(창 크기에 따라 달라져 CSS 로는 못 잡는다).
   가로는 카드가 780px 아래로 내려가면 표가 깨지므로 최소 폭을 준다. */
.reg_card_frame {
    display: block;
    width: 100%;
    min-width: 780px;
    height: 640px;   /* JS 가 다시 잡기 전의 기본값 */
    border: 1px solid #d5dbd4;
    border-radius: 4px;
    background: #fff;
}
.reg_card_foot {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}
.reg_card_foot .reg_card_notice {
    flex: 1 1 auto;
    margin: 0;
}
.reg_card_close {
    flex: 0 0 auto;
    padding: 10px 22px;
    font-size: 0.9375rem;
    color: #fff;
    background: var(--primary-60, #1f5fbf);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}
.reg_card_notice {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #555;
    background: #f7f8f7;
    border-radius: 4px;
}
.reg_card_notice a {
    color: #1a5fb4;
    text-decoration: underline;
}
.reg_card_empty {
    margin: 0;
    padding: 30px 0;
    font-size: 0.9375rem;
    color: #555;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .reg_card_wrap {
        flex-direction: column;
    }
    /* 좁은 화면에서는 목록을 위로 내리고 높이를 제한한다(축소 배율은 JS 가 다시 잡는다). */
    .reg_card_side {
        width: 100%;
        flex: 0 0 auto;
        max-height: 20vh !important;
    }
}

/* ============================================================
   카드뉴스 상세 (UI-A-03-01-03)
   - 설계서 변경점: AS-IS 좌/우 슬라이드 → 모든 카드를 한 페이지에 세로 나열
   ============================================================ */
.card_news_header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid #222;
}
.card_news_title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

/* ① 카드 전체 표시 — 세로 나열 */
.card_news_view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 24px 0 0;
}
.card_news_item {
    width: 100%;
    max-width: 650px;
    margin: 0;
}
.card_news_item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    margin-inline: auto;
    border: 1px solid #e2e6e1;
    border-radius: 4px;
}
.card_news_empty {
    margin: 40px 0;
    font-size: 0.9375rem;
    color: #555;
    text-align: center;
}

/* ② 법령보기 */
.card_news_law {
    margin: 24px 0 0;
    text-align: center;
}
.btn_cardNewsLaw {
    display: inline-block;
    min-width: 160px;
    padding: 11px 24px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f3b1a;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #5b9b4e;
    border-radius: 4px;
}
.btn_cardNewsLaw:hover,
.btn_cardNewsLaw:focus-visible {
    color: #fff;
    background: #5b9b4e;
}

/* ③ 관련카드 */
.card_news_related {
    margin: 32px 0 0;
    border-top: 2px solid #222;
}
.card_news_related_title {
    margin: 0;
    padding: 13px 8px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #cfd4cf;
}
.card_news_related_list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.card_news_related_list > li {
    border-bottom: 1px solid #e2e6e1;
}
.card_news_related_list > li > a {
    display: block;
    padding: 14px 8px;
    font-size: 0.9375rem;
    color: #222;
    text-decoration: none;
}
.card_news_related_list > li > a:hover,
.card_news_related_list > li > a:focus-visible {
    color: #1f3b1a;
    text-decoration: underline;
    background: #f7f8f7;
}
.card_news_related_empty {
    margin: 0;
    padding: 20px 8px;
    font-size: 0.9375rem;
    color: #666;
    text-align: center;
    border-bottom: 1px solid #e2e6e1;
}

/* ④ 생성시점 공지 */
.card_news_notice {
    margin: 28px 0 0;
    padding: 24px 28px;
    background: #eef3ec;
}
.card_news_notice > h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #263b24;
    text-align: center;
}
.card_news_notice .bullet-list {
    margin-top: 16px;
}

/* 생활법령 상세 → 카드뉴스 진입 버튼 */
.law_cardnews_more {
    margin: 16px 0 0;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .card_news_header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* 국문 로고도 화면크기 설정의 루트 글자 크기에 비례한다.
 * 뒤에 로드되는 퍼블의 px 고정 폭보다 높은 특이도로 적용한다. */
#wrap #header .hd_cont.w_custom {
    flex-wrap: wrap;
    gap: .5rem;
}

#wrap #header .hd_cont.w_custom > .logo {
    flex: 0 0 auto;
    width: 14.0625rem;
}

@media (max-width: 1250px) {
    #wrap #header .hd_cont.w_custom > .logo {
        width: 11.25rem;
    }
}

@media (max-width: 389px) {
    #wrap #header .hd_cont.w_custom > .logo {
        width: 8rem;
    }
}

#header .hd_cont > .logo img {
    width: 100%;
    height: auto;
    display: block;
}

/*
 * 헤더 펼치기/접기 꺽쇠 방향 전환.
 * 퍼블(pub/css/custom.css)은 꺽쇠를 rotate:135deg(아래) 고정으로만 두어
 * 열림/닫힘 상태가 시각적으로 구분되지 않는다. 퍼블 파일은 수정하지 않고
 * 여기서 상위 특이도로 열림 상태만 위(-45deg)로 뒤집는다.
 * 열림 상태 표식: header.js 가 li/button 에 .on + a[aria-expanded="true"] 를 함께 세팅.
 */
#header .utility .lnb li a span::before,
#header .hd_gnb .btn_drop_pop > button::after {
    transition: rotate 0.2s ease, translate 0.2s ease;
}

#header .utility .lnb li.on > a span::before,
#header .utility .lnb li > a[aria-expanded="true"] span::before,
#header .hd_gnb .btn_drop_pop > button.on::after,
#header .hd_gnb .btn_drop_pop > button[aria-expanded="true"]::after {
    rotate: -45deg;
    translate: 0 2px;
}

/*
 * 상단 GNB·검색·전체메뉴 레이어는 생활법령/생활조례의 sticky 콘텐츠 헤더
 * (.law_detail_sub_top, z-index:80)보다 항상 위에 표시한다.
 * 퍼블 custom.css의 #header(z-index:10)보다 높은 특이도로 공통 보정한다.
 */
#wrap #header {
    z-index: 100;
}

@media (prefers-reduced-motion: reduce) {
    #header .utility .lnb li a span::before,
    #header .hd_gnb .btn_drop_pop > button::after {
        transition: none;
    }
}

/* 인쇄 — 카드와 제목만 남긴다 */
@media print {
    /* 본문 강조색·배경 아이콘은 화면에서 읽는 내용의 일부다. */
    .law_detail, .board_view, .card_news {
        background: var(--gray-0);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .csp-wrap > header,
    .csp-wrap > footer,
    #wrap > header,
    #wrap > footer,
    .sub_top,
    .side_nav,
    .detail_util,
    .card_news_law,
    .card_news_related,
    .quick_menu,
    #wrap-loading {
        display: none !important;
    }
    .card_news_item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/*
 * 페이징 줄바꿈 보정 (전 목록 화면 공통)
 *
 * 퍼블 custom.css 는 .paging .pagination 을 position:absolute + left:50% + translate:-50% 로 중앙 배치한다.
 * 이때 절대배치 박스의 가용 폭은 "컨테이너 폭 - left(50%)" = 컨테이너의 절반뿐이라,
 * 페이지 버튼이 많아지면(예: 솔로몬 목록 « ‹ 1~10 … 23 › » = 16개) 절반 폭을 넘겨 두세 줄로 접힌다.
 * 폭을 내용 기준(max-content)으로 잡고 컨테이너까지만 넓히면 한 줄로 유지된다.
 * (translate 는 그대로 두어 데스크톱 중앙정렬·모바일 상대배치 규칙을 모두 보존한다.)
 *
 * 전면 폭을 덮는 절대배치가 좌측 '목록 수' 셀렉트 클릭을 가로막지 않도록 컨테이너는 클릭을 통과시키고
 * 실제 버튼(링크·현재 페이지)만 클릭을 받는다.
 */
#wrap .paging > .pagination {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    pointer-events: none;
}

#wrap .paging > .pagination > * {
    pointer-events: auto;
}

/* ============================================================
   전체메뉴(#aside) 모바일 레이아웃 — 설계서 구조
   ------------------------------------------------------------
   ≤640px 에서만 .aside-mobile-cate 를 쓰고, 퍼블 .aside_cate(데스크톱 사이트맵)는 숨긴다.
   설계서 : depth1 = 제목(텍스트) / depth2 = 전체폭 버튼 / depth3 는 목록에 펼치지 않고
            '소주제 선택' 바텀시트(.aside-sheet)로 넘긴다.
   퍼블 custom.css 는 수정하지 않는다(재전달 시 덮어씀) — 여기서만 제어한다.
   클래스는 kebab-case = 우리가 만든 것, 퍼블은 snake_case 로 구분한다.
   ============================================================ */

/* 기본(데스크톱) : 모바일 목록 숨김 */
.aside-mobile-cate {
    display: none;
}

@media (max-width: 640px) {
    /* 데스크톱 사이트맵(depth3 까지 펼친 그리드)은 모바일에서 감춘다 */
    #aside .aside_cate {
        display: none;
    }

    #aside .aside-mobile-cate {
        display: block;
        padding: 0 0.9375rem 9rem;
    }

    /* depth1 = 제목. 박스 없이 텍스트만 */
    #aside .aside-mobile-title {
        margin: 1.5rem 0 0.75rem;
        font-size: var(--text-20, 1.25rem);
        font-weight: 700;
        line-height: 1.35;
        color: var(--gray-90, #111);
    }

    #aside .aside-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* depth2 = 전체폭 버튼. button(시트 열기)·a(바로 이동) 둘 다 같은 모양 */
    #aside .aside-mobile-btn {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 3.25rem;
        padding: 0.625rem 1rem;
        border: 1px solid var(--gray-30, #ddd);
        border-radius: var(--radius-8, 0.5rem);
        background: var(--gray-10, #f7f7f7);
        font-size: var(--text-17, 1.0625rem);
        font-weight: 500;
        line-height: 1.35;
        color: var(--gray-90, #111);
        text-align: left;
        cursor: pointer;
    }
}

/* ============================================================
   소주제 선택 바텀시트 (.aside-sheet) — 설계서 UI-A-02-10-01
   ------------------------------------------------------------
   레이어 골격(오버레이·슬라이드·닫기)은 퍼블 .quick_layer 를 그대로 쓰고,
   목록 표현만 여기서 정의한다(#hdLang 처럼 id 로 스코프된 퍼블 스타일이 없는 신규 시트).
   항목 선택 = 즉시 이동이라 [선택]/[취소] 버튼은 두지 않는다.
   ============================================================ */

#wrap .aside-sheet .aside-sheet-title {
    margin: 0;
    padding: 0 1.25rem 0.75rem;
    font-size: var(--text-18, 1.125rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--gray-90, #111);
}

#wrap .aside-sheet .quick_scroll {
    max-height: min(25rem, 60vh);
    overflow-y: auto;
    padding: 0 1.25rem 0.5rem;
}

#wrap .aside-sheet .quick_scroll ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#wrap .aside-sheet .quick_scroll li + li {
    border-top: 1px solid var(--gray-20, #eee);
}

#wrap .aside-sheet .quick_scroll li a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.5rem 0.25rem;
    font-size: var(--text-16, 1rem);
    line-height: 1.35;
    color: var(--gray-80, #333);
}


/* ========================================= */
/* Member pages and shared fragment styles migrated from Thymeleaf templates */
/* ========================================= */
/* Extracted from src/main/webapp/WEB-INF/templates/th/csp5/idPwFindResultModal.html */
.idpw-result-dim {
                position: fixed;
                inset: 0;
                z-index: 10000;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 20px;
                background: rgba(0, 0, 0, 0.58);
                box-sizing: border-box;
            }

            .idpw-result-modal {
                width: min(528px, 100%);
                overflow: hidden;
                border-radius: 12px;
                background: #fff;
                box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
            }

            .idpw-result-head {
                display: flex;
                align-items: center;
                justify-content: space-between;
                height: 36px;
                padding: 0 12px;
                background: #3a76ae;
                color: #fff;
                box-sizing: border-box;
            }

            .idpw-result-title {
                margin: 0;
                font-size: 1rem;
                font-weight: 700;
                line-height: 1;
            }

            .idpw-result-close {
                width: 24px;
                height: 24px;
                border: 0;
                background: transparent;
                color: #fff;
                cursor: pointer;
                font-size: 0;
                position: relative;
            }

            .idpw-result-close:before,
            .idpw-result-close:after {
                content: "";
                position: absolute;
                left: 5px;
                top: 11px;
                width: 14px;
                height: 1px;
                background: currentColor;
            }

            .idpw-result-close:before {
                transform: rotate(45deg);
            }

            .idpw-result-close:after {
                transform: rotate(-45deg);
            }

            .idpw-result-body {
                min-height: 142px;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 28px 34px;
                box-sizing: border-box;
                text-align: center;
            }

            .idpw-result-message {
                margin: 0;
                color: #111;
                font-size: 0.875rem;
                line-height: 1.6;
                word-break: keep-all;
            }

            .idpw-result-message strong {
                font-weight: 700;
            }

            .idpw-result-foot {
                min-height: 52px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                padding: 10px 16px;
                border-top: 1px solid #c9c9c9;
                box-sizing: border-box;
            }

            .idpw-result-button {
                min-width: 105px;
                height: 34px;
                padding: 0 18px;
                border: 1px solid #2f6aa3;
                border-radius: 4px;
                background: #3a76ae;
                color: #fff;
                cursor: pointer;
                font-size: 0.875rem;
                font-weight: 700;
            }

            .idpw-result-button.is-light {
                background: #fff;
                color: #4f8fc8;
            }

/* Extracted from src/main/webapp/WEB-INF/templates/th/csp5/idPwResetPasswordLayer.html */
.idpw-reset-dim {
            position: fixed;
            inset: 0;
            z-index: 10010;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.58);
            box-sizing: border-box;
        }

        .idpw-reset-dim.is-open {
            display: flex;
        }

        .idpw-reset-modal {
            width: min(528px, 100%);
            overflow: hidden;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
        }

        .idpw-reset-head {
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 10px 0 16px;
            background: #3a76ae;
            color: #fff;
            box-sizing: border-box;
        }

        .idpw-reset-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
            line-height: 1;
        }

        .idpw-reset-close {
            width: 24px;
            height: 24px;
            border: 0;
            background: transparent;
            color: #fff;
            cursor: pointer;
            font-size: 0;
            position: relative;
        }

        .idpw-reset-close:before,
        .idpw-reset-close:after {
            content: "";
            position: absolute;
            left: 5px;
            top: 11px;
            width: 14px;
            height: 1px;
            background: currentColor;
        }

        .idpw-reset-close:before {
            transform: rotate(45deg);
        }

        .idpw-reset-close:after {
            transform: rotate(-45deg);
        }

        .idpw-reset-body {
            padding: 18px 24px 12px;
        }

        .idpw-reset-row {
            display: grid;
            grid-template-columns: 150px minmax(0, 1fr);
            align-items: center;
            gap: 18px;
            margin-bottom: 11px;
        }

        .idpw-reset-label {
            font-size: 0.875rem;
            font-weight: 700;
            line-height: 1.3;
        }

        .idpw-reset-label em,
        .idpw-reset-guide em {
            color: #d60000;
            font-style: normal;
        }

        .idpw-reset-input {
            width: 100%;
            height: 36px;
            padding: 0 12px;
            border: 1px solid #8d8d8d;
            border-radius: 5px;
            box-sizing: border-box;
            font-size: 0.875rem;
        }

        .idpw-reset-input::placeholder {
            color: #aaa;
        }

        .idpw-reset-guide {
            margin: 12px 0 4px;
            font-size: 0.8125rem;
            line-height: 1.4;
        }

        .idpw-reset-foot {
            min-height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 10px 16px;
            border-top: 1px solid #c9c9c9;
            box-sizing: border-box;
        }

        .idpw-reset-button {
            min-width: 86px;
            height: 34px;
            padding: 0 18px;
            border: 1px solid #2f6aa3;
            border-radius: 4px;
            background: #3a76ae;
            color: #fff;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 700;
        }

        .idpw-reset-button.is-cancel {
            border-color: #7f7f7f;
            background: #888;
        }

        .swal2-container {
            z-index: 10030 !important;
        }

/* Extracted from src/main/webapp/WEB-INF/templates/th/fragments/csp0/bannerPopup.html */
.csp-banner-popup[hidden] {
            display: none !important;
        }

        .csp-banner-popup {
            position: fixed;
            inset: 0;
            z-index: 10000;
            font-family: "Malgun Gothic", "맑은 고딕", Dotum, "돋움", sans-serif;
        }

        .csp-banner-dim {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, .55);
        }

        .csp-banner-panel {
            position: relative;
            width: 775px;
            max-width: calc(100vw - 40px);
            height: 414px;
            max-height: calc(100vh - 40px);
            margin: 8px auto;
            background: #fff;
            border-radius: 10px 10px 26px 26px;
            box-shadow: 7px 7px 0 rgba(0, 0, 0, .28);
            overflow: hidden;
            outline: none;
            box-sizing: border-box;
        }

        .csp-banner-panel *,
        .csp-banner-panel *::before,
        .csp-banner-panel *::after {
            box-sizing: border-box;
        }

        .csp-banner-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 36px;
            padding: 0 10px 0 14px;
            background: #5b9ed2;
        }

        .csp-banner-header h2 {
            margin: 0;
            color: #fff;
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0;
            line-height: 36px;
        }

        .csp-banner-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            padding: 0;
            border: 0;
            background: transparent;
            color: #fff;
            font-size: 1.625rem;
            font-weight: 300;
            line-height: 1;
            cursor: pointer;
        }

        .csp-banner-close:hover,
        .csp-banner-close:focus {
            outline: 1px solid rgba(255, 255, 255, .85);
            outline-offset: 2px;
        }

        .csp-banner-body {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            height: calc(100% - 92px);
            padding: 16px 12px 12px;
            background: #fff;
            overflow: hidden;
        }

        .csp-banner-box {
            min-width: 0;
            padding: 12px 10px;
            border: 1px solid #cdcdcd;
        }

        .csp-banner-box ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .csp-banner-box li {
            margin-bottom: 15px;
            color: #444;
            font-size: 0.75rem;
            line-height: 21px;
        }

        .csp-banner-box li:last-child {
            margin-bottom: 0;
        }

        .csp-banner-blue {
            color: #046cbc;
        }

        .csp-banner-box strong {
            display: block;
            margin-bottom: 10px;
            color: #333;
            font-weight: 700;
        }

        .csp-banner-box a {
            color: #444;
            text-decoration: none;
        }

        .csp-banner-box a:hover,
        .csp-banner-box a:focus {
            text-decoration: underline;
        }

        .csp-banner-box img {
            border: 0;
            vertical-align: middle;
        }

        .csp-banner-guide {
            padding-top: 9px;
        }

        .csp-banner-url {
            margin: 11px 0 0;
            color: #444;
            font-size: 0.75rem;
            line-height: 21px;
        }

        .csp-banner-footer {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 56px;
            border-top: 1px solid #d7d7d7;
            background: #fff;
        }

        .csp-banner-confirm {
            min-width: 88px;
            height: 35px;
            padding: 0 24px;
            border: 1px solid #3b8dcc;
            border-radius: 4px;
            background: #5b9ed2;
            color: #fff;
            font-size: 0.875rem;
            font-weight: 700;
            cursor: pointer;
        }

        .csp-banner-confirm:hover,
        .csp-banner-confirm:focus {
            background: #3f88c3;
        }

        @media (max-width: 768px) {
            .csp-banner-panel {
                width: calc(100vw - 20px);
                height: calc(100vh - 20px);
                margin: 10px auto;
            }

            .csp-banner-body {
                grid-template-columns: 1fr;
                overflow-y: auto;
            }
        }

/* Extracted from src/main/webapp/WEB-INF/templates/th/csp5/idPwFindPopup.html */
.idpw-find-page {
            color: #111;
        }

        .idpw-find-page .idpw-login-tabs {
            margin-bottom: 48px;
        }

        .idpw-find-page .login-tab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            color: #111;
            text-decoration: none;
        }

        .idpw-find-page .login-tab.is-active {
            color: #1687e5;
        }

        .find-member-panel {
            width: calc(100% - 112px);
            max-width: 892px;
            margin: 0 auto 30px;
            border: 1px solid #8a8a8a;
            border-radius: 10px;
            overflow: hidden;
        }

        .find-member-title {
            margin: 0;
            padding: 13px 17px;
            border-bottom: 1px solid #8a8a8a;
            font-size: 1rem;
            font-weight: 700;
            line-height: 1.3;
        }

        .find-member-body {
            padding: 22px 34px 16px;
        }

        .find-radio-group {
            display: flex;
            justify-content: center;
            gap: 70px;
            margin-bottom: 29px;
            font-size: 0.875rem;
            color: #555;
        }

        .find-radio-item {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            white-space: nowrap;
            cursor: pointer;
        }

        .find-radio-item input {
            width: 15px;
            height: 15px;
            margin: 0;
            cursor: pointer;
        }

        .find-radio-item label {
            cursor: pointer;
        }

        .find-auth-list {
            display: flex;
            justify-content: center;
            gap: 46px;
        }

        .find-auth-card {
            width: 254px;
            min-height: 266px;
            padding: 29px 24px 26px;
            border: 1px solid #8d8d8d;
            border-radius: 18px;
            background: #fff;
            box-sizing: border-box;
            cursor: pointer;
            text-align: center;
        }

        .find-auth-card:focus,
        .find-auth-card:hover {
            border-color: #456df2;
            outline: 2px solid rgba(69, 109, 242, 0.18);
            outline-offset: 2px;
        }

        .find-auth-icon {
            display: block;
            width: 54px;
            height: 39px;
            margin: 0 auto 20px;
            border: 1px solid #8f8f8f;
            background:
                linear-gradient(to bottom right, transparent 49%, #8f8f8f 50%, transparent 51%),
                linear-gradient(to top right, transparent 49%, #8f8f8f 50%, transparent 51%);
            box-sizing: border-box;
        }

        .find-auth-title {
            margin-bottom: 18px;
            padding-bottom: 19px;
            border-bottom: 1px solid #456df2;
            font-size: 0.875rem;
            font-weight: 700;
            line-height: 1.4;
        }

        .find-auth-desc {
            margin: 0;
            color: #555;
            font-size: 0.8125rem;
            line-height: 1.25;
            text-align: left;
            word-break: keep-all;
        }

        .find-auth-desc:before {
            content: "ㆍ";
        }

        @media (max-width: 760px) {
            .find-member-panel {
                width: calc(100% - 32px);
            }

            .find-member-body {
                padding: 20px 16px;
            }

            .find-radio-group,
            .find-auth-list {
                gap: 16px;
            }

            .find-auth-list {
                flex-direction: column;
                align-items: center;
            }

            .find-auth-card {
                width: 100%;
                max-width: 320px;
            }
        }

/* Extracted from src/main/webapp/WEB-INF/templates/th/csp5/resetPassword.html */
        .reset-modal-page {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            box-sizing: border-box;
            background: #666;
        }

        .reset-modal {
            width: min(528px, 100%);
            overflow: hidden;
            border-radius: 12px;
            background: var(--gray-0, #fff);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
        }

        .reset-modal-head {
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 10px 0 16px;
            background: #3a76ae;
            color: #fff;
            box-sizing: border-box;
        }

        .reset-modal-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
            line-height: 1;
        }

        .reset-close {
            width: 24px;
            height: 24px;
            border: 0;
            background: transparent;
            color: #fff;
            cursor: pointer;
            font-size: 0;
            position: relative;
        }

        .reset-close:before,
        .reset-close:after {
            content: "";
            position: absolute;
            left: 5px;
            top: 11px;
            width: 14px;
            height: 1px;
            background: currentColor;
        }

        .reset-close:before {
            transform: rotate(45deg);
        }

        .reset-close:after {
            transform: rotate(-45deg);
        }

        .reset-modal-body {
            padding: 18px 24px 12px;
        }

        .reset-row {
            display: grid;
            grid-template-columns: 150px minmax(0, 1fr);
            align-items: center;
            gap: 18px;
            margin-bottom: 11px;
        }

        .reset-label {
            font-size: 0.875rem;
            font-weight: 700;
            line-height: 1.3;
        }

        .reset-label em,
        .reset-guide em {
            color: #d60000;
            font-style: normal;
        }

        .reset-input {
            width: 100%;
            height: 36px;
            padding: 0 12px;
            border: 1px solid #8d8d8d;
            border-radius: 5px;
            box-sizing: border-box;
            font-size: 0.875rem;
        }

        .reset-input::placeholder {
            color: #aaa;
        }

        .reset-guide {
            margin: 12px 0 4px;
            font-size: 0.8125rem;
            line-height: 1.4;
        }

        .reset-modal-foot {
            min-height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 10px 16px;
            border-top: 1px solid #c9c9c9;
            box-sizing: border-box;
        }

        .reset-button {
            min-width: 86px;
            height: 34px;
            padding: 0 18px;
            border: 1px solid #2f6aa3;
            border-radius: 4px;
            background: #3a76ae;
            color: #fff;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 700;
        }

        .reset-button.is-cancel {
            border-color: #6b6b6b;
            background: #767676;
        }

/* Extracted from src/main/webapp/WEB-INF/templates/th/fragments/csp0/ordinanceRegionPop.html */
.ordinance_map .map_input_box .ordinance_region_note {
    margin: 0;
    color: var(--danger-60);
    font-size: var(--text-15);
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* 포커스 경계선이 넓어져도 인접 도형이 클릭 대상을 가로채지 않도록 내부로 고정한다. */
.ordinance_map .map_box > svg path[id] {
    pointer-events: fill;
}

/* SVG의 사각 포커스 외곽선은 지역 도형 경계 강조로 대체한다. */
.ordinance_map .map_box > svg path[id]:focus,
.ordinance_map .map_box > svg path[id]:focus-visible,
.ordinance_map .map_box .map_region:focus,
.ordinance_map .map_box .map_region:focus-visible {
    outline: none;
}

.ordinance_map .map_box > svg path[id].is-map-focused:not(.is-unavailable) {
    stroke: var(--primary-70);
    stroke-width: 4;
}

#ordinanceRegionPop .ordinance_map .map_box > svg path[id].is-unavailable,
    #ordinanceRegionPop .ordinance_map .map_box > svg path[id].is-unavailable:is(:hover, :focus, .on) {
        fill: var(--gray-10, #f0f0f0);
        stroke: var(--gray-40, #b9b9b9);
        cursor: not-allowed;
    }

    #ordinanceRegionPop .map_region.is-unavailable {
        opacity: .45;
        cursor: not-allowed;
    }

    #ordinanceRegionPop select option:disabled {
        color: var(--gray-60, #5F6977);
    }

    /* select2 사이징 — 퍼블 select 기본 규칙(#wrap .ordinance_map .map_input_box dl dd select{width:100%})과
       맞춰 select2 컨테이너도 100% 폭, 높이는 이 팝업의 다른 입력 요소와 비슷하게 맞춘다. */
    #ordinanceRegionPop .map_input_box .select2-container {
        width: 100% !important;
    }

    #ordinanceRegionPop .select2-selection {
        height: 40px !important;
    }

    #ordinanceRegionPop .select2-selection__rendered {
        line-height: 40px !important;
    }

    #ordinanceRegionPop .select2-selection__arrow {
        height: 40px !important;
    }

/* Extracted from src/main/webapp/WEB-INF/templates/th/fragments/quickMenu.html */
.ft_quick {
			position: fixed !important;
			height: auto !important;
			margin-top: 0 !important;
		}
		/* 최근본 목록: 제목·경로와 개별 삭제 버튼을 한 줄로 세로 중앙 정렬
		   (퍼블 .txt width:calc(100%-40px) 가 flex 줄바꿈을 유발해 버튼이 어긋남) */
		.ft_quick .recent_layer .recent_cont > ul > li .txt_item {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 0.75rem;
		}
		.ft_quick .recent_layer .recent_cont ul > li .txt {
			flex: 1 1 auto;
			min-width: 0;
			width: auto;
			max-width: none;
		}
		.ft_quick .recent_layer .recent_cont .recent_close {
			flex: 0 0 auto;
			align-self: center;
			margin-left: auto;
		}
		.ft_quick .recent_layer .recent_cont ul > li .txt_item:before {
			top: 50%;
			translate: 0 -50%;
		}
			/* ---------- SNS 怨듯넻 ?꾩씠肄?---------- */
		.sns_ico{display:inline-flex;align-items:center;justify-content:center;transition:transform .18s ease,filter .18s ease,opacity .18s ease,box-shadow .18s ease;cursor:pointer;}
		.sns_ico img{display:block;width:100%;height:100%;border-radius:6px;object-fit:cover;pointer-events:none;}
		.sns_ico:hover,.sns_ico.is-hover{transform:scale(1.18);filter:brightness(1.08);opacity:1;z-index:1;}
		.sns_ico:focus-visible{outline:2px solid var(--primary-50);outline-offset:2px;border-radius:8px;}
		/* ---------- ?섎떒 誘몃땲 諛?---------- */
		.sns_bar{display:flex;justify-content:center;gap:14px;width:calc(100% + 2 * clamp(0.625rem,1.2vw,0.875rem));margin-inline:calc(-1 * clamp(0.625rem,1.2vw,0.875rem));padding:10px 0;background:transparent;border-top:1px solid var(--gray-20);border-radius:0 0 var(--radius-10) var(--radius-10);}
		.sns_bar .sns_ico{width:36px;height:36px;}

/*
 * 통합검색 입력창(메인 본문 #mainSearchInput · 헤더 #hdSearchInput) 내부 테두리 제거.
 * 두 입력은 type="text" 라 퍼블 custom.css 의 일반 입력 테두리(포커스 시 파란색)와
 * reset.css 의 :focus-visible 아웃라인이 그대로 걸린다. 퍼블은 type="search" 일 때만 테두리를 없앤다.
 * 바깥 .search_box 의 굵은 테두리가 입력 영역을 이미 표시하므로 내부 테두리는 두지 않는다.
 */
.main_search .search_box input[type="text"],
.main_search .search_box input[type="text"]:focus,
.main_search .search_box input[type="text"]:focus-visible {
    border: none;
    outline: none;
}

/* 반복 영역 건너뛰기(KWCAG 17): 평소에는 숨기고 키보드 초점을 받으면 화면 좌상단에 표시 */
.skip_link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 10000;
    padding: 12px 20px;
    background: #172033;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
}
.skip_link:focus {
    top: 0;
    outline: 3px solid #ffd54a;
}

/* 작은 클릭 영역 24px 보정(KWCAG 12) */
button[data-click-action="check-duplicate-id"], button[data-click-action="save-form"] {
    min-width: 24px;
    min-height: 24px;
}

/* 다크 모드 명도 대비 보정(KWCAG 8): 어두운 배경 위 어두운 글자는 밝게
   (가입·비밀번호 영역 .join-section-title 등의 고정 어두운 글자색은 2026-10-26 제거 — 토큰 색을 그대로 따른다.
    대신 흰 배경이 고정돼 있던 .fragment-content·.reset-modal 배경을 var(--gray-0) 으로 바꿨다) */
@media (prefers-color-scheme: dark) {
    .reset-label em, .reset-guide em { color: #ff7a7a; } /* 필수 표시 #d60000 은 검은 배경에서 3.86:1 */
    /* 흰 배경 전제의 고정색 → 토큰(다크 검은 배경 대비: 6.85 / 6.85 / 15.85) */
    .join-required-guide { color: var(--primary-60); }
    .join-complete-title { color: var(--primary-60); }
    .join-complete-desc { color: var(--gray-70); }
    .card_news_title, .card_news_related_title { color: #f5f8ff; }
    .card_news_related a { color: #eef2f9; }
    .card_news_notice .bullet-list > li { color: #1a1f27 !important; }
    .rss_badge { color: #1f5fbf !important; }
    .solomon_vote_name { background: #59636f; }
    p[style*="color:#c93a00"] { color: #ff8a5c !important; }
    span[style*="rgb(0, 0, 255)"] { color: #8fb4ff !important; }
}

@media (prefers-color-scheme: dark) {
    td[style*="217, 236, 255"] strong { color: #1a1f27 !important; }
}

/* 표의 폐지 속성(cellpadding=0, cellspacing=0) 대체 */
.normalTableStyle { border-spacing: 0; }
.normalTableStyle td, .normalTableStyle th { padding: 0; }

/* 약관 팝업 화면(csp5-agreePopup·agreeIndInfoPopup): 제목 태그를 aria-level 과 같은 단계(h1~h3)로 바꾸고 기존 크기 유지 (2026-10-26) */
.agree-legacy h1 { font-size: 1.17em; margin: 0; }
.agree-legacy h2 { font-size: 1em; margin: 0; }
.agree-legacy h3 { font-size: .83em; margin: 0; }

/* 푸터 웹 접근성 품질인증 마크 자리(footer.html .ft_mark_slot): 인증 취득 전이라 마크(83x56)와 같은 크기의 빈 칸만 둔다 (2026-11-05) */
#footer .ft_right_content .ft_marks .ft_mark_slot { display: block; height: clamp(40px, 5vw, 56px); aspect-ratio: 83 / 56; flex-shrink: 0; }

/* 메인 펼치기/접기: 확대된 문구와 화살표가 한 줄에 들어가도록 한다. */
.csp-wrap .main_law .btn_law_expand {
    top: 100%;
    bottom: auto;
    width: max-content;
    min-width: 96px;
    height: auto;
    min-height: 44px;
    padding: 10px 20px;
    white-space: nowrap;
}
.csp-wrap .main_law .btn_law_expand > span,
.csp-wrap .main_law .btn_law_expand::after { flex-shrink: 0; }

/* 앱 다운로드 QR: 90px 크기와 원본의 흰 여백을 유지해 스캔 선명도를 확보한다. */
.csp-wrap .ft_quick {
    right: max(12px, calc((100vw - 1440px) / 2 - var(--csp-quick-width, 116px) - 24px));
    gap: 12px;
}
.csp-wrap .ft_quick > .sns_bar {
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 8px;
    border: 0;
}
.csp-wrap .ft_quick ul li.qr a { width: max-content; }
.csp-wrap .ft_quick ul li.qr a .img { padding: 0; }
.csp-wrap .ft_quick > .quick_menu > li > :is(a, button) {
    width: max-content;
    min-width: 90px;
    white-space: nowrap;
}
.csp-wrap .ft_quick > .quick_menu > li.qr > a .img { width: 90px; }
/* 퀵메뉴 마지막 항목(최근 본 생활법령) 문구의 위아래 간격을 맞춘다.
   문구 위 = 구분선 아래 여백 + 버튼 안 여백이므로, 목록 아래에도 구분선 여백만큼 더한다.
   한글 글자가 줄 높이 안에서 조금 위에 앉아 아래가 더 넓어 보이므로 2px 를 뺀다.
   버튼 최소 높이 44px(터치 영역)는 줄이지 않는다. */
.csp-wrap .ft_quick > .quick_menu {
    padding-bottom: calc(clamp(0.25rem, 0.6vw, 0.5rem) - 2px);
}
.csp-wrap .ft_quick ul li.qr a .img img,
#footer .ft_right_content .ft_marks .app-download-qr img {
    display: block;
    width: 90px;
    height: 90px;
    max-width: none;
    max-height: none;
    image-rendering: pixelated;
}
@media (min-width: 1441px) {
    .csp-wrap .ft_quick > ul { padding-inline: 12px; }
    .csp-wrap #container .w_custom { width: calc(100% - 2 * (var(--csp-quick-width, 116px) + 36px)); }
}

/*
 * 상단 메가메뉴(전체 카테고리) — 클릭 가능한 영역 표시
 * 그룹 제목 링크(주제별 생활법령 등)와 하위 칩에 퍼블 hover/focus 스타일이 없어
 * 눌리는 범위가 보이지 않았다. 퍼블 custom.css 는 재전달 시 덮이므로 여기서 보완한다.
 * 제목 링크는 안쪽 여백만큼 바깥 여백을 음수로 주어 평소 글자 위치를 그대로 둔다.
 */
#header .all_cate .dep02 > li > a {
    margin: -0.5rem -0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-08, 8px);
    transition: background-color 0.2s, border-color 0.2s;
}

#header .all_cate .dep02 > li > a:is(:hover, :focus-visible) {
    background: var(--primary-5);
    border-color: var(--primary-30);
}

#header .all_cate .dep02 > li > a:is(:hover, :focus-visible) > strong {
    color: var(--primary-60);
}

#header .all_cate .dep03 li a {
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

#header .all_cate .dep03 li a:is(:hover, :focus-visible) {
    background: var(--primary-5);
    border-color: var(--primary-50);
    color: var(--primary-60);
}
