/*!
 * Explore All by Creatlydev (Samir Yangua Ruiz), adapted for ERR
 * https://uiverse.io/Creatlydev/silly-cat-86
 * Copyright 2026 Creatlydev (Samir Yangua Ruiz)
 * SPDX-License-Identifier: MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
:is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action) {
  --err-explore-surface: #8bd3fa;
  --err-explore-ink: #082d4c;
  --err-explore-accent: #0b548d;
  --err-explore-hover: #094476;
  --err-explore-focus: #075d9c;
  --err-explore-icon-size: 25px;
  --err-explore-gap: .55rem;
  display: inline-flex !important;
  position: relative;
  align-items: center;
  justify-content: center !important;
  gap: var(--err-explore-gap) !important;
  min-height: 44px !important;
  min-width: 0 !important;
  padding: .5rem .8rem !important;
  border: 1px solid var(--err-book-border, transparent) !important;
  border-radius: 10rem !important;
  color: var(--err-book-ink, var(--err-explore-ink)) !important;
  background: var(--err-book-surface, var(--err-explore-surface)) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  transition: background-color .3s, color .3s, border-color .3s !important;
  cursor: pointer;
}
#err-catalogue .erc-card-actions .erc-review.err-explore-action { --err-explore-surface: #d6efff; }
html[data-err2-mode="dark"] :is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action) {
  --err-explore-surface: #9bddff;
  --err-explore-focus: #b8eaff;
  --err-explore-hover: #176098;
}
html[data-err2-mode="dark"] #err-catalogue .erc-card-actions .erc-review.err-explore-action {
  --err-explore-surface: #264c6b;
  --err-explore-ink: #e9f8ff;
  border-color: #547c9a !important;
}
header.err2-header .err2-header-row > a.err2-apply.err-explore-action {
  --err-book-surface: transparent;
  --err-book-ink: #123b63;
  --err-book-border: #6687a8;
  --err-book-hover-border: #155c91;
}
html[data-err2-mode="dark"] header.err2-header .err2-header-row > a.err2-apply.err-explore-action {
  --err-book-ink: #e8f5ff;
  --err-book-border: #6792b7;
  --err-book-hover-border: #a7d9fb;
}
header.err2-header .err2-header-row > a.err2-apply.err-explore-action > .err-explore-mark {
  --err-explore-icon-size: 16px;
}
:is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action)
:is(.err2-apply-desktop,.err2-apply-mobile,.err2-user-profile-inner) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}
:is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action):is(:hover,:focus-visible) {
  color: var(--err-book-ink, #fff) !important;
  background: var(--err-book-surface, var(--err-explore-hover)) !important;
  border-color: var(--err-book-hover-border, var(--err-explore-hover)) !important;
}
:is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action):focus-visible {
  outline: 2px solid var(--err-explore-focus) !important;
  outline-offset: 3px;
}
:is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action)::before,
:is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action)::after { content: none !important; }
:is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action) > svg,
header.err2-header a.err-explore-action > .err-book-star,
header.err2-header a.err-explore-action > .err2-user-profile-inner > svg { display: none !important; }
.err-explore-mark {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 var(--err-explore-icon-size);
  width: var(--err-explore-icon-size);
  height: var(--err-explore-icon-size);
  border-radius: 50%;
  color: var(--err-explore-accent);
  background: var(--err-book-surface, #fff);
  overflow: hidden;
  pointer-events: none;
}
:is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action) > .err-explore-mark {
  color: var(--err-book-ink, var(--err-explore-accent)) !important;
}
.err-explore-mark::before,
.err-explore-mark::after {
  content: '';
  width: 10px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 15'%3E%3Cpath d='M13.376 11.552l-.264-10.44-10.44-.24.024 2.28 6.96-.048L.2 12.56l1.488 1.488 9.432-9.432-.048 6.912 2.304.024z'/%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 14 15'%3E%3Cpath d='M13.376 11.552l-.264-10.44-10.44-.24.024 2.28 6.96-.048L.2 12.56l1.488 1.488 9.432-9.432-.048 6.912 2.304.024z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.err-explore-mark::after { position: absolute; transform: translate(-150%,150%); }
.err-explore-action:is(:hover,:focus-visible) .err-explore-mark::before {
  transition: transform .3s ease-in-out;
  transform: translate(150%,-150%);
}
.err-explore-action:is(:hover,:focus-visible) .err-explore-mark::after {
  transition: transform .3s ease-in-out .1s;
  transform: translate(0);
}
@media (max-width: 720px) {
  :is(header.err2-header a.err-explore-action, #err-catalogue .erc-card-actions .err-explore-action) {
    --err-explore-icon-size: 17px;
    --err-explore-gap: 4px;
    padding-inline: 5px !important;
  }
  #err-catalogue .erc-card-actions { gap: 5px; }
  #err-catalogue .erc-card-actions .err-explore-action {
    font-size: 11px !important;
    flex: 0 1 auto;
  }
  #err-catalogue .erc-card-actions .erc-action.err-explore-action { flex-shrink: 0; }
  #err-catalogue .erc-card-actions .erc-review.err-explore-action { overflow-wrap: normal; }
  .err-explore-mark::before, .err-explore-mark::after { width: 8px; height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .err-explore-action,
  .err-explore-action .err-explore-mark::before,
  .err-explore-action .err-explore-mark::after { transition: none !important; }
}
