/* ================================================================
   PUBLIC.CSS — admong.com 퍼블릭 사이트 스타일
   내부 SaaS 페이지(mypage/client/project)와 완전 독립
   ================================================================ */

/* ── 변수 ── */
:root {
    --pub-primary:      #2563EB;
    --pub-primary-dark: #1d4ed8;
    --pub-text:         #111827;
    --pub-text-muted:   #6B7280;
    --pub-border:       #E5E7EB;
    --pub-bg:           #FFFFFF;
    --pub-bg-soft:      #F9FAFB;
    --pub-header-h:     68px;
    /* 카테고리 색상 */
    --pub-color-branding:   #7c3aed;
    --pub-color-website:    #0891b2;
    --pub-color-video:      #dc2626;
    --pub-color-marketing:  #16a34a;
    --pub-color-life:       #d97706;
}

/* ── 베이스 ── */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'SUIT', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: var(--pub-text);
    margin: 0; padding: 0;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── 유틸 ── */
.pub-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pub-container-wide { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* ================================================================
   헤더 / 네비게이션
   ================================================================ */
.pub-header {
    position: sticky;
    top: 0; z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #EBEBEB;
    height: var(--pub-header-h);
}
.pub-header-inner {
    height: var(--pub-header-h);
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* 로고 */
.pub-logo {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--pub-text);
    flex-shrink: 0;
    text-decoration: none;
}
.pub-logo span { color: var(--pub-primary); }

/* 네비게이션 */
.pub-nav { flex: 1; }
.pub-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0; padding: 0;
}
.pub-nav-item { position: relative; }
.pub-nav-link {
    display: flex;
    align-items: center;
    height: var(--pub-header-h);
    padding: 0 16px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--pub-text-muted);
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    gap: 4px;
}
.pub-nav-link:hover,
.pub-nav-link:focus { color: var(--pub-text); outline: none; }
.pub-nav-item.is-active > .pub-nav-link { color: var(--pub-text); }

/* hover 텍스트 스왑 */
.pub-nav-link .t-default { display: inline; }
.pub-nav-link .t-hover   { display: none;   font-style: italic; }
.pub-nav-link:hover .t-default { display: none; }
.pub-nav-link:hover .t-hover   { display: inline; }
.pub-nav-item.is-active .pub-nav-link .t-default { display: none; }
.pub-nav-item.is-active .pub-nav-link .t-hover   { display: inline; }

/* 활성 항목 하단 바 */
.pub-nav-item.is-active > .pub-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 16px; right: 16px;
    height: 2px;
    background: var(--pub-text);
    border-radius: 2px 2px 0 0;
}

/* 드롭다운 */
.pub-nav-item.has-dropdown .pub-nav-link .pub-arrow {
    font-size: .6rem;
    transition: transform .2s;
    margin-left: 2px;
}
.pub-nav-item.has-dropdown:hover .pub-nav-link .pub-arrow { transform: rotate(180deg); }
.pub-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    list-style: none;
    margin: 0; padding: 6px;
    min-width: 160px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s;
    z-index: 999;
}
.pub-nav-item.has-dropdown:hover .pub-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.pub-dropdown li a {
    display: block;
    padding: 9px 14px;
    font-size: .84rem;
    color: var(--pub-text-muted);
    border-radius: 7px;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.pub-dropdown li a:hover { background: #F3F4F6; color: var(--pub-text); }

/* 헤더 우측 */
.pub-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pub-header-login {
    padding: 6px 14px;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    font-size: .8rem;
    color: var(--pub-text-muted);
    transition: all .12s;
    font-weight: 500;
}
.pub-header-login:hover { border-color: var(--pub-text); color: var(--pub-text); }
.pub-header-user {
    display: flex; align-items: center; gap: 8px;
    font-size: .84rem;
    color: var(--pub-text-muted);
}
.pub-header-user-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--pub-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
}

/* 햄버거 (모바일) */
.pub-hamburger {
    display: none;
    width: 36px; height: 36px;
    border: none; background: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.pub-hamburger span {
    width: 22px; height: 2px;
    background: var(--pub-text);
    border-radius: 2px;
    transition: all .25s;
    display: block;
}

/* 모바일 nav 오버레이 */
.pub-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    flex-direction: column;
    padding: 20px 24px;
    overflow-y: auto;
}
.pub-mobile-nav.open { display: flex; }
.pub-mobile-nav-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px;
}
.pub-mobile-nav-close {
    width: 36px; height: 36px;
    border: none; background: none;
    cursor: pointer; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
}
.pub-mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pub-text);
    border-bottom: 1px solid var(--pub-border);
}
.pub-mobile-nav .sub-links { padding: 6px 0 6px 16px; }
.pub-mobile-nav .sub-links a { font-size: .9rem; font-weight: 400; border: none; color: var(--pub-text-muted); padding: 8px 0; }

/* ================================================================
   푸터
   ================================================================ */
.pub-footer {
    background: #111827;
    color: #9CA3AF;
    padding: 48px 0 32px;
    margin-top: 80px;
}
.pub-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.pub-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid #1F2937;
    margin-bottom: 24px;
}
.pub-footer-logo {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    display: block;
    margin-bottom: 10px;
}
.pub-footer-logo span { color: var(--pub-primary); }
.pub-footer-desc { font-size: .82rem; line-height: 1.7; color: #6B7280; max-width: 280px; }
.pub-footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.pub-footer-col h4 { font-size: .78rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.pub-footer-col a { display: block; font-size: .82rem; color: #6B7280; margin-bottom: 8px; transition: color .12s; }
.pub-footer-col a:hover { color: #D1D5DB; }
.pub-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; }
.pub-footer-copy { color: #4B5563; }

/* ================================================================
   홈페이지 히어로
   ================================================================ */
.pub-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    position: relative;
    overflow: hidden;
}
.pub-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}
.pub-hero-content {
    position: relative;
    text-align: center;
    padding: 0 24px;
}
.pub-hero-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pub-primary);
    margin-bottom: 20px;
    display: block;
}
.pub-hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0 0 24px;
}
.pub-hero-title em { color: var(--pub-primary); font-style: normal; }
.pub-hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #9CA3AF;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.pub-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--pub-primary);
    color: #fff;
    border-radius: 10px;
    font-size: .9375rem;
    font-weight: 600;
    transition: background .15s, transform .15s;
}
.pub-hero-cta:hover { background: var(--pub-primary-dark); transform: translateY(-2px); color: #fff; }

/* 히어로 스크롤 인디케이터 */
.pub-hero-scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: #4B5563; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.pub-hero-scroll-dot {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, #4B5563, transparent);
    animation: pub-scroll-line 1.5s ease-in-out infinite;
}
@keyframes pub-scroll-line { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ================================================================
   홈페이지 섹션 공통
   ================================================================ */
.pub-section { padding: 72px 0; }
.pub-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
}
.pub-section-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.pub-section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.875rem);
    font-weight: 800;
    color: var(--pub-text);
    margin: 0;
    letter-spacing: -.02em;
}
.pub-section-more {
    font-size: .82rem;
    color: var(--pub-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .12s;
}
.pub-section-more:hover { color: var(--pub-text); }

/* ================================================================
   포트폴리오 카드 (홈용)
   ================================================================ */
.pub-port-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pub-port-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--pub-bg-soft);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.pub-port-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.10); }
.pub-port-card-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #E5E7EB;
    position: relative;
}
.pub-port-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.pub-port-card:hover .pub-port-card-thumb img { transform: scale(1.05); }
.pub-port-card-thumb-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #9CA3AF; font-size: 2rem;
}
.pub-port-card-body { padding: 16px; }
.pub-port-card-cat {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
    display: block;
}
.pub-port-card-title {
    font-size: .9375rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--pub-text);
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pub-port-card-meta {
    font-size: .75rem;
    color: var(--pub-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pub-port-card-creator { font-weight: 500; }

/* ================================================================
   포트폴리오 게시판 스킨용 (list)
   ================================================================ */
.port-list-wrap { padding: 40px 0; }
.port-list-header {
    padding: 48px 0 40px;
    text-align: center;
}
.port-list-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: -.03em;
}
.port-list-header p { font-size: .95rem; color: var(--pub-text-muted); margin: 0; }

.port-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 48px;
}
.port-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--pub-bg-soft);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid var(--pub-border);
}
.port-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.10); }
.port-card-thumb {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #E5E7EB;
    position: relative;
}
.port-card-thumb img { width:100%;height:100%;object-fit:cover;transition:transform .5s ease; }
.port-card:hover .port-card-thumb img { transform: scale(1.04); }
.port-card-thumb-empty { width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#9CA3AF;font-size:2.5rem;background:#F3F4F6; }
.port-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    display: flex; align-items: flex-end; padding: 16px;
}
.port-card:hover .port-card-overlay { opacity: 1; }
.port-card-overlay-text { color: #fff; font-size: .8rem; font-weight: 500; }
.port-card-body { padding: 18px 20px; }
.port-card-cat {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; margin-bottom: 8px; display: block;
}
.port-card-title {
    font-size: 1rem; font-weight: 700; margin: 0 0 8px;
    color: var(--pub-text); line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.port-card-creator { font-size: .78rem; color: var(--pub-text-muted); margin-bottom: 4px; }
.port-card-date { font-size: .72rem; color: #9CA3AF; }

/* ================================================================
   포트폴리오 상세 (view)
   ================================================================ */
.port-view-hero {
    background: #111827;
    padding: 60px 0;
    margin-bottom: 48px;
}
.port-view-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -.02em;
    max-width: 800px;
}
.port-view-meta-row {
    display: flex; flex-wrap: wrap; gap: 20px;
    font-size: .84rem; color: #9CA3AF;
}
.port-view-meta-item strong { color: #fff; }
.port-view-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 64px;
}
.port-view-main-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #F3F4F6;
}
.port-view-main-img img { width: 100%; }
.port-view-content { font-size: .9375rem; line-height: 1.85; color: var(--pub-text); }
.port-view-content img { border-radius: 8px; margin: 20px 0; }
.port-view-content h2,h3 { letter-spacing: -.02em; }

/* 관련 포트폴리오 */
.port-view-related {
    border-top: 1px solid var(--pub-border);
    margin-top: 48px; padding-top: 32px;
}
.port-view-related h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; }
.port-view-related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.port-view-related-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    font-size: .84rem;
    color: var(--pub-text);
    transition: border-color .12s, background .12s;
}
.port-view-related-link:hover { border-color: var(--pub-primary); color: var(--pub-primary); background: #eff6ff; }

/* ================================================================
   다크 포트폴리오 (치과영상)
   ================================================================ */
body.dark-board {
    background: #0A0A0A;
    color: #E5E7EB;
}
body.dark-board .pub-header {
    background: rgba(10,10,10,.95);
    border-bottom-color: #1F2937;
}
body.dark-board .pub-logo { color: #fff; }
body.dark-board .pub-nav-link { color: #9CA3AF; }
body.dark-board .pub-nav-link:hover { color: #fff; }
body.dark-board .pub-dropdown { background: #1F2937; border-color: #374151; }
body.dark-board .pub-dropdown li a { color: #9CA3AF; }
body.dark-board .pub-dropdown li a:hover { background: #374151; color: #fff; }

.dark-port-list-header {
    padding: 60px 0 48px;
    text-align: center;
}
.dark-port-list-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900; color: #fff;
    margin: 0 0 12px; letter-spacing: -.03em;
}
.dark-port-list-header p { color: #6B7280; font-size: .95rem; margin: 0; }

.dark-port-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    background: #111;
}
.dark-port-card {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}
.dark-port-card img { width:100%;height:100%;object-fit:cover;transition:transform .5s; }
.dark-port-card:hover img { transform: scale(1.04); }
.dark-port-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px;
    transition: background .3s;
}
.dark-port-card:hover .dark-port-card-overlay { background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 60%, transparent 100%); }
.dark-port-card-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 6px; }
.dark-port-card-meta { font-size: .78rem; color: rgba(255,255,255,.6); display:flex; gap:12px; }
.dark-port-card-empty {
    background: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    color: #333; font-size: 3rem;
}

/* ================================================================
   커뮤니티 게시판 목록
   ================================================================ */
.comm-list-header { padding: 48px 0 32px; }
.comm-list-header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin: 0 0 8px; letter-spacing: -.02em; }
.comm-list-header p { font-size: .9rem; color: var(--pub-text-muted); margin: 0; }

/* 몽몽죽겠지: 카드 그리드 */
.comm-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding-bottom: 48px; }
.comm-card {
    display: block; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--pub-border); text-decoration: none; color: inherit;
    transition: box-shadow .15s, transform .15s;
}
.comm-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.comm-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: #F3F4F6; }
.comm-card-thumb img { width:100%;height:100%;object-fit:cover;transition:transform .4s; }
.comm-card:hover .comm-card-thumb img { transform: scale(1.04); }
.comm-card-body { padding: 16px 18px; }
.comm-card-title { font-size: .9375rem; font-weight: 600; margin: 0 0 6px; color: var(--pub-text); overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.comm-card-meta { font-size: .75rem; color: var(--pub-text-muted); display:flex;gap:10px; }

/* 몽터뷰: 매거진형 목록 */
.comm-interview-list { display:flex;flex-direction:column;gap:0;padding-bottom:48px; }
.comm-interview-item {
    display:flex;gap:24px;align-items:center;
    padding:24px 0;border-bottom:1px solid var(--pub-border);
    text-decoration:none;color:inherit;
    transition:background .12s;
}
.comm-interview-item:first-child { border-top: 1px solid var(--pub-border); }
.comm-interview-item:hover { background: var(--pub-bg-soft); padding-left: 12px; border-radius: 10px; }
.comm-interview-thumb { width:120px;height:80px;border-radius:8px;overflow:hidden;flex-shrink:0;background:#F3F4F6; }
.comm-interview-thumb img { width:100%;height:100%;object-fit:cover; }
.comm-interview-info { flex:1;min-width:0; }
.comm-interview-tag { font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--pub-color-life);margin-bottom:6px;display:block; }
.comm-interview-title { font-size:1rem;font-weight:700;margin:0 0 6px;color:var(--pub-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.comm-interview-meta { font-size:.75rem;color:var(--pub-text-muted); }

/* 애숭이: 타임라인형 */
.comm-timeline { position:relative;padding-bottom:48px; }
.comm-timeline::before { content:'';position:absolute;left:16px;top:0;bottom:0;width:2px;background:var(--pub-border); }
.comm-timeline-item {
    display:flex;gap:24px;padding:0 0 32px 48px;
    position:relative;text-decoration:none;color:inherit;
}
.comm-timeline-dot {
    position:absolute;left:8px;top:4px;
    width:18px;height:18px;border-radius:50%;
    background:var(--pub-color-life);border:3px solid #fff;
    box-shadow:0 0 0 2px var(--pub-color-life);
    flex-shrink:0;
}
.comm-timeline-content { flex:1;min-width:0; }
.comm-timeline-author { font-size:.75rem;font-weight:700;color:var(--pub-color-life);margin-bottom:4px;display:block; }
.comm-timeline-title { font-size:.9375rem;font-weight:600;color:var(--pub-text);margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.comm-timeline-meta { font-size:.72rem;color:var(--pub-text-muted); }

/* 같이할래?: 채용 목록 */
.recruit-list { display:flex;flex-direction:column;gap:0;padding-bottom:48px; }
.recruit-item {
    display:flex;align-items:center;gap:20px;
    padding:20px 24px;
    border:1px solid var(--pub-border);border-radius:12px;
    margin-bottom:10px;
    text-decoration:none;color:inherit;
    transition:border-color .15s,box-shadow .15s;
}
.recruit-item:hover { border-color:var(--pub-primary);box-shadow:0 4px 16px rgba(37,99,235,.08); }
.recruit-badge {
    padding:4px 12px;border-radius:999px;font-size:.72rem;font-weight:700;
    background:var(--pub-primary);color:#fff;flex-shrink:0;
    white-space:nowrap;
}
.recruit-badge.closed { background:#F3F4F6;color:#9CA3AF; }
.recruit-title { font-size:1rem;font-weight:700;color:var(--pub-text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.recruit-meta { font-size:.78rem;color:var(--pub-text-muted);flex-shrink:0;display:flex;gap:12px;align-items:center; }

/* ================================================================
   커뮤니티 뷰 — 브런치 스타일 (공통)
   ================================================================ */
.comm-view-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.comm-view-category {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pub-color-life);
    margin-bottom: 14px;
    display: block;
}
.comm-view-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: var(--pub-text);
    line-height: 1.2;
    letter-spacing: -.03em;
    margin: 0 0 20px;
}
.comm-view-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--pub-border);
    border-bottom: 1px solid var(--pub-border);
    margin-bottom: 40px;
}
.comm-view-author-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--pub-color-life);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
    flex-shrink: 0;
}
.comm-view-author-info { flex: 1; }
.comm-view-author-name { font-size: .875rem; font-weight: 600; color: var(--pub-text); }
.comm-view-author-date { font-size: .75rem; color: var(--pub-text-muted); margin-top: 2px; }
.comm-view-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
    background: #F3F4F6;
}
.comm-view-cover img { width: 100%; }
.comm-view-body {
    font-size: 17px;
    line-height: 1.9;
    color: #1F2937;
    word-break: keep-all;
}
.comm-view-body h2 { font-size: 1.4rem; font-weight: 800; margin: 40px 0 16px; letter-spacing: -.02em; }
.comm-view-body h3 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 12px; }
.comm-view-body p { margin: 0 0 24px; }
.comm-view-body img { width: 100%; border-radius: 8px; margin: 24px 0; }
.comm-view-body blockquote {
    border-left: 3px solid var(--pub-color-life);
    margin: 24px 0;
    padding: 12px 20px;
    background: var(--pub-bg-soft);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--pub-text-muted);
}
.comm-view-body a { color: var(--pub-primary); text-decoration: underline; }

/* 뷰 하단 네비게이션 */
.comm-view-nav {
    max-width: 680px;
    margin: 0 auto 48px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.comm-view-nav-btn {
    flex: 1;
    display: flex; align-items: flex-start; flex-direction: column; gap: 4px;
    padding: 16px 20px;
    border: 1px solid var(--pub-border);
    border-radius: 10px;
    transition: border-color .12s, background .12s;
    text-decoration: none;
}
.comm-view-nav-btn:hover { border-color: var(--pub-text); background: var(--pub-bg-soft); }
.comm-view-nav-label { font-size: .72rem; color: var(--pub-text-muted); font-weight: 500; }
.comm-view-nav-title { font-size: .875rem; font-weight: 600; color: var(--pub-text); overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%; }

/* ================================================================
   채용 뷰 (같이할래?)
   ================================================================ */
.recruit-view-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.recruit-view-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--pub-border); }
.recruit-view-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 900; margin: 0 0 16px; letter-spacing: -.02em; }
.recruit-view-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.recruit-view-tag {
    padding: 4px 12px; border-radius: 999px;
    font-size: .75rem; font-weight: 600;
    background: #F3F4F6; color: var(--pub-text-muted);
}
.recruit-view-apply-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: var(--pub-primary); color: #fff;
    border-radius: 10px; font-size: .9375rem; font-weight: 700;
    transition: background .15s, transform .15s;
}
.recruit-view-apply-btn:hover { background: var(--pub-primary-dark); transform: translateY(-1px); color: #fff; }
.recruit-view-body { font-size: .9375rem; line-height: 1.85; color: var(--pub-text); }
.recruit-view-body h2 { font-size: 1.15rem; font-weight: 800; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--pub-border); }
.recruit-view-body ul { padding-left: 20px; margin: 0 0 20px; }
.recruit-view-body li { margin-bottom: 6px; }

/* ================================================================
   페이지네이션 (공통)
   ================================================================ */
.pub-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 32px 0 48px;
}
.pub-pagination a,
.pub-pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--pub-text-muted);
    border: 1px solid transparent;
    transition: all .12s;
}
.pub-pagination a:hover { background: var(--pub-bg-soft); color: var(--pub-text); }
.pub-pagination .current { background: var(--pub-primary); color: #fff; border-color: var(--pub-primary); }

/* ================================================================
   댓글 (공통)
   ================================================================ */
.pub-comments {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px 64px;
}
.pub-comments-title { font-size: 1rem; font-weight: 700; margin: 0 0 20px; color: var(--pub-text); }
.pub-comment-item {
    display: flex; gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--pub-border);
}
.pub-comment-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: #E5E7EB; color: var(--pub-text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.pub-comment-body { flex: 1; }
.pub-comment-header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.pub-comment-author { font-size: .84rem; font-weight: 600; }
.pub-comment-date { font-size: .72rem; color: var(--pub-text-muted); }
.pub-comment-text { font-size: .875rem; line-height: 1.7; color: var(--pub-text); }
.pub-comment-form { padding: 20px 0; }
.pub-comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--pub-border); border-radius: 10px; font-size: .875rem; font-family: inherit; resize: vertical; min-height: 90px; outline: none; }
.pub-comment-form textarea:focus { border-color: var(--pub-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ================================================================
   헤더 추가 스타일
   ================================================================ */
#pub-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.pub-main { flex: 1; }
.pub-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }

/* 로고 변형 */
.pub-logo { display: flex; align-items: center; gap: 8px; }
.pub-logo-img { height: 32px; display: block; object-fit: contain; }
.pub-logo-icon {
    width: 32px; height: 32px; background: var(--pub-primary); color: #fff;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: .9rem; flex-shrink: 0;
}
.pub-logo-text { font-size: 1.1rem; font-weight: 900; letter-spacing: -.03em; color: var(--pub-text); }

/* 네비 드롭다운 — pub-has-dropdown 클래스 지원 */
.pub-nav-item.pub-has-dropdown { position: relative; }
.pub-nav-item.pub-has-dropdown:hover > .pub-dropdown {
    opacity: 1; pointer-events: all; transform: translateY(0);
}
.pub-nav-chevron { font-size: .6rem; margin-left: 2px; transition: transform .2s; color: var(--pub-text-muted); }
.pub-nav-item.pub-has-dropdown:hover .pub-nav-chevron { transform: rotate(180deg); }

/* 드롭다운 아이템 */
.pub-dropdown-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; font-size: .84rem; color: var(--pub-text-muted);
    border-radius: 7px; transition: background .12s, color .12s; white-space: nowrap;
}
.pub-dropdown-item:hover { background: #F3F4F6; color: var(--pub-text); }
.pub-dropdown-item.is-active { color: var(--pub-text); font-weight: 600; }
.pub-dd-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* 드롭다운 아이템 hover 텍스트 스왑 */
.pub-dropdown-item .t-default { display: inline; }
.pub-dropdown-item .t-hover   { display: none; font-style: italic; }
.pub-dropdown-item:hover .t-default { display: none; }
.pub-dropdown-item:hover .t-hover   { display: inline; }
.pub-dropdown-item.is-active .t-default { display: none; }
.pub-dropdown-item.is-active .t-hover   { display: inline; }

/* 헤더 우측 버튼 */
.pub-header-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 8px; font-size: .8125rem; font-weight: 500;
    transition: all .12s; white-space: nowrap; text-decoration: none; cursor: pointer;
}
.pub-header-btn-outline {
    border: 1px solid var(--pub-border); color: var(--pub-text-muted); background: none;
}
.pub-header-btn-outline:hover { border-color: var(--pub-text); color: var(--pub-text); }

/* 유저 드롭다운 */
.pub-user-dropdown { position: relative; }
.pub-user-btn {
    display: flex; align-items: center; gap: 6px; padding: 5px 8px;
    border: none; background: none; cursor: pointer; border-radius: 8px;
    transition: background .12s; font-family: inherit;
}
.pub-user-btn:hover { background: var(--pub-bg-soft); }
.pub-user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--pub-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 700;
}
.pub-user-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    background: #fff; border: 1px solid var(--pub-border);
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.10);
    min-width: 180px; list-style: none; padding: 6px; margin: 0;
    display: none; z-index: 9999;
}
.pub-user-menu.open { display: block; }
.pub-user-menu-name { padding: 8px 12px; font-size: .8rem; font-weight: 600; color: var(--pub-text-muted); }
.pub-user-menu-divider { height: 1px; background: var(--pub-border); margin: 4px 0; }
.pub-user-menu li a {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    border-radius: 7px; font-size: .84rem; color: var(--pub-text); transition: background .12s;
}
.pub-user-menu li a:hover { background: var(--pub-bg-soft); }
.pub-user-menu li a.danger { color: #dc2626; }
.pub-user-menu li a.danger:hover { background: #fef2f2; }

/* 모바일 토글 버튼 */
.pub-mobile-toggle {
    display: none; width: 36px; height: 36px; border: none; background: none;
    cursor: pointer; border-radius: 8px; font-size: 1.2rem; color: var(--pub-text);
    align-items: center; justify-content: center; padding: 0;
}
.pub-mobile-toggle:hover { background: var(--pub-bg-soft); }

/* 모바일 내비 구조 */
.pub-mobile-nav-list { list-style: none; margin: 0; padding: 8px 0; }
.pub-mobile-nav-group {
    width: 100%; background: none; border: none; text-align: left;
    font-family: inherit; font-size: .9375rem; font-weight: 600;
    color: var(--pub-text); padding: 13px 0;
    border-bottom: 1px solid var(--pub-border);
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.pub-mobile-nav-link {
    display: block; padding: 13px 0; font-size: .9375rem; font-weight: 600;
    color: var(--pub-text); border-bottom: 1px solid var(--pub-border);
}
.pub-mobile-sub { list-style: none; margin: 0; padding: 6px 0 6px 16px; display: none; }
.pub-mobile-sub.open { display: block; }
.pub-mobile-sub li a {
    display: block; padding: 8px 0; font-size: .875rem;
    color: var(--pub-text-muted); border: none !important;
}

/* ================================================================
   푸터 추가 스타일
   ================================================================ */
.pub-footer-brand { max-width: 260px; }
.pub-footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pub-footer-logo-icon {
    width: 30px; height: 30px; background: var(--pub-primary); color: #fff;
    border-radius: 7px; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: .85rem; flex-shrink: 0;
}
.pub-footer-logo-text { font-size: 1rem; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.pub-footer-tagline { font-size: .82rem; color: #6B7280; margin: 4px 0 0; line-height: 1.5; }
.pub-footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.pub-footer-nav-col { display: flex; flex-direction: column; gap: 8px; }
.pub-footer-nav-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 4px; }
.pub-footer-nav-col a { font-size: .82rem; color: #6B7280; transition: color .12s; }
.pub-footer-nav-col a:hover { color: #D1D5DB; }
.pub-footer-copy { color: #4B5563; font-size: .78rem; margin: 0; }
.pub-footer-visit { font-size: .72rem; color: #374151; }

/* 맨 위로 버튼 */
.pub-top-btn {
    position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px;
    background: #111827; color: #fff; border: none; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2);
    font-size: .9rem; z-index: 9999; transition: background .15s, transform .15s;
}
.pub-top-btn:hover { background: #374151; transform: translateY(-2px); }
.pub-top-btn.show { display: flex; }

/* 다크 보드 추가 */
body.dark-board .pub-dropdown-item { color: #9CA3AF; }
body.dark-board .pub-dropdown-item:hover { background: #374151; color: #fff; }
body.dark-board .pub-header-btn-outline { border-color: #374151; color: #9CA3AF; }
body.dark-board .pub-header-btn-outline:hover { border-color: #9CA3AF; color: #fff; }

/* ================================================================
   반응형
   ================================================================ */
@media (max-width: 1024px) {
    .pub-port-grid { grid-template-columns: repeat(2,1fr); }
    .port-grid { grid-template-columns: repeat(2,1fr); }
    .dark-port-grid { grid-template-columns: 1fr; }
    .comm-card-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .pub-nav { display: none; }
    .pub-hamburger { display: flex; }
    .pub-mobile-toggle { display: flex; }
    .pub-header-right .pub-header-login { display: none; }
    .pub-port-grid { grid-template-columns: 1fr; }
    .port-grid { grid-template-columns: 1fr; }
    .comm-card-grid { grid-template-columns: 1fr; }
    .pub-section { padding: 48px 0; }
    .pub-footer-top { flex-direction: column; }
    .pub-footer-links { gap: 24px; }
    .pub-footer-nav { gap: 24px; }
    .comm-view-wrap, .pub-comments { padding-left: 16px; padding-right: 16px; }
    .recruit-view-wrap { padding-left: 16px; padding-right: 16px; }
    .pub-header-inner { padding: 0 16px; }
}
@media (max-width: 480px) {
    .pub-container, .pub-container-wide { padding: 0 16px; }
    .pub-hero-title { font-size: 2.2rem; }
    .comm-interview-thumb { width: 80px; height: 56px; }
}
