﻿/* =========================================================
   /css/kmib_theme.css
   국민일보형 밝은 신문 포털 스타일 보정
   기존 style.css / news.css 뒤에 로드
   ========================================================= */

:root {
    --paper-bg: #ffffff;
    --paper-soft: #f7f8fa;
    --paper-line: #e5e7eb;
    --paper-line-dark: #1f2933;

    --text-main: #1f2933;
    --text-title: #111827;
    --text-sub: #6b7280;
    --text-light: #8b95a1;

    --point: #184b9b;
    --point-soft: #eef4ff;
    --point-line: #c9daf8;

    --danger: #c62828;

    --content-width: 1240px;
    --side-width: 300px;

    --font-news: "Pretendard", "Noto Sans KR", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
}

/* =========================================================
   Global
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: var(--text-main);
    font-family: var(--font-news);
    font-size: 16px;
    line-height: 1.62;
    letter-spacing: -0.025em;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--point);
}

.site-container,
.site-topbar-inner,
.site-header-inner,
.site-gnb-inner,
.footer-inner {
    max-width: var(--content-width);
}

/* =========================================================
   Header
   ========================================================= */

.site-topbar {
    background: #ffffff;
    border-bottom: 1px solid #eef0f3;
    color: #6b7280;
    font-size: 12px;
}

.site-topbar-inner {
    padding-top: 7px;
    padding-bottom: 7px;
}

.site-topbar a {
    color: #6b7280;
    font-weight: 400;
}

.site-topbar a:hover {
    color: var(--point);
}

.site-header {
    background: #ffffff;
    border-bottom: 0;
}

.site-header-inner {
    padding: 26px 20px 22px;
    grid-template-columns: 260px minmax(0, 1fr) 120px;
}

.site-logo-text {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.06em;
    color: #111827;
}

.site-logo img {
    max-height: 56px;
}

.site-search {
    max-width: 460px;
}

.site-search-input {
    height: 42px;
    border: 1px solid #cfd6df;
    border-radius: 999px;
    background: #fafafa;
    font-size: 14px;
    font-weight: 400;
    color: #111827;
}

.site-search-input:focus {
    border-color: var(--point);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(24, 75, 155, 0.09);
}

.site-search-button {
    top: 4px;
    right: 5px;
    width: 34px;
    height: 34px;
    background: var(--point);
    font-size: 13px;
    font-weight: 600;
}

.site-menu-button {
    border-radius: 8px;
    border-color: #d9dee5;
}

/* =========================================================
   GNB
   ========================================================= */

.site-gnb {
    border-top: 1px solid #eef0f3;
    border-bottom: 2px solid #1f2933;
    background: #ffffff;
}

.site-gnb-list {
    justify-content: center;
}

.site-gnb-list a {
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: #111827;
}

.site-gnb-list a:hover {
    color: var(--point);
}

.mobile-nav-grid a {
    border-radius: 8px;
    background: #ffffff;
    font-weight: 500;
}

/* =========================================================
   Main Layout
   ========================================================= */

.main-wrap {
    padding: 30px 0 58px;
}

.main-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.94fr) var(--side-width);
    gap: 28px;
}

.main-headline {
    border-bottom: 1px solid #d9dee5;
    padding-bottom: 20px;
}

.headline-thumb {
    border-radius: 0;
    aspect-ratio: 16 / 10;
    background: #f1f3f5;
    margin-bottom: 16px;
}

.headline-title {
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.06em;
    color: #111827;
}

.headline-title:hover {
    color: var(--point);
}

.headline-summary {
    margin-top: 12px;
    color: #596273;
    font-size: 15px;
    line-height: 1.75;
}

.news-meta {
    color: #8b95a1;
    font-size: 12px;
}

/* =========================================================
   Category Label
   ========================================================= */

.news-category,
.news-row-category,
.article-category {
    min-height: 22px;
    padding: 0 8px;
    border-radius: 0;
    background: transparent;
    color: var(--point);
    border-left: 3px solid var(--point);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* =========================================================
   Main News List
   ========================================================= */

.main-list {
    gap: 0;
    border-top: 1px solid #1f2933;
}

.news-list-card {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f3;
}

.news-list-thumb {
    width: 110px;
    border-radius: 0;
    background: #f1f3f5;
}

.news-list-title {
    font-family: var(--font-news);
    font-size: 17px;
    line-height: 1.48;
    font-weight: 600;
    letter-spacing: -0.045em;
    color: #111827;
}

.news-list-summary {
    color: #707987;
    font-size: 13px;
    line-height: 1.55;
}

/* =========================================================
   Sidebar
   ========================================================= */

.sidebar-box,
.news-side-box {
    border: 0;
    border-top: 2px solid #1f2933;
    border-radius: 0;
    background: #ffffff;
    overflow: visible;
    margin-bottom: 24px;
}

.sidebar-head,
.news-side-head {
    padding: 13px 0 12px;
    border-bottom: 1px solid #d9dee5;
    background: #ffffff;
    color: #111827;
    font-family: var(--font-news);
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.045em;
}

.ranking-list li,
.notice-list li,
.news-side-list li {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f3;
}

.rank-num,
.news-rank-num {
    color: var(--point);
    font-size: 18px;
    font-weight: 700;
}

.rank-title,
.notice-list a,
.news-side-list a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: #1f2933;
}

/* =========================================================
   Sections
   ========================================================= */

.section-block {
    margin-top: 46px;
}

.section-head {
    border-bottom: 2px solid #1f2933;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-news);
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.05em;
    color: #111827;
}

.section-more {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.section-more:hover {
    color: var(--point);
}

.section-grid {
    gap: 22px;
}

.news-card-thumb {
    border-radius: 0;
    background: #f1f3f5;
    margin-bottom: 11px;
}

.news-card-title {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.news-card-meta {
    color: #8b95a1;
    font-size: 12px;
}

.text-news-list li {
    border-bottom: 1px solid #edf0f3;
}

.text-news-list a {
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

/* =========================================================
   Banner
   ========================================================= */

.banner-zone {
    margin: 30px 0;
}

.banner-box {
    min-height: 86px;
    border-radius: 0;
    background: #f6f7f9;
    border: 1px solid #e2e6ec;
    color: #8b95a1;
    font-weight: 500;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: #f7f8fa;
    color: #4b5563;
    border-top: 1px solid #d9dee5;
    margin-top: 54px;
}

.footer-links a {
    color: #111827;
    font-weight: 500;
}

.footer-logo-text {
    font-family: var(--font-serif);
    color: #111827;
    font-weight: 700;
}

.footer-info {
    color: #5b6472;
}

.footer-copy {
    color: #8b95a1;
}

/* =========================================================
   News List Page
   ========================================================= */

.news-page {
    padding: 32px 0 60px;
}

.news-layout {
    grid-template-columns: minmax(0, 1fr) var(--side-width);
    gap: 38px;
}

.news-page-head {
    border-bottom: 2px solid #1f2933;
    padding-bottom: 14px;
    margin-bottom: 22px;
}

.news-page-title {
    font-family: var(--font-news);
    font-size: 31px;
    font-weight: 650;
    letter-spacing: -0.06em;
}

.news-page-desc {
    color: #6b7280;
    font-size: 14px;
}

.news-category-tabs {
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.news-category-tabs a {
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.news-category-tabs a.active,
.news-category-tabs a:hover {
    background: #ffffff;
    color: var(--point);
    border-bottom-color: var(--point);
}

.news-toolbar {
    font-size: 13px;
}

.news-list-wrap {
    border-top: 2px solid #1f2933;
}

.news-row {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid #edf0f3;
}

.news-row-thumb {
    width: 200px;
    border-radius: 0;
    background: #f1f3f5;
}

.news-row-title {
    font-family: var(--font-news);
    font-size: 22px;
    line-height: 1.4;
    font-weight: 650;
    letter-spacing: -0.055em;
}

.news-row-summary {
    color: #596273;
    font-size: 15px;
    line-height: 1.7;
}

.news-row-meta {
    color: #8b95a1;
    font-size: 12px;
}

.news-paging a,
.news-paging strong {
    border-radius: 0;
    font-weight: 500;
}

.news-paging strong {
    border-color: var(--point);
    background: var(--point);
}

/* =========================================================
   Article View
   ========================================================= */

.article-wrap {
    max-width: 800px;
}

.article-title {
    font-family: var(--font-serif);
    color: #111827;
    font-size: 41px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.07em;
}

.article-subtitle {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;
}

.article-meta {
    color: #7a8391;
    font-size: 13px;
    border-bottom: 1px solid #d9dee5;
}

.article-tool-btn {
    min-height: 34px;
    border-radius: 0;
    font-weight: 500;
    background: #ffffff;
}

.article-thumb img {
    border-radius: 0;
}

.article-content {
    color: #1f2933;
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 2.02;
    letter-spacing: -0.025em;
    word-break: keep-all;
}

.article-content p {
    margin-bottom: 1.25em;
}

.article-content h2,
.article-content h3 {
    font-family: var(--font-news);
    font-weight: 650;
    letter-spacing: -0.05em;
}

.article-section-title,
.comment-title {
    border-bottom-color: #1f2933;
    font-weight: 650;
}

.comment-box {
    border-top: 2px solid #1f2933;
}

.comment-form {
    border-radius: 0;
    background: #f7f8fa;
}

.comment-submit {
    border-radius: 0;
    background: var(--point);
    font-weight: 600;
}

.comment-author {
    font-weight: 600;
}

/* =========================================================
   Empty
   ========================================================= */

.empty-news,
.news-empty {
    border-radius: 0;
    font-weight: 500;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
    }

    .main-sidebar {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .site-header-inner {
        grid-template-columns: 1fr 48px;
        padding: 18px 16px;
    }

    .site-logo-text {
        font-size: 28px;
    }

    .site-search {
        max-width: none;
    }

    .main-grid,
    .news-layout {
        grid-template-columns: 1fr;
    }

    .headline-title {
        font-size: 29px;
    }

    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-aside {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 33px;
    }

    .article-content {
        font-size: 18px;
        line-height: 1.95;
    }
}

@media (max-width: 560px) {
    .site-container,
    .site-topbar-inner,
    .site-header-inner,
    .site-gnb-inner,
    .footer-inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-topbar-inner {
        display: none;
    }

    .site-header-inner {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .site-logo-text {
        font-size: 25px;
    }

    .main-wrap {
        padding-top: 18px;
    }

    .headline-title {
        font-size: 25px;
        line-height: 1.32;
    }

    .headline-summary {
        font-size: 14px;
    }

    .news-list-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        padding: 13px 0;
    }

    .news-list-thumb {
        width: 92px;
    }

    .news-list-title {
        font-size: 15.5px;
    }

    .section-block {
        margin-top: 34px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-row {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 13px;
        padding: 17px 0;
    }

    .news-row-thumb {
        width: 96px;
    }

    .news-row-title {
        font-size: 16.5px;
        line-height: 1.45;
    }

    .news-row-summary {
        display: none;
    }

    .article-title {
        font-size: 29px;
        line-height: 1.32;
    }

    .article-subtitle {
        font-size: 16px;
    }

    .article-content {
        font-size: 17px;
        line-height: 1.9;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

.site-today {
    color: #8b95a1;
    font-size: 12px;
    font-weight: 400;
}

.site-menu-button.open {
    border-color: var(--point);
    background: #f4f7ff;
}

.site-menu-button.open span {
    background: transparent;
}

.site-menu-button.open span::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--point);
}

.site-menu-button.open span::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--point);
}

@media (max-width: 560px) {
    .site-today {
        display: none;
    }
}

/* =========================================================
   서브카테고리 탭 보정
   ========================================================= */

.news-category-tabs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    margin: -4px 0 24px;
    padding-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    scrollbar-width: none;
}

.news-category-tabs::-webkit-scrollbar {
    display: none;
}

.news-category-tabs a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.news-category-tabs a.active,
.news-category-tabs a:hover {
    background: #ffffff;
    color: var(--point);
    border-bottom-color: var(--point);
}

@media (max-width: 560px) {
    .news-category-tabs {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .news-category-tabs a {
        min-height: 40px;
        padding: 0 13px;
        font-size: 13px;
    }
}

/* =========================================================
   공지사항 / 제보하기 페이지
   ========================================================= */

.notice-main-only,
.report-page-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.notice-list-wrap {
    border-top: 2px solid #1f2933;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
}

.notice-table th {
    padding: 14px 12px;
    border-bottom: 1px solid #d9dee5;
    background: #fafafa;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.notice-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #edf0f3;
    color: #4b5563;
    font-size: 14px;
    text-align: center;
}

.notice-title-cell {
    text-align: left !important;
}

.notice-title-cell a {
    color: #111827;
    font-size: 16px;
    font-weight: 500;
}

.notice-title-cell a:hover {
    color: var(--point);
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    background: var(--point);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
}

.notice-empty {
    padding: 40px 12px !important;
    color: #8b95a1 !important;
}

.notice-view-wrap {
    margin-left: auto;
    margin-right: auto;
}

.public-form {
    border-top: 2px solid #1f2933;
    padding-top: 22px;
}

.public-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.public-form-group {
    min-width: 0;
}

.public-form-group.full {
    grid-column: 1 / -1;
}

.public-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1f2933;
    font-size: 14px;
    font-weight: 600;
}

.public-form-group label span {
    color: #c62828;
}

.public-form-group input,
.public-form-group select,
.public-form-group textarea {
    width: 100%;
    border: 1px solid #cfd6df;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    font-family: var(--font-news);
    outline: none;
}

.public-form-group input,
.public-form-group select {
    height: 44px;
    padding: 0 12px;
}

.public-form-group textarea {
    padding: 13px;
    line-height: 1.7;
    resize: vertical;
}

.public-form-group input:focus,
.public-form-group select:focus,
.public-form-group textarea:focus {
    border-color: var(--point);
    box-shadow: 0 0 0 3px rgba(24, 75, 155, 0.09);
}

.public-check-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
}

.public-check-label input {
    width: auto !important;
    height: auto !important;
}

.public-help {
    margin-top: 7px;
    color: #8b95a1;
    font-size: 13px;
}

.public-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf0f3;
}

.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #cfd6df;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.public-btn.primary {
    border-color: var(--point);
    background: var(--point);
    color: #ffffff;
}

.public-btn.gray {
    background: #ffffff;
}

.public-btn:hover {
    opacity: 0.92;
}

.ranking-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ranking-big-num {
    color: var(--point);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 720px) {
    .notice-table {
        min-width: 680px;
    }

    .notice-list-wrap {
        overflow-x: auto;
    }

    .public-form-grid {
        grid-template-columns: 1fr;
    }

    .public-form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .public-btn {
        width: 100%;
    }
}

/* =========================================================
   index.asp 기존 구조 반응형 깨짐 보정
   대상 구조:
   .main-wrap / .main-grid / .main-headline / .main-list
   .main-sidebar / .latest-wrap / .section-grid
   ========================================================= */

/* 공통 안전장치 */
.main-wrap *,
.main-wrap *::before,
.main-wrap *::after {
    box-sizing: border-box;
}

.main-wrap img {
    max-width: 100%;
    height: auto;
}

.main-wrap .site-container {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

/* 3단 메인 그리드 안정화 */
.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr) var(--side-width);
    gap: 28px;
    align-items: start;
}

.main-headline,
.main-list,
.main-sidebar,
.section-block,
.latest-wrap,
.section-grid {
    min-width: 0;
}

/* 헤드라인 이미지/제목 넘침 방지 */
.headline-thumb,
.news-list-thumb,
.news-card-thumb {
    overflow: hidden;
}

.headline-thumb img,
.news-list-thumb img,
.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.headline-title,
.news-list-title,
.news-card-title,
.rank-title,
.notice-list a,
.text-news-list a {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* 주요뉴스 카드 안정화 */
.news-list-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.news-list-card > div {
    min-width: 0;
}

/* 우측 사이드바 */
.main-sidebar {
    min-width: 0;
}

.ranking-list,
.notice-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.rank-title {
    min-width: 0;
}

/* 최신뉴스 2단 목록 안정화 */
.latest-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.text-news-list {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 분야별 카드 */
.section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    min-width: 0;
}

.news-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10.5;
}

.news-card-title {
    margin: 0;
}

/* =========================================================
   1180px 이하: 3단 → 2단
   ========================================================= */

@media (max-width: 1180px) {
    .main-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 28px;
    }

    .main-headline {
        grid-column: 1 / 2;
    }

    .main-list {
        grid-column: 1 / 2;
    }

    .main-sidebar {
        grid-column: 2 / 3;
        grid-row: 1 / span 2;
        display: block;
    }

    .section-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   920px 이하: 1단 전환
   ========================================================= */

@media (max-width: 920px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-headline,
    .main-list,
    .main-sidebar {
        grid-column: auto;
        grid-row: auto;
    }

    .main-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .main-sidebar .banner-zone {
        grid-column: 1 / -1;
    }

    .headline-title {
        font-size: 31px;
        line-height: 1.34;
    }

    .headline-summary {
        font-size: 15px;
        line-height: 1.7;
    }

    .latest-wrap {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   720px 이하: 모바일 뉴스형
   ========================================================= */

@media (max-width: 720px) {
    .main-wrap {
        padding-top: 20px;
        padding-bottom: 46px;
    }

    .main-grid {
        gap: 24px;
    }

    .headline-thumb {
        margin-bottom: 14px;
        aspect-ratio: 16 / 10;
    }

    .headline-title {
        font-size: 27px;
        line-height: 1.36;
        letter-spacing: -0.07em;
    }

    .headline-summary {
        font-size: 14.5px;
        line-height: 1.68;
    }

    .news-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 10px;
        font-size: 12px;
    }

    .main-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-box {
        margin-bottom: 0;
    }

    .sidebar-head {
        font-size: 18px;
    }

    .rank-title,
    .notice-list a {
        font-size: 15.5px;
        line-height: 1.6;
    }

    .rank-num {
        font-size: 19px;
    }

    .section-block {
        margin-top: 38px;
    }

    .section-head {
        align-items: center;
        gap: 12px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-more {
        flex: 0 0 auto;
    }
}

/* =========================================================
   560px 이하: 썸네일 고정폭 축소
   ========================================================= */

@media (max-width: 560px) {
    .site-container,
    .site-topbar-inner,
    .site-header-inner,
    .site-gnb-inner,
    .footer-inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .main-wrap {
        padding-top: 16px;
    }

    .headline-title {
        font-size: 25px;
        line-height: 1.36;
    }

    .headline-summary {
        display: block;
        font-size: 14px;
    }

    .news-list-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 0;
    }

    .news-list-thumb {
        width: 96px;
        aspect-ratio: 4 / 3;
    }

    .news-list-title {
        font-size: 15.8px;
        line-height: 1.48;
    }

    .news-list-summary {
        display: none;
    }

    .news-category {
        min-height: 21px;
        margin-bottom: 6px;
        font-size: 11.5px;
    }

    .latest-wrap {
        grid-template-columns: 1fr;
    }

    .text-news-list li {
        border-bottom: 1px solid #edf0f3;
    }

    .text-news-list a {
        font-size: 15.5px;
        line-height: 1.55;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-card {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 13px;
        align-items: start;
        padding-bottom: 15px;
        border-bottom: 1px solid #edf0f3;
    }

    .news-card-thumb {
        width: 104px;
        aspect-ratio: 4 / 3;
        margin-bottom: 0;
    }

    .news-card-title {
        font-size: 15.8px;
        line-height: 1.5;
    }

    .news-card-meta {
        margin-top: 6px;
        font-size: 12px;
    }

    .banner-zone {
        margin: 22px 0;
    }
}

/* =========================================================
   420px 이하: 초소형 모바일
   ========================================================= */

@media (max-width: 420px) {
    .headline-title {
        font-size: 23px;
    }

    .news-list-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 11px;
    }

    .news-list-thumb {
        width: 88px;
    }

    .news-list-title {
        font-size: 15px;
    }

    .news-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 11px;
    }

    .news-card-thumb {
        width: 88px;
    }

    .news-card-title {
        font-size: 15px;
    }

    .sidebar-head,
    .section-title {
        font-size: 20px;
    }
}

/* =========================================================
   Hankyung-inspired Main Layout
   index.asp 전용
   ========================================================= */

.hk-main *,
.hk-main *::before,
.hk-main *::after {
    box-sizing: border-box;
}

.hk-main {
    background: #ffffff;
    padding: 22px 0 62px;
}

.hk-main .site-container {
    max-width: 1240px;
}

.hk-main img {
    max-width: 100%;
}

.hk-empty {
    width: 100%;
    padding: 36px 18px;
    border: 1px solid #e4e8ef;
    border-radius: 16px;
    background: #f8fafc;
    color: #8b95a1;
    font-size: 14px;
    text-align: center;
}

/* 실시간 이슈 바 */
.hk-issue-bar {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    margin-bottom: 24px;
    border-top: 2px solid #111827;
    border-bottom: 1px solid #dfe5ee;
    background: #ffffff;
}

.hk-issue-label {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.hk-issue-scroll {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    padding: 0 14px;
    scrollbar-width: none;
}

.hk-issue-scroll::-webkit-scrollbar {
    display: none;
}

.hk-issue-scroll a {
    flex: 0 0 auto;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1f2937;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.hk-issue-scroll a:hover {
    color: #1f5fae;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hk-issue-scroll a span {
    margin-right: 5px;
    color: #1f5fae;
    font-weight: 850;
}

/* 상단 3단 */
.hk-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.86fr) 310px;
    gap: 30px;
    align-items: start;
}

.hk-headline,
.hk-major,
.hk-side {
    min-width: 0;
}

.hk-headline a {
    display: block;
}

.hk-headline-thumb {
    width: 100%;
    aspect-ratio: 16 / 9.8;
    margin-bottom: 17px;
    border-radius: 2px;
    overflow: hidden;
    background: #f1f4f8;
    border: 1px solid #e4e8ef;
}

.hk-headline-thumb img,
.hk-major-thumb img,
.hk-photo-thumb img,
.hk-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hk-headline-title {
    margin: 0;
    color: #111827;
    font-size: 40px;
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.085em;
    word-break: keep-all;
}

.hk-headline a:hover .hk-headline-title {
    color: #1f5fae;
}

.hk-headline-summary {
    margin: 13px 0 0;
    color: #5f6b7a;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.hk-meta {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 13px;
    color: #8b95a1;
    font-size: 12.5px;
}

.hk-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    margin-bottom: 8px;
    padding: 0 9px;
    border-left: 3px solid #1f5fae;
    background: #f4f8ff;
    color: #1f5fae;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 주요 뉴스 */
.hk-section-mini-head,
.hk-side-head,
.hk-section-head,
.hk-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hk-section-mini-head {
    min-height: 42px;
    margin-bottom: 13px;
    border-bottom: 2px solid #111827;
}

.hk-section-mini-head h2,
.hk-side-head h2,
.hk-section-head h2,
.hk-category-head h3 {
    margin: 0;
    color: #111827;
    font-weight: 780;
    letter-spacing: -0.07em;
}

.hk-section-mini-head h2 {
    font-size: 22px;
}

.hk-section-mini-head a,
.hk-side-head a,
.hk-section-head a,
.hk-category-head a {
    color: #1f5fae;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.hk-major-list {
    display: grid;
    gap: 0;
}

.hk-major-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f5;
}

.hk-major-card:first-child {
    padding-top: 0;
}

.hk-major-thumb {
    display: block;
    width: 116px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #e4e8ef;
    background: #f1f4f8;
}

.hk-major-body {
    min-width: 0;
}

.hk-major-body h3 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    line-height: 1.48;
    font-weight: 700;
    letter-spacing: -0.055em;
    word-break: keep-all;
}

.hk-major-body h3 a:hover {
    color: #1f5fae;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hk-major-body p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: keep-all;
}

/* 우측 랭킹 */
.hk-side-box {
    margin-bottom: 24px;
    border-top: 2px solid #111827;
}

.hk-side-head {
    min-height: 43px;
    border-bottom: 1px solid #dfe5ee;
}

.hk-side-head h2 {
    font-size: 21px;
}

.hk-rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hk-rank-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f5;
}

.hk-rank-num {
    color: #1f5fae;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 850;
}

.hk-rank-title {
    color: #1f2937;
    font-size: 16.2px;
    line-height: 1.6;
    font-weight: 650;
    letter-spacing: -0.045em;
    word-break: keep-all;
}

.hk-rank-title:hover {
    color: #1f5fae;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 섹션 공통 */
.hk-section {
    margin-top: 46px;
}

.hk-section-head {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #111827;
}

.hk-section-head span {
    display: block;
    margin-bottom: 7px;
    color: #1f5fae;
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.hk-section-head h2 {
    font-size: 28px;
    line-height: 1.25;
}

/* 실시간 뉴스 */
.hk-realtime-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 24px;
    border-top: 1px solid #edf1f5;
}

.hk-realtime-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 0;
    border-bottom: 1px solid #edf1f5;
}

.hk-realtime-num {
    color: #1f5fae;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 850;
}

.hk-realtime-item h3 {
    margin: 0;
    color: #111827;
    font-size: 16.5px;
    line-height: 1.52;
    font-weight: 700;
    letter-spacing: -0.05em;
    word-break: keep-all;
}

.hk-realtime-item h3 a:hover {
    color: #1f5fae;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hk-realtime-item p {
    margin: 6px 0 0;
    color: #8b95a1;
    font-size: 12.5px;
}

/* 사진 뉴스 */
.hk-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hk-photo-card {
    min-width: 0;
}

.hk-photo-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10.4;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #e4e8ef;
    background: #f1f4f8;
}

.hk-photo-body h3 {
    margin: 0;
    color: #111827;
    font-size: 19px;
    line-height: 1.48;
    font-weight: 750;
    letter-spacing: -0.06em;
    word-break: keep-all;
}

.hk-photo-body h3 a:hover {
    color: #1f5fae;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hk-photo-body p {
    margin: 7px 0 0;
    color: #8b95a1;
    font-size: 12.5px;
}

/* 분야별 */
.hk-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
}

.hk-category-box,
.hk-opinion-box {
    min-width: 0;
    border-top: 2px solid #111827;
}

.hk-category-head {
    min-height: 48px;
    border-bottom: 1px solid #dfe5ee;
}

.hk-category-head h3 {
    font-size: 23px;
}

.hk-category-list {
    display: grid;
    gap: 0;
}

.hk-category-list article {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid #edf1f5;
}

.hk-category-thumb {
    width: 112px;
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #e4e8ef;
    background: #f1f4f8;
}

.hk-category-list h4 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    line-height: 1.52;
    font-weight: 700;
    letter-spacing: -0.055em;
    word-break: keep-all;
}

.hk-category-list h4 a:hover {
    color: #1f5fae;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hk-opinion-box {
    grid-column: 1 / -1;
}

.hk-opinion-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    padding-top: 18px;
}

.hk-opinion-list article {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e4e8ef;
    background: #fbfcfe;
}

.hk-opinion-list span {
    display: inline-flex;
    margin-bottom: 9px;
    color: #1f5fae;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.hk-opinion-list h4 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 750;
    letter-spacing: -0.055em;
    word-break: keep-all;
}

.hk-opinion-list h4 a:hover {
    color: #1f5fae;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hk-opinion-list p {
    margin: 9px 0 0;
    color: #667085;
    font-size: 13.5px;
    line-height: 1.6;
    word-break: keep-all;
}

/* no-thumb */
.hk-main .no-thumb {
    width: 100%;
    height: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
}

/* 반응형 */
@media (max-width: 1180px) {
    .hk-hero-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .hk-headline {
        grid-column: 1 / 2;
    }

    .hk-major {
        grid-column: 1 / 2;
    }

    .hk-side {
        grid-column: 2 / 3;
        grid-row: 1 / span 2;
    }

    .hk-realtime-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hk-opinion-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .hk-hero-grid {
        grid-template-columns: 1fr;
    }

    .hk-headline,
    .hk-major,
    .hk-side {
        grid-column: auto;
        grid-row: auto;
    }

    .hk-headline-title {
        font-size: 33px;
    }

    .hk-side {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hk-realtime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hk-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hk-category-grid {
        grid-template-columns: 1fr;
    }

    .hk-opinion-box {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .hk-main {
        padding-top: 16px;
    }

    .hk-issue-bar {
        grid-template-columns: 70px minmax(0, 1fr);
        margin-bottom: 20px;
    }

    .hk-issue-label {
        height: 40px;
        font-size: 13px;
    }

    .hk-issue-scroll a {
        max-width: 280px;
        font-size: 13.5px;
    }

    .hk-headline-title {
        font-size: 27px;
        line-height: 1.36;
    }

    .hk-headline-summary {
        font-size: 14.5px;
        line-height: 1.68;
    }

    .hk-major-card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
    }

    .hk-major-thumb {
        width: 104px;
    }

    .hk-major-body h3 {
        font-size: 15.8px;
    }

    .hk-major-body p {
        display: none;
    }

    .hk-section {
        margin-top: 38px;
    }

    .hk-section-head h2 {
        font-size: 23px;
    }

    .hk-realtime-grid {
        grid-template-columns: 1fr;
    }

    .hk-photo-grid {
        grid-template-columns: 1fr;
    }

    .hk-photo-card {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 13px;
        padding-bottom: 15px;
        border-bottom: 1px solid #edf1f5;
    }

    .hk-photo-thumb {
        width: 110px;
        aspect-ratio: 4 / 3;
        margin-bottom: 0;
    }

    .hk-photo-body h3 {
        font-size: 15.8px;
    }

    .hk-category-list article {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
    }

    .hk-category-thumb {
        width: 96px;
    }

    .hk-category-list h4 {
        font-size: 15.8px;
    }

    .hk-opinion-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hk-headline-title {
        font-size: 24px;
    }

    .hk-major-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .hk-major-thumb {
        width: 90px;
    }

    .hk-photo-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .hk-photo-thumb {
        width: 90px;
    }

    .hk-category-list article {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .hk-category-thumb {
        width: 88px;
    }
}


/* =========================================================
   index.asp 실시간 이슈 바 가독성 강화
   - 긴 제목이 말줄임으로 잘리지 않도록 전체 노출
   - 상단 이슈를 더 눈에 띄는 카드형 뉴스 스트립으로 변경
   ========================================================= */

.hk-issue-bar {
    position: relative;
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 0 30px !important;
    border: 1px solid #dbeafe !important;
    border-top: 3px solid #1f5fae !important;
    border-radius: 18px !important;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 1) 58%),
        #ffffff !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07) !important;
    overflow: hidden !important;
}

.hk-issue-bar::before {
    content: "";
    position: absolute;
    left: 96px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #dbeafe;
}

.hk-issue-label {
    position: relative;
    height: auto !important;
    min-height: 86px !important;
    padding: 14px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(180deg, #1f5fae 0%, #184b9b 100%) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
    letter-spacing: -0.06em !important;
}

.hk-issue-label::before {
    content: "LIVE";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.hk-issue-scroll {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 10px 12px !important;
    scrollbar-width: none !important;
}

.hk-issue-scroll a {
    position: relative;
    flex: none !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: start !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 64px !important;
    padding: 10px 12px !important;
    overflow: visible !important;
    text-overflow: initial !important;
    white-space: normal !important;
    color: #111827 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 750 !important;
    letter-spacing: -0.05em !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    border-radius: 13px !important;
    border-right: 1px solid #e8eef8 !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hk-issue-scroll a:nth-child(4n) {
    border-right: 0 !important;
}

.hk-issue-scroll a:hover {
    color: #1f5fae !important;
    background: #f4f8ff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.hk-issue-scroll a span {
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #1f5fae !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: -0.02em !important;
}

/* 태블릿: 2열 */
@media (max-width: 920px) {
    .hk-issue-bar {
        grid-template-columns: 86px minmax(0, 1fr) !important;
        border-radius: 16px !important;
    }

    .hk-issue-bar::before {
        left: 86px;
    }

    .hk-issue-label {
        min-height: 78px !important;
        font-size: 16px !important;
    }

    .hk-issue-scroll {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 9px 10px !important;
    }

    .hk-issue-scroll a:nth-child(2n) {
        border-right: 0 !important;
    }

    .hk-issue-scroll a:nth-child(4n) {
        border-right: 0 !important;
    }
}

/* 모바일: 세로 카드형, 제목 전체 노출 */
@media (max-width: 640px) {
    .hk-issue-bar {
        display: block !important;
        margin: 0 0 22px !important;
        border-radius: 16px !important;
    }

    .hk-issue-bar::before {
        display: none !important;
    }

    .hk-issue-label {
        min-height: 42px !important;
        height: 42px !important;
        flex-direction: row !important;
        padding: 0 14px !important;
        justify-content: flex-start !important;
        font-size: 16px !important;
    }

    .hk-issue-label::before {
        height: 20px;
        min-height: 20px;
        font-size: 10px;
    }

    .hk-issue-scroll {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 8px 10px !important;
    }

    .hk-issue-scroll a {
        min-height: auto !important;
        grid-template-columns: 26px minmax(0, 1fr) !important;
        padding: 10px 8px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #eef2f7 !important;
        border-radius: 0 !important;
        font-size: 14.5px !important;
        line-height: 1.5 !important;
    }

    .hk-issue-scroll a:last-child {
        border-bottom: 0 !important;
    }

    .hk-issue-scroll a span {
        width: 24px !important;
        height: 24px !important;
        font-size: 11.5px !important;
    }
}

@media (max-width: 420px) {
    .hk-issue-scroll a {
        font-size: 14px !important;
        line-height: 1.48 !important;
    }
}


/* =========================================================
   Mobile Header Login / Signup Visibility Fix
   - 모바일에서 site-topbar-inner를 숨기지 않고 로그인/회원가입을 노출
   - 기존 .site-topbar-inner { display:none; } 보정
   ========================================================= */

@media (max-width: 560px) {
    .site-topbar {
        display: block !important;
        border-bottom: 1px solid #eef0f3 !important;
        background: #ffffff !important;
    }

    .site-topbar-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        min-height: 38px !important;
        padding: 6px 15px !important;
        box-sizing: border-box !important;
    }

    .site-topbar-inner > * {
        min-width: 0 !important;
    }

    .site-topbar a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 28px !important;
        padding: 0 9px !important;
        border-radius: 999px !important;
        color: #475569 !important;
        font-size: 12px !important;
        line-height: 1 !important;
        font-weight: 650 !important;
        letter-spacing: -0.035em !important;
        white-space: nowrap !important;
    }

    .site-topbar a:hover {
        color: var(--point) !important;
        background: #f4f8ff !important;
    }

    .site-topbar a[href*="login"],
    .site-topbar a[href*="logout"],
    .site-topbar a[href*="join"],
    .site-topbar a[href*="signup"],
    .site-topbar a[href*="member"] {
        border: 1px solid #dbeafe !important;
        background: #f8fbff !important;
    }

    .site-topbar a[href*="join"],
    .site-topbar a[href*="signup"] {
        background: var(--point) !important;
        border-color: var(--point) !important;
        color: #ffffff !important;
    }

    .site-topbar a[href*="join"]:hover,
    .site-topbar a[href*="signup"]:hover {
        background: #123f86 !important;
        color: #ffffff !important;
    }

    .site-today {
        display: none !important;
    }

    .site-header-inner {
        padding-top: 13px !important;
        padding-bottom: 13px !important;
    }
}

@media (max-width: 360px) {
    .site-topbar-inner {
        gap: 5px !important;
    }

    .site-topbar a {
        padding: 0 7px !important;
        font-size: 11.5px !important;
    }
}


/* =========================================================
   Mobile Topbar Auth Clean Fix
   - 모바일 상단 깨짐 방지
   - 로그인/회원가입/마이페이지/로그아웃만 깔끔하게 노출
   - 기존 topbar의 날짜/구분자/기타 링크는 모바일에서 숨김
   ========================================================= */

@media (max-width: 560px) {
    .site-topbar {
        display: block !important;
        background: #ffffff !important;
        border-bottom: 1px solid #eef0f3 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .site-topbar-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        min-height: 36px !important;
        padding: 5px 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        font-size: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .site-topbar-inner > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .site-topbar-inner .site-today,
    .site-topbar .site-today {
        display: none !important;
    }

    /* 모바일에서는 상단 기타 링크/구분자를 숨기고 회원 관련 링크만 표시 */
    .site-topbar-inner a {
        display: none !important;
    }

    .site-topbar-inner a[href*="login"],
    .site-topbar-inner a[href*="logout"],
    .site-topbar-inner a[href*="join"],
    .site-topbar-inner a[href*="signup"],
    .site-topbar-inner a[href*="mypage"],
    .site-topbar-inner a[href*="member"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 26px !important;
        min-height: 26px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        border: 1px solid #dbeafe !important;
        border-radius: 999px !important;
        background: #f8fbff !important;
        color: #334155 !important;
        font-size: 12px !important;
        line-height: 1 !important;
        font-weight: 650 !important;
        letter-spacing: -0.04em !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .site-topbar-inner a[href*="join"],
    .site-topbar-inner a[href*="signup"] {
        border-color: #184b9b !important;
        background: #184b9b !important;
        color: #ffffff !important;
    }

    .site-topbar-inner a[href*="logout"] {
        border-color: #fecaca !important;
        background: #fff7f7 !important;
        color: #dc2626 !important;
    }

    .site-topbar-inner a:hover {
        text-decoration: none !important;
    }

    .site-header-inner {
        padding-top: 13px !important;
        padding-bottom: 13px !important;
    }
}

@media (max-width: 380px) {
    .site-topbar-inner {
        gap: 4px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .site-topbar-inner a[href*="login"],
    .site-topbar-inner a[href*="logout"],
    .site-topbar-inner a[href*="join"],
    .site-topbar-inner a[href*="signup"],
    .site-topbar-inner a[href*="mypage"],
    .site-topbar-inner a[href*="member"] {
        height: 25px !important;
        min-height: 25px !important;
        padding: 0 8px !important;
        font-size: 11.5px !important;
    }
}
