/* Darker top navigation links */
.nav__items a {
  color: #222 !important;   /* darker grey/black */
}

/* Slightly smaller (but not too small) content font */
.page__content {
  font-size: 18px;          /* balanced size */
  line-height: 1.6;
}




/* Remove the gray/white bar behind the nav */
.masthead,
.masthead .greedy-nav {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Make nav text black and keep it readable */
.masthead .site-title,
.masthead .greedy-nav a {
  color: #111 !important;      /* black */
}

/* Show which page you're on (Home/Research/Teaching/CV) */
.masthead .greedy-nav .active > a,
.masthead .greedy-nav a[aria-current="page"] {
  font-weight: 700;
  border-bottom: 2px solid #111;   /* underline current page */
}

/* Optional: slightly darker hover */
.masthead .greedy-nav a:hover {
  color: #000 !important;
}



/* Wider text column = more words per line */
.page__content > * {
  max-width: 900px !important;     /* try 900–1000px */
}

/* Keep headings and lists aligned too */
.page__content > h1,
.page__content > h2,
.page__content > h3,
.page__content > p,
.page__content > ul,
.page__content > ol,
.page__content > div {
  max-width: 900px !important;
}


/* Override overall content container width */
.page,
.page__content,
.page__content > * {
  max-width: 1000px !important;   /* adjust: 900–1000px looks good */
  margin-left: auto;
  margin-right: auto;
}

/* Make section headers flush-left (no dent) */
.page .page__inner-wrap .page__content h2,
.page .page__inner-wrap .page__content h3 {
  margin-left: 0 !important;
  padding-left: 0 !important;
  position: static !important;   /* prevents offset tricks */
  border-left: none !important;  /* just in case */
}

/* Remove the decorative bar that causes the indent */
.page .page__inner-wrap .page__content h2:before,
.page .page__inner-wrap .page__content h2::before,
.page .page__inner-wrap .page__content h3:before,
.page .page__inner-wrap .page__content h3::before {
  content: none !important;
  display: none !important;
}


/* Add spacing around em dashes inside teaching lists */
.page__content li {
  line-height: 1.6;   /* a little extra breathing room */
}

.page__content li::before {
  margin-right: 0.3em;
}

.page__content li {
  word-spacing: 0.15em;  /* slightly increases space between words, affects dash too */
}

/* Make main page titles (Research, Teaching, CV) smaller */
.page__content h1 {
  font-size: 1.1rem !important;   /* default ~2.25rem */
  font-weight: 700;               /* keep strong, but balanced */
  margin-bottom: 0.75em;          /* tighten spacing */
}

/* Make section headers (Publication, Job Market Paper, etc.) smaller */
.page__content h2 {
  font-size: 1.0rem !important;   /* default ~1.6rem */
  font-weight: 600;               /* slightly lighter than h1 */
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

/* Make top navigation links slightly smaller */
.masthead .greedy-nav a {
  font-size: 0.8rem !important;   /* default is ~1rem */
}

/* Hide Minimal Mistakes' header/title block on pages using `noindent` */
.noindent .page__header,
.noindent .page__title {
  display: none !important;
}

/* Make manual titles flush-left and sized how you want */
.noindent .page__content h1.manual-title {
  margin: 0 0 0.75em 0 !important;
  padding: 0 !important;
  font-size: 1.9rem;         /* adjust size here (e.g., 1.8–2.1rem) */
  line-height: 1.2;
  font-weight: 700;
}

/* Hide theme header on pages using `noindent` */
.noindent .page__header, 
.noindent .page__title { display: none !important; }


/* Style for manual page titles */
.page__content h1.manual-title {
  margin: 0 0 0.75em 0 !important;
  padding: 0 !important;
  font-size: 1.5rem !important;   /* try 2.1–2.4rem until you like it */
  line-height: 1.2 !important;
  font-weight: 700 !important;
  transform: translateX(-2px);    /* tiny nudge to align with H2s */
}
