/* AgensGraph for Python -- what this manual adds on top of agensgraph-18.css.

   Header links. The v2.18 manual sets none, so its stylesheet leaves Shibuya's
   default: full-size body text. Here they are set the way that manual's
   EN / 한국어 toggle is: small, muted, a soft pill on hover. */

@media (min-width: 768px) {
  .sy-head-links {
    display: flex;
    align-items: center;
    margin-left: 14px;
  }
  .sy-head-links::before {            /* a short rule between the brand and the links */
    content: "";
    width: 1px;
    height: 18px;
    margin-right: 12px;
    background: var(--sy-c-border);
  }
  .sy-head-links ul { gap: 2px; }
  .sy-head-links li.link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--sy-c-light);
    transition: color .15s ease, background-color .15s ease;
  }
  .sy-head-links li.link a:hover {
    color: var(--sy-c-heading);
    background: var(--sy-c-surface);
  }
}

/* Leaving the docs site: say so with a small arrow, as the docs portal does. */
.sy-head-links a[href^="https://pypi.org"]::after {
  content: "";
  width: .7em;
  height: .7em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .7;
}
