/* The pages built from sections — a maker's tester page (whatsminer-hashboard-tester.html) and the installation guide
   (install-guide.html, its own look below): the owner's sections, each a
   card, two across on a wide screen and one on a phone. The words come from the Release Hub (Website → Google search);
   only their look lives here. */
.l-cta{justify-content:center}
.l-secs{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start}
.l-sec{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; box-shadow:var(--inner-edge); transition:border-color .18s}
.l-sec:hover{border-color:var(--line-strong)}
.l-sec h2{font-size:19px; font-weight:700; margin:0 0 10px}
.l-sec p{color:var(--text-dim); font-size:14.5px; margin:10px 0 0}
.l-sec h2 + p{margin-top:0}
.l-sec strong{color:var(--text); font-weight:600}
.l-sec ul{list-style:none; padding:0; margin:0; display:grid; gap:9px}
.l-sec li{position:relative; padding-left:22px; color:var(--text-dim); font-size:14.5px}
.l-sec li::before{content:""; position:absolute; left:3px; top:8px; width:9px; height:9px; border:1.5px solid var(--accent); border-radius:2px}
@media (max-width:760px){ .l-secs{grid-template-columns:1fr} .l-sec{padding:22px} }
.l-sec p + ul,.l-sec ul + ul{margin-top:10px}

/* A note in a section (a body line that starts with "! "): the guide's warnings — amber, the site's own weak colour. */
.l-note{position:relative; margin:14px 0 0 !important; padding:11px 14px 11px 44px; border-radius:var(--r-md);
  border:1px solid rgba(216,166,58,.34); background:rgba(216,166,58,.07); color:var(--text) !important; font-size:14px !important}
.l-note::before{content:"!"; position:absolute; left:13px; top:11px; width:20px; height:20px; border-radius:50%;
  display:grid; place-items:center; font-weight:800; font-size:12px; line-height:1; color:#1a1300; background:var(--weak-marginal)}

/* A section's pictures (body lines "@ <picture> | <caption>"): a row of buttons, each a small view of its picture and
   its words; pressing one opens the picture over the page (assets/landing/landing.js). */
.l-pics{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.l-pics + ul{margin-top:14px}
.l-pic{display:inline-flex; align-items:center; gap:11px; min-height:44px; max-width:100%; padding:5px 14px 5px 5px; border-radius:12px;
  border:1px solid var(--line-strong); background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
  color:var(--text); font:inherit; font-size:13.5px; font-weight:600; line-height:1.25; text-align:left; cursor:zoom-in;
  box-shadow:var(--inner-edge); transition:border-color .18s, background-color .18s, transform .18s, box-shadow .18s}
.l-pic img{flex:0 0 auto; width:52px; height:36px; object-fit:cover; border-radius:8px; border:1px solid var(--line); background:var(--bg)}
.l-pic span{min-width:0; overflow-wrap:anywhere}
.l-pic::after{content:""; flex:0 0 auto; width:14px; height:14px; margin-left:2px; opacity:.55; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/contain no-repeat}
.l-pic:hover{border-color:rgba(76,141,255,.6); background-color:rgba(76,141,255,.08); transform:translateY(-1px); box-shadow:var(--inner-edge),0 10px 26px -16px rgba(76,141,255,.7)}
.l-pic:hover::after{opacity:.95; color:var(--accent)}
.l-pic:focus-visible{outline:2px solid var(--accent); outline-offset:2px}

/* The picture, opened: the page dims behind it; the caption and whose picture it is under it; ‹ › between a
   section's pictures. Sized to the window — a phone, or an 800 × 480 screen, sees the whole picture. */
.l-view-open{overflow:hidden}
.l-view{border:0; padding:0; margin:auto; background:transparent; color:var(--text); max-width:none; max-height:none; overflow:visible}
.l-view::backdrop{background:rgba(4,7,14,.82); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px)}
.l-view-box{position:relative; display:grid; place-items:center; padding:0 64px}
.l-view-fig{margin:0; display:grid; gap:12px; justify-items:center}
.l-view-fig img{display:block; max-width:min(1100px,calc(100vw - 160px)); max-height:calc(100vh - 150px); max-height:calc(100dvh - 150px);
  width:auto; height:auto; border-radius:14px; border:1px solid var(--line-strong); background:#fff;
  box-shadow:0 30px 80px -30px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.04)}
.l-view-cap{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center; gap:4px 14px; max-width:min(1100px,calc(100vw - 32px)); text-align:center; font-size:14.5px}
.l-view-cap b{font-weight:600}
.l-view-credit{color:var(--text-dim); font-size:12.5px}
.l-view-credit:empty,.l-view-n:empty{display:none}
.l-view-n{color:var(--text-dim); font-size:12.5px; font-variant-numeric:tabular-nums}
.l-view-x,.l-view-go{position:absolute; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; border:1px solid var(--line-strong);
  background:rgba(14,19,30,.86); color:var(--text); font:inherit; font-size:26px; line-height:1; cursor:pointer;
  transition:border-color .18s, background-color .18s}
.l-view-x{top:-8px; right:4px; font-size:24px}
.l-view-go{top:calc(50% - 40px)}
.l-view-prev{left:4px}
.l-view-next{right:4px}
.l-view-x:hover,.l-view-go:hover{border-color:var(--accent); background:rgba(76,141,255,.2)}
.l-view-x:focus-visible,.l-view-go:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.l-view-in .l-view-fig{animation:l-view-in .26s cubic-bezier(.2,.8,.2,1)}
@keyframes l-view-in{from{opacity:0; transform:scale(.965)} to{opacity:1; transform:none}}
@media (max-width:640px){
  .l-view-box{padding:52px 8px 64px}
  .l-view-fig img{max-width:calc(100vw - 20px); max-height:calc(100dvh - 240px)}
  .l-view-x{top:8px; right:10px}
  /* the arrows sit INSIDE the window at the bottom (a tall portrait picture used to push them off the screen at -58px) */
  .l-view-go{top:auto; bottom:10px}
  .l-view-prev{left:calc(50% - 54px)}
  .l-view-next{right:calc(50% - 54px)}
}
@media (max-height:520px){ .l-view-fig img{max-height:calc(100vh - 110px); max-height:calc(100dvh - 110px)} .l-view-fig{gap:6px} }
@media (prefers-reduced-motion: reduce){ .l-view-in .l-view-fig{animation:none} .l-pic,.l-pic:hover{transition:none; transform:none} }

/* THE INSTALLATION GUIDE (install-guide.html): one column, every section a stop on one rail — read top to bottom. */
.l-guide{grid-template-columns:minmax(0,1fr); max-width:880px; margin:0 auto; gap:16px; position:relative; padding-left:36px}
.l-guide::before{content:""; position:absolute; left:12px; top:14px; bottom:14px; width:2px; border-radius:2px;
  background:linear-gradient(180deg,var(--accent),rgba(76,141,255,.35) 70%,rgba(76,141,255,.06))}
.l-guide > .l-sec::after{content:""; position:absolute; left:-31px; top:31px; width:12px; height:12px; border-radius:50%;
  background:var(--bg); border:2px solid var(--accent); box-shadow:0 0 0 4px rgba(76,141,255,.14)}
.l-guide > .l-sec{position:relative}
/* the site's depth lean (site.js "the drum": inline `rotate` + `translate` by a card's place on screen) would push each
   step's dot off the rail — a guide is read in a straight line. The entrance and the mouse tilt (`transform`) stay. */
.l-guide > .l-sec{rotate:none !important; translate:none !important}
.l-guide .l-sec h2{font-size:20px}
@media (max-width:760px){ .l-guide{padding-left:28px} .l-guide::before{left:8px} .l-guide > .l-sec::after{left:-27px; top:27px} }

/* The four stages under the guide's heading — download, the card, the control board, linked — a picture only (no
   words: aria-hidden in the page). The board's lights do what the real ones do: red flashes while the card writes the
   firmware, then green. */
.l-flow{display:flex; align-items:center; margin:30px auto 0; max-width:500px}
.l-node{position:relative; flex:0 0 54px; height:54px; border-radius:15px; display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line-strong); box-shadow:var(--inner-edge),0 10px 30px -16px rgba(0,0,0,.8)}
.l-node svg{width:26px; height:26px; fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.l-done{border-color:rgba(47,158,109,.45)}
.l-done svg{stroke:var(--good)}
.l-wire{flex:1 1 auto; height:2px; margin:0 8px; border-radius:2px;
  background:linear-gradient(90deg,rgba(76,141,255,.12),rgba(76,141,255,.75),rgba(76,141,255,.12)); background-size:200% 100%;
  animation:l-wire 2.4s linear infinite}
@keyframes l-wire{from{background-position:100% 0} to{background-position:-100% 0}}
.l-led{position:absolute; top:7px; width:6px; height:6px; border-radius:50%}
.l-led-red{right:17px; background:var(--dead); animation:l-red 10s infinite}
.l-led-green{right:8px; background:var(--good); opacity:.15; animation:l-green 10s infinite}
@keyframes l-red{
  0%,15%,30%,45%{opacity:1; box-shadow:0 0 8px var(--dead-glow)}
  7.5%,22.5%,37.5%,52.5%{opacity:.15; box-shadow:none}
  60%,100%{opacity:.15; box-shadow:none}
}
@keyframes l-green{0%,58%{opacity:.15; box-shadow:none} 62%,100%{opacity:1; box-shadow:0 0 10px rgba(47,158,109,.7)}}
@media (prefers-reduced-motion: reduce){ .l-wire,.l-led-red,.l-led-green{animation:none} .l-led-red{opacity:.15} .l-led-green{opacity:1} }
@media (max-width:560px){ .l-node{flex-basis:44px; height:44px; border-radius:12px} .l-node svg{width:22px; height:22px} .l-wire{margin:0 5px} }
