/* 프로젝트·컬렉션 페이지 공통: ? 도움말 (호버·포커스 시 툴팁) */

.content-header-title-group,
.section-header-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.section-header-title-group {
    flex: 1;
    margin-right: 12px;
}

.form-page-title-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 24px 28px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    position: relative;
}

#exhibitions-content #add-edit-exhibition-view .content-section .form-page-title-bar h2,
#artworks-content #add-edit-artwork-view .content-section .form-page-title-bar h2 {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
}

.form-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.form-label-row label {
    display: inline !important;
    margin-bottom: 0 !important;
}

.form-label-row--tags {
    margin-bottom: 8px;
}

.ar-studio-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.project-link-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.project-link-label-row .link-label {
    margin-bottom: 0;
}

.cms-help-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.cms-help-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(90, 107, 107, 0.35);
    border-radius: 50%;
    background: #fff;
    color: #5a6b6b;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    transition: background 0.2s, border-color 0.2s;
}

.cms-help-btn:hover,
.cms-help-btn:focus-visible {
    background: rgba(109, 152, 134, 0.12);
    border-color: var(--primary-color, #6d9886);
    outline: none;
}

.cms-help-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 200;
    box-sizing: border-box;
    min-width: min(280px, calc(100vw - 24px));
    max-width: min(520px, calc(100vw - 24px));
    padding: 12px 14px;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.55;
    color: #374151;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    white-space: normal;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.cms-help-tooltip strong {
    font-weight: 600;
    color: #1f2937;
}

/* 긴 안내(프로젝트 목록·컬렉션 이미지/태그 등): 가로로 넓은 박스로 읽기 쉽게 */
.cms-help-tooltip.cms-help-tooltip--wide {
    min-width: min(480px, calc(100vw - 32px));
    max-width: min(720px, calc(100vw - 24px));
    width: max-content;
}

.cms-help-wrap:hover .cms-help-tooltip,
.cms-help-wrap:focus-within .cms-help-tooltip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

#project-link-modal .cms-help-wrap .cms-help-tooltip {
    left: auto;
    right: 0;
}

/* 워크스페이스 — 사용 가이드 미리보기: 제목 + ? */
.four-card--guide .guide-preview .guide-preview-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.four-card--guide .guide-preview .guide-preview-title-row h3 {
    margin: 0;
}

/* 워크스페이스 — 사용 가이드 미리보기 포스트잇: 제목 + 짧은 줄글 */
.four-card--guide .guide-preview .sticky-note .sticky-note-heading {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.four-card--guide .guide-preview .sticky-note .sticky-note-lines {
    display: block;
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 400;
    color: #3d555c;
}

/* 사용 가이드 미리보기: 공통 포스트잇 그림자(rgba(44,59,63))가 베이지 위에서 푸른 글로우처럼 보이는 느낌을 줄이기 — 웜톤·살짝만 */
.four-card--guide .guide-preview .sticky-note {
    box-shadow:
        0 6px 14px rgba(58, 48, 36, 0.12),
        0 1px 3px rgba(58, 48, 36, 0.07);
}

/* 워크스페이스 — 사용 가이드 확장: 제목 + ? */
.four-card--guide .guide-expanded .guide-expanded-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.four-card--guide .guide-expanded .guide-expanded-title-row h2 {
    margin: 0;
}

.four-card--guide .guide-note ul {
    margin: 8px 0 0;
    padding-left: 1.15em;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #3f575d;
}

.four-card--guide .guide-note li {
    margin-bottom: 5px;
}

.four-card--guide .guide-note li:last-child {
    margin-bottom: 0;
}

.four-card--guide .guide-note p + p {
    margin-top: 8px;
}
