/* PBaaS 블로그 스타일 */
:root {
  --brand: #2F46D6;
  --brand-dark: #2338C4;
  --brand-soft: #EDF1FF;
  --accent: #3FD6A5;
  --ink: #1B2033;
  --ink-2: #4A5170;
  --muted: #8B90A6;
  --line: #E4E7F0;
  --bg: #FFFFFF;
  --bg-2: #F6F7FC;
  --radius: 14px;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: #C9CEDD; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger { color: #D33A3A; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* 헤더 */
#site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.logo b { font-weight: 500; color: var(--ink-2); }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a.active { color: var(--brand); font-weight: 700; }
.nav-sep { width: 1px; height: 16px; background: var(--line); align-self: center; margin: 0 6px; flex: none; }

.local-notice { margin-top: 16px; padding: 10px 24px; font-size: 13px; color: #7A5B00; }
.local-notice { background: #FFF8DB; border-radius: 10px; max-width: calc(var(--wrap) - 48px); }

/* 썸네일 */
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: flex; flex-direction: column; justify-content: flex-end; padding: 8%; color: #fff; }
.thumb-ph .ph-cat { font-size: 12px; font-weight: 700; opacity: .85; margin-bottom: 6px; letter-spacing: .02em; }
.thumb-ph .ph-title { font-size: clamp(14px, 2vw, 22px); font-weight: 800; line-height: 1.35; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.thumb-sm .ph-title { font-size: 14px; }
.thumb-sm .ph-cat { font-size: 11px; }
.cat-news     { background: linear-gradient(135deg, #2F46D6, #6A7BFF); }
.cat-brand    { background: linear-gradient(135deg, #1B2033, #4A5170); }
.cat-event    { background: linear-gradient(135deg, #D6A400, #FFD449); color: #1B2033; }
/* 모리아AI 카테고리 */
.cat-field    { background: linear-gradient(135deg, #0F1B3D, #3563F0); }
.cat-service  { background: linear-gradient(135deg, #3B82F6, #8B5CF6); }
.cat-guide    { background: linear-gradient(135deg, #0E7C86, #22C1C3); }
.cat-insight  { background: linear-gradient(135deg, #1B2033, #6D28D9); }
.logo-img { height: 26px; width: auto; display: block; }
.logo-img[src*="/selb/logo"] { height: 32px; }
.logo-mark-img { width: 30px; height: 30px; object-fit: contain; display: block; flex: none; }

.cat-label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); }
.meta { font-size: 13px; color: var(--muted); }

/* 메인: 인트로 */
.intro { padding: 48px 0 8px; }
.intro h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.03em; line-height: 1.3; }
.intro p { margin: 0; color: var(--ink-2); font-size: 16px; }

.section-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin: 40px 0 16px; }

/* 추천글 */
.featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; }
.feat-main h2 { font-size: 26px; line-height: 1.35; letter-spacing: -.03em; margin: 18px 0 8px; }
.feat-main p { color: var(--ink-2); margin: 0 0 10px; }
.feat-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; align-content: start; }
.feat-side h3 { font-size: 16px; line-height: 1.4; margin: 10px 0 4px; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 추천글 6~8번째: 아래 한 줄 */
.feat-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 18px; margin-top: 28px; }
.feat-more h3 { font-size: 16px; line-height: 1.4; margin: 10px 0 4px; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-main:hover h2, .feat-side a:hover h3, .feat-more a:hover h3, .list-item:hover h3, .related a:hover h3 { color: var(--brand); }

/* 최신 글 목록 */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; margin-bottom: 72px; }
.list { border-top: 1px solid var(--ink); }
.list-item { display: grid; grid-template-columns: 1fr 240px; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list-item h3 { font-size: 20px; line-height: 1.4; margin: 6px 0 6px; letter-spacing: -.02em; }
.list-item p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { padding: 64px 0; text-align: center; color: var(--muted); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; padding: 0 10px; }
.pagination a:hover { background: var(--bg-2); }
.pagination .current { background: var(--ink); color: #fff; font-weight: 700; }

/* 사이드 */
.side { display: flex; flex-direction: column; gap: 20px; }
.side-cta { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 28px 24px; position: sticky; top: 92px; }
.side-cta .eyebrow { font-size: 12px; font-weight: 700; opacity: .8; letter-spacing: .06em; }
.side-cta h4 { margin: 8px 0 8px; font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.side-cta p { margin: 0 0 18px; font-size: 14px; opacity: .88; }
.side-cta .btn { background: #fff; color: var(--brand); border-color: #fff; width: 100%; }

.cat-head { padding: 48px 0 8px; }
.cat-head h1 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.cat-head p { margin: 6px 0 0; color: var(--muted); }

/* 상세 */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.article-head h1 { font-size: 36px; line-height: 1.35; letter-spacing: -.03em; margin: 12px 0 18px; }
.article-summary { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--ink-2); font-size: 17px; }
.article-meta { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-hero { margin: 32px 0; }
.article-hero .thumb { border-radius: 16px; }

.prose { font-size: 17px; line-height: 1.85; color: #262B3F; }
.prose h2 { font-size: 25px; line-height: 1.4; letter-spacing: -.02em; margin: 52px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 20px; margin: 36px 0 12px; letter-spacing: -.02em; }
.prose p { margin: 0 0 20px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin: 28px auto 8px; }
.prose img + em, .prose p > em:only-child { display: block; text-align: center; font-size: 14px; color: var(--muted); font-style: normal; }
.prose blockquote { margin: 24px 0; padding: 18px 22px; background: var(--brand-soft); border-radius: 12px; color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin-bottom: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-2); }
/* 글 관리 에디터(SunEditor)로 쓴 본문: 사진·영상·정렬 */
.prose::after { content: ''; display: table; clear: both; }
.prose .se-component { margin: 28px 0; }
.prose .se-component figure { margin: 0 auto; max-width: 100%; position: relative; }
.prose .se-component img { margin: 0 auto; max-width: 100%; height: auto !important; }
.prose .__se__float-left { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.prose .__se__float-right { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.prose .__se__float-none, .prose .__se__float-center { clear: both; }
.prose .se-video-container figure { width: 100% !important; height: auto !important; padding-bottom: 0 !important; }
.prose .se-video-container iframe, .prose iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.prose .yt-embed { margin: 24px 0; }
.prose iframe[data-short] { aspect-ratio: 9 / 16; max-width: 360px !important; margin: 0 auto; }
.prose video { display: block; width: 100% !important; height: auto !important; border-radius: 12px; background: #000; }
.prose figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; padding: 0 !important; background: none !important; }
.prose blockquote > *:last-child { margin-bottom: 0; }

.post-cta { margin: 48px 0 32px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.post-cta strong { display: block; font-size: 19px; letter-spacing: -.02em; margin-bottom: 4px; }
.post-cta span { font-size: 14px; opacity: .75; }
.post-cta .btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
/* 모리아AI: 박람회·행사 도입 상담 안내 (브랜드 그라데이션) */
.post-cta.cta-moriah { background: linear-gradient(135deg, #1E3A8A 0%, #3563F0 55%, #7C3AED 100%); padding: 32px; }
.post-cta.cta-moriah strong { font-size: 21px; }
.post-cta.cta-moriah span { opacity: .88; display: block; max-width: 560px; line-height: 1.6; }
.post-cta .cta-points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 0; padding: 0; }
.post-cta .cta-points li { font-size: 13px; font-weight: 600; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 4px 12px; }
.post-cta .cta-points li::before { content: "✓ "; }
.post-cta.cta-moriah .btn { background: #fff; border-color: #fff; color: #2A4FD0; font-weight: 800; height: 48px; padding: 0 22px; flex: none; }
.post-cta.cta-moriah .btn:hover { background: #EEF2FF; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tags span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }

.author-box { display: flex; gap: 16px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-box .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.author-box strong { display: block; }
.author-box span { font-size: 14px; color: var(--muted); }
.author-box .btn { margin-left: auto; }

.copyright { font-size: 13px; color: var(--muted); background: var(--bg-2); border-radius: 10px; padding: 14px 18px; margin: 24px 0; }

.related-wrap { background: var(--bg-2); padding: 56px 0 72px; margin-top: 48px; }
.related-wrap h2 { font-size: 22px; margin: 0 0 24px; letter-spacing: -.02em; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related h3 { font-size: 17px; line-height: 1.4; margin: 12px 0 4px; letter-spacing: -.02em; }
.related p { font-size: 14px; color: var(--ink-2); margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 푸터 */
#site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; background: #fff; }
.footer-inner { display: block; }
.footer-tag { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* 반응형 */
@media (max-width: 960px) {
  .featured { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .side-cta { position: static; }
  .header-inner { gap: 20px; }
  .nav a { padding: 8px 10px; }
}
/* 헤더 2줄: 로고 + 시작 버튼 / 메뉴 전체 */
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 10px; }
  .logo { height: 36px; }
  .header-cta { margin-left: auto; height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
  .nav { order: 2; flex: 0 0 calc(100% + 16px); margin: 4px -8px 0; padding-bottom: 6px; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .nav-sep { margin: 0 2px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  /* 로고 '블로그'도 보이게, 글자만 조금 줄인다 (헤더가 두 줄이라 버튼과 안 겹침) */
  .logo { font-size: 16px; gap: 6px; }
  .logo .logo-mark, .logo .logo-mark-img { width: 28px; height: 28px; font-size: 14px; }
  .logo-img { height: 22px; }
  .logo-img[src*="/selb/logo"] { height: 27px; }
  .intro h1, .cat-head h1 { font-size: 25px; }
  .feat-main h2 { font-size: 21px; }
  .feat-side { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .feat-more { grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 16px; }
  .list-item { grid-template-columns: 1fr 112px; gap: 14px; padding: 20px 0; }
  .list-item h3 { font-size: 16px; }
  .list-item p { display: none; }
  .list-item .thumb { border-radius: 10px; }
  .list-item .thumb-ph { padding: 10px; }
  .list-item .thumb-ph .ph-title { font-size: 11px; -webkit-line-clamp: 2; }
  .list-item .thumb-ph .ph-cat { display: none; }
  .article { padding: 36px 16px 16px; }
  .article-head h1 { font-size: 26px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 21px; }
  .post-cta { flex-direction: column; align-items: flex-start; }
  .related { grid-template-columns: 1fr; }
}

/* 조회수: 눈 아이콘 + 숫자 */
.meta .views { display: inline-flex; align-items: center; gap: 3px; vertical-align: -2px; }
.meta .views .eye { opacity: .75; }

/* 현장 스케치: 사진 카드 격자 */
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; margin: 24px 0 8px; }
.sk-grid.sk-home { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 0; }
.sk-card { display: block; color: inherit; text-decoration: none; }
.sk-img { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.sk-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease; }
.sk-card:hover .sk-img img { transform: scale(1.04); }
.sk-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(15, 18, 28, .62); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.sk-body { padding: 12px 2px 0; }
.sk-date { font-size: 13px; font-weight: 700; color: var(--brand); }
.sk-card h3 { margin: 4px 0 8px; font-size: 17px; line-height: 1.4; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-card:hover h3 { color: var(--brand); }
.sk-home .sk-card h3 { font-size: 15px; }
.sk-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sk-tags span { font-size: 12px; color: var(--ink-2); background: var(--bg-2); padding: 3px 8px; border-radius: 6px; }
.sk-home-title { display: flex; justify-content: space-between; align-items: baseline; }
.sk-home-title a { font-size: 13px; letter-spacing: 0; font-weight: 700; color: var(--brand); text-decoration: none; }

/* 현장 스케치 글: 정보 + 사진 갤러리 */
.prose .sketch-info { list-style: none; padding: 16px 20px; margin: 24px 0; background: var(--bg-2); border-radius: 12px; display: grid; gap: 6px; }
.prose .sketch-info li { margin: 0; padding: 0; font-size: 15px; }
.prose .sketch-info li::before { content: none; }
.prose .sketch-info b { display: inline-block; min-width: 88px; color: var(--muted); font-weight: 600; }
.prose .sketch-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; }
.prose .sketch-gallery a { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.prose .sketch-gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .3s ease; }
.prose .sketch-gallery a:hover img { transform: scale(1.05); }
.prose .sketch-gallery a:first-child { grid-column: span 2; grid-row: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 10, 16, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: 14px; }

@media (max-width: 960px) {
  .sk-grid { grid-template-columns: repeat(2, 1fr); }
  .sk-grid.sk-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sk-grid { gap: 20px 12px; }
  .sk-card h3, .sk-home .sk-card h3 { font-size: 14px; }
  .sk-tags span:nth-child(n+3) { display: none; }
  .sk-img { border-radius: 10px; }
  .prose .sketch-gallery { gap: 4px; }
  .prose .sketch-gallery a { border-radius: 4px; }
  .lb-prev, .lb-next { display: none; }
}
.prose .sketch-gallery a:first-child img { object-position: top; }

/* 영상 게시판(이용 방법): 영상 카드 격자 + 크게 보기 창 */
.vd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin: 24px 0 8px; }
.vd-grid.vd-home { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 0; }
.vd-card { display: block; color: inherit; text-decoration: none; }
.vd-img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #121A3D; }
.vd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vd-card:hover .vd-img img { transform: scale(1.04); }
.vd-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.vd-play::after { content: ''; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--brand); }
.vd-card:hover .vd-play { transform: scale(1.08); }
.vd-dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(15, 18, 28, .72); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vd-body { padding: 12px 2px 0; }
.vd-no { font-size: 13px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.vd-card h3 { margin: 3px 0 6px; font-size: 17px; line-height: 1.4; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-card:hover h3 { color: var(--brand); }
.vd-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-home .vd-card h3 { font-size: 15px; }
.vd-home .vd-card p { display: none; }
.vd-home .vd-play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.vd-home .vd-play::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }

.vd-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 10, 16, .88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.vd-modal[hidden] { display: none; }
.vd-dialog { position: relative; width: min(960px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 16px; }
.vd-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vd-player video, .vd-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vd-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.vd-info { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px 18px; }
.vd-txt { min-width: 0; }
.vd-txt h2 { margin: 2px 0 4px; font-size: 19px; letter-spacing: -.02em; }
.vd-txt p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.vd-nav { display: flex; gap: 6px; flex: none; }
.vd-nav [hidden] { display: none; }
.vd-next.pulse { animation: vdPulse 1.2s ease-in-out infinite; }
@keyframes vdPulse { 50% { box-shadow: 0 0 0 6px rgba(47, 70, 214, .25); } }

.article-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; background: #000; }
.article-video video, .article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 960px) {
  .vd-grid, .vd-grid.vd-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .vd-grid { grid-template-columns: 1fr; gap: 24px; }
  .vd-grid.vd-home { gap: 16px 12px; }
  .vd-home .vd-card h3 { font-size: 14px; }
  .vd-modal { padding: 0; align-items: stretch; }
  .vd-dialog { border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: #000; }
  .vd-info { flex-direction: column; align-items: stretch; background: #fff; }
  .vd-nav { justify-content: space-between; }
  .vd-nav .btn { flex: 1; justify-content: center; }
}

/* ---------- 셀브 친구들(캐릭터) 디자인 조각: SelB 블로그만 (SITE.friends) ---------- */
.fr-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--fc); background: var(--fs); border-radius: 999px; padding: 2px 9px; }
.fr-tag small { font-size: 10px; letter-spacing: .04em; opacity: .8; }
/* 썸네일 없는 글: 카테고리 담당 친구가 오른쪽 위에 */
.thumb-ph { position: relative; }
.thumb-ph .ph-friend { position: absolute; right: 6%; top: 8%; width: 30%; max-width: 120px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.thumb-sm .ph-friend { width: 34%; }
/* 홈 첫머리: 일곱 친구 */
.intro.has-friends { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.intro-friends { display: flex; flex: none; }
.intro-friends img { width: 64px; height: 64px; object-fit: contain; margin-left: -10px; transition: transform .25s ease; transform: translateY(calc(var(--i) * 0px)); }
.intro-friends img:nth-child(odd) { transform: translateY(-6px); }
.intro-friends:hover img { transform: translateY(-10px); }
.intro-friends img:hover { transform: translateY(-16px) scale(1.08) !important; }
/* 카테고리 머리: 담당 친구 */
.cat-head:has(.cat-friend) { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: end; }
.cat-head .cat-friend { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; background: var(--fs); border-radius: 16px; padding: 8px 16px 8px 8px; }
.cat-head .cat-friend img { width: 58px; height: 58px; object-fit: contain; }
.cat-head .cat-friend span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.cat-head .cat-friend b { color: var(--fc); font-size: 15px; }
.cat-head .cat-friend small { display: block; font-size: 12px; color: var(--muted); }
.cat-head:has(.cat-friend) h1, .cat-head:has(.cat-friend) p { grid-column: 1; }
/* 사이드: 셀브 친구들 카드 */
.side-friends { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 22px; background: linear-gradient(180deg, #F3F6FF 0%, #fff 70%); }
.side-friends .sf-pics { display: flex; justify-content: center; margin: 0 0 12px; }
.side-friends .sf-pics img { width: 44px; height: 44px; object-fit: contain; margin: 0 -4px; transition: transform .2s ease; }
.side-friends:hover .sf-pics img:nth-child(odd) { transform: translateY(-4px); }
.side-friends .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--brand); }
.side-friends h4 { margin: 6px 0 6px; font-size: 18px; line-height: 1.4; letter-spacing: -.02em; }
.side-friends p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.side-friends .sf-more { font-size: 13px; font-weight: 700; color: var(--brand); }
/* 빈 화면 */
.empty .empty-friend { width: 88px; height: 88px; object-fit: contain; margin: 0 auto 10px; }
/* 글 끝 안내 상자: 뉴비가 인사 */
.post-cta.has-friend { justify-content: flex-start; }
.post-cta.has-friend > div { flex: 1; }
.post-cta .cta-friend { width: 72px; height: 72px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
/* 글쓴이: 셀비 */
.author-box .avatar-friend { background: var(--fs, var(--brand-soft)); padding: 4px; }
.author-box .avatar-friend img { width: 100%; height: 100%; object-fit: contain; }
/* 바닥글: 일곱 친구 줄 */
.footer-inner:has(.footer-friends) { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-friends { display: flex; align-items: center; gap: 2px; }
.footer-friends img { width: 34px; height: 34px; object-fit: contain; transition: transform .2s ease; }
.footer-friends img:hover { transform: translateY(-4px); }
.footer-friends span { font-size: 13px; color: var(--muted); margin-left: 8px; }
@media (max-width: 760px) {
  .intro.has-friends { flex-direction: column; align-items: flex-start; }
  .intro-friends img { width: 48px; height: 48px; margin-left: -8px; }
  .cat-head:has(.cat-friend) { grid-template-columns: 1fr; }
  .cat-head .cat-friend { grid-column: 1; grid-row: auto; justify-self: start; margin-bottom: 12px; }
  .post-cta .cta-friend { width: 56px; height: 56px; }
  .footer-friends span { display: none; }
}

/* ---------- 카테고리 화면 위 영상 칸 (브랜드 → 셀브 친구들 애니메이션) ---------- */
.anim-strip { margin: 28px 0 8px; padding: 24px; border-radius: 20px; background: linear-gradient(135deg, #EEF2FF 0%, #F7F3FF 55%, #FFF4EC 100%); }
.as-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.as-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--brand); }
.as-head h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.02em; }
.as-all { font-size: 14px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.as-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.as-main, .as-item { color: inherit; text-decoration: none; }
.as-main .vd-img { border-radius: 16px; }
.as-main:hover .vd-img img, .as-item:hover .vd-img img { transform: scale(1.04); }
.as-main:hover .vd-play, .as-item:hover .vd-play { transform: scale(1.08); }
.as-txt { padding: 12px 2px 0; }
.as-new { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--brand); border-radius: 6px; padding: 2px 7px; }
.as-txt h3 { margin: 8px 0 4px; font-size: 19px; line-height: 1.4; letter-spacing: -.02em; }
.as-txt p { margin: 0; font-size: 14px; color: var(--ink-2); }
.as-main:hover h3, .as-item:hover h4 { color: var(--brand); }
.as-side { display: flex; flex-direction: column; gap: 12px; }
.as-item { display: grid; grid-template-columns: 46% 1fr; gap: 12px; align-items: center; background: rgba(255,255,255,.72); border-radius: 14px; padding: 8px; }
.as-item .vd-img { border-radius: 10px; }
.as-item .vd-play { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.as-item .vd-play::after { left: 13px; top: 10px; border-width: 7px 0 7px 11px; }
.as-item h4 { margin: 0 0 2px; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-item p { margin: 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; color: #fff; background: #FF2D55; border-radius: 6px; padding: 1px 6px; }
.anim-strip.empty-strip .as-soon { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.75); border: 1.5px dashed #C9D2F5; border-radius: 16px; padding: 14px 18px; }
.as-soon img { width: 150px; aspect-ratio: 1000 / 747; object-fit: cover; border-radius: 12px; flex: none; }
.as-soon b { display: block; font-size: 16px; margin-bottom: 2px; }
.as-soon span { font-size: 14px; color: var(--ink-2); }
.cat-back { display: inline-block; margin-top: 28px; font-size: 14px; font-weight: 700; color: var(--brand); }
.cat-back + .cat-head { padding-top: 10px; }
/* 세로 영상(쇼츠) 재생 창 */
.vd-modal.vertical .vd-dialog { width: min(420px, 100%); }
.vd-modal.vertical .vd-player { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
@media (max-width: 760px) {
  .anim-strip { padding: 16px; margin-top: 20px; border-radius: 16px; }
  .as-head h2 { font-size: 19px; }
  .as-body { grid-template-columns: 1fr; }
  .as-side { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 4px; }
  .as-item { flex: 0 0 72%; grid-template-columns: 1fr; scroll-snap-align: start; }
  .as-soon img { width: 96px; }
  .vd-modal.vertical .vd-player { max-height: none; height: 100%; aspect-ratio: auto; }
}

/* 2026-12-04 SelB: selb.ai 디자인 맞춤 (알약 모양 메뉴·단추, 인트로 위 한 줄, 강조 글자) */
.intro-eyebrow { margin-bottom: 10px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.intro h1 .hl { color: var(--brand); }
.pill-nav .nav { flex: 0 1 auto; margin: 0 auto; padding: 4px; background: #F1F3F8; border-radius: 999px; }
.pill-nav .nav a { border-radius: 999px; padding: 7px 14px; }
.pill-nav .nav a:hover { background: #fff; }
.pill-nav .nav a.active { background: #fff; box-shadow: 0 1px 3px rgba(14,26,58,.08); }
.pill-nav .nav-sep { background: #D9DEEA; }
.pill-nav .btn-primary { border-radius: 999px; }
@media (min-width: 761px) { .pill-nav .header-cta { padding: 0 20px; height: 42px; } }
@media (max-width: 760px) { .pill-nav .nav { flex: 0 0 100%; margin: 4px 0 8px; } .pill-nav .header-cta { border-radius: 999px; } .intro-eyebrow { font-size: 14px; } }

/* 2026-12-04 셀브 친구들 더 쓰기 */
.fr-dot { display: inline-block; width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 5px; }
.fr-hero { position: relative; margin-top: 24px; min-height: 380px; border-radius: 24px; overflow: hidden; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(14,40,120,.55) 0%, rgba(14,40,120,.25) 38%, rgba(14,40,120,0) 60%), var(--hero) 72% 85% / cover no-repeat, #3E8FE0; }
.fr-hero-text { padding: 44px 48px; max-width: 560px; color: #fff; }
.fr-hero .intro-eyebrow { color: rgba(255,255,255,.92); }
.fr-hero h1 { margin: 0 0 12px; font-size: 38px; line-height: 1.28; letter-spacing: -.03em; text-shadow: 0 2px 12px rgba(10,30,90,.25); }
.fr-hero h1 .hl { color: #FFD84D; }
.fr-hero p { margin: 0 0 24px; font-size: 16px; color: rgba(255,255,255,.95); }
.fr-hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fr-hero-btns .btn { height: 44px; padding: 0 20px; border-radius: 999px; }
.fr-hero-btns .btn:not(.btn-primary) { background: rgba(255,255,255,.92); border-color: transparent; }
.fr-hero + .section-title { margin-top: 40px; }
@media (max-width: 760px) {
  .fr-hero { min-height: 0; align-items: flex-start; padding-bottom: 190px; border-radius: 18px; margin-top: 16px;
    background: linear-gradient(180deg, rgba(14,40,120,.45) 0%, rgba(14,40,120,.1) 50%, rgba(14,40,120,0) 62%), var(--hero) 86% 100% / auto 340px no-repeat, linear-gradient(180deg, #1F7FDA, #2C8FE4 60%, #7FBDEB); }
  .fr-hero-text { padding: 28px 22px 0; }
  .fr-hero h1 { font-size: 27px; }
  .fr-hero p { font-size: 14px; margin-bottom: 18px; }
}
.post-friend { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--fs); max-width: 560px; }
.post-friend img { width: 52px; height: 52px; object-fit: contain; flex: none; transition: transform .25s; }
.post-friend:hover img { transform: rotate(-8deg) scale(1.08); }
.post-friend span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.post-friend b { color: var(--fc); filter: brightness(.8); }
.post-friend small { display: block; font-size: 13px; color: var(--muted); }
.post-end { position: relative; display: flex; align-items: flex-start; margin: 48px 0 8px; min-height: 230px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(90deg, rgba(10,25,80,.6), rgba(10,25,80,0) 60%), var(--end) 70% 80% / cover no-repeat, #1E3E8C; color: #fff; }
.post-end span { padding: 28px 30px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.92); }
.post-end b { display: block; font-size: 20px; color: #fff; margin-bottom: 4px; }
.post-end:hover { filter: brightness(1.05); }
@media (max-width: 640px) { .post-end { min-height: 200px; background-position: 75% 100%; } .post-end span { padding: 20px; font-size: 14px; } .post-end b { font-size: 17px; } }
.fr-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 30; pointer-events: none; }
.fr-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--fc); border-radius: 0 4px 4px 0; }
.fr-progress img { position: absolute; top: 4px; left: clamp(2px, calc(var(--p, 0) * 100% - 14px), calc(100% - 30px)); width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.15)); }
.fr-top { position: fixed; right: 20px; bottom: 24px; z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 8px 6px; border: 0; border-radius: 18px;
  background: var(--fs); box-shadow: 0 6px 18px rgba(14,26,58,.15); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; color: var(--ink-2);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.fr-top.show { opacity: 1; transform: none; pointer-events: auto; }
.fr-top img { width: 40px; height: 40px; object-fit: contain; transition: transform .25s; }
.fr-top:hover img { transform: translateY(-4px); }
body:has(.sv-card) .fr-top { opacity: 0; pointer-events: none; }
