/* Emoji-style northeast/southeast arrows are drawn as fine text-coloured
   vectors on small screens; desktop retains the original typography. */
@media (max-width:768px) {
  [data-mobile-arrow] { font-size:0 !important; display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; }
  [data-mobile-arrow]::before {
    content:''; display:block; flex:none;
    width:var(--mobile-arrow-size, 18px); height:var(--mobile-arrow-size, 18px);
    background-color:currentColor;
    -webkit-mask-position:center; mask-position:center;
    -webkit-mask-size:contain; mask-size:contain;
    -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  }
  [data-mobile-arrow="ne"]::before {
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19L19 5M8 5h11v11' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19L19 5M8 5h11v11' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  [data-mobile-arrow="se"]::before {
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 8v11H8' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 8v11H8' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
@media (max-width:768px) {
  /* The interactive-button hover layer is a CSS-generated label plus arrow,
     so it cannot be reached by the DOM-based icon replacement. */
  .tl-interactive::after {
    content:attr(data-interactive-label) !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19L19 5M8 5h11v11' fill='none' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-size:14px 14px;
    background-position:right 14px center;
  }
}
