/* Chrysalis v2, fix round 2, group fyb (Claude, 15 Nov 2026): every tap target 44 px (PLAN 1.5 with the sceptic's change).
   Loaded only while round 2 is on (inc/v2/v2-fix2-fyb.php asks chvf_on( 2 )), and every rule starts with body.chvf2.
   No word, colour or picture changes.
   A. Seen: the phone header buttons and the "+" circles are 44 px, the size the computer already uses.
   B. Not seen: a transparent tap area (::before, or ::after where ::before is taken) stretched to 44 px around a small
      link or button. Nothing moves. Each area stops before the next control, so no two controls share a spot; the gaps
      were measured at 360, 375, 390 and 1440 px (fyb/NOTES.md).
   Left as they are on purpose: the size chips on Build a Stack and the shop cards (do-not-touch list), links inside a
   sentence, and the arrow links of round 2's link control (group fya). */

/* ---------- A1. Header buttons: 44 x 44 on phones, 8 px apart (chrome.css made them 40 there) ---------- */
@media (max-width:899.98px){
  body.chvf2 .c3-root.hd3 .hd3-icons .hd3-ib{width:44px;height:44px}
}
/* the computer header between 900 and 1239 px keeps its 40 px row (the links' centring is worked out from it); each button
   gets a 2 px ring of tap area instead, which stays inside the 6 px gaps. From 1240 px they are 44 px already. */
@media (min-width:900px) and (max-width:1239.98px){
  body.chvf2 .c3-root.hd3 .hd3-icons .hd3-cta{position:relative}
  body.chvf2 .c3-root.hd3 .hd3-icons :is(.hd3-ib,.hd3-cta)::before{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:44px;
    border-radius:999px;transform:translate(-50%,-50%)}
}

/* ---------- A2. "+" circles: 44 x 44 ---------- */
body.chvf2 .c3-root .p3-p__add{width:44px;height:44px}          /* product page, More peptides: 36 on phones, 40 on computers */
body.chvf2 .c3-root .p3-p__add .p3-ico{width:18px;height:18px}  /* the icon every other 44 px "+" uses (shop, home, Build a Stack) */
@media (max-width:899.98px){
  body.chvf2 .sx-page .sx-add{width:44px;height:44px}           /* Build a Stack: 40 on phones (stack.css), 44 on computers */
}
/* buy box water row "+": 44 on phones already, 40 on computers. It clips its own fill (overflow:hidden), so an invisible area
   outside it would be cut off: computers get the phone's 44 px instead. */
body.chvf2 .c3-root .p3-water__add{width:44px;height:44px}

/* ---------- B1. Breadcrumbs: at least 44 x 44, centred on the word (the shape the older kit gives .k-crumbs) ---------- */
body.chvf2 :is(.s3 .s3-crumb a,.c3-root .p3-crumb a,.sx-page .sx-crumb a,.c3-root.k3c-page .k3c-crumb a,.cl-research-library .breadcrumbs a,
  .cl-feature .crumb a,.cl-research-library .guide-breadcrumb a,.cla-crumb a){position:relative}
body.chvf2 :is(.s3 .s3-crumb a,.c3-root .p3-crumb a,.sx-page .sx-crumb a,.c3-root.k3c-page .k3c-crumb a,.cl-research-library .breadcrumbs a,
  .cl-feature .crumb a,.cl-research-library .guide-breadcrumb a,.cla-crumb a)::before{content:"";position:absolute;left:50%;top:50%;
  width:max(100% + 16px,44px);height:44px;transform:translate(-50%,-50%)}

/* ---------- B2. Product page ---------- */
/* research area above the name: on phones its box ran the full card width at 12 px high, so the whole band was a link.
   The box now fits its words (still centred, nothing moves), then takes a 44 px tap height. */
@media (max-width:899.98px){
  body.chvf2.chv2s3 .c3-root a.chv2-chip{width:-webkit-fit-content;width:fit-content;margin-left:auto;margin-right:auto}
}
body.chvf2.chv2s3 .c3-root a.chv2-chip{position:relative}
body.chvf2.chv2s3 .c3-root a.chv2-chip::before{content:"";position:absolute;left:-8px;right:-8px;top:50%;height:44px;transform:translateY(-50%)}
/* quantity − and +: 40 px wide; each grows on its outer side only, so the number between them keeps its own area */
body.chvf2 .c3-root .p3-step__b{position:relative}
body.chvf2 .c3-root .p3-step__b::before{content:"";position:absolute;top:0;bottom:0;width:max(100%,44px)}
body.chvf2 .c3-root .p3-step__b[data-step="-1"]::before{right:0}
body.chvf2 .c3-root .p3-step__b[data-step="1"]::before{left:0}

/* ---------- B3. Build a Stack (the chips stay as they are) ---------- */
body.chvf2 .sx-page :is(.sx-seg__b,.sx-step button,.sx-close,.sx-tool){position:relative}
body.chvf2 .sx-page :is(.sx-seg__b,.sx-step button,.sx-close,.sx-tool)::before{content:"";position:absolute;left:50%;top:50%;
  width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
body.chvf2 .sx-page .sx-card__n a{position:relative}
body.chvf2 .sx-page .sx-card__n a::before{content:"";position:absolute;left:-8px;right:-8px;top:50%;height:max(100%,44px);transform:translateY(-50%)}

/* ---------- B4. Cart page lines: the product name, as the cart drawer has it since round 1 (v2-fix1-fxe.css) ---------- */
body.chvf2 .woocommerce-cart-form .k-line__name a{position:relative}
body.chvf2 .woocommerce-cart-form .k-line__name a::after{content:"";position:absolute;left:50%;top:-14px;bottom:-10px;width:max(100% + 16px,44px);
  transform:translateX(-50%)}

/* ---------- B5. Checkout: "Click here to enter your code" ---------- */
body.chvf2 .woocommerce-form-coupon-toggle a.showcoupon{position:relative}
body.chvf2 .woocommerce-form-coupon-toggle a.showcoupon::before{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:44px;
  transform:translateY(-50%)}

/* ---------- B6. Phone account: the order number link and the Add to Home Screen card's close ---------- */
/* the order card's heading sits 2.5 px under the link and is drawn above it, so the area reaches up instead (the next
   control above is 32 px away) */
body.chvf2 a.chv2-ah__olink{position:relative}
body.chvf2 a.chv2-ah__olink::before{content:"";position:absolute;left:-8px;right:-8px;bottom:-2px;height:44px}
body.chvf2 .chv2-ah__a2hs button::before{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);
  border-radius:50%;transform:translate(-50%,-50%)}

/* ---------- B7. Calculator (look unchanged: the 32 px chips keep their size, as the sceptic asked) ---------- */
/* (heights are given in px, not as insets: a ::before is measured from inside the 1 px border, so -6px would give 42) */
body.chvf2 .c3-root.k3c-page :is(.k3c-quick button,.k3c-pick,.k3c-act){position:relative}
body.chvf2 .c3-root.k3c-page :is(.k3c-unit button,.k3c-quick button,.k3c-act)::before{content:"";position:absolute;left:0;right:0;top:50%;
  height:max(100%,44px);transform:translateY(-50%)}
/* the vial picks: the area reaches up only, because the link under them ("BPC-157 · 10 mg", round 2's link control, group
   fya) takes the space below them. Phones: 12 px up (the field above ends 15 px up). Computers: the picks wrap into rows 6 px
   apart, so 5 px up (37 px). */
body.chvf2 .c3-root.k3c-page .k3c-pick::before{content:"";position:absolute;left:0;right:0;bottom:-1px;height:44px}
@media (max-width:899.98px){
  /* on phones the picks scroll sideways, and a scrolling row clips whatever lies outside it: the row takes 10 px more room
     above (the tap areas) and 3 px more below (the keyboard focus ring, which today is cut at top and bottom), and the margins
     give it back, so the chips and everything around them stay where they are */
  body.chvf2 .c3-root.k3c-page .k3c-picks{margin-top:2px;margin-bottom:-3px}
  body.chvf2 .c3-root.k3c-page .k3c-picks__row{padding-top:12px;padding-bottom:5px}
}
@media (min-width:900px){
  body.chvf2 .c3-root.k3c-page .k3c-pick::before{height:37px}
}

/* ---------- B8. Library: a compound's numbered sources, a guide's "On this page" ---------- */
body.chvf2 .cl-research-library ol.profile-sources a{position:relative}
body.chvf2 .cl-research-library ol.profile-sources a::before{content:"";position:absolute;left:0;right:0;top:-9px;bottom:-9px}
/* the rows are only 8 px apart on phones: each link takes half of each gap (36 px of 44; 44 would mean moving the rows) */
body.chvf2 .cl-research-library .guide-contents a{position:relative}
body.chvf2 .cl-research-library .guide-contents a::before{content:"";position:absolute;left:0;right:0;top:-4px;bottom:-4px}
/* Review fix (15 Nov): a guide's "← Back to the library" was 42 px tall on phones and 34 on computers: tap area 44, centred */
body.chvf2 .cl-research-library a.back-link{position:relative}
body.chvf2 .cl-research-library a.back-link::before{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
