/*
 * Shared breakpoints from HostPocket UX/UI v1.0:
 * mobile below 768px, compact/tablet from 768px, full desktop from 1200px.
 * Navigation-shell behavior belongs to UX-002 and UX-003.
 */
@media (min-width: 768px) {
    .hp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .hp-grid--three-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hp-page {
        padding: var(--hp-space-4);
    }

    .hp-page-header {
        align-items: stretch;
        flex-direction: column;
        margin-block-end: var(--hp-space-4);
    }

    .hp-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .hp-modal__panel {
        border-radius: var(--hp-radius-l) var(--hp-radius-l) 0 0;
        margin: var(--hp-space-6) 0 0;
        max-height: calc(100dvh - var(--hp-space-6));
        position: absolute;
        bottom: 0;
        width: 100%;
    }

    .hp-modal__footer,
    .hp-drawer__footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .hp-modal__footer .hp-btn,
    .hp-drawer__footer .hp-btn {
        width: 100%;
    }

    .hp-app--cleaner :where(
        .hp-btn,
        .hp-input,
        .hp-select,
        .hp-checkbox,
        .hp-switch
    ) {
        min-height: var(--hp-touch-target);
    }
}
