/* Homepage-specific visual fixes, 2026-11-09; unique file for cache-safe mobile update. */
/* Homepage TravelTech: do not crop real screenshot inside fixed-height product browser. */
body:not(.cases-page) .work-card .real-ui-travel .product-browser{
  display:block;
  flex:0 0 auto;
  height:auto;
  min-height:0;
  max-height:none;
  overflow:hidden;
  align-self:stretch;
  margin:8px 0 10px;
}
body:not(.cases-page) .work-card .real-ui-travel .product-browser img{
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  aspect-ratio:1200/870;
  object-fit:contain;
  object-position:center top;
}
body:not(.cases-page) .work-card .real-ui-travel .browser-chrome{
  height:25px;
  flex-shrink:0;
  white-space:nowrap;
  overflow:hidden;
}
body:not(.cases-page) .work-card .real-ui-travel .real-ui-foot{
  flex-wrap:wrap;
  gap:6px 12px;
}

/* Main-page diagram readability on narrow mobile screens. */
@media(max-width:420px){
  .personal-graphic.education-map .moodle-map-steps{
    gap:6px;
    padding-block:7px!important;
    margin:0!important;
  }
  .education-map .moodle-map-steps b{
    width:100%;
    height:17px;
    padding:0;
    margin:0;
    line-height:17px;
    font-size:0!important;
    font-weight:800;
    letter-spacing:0;
    color:#3b6561;
    transform:none!important;
    writing-mode:horizontal-tb;
    white-space:normal;
    text-align:center;
  }
  .education-map .moodle-map-steps b:first-of-type::after{
    content:"↓   API   ↓";
    font-size:.75rem;
    letter-spacing:.075em;
  }
  .education-map .moodle-map-steps b:not(:first-of-type)::after{
    content:"↓";
    font-size:1rem;
  }
  .personal-graphic.mirrors-workflow{
    gap:12px;
    padding:16px 18px;
  }
  .mirrors-workflow-route{gap:5px}
  .mirrors-workflow-route div{
    min-height:50px;
    font-size:.83rem;
    line-height:1.25;
  }
  .mirrors-workflow-route i{
    width:100%;
    font-size:0!important;
    line-height:13px;
    height:13px;
    transform:none!important;
  }
  .mirrors-workflow-route i::after{
    content:"↓";
    font-size:.98rem;
    font-style:normal;
    font-weight:800;
  }
  .mirrors-workflow-bottom{
    margin-top:7px;
    padding-top:11px;
    gap:4px 8px;
  }
}
