/* subnav.py: held until its stylesheet */.snav{display:none}

/* ===== THE TIER JOINS (joins.py) ======================================= */
/* Thirty hard joins across the site, all of them the same two blues meeting
   with nothing between them. A 150px gradient of the upper band's colour
   laid over the lower band's own background turns the seam into a change of
   tier. Both directions, because the site alternates.

   Excluded by name: the bands that already paint their own background. */
section:not(.alt) + section.alt:not(.sh2-words):not(.dk-panel):not(.map-port):not(.tl-track){
  background-image:linear-gradient(180deg,#0b0f2e 0,rgba(17,23,64,0) 150px);}
section.alt + section:not(.alt):not(.sh2-words):not(.dk-panel):not(.map-port):not(.tl-track){
  background-image:linear-gradient(180deg,#111740 0,rgba(11,15,46,0) 150px);}
/* and the same on the way out of a band, so a tier that ends does not end
   on a line either */
section.alt:last-of-type:not(.sh2-words):not(.dk-panel):not(.map-port):not(.tl-track){
  background-image:linear-gradient(180deg,rgba(17,23,64,0) 0,
    rgba(17,23,64,0) calc(100% - 150px),#0b0f2e 100%);}


/* ===== THE APPROVAL RECORD CARD (approvals_pages.py) =================== */
/* The one component these pages needed that the site did not already have.
   Everything else on them is a component that was already locked. */
.apr-card{background:rgba(255,255,255,.05);border-radius:26px;
  padding:clamp(28px,3vw,44px);}
.apr-top{display:grid;grid-template-columns:1fr auto;gap:28px;
  align-items:start;}
.apr-top h2{margin:16px 0 0;}
.apr-top p{margin:18px 0 0;max-width:52em;font-size:16px;line-height:1.72;
  color:rgba(255,255,255,.72);}
/* the status chip. It says one of three words and they mean different
   things, which is the whole argument of the index page, so it is set
   plainly rather than dressed up as a badge. */
.apr-state span{display:inline-flex;align-items:center;height:30px;
  padding:0 15px;border-radius:999px;background:rgba(0,238,204,.14);
  font-size:12.5px;font-weight:700;letter-spacing:1.2px;
  text-transform:uppercase;color:var(--aqua,#00eac8);white-space:nowrap;}
.apr-rows{margin:36px 0 0;padding:0;}
/* NO BORDERS. The rule on this project is that a line is a gap over a
   coloured ground, never a border, so the rows are separated by the ground
   showing through a one pixel gap. */
.apr-row{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,11fr);
  gap:18px;padding:18px 0 17px;
  background:linear-gradient(180deg,rgba(255,255,255,.10) 0 1px,
    transparent 1px);}
.apr-row:first-child{background:none;}
.apr-row dt{margin:0;font-size:13px;font-weight:700;letter-spacing:1.1px;
  text-transform:uppercase;color:rgba(255,255,255,.55);}
.apr-row dd{margin:0;display:flex;flex-direction:column;gap:5px;}
.apr-row dd b{font-size:18px;font-weight:700;color:#fff;}
.apr-row dd em{font-style:normal;font-size:14px;line-height:1.6;
  color:rgba(255,255,255,.55);}
.apr-req{font-size:18px;font-weight:700;color:var(--aqua,#00eac8);}
.apr-foot{display:flex;flex-wrap:wrap;align-items:center;gap:18px;
  margin-top:34px;}
.apr-hint{font-size:14px;line-height:1.6;color:rgba(255,255,255,.55);
  max-width:34em;}
/* the chip on the index cards, same three words as the record card's */
.apr-chip{display:inline-flex;align-items:center;height:26px;padding:0 12px;
  /* width:max-content and align-self, for the fourth time on this project.
     The card body is a flex column, so an inline-flex child still stretches
     to the cross axis unless it is told not to. Same bug as the bento chip,
     the services header chip and the vertical header chip. */
  width:max-content;align-self:flex-start;
  border-radius:999px;background:rgba(0,238,204,.14);margin-bottom:14px;
  font-size:11.5px;font-weight:700;letter-spacing:1.1px;
  text-transform:uppercase;color:var(--aqua,#00eac8);}
@media (max-width:900px){
  /* A plain 1fr track still sizes to the status chip's min-content. */
  .apr-top{grid-template-columns:minmax(0,1fr);}
  .apr-top > *{min-width:0;}
  .apr-state span{height:auto;min-height:30px;max-width:100%;
    white-space:normal;}
  .apr-chip{height:auto;min-height:26px;max-width:100%;
    white-space:normal;}
  .apr-row{grid-template-columns:1fr;gap:6px;}
}

/* THE SECOND PARAGRAPH OF THE OPENING BLOCK. The two column block is
   borrowed from wordsart and the paragraph under the naming one is
   styled by searchfit, which does not run on this page, so both
   paragraphs came out the same colour with no gap between them and
   read as one slab. These are searchfit's own numbers.

   DOUBLED CLASS AND !important, which is this project's rule rather
   than a flourish: extract_css reorders the sheets, so a rule at the
   same specificity as the one setting .lede on this page loses or
   wins by file order and neither is a decision. */
html body .sh2-words .lede-also.lede-also{
  margin:22px 0 0 !important;max-width:72ch;font-size:16.5px;
  line-height:1.66;color:rgba(255,255,255,.58) !important;}


/* ===== the lead time commitment (reshore.py) =========================== */
.lt-band{display:grid;grid-template-columns:auto 1fr auto;gap:34px;
  align-items:center;border-radius:24px;padding:34px 38px;
  background:linear-gradient(120deg,rgba(0,238,204,.10),
    rgba(255,255,255,.04));}
.lt-n{font-family:'Gotham','Inter',Arial,sans-serif;font-weight:900;
  font-size:clamp(20px,2.1vw,30px);line-height:1.05;letter-spacing:-.02em;
  color:#00eac8;max-width:14em;}
.lt-w h3{margin:0 0 8px;font-size:19px;font-weight:700;color:#fff;}
.lt-w p{margin:0;font-size:15.5px;line-height:1.66;
  color:rgba(255,255,255,.74);max-width:46em;}
@media (max-width:1000px){
  .lt-band{grid-template-columns:1fr;gap:18px;padding:28px 26px;}
  .lt-band .btn{justify-self:start;}
}


/* ===== the capability brochure band (brochure.py) ====================== */
.br-band{display:grid;grid-template-columns:1fr auto;gap:32px;
  align-items:center;border-radius:24px;padding:32px 36px;
  background:rgba(255,255,255,.05);}
.br-band h3{margin:0 0 8px;font-size:20px;font-weight:700;color:#fff;}
.br-band p{margin:0;font-size:15.5px;line-height:1.66;
  color:rgba(255,255,255,.72);max-width:54em;}
@media (max-width:820px){
  .br-band{grid-template-columns:1fr;gap:18px;padding:26px 24px;}
  .br-band .btn{justify-self:start;}
}


/* ===== cookie consent (tracking.py) =================================== */
.cks{position:fixed;left:0;right:0;bottom:0;z-index:9000;
  background:linear-gradient(150deg,#1b2452,#141b45);
  box-shadow:0 -18px 44px rgba(5,8,26,.4);
  transform:translateY(100%);transition:transform .32s ease;}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .cks{background:linear-gradient(150deg,rgba(27,36,82,.72),
    rgba(16,22,58,.78));
    -webkit-backdrop-filter:blur(20px) saturate(150%);
    backdrop-filter:blur(20px) saturate(150%);}
}
.cks.on{transform:none;}
.cks-in{max-width:1180px;margin:0 auto;padding:20px 24px;
  display:flex;gap:28px;align-items:center;flex-wrap:wrap;}
.cks-t{margin:0;flex:1 1 420px;min-width:0;color:rgba(255,255,255,.82);
  font-size:15px;line-height:1.55;}
.cks-t b{color:#fff;font-weight:600;}
/* the second sentence on its own line. A block span rather than a
   <br>, so it still reads as one sentence after another to anything
   that is listening to the page instead of looking at it. */
.cks-s{display:block;}
.cks-b{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.cks button{font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  border:0;border-radius:999px;padding:11px 24px;letter-spacing:.2px;}
.cks-y{background:#00eecc;color:#0b0f2e;}
.cks-y:hover{background:#5cf2dd;}
.cks-n{background:rgba(255,255,255,.1);color:#fff;}
.cks-n:hover{background:rgba(255,255,255,.18);}
.cks-l{color:rgba(255,255,255,.62);font-size:14px;text-decoration:underline;
  text-underline-offset:3px;margin-left:6px;}
.cks-l:hover{color:#00eecc;}
@media (max-width:720px){
  .cks-in{padding:16px 18px;gap:14px;}
  .cks-t{flex:1 1 100%;font-size:14px;}
  .cks-b{width:100%;}
  .cks-y,.cks-n{flex:1 1 auto;text-align:center;}
}
@media (prefers-reduced-motion:reduce){.cks{transition:none;}}


/* ========== the chevron runs anchored to an edge (chevanchor.py) ====== */
/* Matt's rule, 2 November: "needs to anchor to top or bottom of a
   horizontal edge, where it is and slides left / right axis can be
   varied." So the vertical anchor is the constraint and the horizontal
   position is free, which is why nothing here touches left or right.

   MEASURED FIRST, and the markup was already right: the run's top sits
   at exactly the top of the block below it, 2222px against 2222px on
   about.html. It was anchored and it still read as floating, because
   oneground.py made every block the same colour on 20 October, so that
   box edge is invisible, and the block then opens with 100 to 124px of
   padding before any ink. The chevron was sitting on a real edge that
   nobody can see, a hundred pixels above anything it could belong to.

   So the block's own content comes up to meet it. The run stays where
   it is, on the edge, and the eyebrow underneath starts 34px below it
   instead of 100, which makes the chevron read as the top of that
   block rather than as a mark adrift between two. */
html body .chev-band + section,
html body .chev-band + div{padding-top:34px !important;}
@media (max-width:760px){
  html body .chev-band + section,
  html body .chev-band + div{padding-top:26px !important;}
}


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