html {
  min-height: 100%;
  background: #eef7ee;
}

body.bg-lineart,
body.bg-solid {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: transparent !important;
}

body.bg-lineart::before,
body.bg-solid::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body.bg-lineart::before {
  background-color: #eef7ee;
  background-image: url("background-lineart.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.58;
  filter: saturate(0.72) contrast(0.94);
}

body.bg-solid::before {
  background: #eef7ee;
}

body.bg-lineart::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.9) 0%, rgba(255, 251, 242, 0.62) 34%, rgba(255, 251, 242, 0.18) 100%),
    radial-gradient(circle at 50% 22%, rgba(255, 251, 242, 0.86) 0%, rgba(255, 251, 242, 0.42) 36%, rgba(255, 251, 242, 0) 68%);
}

body.bg-lineart main,
body.bg-solid main {
  background: transparent !important;
}

.site-footer {
  padding: 12px 24px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 43, 38, 0.94) !important;
  text-align: center !important;
  backdrop-filter: blur(16px);
}

.site-footer p {
  max-width: 980px;
  margin: 0 auto !important;
  color: rgba(245, 244, 239, 0.78) !important;
  font-size: 12px !important;
  line-height: 1.7;
}

.navbar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px !important;
  padding: 9px 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 43, 38, 0.94) !important;
  box-shadow: 0 10px 28px rgba(31, 39, 36, 0.12);
  backdrop-filter: blur(16px);
}

.navbar a {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 6px;
  border-radius: 12px;
  color: #f5f4ef !important;
  text-decoration: none;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.navbar a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.navbar a.active,
.navbar a.is-current,
.navbar a[aria-current="page"] {
  background: rgba(242, 238, 223, 0.1);
  color: #f2eedf !important;
}

.navbar a.active::after,
.navbar a.is-current::after,
.navbar a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(242, 238, 223, 0.86);
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .navbar {
    gap: 8px !important;
    padding: 9px 12px !important;
  }

  .navbar a {
    min-height: 32px;
    padding: 7px 6px;
    font-size: 14px !important;
  }
}
