/* 클린: 토스·애플 스타일. 연한 회색 바탕 + 흰 카드 + 큰 글자, 모바일 하단 탭바 */
:root {
    --primary: #3182f6; --primary-dark: #1b64da;
    --bg: #f2f4f6; --surface: #fff; --surface-2: #f2f4f6; --input-bg: #f2f4f6;
    --text: #191f28; --muted: #8b95a1; --line: #eef0f2;
    --radius: 16px; --radius-lg: 24px; --radius-sm: 12px;
    --container: 1080px;
}
:root[data-mode="dark"] { --bg: #101114; --surface: #1b1c21; --surface-2: #26272d; --input-bg: #26272d; --line: #2b2c33; --muted: #8b95a1; }
@media (prefers-color-scheme: dark) { :root[data-mode="auto"] { --bg: #101114; --surface: #1b1c21; --surface-2: #26272d; --input-bg: #26272d; --line: #2b2c33; --muted: #8b95a1; } }

.layout-clean { font-size: 16px; }
.layout-clean .site-header { border-bottom: 0; }
.layout-clean .logo { font-size: 21px; }
.cl-icon-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); }
.cl-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.layout-clean .card, .layout-clean .site-sidebar .widget, .layout-clean .home-widgets .widget, .layout-clean .bd-table { border: 0; box-shadow: none; }
.layout-clean .btn { height: 44px; border-radius: 12px; border: 0; background: var(--surface-2); }
.layout-clean .btn-primary { background: var(--primary); }
.layout-clean .bd-table th { background: var(--surface); }

.cl-hero { padding: 24px 0 28px; }
.cl-hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.25; letter-spacing: -0.04em; margin: 0 0 22px; }
.cl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cl-chips a { flex-shrink: 0; padding: 10px 18px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 15px; }
.cl-chips a:hover { background: var(--primary); color: var(--on-primary, #fff); }

.cl-feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.cl-feed-item { display: flex; gap: 16px; align-items: center; padding: 22px; background: var(--surface); border-radius: var(--radius-lg); transition: transform .2s var(--ease); }
.cl-feed-item:hover { transform: scale(.985); color: inherit; }
.cl-feed-item.is-big { grid-column: 1 / -1; padding: 28px; }
.cl-feed-text { flex: 1; min-width: 0; }
.cl-feed-board { font-size: 13px; font-weight: 700; color: var(--primary); }
.cl-feed-item h2 { font-size: 18px; font-weight: 700; margin: 6px 0; line-height: 1.4; }
.cl-feed-item.is-big h2 { font-size: clamp(22px, 3vw, 28px); }
.cl-feed-item p { margin: 0 0 10px; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-feed-meta { font-size: 13px; color: var(--muted); }
.cl-feed-item img { width: 96px; height: 96px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.cl-feed-item.is-big img { width: 280px; height: 180px; }
.cl-section-title { font-size: 22px; font-weight: 800; margin: 12px 0 16px; }
.cl-footer { background: transparent; border-top: 0; }

/* 모바일 하단 탭바 + 메뉴 시트 */
.cl-tabbar { display: none; }
.cl-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0); transition: background .2s; display: flex; align-items: flex-end; }
.cl-sheet.open { background: rgba(0, 0, 0, .4); }
.cl-sheet-panel { width: 100%; max-height: 75vh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s var(--ease); }
.cl-sheet.open .cl-sheet-panel { transform: none; }
.cl-sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.cl-sheet .menu { list-style: none; margin: 0; padding: 0; }
.cl-sheet .menu > li > a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 700; }
.cl-sheet .submenu { list-style: none; margin: 0 0 8px; padding: 0 0 0 4px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.cl-sheet .submenu a { display: block; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 600; }

@media (max-width: 760px) {
    .layout-clean .gnb, .layout-clean .user-nav, .cl-icon-btn { display: none; }
    .layout-clean .header-inner { height: 56px; flex-wrap: nowrap; padding: 0 20px; }
    .cl-feed { grid-template-columns: 1fr; }
    .cl-feed-item.is-big { flex-direction: column-reverse; align-items: stretch; }
    .cl-feed-item.is-big img { width: 100%; height: 200px; }
    body.layout-clean { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .cl-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        background: var(--header-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--line); }
    .cl-tabbar a, .cl-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font: inherit; font-size: 11px; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; }
    .cl-tabbar svg { width: 24px; height: 24px; }
    .cl-tabbar .active { color: var(--text); }
}
