
/* ===== the one eyebrow, everywhere (eyebrows.py) ===== */
/* THE DECLARATIONS ARE .eyebrow's OWN. The base sheet has them in two
   places: the label rule that sets the type for every uppercase label in
   the system, and the .eyebrow rule that sets the ground. .pill was in
   neither.

   AQUA, AND NOT THE PAIR. The base rule is var(--aqua-dk) with
   var(--aqua) under .dark, written for a site that had paper sections in
   it. Measured on all 79 built pages, every one of the 395 real eyebrows
   computes rgb(0,238,204) on rgba(0,238,204,.12), and on the pages that
   declare it --aqua-dk now resolves to #00eecc as well. There is no
   light ground left here, so this says aqua once rather than carrying a
   second branch nothing exercises.

   EVERY TOKEN CARRIES ITS VALUE, and this is the one that cost an hour.
   index.html and services.html are built from _master/index.html, which
   is a different document with a sheet of its own: it declares --aqua
   and not one of --aquafilm, --pill, --ctl-sm, --fs-8 or --ls-label. A
   var() with no fallback whose custom property is undeclared is not
   ignored, it is invalid at computed-value time, which means initial for
   a property that does not inherit and inherit for one that does. So the
   first version of this rule did land on those pages and made 24
   eyebrows worse than it found them: aqua, because --aqua is declared,
   with the ground, the radius and the padding at their initial values
   and the size and tracking inherited from the heading block. Transparent
   16px aqua. The fallbacks are measured off the pages that do declare
   the tokens, so the two routes give the same pixels.

   AND IT HAS TO SHOUT. By the time a page is finished, four passes have
   an opinion about .pill: the base sheet, a standardising sweep at
   html body .pill, a border sweep with !important in it, and whtiers,
   which scopes home's whole sheet under #industries, #proof, #sectors
   and #hub. That last is an id, so it beats anything written with
   classes, and it is why the first version came out right on 242 of 246
   and left four grey. There is no reading of "keep it all consistent"
   where four stay as they were. The site already does this where one
   pass has to be the last word: akit sweeps the panels the same way.

   MARGIN IS NOT SET, let alone marked. The gap between an eyebrow and
   its heading is already a system: the eyebrow's margin-bottom goes to 0
   and the heading takes margin-top:20px, both !important, so one number
   sets that gap everywhere. A margin here would either lose to it or
   fight it. */
html body :is(.sh2-eye,.kicker,.xpo-hd) > :is(.eyebrow,.pill,.tl-eyebrow,.eyebrow-b),
html body :is(.eyebrow,.pill,.tl-eyebrow,.eyebrow-b):has(+ h1, + h2){
  color:var(--aqua, #00eecc) !important;
  background:var(--aquafilm, rgba(0,238,204,.12)) !important;
  border-radius:var(--pill, 999px) !important;
  /* 9 AND 3, NOT 7 AND 5. Matt, 25 November: "love these eyebrows but
     the '+' and text are not quite centered vertically / equally / in
     line - I feel the text needs to come down 2-3 pixels?" Uppercase in
     a 1.25 line box sits high in that box, because the box keeps room
     under the baseline for descenders this text does not have. There is
     no element around the words to move, they are an anonymous flex
     item, so the content box itself goes down 2px and akit pulls the
     crosshair back up by the same 1 with a transform. Two was the
     first try and he called it "a tad low", so it is one. Written as the
     number rather than var(--ctl-sm, ...) on purpose: a token read
     somewhere else would put it back to 7 and 5 on the pages that
     declare it, and this has to be the same two pixels everywhere. */
  padding:8px 14px 4px !important;
  font-size:var(--fs-8, 11px) !important;
  font-weight:700 !important;
  letter-spacing:var(--ls-label, 1.6px) !important;
  text-transform:uppercase !important;
  line-height:1.25 !important;
}
/* AND THE MARK STAYS ON THE PIXEL IT WAS ALREADY ON. The padding above
   moves the whole content box down 1, words and crosshair together, and
   the crosshair was the one thing that was already right. A transform
   rather than a margin, so it costs no layout and cannot change the
   pill's height. Scoped to exactly the selector that moved the padding:
   a pill that is not an eyebrow keeps both of its old numbers rather
   than getting half of this. */
html body :is(.sh2-eye,.kicker,.xpo-hd) > :is(.eyebrow,.pill,.tl-eyebrow,.eyebrow-b) > :is(svg,.xh),
html body :is(.eyebrow,.pill,.tl-eyebrow,.eyebrow-b):has(+ h1, + h2) > :is(svg,.xh){
  transform:translateY(-1px) !important;
}

/* DISPLAY IS LEFT ALONE ON PURPOSE. .eyebrow is inline-block and .pill
   is inline-flex, and some pills carry an svg the flex row is aligning.
   Changing it would move the icon to fix nothing: at text width the two
   render the same box. */


/* ===== 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;}
