/* Styles owned by this repository, layered over the captured theme CSS. */

:root {
  --acp-rule: rgba(20, 26, 29, 0.16);
}

/* Current page in the main navigation */
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

/* Touch targets: menu toggles and language switcher */
.wp-block-navigation__responsive-container-open {
  position: relative;
}

.wp-block-navigation__responsive-container-open::before,
.wp-block-navigation__responsive-container-close::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.acp-language-switcher__link {
  padding: 0.9rem 0.4rem;
  margin-block: -0.7rem;
}

/* Copy-to-clipboard helper on the support page (revealed by copy.js) */
.acp-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.acp-copy__button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4em 0.9em;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.acp-copy__button[hidden] {
  display: none;
}

.acp-copy__button:hover,
.acp-copy__button:focus-visible,
.acp-copy__button.is-copied {
  background: var(--wp--preset--color--theme-3);
  border-color: var(--wp--preset--color--theme-3);
  color: var(--wp--preset--color--theme-1);
}

.acp-copy__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Keep the collapsed menu up to laptop width: the full official name in the
   header leaves no room for six items on one line below about 1120 px. */
@media (min-width: 600px) and (max-width: 1119px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }

  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none;
  }
}
