/* ==========================================================================
   🌿 태극도 공식 홈페이지 통합 UX 고도화 스타일 (tgd-ux-enhance.css)
   - PC 헤더 줄바꿈 원천 차단 & 큰글씨 정방향 확대 보장
   - 홈 화면 여백미(수묵 정갈함) · 진경 리더 · 포털 통합검색 · 마이페이지 수도현황
   ========================================================================== */

/* --------------------------------------------------------------------------
   [0] PC 상단 헤더 줄바꿈 깨짐 원천 방지 (기본 상태 & 큰글씨 상태 모두 1줄 고정)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 769px) {
    #header .header_wrap.mo_none .inner {
        flex-wrap: nowrap !important;
        gap: 12px;
    }

    #header .header_wrap.mo_none .h_logo {
        flex-shrink: 0;
    }

    #header .header_wrap.mo_none .navigation {
        margin-right: auto !important;
        margin-left: clamp(16px, 2.4vw, 48px) !important;
        flex-shrink: 0;
    }

    #header .header_wrap.mo_none .dep01 {
        flex-wrap: nowrap !important;
        align-items: center;
    }

    #header .header_wrap.mo_none .navigation .parent {
        flex-shrink: 0;
        white-space: nowrap !important;
    }

    #header .header_wrap.mo_none .navigation .parent .parent_a {
        white-space: nowrap !important;
        word-break: keep-all !important;
        font-size: 21px !important;
        padding: 36px clamp(14px, 1.9vw, 32px) !important;
        line-height: 1.2 !important;
    }

    #header .header_wrap.mo_none .login_wrap {
        flex-shrink: 0;
    }

    #header .header_wrap.mo_none .login_wrap .login_box {
        padding: 0 8px !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }

    #header .header_wrap.mo_none .login_wrap .login_box .log_link,
    #header .header_wrap.mo_none .login_wrap .login_box .log_link a,
    #header .header_wrap.mo_none .user-profile-btn,
    #header .header_wrap.mo_none .logout-btn {
        white-space: nowrap !important;
        word-break: keep-all !important;
        flex-shrink: 0;
    }
}

/* --------------------------------------------------------------------------
   [1순위-A] 상단 헤더 [가+ 큰글씨] 토글 버튼
   -------------------------------------------------------------------------- */
.tgd-font-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap !important;
    flex-shrink: 0;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    user-select: none;
}

.tgd-font-toggle-btn:hover {
    border-color: #003366;
    background: #f0f7ff;
    color: #003366 !important;
}

.tgd-font-toggle-btn.is-on {
    background: linear-gradient(135deg, #003366 0%, #1d4ed8 100%);
    border-color: #003366;
    color: #fef08a !important;
    box-shadow: 0 3px 10px rgba(0, 51, 102, 0.25);
}

/* --------------------------------------------------------------------------
   [1순위-B] 전역 큰글씨(어르신 배려) 모드 (html.tgd-large-text)
   - 기본 글자보다 항상 정방향으로 커지도록 px/em 단위 명확히 설계
   -------------------------------------------------------------------------- */
@media screen and (min-width: 769px) {
    html.tgd-large-text #header .header_wrap.mo_none .navigation .parent .parent_a {
        font-size: 23.5px !important;
        padding: 35px clamp(12px, 1.5vw, 26px) !important;
    }

    html.tgd-large-text #visual .visualWrap div.visual_txt .visual_hl {
        font-size: 38px !important;
    }
}

@media screen and (max-width: 768px) {
    html.tgd-large-text #main.mo_block .visual_hl {
        font-size: 26px !important;
    }
}

html.tgd-large-text #sub .sTit_box .sub_tit {
    font-size: 34px !important;
}

html.tgd-large-text .home-date-pill {
    font-size: 1.04rem !important;
}

html.tgd-large-text .home-verse-quote {
    font-size: 1.24rem !important;
    line-height: 1.68 !important;
}

html.tgd-large-text .home-news-ticker-text {
    font-size: 1.04rem !important;
}

/* 게시판 목록 · 본문 · 댓글 확대 */
html.tgd-large-text #sub .board_section table td,
html.tgd-large-text #sub .board_section table th,
html.tgd-large-text #sub .board_section .list_tit,
html.tgd-large-text #sub .board_section .tit_a {
    font-size: 19px !important;
    line-height: 1.65 !important;
}

html.tgd-large-text #sub .view_cont,
html.tgd-large-text #sub .view_cont p,
html.tgd-large-text #sub .view_cont div:not(.jk-verse-tools):not(.jk-hanja-pop) {
    font-size: 21px !important;
    line-height: 1.9 !important;
}

html.tgd-large-text #jk_section .jk_tit {
    font-size: 22px !important;
}

html.tgd-large-text #jk_section .jk_txtBox .verse {
    font-size: 20px !important;
    line-height: 1.85 !important;
}

/* 마이페이지 · 통합검색 확대 */
html.tgd-large-text #tgd-mypage-root .myp-label,
html.tgd-large-text #tgd-mypage-root .myp-ro-label {
    font-size: 15px !important;
}

html.tgd-large-text #tgd-mypage-root .myp-input,
html.tgd-large-text #tgd-mypage-root .myp-select,
html.tgd-large-text #tgd-mypage-root .myp-textarea,
html.tgd-large-text #tgd-mypage-root .myp-ro-value,
html.tgd-large-text #tgd-mypage-root .myp-sudo-item {
    font-size: 17px !important;
}

html.tgd-large-text .tgd-gsearch-item-title {
    font-size: 20px !important;
}

html.tgd-large-text .tgd-gsearch-item-desc {
    font-size: 17.5px !important;
    line-height: 1.7 !important;
}

/* --------------------------------------------------------------------------
   [1순위-C] 모바일 앱 설치 배너 & 아이폰 안내 모달
   -------------------------------------------------------------------------- */
.tgd-pwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    z-index: 99980;
    background: linear-gradient(135deg, #0f294a 0%, #1e3a5f 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
    animation: tgdSlideUpIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tgdSlideUpIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.tgd-pwa-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    padding: 4px;
    flex-shrink: 0;
    object-fit: contain;
}

.tgd-pwa-text {
    flex: 1;
    min-width: 0;
}

.tgd-pwa-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 2px;
}

.tgd-pwa-sub {
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.3;
}

.tgd-pwa-install-btn {
    background: #facc15;
    color: #0f172a !important;
    border: none;
    border-radius: 9px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.tgd-pwa-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.tgd-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 100050;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tgd-modal-mask.is-open {
    display: flex;
}

.tgd-modal-dialog {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 20px 18px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.3);
    color: #1e293b;
}

.tgd-ios-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 13px;
    margin-bottom: 9px;
    font-size: 13.5px;
    line-height: 1.5;
}

.tgd-ios-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #003366;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --------------------------------------------------------------------------
   [2순위] 진경 전자책·오디오북 리더 툴바 · 한지/야간 테마 · 책갈피 · 한자풀이
   -------------------------------------------------------------------------- */
.jk-continue-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fdf8ec 0%, #f5ebd4 100%);
    border: 1.5px solid #decba4;
    border-radius: 14px;
    padding: 14px 18px;
    margin: 0 0 18px 0;
    box-shadow: 0 4px 14px rgba(120, 90, 40, 0.08);
}

.jk-continue-banner.is-visible {
    display: flex;
}

.jk-reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 11px 15px;
    margin: 0 0 16px 0;
}

.jk-tool-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.jk-tool-label {
    font-size: 12.5px;
    font-weight: 800;
    color: #475569;
    margin-right: 2px;
}

.jk-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 11px;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
    line-height: 1.2;
}

.jk-tool-btn:hover {
    border-color: #003366;
    color: #003366;
    background: #f0f7ff;
}

.jk-tool-btn.active {
    background: #003366;
    border-color: #003366;
    color: #ffffff !important;
}

.jk-tool-btn.tts-play {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border-color: #0f766e;
    color: #ffffff !important;
}

.jk-tool-btn.tts-play.is-speaking {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    border-color: #b45309;
}

/* 📜 한지 모드 (board.css #view_section .view_cont 흰 배경까지 완벽 오버라이드) */
#view_section .view_content.jk-theme-hanji {
    background: #f6efe0 !important;
    border: 1px solid #dfd1b4 !important;
    border-radius: 16px !important;
    padding: 20px 22px !important;
    color: #2b2117 !important;
}

#view_section .view_content.jk-theme-hanji .white_table_write,
#view_section .view_content.jk-theme-hanji tr.top {
    background: #efe4cc !important;
    border-color: #d6c5a3 !important;
}

#view_section .view_content.jk-theme-hanji th.th3 {
    background: #e7d9bc !important;
    color: #4a3723 !important;
}

#view_section .view_content.jk-theme-hanji td.th_txt,
#view_section .view_content.jk-theme-hanji .chapter-jump-link,
#view_section .view_content.jk-theme-hanji .chapter-jump-link span {
    background: #f2e8d2 !important;
    color: #2b2117 !important;
}

#view_section .view_content.jk-theme-hanji .view_cont {
    background: #fbf6ea !important;
    border-color: #dfd1b4 !important;
    color: #2b2117 !important;
}

#view_section .view_content.jk-theme-hanji .view_cont .verse-text,
#view_section .view_content.jk-theme-hanji .view_cont .verse-text *,
#view_section .view_content.jk-theme-hanji .view_cont p {
    color: #2b2117 !important;
}

#view_section .view_content.jk-theme-hanji .view_cont .verse-num {
    color: #8c5820 !important;
}

#view_section .view_content.jk-theme-hanji .jk-mini-act {
    background: #f3ead7 !important;
    border-color: #d5c4a1 !important;
    color: #5c4328 !important;
}

/* 🌙 야간 모드 (내부 .view_cont 흰 배경 제거 · 모든 자식 글자 선명한 밝은 톤 보장) */
#view_section .view_content.jk-theme-night {
    background: #131a26 !important;
    border: 1px solid #2b374b !important;
    border-radius: 16px !important;
    padding: 20px 22px !important;
    color: #e6edf6 !important;
}

#view_section .view_content.jk-theme-night .white_table_write,
#view_section .view_content.jk-theme-night tr.top {
    background: #1c2638 !important;
    border-color: #2f3e56 !important;
}

#view_section .view_content.jk-theme-night th.th3 {
    background: #222f45 !important;
    color: #93c5fd !important;
}

#view_section .view_content.jk-theme-night td.th_txt,
#view_section .view_content.jk-theme-night .chapter-jump-link,
#view_section .view_content.jk-theme-night .chapter-jump-link span {
    background: #1c2638 !important;
    color: #f1f5f9 !important;
}

#view_section .view_content.jk-theme-night .view_cont {
    background: #182130 !important;
    border: 1px solid #2c3a50 !important;
    color: #e6edf6 !important;
}

#view_section .view_content.jk-theme-night .view_cont .verse-text,
#view_section .view_content.jk-theme-night .view_cont .verse-text *,
#view_section .view_content.jk-theme-night .view_cont p {
    color: #e6edf6 !important;
}

#view_section .view_content.jk-theme-night .view_cont .verse-num {
    color: #7dd3fc !important;
}

#view_section .view_content.jk-theme-night .view_cont.jk-hanja-enabled .jk-hanja-term {
    color: #fde68a !important;
    border-bottom-color: rgba(253, 224, 71, 0.55) !important;
}

#view_section .view_content.jk-theme-night .jk-mini-act {
    background: #243146 !important;
    border-color: #3b4d68 !important;
    color: #cbd5e1 !important;
}

#view_section .view_content.jk-theme-night .jk-mini-act.on {
    background: #423713 !important;
    border-color: #eab308 !important;
    color: #fde047 !important;
}

#view_section .view_content.jk-theme-night .bg-warning {
    background-color: #854d0e !important;
    color: #fef08a !important;
}

.jk-verse-item {
    position: relative;
    padding: 8px 12px 8px 8px;
    border-radius: 10px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.jk-verse-item:hover {
    background: rgba(148, 163, 184, 0.09);
}

.jk-verse-item.is-speaking {
    background: rgba(20, 184, 166, 0.18) !important;
    box-shadow: inset 4px 0 0 #0d9488;
}

.jk-verse-item.is-bookmarked {
    background: rgba(250, 204, 21, 0.22) !important;
    box-shadow: inset 4px 0 0 #eab308;
}

#view_section .view_content.jk-theme-night .jk-verse-item.is-bookmarked {
    background: rgba(234, 179, 8, 0.16) !important;
}

.jk-verse-tools {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    opacity: 0.76;
    transition: opacity 0.16s ease;
}

.jk-verse-item:hover .jk-verse-tools {
    opacity: 1;
}

.jk-mini-act {
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.jk-mini-act:hover {
    border-color: #003366;
    color: #003366;
}

.jk-mini-act.on {
    background: #fef9c3;
    border-color: #eab308;
    color: #854d0e;
}

/* 한자풀이 OFF 상태에서는 일반 글자처럼 깔끔하게 표시, ON 상태(.jk-hanja-enabled)에서만 점선 및 호버 작동 */
.jk-hanja-term {
    border-bottom: none;
    cursor: text;
    padding: 0 1px;
    border-radius: 3px;
    transition: background-color 0.14s ease;
}

.view_cont.jk-hanja-enabled .jk-hanja-term {
    border-bottom: 1.5px dotted #b45309;
    cursor: pointer;
}

.view_cont.jk-hanja-enabled .jk-hanja-term:hover,
.view_cont.jk-hanja-enabled .jk-hanja-term.is-active-hj {
    background: rgba(245, 158, 11, 0.24) !important;
}

.jk-hanja-pop {
    position: fixed;
    z-index: 100060;
    min-width: 220px;
    max-width: 340px;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 12px 15px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
    font-size: 13.5px;
    line-height: 1.52;
    display: none;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   [3순위] 홈 화면 정갈한 여백미 카드 + 정운진 최고 마스터 전용 항목 ON/OFF 바
   -------------------------------------------------------------------------- */
.home-master-ctrl-wrap {
    margin: 8px 0 4px 0;
    max-width: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.home-master-gear-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.home-master-gear-btn:hover {
    border-color: #003366;
    color: #003366;
}

.home-master-switch-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.home-master-sw {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.home-master-sw::before {
    content: "OFF · ";
    font-size: 10.5px;
    opacity: 0.75;
}

.home-master-sw.is-on {
    background: #facc15;
    border-color: #facc15;
    color: #0f172a;
}

.home-master-sw.is-on::before {
    content: "ON · ";
    font-weight: 900;
    opacity: 1;
}

.home-calm-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: rgba(255, 253, 249, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(205, 193, 173, 0.55);
    border-radius: 22px;
    padding: 20px 24px;
    margin-top: 14px;
    max-width: 470px;
    box-shadow: 0 12px 32px rgba(45, 35, 20, 0.06);
    text-align: center;
    box-sizing: border-box;
}

.home-date-pill {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #5c4f42;
    font-family: 'Gowun Dodum', sans-serif;
    letter-spacing: -0.3px;
    line-height: 1.45;
    text-decoration: none !important;
}

.home-my-dday-chip {
    display: none;
    margin: 7px auto 0;
    padding: 3px 11px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.78rem;
    font-weight: 800;
    width: fit-content;
    max-width: 100%;
}

.home-my-dday-chip.is-visible {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-verse-block {
    margin: 0;
    padding: 11px 6px;
    background: rgba(248, 243, 233, 0.55);
    border-radius: 14px;
}

.home-verse-quote {
    display: block;
    font-family: 'Gowun Dodum', 'nanum_myeongjo_r', serif;
    font-size: 1.04rem;
    font-weight: 700;
    color: #261f18 !important;
    line-height: 1.62;
    word-break: keep-all;
    text-decoration: none !important;
    margin-bottom: 8px;
}

.home-verse-quote:hover {
    color: #003366 !important;
}

.home-verse-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #85725c;
}

.home-verse-card-link {
    border: 1px solid #d6c5ab;
    background: #fffcf7;
    color: #6b4c2a;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}

.home-verse-card-link:hover {
    background: #6b4c2a;
    border-color: #6b4c2a;
    color: #ffffff;
}

.home-news-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(244, 239, 230, 0.7);
    text-decoration: none !important;
    margin: 0;
    overflow: hidden;
}

.home-news-ticker:hover {
    background: rgba(235, 228, 215, 0.95);
}

.home-news-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #7c5832;
    background: #fff;
    border: 1px solid #dfd2be;
    padding: 1px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.home-news-ticker-text {
    font-size: 0.86rem;
    font-weight: 700;
    color: #3a3128;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-calm-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-home-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-home-soft.blog {
    background: #f0f5fa;
    border: 1px solid #c9daea;
    color: #234e78 !important;
}

.btn-home-soft.blog:hover {
    background: #234e78;
    color: #ffffff !important;
}

.btn-home-soft.video {
    background: #fdf2f2;
    border: 1px solid #eccaca;
    color: #9b3434 !important;
}

.btn-home-soft.video:hover {
    background: #9b3434;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .home-master-ctrl-wrap {
        margin: 6px auto 2px auto !important;
        max-width: 356px !important;
    }

    .home-calm-card {
        margin: 10px auto 14px auto !important;
        width: 100% !important;
        max-width: 356px !important;
        padding: 16px 16px !important;
        gap: 11px;
        border-radius: 20px;
    }

    .home-verse-block {
        margin: 0;
        padding: 10px 6px;
    }

    .home-verse-quote {
        font-size: 0.97rem;
        line-height: 1.58;
    }

    .btn-home-soft {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .jk-reader-toolbar {
        padding: 9px 10px;
        gap: 7px;
    }

    .jk-tool-btn {
        padding: 5px 9px;
        font-size: 12px;
    }
}

/* --------------------------------------------------------------------------
   [4순위] 포털형 통합 검색 스타일
   -------------------------------------------------------------------------- */
.tgd-gsearch-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 22px;
    -webkit-overflow-scrolling: touch;
}

.tgd-gsearch-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.16s ease;
}

.tgd-gsearch-tab.active {
    background: #003366;
    border-color: #003366;
    color: #ffffff !important;
}

.tgd-gsearch-sec {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.tgd-gsearch-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 11px;
    margin-bottom: 14px;
}

.tgd-gsearch-sec-title {
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.tgd-gsearch-mark {
    background: #fef08a;
    color: #854d0e;
    font-weight: 800;
    padding: 0 2px;
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   [5순위] 마이페이지 '나의 수도 발자취 & 책갈피' 대시보드
   -------------------------------------------------------------------------- */
.myp-sudo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.myp-sudo-kpi {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 14px 15px;
    text-align: center;
}

.myp-sudo-kpi-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 5px;
}

.myp-sudo-kpi-val {
    font-size: 22px;
    font-weight: 900;
    color: #003366;
    line-height: 1.2;
}

.myp-sudo-kpi-sub {
    font-size: 11.5px;
    color: #475569;
    margin-top: 3px;
}

.myp-sudo-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

.myp-sudo-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 15px 16px;
}

.myp-sudo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13.5px;
}

@media (max-width: 768px) {
    .myp-sudo-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .myp-sudo-split {
        grid-template-columns: 1fr;
    }
}
