/* Health Guides specialty tabs on the homepage. Copies the look of the Latest Updates tabs/cards (lamh-cards.css). */

/* One family for every heading: the same stack the main section titles already use (from body in styles.css). */
h1, h2, h3,
.lamh-title,
.scr-card-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hg-home{padding:1.1rem 1.5rem 1rem}
.hg-top{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.5rem}
.hg-top .scr-head{margin:0}
.hg-home .home-guides-more{margin:0}
.hg-search{margin:0 0 .6rem}
.hg-tabs-wrap[hidden]{display:none}
.hg-tabs{display:flex;flex-direction:row;flex-wrap:nowrap;gap:0;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;border-bottom:1px solid #d7e0ea;padding:0;margin:0;max-width:100%}
.hg-carousel{padding-bottom:.4rem}
.hg-card{flex:0 0 min(15.5rem,78%);text-decoration:none;color:inherit}
a.hg-card:hover{box-shadow:0 4px 12px rgba(15,39,68,.14);border-color:#0A3161}
a.hg-card:focus-visible{outline:3px solid #B31942;outline-offset:2px}
.hg-card .lamh-title{-webkit-line-clamp:3;min-height:2.5em}
.hg-card .lamh-key-result{-webkit-line-clamp:4}
.hg-read{font-weight:650;color:#B31942}
.hg-count{margin:.1rem 0 0;font-size:.85rem;color:var(--muted,#3d4a5c)}
.hg-count a{color:#0A3161;font-weight:650;text-underline-offset:2px}
.hg-count a:hover{color:#B31942}
.hg-home .home-guides-inner{max-width:1152px}

/* Match the Health Guides lead heading: 1.75rem, 700, navy, red underline under the title only. */
.home-guides .scr-head h1,
.hg-lit-head .scr-head h2{
  font-size:1.75rem;
  font-weight:700;
  margin:0;
  color:var(--navy,#0A3161);
  line-height:1.2;
  text-align:left;
}
.lamh-updates{padding-top:1.15rem}
.hg-lit-head{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin:0 0 .65rem}
.hg-lit-head .scr-head{margin:0}
.hg-lit-sub{margin:0;color:var(--muted,#3d4a5c);font-size:.92rem}

@media (max-width:800px){
  .hg-home{padding:1rem 1rem .8rem}
  .hg-card{flex-basis:78%}
  .lamh-updates{padding-top:1rem}
}
@media (max-width:560px){
  .home-guides .scr-head h1,
  .hg-lit-head .scr-head h2{font-size:1.5rem}
}
