/* jx-arrow 1.0 | the one arrow for every JPRAXC web product (Claude-B3, 12 Nov 2026)
 * Replaces the text arrows (↗ → ← ↘ ↔ ↕) that iOS Safari draws as colour emoji or in a fallback font.
 * The arrow is a 24 px stroke icon (Tabler style, MIT, same family as the Style 7 kit's icons) used as a mask, so it takes
 * currentColor, scales with the text (1em box) and sits on the text baseline. It works in Classic and Ivory alike:
 * nothing here is gated on <html data-ui>, so a product can adopt it before or without Style 7.
 *
 * Markup (an empty span, hidden from screen readers; keep the words that say what the link does):
 *   <a href="https://jpraxc.com/guide" target="_blank" rel="noopener">Guide for this step<span class="jx-arr jx-arr--ne" aria-hidden="true"></span><span class="jx-sr"> (opens in a new tab)</span></a>
 *   <a class="button">Book a demo<span class="jx-arr jx-arr--r" aria-hidden="true"></span></a>
 *   <a class="back"><span class="jx-arr jx-arr--l jx-arr--lead" aria-hidden="true"></span>Back</a>
 * Files: put jx-arrow/ (6 SVGs) beside this stylesheet. They are same-origin, so a strict CSP (img-src 'self') is enough; no data: URIs.
 */
.jx-arr {
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  width: .9em;
  height: .9em;
  margin-inline-start: .28em;      /* a trailing arrow: space before it */
  vertical-align: -.12em;          /* optical baseline, measured against Lato's x-height */
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;  mask-repeat: no-repeat;
  -webkit-mask-position: center;   mask-position: center;
  -webkit-mask-size: contain;      mask-size: contain;
  transition: transform .16s ease;
}
.jx-arr--ne { -webkit-mask-image: url("jx-arrow/arrow-ne.svg"); mask-image: url("jx-arrow/arrow-ne.svg"); }
.jx-arr--se { -webkit-mask-image: url("jx-arrow/arrow-se.svg"); mask-image: url("jx-arrow/arrow-se.svg"); }
.jx-arr--r  { -webkit-mask-image: url("jx-arrow/arrow-r.svg");  mask-image: url("jx-arrow/arrow-r.svg"); }
.jx-arr--l  { -webkit-mask-image: url("jx-arrow/arrow-l.svg");  mask-image: url("jx-arrow/arrow-l.svg"); }
.jx-arr--lr { -webkit-mask-image: url("jx-arrow/arrow-lr.svg"); mask-image: url("jx-arrow/arrow-lr.svg"); }
.jx-arr--ud { -webkit-mask-image: url("jx-arrow/arrow-ud.svg"); mask-image: url("jx-arrow/arrow-ud.svg"); }

/* a leading arrow (← Back): space after it, not before */
.jx-arr--lead { margin-inline-start: 0; margin-inline-end: .28em; }
/* inside a flex row that already has a gap: no extra margin */
.jx-arr--bare { margin-inline: 0; }
.jx-arr--sm { width: .8em; height: .8em; }
.jx-arr--lg { width: 1.1em; height: 1.1em; vertical-align: -.2em; }

/* a quiet nudge on hover or focus; off when the person asks for less motion */
a:hover > .jx-arr--ne, a:focus-visible > .jx-arr--ne, button:hover > .jx-arr--ne { transform: translate(.08em, -.08em); }
a:hover > .jx-arr--r,  a:focus-visible > .jx-arr--r,  button:hover > .jx-arr--r  { transform: translateX(.1em); }
a:hover > .jx-arr--l.jx-arr--lead, a:focus-visible > .jx-arr--l.jx-arr--lead { transform: translateX(-.1em); }
@media (prefers-reduced-motion: reduce) { .jx-arr { transition: none; transform: none !important; } }

/* Windows high-contrast: a mask over a forced background would vanish, so draw it in the text colour */
@media (forced-colors: active) { .jx-arr { background-color: CanvasText; forced-color-adjust: none; } }
/* printed pages: a backgrounds-off print would leave a blank box, and a link arrow adds nothing on paper */
@media print { .jx-arr { display: none; } }

/* For the old CSS `content: '↗'` (a decorative arrow added by ::after or ::before): put .jx-arr-after--ne (or --r) on the element and delete the content rule.
   <a class="mobile-catalogue-card jx-arr-after--ne">  ->  the arrow is drawn after the link's own content. */
.jx-arr-after--ne::after, .jx-arr-after--r::after, .jx-arr-after--l::before {
  content: ""; display: inline-block; flex: none; box-sizing: border-box; width: .9em; height: .9em; vertical-align: -.12em;
  background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
}
.jx-arr-after--ne::after, .jx-arr-after--r::after { margin-inline-start: .28em; }
.jx-arr-after--l::before { margin-inline-end: .28em; }
.jx-arr-after--ne::after { -webkit-mask-image: url("jx-arrow/arrow-ne.svg"); mask-image: url("jx-arrow/arrow-ne.svg"); }
.jx-arr-after--r::after  { -webkit-mask-image: url("jx-arrow/arrow-r.svg");  mask-image: url("jx-arrow/arrow-r.svg"); }
.jx-arr-after--l::before { -webkit-mask-image: url("jx-arrow/arrow-l.svg");  mask-image: url("jx-arrow/arrow-l.svg"); }
@media (forced-colors: active) { .jx-arr-after--ne::after, .jx-arr-after--r::after, .jx-arr-after--l::before { background-color: CanvasText; forced-color-adjust: none; } }
@media print { .jx-arr-after--ne::after, .jx-arr-after--r::after, .jx-arr-after--l::before { display: none; } }

/* screen-reader-only words (the product's own .jx-sr / .sr-only can stand in if it already has one) */
.jx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
