@media (prefers-reduced-motion: no-preference) {
  :where(button,a[href],[role="button"],[role="tab"],summary):not(:disabled):not([aria-disabled="true"]):active { scale: .985; }
  .haptic-switch::after { transition: transform 140ms ease-out; }
}
.haptic-footer { width:min(calc(100% - 2rem),25rem); margin:1.5rem auto; color:inherit; }
.haptic-preference { padding:1rem 1.15rem; border:1px solid color-mix(in srgb,currentColor 18%,transparent); border-radius:14px; text-align:left; }
.haptic-toggle { display:flex; position:relative; align-items:center; justify-content:space-between; gap:1.2rem; cursor:pointer; margin:0; min-height:44px; }
.haptic-copy { display:grid; gap:.2rem; }
.haptic-copy strong { font-size:.9rem; font-weight:600; letter-spacing:normal; }
[data-haptic-state] { font-size:.78rem; opacity:.75; }
.haptic-toggle input[data-haptic-enabled] { position:absolute; width:100%; height:100%; inset:0; margin:0; opacity:0; cursor:pointer; z-index:1; }
.haptic-switch { width:42px; height:24px; border:1px solid currentColor; border-radius:20px; flex-shrink:0; background:color-mix(in srgb,currentColor 12%,transparent); }
.haptic-switch::after { content:''; display:block; width:16px; height:16px; margin:3px; border-radius:50%; background:currentColor; }
.haptic-toggle input:checked + .haptic-switch { background:#b6cabb; color:#24392c; border-color:#b6cabb; }
.haptic-toggle input:checked + .haptic-switch::after { transform:translateX(18px); }
.haptic-toggle input:focus-visible + .haptic-switch { outline:2px solid currentColor; outline-offset:4px; }
[data-haptic-status] { font-size:.78rem; line-height:1.5; margin:.55rem 0 0; opacity:.75; }
@media (forced-colors:active) { .haptic-toggle input:checked + .haptic-switch { background:Highlight; color:HighlightText; } }

/* Compact preference in the secondary footer, without a competing card. */
.fk-footer-shell .haptic-footer{width:auto;max-width:240px;margin:10px auto 0;color:#f6f2ed}
.fk-footer-shell .haptic-preference{padding:4px 0;border:0;border-radius:0}
.fk-footer-shell .haptic-copy strong{font-size:12px}
.fk-footer-shell [data-haptic-state]{display:none}
.fk-footer-shell [data-haptic-status]{font-size:11px;line-height:1.35;margin:3px 0 0}

/* FrancKaul homepage: restrained Instagram gallery follows the portfolio. */
.fk-site main.fk-home{display:flex!important;flex-direction:column!important}
.fk-site main.fk-home #instagram{order:10;box-sizing:border-box;width:min(100%,780px);max-width:780px;margin:30px auto 0;padding:0 12px}
.fk-site main.fk-home #instagram h2{font-size:clamp(22px,2.5vw,30px)!important;margin:0 0 16px!important}
.fk-site main.fk-home #instagram .wp-block-jetpack-instagram-gallery__grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.fk-site main.fk-home #instagram .wp-block-jetpack-instagram-gallery__grid-post{overflow:hidden;border-radius:6px}
.fk-site main.fk-home #instagram .wp-block-buttons{margin-top:14px}
.fk-site main.fk-home #instagram .wp-block-button__link{background:transparent!important;color:#2f2b28!important;border:1px solid #bdb5af!important;box-shadow:none!important;padding:8px 14px!important;font-size:13px!important}
@media(max-width:600px){.fk-site main.fk-home #instagram{padding:0 8px;margin-top:22px}.fk-site main.fk-home #instagram .wp-block-jetpack-instagram-gallery__grid{gap:5px!important}}
