/* =====================================================================
   KY motion — one system for the public site, the client portal, the
   sign-in pages, /card (body.card-page) and the magic-link pages
   (.gate-in). Plain CSS, no build, so every kind of page loads the same
   file. It never changes layout or colour: it only moves things, and all
   of it is off when the visitor's device asks for reduced motion.

   Vocabulary (reuse these; do not invent new curves or durations):
     enter   a block rises 28px and fades in, siblings one step apart
     title   a headline rises through a mask
     wipe    a solid bar is uncovered from the reading edge
     sweep   a button/tile is filled by the opposite colour (hover, press)
     press   anything clickable sinks 1.5% while pressed
     scroll  public-site sections rise as they enter the screen
   ===================================================================== */

:root {
    --m-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --m-fast: 0.25s;
    --m-base: 0.5s;
    --m-slow: 0.9s;
    --m-step: 0.08s;
    --m-rise: 28px;
}

@media (prefers-reduced-motion: no-preference) {
    /* ---------- keyframes: only the starting state, the page's own state is the end ---------- */
    @keyframes ky-m-rise {
        from {
            opacity: 0;
            transform: translateY(var(--m-rise));
        }
    }

    @keyframes ky-m-fade {
        from {
            opacity: 0;
        }
    }

    @keyframes ky-m-drop {
        from {
            opacity: 0;
            transform: translateY(calc(var(--m-rise) * -0.5));
        }
    }

    @keyframes ky-m-title {
        from {
            opacity: 0;
            clip-path: inset(100% 0 0 0);
            transform: translateY(0.45em);
        }
    }

    @keyframes ky-m-wipe {
        from {
            clip-path: inset(0 0 0 100%);
        }
    }

    @keyframes ky-m-wipe-ltr {
        from {
            clip-path: inset(0 100% 0 0);
        }
    }

    @keyframes ky-m-pulse {
        from {
            opacity: 0.45;
            transform: scale(1);
        }

        to {
            opacity: 0;
            transform: scale(2.8);
        }
    }

    @keyframes ky-m-drift {
        to {
            opacity: 0.15;
            transform: translateY(-40px);
        }
    }

    /* ---------- order: the n-th child of a group starts n steps after the first ---------- */
    :is(
            .ky-main,
            .ky-rows,
            .ky-cards,
            .ky-list,
            .ky-menu-list,
            .file-sheet,
            .ky-gate .ky-frame,
            .ky-intro .ky-page-head,
            .card-page .tiles,
            .card-page .week,
            .card-page .intro,
            .gate-in
        )
        > :nth-child(1) {
        --m-i: 0;
    }

    :is(
            .ky-main,
            .ky-rows,
            .ky-cards,
            .ky-list,
            .ky-menu-list,
            .file-sheet,
            .ky-gate .ky-frame,
            .ky-intro .ky-page-head,
            .card-page .tiles,
            .card-page .week,
            .card-page .intro,
            .gate-in
        )
        > :nth-child(2) {
        --m-i: 1;
    }

    :is(
            .ky-main,
            .ky-rows,
            .ky-cards,
            .ky-list,
            .ky-menu-list,
            .file-sheet,
            .ky-gate .ky-frame,
            .ky-intro .ky-page-head,
            .card-page .tiles,
            .card-page .week,
            .card-page .intro,
            .gate-in
        )
        > :nth-child(3) {
        --m-i: 2;
    }

    :is(
            .ky-main,
            .ky-rows,
            .ky-cards,
            .ky-list,
            .ky-menu-list,
            .file-sheet,
            .ky-gate .ky-frame,
            .ky-intro .ky-page-head,
            .card-page .tiles,
            .card-page .week,
            .card-page .intro,
            .gate-in
        )
        > :nth-child(4) {
        --m-i: 3;
    }

    :is(
            .ky-main,
            .ky-rows,
            .ky-cards,
            .ky-list,
            .ky-menu-list,
            .file-sheet,
            .ky-gate .ky-frame,
            .ky-intro .ky-page-head,
            .card-page .tiles,
            .card-page .week,
            .card-page .intro,
            .gate-in
        )
        > :nth-child(5) {
        --m-i: 4;
    }

    :is(
            .ky-main,
            .ky-rows,
            .ky-cards,
            .ky-list,
            .ky-menu-list,
            .file-sheet,
            .ky-gate .ky-frame,
            .ky-intro .ky-page-head,
            .card-page .tiles,
            .card-page .week,
            .card-page .intro,
            .gate-in
        )
        > :nth-child(6) {
        --m-i: 5;
    }

    :is(
            .ky-main,
            .ky-rows,
            .ky-cards,
            .ky-list,
            .ky-menu-list,
            .file-sheet,
            .ky-gate .ky-frame,
            .ky-intro .ky-page-head,
            .card-page .tiles,
            .card-page .week,
            .card-page .intro,
            .gate-in
        )
        > :nth-child(n + 7) {
        --m-i: 6;
    }

    /* ---------- ENTER: every page, every width ---------- */
    .ky-shell .ky-header,
    .card-page .head,
    .gate-head {
        animation: ky-m-drop var(--m-slow) var(--m-ease) backwards;
    }

    .ky-shell .ky-footer,
    .card-page .foot {
        animation: ky-m-fade var(--m-slow) var(--m-ease) 0.5s backwards;
    }

    /* the page body: signed-in pages, sign-in pages, booking, menu, the opening of the site */
    .ky-shell .ky-main > :not(.ky-frame):not(.file-sheet),
    .ky-shell .file-sheet > *,
    .ky-gate .ky-frame > *,
    .ky-shell .ky-menu > *,
    .ky-shell .ky-rows > *,
    .ky-shell .ky-cards > *,
    .ky-shell .ky-menu-list > *,
    .ky-shell .ky-intro .ky-page-head > :not(.ky-title),
    .ky-shell .ky-intro .ky-actions,
    .ky-shell .ky-intro-latin {
        --m-lead: 0.1s;

        animation: ky-m-rise var(--m-slow) var(--m-ease) backwards;
        animation-delay: calc(var(--m-i, 0) * var(--m-step) + var(--m-lead));
    }

    .ky-shell .ky-intro .ky-actions {
        --m-lead: 0.4s;
    }

    /* headlines rise through a mask */
    .ky-shell .ky-title,
    .ky-gate .ky-frame > h1,
    .card-page .intro h1,
    .gate-in > h1 {
        animation: ky-m-title var(--m-slow) var(--m-ease) 0.12s backwards;
    }

    /* /card: the page assembles in reading order */
    .card-page .intro > :not(h1),
    .card-page .tiles > .tile,
    .card-page .hours,
    .card-page .addr {
        --m-lead: 0.12s;

        animation: ky-m-rise var(--m-slow) var(--m-ease) backwards;
        animation-delay: calc(var(--m-i, 0) * var(--m-step) + var(--m-lead));
    }

    .card-page .tiles > .tile {
        --m-lead: 0.38s;
    }

    .card-page .hours {
        --m-lead: 0.75s;
    }

    .card-page .addr {
        --m-lead: 0.85s;
    }

    .card-page .call {
        animation: ky-m-wipe 1s var(--m-ease) 0.2s backwards;
    }

    [dir='ltr'] .card-page .call,
    .card-page[dir='ltr'] .call {
        animation-name: ky-m-wipe-ltr;
    }

    /* magic-link pages: the same entrance */
    .gate-in > * {
        animation: ky-m-rise var(--m-slow) var(--m-ease) backwards;
        animation-delay: calc(var(--m-i, 0) * var(--m-step) + 0.1s);
    }

    .gate-in > h1 {
        animation-name: ky-m-title;
        animation-delay: calc(var(--m-i, 0) * var(--m-step) + 0.14s);
    }

    /* an open clinic gets a quiet pulse */
    .card-page .dot:not(.off),
    .ky-status-dot.is-open {
        position: relative;
    }

    .card-page .dot:not(.off)::after,
    .ky-status-dot.is-open::after {
        content: '';
        position: absolute;
        inset: -1.5px;
        border: 1.5px solid currentColor;
        border-radius: 50%;
        animation: ky-m-pulse 2.4s var(--m-ease) 1.2s infinite;
        pointer-events: none;
    }

    /* the card's dialog, toast, chevron and hours list move like everything else */
    .card-page dialog[open] {
        animation: ky-m-rise var(--m-base) var(--m-ease);
    }

    .card-page dialog[open]::backdrop {
        animation: ky-m-fade var(--m-base) ease;
    }

    .card-page .toast {
        transition:
            opacity var(--m-fast) ease,
            transform var(--m-base) var(--m-ease);
    }

    .card-page .chev {
        transition: transform var(--m-base) var(--m-ease);
    }

    @supports (selector(::details-content)) {
        .card-page .hours {
            interpolate-size: allow-keywords;
        }

        .card-page .hours::details-content {
            block-size: 0;
            overflow: hidden;
            transition:
                block-size var(--m-base) var(--m-ease),
                content-visibility var(--m-base) allow-discrete;
        }

        .card-page .hours[open]::details-content {
            block-size: auto;
        }
    }

    .card-page .hours[open] .week > div {
        animation: ky-m-rise var(--m-base) var(--m-ease) backwards;
        animation-delay: calc(var(--m-i, 0) * 0.04s + 0.12s);
    }

    /* ---------- PRESS: any device ---------- */
    .ky-cta,
    .ky-btn,
    .ky-chip,
    .ky-icon-btn,
    .ky-row-link,
    a.ky-row,
    a.ky-card,
    .card-page :is(.tile, .sq, .a2hs, .call, .close) {
        transition: transform var(--m-fast) var(--m-ease);
    }

    .ky-cta:active,
    .ky-btn:not(:disabled):active,
    .ky-chip:active,
    .ky-icon-btn:active,
    .ky-row-link:active,
    a.ky-row:active,
    a.ky-card:active,
    .card-page :is(.tile, .sq, .a2hs, .call, .close):active {
        transform: scale(0.985);
        transition-duration: 0.1s;
    }

    /* ---------- SWEEP: the opposite colour fills the button or tile ---------- */
    .ky-cta,
    .ky-btn--fill,
    .ky-btn:not(.ky-header-end *),
    .card-page :is(.tile, .sq, .a2hs) {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        transition:
            color var(--m-fast) ease 0.08s,
            transform var(--m-fast) var(--m-ease);
    }

    .ky-cta {
        border: 1px solid var(--ky-ink);
    }

    .ky-cta::before,
    .ky-btn--fill::before,
    .ky-btn:not(.ky-header-end *)::before,
    .card-page :is(.tile, .sq, .a2hs)::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: var(--ky-paper, #fff);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform var(--m-base) var(--m-ease);
    }

    /* outline buttons and the card's tiles are filled with ink instead */
    .ky-cta--outline::before,
    .ky-btn:not(.ky-btn--fill):not(.ky-header-end *)::before,
    .card-page :is(.tile, .sq, .a2hs)::before {
        background: var(--ky-ink, #111);
    }

    .card-page .tile::before {
        transform-origin: bottom;
        transform: scaleY(0);
    }

    .card-page .tile:active::before {
        transform: scaleY(1);
    }

    .ky-cta:active::before,
    .ky-btn:not(:disabled):active::before,
    .card-page :is(.sq, .a2hs):active::before {
        transform: scaleX(1);
    }

    .ky-cta--outline:active,
    .ky-btn:not(.ky-btn--fill):not(.ky-header-end *):not(:disabled):active,
    .card-page :is(.tile, .sq, .a2hs):active,
    .card-page .tile:active .tag {
        color: #fff;
    }

    .ky-btn--fill:not(:disabled):active,
    .ky-cta:not(.ky-cta--outline):active {
        color: var(--ky-ink, #111);
    }

    @media (hover: hover) {
        .ky-cta:hover::before,
        .ky-btn:not(:disabled):hover::before,
        .card-page :is(.tile, .sq, .a2hs):hover::before {
            transform: none;
        }

        .ky-cta--outline:hover,
        .ky-btn:not(.ky-btn--fill):not(.ky-header-end *):not(:disabled):hover,
        .card-page :is(.tile, .sq, .a2hs):hover,
        .card-page .tile:hover .tag {
            color: #fff;
        }

        .ky-btn--fill:not(:disabled):hover,
        .ky-cta:not(.ky-cta--outline):hover {
            color: var(--ky-ink, #111);
        }

        .ky-cta svg,
        .ky-row-link svg:last-child,
        .card-page .tile svg {
            transition: transform var(--m-base) var(--m-ease);
        }

        .ky-cta:hover svg,
        .ky-row-link:hover svg:last-child {
            transform: translateX(-8px);
        }

        .card-page .tile:hover svg {
            transform: translateY(-3px);
        }

        /* rows: a quiet wash and the content shifts inward */
        .ky-list-row,
        .ky-row-link,
        a.ky-row {
            transition:
                background-color var(--m-fast) ease,
                padding var(--m-base) var(--m-ease),
                transform var(--m-fast) var(--m-ease);
        }

        .ky-list-row:hover,
        .ky-row-link:hover,
        a.ky-row:hover {
            background: #f7f7f7;
            padding-inline: 12px;
        }

        a.ky-card:hover {
            transform: translateY(-3px);
        }
    }

    .ky-nav-link,
    .ky-owner,
    .ky-footer a,
    .ky-list-no,
    .ky-row-icon {
        transition: color var(--m-fast) ease;
    }

    /* fields: the line changes with touch */
    .ky-shell input,
    .ky-shell textarea,
    .ky-shell select,
    .gate-in input {
        transition:
            border-color var(--m-fast) ease,
            border-bottom-width var(--m-fast) ease,
            padding var(--m-fast) ease;
    }

    /* the magic-link page's button sweeps like the rest */
    .gate-in button {
        background:
            linear-gradient(var(--paper), var(--paper)) no-repeat right / 0%
                100%,
            var(--ink);
        transition:
            background-size var(--m-base) var(--m-ease),
            color var(--m-fast) ease 0.08s,
            transform var(--m-fast) var(--m-ease);
    }

    .gate-in button:active {
        transform: scale(0.985);
        background-size:
            100% 100%,
            auto;
        color: var(--ink);
    }

    @media (hover: hover) {
        .gate-in button:hover {
            background:
                linear-gradient(var(--paper), var(--paper)) no-repeat right /
                    100% 100%,
                var(--ink);
            color: var(--ink);
        }
    }

    /* ---------- SCROLL: public-site sections rise as they enter the screen ---------- */
    @supports (animation-timeline: view()) {
        .ky-site-col > .ky-block,
        .ky-site-col .ky-list-row,
        .ky-site-col .ky-row-link,
        .ky-site-col .ky-actions {
            animation-name: ky-m-rise, ky-m-rise;
            animation-duration: auto, var(--m-slow);
            animation-timing-function: linear, var(--m-ease);
            animation-fill-mode: both, backwards;
            animation-timeline: view(), auto;
            animation-range:
                entry 0% entry 45%,
                normal;
            animation-delay: 0s, calc(var(--m-i, 0) * var(--m-step) + 0.1s);
        }

        .ky-site-col .ky-list-row:nth-child(2),
        .ky-site-col .ky-row-link:nth-of-type(2) {
            animation-range:
                entry 6% entry 51%,
                normal;
        }

        .ky-site-col .ky-list-row:nth-child(3) {
            animation-range:
                entry 12% entry 57%,
                normal;
        }

        /* the opening title drifts away as the page leaves it */
        .ky-intro .ky-page-head {
            animation: ky-m-drift linear both;
            animation-timeline: view();
            animation-range: exit 0% exit 90%;
        }
    }

    /* ---------- BETWEEN PAGES: a full page load (site <-> /card) cross-fades ---------- */
    @view-transition {
        navigation: auto;
    }

    ::view-transition-group(root) {
        animation-duration: var(--m-base);
        animation-timing-function: var(--m-ease);
    }
}

/* =====================================================================
   KV pages (the Oct 2026 design: public site, sign-in, portal). Same
   vocabulary and tokens as above, attached to the .kv-* classes so the
   rebuilt pages move exactly as the earlier ones did.
   ===================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .kv-rail > :nth-child(1) { --m-i: 0; }
    .kv-rail > :nth-child(2) { --m-i: 1; }
    .kv-rail > :nth-child(3) { --m-i: 2; }
    .kv-rail > :nth-child(4) { --m-i: 3; }
    .kv-rail > :nth-child(5) { --m-i: 4; }
    .kv-rail > :nth-child(6) { --m-i: 5; }
    .kv-rail > :nth-child(n + 7) { --m-i: 6; }

    /* enter */
    .kv .kv-header {
        animation: ky-m-drop var(--m-slow) var(--m-ease) backwards;
    }

    .kv .kv-footer {
        animation: ky-m-fade var(--m-slow) var(--m-ease) 0.5s backwards;
    }

    .kv .kv-rail > * {
        --m-lead: 0.1s;
        animation: ky-m-rise var(--m-slow) var(--m-ease) backwards;
        animation-delay: calc(var(--m-i, 0) * var(--m-step) + var(--m-lead));
    }

    /* headlines rise through a mask */
    .kv .kv-rail .kv-h1 {
        animation: ky-m-title var(--m-slow) var(--m-ease) 0.12s backwards;
    }

    /* press */
    .kv :is(.kv-btn, .kv-sbtn, .kv-outline, .kv-sq, .kv-tile, .kv-chip, .kv-iconbtn, .kv-tab) {
        transition: transform var(--m-fast) var(--m-ease);
    }

    .kv :is(.kv-btn, .kv-sbtn, .kv-outline, .kv-sq, .kv-tile, .kv-chip, .kv-iconbtn, .kv-tab):not(:disabled):active {
        transform: scale(0.985);
        transition-duration: 0.1s;
    }

    /* sweep: the opposite colour fills the button */
    .kv :is(.kv-btn, .kv-sbtn, .kv-outline, .kv-tile) {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        transition:
            color var(--m-fast) ease 0.08s,
            transform var(--m-fast) var(--m-ease);
    }

    .kv :is(.kv-btn, .kv-sbtn, .kv-outline, .kv-tile)::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: var(--kv-paper);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform var(--m-base) var(--m-ease);
    }

    .kv :is(.kv-btn:not(.kv-btn--fill), .kv-sbtn:not(.kv-sbtn--fill), .kv-outline, .kv-tile)::before {
        background: var(--kv-ink);
    }

    .kv .kv-next .kv-sbtn:not(.kv-sbtn--fill)::before {
        background: var(--kv-paper);
    }

    .kv :is(.kv-btn, .kv-sbtn, .kv-outline, .kv-tile):not(:disabled):active::before {
        transform: scaleX(1);
    }

    .kv :is(.kv-btn:not(.kv-btn--fill), .kv-sbtn:not(.kv-sbtn--fill), .kv-outline, .kv-tile):not(:disabled):active {
        color: var(--kv-paper);
    }

    .kv :is(.kv-btn--fill, .kv-sbtn--fill):not(:disabled):active {
        color: var(--kv-ink);
    }

    @media (hover: hover) {
        .kv :is(.kv-btn, .kv-sbtn, .kv-outline, .kv-tile):not(:disabled):hover::before {
            transform: none;
        }

        .kv :is(.kv-btn:not(.kv-btn--fill), .kv-sbtn:not(.kv-sbtn--fill), .kv-outline, .kv-tile):not(:disabled):hover {
            color: var(--kv-paper);
        }

        .kv :is(.kv-btn--fill, .kv-sbtn--fill):not(:disabled):hover {
            color: var(--kv-ink);
        }

        .kv .kv-btn svg {
            transition: transform var(--m-base) var(--m-ease);
        }

        .kv .kv-btn:hover svg {
            transform: translateX(-8px);
        }

        /* rows: a quiet wash and the content shifts inward */
        .kv :is(a.kv-row, a.kv-visit) {
            transition:
                background-color var(--m-fast) ease,
                padding var(--m-base) var(--m-ease);
        }

        .kv :is(a.kv-row, a.kv-visit):hover {
            background: #f7f7f7;
            padding-inline: 12px;
        }
    }

    .kv :is(.kv-nav a, .kv-tabs a, .kv-menu-row) {
        transition: color var(--m-fast) ease;
    }

    /* fields: the line changes with touch */
    .kv :is(.kv-input, .kv-otp input) {
        transition:
            border-color var(--m-fast) ease,
            border-bottom-width var(--m-fast) ease;
    }

    /* an open clinic gets a quiet pulse */
    .kv .kv-dot--on {
        position: relative;
    }

    .kv .kv-dot--on::after {
        content: '';
        position: absolute;
        inset: -1.5px;
        border: 1.5px solid currentColor;
        border-radius: 50%;
        animation: ky-m-pulse 2.4s var(--m-ease) 1.2s infinite;
        pointer-events: none;
    }

    /* scroll: public-site sections rise as they enter the screen */
    @supports (animation-timeline: view()) {
        .kv-cols > .kv-section,
        .kv-cols > .kv-stack > .kv-section,
        .kv-stack--home > .kv-section,
        .kv-book-col > .kv-bsec {
            animation-name: ky-m-rise, ky-m-rise;
            animation-duration: auto, var(--m-slow);
            animation-timing-function: linear, var(--m-ease);
            animation-fill-mode: both, backwards;
            animation-timeline: view(), auto;
            animation-range: entry 0% entry 45%, normal;
        }

        /* the opening title drifts away as the page leaves it (public home) */
        .kv-rail > .kv-hero:first-child .kv-h1 {
            animation: ky-m-drift linear both;
            animation-timeline: view();
            animation-range: exit 0% exit 90%;
        }
    }
}

/* =====================================================================
   KV pages — everything you can touch answers back (Oct 2026).
   Same tokens as above: light feedback on hover/press, arrows nudge,
   icons move a little, lists rise when a menu or page opens.
   ===================================================================== */

@media (prefers-reduced-motion: no-preference) {
    @keyframes ky-m-pop {
        from { opacity: 0; transform: scale(0.6) rotate(-12deg); }
    }

    @keyframes ky-m-ring {
        0%, 100% { transform: rotate(0); }
        25% { transform: rotate(-14deg); }
        60% { transform: rotate(10deg); }
    }

    /* icons that change (menu <-> close, active tab) pop in */
    .kv .kv-iconbtn svg,
    .kv .kv-tab[aria-current='page'] svg {
        animation: ky-m-pop var(--m-base) var(--m-ease) backwards;
    }

    /* the menu page: button and rows rise one after another */
    .kv .kv-rail > .kv-btn,
    .kv .kv-menu-row,
    .kv .kv-menu-phone {
        animation: ky-m-rise var(--m-slow) var(--m-ease) backwards;
    }

    .kv .kv-menu-row:nth-child(1) { animation-delay: 0.14s; }
    .kv .kv-menu-row:nth-child(2) { animation-delay: 0.22s; }
    .kv .kv-menu-phone { animation-delay: 0.3s; }

    /* shared transitions */
    .kv :is(.kv-nav a, .kv-tabs a, .kv-menu-row, .kv-tab, .kv-link, .kv-vrow, .kv-chip, .kv-tabsrow button, .kv-seg button, .kv-footer-row a, .kv-file) {
        transition:
            color var(--m-fast) ease,
            background-color var(--m-fast) ease,
            border-color var(--m-fast) ease,
            box-shadow var(--m-base) var(--m-ease),
            padding var(--m-base) var(--m-ease),
            transform var(--m-fast) var(--m-ease);
    }

    .kv :is(.kv-row-ico, .kv-menu-row svg, .kv-link svg, .kv-vrow svg, .kv-nav a svg, .kv-tab svg, .kv-tile svg, .kv-feature .kv-row-ico, .kv-iconbtn svg, .kv-sq svg) {
        transition: transform var(--m-base) var(--m-ease);
    }

    /* press feedback works on touch too */
    .kv :is(.kv-nav a, .kv-menu-row, .kv-link, .kv-vrow, .kv-tab:not([aria-current='page']), a.kv-row, .kv-file, .kv-tabs a):active {
        background-color: #f2f2f2;
    }

    .kv .kv-nav .kv-nav-btn:active {
        background-color: #333;
    }

    .kv :is(.kv-menu-row, .kv-link, .kv-vrow, a.kv-row):active svg:last-child {
        transform: translateX(-6px);
    }

    .kv :is(.kv-iconbtn, .kv-sq, .kv-tab):active svg {
        transform: scale(0.88);
    }

    @media (hover: hover) {
        /* nav cells: wash, and the call icon rings */
        .kv .kv-nav a:hover {
            background-color: #f7f7f7;
            color: var(--kv-ink);
        }

        .kv .kv-nav .kv-nav-btn:hover {
            background-color: #2a2a2a;
            color: var(--kv-paper);
        }

        .kv .kv-nav .kv-nav-btn:hover svg {
            transform: translateX(-6px);
        }

        .kv .kv-nav-call:hover svg,
        .kv .kv-iconbtn:hover svg {
            animation: ky-m-ring var(--m-base) var(--m-ease);
        }

        /* list rows and links: wash, arrow nudges toward the link */
        .kv :is(.kv-menu-row, .kv-link, .kv-vrow, .kv-file):hover {
            background-color: #f7f7f7;
        }

        .kv :is(.kv-menu-row, .kv-link, .kv-vrow):hover {
            padding-inline: 12px;
        }

        .kv :is(.kv-menu-row, .kv-link, .kv-vrow):hover svg:last-child,
        .kv a.kv-row:hover > svg:last-child {
            transform: translateX(-6px);
        }

        /* icons lift a little with their row or tile */
        .kv :is(a.kv-row, .kv-tile, .kv-feature):hover :is(.kv-row-ico, svg:first-child) {
            transform: translateY(-2px) scale(1.06);
        }

        .kv .kv-tab:hover svg {
            transform: translateY(-2px);
        }

        .kv .kv-sq:hover {
            background-color: var(--kv-ink);
            color: var(--kv-paper);
        }

        /* chips, tabs and filters */
        .kv .kv-chip:not([aria-pressed='true']):hover {
            background-color: #f2f2f2;
        }

        .kv :is(.kv-tabsrow button, .kv-tabs a, .kv-seg button):not([aria-pressed='true']):not([aria-current='page']):hover {
            background-color: #f7f7f7;
            color: var(--kv-ink);
        }

        .kv .kv-footer-row a:hover {
            opacity: 0.7;
        }
    }
}
