/* ===== 리셋 및 기본 ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    min-height: 100vh;
}

#app {
    display: flex;
    width: 100%;
}

.symbol-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================================================ */
/* ===== 사이드바 ===== */
/* ============================================================ */
#sidebar {
    width: 220px;
    background: #1e293b;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    padding: 16px 0;
    z-index: 100;
}

.logo-area {
    padding: 0 16px 20px;
    border-bottom: 1px solid #334155;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    color: #60a5fa;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

.logo-text small {
    font-weight: 400;
    font-size: 12px;
    color: #94a3b8;
}

.nav-menu {
    flex: 1;
    padding: 0 10px;
}

.nav-group {
    margin-bottom: 20px;
}

.nav-group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 0 10px 6px;
    font-weight: 600;
}

.nav-group-title i {
    margin-right: 6px;
    width: 18px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item i {
    width: 20px;
    font-size: 14px;
}

.nav-item:hover {
    background: #334155;
    color: #fff;
}

.nav-item.active {
    background: #3b82f6;
    color: #fff;
    font-weight: 500;
}

.sidebar-footer {
    padding: 16px 16px 0;
    border-top: 1px solid #334155;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
}

/* ============================================================ */
/* ===== 메인 컨텐츠 ===== */
/* ============================================================ */
#main-content {
    flex: 1;
    padding: 20px 28px;
    max-width: calc(100% - 220px);
    overflow-y: auto;
    min-height: 100vh;
}

#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#page-title {
    font-size: 20px;
    font-weight: 600;
}

#page-title i {
    margin-right: 10px;
    color: #3b82f6;
}

.badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================================ */
/* ===== 탭 패널 ===== */
/* ============================================================ */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ============================================================ */
/* ===== 카드 ===== */
/* ============================================================ */
.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header i {
    color: #3b82f6;
}

.card-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 12px;
    color: #475569;
}

.card-body {
    padding: 20px;
}

/* ============================================================ */
/* ===== 폼 요소 ===== */
/* ============================================================ */
.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.form-row label {
    font-weight: 500;
    font-size: 13px;
    min-width: 100px;
    color: #1e293b;
}

.form-row input,
.form-row select {
    flex: 1;
    min-width: 160px;
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-row input[type="file"] {
    padding: 5px 8px;
    border: none;
    background: transparent;
    min-width: 120px;
}

.form-row input[type="file"]::file-selector-button {
    padding: 5px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.form-row input[type="file"]::file-selector-button:hover {
    background: #e2e8f0;
}

.coord-input-group {
    display: flex;
    gap: 8px;
    flex: 1;
}

.coord-input-group input {
    flex: 1;
    min-width: 80px;
}

/* ===== API 키 토글 ===== */
.api-key-wrapper {
    display: flex;
    flex: 1;
    min-width: 160px;
    position: relative;
}

.api-key-wrapper input {
    flex: 1;
    padding-right: 36px;
}

.toggle-key-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
    z-index: 2;
}

.toggle-key-btn:hover {
    color: #475569;
}

/* ============================================================ */
/* ===== 버튼 ===== */
/* ============================================================ */
.btn {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn.primary {
    background: #3b82f6;
    color: #fff;
}

.btn.bookmark {
    background: #22c55e;;
    color: #fff;
}

.btn.primary:hover {
    background: #2563eb;
}

.btn.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn.secondary:hover {
    background: #e2e8f0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ==========================================
   여백 제거 토글 버튼
========================================== */

.crop-toggle {
    min-width: 140px;
    height: 38px;

    padding: 0 14px;

    border: 1px solid #cfd8e3;
    border-radius: 8px;

    background: #f3f4f6;
    color: #475569;

    font-size: 14px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

/* OFF 상태 */

.crop-toggle.off {
    background: #f3f4f6;
    color: #475569;
    border-color: #cbd5e1;
}

/* ON 상태 */

.crop-toggle.on {
    background: #22c55e;
    color: #ffffff;
    border-color: #16a34a;
}

/* Hover */

.crop-toggle:hover {
    filter: brightness(0.97);
}

/* 클릭 효과 */

.crop-toggle:active {
    transform: scale(0.98);
}

/* 아이콘 */

.crop-toggle i {
    font-size: 14px;
}

/* ==========================================
   이미지→PDF 변환 영역
========================================== */

#img2pdf-mode {
    min-width: 200px;
}

#btn-img2pdf-start {
    min-width: 120px;
}

/* ==========================================
   PDF→이미지 변환 영역
========================================== */

#btn-pdf2img-start {
    min-width: 120px;
}

/* ==========================================
   옵션 행 정렬
========================================== */

.form-row.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 모바일 대응 */

@media (max-width: 768px) {

    .form-row.option-row {
        flex-direction: column;
        align-items: stretch;
    }

    .crop-toggle,
    #img2pdf-mode,
    #btn-img2pdf-start,
    #btn-pdf2img-start {
        width: 100%;
        min-width: unset;
    }
}

/* ============================================================ */
/* ===== 미리보기 (CSV 테이블) ===== */
/* ============================================================ */
.preview-wrap {
    max-height: 220px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 12px;
    background: #fff;
}

.preview-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.preview-wrap th {
    background: #f1f5f9;
    position: sticky;
    top: 0;
    padding: 6px 10px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    font-size: 12px;
    z-index: 2;
}

.preview-wrap td {
    padding: 4px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}

.preview-wrap .placeholder {
    padding: 30px;
    text-align: center;
    color: #94a3b8;
}

/* ============================================================ */
/* ===== 진행률 바 ===== */
/* ============================================================ */
.progress-wrap {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 12px;
    color: #475569;
    min-width: 60px;
    text-align: right;
}

/* ============================================================ */
/* ===== 오류 메시지 ===== */
/* ============================================================ */
.error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================================ */
/* ===== 지도 ===== */
/* ============================================================ */
#map-container {
    height: 620px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 8px 0;
    background: #e2e8f0;
}

.map-info {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    padding: 4px 0;
}

/* ============================================================ */
/* ===== 파일 리스트 박스 ===== */
/* ============================================================ */
.file-list-box {
    max-height: 140px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    background: #f8fafc;
    width: 100%;
    min-height: 38px;
}

.file-list-box div {
    padding: 3px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
    color: #1e293b;
}

.file-list-box div:last-child {
    border-bottom: none;
}

.file-list-box .placeholder {
    color: #94a3b8;
    font-size: 12px;
}

/* ============================================================ */
/* ===== 이미지 그리드 (미리보기) ===== */
/* ============================================================ */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.image-grid img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
}

/* ============================================================ */
/* ===== 체크박스 라벨 정렬 ===== */
/* ============================================================ */
.form-row label input[type="checkbox"] {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

/* ============================================================ */
/* ===== 반응형 (모바일) ===== */
/* ============================================================ */
@media (max-width: 768px) {
    #sidebar {
        width: 56px;
        padding: 10px 0;
    }

    #sidebar .logo-text,
    #sidebar .nav-group-title,
    #sidebar .nav-item span,
    #sidebar .sidebar-footer span:first-child {
        display: none;
    }

    #sidebar .nav-item {
        justify-content: center;
        padding: 10px;
    }

    #sidebar .nav-item i {
        font-size: 18px;
        margin: 0;
    }

    .logo-area {
        padding: 0 8px 12px;
        justify-content: center;
    }

    .logo-icon {
        font-size: 22px;
    }

    #main-content {
        padding: 12px 16px;
        max-width: calc(100% - 56px);
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row label {
        min-width: auto;
        font-size: 13px;
    }

    .form-row input,
    .form-row select {
        min-width: auto;
        width: 100%;
    }

    .coord-input-group {
        flex-wrap: wrap;
    }

    .coord-input-group input {
        min-width: auto;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .api-key-wrapper {
        min-width: auto;
        width: 100%;
    }

    #map-container {
        height: 400px;
    }

    .preview-wrap {
        max-height: 180px;
        font-size: 11px;
    }

    .preview-wrap th,
    .preview-wrap td {
        padding: 4px 6px;
        font-size: 11px;
    }

    .file-list-box {
        max-height: 100px;
        font-size: 11px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .card-body {
        padding: 14px;
    }

    .card-header {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ============================================================ */
/* ===== 추가: 스크롤바 커스텀 (선택) ===== */
/* ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================ */
/* ===== 프로그램 다운로드 ===== */
/* ============================================================ */
.download-card .card-body {
    padding: 24px;
}

.download-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.download-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
    min-width: 180px;
}

.download-info h2 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #0f172a;
}

.download-info p {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.download-filename {
    display: inline-block;
    font-size: 12px;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 10px;
}

.download-btn {
    min-width: 140px;
    justify-content: center;
}

@media (max-width: 768px) {
    .download-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .download-icon {
        margin: 0 auto;
    }

    .download-btn {
        width: 100%;
    }
}

/* ============================================================ */
/* ===== TAAS 사용 전 준비 / 매뉴얼 다운로드 ===== */
/* ============================================================ */
.taas-guide-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 18px 22px;
    margin-bottom: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
}

.taas-guide-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.taas-guide-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.taas-guide-text {
    min-width: 0;
}

.taas-guide-text strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #0f172a;
}

.taas-guide-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1d4ed8;
}

.taas-manual-btn {
    min-width: 150px;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .taas-guide-box {
        flex-direction: column;
        align-items: stretch;
    }

    .taas-guide-left {
        align-items: flex-start;
    }

    .taas-manual-btn {
        width: 100%;
    }
}

/* ============================================================ */
/* ===== TAAS 데이터 수집: 북마크 복사 ===== */
/* ============================================================ */
.taas-bookmark-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 20px 22px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
}

.taas-bookmark-info {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.taas-bookmark-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.taas-bookmark-info strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #0f172a;
}

.taas-bookmark-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1d4ed8;
}

.taas-bookmark-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.success-msg {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .taas-bookmark-box {
        flex-direction: column;
        align-items: stretch;
    }

    .taas-bookmark-info {
        align-items: flex-start;
    }

    .taas-bookmark-actions {
        flex-direction: column;
    }
}

/* ============================================================ */
/* ===== 데이터 포털 바로가기 ===== */
/* ============================================================ */
.data-portal-card .card-body {
    padding: 22px;
}

.portal-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.portal-intro h2 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #0f172a;
}

.portal-intro p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.portal-quick-count {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.portal-section {
    margin-top: 22px;
}

.portal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.portal-section-title i {
    color: #2563eb;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 10px;
}

.portal-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-tile:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.portal-tile > i {
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
}

.portal-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-align: center;
    line-height: 1.1;
}

.portal-text {
    min-width: 0;
}

.portal-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #0f172a;
}

.portal-text small {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

/* 중앙정부 · 공공기관 */
.portal-logo.government{
    background: url('image/gov.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 경찰청 */
.portal-logo.police{
    background: url('image/police.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 지표누리 */
.portal-logo.jipyo{
    background: url('image/jipyo.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* ktdb */
.portal-logo.ktdb{
    background: url('image/ktdb.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* its */
.portal-logo.its{
    background: url('image/its.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* tcard */
.portal-logo.tcard{
    background: url('image/tcard.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 토지이음 */
.portal-logo.land{
    background: url('image/land.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 건축허브 */
.portal-logo.build{
    background: url('image/build.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 철도 */
.portal-logo.rail{
    background: url('image/rail.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 도로교통공단 */
.portal-logo.kroad{
    background: url('image/kroad.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 교통안전정보관리시스템 */
.portal-logo.tmacs{
    background: url('image/tmacs.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* vworld */
.portal-logo.vworld{
    background: url('image/vworld.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 통계지리정보 */
.portal-logo.sgis{
    background: url('image/sgis.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 대구 항공사진 */
.portal-logo.dgis{
    background: url('image/dgis.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* mimlab 이면도로 */
.portal-logo.mimlab{
    background: url('image/mimlab.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 오픈스트리트맵 */
.portal-logo.osm{
    background: url('image/osm.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 공공데이터 */
.portal-logo.pdata{
    background: url('image/pdata.png') center center / contain no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* 통계 · 데이터 분석 */
.portal-logo.stats { background: #0f766e; }

@media (max-width: 768px) {
    .portal-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .portal-tile {
        min-height: 68px;
    }
}
