/* MoonSonics Web Template 0.26.92 — Console theme-token parity override.
   Loaded after style.css on purpose so third-party/global code styles cannot restore
   the old grey-chip appearance. This targets inline code only, never pre > code. */
.ms-article-content :not(pre) > code {
  font-family: "SF Mono", "JetBrains Mono", "Fira Code", monospace !important;
  font-size: 0.9em !important;
  line-height: 1.25 !important;
  color: var(--ms-code-color, var(--ms-accent)) !important;
  background: var(--ms-bg-tertiary, #151515) !important;
  border: 1px solid var(--ms-border, #262626) !important;
  border-radius: 5px !important;
  padding: 0.15em 0.45em !important;
  box-shadow: none !important;
  vertical-align: baseline !important;
}

/* FIX MS-CROSS-002: Some published articles inject a late, ID-specific
   #main-content article table code { background-color:rgba(127,127,127,.12)!important }
   (observed in Chrome DevTools on /archives/wei-ming-ming-wen-zhang).
   That selector outranks the class-only rule above, even with !important.
   Match the real article container with greater specificity while keeping
   all non-pre inline code tied to the same Halo theme token as the editor. */
#main-content article .ms-article-content :not(pre) > code {
  color: var(--ms-code-color, var(--ms-accent)) !important;
  background-color: var(--ms-bg-tertiary, #151515) !important;
  border: 1px solid var(--ms-border, #262626) !important;
  padding: 0.15em 0.45em !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}
