
/* ===== the phone layout fixes (mobilefix.py) ===== */
/* EVERY SELECTOR HERE IS PREFIXED html, AND THAT IS THE WHOLE TRICK.
   The first cut was written without it and half of it lost silently.
   .dg-flow already carries "@media (max-width:680px){.dg-flow{
   grid-template-columns:1fr 1fr}}" and .dk-note already carries a
   base font-size: same specificity as mine, declared later in the
   cascade, so they won and the build reported success. Measured
   after: the touch targets had moved and the grid and the type had
   not.

   One element name in front of the class takes these to (0,1,1)
   against the site's (0,1,0), so they win on specificity and the
   source order of 105 stylesheets stops mattering. It is the same
   lesson as the footer padding on 10 November, one rung up: there the
   selector matched nothing, here it matched and lost. Both look
   exactly like working if you only check that the rule is present. */
@media (max-width:700px){

  /* 1. THE APPROVALS CAPTION FITS ITS BOX. It is nowrap, and "AS 9100D
     & ISO 9001:2015" is 203px in a 156px box, so 47px of it hung out
     over the navy and the line read "...ISO 9001:201". Letting it wrap
     is the whole fix: the box is tall enough for two lines already. */
  html .certs-box .cb-q,html .certs-grid .cb-q{white-space:normal;}

  /* 2. THE SIX STEP BAND GOES TO ONE COLUMN. Its tracks come to
     186+196+14 = 396px inside a 311px container with overflow visible
     and no scroller, so on a 375px screen the even cards sat at
     232..428 and their right hand edge was unreachable. */
  html .dg-flow{grid-template-columns:1fr;}

  /* 3. A THUMB CAN HIT THE LINKS. 44px is Apple's guideline; these
     were 26 to 32. min-height on an inline-flex box grows the hit
     area without moving the text, so nothing shifts on the page. */
  html .gocta,html .link-aqua,html .pr-go{min-height:44px;}
  /* the inline standard links were 11 to 16px tall. inline-block so
     the padding counts, and 7px either side takes them to about 34,
     which is as far as they go without opening up the line spacing of
     the sentence they sit inside. */
  html a.stdl{display:inline-block;padding:7px 0;}

  /* 4. NOTHING SETS BODY TYPE BELOW 13px. The smallest was 11. */
  html .dk-note{font-size:13px;}
  html .bx-c-note{font-size:13px;}
}


/* ===== the LinkedIn pill in the bar (navli.py) ===== */
/* NOT .btn: see the module. Secondary, so a white wash rather than the
   aqua, and no border anywhere in it. */
/* THE SAME HEIGHT AS THE AQUA BUTTON. Matt, 9 November. It was 36 to
   the button's 42, which on one centre line read as the pill having
   been dropped in rather than belonging. Set as a height rather than
   as padding that happens to come to 42, so the two cannot drift when
   the button's type or padding changes. */
.nav-li{display:inline-flex;align-items:center;justify-content:center;
  gap:8px;height:42px;flex:0 0 auto;padding:0 17px 0 15px;
  border-radius:999px;
  background:rgba(255,255,255,.08);color:rgba(255,255,255,.88);
  font-family:'Inter',Arial,sans-serif;font-weight:600;font-size:13px;
  letter-spacing:.2px;line-height:1;text-decoration:none;white-space:nowrap;
  /* the bar's own gap is 6px, which is too tight between a pill and
     a button of different heights: measured at 1600 and doubled */
  margin-right:6px;
  transition:background .2s ease,color .2s ease,transform .2s ease;}
.nav-li svg{width:16px;height:16px;flex:0 0 auto;display:block;}
.nav-li:hover,.nav-li:focus-visible{background:rgba(0,238,204,.16);
  color:#fff;transform:translateY(-1px);}
/* the word goes first, then the pill */
@media (max-width:1280px){
  .nav-li span{display:none;}
  /* square it off so the mark sits in a circle rather than an oval */
  .nav-li{width:42px;padding:0;gap:0;}
}
@media (max-width:980px){.nav-li{display:none;}}
