/* 주석 마커(숫자 버튼) */
.fmp-marker {
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    cursor: pointer !important;
    color: #0073aa !important;
    font-weight: bold !important;
    font-size: 85% !important;
    text-decoration: none !important;
    outline: none !important;
    margin: 0 3px !important;
    vertical-align: super !important;
    line-height: 0 !important;
}

.fmp-marker:focus,
.fmp-marker:hover {
    color: #005177 !important;
}

/* 동적으로 생성될 최상위 툴팁 본체 (!important 최소화로 JS 좌표 허용) */
.fmp-floating-tooltip {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: fixed; /* 뷰포트 기준 절대 고정 */
    z-index: 9999999;
    
    /* 기본 크기 및 스크린 이탈 방지 한계선 */
    width: max-content;
    max-width: 280px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: opacity 0.15s ease, visibility 0.15s ease;
    
    /* 텍스트 스타일 리셋 */
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    vertical-align: baseline;
    pointer-events: none;
    word-break: keep-all;
}

/* 화면이 아주 작은 모바일 기기 대응 */
@media screen and (max-width: 360px) {
    .fmp-floating-tooltip {
        max-width: 240px;
    }
}

/* 활성화 상태 클래스 */
.fmp-floating-tooltip.fmp-active {
    visibility: visible;
    opacity: 1;
}

/* 내부 하위 서식 태그 스타일 강제 지정 */
.fmp-floating-tooltip strong, .fmp-floating-tooltip b { font-weight: bold !important; color: #ffffff !important; }
.fmp-floating-tooltip em, .fmp-floating-tooltip i { font-style: italic !important; color: #ffffff !important; }
.fmp-floating-tooltip sub { font-size: 75% !important; bottom: -0.25em !important; position: relative !important; line-height: 0 !important; vertical-align: baseline !important; color: #ffffff !important;}
.fmp-floating-tooltip sup { font-size: 75% !important; top: -0.5em !important; position: relative !important; line-height: 0 !important; vertical-align: baseline !important; color: #ffffff !important;}