:root {
  --base-font-family: 'Roboto', sans-serif !important;
  --siteFont: 'Roboto', sans-serif !important;
  --content-max-width: min(80em, 90%) !important;

  --cover-blockquote-color: #fff !important;
  --cover-background-mask-color: ;
  --cover-background-image: linear-gradient(
    204deg,
    rgba(33, 36, 49, 1) 0%,
    rgba(50, 65, 96, 1) 44%,
    rgba(50, 65, 96, 1) 71%,
    rgba(33, 36, 49, 1) 100%
  ) !important;

  --sidebar-padding: 10px;
  --sidebar-nav-link-margin: 0 -10px 0 0;
  --sidebar-nav-link-color: #e8e8e8 !important;
  --sidebar-nav-link-color--active: #fff !important;
  --sidebar-background: #131c2e;
  --sidebar-toggle-background: #131c2e !important;
  --sidebar-toggle-border-radius: 0 5px 5px 0 !important;
  --sidebar-toggle-icon-color: #fff !important;
  --sidebar-nav-pagelink-background--active:
    no-repeat 0px center / 5px 6px
      linear-gradient(
        225deg,
        transparent 2.75px,
        rgba(80, 200, 120, 1) 2.75px 4.25px,
        transparent 4.25px
      ),
    no-repeat 5px center / 5px 6px
      linear-gradient(
        135deg,
        transparent 2.75px,
        rgba(80, 200, 120, 1) 2.75px 4.25px,
        transparent 4.25px
      );
  --sidebar-nav-link-border-color--active: rgba(80, 200, 120, 1);
  --sidebar-nav-pagelink-background--collapse:
    no-repeat 2px calc(50% - 2.5px) / 6px 5px
      linear-gradient(
        45deg,
        transparent 2.75px,
        rgba(80, 200, 120, 1) 2.75px 4.25px,
        transparent 4px
      ),
    no-repeat 2px calc(50% + 2.5px) / 6px 5px
      linear-gradient(
        135deg,
        transparent 2.75px,
        rgba(80, 200, 120, 1) 2.75px 4.25px,
        transparent 4px
      );

  --blockquote-border-color: rgba(80, 200, 120, 1);

  --kbd-margin: 0.1em 0.3em;
  --kbd-padding: 0.35em 0.5em;
}

.sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 200, 120, 0.3) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(80, 200, 120, 0.2);
  border-radius: 20px;
  border: 2px solid transparent;
}

.sidebar:hover::-webkit-scrollbar-thumb {
  background-color: rgba(80, 200, 120, 0.4);
}

.sidebar > h1 img {
  max-width: 150px !important;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#mb-footer {
  margin-top: auto !important;
  text-align: center;
}

#mb-footer a {
  display: inline;
  margin: 0 0.5em;
}

.footer-text-copyright {
  color: #e0e0e0;
}

.footer-van .sidebar-nav a,
.sidebar nav a {
  white-space: wrap;
}

.cover-logo {
  filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
  width: 50%;
  max-width: 300px;
}

.app-nav p {
  background: rgba(0, 0, 0, 0.8);
  padding: 0.5em;
  border-radius: 0.5em;
  color: #c1e3cc;
}

.cover {
  color: #fff;
}

.app-nav:not(:empty) ~ main .markdown-section {
  padding-top: 4.5rem;
}

.github-corner svg {
  fill: #131c2e;
}

picture + em {
  display: block;
  text-align: center;
  font-size: 0.9em;
}

.docsify-example-panel img {
  max-width: 100%;
}

.right-panel:has(picture) {
  text-align: center;
}

.right-panel:has(blockquote) {
  padding: 0 !important;
}
.right-panel:has(blockquote) blockquote {
  margin: 0 !important;
}
.right-panel .small-img {
  max-width: 200px;
  object-fit: scale-down;
  border-radius: 1em;
}
.right-panel .medium-img {
  max-width: 300px;
  object-fit: scale-down;
  border-radius: 1em;
}
.right-panel .large-img {
  border-radius: 1em;
}

a {
  transition: all 0.2s ease-in-out;
  position: relative;
  text-decoration: none !important;
}

p a:not(.btn),
li a:not(.btn) {
  letter-spacing: 0.05em;
}

p a:not(.btn):hover,
li a:not(.btn):hover {
  letter-spacing: 0.07em;
}

a:not(.btn):hover::before {
  content: '';
  position: absolute;
  top: 110%;
  width: 100%;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(111.3deg, #9c27b0 9.6%, #00bcd4 93.6%);
}

p a:not(.btn)::before,
li a:not(.btn)::before {
  transition: all 0.2s ease-out;
  top: 100%;
  content: '';
  position: absolute;
  width: 100%;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(111.3deg, #9c27b0 9.6%, #00bcd4 93.6%);
}

.btn,
.btn*,
.btn:after,
.btn:before,
.btn:after,
.btn:before {
  display: inline-block;
  max-width: fit-content;
  border: 0 solid;
  box-sizing: border-box;
}
.btn:disabled {
  cursor: default;
}
.btn:-moz-focusring {
  outline: auto;
}
.btn svg {
  display: block;
  vertical-align: middle;
}
.btn [hidden] {
  display: none;
}

.btn-header {
  font-size: 1rem !important;
  margin-left: auto;
}

h1:has(.btn-header) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem !important;
}

.btn {
  background: var(--btn-background) !important;
  border: 1px solid !important;
  border-radius: 999px;
  box-sizing: border-box;
  color: #000;
  /* display: block; */
  font-weight: 900;
  -webkit-mask-image: none;
  overflow: hidden;
  padding: 1rem 2.5rem;
  position: relative;
  text-transform: uppercase;
  transition: 0.2s;
}

@media (max-width: 768px) {
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem !important;
  }

  .markdown-section {
    padding: 0 !important;
  }
}

.btn:hover {
  box-shadow:
    0 6px 0 -4px #fff,
    0 9px 0 -4px #aaa,
    0 12px 0 -4px #000;
  transform: translateY(-5px);
}

.mirror-block {
  background: linear-gradient(
    111.3deg,
    rgba(156, 39, 176, 0.05) 9.6%,
    rgba(0, 188, 212, 0.05) 93.6%
  );
  border: 1px solid rgba(156, 39, 176, 0.2);
  padding: 2rem;
  border-radius: 1.5rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mirror-block h2 {
  margin-top: 0 !important;
  border: none !important;
  font-size: 1.4rem !important;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mirror-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem; /* Negative margin to bleed out on mobile if needed, but inside padded block */
  padding: 0 1rem;
}

.mirror-block table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 !important;
  background: transparent !important;
  min-width: 450px; /* Ensure table doesn't collapse too much */
}

.mirror-block th {
  text-align: left;
  padding: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(120, 130, 150, 0.6); /* Better visibility on light theme */
  border-bottom: 1px solid rgba(156, 39, 176, 0.1) !important;
  border-top: none !important;
}

.mirror-block td {
  padding: 1.25rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(156, 39, 176, 0.05) !important;
  transition: all 0.2s ease;
  color: inherit;
}

.mirror-block tr:hover td {
  background: rgba(156, 39, 176, 0.03);
}

.mirror-block a {
  font-weight: 600;
  color: #131c2e !important; /* Dark color for light theme */
  text-decoration: none !important;
}

@media (prefers-color-scheme: dark) {
  .mirror-block a {
    color: #fff !important;
  }
  .mirror-block th {
    color: rgba(255, 255, 255, 0.4);
  }
}

.mirror-block a:hover {
  color: #00bcd4 !important;
}

.mirror-block tr:last-child td {
  border-bottom: none !important;
}

.mirror-block .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(80, 200, 120, 0.1);
  color: rgba(80, 200, 120, 1);
  border: 1px solid rgba(80, 200, 120, 0.2);
  white-space: nowrap;
}

.faq-block {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1.5rem;
  border-left: 4px solid #80c878;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-block h2 {
  margin-top: 0 !important;
  color: #80c878 !important;
  font-size: 1.6rem !important;
  letter-spacing: -0.03em;
  margin-bottom: 2rem !important;
}

.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(128, 200, 120, 0.1);
  padding-bottom: 1.5rem;
}

.faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: inherit;
}

.faq-question::before {
  content: "Q:";
  color: #80c878;
  font-weight: 900;
  font-size: 0.9rem;
  padding-top: 0.1rem;
}

.faq-answer {
  padding-left: 2.2rem;
  line-height: 1.6;
  opacity: 0.9;
  font-size: 0.95rem;
}

.faq-answer p {
  margin: 0;
}

@media (max-width: 768px) {
  .faq-block {
    padding: 1.5rem;
    border-radius: 1rem;
  }
}
