/* 실시간 인기글 랜딩 (2026-10-30) — 접두어 dm-, 밝은 회백 바탕 · 주황 강조. 좌우 대신 논리 속성(ar 대비) */
:root {
	--bg: #f6f6f4;
	--bg-alt: #eeeeea;
	--card: #fff;
	--line: #e4e4df;
	--text: #1b1d22;
	--sub: #646872;
	--faint: #9a9da5;
	--pri: #e8590c;
	--pri-dk: #b94306;
	--pri-bg: #fdeee3;
	--r: 14px;
	--wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.dm {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.65 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	overflow-wrap: anywhere;
	word-break: keep-all;
}
img, svg { display: block; }
a { color: var(--pri); }
h1, h2, h3, p { margin: 0; }

.dm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.dm-narrow { max-width: 820px; }
.dm-skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.dm-skip:focus { top: 12px; }
.dm-ic { width: 22px; height: 22px; }
.dm-small { font-size: 13px; color: var(--sub); }

/* ---------- 상단 ---------- */
.dm-top { position: sticky; top: 0; z-index: 20; background: rgba(246, 246, 244, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.dm-top.is-stuck { border-bottom-color: var(--line); }
.dm-top__in { display: flex; align-items: center; gap: 20px; height: 60px; }
.dm-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.dm-brand__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--pri); color: #fff; }
.dm-brand__icon .dm-ic { width: 17px; height: 17px; }
.dm-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.dm-nav a { color: var(--sub); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.dm-nav a:hover { color: var(--text); background: var(--bg-alt); }

/* ---------- 첫 화면 ---------- */
.dm-hero { padding: 48px 0 28px; background:
	radial-gradient(60% 70% at 50% 0%, rgba(232, 89, 12, .09), transparent 70%),
	var(--bg); text-align: center; }
.dm-tags { display: flex; justify-content: center; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.dm-tags li { font-size: 13px; font-weight: 600; color: var(--pri-dk); background: var(--pri-bg); padding: 4px 12px; border-radius: 999px; }
.dm-hero__title { font-size: clamp(28px, 5vw, 44px); line-height: 1.22; letter-spacing: -.02em; font-weight: 800; }
.dm-line { display: block; }
.dm-hero__title em { font-style: normal; color: var(--pri); }
.dm-hero__lead { margin-top: 14px; color: var(--sub); font-size: clamp(15px, 2vw, 17px); }
/* 다모아 앱 받기 (2026-11-01) */
.dm-store { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.dm-store a { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 8px 18px 8px 14px; border-radius: 12px; background: var(--text); color: #fff; text-decoration: none; text-align: start; line-height: 1.2; font-weight: 700; font-size: 16px; transition: background .15s; }
.dm-store a:hover { background: #000; }
.dm-store svg { width: 24px; height: 24px; flex: none; }
.dm-store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; }

/* ---------- 뉴스 목록 ---------- */
.dm-posts { padding: 8px 0 64px; }
.dm-board { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(40, 30, 20, .06); padding: 22px 24px 10px; }
.dm-board__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.dm-board__head h2 { font-size: 20px; letter-spacing: -.01em; }
.dm-board__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--sub); }
.dm-board__meta time { display: inline-flex; align-items: center; gap: 4px; }
.dm-board__meta .dm-ic { width: 14px; height: 14px; }
.dm-empty { padding: 32px 0; text-align: center; color: var(--sub); }
.dm-list { margin: 0; padding: 0; list-style: none; }
.dm-list li + li { border-top: 1px solid var(--line); }
.dm-list { margin-top: 6px; }
.dm-list a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--text); text-decoration: none; border-radius: 8px; }
.dm-list a:hover { background: var(--bg); }
.dm-list a:hover .dm-title { color: var(--pri-dk); text-decoration: underline; text-underline-offset: 3px; }
.dm-list a:visited .dm-title { color: var(--sub); }
.dm-site { flex: none; width: 28px; height: 28px; border-radius: 7px; background: var(--bg-alt); }
.dm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-title { font-size: 16px; line-height: 1.5; }
.dm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.dm-brand-name { color: var(--sub); }
.dm-reply { display: inline-flex; align-items: center; gap: 3px; }
.dm-reply .dm-ic { width: 13px; height: 13px; }
.dm-out { flex: none; align-self: center; color: var(--faint); opacity: 0; transition: opacity .15s; }
.dm-out .dm-ic { width: 15px; height: 15px; }
.dm-list a:hover .dm-out, .dm-list a:focus-visible .dm-out { opacity: 1; }
.dm-ad { margin-top: 24px; line-height: 0; }

/* ---------- 섹션 ---------- */
.dm-sec { padding: 72px 0; }
.dm-sec--alt { background: var(--bg-alt); }
.dm-head { text-align: center; margin-bottom: 36px; }
.dm-head h2 { font-size: clamp(24px, 3.6vw, 32px); letter-spacing: -.015em; }
.dm-head p { margin-top: 10px; color: var(--sub); }
.dm-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.dm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
.dm-card h3 { font-size: 17px; margin: 14px 0 6px; }
.dm-card p { color: var(--sub); font-size: 15px; }
.dm-card__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pri-bg); color: var(--pri); }
.dm-card__ic--mix { background: #e8f1fd; color: #1f6fc9; }
.dm-card__ic--hot { background: #fde8e8; color: #d03030; }

.dm-acc details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.dm-acc summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.dm-acc summary::-webkit-details-marker { display: none; }
.dm-acc summary::after { content: "+"; color: var(--sub); font-weight: 400; font-size: 20px; line-height: 1; }
.dm-acc details[open] summary::after { content: "−"; }
.dm-acc details p { padding: 0 20px 18px; color: var(--sub); }

/* ---------- 바닥 ---------- */
.dm-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.dm-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.dm-foot .dm-brand { margin-bottom: 6px; }
.dm-foot .dm-small a { color: inherit; }
.dm-foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.dm-foot__links a { color: var(--sub); text-decoration: none; }
.dm-foot__links a:hover { color: var(--text); }
.dm-x svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
	.dm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.dm-nav a { padding: 6px 7px; font-size: 14px; }
	.dm-hero { padding: 32px 0 20px; }
	.dm-board { padding: 16px 14px 6px; border-radius: 14px; }
	.dm-list a { gap: 10px; padding: 10px 2px; }
	.dm-site { width: 24px; height: 24px; border-radius: 6px; }
	.dm-title { font-size: 15px; }
	.dm-meta { font-size: 12px; }
	.dm-out { display: none; }
	.dm-sec { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
