:root {
	--korea-blue:#367bea;
	--korea-blue-soft:#eef5ff;
	--korea-ink:#20242c;
	--korea-muted:#6f7682;
	--korea-line:#e5e8ee;
	--korea-page:#f4f5f7;
}

body { background:var(--korea-page); color:var(--korea-ink); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body.home .site-content>.ast-container { display:block; max-width:none; padding:0; }
body .site-header,
body .ast-primary-header-bar,
body .ast-above-header-bar,
body .ast-below-header-bar { background:#fff !important; border:0 !important; }
body .site-header { box-shadow:0 3px 16px rgba(24,35,56,.05) !important; }
body .site-header .ast-container { max-width:1120px; }
body .site-header .site-title,
body .site-header .site-title a { color:var(--korea-blue) !important; font-weight:950; letter-spacing:-.04em; }
body .site-header .main-header-menu .menu-link,
body .site-header .ast-builder-menu .main-navigation>ul>li>.menu-link { border-radius:999px; color:var(--korea-ink) !important; font-size:16px; font-weight:800; height:auto; padding:11px 14px; }
body .site-header .main-header-menu .menu-link:hover,
body .site-header .main-header-menu .current-menu-item>.menu-link,
body .site-header .main-header-menu .current-menu-ancestor>.menu-link { background:var(--korea-blue-soft); color:var(--korea-blue) !important; }

.korea-portal-category-nav { background:#fff; border-bottom:1px solid var(--korea-line); border-top:1px solid var(--korea-line); }
.korea-portal-category-nav ul { display:flex; gap:4px; list-style:none; margin:0 auto; max-width:1120px; overflow-x:auto; padding:0 16px; scrollbar-width:none; white-space:nowrap; }
.korea-portal-category-nav ul::-webkit-scrollbar { display:none; }
.korea-portal-category-nav li { flex:0 0 auto; margin:0; }
.korea-portal-category-nav a { color:#4f5661; display:block; font-size:15px; font-weight:800; padding:13px 14px; position:relative; text-decoration:none; }
.korea-portal-category-nav a:hover,
.korea-portal-category-nav .current-menu-item>a { color:var(--korea-blue); }

.korea-portal-home { background:var(--korea-page); margin:0; padding:22px 0 70px; width:100%; }
.korea-portal-wrap { margin:0 auto; max-width:1120px; padding:0 16px; }
.korea-portal-dashboard { display:grid; gap:12px; grid-template-columns:minmax(0,760px) minmax(280px,348px); grid-template-areas:"top-ad trends" "quick trends" "main trends" "main side-ad"; }
.korea-portal-module { background:#fff; border:1px solid var(--korea-line); border-radius:10px; overflow:hidden; }
.korea-portal-module-head { align-items:center; display:flex; justify-content:space-between; min-height:52px; padding:0 18px; }
.korea-portal-module-head h2 { align-items:center; color:var(--korea-ink); display:flex; font-size:21px; font-weight:900; gap:8px; letter-spacing:-.025em; line-height:1.3; margin:0; }
.korea-portal-head-icon { align-items:center; background:var(--korea-blue); border-radius:7px; color:#fff; display:inline-flex; font-size:14px; height:25px; justify-content:center; width:25px; }
.korea-portal-more { border:1px solid #d8dce4; border-radius:4px; color:#5d6470; font-size:13px; font-weight:700; line-height:1; padding:6px 9px; text-decoration:none; }

.korea-portal-ad { min-height:126px; position:relative; }
.korea-portal-ad-top { grid-area:top-ad; }
.korea-portal-ad-side { grid-area:side-ad; min-height:250px; }
.korea-portal-ad-feed { margin-top:14px; min-height:180px; }
.korea-portal-ad .adsbygoogle { min-height:120px; width:100%; }
.korea-portal-ad-label { background:#fff; border:1px solid #d9dde4; border-radius:3px; color:#777f8a; font-size:10px; line-height:1; padding:3px 5px; position:absolute; right:8px; top:7px; z-index:2; }
.korea-portal-ad-placeholder { align-items:center; background:#fafbfc; color:#9299a3; display:flex; font-size:14px; height:100%; justify-content:center; min-height:inherit; padding:25px; text-align:center; }

.korea-portal-trends { grid-area:trends; padding-bottom:10px; }
.korea-portal-trend-list { list-style:none; margin:0; padding:2px 18px 12px; }
.korea-portal-trend-list li { align-items:start; display:grid; gap:10px; grid-template-columns:25px minmax(0,1fr); margin:0; padding:11px 0; }
.korea-portal-trend-list li+li { border-top:1px solid #f0f1f4; }
.korea-portal-rank { align-items:center; background:var(--korea-blue-soft); border-radius:7px; color:var(--korea-blue); display:flex; font-size:14px; font-weight:900; height:25px; justify-content:center; width:25px; }
.korea-portal-trend-list a { display:block; min-width:0; text-decoration:none; }
.korea-portal-trend-category { color:var(--korea-blue); display:block; font-size:12px; font-weight:800; line-height:1.2; margin-bottom:4px; }
.korea-portal-trend-list strong { color:var(--korea-ink); display:-webkit-box; font-size:16px; font-weight:800; line-height:1.35; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }

.korea-portal-quickbar { align-items:center; display:flex; gap:18px; grid-area:quick; min-height:50px; overflow-x:auto; padding:8px 16px; white-space:nowrap; }
.korea-portal-quickbar>strong { color:var(--korea-blue); font-size:15px; font-weight:900; }
.korea-portal-quickbar>div { display:flex; gap:22px; }
.korea-portal-quickbar a { color:#4c5360; font-size:14px; font-weight:800; text-decoration:none; }
.korea-portal-quickbar a:before { color:#b7bdc7; content:"·"; margin-right:8px; }

.korea-portal-main-news { grid-area:main; }
.korea-portal-news-grid { border-top:1px solid var(--korea-line); display:grid; grid-template-columns:minmax(0,43%) minmax(0,57%); }
.korea-portal-lead { border-right:1px solid var(--korea-line); padding:16px; }
.korea-portal-lead a { display:block; text-decoration:none; }
.korea-portal-lead-image { aspect-ratio:16/10; background:#eef0f3; border-radius:5px; margin-bottom:12px; overflow:hidden; }
.korea-portal-lead-image img,
.korea-portal-topic-image img { display:block; height:100%; object-fit:cover; width:100%; }
.korea-portal-badge { background:var(--korea-blue-soft); border-radius:999px; color:var(--korea-blue); display:inline-flex; font-size:12px; font-weight:800; line-height:1; margin-bottom:7px; padding:5px 8px; }
.korea-portal-lead h2 { color:var(--korea-ink); font-size:21px; font-weight:900; letter-spacing:-.025em; line-height:1.32; margin:0 0 8px; }
.korea-portal-lead p { color:var(--korea-muted); font-size:14px; line-height:1.5; margin:0; }
.korea-portal-headline-list { list-style:none; margin:0; padding:8px 16px; }
.korea-portal-headline-list li { margin:0; }
.korea-portal-headline-list li+li { border-top:1px solid #f0f1f4; }
.korea-portal-headline-list a { align-items:center; display:grid; gap:12px; grid-template-columns:minmax(0,1fr) auto; min-height:58px; text-decoration:none; }
.korea-portal-headline-list strong { display:-webkit-box; font-size:16px; font-weight:800; line-height:1.42; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.korea-portal-headline-list span { color:#9aa0aa; font-size:12px; }

.korea-portal-topic { margin-top:14px; }
.korea-portal-topic-head { border-bottom:1px solid var(--korea-line); }
.korea-portal-topic-head h2 { font-size:22px; }
.korea-portal-topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.korea-portal-topic-card { margin:0; min-width:0; padding:16px; }
.korea-portal-topic-card+.korea-portal-topic-card { border-left:1px solid #f0f1f4; }
.korea-portal-topic-card:nth-child(n+4) { border-top:1px solid #f0f1f4; }
.korea-portal-topic-card:nth-child(4) { border-left:0; }
.korea-portal-topic-card a { display:grid; gap:12px; grid-template-columns:110px minmax(0,1fr); text-decoration:none; }
.korea-portal-topic-image { aspect-ratio:1/1; background:#eef0f3; border-radius:5px; overflow:hidden; }
.korea-portal-topic-card h3 { display:-webkit-box; font-size:16px; font-weight:800; letter-spacing:-.02em; line-height:1.4; margin:0 0 5px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.korea-portal-topic-card time { color:#969da7; font-size:12px; }
.korea-portal-empty { color:var(--korea-muted); font-size:16px; padding:30px; }

@media (max-width:921px) {
	.korea-portal-dashboard { grid-template-columns:minmax(0,1fr) 310px; }
	.korea-portal-topic-card a { grid-template-columns:92px minmax(0,1fr); }
	body .ast-header-break-point .main-header-menu { background:#fff !important; }
}

@media (max-width:760px) {
	body .site-header .main-header-bar { min-height:58px; }
	.korea-portal-category-nav a { font-size:14px; padding:12px 13px 13px; }
	.korea-portal-category-nav .current-menu-item>a:after { background:var(--korea-blue); border-radius:999px; bottom:3px; content:""; height:3px; left:25%; position:absolute; width:50%; }
	.korea-portal-home { padding:10px 0 44px; }
	.korea-portal-wrap { padding:0 10px; }
	.korea-portal-dashboard { display:flex; flex-direction:column; gap:10px; }
	.korea-portal-ad-top { order:1; }
	.korea-portal-trends { order:2; }
	.korea-portal-quickbar { order:3; }
	.korea-portal-main-news { order:4; }
	.korea-portal-ad-side { order:5; }
	.korea-portal-module { border-radius:7px; }
	.korea-portal-ad { min-height:104px; }
	.korea-portal-ad-side { min-height:180px; }
	.korea-portal-module-head { min-height:49px; padding:0 14px; }
	.korea-portal-module-head h2 { font-size:19px; }
	.korea-portal-trend-list { padding:0 14px 10px; }
	.korea-portal-trend-list li { padding:9px 0; }
	.korea-portal-trend-list strong { font-size:15px; -webkit-line-clamp:1; }
	.korea-portal-quickbar { padding-left:14px; padding-right:14px; }
	.korea-portal-quickbar>div { gap:14px; }
	.korea-portal-news-grid { display:block; }
	.korea-portal-lead { border-bottom:1px solid var(--korea-line); border-right:0; padding:14px; }
	.korea-portal-lead a { display:grid; gap:12px; grid-template-columns:42% minmax(0,1fr); }
	.korea-portal-lead-image { grid-row:1/span 4; margin:0; }
	.korea-portal-lead h2 { font-size:19px; margin:0; }
	.korea-portal-lead p { display:none; }
	.korea-portal-headline-list { padding:4px 14px; }
	.korea-portal-headline-list a { min-height:52px; }
	.korea-portal-headline-list strong { font-size:15px; -webkit-line-clamp:1; }
	.korea-portal-topic { margin-top:10px; }
	.korea-portal-topic-grid { display:block; }
	.korea-portal-topic-card { border-left:0 !important; border-top:1px solid #f0f1f4; padding:13px 14px; }
	.korea-portal-topic-card:first-child { border-top:0; }
	.korea-portal-topic-card a { grid-template-columns:104px minmax(0,1fr); }
	.korea-portal-topic-image { aspect-ratio:4/3; }
	.korea-portal-topic-card h3 { font-size:17px; -webkit-line-clamp:2; }

	body.single-post { background:#fff !important; }
	body.single-post .site-content { background:#fff; }
	body.single-post .site-content>.ast-container { display:block; max-width:760px; padding:0 16px; }
	body.single-post #primary { margin:24px 0 52px; width:100%; }
	body.single-post #secondary { display:none !important; }
	body.single-post .ast-article-single { border:0 !important; box-shadow:none !important; padding:0 !important; }
	body.single-post .entry-title { color:#171a20 !important; font-size:28px !important; font-weight:900 !important; letter-spacing:-.035em; line-height:1.32 !important; }
	body.single-post .entry-meta { border-bottom:1px solid var(--korea-line); color:#7c838e; font-size:13px !important; margin-top:14px; padding-bottom:18px; }
	body.single-post .entry-content { color:#252a32; font-size:19px !important; letter-spacing:-.012em; line-height:1.84 !important; margin-top:26px; }
	body.single-post .entry-content p { margin-bottom:22px; }
	body.single-post .entry-content h2 { font-size:25px !important; letter-spacing:-.03em; line-height:1.38 !important; }
	body.single-post .entry-content h3 { font-size:22px !important; line-height:1.42 !important; }
	body.single-post .entry-content img { border-radius:7px; height:auto; max-width:100%; }
	body.single-post .entry-content table { font-size:16px !important; }
	body.single-post .entry-content th,
	body.single-post .entry-content td { padding:10px 12px !important; }
}

@media (max-width:420px) {
	.korea-portal-lead a { grid-template-columns:120px minmax(0,1fr); }
	.korea-portal-topic-card a { grid-template-columns:96px minmax(0,1fr); }
}
