/* Copyright 2023 The Matrix.org Foundation C.I.C.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.cpd-link {
  display: inline-block;
  text-decoration: underline;
  color: var(--cpd-color-text-primary);
  font-weight: var(--cpd-font-weight-medium);
  border-radius: var(--cpd-radius-pill-effect);
  padding-inline: 0.25rem;
}

.cpd-link[data-kind="primary"] {
  color: var(--cpd-color-text-primary);
}

.cpd-link[data-kind="critical"] {
  color: var(--cpd-color-text-critical-primary);
}

@media (hover) {
  .cpd-link[data-kind="primary"]:hover {
    background: var(--cpd-color-gray-300);
  }

  .cpd-link[data-kind="critical"]:hover {
    background: var(--cpd-color-red-300);
  }
}

.cpd-link:active {
  color: var(--cpd-color-text-on-solid-primary);
}

.cpd-link[data-kind="primary"]:active {
  background: var(--cpd-color-text-primary);
}

.cpd-link[data-kind="critical"]:active {
  background: var(--cpd-color-text-critical-primary);
}