/* XG P33 | 2026-11-06 | XGv1.zip baseline, not layered P32/P32F.
   Home-only. Targeted fixes: pricing height, featured card, excess section spaces.
   Do not modify section order, global headings, service card grid, admin, or subpages. */

/* A. Price table and blue advice: same row height on desktop.
   Preserve the scrollable table and its 10-route data feed. */
@media (min-width:991px) {
  body.qnvf23g-home #main-content #xgg-p41-price .xgg-p41-layout {
    display:grid !important;
    align-items:stretch !important;
  }
  body.qnvf23g-home #main-content #xgg-p41-price .xgg-p41-board,
  body.qnvf23g-home #main-content #xgg-p41-price .xgg-p41-advice {
    align-self:stretch !important;
    box-sizing:border-box;
    height:auto !important;
    min-height:0 !important;
  }
  body.qnvf23g-home #main-content #xgg-p41-price .xgg-p41-board {
    display:flex !important;
    flex-direction:column !important;
  }
  body.qnvf23g-home #main-content #xgg-p41-price .xgg-p41-board-top {
    flex:0 0 auto;
  }
  body.qnvf23g-home #main-content #xgg-p41-price .xgg-p41-table-wrap {
    max-height:405px !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:auto !important;
  }
}

/* B. Two-line excerpt on the main feature image only; other image cards unchanged. */
body.qnvf23g-home #main-content .trp02-news .vf101-media-main .wt2-video-overlay.xg-p33-feature-caption {
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start;
  gap:5px;
  padding:65px 18px 17px !important;
  background:linear-gradient(to bottom,transparent 0%,rgba(var(--xgp38-r-062846,6,40,70),.68) 45%,rgba(var(--xgp38-r-031D37,3,29,55),.96) 100%) !important;
  color:#fff !important;
  text-shadow:0 1px 3px rgba(var(--xgp38-r-00152C,0,21,44),.35);
}
body.qnvf23g-home #main-content .trp02-news .vf101-media-main .xg-p33-feature-caption strong {
  color:#fff !important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-weight:800;
  font-size:clamp(16px,1.4vw,21px) !important;
  line-height:1.26;
}
body.qnvf23g-home #main-content .trp02-news .vf101-media-main .xg-p33-feature-summary {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  max-width:100%;
  color:var(--xgp38-h-E6F4FF,#e6f4ff);
  font-size:14px;
  line-height:1.42;
  font-weight:500;
}

/* C. Home spacing: only the actual target sections.
   Old XG base has a 5-body-class :is(...) !important rule with padding 46-68px.
   These selectors deliberately outrank it, without broad .trm-section overrides. */
body.qnvf-p18-home.qnvf-p14-home.qnvf-p12-home.qnvf-p11-home.qnvf-p10-home #main-content .trm-home #xgg-p41-price.xgg-p41-price {
  padding-top:30px !important;
  padding-bottom:32px !important;
}
body.qnvf-p18-home.qnvf-p14-home.qnvf-p12-home.qnvf-p11-home.qnvf-p10-home #main-content .trm-home section.trp02-news.qn-vf23e-news {
  padding-top:30px !important;
  padding-bottom:28px !important;
}
body.qnvf-p18-home.qnvf-p14-home.qnvf-p12-home.qnvf-p11-home.qnvf-p10-home #main-content .trm-home section.qn23g-local.trm-section {
  padding-top:29px !important;
  padding-bottom:30px !important;
}
/* Directory directly after FAQ: do not touch the FAQ or its own padding. */
body.qnvf-p18-home.qnvf-p14-home.qnvf-p12-home.qnvf-p11-home.qnvf-p10-home #main-content .trm-home section.qn17-directory.qnvf23f-directory {
  padding-top:28px !important;
  padding-bottom:30px !important;
}
/* Intra-news spacing: the large media tile used to have a 48px bottom margin. */
body.qnvf23g-home #main-content .trp02-news section.vf101-media {
  margin-top:14px !important;
  margin-bottom:19px !important;
}

@media (max-width:767px) {
  body.qnvf23g-home #main-content .trp02-news .vf101-media-main .wt2-video-overlay.xg-p33-feature-caption {
    gap:3px;
    padding:42px 12px 12px !important;
  }
  body.qnvf23g-home #main-content .trp02-news .vf101-media-main .xg-p33-feature-summary {
    font-size:12px;
    line-height:1.35;
  }
  body.qnvf-p18-home.qnvf-p14-home.qnvf-p12-home.qnvf-p11-home.qnvf-p10-home #main-content .trm-home #xgg-p41-price.xgg-p41-price,
  body.qnvf-p18-home.qnvf-p14-home.qnvf-p12-home.qnvf-p11-home.qnvf-p10-home #main-content .trm-home section.trp02-news.qn-vf23e-news,
  body.qnvf-p18-home.qnvf-p14-home.qnvf-p12-home.qnvf-p11-home.qnvf-p10-home #main-content .trm-home section.qn23g-local.trm-section {
    padding-top:22px !important;
    padding-bottom:24px !important;
  }
  body.qnvf-p18-home.qnvf-p14-home.qnvf-p12-home.qnvf-p11-home.qnvf-p10-home #main-content .trm-home section.qn17-directory.qnvf23f-directory {
    padding-top:20px !important;
    padding-bottom:24px !important;
  }
  body.qnvf23g-home #main-content .trp02-news section.vf101-media {
    margin-top:11px !important;
    margin-bottom:13px !important;
  }
}
