:root { --primary:#2563eb; --border:#e2e8f0; --text:#0f172a; --muted:#64748b; --bg:#fff; }
* { box-sizing:border-box; margin:0; }
body { font-family:-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif; color:var(--text); background:var(--bg); font-size:16px; line-height:1.7; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; }
.container { max-width:1080px; margin:0 auto; padding:0 20px; }

.site-header { border-bottom:1px solid var(--border); }
.site-header .container { display:flex; align-items:center; justify-content:space-between; height:64px; }
.logo { font-weight:800; font-size:20px; }
.gnb { display:flex; gap:22px; font-size:15px; flex-wrap:wrap; }
.gnb a:hover { color:var(--primary); }

.site-main { min-height:60vh; padding:48px 0; }
.site-footer { border-top:1px solid var(--border); padding:28px 0; color:var(--muted); font-size:13px; }

.page-title { font-size:30px; margin-bottom:10px; }
.page-desc { color:var(--muted); margin-bottom:32px; }

/* 목록 공통 */
.list-tools { display:flex; justify-content:space-between; gap:12px; margin-bottom:24px; flex-wrap:wrap; }
.list-tools form { display:flex; gap:8px; }
.list-tools input { padding:9px 12px; border:1px solid var(--border); border-radius:8px; font-size:14px; }
.list-tools button { padding:9px 16px; border:0; border-radius:8px; background:var(--primary); color:#fff; cursor:pointer; }
.pagination { display:flex; gap:6px; justify-content:center; margin-top:40px; }
.pagination a { padding:7px 13px; border:1px solid var(--border); border-radius:8px; font-size:14px; }
.pagination a.on { background:var(--primary); border-color:var(--primary); color:#fff; }
.empty-list { text-align:center; color:var(--muted); padding:80px 0; }
.badge-notice { display:inline-block; background:#e0e7ff; color:var(--primary); font-size:12px; font-weight:700; padding:2px 8px; border-radius:12px; margin-right:6px; vertical-align:2px; }

/* 일반 목록형 */
.skin-list { border-top:2px solid var(--text); }
.skin-list .item { display:flex; gap:16px; align-items:baseline; padding:16px 4px; border-bottom:1px solid var(--border); }
.skin-list .item .title { flex:1; font-size:16px; }
.skin-list .item .title:hover { color:var(--primary); }
.skin-list .item .date { color:var(--muted); font-size:13px; flex-shrink:0; }

/* 웹진형 */
.skin-webzine .item { display:flex; gap:24px; padding:26px 0; border-bottom:1px solid var(--border); }
.skin-webzine .thumb { width:260px; aspect-ratio:16/9; background:#f1f5f9; border-radius:10px; overflow:hidden; flex-shrink:0; }
.skin-webzine .thumb img { width:100%; height:100%; object-fit:cover; }
.skin-webzine h2 { font-size:20px; margin-bottom:8px; }
.skin-webzine h2 a:hover { color:var(--primary); }
.skin-webzine .excerpt { color:var(--muted); font-size:14px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.skin-webzine .meta-line { margin-top:12px; font-size:13px; color:var(--muted); }

/* 갤러리형 / 포트폴리오형 / 유튜브형 그리드 */
.skin-grid { display:grid; gap:24px; grid-template-columns:repeat(var(--cols-pc,3),1fr); }
.skin-grid .gcard .thumb { aspect-ratio:var(--thumb-ratio,16/9); background:#f1f5f9; border-radius:10px; overflow:hidden; position:relative; }
.skin-grid .gcard .thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.skin-grid .gcard:hover .thumb img { transform:scale(1.04); }
.skin-grid .gcard h2 { font-size:16px; margin-top:12px; }
.skin-grid .gcard .sub { font-size:13px; color:var(--muted); margin-top:4px; }
@media (max-width:900px){ .skin-grid{grid-template-columns:repeat(var(--cols-tablet,2),1fr);} .skin-webzine .thumb{width:180px;} }
@media (max-width:560px){ .skin-grid{grid-template-columns:repeat(var(--cols-mobile,1),1fr);} .skin-webzine .item{flex-direction:column;} .skin-webzine .thumb{width:100%;} }

/* 보도자료형 */
.skin-press { border-top:2px solid var(--text); }
.skin-press .item { display:flex; gap:14px; align-items:baseline; padding:18px 4px; border-bottom:1px solid var(--border); }
.skin-press .press-name { color:var(--primary); font-weight:700; font-size:13px; flex-shrink:0; width:110px; }
.skin-press .title { flex:1; }
.skin-press .title:hover { color:var(--primary); }
.skin-press .ext { font-size:12px; color:var(--muted); }
.skin-press .date { color:var(--muted); font-size:13px; flex-shrink:0; }

/* 유튜브형 */
.yt-play { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.yt-play::after { content:""; width:56px; height:56px; background:rgba(0,0,0,.65) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') center/26px no-repeat; border-radius:50%; transition:transform .2s; }
.gcard:hover .yt-play::after { transform:scale(1.1); }
.yt-modal { position:fixed; inset:0; background:rgba(0,0,0,.85); display:none; align-items:center; justify-content:center; z-index:1000; padding:20px; }
.yt-modal.open { display:flex; }
.yt-modal .frame { width:min(960px,100%); aspect-ratio:16/9; }
.yt-modal iframe { width:100%; height:100%; border:0; }
.yt-modal .close { position:absolute; top:18px; right:22px; color:#fff; font-size:34px; background:none; border:0; cursor:pointer; }

/* 상세 공통 */
.post-detail { max-width:820px; margin:0 auto; }
.post-detail .head { border-bottom:1px solid var(--border); padding-bottom:24px; margin-bottom:32px; }
.post-detail h1 { font-size:32px; line-height:1.35; }
.post-detail .meta-line { margin-top:14px; color:var(--muted); font-size:14px; display:flex; gap:14px; flex-wrap:wrap; }
.post-content { font-size:16.5px; }
.post-content h2 { margin:36px 0 14px; font-size:24px; }
.post-content h3 { margin:28px 0 12px; font-size:19px; }
.post-content p { margin:14px 0; }
.post-content img { border-radius:10px; margin:18px 0; }
.post-tags { margin-top:36px; display:flex; gap:8px; flex-wrap:wrap; }
.post-tags a { background:#f1f5f9; color:var(--muted); font-size:13px; padding:5px 12px; border-radius:16px; }
.post-nav { margin-top:40px; border-top:1px solid var(--border); }
.post-nav a { display:flex; gap:12px; padding:14px 4px; border-bottom:1px solid var(--border); font-size:14px; }
.post-nav .dir { color:var(--muted); flex-shrink:0; }
.btn-list { display:inline-block; margin-top:28px; padding:10px 22px; border:1px solid var(--border); border-radius:8px; font-size:14px; }

/* 포트폴리오 상세 */
.pf-info { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; background:#f8fafc; border:1px solid var(--border); border-radius:12px; padding:22px; margin-bottom:32px; }
.pf-info .k { font-size:12px; color:var(--muted); }
.pf-info .v { font-weight:600; margin-top:3px; font-size:14px; }
.pf-section { margin:36px 0; }
.pf-section h2 { font-size:20px; margin-bottom:12px; padding-left:12px; border-left:4px solid var(--primary); }
.pf-cta { text-align:center; background:#f8fafc; border-radius:12px; padding:36px 20px; margin-top:44px; }
.pf-cta .btn-visit { display:inline-block; margin-top:14px; padding:12px 28px; background:var(--primary); color:#fff; border-radius:8px; font-weight:600; }

/* 블로그 상세 */
.blog-keypoints { background:#f0f6ff; border:1px solid #dbeafe; border-radius:12px; padding:20px 24px; margin-bottom:28px; }
.blog-keypoints h2 { font-size:15px; color:var(--primary); margin-bottom:10px; }
.blog-keypoints li { margin:6px 0 6px 18px; font-size:15px; }
.blog-toc { background:#f8fafc; border:1px solid var(--border); border-radius:12px; padding:18px 22px; margin-bottom:28px; font-size:14px; }
.blog-toc strong { display:block; margin-bottom:8px; }
.blog-toc a { display:block; padding:3px 0; color:var(--muted); }
.blog-toc a:hover { color:var(--primary); }

.lz-term { text-decoration:underline dotted var(--primary); text-underline-offset:3px; cursor:help; }

/* 포트폴리오 캐러셀 + Lightbox (12.3) */
.pf-carousel-wrap { position:relative; margin:28px 0; }
.pf-carousel { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; border-radius:12px; }
.pf-carousel::-webkit-scrollbar { display:none; }
.pf-carousel img { height:320px; border-radius:12px; scroll-snap-align:start; cursor:zoom-in; flex-shrink:0; max-width:none; }
.pf-nav { position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; border-radius:50%; border:0; background:rgba(15,23,42,.55); color:#fff; font-size:24px; cursor:pointer; z-index:5; }
.pf-nav:hover { background:rgba(15,23,42,.8); }
.pf-carousel-wrap .prev { left:10px; } .pf-carousel-wrap .next { right:10px; }
.pf-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.9); display:none; align-items:center; justify-content:center; z-index:1000; padding:24px; }
.pf-lightbox.open { display:flex; }
.pf-lightbox img { max-width:92vw; max-height:88vh; border-radius:8px; }
.pf-lightbox .close { position:absolute; top:16px; right:22px; background:none; border:0; color:#fff; font-size:36px; cursor:pointer; z-index:6; }
.pf-lightbox .prev { left:16px; } .pf-lightbox .next { right:16px; }
@media (max-width:560px){ .pf-carousel img { height:200px; } }

/* 회원 */
.member-form label { display:block; font-size:13px; font-weight:600; margin:14px 0 6px; }
.member-form input { width:100%; padding:11px 13px; border:1px solid var(--border); border-radius:8px; font-size:15px; }
.member-btn { width:100%; margin-top:22px; padding:13px; background:var(--primary); color:#fff; border:0; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; }
.member-error { background:#fef2f2; border:1px solid #fecaca; color:#dc2626; border-radius:8px; padding:11px 14px; font-size:13px; margin-bottom:10px; }
.member-ok { background:#dcfce7; border:1px solid #bbf7d0; color:#166534; border-radius:8px; padding:11px 14px; font-size:13px; margin-bottom:10px; }
.member-alt { margin-top:18px; font-size:14px; color:var(--muted); text-align:center; }
.member-alt a { color:var(--primary); }
.member-check { display:flex; gap:8px; align-items:center; font-size:13px; margin-top:14px; font-weight:400 !important; }
.member-check input { width:auto !important; }
.member-info div { display:flex; justify-content:space-between; padding:12px 4px; border-bottom:1px solid var(--border); font-size:14px; }
.member-info span { color:var(--muted); }

/* 댓글 */
.comments { margin-top:48px; border-top:1px solid var(--border); padding-top:28px; }
.comments h2 { font-size:18px; margin-bottom:16px; }
.comment { padding:14px 0; border-bottom:1px solid var(--border); }
.comment-head { display:flex; gap:10px; align-items:baseline; font-size:13px; }
.comment-head span { color:var(--muted); font-size:12px; }
.comment p { margin-top:6px; font-size:14.5px; }
.comment-form { margin-top:20px; }
.comment-guest { display:flex; gap:8px; margin-bottom:8px; }
.comment-guest input { flex:1; padding:9px 12px; border:1px solid var(--border); border-radius:8px; font-size:14px; }
.comment-form textarea { width:100%; padding:11px 13px; border:1px solid var(--border); border-radius:8px; font-size:14px; font-family:inherit; }
.comment-actions { display:flex; justify-content:space-between; align-items:center; margin-top:8px; }
.comment-actions span { font-size:13px; color:#dc2626; }
.comment-actions button { padding:9px 22px; background:var(--primary); color:#fff; border:0; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; }

.err-404 { text-align:center; padding:80px 0; }
.err-404 h1 { font-size:64px; color:var(--border); }
.err-404 p { color:var(--muted); margin:12px 0 24px; }
