/* QuoteBridge website. The app's own visual design (dev/design/visual-design.md in the app's repository): deep indigo
   ink, colour only where it means something, one ultramarine accent for controls, Archivo with its width axis. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;

  --ink: light-dark(#131a38, #e3e8f4);
  --ink-2: light-dark(#4a5370, #a6b0c8);
  --ink-3: light-dark(#6e7790, #78839e);
  --ground: light-dark(#eef1f7, #0a1120);
  --surface: light-dark(#ffffff, #111a2e);
  --sunk: light-dark(#f6f8fc, #0d1526);
  --line: light-dark(#d6dbe8, #222f4a);
  --line-soft: light-dark(#e7ebf3, #1a2640);
  --rail: light-dark(#161d45, #060b17);
  --rail-ink: #c3cbe0;
  --rail-ink-strong: #ffffff;
  --rail-line: rgb(255 255 255 / 9%);
  --rail-live: #2ee6a0;

  --accent: light-dark(#3346e6, #8f9cff);
  --accent-ink: light-dark(#ffffff, #0a1120);
  --accent-soft: light-dark(#e6e9fd, #1d2552);
  /* On the rail (dark in both themes) the accent is the dark theme's. */
  --rail-accent: #8f9cff;

  --uptick: light-dark(#007f56, #2ee6a0);
  --downtick: light-dark(#d42a3f, #ff5e6e);
  --up-cell: light-dark(rgb(0 168 107 / 36%), rgb(46 230 160 / 32%));
  --down-cell: light-dark(rgb(229 56 79 / 32%), rgb(255 94 110 / 34%));
  --caution: light-dark(#9c5c00, #f5b94a);
  --caution-bg: light-dark(#fdf1dc, #33270f);
  --fault: light-dark(#c0261b, #ff8f86);
  --fault-bg: light-dark(#fde9e7, #3a1a1d);

  --radius: 10px;
  --radius-small: 7px;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Top bar: the app's rail, laid on its side ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--rail);
  color: var(--rail-ink);
  border-bottom: 1px solid var(--rail-line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rail-ink-strong);
  text-decoration: none;
  margin-right: auto;
}

.wordmark img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 22%);
}

.wordmark b {
  display: block;
  font-size: 19px;
  font-weight: 750;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  line-height: 1;
}

.wordmark small {
  display: block;
  font-size: 12px;
  color: var(--rail-ink);
  margin-top: 2px;
}

.topnav {
  display: flex;
  gap: 4px;
}

.topnav a {
  color: var(--rail-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: var(--radius-small);
}

.topnav a:hover {
  color: var(--rail-ink-strong);
  background: rgb(255 255 255 / 7%);
}

/* The current page, as the rail marks the current view: a bar of the accent. */
.topnav a[aria-current="page"] {
  color: var(--rail-ink-strong);
  box-shadow: inset 0 -2px 0 var(--rail-accent);
  border-radius: 0;
}

/* ---------- Buttons: one filled button per screen ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--radius-small);
  padding: 12px 20px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.button.primary:hover {
  filter: brightness(1.08);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.on-rail .button.primary {
  background: var(--rail-accent);
  border-color: var(--rail-accent);
  color: #0a1120;
}

.on-rail a:not(.button) {
  color: var(--rail-ink-strong);
}

.on-rail :focus-visible {
  outline-color: var(--rail-accent);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--rail);
  color: var(--rail-ink);
  padding: clamp(36px, 5vw, 64px) 0 0;
  overflow: hidden;
}

.hero h1 {
  color: var(--rail-ink-strong);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 760;
  font-stretch: 125%;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  max-width: none;
}

.hero .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 54ch;
  margin: 18px 0 26px;
  color: var(--rail-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.hero-actions p {
  margin: 0;
  font-size: 14px;
}

/* The board sits on the rail and runs off the bottom of the hero, like a window on a desk. */
.board-wrap {
  margin-top: clamp(32px, 4.5vw, 52px);
  position: relative;
}

.board-caption {
  font-size: 13px;
  color: var(--rail-ink);
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.board {
  background: var(--ground);
  color: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid rgb(255 255 255 / 14%);
  border-bottom: 0;
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 420px;
  box-shadow: 0 -1px 0 rgb(255 255 255 / 4%), 0 30px 80px rgb(0 0 0 / 35%);
  overflow: hidden;
}

.board-rail {
  background: light-dark(#161d45, #060b17);
  border-right: 1px solid rgb(255 255 255 / 8%);
  color: var(--rail-ink);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.board-rail .mini-mark {
  color: #fff;
  font-weight: 750;
  font-stretch: 125%;
  font-size: 15px;
  padding: 0 8px 14px;
}

.board-rail span {
  padding: 6px 10px;
  border-radius: var(--radius-small);
}

.board-rail .current {
  background: var(--ground);
  color: var(--ink);
  font-weight: 650;
  margin-right: -10px;
  border-radius: var(--radius-small) 0 0 var(--radius-small);
  box-shadow: inset 2px 0 0 var(--accent);
}

.board-rail .foot {
  margin-top: auto;
  font-size: 12px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.board-main {
  padding: 22px 24px 0;
  min-width: 0;
}

.board-main h2 {
  font-size: 23px;
  font-weight: 700;
  font-stretch: 112%;
  margin: 0;
}

.board-status {
  margin: 2px 0 16px;
  font-size: 14px;
  color: var(--ink-2);
}

.board-status strong {
  color: var(--caution);
  font-weight: 650;
}

.group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.group-head b {
  font-size: 15px;
}

.group-head code {
  color: var(--ink-3);
  font-size: 12px;
}

.group-head .ea {
  margin-left: auto;
  color: var(--ink-2);
  white-space: nowrap;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rail-live);
  margin-right: 6px;
  vertical-align: 1px;
}

.feeds {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.feeds th {
  text-align: left;
  font-weight: 450;
  font-size: 12px;
  color: var(--ink-3);
  padding: 6px 16px;
}

.feeds td {
  padding: 0 16px;
  height: 40px;
  border-top: 1px solid var(--line-soft);
  white-space: nowrap;
}

.feeds .num {
  text-align: right;
}

.feeds .sym {
  font-weight: 700;
  font-stretch: 82%;
  font-size: 16px;
}

.tf {
  font-size: 11px;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 8px;
  color: var(--ink-2);
  font-stretch: 100%;
}

/* A price set as on a dealing ticket: the big figure small, the pips large, the pipette raised. */
.px {
  font-size: 13px;
  color: var(--ink-2);
}

.px b {
  font-size: 22px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.px sup {
  font-size: 11px;
  color: var(--ink);
  vertical-align: 9px;
  line-height: 0;
}

.feeds td.bid,
.feeds td.ask {
  width: 1%;
  min-width: 120px;
  transition: background-color 1.2s ease-out;
}

.feeds td.up {
  background: var(--up-cell);
  transition: none;
}

.feeds td.down {
  background: var(--down-cell);
  transition: none;
}

.flag {
  font-size: 12px;
  font-weight: 550;
  border-radius: 4px;
  padding: 2px 7px;
}

.flag.caution {
  color: var(--caution);
  background: var(--caution-bg);
}

.flag.fault {
  color: var(--fault);
  background: var(--fault-bg);
}

.muted {
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .feeds td.bid,
  .feeds td.ask {
    transition: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section + .section {
  padding-top: 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2,
.feature h2,
.download h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 740;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px;
}

.feature h2 {
  font-size: clamp(26px, 2.5vw, 34px);
  font-stretch: 110%;
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
}

/* How it works: a real sequence, so it is numbered, as the Terminals view numbers its four setup steps. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.steps li {
  padding: 22px 22px 26px;
  border-left: 1px solid var(--line-soft);
}

.steps li:first-child {
  border-left: 0;
}

.steps .n {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps li:last-child .n {
  border-color: var(--uptick);
  background: var(--uptick);
  color: var(--surface);
}

.steps h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.steps .who {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 10px;
}

/* Features: prose beside a real screenshot, alternating sides. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.feature.flip {
  grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
}

.feature.flip .text {
  order: 2;
}

.feature .text p {
  color: var(--ink-2);
  margin: 0 0 14px;
}

.feature .text ul {
  margin: 0 0 16px;
  padding-left: 1.1em;
  color: var(--ink-2);
}

.feature .text li + li {
  margin-top: 6px;
}

.feature .text a {
  font-weight: 600;
}

.feature .text .terminal {
  margin: 0 0 16px;
  font-size: 13px;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 50px light-dark(rgb(19 26 56 / 12%), rgb(0 0 0 / 40%));
}

.shot img {
  display: block;
  width: 100%;
}

.terminal {
  background: var(--rail);
  color: var(--rail-ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0;
}

.terminal .prompt {
  color: var(--rail-live);
  user-select: none;
}

.terminal .out {
  color: #8d97b3;
}

.terminal .up {
  color: #2ee6a0;
}

/* Quiet promises: a plain list in two columns, no cards. */
.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promises li {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.promises b {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.promises span {
  color: var(--ink-2);
}

/* ---------- Landing: App | CLI | Skill, side by side ---------- */

.on-rail .button.ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 30%);
  color: var(--rail-ink-strong);
}

.on-rail .button.ghost:hover {
  background: rgb(255 255 255 / 8%);
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.way {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 22px;
  min-width: 0;
}

.way-visual {
  aspect-ratio: 16 / 10;
  margin: 0 0 18px;
  box-shadow: none;
}

.way-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.way-visual.terminal {
  font-size: 12px;
  line-height: 1.6;
  padding: 14px 16px;
  overflow: hidden;
  white-space: pre;
}

.way-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
  margin: 0 8px 10px;
}

.way h3 {
  font-size: 22px;
  font-weight: 720;
  font-stretch: 110%;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 8px 10px;
}

.way p {
  color: var(--ink-2);
  margin: 0 8px 12px;
}

.way ul {
  color: var(--ink-2);
  margin: 0 8px 18px;
  padding-left: 1.1em;
  font-size: 15px;
}

.way li + li {
  margin-top: 5px;
}

.way li code {
  overflow-wrap: anywhere;
  font-size: 0.8em;
}

.way-link {
  margin: auto 8px 0;
  font-weight: 650;
}

.way-link::after {
  content: " →";
}

/* ---------- Quick Start ---------- */

.page-head-actions {
  margin-top: 22px !important;
}

.qs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qs-step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}

.qs-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.qs-text .n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.qs-step:last-child .n {
  border-color: var(--uptick);
  background: var(--uptick);
  color: var(--surface);
}

.qs-text h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 730;
  font-stretch: 110%;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.qs-text p,
.qs-text ol {
  color: var(--ink-2);
  margin: 0 0 12px;
}

.qs-text ol {
  padding-left: 1.2em;
}

.qs-text li + li {
  margin-top: 6px;
}

.qs-note {
  font-size: 14px;
  border-left: 2px solid var(--caution);
  padding: 2px 0 2px 14px;
}

.qs-note b {
  color: var(--caution);
}

.qs-visual {
  min-width: 0;
}

/* Step 6's three clicks inside MetaTrader, side by side under it. */
.qs-sub {
  padding: 0 0 clamp(28px, 4vw, 48px);
}

.mt4-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.mt4-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 18px;
  min-width: 0;
}

.mt4-shot {
  margin: 0 0 14px;
  height: 230px;
  display: grid;
  place-items: center;
  background: light-dark(#eef1f7, #e9ecf2);
  border-radius: var(--radius-small);
  padding: 12px;
}

.mt4-shot img {
  max-height: 206px;
  max-width: 100%;
  width: auto;
  height: auto;
  min-height: 0;
  object-fit: contain;
  box-shadow: 0 6px 18px rgb(19 26 56 / 16%);
}

.mt4-step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin: 0 0 6px;
}

.mt4-step .n {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.mt4-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.real-note {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  margin-top: clamp(16px, 2.4vw, 28px);
  background: var(--caution-bg);
  border: 1px solid light-dark(#f0d9a8, #5a4519);
  border-radius: var(--radius);
  padding: 16px;
}

.real-note .mt4-shot {
  margin: 0;
  height: 260px;
}

.real-note .mt4-shot img {
  max-height: 236px;
}

.real-note h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--caution);
}

.real-note p,
.real-note ol {
  color: var(--ink-2);
  margin: 0 0 10px;
}

.real-note ol {
  padding-left: 1.2em;
}

.real-note li + li {
  margin-top: 6px;
}

.real-note a {
  font-weight: 650;
}

@media (max-width: 980px) {
  .real-note {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .mt4-steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

/* Windows mock-ups: always Windows' own light look, whatever the site theme. */
.explorer,
.nsis {
  color-scheme: light;
  margin: 0 auto;
  font: 12.5px/1.45 "Segoe UI", system-ui, sans-serif;
  font-stretch: 100%;
  color: #1b1b1b;
  background: #fff;
  border: 1px solid #c8c8c8;
  box-shadow: 0 18px 50px light-dark(rgb(19 26 56 / 14%), rgb(0 0 0 / 45%));
}

.explorer {
  border-radius: 8px;
  padding: 6px 0 10px;
  overflow-x: auto;
}

.explorer-head,
.explorer-row {
  display: grid;
  grid-template-columns: minmax(230px, 2.4fr) 1.4fr 0.9fr 0.9fr;
  gap: 12px;
  padding: 4px 14px;
  white-space: nowrap;
}

.explorer-head {
  color: #4c4c4c;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 4px;
}

.explorer-row {
  background: #cce8ff;
  outline: 1px solid #99d1ff;
  margin: 0 6px;
  padding: 4px 8px;
}

.explorer .size {
  text-align: right;
}

.explorer .file {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nsis {
  max-width: 520px;
  border-radius: 8px;
  background: #f0f0f0;
  overflow: hidden;
}

.nsis-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
}

.nsis-ctl {
  margin-left: auto;
  color: #555;
  letter-spacing: 0.05em;
}

.nsis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 6px 14px 10px 18px;
  border-bottom: 1px solid #d9d9d9;
}

.nsis-head b {
  display: block;
}

.nsis-head span {
  display: block;
  padding-left: 12px;
}

.nsis-body {
  padding: 14px 22px 8px;
  min-height: 210px;
}

.nsis-body p {
  margin: 0 0 10px;
}

.nsis-text {
  background: #fff;
  border: 1px solid #abadb3;
  height: 128px;
  overflow: hidden;
  padding: 4px 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

.nsis-text p {
  margin: 0 0 8px;
}

.nsis-text u {
  color: #0067c0;
}

.nsis-dest {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  padding: 16px 12px 12px;
  margin: 26px 0 16px;
}

.nsis-legend {
  position: absolute;
  top: -10px;
  left: 8px;
  background: #f0f0f0;
  padding: 0 4px;
}

.nsis-input {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #abadb3;
  border-bottom: 2px solid #0067c0;
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nsis-space {
  margin: 0 !important;
}

.nsis-progress {
  margin-top: 26px;
  height: 18px;
  background: #e6e6e6;
  border: 1px solid #bcbcbc;
}

.nsis-progress span {
  display: block;
  height: 100%;
  width: 34%;
  background: #06b025;
}

.nsis-foot {
  display: flex;
  flex-direction: column;
  padding: 0 14px 12px;
}

.nsis-brand {
  color: #8a8a8a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nsis-brand::after {
  content: "";
  flex: 1;
  border-top: 1px solid #c8c8c8;
}

.nsis-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.nsis-btn {
  min-width: 76px;
  text-align: center;
  padding: 3px 12px;
  background: #fdfdfd;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
}

.nsis-btn.primary {
  border: 1.5px solid #0067c0;
}

.nsis-btn.disabled {
  color: #a0a0a0;
  background: #f5f5f5;
}

.nsis-buttons .nsis-btn:last-child {
  margin-left: 8px;
}

@media (max-width: 980px) {
  .trio {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }

  .qs-step {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Download ---------- */

.download {
  background: var(--rail);
  color: var(--rail-ink);
}

.download .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
  align-items: start;
}

.download h2 {
  color: var(--rail-ink-strong);
}

.download p {
  margin: 0 0 18px;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 22px;
  margin: 0 0 24px;
  font-size: 15px;
}

.facts dt {
  color: #8d97b3;
}

.facts dd {
  margin: 0;
  color: var(--rail-ink-strong);
  min-width: 0;
}

.hash {
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.copy {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 1px solid rgb(255 255 255 / 22%);
  color: var(--rail-ink-strong);
  border-radius: 5px;
  padding: 2px 9px;
  margin-left: 8px;
  cursor: pointer;
  vertical-align: 1px;
}

.copy:hover {
  background: rgb(255 255 255 / 8%);
}

.note {
  font-size: 14px;
  border-left: 2px solid #f5b94a;
  padding: 2px 0 2px 14px;
  color: var(--rail-ink);
}

.note b {
  color: #f5b94a;
}

.download .terminal {
  background: #0a1120;
  border: 1px solid rgb(255 255 255 / 10%);
  font-size: 13px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--ink-2);
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 40px;
}

.footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer nav a {
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}

.footer nav a:hover {
  text-decoration: underline;
}

.footer p {
  margin: 0;
  max-width: 70ch;
}

/* ---------- Download page ---------- */

.page-head {
  background: var(--rail);
  color: var(--rail-ink);
  padding: clamp(36px, 6vw, 64px) 0;
}

.page-head h1 {
  color: var(--rail-ink-strong);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 760;
  font-stretch: 125%;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 12px;
}

.page-head p {
  margin: 0;
  max-width: 60ch;
  font-size: 18px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 26px;
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  margin: 48px 0 12px;
}

.prose h3 {
  font-size: 19px;
  margin: 32px 0 8px;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose ol,
.prose ul {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose :not(pre) > code {
  background: var(--sunk);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.55;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  margin: 16px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.prose th {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--sunk);
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 8px 0;
}

.prose blockquote {
  margin: 16px 0;
  padding: 2px 16px;
  border-left: 3px solid var(--line);
  color: var(--ink-2);
}

.prose .heading-anchor {
  color: inherit;
  text-decoration: none;
}

.prose .heading-anchor:hover {
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
}

/* ---------- Docs: the manual with a sidebar ---------- */

.docs {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-top: 32px;
  padding-bottom: 72px;
}

.sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  font-size: 15px;
}

.sidebar summary {
  display: none;
}

.sidebar h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin: 22px 0 6px;
}

.sidebar h2:first-of-type {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--radius-small);
}

.sidebar a:hover {
  background: var(--accent-soft);
}

.sidebar a[aria-current="page"] {
  background: var(--surface);
  font-weight: 650;
  box-shadow: inset 2px 0 0 var(--accent);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.doc-source {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-source a {
  font-weight: 600;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 980px) {
  .board {
    grid-template-columns: 1fr;
  }

  .board-rail {
    display: none;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps li:nth-child(3) {
    border-left: 0;
  }

  .steps li:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature.flip .text {
    order: 0;
  }

  .download .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 16px;
  }

  .sidebar {
    position: static;
    max-height: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 14px;
  }

  .sidebar summary {
    display: block;
    cursor: pointer;
    font-weight: 650;
    padding: 10px 0;
  }

  .sidebar nav {
    padding-bottom: 12px;
  }
}

@media (max-width: 680px) {
  .topbar .wrap {
    gap: 8px;
  }

  .wordmark small {
    display: none;
  }

  .topnav a {
    padding: 7px 8px;
    font-size: 14px;
  }

  .board-main {
    padding: 16px 12px 0;
  }

  /* On a phone the board keeps what the app's narrow window keeps: symbol and prices. */
  .feeds .opt {
    display: none;
  }

  .feeds td,
  .feeds th {
    padding-left: 10px;
    padding-right: 10px;
  }

  .feeds td.bid,
  .feeds td.ask {
    min-width: 0;
  }

  .group-head code,
  .group-head .ea {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .steps li:first-child {
    border-top: 0;
  }

  .promises {
    grid-template-columns: 1fr;
  }

  .footer .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .topnav a:last-child {
    display: none;
  }
}
