/* ========== CSS Variables & Themes ========== */
:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #21262d;
  --fg: #e6edf3;
  --fg2: #8b949e;
  --fg3: #484f58;
  --accent: #58a6ff;
  --accent2: #1f6feb;
  --accent-glow: rgba(88, 166, 255, 0.15);
  --border: #30363d;
  --code-bg: #161b22;
  --success: #3fb950;
  --warn: #d29922;
  --err: #f85149;
  --radius: 8px;
  --transition: 0.25s ease;
  --font-size: 16px;
  --md-font-size: 16px;
  --progress-color: linear-gradient(90deg, #58a6ff, #a371f7, #f778ba);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg2: #f6f8fa;
  --bg3: #eaeef2;
  --fg: #1f2328;
  --fg2: #656d76;
  --fg3: #afb8c1;
  --accent: #0969da;
  --accent2: #0550ae;
  --accent-glow: rgba(9, 105, 218, 0.1);
  --border: #d0d7de;
  --code-bg: #f6f8fa;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ========== Progress Bar ========== */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 1000;
  background: var(--progress-color);
  width: 0%;
  transition: width 0.1s linear;
}

/* ========== Header ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 24px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  opacity: 0.6;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--fg2);
}

.seal-container {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 4px;
  overflow: visible;
}

.seal-container canvas {
  display: block;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

#btn-lang {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 4px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  margin-right: 8px;
}

.controls button {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 5px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.controls button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ========== Input Area ========== */
.input-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.input-area input[type="text"] {
  flex: 1;
  min-width: 280px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 0.9rem;
  outline: none;
  transition: border var(--transition);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.input-area input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-area input[type="text"]::placeholder {
  color: var(--fg3);
}

.btn-primary {
  background: var(--accent2);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg3);
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#file-input {
  display: none;
}

/* ========== Meta & Tags ========== */
.meta-bar {
  padding: 8px 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--fg2);
  display: none;
  align-items: center;
  gap: 16px;
}

.meta-bar.visible {
  display: flex;
  flex-wrap: wrap;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0.85;
}

.tag:hover {
  opacity: 1;
  transform: scale(1.05);
}

.tag.active {
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
}

/* ========== Layout ========== */
.container {
  display: flex;
  min-height: calc(100vh - 130px);
}

/* ========== TOC Sidebar ========== */
.toc-sidebar {
  width: 260px;
  min-width: 260px;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 90px;
  height: calc(100vh - 90px);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg2);
}

.toc-toggle {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--fg2);
  font-size: 1rem;
}

.toc-list {
  list-style: none;
  flex: 1 1 0;
  overflow-y: auto;
  min-height: 60px;
  font-size: var(--md-font-size);
}

.toc-list li {
  padding: 4px 0 4px 0;
  font-size: 0.84rem;
  border-left: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.toc-list li:hover {
  color: var(--accent);
}

.toc-list li.active {
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.toc-list li[data-depth="1"] {
  padding-left: 8px;
}

.toc-list li[data-depth="2"] {
  padding-left: 20px;
  font-size: 0.82rem;
}

.toc-list li[data-depth="3"] {
  padding-left: 32px;
  font-size: 0.8rem;
  color: var(--fg2);
}

/* ========== File List in Sidebar ========== */
.file-list-section {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  flex: 1 1 0;
  overflow-y: auto;
  min-height: 60px;
}

.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg2);
}

.file-list-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

#file-list-refresh {
  display: none;
  font-size: 0.85rem;
}

.file-list-path {
  display: none;
  font-size: 0.75rem;
  color: var(--fg3);
  margin-bottom: 8px;
  word-break: break-all;
  line-height: 1.4;
  padding: 4px 8px;
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.file-list {
  list-style: none;
}

.file-list li {
  padding: 5px 8px;
  font-size: 0.83rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg2);
}

.file-list li:hover {
  background: var(--bg3);
  color: var(--accent);
}

.file-list li.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.file-list li .file-icon {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.file-list li .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list-empty {
  font-size: 0.82rem;
  color: var(--fg3);
  text-align: center;
  padding: 16px 8px;
}

/* ========== Shortcuts Hint ========== */
.shortcuts-hint {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg3);
}

.shortcuts-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--fg2);
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.shortcut-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.shortcut-row kbd {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  padding: 1px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: -apple-system, 'SF Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg2);
  white-space: nowrap;
}

/* ========== Content Area ========== */
.content-area {
  flex: 1;
  padding: 32px 48px;
  max-width: 860px;
  margin: 0 auto;
}

/* ========== Drop Zone ========== */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 60px 24px;
  text-align: center;
  color: var(--fg3);
  transition: all var(--transition);
  margin-top: 20px;
  cursor: pointer;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}

.drop-zone .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.drop-zone p {
  font-size: 0.95rem;
}

.drop-zone .hint {
  font-size: 0.8rem;
  margin-top: 8px;
}

/* ========== Markdown Styles ========== */
.md-body {
  font-size: var(--md-font-size);
}

.md-body h1,
.md-body h2,
.md-body h3,
.md-body h4,
.md-body h5,
.md-body h6 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: none;
  position: relative;
}

.md-body h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.3em;
}

.md-body h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25em;
}

.md-body h3 {
  font-size: 1.25rem;
}

.md-body h4 {
  font-size: 1.1rem;
}

.md-body p {
  margin-bottom: 1em;
}

.md-body a {
  color: var(--accent);
  text-decoration: none;
}

.md-body a:hover {
  text-decoration: underline;
}

.md-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 8px 0;
}

.md-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 8px 16px;
  margin: 12px 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--fg2);
}

.md-body code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88em;
  border: 1px solid var(--border);
}

.md-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
  position: relative;
}

.md-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
}

.md-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}

.md-body th,
.md-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.md-body th {
  background: var(--bg3);
  font-weight: 600;
}

.md-body tr:nth-child(even) {
  background: var(--bg2);
}

.md-body ul,
.md-body ol {
  padding-left: 1.8em;
  margin-bottom: 1em;
}

.md-body li {
  margin-bottom: 0.3em;
}

.md-body li input[type="checkbox"] {
  margin-right: 6px;
}

.md-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.md-body del {
  color: var(--fg3);
}

/* ========== Highlight in search ========== */
mark.search-hl {
  background: rgba(210, 153, 34, 0.35);
  color: inherit;
  border-radius: 2px;
  padding: 1px 2px;
}

mark.search-hl.current {
  background: rgba(210, 153, 34, 0.7);
}

mark.tag-hl {
  background: rgba(88, 166, 255, 0.2);
  border-radius: 2px;
  padding: 1px 0;
}

/* ========== Search Box ========== */
.search-box {
  display: none;
  position: fixed;
  top: 12px;
  right: 24px;
  z-index: 200;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  align-items: center;
  gap: 8px;
}

.search-box.visible {
  display: flex;
}

.search-box input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--fg);
  font-size: 0.85rem;
  outline: none;
  width: 220px;
}

.search-box input:focus {
  border-color: var(--accent);
}

.search-box .search-info {
  font-size: 0.78rem;
  color: var(--fg2);
  white-space: nowrap;
}

.search-box button {
  background: none;
  border: none;
  color: var(--fg2);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 4px;
}

.search-box button:hover {
  color: var(--fg);
}

/* ========== Loading & Error ========== */
.loading {
  display: none;
  text-align: center;
  padding: 40px;
  color: var(--fg2);
}

.loading.visible {
  display: block;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-msg {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid var(--err);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--err);
  margin: 12px 0;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* ========== Nav History ========== */
.nav-history {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-history.visible {
  display: flex;
}

.nav-history button {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--fg2);
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.nav-history button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-history button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ========== Mobile TOC Toggle ========== */
.toc-mobile-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent2);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
}

/* ========== Mobile Header Toggle ========== */
.header-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: var(--radius);
  margin-left: auto;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-toggle-btn:hover {
  background: var(--bg3);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .toc-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 150;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .toc-sidebar.mobile-open {
    left: 0;
  }

  .toc-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content-area {
    padding: 20px 16px;
  }

  .header-top {
    flex-wrap: wrap;
    gap: 8px;
  }

  .input-area input[type="text"] {
    min-width: 180px;
  }

  /* Mobile header toggle */
  .header-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  header.collapsed .controls,
  header.collapsed .input-area {
    display: none;
  }

  header.collapsed {
    padding: 8px 16px;
  }

  header.collapsed .header-top {
    margin-bottom: 0;
  }
}

/* ========== Image Hint Bar ========== */
.img-hint-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 12px 0;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--fg);
  animation: fadeIn 0.3s ease;
}

.img-hint-bar.visible {
  display: flex;
  flex-wrap: wrap;
}

.img-hint-bar button#img-hint-btn {
  background: var(--accent2);
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}

.img-hint-bar button#img-hint-btn:hover {
  background: var(--accent);
}

.img-hint-close {
  background: none;
  border: none;
  color: var(--fg2);
  cursor: pointer;
  font-size: 1rem;
  margin-left: auto;
  padding: 2px 6px;
}

.img-hint-close:hover {
  color: var(--fg);
}

/* ========== Image Lightbox ========== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.visible {
  display: flex;
  animation: lbFadeIn 0.25s ease;
}

@keyframes lbFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.md-body img {
  cursor: zoom-in;
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.md-body {
  animation: fadeIn 0.4s ease;
}

/* ========== highlight.js themes ========== */
/* Dark theme (default) - GitHub Dark */
.hljs {
  background: transparent !important;
  padding: 0 !important;
}

.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  color: #ff7b72
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  color: #d2a8ff
}

.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id,
.hljs-variable {
  color: #79c0ff
}

.hljs-meta .hljs-string,
.hljs-regexp,
.hljs-string {
  color: #a5d6ff
}

.hljs-built_in,
.hljs-symbol {
  color: #ffa657
}

.hljs-code,
.hljs-comment,
.hljs-formula {
  color: #8b949e
}

.hljs-name,
.hljs-quote,
.hljs-selector-pseudo,
.hljs-selector-tag {
  color: #7ee787
}

.hljs-subst {
  color: #c9d1d9
}

.hljs-section {
  color: #1f6feb;
  font-weight: 700
}

.hljs-bullet {
  color: #f2cc60
}

.hljs-emphasis {
  color: #c9d1d9;
  font-style: italic
}

.hljs-strong {
  color: #c9d1d9;
  font-weight: 700
}

.hljs-addition {
  color: #aff5b4;
  background-color: #033a16
}

.hljs-deletion {
  color: #ffdcd7;
  background-color: #67060c
}

/* Light theme overrides - GitHub Light */
[data-theme="light"] .hljs-doctag,
[data-theme="light"] .hljs-keyword,
[data-theme="light"] .hljs-meta .hljs-keyword,
[data-theme="light"] .hljs-template-tag,
[data-theme="light"] .hljs-template-variable,
[data-theme="light"] .hljs-type,
[data-theme="light"] .hljs-variable.language_ {
  color: #d73a49
}

[data-theme="light"] .hljs-title,
[data-theme="light"] .hljs-title.class_,
[data-theme="light"] .hljs-title.class_.inherited__,
[data-theme="light"] .hljs-title.function_ {
  color: #6f42c1
}

[data-theme="light"] .hljs-attr,
[data-theme="light"] .hljs-attribute,
[data-theme="light"] .hljs-literal,
[data-theme="light"] .hljs-meta,
[data-theme="light"] .hljs-number,
[data-theme="light"] .hljs-operator,
[data-theme="light"] .hljs-selector-attr,
[data-theme="light"] .hljs-selector-class,
[data-theme="light"] .hljs-selector-id,
[data-theme="light"] .hljs-variable {
  color: #005cc5
}

[data-theme="light"] .hljs-meta .hljs-string,
[data-theme="light"] .hljs-regexp,
[data-theme="light"] .hljs-string {
  color: #032f62
}

[data-theme="light"] .hljs-built_in,
[data-theme="light"] .hljs-symbol {
  color: #e36209
}

[data-theme="light"] .hljs-code,
[data-theme="light"] .hljs-comment,
[data-theme="light"] .hljs-formula {
  color: #6a737d
}

[data-theme="light"] .hljs-name,
[data-theme="light"] .hljs-quote,
[data-theme="light"] .hljs-selector-pseudo,
[data-theme="light"] .hljs-selector-tag {
  color: #22863a
}

[data-theme="light"] .hljs-subst {
  color: #24292e
}

[data-theme="light"] .hljs-section {
  color: #005cc5;
  font-weight: 700
}

[data-theme="light"] .hljs-bullet {
  color: #735c0f
}

[data-theme="light"] .hljs-emphasis {
  color: #24292e;
  font-style: italic
}

[data-theme="light"] .hljs-strong {
  color: #24292e;
  font-weight: 700
}

[data-theme="light"] .hljs-addition {
  color: #22863a;
  background-color: #f0fff4
}

[data-theme="light"] .hljs-deletion {
  color: #b31d28;
  background-color: #ffeef0
}