:root {
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #334155;
  --accent: #38bdf8;
  --bg: #f8fafc;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Rubik", sans-serif;
  background: var(--bg);
  color: var(--slate-900);
  line-height: 1.6;
}

a {
  color: var(--accent);
}
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #f6f9ff;
  border-bottom: 1px solid #dde0e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  gap: 1rem;
}

.header .wrapper {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  justify-content: space-between;
}

.backToHome {
  display: flex;
  gap: 8px;
}

.adaptlogo {
  height: 40px;
  width: 40px;
  border-radius: 4px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-title {
  font-size: 24px;
  font-weight: 700;
  color: #3d4665;
  margin-bottom: -10px;
}
.logo-tagline {
  font-size: 12px;
  color: #6c7a99;
}

.nav a {
  margin-left: 24px;
  font-size: 16px;
  color: #3d4665;
  text-decoration: none;
}
.nav a:hover {
  color: #478eeb;
}

.manual-picture {
  background: url("assets/herobg.jpg");
  width: 100%;
  height: 200px;
  background-size: cover;
  border-radius: 12px;
  position: relative;
}

.manual-text {
  color: white;
  position: absolute;
  bottom: 0px;
  left: 20px;
}
.manual-title {
  font-size: 50px;
}

.manual-subtitle {
  font-size: 25px;
  margin-bottom: -20px;
  font-weight: 200;
}
.manual-body-text {
  padding: 1rem;
}

header h1 {
  font-size: 1.05rem;
}
main {
  padding-top: 100px;
  display: flex;
  align-items: start;
  width: 100%;
  max-width: 1200%;
  gap: 20px;
}
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0;
  margin-top: 50px;
}
.toc {
  display: flex;
  flex-direction: column;
  min-width: 250px;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid rgba(2, 6, 23, 0.04);
  position: sticky;
  top: 100px;
}
.toc a {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  display: block;
  color: rgb(96, 96, 117);
  text-decoration: none;
  font-size: medium;
}
.toc a:hover {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent);
  color: rgb(30, 30, 53);
  font-weight: 500;
}

/* New styles for hierarchy */
.toc .toc-level-1 {
  color: var(--slate-900); /* Darker text */
  font-weight: 600; /* Bolder */
  margin-top: 0.2rem; /* Space before main section */
  margin-bottom: 0.1rem;
  padding-left: 0.5rem; /* Slight indentation */
}

/* Remove hover effect from main headings to distinguish them from sub-links */
.toc .toc-level-1:hover {
  background: none !important;
  color: var(--slate-900) !important;
}

/* Indent sub-sections */
.toc .toc-level-2 {
  padding-left: 2rem;
}

.intro {
  display: grid;
  gap: 1rem;
}
.card {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(2, 6, 23, 0.04);
}
.card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.section {
  margin: 1rem 0;
}
.section h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.section p {
  color: var(--slate-800);
  margin-bottom: 0.6rem;
}
.keylist {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}
.keylist li {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.02), transparent);
  padding: 0.55rem;
  border-radius: 8px;
}
.back {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--slate-600);
  font-weight: 600;
}
footer {
  margin-top: 2rem;
  text-align: center;
  padding: 1rem 0;
  color: var(--slate-600);
}
@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
}

#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #29262c;
  font-size: 22px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  border: 1px solid #b1afb3;
  opacity: 0;
}

#scrollTopBtn.show {
  display: flex;
  opacity: 1;
}

#scrollTopBtn.hide {
  opacity: 0;
}
/* Styling for Image Placeholders */
.image-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px; /* Gives it a visible height */
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--bg); /* Use the body background color */
  border: 2px dashed var(--slate-600); /* Dashed border for visual cue */
  border-radius: 8px;
  color: var(--slate-800);
  font-family: 'Space Mono', monospace; /* Use a distinct font */
  font-size: 0.9rem;
  text-align: center;
}
.show-image {
  width: 100%;
}