/* Site custom styles (no SCSS/front-matter). */

/* Typography tweaks */
.post-content h1 {
  font-size: 32px;
}

@media screen and (max-width: 800px) {
  .post-content h1 {
    font-size: 30px;
  }
}

.post-title {
  font-size: 38px;
  letter-spacing: -1px;
  line-height: 1;
}

@media screen and (max-width: 800px) {
  .post-title {
    font-size: 34px;
    letter-spacing: -1px;
    line-height: 1;
  }
}

/* Header: per-section dropdown buttons */
/* IMPORTANT: don't override Minima's mobile show/hide behavior for .trigger */
@media screen and (min-width: 800px) {
  /* Desktop: keep header items in one row */
  .site-nav .trigger {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
}

.site-nav .nav-item--link,
.site-nav details.nav-item--dropdown > summary.nav-item__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 650;
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.site-nav details.nav-item--dropdown > summary.nav-item__summary::-webkit-details-marker {
  display: none;
}

.site-nav .nav-item__chevron {
  display: inline-block;
  transform: translateY(-1px);
  transition: transform 140ms ease;
  font-size: 0.85em;
}

.site-nav details[open] .nav-item__chevron {
  transform: rotate(180deg) translateY(1px);
}

.site-nav details.nav-item--dropdown {
  position: relative;
}

.site-nav .nav-item__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  z-index: 999;
}

.site-nav .nav-item__menu a {
  display: block;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.78);
}

.site-nav .nav-item__menu a:hover,
.site-nav .nav-item__menu a:focus {
  background: rgba(99, 102, 241, 0.12);
}

@media screen and (max-width: 800px) {
  .site-nav details.nav-item--dropdown > summary.nav-item__summary,
  .site-nav .nav-item--link {
    width: 100%;
    justify-content: space-between;
    margin: 6px 0;
  }
  .site-nav .nav-item__menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    margin-top: 8px;
  }
}

/* Home page: section buttons like header */
.home-section {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin: 14px 0 18px;
}

.home-section--past {
  background: rgba(99, 102, 241, 0.08);
}

.home-section--current {
  background: rgba(45, 212, 191, 0.08);
}

.home-section__title {
  margin: 0 0 10px;
}

.home-nav {
  display: grid;
  gap: 10px;
  margin: 10px 0 18px;
}

.home-nav details > summary.home-btn,
.home-nav a.home-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: rgba(0, 0, 0, 0.82);
  font-weight: 700;
}

.home-nav details > summary.home-btn {
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.home-nav details > summary.home-btn::-webkit-details-marker {
  display: none;
}

.home-btn__chevron {
  flex: 0 0 auto;
  transition: transform 140ms ease;
  font-size: 0.9em;
  opacity: 0.75;
}

.home-nav details[open] .home-btn__chevron {
  transform: rotate(180deg);
}

.home-submenu {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.home-submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.78);
}

.home-submenu a:hover,
.home-submenu a:focus {
  background: rgba(99, 102, 241, 0.12);
}

/* Program page: accounting.md (scoped) */
.accounting-page {
  font-size: 0.98rem;
  line-height: 1.45;
}

.accounting-page h1 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.55;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.accounting-page h2 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.55;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.accounting-page h3 {
  font-size: 1.28rem;
  font-weight: 650;
  line-height: 1.55;
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
}

.accounting-page h4 {
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.55;
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
}

.accounting-page p,
.accounting-page li {
  margin-bottom: 0.6rem;
}

.accounting-page code {
  font-size: 0.95em;
}

@media screen and (max-width: 800px) {
  .accounting-page {
    font-size: 0.96rem;
  }
  .accounting-page h1 {
    font-size: 1.5rem;
  }
  .accounting-page h2 {
    font-size: 1.3rem;
  }
  .accounting-page h3 {
    font-size: 1.18rem;
  }
  .accounting-page h4 {
    font-size: 1.06rem;
  }
}

