:root {
  color: #1d2939;
  background: #f7f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(180deg, #fbf9ff 0, #f7f8fb 360px),
    #f7f8fb;
}

a {
  color: inherit;
  text-decoration: none;
}

.article-shell {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
}

.article-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid #e4e7ec;
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(14px);
}

.article-header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.article-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.article-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.article-brand span {
  display: grid;
  gap: 1px;
}

.article-brand strong {
  font-size: 17px;
}

.article-brand small {
  color: #7b8493;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-header nav {
  display: flex;
  gap: 22px;
  color: #475467;
  font-size: 12px;
}

.article-header nav a:hover,
.article-header nav a[aria-current="page"] {
  color: #7c3aed;
}

.article-list-main,
.article-detail-main {
  min-height: calc(100vh - 150px);
  padding: 58px 0 80px;
}

.article-list-hero {
  max-width: 680px;
}

.article-eyebrow {
  margin: 0 0 8px;
  color: #7c3aed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-list-hero h1,
.article-document > header h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-list-hero > p:last-child {
  margin: 14px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.8;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.article-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(23 32 51 / 5%);
}

.article-card-date,
.article-meta {
  margin: 0;
  color: #8a94a4;
  font-size: 10px;
}

.article-card h2 {
  margin: 14px 0 9px;
  color: #253348;
  font-size: 19px;
  line-height: 1.45;
}

.article-card h2 a:hover {
  color: #7c3aed;
}

.article-card > p:nth-of-type(2) {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-read-more {
  margin-top: auto;
  padding-top: 18px;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 750;
}

.article-empty {
  margin-top: 40px;
  padding: 50px;
  border: 1px dashed #d5dae3;
  border-radius: 12px;
  color: #667085;
  background: #fff;
  text-align: center;
}

.article-empty > svg,
.article-client-state > svg {
  width: 34px;
  height: 34px;
  color: #8b5cf6;
}

.article-empty h2 {
  margin: 0;
  color: #344054;
}

.article-client-state {
  display: grid;
  min-height: 280px;
  justify-items: center;
  align-content: center;
  gap: 10px;
  margin-top: 38px;
  padding: 36px;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  color: #667085;
  background: #fff;
  text-align: center;
}

.article-client-state h1,
.article-client-state h2 {
  margin: 4px 0 0;
  color: #344054;
  font-size: 20px;
}

.article-client-state p {
  max-width: 620px;
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.article-client-state button,
.article-client-state a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #d8dce5;
  border-radius: 7px;
  color: #5b21b6;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.article-client-state button svg,
.article-client-state a svg {
  width: 15px;
  height: 15px;
}

.article-client-spin {
  animation: article-spin 0.9s linear infinite;
}

@keyframes article-spin {
  to {
    transform: rotate(360deg);
  }
}

.article-empty a {
  display: inline-block;
  margin-top: 8px;
  color: #6d28d9;
  font-weight: 700;
}

.article-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow: hidden;
  color: #8a94a4;
  font-size: 11px;
  white-space: nowrap;
}

.article-breadcrumb a:hover {
  color: #7c3aed;
}

.article-breadcrumb span:last-child {
  overflow: hidden;
  color: #667085;
  text-overflow: ellipsis;
}

.article-document {
  padding: clamp(26px, 6vw, 62px);
  border: 1px solid #e1e5eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(23 32 51 / 6%);
}

.article-document > header {
  padding-bottom: 34px;
  border-bottom: 1px solid #e8ebf0;
}

.article-summary {
  margin: 17px 0 15px;
  color: #667085;
  font-size: 16px;
  line-height: 1.8;
}

.article-content {
  padding-top: 26px;
  color: #344054;
  font-size: 15px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.8em 0 0.65em;
  color: #172033;
  line-height: 1.4;
  scroll-margin-top: 88px;
}

.article-content h1 {
  font-size: 28px;
}

.article-content h2 {
  padding-bottom: 9px;
  border-bottom: 1px solid #e8ebf0;
  font-size: 23px;
}

.article-content h3 {
  font-size: 19px;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 1em 0;
}

.article-content a {
  color: #6d28d9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #5b21b6;
  background: #f3edff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.article-content pre {
  overflow-x: auto;
  padding: 17px;
  border-radius: 9px;
  color: #e8ebf0;
  background: #172033;
  line-height: 1.7;
}

.article-content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.article-content blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 4px solid #8b5cf6;
  color: #667085;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 9px 12px;
  border: 1px solid #dfe4ec;
  text-align: left;
}

.article-content th {
  background: #f8f9fb;
}

.article-related {
  margin-top: 28px;
}

.article-related h2 {
  margin: 0 0 14px;
  font-size: 19px;
}

.article-related > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.article-related a {
  display: grid;
  gap: 7px;
  padding: 17px;
  border: 1px solid #e1e5eb;
  border-radius: 10px;
  background: #fff;
}

.article-related a:hover {
  border-color: #cfc3ea;
}

.article-related strong {
  font-size: 13px;
  line-height: 1.5;
}

.article-related span {
  display: -webkit-box;
  overflow: hidden;
  color: #7b8493;
  font-size: 11px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-footer {
  padding: 25px 0;
  color: rgb(255 255 255 / 78%);
  background: #172033;
}

.article-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
}

.article-footer a:hover {
  color: #fff;
}

@media (max-width: 700px) {
  .article-shell {
    width: min(100% - 28px, 980px);
  }

  .article-header-inner {
    min-height: 60px;
  }

  .article-brand img {
    width: 34px;
    height: 34px;
  }

  .article-header nav a:first-child {
    display: none;
  }

  .article-list-main,
  .article-detail-main {
    padding: 34px 0 55px;
  }

  .article-grid,
  .article-related > div {
    grid-template-columns: 1fr;
  }

  .article-card {
    min-height: 210px;
    padding: 20px;
  }

  .article-document {
    padding: 23px 18px 36px;
    border-radius: 10px;
  }

  .article-document > header h1 {
    font-size: 29px;
  }

  .article-summary {
    font-size: 14px;
  }

  .article-content {
    font-size: 14px;
  }
}
