/* Stonks 500 — the whole visual system.
 *
 * Read off Vadim's plates: one saturated lime, one near-black, no third hue, no
 * gradients, no texture, and shapes that lean. The lean is the signature: the
 * wordmark is oblique, so every structural block, tab and bar in the interface is cut
 * on the same angle rather than drawn as a rounded card.
 *
 * Surfaces are full-bleed colour bands and hairlines, not floating boxes. Figures are
 * always monospaced so a column of numbers lines up and an address never reflows. */

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-Variable.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #c5f83c;
  --lime-deep: #a8db1c;
  --ink: #0a0a09;
  --paper: #f4f4ef;

  --on-lime: var(--ink);
  --on-lime-soft: rgba(10, 10, 9, 0.62);
  --on-lime-faint: rgba(10, 10, 9, 0.38);
  --rule-lime: rgba(10, 10, 9, 0.16);

  --on-ink: #f2f4ea;
  --on-ink-soft: rgba(242, 244, 234, 0.6);
  --on-ink-faint: rgba(242, 244, 234, 0.34);
  --rule-ink: rgba(242, 244, 234, 0.16);

  --alarm: #ff4a1c;
  --ok: #1d9e3f;

  --skew: -11deg;
  --pad: clamp(16px, 4vw, 56px);
  --band: clamp(28px, 5vw, 68px);
  --max: 1420px;

  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  color-scheme: light;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-ink :focus-visible,
.band-ink :focus-visible {
  outline-color: var(--lime);
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--lime);
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus {
  transform: none;
}

/* ------------------------------------------------------------------ type roles */

.display {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8.2vw, 6.6rem);
}
.h2 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
}
.h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.15;
}
.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 34ch;
}
.stack > .label,
.label.block {
  display: block;
}
.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-lime-soft);
}
.band-ink .label,
.on-ink .label {
  color: var(--on-ink-soft);
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 1;
}
.mono {
  font-family: var(--mono);
}
.small {
  font-size: 0.85rem;
  line-height: 1.4;
}
.muted {
  color: var(--on-lime-soft);
}
.band-ink .muted,
.on-ink .muted {
  color: var(--on-ink-soft);
}
.prose {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.55;
}
.prose p + p {
  margin-top: 0.9em;
}

/* -------------------------------------------------------------------- skeleton */

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
.band {
  padding: var(--band) var(--pad);
  scroll-margin-top: 64px;
}
.band-ink {
  background: var(--ink);
  color: var(--on-ink);
}
.band-paper {
  background: var(--paper);
  color: var(--ink);
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.tight {
  padding-block: clamp(20px, 3vw, 36px);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule-lime);
  margin: 0;
}
.band-ink .rule {
  border-color: var(--rule-ink);
}

/* ------------------------------------------------------------------ the header */

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--on-ink);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px clamp(10px, 2vw, 28px);
  padding: 8px var(--pad);
  border-bottom: 1px solid var(--rule-ink);
}
/* on a phone the primary action must not be pushed off the end of a scrolling nav, so
   the mark and the wallet keep the first row and the nav takes its own */
@media (max-width: 620px) {
  .head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nav {
    grid-column: 1 / -1;
    order: 3;
    min-width: 0;
  }
}
.head-mark {
  display: flex;
  align-items: center;
  flex: none;
  height: 40px;
  padding-inline-end: 6px;
  color: var(--lime);
}
.head-mark svg {
  height: 22px;
}
.head-mark svg {
  height: 100%;
  width: auto;
  fill: currentColor;
}
/* the nav is a grid item that scrolls rather than one that stretches the header: an
   auto inline margin here would size it to its content and push the row past the
   viewport instead of letting it scroll inside its own column */
.nav {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  white-space: nowrap;
  color: var(--on-ink-soft);
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--on-ink);
}
.nav a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* --------------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--lime);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 11px 22px;
  border: 0;
  background: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  color: var(--btn-fg);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-bg);
  transform: skewX(var(--skew));
  z-index: -1;
}
.btn:hover::before {
  background: color-mix(in srgb, var(--btn-bg) 84%, var(--lime));
}
.band-ink .btn:hover::before,
.on-ink .btn:hover::before {
  background: color-mix(in srgb, var(--btn-bg) 84%, var(--ink));
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
}
.btn:disabled:hover::before {
  background: var(--btn-bg);
}
.btn-lime {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
}
.btn-ghost {
  --btn-fg: var(--ink);
}
.btn-ghost::before {
  background: none;
  border: 2px solid var(--ink);
}
.band-ink .btn-ghost,
.on-ink .btn-ghost {
  --btn-fg: var(--on-ink);
}
.band-ink .btn-ghost::before,
.on-ink .btn-ghost::before {
  border-color: rgba(242, 244, 234, 0.42);
}
.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.85rem;
}
.btn-wide {
  width: 100%;
}

/* ----------------------------------------------------------------------- flags */

.flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  position: relative;
  isolation: isolate;
  color: var(--lime);
  white-space: nowrap;
}
.flag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: skewX(var(--skew));
  z-index: -1;
}
.flag-open {
  color: var(--ink);
}
.flag-open::before {
  background: none;
  border: 1.5px solid currentColor;
}
.flag-alarm {
  color: #fff;
}
.flag-alarm::before {
  background: var(--alarm);
}

/* ---------------------------------------------------------------- the tab head */

.tab {
  display: inline-block;
  position: relative;
  isolation: isolate;
  padding: 6px 16px 7px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  color: var(--lime);
}
.tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: skewX(var(--skew));
  z-index: -1;
}
.band-ink .tab {
  color: var(--ink);
}
.band-ink .tab::before {
  background: var(--lime);
}

/* --------------------------------------------------------------------- tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-lime-soft);
  padding: 0 12px 8px 0;
  border-bottom: 1.5px solid var(--ink);
  white-space: nowrap;
}
.band-ink .table th {
  color: var(--on-ink-soft);
  border-bottom-color: var(--on-ink);
}
.table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--rule-lime);
  vertical-align: middle;
}
.band-ink .table td {
  border-bottom-color: var(--rule-ink);
}
.table td:last-child,
.table th:last-child {
  padding-right: 0;
  text-align: right;
}
.table tbody tr:hover td {
  background: rgba(10, 10, 9, 0.05);
}
.band-ink .table tbody tr:hover td {
  background: rgba(242, 244, 234, 0.05);
}
.table a.row-link {
  display: inline-block;
  min-width: 24px;
  padding: 4px 6px;
  margin: -4px -6px;
  text-decoration: none;
  font-weight: 800;
}
.table a.row-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------------- key/value */

.kv {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 10px 20px;
  font-size: 0.92rem;
}
.kv dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-lime-soft);
  padding-top: 3px;
}
.band-ink .kv dt {
  color: var(--on-ink-soft);
}
.kv dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------- addresses */

.addr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.addr code {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  user-select: all;
}
.copy {
  border: 1.5px solid currentColor;
  background: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  min-height: 28px;
}
.copy:hover {
  background: var(--ink);
  color: var(--lime);
}
.band-ink .copy:hover {
  background: var(--lime);
  color: var(--ink);
}

/* ------------------------------------------------------------------ the meter */

.meter {
  display: flex;
  width: 100%;
  height: 30px;
  overflow: hidden;
  transform: skewX(var(--skew));
  border: 2px solid var(--ink);
  background: rgba(10, 10, 9, 0.1);
}
.band-ink .meter {
  border-color: var(--on-ink);
  background: rgba(242, 244, 234, 0.12);
}
.meter span {
  display: block;
  height: 100%;
}
.meter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
}
.meter-legend li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.85rem;
}
.swatch {
  width: 11px;
  height: 11px;
  flex: none;
  border: 1.5px solid var(--ink);
  background: rgba(10, 10, 9, 0.1);
  transform: skewX(var(--skew));
  align-self: center;
}
.band-ink .swatch {
  border-color: var(--on-ink);
  background: rgba(242, 244, 234, 0.12);
}

/* --------------------------------------------------------------------- inputs */

.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-lime-soft);
  margin-bottom: 6px;
}
.band-ink .field > span {
  color: var(--on-ink-soft);
}
input[type="text"],
input[type="search"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 11px 13px;
  min-height: 46px;
}
textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.4;
}
input[type="number"],
.input-mono {
  font-family: var(--mono);
}
input::placeholder,
textarea::placeholder {
  color: rgba(10, 10, 9, 0.36);
}
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.hint {
  font-size: 0.8rem;
  color: var(--on-lime-soft);
  margin-top: 5px;
}
.band-ink .hint {
  color: var(--on-ink-soft);
}
.err {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--alarm);
  margin-top: 6px;
}
.band-ink .err {
  color: #ff8a63;
}

/* --------------------------------------------------------------------- layout */

.cols {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .cols-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .cols-side {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
  .cols-side-l {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  }
}
.stack > * + * {
  margin-top: var(--gap, 18px);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.between {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

/* ------------------------------------------------------------------ the stats */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2px;
}
.figure {
  padding: 16px 18px 18px;
  background: rgba(10, 10, 9, 0.06);
}
.band-ink .figure {
  background: rgba(242, 244, 234, 0.06);
}
.figure b {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 6px;
}

/* --------------------------------------------------------------------- boot */

.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 22px;
  padding: var(--pad);
  text-align: center;
}
.boot-mark {
  width: min(420px, 74vw);
  height: auto;
  margin: 0 auto;
}
.boot p {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 1.1rem;
  font-weight: 600;
}
.boot-note {
  font-weight: 500;
  color: var(--on-lime-soft);
}

/* --------------------------------------------------------------------- states */

.wait {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-lime-soft);
}
.band-ink .wait {
  color: var(--on-ink-soft);
}
.wait::after {
  content: "";
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

.notice {
  border-left: 4px solid var(--ink);
  padding: 12px 0 12px 16px;
  font-size: 0.92rem;
}
.band-ink .notice {
  border-left-color: var(--lime);
}
.notice-alarm {
  border-left-color: var(--alarm);
}

/* ------------------------------------------------------------------- dialogs */

dialog {
  border: 3px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  padding: 0;
  max-width: min(560px, calc(100vw - 24px));
  width: 100%;
}
dialog::backdrop {
  background: rgba(10, 10, 9, 0.62);
}
.dialog-body {
  padding: clamp(20px, 4vw, 32px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================== page pieces */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.35;
  cursor: pointer;
}
.check input {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--ink);
}

.filters {
  display: grid;
  gap: 14px 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: end;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  max-width: 70ch;
}
/* the number is absolutely placed rather than a grid track: the list item's own
   content is a run of inline nodes, and a two-column grid would put everything after
   the first element into the narrow number column, one word per line */
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 3.4rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--rule-lime);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--on-lime-faint);
}

.preview {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 16px 0;
}

.contract-window {
  border: 2px solid var(--lime);
  padding: 16px 18px;
  background: rgba(197, 248, 60, 0.07);
}
.contract-window code {
  font-size: 0.9rem;
  line-height: 1.6;
}

.identity-mark {
  width: min(300px, 60%);
  height: auto;
  color: var(--lime);
}

.launch-summary {
  border-left: 3px solid var(--ink);
  padding-left: clamp(16px, 2.4vw, 28px);
  align-self: start;
  position: sticky;
  top: 74px;
}
@media (max-width: 899px) {
  .launch-summary {
    position: static;
  }
}

/* -------------------------------------------------------------------- heroes */

/* His plate's signature: oversized black shapes cut on the wordmark's own angle,
   running off the corners. They are the composition, not decoration on top of it. */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 8vw, 104px);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transform: skewX(var(--skew));
  pointer-events: none;
}
.hero::before {
  width: clamp(70px, 11vw, 190px);
  top: -14%;
  bottom: 40%;
  right: -3%;
  border-radius: 0 0 0 clamp(20px, 3vw, 44px);
}
/* the second slab sits under the type, not through it: it starts below the last line
   and runs off the bottom-left corner */
.hero::after {
  width: clamp(60px, 9vw, 150px);
  top: 78%;
  bottom: -20%;
  left: -7%;
  border-radius: 0 clamp(18px, 2.6vw, 38px) 0 0;
}
@media (max-width: 720px) {
  .hero::after {
    display: none;
  }
  .hero::before {
    bottom: 62%;
  }
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero-mark {
  width: min(560px, 74vw);
  height: auto;
  color: var(--ink);
  margin-bottom: clamp(22px, 4vw, 40px);
}
.hero-line {
  max-width: 20ch;
  text-wrap: balance;
}
.hero-lede {
  margin-top: clamp(18px, 2.6vw, 28px);
  max-width: 44ch;
}
.hero-lede b {
  font-family: var(--mono);
  font-weight: 700;
}
.hero-actions {
  margin-top: clamp(22px, 3vw, 34px);
}

.company-head,
.token-head,
.launch-head {
  padding-block: clamp(34px, 5.5vw, 76px);
  border-bottom: 2px solid var(--ink);
}
.company-ticker,
.token-symbol {
  font-size: clamp(3rem, 11vw, 7.2rem);
  margin-block: 6px 4px;
}
.token-price {
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.token-price-unit {
  font-size: 0.5em;
  letter-spacing: 0.06em;
  color: var(--on-lime-soft);
}
.tie {
  margin-top: clamp(18px, 3vw, 28px);
  max-width: 68ch;
  border-left: 4px solid var(--ink);
  padding-left: 16px;
}
.tie a {
  font-weight: 800;
}

@media (max-width: 640px) {
  .kv {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 0;
  }
  .kv dd {
    margin-bottom: 12px;
  }
  .table {
    font-size: 0.86rem;
  }
}

/* ================================================================ company marks */

/* One sprite, painted with currentColor as a mask, so the same asset is ink on the
   lime bands and lime on the ink ones — the flat monochrome treatment his own banner
   uses for company logos. */
.mark {
  display: inline-block;
  flex: none;
  width: var(--s, 20px);
  height: var(--s, 20px);
  background-color: currentColor;
  -webkit-mask-image: url("/logos.png");
  mask-image: url("/logos.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: calc(var(--cols) * var(--s)) calc(var(--rows) * var(--s));
  mask-size: calc(var(--cols) * var(--s)) calc(var(--rows) * var(--s));
  -webkit-mask-position: calc(var(--col) * var(--s) * -1) calc(var(--row) * var(--s) * -1);
  mask-position: calc(var(--col) * var(--s) * -1) calc(var(--row) * var(--s) * -1);
}
/* a symbol with no mark keeps its slot so the column stays aligned */
.mark-blank {
  background: none;
  border: 1.5px solid currentColor;
  opacity: 0.24;
  -webkit-mask-image: none;
  mask-image: none;
}

.with-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
/* .table a.row-link sets display:inline-block and outranks .with-mark, so the pairing
   has to be named explicitly or the gap silently does nothing */
.table a.row-link.with-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.flag .mark {
  margin-inline-start: -1px;
}

.company-lockup {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  margin-block: 6px 4px;
}
.company-mark {
  --s: clamp(34px, 6vw, 64px) !important;
}
.company-lockup .company-ticker {
  margin: 0;
}

/* ================================================================ company picker */

.picker {
  position: relative;
  max-width: 560px;
}
.picker-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-lime-soft);
  margin-bottom: 6px;
}
.band-ink .picker-label {
  color: var(--on-ink-soft);
}
.picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  cursor: pointer;
  text-align: left;
}
.band-ink .picker-button {
  border-color: var(--lime);
}
.picker-button:hover {
  background: #fff;
}
.picker-value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}
.picker-name {
  font-weight: 500;
  color: rgba(10, 10, 9, 0.66);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker-caret {
  flex: none;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--ink);
}

.picker-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(10, 10, 9, 0.28);
}
.band-ink .picker-pop {
  border-color: var(--lime);
  box-shadow: 10px 10px 0 rgba(197, 248, 60, 0.16);
}
.picker-search {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: none;
  padding: 12px 14px;
  min-height: 48px;
}
.picker-search:focus-visible {
  outline-offset: -3px;
}
.picker-list {
  max-height: min(46vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.picker-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(10, 10, 9, 0.1);
}
.picker-opt b {
  min-width: 4.4em;
}
.picker-opt.is-active {
  background: var(--lime);
}
.picker-opt[aria-selected="true"] {
  box-shadow: inset 4px 0 0 var(--ink);
}
.picker-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: rgba(10, 10, 9, 0.55);
}
.picker-empty {
  padding: 14px;
  color: rgba(10, 10, 9, 0.6);
}
