/* Black Friday home tidy (Claude, 21 Nov 2026). Loaded only while one of the switches chv2_bfh_cards / _strip / _pill applies to
   the page (inc/v2/v2-bfh.php); the Black Friday sheet (v2-bf.css) is not touched. Every rule hangs on a body class that file
   adds (bfh-on-pill, bfh-on-tone, bfh-tone-a|b|c, bfh-on-band, bfh-on-cards) or on a class only it prints (.bfh-hx, .bfh-pill,
   .bfh-acct).
   0. the accent tones   1. the pill above the headline   2. the Black Friday card's headline and label in the accent
   3. the homepage without the band   4. "Your account" alone.
   The top offers row keeps today's white "Black Friday" pill (Alik, 21 Nov ~01:25: "the row line ... we don't need to make it
   red"). Accents (option chv2_bfh_tone): a Champagne gold, b Soft coral, c Chrome: a light metal with a soft sheen, dark words
   on the pill (8.6:1 or more on every stop of each metal), the same metal on the headline (its darkest stop 6.6:1 or more on
   the lightest pixel of the card behind the words; measured, tests/browser.mjs).
   Phone first; Safari 16.4: gradient text only inside @supports, a solid colour otherwise; reduced motion: nothing moves. */

/* ---------- 0. the accent tones: one set of tokens per tone, read by the pill and the card ----------
   --bfh-fill / -fill-c  the pill's metal and its solid colour (a browser without gradients, forced colours aside)
   --bfh-ink / -rule     the pill's words and the hairline between them
   --bfh-glow            the soft light under the pill
   --bfh-txt / -txt-c    the card headline's metal (one band per line of words) and its solid colour (a browser that cannot
                         clip a gradient to text). Each band starts 10 % of a line lower than its line (section 2), so every stop
                         sits 10 % higher in the band than it would in the line: the letters get the same metal as before, and the
                         descenders' tips the band's own last colour, held to its end
   --bfh-eye / -dot / -ring  the card's small "Black Friday" label and its dot */
body.bfh-tone-a{ /* Champagne gold */
  --bfh-fill-c:#E8D09F;
  --bfh-fill:linear-gradient(180deg,#FBF0D6 0%,#EFDAAE 42%,#DEC18A 58%,#ECD6A9 100%);
  --bfh-ink:#2A1F0D;--bfh-rule:rgba(42,31,13,.28);--bfh-glow:rgba(222,193,138,.55);
  --bfh-txt-c:#ECD6A8;
  --bfh-txt:linear-gradient(180deg,#FFF7E6 -10%,#F4E0B6 35%,#D6B477 62%,#EBD3A3 90%);
  --bfh-eye:#EBD5A8;--bfh-dot:#E4C892;--bfh-ring:rgba(228,200,146,.17)}
body.bfh-tone-b{ /* Soft coral */
  --bfh-fill-c:#F9BFAC;
  --bfh-fill:linear-gradient(180deg,#FFE3D9 0%,#FDC9B8 42%,#F5AC95 58%,#FBC5B3 100%);
  --bfh-ink:#3A150A;--bfh-rule:rgba(58,21,10,.26);--bfh-glow:rgba(245,172,149,.55);
  --bfh-txt-c:#F9C2B0;
  --bfh-txt:linear-gradient(180deg,#FFEEE7 -10%,#FDD1C2 35%,#EE9C82 62%,#F9C3B0 90%);
  --bfh-eye:#F8C4B2;--bfh-dot:#F5AE97;--bfh-ring:rgba(245,174,151,.17)}
body.bfh-tone-c{ /* Chrome: the brand's own silver, a mirror with its horizon */
  --bfh-fill-c:#E2E4E8;
  --bfh-fill:linear-gradient(180deg,#FFFFFF 0%,#EEF0F3 40%,#C4C8CF 54%,#E3E5E9 76%,#FDFDFE 100%);
  --bfh-ink:#0E0E10;--bfh-rule:rgba(14,14,16,.26);--bfh-glow:rgba(255,255,255,.28);
  --bfh-txt-c:#E6E8EC;
  --bfh-txt:linear-gradient(180deg,#FFFFFF -10%,#F2F3F5 36%,#9EA2AA 43%,#CFD2D7 64%,#FFFFFF 90%);
  --bfh-eye:#FFFFFF;--bfh-dot:#E9EBEE;--bfh-ring:rgba(255,255,255,.14)}

/* ---------- 1. the pill above the headline (homepage, during Black Friday), in the accent ----------
   It stands in the words' column, above the headline; the headline and the line under it keep their words and size, they only
   move down by the pill's height. Tokens: --bfh-ph the pill's height, --bfh-pg the gap under it, --bfh-pt the room it needs
   above it to stay 14 px clear of the 72 px header (the words start 72 to 104 px down the first screen, v2-home.css), --bfh-pb
   all three (the computer first screen counts it in its safe line, below). */
.c3-root.hx.bfh-hx{--bfh-ph:36px;--bfh-pg:18px;--bfh-pt:max(0px,calc(86px - clamp(84px,calc(var(--hx-h) * .118),104px)));--bfh-pb:calc(var(--bfh-pt) + var(--bfh-ph) + var(--bfh-pg))}
.c3-root.hx .bfh-pill{position:relative;display:inline-flex;align-items:center;flex:none;gap:10px;box-sizing:border-box;height:var(--bfh-ph);margin:var(--bfh-pt,0px) 0 var(--bfh-pg);
  padding:0 13px 0 15px;border-radius:999px;background-color:var(--bfh-fill-c,#E8D09F);background-image:var(--bfh-fill,none);color:var(--bfh-ink,#2A1F0D);
  text-decoration:none;white-space:nowrap;pointer-events:auto;font-size:14px;font-weight:500;line-height:1;letter-spacing:-.005em;-webkit-tap-highlight-color:transparent;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -1px 0 rgba(0,0,0,.08),0 10px 26px -16px var(--bfh-glow,rgba(222,193,138,.55));
  transition:filter .25s ease,transform .15s ease}
.c3-root.hx .bfh-pill::before{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:max(44px,calc(100% + 10px));transform:translateY(-50%)} /* the tap area: 44 px or more */
.c3-root.hx .bfh-pill__bf{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;padding-left:.12em}
.c3-root.hx .bfh-pill__o{position:relative;padding-left:11px}
.c3-root.hx .bfh-pill__o::before{content:"";position:absolute;left:0;top:50%;width:1px;height:14px;margin-top:-7px;background:var(--bfh-rule,rgba(42,31,13,.28))}
.c3-root.hx .bfh-pill__i{display:block;flex:none;width:15px;height:15px;margin-left:-2px;transition:transform .3s cubic-bezier(.16,1,.3,1)}
.c3-root.hx .bfh-pill:focus-visible{outline:2px solid #fff;outline-offset:3px}
.c3-root.hx .bfh-pill:active{transform:scale(.98)}
@media (hover:hover){
  .c3-root.hx .bfh-pill:hover{filter:brightness(1.06)}
  .c3-root.hx .bfh-pill:hover .bfh-pill__i{transform:translateY(2px)}
}
/* the card it leads to: clear of the sticky header when the page jumps there without the script (v2-bfh.js scrolls by itself) */
body.bfh-on-pill #bf{scroll-margin-top:56px}
body.bfh-on-pill #bf:focus{outline:none}

/* computers: the first screen keeps the frame around the chosen vial below the buttons (v2-home.css, --hx-safe); the pill adds
   its height to that line, so the vials never come up into the words */
@media (min-width:768px) and (min-aspect-ratio:1301/1000){
  .c3-root.hx.bfh-hx .hx-stage{
    --hx-safe:calc(clamp(84px,calc(var(--hx-h) * .118),104px) + clamp(44px,5.42vw,84px) * .98 + clamp(14px,2.2vh,22px) + clamp(17px,1.46vw,21px) * 1.3 + clamp(18px,3.1vh,30px) + 58px + clamp(32px,calc(var(--hx-h) * .055),60px) + var(--bfh-pb))}
}
@media (min-width:768px) and (max-height:800px){
  .c3-root.hx.bfh-hx{--bfh-pt:max(0px,calc(86px - clamp(72px,calc(var(--hx-h) * .1),92px)))}
}
@media (min-width:768px) and (max-aspect-ratio:13/10){
  .c3-root.hx.bfh-hx{--bfh-pt:max(0px,calc(86px - clamp(72px,9vw,104px)))}
}
@media (min-width:768px) and (min-aspect-ratio:1301/1000) and (max-height:800px){
  .c3-root.hx.bfh-hx{--bfh-ph:34px;--bfh-pg:14px}
  .c3-root.hx.bfh-hx .hx-stage{--hx-safe:calc(clamp(72px,calc(var(--hx-h) * .1),92px) + clamp(40px,4.6vw,64px) * .98 + 12px + 18px * 1.3 + 16px + 52px + clamp(32px,calc(var(--hx-h) * .055),60px) + var(--bfh-pb))}
}

/* phones (the first screen's own breakpoint): a compact pill. On the fitted first screen (phone choice a) the vial row takes
   whatever the words leave, so every pixel the pill takes comes off the vial: the pill is as low as reads well (28 px; on a short
   screen 26, on the shortest 24), 6 px under the header (14 px under its buttons), with a small gap to the headline */
@media (max-width:767.98px){
  .c3-root.hx.bfh-hx{--bfh-ph:28px;--bfh-pg:8px;--bfh-pt:max(0px,calc(66px - clamp(58px,calc(var(--hx-h) * .096),80px)))} /* the 60 px phone header + 6 px */
  .c3-root.hx.bfh-hx.hxp-a{--bfh-pt:0px}
  .c3-root.hx .bfh-pill{gap:8px;padding:0 10px 0 12px;font-size:13px}
  .c3-root.hx .bfh-pill__bf{font-size:10px;letter-spacing:.11em;padding-left:.11em}
  .c3-root.hx .bfh-pill__o{padding-left:9px}
  .c3-root.hx .bfh-pill__o::before{height:12px;margin-top:-6px}
  .c3-root.hx .bfh-pill__i{width:13px;height:13px}
  .c3-root.hx.bfh-hx.hxp-a .hx-copy{padding-top:66px}
  body.bfh-on-pill #bf{scroll-margin-top:48px}
}
/* short screens (Safari with its bars: 390 x 664 on an iPhone 12-16, 430 x 740 on a Pro Max) */
@media (max-width:767.98px) and (max-height:740px){
  .c3-root.hx.bfh-hx{--bfh-ph:26px;--bfh-pg:6px}
  .c3-root.hx .bfh-pill{gap:7px;padding:0 9px 0 11px;font-size:12px}
  .c3-root.hx .bfh-pill__bf{font-size:9.5px;letter-spacing:.1em;padding-left:.1em}
  .c3-root.hx .bfh-pill__o{padding-left:8px}
  .c3-root.hx .bfh-pill__o::before{height:11px;margin-top:-5.5px}
  .c3-root.hx .bfh-pill__i{width:12px;height:12px}
}
/* where today's first screen already tightens its own gaps (v2-ph-home.css, 720 px and less), they give 2 px more each while the
   pill stands there */
@media (max-width:767.98px) and (max-height:720px){
  @supports (container-type:size){
    .c3-root.hx.bfh-hx.hxp-a .hx-lead{margin-top:5px}
    .c3-root.hx.bfh-hx.hxp-a .hx-btns{margin-top:8px}
  }
}
/* the shortest (an iPhone SE in Safari, 320 x 568) */
@media (max-width:767.98px) and (max-height:600px){
  .c3-root.hx.bfh-hx{--bfh-ph:24px;--bfh-pg:5px}
  .c3-root.hx.bfh-hx.hxp-a .hx-copy{padding-top:64px}
  .c3-root.hx .bfh-pill{font-size:11.5px}
  .c3-root.hx .bfh-pill__bf{font-size:9px}
}
@media (max-width:359.98px){
  .c3-root.hx .bfh-pill{gap:7px;padding:0 9px 0 11px;font-size:12px}
  .c3-root.hx .bfh-pill__bf{font-size:9.5px;letter-spacing:.1em;padding-left:.1em}
  .c3-root.hx .bfh-pill__o{padding-left:8px}
}
@media (max-width:359.98px) and (max-height:600px){
  .c3-root.hx .bfh-pill{font-size:11.5px}
  .c3-root.hx .bfh-pill__bf{font-size:9px}
}

/* ---------- 2. the Black Friday card in the accent: its "Buy 2, get 1 free" headline and its small "Black Friday" label ----------
   Wherever the card prints (homepage; shop, Vials, Pens, research areas: body class bfh-on-tone), so the card is one look. The
   headline keeps its words, size and lines (v2-bf.css); only its metal changes, from today's silver to the accent. The metal is
   one band per line of words (.98em = the headline's own line height, v2-bf.css), so on a phone "Buy 2," and "get 1 free" are
   lit alike, like metal type: light at the top, the deepest tone just under the middle (6.6:1 or more on the card).
   Each band starts .098em (10 % of a line) below its line's top: in this typeface (Neue Montreal, line height .98) a line's
   letters reach from .14em under its top to .055em past its foot (the tails of y, g and the comma), so the band's edge falls in
   the empty strip between one line's tails and the next line's tops, and every tail stays in its own line's metal. The headline
   also gets .1em of room at its foot (taken back by the margin, so nothing moves): the gradient is painted only inside the box,
   and the last line's tails would otherwise be cut flat. */
body.bfh-on-tone .bf-card .bf-card__h{background-image:none;color:var(--bfh-txt-c);-webkit-text-fill-color:currentColor;padding-bottom:.1em;margin-bottom:-.1em}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  body.bfh-on-tone .bf-card .bf-card__h{background-image:var(--bfh-txt);background-size:100% .98em;background-position:0 .098em;background-repeat:repeat-y;
    -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
body.bfh-on-tone .bf-card .bf-card__eye > span:not(.bf-card__date){color:var(--bfh-eye)}
body.bfh-on-tone .bf-card .bf-card__dot{background:var(--bfh-dot);box-shadow:0 0 0 4px var(--bfh-ring)}

/* ---------- 3. the homepage without "Delivery and payment": "02 —" stands as far under the Black Friday card as it stands under
   the band's cards today (measured edge to words: 109-110 px on a computer, 83-84 px on a phone and a tablet) ---------- */
body.bfh-on-band .c3-root.bf-home{padding-bottom:91px}
@media (max-width:899px){body.bfh-on-band .c3-root.bf-home{padding-bottom:65px}}
/* after Black Friday (no card) the first screen meets the next chapter: "02 —" gets the same air under the first screen as it has
   under the band's cards today (79 px to its words on a phone, 105 px from 900 px; measured, tests/r3). Under 1100 px the
   first screen ends with its research-use line (v2-home.css: 18 px under it); from 1100 px that line stands inside the picture
   and the picture's own edge is what "02 —" sits under. A black top border, not a margin (main is white between sections) and
   not padding (the section's art is placed from its padding edge, so it moves down with the words) */
body.bfh-on-band .c3-root.hx + .c3-root:not(.bf-home){border-top:47px solid #000}
@media (min-width:900px){body.bfh-on-band .c3-root.hx + .c3-root:not(.bf-home){border-top:73px solid #000}}
@media (min-width:1100px){body.bfh-on-band .c3-root.hx + .c3-root:not(.bf-home){border-top:91px solid #000}}

/* ---------- 4. "Your account" alone (homepage, during Black Friday) ----------
   The row's own card (offers.css, dark look v2-home5.css, card v2-acct2.css, its picture v2-acct-art.css: live shows the phone).
   Phone (<600): today's third card exactly. 600-1199: the card the whole row wide, as today's account card already is at these
   widths (under the two offers): words, lines and button at the left, the picture at the right (900-1199: today's rules,
   v2-acct2.css .chva-of--3 + v2-nobadges.css). From 1200 px the card is twice as wide as any card there today: words, lines and
   button stay together at the left, as on every card of the site (offers.css: "copy" over "btn"), and the phone stands in the
   middle of the right half with its light, at today's card height (348 px), so it is today's size (139 x 278). */
.c3-root.of-b.bfh-acct .of-b__row{grid-template-columns:minmax(0,1fr)}
@media (min-width:600px) and (max-width:899.98px){
  .c3-root.of-b.bfh-acct .chva-card__art{justify-self:end;max-width:210px}
}
@media (min-width:900px) and (max-width:1199.98px){
  .c3-root.of-b.bfh-acct .chva-card{grid-template-columns:minmax(0,1fr) minmax(0,220px);min-height:0}
  .c3-root.of-b.bfh-acct .chva-card__l{max-width:420px}
}
@media (min-width:1200px){
  .c3-root.of-b.bfh-acct .chva-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr auto;grid-template-areas:"copy art" "btn art";
    column-gap:48px;min-height:348px;padding:32px 48px}
  .c3-root.of-b.bfh-acct .chva-card__l{max-width:420px}
  .c3-root.of-b.bfh-acct .chva-card__art{justify-self:center;width:min(100%,260px);max-width:none}
}

@media (prefers-reduced-motion:reduce){
  .c3-root.hx .bfh-pill,.c3-root.hx .bfh-pill__i{transition:none}
  .c3-root.hx .bfh-pill:active{transform:none}
}
@media (forced-colors:active){
  .c3-root.hx .bfh-pill{border:1px solid LinkText}
  body.bfh-on-tone .bf-card .bf-card__h{-webkit-text-fill-color:CanvasText;color:CanvasText;background:none}
}
