
/* ===== the right hand call to action (gocta.py) ===== */
/* THE ROW. Any head that carries one of these. The title keeps the
   760px measure .sec-head is built on and the row spans the wrap, or
   the link lands in the middle of the page with the heading wrapping
   out of its way. */
html body .gocta-row{display:flex;align-items:flex-end;
  justify-content:space-between;gap:28px;max-width:none;}
html body .gocta-row > :first-child{min-width:0;max-width:760px;}

/* THE LINK. The test block's standfirst, with the rails' arrow after
   it. See the note at the top of this file for where each number comes
   from: none of them is a new decision. */
html body .gocta{display:inline-flex;align-items:center;gap:12px;
  margin-bottom:-2px;
  font-size:19px;font-weight:400;line-height:1.7;letter-spacing:normal;
  color:rgba(255,255,255,.74);text-decoration:none;white-space:nowrap;
  transition:color .25s ease;}
html body .gocta .gocta-arw{width:20px;height:20px;flex:0 0 20px;
  color:#fff;transform:scaleX(-1);transition:transform .25s ease;}
html body .gocta:hover{color:#fff;}
html body .gocta:hover .gocta-arw{transform:scaleX(-1) translateX(-4px);}

/* AND IT GOES UNDER THE TITLE ON A PHONE. Two things on one line stop
   being a row long before the window gets narrow: at 900px the link
   has nowhere to go but back under the heading, where it reads as the
   last line of it unless it is given room. */
@media (max-width:900px){
  html body .gocta-row{display:block;}
  html body .gocta{margin-top:18px;margin-bottom:0;
    max-width:100%;white-space:normal;}
  html body .gocta > span{min-width:0;}
}


/* ===== 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. */
