@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");
:root{--text:#111827;--muted:#6b7280;--line:#e5e7eb;--soft:#f8fafc;--brand:#0f172a;--accent:#2563eb;--danger:#dc2626}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR",Arial,sans-serif;color:var(--text);background:#fff}

html,
body,
button,
input,
select,
textarea {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif !important;
}

.site-header{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:10}.topbar{max-width:1120px;margin:0 auto;display:flex;align-items:center;gap:18px;padding:18px 20px}.brand{font-size:26px;font-weight:900;letter-spacing:-.04em;text-decoration:none;color:var(--brand)}.search-form{flex:1;display:flex;max-width:460px;margin-left:auto;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:#fff}.search-form input{flex:1;border:0;padding:12px 16px;font-size:15px;outline:0}.search-form button{border:0;background:var(--brand);color:#fff;padding:0 18px;font-weight:700}.admin-link{font-size:14px;color:var(--muted);text-decoration:none}.nav{max-width:1120px;margin:0 auto;display:flex;gap:4px;overflow:auto;padding:0 20px 12px}.nav a{white-space:nowrap;text-decoration:none;color:#374151;font-weight:700;font-size:14px;padding:8px 13px;border-radius:999px}.nav a:hover{background:var(--soft);color:var(--accent)}.container{max-width:1120px;margin:0 auto;padding:24px 20px 64px}.headline-box{background:linear-gradient(180deg,#f8fafc,#fff);border:1px solid var(--line);border-radius:22px;padding:28px;margin-bottom:22px}.eyebrow{margin:0 0 8px;color:var(--accent);font-weight:900;font-size:13px}.headline-box h1,.section-title h1{margin:0 0 10px;font-size:32px;letter-spacing:-.04em}.headline-box p,.section-title p{margin:0;color:var(--muted)}.news-list{display:grid;gap:0;border-top:1px solid var(--line)}.news-card{display:grid;grid-template-columns:180px 1fr;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.news-card.compact{grid-template-columns:1fr}.thumb{background-size:cover;background-position:center;border-radius:14px;min-height:112px;background-color:var(--soft)}.meta{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:7px;color:var(--muted);font-size:13px}.news-card h2{font-size:22px;letter-spacing:-.04em;line-height:1.35;margin:0 0 8px}.news-card h2 a{color:var(--text);text-decoration:none}.news-card h2 a:hover{color:var(--accent)}.news-card p{margin:0;color:#4b5563;line-height:1.62}.empty{padding:34px;border:1px dashed var(--line);background:var(--soft);border-radius:16px;text-align:center;color:var(--muted)}.empty.large{margin-top:40px}.article-detail{max-width:820px;margin:0 auto}.article-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:14px;border-bottom:1px solid var(--line);padding-bottom:14px}.article-detail h1{font-size:42px;line-height:1.18;letter-spacing:-.055em;margin:22px 0}.summary{font-size:18px;color:#4b5563;line-height:1.75;border-left:4px solid var(--accent);padding-left:16px}.article-image img{width:100%;border-radius:18px;margin:18px 0}.article-body{font-size:18px;line-height:1.85;color:#1f2937}.article-body img{max-width:100%;height:auto}.article-actions{display:flex;gap:10px;border-top:1px solid var(--line);margin-top:32px;padding-top:18px}.article-actions a,.button{display:inline-flex;align-items:center;gap:8px;text-decoration:none;border:1px solid var(--line);padding:10px 14px;border-radius:10px;color:#111827;background:#fff;font-weight:700}.site-footer{border-top:1px solid var(--line);padding:24px 20px;text-align:center;color:var(--muted);font-size:14px}.admin-login{min-height:60vh;display:flex;align-items:center;justify-content:center}.login-card{width:100%;max-width:420px;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 12px 40px rgba(15,23,42,.08)}.login-card h1{margin-top:0}.login-card label{display:block;font-weight:700;margin:14px 0 6px}.login-card input{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:15px}.login-card button,.admin-actions button{width:100%;border:0;background:var(--brand);color:#fff;border-radius:10px;padding:12px 14px;font-weight:900;margin-top:16px;cursor:pointer}.alert{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:12px;border-radius:10px;margin:14px 0}.admin-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.admin-head h1{margin:0;font-size:30px}.admin-tabs{display:flex;gap:8px;margin-bottom:16px;overflow:auto}.admin-tabs a{text-decoration:none;color:#374151;border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-weight:700}.admin-tabs a.active{background:var(--brand);color:#fff}.admin-table{width:100%;border-collapse:collapse;border-top:1px solid var(--line)}.admin-table th,.admin-table td{text-align:left;border-bottom:1px solid var(--line);padding:13px 10px;font-size:14px}.admin-table a{color:#111827;font-weight:800;text-decoration:none}.status{display:inline-block;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:900;background:#f3f4f6}.status.published{background:#ecfdf5;color:#047857}.status.hidden{background:#fef2f2;color:#b91c1c}.status.scheduled{background:#eff6ff;color:#1d4ed8}.admin-actions{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}.admin-actions form{margin:0}.admin-actions button{width:auto;margin:0}.admin-actions .danger{background:var(--danger)}.detail-grid{display:grid;grid-template-columns:320px 1fr;gap:18px}.detail-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff}.detail-card h2{margin-top:0}.detail-card dl{display:grid;grid-template-columns:90px 1fr;gap:10px;font-size:14px}.detail-card dt{color:var(--muted);font-weight:700}.article-preview{line-height:1.75}@media(max-width:760px){.topbar{flex-wrap:wrap}.search-form{order:3;max-width:none;width:100%;margin-left:0}.news-card{grid-template-columns:1fr}.headline-box h1,.section-title h1{font-size:26px}.article-detail h1{font-size:30px}.detail-grid{grid-template-columns:1fr}}

/* 실제 파일 방식 관리자 보강 */
.admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-actions form {
    margin: 0;
}

.button.secondary {
    background: #f6f7f9;
    color: #222;
    border: 1px solid #d9dee3;
}

.button.danger {
    background: #c92a2a;
}

.admin-form {
    max-width: 560px;
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 14px;
    padding: 24px;
}

.admin-form.wide {
    max-width: 980px;
}

.admin-form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    font: inherit;
    box-sizing: border-box;
}

.admin-form textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.alert {
    max-width: 720px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
}

.alert.error {
    background: #fff1f1;
    border: 1px solid #ffc9c9;
    color: #b42318;
}

.alert.success {
    background: #eefbf3;
    border: 1px solid #b7ebc6;
    color: #087443;
}

.row-actions {
    white-space: nowrap;
}

.row-actions a + a {
    margin-left: 8px;
}

@media (max-width: 760px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Naver-style category layout patch ===== */
.nav {
    align-items: center;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a.active {
    color: var(--accent);
    background: #eff6ff;
}

.news-page.has-sidebar {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.category-sidebar {
    position: sticky;
    top: 115px;
    align-self: start;
    border-right: 1px solid var(--line);
    padding: 8px 18px 24px 0;
}

.category-sidebar h2 {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #111827;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.side-nav a:hover,
.side-nav a.active {
    color: var(--accent);
}

.side-nav em {
    flex: 0 0 auto;
    font-style: normal;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.side-nav a.active em {
    color: var(--accent);
}

.news-main {
    min-width: 0;
}

.compact-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.compact-title h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.045em;
}

.compact-title p {
    margin: 0;
    color: var(--muted);
}

/* ===== News list hardening ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-card {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--line) !important;
    background: #fff !important;
}

.news-card.compact {
    grid-template-columns: minmax(0, 1fr) !important;
}

.news-card .thumb {
    display: block;
    width: 220px !important;
    height: 145px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: #f2f4f6 !important;
}

.news-card .thumb img,
.news-card img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.news-card-body {
    min-width: 0 !important;
}

.news-card h2 {
    margin: 0 0 8px !important;
    font-size: 20px !important;
    line-height: 1.38 !important;
    letter-spacing: -0.04em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.news-card p {
    margin: 0 !important;
    color: #374151 !important;
    line-height: 1.72 !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 860px) {
    .news-page.has-sidebar {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .category-sidebar {
        position: static;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 12px;
    }

    .category-sidebar h2 {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .side-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .side-nav::-webkit-scrollbar {
        display: none;
    }

    .side-nav a {
        flex: 0 0 auto;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 8px 12px;
    }

    .side-nav a.active {
        background: #eff6ff;
    }
}

@media (max-width: 760px) {
    .news-card {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .news-card .thumb {
        width: 100% !important;
        height: 210px !important;
    }
}


/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 34px 0 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #334155;
    background: #fff;
    text-decoration: none;
}

.pagination a.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
    font-weight: 700;
}

.pagination a:hover {
    border-color: #94a3b8;
}


/* ===== Branding / header polish ===== */
.brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo img {
    display: block;
    width: 118px;
    height: 34px;
}

/* 메인 최신 기사 제목 아래 중복 라인 제거 */
.news-main > .news-list {
    border-top: 0 !important;
}

.news-main > .news-list .news-card:first-child {
    padding-top: 18px !important;
}

.compact-title {
    margin-bottom: 0 !important;
}

/* ===== Pagination refined ===== */
.pagination {
    gap: 8px !important;
    margin: 38px 0 8px !important;
}

.pagination .page-link,
.pagination a,
.pagination span.page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.pagination .page-nav {
    min-width: 58px;
}

.pagination .page-link:hover,
.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #eff6ff;
}

.pagination .page-link.active,
.pagination a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.pagination .page-link.disabled {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #e5e7eb;
    box-shadow: none;
}

.pagination .page-ellipsis {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    min-width: 20px !important;
    padding: 0 2px !important;
}

.pagination-status {
    margin: 0 0 26px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* ===== Footer legal copy ===== */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 30px 20px 34px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    background: #fafafa;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #475569;
    font-weight: 800;
}

.footer-links a {
    color: #334155;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-notice {
    margin: 5px 0;
    line-height: 1.65;
    word-break: keep-all;
}

.footer-copy {
    margin: 14px 0 0;
    color: #64748b;
    font-weight: 800;
}

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 0 40px;
}

.legal-page h1 {
    margin: 0 0 18px;
    font-size: 30px;
    letter-spacing: -.04em;
}

.legal-page section {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

.legal-page h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.legal-page p,
.legal-page li {
    color: #475569;
    line-height: 1.75;
}

@media (max-width: 760px) {
    .brand-logo img {
        width: 104px;
        height: auto;
    }

    .pagination .page-link,
    .pagination a,
    .pagination span.page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 13px;
    }

    .pagination .page-nav {
        min-width: 50px;
    }
}


/* ===== EK mark + text logo ===== */
.brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex: 0 0 auto;
    line-height: 1;
    text-decoration: none;
    color: var(--brand);
    letter-spacing: -0.04em;
}

.brand-logo .brand-mark {
    display: block;
    width: 42px;
    height: 28px;
    object-fit: contain;
}

.brand-news-text {
    display: inline-block;
    font-size: 24px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: -0.06em;
    transform: translateY(1px);
}

@media (max-width: 760px) {
    .brand-logo .brand-mark {
        width: 38px;
        height: 25px;
    }

    .brand-news-text {
        font-size: 22px;
    }
}

.site-header .brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #0f172a;
    line-height: 1;
}

.site-header .brand-logo img,
.site-header .brand-logo .ek-mark {
    display: block;
    width: auto !important;
    height: 28px !important;
    max-width: none !important;
}

.site-header .brand-logo .brand-news {
    display: inline-block;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
}

/* ===== FINAL PATCH: Pretendard + article related links layout ===== */
html,
body,
button,
input,
select,
textarea {
    font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif !important;
}

/* EK 이미지 + 뉴스 글자 높이 최종 고정 */
.site-header .brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    line-height: 1 !important;
    text-decoration: none !important;
    color: #0f172a !important;
}

.site-header .brand-logo .brand-mark {
    display: block !important;
    width: auto !important;
    height: 25px !important;
    max-width: none !important;
    max-height: 25px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
}

.site-header .brand-logo .brand-news-text {
    display: inline-block !important;
    height: 25px !important;
    font-size: 25px !important;
    line-height: 25px !important;
    font-weight: 900 !important;
    letter-spacing: -0.06em !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
}

/* 기사 상세 하단 액션 */
.article-actions.article-internal-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 34px !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--line, #e5e7eb) !important;
}

.article-actions.article-internal-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid #dbe2ea !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

.article-actions.article-internal-actions a:hover {
    border-color: var(--accent, #2563eb) !important;
    color: var(--accent, #2563eb) !important;
    background: #eff6ff !important;
}

/* 관련 기사 영역 전체 */
.related-news {
    clear: both !important;
    margin-top: 34px !important;
    padding-top: 26px !important;
    border-top: 1px solid var(--line, #e5e7eb) !important;
}

.related-news-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
}

.related-news-head h2 {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    letter-spacing: -0.045em !important;
    color: #0f172a !important;
}

.related-news-head > a {
    flex: 0 0 auto !important;
    color: #2563eb !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.related-news-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.related-news-item {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 98px !important;
    padding: 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #0f172a !important;
    text-decoration: none !important;
    overflow: hidden !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03) !important;
}

.related-news-item:hover {
    border-color: var(--accent, #2563eb) !important;
    background: #f8fbff !important;
}

.related-news-item.related-no-thumb {
    grid-template-columns: minmax(0, 1fr) !important;
}

.related-thumb {
    display: block !important;
    width: 112px !important;
    height: 76px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #f2f4f6 !important;
}

.related-thumb img,
.related-news .related-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.related-body {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 7px !important;
}

.related-body strong {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.42 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
}

.related-body em {
    display: block !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-style: normal !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 760px) {
    .site-header .brand-logo .brand-mark {
        height: 23px !important;
        max-height: 23px !important;
    }

    .site-header .brand-logo .brand-news-text {
        height: 23px !important;
        font-size: 23px !important;
        line-height: 23px !important;
    }

    .related-news-list {
        grid-template-columns: 1fr !important;
    }

    .related-news-item {
        grid-template-columns: 96px minmax(0, 1fr) !important;
    }

    .related-thumb {
        width: 96px !important;
        height: 66px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        min-height: 66px !important;
        max-height: 66px !important;
    }
}


/* ===== Article related links final fix ===== */
.article-detail .related-articles {
    margin-top: 34px !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--line, #e5e7eb) !important;
}

.article-detail .related-articles h2,
.article-detail .related-title {
    margin: 0 0 16px !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.04em !important;
    font-weight: 900 !important;
}

.article-detail .related-more {
    display: inline-flex !important;
    margin: 0 0 14px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--accent, #2563eb) !important;
    text-decoration: none !important;
}

.article-detail .related-grid,
.article-detail .related-list,
.article-detail .related-news-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.article-detail .related-card,
.article-detail .related-item,
.article-detail .related-news-card {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--line, #e5e7eb) !important;
    border-radius: 14px !important;
    background: #fff !important;
    text-decoration: none !important;
    color: var(--text, #111827) !important;
    overflow: hidden !important;
}

.article-detail .related-card img,
.article-detail .related-item img,
.article-detail .related-news-card img,
.article-detail .related-thumb img {
    display: block !important;
    width: 112px !important;
    height: 76px !important;
    max-width: 112px !important;
    max-height: 76px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin: 0 !important;
}

.article-detail .related-card-title,
.article-detail .related-item-title,
.article-detail .related-news-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
    color: #111827 !important;
    text-decoration: none !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
}

.article-detail .related-meta {
    margin-top: 6px !important;
    color: var(--muted, #6b7280) !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

@media (max-width: 760px) {
    .article-detail .related-grid,
    .article-detail .related-list,
    .article-detail .related-news-list {
        grid-template-columns: 1fr !important;
    }

    .article-detail .related-card,
    .article-detail .related-item,
    .article-detail .related-news-card {
        grid-template-columns: 96px minmax(0, 1fr) !important;
    }

    .article-detail .related-card img,
    .article-detail .related-item img,
    .article-detail .related-news-card img,
    .article-detail .related-thumb img {
        width: 96px !important;
        height: 68px !important;
        max-width: 96px !important;
        max-height: 68px !important;
    }
}
/* ===== FINAL PATCH: mobile sub-category horizontal scroll containment ===== */
@media (max-width: 860px) {
    .news-page.has-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .news-page.has-sidebar .category-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .news-page.has-sidebar .side-nav {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        scrollbar-width: none !important;
    }

    .news-page.has-sidebar .side-nav::-webkit-scrollbar {
        display: none !important;
    }

    .news-page.has-sidebar .side-nav a {
        flex: 0 0 auto !important;
        max-width: calc(100vw - 56px) !important;
        white-space: nowrap !important;
    }

    .news-page.has-sidebar .side-nav a span {
        display: block !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .news-page.has-sidebar .news-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* ===== 2차 고도화 패치 ===== */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
}
.content-layout.with-left-sidebar {
    grid-template-columns: 150px minmax(0, 1fr) 280px;
}
.right-sidebar {
    position: sticky;
    top: 116px;
    display: grid;
    gap: 16px;
}
.sidebar-box {
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}
.sidebar-box h2 {
    margin: 0 0 12px;
    font-size: 17px;
    letter-spacing: -0.04em;
}
.sidebar-box ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}
.sidebar-box li::marker { font-weight: 900; color: var(--accent, #2563eb); }
.sidebar-box a {
    color: #111827;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.4;
}
.sidebar-box a:hover { color: var(--accent, #2563eb); }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-links a {
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
    background: #f8fafc;
}
.featured-news { margin-bottom: 26px; }
.featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}
.featured-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    text-decoration: none;
    color: #111827;
    overflow: hidden;
}
.featured-card.primary {
    grid-row: span 4;
    grid-template-columns: 1fr;
}
.featured-thumb {
    display: block;
    width: 100%;
    height: 86px;
    border-radius: 12px;
    background: #f1f5f9;
    overflow: hidden;
}
.featured-card.primary .featured-thumb { height: 230px; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-body { min-width: 0; display: grid; gap: 6px; align-content: start; }
.featured-body em { font-style: normal; color: var(--accent, #2563eb); font-size: 12px; font-weight: 900; }
.featured-body strong {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.42;
    letter-spacing: -0.04em;
}
.featured-card.primary .featured-body strong { font-size: 24px; line-height: 1.35; }
.news-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.admin-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    background: #fff;
}
.admin-filter label { font-size: 13px; font-weight: 900; color: #374151; }
.admin-filter input,
.admin-filter select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 10px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
}
.filter-actions { display: flex; gap: 8px; align-items: end; }
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.metric-card {
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}
.metric-card span { display: block; color: var(--muted, #6b7280); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.metric-card strong { font-size: 24px; letter-spacing: -0.04em; }
.admin-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.admin-panel {
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    margin-bottom: 16px;
    overflow-x: auto;
}
.admin-panel h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -0.04em; }
.rank-list { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.rank-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.rank-list a { color: #111827; text-decoration: none; font-weight: 800; }
.rank-list em { color: var(--muted, #6b7280); font-style: normal; font-size: 12px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th,.mini-table td { border-bottom: 1px solid var(--line, #e5e7eb); padding: 8px; text-align: left; vertical-align: top; }
.row-actions form { display: inline; margin-left: 8px; }
.row-actions button {
    border: 0;
    background: transparent;
    color: #b91c1c;
    cursor: pointer;
    padding: 0;
    font: inherit;
    font-weight: 800;
}
.status.success { background: #ecfdf5; color: #047857; }
.status.failed { background: #fef2f2; color: #b91c1c; }
.admin-title-cell { max-width: 420px; }
.readonly-box {
    margin: 18px 0;
    border: 1px dashed var(--line, #e5e7eb);
    border-radius: 14px;
    padding: 16px;
    background: #f8fafc;
}
.readonly-box h2 { margin: 0 0 10px; font-size: 17px; }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; margin-top: 28px; }
.checkbox-label input { width: auto !important; margin: 0 !important; }
@media (max-width: 1040px) {
    .content-layout,
    .content-layout.with-left-sidebar { grid-template-columns: 1fr; }
    .right-sidebar,
    .category-sidebar { position: static; }
    .featured-grid { grid-template-columns: 1fr; }
    .admin-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .featured-card,
    .featured-card.primary { grid-template-columns: 96px minmax(0,1fr); }
    .featured-card.primary .featured-thumb,
    .featured-thumb { height: 68px; }
    .featured-card.primary .featured-body strong,
    .featured-body strong { font-size: 16px; }
    .admin-filter,
    .metric-grid { grid-template-columns: 1fr; }
}

/* ===== Admin global navigation and detailed stats ===== */
.admin-global-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px max(16px, calc((100vw - 1080px) / 2));
    border-top: 1px solid var(--line, #e5e7eb);
    background: #f8fafc;
    scrollbar-width: thin;
}
.admin-global-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}
.admin-global-nav a.active,
.admin-global-nav a:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}
.admin-filter.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.detail-table th,
.detail-table td {
    white-space: normal;
}
.break-cell {
    max-width: 440px;
    word-break: break-all;
    overflow-wrap: anywhere;
}
.muted {
    color: var(--muted, #6b7280);
    font-size: 13px;
    line-height: 1.55;
}
.admin-panel small {
    color: var(--muted, #6b7280);
    font-size: 13px;
    font-weight: 700;
}
@media (max-width: 1040px) {
    .admin-filter.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .admin-global-nav { padding: 8px 14px; }
    .admin-filter.compact { grid-template-columns: 1fr; }
    .break-cell { max-width: 260px; }
}
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.button.small { min-height: 30px; padding: 5px 9px; font-size: 12px; }

/* ===== Visit raw log hotfix ===== */
.admin-global-nav {
    position: relative;
    z-index: 9;
}
.visit-log-table th,
.visit-log-table td {
    vertical-align: top;
    font-size: 12px;
}
.ua-cell {
    min-width: 260px;
    max-width: 520px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.45;
}
.admin-table-wrap {
    overflow-x: auto;
}

/* ===== Legal policy detail patch ===== */
.legal-kicker {
    margin: 0 0 6px !important;
    color: var(--accent) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
}

.legal-meta {
    margin: -6px 0 24px !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.legal-page code {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: .92em;
}

.legal-page strong {
    color: #0f172a;
}

.legal-page ul {
    margin: 10px 0 0 0;
    padding-left: 22px;
}

.legal-page li + li {
    margin-top: 6px;
}

.legal-note {
    margin-top: 12px !important;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a !important;
}


/* ===== Reporter recruitment patch ===== */
.reporter-hero {
    margin-bottom: 22px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    padding: 34px;
}
.reporter-hero h1 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.055em;
}
.reporter-hero p {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.7;
}
.reporter-cta {
    background: var(--brand, #0f172a);
    color: #fff;
    border-color: var(--brand, #0f172a);
}
.reporter-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 22px;
    align-items: start;
}
.reporter-info {
    display: grid;
    gap: 14px;
}
.reporter-card,
.reporter-form-panel,
.reporter-complete {
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 18px;
    background: #fff;
    padding: 22px;
}
.reporter-card h2,
.reporter-form-panel h2,
.reporter-complete h2 {
    margin: 0 0 12px;
    font-size: 21px;
    letter-spacing: -0.04em;
}
.reporter-card p,
.reporter-card li,
.privacy-box p {
    color: #4b5563;
    line-height: 1.72;
}
.reporter-card ul,
.reporter-list {
    margin: 0;
    padding-left: 19px;
}
.reporter-list {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}
.reporter-list li {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}
.reporter-list strong {
    color: #111827;
}
.notice-card {
    background: #fffbeb;
    border-color: #fde68a;
}
.reporter-form-panel {
    position: sticky;
    top: 122px;
}
.reporter-form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 800;
    color: #111827;
}
.reporter-form input,
.reporter-form select,
.reporter-form textarea,
.inline-admin-form input,
.inline-admin-form select,
.inline-admin-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}
.reporter-form textarea,
.inline-admin-form textarea {
    resize: vertical;
    line-height: 1.65;
}
.required {
    color: #dc2626;
    font-size: 12px;
    font-weight: 900;
}
.privacy-box {
    margin: 18px 0;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #eff6ff;
    padding: 16px;
}
.privacy-box h3 {
    margin: 0 0 8px;
    font-size: 16px;
}
.reporter-checkbox {
    margin: 12px 0 0 !important;
}
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.reporter-complete {
    max-width: 720px;
    margin: 24px auto;
    text-align: center;
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.reporter-complete p {
    color: #166534;
    font-size: 17px;
}
.status.pending { background: #f3f4f6; color: #374151; }
.status.reviewing { background: #eff6ff; color: #1d4ed8; }
.status.accepted { background: #ecfdf5; color: #047857; }
.status.rejected { background: #fef2f2; color: #b91c1c; }
.reporter-admin-table td { vertical-align: top; }
.reporter-detail-grid { align-items: stretch; }
.reporter-review-card .admin-form,
.inline-admin-form {
    max-width: none;
    border: 0;
    padding: 0;
}
.preline-text {
    white-space: normal;
    color: #1f2937;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.reporter-content-grid h3 {
    margin: 0 0 10px;
    font-size: 17px;
}
@media (max-width: 980px) {
    .reporter-layout { grid-template-columns: 1fr; }
    .reporter-form-panel { position: static; }
}
@media (max-width: 640px) {
    .reporter-hero { padding: 24px; }
    .reporter-hero h1 { font-size: 28px; }
}

/* Reporter operation system patch */
.reporter-auth-card,
.reporter-form-panel,
.article-write-form,
.admin-panel,
.detail-card {
    box-sizing: border-box;
}
.reporter-auth-card {
    max-width: 560px;
    margin: 48px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
.reporter-form label,
.admin-form label {
    display: block;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}
.reporter-form input[type="text"],
.reporter-form input[type="email"],
.reporter-form input[type="password"],
.reporter-form input[type="url"],
.reporter-form input[type="date"],
.reporter-form select,
.reporter-form textarea,
.admin-form input[type="text"],
.admin-form select,
.admin-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    color: #111827;
    box-sizing: border-box;
}
.reporter-form textarea,
.admin-form textarea {
    min-height: 110px;
    resize: vertical;
}
.article-write-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.form-row.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.agreement-box,
.reporter-login-note {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    margin: 18px 0;
}
.agreement-box label {
    font-weight: 500;
    margin: 8px 0;
}
.agreement-box input {
    margin-right: 8px;
}
.stacked-actions {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.stacked-actions form {
    display: inline-block;
    margin-right: 8px;
}
.button.danger {
    background: #991b1b;
    color: #fff;
    border-color: #991b1b;
}
.alert.warning {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 14px 16px;
    border-radius: 14px;
    margin: 16px 0;
}
.alert.info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e3a8a;
    padding: 14px 16px;
    border-radius: 14px;
    margin: 16px 0;
}
.status.active,
.status.accepted,
.status.approved,
.status.published {
    background: #dcfce7;
    color: #166534;
}
.status.suspended,
.status.rejected,
.status.withdrawn {
    background: #fee2e2;
    color: #991b1b;
}
.status.submitted,
.status.reviewing,
.status.revision_requested,
.status.draft {
    background: #e0f2fe;
    color: #075985;
}
@media (max-width: 720px) {
    .form-row.two {
        grid-template-columns: 1fr;
    }
    .reporter-auth-card,
    .article-write-form {
        padding: 20px;
        border-radius: 18px;
    }
}

/* Operations feature patch */
.ek-form-page .success-box,.success-box{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:14px;padding:14px 16px;margin:16px 0}.ek-form-page .error-box,.error-box{border:1px solid #fecaca;background:#fef2f2;color:#991b1b;border-radius:14px;padding:14px 16px;margin:16px 0}.muted{color:#64748b;font-size:.92em}.privacy-box{border:1px solid #e5e7eb;background:#f8fafc;border-radius:16px;padding:18px;margin:18px 0}.privacy-box p{margin:.4rem 0 .8rem}.notification-panel{margin:22px 0}.notification-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.notification-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e5e7eb;background:#fff;border-radius:14px;padding:14px 16px;text-decoration:none;color:inherit}.notification-item span{font-weight:800;color:#2563eb}.metric-link-card{text-decoration:none;color:inherit}.admin-upload-thumb{width:96px;height:64px;object-fit:cover;border-radius:10px;border:1px solid #e5e7eb;background:#f8fafc}.copy-input{width:100%;min-width:260px;border:1px solid #d1d5db;border-radius:8px;padding:8px}.guide-list{padding-left:1.1rem}.guide-list li{margin:.45rem 0}.article-preview-body{white-space:normal;line-height:1.75}.detail-table th{white-space:nowrap;text-align:left;color:#475569;padding:8px 14px 8px 0}.detail-table td{padding:8px 0}.break-cell{word-break:break-all}

/* ===== MOBILE FIX: prevent full-page horizontal scroll from 2nd category nav ===== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 1040px) {
    .container,
    .content-layout,
    .content-layout.with-left-sidebar,
    .news-main,
    .right-sidebar,
    .category-sidebar,
    .news-list,
    .news-card,
    .news-card-body,
    .compact-title {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .content-layout,
    .content-layout.with-left-sidebar {
        grid-template-columns: minmax(0, 1fr) !important;
        overflow-x: hidden !important;
    }

    .content-layout.with-left-sidebar .category-sidebar,
    .news-page.has-sidebar .category-sidebar {
        position: static !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--line, #e5e7eb) !important;
        padding: 0 0 12px !important;
        overflow: hidden !important;
    }

    .content-layout.with-left-sidebar .category-sidebar h2,
    .news-page.has-sidebar .category-sidebar h2 {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 10px !important;
    }

    .content-layout.with-left-sidebar .side-nav,
    .news-page.has-sidebar .side-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        scrollbar-width: none !important;
        padding: 0 0 6px !important;
    }

    .content-layout.with-left-sidebar .side-nav::-webkit-scrollbar,
    .news-page.has-sidebar .side-nav::-webkit-scrollbar {
        display: none !important;
    }

    .content-layout.with-left-sidebar .side-nav a,
    .news-page.has-sidebar .side-nav a {
        flex: 0 0 auto !important;
        max-width: calc(100vw - 48px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
        border: 1px solid var(--line, #e5e7eb) !important;
        border-radius: 999px !important;
        padding: 8px 12px !important;
        background: #fff;
    }

    .content-layout.with-left-sidebar .side-nav a.active,
    .news-page.has-sidebar .side-nav a.active {
        background: #eff6ff !important;
    }

    .content-layout.with-left-sidebar .side-nav a span,
    .news-page.has-sidebar .side-nav a span {
        display: block !important;
        max-width: calc(100vw - 104px) !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .content-layout.with-left-sidebar .side-nav em,
    .news-page.has-sidebar .side-nav em {
        flex: 0 0 auto !important;
        margin-left: 4px !important;
    }
}

/* ===== Advertisement slots ===== */
.ad-slot{margin:18px 0;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;text-align:center}.ad-slot .ad-label{padding:6px 10px;text-align:left;color:#9ca3af;font-size:11px;font-weight:800;letter-spacing:.04em}.ad-slot img{display:block;max-width:100%;height:auto;margin:0 auto}.ad-image-link{display:block;text-decoration:none}.ad-code{display:flex;align-items:center;justify-content:center;min-height:80px;padding:8px}.ad-home-top{margin:0 0 18px}.ad-inline{margin:0;border-left:0;border-right:0;border-radius:0;background:#fcfcfd}.ad-sidebar{margin:0 0 16px}.ad-detail-top{margin:22px 0}.ad-detail-bottom{margin:30px 0 20px}.ad-admin-preview{margin:10px 0 18px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.ad-admin-preview img{max-width:360px;width:100%;height:auto;display:block}.link-button{border:0;background:transparent;color:#111827;font-weight:800;cursor:pointer;padding:0;font:inherit;text-decoration:underline}.form-section{margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.form-section h2{margin:0 0 12px;font-size:18px}
@media(max-width:760px){.ad-slot{margin:14px 0}.ad-code{min-height:64px}.ad-inline{margin:0}}

/* ===== Admin reporter application detail polish ===== */
.admin-detail-page {
    min-width: 0;
}

.reporter-detail-head {
    align-items: flex-start;
    padding: 20px 0 4px;
    border-bottom: 1px solid var(--line, #e5e7eb);
}

.reporter-detail-head h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.2;
    letter-spacing: -0.05em;
}

.reporter-detail-head p:last-child {
    margin: 8px 0 0;
    color: var(--muted, #6b7280);
    font-weight: 700;
}

.reporter-detail-head .admin-actions {
    margin-bottom: 0;
    justify-content: flex-end;
}

.reporter-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.summary-tile {
    min-width: 0;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.summary-tile > span:first-child {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.summary-tile strong {
    display: block;
    min-width: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.reporter-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.reporter-detail-main,
.reporter-detail-sidebar {
    min-width: 0;
}

.reporter-detail-sidebar {
    position: sticky;
    top: 116px;
}

.detail-section,
.review-panel,
.quick-panel {
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    overflow: visible;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.section-heading p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
}

.info-list {
    display: grid;
    gap: 0;
    border: 1px solid #edf0f3;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.info-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 13px 15px;
    border-bottom: 1px solid #edf0f3;
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row:nth-child(odd) {
    background: #fbfdff;
}

.info-row > span {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.info-row > strong {
    min-width: 0;
    color: #111827;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.info-row a,
.quick-panel a {
    color: #1d4ed8;
    text-decoration: none;
}

.info-row a:hover,
.quick-panel a:hover {
    text-decoration: underline;
}

.admin-readable-text {
    min-height: 58px;
    padding: 18px;
    border: 1px solid #edf0f3;
    border-radius: 16px;
    background: #fbfdff;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.85;
    word-break: keep-all;
    overflow-wrap: anywhere;
    white-space: normal;
}

.sample-section h3 {
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #eff6ff;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -0.04em;
}

.reporter-status-form label {
    margin-bottom: 14px;
}

.reporter-status-form select,
.reporter-status-form textarea {
    border-radius: 12px;
}

.reporter-status-form button {
    width: 100%;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.quick-action-list {
    display: grid;
    gap: 8px;
}

.quick-action-list .button {
    justify-content: center;
    width: 100%;
}

@media (max-width: 1040px) {
    .reporter-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reporter-detail-layout {
        grid-template-columns: 1fr;
    }

    .reporter-detail-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .reporter-detail-head {
        display: block;
    }

    .reporter-detail-head .admin-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .reporter-detail-summary {
        grid-template-columns: 1fr;
    }

    .detail-section,
    .review-panel,
    .quick-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 13px;
    }

    .admin-readable-text {
        padding: 14px;
        font-size: 14px;
    }
}

.quick-action-list .button.secondary {
    color: #111827;
    text-decoration: none;
}
.quick-action-list .button.secondary:hover {
    color: #1d4ed8;
    text-decoration: none;
}
