@layer starlight, nova, minishop;

@layer minishop {
  .site-title,
  .site-title span {
    color: #00fe7a;
    font-weight: 760;
  }

  .site-title:hover,
  .site-title:hover span {
    color: #00fe7a;
  }

  :root[data-theme='light'] .site-title,
  :root[data-theme='light'] .site-title span {
    color: #007a3d;
  }

  :root[data-theme='light'] .site-title:hover,
  :root[data-theme='light'] .site-title:hover span {
    color: #006f36;
  }

  .minishop-header-link {
    column-gap: 0.625rem;
  }

  .minishop-header-link svg {
    flex-shrink: 0;
  }

  .minishop-header-search {
    margin-left: auto;
  }

  @media (min-width: 48rem) {
    .minishop-header-search {
      margin-left: 0;
    }
  }

  .minishop-mobile-nav {
    position: relative;
    z-index: 30;
    flex: 0 0 auto;
  }

  .minishop-mobile-nav summary {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--sl-color-gray-5);
    border-radius: 7px;
    color: var(--sl-color-gray-2);
    cursor: pointer;
    list-style: none;
  }

  .minishop-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .minishop-mobile-nav summary span,
  .minishop-mobile-nav summary span::before,
  .minishop-mobile-nav summary span::after {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: '';
  }

  .minishop-mobile-nav summary span {
    position: relative;
  }

  .minishop-mobile-nav summary span::before,
  .minishop-mobile-nav summary span::after {
    position: absolute;
    left: 0;
  }

  .minishop-mobile-nav summary span::before {
    top: -0.34rem;
  }

  .minishop-mobile-nav summary span::after {
    top: 0.34rem;
  }

  .minishop-mobile-nav[open] summary {
    border-color: #00fe7a;
    color: #00fe7a;
  }

  .minishop-mobile-nav-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.55rem);
    right: 0;
    display: grid;
    min-width: min(17rem, calc(100vw - 2rem));
    gap: 0.25rem;
    border: 1px solid var(--sl-color-gray-5);
    border-radius: 8px;
    padding: 0.5rem;
    background: var(--sl-color-black);
    box-shadow: 0 18px 60px rgb(0 0 0 / 32%);
  }

  .minishop-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    color: var(--sl-color-gray-2);
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
  }

  .minishop-mobile-nav-link:hover,
  .minishop-mobile-nav-link:focus-visible {
    color: var(--sl-color-white);
    background: var(--sl-color-gray-6);
  }

  :root[data-theme='light'] .minishop-mobile-nav-panel {
    background: var(--sl-color-white);
    box-shadow: 0 18px 60px rgb(15 23 42 / 16%);
  }

  .hero {
    gap: clamp(2rem, 6vw, 5rem);
    padding-block: clamp(3.5rem, 10vw, 6.5rem);
  }

  .hero > .hero-html:has(.minishop-hero-screenshot) {
    width: min(96vw, 72rem);
    max-width: none;
  }

  .hero img {
    border: 1px solid var(--sl-color-gray-5);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgb(15 23 42 / 18%);
  }

  .minishop-hero-screenshot {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }

  :root[data-theme='dark'] .hero img {
    box-shadow: 0 24px 70px rgb(0 0 0 / 36%);
  }

  @media (min-width: 50rem) {
    .hero:has(.minishop-hero-screenshot) {
      grid-template-columns: minmax(0, 1fr);
      gap: clamp(2rem, 4vw, 4rem);
      align-items: center;
    }

    .hero > .hero-html:has(.minishop-hero-screenshot) {
      order: 2;
      width: min(100%, 90rem);
      margin-inline: auto;
    }

    .hero:has(.minishop-hero-screenshot) .stack {
      align-items: center;
      max-width: 64rem;
      margin-inline: auto;
      text-align: center;
    }

    .hero:has(.minishop-hero-screenshot) .copy {
      align-items: center;
    }

    .hero:has(.minishop-hero-screenshot) .actions {
      justify-content: center;
    }
  }

  .sl-markdown-content :is(h2, h3) {
    letter-spacing: 0;
  }

  .sl-markdown-content table {
    font-size: 0.92rem;
  }

  .sl-markdown-content code:not(:where(pre *)) {
    border: 1px solid var(--sl-color-gray-5);
    border-radius: 5px;
    padding: 0.08rem 0.28rem;
  }

}
