/* Morfohouse mobile typography and content density v4.1 — staging only.
   Overrides mobile v4.0 in one replacement stylesheet. No desktop changes. */
@media screen and (max-width:680px) {
  html { -webkit-text-size-adjust:100%; }
  body { overflow-x:clip; }
  .site-header, header.site-header { position:relative!important;top:auto!important; }
  .site-header .site-bar { padding:7px 9px!important; }
  .site-header .brand-logo { max-width:36px!important; }
  .site-header.menu-open .site-nav { background:#f7f5f0!important; opacity:1!important; }
  /* Shared typography. Restrict selectors to the page areas, not technical figures. */
  .approved-home .hero h1 {font-size:34px!important;line-height:1.14!important;letter-spacing:-.025em!important;margin:10px 0 16px!important;}
  .approved-home .hero .lead {font-size:16px!important;line-height:1.55!important;}
  .approved-home .hero .eyebrow {font-size:11px!important;letter-spacing:.09em!important;}
  .approved-home .approved-photo-hero .hero {padding:28px 18px 25px!important;}
  .approved-home .approved-photo-hero .hero .wrap {padding-left:0!important;padding-right:0!important;}
  .approved-home .approved-photo-hero .actions {gap:8px!important;margin-top:16px!important;}
  .approved-home .approved-photo-hero .btn {font-size:14px!important;line-height:1.3!important;padding:11px 13px!important;min-height:44px!important;box-sizing:border-box!important;}
  .approved-home .approved-photo-frame,.approved-home .approved-photo-frame img,.approved-home .approved-photo-hero .approved-photo {
    height:185px!important;max-height:185px!important;min-height:0!important;overflow:hidden!important;object-fit:cover!important;
  }
  .approved-home .section {padding-top:30px!important;padding-bottom:30px!important;}
  .approved-home .section p {font-size:16px!important;line-height:1.55!important;}
  /* Guides hub: cards become genuinely compact image-left rows on mobile. */
  .article-head {padding:26px 18px 18px!important;margin:0 auto!important;}
  .article-head h1 {font-size:30px!important;line-height:1.18!important;letter-spacing:-.02em!important;margin:12px 0!important;}
  .article-head .intro {font-size:16px!important;line-height:1.55!important;margin:12px 0!important;}
  .guide-category {margin-top:22px!important;margin-bottom:20px!important;padding-top:0!important;}
  .guide-category-title {font-size:23px!important;line-height:1.25!important;margin:12px 0!important;}
  .guide-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
  .guide-grid .guide-card {
    box-sizing:border-box!important;display:grid!important;
    grid-template-columns:100px minmax(0,1fr)!important;
    grid-template-rows:auto auto 1fr!important;
    align-items:start!important;column-gap:12px!important;row-gap:3px!important;
    min-width:0!important;min-height:0!important;height:auto!important;
    padding:10px!important;margin:0!important;background:#fff!important;
    border:1px solid #e7e2d9!important;border-radius:10px!important;
    text-decoration:none!important;
  }
  .guide-grid .guide-card>img {grid-column:1!important;grid-row:1 / span 3!important;width:100px!important;height:100px!important;max-height:100px!important;min-height:0!important;object-fit:cover!important;margin:0!important;border-radius:6px!important;}
  .guide-grid .guide-card>h2 {grid-column:2!important;grid-row:1!important;font-size:17px!important;line-height:1.2!important;margin:0!important;letter-spacing:normal!important;overflow-wrap:anywhere!important;}
  .guide-grid .guide-card>p {grid-column:2!important;grid-row:2!important;font-size:14px!important;line-height:1.35!important;margin:2px 0!important;overflow-wrap:anywhere!important;}
  .guide-grid .guide-card>.read {grid-column:2!important;grid-row:3!important;align-self:end!important;font-size:13px!important;line-height:1.25!important;margin:3px 0 0!important;}
  /* Catalogue: scaled headings, images, cards, and clear touch targets. */
  .retailer-section h2,.section-head h2 {font-size:26px!important;line-height:1.2!important;margin:12px 0!important;}
  .retailer-section p,.section-head p {font-size:15px!important;line-height:1.5!important;}
  .retailer-section {padding-top:24px!important;padding-bottom:20px!important;}
  .retailer-section .retailer-row {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}
  .retailer-section .retailer-row>.retailer-card {min-height:60px!important;padding:6px 3px!important;gap:3px!important;}
  .retailer-section .retailer-row>.retailer-card img {max-height:26px!important;}
  .cards>.card>.logoarea {height:65px!important;min-height:65px!important;padding:5px 4px 2px!important;}
  .cards>.card>.logoarea>img {max-height:34px!important;}
  .cards>.card>.card-body {padding:7px!important;}
  .cards>.card>.card-body>a {min-height:40px!important;font-size:12px!important;}
  .hero h1 {font-size:30px!important;line-height:1.15!important;}
  .hero {padding:27px 18px!important;}
  /* Shorten decorative images; never crop technical diagrams. */
  .mh-guide-v2 .mh-figure.mh-hero img,.mh-guide-v2 .mh-figure.mh-hero-photo img {max-height:190px!important;object-fit:cover!important;}
  .mh-guide-v2 .mh-figure.diagram img,.mh-guide-v2 figure.diagram img {height:auto!important;max-height:none!important;object-fit:contain!important;}
  a.whatsapp,.whatsapp-float,.whatsapp-fixed,.floating-whatsapp {font-size:11px!important;padding:8px!important;max-width:100px!important;}


/* v4.2: catalogue card structural repair — fixed-height legacy grid was overlapping names/categories. */
.cards > .card {min-width:0!important;}
.cards > .card > .logoarea {
 display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;
 height:auto!important;min-height:88px!important;max-height:none!important;
 padding:8px 6px 6px!important;gap:5px!important;
 grid-template-columns:none!important;grid-template-rows:none!important;overflow:hidden!important;
}
.cards > .card > .logoarea > img {
 width:auto!important;height:auto!important;max-width:93%!important;max-height:37px!important;
 object-fit:contain!important;object-position:center!important;flex:0 1 auto!important;margin:0 auto!important;
}
.cards > .card > .logoarea > .brand-name {
 position:static!important;display:block!important;flex:0 0 auto!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 margin:2px 0 0!important;font-size:12px!important;line-height:1.3!important;
 overflow-wrap:anywhere!important;text-align:center!important;
}
.cards > .card > .card-body {
 position:static!important;display:flex!important;flex-direction:column!important;
 flex:1 0 auto!important;min-height:0!important;height:auto!important;gap:6px!important;
 justify-content:space-between!important;padding:8px 8px 9px!important;
 grid-template-rows:none!important;
}
.cards > .card > .card-body > .category {position:static!important;display:block!important;font-size:10px!important;line-height:1.3!important;min-height:13px!important;}
.cards > .card > .card-body > a {position:static!important;display:flex!important;align-items:center!important;min-height:39px!important;font-size:12px!important;line-height:1.35!important;overflow-wrap:anywhere!important;}
/* v4.2: compact editorial home content while retaining full text. */
.approved-home .wrap.section {padding-top:24px!important;padding-bottom:24px!important;}
.approved-home .section .eyebrow {font-size:11px!important;line-height:1.4!important;letter-spacing:.08em!important;}
.approved-home .section h2 {font-size:24px!important;line-height:1.19!important;margin:10px 0 12px!important;}
.approved-home .section h3 {font-size:19px!important;line-height:1.25!important;margin:8px 0!important;}
.approved-home .feature,.approved-home .card {padding:15px!important;}
.approved-home .feature p,.approved-home .card p {font-size:15px!important;line-height:1.5!important;}
.approved-home .price {font-size:23px!important;line-height:1.18!important;margin:8px 0!important;}
.approved-home .budget-photo-card .budget-photo {height:95px!important;max-height:95px!important;margin-bottom:9px!important;object-fit:cover!important;}
.approved-home .budget-photo-card {padding:12px!important;}
.approved-home .budget-photo-card p {font-size:14px!important;line-height:1.45!important;}
.approved-home .morfo-software .software-render-grid {grid-template-columns:1fr!important;gap:10px!important;}
.approved-home .morfo-software .software-render-grid figure.software-shot {grid-row:auto!important;margin:0!important;display:block!important;padding:0!important;}
.approved-home .morfo-software .software-render-grid figure.software-shot img {
 width:100%!important;height:155px!important;max-height:155px!important;min-height:0!important;object-fit:cover!important;
}
.approved-home .morfo-software .software-render-grid figure.software-shot figcaption {padding:7px 10px!important;min-height:0!important;font-size:12px!important;}
.approved-home .morfo-software .software-workflow {margin-top:26px!important;padding-top:18px!important;}
/* Keep floating contact link away from central card text where possible. */
.wa-float,.whatsapp-float,.whatsapp-fixed {font-size:11px!important;}

}
@media screen and (max-width:360px) {
  .guide-grid .guide-card {grid-template-columns:86px minmax(0,1fr)!important;}
  .guide-grid .guide-card>img {width:86px!important;height:86px!important;}
  .approved-home .hero h1 {font-size:31px!important;}
}


/* v4.3: Structural mobile manufacturer labels: the separate mobile label is in the
   card body, not inside the fixed-height/legacy logo grid. */
@media (min-width:681px) { .mobile-brand-name{display:none!important;} }
@media (max-width:680px) {
 .cards>.card {display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;overflow:hidden!important;}
 .cards>.card>.logoarea {box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;height:64px!important;min-height:64px!important;max-height:64px!important;padding:6px!important;gap:0!important;}
 .cards>.card>.logoarea>img {display:block!important;max-width:90%!important;max-height:42px!important;width:auto!important;height:auto!important;object-fit:contain!important;}
 .cards>.card>.logoarea>.brand-name {display:none!important;}
 .cards>.card>.card-body {box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:5px!important;padding:8px!important;height:auto!important;min-height:0!important;justify-content:flex-start!important;}
 .cards>.card>.card-body>.mobile-brand-name {display:block!important;position:static!important;text-align:center!important;font-size:13px!important;font-weight:700!important;line-height:1.25!important;min-height:16px!important;color:#193653!important;overflow-wrap:anywhere!important;}
 .cards>.card>.card-body>.category {display:block!important;position:static!important;font-size:10px!important;line-height:1.25!important;min-height:0!important;max-height:none!important;overflow-wrap:anywhere!important;}
 .cards>.card>.card-body>a {position:static!important;display:flex!important;align-items:center!important;min-height:40px!important;font-size:12px!important;line-height:1.3!important;}
 /* Rendering gallery: rows have predictable dimensions. */
 .approved-home section.morfo-software .software-render-grid {display:grid!important;grid-template-columns:1fr!important;gap:9px!important;}
 .approved-home section.morfo-software .software-render-grid>figure.software-shot {display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;padding:8px!important;margin:0!important;min-height:96px!important;height:auto!important;box-sizing:border-box!important;}
 .approved-home section.morfo-software .software-render-grid>figure.software-shot>img {display:block!important;flex:0 0 136px!important;width:136px!important;height:92px!important;max-width:45%!important;min-height:0!important;max-height:92px!important;object-fit:cover!important;}
 .approved-home section.morfo-software .software-render-grid>figure.software-shot>figcaption {display:block!important;flex:1!important;font-size:13px!important;line-height:1.35!important;text-align:left!important;padding:0!important;margin:0!important;}
}


/* v4.4 — tighten real card structure without reducing normal body readability. */
@media (max-width:680px) {
 /* Manufacturer: every label stays in its own flex row, no empty fixed panels. */
 .cards {gap:7px!important;}
 .cards>.card {border-radius:9px!important;min-height:0!important;}
 .cards>.card>.logoarea {height:49px!important;min-height:49px!important;max-height:49px!important;padding:4px 6px!important;}
 .cards>.card>.logoarea>img {max-height:34px!important;max-width:87%!important;}
 .cards>.card>.card-body {padding:5px 7px 6px!important;gap:3px!important;}
 .cards>.card>.card-body>.mobile-brand-name {font-size:12px!important;line-height:1.2!important;min-height:0!important;}
 .cards>.card>.card-body>.category {font-size:9px!important;line-height:1.22!important;letter-spacing:.03em!important;}
 .cards>.card>.card-body>a {font-size:11px!important;line-height:1.3!important;min-height:40px!important;align-items:center!important;}
 /* Budget tiles: clear 3-part information strip, preserve price/copy. */
 .approved-home .grid3 {gap:9px!important;}
 .approved-home .grid3>.budget-photo-card {padding:10px!important;min-height:0!important;height:auto!important;}
 .approved-home .grid3>.budget-photo-card>img.budget-photo {height:72px!important;max-height:72px!important;min-height:0!important;object-fit:cover!important;margin:0 0 6px!important;}
 .approved-home .grid3>.budget-photo-card>h3 {font-size:18px!important;line-height:1.2!important;margin:2px 0 3px!important;}
 .approved-home .grid3>.budget-photo-card>.price {font-size:21px!important;line-height:1.2!important;margin:0 0 5px!important;}
 .approved-home .grid3>.budget-photo-card>p {font-size:14px!important;line-height:1.38!important;margin:0!important;}
 .approved-home .section {padding-top:22px!important;padding-bottom:22px!important;}
 .approved-home .section h2 {font-size:23px!important;line-height:1.22!important;}
 /* Render preview layout — no giant images on mobile. */
 .approved-home section.morfo-software .software-inner {padding-top:20px!important;padding-bottom:20px!important;}
 .approved-home section.morfo-software h2 {font-size:24px!important;line-height:1.22!important;}
 .approved-home section.morfo-software h3 {font-size:20px!important;line-height:1.2!important;}
 .approved-home section.morfo-software .software-render-grid>figure.software-shot {min-height:76px!important;padding:6px!important;gap:9px!important;}
 .approved-home section.morfo-software .software-render-grid>figure.software-shot>img {flex:0 0 104px!important;width:104px!important;height:72px!important;max-height:72px!important;max-width:40%!important;}
 .approved-home section.morfo-software .software-render-grid>figure.software-shot>figcaption {font-size:12px!important;line-height:1.3!important;}
 /* Broad editorial pages: shorten decorative hero image and huge heading gaps. */
 .approved-home .hero {padding-top:22px!important;padding-bottom:18px!important;}
 .approved-home .hero h1 {font-size:32px!important;line-height:1.12!important;}
 .approved-home .hero .lead {font-size:16px!important;line-height:1.45!important;}
 .approved-home .approved-photo-frame,.approved-home .approved-photo-frame img {height:145px!important;max-height:145px!important;}
 /* Keep guides compact; avoid removing useful technical imagery. */
 .guide-grid .guide-card {grid-template-columns:88px minmax(0,1fr)!important;gap:2px 10px!important;padding:8px!important;}
 .guide-grid .guide-card>img {width:88px!important;height:88px!important;max-height:88px!important;}
 .guide-grid .guide-card>h2 {font-size:16px!important;}
 .guide-grid .guide-card>p {font-size:13px!important;}
 .guide-grid .guide-card>.read {font-size:12px!important;}
}

/* v4.5: same structure/height on all three mobile budget cards. */
@media screen and (max-width:680px) {
  .approved-home .grid3 > .card.budget-photo-card,
  .approved-home .grid3 > .card.budget-luxury {
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
    padding:10px!important;
    min-height:0!important;
    height:auto!important;
    gap:3px!important;
  }
  .approved-home .grid3 > .card.budget-photo-card > img.budget-photo,
  .approved-home .grid3 > .card.budget-luxury > img.budget-image {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:72px!important;
    min-height:72px!important;
    max-height:72px!important;
    object-fit:cover!important;
    border-radius:5px!important;
    margin:0 0 4px!important;
  }
  .approved-home .grid3 > .card.budget-photo-card > h3,
  .approved-home .grid3 > .card.budget-luxury > h3 {
    font-size:18px!important;
    line-height:1.2!important;
    margin:2px 0 3px!important;
  }
  .approved-home .grid3 > .card.budget-photo-card > .price,
  .approved-home .grid3 > .card.budget-luxury > .price {
    font-size:21px!important;
    line-height:1.2!important;
    margin:0 0 4px!important;
  }
  .approved-home .grid3 > .card.budget-photo-card > p,
  .approved-home .grid3 > .card.budget-luxury > p {
    font-size:14px!important;
    line-height:1.38!important;
    margin:0!important;
  }
}
