@charset "UTF-8";

/* 기본 설정 */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
    color: #121212;
    font-weight: 400;
    line-height: 1.8;
    font-family: 'Noto Sans KR', 'HelveticaNeue-Light', 'Apple SD Gothic Neo', 'Malgun Gothic', '\B9D1\C740 \ACE0\B515', sans-serif;
    letter-spacing: -0.04em;
    background-color: #fbfbfb;
}

ol,
ul li {
    list-style: none;
}

button {
    border: 0;
}

button,
a {
    cursor: pointer;
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: #dedede;
}

::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
    border: 1px solid #aaa;
}

/* 레이아웃 */
.popup-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    background-color: #fff;
    border: 1px solid #dedede;
    border-top: none;
    border-bottom: none;
}

.popup-toolbar {
    height: 45px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.popup-toolbar button {
    background: transparent;
    position: absolute;
    right: 5px;
    top: 5px;
}

.popup-toolbar button img {
    width: 20px;
    height: 20px;
}

.popup-panel {
    padding: 0 20px;
    box-sizing: border-box;
}

.content-box {
    margin-bottom: 40px;
}

.content-header {
    border: 1px solid #008ec2;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.content-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.meta {
    display: flex;
    color: #999;
    font-size: 15px;
    margin-top: 10px;
}

/* .meta 자식 요소들 간의 간격 조정 */
.meta>*:not(:last-child) {
    margin-right: 16px;
}

.section {
    margin-bottom: 30px;
}

.section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 5px;
}

.section h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0;
}

/* 20250807_추가: 변경된 pre 대체 스타일 */
.code-block {
    background-color: #f7fbfd;
    padding: 20px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    /*overflow-x: auto;*/
}

/* 20250807_추가_새로운 코드 블록 스타일 */
code {
    color: #000;
    /* letter-spacing: 0; */
    font-family: var(--vscode-editor-font-family, "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace);
    font-size: 1em;
    line-height: 1.357em;
}

.bt_line {
    border-bottom: 1px solid #dcddde;
    padding: 10px 0;
}

.desc {
    margin: 6px 0;
    text-align: justify;
}

.note {
    font-size: 14px;
    color: #777;
    margin: 6px 0 12px;
    font-style: normal;
}

.location-icon {
    margin: 10px 0;
    color: #008ec2;
    font-weight: 500;
}

.guide-list {
    padding-left: 4px;
    margin: 0;
    /* color: #333; */
}

.guide-list li {
    line-height: 1.6;
}

.section figure {
    margin: 20px 0 0 0;
    padding: 10px;
}

.section figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    border: 1px solid #dcddde;
}

.section figcaption {
    font-size: 14px;
    text-align: center;
    color: #808080;
    margin-top: 5px;
}

.csv-box {
    background-color: #eef6fa;
    padding: 24px;
    /* border-radius: 8px; */
    margin: auto;
    word-break: keep-all;
    letter-spacing: 0;
}

.csv-box p {
    margin: 8px 0;
    color: #333;
}

.csv-data {
    display: flex;
    flex-direction: column;
}

.section-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 60px auto 40px 0;
    width: 100%;
}

.api-box {
    background-color: #fff;
    border: 1px solid #dcddde;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-all;
}

.url-part {
    color: #1a73e8;
}

.domain {
    color: red;
    font-weight: bold;
}

.input-param {
    color: orange;
    font-weight: bold;
}

.auth {
    color: green;
    font-weight: bold;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    word-break: break-word;
}

th {
    background-color: #eef6fa;
    color: #333;
    font-weight: 500;
    padding: 6px;
    text-align: center;
    border-bottom: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-top: 2px solid #008ec2;
}

th:last-child {
    border-right: none;
}

td {
    padding: 3px;
    text-align: center;
    border-bottom: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
}

td:last-child {
    border-right: none;
}

.br-mobile {
    display: none;
}

.item-divider {
    border-bottom: 1.5px dotted #d1d5db !important;
}

.category {
    color: #374151;
    text-align: center;
    border-right: 1px solid #d1d5db;
}

.subcategory {
    background-color: #fff;
    color: #4b5563;
}

.popup-close-btn {
    display: block;
    width: 100px;
    height: 40px;
    background-color: #008ec2;
    color: #fff;
    border: none;
    cursor: pointer;
    margin: 30px auto 0;
    font-size: 16px;
}

.popup-close-btn:hover {
    background-color: #00658a;
}

/* 대용량 데이터 다운로드 절차 관련 */
/* 새로운 래퍼 div 추가 */
.download-process-wrapper {
    display: flex;
    justify-content: center;
    /* 전체 절차를 가운데로 */
    align-items: flex-start;
    /* 상단 정렬 */
    margin: 20px 0 30px 0;
}

.process-flow {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 900px;
}

.step {
    width: calc(33.33% - 40px);
    margin: 0 20px;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step:first-child {
    margin-left: 0;
}

.step:last-child {
    margin-right: 0;
}

.step-container {
    background: #E7F5FE;
    border-radius: 20px;
    padding: 15px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.step-icon img {
    width: 60%;
    margin: 0 auto 10px;
    display: block;
}

.step-title {
    font-weight: 600;
    color: #0B2B67;
    line-height: 1.3;
    text-align: center;
}

.step-description {
    font-size: 14px;
    color: #0B2B67;
    line-height: 1.3;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 화살표 스타일 */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow img {
    width: 42px;
    height: auto;
}

.arrow-1 {
    left: calc(33.33% - 31px);
}

.arrow-2 {
    left: calc(66.66% - 10px);
}

/* 이미지 양옆 배치 컨테이너 */
.img-row-container {
    overflow: hidden;
    text-align: center;
    margin: 20px 0;
}

.img-row-container figure {
    float: left;
    margin: 0 10px;
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 20px);
    box-sizing: border-box;
}

.ftpn-notice {
    color: #ce432d;
    font-weight: 500;
    width: 98%;
    ;
}

/* ------------------------------------------------------------- */
/* 모바일 환경 (max-width: 768px) 개선 */
/* ------------------------------------------------------------- */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    body {
        font-size: 15px;
    }

    .meta {
        font-size: 14px;
        margin-top: 10px;
        display: flex;
    }

    .meta>*:not(:last-child) {
        margin-right: 12px;
    }

    .popup-panel {
        padding: 10px;
    }

    .desc {
        font-size: 15px;
        text-align:left;
    }

    p {
        font-size: 15px;
    }

    .api-box {
        font-size: 14px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        /* padding: 6px;*/
    }

    .br-mobile::after {
        content: "\A";
        white-space: pre;
    }

    .br-mobile {
        display: inline;
    }

    /* 대용량 데이터 다운로드 절차 - 모바일 */
    .download-process-wrapper {
        flex-direction: column;
        align-items: center;
        margin: 20px auto 30px auto;
        width: 100%;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    .step {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        height: auto;
    }

    .step-container {
        padding: 15px;
        border-radius: 20px;
    }

    .step-icon img {
        width: 50%;
        height: 50%;
    }

    .step-title {
        font-size: 16px;
        text-align: center;
    }

    .step-description {
        font-size: 14px;
        min-height: 2em;
        text-align: center;
    }

    .arrow {
        position: static;
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .arrow img {
        width: 30px;
    }

    .arrow-1,
    .arrow-2 {
        left: auto;
        right: auto;
        position: static;
    }

    /* 변경된 코드 블록 - 모바일 스타일 */
    .code-block, .code-block code {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .api-box {
        font-size: 14px;
        padding: 12px;
    }

    .step-container {
        padding: 15px;
        border-radius: 10px;
    }

    .step-title {
        font-size: 16px;
        text-align: center;
    }

    .step-description {
        font-size: 14px;
        min-height: 2em;
        text-align: center;
    }

    .img-row-container {
        display: block;
        text-align: center;
    }

    .img-row-container figure {
        float: none;
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 300px;
    }

    .code-block, .code-block code {
        font-size: 13px;
    }
}