.markdown-rendered img[alt*="float-right"] {
  float: right !important;
  max-width: 400px;
  margin-left: 2.5rem;
  margin-bottom: 4rem;
}

.markdown-rendered img[alt*="float-left"] {
  float: left !important;
  max-width: 400px;
  margin-right: 2.5rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

/* Rounded images */
.markdown-preview-view img {
  border-radius: 12px;
  overflow: hidden;
  display: inline-block;
}
.theme-dark .markdown-rendered img[alt*="invert"] {
  filter: invert(0.88);
}
/* keep images responsive */
.markdown-preview-view img {
  display: block;
  max-width: 100%;
  height: auto;
}
.external-link {
  background-image: none !important;
  padding-right: 0 !important;
}

/* ── Light mode ── */
.published-container {
  --page-width: 800px;
  background: #FFF7E5;
}
.site-root {
  background-color: #FFF7E5;
  min-height: 100vh;
}
.markdown-preview-sizer {
  background-color: #ffffff;
  margin: 2rem auto;
  border: 2px solid #ddd;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* ── Dark mode (Obsidian theme class) ── */
.theme-dark .published-container {
  background: #1e1e2e;
}
.theme-dark .site-root {
  background-color: #1e1e2e;
}
.theme-dark .markdown-preview-sizer {
  background-color: rgba(30, 30, 30, 1);
  border-color: #444466;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ── Dark mode (OS-level fallback) ── */
@media (prefers-color-scheme: dark) {
  .published-container {
    background: #1e1e2e;
  }
  .site-root {
    background-color: #1e1e2e;
  }
  .markdown-preview-sizer {
    background-color: rgba(30, 30, 30, 1);
    border-color: #444466;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}


/* Get rid of the horizontal line in headings */
h1, h2, h3, h4, h5, h6 {
  border-bottom: none !important;
}

.subtitle {
  display: flex; 
  font-size:13px; 
  letter-spacing: 0.5px; 
 }

.subtitle-centre {
  display: flex; 
  font-size:13px; 
  letter-spacing: 0.5px; 
  align-items: center; 
  justify-content: center;
}

.heading {
  font-family: monospace;
}