/* Forged-chrome kit headings.
   One shared treatment for every kit name heading (store cards, the featured pane, the home page kit
   cards and the crate breach view) and the small labels above them. Pure styling: no wording, sizes or
   layout boxes change. Kit names get a brushed-metal fill tinted in the kit's own colour (--tc) with a
   bright chrome horizon, a tight drop shadow for depth and a short neon underline that echoes the fuse.
   Static by design, so nothing here moves for reduced-motion visitors. */

/* --- kit name headings ------------------------------------------------- */
.card h3,.feature h3,.vp-head h2{position:relative;padding-bottom:.14em}
.card h3::after,.feature h3::after,.vp-head h2::after{
  content:"";position:absolute;left:0;bottom:0;width:clamp(36px,22%,72px);height:2px;border-radius:2px;pointer-events:none;
  background:linear-gradient(90deg,#fff 0,color-mix(in srgb,var(--tc) 55%,#fff) 6px,var(--tc) 22%,color-mix(in srgb,var(--tc) 0%,transparent) 100%);
  box-shadow:0 0 10px -1px color-mix(in srgb,var(--tc) 75%,transparent)}
.feature h3::after,.vp-head h2::after{height:3px;width:clamp(48px,18%,96px)}

@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .card h3,.feature h3,.vp-head h2{
    background-image:linear-gradient(180deg,
      color-mix(in srgb,var(--tc) 30%,#fff) 0%,
      color-mix(in srgb,var(--tc) 62%,#fff) 34%,
      color-mix(in srgb,var(--tc) 92%,#fff) 47%,
      color-mix(in srgb,var(--tc) 80%,#000) 51%,
      var(--tc) 72%,
      color-mix(in srgb,var(--tc) 72%,#fff) 100%);
    -webkit-background-clip:text;background-clip:text;
    -webkit-text-fill-color:transparent;color:var(--tc);
    text-shadow:none;
    filter:drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 0 14px color-mix(in srgb,var(--tc) 32%,transparent))}
  .feature h3,.vp-head h2{filter:drop-shadow(0 3px 0 rgba(0,0,0,.6)) drop-shadow(0 0 22px color-mix(in srgb,var(--tc) 36%,transparent))}
  /* the underline sits inside the heading box, so give it back its own colour */
  .card h3::after,.feature h3::after,.vp-head h2::after{-webkit-text-fill-color:initial}
  /* when a kit's fuse lights, its name glows a touch brighter with it */
  .card.k-lit h3,.feature.k-lit h3{filter:drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 0 18px color-mix(in srgb,var(--tc) 55%,transparent))}
}

/* --- labels above the names ("Kit", "Shadowlands / Bundle" and so on) ---------- */
.c-kicker>span:first-child,.vp-tag>span:first-child{
  display:inline-flex;align-items:center;gap:8px;color:color-mix(in srgb,var(--text) 82%,var(--tc))}
.c-kicker>span:first-child::before,.vp-tag>span:first-child::before{
  content:"";flex:none;width:14px;height:2px;border-radius:1px;background:var(--tc);
  box-shadow:0 0 8px color-mix(in srgb,var(--tc) 70%,transparent);transform:skewX(-20deg)}
/* home page kit cards: the number tag picks up the same kit tint */
.kcard .kc-n{color:color-mix(in srgb,var(--tc) 55%,var(--muted))}

/* --- section headings inside the breach view ("Contents", "Value"...) --------- */
.sub-h{color:color-mix(in srgb,var(--text) 78%,var(--tc))}
.sub-h::before{content:"";flex:none;width:6px;height:6px;transform:rotate(45deg);background:var(--tc);
  box-shadow:0 0 8px color-mix(in srgb,var(--tc) 70%,transparent)}
.sub-h::after{background:linear-gradient(90deg,color-mix(in srgb,var(--tc) 50%,transparent),var(--line) 38%,transparent)}

/* high-contrast / forced colours: plain solid text, no decoration */
@media (forced-colors:active){
  .card h3,.feature h3,.vp-head h2{background:none;-webkit-text-fill-color:currentColor;color:CanvasText;filter:none}
  .card h3::after,.feature h3::after,.vp-head h2::after,
  .c-kicker>span:first-child::before,.vp-tag>span:first-child::before,.sub-h::before{display:none}
}