
/* ===== the stat chips (statchip.py) ===== */
/* Shallower than the numbered steps they share a class with, because
   they carry a figure rather than a paragraph. 22px against 32 top and
   bottom, and no dot under the label to hold the box open. */
.step.stat{padding:22px var(--s3);}
/* THE FIGURE IS THE CONTENT. It was --fs-4, the size of a card
   heading, under a label of the same weight.

   26px, MEASURED RATHER THAN CHOSEN. The widest of these reads
   "40 AWG - 120 mm2" and a chip is a quarter of the 1332 grid, which
   leaves 267px inside the padding. Rendered at 32, 30 and 28 that
   string takes two lines and the four labels under it stop lining up;
   at 26 all four are on one. The first cut was a clamp topping out at
   32 and it wrapped, which is the kind of thing that looks fine in the
   module and wrong on the page.

   A FLAT SIZE AND NOT A CLAMP, for the same reason. The grid stops
   growing at 1332 and vw does not, so a vw clamp keeps enlarging the
   type after the box it has to fit in has stopped. One step down at
   the width the grid starts shrinking instead. */
.step.stat h3{font-size:26px;line-height:1.08;
  letter-spacing:-.01em;margin:0 0 10px;}
@media (max-width:1100px){
  .step.stat h3{font-size:23px;}
}
.step.stat p{font-size:var(--fs-6,15px);line-height:1.45;
  color:rgba(255,255,255,.66);}
/* THE LABELS ALL CLEAR THE SAME HEIGHT. Matt, 27 October: "Sub tiles
   can we pad out shorter ones so it all looks more balanced?" One of
   these labels runs to two lines and the rest to one, so three tiles
   carried a band of empty ground the fourth did not. Two lines is the
   floor rather than the ceiling: the longest is free to take three. */
.step.stat p{min-height:calc(2 * 1.45em);}
/* THE WIDE FIRST COLUMN. Matt, same note: "AWG block first - but the
   tiles can be the max size for impact. This may mean 1st col is wider
   so it fits, other three cols thinner?"

   1.35 against .88 three times. On the 1332 grid that is a 426px
   opening tile and three of 278, where four equal ones are 310 each.
   The range sits on one line at 36px in 426 and needed 26 in 310,
   which is the whole reason for the split: the figure that says what
   the cell can do is now half as big again as it was. */
.grid4.statrow{grid-template-columns:1.35fr .88fr .88fr .88fr;}
/* AND THE OTHER THREE COME UP WITH IT. "The tiles can be the max size
   for impact" is about the row, not about the first tile: at 26 beside
   a 36 they read as a caption to it. 30 is the largest the three short
   figures take before "2.4M" starts crowding the 230px they have. */
.grid4.statrow .step.stat h3{font-size:30px;}
.grid4.statrow .step.stat:first-child h3{font-size:36px;}
@media (max-width:1100px){
  .grid4.statrow .step.stat h3{font-size:26px;}
  .grid4.statrow .step.stat:first-child h3{font-size:30px;}
}
@media (max-width:760px){
  .step.stat{padding:18px var(--s3);}
  /* one per row on a phone, so the split has nothing to do */
  .grid4.statrow{grid-template-columns:1fr;}
  .grid4.statrow .step.stat:first-child h3{font-size:28px;}
}


/* ===== the index cards are the open card (opencards.py) ===== */
html body .oc .rl-bar{display:flex;gap:14px;flex:0 0 auto;}
html body .oc .rl-btn{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;
  display:grid;place-items:center;background:rgba(255,255,255,.07);color:#fff;
  transition:background .25s,color .25s,opacity .25s;}
html body .oc .rl-btn svg{width:26px;height:26px;}
html body .oc .rl-next svg{transform:scaleX(-1);}
html body .oc .rl-btn:hover{background:var(--aqua);color:#0b0f2e;}
html body .oc .rl-btn[disabled]{opacity:.3;cursor:default;background:rgba(255,255,255,.07);color:#fff;}
html body .oc .rl-card{scroll-snap-align:start;display:flex;flex-direction:column;color:#fff;}
html body .oc .rl-ph{position:relative;display:block;overflow:hidden;border-radius:26px;
  aspect-ratio:4/3;background:#12173d;}
html body .oc .rl-ph i{position:absolute;inset:0;background-size:cover;background-position:center;
  transition:transform 1.2s cubic-bezier(.22,1,.36,1);}
html body .oc .rl-card:hover .rl-ph i{transform:scale(1.07);}
html body .oc .rl-tag{position:absolute;top:18px;left:18px;}
html body .oc .rl-cat{margin-top:24px;font-size:14px;color:rgba(255,255,255,.55);letter-spacing:.2px;}
html body .oc .rl-card h3{margin-top:14px;font-size:24px;font-weight:600;letter-spacing:-.4px;color:#fff;}
html body .oc .rl-card p{margin:10px 0 0;font-size:17px;line-height:1.5;color:rgba(255,255,255,.78);}
html body .oc .rl-arw{display:block;width:40px;height:40px;margin-top:32px;color:var(--aqua);
  transition:transform .3s cubic-bezier(.22,1,.36,1);}
html body .oc .rl-arw svg{width:100%;height:100%;}
html body .oc .rl-card:hover .rl-arw{transform:translate(5px,-5px);}
@media (max-width:640px){
html body .oc .rl-btn{width:48px;height:48px;}
}
/* THE CARDS SIT IN A GRID, NOT A TRACK. The lifted rules describe the
   card; the block they sit in is the page's own grid and keeps its
   gutter. Two numbers are re-stated: 24px of top margin was drawn for
   a rail where the card is the whole column, and the body copy is one
   step down because three cards across a grid are narrower than three
   across a rail. */
html body .oc .rl-card h3{margin-top:18px;text-transform:none;
  font-weight:600;letter-spacing:-.4px;}
html body .oc .rl-card p{font-size:16px;}
/* AND THE TITLE IS NOT SHOUTED. Measured on the first build of the
   wire processing block: the three read CABLE ASSEMBLIES, WIRING
   HARNESSES, CONTROL PANELS in caps at 900 weight, because these pages
   carry a heading rule that uppercases an h3 inside a card and the
   lifted .rl-card h3 rule sets a size and a weight but says nothing
   about case. */
