html {
  scrollbar-gutter: stable;
}

@font-face {
  font-family: 'FiraMonoSubset';
  src: url('https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtgJv7X.ttf') format('truetype');
  unicode-range: U+0020-007E; /* ASCII 영역만 */
}
body {
  font-family: 'FiraMonoSubset', 'Pretendard', 'Noto Sans KR',
               'Apple SD Gothic Neo', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, monospace;
  background: #fff;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.terminal .logo .cmd-gray {
  color: #727578;
}


/* 공통 링크 */
a {
  color: #1a95e0;
}

/* 상단 메뉴 active */
nav a.active {
  color: #000;
  font-weight: bold;
}

/* 페이지네이션 공통 */
nav.pagination {
  color: #1a95e0;
  margin: 2rem 0;
  text-align: center;
}

nav.pagination ul {
  display: inline-flex !important;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav.pagination li {
  margin: 0 0.5rem;
}

nav.pagination a {
  text-decoration: none;
  color: #1a95e0;
}

nav.pagination a:hover {
  color: #ffffff;
}

/* 페이지네이션 active */
nav.pagination li.active > a {
  color: #000;
  font-weight: bold;
}

/* ───── 다크 모드 ───── */
html.dark-mode {
  background: #111;
  color: #eee;
}
html.dark-mode .terminal {
  background: #111;   /* 또는 #000 */
  color: #eee;
}
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
  color: #eee;
}

html.dark-mode a {
  color: #1a95e0;
}

html.dark-mode a:hover {
  color: #ffffff;
}

/* 상단 메뉴 active (다크 모드) */
html.dark-mode nav a.active {
  color: #fff;
  font-weight: bold;
}

/* 페이지네이션 active (다크 모드) */
html.dark-mode nav.pagination li.active > a {
  color: #fff;
  font-weight: bold;
}
.prompt-symbol {
  color: var(--font-color);
}
html.dark-mode .prompt-symbol {
  color: #fff;
}

.ascii-art {
  font-family: Consolas, 'Courier New', monospace;
  white-space: pre;
  line-height: 1.2;
  font-size: 14px;
  background-color: transparent;
  border: none;
  color: inherit;
}

/* ===================== */
/*  Highlight.js Override */
/* ===================== */

/* inline code 블록에서 넣는 백틱 제거 */
code::before,
code::after {
  content: "" !important;
}

/* highlight.js 적용되는 코드 */
pre code.hljs {
  padding: 1rem !important;
  display: block !important;
  background: #1e1e1e !important;
  color: #f8f8f2 !important;
  border: none !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* pre 자체에 들어간 기본 테마 배경/테두리 제거 */
pre {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/*글 제목*/
.post-item h2 {
  background: rgba(136, 136, 136, 0.2);
  padding: 0.1rem;
  display: block; /* 줄 전체 배경 */
}

/*이미지 사이즈 조정*/
.components main article img {
  display: block;
  margin: 5px auto;
  width: auto;
  max-width: 100%;
  height: auto;
}
.components main article img[width],
.components main article img[style*="width"] {
  max-width: none;
}

