/* Tactile buttons for pepecarrillo.co (janis-brain issue 900, Pepe 2026-11-01: "add this to all our buttons").
   Same treatment as the Mexzungu shell (mexzungu-site shell/v1/shell.css, "Tactile buttons"), kept as this site's
   one copy because pepecarrillo.co does not wear the shell. style.css and tokens.css both @import it, so every page
   that loads either sheet gets it. Four rest layers (top light, bottom shade, contact shadow, pink glow) and an inset
   dip on press. It only owns box-shadow and the press transform; colour, radius and type stay with each page.
   Primary: .mz-tactile and the site's existing primary buttons. Quiet: .mz-tactile-quiet and outline buttons.
   Keyboard: tactile.js (loaded by every page that loads this sheet) adds .mz-pressed while Enter, or Space on a real
   button, is held. Space never presses a link.
   Text-only buttons (.back-btn, the language toggle) stay flat on purpose: they are links in a button's clothes. */
:root {
    --mz-tb-glow: rgba(225, 75, 135, 0.5);
    --mz-tb-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
html :is(.mz-tactile, .btn-pink, .next-btn, .submit-btn, .newsletter button) {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 8px 24px -6px var(--mz-tb-glow);
    transition: transform 160ms var(--mz-tb-ease), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
@media (hover: hover) {
    html :is(.mz-tactile, .btn-pink, .next-btn, .submit-btn, .newsletter button):not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover {
        transform: translateY(-1px);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2),
            0 1px 2px rgba(0, 0, 0, 0.4),
            0 10px 28px -6px var(--mz-tb-glow);
    }
}
html :is(.mz-tactile, .btn-pink, .next-btn, .submit-btn, .newsletter button):not(:disabled, [aria-disabled="true"], [aria-busy="true"]):is(:active, .mz-pressed) {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(0, 0, 0, 0.08),
        0 1px 1px rgba(0, 0, 0, 0.3);
}
html :is(.mz-tactile-quiet, .btn-line) {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.16);
    transition: transform 160ms var(--mz-tb-ease), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
@media (hover: hover) {
    html :is(.mz-tactile-quiet, .btn-line):not(:disabled, [aria-disabled="true"], [aria-busy="true"]):hover {
        transform: translateY(-1px);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -2px 0 rgba(0, 0, 0, 0.06),
            0 2px 4px rgba(0, 0, 0, 0.18),
            0 8px 20px -8px var(--mz-tb-glow);
    }
}
html :is(.mz-tactile-quiet, .btn-line):not(:disabled, [aria-disabled="true"], [aria-busy="true"]):is(:active, .mz-pressed) {
    transform: translateY(1px) scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
:where(.mz-tactile, .mz-tactile-quiet, .btn-pink, .btn-line, .next-btn, .submit-btn, .newsletter button):focus-visible {
    outline: 2px solid #E14B87;
    outline-offset: 3px;
}
html :is(.mz-tactile, .mz-tactile-quiet, .btn-pink, .btn-line, .next-btn, .submit-btn, .newsletter button):is(:disabled, [aria-disabled="true"]) {
    box-shadow: none;
    transform: none;
    opacity: 0.5;
    cursor: not-allowed;
    filter: saturate(0.4);
}
html :is(.mz-tactile, .mz-tactile-quiet, .btn-pink, .btn-line, .next-btn, .submit-btn, .newsletter button)[aria-busy="true"] {
    transform: none;
    cursor: progress;
    opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
    html :is(.mz-tactile, .mz-tactile-quiet, .btn-pink, .btn-line, .next-btn, .submit-btn, .newsletter button) { transition: none; }
    /* Same selector shape as the hover and press rules (html, the :is list, the :not guard, the state), so this
       matches their specificity and wins by coming later. A plain :is(:hover) override loses to the :not guard. */
    html :is(.mz-tactile, .mz-tactile-quiet, .btn-pink, .btn-line, .next-btn, .submit-btn, .newsletter button):not(:disabled, [aria-disabled="true"], [aria-busy="true"]):is(:hover, :active, .mz-pressed) { transform: none; }
}
