.article-page {
  overflow-x: hidden;
  background: #fff;
  color: #0f0f11;
}

@supports (overflow: clip) {
  .article-page {
    overflow-x: clip;
  }
}

.article-single__header {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 4rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(127, 151, 199, 0.12), transparent 32%),
    linear-gradient(135deg, #080808 0%, #111827 58%, #0f0f11 100%);
  color: #f5f5f4;
}

@media (min-width: 64rem) {
  .article-single__header {
    padding: 2.5rem 0 5rem;
  }
}

.article-single__header .container,
.article-single__body .container,
.article-single__footer .container {
  position: relative;
  z-index: 2;
}

.article-single__header .breadcrumbs {
  margin-top: 0;
  margin-bottom: 2.5rem;
}

.article-single__header .breadcrumbs__current {
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-single__hero {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .article-single__hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.7fr);
    gap: 4rem;
  }

  .article-single__hero--no-media {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-single__intro {
  max-width: 52rem;
}

.article-single__hero--no-media .article-single__intro {
  max-width: 64rem;
}

.article-single__back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: #aacefa;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.article-single__back:hover {
  color: #f5f5f4;
}

.article-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: rgba(245, 245, 244, 0.72);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.article-single__meta span,
.article-single__meta time,
.article-single__meta a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border: 1px solid rgba(245, 245, 244, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(245, 245, 244, 0.035);
}

.article-single__meta a {
  color: rgba(245, 245, 244, 0.82);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.article-single__meta a:hover {
  border-color: rgba(170, 206, 250, 0.5);
  background: rgba(47, 140, 255, 0.12);
  color: #f5f5f4;
}

.article-single__title {
  color: #f5f5f4;
}

@media (min-width: 75rem) {
  .article-single__title {
    font-size: clamp(3rem, 5.8vw, 4rem);
  }
}

.article-single__excerpt {
  max-width: 46rem;
  margin-top: 1.5rem;
  color: rgba(207, 214, 223, 0.86);
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-single__media {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 244, 0.12);
  border-radius: 8px;
  background: rgba(245, 245, 244, 0.04);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.28);
}

@media (min-width: 64rem) {
  .article-single__media {
    min-height: 30rem;
    transform: translateY(1rem);
  }
}

.article-single__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.04), rgba(5, 8, 12, 0.38)),
    linear-gradient(135deg, rgba(47, 140, 255, 0.18), transparent 42%);
  pointer-events: none;
}

.article-single__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.88);
}

.article-single__body {
  padding: 4rem 0 5rem;
  background: #fff;
}

@media (min-width: 64rem) {
  .article-single__body {
    padding: 5rem 0 6rem;
  }
}

.article-single__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 72rem) {
  .article-single__layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 4rem;
  }
}

.article-single__content {
  min-width: 0;
  max-width: 52rem;
  color: #1f2933;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.article-single__content > * {
  max-width: 100%;
}

.article-single__content > * + * {
  margin-top: 1.35rem;
}

.article-single__content > h1:first-child {
  display: none;
}

.article-single__content h1,
.article-single__content h2,
.article-single__content h3,
.article-single__content h4,
.article-single__content h5,
.article-single__content h6 {
  max-width: none;
  margin-top: 3rem;
  color: #0f0f11;
}

.article-single__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.article-single__content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.article-single__content h2 + *,
.article-single__content h3 + *,
.article-single__content h4 + *,
.article-single__content h5 + *,
.article-single__content h6 + * {
  margin-top: 1rem;
}

.article-single__content p,
.article-single__content li {
  color: #222;
}

.article-single__content strong {
  color: #0f0f11;
  font-weight: 600;
}

.article-single__content a {
  color: #2f8cff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.article-single__content a:hover {
  color: #0f0f11;
}

.article-single__content ul,
.article-single__content ol {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.35rem;
}

.article-single__content ul {
  list-style: disc;
}

.article-single__content ol {
  list-style: decimal;
}

.article-single__content blockquote {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid rgba(15, 15, 17, 0.08);
  border-left: 3px solid #4286D5;
  border-radius: 8px;
  background: #f5f5f4;
  color: #0f0f11;
}

@media (min-width: 48rem) {
  .article-single__content blockquote {
    padding: 2rem;
  }
}

.article-single__content blockquote p {
  color: #1f2933;
}

.article-single__content blockquote p:first-child {
  margin-top: 0;
}

.article-single__content figure {
  margin: 2rem 0;
}

.article-single__content img {
  width: auto;
  height: auto;
  border-radius: 8px;
}

.article-single__content figcaption {
  margin-top: 0.75rem;
  color: #5b6470;
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-single__content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.article-single__content th,
.article-single__content td {
  border: 1px solid rgba(15, 15, 17, 0.08);
  padding: 0.875rem 1rem;
  text-align: left;
}

.article-single__content th {
  background: #f5f5f4;
  color: #0f0f11;
  font-weight: 600;
}

.article-single__page-links {
  margin-top: 2rem;
  color: #0f0f11;
  font-weight: 500;
}

.article-single__sidebar {
  display: grid;
  gap: 1.5rem;
  align-self: start;
}

@media (min-width: 72rem) {
  .article-single__sidebar {
    position: sticky;
    top: calc(var(--header-height, 96px) + 3rem);
    max-height: calc(100vh - var(--header-height, 96px) - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 148, 158, 0.35) rgba(139, 148, 158, 0.08);
  }

  .article-single__sidebar::-webkit-scrollbar {
    width: 0.375rem;
  }

  .article-single__sidebar::-webkit-scrollbar-track {
    background: rgba(139, 148, 158, 0.08);
    border-radius: 999px;
  }

  .article-single__sidebar::-webkit-scrollbar-thumb {
    background: rgba(139, 148, 158, 0.35);
    border-radius: 999px;
  }
}

.article-single__card {
  overflow: hidden;
  border: 1px solid rgba(15, 15, 17, 0.08);
  border-radius: 8px;
  background: #f5f5f4;
  padding: 1.5rem;
  color: #0f0f11;
}

.article-single__card h2 {
  max-width: none;
  margin-bottom: 1.25rem;
  color: #0f0f11;
  font-size: 1.35rem;
  line-height: 1.08;
}

.article-single__card ul {
  display: grid;
  gap: 1rem;
}

.article-single__card li {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 15, 17, 0.08);
}

.article-single__card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.article-single__card li span {
  color: #5b6470;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-single__card li strong {
  color: #0f0f11;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}

.article-single__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-single__categories a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border: 1px solid rgba(15, 15, 17, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: #fff;
  color: #0f0f11;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.article-single__categories a:hover {
  border-color: rgba(47, 140, 255, 0.28);
  background: rgba(47, 140, 255, 0.08);
  color: #2f8cff;
}

.article-single__card--dark {
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 140, 255, 0.14), transparent 38%),
    #0f0f11;
  color: #f5f5f4;
}

.article-single__card--dark h2 {
  color: #f5f5f4;
}

.article-single__card--dark p {
  margin-bottom: 1.5rem;
  color: #cfd6df;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.article-single__card--dark .btn {
  width: 100%;
}

.article-single__footer {
  padding: 0 0 5rem;
  background: #fff;
}

.article-single__footer .navigation {
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 15, 17, 0.1);
}

.article-single__footer .nav-links {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .article-single__footer .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.article-single__footer .nav-next {
  text-align: right;
}

.article-single__footer .nav-links a {
  display: block;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(15, 15, 17, 0.08);
  border-radius: 8px;
  color: #0f0f11;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.article-single__footer .nav-links a:hover {
  border-color: rgba(47, 140, 255, 0.35);
  background: #f5f5f4;
  color: #2f8cff;
}

.article-single__footer .nav-links span {
  display: block;
  margin-bottom: 0.4rem;
  color: #5b6470;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
