/* Your IT & Tech Mates — A0019181 homepage UX polish
   Lower-page hierarchy, card consistency and accessible link treatment. */
body[data-yitm-design-mode="home"]{
  --yitm-page-bg:#f7fafc;
  --yitm-card:#fff;
  --yitm-ink:#10233f;
  --yitm-muted:#526579;
  --yitm-border:#d5e1e8;
  --yitm-teal:#0f766e;
  --yitm-teal-dark:#0b625c;
  --yitm-soft:#eef5f7;
}

/* Keep major lower-page sections visually connected and avoid oversized gaps. */
body[data-yitm-design-mode="home"] #trust,
body[data-yitm-design-mode="home"] #guides,
body[data-yitm-design-mode="home"] #areas,
body[data-yitm-design-mode="home"] #thefixers-network{
  padding-top:64px!important;
  padding-bottom:64px!important;
}
body[data-yitm-design-mode="home"] .section-head.compact{
  max-width:920px;
  margin-left:auto!important;
  margin-right:auto!important;
  margin-bottom:30px!important;
  text-align:center;
}
body[data-yitm-design-mode="home"] .section-head.compact .lede{
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}

/* Trust cards: same visual language as the rest of the site. */
body[data-yitm-design-mode="home"] .home-trust-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch;
}
body[data-yitm-design-mode="home"] .home-trust-card{
  min-width:0;
  padding:24px!important;
  background:var(--yitm-card)!important;
  border:1px solid var(--yitm-border)!important;
  border-radius:18px!important;
  box-shadow:0 8px 24px rgba(16,35,63,.05)!important;
  color:var(--yitm-ink)!important;
}
body[data-yitm-design-mode="home"] .home-trust-card strong{
  display:block;
  margin-bottom:10px;
  color:var(--yitm-ink)!important;
  font-size:1.08rem;
  line-height:1.3;
}
body[data-yitm-design-mode="home"] .home-trust-card p{
  margin:0!important;
  color:var(--yitm-muted)!important;
  line-height:1.65!important;
}

/* Guides: the previous page had unstyled/run-on links. Make one clear 2x2 choice set. */
body[data-yitm-design-mode="home"] .home-guide-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  max-width:1060px;
  margin:0 auto!important;
}
body[data-yitm-design-mode="home"] .home-guide-card{
  display:flex!important;
  flex-direction:column;
  min-width:0;
  min-height:170px;
  padding:24px 26px!important;
  background:var(--yitm-card)!important;
  border:1px solid var(--yitm-border)!important;
  border-radius:18px!important;
  color:var(--yitm-ink)!important;
  text-decoration:none!important;
  box-shadow:0 8px 24px rgba(16,35,63,.05)!important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body[data-yitm-design-mode="home"] .home-guide-card:hover{
  transform:translateY(-2px);
  border-color:#8abdb8!important;
  box-shadow:0 12px 30px rgba(16,35,63,.09)!important;
}
body[data-yitm-design-mode="home"] .home-guide-card strong{
  display:block;
  margin-bottom:10px;
  color:var(--yitm-ink)!important;
  font-size:1.08rem;
  line-height:1.3;
}
body[data-yitm-design-mode="home"] .home-guide-card p{
  margin:0 0 18px!important;
  color:var(--yitm-muted)!important;
  line-height:1.58!important;
}
body[data-yitm-design-mode="home"] .home-guide-card::after{
  content:"Open →";
  margin-top:auto;
  color:var(--yitm-teal)!important;
  font-weight:800;
  font-size:.94rem;
}

/* Local story card/image should feel like one section rather than detached blocks. */
body[data-yitm-design-mode="home"] #areas .story-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:28px!important;
  align-items:stretch!important;
}
body[data-yitm-design-mode="home"] #areas .story-image,
body[data-yitm-design-mode="home"] #areas .story-card{
  border-radius:22px!important;
  overflow:hidden;
}
body[data-yitm-design-mode="home"] #areas .story-card{
  background:#fff!important;
  border:1px solid var(--yitm-border)!important;
  padding:34px!important;
  color:var(--yitm-ink)!important;
  box-shadow:0 10px 30px rgba(16,35,63,.06)!important;
}
body[data-yitm-design-mode="home"] #areas .story-card p{color:var(--yitm-muted)!important}
body[data-yitm-design-mode="home"] #areas .story-image img{
  width:100%!important;
  height:100%!important;
  min-height:360px;
  object-fit:cover!important;
  display:block!important;
}
body[data-yitm-design-mode="home"] .suburb-cloud{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin-top:22px!important;
}
body[data-yitm-design-mode="home"] .suburb-cloud a{
  display:inline-flex!important;
  padding:10px 13px!important;
  border:1px solid var(--yitm-border)!important;
  border-radius:999px!important;
  background:var(--yitm-soft)!important;
  color:var(--yitm-ink)!important;
  text-decoration:none!important;
  font-weight:700!important;
}

/* Referral and final CTA: one primary action, one secondary action. */
body[data-yitm-design-mode="home"] .home-referral-compact,
body[data-yitm-design-mode="home"] .home-final-cta{
  max-width:1120px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  border-radius:24px!important;
}
body[data-yitm-design-mode="home"] .home-final-cta{
  padding:52px 34px!important;
  text-align:center!important;
  background:linear-gradient(180deg,#f4faf8 0%,#eef7f4 100%)!important;
  border:1px solid #cfe1dc!important;
}
body[data-yitm-design-mode="home"] .home-final-cta h2{color:var(--yitm-ink)!important}
body[data-yitm-design-mode="home"] .home-final-cta p{
  max-width:820px;
  margin-left:auto!important;
  margin-right:auto!important;
  color:var(--yitm-muted)!important;
}
body[data-yitm-design-mode="home"] .home-final-cta .action-row{
  justify-content:center!important;
  gap:12px!important;
}
body[data-yitm-design-mode="home"] .home-final-cta .btn{
  min-width:190px;
}

/* Any compact link rows should never collapse into unreadable run-on text. */
body[data-yitm-design-mode="home"] .yitm-focus-note,
body[data-yitm-design-mode="home"] .authority-link-grid{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px 14px!important;
  align-items:center!important;
}
body[data-yitm-design-mode="home"] .yitm-focus-note a,
body[data-yitm-design-mode="home"] .authority-link-grid a{
  display:inline-flex!important;
  align-items:center;
  min-height:40px;
  padding:8px 12px!important;
  border-radius:999px!important;
  border:1px solid var(--yitm-border)!important;
  background:#fff!important;
  color:var(--yitm-ink)!important;
  text-decoration:none!important;
  font-weight:700!important;
}

@media(max-width:900px){
  body[data-yitm-design-mode="home"] .home-trust-grid,
  body[data-yitm-design-mode="home"] .home-guide-grid,
  body[data-yitm-design-mode="home"] #areas .story-grid{
    grid-template-columns:1fr!important;
  }
  body[data-yitm-design-mode="home"] #areas .story-image img{min-height:280px}
}
@media(max-width:600px){
  body[data-yitm-design-mode="home"] #trust,
  body[data-yitm-design-mode="home"] #guides,
  body[data-yitm-design-mode="home"] #areas,
  body[data-yitm-design-mode="home"] #thefixers-network{
    padding-top:44px!important;
    padding-bottom:44px!important;
  }
  body[data-yitm-design-mode="home"] .home-guide-card,
  body[data-yitm-design-mode="home"] .home-trust-card,
  body[data-yitm-design-mode="home"] #areas .story-card{
    padding:20px!important;
  }
  body[data-yitm-design-mode="home"] .home-final-cta{
    padding:38px 20px!important;
  }
  body[data-yitm-design-mode="home"] .home-final-cta .action-row{
    flex-direction:column!important;
  }
  body[data-yitm-design-mode="home"] .home-final-cta .btn{
    width:100%!important;
  }
}
