[data-md-color-scheme=default] {
    --md-default-fg-color--light: rgb(0, 0, 0) !important;
}

/* 1. Erase the title, logo, and 전등 of homepage */
.md-header__title {
    display: none !important;
}
.md-header__button.md-logo {
    display: none !important;
}
.md-header__button[for*="__palette"] {
  display: none !important;
}
/* ⭐️ TOC 없애고 싶을때 */
.md-sidebar--secondary {
  display: none !important;
}

/* 2. ⭐️ Redefine a margin for 네비게이터와 TOC */
:root{
    --edge-gap-left: 4px;  /* 왼쪽 화면 끝과 메뉴 사이 거리 */
    --edge-gap-right: 4px;  /* 오른쪽 화면 끝과 TOC 사이 거리 */
    --sidebar-w-left: 240px;  /* 왼쪽 사이드바 폭 */
    --sidebar-w-right: 240px;  /* 오른쪽 사이드바 폭 */
}
@media screen and (min-width: 1240px){
  /* 왼쪽 사이드바 (Navigator) */
  .md-sidebar--primary{
      position: fixed !important;
      top: var(--md-header-height) !important;
      left: var(--edge-gap-left) !important;
      width: var(--sidebar-w-left) !important;
  }
  
  /* 오른쪽 사이드바 (TOC) */
  .md-sidebar--secondary{
      position: fixed !important;
      top: var(--md-header-height) !important;
      right: var(--edge-gap-right) !important;
      width: var(--sidebar-w-right) !important;
  }
  
  /* ⭐️ 본문 여백은 각각 다르게 계산 */
  .md-content{
      margin-left: calc(var(--sidebar-w-left) + var(--edge-gap-left) + 0px) !important;
      margin-right: calc(var(--sidebar-w-right) + var(--edge-gap-right) + 0px) !important;
  }
}

/* 3. 데스크톱에서만 검색 search 버튼을 좌상단으로 이동 */
@media screen and (min-width: 1240px){
  /* 헤더 정렬에 얽매이지 않도록 재설정 */
  .md-header__inner .md-search { margin-left: 0 !important; }

  /* 검색 컴포넌트를 뷰포트 기준으로 고정 */
  .md-search{
      position: fixed !important;
      top: 4px !important;
      right: 8px !important;
  }
}
/* 그냥 search 버튼도 없애기
.md-header__button.md-icon[for*="__search"],
.md-search {
  display: none !important;
} */

/* 4. 이미지 중앙 정렬
.md-typeset p img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
} */

/* 5. 네비게이터 옆의 작은 오른쪽 화살표 제거 */
/* Remove right chevrons from all sidebar nav items (top + nested) */
.md-nav__link::after,
.md-nav__link .md-nav__icon,
.md-nav__item .md-nav__link .md-nav__icon,
.md-nav__icon {            /* covers older/newer Material builds */
  display: none !important;
  visibility: hidden !important;
}
/* Tighten spacing after removing the icon */
.md-nav__link {
  padding-right: 0 !important;
}
.md-sidebar .md-nav__link::after,
.md-sidebar .md-nav__link .md-nav__icon,
.md-sidebar .md-nav__icon {
  display: none !important;
}

/* 6. header, footer 모두 최소, 같은 크기 */
.md-header {
  height: 0px !important;  /* default */
}
.md-footer {
  min-height: 0px !important;
}

/* 7. footer안에 copyright 문구 정중앙으로 */
.md-footer .md-copyright {
  margin: 0 auto !important;
  text-align: center !important;
  width: 100%;
}

/* 8. Search 버튼 다시 정의하기 */
.md-search__form {
  background-color: #ffffff !important;
  border: 1px solid #000 !important;    /* black outline */
  border-radius: 0 !important;          /* square corners */
  box-shadow: none !important;          /* remove glow */
}
/* Make the placeholder (the “Search” word) black */
.md-search__input::placeholder {
  color: #000 !important;
  opacity: 0.2 !important;  /* ensure it's not faded */
  font-size: normal;
}
/* Hide the magnifier icon */
.md-search__icon {
  display: none !important;
}

/* 9. 코드 블럭 내부의 복사하기 아이콘 색깔 통일 */
.md-clipboard {
  color: #000 !important;
  opacity: 0.2 !important;
}
.md-clipboard:hover {
  color: #000 !important;
  opacity: 1 !important;
}

/* 10. Signature */
@media screen and (min-width: 1240px){
  body::before {
    content: "";
    position: fixed;
    top: 52px;
    left: 16px;
    width: 400px;
    height: 48px;
    background-image: url("../assets/signature-italianno.png");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1000 !important;
    pointer-events: none;
  }
}
/* Rearrange the left sidebar */
.md-sidebar--primary .md-sidebar__scrollwrap {
  padding-top: 70px !important;
}

/* 11. Search magnifier icon 없애기 */
.md-search-result__icon,
.md-search-result__icon * {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 12. Annotation box 다시 정의하기 */
/* Target the annotation tooltip wrapper */
.md-tooltip__inner,
.md-tooltip--inline .md-tooltip__inner {
  border: 1px solid #000 !important;
  border-radius: 0 !important;          /* square corners */
  box-shadow: none !important;          /* remove glow */
}

/* 12. Annotation 아이콘 클릭할 경우, 색깔 바꾸기 */
.md-typeset .md-annotation__index:focus,
.md-typeset .md-annotation__index:active,
.md-typeset .md-annotation__index[data-md-state="active"] {
  color: #000000 !important;
  border-color: #000000 !important;
}
/* 핵심 */
.md-typeset .md-annotation__index {
  --md-accent-fg-color: #000000 !important;
}

/* 13. Adjust the thickness of the bar from tab (표) */
.js .md-typeset .tabbed-labels::before {
  height: 2px !important;  /* thickness of the bar: {2px: bold, 1px: normal} */
  background-color: currentColor !important;  /* optional: match text color */
}

/* 14. 잘린 텍스트 밀어서 보여주는 drag bar 검은색으로 바꾸기*/
.md-typeset .highlight,
.md-typeset .highlighttable,
.md-typeset pre,
.md-typeset code {
  --md-accent-fg-color: #000000 !important;  /* black */
}

/* 15. Hide LEFT NAV scrollbar, but keep scrolling */
.md-sidebar__scrollwrap {
  -ms-overflow-style: none;  /* IE / old Edge */
  scrollbar-width: none;  /* Firefox */
}
.md-sidebar__scrollwrap::-webkit-scrollbar {
  display: none;  /* Safari / Chrome / new Edge */
}

/* 16. CV */
.cv-row {
  display: grid;
  grid-template-columns: 108px auto;
  margin-bottom: 4px;
}
.cv-presentations {
  font-weight: bold;
  margin-bottom: 4px;
}
