
/* ===================== what the sector demands (secdemand.py) ======== */
/* NO BORDERS. Every rule here is a one pixel background laid over the
   page's own ground, which is the gecko-no-borders rule and is also
   why these lines survive the palette passes: a border gets overridden
   by four stylesheets on this site and a background does not. */
/* THE BLOCK SETS ITS OWN SPACE AT THE FOOT. Matt, 29 October: "Bit
   more gap underneath". The rules moved to the top of each row on his
   last note, which means the last row has nothing under it and the
   tier simply stops where its text does. The section's own padding is
   what gives the next eyebrow room, so it is stated here rather than
   left to whatever the page's section default happens to be. */
.sd{padding:0 0 58px;}
/* THE HEAD IS THE SAME GRID AS THE ROWS. It held the heading and a
   note, and Matt took the note off on 29 October: "let's not have the
   top / right hand para - not needed." The grid stays rather than
   becoming a plain block, because it is what keeps the heading to the
   left half of the measure instead of running the full width of the
   page above a two column list. */
.sd-head{display:grid;grid-template-columns:1fr 1fr;column-gap:72px;
  align-items:start;margin:0 0 40px;}
.sd-head h2{margin:0;}
.sd-grid{display:grid;grid-template-columns:1fr 1fr;
  column-gap:72px;row-gap:0;}
/* THE DIVIDERS ARE THE STATS BLOCK'S. Matt, 29 October: "the divider
   lines to be same as the stats block". That block is hero.py's proof
   tier and its line is two layers, not one: ::before is the rule
   itself, flat white at 17 per cent, inset 14px from the right so it
   stops short of the next column; ::after is a short aqua-to-white
   light travelling along it, sized and timed per column so no two
   march in step. The rule is the structure and the light is the life.

   ABOVE THE ROW, NOT UNDER IT, which is the other half of matching
   them: the proof tier draws at top:0 and this block was drawing at
   the bottom, so even in the same colour it would have read as a
   different component.

   THE NUMBERS ARE hero.py's, and check() reads that file and refuses
   if they have moved. They are not lifted as code because the proof
   tier's rules are welded to its own .sh2-proof .pf selector and
   rewriting the home page's signature component to share them is a
   bigger change than Matt asked for. The guard is what stops the two
   drifting in the meantime. */
.sd-row{padding:24px 0 22px;position:relative;}
.sd-row::before{content:"";position:absolute;top:0;left:0;right:14px;
  height:1px;background:rgba(255,255,255,.17);}
.sd-row::after{content:"";position:absolute;top:0;left:0;right:14px;
  height:1px;pointer-events:none;opacity:0;
  background-image:linear-gradient(90deg,
    rgba(0,238,204,0) 0%, rgba(0,238,204,.62) 32%,
    rgba(224,255,250,1) 50%,
    rgba(0,238,204,.62) 68%, rgba(0,238,204,0) 100%);
  background-repeat:no-repeat;
  background-size:var(--pfw,32%) 100%;
  filter:drop-shadow(0 0 3px rgba(0,238,204,.42));
  animation-name:pf-fwd;
  animation-duration:var(--pft,7s);
  animation-delay:var(--pfd,0s);
  animation-timing-function:cubic-bezier(.4,.03,.3,1);
  animation-iteration-count:infinite;}
.sd-row:nth-child(1){--pft:6.1s;--pfd:0s;   --pfw:30%;--pfi:.95;}
.sd-row:nth-child(2){--pft:7.9s;--pfd:1.7s; --pfw:42%;--pfi:.72;}
.sd-row:nth-child(3){--pft:5.3s;--pfd:3.1s; --pfw:26%;--pfi:.88;}
.sd-row:nth-child(4){--pft:8.7s;--pfd:.6s;  --pfw:36%;--pfi:.6;}
.sd-row:nth-child(5){--pft:6.8s;--pfd:2.4s; --pfw:34%;--pfi:.8;}
.sd-row:nth-child(6){--pft:9.2s;--pfd:4.1s; --pfw:28%;--pfi:.66;}
.sd-row:nth-child(2)::after,.sd-row:nth-child(4)::after,
.sd-row:nth-child(6)::after{animation-name:pf-rev;}
@media (prefers-reduced-motion:reduce){
  .sd-row::after{animation:none;opacity:0;}
}
/* AND THE KEYFRAMES COME WITH IT. pf-fwd and pf-rev are defined in the
   proof tier's own stylesheet, which is on the home page and on about
   and is NOT on a sector page. Without them the light simply never
   runs and the flat rule is all you get, which looks fine and is not
   what Matt asked for. Identical to hero.py's, so a page carrying
   both is unaffected by whichever wins. */
@keyframes pf-fwd{
  0%  {background-position:0% 0;   opacity:0;}
  10% {opacity:var(--pfi,.85);}
  56% {opacity:var(--pfi,.85);}
  66% {background-position:100% 0; opacity:0;}
  100%{background-position:100% 0; opacity:0;}
}
@keyframes pf-rev{
  0%  {background-position:100% 0; opacity:0;}
  10% {opacity:var(--pfi,.85);}
  56% {opacity:var(--pfi,.85);}
  66% {background-position:0% 0;   opacity:0;}
  100%{background-position:0% 0;   opacity:0;}
}
html body .sd-row h3{margin:0 0 12px;font-size:clamp(19px,1.55vw,23px);
  line-height:1.25;font-weight:700;letter-spacing:-.01em;color:#fff;}
/* THE VALUE LINE IS THE PAGE'S OWN FACE. Matt, 29 October, looking at
   the first render: "lets make the aqua text the same font for this,
   the titles could be one size up maybe?" The donor block set it in
   the mono token, which read as code on a page that is not about
   code. font-family:inherit rather than naming the face, so it
   follows the page and cannot drift from it.

   AND IT FIGHTS FOUR STYLESHEETS, which is why every line here is
   loud. This site has five layers that set a colour and a margin on a
   <p> inside a section, two of them with !important, and the first
   render put the value in body grey with no gap under it. faq.py
   learned the same lesson in September: on this codebase a new
   component either states its own case or quietly inherits somebody
   else's decision. */
html body .sd-row .sd-val{margin:0 0 13px !important;
  font-family:inherit !important;font-weight:500;
  font-size:clamp(17px,1.4vw,21px) !important;line-height:1.35;
  color:#28e0c8 !important;letter-spacing:-.01em;max-width:none;}
html body .sd-row p.sd-copy{margin:0 !important;
  color:rgba(255,255,255,.72) !important;
  font-size:15px;line-height:1.65;max-width:46ch;}
@media (max-width:900px){
  .sd-head{grid-template-columns:1fr;gap:18px;margin-bottom:30px;}
  .sd-grid{grid-template-columns:1fr;column-gap:0;}
  .sd-row{padding:22px 0 20px;}
  .sd-row::before,.sd-row::after{right:0;}
  .sd{padding:0 0 36px;}
}
