/* The Telegram channel link in the footer — 2026-09-01.
   A chip rather than a bare link: it sits at the end of a column of prose, so
   it needs an edge to read as something you can press. Colours come from the
   theme tokens, so it follows light and dark with everything else — except the
   mark itself, which keeps Telegram's blue. A brand mark that changes colour
   with the theme is a weaker signal than the shape alone, and this is the one
   thing in the footer meant to be recognised rather than read. */
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 7px 13px 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--fg);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

/* The glyph is filled, so its colour is its fill. It stays put while the
   label around it follows the hover. */
.footer-social svg {
    flex-shrink: 0;
    color: #229ed9;
}

.footer-social:hover,
.footer-social:focus-visible {
    border-color: #229ed9;
    color: var(--fg);
    background: color-mix(in srgb, #229ed9 8%, var(--card));
    transform: translateY(-1px);
}

/* The pointer lift is decoration; anyone who asked for less motion keeps the
   colour change and loses the movement. */
@media (prefers-reduced-motion: reduce) {
    .footer-social { transition: border-color .18s ease, color .18s ease, background .18s ease; }
    .footer-social:hover,
    .footer-social:focus-visible { transform: none; }
}
