/* SourceLess Chain — Intellectual property of Alexandru Marius Stratulat and the SourceLess team. GitHub: alexccoin · Email: alex@strlabs.io · All rights reserved. No use without written consent. See LICENSE. */

/* Guide 2, "Validator nodes": what this door adds on top of the shared Inside Asgard look (base.css).
 * Colour carries the argument everywhere: lime is the hosted seat, cool grey is the follower node. */

:root {
  color-scheme: dark;
  --seat: #A7FF52;
  --follower: #AEBBD0;
  --terms: #a395ff;
}
html, body { background: #030408; }

/* one page, two languages: the other one is hidden at once and removed before the modules run */
html:not([lang="de"]) [data-l="de"],
html[lang="de"] [data-l="en"] { display: none !important; }

.chap[data-part="3"] { --acc: var(--follower); --f-acc: var(--follower); }

/* ---------- header: the language switch ---------- */
.lang-sw {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: var(--glass-sheen), var(--glass-fill);
  box-shadow: var(--glass-bevel);
}
.lang-sw a {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font: 700 12.5px/1 var(--f-d);
  letter-spacing: .06em;
  color: var(--ink3);
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-sw a:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.lang-sw a[aria-current="true"] { color: #030408; background: var(--lime); }
.lang-sw a:focus-visible, .chap a:focus-visible, .btn:focus-visible, .ov-grid a:focus-visible, .qa-item summary:focus-visible, .code:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* desktop: content scrolls UNDER the header and the part rail, never half-visible beside the pills */
@media (min-width: 861px) {
  .part-rail-wrap::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 124px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 4, 8, .97) 0%, rgba(3, 4, 8, .94) 80%, rgba(3, 4, 8, 0) 100%);
  }
}

/* ---------- hero ---------- */
.h-eco.h-guide {
  font-size: clamp(32px, 4.1vw, 60px);
  line-height: 1.04;
  max-width: 17ch;
}
.hero-ring { display: none; }
.hero-cta { flex-wrap: wrap; }

/* ---------- overview: the chapters grouped by the way they belong to ---------- */
.ov-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.ov-part-h {
  margin: 0 0 10px;
  font: 600 15px/1.2 var(--f-u);
  letter-spacing: .04em;
  color: var(--ink2);
}
.ov-part-h b {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  margin-right: 8px;
  padding: 0 7px;
  border-radius: 999px;
  font: 400 11px/1 var(--f-m);
  color: #030408;
  background: var(--acc);
}

/* ---------- chapter content ---------- */
.chap-text code, .chap-more code {
  font: 400 .92em/1 var(--f-m);
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  overflow-wrap: anywhere;
}
.chap-text .note {
  margin: 14px 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .035);
  color: var(--ink2);
}

/* the real screen: a light capture set in a dark bezel, so it reads as "this is the page you will see" */
.shot {
  position: relative;
  margin: 18px 0 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 22px 46px -26px rgba(0, 0, 0, .8);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  background: #f6f8fb;
}
.shot figcaption {
  margin: 9px 2px 0;
  font: 400 12px/1.45 var(--f-m);
  color: var(--ink2);
}
.shot-chip {
  position: absolute;
  top: -11px;
  left: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 12px/1 var(--f-u);
  letter-spacing: .04em;
  color: #030408;
  background: var(--ink);
}

/* the sale terms, quoted: violet, never the colour of something the page does */
.terms {
  margin: 18px 0 8px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--terms) 45%, transparent);
  border-left: 3px solid var(--terms);
  background: color-mix(in srgb, var(--terms) 9%, rgba(255, 255, 255, .02));
}
.terms-h, .plain-h, .contact-h {
  margin: 0 0 8px;
  font: 700 15px/1.25 var(--f-u);
  letter-spacing: .03em;
  color: var(--terms);
}
.terms blockquote { margin: 0 0 6px; }
.terms blockquote p { margin: 0; font: 400 14.5px/1.55 var(--f-b); color: var(--ink); font-style: italic; }
.terms-foot { margin: 8px 0 0 !important; font: 400 13px/1.5 var(--f-b); color: var(--ink3); }

/* plain words about money: white on a dark plate, no colour that could read as a promise */
.plain {
  margin: 18px 0 8px;
  padding: 14px 16px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .05);
}
.plain .plain-h { color: var(--ink); }
.plain ul { margin: 0; padding-left: 18px; }
.plain li { margin: 0 0 4px; color: var(--ink); }

/* commands: copied by hand from the box, never run from here */
.code-l { margin: 16px 0 6px !important; font: 400 13.5px/1.5 var(--f-b); color: var(--ink2); }
.code {
  margin: 0 0 6px;
  padding: 12px 14px;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--acc) 40%, rgba(255, 255, 255, .14));
  background: rgba(2, 4, 9, .82);
  font: 400 12.5px/1.65 var(--f-m);
  color: #E9F2FF;
  white-space: pre;
}
.code code { font: inherit; padding: 0; border: 0; background: none; }

/* tables */
.chap-text .tbl { margin: 16px 0 6px; }
.chap-text .tbl table { min-width: 0; font-size: 14px; }
.chap-text .tbl th[scope="row"] { color: var(--ink); font: 600 14px/1.4 var(--f-b); text-transform: none; letter-spacing: 0; }
.tbl-cmp thead th:nth-child(2) { color: var(--seat); }
.tbl-cmp thead th:nth-child(3) { color: var(--follower); }
.tbl-cmp tbody td:nth-child(2) { color: var(--ink); background: color-mix(in srgb, var(--seat) 7%, transparent); padding-left: 10px; }
.tbl-cmp tbody td:nth-child(3) { color: var(--ink3); background: color-mix(in srgb, var(--follower) 6%, transparent); padding-left: 10px; }
.tbl-cmp thead th:nth-child(n+2) { padding-left: 10px; }

/* contact, after the glossary */
.contact {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(167, 255, 82, .36);
  background: color-mix(in srgb, var(--lime) 7%, rgba(255, 255, 255, .03));
  font: 400 15.5px/1.55 var(--f-b);
  color: var(--ink2);
}
.contact .contact-h { color: var(--lime); }
.contact p { margin: 0 0 6px; }
.contact a { color: var(--lime); }
.contact-never { color: var(--ink) !important; font-weight: 600; }

.stage-cap { text-transform: none; letter-spacing: .02em; }

/* ---------- the 2D figures: the same colour meanings as the 3D ones ---------- */
.fig .tick { fill: none; stroke: rgba(196, 210, 234, .55); stroke-width: 1; }
.fig .tick-new { fill: none; stroke: rgba(102, 220, 206, .5); stroke-width: 1; }
.fig .lime { fill: none; stroke: var(--seat); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fig .limef { fill: var(--seat); }
.fig .grey { fill: none; stroke: var(--follower); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fig .greyf { fill: var(--follower); }
.fig .amb { fill: none; stroke: #F2B84B; stroke-width: 2; stroke-linecap: round; }
.fig .ambf { fill: #F2B84B; }
.fig .vio { fill: none; stroke: var(--terms); stroke-width: 2.6; stroke-linecap: round; }
.fig text.lt { fill: var(--seat); }
.fig text.wt { fill: #cdc4ff; }
.fig text.at { fill: #F2B84B; font-family: "Orbitron", sans-serif; font-weight: 700; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .hero-ring {
    display: block;
    width: min(100%, 420px);
    aspect-ratio: 1.55;
    height: auto;
    margin: 0 auto 18px;
    align-self: center;
  }
  .h-eco.h-guide { font-size: clamp(30px, 8.4vw, 44px); max-width: none; }
  .lang-sw { height: 36px; }
  .lang-sw a { min-width: 34px; height: 28px; padding: 0 8px; font-size: 11.5px; }
  .chap-text .tbl table { font-size: 13px; }
  .tbl-cmp table { min-width: 0; }
  .fig text { font-size: 14px; }
  .fig text.s { font-size: 12.5px; }
  .fig text.b { font-size: 18px; }
}
@media (max-width: 420px) {
  .chap-text .tbl th, .chap-text .tbl td { padding-right: 6px; }
  .bar-burger-label { display: none; }
}
