/* Inquanta Style: Dark mode theme with purple, orange, white */

body {
  font-family: system-ui, sans-serif;
  background-color: #121214;
  color: #eaeaea;
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 900px;
  line-height: 1.7;
}

h1,
h2 {
  color: #a664f7;
  /* deep purple */
}

h1 {
  font-size: 2.4rem;
  margin-top: 0;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.4rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: #a78ddd;
}


a {
  color: #ff9800;
  /* orange */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background-color: #1e1e22;
  color: #ffcc80;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.95em;
}

pre {
  background: #1e1e22;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  color: #f5f5f5;
}

ul {
  padding-left: 1.5rem;
}

blockquote {
  background-color: #1a1a1d;
  border-left: 4px solid #bb86fc;
  margin: 1.5rem 0;
  padding: 1rem;
  font-style: italic;
  color: #ccc;
}

blockquote.warning {
  border-color: red;
  background-color: #26262a;
}

blockquote.success {
  border-color: green;
  background-color: #26262a;
}

main {
  padding-bottom: 3rem;
}

hr {
  border: none;
  border-top: 1px solid #333;
  margin: 2rem 0;
}

#upcoming-features-section,
#upcoming-features {
  background-color: #1a1a1d;
  border-left: 6px solid #bb86fc;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
}

#toc-section {
  padding: 0rem 1rem;
  font-size: small;
  border-left: #ccc 1px solid;
}

#toc-toggle {
  cursor: pointer;
  background-color: #121214;
  margin: 0;
  color: #ccc;
  font-size: large;
}

#toc-list {
  opacity: 0;
  transition: max-height 0.5s linear, opacity 0.5s linear;
  overflow: hidden;
}

.main-links a {
  background: #1a1a1d;
  color: #8f3cf5;
  padding: 0.35em 1em;
  border-radius: 2em;
  margin: 0 0.2em;
  font-weight: 600;
  box-shadow: 0 2px 8px #0002;
  transition: background-color 0.2s, color 0.2s, transform 0.1s;
  display: inline-block;
}

.main-links a:hover {
  background: #23232a;
  color: #ff9800;
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  padding: 1rem 0;
  gap: 1rem;
}

#inquanta {
  margin-bottom: 0;
  flex-shrink: 0;
}

.example-asset {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Inline styles from the <footer> element and its descendants */
footer {
  margin-top: 3rem;
  padding: 2rem 0 1rem 0;
  /* text-align: center; */
  color: #bbb;
  font-size: 0.98em;
}

footer hr {
  border: none;
  border-top: 1px solid #333;
  margin-bottom: 1.5rem;
}

footer>div {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer a {
  color: #ff9800;
}

footer>div:last-child {
  margin-top: 0.5rem;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  body {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  #inquanta {
    margin-bottom: 0.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .main-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
  }

  .main-links a {
    margin: 0.2rem;
    padding: 0.5em 1.2em;
    font-size: 0.9rem;
  }

  /* Responsive footer: stack columns on small screens */
  footer > div {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  footer ul {
    margin-bottom: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h1 img {
    height: 1.5em !important;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .main-links a {
    padding: 0.4em 1em;
    font-size: 0.85rem;
  }

  #toc-section {
    padding: 0 0.5rem;
  }

  blockquote {
    padding: 0.8rem;
    margin: 1rem 0;
  }

  pre {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  code {
    font-size: 0.9em;
  }
}