* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f7f9;
  color: #15171a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #101828;
  font-size: 18px;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.navlink,
.navbutton {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.navlink {
  color: #3c4656;
}

.navlink:hover {
  background: #e8edf2;
}

.navbutton {
  background: #0b63ce;
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 99, 206, 0.18);
}

.hero {
  padding: 42px 0 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6e0ea;
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  color: #1d6f5d;
  font-size: 13px;
  font-weight: 720;
}

.title {
  margin: 18px 0 12px;
  color: #111827;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.subtitle {
  max-width: 780px;
  margin: 0;
  color: #596474;
  font-size: 17px;
  line-height: 1.75;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0 58px;
}

.sidebar,
.panel,
.card,
.status-card,
.doc-card {
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fff;
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 14px;
}

.sidebar-title {
  margin: 6px 8px 12px;
  color: #667085;
  font-size: 13px;
  font-weight: 720;
}

.side-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.side-link:hover,
.side-link.active {
  background: #edf4ff;
  color: #0b63ce;
}

.panel {
  padding: 24px;
}

.panel + .panel {
  margin-top: 16px;
}

.section-title {
  margin: 0 0 10px;
  color: #111827;
  font-size: 26px;
  letter-spacing: 0;
}

.section-text {
  margin: 0;
  color: #5f6978;
  font-size: 15px;
  line-height: 1.75;
}

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

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.doc-card,
.card {
  padding: 18px;
}

.news-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.news-card:hover {
  border-color: #b8c8da;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.08);
}

.news-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  background: #fff;
}

.news-card-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.news-tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: #eef4ff;
  padding: 0 10px;
  color: #0b63ce;
}

.news-card h2,
.article-title {
  margin: 0;
  color: #111827;
  letter-spacing: 0;
}

.news-card h2 {
  font-size: 28px;
  line-height: 1.18;
}

.news-card p,
.article-lede,
.article-body p,
.article-body li {
  color: #5f6978;
  font-size: 15px;
  line-height: 1.78;
}

.news-card p {
  margin: 0;
}

.article-title {
  max-width: 880px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
}

.article-cover,
.article-image {
  width: 100%;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fff;
}

.article-cover {
  margin: 24px 0 10px;
}

.article-body {
  display: grid;
  gap: 18px;
}

.article-body h2 {
  margin: 8px 0 0;
  color: #111827;
  font-size: 26px;
  letter-spacing: 0;
}

.article-body p,
.article-body ul {
  margin: 0;
}

.article-body ul {
  padding-left: 20px;
}

.platform-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.platform-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fff;
  color: #0b63ce;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.doc-card h2,
.card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  letter-spacing: 0;
}

.doc-card p,
.card p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

.doc-card a,
.card a,
.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: #0b63ce;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.callout {
  border: 1px solid #cfe7db;
  border-radius: 8px;
  background: #f0fbf6;
  padding: 14px 16px;
  color: #25624b;
  font-size: 14px;
  line-height: 1.7;
}

.warning {
  border-color: #f5d79b;
  background: #fff8e8;
  color: #7a4b00;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #eef2f6;
}

.step:first-of-type {
  border-top: 0;
}

.step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 19px;
  letter-spacing: 0;
}

.step p,
.step li {
  color: #5f6978;
  font-size: 15px;
  line-height: 1.72;
}

.step p {
  margin: 0 0 10px;
}

.step ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

pre {
  overflow-x: auto;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #101828;
  padding: 16px;
  color: #eef4ff;
  font-size: 13px;
  line-height: 1.6;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.inline-code {
  border-radius: 5px;
  background: #edf2f7;
  padding: 2px 5px;
  color: #233044;
  font-size: 0.92em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.status-card {
  padding: 18px;
}

.status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.status-card h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  letter-spacing: 0;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #e8f6ef;
  color: #14704f;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.badge-muted {
  background: #eef2f6;
  color: #596474;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.metric {
  border: 1px solid #edf1f5;
  border-radius: 8px;
  padding: 10px;
}

.metric span {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 18px;
}

.spark {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 3px;
  height: 34px;
  align-items: end;
  margin-top: 12px;
}

.spark i {
  display: block;
  min-height: 12px;
  border-radius: 999px;
  background: #20c997;
}

.spark i.warn {
  background: #f59f00;
}

.spark i.muted {
  background: #d9e2ec;
}

.muted {
  color: #667085;
}

.footer {
  border-top: 1px solid #dce4ed;
  background: #fff;
  padding: 22px 0 26px;
  color: #667080;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 1050px) {
  .doc-grid,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 28px, 760px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .navlinks {
    justify-content: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .grid,
  .doc-grid,
  .status-grid,
  .news-card,
  .platform-links {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }
}
