/* Unified free diagnosis hub */
.wd-diagnosis-hub{
  padding-top:30px;
  padding-bottom:56px;
}
.wd-diagnosis-hub-head{
  max-width:760px;
  margin-bottom:24px;
}
.wd-diagnosis-hub-head h2{
  margin:6px 0 10px;
  font-size:clamp(1.8rem,3.6vw,2.65rem);
  line-height:1.4;
}
.wd-diagnosis-hub-head>p:last-child{
  margin:0;
  color:#657487;
  font-size:.92rem;
  line-height:1.8;
}
.wd-diagnosis-hub-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.wd-diagnosis-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:250px;
  padding:24px;
  border:1px solid #dbe2e8;
  border-radius:18px;
  background:#fff;
  color:#17283d;
  text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.wd-diagnosis-card:hover{
  transform:translateY(-3px);
  border-color:#aac9dc;
  box-shadow:0 12px 28px rgba(23,53,78,.08);
}
.wd-diagnosis-card-web{
  background:linear-gradient(180deg,#f1f8fc 0%,#fff 70%);
  border-color:#bfd9e8;
}
.wd-diagnosis-card-kicker{
  font:500 .68rem "DM Mono",monospace;
  letter-spacing:.1em;
  color:#3f7fa7;
}
.wd-diagnosis-card h3{
  margin:12px 0 8px;
  font-size:1.2rem;
  line-height:1.5;
}
.wd-diagnosis-card p{
  margin:0;
  color:#627184;
  font-size:.84rem;
  line-height:1.75;
}
.wd-diagnosis-card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:18px 0;
}
.wd-diagnosis-card-tags span{
  padding:5px 8px;
  border-radius:999px;
  background:#f2f5f7;
  color:#5b6978;
  font-size:.68rem;
}
.wd-diagnosis-card-web .wd-diagnosis-card-tags span{
  background:#e8f3f9;
  color:#386f91;
}
.wd-diagnosis-card-arrow{
  margin-top:auto;
  padding-top:8px;
  font-size:.84rem;
  font-weight:700;
  color:#286f9b;
}
.wd-diagnosis-hub-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e1e6ea;
  color:#697786;
  font-size:.78rem;
}
.wd-diagnosis-hub-foot a{
  color:#2b6f98;
  text-decoration:none;
  font-weight:700;
}

/* Homepage-service contextual diagnosis entry */
.wd-entry-service-copy{min-width:0}
.wd-entry-service-copy h2,
.wd-entry-service-copy p{
  writing-mode:horizontal-tb;
  max-width:100%;
}
.wd-entry-service-panel{
  background:#edf6fb;
  border:1px solid #cfe2ef;
  border-radius:16px;
  padding:clamp(22px,4vw,34px);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
}
.wd-entry-service-panel .button{white-space:nowrap}

@media(max-width:900px){
  .wd-diagnosis-hub-grid{grid-template-columns:1fr}
  .wd-diagnosis-card{min-height:0}
}

@media(max-width:760px){
  /* Keep only the header consultation CTA on the homepage. */
  body.wd-home-cleanup{padding-bottom:0!important}
  .wd-home-cleanup .v2-mobile-consult{display:none!important}

  .wd-diagnosis-hub{
    padding-top:22px;
    padding-bottom:40px;
  }
  .wd-diagnosis-hub-head{margin-bottom:18px}
  .wd-diagnosis-hub-head h2{
    font-size:1.65rem;
    line-height:1.5;
    letter-spacing:0;
    word-break:normal;
  }
  .wd-diagnosis-card{
    padding:20px 18px;
    border-radius:14px;
  }
  .wd-diagnosis-card h3{font-size:1.08rem}
  .wd-diagnosis-hub-foot{
    display:block;
    line-height:1.7;
  }
  .wd-diagnosis-hub-foot a{
    display:inline-block;
    margin-top:7px;
  }

  /* Make the service list read as a compact menu instead of four huge panels. */
  .wd-home-cleanup #services{
    padding-top:42px!important;
    padding-bottom:44px!important;
  }
  .wd-home-cleanup #services .section-intro{
    margin-bottom:22px!important;
  }
  .wd-home-cleanup #services .section-title{
    font-size:1.7rem!important;
    line-height:1.45!important;
  }
  .wd-home-cleanup #services .section-subtitle{
    font-size:.86rem!important;
    line-height:1.7!important;
  }
  .wd-home-cleanup #services .v2-service-grid{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .wd-home-cleanup #services .v2-service-grid article{
    padding:20px 18px!important;
    min-height:0!important;
  }
  .wd-home-cleanup #services .v2-service-header{
    gap:12px!important;
    align-items:flex-start!important;
  }
  .wd-home-cleanup #services .service-icon-box{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    flex:0 0 44px!important;
  }
  .wd-home-cleanup #services .v2-service-no{
    font-size:.62rem!important;
    letter-spacing:.07em!important;
    line-height:1.4!important;
  }
  .wd-home-cleanup #services .v2-service-header h3{
    margin:4px 0 0!important;
    font-size:1.3rem!important;
    line-height:1.45!important;
    letter-spacing:0!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  .wd-home-cleanup #services .v2-service-grid article>p{
    margin:12px 0!important;
    font-size:.85rem!important;
    line-height:1.72!important;
  }
  .wd-home-cleanup #services .v2-service-grid article>ul{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    margin:0 0 14px!important;
    padding:0!important;
  }
  .wd-home-cleanup #services .v2-service-grid article>ul>li{
    list-style:none!important;
    margin:0!important;
    padding:5px 8px!important;
    border:1px solid #dde3e8!important;
    background:#fff!important;
    font-size:.69rem!important;
    line-height:1.35!important;
  }
  .wd-home-cleanup #services .v2-service-grid article>ul>li::before{
    display:none!important;
    content:none!important;
  }
  .wd-home-cleanup #services .app-service-price-chip{
    align-self:flex-start!important;
    margin:0 0 12px!important;
    padding:5px 9px!important;
    font-size:.7rem!important;
  }
  .wd-home-cleanup #services .v2-service-btn{
    align-self:flex-start!important;
    margin-top:0!important;
    padding:9px 12px!important;
    font-size:.78rem!important;
  }
  .wd-home-cleanup #services .v2-aftercare{
    margin-top:18px!important;
    padding:16px 18px!important;
  }

  .wd-entry-service-section{padding-top:16px!important}
  .wd-entry-service-panel{
    display:block!important;
    width:100%;
    min-width:0;
    padding:22px 18px!important;
  }
  .wd-entry-service-copy{
    width:100%!important;
    min-width:0!important;
  }
  .wd-entry-service-copy h2{
    width:100%!important;
    font-size:1.35rem!important;
    line-height:1.55!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  .wd-entry-service-panel .button{
    width:100%;
    margin-top:18px;
    min-height:50px;
    justify-content:center;
    white-space:normal;
  }
}
