/* GITPAID on top of the original stylesheet: the GitHub identity and the few
   utilities the original never needed. */
:root {
  --primary: #2da44e;
  --primary-foreground: #ffffff;
}

.focus-ring:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.gh-post {
  background: radial-gradient(70% 80% at 50% 20%, rgba(45, 164, 78, 0.35), rgba(20, 20, 20, 0.9));
}

.receipt-paper {
  background: #f7f1e3;
}

input[type='range'].accent-primary {
  accent-color: var(--primary);
}

/* Lightweight Charts draws into a canvas that must fill its box. */
.chart-box > div {
  position: absolute;
  inset: 0;
}

/* utilities used here that the original page set never used */
.bg-black\/60 {
  background-color: rgba(0, 0, 0, 0.6);
}
.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}
.border-up {
  border-color: var(--up);
}
.duration-150 {
  transition-duration: 0.15s;
}
.max-h-\[70vh\] {
  max-height: 70vh;
}
.overflow-auto {
  overflow: auto;
}
.p-10 {
  padding: 2.5rem;
}
.top-12 {
  top: 3rem;
}
.right-0 {
  right: 0;
}
.z-\[60\] {
  z-index: 60;
}
.\[\&_\.text-muted-foreground\]\:text-background\/70 .text-muted-foreground {
  color: color-mix(in oklab, var(--background) 70%, transparent);
}
.hover\:shadow-primary:hover {
  box-shadow: 0 12px 30px -10px rgba(45, 164, 78, 0.6);
}

@layer components {
  /* Buttons. One system for every action on the site: a solid face, a crisp
     1px edge and a solid bottom lip that the button sinks into when pressed. No
     pills, no glow, no arrows. */
  .btn {
    --lip: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1.25rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 3px 0 var(--lip);
    transform: translateY(0);
    transition: transform 80ms ease, box-shadow 80ms ease, background-color 120ms ease;
    cursor: pointer;
    user-select: none;
  }
  .btn:hover {
    transform: translateY(1px);
    box-shadow: 0 2px 0 var(--lip);
  }
  .btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 var(--lip);
  }
  .btn:focus-visible {
    outline: 2px solid var(--foreground);
    outline-offset: 3px;
  }
  .btn:disabled,
  .btn[aria-disabled='true'] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 3px 0 var(--lip);
  }
  .btn-sm {
    height: 2.125rem;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    border-radius: 8px;
  }
  .btn-lg {
    height: 3rem;
    padding: 0 1.75rem;
    font-size: 1rem;
    border-radius: 12px;
  }
  .btn-primary {
    --lip: #145428;
    background: #2da44e;
    border-color: #1f7a39;
    color: #fff;
  }
  .btn-primary:hover {
    background: #33b056;
  }
  .btn-dark {
    --lip: #000;
    background: #1b1b1b;
    border-color: #3a3a3a;
    color: var(--foreground);
  }
  .btn-dark:hover {
    background: #232323;
  }
  .btn-light {
    --lip: #7d7d7d;
    background: #f4f4f4;
    border-color: #d6d6d6;
    color: #0a0a0a;
  }
  .btn-light:hover {
    background: #fff;
  }
  .btn-icon {
    width: 2.5rem;
    padding: 0;
  }
}

@layer components {
  .flow-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  @media (min-width: 640px) {
    .flow-steps {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }
}

/* The brand glyph shows the real logo in colour, not a silhouette tinted with
   the text colour. Doubled class so it wins over the compiled rule. */
.brand-glyph.brand-glyph {
  background: url(/brand/mark.png) 50% / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}
