.page-shell {
  padding: 40px 0 60px;
}

.knowledge-article-page .page-shell {
  padding-top: 34px;
}

.page-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.page-subtitle {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.knowledge-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.knowledge-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.knowledge-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.knowledge-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.knowledge-card a {
  margin-top: auto;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.knowledge-card a:hover {
  color: var(--accent-strong);
}

.article-shell {
  margin-top: 26px;
  background: rgba(18, 27, 71, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(159, 203, 255, 0.95);
  font-size: 0.93rem;
  margin-bottom: 14px;
}

.article-back-link:hover {
  color: rgba(208, 230, 255, 1);
}

.article-shell h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.article-meta {
  color: rgba(223, 232, 255, 0.66);
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.article-excerpt {
  margin: 0 0 20px;
  color: rgba(223, 232, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.66;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(89, 163, 255, 0.7);
  border-radius: 0 10px 10px 0;
}

.article-content {
  line-height: 1.78;
  color: rgba(237, 242, 255, 0.94);
  font-size: 1.02rem;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-content p {
  margin: 0 0 1.05em;
}

.article-content h2,
.article-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.article-content h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
}

.article-content h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.article-content li {
  margin: 0.45em 0;
}

.article-content a {
  color: #9fcbff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: #d5e9ff;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.1em 0.32em;
  font-size: 0.92em;
}

.article-cta {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #021226;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.state-box {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 14px 16px;
  color: rgba(223, 232, 255, 0.76);
}

@media (max-width: 760px) {
  .article-shell {
    border-radius: 14px;
    padding: 20px 16px;
  }

  .article-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
