
/* ===== one chip on a picture (chipmark.py) ===== */
/* Matt, 21 October: "Let's do new A please." The label brings
   its own ground, so it is 12.6 : 1 on every photograph rather
   than 1.4 : 1 on the pale ones. Where the chip SITS is each
   rail's own business and is not set here. */
html body .rl-tag{background:var(--aqua,#00eecc);color:#0b0f2e;border-radius:999px;padding:7px 14px 5px;font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;line-height:1.25;}


/* ===== the call to action asks a question (ctabox.py), the air above it ===== */
html body section#contact{padding-top:26px !important;}


/* ===== the footer's own floor (footerdark.py) ===== */
/* The first stop is the page's own ground, so there is nothing to see
   where the two meet. Everything after it is the floor. */
html body footer{background:linear-gradient(180deg,
  #0b0f2e 0,
  #090c26 28%,
  #07091e 62%,
  #06081a 100%);}

/* AND THE PAGE DOES NOT FALL SO FAR INTO IT. Matt, 19 October, with a
   shot of the join: "This gap about 15% smaller above footer."

   Measured at 1840 before: 166px from the bottom of the call to action
   card to the top of the footer logo, made of the CTA section's 96px of
   bottom padding and the footer's own 96px on top. A fifth of the first
   number is below the card and the rest is inside it, so the number to
   move is the footer's.

   AND THE 15 PER CENT IS OFF THE GAP, NOT OFF THE PADDING. The first
   version took 15 per cent off 96 and moved the gap by 14px, which is
   8 per cent of what Matt was looking at. He pointed at the white space
   and said make it 15 per cent smaller: 166 less 15 per cent is 141, so
   the footer loses the whole 25px and goes to 71. Measured after: 141.

   WHY HERE AND NOT IN THE SOURCE. The 96 is written as
   `footer{...padding-top:96px !important}` in _master/index.html and in
   two case study sources, and it arrives on 79 pages by being lifted
   out of those. Changing it in three places would work today and would
   be wrong the first time a fourth source appears. This module already
   owns how every footer on the site looks, so it owns this too, and it
   needs the !important to beat the one it is overriding. */
html body footer{padding-top:71px !important;}


/* ===== snow, until January (snow.py) ===== */
#snowc{position:fixed;inset:0;z-index:80;pointer-events:none;
  display:block;opacity:0;transition:opacity .6s ease;}
#snowc.on{opacity:1;}
/* ROOM UNDER THE FOOTER FOR THE SNOW TO LIE IN.
   --snowband is published by size() and is the taller of the near tier
   and the deepest drift, in CSS pixels. 24 more so the last line of the
   footer clears the snow rather than touching it.
   SCOPED TO html.xmas, so the padding arrives and leaves with the
   switch and nothing has to undo it. On a phone the landscape and the
   flakes do not run at all, so there is nothing to clear. */
/* THE SELECTOR WAS WRONG FOR FIVE DAYS AND THE GUARD SAID IT WAS
   FINE. It read `html.xmas body > footer`, and this site's footer is
   not a child of body: it is inside <main class="sheet">. So the rule
   matched nothing, the padding never arrived once, and the snow has
   been lying over the last four lines of the footer the whole time.
   The guard checked that the string "html.xmas body > footer{" was in
   the page, which it always was. A guard that checks a rule EXISTS
   and not that it MATCHES is a guard that cannot fail, and this is the
   third time that has cost something on this site.
   Both shapes are covered now, and check() reads the markup rather
   than the stylesheet. Measured after the change at 1440, 1920 and
   1280: the snow reaches 110, 119 and 98 CSS pixels at its highest,
   and --snowband publishes 130, 140 and 116, so the padding clears it
   everywhere with the 24 to spare that it was always meant to have. */
html.xmas main > footer,
html.xmas body > footer{
  padding-bottom:calc(var(--snowband, 150px) + 24px);
}
@media (max-width:700px){
  html.xmas main > footer,
  html.xmas body > footer{padding-bottom:0;}
}
/* THE SWITCH. Bottom left, as asked, which is also the corner the Ask
   us dock is not in. No border: the ring is a background behind a gap,
   per the standing rule. */
#snowt{position:fixed;left:18px;bottom:18px;z-index:95;
  display:inline-flex;align-items:center;gap:9px;
  padding:9px 15px 9px 12px;border-radius:999px;
  background:rgba(255,255,255,.08);color:rgba(255,255,255,.72);
  font:600 12px/1 'Gotham',system-ui,sans-serif;letter-spacing:1.4px;
  text-transform:uppercase;cursor:pointer;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:background .3s ease,color .3s ease,transform .3s ease;}
#snowt:hover{background:rgba(255,255,255,.14);transform:translateY(-2px);}
/* DRAWN, NOT TYPED. The obvious snowflake is U+2744 and Gotham has no
   glyph for it, so the switch showed whatever the system fell back to,
   which on this machine was a boxy sans-serif asterisk. A mark the
   brand font cannot draw is not a mark this site can use. */
#snowt b{display:block;width:15px;height:15px;line-height:0;
  transition:transform .6s ease;}
#snowt b svg{width:100%;height:100%;display:block;}
/* AND THE SWITCH GETS A GROUND OF ITS OWN ONCE THE DRIFT IS DEEP.
   The pill is a translucent white film over a backdrop blur, which
   is right over the page and wrong over snow: the bank at the left
   edge climbs behind this button, the film goes near white, and aqua
   on white is about 1.6 to 1. The control that turns the snow OFF is
   the last thing that should become unreadable when it is on. A
   solid dark base under the same aqua film, so it reads against the
   page and against a drift. */
#snowt.on{color:var(--aqua,#00eecc);
  background:linear-gradient(var(--aquafilm,rgba(0,238,204,.12)),
                             var(--aquafilm,rgba(0,238,204,.12))),
             var(--ink,#0b0f2e);}
#snowt.on b{transform:rotate(90deg);}
@media (max-width:700px){
  #snowt{left:12px;bottom:12px;padding:8px 12px 8px 10px;font-size:11px;}
}
/* NOT ON A PHONE, switch or snow. Michael, 27 October, on a Pixel: the
   switch sat over the content in the bottom corner of every page, and on
   a 360px screen the flakes read as dust on the glass rather than snow.
   It is a trial for Matt to show on a desk; the script stops drawing too
   (see "phone" below), so a hidden canvas is not burning the battery. */
@media (max-width:700px),(pointer:coarse){
  #snowt,#snowc{display:none !important;}
}
