/* Icons: Tabler Icons symbols in /icons/icons.svg, drawn as <svg class="icon"><use href="…#name"></use></svg>.
   Razor pages write <icon name="mail" />, JavaScript icon('mail') (site.js) and C# Icons.Markup (Helpers/Icons.cs).
   An icon takes the text colour and scales with the font size, as the Font Awesome font did. */
.icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -.25em;
    flex-shrink: 0;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* A click on an icon reaches the <svg>, and so the handlers bound to it and its ancestors, not the <use> inside. */
.icon > use {
    pointer-events: none;
}

.icon-sm { font-size: .875em; }
.icon-lg { font-size: 1.3333em; }
.icon-2x { font-size: 2em; }
.icon-3x { font-size: 3em; }
.icon-5x { font-size: 5em; }

.icon-spin {
    animation: icon-spin 2s linear infinite;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .icon-spin, .fa-spin {
        animation-duration: 6s;
    }
}
