/* Mobile presentation for the editable layouts; desktop artwork stays in its frame. */
@media (max-width:767px) {
    .pp-page .pp-hero-layout { grid-template-columns:minmax(0,1fr); }
    .pp-page .pp-hero-copy,.pp-page .pp-hero-art { width:100%; min-width:0; max-width:100%; }
    .pp-page .pp-hero-copy h1,.pp-page .pp-hero-description,.pp-page .pp-hero-features { width:auto; max-width:100%; }
    .pp-page .pp-hero-art { position:relative; inset:auto; }
    .pp-page .pp-hero-art .pp-art { width:100%; height:auto; aspect-ratio:auto !important; }
    .pp-page .pp-hero-art .pp-art img { width:100% !important; height:auto !important; object-fit:contain; }
    .pp-page .pp-hero-features { gap:16px 12px; }
    .pp-page .pp-hero-features li { min-width:0; border:0; padding:0; }
    .pp-page .pp-hero-features strong { white-space:normal; }
    .pp-page .pp-cards .pp-grid,.pp-page .pp-models .pp-grid { grid-template-columns:minmax(0,1fr); }
    .pp-page .pp-stats .pp-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pp-page .pp-models .pp-art,.pp-page .pp-split-visual > .pp-upload { height:auto; aspect-ratio:auto !important; }
    .pp-page .pp-models .pp-art img,.pp-page .pp-split-visual > .pp-upload img { height:auto !important; object-fit:contain; }
    .pp-page .pp-split-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
    .pp-family-label #product-section-6 .pp-grid { grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; gap:14px; }
    .pp-family-label #product-section-6 h3 { font-size:15px; }
    /* Paired sections (e.g. specs table + applications): a plain 1fr track grows to the table's 540px min-width and pushes both sections past the viewport. Let the track shrink; the table scrolls inside its own wrapper. */
    .pp-page .pp-paired { grid-template-columns:minmax(0,1fr); }
    .pp-page .pp-paired > .pp-section { min-width:0; }
    .pp-page .pp-table-wrap { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .pp-page .pp-table-wrap table { min-width:540px; }
    .pp-page .pp-inquiry input,.pp-page .pp-inquiry textarea,.pp-page .pp-inquiry select { min-width:0; max-width:100%; font-size:16px; }

    /* A readable heading, full banner photograph, then the consultation form. */
    .pj-home-refresh .pj-vi-hero { background:#001c3d; }
    .pj-home-refresh .pj-vi-hero-grid { gap:24px; }
    .pj-home-refresh .pj-vi-hero-art { display:block; position:relative; inset:auto; width:100%; max-width:none; margin:0; aspect-ratio:3479/1960; background:url('../images/home/heading.png') center/contain no-repeat; }
    .pj-home-refresh .pj-vi-hero-art > * { display:none; }
    .pj-home-refresh .pj-hero-form { margin-top:0; }
    .pj-home-refresh .pj-home-catalog,.pj-home-refresh .pj-ecosystem-grid { grid-template-columns:minmax(0,1fr); }
    .pj-home-refresh .pj-ecosystem-card:last-child { width:100%; grid-column:auto; }
    .pj-home-refresh .pj-ecosystem-card .pj-home-photo { aspect-ratio:auto; }
    .pj-home-refresh .pj-ecosystem-card .pj-home-photo img { height:auto !important; object-fit:contain; }
    .pj-home-refresh .pj-quality-section { background:#001c3d; }
    .pj-home-refresh .pj-demo-art .pj-approved-art { aspect-ratio:auto !important; }
    .pj-home-refresh .pj-demo-art .pj-editable-image > img { height:auto !important; object-fit:contain; }
    .pj-home-refresh .pj-tool-card > .pj-editable-image { aspect-ratio:auto !important; }
    .pj-home-refresh .pj-tool-card > .pj-editable-image img { height:auto !important; object-fit:contain; }
    .pj-solutions-overview .sv-hero-art { aspect-ratio:3479/1960; background-position:center; margin:0; }
    .pj-solutions-overview .sv-catalog-grid { grid-template-columns:minmax(0,1fr); }
    .pj-solutions-overview .sv-catalog-card > .sv-art { aspect-ratio:auto; }
    .pj-solutions-overview .sv-catalog-card > .sv-art img { height:auto !important; }

    /* Keep company photographs in normal flow instead of tiny desktop crops. */
    .pc-hero-photo { aspect-ratio:auto; }
    .pc-hero-photo img { height:auto !important; object-fit:contain; }
    .pc-about .pc-why-card { display:flex; flex-direction:column; min-height:0; }
    .pc-about .pc-why-card > .pc-photo { position:relative; inset:auto; aspect-ratio:auto; }
    .pc-about .pc-why-card > .pc-photo img { height:auto !important; object-fit:contain; }
    .pc-about .pc-why-card::after { display:none; }
    .pc-about .pc-why-card > div { display:flex; align-items:center; gap:16px; padding:20px; }
    .pc-about .pc-why-card .pj-icon { margin:0; }
    .pc-about .pc-vision-grid { grid-template-columns:minmax(0,1fr); }

    .hy-page .hy-hero-grid { background:none; }
    .hy-page .hy-hero-visual { min-height:0; gap:20px; }
    .hy-page .hy-hero-screen { display:block; width:100%; margin:0; order:-1; height:auto; aspect-ratio:auto; box-shadow:none; }
    .hy-page .hy-hero-screen img { height:auto !important; object-fit:contain; }
    .hy-page .hy-partners { gap:14px; }
    .hy-page .hy-partners > .hy-partner-logo { width:105px; flex-basis:105px; }
    .hy-page .hy-grid-five,.hy-page .hy-benefits .hy-grid,.hy-page .hy-problems .hy-grid { grid-template-columns:minmax(0,1fr); }
    .hy-page .hy-software-card:last-child { width:100%; grid-column:auto; }
    .hy-page .hy-process-overview { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .hy-page .hy-process-overview img { min-width:760px; max-width:none; }
    .hy-page .hy-process > .container::after { content:"Vuốt ngang ảnh để xem toàn bộ quy trình →"; display:block; margin-top:10px; color:#c5d7ec; font-size:13px; }

    .pj-calculator .pj-calc-hero-art { width:100%; }
    .pj-calculator .pj-calc-hero-art .pj-editable-image { height:auto; aspect-ratio:auto !important; }
    .pj-calculator .pj-calc-hero-art .pj-editable-image > img { width:100% !important; height:auto !important; object-fit:contain; }
    .pj-calculator input,.pj-calculator select,.pj-calculator textarea { font-size:16px; }
}
@media (max-width:374px) {
    .pp-page .pp-hero-features,.pj-home-refresh .pj-industry-grid,.pc-contact .pc-contact-grid,.pc-contact .pc-service-grid { grid-template-columns:minmax(0,1fr); }
    .pp-page .pp-actions { align-items:stretch; }
    .pp-page .pp-actions > * { flex:1 1 100%; text-align:center; justify-content:center; }
}
