/* Property of Sistema THEAD. All rights reserved. */
/* Ctrl/⌘+/ : the list of keys (src/a11y/keys-help.tsx). The app's popup look
   (white card, --popup-radius, navy ink), keys as small rounded boxes. Full
   screen on phones. Printing prints only the list. Tokens only. */

.tj-keys-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--brand-ink-rgb), 0.45);
}

.tj-keys-modal {
    box-sizing: border-box;
    width: min(720px, calc(100vw - 32px));
    max-height: min(86vh, 900px);
    display: flex;
    border-radius: var(--popup-radius, 28px);
    background: var(--brand-white);
    color: var(--brand-ink);
    box-shadow: 0 16px 34px rgba(var(--brand-ink-rgb), 0.28);
    overflow: hidden;
}

.tj-keys-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: inherit;
    padding: 22px 22px 18px;
    font-family: var(--app-font);
    outline: none;
}

.tj-keys-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.tj-keys-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}
.tj-keys-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tj-keys-print {
    min-height: 44px;
    padding: 0 18px;
    border: 2px solid rgba(var(--brand-ink-rgb), 0.18);
    border-radius: 999px;
    background: var(--brand-white);
    color: var(--brand-blue-deep);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.tj-keys-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(var(--brand-ink-rgb), 0.6);
    cursor: pointer;
}
.tj-keys-close svg {
    width: 26px;
    height: 26px;
}

.tj-keys-body {
    overflow-y: auto;
    min-height: 0;
}
.tj-keys-section-title {
    margin: 14px 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}
.tj-keys-table {
    width: 100%;
    border-collapse: collapse;
}
.tj-keys-table tr + tr {
    border-top: 1px solid rgba(var(--brand-ink-rgb), 0.1);
}
.tj-keys-what {
    width: 55%;
    padding: 8px 12px 8px 0;
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
}
.tj-keys-keys {
    padding: 8px 0;
    vertical-align: middle;
}
.tj-key {
    display: inline-block;
    min-width: 1.6em;
    padding: 2px 8px;
    border: 2px solid rgba(var(--brand-ink-rgb), 0.22);
    border-bottom-width: 3px;
    border-radius: 8px;
    background: var(--brand-white);
    font-family: inherit;
    font-weight: 700;
    text-align: center;
}
.tj-keys-plus,
.tj-keys-or {
    margin: 0 4px;
    color: rgba(var(--brand-ink-rgb), 0.7);
}

@media (max-width: 600px), (max-height: 520px) {
    .tj-keys-modal {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }
    .tj-keys-dialog {
        padding: max(16px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    }
    .tj-keys-what {
        width: 50%;
    }
}

/* Printing prints only the list, plainly. */
@media print {
    body > *:not(.tj-keys-host) {
        display: none !important;
    }
    .tj-keys-overlay {
        position: static;
        background: none;
    }
    .tj-keys-modal {
        width: auto;
        max-height: none;
        box-shadow: none;
        overflow: visible;
    }
    .tj-keys-body {
        overflow: visible;
    }
    .tj-keys-actions {
        display: none;
    }
}
