﻿/* Community sites, new look (Core/ClubHome; honam.ca first).
   body.cv2      - set by Controls/CommunityClubNav (the header sits outside the frame)
   .club-v2      - on #FrameContainer (WebPage.aspx.cs)
   Banner, menu bar and content share one width (1148px) and one left edge. */

body.cv2 {
    --cv-p: #1f3b70;          /* menu bar, links */
    --cv-p-dark: #152a52;
    --cv-p-soft: #eaf0f9;
    --cv-accent: #b8862b;     /* join button, heading marks */
    --cv-accent-soft: #fbf3e2;
    --cv-line: #e4e7ee;
    --cv-text: #1d2233;
    --cv-muted: #6f7689;
    --cv-w: 1148px;
    background: #f5f6f9;
}

/* ---------------------------------------------------------------- header (TorontoClubHeader) */

/* its small sign-in row goes; the sign-in box itself stays, opened from the menu bar */
body.cv2 #ClubTopMenuContainer { height: 0; padding: 0; margin: 0; position: static; }
body.cv2 #ClubTopMenuContainer [id$="SmallLoginContainer"],
body.cv2 #ClubTopMenuContainer [id$="SmallLoggedInContainer"] { display: none !important; }   /* server ids: ContentPlaceHolder1_..._SmallLoginContainer */
body.cv2 #LoginFrame {
    position: fixed; top: 72px; right: max(16px, calc((100vw - var(--cv-w)) / 2));
    width: min(400px, calc(100vw - 32px)); max-height: none;
    border: 1px solid var(--cv-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(20, 30, 60, .22);
    padding: 16px; z-index: 1100; background: #fff;
}

body.cv2 #LoginFrame #FormContainer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
body.cv2 #LoginFrame .SmallUserID,
body.cv2 #LoginFrame .SmallUserPwd { grid-column: 1; width: 100%; height: 40px; margin: 0; padding: 0 12px; font-size: 15px; border: 1px solid #d7d9e2; border-radius: 8px; box-sizing: border-box; }
body.cv2 #LoginFrame #LoginButton {
    position: static; grid-column: 2; grid-row: 1 / span 2; width: auto;
    border: 0; border-radius: 8px; background: var(--cv-p); font-weight: 700;
}
body.cv2 #LoginFrame #LoginButton a { color: #fff !important; }
body.cv2 #LoginFrame #LoginButton:hover { background: var(--cv-p-dark); border: 0; }
body.cv2 #LoginFrame #LoginButton:hover * { background: none !important; }
body.cv2 #LoginFrame .AutoLogin { margin-top: 8px; font-size: 13px; }

body.cv2 .ClubHeaderContainer { width: calc(100% - 32px); max-width: var(--cv-w); margin: 0 auto; background: none; }
body.cv2 .ClubHeaderContainer .ClubTopImage { height: auto; width: 100%; }

/* ---------------------------------------------------------------- menu bar */

.cn { position: sticky; top: 0; z-index: 1000; color: #fff; font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
.cn-in {
    display: flex; align-items: center; gap: 4px; height: 56px;
    width: calc(100% - 32px); max-width: var(--cv-w); margin: 0 auto; padding: 0 8px;
    background: var(--cv-p); border-radius: 0 0 14px 14px; box-shadow: 0 6px 16px rgba(20, 30, 60, .14);
}
.cn a, .cn a:hover { color: inherit; text-decoration: none; }
.cn-name { display: none; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-menu { display: flex; align-items: stretch; height: 100%; margin: 0; padding: 0; list-style: none; }
.cn-menu > li { position: relative; display: flex; }
.cn-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 0 16px; font-size: 15px; font-weight: 500; opacity: .92; white-space: nowrap; }
.cn-menu > li > a:hover, .cn-menu > li.on > a, .cn-menu > li.open > a { opacity: 1; background: rgba(255, 255, 255, .1); }
.cn-menu > li.on > a { box-shadow: inset 0 -3px 0 var(--cv-accent); }
.cn-caret { width: 10px; height: 10px; flex: none; }

.cn-sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 210px; margin: 0; padding: 8px; list-style: none;
    background: #fff; color: var(--cv-text); border-radius: 0 0 12px 12px; box-shadow: 0 12px 30px rgba(20, 30, 60, .18); z-index: 5;
}
/* a heading with many menus: the list stops at ~70% of the screen and scrolls inside */
.cn-sub { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }
.cn-sub.cn-right { left: auto; right: 0; top: calc(100% + 10px); border-radius: 12px; }
/* SideBar.css paints every "ul ul a" purple with !important padding and size - undone here */
.cn .cn-sub a { display: block; padding: 9px 12px !important; border-radius: 8px; font-size: 14.5px !important; white-space: nowrap; background: none; color: var(--cv-text); }
.cn .cn-sub a:hover, .cn .cn-sub a.on { background: var(--cv-p-soft); color: var(--cv-p) !important; }
@media (hover: hover) { .cn-menu > li.has:hover > .cn-sub { display: block; } }
.cn-menu > li.open > .cn-sub, .cn-drop.open > .cn-sub { display: block; }

.cn-acct { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cn-drop { position: relative; }
.cn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
    border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.cn-btn.ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.cn-btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.cn-btn.gold { background: var(--cv-accent); color: #fff; }
.cn-burger { display: none; width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; align-items: center; justify-content: center; }

/* phone panel */
.cn-shade { display: none; position: fixed; inset: 0; background: rgba(10, 15, 30, .45); z-index: 1200; }
.cn-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 1201;
    display: flex; flex-direction: column; background: #fff; color: var(--cv-text);
    transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
body.cn-open .cn-drawer { transform: none; visibility: visible; transition: transform .25s ease; box-shadow: -8px 0 30px rgba(0, 0, 0, .2); }
body.cn-open .cn-shade { display: block; }
.cn-drawer header { background: var(--cv-p); color: #fff; padding: 18px 18px 16px; }
.cn-drawer header b { display: block; font-size: 17px; }
.cn-drawer header small { opacity: .8; }
.cn-drawer-acct { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cn-drawer-acct .cn-btn { height: 34px; padding: 0 14px; font-size: 13.5px; }
.cn-drawer nav { overflow-y: auto; padding: 8px 10px 24px; }
.cn-drawer h6 { margin: 14px 10px 4px; font-size: 12px; color: var(--cv-muted); font-weight: 700; }
.cn-drawer nav a { display: block; padding: 11px 12px; border-radius: 10px; font-size: 15px; color: var(--cv-text); }
.cn-drawer nav a.on, .cn-drawer nav a:active { background: var(--cv-p-soft); color: var(--cv-p); font-weight: 700; }

/* ---------------------------------------------------------------- frame */

/* the left menu and its '메뉴' button go - the menu bar does their job */
.club-v2 #sidebar { display: none !important; }
.club-v2 #content > .navbar { display: none !important; }
.club-v2 #content { max-width: calc(var(--cv-w) + 30px); margin: 0 auto; padding: 22px 0 40px; min-height: 0; }
.club-v2.wrapper { justify-content: center; }
.club-v2 #content > .RightFrame { padding-right: 15px; }   /* Default.css has 10px: the column ended 5px past the banner */

/* ---------------------------------------------------------------- home (CommunityClubMain) */

.ch, .ch-aside { color: var(--cv-text); font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; line-height: 1.55; }
.ch a, .ch-aside a { color: inherit; text-decoration: none; }
.ch-card { display: block; background: #fff; border: 1px solid var(--cv-line); border-radius: 16px; }
.ch-sec + .ch-sec { margin-top: 32px; }
.ch-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ch-h h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.ch-h h2 i { width: 6px; height: 20px; border-radius: 3px; background: var(--cv-accent); }
.ch-h a { font-size: 13.5px; font-weight: 700; color: var(--cv-p) !important; white-space: nowrap; }

.ch-hero .ClubMainImgContainer { margin: 0 0 12px; }
.ch-hero .ClubMainImg { width: 100%; height: auto; border-radius: 16px; display: block; }

.ch-feature { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; }
.ch-feature.no-poster { grid-template-columns: minmax(0, 1fr); }
/* the whole poster, never cropped: it sits on a soft panel, letterboxed if its shape differs */
.ch-poster { display: flex; align-items: center; justify-content: center; padding: 12px; background: var(--cv-p-soft); }
.ch-poster img { width: 100%; height: 100%; max-height: 360px; object-fit: contain; display: block; border-radius: 8px; }
.ch-body { display: flex; flex-direction: column; padding: 22px 24px; }
.ch-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--cv-accent); background: var(--cv-accent-soft); padding: 4px 10px; border-radius: 999px; }
.ch-body h3 { margin: 10px 0 6px; font-size: 21px; line-height: 1.4; font-weight: 800; letter-spacing: -.3px; }
.ch-body p { margin: 0 0 14px; color: var(--cv-muted); font-size: 14.5px; }
.ch-facts, .ev-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.ch-facts li, .ev-facts li { background: #f5f6f9; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.ch-facts span, .ev-facts span { display: block; font-size: 12px; color: var(--cv-muted); }
.ch-facts b, .ev-facts b { font-weight: 700; }
.ch-acts { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--cv-p); color: #fff !important; font-weight: 700; font-size: 14px; }
.ch-dday { font-weight: 800; color: var(--cv-accent); font-size: 15px; }

.ch-list { padding: 4px 0; }
.ch-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 20px; }
.ch-list a + a { border-top: 1px solid var(--cv-line); }
.ch-list a:hover .ch-t { color: var(--cv-p); }
.ch-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-new { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: #e0533d; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; vertical-align: 2px; }
.ch-b { font-size: 12px; color: var(--cv-muted); background: #f5f6f9; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.ch-list time { color: var(--cv-muted); font-size: 13px; }

.ch-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ch-ph { overflow: hidden; transition: transform .15s, box-shadow .15s; }
.ch-ph:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 30, 60, .10); }
.ch-img { display: block; aspect-ratio: 4 / 3; background: var(--cv-p-soft); }
.ch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-cap { display: block; padding: 11px 13px 13px; }
.ch-cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.ch-cap time { display: block; margin-top: 6px; font-size: 12.5px; color: var(--cv-muted); }

.ch-aside { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.ch-about { padding: 20px; }
.ch-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ch-logo span { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--cv-p); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.ch-logo b { font-size: 16px; line-height: 1.35; }
.ch-desc { margin: 0 0 14px; font-size: 14px; color: #474d5e; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.ch-desc.open { -webkit-line-clamp: unset; display: block; }
.ch-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ch-stats div { background: var(--cv-p-soft); border-radius: 10px; padding: 9px 12px; }
.ch-stats span { display: block; font-size: 12px; color: var(--cv-muted); }
.ch-stats b { font-size: 18px; font-weight: 800; color: var(--cv-p); }
.ch-coming { padding: 16px 14px 8px; }
.ch-coming h4 { margin: 0 6px 8px; font-size: 15px; font-weight: 800; }
.ch-coming a { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; }
.ch-coming a:hover { background: #f5f6f9; }
.ch-cal { width: 44px; flex: none; text-align: center; border-radius: 10px; background: var(--cv-accent-soft); color: var(--cv-accent); padding: 4px 0; line-height: 1.1; }
.ch-cal small { display: block; font-size: 11px; font-weight: 700; }
.ch-cal b { font-size: 18px; font-weight: 800; }
.ch-ct { font-size: 14px; font-weight: 600; line-height: 1.4; }
.ch-ct small { display: block; color: var(--cv-muted); font-weight: 400; font-size: 12.5px; }

/* ---------------------------------------------------------------- inner pages */

/* ClubIntro's visitor strip + club description heads every inner page; the menu bar and the
   home page card already say all that */
.club-v2 [id$="ClubBoardContainer_Intro"] { display: none !important; }

/* ---------------------------------------------------------------- album page (ClubMainPhotoAlbum) */
/* CSS only - ClubPhoto.js finds its way around these cards by class, so the markup stays as it is.
   A click on a picture still opens the full-screen slide show. */

.club-v2 .ClubPhotoContainer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; color: var(--cv-text); }
.club-v2 .ClubPhotoContainer > .ClubBoardTitle { order: 1; font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--cv-text); }
.club-v2 .ClubPhotoContainer > .ClubVisitInfo { order: 2; font-size: 13.5px; color: var(--cv-muted); }
.club-v2 #SlideShowButton {
    order: 3; margin-left: auto; position: static; float: none; display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
    border-radius: 999px; border: 1px solid var(--cv-line); background: #fff; color: var(--cv-p); font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.club-v2 #SlideShowButton::before { content: '\25B6'; font-size: 10px; margin-right: 7px; }
.club-v2 .ClubPhotoContainer > .ClubHr { display: none; }
.club-v2 .ClubPhotoContainer > * { order: 10; flex: 1 1 100%; }
.club-v2 .ClubPhotoContainer > .ClubBoardTitle,
.club-v2 .ClubPhotoContainer > .ClubVisitInfo,
.club-v2 .ClubPhotoContainer > #SlideShowButton,
.club-v2 .ClubPhotoContainer > #pzPickButton { flex: 0 0 auto; }
.club-v2 .WritePhotoButtonContainer { margin: 8px 0 4px; text-align: left; }

.club-v2 #PhotoMainContainer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.club-v2 #PhotoMainContainer > #BoardListPager { grid-column: 1 / -1; }
.club-v2 .PhotoFrameContainer {
    display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--cv-line); border-radius: 16px;
    background: #fff; overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.club-v2 .PhotoFrameContainer:hover { box-shadow: 0 12px 26px rgba(20, 30, 60, .10); transform: translateY(-2px); }
.club-v2 .PhotoFrameContainer > .clearBoth { display: none; }
.club-v2 .PhotoFrame { order: -1; float: none; width: 100%; margin: 0; padding: 0; aspect-ratio: 4 / 3; background: var(--cv-p-soft); overflow: hidden; }
.club-v2 .PhotoFrame img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; display: block; cursor: zoom-in; }
.club-v2 .PhotoContentFrame { float: none; width: auto; margin: 0; padding: 12px 14px 14px; border: 0; }
.club-v2 .PhotoContentWrapper { position: relative; padding: 0; border: 0; }
.club-v2 .PhotoContentWrapper > .UserImage,
.club-v2 .PhotoContentWrapper > .PhotoOwner { display: none; }
.club-v2 .PhotoContentWrapper > .PhotoDate { display: block; float: none; margin: 0 0 4px; font-size: 12.5px; color: var(--cv-muted); }
.club-v2 .PhotoContent { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.45; color: var(--cv-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.club-v2 .PhotoContent * { font-size: inherit !important; font-weight: inherit !important; margin: 0 !important; }
.club-v2 .PhotoContentWrapper > .PhotoEdit,
.club-v2 .PhotoContentWrapper > .PhotoDelete { position: static; float: right; margin-left: 10px; padding: 0; font-size: 12.5px; color: var(--cv-p); cursor: pointer; }
.club-v2 .PhotoContentWrapper > .PhotoEdit:hover, .club-v2 .PhotoContentWrapper > .PhotoDelete:hover { background: none; text-decoration: underline; }
.club-v2 .PhotoCommentWrapper:empty { display: none; }

/* delete confirmation (ClubPhoto.js puts it inside the 삭제 link): a panel over the card's text */
.club-v2 .PhotoContentWrapper .PhotoDeleteConfirm {
    position: absolute; z-index: 6; top: auto; left: -14px; right: -14px; bottom: -14px; width: auto; height: auto;   /* grows up from the card bottom, over the photo */
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 14px;
    border: 0; border-top: 1px solid var(--cv-line); border-radius: 14px 14px 16px 16px; background: #fff;
    box-shadow: 0 -10px 24px rgba(20, 30, 60, .10); color: var(--cv-text); font-size: 13.5px; font-weight: 700; text-align: center; cursor: default;
}
.club-v2 .PhotoDeleteConfirm .pz-q { flex: 1 1 100%; margin-bottom: 2px; }
.club-v2 .PhotoDeleteConfirm > div {
    display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--cv-line); border-radius: 999px;
    background: #fff; color: var(--cv-text); font-size: 13px; font-weight: 700; cursor: pointer;
}
.club-v2 .PhotoDeleteConfirm > .PhotoDeleteYes { border-color: #c0392b; background: #c0392b; color: #fff; }
.club-v2 .PhotoDeleteConfirm > .pz-many { border-color: var(--cv-p); color: var(--cv-p); }

/* choosing several photos to delete (JS/CommunityClubNav.js) */
.club-v2 #pzPickButton { order: 3; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border: 1px solid var(--cv-line); border-radius: 999px; background: #fff; color: #c0392b; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.club-v2 #SlideShowButton { margin-left: 0; }
.club-v2 .ClubPhotoContainer > .ClubVisitInfo { margin-right: auto; }
body.pz-picking .club-v2 .PhotoFrameContainer.pz-can { cursor: pointer; }
body.pz-picking .club-v2 .PhotoFrameContainer.pz-can .PhotoFrame img { cursor: pointer; }
body.pz-picking .club-v2 .PhotoFrameContainer { position: relative; }
body.pz-picking .club-v2 .PhotoFrameContainer.pz-can::after {
    content: ''; position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid #fff; background: rgba(20, 22, 30, .35); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
body.pz-picking .club-v2 .PhotoFrameContainer.pz-on { outline: 3px solid #c0392b; outline-offset: -3px; }
body.pz-picking .club-v2 .PhotoFrameContainer.pz-on::after {
    background: #c0392b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
body.pz-picking .club-v2 .PhotoFrameContainer:not(.pz-can) { opacity: .45; }
body.pz-picking .club-v2 .PhotoFrameContainer:hover { transform: none; }
.pz-pickbar {
    position: fixed; z-index: 1250; left: 50%; bottom: 20px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border-radius: 999px;
    background: #1d2233; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
    font: 700 14px/1 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; white-space: nowrap;
}
.pz-pickbar b { margin-right: 6px; }
.pz-pickbar button { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; cursor: pointer; }
.pz-pickbar button.pz-del { background: #c0392b; }
.pz-pickbar button.pz-del:disabled { opacity: .45; cursor: default; }
@media (max-width: 480px) {
    .pz-pickbar { left: 8px; right: 8px; transform: none; justify-content: space-between; padding-left: 14px; font-size: 13px; }
    .pz-pickbar button { padding: 0 11px; }
}
.club-v2 .PhotoComment { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--cv-line); font-size: 13px; }

/* writing or editing: the card holding the form takes the whole row */
.club-v2 .PhotoFrameContainer:has(.WriteContainer) { grid-column: 1 / -1; transform: none; }
.club-v2 .PhotoFrameContainer:has(.WriteContainer) .PhotoFrame { aspect-ratio: auto; }

/* ---------------------------------------------------------------- board page (ClubMainBoards, type=board) */
/* The list showed every post in full, one under the other. Now a card per post: title, author and
   date, the first lines of the text, and the whole card opens the post (the title's own link,
   stretched over the card). Only the board list's container has a server id ending in
   _ClubBoardContainer - 행사 안내 and the other lists are not touched. */

.club-v2 [id$="_ClubBoardContainer"] { padding: 0; border: 0; background: none; box-shadow: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.club-v2 [id$="_ClubBoardContainer"] > * { flex: 1 1 100%; }
.club-v2 [id$="_ClubBoardContainer"] > .ClubBoardTitle { flex: 0 0 auto; font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--cv-text); }
.club-v2 [id$="_ClubBoardContainer"] > .ClubVisitInfo { flex: 1 1 auto; font-size: 13.5px; color: var(--cv-muted); }
.club-v2 [id$="_ClubBoardContainer"] > hr { display: none; }
.club-v2 [id$="_ClubBoardContainer"] .WriteButtonContainer { text-align: right; margin: 0 0 4px; border: 0; padding: 0; }

.club-v2 [id$="_ClubBoardContainer"] > .ParentBoardContainer {
    position: relative; margin: 0 0 14px; padding: 20px 22px 18px; border: 1px solid var(--cv-line); border-radius: 16px;
    background: #fff; transition: box-shadow .15s, transform .15s;
}
.club-v2 [id$="_ClubBoardContainer"] > .ParentBoardContainer:hover { box-shadow: 0 12px 26px rgba(20, 30, 60, .10); transform: translateY(-2px); }
.club-v2 [id$="_ClubBoardContainer"] .ContentPanel { margin: 0; padding: 0; border: 0; width: auto; float: none; }
.club-v2 [id$="_ClubBoardContainer"] .BoardMainContainer { padding: 0; border: 0; }
.club-v2 [id$="_ClubBoardContainer"] .BoardMainContainer > a { display: block; color: var(--cv-text); text-decoration: none; }
.club-v2 [id$="_ClubBoardContainer"] .BoardMainContainer > a::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.club-v2 [id$="_ClubBoardContainer"] .BoardSubject { display: block; margin: 0 0 6px; padding: 0; font-size: 18px; font-weight: 800; line-height: 1.4; color: var(--cv-text); }
.club-v2 [id$="_ClubBoardContainer"] .ParentBoardContainer:hover .BoardSubject { color: var(--cv-p); }
.club-v2 [id$="_ClubBoardContainer"] .BoardAuthor { display: inline; margin: 0 10px 0 0; float: none; font-size: 13px; color: var(--cv-p); }
.club-v2 [id$="_ClubBoardContainer"] .BoardDate { display: inline; float: none; font-size: 13px; color: var(--cv-muted); }
.club-v2 [id$="_ClubBoardContainer"] .BoardContent {
    margin: 12px 0 0; max-height: 7.6em; overflow: hidden; font-size: 14.5px; line-height: 1.6; color: #474d5e;
    -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
}
.club-v2 [id$="_ClubBoardContainer"] .BoardContent * { font-size: inherit !important; line-height: inherit !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.club-v2 [id$="_ClubBoardContainer"] .BoardContent img, .club-v2 [id$="_ClubBoardContainer"] .BoardContent iframe { display: none; }
.club-v2 [id$="_ClubBoardContainer"] .BoardMainContainer::after { content: '\C790\C138\D788  \BCF4\AE30  \203A'; display: block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--cv-p); }

/* ---------------------------------------------------------------- one post (ClubMainBoardDetail, .cd-board) */

.club-v2 .cd-board { padding: 0; border: 0; background: none; box-shadow: none; }
.club-v2 .cd-board > .cd-back { display: inline-flex !important; align-items: center; gap: 4px; margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--cv-p); text-decoration: none; }
.club-v2 .cd-board > .cd-back:hover { text-decoration: underline; }
.club-v2 .cd-board > .ClubBoardTitle { display: inline-block; margin: 0 0 12px 10px; padding: 3px 12px; border-radius: 999px; background: var(--cv-p-soft); color: var(--cv-p); font-size: 13px; font-weight: 700; }
.club-v2 .cd-board > .ClubVisitInfo, .club-v2 .cd-board > hr { display: none; }
.club-v2 .cd-board .ParentBoardContainer {
    position: relative; margin: 0; padding: 32px 36px 28px; border: 1px solid var(--cv-line) !important; border-radius: 18px; background: #fff;
}
.club-v2 .cd-board .ParentBoardContainer > .UserImage, .club-v2 .cd-board .CommentBoardContainer > .UserImage { display: none; }
.club-v2 .cd-board .ContentPanel { margin: 0; padding: 0; border: 0; width: auto; float: none; }
.club-v2 .cd-board .ParentBoardContainer > .ContentPanel > .BoardMainContainer { padding: 0; border: 0; font-size: 16px; line-height: 1.85; color: #33384a; }
.club-v2 .cd-board .ParentBoardContainer .BoardSubject { display: block; padding: 0 110px 0 0; margin: 0 0 10px; font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: -.4px; color: var(--cv-text); cursor: default; }
/* author floats left of the date line; the date line carries the rule under the heading */
.club-v2 .cd-board .ParentBoardContainer > .ContentPanel > .BoardMainContainer > .BoardAuthor { float: left; margin: 0 10px 0 0; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--cv-p); }
.club-v2 .cd-board .ParentBoardContainer > .ContentPanel > .BoardMainContainer > .BoardDate {
    display: block; float: none; margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid var(--cv-line); font-size: 13.5px; line-height: 1.6; color: var(--cv-muted);
}
.club-v2 .cd-board .BoardMainContainer p { margin: 0 0 .6em; }
.club-v2 .cd-board .BoardMainContainer img { max-width: 100% !important; height: auto !important; border-radius: 12px; }
.club-v2 .cd-board .BoardMainContainer iframe { max-width: 100%; border-radius: 12px; }
.club-v2 .cd-board .EditBoard, .club-v2 .cd-board .DeleteBoard {
    position: absolute; top: 34px; float: none; margin: 0; padding: 4px 12px; border: 1px solid var(--cv-line); border-radius: 999px;
    background: #fff; font-size: 13px; line-height: 1.4; color: var(--cv-p); cursor: pointer;
}
.club-v2 .cd-board .DeleteBoard { right: 36px; }
.club-v2 .cd-board .EditBoard { right: 98px; }

/* comments */
.club-v2 .cd-board .CommentContainer:not(:empty) { margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--cv-line); }
.club-v2 .cd-board .CommentBoardContainer { margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid #f0f1f5; }
.club-v2 .cd-board .CommentBoardContainer .BoardMainContainer { padding: 0; border: 0; font-size: 14.5px; line-height: 1.6; }
.club-v2 .cd-board .CommentBoardContainer .BoardAuthor { display: inline; float: none; margin-right: 8px; font-size: 13.5px; font-weight: 700; color: var(--cv-text); }
.club-v2 .cd-board .CommentBoardContainer .BoardDate { display: inline; float: none; font-size: 12.5px; color: var(--cv-muted); }
.club-v2 .cd-board .CommentEditBoard, .club-v2 .cd-board .CommentDeleteBoard { float: right; margin-left: 10px; font-size: 12.5px; color: var(--cv-p); cursor: pointer; }
/* 댓글달기: Club.css pins it absolutely to the bottom right corner - here it is the card's last row */
.club-v2 .cd-board .CommentWrapper { position: static; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--cv-line); text-align: left; }
.club-v2 .cd-board .CommentButton {
    position: static; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px;
    border: 1px solid var(--cv-line); border-radius: 999px; background: var(--cv-p-soft); color: var(--cv-p); font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.club-v2 .cd-board .CommentButton::before {
    content: ''; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.club-v2 .cd-board .CommentButton:hover { border-color: var(--cv-p); background: #fff; }
.club-v2 .cd-board > .cd-foot { display: flex !important; justify-content: center; margin: 22px 0 40px; }
@media (max-width: 768px) {
    .club-v2 .cd-board .ParentBoardContainer { padding: 22px 18px 20px; border-radius: 14px; }
    .club-v2 .cd-board .ParentBoardContainer .BoardSubject { font-size: 21px; padding-right: 0; }
    .club-v2 .cd-board .EditBoard, .club-v2 .cd-board .DeleteBoard { position: static; display: inline-block; margin: 0 6px 12px 0; }
}

/* page numbers (the board's own inline style paints the current one red) */
.club-v2 .pagination-box { margin: 18px 0 60px; }
.club-v2 .pagination-box ul.pagination-list li a {
    min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--cv-line); border-radius: 999px; background: #fff; color: var(--cv-text); font-size: 13.5px; font-family: inherit;
}
.club-v2 .pagination-box ul.pagination-list li a:hover,
.club-v2 .pagination-box ul.pagination-list li a.active { border-color: var(--cv-p); background: var(--cv-p); color: #fff; }

/* ---------------------------------------------------------------- buttons (Club.css .ClubButton: grey 180px bars) */

.club-v2 .ClubButton {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: auto; min-width: 112px; height: 38px; padding: 0 20px; margin: 2px 0;
    border: 1px solid var(--cv-line); border-radius: 999px !important; background: #fff; color: var(--cv-p) !important;
    font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none !important; white-space: nowrap;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.club-v2 .ClubButton:hover { background: var(--cv-p-soft); border-color: #cfd6e6; }
.club-v2 .ClubButton.ClubButtonShort { min-width: 0; padding: 0 12px; height: 32px; font-size: 13px; }
/* the main action of a screen: write, save, load more */
.club-v2 #WirteButton, .club-v2 #BoardSave, .club-v2 #cmgSave, .club-v2 #BoardListMore {
    background: var(--cv-p); border-color: var(--cv-p); color: #fff !important;
}
.club-v2 #WirteButton:hover, .club-v2 #BoardSave:hover, .club-v2 #cmgSave:hover, .club-v2 #BoardListMore:hover {
    background: var(--cv-p-dark); border-color: var(--cv-p-dark); box-shadow: 0 6px 16px rgba(20, 30, 60, .18);
}
.club-v2 #WirteButton::before { content: '+'; font-size: 17px; font-weight: 800; margin-top: -2px; }
.club-v2 #BKToTop::before { content: '\2191'; font-size: 14px; }
.club-v2 .BoardButton { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------------------------------------------------------------- 행사 안내 (ClubAnnouncement, .ev-board) */
/* Posts shown in full (an event is read on this page), one card each, the date / time / place / fee
   boxes under the title. Edit and delete stay where ClubBoard.js looks for them. */

.club-v2 .ev-board { padding: 0; border: 0; background: none; box-shadow: none; }
.club-v2 .ev-board > .ClubBoardTitle { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--cv-text); margin: 0 0 14px; }
.club-v2 .ev-board > hr { display: none; }
.club-v2 .ev-board > .WriteButtonContainer { padding: 0 0 10px; border: 0; }
.club-v2 .ev-board .ParentBoardContainer {
    margin: 0 0 16px; padding: 22px 24px 20px; border: 1px solid var(--cv-line); border-radius: 16px; background: #fff;
}
.club-v2 .ev-board .ParentBoardContainer > .UserImage,
.club-v2 .ev-board .CommentBoardContainer > .UserImage { display: none; }
.club-v2 .ev-board .ContentPanel { margin: 0; padding: 0; border: 0; width: auto; float: none; }
.club-v2 .ev-board .BoardMainContainer { padding: 0; border: 0; }
.club-v2 .ev-board .BoardSubject { display: block; padding: 0 90px 0 0; margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.4; color: var(--cv-text); }
.club-v2 .ev-board .BoardAuthor { display: inline; float: none; margin: 0 10px 0 0; font-size: 13px; color: var(--cv-p); }
.club-v2 .ev-board .BoardAuthor.NoSubject { display: inline; font-size: 13px; }
.club-v2 .ev-board .BoardDate { display: inline; float: none; font-size: 13px; color: var(--cv-muted); }
.club-v2 .ev-board .EditBoard, .club-v2 .ev-board .DeleteBoard,
.club-v2 .ev-board .CommentEditBoard, .club-v2 .ev-board .CommentDeleteBoard { float: right; margin-left: 12px; font-size: 13px; color: var(--cv-p); cursor: pointer; }
.club-v2 .ev-board .BoardContent { margin-top: 14px; font-size: 15px; line-height: 1.7; color: #3d4354; }
.club-v2 .ev-board .BoardContent img { max-width: 100%; height: auto; border-radius: 10px; }
.club-v2 .ev-board .CommentContainer:empty { display: none; }
.club-v2 .ev-board .CommentBoardContainer { margin-top: 12px; padding: 12px 0 0; border-top: 1px solid var(--cv-line); }

/* the admin's 행사 정보 button and its small form (JS/ClubEvent.js) */
.club-v2 .ev-edit {
    display: inline-flex; align-items: center; height: 34px; margin: 12px 0 4px; padding: 0 16px; border: 1px dashed var(--cv-p);
    border-radius: 999px; background: var(--cv-p-soft); color: var(--cv-p); font: 700 13.5px/1 inherit; cursor: pointer;
}
.club-v2 .ev-form {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; max-width: 620px; margin: 10px 0 6px;
    padding: 16px; border: 1px solid var(--cv-line); border-radius: 14px; background: #f8f9fc;
}
.club-v2 .ev-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--cv-muted); }
.club-v2 .ev-form input { height: 40px; padding: 0 12px; border: 1px solid #dfe2ea; border-radius: 10px; background: #fff; font: 400 14.5px/1 inherit; color: var(--cv-text); }
.club-v2 .ev-form-acts { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.club-v2 .ev-form-acts button { height: 38px; min-width: 88px; padding: 0 16px; border: 1px solid var(--cv-line); border-radius: 10px; background: #fff; font: 700 14px/1 inherit; cursor: pointer; }
.club-v2 .ev-form-acts .ev-save { border-color: var(--cv-p); background: var(--cv-p); color: #fff; }
@media (max-width: 560px) { .club-v2 .ev-form { grid-template-columns: 1fr; } }

.ev-facts { max-width: 620px; margin: 14px 0 4px; }
.ev-facts li { border: 1px solid var(--cv-line); background: #f8f9fc; }

@media (max-width: 768px) {
    .club-v2 .ev-board .ParentBoardContainer { padding: 18px 16px; }
    .club-v2 .ev-board .BoardSubject { font-size: 18px; padding-right: 0; }
}

/* ---------------------------------------------------------------- write form = a window (like ahaidea.com's post form) */
/* Board, 행사 안내 and album forms, writing and editing alike. ClubBoard.js / ClubPhoto.js open the form
   with show() (an inline display), move it about and close it with hide() - so the window is drawn
   wherever it sits, as a fixed box with the page dimmed around it (a 100vmax shadow), and the page
   under it stops taking clicks while it is open. */

.club-v2 .WriteContainer {
    position: fixed !important; z-index: 1300; top: 48px; left: max(16px, calc(50% - 430px)); right: auto;
    width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto; box-sizing: border-box;
    margin: 0; padding: 26px 30px 24px; border: 0; border-radius: 18px; background: #fff; text-align: left; color: var(--cv-text);
    box-shadow: 0 0 0 100vmax rgba(17, 20, 45, .55), 0 24px 60px rgba(17, 20, 45, .28);
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
body.cv2:has(.WriteContainer[style*="block"]) { overflow: hidden; }
body.cv2:has(.WriteContainer[style*="block"]) #BodyFrame { pointer-events: none; }
body.cv2:has(.WriteContainer[style*="block"]) .WriteContainer { pointer-events: auto; }
.club-v2 .ParentBoardContainer:has(.WriteContainer[style*="block"]),
.club-v2 .PhotoFrameContainer:has(.WriteContainer[style*="block"]) { transform: none !important; }   /* a transformed parent would trap a fixed box */

.club-v2 .WriteContainer #ContentFrame { position: static; height: auto; }
.club-v2 .WriteContainer .WriteInnerContainer { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 6px 0; }
.club-v2 .WriteContainer .WriteInnerContainer.nodisplay { display: none; }
.club-v2 .WriteContainer .HeaderSection { position: static; width: auto; padding: 12px 0 0; text-align: left; font-size: 13.5px; font-weight: 700; color: #4b5162; white-space: nowrap; }
.club-v2 .WriteContainer .BodySection { margin: 0; min-width: 0; font-size: 12.5px; color: var(--cv-muted); }
.club-v2 .WriteContainer .BodySection input[type=text],
.club-v2 .WriteContainer .BodySection input[type=date],
.club-v2 .WriteContainer .BodySection input[type=time],
.club-v2 .WriteContainer .BodySection select {
    width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dfe2ea; border-radius: 10px; background-color: #fff;
    font-family: inherit; font-size: 14px; color: var(--cv-text); outline: 0;
}
.club-v2 .WriteContainer .BodySection input:focus, .club-v2 .WriteContainer .BodySection select:focus { border-color: var(--cv-p); box-shadow: 0 0 0 3px var(--cv-p-soft); }
.club-v2 .WriteContainer input[type=file] { width: auto; max-width: 100%; margin: 3px 10px 3px 0; padding: 0; border: 0; font-size: 13px; color: var(--cv-muted); }
.club-v2 .WriteContainer input[type=file]::file-selector-button {
    margin-right: 10px; padding: 9px 16px; border: 1px solid #cfd8ea; border-radius: 10px; background: var(--cv-p-soft);
    color: var(--cv-p); font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.club-v2 .WriteContainer .MoreFileUpload { font-size: 13px; font-weight: 700; color: var(--cv-p); cursor: pointer; }
.club-v2 .WriteContainer .cke_chrome { border: 1px solid #dfe2ea !important; border-radius: 10px; overflow: hidden; box-shadow: none !important; }
.club-v2 .WriteContainer .cke_top { border-bottom: 1px solid #dfe2ea !important; background: #f7f8fb !important; box-shadow: none !important; }
.club-v2 .WriteContainer .cke_bottom { border-top: 1px solid #dfe2ea !important; background: #f7f8fb !important; box-shadow: none !important; }

/* the buttons: cancel, then save, at the bottom right */
.club-v2 .WriteContainer .WriteInnerContainer:has(#BoardSave) { display: block; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--cv-line); }
.club-v2 .WriteContainer .WriteInnerContainer:has(#BoardSave) > .HeaderSection { display: none; }
.club-v2 .WriteContainer .BodySection:has(#BoardSave),
.club-v2 .WriteContainer .WriteButtons { display: flex; justify-content: flex-end; gap: 10px; font-size: 0; }
.club-v2 .WriteContainer .WriteButtons { margin-top: 14px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--cv-line); }
.club-v2 .WriteContainer #BoardSave, .club-v2 .WriteContainer #CancelButton {
    min-width: 110px; height: 46px; margin: 0; padding: 0 22px; border-radius: 12px !important; font-size: 15px;
}
.club-v2 .WriteContainer #BoardSave { order: 2; box-shadow: 0 8px 18px rgba(20, 30, 60, .22); }
.club-v2 .WriteContainer #CancelButton { color: #4b5162 !important; }

/* ---------------------------------------------------------------- admin screens (.cv-admin: WebPage.AdminScreens) */
/* 홈페이지 설정, 메뉴 관리, 메뉴 / 유저그룹 설정, 유저그룹 / 가입신청자 관리, 회원 관리, 배너 관리.
   They are old WebForms lists and forms; this gives them a card, the screen's own heading,
   section titles, round boxes and the site's buttons - no markup touched. */

.cv-admin .ClubBoardContainer {
    margin: 0 0 18px; padding: 26px 30px 28px; border: 1px solid var(--cv-line); border-radius: 18px; background: #fff;
    color: var(--cv-text); font-size: 14.5px; line-height: 1.6; box-shadow: none;
}
.cv-admin .ClubBoardContainer > .ClubBoardTitle { display: block; margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--cv-text); }
.cv-admin .ClubBoardContainer > hr { margin: 14px 0 6px; border: 0; border-top: 1px solid var(--cv-line); }
.cv-admin .ClubBoardContainer > br { display: none; }
.cv-admin .SilverCircle { display: none !important; }
.cv-admin div:has(> .SilverCircle), .cv-admin .ClubUserGroupName {
    display: block; margin: 22px 0 8px; font-size: 15.5px; font-weight: 800; color: var(--cv-text);
}
.cv-admin div:has(> .SilverCircle) > .ClubUserGroupName { display: inline; margin: 0; font-size: inherit; }
.cv-admin .margin_bottom_5:has(> .SilverCircle) { padding-left: 10px; border-left: 4px solid var(--cv-accent); line-height: 1.3; }
.cv-admin .FontLightGray { display: block; margin: 0 0 6px; font-size: 12.5px; color: var(--cv-muted); }
.cv-admin .ClubMemberContainer { margin-bottom: 18px; }

/* boxes */
.cv-admin input[type=text], .cv-admin input[type=password], .cv-admin input[type=email], .cv-admin input[type=number],
.cv-admin select, .cv-admin textarea {
    max-width: 100%; height: 40px; padding: 0 12px; border: 1px solid #dfe2ea; border-radius: 10px; background: #fff;
    font-family: inherit; font-size: 14px; color: var(--cv-text); outline: 0; box-sizing: border-box; vertical-align: middle;
}
.cv-admin textarea { height: auto; min-height: 90px; padding: 10px 12px; line-height: 1.6; width: 100%; }
.cv-admin .ClubMemberContainer > input[type=text], .cv-admin .ClubPageAdmin input[type=text] { width: 100%; }
.cv-admin input:focus, .cv-admin select:focus, .cv-admin textarea:focus { border-color: var(--cv-p); box-shadow: 0 0 0 3px var(--cv-p-soft); }
.cv-admin input[type=checkbox], .cv-admin input[type=radio] { accent-color: var(--cv-p); width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.cv-admin input[type=file] { font-size: 13px; color: var(--cv-muted); }
.cv-admin input[type=file]::file-selector-button {
    margin-right: 10px; padding: 8px 14px; border: 1px solid #cfd8ea; border-radius: 10px; background: var(--cv-p-soft);
    color: var(--cv-p); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cv-admin label { margin-right: 12px; font-weight: 500; }
.cv-admin .ClubPageAdmin img { display: block; max-width: 100%; max-height: 220px; margin: 6px 0 8px; border: 1px solid var(--cv-line); border-radius: 12px; }

/* lists */
.cv-admin table { border-collapse: separate; border-spacing: 0; max-width: 100%; }
.cv-admin table table { width: 100%; }
.cv-admin th { padding: 8px 10px; border-bottom: 2px solid var(--cv-line); font-size: 12.5px; font-weight: 700; color: var(--cv-muted); text-align: left; white-space: nowrap; }
.cv-admin td { padding: 7px 10px 7px 0; border-bottom: 1px solid #f0f1f5; vertical-align: middle; }
.cv-admin td:first-child { padding-left: 2px; }
.cv-admin table table table td { border: 0; padding: 0; }
.cv-admin td .ClubButton { height: 32px; min-width: 64px; padding: 0 14px; font-size: 13px; }
.cv-admin .ClubMemberButton { min-width: 96px; }
.cv-admin .center { text-align: center; }
.cv-admin .ClubPageAdmin > .center, .cv-admin .ClubMenuRow.center { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--cv-line); }
.cv-admin .ClubPageAdmin > .center .ClubButton, .cv-admin .ClubMenuRow.center .ClubButton {
    min-width: 160px; height: 46px; border-radius: 12px !important; background: var(--cv-p); border-color: var(--cv-p); color: #fff !important; font-size: 15px;
}

/* 메뉴 / 유저그룹 설정: the board chips and the rights box */
.cv-admin .ClubMenuContainer { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-admin .ClubMenuList { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--cv-line); border-radius: 999px; background: #fff; color: var(--cv-text); font-size: 14px; }
.cv-admin .ClubMenuContainer a:hover .ClubMenuList { border-color: var(--cv-p); color: var(--cv-p); }
.cv-admin .ClubMenuManager { margin: 0 0 20px; padding: 18px 20px; border: 1px solid var(--cv-line); border-radius: 14px; background: #f8f9fc; }
.cv-admin .ClubMenuManager .HeaderTitle { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.cv-admin .ClubMenuRow { padding: 6px 0; border-bottom: 1px solid #eceef3; }

/* 홈페이지 설정: the colour swatches */
.cv-themes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cv-theme { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 0 !important; font-size: 12.5px; cursor: pointer; }
.cv-theme input { position: absolute; opacity: 0; pointer-events: none; }
.cv-sw { width: 46px; height: 46px; border-radius: 13px; border: 3px solid #fff; box-sizing: border-box; outline: 1px solid #dfe2ea; }
.cv-theme input:checked + .cv-sw { outline: 3px solid var(--cv-text); }
.cv-theme input:checked ~ span:last-child { font-weight: 800; }

@media (max-width: 768px) {
    .cv-admin .ClubBoardContainer { padding: 20px 16px 22px; border-radius: 14px; }
    .cv-admin .ClubBoardContainer > .ClubBoardTitle { font-size: 19px; }
    .cv-admin table { display: block; overflow-x: auto; }
    .cv-admin input[type=text], .cv-admin select { font-size: 16px; }
}

/* album slide show zoom bar (JS/CommunityClubNav.js) */
.pz-bar {
    position: absolute; z-index: 101; left: 50%; bottom: 22px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
    background: rgba(20, 22, 30, .78); box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.pz-bar button {
    min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: #fff;
    font: 700 20px/1 'Noto Sans KR', sans-serif; cursor: pointer;
}
.pz-bar button:hover { background: rgba(255, 255, 255, .14); }
.pz-bar .pz-pct { min-width: 64px; font-size: 13.5px; }
#FullScreenBackground .FullScreenImg { will-change: transform; user-select: none; -webkit-user-drag: none; }

/* album form: the picture first, in a big drop-zone-like box (a click anywhere in it picks a photo -
   JS/CommunityClubNav.js), then a short caption, then the buttons. ClubMainPhotoAlbum.ascx wraps them
   in .pw-body and carries the labels, hidden on the other sites. */
.club-v2 .WriteContainer .pw-body { display: flex; flex-direction: column; }
.club-v2 .WriteContainer .pw-label { display: block !important; margin: 4px 0 8px; font-size: 14px; font-weight: 800; color: var(--cv-text); }
.club-v2 .WriteContainer .pw-label small { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--cv-muted); }
.club-v2 .WriteContainer .pw-label-photo { order: 1; }
.club-v2 .WriteContainer .WriteFile { order: 2; }
.club-v2 .WriteContainer .pw-label-text { order: 3; margin-top: 18px; }
.club-v2 .WriteContainer .WriteContent { order: 4; float: none; width: auto; }
.club-v2 .WriteContainer .pw-body > .clearBoth { display: none; }
.club-v2 .WriteContainer .WriteFile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 220px; margin: 0; padding: 18px; border: 2px dashed #cfd6e6; border-radius: 16px;
    background: #f7f9fc; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.club-v2 .WriteContainer .WriteFile:hover { border-color: var(--cv-p); background: var(--cv-p-soft); }
.club-v2 .WriteContainer .PhotoUploadFrame:empty::before {
    content: ''; display: block; width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; background: var(--cv-p-soft)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M21 17l-5-5-8 7'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.club-v2 .WriteContainer .PhotoUploadFrame:empty::after { content: '\C5EC \AE30 \B97C  \B20C \B7EC  \C0AC \C9C4 \C744  \ACE0 \B974 \C138 \C694';   /* click here to choose a photo */ display: block; margin-top: 10px; font-size: 13.5px; color: var(--cv-muted); }
.club-v2 .WriteContainer .PhotoUploadFrame img { display: block; max-width: 100%; max-height: 320px; margin: 0 auto; border-radius: 12px; box-shadow: 0 6px 18px rgba(20, 30, 60, .12); }
.club-v2 .WriteContainer .WriteFile #PhotoUpload {
    margin: 0 !important; padding: 10px 22px; border-radius: 999px; background: var(--cv-p); color: #fff;
    font-size: 14px; font-weight: 700; cursor: pointer;
}
.club-v2 .WriteContainer .WriteFile #PhotoUpload:hover { background: var(--cv-p-dark); }
.club-v2 .WriteContainer .WriteContent .cke_contents { height: 110px !important; }

@media (max-width: 768px) {
    .club-v2 .WriteContainer { top: 0; left: 0; width: 100%; height: 100%; max-height: none; padding: 18px 16px; border-radius: 0; }
    .club-v2 .WriteContainer .WriteInnerContainer { display: block; }
    .club-v2 .WriteContainer .HeaderSection { padding: 10px 0 4px; }
    .club-v2 .WriteContainer .BodySection input[type=text],
    .club-v2 .WriteContainer .BodySection input[type=date],
    .club-v2 .WriteContainer .BodySection input[type=time] { font-size: 16px; }
    .club-v2 .WriteContainer #BoardSave, .club-v2 .WriteContainer #CancelButton { flex: 1; }
}

/* ---------------------------------------------------------------- tablets, phones */

@media (max-width: 1000px) {
    .ch-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .club-v2 #PhotoMainContainer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .club-v2 #PhotoMainContainer { gap: 10px; }
    .club-v2 .PhotoContentFrame { padding: 9px 10px 11px; }
    .club-v2 .PhotoContent { font-size: 13.5px; }
    .club-v2 .ClubPhotoContainer > .ClubBoardTitle { font-size: 19px; }
    .club-v2 .ClubPhotoContainer > .ClubVisitInfo { order: 4; flex: 1 1 100%; margin-top: -4px; }
}
@media (max-width: 768px) {
    body.cv2 .ClubHeaderContainer, .cn-in { width: 100%; border-radius: 0; }
    .cn-in { padding: 0 16px; }
    .cn-name { display: block; }
    .cn-menu, .cn-acct { display: none; }
    .cn-burger { display: inline-flex; }
    body.cv2 #LoginFrame { top: 64px; right: 16px; }
    .club-v2 #content { padding-top: 16px; }
    .ch-feature { grid-template-columns: 1fr; }
    .ch-poster img { max-height: 320px; }
    .ch-body { padding: 18px; }
    .ch-body h3 { font-size: 18.5px; }
    .ch-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ch-cap { padding: 9px 10px 11px; }
    .ch-cap b { font-size: 13.5px; }
    .ch-list a { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
    .ch-b { display: none; }
    .ch-h h2 { font-size: 18px; }
    .ch-sec + .ch-sec { margin-top: 26px; }
    .ch-facts, .ev-facts { grid-template-columns: 1fr 1fr; }
}
