.axyra-code-copy {
  position: relative;
  margin: 0.9em 0 1.2em;
}

.axyra-code-copy pre {
  background: #263238;
  border: 0;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(20, 31, 36, 0.18);
  color: #eeffff;
  font-family: Monaco, Consolas, "Lucida Console", monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 0.8rem 4.4rem 0.8rem 0.9rem;
  white-space: pre-wrap;
}

.axyra-code-copy pre code {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0;
}

.axyra-copy-button {
  align-items: center;
  background: rgba(0, 0, 0, 0.48);
  border: 0;
  border-radius: 0.25rem;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11px;
  gap: 0.25rem;
  line-height: 1;
  opacity: 0.78;
  padding: 0.35rem 0.45rem;
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  z-index: 1;
}

.axyra-copy-button svg {
  fill: currentColor;
  height: 0.75rem;
  width: 0.75rem;
}

.axyra-copy-button:hover,
.axyra-copy-button:focus-visible {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  opacity: 1;
}

.axyra-copy-button.is-copied {
  background: #176c4b;
  color: #fff;
  opacity: 1;
}

.axyra-install-options {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1rem 0 1.5rem;
}

.axyra-install-option {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 0.45rem;
  padding: 1rem;
}

.axyra-badge {
  background: #e8dbbd;
  border-radius: 3px;
  color: #5c4a24;
  display: block;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  padding: 4px 10px;
  width: fit-content;
}

.axyra-install-option .btn + .axyra-badge {
  margin-top: 0.6rem;
}

.axyra-install-option > :first-child {
  margin-top: 0;
}

.axyra-install-option > :last-child {
  margin-bottom: 0;
}

.axyra-search__toggle {
  background: transparent;
  border: 0;
  color: #f3f3f3;
  cursor: pointer;
  height: 2rem;
  margin-left: 1rem;
  margin-right: 1rem;
  outline: none;
  transition: 0.2s;
}

.axyra-search__toggle:hover,
.axyra-search__toggle:focus-visible {
  color: #fff;
}

.axyra-search__toggle .icon {
  fill: currentColor;
  height: 1rem;
  width: 1rem;
}

.axyra-search[hidden] {
  display: none;
}

.axyra-search {
  inset: 0;
  position: fixed;
  z-index: 10000;
}

.axyra-search__backdrop {
  background: rgba(20, 24, 31, 0.68);
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.axyra-search__dialog {
  background: #fff;
  border-radius: 0.55rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
  left: 50%;
  max-height: min(42rem, calc(100vh - 3rem));
  max-width: 46rem;
  overflow: auto;
  padding: 1.25rem;
  position: absolute;
  top: 1.5rem;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
}

.axyra-search__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.axyra-search__header h2 {
  margin: 0;
}

.axyra-search__close {
  background: transparent;
  border: 0;
  color: #555;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
}

.axyra-search__input-wrap {
  align-items: center;
  border: 1px solid #aeb5bf;
  border-radius: 0.35rem;
  display: flex;
  gap: 0.55rem;
  background: #fff;
  margin-top: 1rem;
  padding: 0 0.9rem;
}

.axyra-search__input-wrap svg {
  color: #6b7280;
  flex: none;
}

.axyra-search__input-wrap:focus-within {
  border-color: #0073b7;
  box-shadow: 0 0 0 2px rgba(0, 115, 183, 0.18);
}

.axyra-search__input-wrap:focus-within svg {
  color: #0073b7;
}

/* Reset theme input styles (gray fill, margin, native search appearance) */
.axyra-search__input-wrap input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 1;
  font: inherit;
  height: auto;
  margin: 0;
  min-width: 0;
  padding: 0.75rem 0.25rem;
}

.axyra-search__input-wrap input:focus {
  box-shadow: none;
  outline: 0;
}

.axyra-search__status {
  color: #666;
  font-size: 0.8rem;
  margin: 0.8rem 0;
}

.axyra-search__results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.axyra-search__result {
  border-top: 1px solid #e8eaed;
  padding: 0.8rem 0;
}

.axyra-search__result a {
  font-weight: 700;
  text-decoration: none;
}

.axyra-search__result p {
  color: #555;
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

body.axyra-search-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  /*
   * The theme's priority-plus navigation normally leaves as many links as fit
   * in the masthead. On phone widths that produces a crowded hybrid menu: a
   * few links remain visible while the rest appear in the dropdown. Give the
   * visible list no layout space so the existing greedy-nav script moves every
   * navigation item into one predictable mobile menu.
   */
  .greedy-nav .visible-links {
    flex: 0 0 0;
    min-width: 0;
    width: 0;
  }

  .axyra-search__toggle {
    flex: none;
    margin-left: auto;
    margin-right: 0.4rem;
    padding: 0.35rem;
  }

  .greedy-nav__toggle {
    flex: none;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .greedy-nav__toggle:hover.close,
  .greedy-nav__toggle:focus-visible.close {
    background: transparent;
  }

  .greedy-nav__toggle:hover.close .navicon::before,
  .greedy-nav__toggle:hover.close .navicon::after,
  .greedy-nav__toggle:focus-visible.close .navicon::before,
  .greedy-nav__toggle:focus-visible.close .navicon::after {
    background: #f3f3f3;
  }

  .greedy-nav .hidden-links {
    box-sizing: border-box;
    margin-top: 0.55rem;
    max-width: calc(100vw - 1rem);
    min-width: 13rem;
    z-index: 20;
  }

  .greedy-nav .hidden-links a {
    padding: 0.75rem 1rem;
    white-space: nowrap;
  }

  .greedy-nav .hidden-links .masthead__menu-divider {
    display: none;
  }

  .axyra-search__dialog {
    border-radius: 0;
    max-height: 100vh;
    top: 0;
    width: 100%;
  }
}
