/*==========================================
🟤 인터렉티브 노션 버튼 바레이션*/
/*06📌 type1 - 기본타입*/
/* [1] 컨테이너: 배경 제거 및 크기 최적화- */
.notion-button {
  background-color: transparent !important;
  padding: 0 !important;
  margin: 20px 0 !important; 
  width: fit-content !important;
}
/* [2] 버튼 본체: 디자인 및 여백 설정 */
.notion-button > a {
  background-color: #37352f !important;
  color: #ffffff !important;
  border: 0px solid #e1e1e1 !important; 
  padding: 8px 16px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
/* [3] 글자 크기 및 색상 강제 */
.notion-button > a,
.notion-button > a * {
  font-size: 14px !important;   
  font-weight: 500 !important;         
  color: #ffffff !important;           
  -webkit-text-fill-color: #ffffff !important;
  line-height: 1.2 !important;        
}
@media (max-width: 768px) {
  .notion-button {
    margin-top: 20px !important;
    margin-bottom: 6px !important;
  }
  .notion-button > a {
    padding: 8px 18px !important; 
  }
}
/*==========================================
06 ✅ 인터랙티브 노션 버튼 (브라운 콜아웃)
==========================================*/
/* 📌type2 -브라운 콜아웃 : 버튼 full wide */
/* 콜아웃 투명화 (토글, 불렛 없을 때만) */
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])):has(.notion-button) {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 10px auto !important; 
    border-radius: 0px !important;
}
/* 브라운 콜아웃은 하얀 박스 유지 (토글, 불렛 없을 때만) */
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])):not(:has(.notion-button)) {
    background-color: #ffffff !important; 
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    color: #37352f !important; 
    display: block !important;
}
/* 콜아웃 내부 아이콘 숨기기 (공통, 토글, 불렛 없을 때만) */
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-callout__icon {
    display: none !important;
}
/* 여백 정밀 교정*/
/* [1] 주석용 인라인 코드 숨김 (토글, 불렛 없을 때만) */
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])):has(code) code:not([class*="blue"] *) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}
/* [2] 버튼 위 노션 빈 단락(p) 공백 삭제 (토글, 불렛 없을 때만) */
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-callout__content > p:has(+ .notion-button),
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-callout__content > p:has(+ .notion-column-list) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-callout__content > div:empty:has(+ .notion-button),
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-callout__content > div:empty:has(+ .notion-column-list) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
/* [3] 2컬럼 버튼 칼럼 간격 (토글, 불렛 없을 때만) */
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])):has(code) > .notion-callout__content > .notion-column-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important; 
    width: 100% !important;
}
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])):has(code) .notion-column {
    width: 50% !important;
    min-width: 45% !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* [4] 콜아웃 내부의 버튼을 확장 및 디자인 통일 (토글, 불렛 없을 때만) */
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-button {
    width: 100% !important;
    max-width: 1300px !important;
}
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-button > a {
    width: 100% !important;
    padding: 15px 0px !important; 
    min-height: auto !important; 
    background-color: #37352f !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
/* [5] 버튼 글자 스타일 강제 적용 (토글, 불렛 없을 때만) */
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-button > a span,
.notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-button > a div {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
@media (max-width: 768px) {
  .notion-button > a,
  .notion-button > a *,
  .notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-button > a span,
  .notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-button > a div {
    font-size: 13px !important; 
  }
  .notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) .notion-button > a {
    min-height: 40px !important; 
    border-radius: 8px !important; 
    padding: 0 20px !important; 
    border: none !important;        
    outline: none !important;
    background-color: #37352f !important;
  }
  /* 모바일 위아래 여백 */
  .notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])) {
    margin-top: 10px !important;     
    margin-bottom: 5px !important; 
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* 모바일 버튼 2칼럼 간격 좁히기 */
  .notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])):has(code) > .notion-callout__content > .notion-column-list {
    gap: 8px !important;            
  }
  .notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])):has(code) .notion-column {
    width: 50% !important;
    min-width: 40% !important; 
  }
  /* 보라색 콜아웃 내부 좌우 여백 최적화 */
  .notion-callout[class*="brown"]:not(:has(blockquote)):not(:has(.notion-toggle)):not(:has(li)):not(:has([class*="bulleted"])):has(code) {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}
/*===========================================
📌type3 브라운 콜아웃 + 인용(Quote) 
회색 외곽선 + 흰색 바탕 + 노션 블랙 글자*/
/* 1. 버튼스타일 */
.notion-callout[class*="brown"]:has(blockquote) .notion-button > a,
.notion-callout[class*="brown"]:has(.notion-quote) .notion-button > a {
    background-color: #ffffff !important;    
    border: 1px solid #e1e1e1 !important;    
    border-radius: 10px !important;
    padding: 15px 0px !important; 
    min-height: auto !important; 
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* 2. 글자컬러 */
.notion-callout[class*="brown"]:has(blockquote) .notion-button > a span,
.notion-callout[class*="brown"]:has(blockquote) .notion-button > a div,
.notion-callout[class*="brown"]:has(blockquote) .notion-button > a *,
.notion-callout[class*="brown"]:has(.notion-quote) .notion-button > a span,
.notion-callout[class*="brown"]:has(.notion-quote) .notion-button > a div,
.notion-callout[class*="brown"]:has(.notion-quote) .notion-button > a * {
    color: #37352f !important;
    -webkit-text-fill-color: #37352f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
/* 3. 인용(Quote) 숨김 */
.notion-callout[class*="brown"]:has(blockquote) blockquote,
.notion-callout[class*="brown"]:has(.notion-quote) .notion-quote {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}
@media (max-width: 768px) {
    .notion-callout[class*="brown"]:has(blockquote) .notion-button > a,
    .notion-callout[class*="brown"]:has(.notion-quote) .notion-button > a {
        background-color: #ffffff !important;
        border: 1px solid #e1e1e1 !important;
        min-height: 40px !important; 
        border-radius: 8px !important; 
        padding: 0 20px !important; 
    }
    /* 모바일 글자 크기(13px) 스타일 */
    .notion-callout[class*="brown"]:has(blockquote) .notion-button > a span,
    .notion-callout[class*="brown"]:has(blockquote) .notion-button > a div,
    .notion-callout[class*="brown"]:has(.notion-quote) .notion-button > a span,
    .notion-callout[class*="brown"]:has(.notion-quote) .notion-button > a div {
        font-size: 12px !important;
        color: #37352f !important;
        -webkit-text-fill-color: #37352f !important;
    }
    /* 인용 트리거 사용 시에도 2칼럼*/
    .notion-callout[class*="brown"]:has(blockquote) > .notion-callout__content > .notion-column-list,
    .notion-callout[class*="brown"]:has(.notion-quote) > .notion-callout__content > .notion-column-list {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: nowrap !important;   
        gap: 8px !important;           
        width: 100% !important;
    }
    .notion-callout[class*="brown"]:has(blockquote) .notion-column,
    .notion-callout[class*="brown"]:has(.notion-quote) .notion-column {
        width: 50% !important;
        min-width: 40% !important; 
    }
    .notion-callout[class*="brown"]:has(blockquote),
    .notion-callout[class*="brown"]:has(.notion-quote) {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}
