/* Blog article desktop redesign */

.post {
  display: block;
  color: inherit;
}

.post--container {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.post__header {
  padding-block: 1.5rem 0.5rem;
}

.post__header-inner {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.post__breadcrumb {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.72);
}

.post__breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post__breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post__breadcrumb-list li + li::before {
  content: "/";
  opacity: 0.6;
  margin-inline: 0.35rem;
}

.post__breadcrumb-list li[aria-current="page"] {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
}

.post__breadcrumb a {
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
}

.post__breadcrumb a:hover {
  text-decoration: underline;
}

.post__title {
  margin: 0;
  line-height: 1.2;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.95rem;
  margin: 0;
}

.post__meta-separator {
  opacity: 0.6;
}

.post__meta-author {
  font-weight: 500;
}

.post__meta .badge {
  font-size: 0.85rem;
}

.blog-hero {
  margin-bottom: 2rem;
}

.blog-hero img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 1.25rem;
  object-fit: cover;
}

.blog-abstract {
  max-width: 720px;
  margin: 1rem auto 2rem;
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.65;
}

.post__body {
  padding-block: 1.5rem 3rem;
}

.blog-body {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1rem;
  color: inherit;
}

.blog-body img,
.blog-body video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 10px;
}

.blog-body iframe {
  max-width: 100%;
  display: block;
  width: 100%;
  border: 0;
  margin: 1.25rem 0;
}

.blog-body code {
  background: #111a2a;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-size: 0.95em;
}

.blog-body pre {
  background: #0b1424;
  padding: 1rem;
  border-radius: 12px;
  overflow: auto;
}

.blog-body pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.blog-body blockquote {
  border-left: 3px solid #2a3b6a;
  padding: 0.5rem 1rem;
  margin: 1.25rem 0;
  opacity: 0.9;
  background: rgba(17, 26, 42, 0.35);
  border-radius: 0 12px 12px 0;
}

.blog-body blockquote p:last-child {
  margin-bottom: 0;
}

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.blog-body th,
.blog-body td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.blog-body th {
  background: rgba(17, 26, 42, 0.6);
}

.blog-body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.blog-body h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.blog-body h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.blog-body p + p {
  margin-top: 0.75rem;
}

.blog-body ul,
.blog-body ol {
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-body li + li {
  margin-top: 0.35rem;
}

.post__footer {
  display: grid;
  gap: 2.5rem;
  padding-block: 2rem 3rem;
}

.post__footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post__back-link {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
}

.post__back-link:hover {
  text-decoration: underline;
}

.post__pagination {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post__pagination-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post__pagination-link:hover {
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-2px);
}

.post__pagination-direction {
  font-size: 1.25rem;
}

.post__pagination-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.7);
}

.post__pagination-title {
  font-size: 1rem;
  line-height: 1.45;
}

.post__related {
  display: grid;
  gap: 1.5rem;
}

.post__related-title {
  margin: 0;
  font-size: 1.3rem;
}

.post__related-list {
  display: grid;
  gap: 1rem;
}

.post__related-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
}

.post__related-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.post__related-card a {
  color: inherit;
  text-decoration: none;
}

.post__related-card a:hover {
  text-decoration: underline;
}

.post__related-card time {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.7);
  text-transform: capitalize;
}

.post__footer-cta .cta-stack {
  gap: 1rem;
}

.post__breadcrumb a:focus-visible,
.post__back-link:focus-visible,
.post__pagination-link:focus-visible,
.post__related-card a:focus-visible {
  outline: 2px solid var(--focus-ring-color, #38bdf8);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .post--container {
    max-width: 960px;
    padding-inline: 1.5rem;
  }

  .post__header {
    padding-block: 2rem 0.75rem;
  }

  .post__header-inner {
    padding-block: 0 1.5rem;
  }

  .post__title {
    font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
    margin: 1rem 0 0.5rem;
  }

  .post__meta {
    margin-bottom: 0.75rem;
  }

  .post__body {
    padding: 2rem 1.5rem 4rem;
  }

  .blog-body {
    font-size: 1.05rem;
    line-height: 1.8;
    letter-spacing: 0.005em;
  }

  .post__footer {
    gap: 3rem;
    padding-bottom: 4rem;
  }

  .post__footer-nav {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }

  .post__pagination {
    flex-direction: row;
  }

  .post__pagination-link {
    min-width: 280px;
  }

  .post__related-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
}
