/* -------------------------------------------------------
   Global: Typography & Layout
-------------------------------------------------------- */

.md-typeset {
  font-family: Inter, Roboto, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 0.75rem;
  max-width: 800px;
}

/* -------------------------------------------------------
   Heading Colors — Matching Your Obsidian Theme
-------------------------------------------------------- */

.md-typeset h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--md-default-fg-color); /* normal text color */
  margin-top: 1.2rem;
}

.md-typeset h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--md-default-fg-color); /* normal text color */
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.md-typeset h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2e80f2; /* BLUE */
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.md-typeset h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e5b567; /* YELLOW */
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.md-typeset h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #e83e3e; /* RED */
  margin-top: 1.3rem;
  margin-bottom: 0.3rem;
}

.md-typeset h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #8aa1b5; /* muted */
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

/* -------------------------------------------------------
   Links
-------------------------------------------------------- */

.md-typeset a {
  color: #8ec7ff;
  text-decoration: underline;
}
.md-typeset a:hover {
  color: #bfe0ff;
}

/* -------------------------------------------------------
   Blockquotes — now with updated text color
-------------------------------------------------------- */

.md-typeset blockquote {
  border-left: 4px solid #4aa8ff;
  padding-left: 1rem;
  margin-left: 0;
  font-style: italic;
  color: #3ea6b1; /* UPDATED */
  background: rgba(74, 168, 255, 0.05);
}

/* -------------------------------------------------------
   Code
-------------------------------------------------------- */

.md-typeset code {
  background: #24303c !important;
  color: #cfe4ff;
  border-radius: 4px;
  padding: 0.15em 0.35em;
}

.md-typeset pre > code {
  background: #162029 !important;
  display: block;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* -------------------------------------------------------
   Dark Theme Background + Foreground
-------------------------------------------------------- */

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #1c2127;
  --md-default-fg-color: #d6e1f0;
  --md-primary-fg-color: #4aa8ff;
  --md-accent-fg-color: #4aa8ff;
}

/* Slightly stronger contrast for default text */
[data-md-color-scheme="slate"] .md-typeset {
  color: #d6e1f0;
}

/* -------------------------------------------------------
   Horizontal rules
-------------------------------------------------------- */

.md-typeset hr {
  border: none;
  border-top: 1px solid #2b3542;
  margin: 2rem 0;
}

/* -------------------------------------------------------
   Image styling
-------------------------------------------------------- */

.md-typeset img {
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------------
   Tables
-------------------------------------------------------- */

.md-typeset table {
  background: #1a222b;
  border-radius: 6px;
}

.md-typeset th {
  background: #232d38;
  color: #dce8f5;
  font-weight: 600;
}

.md-typeset td,
.md-typeset th {
  border: 1px solid #2f3945 !important;
}

/* Tooltip appearance for inline footnotes */
.footnote-hover {
  position: relative;
  cursor: help;
}

.footnote-hover:hover::after {
  content: attr(title);
  position: absolute;
  left: 0;
  bottom: -2.2em;
  background: #2a3138;
  color: #e4ecf4;
  padding: 0.35em 0.6em;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.md-header__button.md-logo {
  margin: 0;
  padding: 0;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 30%;
  width: 30%;
}

/* -------------------------------------------------------
   Bold text — pink 
-------------------------------------------------------- */

.md-typeset strong,
.md-typeset b {
  color: #f07aa7;
}

.md-typeset h1 strong,
.md-typeset h2 strong,
.md-typeset h3 strong,
.md-typeset h4 strong,
.md-typeset h5 strong,
.md-typeset h6 strong {
  color: #f07aa7;
}

.md-typeset blockquote em,
.md-typeset blockquote em strong,
.md-typeset blockquote strong em {
  color: #964b67 !important;
}

/* Style the instant preview tooltip for footnotes */
.md-tooltip2__inner.md-typeset h3 {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--md-default-fg-color);
  margin: 0;
  padding: 0;
}

.md-footer-meta__inner {
  display: none;
}

.autumn {
  color: #c47a4a;
}

.spring {
  color: #559f61;
}

.summer {
  color: #d9d44a;
}

.winter {
  color: #9fe4f0;
}
