/* Nav font sizes */
.md-tabs__link {
  font-size: 1rem;
}

.md-nav__link {
  font-size: 0.85rem;
}

@media screen and (max-width: 76.2344em) {
  .mobile-toc-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: var(--md-primary-fg-color);
    color: var(--md-primary-bg-color);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    cursor: pointer;
    border: none;
  }

  .mobile-toc-button svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
  }

  .mobile-toc-panel {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 4.5rem;
    z-index: 999;
    background: var(--md-default-bg-color);
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    min-width: 200px;
    max-width: calc(100vw - 2rem);
  }

  .mobile-toc-panel.is-open {
    display: block;
  }

  .mobile-toc-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-toc-panel li {
    margin: 0.35rem 0;
  }

  .mobile-toc-panel li.h3 {
    padding-left: 1rem;
  }

  .mobile-toc-panel a {
    color: var(--md-default-fg-color);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    display: block;
  }

  .mobile-toc-panel a:hover {
    color: var(--md-accent-fg-color);
  }
}

@media screen and (min-width: 76.2345em) {
  .mobile-toc-button,
  .mobile-toc-panel {
    display: none !important;
  }
}
