/* How To hub hero, v1 (Nov 13 2026).
   Loads after howto-hero-merge-v1 on live /how-to/. Replaces merge-v2/v3/v4
   (those targeted the old topic-row markup). Cuts hero height, drops the
   redundant h1-sub sentence, and replaces the four oversized topic rows with
   compact glass chips in the same visual language as the "13 GUIDES" /
   "4 TOPICS" stat chips, so the electrical-posts background can show through. */

/* Keep token colors even if .hw-search { display:contents } skips inheritance. */
.hw-merge{
  --sb-vio:#8455B8;
  --sb-mag:#D1338F;
  --sb-saf:#F2B33D;
  --sb-tea:#12A195;
  --sb-blu:#7B8CFF;
}

/* ---- height cut ---- */
.hw-merge .hw-m-in{
  padding-top:22px;
  padding-bottom:22px;
  column-gap:40px;
  align-items:center;
}
.hw-merge .hw-m-txt h1{margin-bottom:.18em}
.hw-merge .hw-m-txt .h1-sub{display:none!important}
.hw-merge .hw-sb-mid{margin-top:16px}

/* ---- topic chips: 2x2 glass cluster matching the stat pills ---- */
.hw-merge .hw-sb-r{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 14px;
  align-content:center;
  align-items:stretch;
  justify-self:end;
  width:100%;
  max-width:380px;
  list-style:none;
  margin:0;
  padding:0;
}
.hw-merge .hw-sb-chip{
  list-style:none;
  margin:0;
  padding:0;
  min-width:0;
}
.hw-merge .hw-sb-chip-a{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  column-gap:8px;
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-height:56px;
  padding:10px 12px 10px 10px;
  border:1px solid rgba(255,255,255,.22);
  border-left:4px solid var(--tc);
  border-radius:14px;
  background:rgba(15,21,48,.34);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 22px rgba(0,0,0,.18);
  text-decoration:none;
  color:inherit;
  transition:background .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hw-merge .hw-sb-chip-a:hover,
.hw-merge .hw-sb-chip-a:focus-visible{
  background:rgba(15,21,48,.55);
  border-color:rgba(255,255,255,.36);
  box-shadow:0 10px 26px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.08);
  transform:translateY(-1px);
}
.hw-merge .hw-sb-chip-a:focus-visible{
  outline:2px solid var(--tc);
  outline-offset:2px;
}
.hw-merge .hw-sb-chip .hw-sb-ic{
  width:20px;
  height:20px;
  flex:none;
  color:var(--tc);
}
.hw-merge .hw-sb-chip .hw-sb-n{
  font:800 20px/1 Sora,Inter,sans-serif;
  color:#fff;
}
.hw-merge .hw-sb-chip .hw-sb-t{
  font:700 .66rem/1.25 Inter,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#d9d6e6;
  min-width:0;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:manual;
}

/* Gentle floating stagger so the circuit traces weave around the cluster. */
@media (min-width:1101px){
  .hw-merge .hw-sb-r{
    grid-column:2;
    grid-row:1/4;
    align-self:center;
    margin-top:0;
    max-width:380px;
  }
  .hw-merge .hw-sb-chip:nth-child(2){transform:translateY(-8px)}
  .hw-merge .hw-sb-chip:nth-child(3){transform:translateY(8px)}
  .hw-merge .hw-sb-chip:nth-child(2) .hw-sb-chip-a:hover,
  .hw-merge .hw-sb-chip:nth-child(2) .hw-sb-chip-a:focus-visible{transform:translateY(-9px)}
  .hw-merge .hw-sb-chip:nth-child(3) .hw-sb-chip-a:hover,
  .hw-merge .hw-sb-chip:nth-child(3) .hw-sb-chip-a:focus-visible{transform:translateY(7px)}
}

@media (max-width:1100px){
  .hw-merge .hw-m-in{padding-top:20px;padding-bottom:20px;column-gap:20px}
  .hw-merge .hw-sb-mid{margin-top:14px}
  .hw-merge .hw-sb-r{
    justify-self:stretch;
    max-width:none;
    margin-top:16px;
  }
}

@media (max-width:640px){
  .hw-merge .hw-m-in{padding-top:16px;padding-bottom:16px}
  .hw-merge .hw-sb-mid{margin-top:14px}
  .hw-merge .hw-sb-l{margin-top:12px}
  .hw-merge .hw-sb-r{
    grid-column:1;
    grid-row:4;
    grid-template-columns:1fr 1fr;
    gap:8px 8px;
    margin-top:10px;
    max-width:none;
  }
  .hw-merge .hw-sb-chip-a{
    min-height:52px;
    padding:8px 10px 8px 8px;
    column-gap:6px;
    border-radius:12px;
  }
  .hw-merge .hw-sb-chip .hw-sb-ic{width:18px;height:18px}
  .hw-merge .hw-sb-chip .hw-sb-n{font-size:18px}
  .hw-merge .hw-sb-chip .hw-sb-t{letter-spacing:.03em;font-size:.62rem;line-height:1.25}
}

@media (prefers-reduced-motion:reduce){
  .hw-merge .hw-sb-chip,
  .hw-merge .hw-sb-chip-a{transform:none!important;transition:none}
}

/* iPad landscape hard-refresh: Safari shrink-to-fit / slight right shift when
   fallback fonts or circuit-trace art make scrollWidth exceed the viewport.
   Soft refresh (cached fonts) already sits in the container. Clip sideways
   only so vertical overflow is unchanged. Matching font preloads (Sora 800,
   Inter 600/700) are in the page head. Do not set overflow-x on html — that
   can break a sticky header. */
body{overflow-x:clip}
.dhero.hw-hero.hw-merge,.hw-merge{overflow-x:clip}
.site-head,.head-in,.hw-merge .hw-m-in,.hw-merge .wrap{max-width:100%;min-width:0}

/* Nov 13 2026: stat chips tighter to the search bar */
.hw-merge .hw-search-n{margin-top:6px;min-height:0}
