/**
 * MODULAR — modular.css
 * 조립형 커뮤니티 디자인 시스템 (잉크 + 포인트 색 · 직각/모서리 컷 · 플랫 · 그림자 없음)
 * theme.css 뒤에 로드되어 헤더·푸터·홈·공통 부품과 조립 애니메이션을 정의합니다.
 *
 *  §1 토큰  §2 조립 애니메이션  §3 헤더  §4 모바일 메뉴  §5 본문 공통  §6 푸터
 *  §7 홈   §8 다크모드         §9 반응형
 */

/* ═══ §1 토큰 ═══ */
:root {
  --mo-accent: #d63a12;
  --mo-cover: #161615;
  --mo-cover-line: #34342f;
  --mo-cover-text: #bdbcb4;
  --mo-soft: #efeee9;
  --mo-foot-bg: #141413;
  --mo-foot-ink: #f3f2ee;
  --mo-foot-mute: #a9a8a0;
  --mo-serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Apple SD Gothic Neo', Georgia, serif;
  --mo-grot: 'Space Grotesk', 'Noto Sans KR', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --mo-edge: max(var(--nc-gutter), calc((100% - var(--nc-w)) / 2 + var(--nc-gutter)));
}
html.mo-js { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body.mo-body { font-family: var(--font); letter-spacing: -.01em; background: var(--bg-body); }
body.mo-body a { text-decoration: none; }
.mo-wrap { width: 100%; max-width: var(--nc-w); margin: 0 auto; padding-left: var(--nc-gutter); padding-right: var(--nc-gutter); box-sizing: border-box; }
.mo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mo-body *, .mo-body *::before, .mo-body *::after { box-shadow: none !important; }
.mo-cut { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.mo-label { font-family: var(--mo-grot); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }

/* ═══ §2 조립 애니메이션 ═══
   조각이 각도를 틀고 날아와 → 살짝 지나쳤다가 → 딱 맞물림. 값은 요소의 --fx/--fy/--fr/--d.
   hidden 상태는 JS 가 켜졌을 때(html.mo-js)만 적용되므로 JS 가 없어도 내용은 그대로 보인다. */
@keyframes mo-asm {
  0%   { transform: translate(var(--fx, 0px), var(--fy, 0px)) rotate(var(--fr, 0deg)); opacity: 0; }
  12%  { opacity: 1; }
  68%  { transform: translate(calc(var(--fx, 0px) * -0.05), calc(var(--fy, 0px) * -0.05)) rotate(calc(var(--fr, 0deg) * -0.12)); }
  84%  { transform: translate(calc(var(--fx, 0px) * 0.018), calc(var(--fy, 0px) * 0.018)) rotate(calc(var(--fr, 0deg) * 0.03)); }
  100% { transform: none; opacity: 1; }
}
@keyframes mo-lock { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
html:not(.mo-js) .mo-asm, html:not(.mo-js) .mo-pc { opacity: 1; transform: none; }
html.mo-js .mo-asm:not([data-in]),
html.mo-js .mo-asm:not([data-in]) .mo-pc { opacity: 0; transform: translate(var(--fx, 0px), var(--fy, 0px)) rotate(var(--fr, 0deg)); }
html.mo-js .mo-asm[data-in],
html.mo-js .mo-asm[data-in] .mo-pc { animation: mo-asm 1.05s cubic-bezier(.22, .8, .3, 1) var(--d, 0s) both; }
html .mo-asm:not(.mo-head):not(.nc-side) { position: relative; }
.mo-flash::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--mo-accent); opacity: 0; pointer-events: none; z-index: 3; }
html.mo-js .mo-flash[data-in]::after { animation: mo-lock .55s ease calc(var(--d, 0s) + .78s) both; }
.mo-pc:not(.mo-pc-svg) { display: block; }
.mo-pc-svg { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  html.mo-js .mo-asm:not([data-in]), html.mo-js .mo-asm:not([data-in]) .mo-pc { opacity: 1; transform: none; }
  html.mo-js .mo-asm[data-in], html.mo-js .mo-asm[data-in] .mo-pc { animation: none; }
  .mo-flash::after { display: none; }
  html { scroll-behavior: auto; }
}
@supports (overflow: clip) {
  .mo-home, .mo-hero-l, .mo-hero-r, .mo-half, .mo-band { overflow-x: clip; }
}

/* ═══ §3 헤더 ═══ */
.mo-topline { background: var(--nc-ink); color: #f3f2ee; font-family: var(--mo-grot); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.mo-topline-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.mo-head { position: sticky; top: 0; z-index: 120; background: var(--bg-header); border-bottom: 1px solid var(--border); }
.mo-head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.mo-brand { display: flex; align-items: baseline; gap: 10px; line-height: 1; color: var(--text-main); flex-shrink: 0; }
.mo-brand strong { font-family: var(--mo-serif); font-size: 30px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.mo-brand span { font-family: var(--mo-grot); font-size: 11px; letter-spacing: .2em; color: var(--text-muted); text-transform: uppercase; }
.mo-logo-pic { display: block; max-height: 40px; width: auto; }
.mo-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 36px); flex: 1; min-width: 0; align-self: stretch; }
.mo-nav-item { position: relative; display: flex; align-items: center; flex-shrink: 0; align-self: stretch; }
.mo-nav-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text-muted); white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.mo-nav-link i:not(.mo-caret) { display: none; }
.mo-nav-item:hover > .mo-nav-link, .mo-nav-item.is-open > .mo-nav-link { color: var(--text-main); border-bottom-color: var(--mo-accent); }
.mo-nav-item.is-active > .mo-nav-link { color: var(--text-main); border-bottom-color: var(--text-main); }
.mo-caret { font-size: 9px; opacity: .5; transition: transform .2s; }
.mo-nav-item:hover .mo-caret, .mo-nav-item.is-open .mo-caret { transform: rotate(180deg); }
.mo-drop { display: none !important; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 200px; padding: 8px; background: var(--bg-card); border: 1px solid var(--border); border-top: 2px solid var(--text-main); border-radius: 0; z-index: 200; }
.mo-drop-link { display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 14px; color: var(--text-main); white-space: nowrap; transition: background .15s, color .15s; }
.mo-drop-link i { font-size: 11px; opacity: .55; width: 14px; text-align: center; }
.mo-drop-link:hover { background: var(--hover-row); color: var(--mo-accent); }
.mo-drop-link.is-active { background: var(--nc-acid); color: var(--text-main); font-weight: 700; }
.mo-new, .nc-new { display: inline-flex; align-items: center; justify-content: center; margin-left: 5px; padding: 1px 4px; background: var(--mo-accent); color: #fff; font-size: 9px; font-weight: 800; line-height: 1.25; border-radius: 0; vertical-align: middle; }
.mo-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mo-iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--text-main); border-radius: 0; background: transparent; color: var(--text-main); font-size: 15px; cursor: pointer; transition: background .15s, color .15s; flex-shrink: 0; }
.mo-iconbtn:hover { background: var(--text-main); color: var(--bg-body); }
.mo-actions .nc-iconbtn { width: 44px; height: 44px; border-radius: 0; border-color: var(--text-main); }
.mo-actions .nc-iconbtn:hover { background: var(--text-main); color: var(--bg-body); }
.mo-textbtn { padding: 0 6px; font-size: 13px; font-weight: 500; color: var(--text-main); white-space: nowrap; transition: color .15s; }
.mo-textbtn:hover { color: var(--mo-accent); }
.mo-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 0; font-size: 13px; color: var(--text-main); transition: border-color .15s; }
.mo-chip:hover { border-color: var(--text-main); }
.mo-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; background: var(--mo-accent); color: #fff !important; font-size: 14px; font-weight: 700; white-space: nowrap; border: 0; transition: filter .15s; }
.mo-cta:hover { filter: brightness(.9); }
.mo-actions .mo-burger { display: none; }
.mo-actions .nc-notif-badge { border-color: var(--bg-header); }
.mo-actions .nc-notif-panel { border-color: var(--border); border-radius: 0; }


/* ── 풀 드롭다운 (전체 메뉴 판) ─────────────────────────────────────
   메뉴에 마우스를 올리거나 Tab 으로 초점이 들어오면 헤더 아래로 전폭 판이 펼쳐진다.
   판은 DOM 상 <nav> 안, 상위 메뉴 바로 뒤에 있어 Tab 순서가 "상위 메뉴 → 판 안 링크 → 검색·계정" 으로 이어진다. */
.mo-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 150; visibility: hidden; opacity: 0; pointer-events: none; background: var(--bg-card); border-bottom: 1px solid var(--border); transition: opacity .18s ease, visibility 0s linear .18s; }
.mo-mega::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--text-main); }
.mo-head.is-mega-open .mo-mega { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .12s ease, visibility 0s; }
.mo-mseam { position: absolute; inset: 0; border: 2px solid var(--mo-accent); opacity: 0; pointer-events: none; }
.mo-head.is-mega-open .mo-mseam { animation: mo-lock .5s ease .45s both; }
.mo-mega-in { display: flex; flex-wrap: wrap; gap: 40px 56px; padding-top: 44px; padding-bottom: 52px; }
.mo-mega-cols { flex: 4 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 32px; align-content: start; }
.mo-mc { min-width: 0; }
.mo-mc-t { display: block; padding: 16px 0 12px; border-top: 2px solid var(--text-main); font-family: var(--mo-serif); font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--text-main); transition: color .15s, border-color .15s; }
.mo-mc.is-cur .mo-mc-t { color: var(--mo-accent); border-top-color: var(--mo-accent); }
.mo-mc-l { list-style: none; margin: 0; padding: 0; }
/* 하위 메뉴가 없는 상위 메뉴는 제목만 있는 작은 칸으로 뒤쪽에 모은다 (시각 순서만 바뀌고 Tab 순서는 그대로) */
.mo-mc-solo { order: 2; }
.mo-mc-solo .mo-mc-t { padding: 14px 0; font-size: 17px; }
.mo-mc-l a { display: block; padding: 9px 0; font-size: 15px; color: var(--text-main); transition: color .15s; }
.mo-mc-l a:hover { color: var(--mo-accent); }
.mo-mc-t:hover { color: var(--mo-accent); }
.mo-mega a:focus-visible, .mo-nav-link:focus-visible, .mo-head .mo-iconbtn:focus-visible, .mo-head .mo-cta:focus-visible, .mo-head .mo-brand:focus-visible, .mo-head .mo-textbtn:focus-visible, .mo-head .mo-chip:focus-visible, .mo-head .nc-iconbtn:focus-visible, .mo-head button:focus-visible { outline: 2px solid var(--mo-accent); outline-offset: 3px; }
.mo-mpromo { flex: 1 1 300px; min-width: 0; align-self: flex-start; display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--mo-cover); color: #f3f2ee !important; }
.mo-mpromo-tag { align-self: flex-start; padding: 6px 14px; background: var(--mo-accent); color: #fff; font-family: var(--mo-grot); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mo-mpromo-t { font-family: var(--mo-serif); font-size: 22px; line-height: 1.5; font-weight: 700; word-break: keep-all; }
.mo-mpromo-d { font-size: 13px; line-height: 1.8; color: var(--mo-cover-text); }
.mo-mpromo-go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.mo-mpromo:hover .mo-mpromo-t { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.mo-mpromo:focus-visible { outline: 2px solid var(--mo-accent); outline-offset: 3px; }
.mo-head.is-mega-open .mo-mc { animation: mo-asm .62s cubic-bezier(.22, .8, .3, 1) var(--d, 0s) both; }
.mo-nav-item.is-cur > .mo-nav-link { color: var(--text-main); border-bottom-color: var(--mo-accent); }
@media (prefers-reduced-motion: reduce) {
  .mo-head.is-mega-open .mo-mc, .mo-head.is-mega-open .mo-mseam { animation: none; }
}
@media (max-width: 960px) { .mo-mega { display: none; } }
.mo-head.mo-crowded .mo-mega { display: none; }

/* ═══ §4 모바일 메뉴 ═══ */
.nc-mob-panel { border-left: 1px solid var(--border); }
.nc-mob-head { min-height: 64px; }
.nc-search-mob { border-bottom: 1px solid var(--border); }
.nc-mob-link { font-size: 15px; font-weight: 600; }
.nc-mob-ava, .nc-mob-user-info em { background: var(--mo-accent); color: #fff; border-radius: 0; }
.nc-mob-foot a { border-radius: 0; }
.mo-mob-cta { margin: 6px 18px 0; padding: 14px 16px; background: var(--mo-accent); color: #fff !important; justify-content: center; font-weight: 700; }
.mo-mob-cta i { color: #fff; }

/* ═══ §5 본문 공통 (게시판·마이페이지 등 기본 스킨 공용) ═══ */
.nc-main { padding-top: 40px; padding-bottom: 88px; }
.mo-main-home { padding: 0; max-width: none; }
.nc-btn, .nc-chip, .nc-iconbtn { border-radius: 0; }
.nc-btn { padding: 13px 18px; font-size: 13px; font-weight: 700; }
.nc-btn-ink { background: var(--text-main); border-color: var(--text-main); color: var(--bg-body); }
.nc-btn-ink:hover { background: var(--mo-accent); border-color: var(--mo-accent); color: #fff; }
.nc-section-head h2, .nc-error h1, .nc-error-num { font-family: var(--mo-serif); font-weight: 700; letter-spacing: -.02em; }
.nc-error { text-align: center; padding: 80px 0 60px; }
.nc-error-num { font-size: 72px; line-height: 1; margin-bottom: 18px; color: var(--mo-accent); }
.nc-error p { color: var(--text-muted); line-height: 1.9; margin: 14px 0 28px; }
.nc-side-title { font-family: var(--mo-serif); font-weight: 700; }
.nc-side-block { border-top: 2px solid var(--text-main); }
.nc-side-dot { background: var(--mo-accent); border-color: var(--mo-accent); border-radius: 0; }
.nc-flash { border-radius: 0; }
.nc-body [style*="background:var(--p)"], .nc-body [style*="background: var(--p)"] { border-radius: 0 !important; }
.nc-body .pf-btn-primary, .nc-body .mx-write-btn, .nc-body .mx-reply-btn, .nc-body .dx-mob-cat-pill.active { border-radius: 0; }
.dx-cat-child-a.dx-cat-active { background: var(--nc-acid) !important; border-radius: 0; }
.nc-col-main { min-width: 0; }
/* 기본 게시판 스킨의 알약·원형 부품도 각지게 */
.nc-body .nb-ava, .nc-body .nb-icon-btn, .nc-body .dx-action-btn, .nc-body .nb-cmt-count, .nc-body .nb-tag, .nc-body .nb-new,
.nc-body .nb-chip, .nc-body .nb-pill, .nc-body .nb-btn, .nc-body .nb-sort a, .nc-body [class*="nb-"][class*="btn"] { border-radius: 0 !important; }

/* ═══ §5b 사이드바(aside) — 카드 모듈 ═══
   블록마다 하얀 카드 · 위쪽 잉크 라인 · 번호 목록 · 현재 위치는 포인트 색 라인 */
.nc-side { gap: 22px; top: calc(var(--mo-head-h, 81px) + 1px); }
.mo-sb-board { position: relative; padding: 26px 24px 24px; background: var(--mo-cover); color: #f3f2ee; border-bottom: 3px solid var(--mo-accent); }
.mo-sb-label { display: flex; align-items: center; gap: 9px; font: 500 11px/1 var(--mo-grot); letter-spacing: .22em; color: var(--mo-cover-text); }
.mo-sb-label::before { content: ""; width: 8px; height: 8px; background: var(--mo-accent); }
.mo-sb-name { margin: 16px 0 0; font: 700 25px/1.25 var(--mo-serif); letter-spacing: -.03em; word-break: keep-all; }
.mo-sb-name a { color: #fff; }
.mo-sb-name a:hover { text-decoration: underline; text-decoration-color: var(--mo-accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mo-sb-desc { margin: 12px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--mo-cover-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mo-sb-stat { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 0; border-top: 1px solid var(--mo-cover-line); }
.mo-sb-stat > div { padding: 16px 0 0; }
.mo-sb-stat > div + div { padding-left: 18px; border-left: 1px solid var(--mo-cover-line); }
.mo-sb-stat dt { font: 500 10px/1 var(--mo-grot); letter-spacing: .06em; color: var(--mo-cover-text); }
.mo-sb-stat dd { margin: 9px 0 0; font: 500 26px/1 var(--mo-grot); color: #fff; }
.mo-sb-write { display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px; margin-top: 22px; background: var(--mo-accent); color: #fff; font-size: 13px; font-weight: 700; }
.mo-sb-write:hover { background: #fff; color: #161615; }
.mo-sb-write:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }

.nc-side-block, .nc-side-block.dx-cat-nav { background: #fff; border: 1px solid var(--border); border-top: 2px solid var(--text-main); padding: 0; border-radius: 0; }
.nc-side-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 17px 20px 15px; border-bottom: 1px solid var(--border); font: 700 15px/1.3 var(--mo-serif); letter-spacing: -.02em; }
.nc-side-title small { margin: 0; font: 500 10px/1 var(--mo-grot); letter-spacing: .2em; color: var(--text-muted); }
.nc-side-list, .dx-cat-ul { counter-reset: mos; list-style: none; margin: 0; padding: 0; }
.nc-side-list li:last-child .nc-side-link, .dx-cat-ul > li:last-child > a, .dx-cat-ul > li:last-child > button { border-bottom: 0 !important; }
.nc-side-link { gap: 13px; padding: 14px 20px 14px 17px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; font-size: 13.5px; }
.nc-side-link::before { counter-increment: mos; content: counter(mos, decimal-leading-zero); flex: 0 0 22px; font: 500 11px/1 var(--mo-grot); letter-spacing: .06em; color: var(--text-muted); }
.nc-side-link:hover { padding-left: 17px; background: var(--hover-row, rgba(22,22,21,.04)); color: var(--text-main); }
.nc-side-link.is-active { background: var(--nc-acid); border-left-color: var(--mo-accent); color: #161615; }
.nc-side-link.is-active::before { color: var(--mo-accent); font-weight: 700; }
.nc-side-link:focus-visible, .dx-cat-all:focus-visible, .dx-cat-top:focus-visible, .dx-cat-child-a:focus-visible, .mo-sb-rank a:focus-visible { outline: 2px solid var(--mo-accent); outline-offset: -2px; }
.nc-side-dot { width: 8px; height: 8px; border-radius: 0; background: var(--mo-accent); border: 0; }

.dx-cat-all, .dx-cat-top { padding: 14px 20px 14px 17px !important; border-left: 3px solid transparent !important; border-bottom: 1px solid var(--border); font-size: 13.5px !important; box-shadow: none !important; }
.dx-cat-all::before { counter-increment: mos; content: "00"; margin-right: 13px; font: 500 11px/1 var(--mo-grot); color: var(--text-muted); }
.dx-cat-all:hover, .dx-cat-top:hover { background: var(--hover-row, rgba(22,22,21,.04)) !important; }
.dx-cat-all.dx-cat-active, .dx-cat-top.dx-cat-active { background: var(--nc-acid) !important; border-left-color: var(--mo-accent) !important; color: #161615 !important; font-weight: 800; padding-left: 17px !important; box-shadow: none !important; }
.nc-cat-dot { border-radius: 0; }
.dx-cat-children { background: var(--mo-soft); border-bottom: 1px solid var(--border); }
.dx-cat-child-a { padding-right: 20px !important; border-left: 3px solid transparent !important; }
.dx-cat-child-a.dx-cat-active { background: var(--nc-acid) !important; border-left-color: var(--mo-accent) !important; color: #161615 !important; border-radius: 0; }

.mo-sb-rank { list-style: none; margin: 0; padding: 0; counter-reset: rk; }
.mo-sb-rank li + li a { border-top: 1px solid var(--border); }
.mo-sb-rank a { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; align-items: start; padding: 15px 20px; color: var(--text-main); }
.mo-sb-rank a::before { counter-increment: rk; content: counter(rk); grid-row: 1 / span 2; font: 600 20px/1.1 var(--mo-grot); color: var(--text-main); }
.mo-sb-rank li:nth-child(-n+3) a::before { color: var(--mo-accent); }
.mo-sb-rank a:hover { background: var(--hover-row, rgba(22,22,21,.04)); }
.mo-sb-rt { font-size: 13.5px; font-weight: 650; line-height: 1.55; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.mo-sb-rm { grid-column: 2; margin-top: 6px; font: 500 11px/1 var(--mo-grot); color: var(--text-muted); }
.mo-sb-rm i { margin-right: 2px; }
html body.dark .nc-side-block, html body.dark .nc-side-block.dx-cat-nav { background: var(--bg-card) !important; border-color: var(--border) !important; border-top-color: var(--text-main) !important; }
html body.dark .mo-sb-board { background: #0c0c0b; border: 1px solid var(--border); border-bottom: 3px solid var(--mo-accent); }
html body.dark .nc-side-link.is-active, html body.dark .dx-cat-all.dx-cat-active, html body.dark .dx-cat-top.dx-cat-active, html body.dark .dx-cat-child-a.dx-cat-active { background: rgba(214,58,18,.22) !important; color: #f3f2ee !important; }
html body.dark .nc-side-link, html body.dark .nc-side-link:hover { background-color: transparent; }
html body.dark .nc-side-link.is-active { background: rgba(214,58,18,.22); }
html body.dark .dx-cat-children { background: #1d1d1b; }
html body.dark .mo-sb-write:hover { color: #161615; }

/* ═══ §6 푸터 ═══ */
.mo-footer { background: var(--mo-foot-bg); color: var(--mo-foot-ink); margin-top: auto; }
.mo-foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 64px; }
.mo-footer .mo-brand { color: var(--mo-foot-ink); }
.mo-foot-desc { margin: 16px 0 0; color: var(--mo-foot-mute); font-size: 13px; line-height: 1.9; max-width: 460px; }
.mo-foot-sns { display: flex; gap: 8px; margin-top: 20px; }
.mo-foot-sns a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid currentColor; color: var(--mo-foot-ink); font-size: 14px; opacity: .8; transition: opacity .15s; }
.mo-foot-sns a:hover { opacity: 1; }
.mo-foot-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mo-replay { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--mo-foot-ink); background: transparent; color: var(--mo-foot-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.mo-replay:hover { background: var(--mo-foot-ink); color: var(--mo-foot-bg); }
.mo-foot-copy { color: var(--mo-foot-mute); font-size: 12px; line-height: 1.95; }
.mo-foot-legal { display: inline-flex; gap: 14px; }
.mo-foot-legal a { color: var(--mo-foot-ink); }
.mo-foot-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ═══ §7 홈 ═══ */
.mo-home { background: var(--bg-body); color: var(--text-main); }
.mo-home h1, .mo-home h2 { margin: 0; font-family: var(--mo-serif); font-weight: 700; letter-spacing: -.02em; }
.mo-empty { margin: 24px 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.mo-more { font-size: 14px; color: var(--text-muted); transition: color .15s; }
.mo-more i { font-size: 11px; margin-left: 2px; }
.mo-more:hover { color: var(--mo-accent); }
.mo-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.mo-sec-head h2 { font-size: 30px; }

/* 히어로 */
.mo-hero { display: flex; flex-wrap: wrap; background: var(--mo-cover); }
.mo-hero-l, .mo-hero-r { flex: 1 1 520px; min-width: 0; min-height: 640px; box-sizing: border-box; background: var(--mo-cover); outline: 1px solid var(--mo-cover-line); outline-offset: -1px; }
.mo-hero-l { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 88px 64px 88px var(--nc-gutter); padding-left: var(--mo-edge); color: #f3f2ee; }
.mo-hero-l h1 { font-size: 58px; line-height: 1.28; letter-spacing: -.03em; color: #f3f2ee; }
.mo-hero-l h1 .mo-pc { display: block; }
.mo-hero-act.mo-pc { display: flex; }
.mo-hero-l p { margin: 0; font-size: 18px; line-height: 1.85; color: var(--mo-cover-text); max-width: 520px; }
.mo-tag { align-self: flex-start; background: var(--mo-accent); color: #fff; padding: 7px 16px; font-family: var(--mo-grot); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mo-hero-act.mo-pc, .mo-hero-act { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; margin-top: 6px; }
.mo-btn-light { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; background: #f3f2ee; color: #141413 !important; font-size: 15px; font-weight: 700; transition: background .15s; }
.mo-btn-light:hover { background: var(--mo-accent); color: #fff !important; }
.mo-btn-light i { font-size: 13px; }
.mo-hero-stat { font-size: 14px; color: var(--mo-cover-text); }
.mo-hero-stat b { color: #f3f2ee; font-family: var(--mo-grot); font-weight: 700; }
.mo-hero-r { position: relative; overflow: hidden; }
.mo-hero-r svg { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.mo-grid { stroke: var(--mo-cover-line); }
.mo-sh-line { fill: var(--mo-cover-line); }
.mo-sh-acc { fill: var(--mo-accent); }
.mo-sh-cover { fill: var(--mo-cover); }
.mo-sh-ink { fill: var(--nc-ink); }
.mo-hero-cap { position: absolute; right: 40px; bottom: 32px; font-family: var(--mo-grot); font-size: 13px; letter-spacing: .22em; color: var(--mo-cover-text); text-transform: uppercase; }

/* 공지 띠 */
.mo-ticker { background: var(--mo-accent); color: #fff; }
.mo-ticker-in { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; padding-top: 16px; padding-bottom: 16px; font-size: 14px; font-weight: 700; }
.mo-ticker-lb { font-family: var(--mo-grot); font-size: 12px; letter-spacing: .18em; }
.mo-ticker a { color: #fff; }
.mo-ticker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mo-ticker-sep { opacity: .55; }

/* 밴드 공통 */
.mo-band { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.mo-rank .mo-wrap { padding-top: 56px; padding-bottom: 64px; }
.mo-rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 2px solid var(--text-main); }
.mo-rk { display: flex !important; flex-direction: column; gap: 16px; padding: 28px 28px 8px 0; border-bottom: 1px solid var(--border); color: var(--text-main); }
.mo-rk-n { font-family: var(--mo-grot); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--text-main); }
.mo-rk-n.is-top { color: var(--mo-accent); }
.mo-rk-t { font-size: 16px; line-height: 1.6; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.mo-rk-m { font-size: 12px; color: var(--text-muted); padding-bottom: 20px; }
.mo-rk:hover .mo-rk-t { color: var(--mo-accent); }

/* 새 글 카드 */
.mo-picks { background: var(--mo-soft); }
.mo-picks .mo-wrap { padding-top: 72px; padding-bottom: 80px; }
.mo-picks .mo-sec-head h2 { font-size: 34px; }
.mo-pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.mo-pick { display: flex !important; flex-direction: column; gap: 18px; color: var(--text-main); }
.mo-pick-img { display: block; height: 260px; background: #e4e2da; position: relative; overflow: hidden; }
.mo-pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mo-pick:hover .mo-pick-img img { transform: scale(1.03); }
.mo-pick-img svg { display: block; width: 100%; height: 100%; }
.mo-pick-tag { font-family: var(--mo-grot); font-size: 12px; letter-spacing: .08em; color: var(--mo-accent); font-weight: 700; text-transform: uppercase; }
.mo-pick-t { font-family: var(--mo-serif); font-size: 23px; line-height: 1.5; font-weight: 700; word-break: keep-all; }
.mo-pick-by { font-size: 13px; color: var(--text-muted); }
.mo-pick:hover .mo-pick-t { color: var(--mo-accent); }

/* 게시판 2칸 */
.mo-boards { display: flex; flex-wrap: wrap; }
.mo-half { flex: 1 1 520px; min-width: 0; box-sizing: border-box; background: var(--bg-card); outline: 1px solid var(--border); outline-offset: -1px; padding: 56px 56px 40px var(--nc-gutter); }
.mo-half-l { padding-left: var(--mo-edge); }
.mo-half-r { padding-right: var(--mo-edge); }
.mo-half:only-child { padding-left: var(--mo-edge); padding-right: var(--mo-edge); }
.mo-half-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mo-half-head h2 { font-size: 26px; }
.mo-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--text-main); }
.mo-row:last-child { border-bottom: 0; }
.mo-row-t { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-row-new { display: inline-block; margin-right: 6px; padding: 0 4px; background: var(--mo-accent); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; line-height: 16px; vertical-align: 1px; }
.mo-row-c { min-width: 20px; text-align: right; font-size: 12px; font-weight: 700; color: var(--mo-accent); }
.mo-row-d { min-width: 44px; text-align: right; font-size: 12px; color: var(--text-muted); }
.mo-row:hover .mo-row-t { color: var(--mo-accent); }

/* 활동 멤버 */
.mo-members { background: var(--mo-soft); border-top: 1px solid var(--border); border-bottom: 0; }
.mo-members-in { display: flex; flex-wrap: wrap; gap: 36px 72px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.mo-members-intro { flex: 1 1 260px; }
.mo-members-intro h2 { font-size: 28px; margin-bottom: 12px; }
.mo-members-intro p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--text-muted); }
.mo-member-grid { flex: 3 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 20px; }
.mo-member { display: flex !important; align-items: center; gap: 14px; }
.mo-av { width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; }
.mo-member-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mo-member-t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-member-t small { font-size: 12px; color: var(--text-muted); }

/* ═══ §8 다크모드 ═══
   다크모드는 코어 엔진(dx-darkmode-engine.js)이 body.dark 로 처리 — 고정색이 필요한 면만 여기서 지정 */
html body.dark {
  --bg-body: #0f0f0e; --bg-header: #161615; --bg-card: #161615; --bg-topbar: #161615;
  --text-main: #f3f2ee; --text-muted: #a3a29b; --border: #2c2c29; --hover-row: #1d1d1b;
  --mo-soft: #1d1d1b; --mo-cover: #0c0c0b; --mo-cover-line: #2b2b28; --mo-cover-text: #a3a29b;
  --mo-foot-bg: #0c0c0b; --mo-foot-ink: #f3f2ee; --mo-foot-mute: #a3a29b;
  --nc-line-strong: #3c3c38;
}
html body.dark .mo-mega { background: #161615; }
html body.dark .mo-mpromo { color: #f3f2ee !important; }
html body.dark .mo-topline { background: #0c0c0b; border-bottom: 1px solid var(--border); }
html body.dark .mo-cta, html body.dark .mo-mob-cta, html body.dark .mo-tag, html body.dark .mo-row-new, html body.dark .mo-av,
html body.dark .nc-mob-ava, html body.dark .nc-mob-user-info em, html body.dark .mo-new, html body.dark .mo-ticker { color: #fff !important; }
html body.dark .mo-ticker a, html body.dark .mo-ticker-lb { color: #fff !important; }
html body.dark .mo-btn-light { background: #f3f2ee !important; color: #141413 !important; }
html body.dark .mo-btn-light:hover { background: var(--mo-accent) !important; color: #fff !important; }
html body.dark .mo-pick-img { background: #1f1f1d; }
html body.dark .mo-sh-ink { fill: #3a3a36; }
html body.dark .mo-rk-n:not(.is-top) { color: var(--text-main); }
html body.dark .mo-drop-link.is-active { color: var(--text-main); }
html body.dark .nc-btn-ink { color: #141413; }
html body.dark .nc-btn-ink:hover { color: #fff; }
html body.dark [style*="background:var(--p)"], html body.dark [style*="background: var(--p)"], html body.dark .nc-body [style*="background:var(--p)"] { color: #fff !important; }
html body.dark .mp-tab-btn[class*="bg-blue-600"], html body.dark .nc-chip-lv, html body.dark .nc-wg-rank.top { color: #fff !important; }
html body.dark #dx-fab-list { background: var(--bg-card) !important; color: var(--text-main) !important; border-color: var(--border) !important; }
html body.dark .mo-footer { background: #0c0c0b !important; color: #f3f2ee !important; border-top: 1px solid var(--border); }
html body.dark .mo-footer .mo-brand, html body.dark .mo-foot-legal a, html body.dark .mo-replay, html body.dark .mo-foot-sns a { color: #f3f2ee !important; }
html body.dark .mo-foot-copy, html body.dark .mo-foot-desc { color: #a3a29b !important; }
html body.dark .mo-replay:hover { background: #f3f2ee; color: #141413 !important; }

/* ═══ §9 반응형 ═══ */
@media (max-width: 1100px) {
  .mo-nav { gap: clamp(12px, 1.5vw, 24px); }
  .mo-textbtn.mo-hide-sm { display: none; }
}
/* 메뉴가 많아 한 줄에 안 들어가면 JS 가 단계적으로 전환한다
   1) .mo-wrap2  : 로고·버튼 줄 아래에 메뉴 줄을 따로 둔다 (풀 드롭다운 그대로 사용)
   2) .mo-crowded: 두 줄에도 안 들어가는 경우에만 모바일 메뉴(버거) */
.mo-head.mo-wrap2 .mo-head-in { flex-wrap: wrap; align-items: center; min-height: 0; gap: 0 24px; }
.mo-head.mo-wrap2 .mo-brand { order: 1; padding: 26px 0; }
.mo-head.mo-wrap2 .mo-actions { order: 2; margin-left: auto; padding: 18px 0; }
.mo-head.mo-wrap2 .mo-nav { order: 3; flex: 0 0 100%; justify-content: flex-start; align-self: auto; min-height: 58px; border-top: 1px solid var(--border); gap: clamp(18px, 2vw, 34px); }
.mo-head.mo-wrap2 .mo-nav { flex-wrap: wrap; align-content: flex-start; row-gap: 0; column-gap: clamp(16px, 1.8vw, 30px); min-height: 0; }
.mo-head.mo-wrap2 .mo-nav-item { align-self: auto; min-height: 56px; }
.mo-head.mo-wrap2 .mo-nav-link { font-size: 15px; }
.mo-head.mo-crowded .mo-nav { display: none; }
.mo-head.mo-crowded #dxMobBtn.mo-burger { display: inline-grid !important; }
.mo-head.mo-crowded .mo-head-in { gap: 12px; flex-wrap: nowrap; min-height: 80px; }
.mo-head.mo-crowded .mo-brand, .mo-head.mo-crowded .mo-actions { padding: 0; }
.mo-head.mo-crowded .mo-actions { margin-left: auto; }
@media (max-width: 960px) {
  .mo-head.mo-wrap2 .mo-brand, .mo-head.mo-wrap2 .mo-actions { padding: 0; }
  .mo-head.mo-wrap2 .mo-head-in { flex-wrap: nowrap; min-height: 80px; }
  .nc-side { top: 82px; }
  .mo-nav { display: none; }
  #dxMobBtn.mo-burger { display: inline-grid !important; }
  .mo-head-in { gap: 12px; }
  .mo-actions { margin-left: auto; }
  .mo-hide-sm { display: none !important; }
  .mo-hero-l, .mo-hero-r { min-height: 520px; }
  .mo-hero-l { padding-top: 64px; padding-bottom: 64px; padding-right: var(--nc-gutter); }
  .mo-hero-l h1 { font-size: 46px; }
  .mo-half-l, .mo-half-r { padding-left: var(--nc-gutter); padding-right: var(--nc-gutter); }
}
@media (max-width: 767px) {
  .nc-main { padding-top: 26px; padding-bottom: 60px; }
  .mo-head-in { min-height: 66px; }
  .mo-brand strong { font-size: 25px; }
  .mo-brand span { display: none; }
  .mo-iconbtn, .mo-actions .nc-iconbtn, .mo-chip { width: 40px; height: 40px; }
  .mo-chip { padding: 0; justify-content: center; }
  .mo-cta { height: 40px; padding: 0 14px; font-size: 13px; }
  .mo-hero-l, .mo-hero-r { min-height: 0; }
  .mo-hero-r { min-height: 280px; }
  .mo-hero-l { gap: 20px; padding-top: 52px; padding-bottom: 52px; }
  .mo-hero-l h1 { font-size: 36px; }
  .mo-hero-l p { font-size: 16px; }
  .mo-sec-head h2, .mo-picks .mo-sec-head h2 { font-size: 24px; }
  .mo-rank .mo-wrap, .mo-picks .mo-wrap { padding-top: 44px; padding-bottom: 48px; }
  .mo-pick-grid { grid-template-columns: 1fr; gap: 32px; }
  .mo-pick-img { height: 220px; }
  .mo-half { padding-top: 40px; padding-bottom: 28px; }
  .mo-members-in { padding-top: 44px; padding-bottom: 48px; }
  .mo-foot-in { padding-top: 40px; padding-bottom: 44px; }
}
@media (max-width: 480px) {
  .mo-cta { display: none; }
  .mo-rank-grid { grid-template-columns: 1fr; }
  .mo-rk { flex-direction: row !important; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 0 14px; }
  .mo-rk-n { font-size: 36px; }
  .mo-rk-t { flex: 1 1 calc(100% - 70px); }
  .mo-rk-m { flex-basis: 100%; padding-bottom: 0; }
  .mo-hero-cap { right: 20px; bottom: 18px; }
  .mo-member-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .mo-av { width: 46px; height: 46px; font-size: 16px; }
}

/* 다크모드: 코어 엔진이 인라인 연한 배경을 어둡게 뒤집을 때 글자가 묻히는 이니셜 아바타 보정 */
html body.dark .nc-body .nb-ava, html body.dark .nc-body .nb-ava-lg { background: #2b2b28 !important; color: #f3f2ee !important; }

/* ═══ §9 DXCMS 히어로 (데모 모달 · 카드) ═══ */
.mo-hero button.mo-btn-light { border: 0; cursor: pointer; font-family: inherit; }
.mo-btn-line { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border: 1px solid #f3f2ee; color: #f3f2ee !important; font-size: 15px; font-weight: 700; transition: background .15s, color .15s, border-color .15s; }
.mo-btn-line:hover { background: var(--mo-accent); border-color: var(--mo-accent); color: #fff !important; }
.mo-btn-line i { font-size: 13px; }
.mo-hero-l .mo-tag { align-self: flex-start; }
.mo-hcards { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 56px 56px 72px; box-sizing: border-box; }
.mo-hcards .mo-hcard { position: relative; display: flex !important; align-items: center; gap: 22px; min-height: 150px; padding: 26px 64px 26px 28px; box-sizing: border-box; text-decoration: none; transition: transform .15s; }
.mo-hcard-a { background: var(--mo-accent); color: #fff !important; }
.mo-hcard-b { background: #f3f2ee; color: #141413 !important; }
.mo-hcard:hover { transform: translateX(-6px); }
.mo-hcard-img { flex: 0 0 104px; width: 104px; height: 104px; object-fit: cover; display: block; background: rgba(0,0,0,.12); }
.mo-hcard-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mo-hcard-body small { font: 500 11px/1 var(--mo-grot); letter-spacing: .22em; opacity: .85; }
.mo-hcard-body b { font-family: var(--mo-serif, inherit); font-size: 23px; line-height: 1.35; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mo-hcard-body em { font-style: normal; font-size: 13.5px; line-height: 1.7; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mo-hcard-ar { position: absolute; right: 26px; top: 26px; font-size: 14px; }
.mo-hcard:focus-visible, .mo-btn-line:focus-visible, .mo-hero button.mo-btn-light:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mo-hcard-b:focus-visible { outline-color: var(--mo-accent); }
html body.dark .mo-hcard-a { color: #fff !important; }
html body.dark .mo-hcard-b { background: #f3f2ee; color: #141413 !important; }
html body.dark .mo-btn-line { color: #f3f2ee !important; }
html body.dark .mo-btn-line:hover { color: #fff !important; }

.mo-modal { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12,12,11,.72); }
.mo-modal[hidden] { display: none; }
.mo-modal-box { position: relative; width: 100%; max-width: 440px; padding: 40px 36px 32px; box-sizing: border-box; background: #fff; color: #141413; border-top: 4px solid var(--mo-accent); }
.mo-modal-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; background: transparent; color: #141413; font-size: 18px; cursor: pointer; }
.mo-modal-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--mo-accent); color: #fff; font-size: 18px; margin-bottom: 18px; }
.mo-modal-box h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; color: #141413; }
.mo-modal-box p { margin: 0 0 22px; font-size: 14.5px; color: #55554f; }
.mo-modal-acc { margin: 0 0 26px; border: 1px solid #deddd6; }
.mo-modal-acc > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.mo-modal-acc > div + div { border-top: 1px solid #deddd6; }
.mo-modal-acc dt { font-size: 13px; color: #55554f; }
.mo-modal-acc dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.mo-modal-acc code { font: 700 15px var(--mo-grot, monospace); color: #141413; background: #f3f2ee; padding: 5px 10px; }
.mo-modal-acc dd button { width: 34px; height: 34px; border: 1px solid #deddd6; background: #fff; color: #141413; cursor: pointer; }
.mo-modal-acc dd button.is-ok { background: var(--mo-accent); border-color: var(--mo-accent); color: #fff; }
.mo-modal-act { display: flex; gap: 10px; }
.mo-modal-close, .mo-modal-go { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; font: 700 14.5px inherit; font-family: inherit; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.mo-modal-close { border: 1px solid #141413; background: #fff; color: #141413; }
.mo-modal-go { border: 1px solid var(--mo-accent); background: var(--mo-accent); color: #fff !important; }
.mo-modal button:focus-visible, .mo-modal a:focus-visible { outline: 2px solid var(--mo-accent); outline-offset: 2px; }
html body.dark .mo-modal-box { background: #161615; color: #f3f2ee; }
html body.dark .mo-modal-box h3, html body.dark .mo-modal-x { color: #f3f2ee; }
html body.dark .mo-modal-box p, html body.dark .mo-modal-acc dt { color: #a3a29b; }
html body.dark .mo-modal-acc, html body.dark .mo-modal-acc > div + div { border-color: #2c2c29; }
html body.dark .mo-modal-acc code { background: #232321; color: #f3f2ee; }
html body.dark .mo-modal-acc dd button { background: #161615; border-color: #2c2c29; color: #f3f2ee; }
html body.dark .mo-modal-close { background: #161615; border-color: #f3f2ee; color: #f3f2ee; }
@media (max-width: 1100px) { .mo-hcards { padding: 44px 36px 60px; } }
@media (max-width: 640px) {
  .mo-hero-r { min-height: 0; }
  .mo-hcards { position: relative; inset: auto; padding: 28px var(--nc-gutter) 56px; }
  .mo-hero-r svg { height: 100%; }
  .mo-hcard { min-height: 0; padding: 20px 52px 20px 20px; gap: 16px; }
  .mo-hcard-img { flex-basis: 72px; width: 72px; height: 72px; }
  .mo-hcard-body b { font-size: 19px; }
  .mo-btn-light, .mo-btn-line { height: 48px; padding: 0 22px; }
}

/* ═══ §10 실시간 소켓 (dx-socket) — 현재 접속 · 채팅 · 쪽지 모달을 MODULAR 모양으로 ═══ */
.mo-live { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12.5px; color: var(--mo-foot-mute); letter-spacing: .04em; }
.mo-live i { width: 8px; height: 8px; background: var(--mo-accent); display: inline-block; animation: moLive 2s infinite; }
.mo-live b { color: var(--mo-foot-ink); font-family: var(--mo-grot); font-weight: 700; font-size: 14px; }
@keyframes moLive { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .mo-live i { animation: none; } }

html body #dx-chat-btn { width: 56px !important; height: 56px !important; border-radius: 0 !important; background: #141413 !important; box-shadow: none !important; border: 1px solid #6b6b64 !important; transition: background .15s, border-color .15s; }
html body #dx-chat-btn:hover { background: var(--mo-accent) !important; border-color: var(--mo-accent) !important; }
html body #dx-chat-btn:focus-visible { outline: 2px solid var(--text-main); outline-offset: 3px; }
html body #dx-chat-badge { border-radius: 0 !important; background: var(--mo-accent) !important; color: #fff !important; top: -6px !important; right: -6px !important; width: 20px !important; height: 20px !important; }
html body #dx-chat-box { border-radius: 0 !important; box-shadow: none !important; background: #161615 !important; border: 1px solid #34342f; border-top: 3px solid var(--mo-accent); }
html body #dx-chat-box > div:first-child, html body #dx-chat-box > div:last-child { background: #0f0f0e !important; border-color: #34342f !important; }
html body #dx-chat-input { min-width: 0 !important; border-radius: 0 !important; background: #161615 !important; border-color: #34342f !important; }
html body #dx-chat-input:focus { border-color: var(--mo-accent) !important; }
html body #dx-chat-box button[onclick^="dxChatSend"] { border-radius: 0 !important; white-space: nowrap; flex-shrink: 0; background: var(--mo-accent) !important; }
html body #dx-chat-box a { color: var(--mo-accent) !important; }
html body #dx-chat-box span[style*="border-radius:50%"] { border-radius: 0 !important; }
@media (max-width: 960px) { html body #dx-chat-wrap { bottom: 76px !important; } }

html body #dx-dm-recv-modal > div, html body #dx-dm-invite-modal > div { border-radius: 0 !important; box-shadow: none !important; border-top: 3px solid var(--mo-accent); }
html body #dx-dm-recv-modal button, html body #dx-dm-invite-modal button { border-radius: 0 !important; }
html body .dx-notif-toast { border-radius: 0 !important; box-shadow: none !important; }

/* ═══ §11 사이드바 탭 (인기글 · 최신글 · 최신댓글) ═══ */
.mo-tab-list { display: flex; border-bottom: 1px solid var(--border); background: var(--mo-soft); }
.mo-tab { position: relative; flex: 1 1 0; min-width: 0; height: 52px; padding: 0 6px; border: 0; background: transparent; color: var(--text-muted); font: 700 14px/1 var(--mo-serif); letter-spacing: -.02em; cursor: pointer; transition: color .15s, background .15s; }
.mo-tab + .mo-tab { border-left: 1px solid var(--border); }
.mo-tab:hover { color: var(--text-main); background: var(--hover-row, rgba(22,22,21,.04)); }
.mo-tab.is-on { background: var(--mo-accent); color: #fff; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); animation: moTabLock .42s cubic-bezier(.2,.9,.25,1.15); }
.mo-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #141413; }
.mo-tab:focus-visible { outline: 2px solid var(--mo-accent); outline-offset: -3px; z-index: 1; }
.mo-tab.is-on:focus-visible { outline-color: #fff; }
@keyframes moTabLock { 0% { transform: translateY(-5px) scaleX(.92); filter: brightness(1.5); } 60% { transform: translateY(1px) scaleX(1.02); } 100% { transform: none; filter: none; } }
.mo-tab-panel { overflow: hidden; }
.mo-tab-panel[hidden] { display: none; }
.mo-tab-panel.is-on .mo-sb-rank li { animation: moTabPiece .55s cubic-bezier(.2,.9,.25,1.1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes moTabPiece { 0% { opacity: 0; transform: translate(var(--fx, 60px), var(--fy, 0)) rotate(var(--fr, 2deg)); } 70% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.mo-sb-rank.is-cmt a::before { content: ""; counter-increment: none; width: 8px; height: 8px; margin-top: 7px; background: var(--mo-accent); grid-row: 1 / span 2; font: 0/0 a; }
.mo-sb-rank.is-cmt .mo-sb-rt { font-weight: 550; color: var(--text-main); }
.mo-sb-rank.is-cmt .mo-sb-rm { word-break: keep-all; font: 500 11.5px/1.6 inherit; font-family: inherit; letter-spacing: 0; }
html body.dark .mo-tab-list { background: #1d1d1b; }
html body.dark .mo-tab { color: #a3a29b; }
html body.dark .mo-tab:hover { color: #f3f2ee; }
html body.dark .mo-tab.is-on { background: var(--mo-accent); color: #fff; }
html body.dark .mo-tab.is-on::after { background: #0c0c0b; }
@media (prefers-reduced-motion: reduce) { .mo-tab.is-on, .mo-tab-panel.is-on .mo-sb-rank li { animation: none; } }
.mo-sb-rank.is-cmt .mo-sb-rp { margin-top: 2px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-sb-rank:not(.is-cmt) .mo-sb-rt { grid-column: 2; }
