/* Static article page (blog/<id>/index.html) — "bas" = blog-article-static */

.bas {
  padding: 100px 0 64px;
  background: #f3f4f8;
  min-height: 80vh;
}

.bas__container {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Breadcrumb / back link */
.bas__breadcrumb {
  display: flex;
}

.bas__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4f59ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
}

.bas__back:hover {
  text-decoration: underline;
}

/* Header */
.bas__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bas__title {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(26px, 4.5vw, 42px);
  line-height: 1.18;
  font-weight: 800;
  color: #111229;
}

.bas__date {
  margin: 0;
  font-size: 13px;
  color: #666c8d;
}

.bas__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bas__tag {
  padding: 4px 10px;
  border-radius: 10px;
  background: #eef1ff;
  color: #3345ad;
  font-size: 12px;
  font-weight: 600;
}

/* Cover image */
.bas__cover-wrap {
  margin: 0;
}

.bas__cover {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
}

/* Article body card */
.bas__body {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(20, 23, 51, 0.07);
}

/* Article content typography */
.bas__content {
  font-size: 17px;
  line-height: 1.75;
  color: #1a1a2e;
  word-break: break-word;
  overflow-wrap: break-word;
}

.bas__content p {
  margin: 0 0 14px;
}

.bas__content p:last-child {
  margin-bottom: 0;
}

.bas__content h2 {
  margin: 28px 0 10px;
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1.25;
  font-weight: 700;
  font-family: "Manrope", "Inter", sans-serif;
  color: #111229;
}

.bas__content h3 {
  margin: 22px 0 8px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.3;
  font-weight: 700;
  color: #111229;
}

.bas__content h4 {
  margin: 18px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111229;
}

.bas__content ul,
.bas__content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.bas__content li {
  margin-bottom: 6px;
}

.bas__content a {
  color: #4f59ff;
  text-decoration: underline;
}

.bas__content a:hover {
  color: #3845ee;
}

.bas__content strong,
.bas__content b {
  font-weight: 700;
}

.bas__content em,
.bas__content i {
  font-style: italic;
}

.bas__content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0;
}

.bas__content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 4px solid #4f59ff;
  background: #f5f6ff;
  border-radius: 0 10px 10px 0;
  color: #333;
}

.bas__content code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88em;
  background: #f0f2fa;
  padding: 2px 5px;
  border-radius: 4px;
}

.bas__content pre {
  background: #f0f2fa;
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.bas__content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.bas__content table {
  display: block;
  width: max-content;
  max-width: 100%;
  min-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

@media (max-width: 480px) {
  .bas__content table {
    min-width: 0;
  }

  .bas__content th,
  .bas__content td {
    white-space: nowrap;
  }
}

.bas__content th,
.bas__content td {
  border: 1px solid #d5d8e3;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.bas__content th {
  background: #eef1ff;
  font-weight: 700;
  color: #111229;
}

.bas__content hr {
  border: none;
  border-top: 1px solid #e0e3f0;
  margin: 24px 0;
}

/* Related articles */
.bas__related {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(20, 23, 51, 0.05);
}

.bas__related-title {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: #111229;
}

.bas__related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bas__related-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #e8ecf5;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.bas__related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bas__related-item:hover .bas__related-item-title {
  color: #4f59ff;
}

.bas__related-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.bas__related-thumb--empty {
  background: #e8ecf5;
}

.bas__related-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bas__related-item-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #111229;
  transition: color 0.15s;
}

.bas__related-item-excerpt {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* Footer / bottom back link */
.bas__footer {
  padding-top: 8px;
}

.bas__back-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 12px;
  background: #4f59ff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}

.bas__back-bottom:hover {
  background: #3845ee;
}

/* Desktop tweaks */
@media (min-width: 640px) {
  .bas__body {
    padding: 36px 40px;
  }

  .bas__related {
    padding: 28px 32px;
  }
}
