/* Tweaks */

/* Earthy palette — light mode */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #5a4a3b;           /* earthy brown */
  --md-primary-fg-color--light: #7a6351;    /* lighter brown */
  --md-primary-fg-color--dark: #3f3329;     /* darker brown */
  --md-accent-fg-color: #b7893f;            /* muted amber */
  --md-default-bg-color: #f7f4f0;           /* warm neutral */
  --md-default-fg-color--light: #6f6a65;
  --md-typeset-a-color: var(--md-accent-fg-color);
}

/* Earthy palette — dark mode */
[data-md-color-scheme="slate"] {
  --md-hue: 28;
  --md-primary-fg-color: #7a6651;
  --md-primary-fg-color--light: #9a8468;
  --md-primary-fg-color--dark: #5a4a3b;
  --md-accent-fg-color: #c99a4d;
  --md-default-bg-color: #1b1917;
  --md-default-fg-color--light: #b0a8a0;
}

/* Header — palette toggle alignment (search centering skipped — Material default) */
.md-header__option {
  display: flex;
  align-items: center;
}

/* Body copy — slightly more breathing room */
.md-typeset {
  line-height: 1.7;
}

.md-typeset hr {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset hr {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Sidebar folder labels (My Journey, Resources, Basics) */
.md-nav--primary label.md-nav__link {
  font-size: 0.95rem;
  font-weight: 700;
}

.md-nav--primary .md-nav__item--section + .md-nav__item--section {
  margin-top: 1rem;
}

.md-footer-copyright a,
.md-footer-links a,
.md-copyright a {
  color: var(--md-footer-fg-color--light);
  text-decoration: none;
}

.md-footer-copyright a:hover,
.md-footer-links a:hover,
.md-copyright a:hover {
  color: var(--md-footer-fg-color);
}

/* Footer meta row — site links left, copyright + license right */
.md-footer-meta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.md-footer-links {
  font-size: 0.7rem;
}

.md-copyright {
  margin-left: auto;
  font-size: 0.7rem;
  text-align: right;
}

.md-footer-links__sep {
  margin: 0 0.5rem;
  opacity: 0.6;
}

@media screen and (max-width: 48em) {
  .md-footer-meta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .md-copyright {
    margin-left: 0;
    text-align: left;
  }
}

/* Homepage hero — full width below sticky tabs */
.notes-hero {
  background-image:
    linear-gradient(rgba(30, 24, 18, 0.40), rgba(30, 24, 18, 0.47)),
    url("../assets/images/hero-bg.png");
  background-size: cover;
  background-position: top;
  color: #fff;
}

.notes-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  padding: 2rem 1rem;
  text-align: center;
}

.notes-hero__title {
  margin: 0;
  font-size: 1.4rem; /* 20% smaller */
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.notes-hero__tagline {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 0.8rem; /* 20% smaller */
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

@media screen and (min-width: 60em) {
  .notes-hero__inner {
    min-height: 17rem;
    padding: 2.5rem 1rem;
  }

  .notes-hero__title {
    font-size: 2.0rem; /* 20% smaller */
  }

  .notes-hero__tagline {
    font-size: 0.9rem; /* 20% smaller */
  }
}

.md-header__topic .md-ellipsis a {
  color: inherit;
  text-decoration: none;
}

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

/* Shared disclaimer block after the final horizontal rule on each page */
.md-typeset > hr:last-of-type ~ p {
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.5;
}

/* Footer spacing: add space above and below the meta row */
.md-footer-meta { padding-top: 0.85rem; }
.md-footer { padding-bottom: 0.85rem; }

/* Logo anchor removed in header.html; no CSS needed */

/* Slight extra breathing room inside the top header panel */
.md-header__inner {
  padding-top: 0.75rem;
  padding-left: 0.4rem;
}

/* Space below Home / My Journey / Resources */
.md-tabs {
  padding-bottom: 0.75rem;
}

/* Align the site title with the first tab label */
.md-header__title { margin-left: 0 !important; }

@media screen and (min-width: 60em) {
  .md-header__title { margin-left: 0.45rem !important; }
}
