/* Fix round 2, group fye (Claude, 15 Nov 2026). Loaded only while round 2 is on (inc/v2/v2-fix2-fye.php), only on the shop's
   own views and the sign-in page. Every rule sits under body.chvf2. No word, colour or picture changes. */

/* ---------- 1. Shop on computers: the seven research areas in one row (PLAN 1.15) ----------
   The seven pills need 1,366 px in a row (with 12 px on their text side); the shop's column is 1,184 px at 1280 and 1,344 px
   from 1440. So from 1280 px the label sits above the row (as on phones) and the row is drawn a little smaller, the same pill
   in the same proportions, in steps that keep it inside the column: 86 % at 1280, 97.5 % from 1440. The pills stay 44 px tall
   or more. A browser without zoom, or a longer name one day, wraps to a second row exactly as today (flex-wrap is kept).
   Scoped to the shop's <main> (#main.s3): the Library's research-area row uses the same classes and is not touched. */
@media (min-width: 1280px) {
  body.chvf2 #main.s3 .s3-areas { flex-direction: column; align-items: flex-start; gap: 12px; }
  body.chvf2 #main.s3 .s3-areas__list { --chvf-z: .86; zoom: var(--chvf-z); }
  body.chvf2 #main.s3 .s3-area { padding-right: 12px; } /* beats shop.css's .s3 .s3-area:has(.s3-area__t) by specificity, no :has needed */
  /* the focus ring stays the site's 2 px with a 3 px gap at every step */
  body.chvf2 #main.s3 .s3-area:focus-visible { outline-width: calc(2px / var(--chvf-z)); outline-offset: calc(3px / var(--chvf-z)); }
}
@media (min-width: 1320px) { body.chvf2 #main.s3 .s3-areas__list { --chvf-z: .89; } }
@media (min-width: 1366px) { body.chvf2 #main.s3 .s3-areas__list { --chvf-z: .92; } }
@media (min-width: 1400px) { body.chvf2 #main.s3 .s3-areas__list { --chvf-z: .945; } }
@media (min-width: 1440px) { body.chvf2 #main.s3 .s3-areas__list { --chvf-z: .975; } }

/* ---------- 4. Shop: no blue dot after GHK-Cu and AHK-Cu (PLAN 1.15) ----------
   The dot (.s3-cu, aria-hidden, no text) meant "copper" and nothing on the page says so. */
body.chvf2 .s3 .s3-cu { display: none; }

/* ---------- 6. Sign-in page on a phone: SIGN IN on the first screen ----------
   With the four "In your account" cards above the form (acct, 14 Nov) the button sat under the tab bar at 390x844 and the
   password field too at 390x664 (iPhone Safari with its bars). Measured: from the tabs to SIGN IN the form needs about 430 px
   even with tight spacing, so at 664 px no row of cards fits above it. Phones (under 900 px wide, every height alike, so
   nothing jumps when Safari's bars come and go):
   - the four cards keep their look and words and follow the form (they are not removed);
   - the form keeps its parts and sizes, with a tighter rhythm;
   - "Forgot password?" and the required-fields line are drawn under the button (their place in the page stays, so screen
     readers read them where they always did).
   The logo and the line above the form keep their look, 10 px closer together at the top. Computers are not touched (the cards
   stay beside or under the form). */
@media (max-width: 899.98px) {
  body.chvf2.chv2-si.chva-on #acct-auth > .chva-why { order: 2; margin-top: 12px; }
  /* under the form the row needs its own existing heading again ("In your account", shown on computers; acct hid it on
     phones because the intro line sat right above the row) */
  body.chvf2.chv2-si.chva-on .chva-why h2 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin: 0 0 12px; }
  body.chvf2.chv2-si.chva-on .chv2-si__top { padding-top: calc(env(safe-area-inset-top, 0px) + 28px); }
  body.chvf2.chv2-si.chva-on .chv2-si__top img { margin-bottom: 14px; }
  body.chvf2.chv2-si.chva-on .chv2-si__top + .k-sec { padding-top: 16px; }
  body.chvf2.chv2-si.chva-on .cm-auth__tabs { margin-bottom: 16px; }
  body.chvf2.chv2-si.chva-on form.woocommerce-form-login { gap: 14px; }
  body.chvf2.chv2-si.chva-on form.woocommerce-form-login > .chv2-gsi { margin-bottom: 0; }
  body.chvf2.chv2-si.chva-on form.woocommerce-form-login .chv2-gsi__or { margin-top: 14px; }
  body.chvf2.chv2-si.chva-on form.woocommerce-form-login > .chv2-si__stay { margin-top: 2px; }
  body.chvf2.chv2-si.chva-on form.woocommerce-form-login > button[type="submit"],
  body.chvf2.chv2-si.chva-on form.woocommerce-form-login > .woocommerce-form-login__submit { order: 1; }
  body.chvf2.chv2-si.chva-on form.woocommerce-form-login > .cm-auth__row { order: 2; margin-top: -4px; justify-content: center; }
  body.chvf2.chv2-si.chva-on form.woocommerce-form-login > .k-hint { order: 3; text-align: center; }
  body.chvf2.chv2-si.chva-on form.woocommerce-form-login > .cm-auth__alt { order: 4; }
}
