.readme-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: -85px;
}

.readme-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.readme-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 42px 50px;
  position: relative;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.015) 35%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 25px 60px rgba(0, 0, 0, 0.65);
}

.readme-nav {
  position: sticky;
  top: 140px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.readme-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.readme-nav a:hover {
  color: var(--primary-color);
}

.readme-content section:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 60px;
}

.readme-content h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.readme-content p {
  color: #bbb;
  max-width: 800px;
  line-height: 1.7;
}

.readme-section {
  position: relative;
  padding: 20px 10px;
  margin-bottom: 70px;
  scroll-margin-top: 140px;
}

.requirements-list {
  list-style: none;
  padding-left: 0;
  margin-top: 24px;
}

.requirements-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: #ccc;
  line-height: 1.7;
}

.requirements-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.4rem;
  line-height: 1;
}

.wiki-image,
.wiki-image-small {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  margin-top: 50px;
  margin-bottom: 15px;
}

.wiki-image img,
.wiki-image-small img {
  width: 100%;
  height: auto;
  display: block;
}

#pagefile-crash-prevention .wiki-image-small {
  display: block ;
  width: 60% ;
  max-width: 60% ;
  margin: 30px 0 15px 0 ;
  box-sizing: border-box ;
}

#pagefile-crash-prevention .wiki-image-small img {
  display: block ;
  width: 100% ;
  max-width: 100% ;
  height: auto ;
}

@media (max-width: 900px) {
  #pagefile-crash-prevention .wiki-image-small {
    width: 100% ;
    max-width: 100% ;
    margin: 20px 0 15px 0 ;
  }
}

@media (max-width: 900px) {
  .readme-layout {
    grid-template-columns: 1fr;
  }

  .readme-nav {
    position: relative;
    top: 0;
    margin-bottom: 40px;
  }
}