@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --bg-primary: #11132b !important;
  --bg-secondary: #171936 !important;
  --bg-tertiary: #20234b !important;
  --text-primary: #f8f8fc !important;
  --text-secondary: #c8cadb !important;
  --text-muted: #9699b2 !important;
  --border-primary: #30345f !important;
  --accent: #8d94ff !important;
}

html,
body {
  background: #11132b !important;
  color: #f8f8fc !important;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

body {
  background-image:
    radial-gradient(circle at 85% 18%, rgba(222, 120, 104, 0.14), transparent 28rem),
    radial-gradient(circle at 12% 42%, rgba(59, 68, 192, 0.2), transparent 32rem) !important;
  background-attachment: fixed !important;
}

[role="region"][aria-label="Latest news and research"] {
  background: #171936 !important;
  border-color: #30345f !important;
}

nav.fixed {
  background: rgba(17, 19, 43, 0.9) !important;
  border-color: #30345f !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

nav.fixed img {
  filter: brightness(0) invert(1);
}

nav.fixed a,
nav.fixed button {
  color: #f8f8fc !important;
}

nav.fixed a:hover,
nav.fixed button:hover {
  color: #c5f26b !important;
}

main {
  max-width: 920px !important;
}

main > a:first-child {
  color: #b7bbd0 !important;
}

.blog-post-cover,
main > div:first-of-type:has(> img) {
  border: 1px solid #3a3f70 !important;
  border-radius: 28px !important;
  box-shadow: 0 28px 80px -42px rgba(0, 0, 0, 0.85) !important;
}

main header {
  border-color: #30345f !important;
}

main h1,
main h2,
main h3 {
  color: #f8f8fc !important;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.035em;
}

main h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem) !important;
  line-height: 0.98 !important;
}

main p,
main li,
main blockquote,
main table {
  color: #c8cadb !important;
}

main strong {
  color: #f8f8fc !important;
}

main a {
  color: #aeb4ff !important;
  text-decoration-color: rgba(174, 180, 255, 0.5);
}

main a:hover {
  color: #c5f26b !important;
}

#root article {
  background: rgba(23, 25, 54, 0.9) !important;
  border-color: #3a3f70 !important;
  color: #c8cadb !important;
  box-shadow: 0 28px 80px -42px rgba(0, 0, 0, 0.85) !important;
}

#root article h1,
#root article h2,
#root article h3,
#root article h4 {
  color: #f8f8fc !important;
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

#root article p,
#root article li,
#root article blockquote,
#root article span {
  color: #c8cadb !important;
}

#root article strong {
  color: #f8f8fc !important;
}

#root article a {
  color: #aeb4ff !important;
}

main code {
  background: #20234b !important;
  color: #e8e9f5 !important;
}

footer {
  background: #0d0f24 !important;
  border-color: #30345f !important;
}

footer,
footer p,
footer li,
footer span {
  color: #aeb1c8 !important;
}

footer h4,
footer strong {
  color: #f8f8fc !important;
}

footer a:hover {
  color: #c5f26b !important;
}

@media (max-width: 700px) {
  main {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  main h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem) !important;
  }
}

.v19-announce {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 28px;
  background: #20234b;
  color: #e9eafa;
  font: 500 11px "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.v19-announce > div {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.v19-announce span {
  padding: 1px 7px;
  border-radius: 999px;
  background: #ef8c7d;
  color: #16172c;
  font-weight: 700;
}

.v19-announce p {
  margin: 0;
}

.v19-announce a {
  color: #fff;
  font-weight: 600;
}

.v19-blog-article > #root nav.fixed,
.v19-blog-article > #root [role="region"][aria-label="Latest news and research"] {
  visibility: hidden;
}

.v19-article-header {
  position: fixed;
  inset: 28px 0 auto;
  z-index: 65;
  padding: 10px 0;
  background: rgba(17, 19, 43, 0.88);
  border-bottom: 1px solid rgba(48, 52, 95, 0.45);
  backdrop-filter: blur(18px);
}

.v19-article-hdr {
  width: min(1160px, calc(100% - 32px));
  min-height: 52px;
  margin: auto;
  padding: 7px 10px 7px 16px;
  display: flex;
  align-items: center;
  gap: 26px;
  border: 1px solid #30345f;
  border-radius: 999px;
  background: rgba(25, 27, 58, 0.72);
}

.v19-article-brand img {
  display: block;
  width: 102px;
  height: auto;
  filter: none;
}

.v19-article-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.v19-article-nav a,
.v19-article-login {
  color: #c8cadb !important;
  font: 500 13px "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
}

.v19-article-nav a:hover,
.v19-article-login:hover {
  color: #c5f26b !important;
}

.v19-article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v19-article-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #30345f;
  border-radius: 999px;
  background: transparent;
  color: #f8f8fc;
  font: 500 12px "JetBrains Mono", monospace;
  cursor: pointer;
}

.v19-article-cta {
  min-height: 42px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #5b63db;
  color: #fff !important;
  font: 600 13px "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
}

.v19-article-menu-button,
.v19-article-mobile {
  display: none;
}

.v19-article-mobile.open {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  background: #191b3a;
  border-top: 1px solid #30345f;
}

.v19-article-mobile a {
  padding: 10px;
  color: #f8f8fc !important;
  text-decoration: none;
}

.v19-blog-article main,
.v19-blog-article > #root > div > div.min-h-screen {
  padding-top: 150px !important;
}

@media (max-width: 900px) {
  .v19-article-nav,
  .v19-article-login {
    display: none;
  }

  .v19-article-menu-button {
    display: inline-flex;
  }
}

@media (max-width: 620px) {
  .v19-article-hdr {
    width: calc(100% - 20px);
    gap: 10px;
  }

  .v19-article-actions {
    margin-left: auto;
  }

  [data-v19-theme] {
    display: none;
  }

  .v19-announce p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
