/* =========================================
   ACADEMIC HELP — SHARED ARROW ICON
   One thin SVG arrow, coloured by the text colour.
   Usage: <span class="arrow" aria-hidden="true"></span>
   Modifiers: .arrow--left (back), .arrow--ext (diagonal, external)
   ========================================= */

.arrow {
    --arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
    display: inline-block !important;
    width: 1.05em;
    height: 1.05em;
    margin-left: .3em;
    vertical-align: -.16em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--arrow-icon) center / contain no-repeat;
    mask: var(--arrow-icon) center / contain no-repeat;
    color: inherit !important;
    font-size: inherit !important;
    letter-spacing: 0 !important;
    transition: transform .2s ease;
}

.arrow--left {
    margin-left: 0;
    margin-right: .3em;
    transform: scaleX(-1);
}

.arrow--ext {
    --arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E");
}

a:hover > .arrow,
button:hover > .arrow,
a:focus-visible > .arrow {
    transform: translateX(3px);
}

a:hover > .arrow--left,
a:focus-visible > .arrow--left {
    transform: scaleX(-1) translateX(3px);
}

a:hover > .arrow--ext,
a:focus-visible > .arrow--ext {
    transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
    .arrow { transition: none; }
    a:hover > .arrow,
    button:hover > .arrow,
    a:focus-visible > .arrow,
    a:hover > .arrow--left,
    a:focus-visible > .arrow--left,
    a:hover > .arrow--ext,
    a:focus-visible > .arrow--ext { transform: none; }
    .arrow--left { transform: scaleX(-1); }
}
