/* Havok — reforço mobile (≤720px) para manuais longos e hub manual.html.
   Carregar DEPOIS de manual-guias.css (guias) ou styles.css (manual.html). */

@media (max-width: 720px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    body {
        -webkit-tap-highlight-color: rgba(164, 194, 106, 0.35);
    }

    .manual {
        max-width: 100%;
        margin: 0 auto;
        box-shadow: none;
    }

    .cover {
        min-height: auto;
        padding-bottom: 28px;
    }
    .cover-panel {
        padding: 28px 18px 40px;
    }
    .cover h1 {
        max-width: none;
    }
    .cover-side {
        min-height: 96px;
    }

    .cover-row,
    .two-col {
        grid-template-columns: 1fr;
    }

    .two-col-head {
        padding: 24px 18px 20px;
    }
    .two-col-head h2 {
        font-size: clamp(1.2rem, 5vw, 1.45rem);
    }

    .two-col-right,
    .section-pad {
        padding: 22px 16px 32px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 10px;
    }

    .btn-pdf,
    a.btn-pdf {
        min-height: 44px;
        padding: 14px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .manual-end-actions {
        flex-direction: column;
        padding: 18px 14px;
        gap: 10px;
    }
    .manual-end-actions .btn-pdf,
    .manual-end-actions a.btn-pdf {
        width: 100%;
    }

    .toc {
        padding: 14px 14px 16px;
        max-height: min(72vh, 28rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .toc ol {
        font-size: 0.91rem;
    }

    .mapa-menu-grid {
        grid-template-columns: 1fr;
    }

    .manual-operacao-grid {
        grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    }

    .module-head {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .cover-logo-row img {
        max-width: 100%;
        height: auto;
        max-height: 48px;
    }

    .steps li {
        padding-left: 44px;
        margin-bottom: 16px;
    }
    .steps li::before {
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
    }

    .diagram-wrap {
        padding: 16px 12px 18px;
    }
    .flow-row {
        flex-direction: column;
        align-items: center;
    }
    .flow-arrow {
        transform: rotate(90deg);
        min-height: 28px;
    }
    .flow-box {
        max-width: 100%;
        width: 100%;
        min-height: auto;
        padding: 14px 12px;
    }

    .store-row {
        flex-direction: column;
    }
    .btn-store {
        flex: 1 1 auto;
        width: 100%;
        min-height: 48px;
    }

    .table-wrap {
        padding: 0 14px 28px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-wrap table {
        min-width: 480px;
        font-size: 0.84rem;
    }
    .table-wrap th,
    .table-wrap td {
        padding: 10px 12px;
    }

    footer.foot {
        padding: 22px 14px 26px;
        font-size: 0.78rem;
    }

    /* Hub manual.html — cabeçalho fixed: folga generosa abaixo da barra */
    .manual-page {
        padding-top: max(clamp(5.5rem, 16vw, 7rem), env(safe-area-inset-top));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: 2.75rem;
        padding-left: max(1rem, env(safe-area-inset-left));
    }
    .manual-page-heading {
        margin-bottom: 1.5rem;
        padding-top: 0.25rem;
    }
    .manual-page-heading .section-title {
        font-size: clamp(1.45rem, 5vw, 1.85rem);
        line-height: 1.2;
        padding: 0 0.25rem;
    }
    .manual-long-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .manual-long-card {
        padding: 1.2rem 1rem;
    }
    .manual-page-intro {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        line-height: 1.62;
        padding: 0 0.15rem;
    }
    .manual-page-heading .manual-page-intro {
        margin-bottom: 0;
    }

    /* Capa staff / comando (layout com foto) */
    .cover-photo-wrap {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        bottom: auto !important;
        width: 100% !important;
        padding: 0 14px 28px !important;
        margin-top: 12px;
    }
    .cover-photo {
        aspect-ratio: 16 / 10;
    }
    .intro-hero {
        min-height: auto;
        margin-bottom: 20px;
    }
    .intro-hero-inner {
        padding: 20px 16px;
    }
    .intro-title {
        font-size: clamp(1.25rem, 5vw, 1.65rem);
    }
}
