/*
 * Kalshi theme.
 *
 * Use it:
 *   JOB_BOARD_PROVIDER=ashby
 *   NEXT_PUBLIC_TENANT_ID=kalshi
 *   TENANT_ID=kalshi
 *   ASHBY_BOARD_ID=kalshi
 *   ASHBY_APPLY_DEMO_MODE=1
 *   NEXT_PUBLIC_COMPANY_NAME=Kalshi
 *   NEXT_PUBLIC_THEME_CSS=/themes/kalshi.css
 *   NEXT_PUBLIC_LOGO_URL=https://app.ashbyhq.com/api/images/org-theme-wordmark/35471f60-f9f5-484e-a92e-1779998fc78a/a77b52c5-2733-4d92-92a2-7f0432d611f4/c039fcbf-762d-4753-a5c7-9fc57b278139.png
 *   NEXT_PUBLIC_FAVICON_URL=https://app.ashbyhq.com/api/images/org-theme-logo/35471f60-f9f5-484e-a92e-1779998fc78a/a77b52c5-2733-4d92-92a2-7f0432d611f4/b75382cf-f21d-4202-871f-6e6c8b0ee7d7.png
 */

:root {
  --brand-navy: #003221;
  --brand-blue: #09c285;
  --brand-mist: #f3f8f2;
  --brand-ink: #10221b;
  --brand-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --kalshi-green: #003221;
  --kalshi-mint: #09c285;
  --kalshi-mint-soft: #d8f7ec;
  --kalshi-ink: #10221b;
  --kalshi-paper: #f7faf5;
  --kalshi-line: rgba(0, 50, 33, 0.16);
  --kalshi-muted: #587064;
  --kalshi-gold: #e6bd55;
  --kalshi-blue: #315ea8;
}

body {
  background:
    linear-gradient(90deg, rgba(0, 50, 33, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 50, 33, 0.04) 1px, transparent 1px),
    var(--kalshi-paper);
  background-size: 44px 44px;
  color: var(--kalshi-ink);
}

body > div > header {
  border-bottom: 1px solid rgba(9, 194, 133, 0.26) !important;
  background: rgba(0, 50, 33, 0.96) !important;
  backdrop-filter: blur(14px);
}

body > div > header img {
  width: 136px !important;
  max-width: 136px;
  height: 42px !important;
  object-fit: contain;
}

body > div > header span {
  color: #f6fff9 !important;
}

body > div > header > div > div:last-child {
  border: 1px solid rgba(9, 194, 133, 0.42);
  border-radius: 999px;
  background: rgba(9, 194, 133, 0.12);
  padding: 8px 12px;
  color: #eafff6 !important;
}

body > div > header svg {
  color: var(--kalshi-mint) !important;
}

main > section:first-child {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  border-bottom: 1px solid rgba(9, 194, 133, 0.2) !important;
  background:
    radial-gradient(circle at 78% 28%, rgba(9, 194, 133, 0.32), transparent 23%),
    linear-gradient(120deg, rgba(0, 50, 33, 0.98) 0%, rgba(0, 50, 33, 0.92) 56%, rgba(0, 50, 33, 0.76) 100%),
    var(--kalshi-green) !important;
  color: #ffffff !important;
}

main > section:first-child::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(216, 247, 236, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 247, 236, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.88));
}

main > section:first-child::after {
  content: 'EVENT MARKETS';
  position: absolute;
  right: 42px;
  bottom: 34px;
  border: 1px solid rgba(9, 194, 133, 0.44);
  background: rgba(216, 247, 236, 0.08);
  padding: 12px 14px;
  color: #d8f7ec;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

main > section:first-child > div {
  position: relative;
  z-index: 1;
  padding-top: 112px !important;
  padding-bottom: 132px !important;
}

main > section:first-child p:first-child {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(9, 194, 133, 0.42);
  border-radius: 999px;
  background: rgba(9, 194, 133, 0.13);
  padding: 8px 13px;
  color: var(--kalshi-mint) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

main > section:first-child h1 {
  max-width: 790px !important;
  color: #ffffff !important;
  font-size: 54px !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

main > section:first-child p:last-child {
  max-width: 690px !important;
  color: #dcefe6 !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

body > div > main > div:first-of-type {
  margin-top: -32px;
  border: 1px solid var(--kalshi-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 60px rgba(0, 50, 33, 0.12);
}

body > div > main > div[class*='max-w-3xl'] {
  margin-top: 0;
  margin-bottom: 56px;
  border-color: var(--kalshi-line);
  background: #ffffff;
}

main > div[class*='max-w-3xl'] > a,
.gh-content a,
main a[href='/'] {
  color: #007f58 !important;
  font-weight: 700;
}

main > div[class*='max-w-3xl'] > header {
  border-bottom: 1px solid rgba(0, 50, 33, 0.14) !important;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 247, 236, 0.74), rgba(255, 255, 255, 0.98)) !important;
  padding: 28px !important;
}

main > div[class*='max-w-3xl'] > header p:first-child {
  color: #007f58 !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

main > div[class*='max-w-3xl'] > header h1 {
  color: var(--kalshi-green) !important;
  font-size: 36px !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

main > div[class*='max-w-3xl'] > header p {
  color: var(--kalshi-muted) !important;
}

main > div[class*='max-w-3xl'] > header div {
  border-color: rgba(9, 194, 133, 0.28) !important;
  background: #effcf6 !important;
  color: #006547 !important;
}

main > div[class*='max-w-3xl'] > header span {
  background: var(--kalshi-mint) !important;
}

.gh-content {
  color: #2b4036 !important;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
  color: var(--kalshi-green) !important;
  letter-spacing: 0 !important;
}

main > div[class*='max-w-3xl'] > section#apply {
  margin-top: 46px !important;
  border-top-color: rgba(0, 50, 33, 0.14) !important;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 250, 245, 0.94), rgba(255, 255, 255, 1));
  padding: 30px !important;
}

main > div[class*='max-w-3xl'] > section#apply h2 {
  color: var(--kalshi-green) !important;
}

main > div[class*='max-w-3xl'] > section#apply > p {
  color: var(--kalshi-muted) !important;
}

main > div[class*='max-w-3xl'] label {
  color: #213d31 !important;
}

main > div[class*='max-w-3xl'] input,
main > div[class*='max-w-3xl'] textarea,
main > div[class*='max-w-3xl'] select {
  border-color: rgba(0, 50, 33, 0.22) !important;
}

main > div[class*='max-w-3xl'] input:focus,
main > div[class*='max-w-3xl'] textarea:focus,
main > div[class*='max-w-3xl'] select:focus {
  border-color: var(--kalshi-mint) !important;
  box-shadow: 0 0 0 3px rgba(9, 194, 133, 0.16) !important;
}

main button[type='submit'] {
  background: var(--kalshi-green) !important;
  color: #ffffff !important;
}

main button[type='submit']:hover {
  background: #00482f !important;
}

main > div > p:first-child {
  display: inline-flex;
  border: 1px solid rgba(9, 194, 133, 0.3);
  border-radius: 999px;
  background: #ecfbf5;
  padding: 8px 12px;
  color: #007f58 !important;
  font-weight: 800;
}

main > div > div[class*='space-y-'] h2 {
  color: #007f58 !important;
  letter-spacing: 0.08em !important;
}

main > div > div[class*='space-y-'] ul {
  border-color: var(--kalshi-line) !important;
  border-radius: 8px !important;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 50, 33, 0.07);
}

main > div > div[class*='space-y-'] li + li {
  border-color: rgba(0, 50, 33, 0.1) !important;
}

main > div > div[class*='space-y-'] li a {
  background:
    linear-gradient(90deg, rgba(9, 194, 133, 0.1), transparent 46%),
    #ffffff;
}

main > div > div[class*='space-y-'] li a:hover {
  background: #f1fbf7 !important;
}

main > div > div[class*='space-y-'] li p:first-child {
  color: var(--kalshi-green) !important;
  font-weight: 800 !important;
}

main > div > div[class*='space-y-'] li p:last-child {
  color: var(--kalshi-muted) !important;
}

main > div > div[class*='space-y-'] li span {
  color: #007f58 !important;
  white-space: nowrap;
}

footer {
  margin-top: 0 !important;
  border-top: 1px solid rgba(9, 194, 133, 0.22) !important;
  background: var(--kalshi-green) !important;
}

footer p,
footer a {
  color: #eafff6 !important;
}

footer svg {
  color: var(--kalshi-mint) !important;
}

@media (max-width: 700px) {
  body > div > header > div {
    height: 72px !important;
  }

  body > div > header img {
    width: 108px !important;
    max-width: 108px;
    height: 36px !important;
  }

  main > section:first-child {
    min-height: 520px;
    background:
      radial-gradient(circle at 86% 24%, rgba(9, 194, 133, 0.24), transparent 28%),
      linear-gradient(145deg, rgba(0, 50, 33, 0.98) 0%, rgba(0, 50, 33, 0.92) 100%),
      var(--kalshi-green) !important;
  }

  main > section:first-child::after {
    right: 20px;
    bottom: 20px;
    max-width: calc(100% - 40px);
    font-size: 10px;
  }

  main > section:first-child > div {
    padding-top: 88px !important;
    padding-bottom: 124px !important;
  }

  main > section:first-child h1 {
    font-size: 35px !important;
    line-height: 1.12 !important;
  }

  main > section:first-child p:last-child {
    font-size: 15px !important;
  }

  body > div > main > div:first-of-type {
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  main > div[class*='max-w-3xl'] > header,
  main > div[class*='max-w-3xl'] > section#apply {
    padding: 22px !important;
  }

  main > div[class*='max-w-3xl'] > header h1 {
    font-size: 28px !important;
  }

  main > div > div[class*='space-y-'] li a {
    align-items: flex-start !important;
    flex-direction: column;
  }
}
