/*  새 디자인의 게시판 목록 (Controls/V2/V2BoardHero, V2BoardSide).
    머리와 오른쪽 상자는 새로 그리고, 그 아래의 목록·쪽 번호·글쓰기 단추는
    게시판이 원래 그리는 것(CategoryDetailList)에 새 옷만 입힌다 - 글쓰기 틀을
    여는 JS/Board.js 가 그 단추들의 id 를 찾으므로 HTML 은 그대로 둔다.
    모든 규칙은 새 머리(.v2-bh)가 선 화면에서만 걸린다.                     */

/* ---------- 이 찾기가 대신하므로 예전 거르개 띠와 찾기 칸은 내린다 ---------- */
body:has(.v2-bh) .board-filter-wrap,
body:has(.v2-bh) .MiddleFrame .search-box,
body:has(.v2-bh) .MiddleFrame .CategoryPathContainer { display: none !important; }

/* ---------- 머리 ---------- */
.v2-bh-wrap { padding-top: 16px; }
.v2-bh { font-family: var(--v2-font); color: var(--v2-text); }
.v2-bh a { color: inherit; text-decoration: none; }
/* 첫 화면의 큰 그림(V2Home.css .v2-hero)과 같은 크기: 높이 300, 제목 40px. */
.v2-bh-in { position: relative; display: flex; align-items: stretch; min-height: 300px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(110deg, #f4efff 0%, #fbf3fa 50%, #e9f1ff 100%); }
.v2-bh-copy { position: relative; z-index: 2; flex: 1; padding: 40px 40px 80px; }
.v2-bh-crumb { font-size: 12.5px; color: var(--v2-muted); }
.v2-bh-crumb b { color: var(--v2-primary); font-weight: 700; }
.v2-bh-title { margin: 12px 0 10px; font-size: 40px; line-height: 1.25; font-weight: 900; color: var(--v2-navy); letter-spacing: -1px; }
.v2-bh-sub { margin: 0; font-size: 16px; line-height: 1.6; color: #4b5162; }
.v2-bh-art { position: relative; z-index: 1; width: 48%; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 70% 30%, rgba(230, 0, 92, .16) 0, transparent 36%),
        radial-gradient(circle at 30% 70%, rgba(107, 63, 224, .20) 0, transparent 42%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' preserveAspectRatio='xMidYMax meet'%3E%3Cpath fill='%236b3fe0' fill-opacity='.2' d='M0 300V230h40v-40h30v50h25v-90h45v90h20v-60h40v60h25V140h14v-20h8V20h5v-40h4v40h5v100h8v20h14v140h25v-70h50v70h20v-110h55v110h25v-40h45v40h30v-80h40v80h25v-45h45v115z'/%3E%3C/svg%3E") right bottom / contain no-repeat; }
.v2-bh-slogan { font-size: 26px; font-weight: 900; line-height: 1.35; color: var(--v2-primary); text-align: center; transform: rotate(-4deg); text-shadow: 0 2px 0 #fff; }

.v2-bh-search { position: relative; z-index: 3; display: flex; gap: 10px; align-items: stretch; margin: -46px 24px 0; padding: 12px; background: #fff;
    border-radius: 14px; box-shadow: 0 10px 30px rgba(31, 36, 48, .10); border: 1px solid var(--v2-line); }
.v2-bh-field { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 4px 14px; border-right: 1px solid var(--v2-line); margin: 0; }
.v2-bh-field span { font-size: 11.5px; font-weight: 700; color: var(--v2-muted); }
.v2-bh-field select, .v2-bh-field input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--v2-text); padding: 2px 0; min-width: 150px; }
.v2-bh-field select:disabled { color: var(--v2-muted); }
.v2-bh-kw { flex: 1; border-right: 0; }
.v2-bh-kw input { width: 100%; font-weight: 400; }
.v2-bh-go { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; background: var(--v2-primary); color: #fff; font: inherit; font-size: 15px; font-weight: 700; padding: 0 26px; cursor: pointer; }
.v2-bh-go:hover { background: #5a30c8; }
.v2-bh-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 12px 24px 0; font-size: 13px; }
.v2-bh-popular b { color: #e11d48; margin-right: 4px; }
.v2-bh-chip { border: 1px solid var(--v2-line); background: #fff; border-radius: 16px; padding: 4px 12px; font: inherit; font-size: 12.5px; color: #4b5162; cursor: pointer; }
.v2-bh-chip:hover { border-color: var(--v2-primary); color: var(--v2-primary); }

/* ---------- 글쓰기 · 나의 게시글 관리 ---------- */
body:has(.v2-bh) .grid-box { font-family: var(--v2-font); }
body:has(.v2-bh) #TopWriteBoardButton.DefaultButton,
body:has(.v2-bh) .grid-box .button-box .DefaultButton,
body:has(.v2-bh) #WriteBoardButton.DefaultButton {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 20px; margin: 4px 8px 16px 0; border-radius: 10px;
    font-family: var(--v2-font); font-size: 14px; font-weight: 700; line-height: 40px; cursor: pointer; text-decoration: none;
    background: var(--v2-primary) !important; color: #fff !important; border: 1px solid var(--v2-primary); box-shadow: none; float: none; width: auto; }
/* .dftButton / .orgButton 이 바탕색을 !important 로 칠해 둔다 - 여기서도 !important 로 덮는다. */
body:has(.v2-bh) #TopWriteBoardButton.DefaultButton::before,
body:has(.v2-bh) #WriteBoardButton.DefaultButton::before { content: '✎'; font-size: 15px; }
body:has(.v2-bh) .grid-box .button-box .DefaultButton { background: #fff !important; color: var(--v2-primary) !important; }
body:has(.v2-bh) #TopWriteBoardButton.DefaultButton:hover,
body:has(.v2-bh) #WriteBoardButton.DefaultButton:hover { background: #5a30c8 !important; }
body:has(.v2-bh) .grid-box .button-box .DefaultButton:hover { background: var(--v2-primary-soft) !important; }
body:has(.v2-bh) .grid-box .button-box { margin: 0; }

/* ---------- 글 목록: 한 글이 카드 하나 ---------- */
body:has(.v2-bh) .autor-list { list-style: none; margin: 0 0 12px; padding: 0; border: 0; }
body:has(.v2-bh) .autor-list > li { position: relative; display: block; margin: 0 0 12px; padding: 16px 18px 12px; border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius); background: #fff; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
body:has(.v2-bh) .autor-list > li:hover { border-color: #cdbff6; box-shadow: 0 6px 18px rgba(107, 63, 224, .08); }
/* 맨 위의 유료(SPONSORED) 글: 연한 노랑 바탕 */
body:has(.v2-bh) ul.autor-list:not(#autor-list) > li { background: #fffbf0; border-color: #f5e2b0; }
/* style.css 가 .autor-box 에 회색 바탕·테두리·30px 여백을, 꼬리줄 칸마다 테두리를 준다 - 카드 안에서는 걷어 낸다. */
body:has(.v2-bh) .autor-box { display: flex; align-items: flex-start; gap: 14px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body:has(.v2-bh) .autor-box > img { flex: 0 0 auto; width: 96px !important; height: 96px !important; margin: 0 !important; object-fit: cover; border-radius: 10px !important; border: 1px solid var(--v2-line); }
body:has(.v2-bh) .autor-content { flex: 1; min-width: 0; margin: 0 !important; font-size: 12.5px; color: var(--v2-muted); }
/* 사진 붙은 글: 옛 Board.css 는 사진을 float 로 띄우고 글을 125px 밀었다. 여기서는 flex 가 나란히 놓으므로 그 밀기를 지운다. */
body:has(.v2-bh) .autor-box .board-thumb { float: none; flex: 0 0 auto; width: 96px; height: 96px; margin: 0; border-radius: 10px; border: 1px solid var(--v2-line); }
body:has(.v2-bh) .autor-box .board-thumb + .autor-content { margin-left: 0 !important; }
body:has(.v2-bh) .autor-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
body:has(.v2-bh) .autor-title h1 { margin: 0; font-family: var(--v2-font); font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--v2-text); }
body:has(.v2-bh) .autor-title h1 a { color: var(--v2-text); text-decoration: none; }
body:has(.v2-bh) .autor-title h1 a:hover span { color: var(--v2-primary); }
body:has(.v2-bh) .NewArticle { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%;
    background: var(--v2-pink); color: #fff; font-size: 10.5px; font-weight: 900; vertical-align: 2px; }
body:has(.v2-bh) .EventMark { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 10px; background: #fff1d6; color: #b26b00;
    font-size: 10.5px; font-weight: 900; letter-spacing: .3px; vertical-align: 2px; }
body:has(.v2-bh) .autor-social { flex: 0 0 auto; list-style: none; margin: 0; padding: 0; }
body:has(.v2-bh) .autor-social li { display: inline-block; padding: 3px 10px; border-radius: 12px; background: var(--v2-primary-soft); color: var(--v2-primary);
    font-size: 11.5px; font-weight: 700; white-space: nowrap; }
body:has(.v2-bh) .autor-content p { margin: 0 0 6px; }
body:has(.v2-bh) .autor-content p a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: #4b5162; font-size: 13.5px; line-height: 1.55; text-decoration: none; }
body:has(.v2-bh) .autor-last-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 10px 0 0 !important;
    border-top: 1px dashed var(--v2-line); }
body:has(.v2-bh) .autor-tags { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
body:has(.v2-bh) .autor-tags li { margin: 0; padding: 0; background: none; border: 0; font-size: 12px; color: var(--v2-muted); }
body:has(.v2-bh) .autor-tags li a, body:has(.v2-bh) .autor-tags li span { color: var(--v2-muted); text-decoration: none; background: none !important; border: 0 !important; padding: 0 !important; font-size: 12px; }
body:has(.v2-bh) .autor-tags li a:hover { color: var(--v2-primary); }
body:has(.v2-bh) .autor-site { flex: 0 0 auto; font-size: 12px; color: #9aa0ad; text-decoration: none; pointer-events: none; }

/* ---------- 쪽 번호 ---------- */
body:has(.v2-bh) .pagination-box { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 20px 0 10px; border: 0; }
body:has(.v2-bh) .pagination-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
body:has(.v2-bh) .pagination-list li { margin: 0; }
body:has(.v2-bh) .pagination-list li a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; color: var(--v2-text); font-family: var(--v2-font); font-size: 13.5px; font-weight: 700; text-decoration: none; }
body:has(.v2-bh) .pagination-list li a:hover { border-color: var(--v2-primary); color: var(--v2-primary); }
body:has(.v2-bh) .pagination-list li a.active { background: var(--v2-primary); border-color: var(--v2-primary); color: #fff; }
body:has(.v2-bh) .pagination-box p { margin: 0; font-size: 12px; color: var(--v2-muted); }

/* ---------- 오른쪽 상자 ---------- */
.v2-bs { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; font-family: var(--v2-font); color: var(--v2-text); }
.v2-bs a { text-decoration: none; }
.v2-bs-resume { position: relative; overflow: hidden; border-radius: 14px; padding: 20px 18px; color: #fff;
    background: linear-gradient(135deg, #6b3fe0 0%, #4f6ef7 100%); }
.v2-bs-resume-text b { display: block; font-size: 19px; font-weight: 900; line-height: 1.35; }
.v2-bs-resume-text span { display: block; margin-top: 6px; font-size: 12.5px; opacity: .9; }
.v2-bs-resume-go { display: inline-block; position: relative; z-index: 2; margin-top: 14px; padding: 8px 16px; border-radius: 18px; background: #fff; color: var(--v2-primary); font-size: 13px; font-weight: 700; }
.v2-bs-resume-art { position: absolute; right: -14px; bottom: -14px; width: 110px; height: 110px; border-radius: 22px; transform: rotate(-12deg);
    background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .08); }
.v2-bs-box { border: 1px solid var(--v2-line); border-radius: 14px; padding: 16px; background: #fff; }
.v2-bs-box p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: #4b5162; }
.v2-bs-box p b { color: var(--v2-primary); }
.v2-bs-seek { display: block; text-align: center; padding: 10px; border: 2px solid #1e88e5; border-radius: 10px; color: #1e6fd9; font-size: 14px; font-weight: 900; }
.v2-bs-seek:hover { background: #e6f0fd; }
/* 구직 최신 글 셋 */
.v2-bs-seekers { list-style: none; margin: 12px 0 0; padding: 0; }
.v2-bs-seekers li { border-top: 1px solid var(--v2-line); }
.v2-bs-seekers a { display: block; padding: 10px 2px; text-decoration: none; color: var(--v2-text); }
.v2-bs-seekers b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-bs-seekers span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--v2-muted); }
.v2-bs-seekers a:hover b { color: var(--v2-primary); }
/* 프리미엄 구인 (JobFeature 의 오른쪽 칸 모양): 한 줄에 하나 */
/* 바깥 틀은 옛 사이트의 .container (고정 폭 970px) 라서 칸 안으로 맞춘다. */
.v2-bs .jobfeat-wrap { width: auto !important; max-width: 100%; margin: 0 !important; padding: 0 !important; }
.v2-bs .jobfeat-side-head { margin: 2px 0 10px; padding-left: 10px; border-left: 4px solid var(--v2-primary); font-size: 16px; font-weight: 900; color: var(--v2-navy); }
.v2-bs .jobfeat.jobfeat-side { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 4px 14px; border: 1px solid var(--v2-line); border-radius: 14px; background: #fff; }
.v2-bs .jobfeat-side .feat-card { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--v2-line); text-decoration: none; color: var(--v2-text); }
.v2-bs .jobfeat-side .feat-card:last-child { border-bottom: 0; }
.v2-bs .jobfeat-side .feat-thumb { flex: 0 0 64px !important; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--v2-bg); }
.v2-bs .jobfeat-side .feat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v2-bs .jobfeat-side .feat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.v2-bs .jobfeat-side .feat-eyebrow { font-size: 11px; color: var(--v2-muted); }
.v2-bs .jobfeat-side .feat-note { font-size: 11.5px; font-weight: 700; color: var(--v2-primary); }
.v2-bs .jobfeat-side .feat-title { font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-bs .jobfeat-side .feat-card:hover .feat-title { color: var(--v2-primary); }

/* 알뜰장터의 AD 상자: 유료 글 (V2BoardSide.adBox) */
.v2-bs-ad { padding: 16px 16px 6px; border: 1px solid var(--v2-line); border-radius: 14px; background: #fff; }
.v2-bs-ad h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-family: var(--v2-font); font-size: 18px; font-weight: 900; color: var(--v2-navy); }
.v2-bs-ad-icon { display: inline-flex; color: #2f6fd6; }
.v2-bs-ad ul { list-style: none; margin: 0; padding: 0; }
.v2-bs-ad li { margin: 0; border-bottom: 1px solid var(--v2-line); }
.v2-bs-ad li:last-child { border-bottom: 0; }
.v2-bs-ad a { display: flex; align-items: center; gap: 12px; padding: 11px 0; text-decoration: none; color: var(--v2-text); }
.v2-bs-ad-pic { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fff0df url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e07b1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E") center / 26px no-repeat; }
.v2-bs-ad-pic img { width: 100%; height: 100%; object-fit: cover; }
.v2-bs-ad-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.v2-bs-ad-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.v2-bs-ad-top i { flex: 0 0 auto; padding: 1px 7px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; }
.v2-bs-ad-top i.is-sale { background: #e5484d; }
.v2-bs-ad-top i.is-free { background: #16a34a; }
.v2-bs-ad-top b { min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-bs-ad a:hover b { color: var(--v2-primary); }
.v2-bs-ad-meta { font-size: 12px; color: var(--v2-muted); }

/* 알뜰장터의 거래 유의사항 (V2BoardSide.SafetyBox) */
.v2-bs-safe { padding: 18px 18px 14px; border: 1px solid #e3dcfb; border-radius: 14px; background: #f7f4ff; }
.v2-bs-safe h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--v2-font); font-size: 16px; font-weight: 900; color: var(--v2-navy); }
.v2-bs-safe-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--v2-primary); color: #fff; }
.v2-bs-safe ul { list-style: none; margin: 0; padding: 0; }
.v2-bs-safe li { position: relative; margin: 0; padding: 4px 0 4px 26px; font-size: 13.5px; line-height: 1.5; color: #2b3150; }
.v2-bs-safe li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 15px; height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b3fe0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 신고하기 (구인·렌트·중고) */
.v2-bs-report { position: relative; padding: 20px; border-radius: 14px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #7c4dff 0%, #5b3ad6 100%); }
.v2-bs-report-head { display: flex; align-items: center; gap: 10px; }
.v2-bs-report-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); }
.v2-bs-report-head b { font-size: 18px; font-weight: 900; }
.v2-bs-report p { margin: 10px 0 12px !important; font-size: 13px !important; line-height: 1.6; color: rgba(255, 255, 255, .92) !important; }
.v2-bs-report-mail { display: block; margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 13px; color: #fff; user-select: all; }
.v2-bs-report-mail b { font-size: 14px; font-weight: 700; }
.v2-bs a.v2-bs-report-go { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 20px; background: #fff; color: var(--v2-primary); font-size: 14px; font-weight: 700; text-decoration: none; }
.v2-bs a.v2-bs-report-go:hover { background: var(--v2-primary-soft); }

.v2-bs-bot { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 14px; background: linear-gradient(120deg, var(--v2-primary-soft), #fdeef4); }
.v2-bs-bot-face { font-size: 30px; }
.v2-bs-bot-text { flex: 1; display: flex; flex-direction: column; font-size: 12px; color: #4b5162; line-height: 1.45; }
.v2-bs-bot-text b { font-size: 14px; color: var(--v2-navy); }
.v2-bs-bot-go { border: 0; border-radius: 16px; background: var(--v2-primary); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; padding: 8px 12px; cursor: pointer; white-space: nowrap; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
    .v2-bh-art { display: none; }
    .v2-bh-copy { padding: 22px 20px 64px; }
    .v2-bh-search { flex-direction: column; margin: -46px 12px 0; }
    .v2-bh-field { border-right: 0; border-bottom: 1px solid var(--v2-line); padding: 6px 4px; }
    .v2-bh-go { height: 44px; justify-content: center; }
    .v2-bh-popular { margin: 12px 12px 0; }
    body:has(.v2-bh) .autor-box > img { width: 72px !important; height: 72px !important; }
    body:has(.v2-bh) .autor-title { flex-direction: column; }
}

/* 세부 카테고리 버튼 (Controls/BoardCategory 의 .flex-container): 둥근 알약 모양 */
body:has(.v2-bh) .MiddleFrame .flex-container { gap: 8px; margin: 18px 0 20px; font-family: var(--v2-font); }
body:has(.v2-bh) .MiddleFrame .flex-container > div { flex: 0 0 auto; margin: 0; padding: 0; border: 0; background: none; }
body:has(.v2-bh) .MiddleFrame .flex-container > div a { display: block; padding: 8px 18px; border: 1px solid var(--v2-line); border-radius: 20px; background: #fff;
    text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
body:has(.v2-bh) .MiddleFrame .flex-container > div span { font-size: 14px; font-weight: 700; color: #4b5162; }
body:has(.v2-bh) .MiddleFrame .flex-container > div a:hover { border-color: #cdbff6; background: var(--v2-primary-soft); box-shadow: 0 4px 12px rgba(107, 63, 224, .10); }
body:has(.v2-bh) .MiddleFrame .flex-container > div a:hover span { color: var(--v2-primary); }
body:has(.v2-bh) .MiddleFrame .flex-container > div.is-on a { border-color: var(--v2-primary); background: var(--v2-primary); }
body:has(.v2-bh) .MiddleFrame .flex-container > div.is-on span { color: #fff; }

/* 사진 없는 글: 사진 있는 글과 같은 자리에 게시판 색의 무늬 칸을 둔다. 글자가 한 줄로 맞는다. */
body:has(.v2-bh) .autor-box:not(:has(.board-thumb, > img))::before { content: ''; flex: 0 0 auto; width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--v2-line);
    background: #f1f3f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / 38px no-repeat; }
body:has(.v2-bh[data-group="18"]) .autor-box:not(:has(.board-thumb, > img))::before { background-color: #e8f1fd; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7fd9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 13h18'/%3E%3C/svg%3E"); }
body:has(.v2-bh[data-group="19"]) .autor-box:not(:has(.board-thumb, > img))::before { background-color: #efeafd; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b3fe0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
body:has(.v2-bh[data-group="20"]) .autor-box:not(:has(.board-thumb, > img))::before { background-color: #fff1e3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e07b1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E"); }
@media (max-width: 768px) {
    body:has(.v2-bh) .autor-box:not(:has(.board-thumb, > img))::before { width: 72px; height: 72px; background-size: 30px; }
    body:has(.v2-bh) .autor-box .board-thumb { width: 72px; height: 72px; }
}

/* ---------- phones: the board lists (구인구직, 렌트, 중고거래, 자유게시판) ----------
   A card was ~330px - the picture, a long excerpt, views, phone, date - two to a screen.
   On a phone: a small picture, the title in two lines, the place; the excerpt and the view
   count are for wider screens (the post itself shows them). The hero loses its subtitle,
   its two choices sit side by side, the popular words scroll in one line. */
@media (max-width: 760px) {
    .v2-bh-wrap { padding-top: 10px; }
    .v2-bh-in { min-height: 0; }
    .v2-bh-copy { padding: 16px 18px 58px; }
    .v2-bh-crumb { font-size: 12px; }
    .v2-bh-title { margin: 8px 0 0; font-size: 26px; }
    .v2-bh-sub { display: none; }
    .v2-bh-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; margin: -46px 12px 0; padding: 10px; }
    .v2-bh-field { padding: 4px 6px; border-right: 0; border-bottom: 1px solid var(--v2-line); }
    .v2-bh-field select, .v2-bh-field input { min-width: 0; width: 100%; font-size: 14px; }
    .v2-bh-kw { grid-column: 1 / -1; }
    .v2-bh-go { grid-column: 1 / -1; height: 42px; justify-content: center; }
    .v2-bh-popular { flex-wrap: nowrap; overflow-x: auto; margin: 10px 12px 0; padding-bottom: 2px; scrollbar-width: none; }
    .v2-bh-popular::-webkit-scrollbar { display: none; }
    .v2-bh-popular b, .v2-bh-chip { flex: 0 0 auto; white-space: nowrap; }

    body:has(.v2-bh) .MiddleFrame .flex-container { gap: 6px; margin: 14px 0 14px; }
    body:has(.v2-bh) .MiddleFrame .flex-container > div a { padding: 6px 13px; }
    body:has(.v2-bh) .MiddleFrame .flex-container > div span { font-size: 13px; }

    body:has(.v2-bh) ul.autor-list > li { margin: 0 0 8px !important; padding: 12px !important; }
    body:has(.v2-bh) .autor-box { gap: 10px; }
    body:has(.v2-bh) .autor-box > img { width: 60px !important; height: 60px !important; }
    body:has(.v2-bh) .autor-box .board-thumb { width: 60px; height: 60px; }
    body:has(.v2-bh) .autor-box:not(:has(.board-thumb, > img))::before { width: 60px; height: 60px; background-size: 26px; }
    body:has(.v2-bh) .autor-content { font-size: 12px; }
    body:has(.v2-bh) .autor-title { flex-direction: column; gap: 4px; margin: 0 0 4px; }
    body:has(.v2-bh) ul.autor-list > li .autor-title h1 { font-size: 14.5px !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    body:has(.v2-bh) .autor-social li { padding: 2px 8px; font-size: 11px; }
    body:has(.v2-bh) ul.autor-list > li .autor-box .autor-content p { display: none !important; }
    body:has(.v2-bh) .autor-last-line { margin: 8px 0 0; padding: 8px 0 0 !important; }
    body:has(.v2-bh) ul.autor-list > li .autor-last-line ul.autor-tags li:first-child { display: none !important; }

    /* the right column under the list: the chatbot box goes (its button floats in the corner) */
    .v2-bs-bot { display: none; }
    .v2-bs-resume { padding: 16px; }
    .v2-bs-resume-text b { font-size: 17px; }
}

/* phones: a hero with no search box under it (쇼핑) keeps no room for one */
@media (max-width: 760px) {
    .v2-bh:not(:has(.v2-bh-search)) .v2-bh-copy { padding-bottom: 18px; }
}
