.md-header__button.md-logo img { height: 2.2rem; }

/* Custom styles for key takeaways block - MkDocs Material 호환 */
.md-main .md-content .md-typeset .key-takeaways {
    background-color: #dee2eb !important;
    padding: 0.5rem 1.5rem 1.5rem !important; /* Reduced top padding */
    margin: 0 0 1.5rem 0 !important; /* 상단 마진 0으로 명시 */
    border-radius: 0.5rem !important;
    border-left: 6px solid #6ab04c !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.md-typeset .key-takeaways h2 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    color: #2c3e50 !important;
    font-size: 1.2em !important;
    font-weight: 600 !important;
    border-bottom: none !important;
    padding-top: 0 !important; /* h2에 상단 패딩 제거 */
}

.md-typeset .key-takeaways ul {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.md-typeset .key-takeaways li {
    margin-bottom: 0.5rem !important;
    line-height: 1.6 !important;
}

.md-typeset .key-takeaways li:last-child {
    margin-bottom: 0 !important;
}

/* Styles for the draft version of related content */
.related-content-draft {
    display: none; /* Hidden by default on production */
    border: 1px dashed #ccc;
    padding: 15px;
    margin: 20px 0;
    background-color: #fafafa;
    border-radius: 5px;
}

/* Admin-facing note for the draft section */
.related-content-draft::before {
    content: "관리자용: 아래 링크를 실제 주소로 수정하고, 이 div의 클래스에서 '-draft'를 제거하여 발행하세요.";
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

/* Hide empty p tags to remove unwanted spacing */
.md-typeset p:empty {
  display: none;
}