/* 원문 로그는 줄바꿈을 바꾸지 않고 가로 스크롤로 읽는다. */
.md-typeset details { margin-block: 1.25rem; }
.md-typeset img { height: auto; }
.md-typeset pre > code { tab-size: 2; }

/* 넓은 화면에서는 양쪽 여백을 줄여 본문 공간을 확보한다. */
.md-grid { max-width: 1600px; }
.md-typeset { line-height: 1.85; }
.md-typeset h2 { margin-top: 2.5em; }
.md-typeset h3 { margin-top: 1.8em; }

/* 인라인 코드만 강조하고 여러 줄 코드와 로그의 구문 강조는 유지한다. */
.md-typeset :not(pre) > code {
  color: #b42318;
  background-color: rgba(180, 35, 24, 0.08);
}
[data-md-color-scheme="slate"] .md-typeset :not(pre) > code {
  color: #ff9096;
  background-color: rgba(255, 144, 150, 0.10);
}

.md-typeset .mermaid { overflow-x: auto; text-align: center; }
.md-typeset__table { display: block; }
.md-typeset table:not([class]) { display: table; width: 100%; }

/* 1220px 미만: 왼쪽 메뉴는 테마의 메뉴 버튼으로 열고 오른쪽 목차는 숨긴다. */
@media screen and (max-width: 76.234375em) {
  .md-sidebar--secondary:not([hidden]) { display: none; }
}
